Best JavaScript code snippet using storybook-root
BUILD
Source: BUILD
1# A build file to configure python remote repository used with Bazel remote2# execution service3# DO NOT EDIT: automatically generated BUILD file4licenses(["restricted"])5package(default_visibility = ["/โ/โvisibility:public"])6cc_library(7 name = "python_headers",8 hdrs = [":python_include"],9 data = select({10 ":windows": [":python_import_lib"],11 "/โ/โconditions:default": [],12 }),13 includes = ["python_include"],14 linkopts = select({15 # TODO(pcloudy): Ideally, this should just go into deps after resolving16 # https:/โ/โgithub.com/โbazelbuild/โbazel/โissues/โ3237,17 ":windows": ["$(locations :python_import_lib)"],18 "/โ/โconditions:default": [],19 }),20)21cc_library(22 name = "numpy_headers",23 hdrs = [":numpy_include"],24 includes = ["numpy_include"],25)26config_setting(27 name = "windows",28 values = {"cpu": "x64_windows"},29 visibility = ["/โ/โvisibility:public"],30)31genrule(32 name = "python_include",33 outs = [34 "python_include/โcode.h",35 "python_include/โdtoa.h",36 "python_include/โtupleobject.h",37 "python_include/โobject.h",38 "python_include/โast.h",39 "python_include/โpymacconfig.h",40 "python_include/โerrcode.h",41 "python_include/โframeobject.h",42 "python_include/โpgenheaders.h",43 "python_include/โcellobject.h",44 "python_include/โintobject.h",45 "python_include/โpythread.h",46 "python_include/โcStringIO.h",47 "python_include/โboolobject.h",48 "python_include/โmodsupport.h",49 "python_include/โimport.h",50 "python_include/โpymath.h",51 "python_include/โnode.h",52 "python_include/โfuncobject.h",53 "python_include/โeval.h",54 "python_include/โlongintrepr.h",55 "python_include/โfloatobject.h",56 "python_include/โrangeobject.h",57 "python_include/โpyfpe.h",58 "python_include/โpystrcmp.h",59 "python_include/โdictobject.h",60 "python_include/โpyarena.h",61 "python_include/โobjimpl.h",62 "python_include/โbitset.h",63 "python_include/โmemoryobject.h",64 "python_include/โbytearrayobject.h",65 "python_include/โpydebug.h",66 "python_include/โpyerrors.h",67 "python_include/โweakrefobject.h",68 "python_include/โgrammar.h",69 "python_include/โsymtable.h",70 "python_include/โlongobject.h",71 "python_include/โstructmember.h",72 "python_include/โenumobject.h",73 "python_include/โclassobject.h",74 "python_include/โunicodeobject.h",75 "python_include/โsliceobject.h",76 "python_include/โpystrtod.h",77 "python_include/โgenobject.h",78 "python_include/โpymactoolbox.h",79 "python_include/โcompile.h",80 "python_include/โpyexpat.h",81 "python_include/โasdl.h",82 "python_include/โcodecs.h",83 "python_include/โpyctype.h",84 "python_include/โsysmodule.h",85 "python_include/โmethodobject.h",86 "python_include/โgraminit.h",87 "python_include/โcobject.h",88 "python_include/โintrcheck.h",89 "python_include/โpyport.h",90 "python_include/โwarnings.h",91 "python_include/โosdefs.h",92 "python_include/โfileobject.h",93 "python_include/โstringobject.h",94 "python_include/โtimefuncs.h",95 "python_include/โtraceback.h",96 "python_include/โceval.h",97 "python_include/โbytes_methods.h",98 "python_include/โpyconfig.h",99 "python_include/โPython.h",100 "python_include/โmoduleobject.h",101 "python_include/โpystate.h",102 "python_include/โdescrobject.h",103 "python_include/โucnhash.h",104 "python_include/โpygetopt.h",105 "python_include/โpymem.h",106 "python_include/โcomplexobject.h",107 "python_include/โstructseq.h",108 "python_include/โdatetime.h",109 "python_include/โpythonrun.h",110 "python_include/โnumpy/โoldnumeric.h",111 "python_include/โnumpy/โnpy_1_7_deprecated_api.h",112 "python_include/โnumpy/โufunc_api.txt",113 "python_include/โnumpy/โmultiarray_api.txt",114 "python_include/โnumpy/โhalffloat.h",115 "python_include/โnumpy/โnpy_common.h",116 "python_include/โnumpy/โutils.h",117 "python_include/โnumpy/โnpy_interrupt.h",118 "python_include/โnumpy/โnpy_endian.h",119 "python_include/โnumpy/โ__ufunc_api.h",120 "python_include/โnumpy/โ_neighborhood_iterator_imp.h",121 "python_include/โnumpy/โufuncobject.h",122 "python_include/โnumpy/โndarraytypes.h",123 "python_include/โnumpy/โnpy_math.h",124 "python_include/โnumpy/โnoprefix.h",125 "python_include/โnumpy/โnpy_3kcompat.h",126 "python_include/โnumpy/โarrayscalars.h",127 "python_include/โnumpy/โnpy_os.h",128 "python_include/โnumpy/โndarrayobject.h",129 "python_include/โnumpy/โnpy_no_deprecated_api.h",130 "python_include/โnumpy/โarrayobject.h",131 "python_include/โnumpy/โ_numpyconfig.h",132 "python_include/โnumpy/โ__multiarray_api.h",133 "python_include/โnumpy/โnpy_cpu.h",134 "python_include/โnumpy/โold_defines.h",135 "python_include/โnumpy/โnumpyconfig.h",136 "python_include/โpycapsule.h",137 "python_include/โsetobject.h",138 "python_include/โlistobject.h",139 "python_include/โbytesobject.h",140 "python_include/โpgen.h",141 "python_include/โpatchlevel.h",142 "python_include/โopcode.h",143 "python_include/โparsetok.h",144 "python_include/โmarshal.h",145 "python_include/โtoken.h",146 "python_include/โiterobject.h",147 "python_include/โabstract.h",148 "python_include/โpy_curses.h",149 "python_include/โmetagrammar.h",150 "python_include/โbufferobject.h",151 "python_include/โPython-ast.h",152 ],153 cmd = """154cp "/โusr/โinclude/โpython2.7/โcode.h" "$(@D)/โpython_include/โcode.h" && cp "/โusr/โinclude/โpython2.7/โdtoa.h" "$(@D)/โpython_include/โdtoa.h" && cp "/โusr/โinclude/โpython2.7/โtupleobject.h" "$(@D)/โpython_include/โtupleobject.h" && cp "/โusr/โinclude/โpython2.7/โobject.h" "$(@D)/โpython_include/โobject.h" && cp "/โusr/โinclude/โpython2.7/โast.h" "$(@D)/โpython_include/โast.h" && cp "/โusr/โinclude/โpython2.7/โpymacconfig.h" "$(@D)/โpython_include/โpymacconfig.h" && cp "/โusr/โinclude/โpython2.7/โerrcode.h" "$(@D)/โpython_include/โerrcode.h" && cp "/โusr/โinclude/โpython2.7/โframeobject.h" "$(@D)/โpython_include/โframeobject.h" && cp "/โusr/โinclude/โpython2.7/โpgenheaders.h" "$(@D)/โpython_include/โpgenheaders.h" && cp "/โusr/โinclude/โpython2.7/โcellobject.h" "$(@D)/โpython_include/โcellobject.h" && cp "/โusr/โinclude/โpython2.7/โintobject.h" "$(@D)/โpython_include/โintobject.h" && cp "/โusr/โinclude/โpython2.7/โpythread.h" "$(@D)/โpython_include/โpythread.h" && cp "/โusr/โinclude/โpython2.7/โcStringIO.h" "$(@D)/โpython_include/โcStringIO.h" && cp "/โusr/โinclude/โpython2.7/โboolobject.h" "$(@D)/โpython_include/โboolobject.h" && cp "/โusr/โinclude/โpython2.7/โmodsupport.h" "$(@D)/โpython_include/โmodsupport.h" && cp "/โusr/โinclude/โpython2.7/โimport.h" "$(@D)/โpython_include/โimport.h" && cp "/โusr/โinclude/โpython2.7/โpymath.h" "$(@D)/โpython_include/โpymath.h" && cp "/โusr/โinclude/โpython2.7/โnode.h" "$(@D)/โpython_include/โnode.h" && cp "/โusr/โinclude/โpython2.7/โfuncobject.h" "$(@D)/โpython_include/โfuncobject.h" && cp "/โusr/โinclude/โpython2.7/โeval.h" "$(@D)/โpython_include/โeval.h" && cp "/โusr/โinclude/โpython2.7/โlongintrepr.h" "$(@D)/โpython_include/โlongintrepr.h" && cp "/โusr/โinclude/โpython2.7/โfloatobject.h" "$(@D)/โpython_include/โfloatobject.h" && cp "/โusr/โinclude/โpython2.7/โrangeobject.h" "$(@D)/โpython_include/โrangeobject.h" && cp "/โusr/โinclude/โpython2.7/โpyfpe.h" "$(@D)/โpython_include/โpyfpe.h" && cp "/โusr/โinclude/โpython2.7/โpystrcmp.h" "$(@D)/โpython_include/โpystrcmp.h" && cp "/โusr/โinclude/โpython2.7/โdictobject.h" "$(@D)/โpython_include/โdictobject.h" && cp "/โusr/โinclude/โpython2.7/โpyarena.h" "$(@D)/โpython_include/โpyarena.h" && cp "/โusr/โinclude/โpython2.7/โobjimpl.h" "$(@D)/โpython_include/โobjimpl.h" && cp "/โusr/โinclude/โpython2.7/โbitset.h" "$(@D)/โpython_include/โbitset.h" && cp "/โusr/โinclude/โpython2.7/โmemoryobject.h" "$(@D)/โpython_include/โmemoryobject.h" && cp "/โusr/โinclude/โpython2.7/โbytearrayobject.h" "$(@D)/โpython_include/โbytearrayobject.h" && cp "/โusr/โinclude/โpython2.7/โpydebug.h" "$(@D)/โpython_include/โpydebug.h" && cp "/โusr/โinclude/โpython2.7/โpyerrors.h" "$(@D)/โpython_include/โpyerrors.h" && cp "/โusr/โinclude/โpython2.7/โweakrefobject.h" "$(@D)/โpython_include/โweakrefobject.h" && cp "/โusr/โinclude/โpython2.7/โgrammar.h" "$(@D)/โpython_include/โgrammar.h" && cp "/โusr/โinclude/โpython2.7/โsymtable.h" "$(@D)/โpython_include/โsymtable.h" && cp "/โusr/โinclude/โpython2.7/โlongobject.h" "$(@D)/โpython_include/โlongobject.h" && cp "/โusr/โinclude/โpython2.7/โstructmember.h" "$(@D)/โpython_include/โstructmember.h" && cp "/โusr/โinclude/โpython2.7/โenumobject.h" "$(@D)/โpython_include/โenumobject.h" && cp "/โusr/โinclude/โpython2.7/โclassobject.h" "$(@D)/โpython_include/โclassobject.h" && cp "/โusr/โinclude/โpython2.7/โunicodeobject.h" "$(@D)/โpython_include/โunicodeobject.h" && cp "/โusr/โinclude/โpython2.7/โsliceobject.h" "$(@D)/โpython_include/โsliceobject.h" && cp "/โusr/โinclude/โpython2.7/โpystrtod.h" "$(@D)/โpython_include/โpystrtod.h" && cp "/โusr/โinclude/โpython2.7/โgenobject.h" "$(@D)/โpython_include/โgenobject.h" && cp "/โusr/โinclude/โpython2.7/โpymactoolbox.h" "$(@D)/โpython_include/โpymactoolbox.h" && cp "/โusr/โinclude/โpython2.7/โcompile.h" "$(@D)/โpython_include/โcompile.h" && cp "/โusr/โinclude/โpython2.7/โpyexpat.h" "$(@D)/โpython_include/โpyexpat.h" && cp "/โusr/โinclude/โpython2.7/โasdl.h" "$(@D)/โpython_include/โasdl.h" && cp "/โusr/โinclude/โpython2.7/โcodecs.h" "$(@D)/โpython_include/โcodecs.h" && cp "/โusr/โinclude/โpython2.7/โpyctype.h" "$(@D)/โpython_include/โpyctype.h" && cp "/โusr/โinclude/โpython2.7/โsysmodule.h" "$(@D)/โpython_include/โsysmodule.h" && cp "/โusr/โinclude/โpython2.7/โmethodobject.h" "$(@D)/โpython_include/โmethodobject.h" && cp "/โusr/โinclude/โpython2.7/โgraminit.h" "$(@D)/โpython_include/โgraminit.h" && cp "/โusr/โinclude/โpython2.7/โcobject.h" "$(@D)/โpython_include/โcobject.h" && cp "/โusr/โinclude/โpython2.7/โintrcheck.h" "$(@D)/โpython_include/โintrcheck.h" && cp "/โusr/โinclude/โpython2.7/โpyport.h" "$(@D)/โpython_include/โpyport.h" && cp "/โusr/โinclude/โpython2.7/โwarnings.h" "$(@D)/โpython_include/โwarnings.h" && cp "/โusr/โinclude/โpython2.7/โosdefs.h" "$(@D)/โpython_include/โosdefs.h" && cp "/โusr/โinclude/โpython2.7/โfileobject.h" "$(@D)/โpython_include/โfileobject.h" && cp "/โusr/โinclude/โpython2.7/โstringobject.h" "$(@D)/โpython_include/โstringobject.h" && cp "/โusr/โinclude/โpython2.7/โtimefuncs.h" "$(@D)/โpython_include/โtimefuncs.h" && cp "/โusr/โinclude/โpython2.7/โtraceback.h" "$(@D)/โpython_include/โtraceback.h" && cp "/โusr/โinclude/โpython2.7/โceval.h" "$(@D)/โpython_include/โceval.h" && cp "/โusr/โinclude/โpython2.7/โbytes_methods.h" "$(@D)/โpython_include/โbytes_methods.h" && cp "/โusr/โinclude/โpython2.7/โpyconfig.h" "$(@D)/โpython_include/โpyconfig.h" && cp "/โusr/โinclude/โpython2.7/โPython.h" "$(@D)/โpython_include/โPython.h" && cp "/โusr/โinclude/โpython2.7/โmoduleobject.h" "$(@D)/โpython_include/โmoduleobject.h" && cp "/โusr/โinclude/โpython2.7/โpystate.h" "$(@D)/โpython_include/โpystate.h" && cp "/โusr/โinclude/โpython2.7/โdescrobject.h" "$(@D)/โpython_include/โdescrobject.h" && cp "/โusr/โinclude/โpython2.7/โucnhash.h" "$(@D)/โpython_include/โucnhash.h" && cp "/โusr/โinclude/โpython2.7/โpygetopt.h" "$(@D)/โpython_include/โpygetopt.h" && cp "/โusr/โinclude/โpython2.7/โpymem.h" "$(@D)/โpython_include/โpymem.h" && cp "/โusr/โinclude/โpython2.7/โcomplexobject.h" "$(@D)/โpython_include/โcomplexobject.h" && cp "/โusr/โinclude/โpython2.7/โstructseq.h" "$(@D)/โpython_include/โstructseq.h" && cp "/โusr/โinclude/โpython2.7/โdatetime.h" "$(@D)/โpython_include/โdatetime.h" && cp "/โusr/โinclude/โpython2.7/โpythonrun.h" "$(@D)/โpython_include/โpythonrun.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โoldnumeric.h" "$(@D)/โpython_include/โnumpy/โoldnumeric.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_1_7_deprecated_api.h" "$(@D)/โpython_include/โnumpy/โnpy_1_7_deprecated_api.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โufunc_api.txt" "$(@D)/โpython_include/โnumpy/โufunc_api.txt" && cp "/โusr/โinclude/โpython2.7/โnumpy/โmultiarray_api.txt" "$(@D)/โpython_include/โnumpy/โmultiarray_api.txt" && cp "/โusr/โinclude/โpython2.7/โnumpy/โhalffloat.h" "$(@D)/โpython_include/โnumpy/โhalffloat.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_common.h" "$(@D)/โpython_include/โnumpy/โnpy_common.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โutils.h" "$(@D)/โpython_include/โnumpy/โutils.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_interrupt.h" "$(@D)/โpython_include/โnumpy/โnpy_interrupt.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_endian.h" "$(@D)/โpython_include/โnumpy/โnpy_endian.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โ__ufunc_api.h" "$(@D)/โpython_include/โnumpy/โ__ufunc_api.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โ_neighborhood_iterator_imp.h" "$(@D)/โpython_include/โnumpy/โ_neighborhood_iterator_imp.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โufuncobject.h" "$(@D)/โpython_include/โnumpy/โufuncobject.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โndarraytypes.h" "$(@D)/โpython_include/โnumpy/โndarraytypes.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_math.h" "$(@D)/โpython_include/โnumpy/โnpy_math.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnoprefix.h" "$(@D)/โpython_include/โnumpy/โnoprefix.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_3kcompat.h" "$(@D)/โpython_include/โnumpy/โnpy_3kcompat.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โarrayscalars.h" "$(@D)/โpython_include/โnumpy/โarrayscalars.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_os.h" "$(@D)/โpython_include/โnumpy/โnpy_os.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โndarrayobject.h" "$(@D)/โpython_include/โnumpy/โndarrayobject.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_no_deprecated_api.h" "$(@D)/โpython_include/โnumpy/โnpy_no_deprecated_api.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โarrayobject.h" "$(@D)/โpython_include/โnumpy/โarrayobject.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โ_numpyconfig.h" "$(@D)/โpython_include/โnumpy/โ_numpyconfig.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โ__multiarray_api.h" "$(@D)/โpython_include/โnumpy/โ__multiarray_api.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnpy_cpu.h" "$(@D)/โpython_include/โnumpy/โnpy_cpu.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โold_defines.h" "$(@D)/โpython_include/โnumpy/โold_defines.h" && cp "/โusr/โinclude/โpython2.7/โnumpy/โnumpyconfig.h" "$(@D)/โpython_include/โnumpy/โnumpyconfig.h" && cp "/โusr/โinclude/โpython2.7/โpycapsule.h" "$(@D)/โpython_include/โpycapsule.h" && cp "/โusr/โinclude/โpython2.7/โsetobject.h" "$(@D)/โpython_include/โsetobject.h" && cp "/โusr/โinclude/โpython2.7/โlistobject.h" "$(@D)/โpython_include/โlistobject.h" && cp "/โusr/โinclude/โpython2.7/โbytesobject.h" "$(@D)/โpython_include/โbytesobject.h" && cp "/โusr/โinclude/โpython2.7/โpgen.h" "$(@D)/โpython_include/โpgen.h" && cp "/โusr/โinclude/โpython2.7/โpatchlevel.h" "$(@D)/โpython_include/โpatchlevel.h" && cp "/โusr/โinclude/โpython2.7/โopcode.h" "$(@D)/โpython_include/โopcode.h" && cp "/โusr/โinclude/โpython2.7/โparsetok.h" "$(@D)/โpython_include/โparsetok.h" && cp "/โusr/โinclude/โpython2.7/โmarshal.h" "$(@D)/โpython_include/โmarshal.h" && cp "/โusr/โinclude/โpython2.7/โtoken.h" "$(@D)/โpython_include/โtoken.h" && cp "/โusr/โinclude/โpython2.7/โiterobject.h" "$(@D)/โpython_include/โiterobject.h" && cp "/โusr/โinclude/โpython2.7/โabstract.h" "$(@D)/โpython_include/โabstract.h" && cp "/โusr/โinclude/โpython2.7/โpy_curses.h" "$(@D)/โpython_include/โpy_curses.h" && cp "/โusr/โinclude/โpython2.7/โmetagrammar.h" "$(@D)/โpython_include/โmetagrammar.h" && cp "/โusr/โinclude/โpython2.7/โbufferobject.h" "$(@D)/โpython_include/โbufferobject.h" && cp "/โusr/โinclude/โpython2.7/โPython-ast.h" "$(@D)/โpython_include/โPython-ast.h"155 """,156)157genrule(158 name = "numpy_include",159 outs = [160 "numpy_include/โnumpy/โoldnumeric.h",161 "numpy_include/โnumpy/โnpy_1_7_deprecated_api.h",162 "numpy_include/โnumpy/โufunc_api.txt",163 "numpy_include/โnumpy/โmultiarray_api.txt",164 "numpy_include/โnumpy/โhalffloat.h",165 "numpy_include/โnumpy/โnpy_common.h",166 "numpy_include/โnumpy/โutils.h",167 "numpy_include/โnumpy/โnpy_interrupt.h",168 "numpy_include/โnumpy/โnpy_endian.h",169 "numpy_include/โnumpy/โ__ufunc_api.h",170 "numpy_include/โnumpy/โ_neighborhood_iterator_imp.h",171 "numpy_include/โnumpy/โufuncobject.h",172 "numpy_include/โnumpy/โndarraytypes.h",173 "numpy_include/โnumpy/โnpy_math.h",174 "numpy_include/โnumpy/โnoprefix.h",175 "numpy_include/โnumpy/โnpy_3kcompat.h",176 "numpy_include/โnumpy/โarrayscalars.h",177 "numpy_include/โnumpy/โnpy_os.h",178 "numpy_include/โnumpy/โndarrayobject.h",179 "numpy_include/โnumpy/โnpy_no_deprecated_api.h",180 "numpy_include/โnumpy/โarrayobject.h",181 "numpy_include/โnumpy/โ_numpyconfig.h",182 "numpy_include/โnumpy/โ__multiarray_api.h",183 "numpy_include/โnumpy/โnpy_cpu.h",184 "numpy_include/โnumpy/โold_defines.h",185 "numpy_include/โnumpy/โnumpyconfig.h",186 ],187 cmd = """188cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โoldnumeric.h" "$(@D)/โnumpy_include/โnumpy/โoldnumeric.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_1_7_deprecated_api.h" "$(@D)/โnumpy_include/โnumpy/โnpy_1_7_deprecated_api.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โufunc_api.txt" "$(@D)/โnumpy_include/โnumpy/โufunc_api.txt" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โmultiarray_api.txt" "$(@D)/โnumpy_include/โnumpy/โmultiarray_api.txt" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โhalffloat.h" "$(@D)/โnumpy_include/โnumpy/โhalffloat.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_common.h" "$(@D)/โnumpy_include/โnumpy/โnpy_common.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โutils.h" "$(@D)/โnumpy_include/โnumpy/โutils.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_interrupt.h" "$(@D)/โnumpy_include/โnumpy/โnpy_interrupt.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_endian.h" "$(@D)/โnumpy_include/โnumpy/โnpy_endian.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โ__ufunc_api.h" "$(@D)/โnumpy_include/โnumpy/โ__ufunc_api.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โ_neighborhood_iterator_imp.h" "$(@D)/โnumpy_include/โnumpy/โ_neighborhood_iterator_imp.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โufuncobject.h" "$(@D)/โnumpy_include/โnumpy/โufuncobject.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โndarraytypes.h" "$(@D)/โnumpy_include/โnumpy/โndarraytypes.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_math.h" "$(@D)/โnumpy_include/โnumpy/โnpy_math.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnoprefix.h" "$(@D)/โnumpy_include/โnumpy/โnoprefix.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_3kcompat.h" "$(@D)/โnumpy_include/โnumpy/โnpy_3kcompat.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โarrayscalars.h" "$(@D)/โnumpy_include/โnumpy/โarrayscalars.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_os.h" "$(@D)/โnumpy_include/โnumpy/โnpy_os.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โndarrayobject.h" "$(@D)/โnumpy_include/โnumpy/โndarrayobject.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_no_deprecated_api.h" "$(@D)/โnumpy_include/โnumpy/โnpy_no_deprecated_api.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โarrayobject.h" "$(@D)/โnumpy_include/โnumpy/โarrayobject.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โ_numpyconfig.h" "$(@D)/โnumpy_include/โnumpy/โ_numpyconfig.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โ__multiarray_api.h" "$(@D)/โnumpy_include/โnumpy/โ__multiarray_api.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnpy_cpu.h" "$(@D)/โnumpy_include/โnumpy/โnpy_cpu.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โold_defines.h" "$(@D)/โnumpy_include/โnumpy/โold_defines.h" && cp "/โusr/โlib/โpython2.7/โdist-packages/โnumpy/โcore/โinclude/โnumpy/โnumpyconfig.h" "$(@D)/โnumpy_include/โnumpy/โnumpyconfig.h"189 """,...
AmpCustomElement.js
Source: AmpCustomElement.js
1/โ**2 * @file An AMP Component import helper. This file is auto-generated using3 * https:/โ/โwww.npmjs.com/โpackage/โ@ampproject/โtoolbox-validator-rules.4 */โ5import React from 'react'6import Head from 'next/โhead'7export function AmpIncludeCustomElement(props) {8 return (9 <Head>10 <script11 async12 custom-element={props.name}13 src={14 'https:/โ/โcdn.ampproject.org/โv0/โ' +15 props.name +16 '-' +17 props.version +18 '.js'19 }20 key={props.name}21 /โ>22 </โHead>23 )24}25export function AmpIncludeCustomTemplate(props) {26 return (27 <Head>28 <script29 async30 custom-template={props.name}31 src={32 'https:/โ/โcdn.ampproject.org/โv0/โ' +33 props.name +34 '-' +35 props.version +36 '.js'37 }38 key={props.name}39 /โ>40 </โHead>41 )42}43export function AmpIncludeAmp3dGltf() {44 return <AmpIncludeCustomElement name="amp-3d-gltf" version="0.1" /โ>45}46export function AmpIncludeAmp3qPlayer() {47 return <AmpIncludeCustomElement name="amp-3q-player" version="0.1" /โ>48}49export function AmpIncludeAmpAccessLaterpay() {50 return <AmpIncludeCustomElement name="amp-access-laterpay" version="0.2" /โ>51}52export function AmpIncludeAmpAccessPoool() {53 return <AmpIncludeCustomElement name="amp-access-poool" version="0.1" /โ>54}55export function AmpIncludeAmpAccessScroll() {56 return <AmpIncludeCustomElement name="amp-access-scroll" version="0.1" /โ>57}58export function AmpIncludeAmpAccess() {59 return <AmpIncludeCustomElement name="amp-access" version="0.1" /โ>60}61export function AmpIncludeAmpAccordion() {62 return <AmpIncludeCustomElement name="amp-accordion" version="0.1" /โ>63}64export function AmpIncludeAmpActionMacro() {65 return <AmpIncludeCustomElement name="amp-action-macro" version="0.1" /โ>66}67export function AmpIncludeAmpAdCustom() {68 return <AmpIncludeCustomElement name="amp-ad-custom" version="0.1" /โ>69}70export function AmpIncludeAmpAd() {71 return <AmpIncludeCustomElement name="amp-ad" version="0.1" /โ>72}73export function AmpIncludeAmpAddthis() {74 return <AmpIncludeCustomElement name="amp-addthis" version="0.1" /โ>75}76export function AmpIncludeAmpAnalytics() {77 return <AmpIncludeCustomElement name="amp-analytics" version="0.1" /โ>78}79export function AmpIncludeAmpAnim() {80 return <AmpIncludeCustomElement name="amp-anim" version="0.1" /โ>81}82export function AmpIncludeAmpAnimation() {83 return <AmpIncludeCustomElement name="amp-animation" version="0.1" /โ>84}85export function AmpIncludeAmpApesterMedia() {86 return <AmpIncludeCustomElement name="amp-apester-media" version="0.1" /โ>87}88export function AmpIncludeAmpAppBanner() {89 return <AmpIncludeCustomElement name="amp-app-banner" version="0.1" /โ>90}91export function AmpIncludeAmpAudio() {92 return <AmpIncludeCustomElement name="amp-audio" version="0.1" /โ>93}94export function AmpIncludeAmpAutoAds() {95 return <AmpIncludeCustomElement name="amp-auto-ads" version="0.1" /โ>96}97export function AmpIncludeAmpAutocomplete() {98 return <AmpIncludeCustomElement name="amp-autocomplete" version="0.1" /โ>99}100export function AmpIncludeAmpBaseCarousel() {101 return <AmpIncludeCustomElement name="amp-base-carousel" version="0.1" /โ>102}103export function AmpIncludeAmpBeopinion() {104 return <AmpIncludeCustomElement name="amp-beopinion" version="0.1" /โ>105}106export function AmpIncludeAmpBind() {107 return <AmpIncludeCustomElement name="amp-bind" version="0.1" /โ>108}109export function AmpIncludeAmpBodymovinAnimation() {110 return (111 <AmpIncludeCustomElement name="amp-bodymovin-animation" version="0.1" /โ>112 )113}114export function AmpIncludeAmpBridPlayer() {115 return <AmpIncludeCustomElement name="amp-brid-player" version="0.1" /โ>116}117export function AmpIncludeAmpBrightcove() {118 return <AmpIncludeCustomElement name="amp-brightcove" version="0.1" /โ>119}120export function AmpIncludeAmpBysideContent() {121 return <AmpIncludeCustomElement name="amp-byside-content" version="0.1" /โ>122}123export function AmpIncludeAmpCallTracking() {124 return <AmpIncludeCustomElement name="amp-call-tracking" version="0.1" /โ>125}126export function AmpIncludeAmpCarousel() {127 return <AmpIncludeCustomElement name="amp-carousel" version="0.2" /โ>128}129export function AmpIncludeAmpConnatixPlayer() {130 return <AmpIncludeCustomElement name="amp-connatix-player" version="0.1" /โ>131}132export function AmpIncludeAmpConsent() {133 return <AmpIncludeCustomElement name="amp-consent" version="0.1" /โ>134}135export function AmpIncludeAmpDailymotion() {136 return <AmpIncludeCustomElement name="amp-dailymotion" version="0.1" /โ>137}138export function AmpIncludeAmpDateCountdown() {139 return <AmpIncludeCustomElement name="amp-date-countdown" version="0.1" /โ>140}141export function AmpIncludeAmpDateDisplay() {142 return <AmpIncludeCustomElement name="amp-date-display" version="0.1" /โ>143}144export function AmpIncludeAmpDatePicker() {145 return <AmpIncludeCustomElement name="amp-date-picker" version="0.1" /โ>146}147export function AmpIncludeAmpDelightPlayer() {148 return <AmpIncludeCustomElement name="amp-delight-player" version="0.1" /โ>149}150export function AmpIncludeAmpDynamicCssClasses() {151 return (152 <AmpIncludeCustomElement name="amp-dynamic-css-classes" version="0.1" /โ>153 )154}155export function AmpIncludeAmpEmbedlyCard() {156 return <AmpIncludeCustomElement name="amp-embedly-card" version="0.1" /โ>157}158export function AmpIncludeAmpExperiment() {159 return <AmpIncludeCustomElement name="amp-experiment" version="1.0" /โ>160}161export function AmpIncludeAmpFacebookComments() {162 return <AmpIncludeCustomElement name="amp-facebook-comments" version="0.1" /โ>163}164export function AmpIncludeAmpFacebookLike() {165 return <AmpIncludeCustomElement name="amp-facebook-like" version="0.1" /โ>166}167export function AmpIncludeAmpFacebookPage() {168 return <AmpIncludeCustomElement name="amp-facebook-page" version="0.1" /โ>169}170export function AmpIncludeAmpFacebook() {171 return <AmpIncludeCustomElement name="amp-facebook" version="0.1" /โ>172}173export function AmpIncludeAmpFitText() {174 return <AmpIncludeCustomElement name="amp-fit-text" version="0.1" /โ>175}176export function AmpIncludeAmpFont() {177 return <AmpIncludeCustomElement name="amp-font" version="0.1" /โ>178}179export function AmpIncludeAmpForm() {180 return <AmpIncludeCustomElement name="amp-form" version="0.1" /โ>181}182export function AmpIncludeAmpFxCollection() {183 return <AmpIncludeCustomElement name="amp-fx-collection" version="0.1" /โ>184}185export function AmpIncludeAmpFxFlyingCarpet() {186 return <AmpIncludeCustomElement name="amp-fx-flying-carpet" version="0.1" /โ>187}188export function AmpIncludeAmpGeo() {189 return <AmpIncludeCustomElement name="amp-geo" version="0.1" /โ>190}191export function AmpIncludeAmpGfycat() {192 return <AmpIncludeCustomElement name="amp-gfycat" version="0.1" /โ>193}194export function AmpIncludeAmpGist() {195 return <AmpIncludeCustomElement name="amp-gist" version="0.1" /โ>196}197export function AmpIncludeAmpGoogleDocumentEmbed() {198 return (199 <AmpIncludeCustomElement name="amp-google-document-embed" version="0.1" /โ>200 )201}202export function AmpIncludeAmpHulu() {203 return <AmpIncludeCustomElement name="amp-hulu" version="0.1" /โ>204}205export function AmpIncludeAmpIframe() {206 return <AmpIncludeCustomElement name="amp-iframe" version="0.1" /โ>207}208export function AmpIncludeAmpImaVideo() {209 return <AmpIncludeCustomElement name="amp-ima-video" version="0.1" /โ>210}211export function AmpIncludeAmpImageLightbox() {212 return <AmpIncludeCustomElement name="amp-image-lightbox" version="0.1" /โ>213}214export function AmpIncludeAmpImageSlider() {215 return <AmpIncludeCustomElement name="amp-image-slider" version="0.1" /โ>216}217export function AmpIncludeAmpImgur() {218 return <AmpIncludeCustomElement name="amp-imgur" version="0.1" /โ>219}220export function AmpIncludeAmpInputmask() {221 return <AmpIncludeCustomElement name="amp-inputmask" version="0.1" /โ>222}223export function AmpIncludeAmpInstagram() {224 return <AmpIncludeCustomElement name="amp-instagram" version="0.1" /โ>225}226export function AmpIncludeAmpInstallServiceworker() {227 return (228 <AmpIncludeCustomElement name="amp-install-serviceworker" version="0.1" /โ>229 )230}231export function AmpIncludeAmpIzlesene() {232 return <AmpIncludeCustomElement name="amp-izlesene" version="0.1" /โ>233}234export function AmpIncludeAmpJwplayer() {235 return <AmpIncludeCustomElement name="amp-jwplayer" version="0.1" /โ>236}237export function AmpIncludeAmpKalturaPlayer() {238 return <AmpIncludeCustomElement name="amp-kaltura-player" version="0.1" /โ>239}240export function AmpIncludeAmpLightboxGallery() {241 return <AmpIncludeCustomElement name="amp-lightbox-gallery" version="0.1" /โ>242}243export function AmpIncludeAmpLightbox() {244 return <AmpIncludeCustomElement name="amp-lightbox" version="0.1" /โ>245}246export function AmpIncludeAmpLinkRewriter() {247 return <AmpIncludeCustomElement name="amp-link-rewriter" version="0.1" /โ>248}249export function AmpIncludeAmpList() {250 return (251 <>252 <AmpIncludeAmpMustache /โ>253 <AmpIncludeCustomElement name="amp-list" version="0.1" /โ>254 </โ>255 )256}257export function AmpIncludeAmpLiveList() {258 return <AmpIncludeCustomElement name="amp-live-list" version="0.1" /โ>259}260export function AmpIncludeAmpMathml() {261 return <AmpIncludeCustomElement name="amp-mathml" version="0.1" /โ>262}263export function AmpIncludeAmpMegaphone() {264 return <AmpIncludeCustomElement name="amp-megaphone" version="0.1" /โ>265}266export function AmpIncludeAmpMinuteMediaPlayer() {267 return (268 <AmpIncludeCustomElement name="amp-minute-media-player" version="0.1" /โ>269 )270}271export function AmpIncludeAmpMowplayer() {272 return <AmpIncludeCustomElement name="amp-mowplayer" version="0.1" /โ>273}274export function AmpIncludeAmpMustache() {275 return <AmpIncludeCustomTemplate name="amp-mustache" version="0.2" /โ>276}277export function AmpIncludeAmpNextPage() {278 return <AmpIncludeCustomElement name="amp-next-page" version="0.1" /โ>279}280export function AmpIncludeAmpNexxtvPlayer() {281 return <AmpIncludeCustomElement name="amp-nexxtv-player" version="0.1" /โ>282}283export function AmpIncludeAmpO2Player() {284 return <AmpIncludeCustomElement name="amp-o2-player" version="0.1" /โ>285}286export function AmpIncludeAmpOoyalaPlayer() {287 return <AmpIncludeCustomElement name="amp-ooyala-player" version="0.1" /โ>288}289export function AmpIncludeAmpOrientationObserver() {290 return (291 <AmpIncludeCustomElement name="amp-orientation-observer" version="0.1" /โ>292 )293}294export function AmpIncludeAmpPanZoom() {295 return <AmpIncludeCustomElement name="amp-pan-zoom" version="0.1" /โ>296}297export function AmpIncludeAmpPinterest() {298 return <AmpIncludeCustomElement name="amp-pinterest" version="0.1" /โ>299}300export function AmpIncludeAmpPlaybuzz() {301 return <AmpIncludeCustomElement name="amp-playbuzz" version="0.1" /โ>302}303export function AmpIncludeAmpPositionObserver() {304 return <AmpIncludeCustomElement name="amp-position-observer" version="0.1" /โ>305}306export function AmpIncludeAmpPowrPlayer() {307 return <AmpIncludeCustomElement name="amp-powr-player" version="0.1" /โ>308}309export function AmpIncludeAmpReachPlayer() {310 return <AmpIncludeCustomElement name="amp-reach-player" version="0.1" /โ>311}312export function AmpIncludeAmpRecaptchaInput() {313 return <AmpIncludeCustomElement name="amp-recaptcha-input" version="0.1" /โ>314}315export function AmpIncludeAmpReddit() {316 return <AmpIncludeCustomElement name="amp-reddit" version="0.1" /โ>317}318export function AmpIncludeAmpRiddleQuiz() {319 return <AmpIncludeCustomElement name="amp-riddle-quiz" version="0.1" /โ>320}321export function AmpIncludeAmpScript() {322 return <AmpIncludeCustomElement name="amp-script" version="0.1" /โ>323}324export function AmpIncludeAmpSelector() {325 return <AmpIncludeCustomElement name="amp-selector" version="0.1" /โ>326}327export function AmpIncludeAmpSidebar() {328 return <AmpIncludeCustomElement name="amp-sidebar" version="0.1" /โ>329}330export function AmpIncludeAmpSkimlinks() {331 return <AmpIncludeCustomElement name="amp-skimlinks" version="0.1" /โ>332}333export function AmpIncludeAmpSlides() {334 return <AmpIncludeCustomElement name="amp-slides" version="0.1" /โ>335}336export function AmpIncludeAmpSmartlinks() {337 return <AmpIncludeCustomElement name="amp-smartlinks" version="0.1" /โ>338}339export function AmpIncludeAmpSocialShare() {340 return <AmpIncludeCustomElement name="amp-social-share" version="0.1" /โ>341}342export function AmpIncludeAmpSoundcloud() {343 return <AmpIncludeCustomElement name="amp-soundcloud" version="0.1" /โ>344}345export function AmpIncludeAmpSpringboardPlayer() {346 return <AmpIncludeCustomElement name="amp-springboard-player" version="0.1" /โ>347}348export function AmpIncludeAmpStickyAd() {349 return <AmpIncludeCustomElement name="amp-sticky-ad" version="1.0" /โ>350}351export function AmpIncludeAmpStoryAutoAds() {352 return <AmpIncludeCustomElement name="amp-story-auto-ads" version="0.1" /โ>353}354export function AmpIncludeAmpStory() {355 return <AmpIncludeCustomElement name="amp-story" version="1.0" /โ>356}357export function AmpIncludeAmpSubscriptions() {358 return <AmpIncludeCustomElement name="amp-subscriptions" version="0.1" /โ>359}360export function AmpIncludeAmpSubscriptionsGoogle() {361 return (362 <AmpIncludeCustomElement name="amp-subscriptions-google" version="0.1" /โ>363 )364}365export function AmpIncludeAmpTimeago() {366 return <AmpIncludeCustomElement name="amp-timeago" version="0.1" /โ>367}368export function AmpIncludeAmpTruncateText() {369 return <AmpIncludeCustomElement name="amp-truncate-text" version="0.1" /โ>370}371export function AmpIncludeAmpTwitter() {372 return <AmpIncludeCustomElement name="amp-twitter" version="0.1" /โ>373}374export function AmpIncludeAmpUserLocation() {375 return <AmpIncludeCustomElement name="amp-user-location" version="0.1" /โ>376}377export function AmpIncludeAmpUserNotification() {378 return <AmpIncludeCustomElement name="amp-user-notification" version="0.1" /โ>379}380export function AmpIncludeAmpVideoDocking() {381 return <AmpIncludeCustomElement name="amp-video-docking" version="0.1" /โ>382}383export function AmpIncludeAmpVideoIframe() {384 return <AmpIncludeCustomElement name="amp-video-iframe" version="0.1" /โ>385}386export function AmpIncludeAmpVideo() {387 return <AmpIncludeCustomElement name="amp-video" version="0.1" /โ>388}389export function AmpIncludeAmpVimeo() {390 return <AmpIncludeCustomElement name="amp-vimeo" version="0.1" /โ>391}392export function AmpIncludeAmpVine() {393 return <AmpIncludeCustomElement name="amp-vine" version="0.1" /โ>394}395export function AmpIncludeAmpViqeoPlayer() {396 return <AmpIncludeCustomElement name="amp-viqeo-player" version="0.1" /โ>397}398export function AmpIncludeAmpVk() {399 return <AmpIncludeCustomElement name="amp-vk" version="0.1" /โ>400}401export function AmpIncludeAmpWebPush() {402 return <AmpIncludeCustomElement name="amp-web-push" version="0.1" /โ>403}404export function AmpIncludeAmpWistiaPlayer() {405 return <AmpIncludeCustomElement name="amp-wistia-player" version="0.1" /โ>406}407export function AmpIncludeAmpYotpo() {408 return <AmpIncludeCustomElement name="amp-yotpo" version="0.1" /โ>409}410export function AmpIncludeAmpYoutube() {411 return <AmpIncludeCustomElement name="amp-youtube" version="0.1" /โ>...
test_include.py
Source: test_include.py
1from django.template import (2 Context, Template, TemplateDoesNotExist, TemplateSyntaxError, engines,3)4from django.test import SimpleTestCase, override_settings5from ..utils import setup6from .test_basic import basic_templates7include_fail_templates = {8 'include-fail1': '{% load bad_tag %}{% badtag %}',9 'include-fail2': '{% load broken_tag %}',10}11class IncludeTagTests(SimpleTestCase):12 @setup({'include01': '{% include "basic-syntax01" %}'}, basic_templates)13 def test_include01(self):14 output = self.engine.render_to_string('include01')15 self.assertEqual(output, 'something cool')16 @setup({'include02': '{% include "basic-syntax02" %}'}, basic_templates)17 def test_include02(self):18 output = self.engine.render_to_string('include02', {'headline': 'Included'})19 self.assertEqual(output, 'Included')20 @setup({'include03': '{% include template_name %}'}, basic_templates)21 def test_include03(self):22 output = self.engine.render_to_string(23 'include03',24 {'template_name': 'basic-syntax02', 'headline': 'Included'},25 )26 self.assertEqual(output, 'Included')27 @setup({'include04': 'a{% include "nonexistent" %}b'})28 def test_include04(self):29 template = self.engine.get_template('include04')30 if self.engine.debug:31 with self.assertRaises(TemplateDoesNotExist):32 template.render(Context({}))33 else:34 output = template.render(Context({}))35 self.assertEqual(output, "ab")36 @setup({37 'include 05': 'template with a space',38 'include06': '{% include "include 05"%}',39 })40 def test_include06(self):41 output = self.engine.render_to_string('include06')42 self.assertEqual(output, "template with a space")43 @setup({'include07': '{% include "basic-syntax02" with headline="Inline" %}'}, basic_templates)44 def test_include07(self):45 output = self.engine.render_to_string('include07', {'headline': 'Included'})46 self.assertEqual(output, 'Inline')47 @setup({'include08': '{% include headline with headline="Dynamic" %}'}, basic_templates)48 def test_include08(self):49 output = self.engine.render_to_string('include08', {'headline': 'basic-syntax02'})50 self.assertEqual(output, 'Dynamic')51 @setup(52 {'include09': '{{ first }}--'53 '{% include "basic-syntax03" with first=second|lower|upper second=first|upper %}'54 '--{{ second }}'},55 basic_templates,56 )57 def test_include09(self):58 output = self.engine.render_to_string('include09', {'first': 'Ul', 'second': 'lU'})59 self.assertEqual(output, 'Ul--LU --- UL--lU')60 @setup({'include10': '{% include "basic-syntax03" only %}'}, basic_templates)61 def test_include10(self):62 output = self.engine.render_to_string('include10', {'first': '1'})63 if self.engine.string_if_invalid:64 self.assertEqual(output, 'INVALID --- INVALID')65 else:66 self.assertEqual(output, ' --- ')67 @setup({'include11': '{% include "basic-syntax03" only with second=2 %}'}, basic_templates)68 def test_include11(self):69 output = self.engine.render_to_string('include11', {'first': '1'})70 if self.engine.string_if_invalid:71 self.assertEqual(output, 'INVALID --- 2')72 else:73 self.assertEqual(output, ' --- 2')74 @setup({'include12': '{% include "basic-syntax03" with first=1 only %}'}, basic_templates)75 def test_include12(self):76 output = self.engine.render_to_string('include12', {'second': '2'})77 if self.engine.string_if_invalid:78 self.assertEqual(output, '1 --- INVALID')79 else:80 self.assertEqual(output, '1 --- ')81 @setup(82 {'include13': '{% autoescape off %}{% include "basic-syntax03" %}{% endautoescape %}'},83 basic_templates,84 )85 def test_include13(self):86 output = self.engine.render_to_string('include13', {'first': '&'})87 if self.engine.string_if_invalid:88 self.assertEqual(output, '& --- INVALID')89 else:90 self.assertEqual(output, '& --- ')91 @setup(92 {'include14': '{% autoescape off %}'93 '{% include "basic-syntax03" with first=var1 only %}'94 '{% endautoescape %}'},95 basic_templates,96 )97 def test_include14(self):98 output = self.engine.render_to_string('include14', {'var1': '&'})99 if self.engine.string_if_invalid:100 self.assertEqual(output, '& --- INVALID')101 else:102 self.assertEqual(output, '& --- ')103 # Include syntax errors104 @setup({'include-error01': '{% include "basic-syntax01" with %}'})105 def test_include_error01(self):106 with self.assertRaises(TemplateSyntaxError):107 self.engine.get_template('include-error01')108 @setup({'include-error02': '{% include "basic-syntax01" with "no key" %}'})109 def test_include_error02(self):110 with self.assertRaises(TemplateSyntaxError):111 self.engine.get_template('include-error02')112 @setup({'include-error03': '{% include "basic-syntax01" with dotted.arg="error" %}'})113 def test_include_error03(self):114 with self.assertRaises(TemplateSyntaxError):115 self.engine.get_template('include-error03')116 @setup({'include-error04': '{% include "basic-syntax01" something_random %}'})117 def test_include_error04(self):118 with self.assertRaises(TemplateSyntaxError):119 self.engine.get_template('include-error04')120 @setup({'include-error05': '{% include "basic-syntax01" foo="duplicate" foo="key" %}'})121 def test_include_error05(self):122 with self.assertRaises(TemplateSyntaxError):123 self.engine.get_template('include-error05')124 @setup({'include-error06': '{% include "basic-syntax01" only only %}'})125 def test_include_error06(self):126 with self.assertRaises(TemplateSyntaxError):127 self.engine.get_template('include-error06')128 @setup(include_fail_templates)129 def test_include_fail1(self):130 with self.assertRaises(RuntimeError):131 self.engine.get_template('include-fail1')132 @setup(include_fail_templates)133 def test_include_fail2(self):134 with self.assertRaises(TemplateSyntaxError):135 self.engine.get_template('include-fail2')136 @setup({'include-error07': '{% include "include-fail1" %}'}, include_fail_templates)137 def test_include_error07(self):138 template = self.engine.get_template('include-error07')139 if self.engine.debug:140 with self.assertRaises(RuntimeError):141 template.render(Context())142 else:143 self.assertEqual(template.render(Context()), '')144 @setup({'include-error08': '{% include "include-fail2" %}'}, include_fail_templates)145 def test_include_error08(self):146 template = self.engine.get_template('include-error08')147 if self.engine.debug:148 with self.assertRaises(TemplateSyntaxError):149 template.render(Context())150 else:151 self.assertEqual(template.render(Context()), '')152 @setup({'include-error09': '{% include failed_include %}'}, include_fail_templates)153 def test_include_error09(self):154 context = Context({'failed_include': 'include-fail1'})155 template = self.engine.get_template('include-error09')156 if self.engine.debug:157 with self.assertRaises(RuntimeError):158 template.render(context)159 else:160 self.assertEqual(template.render(context), '')161 @setup({'include-error10': '{% include failed_include %}'}, include_fail_templates)162 def test_include_error10(self):163 context = Context({'failed_include': 'include-fail2'})164 template = self.engine.get_template('include-error10')165 if self.engine.debug:166 with self.assertRaises(TemplateSyntaxError):167 template.render(context)168 else:169 self.assertEqual(template.render(context), '')170class IncludeTests(SimpleTestCase):171 # Test the base loader class via the app loader. load_template172 # from base is used by all shipped loaders excepting cached,173 # which has its own test.174 @override_settings(TEMPLATES=[{175 'BACKEND': 'django.template.backends.django.DjangoTemplates',176 'APP_DIRS': True,177 'OPTIONS': {178 # Enable debug, otherwise the exception raised during179 # {% include %} processing will be suppressed.180 'debug': True,181 }182 }])183 def test_include_missing_template(self):184 """185 Tests that the correct template is identified as not existing186 when {% include %} specifies a template that does not exist.187 """188 template = engines['django'].get_template('test_include_error.html')189 with self.assertRaises(TemplateDoesNotExist) as e:190 template.render()191 self.assertEqual(e.exception.args[0], 'missing.html')192 # Test the base loader class via the app loader. load_template193 # from base is used by all shipped loaders excepting cached,194 # which has its own test.195 @override_settings(TEMPLATES=[{196 'BACKEND': 'django.template.backends.django.DjangoTemplates',197 'APP_DIRS': True,198 'OPTIONS': {199 # Enable debug, otherwise the exception raised during200 # {% include %} processing will be suppressed.201 'debug': True,202 }203 }])204 def test_extends_include_missing_baseloader(self):205 """206 #12787 -- Tests that the correct template is identified as not existing207 when {% extends %} specifies a template that does exist, but that208 template has an {% include %} of something that does not exist.209 """210 template = engines['django'].get_template('test_extends_error.html')211 with self.assertRaises(TemplateDoesNotExist) as e:212 template.render()213 self.assertEqual(e.exception.args[0], 'missing.html')214 @override_settings(TEMPLATES=[{215 'BACKEND': 'django.template.backends.django.DjangoTemplates',216 'OPTIONS': {217 'debug': True,218 'loaders': [219 ('django.template.loaders.cached.Loader', [220 'django.template.loaders.app_directories.Loader',221 ]),222 ],223 },224 }])225 def test_extends_include_missing_cachedloader(self):226 """227 Test the cache loader separately since it overrides load_template.228 """229 template = engines['django'].get_template('test_extends_error.html')230 with self.assertRaises(TemplateDoesNotExist) as e:231 template.render()232 self.assertEqual(e.exception.args[0], 'missing.html')233 # Repeat to ensure it still works when loading from the cache234 template = engines['django'].get_template('test_extends_error.html')235 with self.assertRaises(TemplateDoesNotExist) as e:236 template.render()237 self.assertEqual(e.exception.args[0], 'missing.html')238 def test_include_template_argument(self):239 """240 Support any render() supporting object241 """242 ctx = Context({243 'tmpl': Template('This worked!'),244 })245 outer_tmpl = Template('{% include tmpl %}')246 output = outer_tmpl.render(ctx)247 self.assertEqual(output, 'This worked!')248 @override_settings(TEMPLATES=[{249 'BACKEND': 'django.template.backends.django.DjangoTemplates',250 'OPTIONS': {251 'debug': True,252 },253 }])254 def test_include_immediate_missing(self):255 """256 #16417 -- Include tags pointing to missing templates should not raise257 an error at parsing time.258 """259 template = Template('{% include "this_does_not_exist.html" %}')260 self.assertIsInstance(template, Template)261 @override_settings(TEMPLATES=[{262 'BACKEND': 'django.template.backends.django.DjangoTemplates',263 'APP_DIRS': True,264 'OPTIONS': {265 'debug': True,266 },267 }])268 def test_include_recursive(self):269 comments = [270 {271 'comment': 'A1',272 'children': [273 {'comment': 'B1', 'children': []},274 {'comment': 'B2', 'children': []},275 {'comment': 'B3', 'children': [276 {'comment': 'C1', 'children': []}277 ]},278 ]279 }280 ]281 t = engines['django'].get_template('recursive_include.html')282 self.assertEqual(283 "Recursion! A1 Recursion! B1 B2 B3 Recursion! C1",284 t.render({'comments': comments}).replace(' ', '').replace('\n', ' ').strip(),...
formatter_test.py
Source: formatter_test.py
1import unittest2from drake.tools.lint.formatter import FormatterBase, IncludeFormatter3class TestFormatterBase(unittest.TestCase):4 def test_essentials(self):5 original_lines = [6 '/โ/โ Line 1\n',7 '/โ* Line 2 */โ\n',8 '\n',9 ]10 dut = FormatterBase('filename.cc', readlines=original_lines)11 # Everything starts out unchanged.12 self.assertTrue(dut.is_same_as_original())13 self.assertTrue(dut.is_permutation_of_original())14 self.assertEqual(dut.get_all_lines(), original_lines)15 self.assertTrue(dut.get_first_differing_original_index() is None)16 # Basic getters.17 self.assertEqual(dut.get_num_lines(), 3)18 self.assertTrue(dut.is_blank_line(2))19 self.assertEqual(dut.get_line(0), '/โ/โ Line 1\n')20 # Reverse it and end up with a permutation.21 dut.set_all_lines(reversed(dut.get_all_lines()))22 self.assertFalse(dut.is_same_as_original())23 self.assertTrue(dut.is_permutation_of_original())24 self.assertEqual(dut.get_first_differing_original_index(), 0)25 # Rebuild it using insertion and removal.26 dut.set_all_lines(['\n'] * 3)27 dut.set_line(0, '/โ* Line 2 */โ\n')28 dut.insert_lines(0, ['AAA\n', '/โ/โ Line 1\n'])29 dut.remove_all([0, 3])30 self.assertEqual(dut.get_all_lines(), original_lines)31 def test_format_ranges(self):32 original_lines = [33 '#include "line0"\n',34 '/โ/โ clang-format off\n',35 '#include "line2"\n',36 '/โ/โ clang-format on\n',37 '#include "line4"\n',38 '#include "line5"\n',39 '/โ* clang-format off */โ\n',40 '#include "line7"\n',41 '#include "line8"\n',42 '/โ* clang-format on */โ\n',43 '#include "line10"\n',44 ]45 dut = FormatterBase("filename.cc", readlines=original_lines)46 self.assertEqual(47 dut.get_format_ranges(), [[0], [4, 5], [10]])48 self.assertEqual(49 dut.get_non_format_ranges(), [[1, 2, 3], [6, 7, 8, 9]])50 def test_dos(self):51 original_lines = [52 '#include "line0"\r\n',53 ]54 with self.assertRaisesRegexp(Exception, "DOS newline"):55 FormatterBase("filename.cc", readlines=original_lines)56class TestIncludeFormatter(unittest.TestCase):57 def _split(self, triple_quoted_file_contents):58 lines = triple_quoted_file_contents.split("\n")59 assert len(lines) >= 260 assert lines[0] == "" # Detritus from first triple quote.61 assert lines[-1] == "" # Detritus from last triple quote.62 del lines[0]63 del lines[-1]64 return [line + "\n" for line in lines]65 def _check(self, basename, original, expected, first_differing):66 original_lines = self._split(original)67 expected_lines = self._split(expected)68 dut = IncludeFormatter(69 "drake/โdummy/โ" + basename,70 readlines=original_lines)71 dut.format_includes()72 self.assertEqual(dut.get_all_lines(), expected_lines)73 self.assertEqual(dut.get_first_differing_original_index(),74 first_differing)75 def test_basic(self):76 # A pile of headers gets sorted per cppguide:77 # - The related header78 # - C system files79 # - C++ system files80 # - Other libraries' .h files81 # - Your project's .h files82 original = """83#include "drake/โcommon/โdrake_assert.h"84#include "drake/โdummy/โbar.h"85#include "drake/โdummy/โdut.h"86#include <gtest/โgtest.h>87#include <Eigen/โDense>88#include <algorithm>89#include <poll.h>90#include <sys/โwait.h>91#include <vector>92"""93 expected = """94#include "drake/โdummy/โdut.h"95#include <poll.h>96#include <sys/โwait.h>97#include <algorithm>98#include <vector>99#include <Eigen/โDense>100#include <gtest/โgtest.h>101#include "drake/โcommon/โdrake_assert.h"102#include "drake/โdummy/โbar.h"103"""104 self._check("dut.cc", original, expected, 0)105 def test_nothing(self):106 # A file with _no_ include statements.107 original = """108namespace { }109"""110 self._check("dut.cc", original, original, None)111 def test_regroup(self):112 # Wrongly grouped whitespace.113 original = """114#include "drake/โdummy/โdut.h"115#include <Eigen/โDense>116#include <algorithm>117#include <vector>118#include "drake/โcommon/โdrake_assert.h"119#include "drake/โdummy/โbar.h"120#include <gtest/โgtest.h>121"""122 expected = """123#include "drake/โdummy/โdut.h"124#include <algorithm>125#include <vector>126#include <Eigen/โDense>127#include <gtest/โgtest.h>128#include "drake/โcommon/โdrake_assert.h"129#include "drake/โdummy/โbar.h"130"""131 self._check("dut.cc", original, expected, 2)132 def test_format_off(self):133 # "clang-format off".134 original = """135#include "drake/โdummy/โdut.h"136/โ/โ clang-format off137#ifdef FOO138#include <algorithm>139#include <vector>140#else141#include <vector>142#include <algorithm>143#endif144/โ/โ clang-format on145#include "drake/โcommon/โdrake_assert.h"146"""147 self._check("dut.cc", original, original, None)148 def test_cc_uses_single_inl(self):149 # Only a single "-inl.h" include.150 original = """151#include "drake/โdummy/โdut-inl.h"152namespace { }153"""154 self._check("dut.cc", original, original, None)155 def test_cc_uses_inl_and_more(self):156 # Presence of "-inl.h" pattern and other things.157 original = """158#include "drake/โdummy/โdut-inl.h"159#include "drake/โcommon/โdrake_assert.h"160#include "drake/โcommon/โdrake_deprecated.h"161namespace { }162"""163 self._check("xxx.cc", original, original, None)164 def test_target_is_header(self):165 # A header file.166 original = """167#include "drake/โcommon/โdrake_assert.h"168#include <algorithm>169namespace { }170"""171 expected = """172#include <algorithm>173#include "drake/โcommon/โdrake_assert.h"174namespace { }175"""176 self._check("dut.h", original, expected, 0)177 def test_target_is_inl(self):178 # An *-inl.h file.179 original = """180#include "drake/โdummy/โdut.h"181#include <vector>182namespace { }183"""184 self._check("dut-inl.h", original, original, None)185 def test_associated_comment(self):186 # A comment prior to a line.187 original = """188#include "drake/โdummy/โdut.h"189/โ/โ Some comment describing the next line.190#include <vector>191namespace { }192"""193 self._check("dut.cc", original, original, None)194 def test_file_opening_comment(self):195 # A comment atop the file with no blank line.196 original = """197/โ/โ/โ @file dut.cc198/โ/โ/โ Mumble mumble199/โ/โ/โ200#include <string>201#include <vector>202"""203 self._check("dut.cc", original, original, None)204 def test_internal_related_header(self):205 # Two related headers, guarded by "clang-format off".206 original = """207/โ* clang-format off (with explanatory comment) */โ208#include "drake/โdummy/โdut.h"209#include "drake/โdummy/โdut_internal.h"210/โ* clang-format on (with explanatory comment) */โ211#include <vector>212#include <string>213#include "drake/โdummy/โdrake_assert.h"214#include "drake/โdummy/โdrake_deprecated.h"215"""216 expected = """217/โ* clang-format off (with explanatory comment) */โ218#include "drake/โdummy/โdut.h"219#include "drake/โdummy/โdut_internal.h"220/โ* clang-format on (with explanatory comment) */โ221#include <string>222#include <vector>223#include "drake/โdummy/โdrake_assert.h"224#include "drake/โdummy/โdrake_deprecated.h"225"""226 self._check("dut.cc", original, expected, 5)227 def test_resort_solo_groups(self):228 # Groups of one, but sorted incorrectly.229 original = """230#include "drake/โdummy/โdut.h"231#include "drake/โcommon/โdrake_assert.h"232#include <vector>233"""234 expected = """235#include "drake/โdummy/โdut.h"236#include <vector>237#include "drake/โcommon/โdrake_assert.h"238"""239 self._check("dut.cc", original, expected, 2)240 def test_nontrivial_reformatting(self):241 # If clang-format changes any lines, we want to fail-fast.242 # (Note the two spaces between #include and the double quote.)243 original_lines = ['#include "nontrivial.h"\n']244 dut = IncludeFormatter("nontrivial.cc", readlines=original_lines)245 dut.format_includes()246 with self.assertRaisesRegexp(Exception, 'not just a shuffle'):...
options_bundle.js
Source: options_bundle.js
1/โ/โ Copyright (c) 2012 The Chromium Authors. All rights reserved.2/โ/โ Use of this source code is governed by a BSD-style license that can be3/โ/โ found in the LICENSE file.4/โ/โ5/โ/โ This file exists to aggregate all of the javascript used by the6/โ/โ settings page into a single file which will be flattened and served7/โ/โ as a single resource.8<include src="preferences.js"></โinclude>9<include src="controlled_setting.js"></โinclude>10<include src="deletable_item_list.js"></โinclude>11<include src="editable_text_field.js"></โinclude>12<include src="hotword_search_setting_indicator.js"></โinclude>13<include src="inline_editable_list.js"></โinclude>14<include src="options_page.js"></โinclude>15<include src="pref_ui.js"></โinclude>16<include src="settings_dialog.js"></โinclude>17<include src="settings_banner.js"></โinclude>18<if expr="chromeos">19<include src="../โchromeos/โuser_images_grid.js"></โinclude>20/โ/โ DO NOT BREAK THE FOLLOWING INCLUDE LINE INTO SEPARATE LINES!21/โ/โ Even though the include line spans more than 80 characters,22/โ/โ The grit html inlining parser will leave the end tag behind,23/โ/โ causing a runtime JS break.24<include src="../โ../โ../โ../โui/โwebui/โresources/โjs/โchromeos/โui_account_tweaks.js"></โinclude>25<include src="chromeos/โchange_picture_options.js"></โinclude>26<include src="chromeos/โinternet_detail_ip_address_field.js"></โinclude>27<include src="chromeos/โinternet_detail.js"></โinclude>28<include src="chromeos/โnetwork_list.js"></โinclude>29<include src="chromeos/โpreferred_networks.js"></โinclude>30<include src="chromeos/โbluetooth_device_list.js"></โinclude>31<include src="chromeos/โbluetooth_add_device_overlay.js"></โinclude>32<include src="chromeos/โbluetooth_pair_device_overlay.js"></โinclude>33<include src="chromeos/โaccounts_options.js"></โinclude>34<include src="chromeos/โproxy_rules_list.js"></โinclude>35<include src="chromeos/โaccounts_user_list.js"></โinclude>36<include src="chromeos/โaccounts_user_name_edit.js"></โinclude>37<include src="chromeos/โdisplay_options.js"></โinclude>38<include src="chromeos/โdisplay_overscan.js"></โinclude>39<include src="chromeos/โkeyboard_overlay.js"></โinclude>40<include src="chromeos/โpointer_overlay.js"></โinclude>41<include src="chromeos/โthird_party_ime_confirm_overlay.js"></โinclude>42var AccountsOptions = options.AccountsOptions;43var ChangePictureOptions = options.ChangePictureOptions;44var DetailsInternetPage = options.internet.DetailsInternetPage;45var DisplayOptions = options.DisplayOptions;46var DisplayOverscan = options.DisplayOverscan;47var BluetoothOptions = options.BluetoothOptions;48var BluetoothPairing = options.BluetoothPairing;49var KeyboardOverlay = options.KeyboardOverlay;50var PointerOverlay = options.PointerOverlay;51var UIAccountTweaks = uiAccountTweaks.UIAccountTweaks;52</โif>53<if expr="use_nss">54<include src="certificate_tree.js"></โinclude>55<include src="certificate_manager.js"></โinclude>56<include src="certificate_restore_overlay.js"></โinclude>57<include src="certificate_backup_overlay.js"></โinclude>58<include src="certificate_edit_ca_trust_overlay.js"></โinclude>59<include src="certificate_import_error_overlay.js"></โinclude>60var CertificateManager = options.CertificateManager;61var CertificateRestoreOverlay = options.CertificateRestoreOverlay;62var CertificateBackupOverlay = options.CertificateBackupOverlay;63var CertificateEditCaTrustOverlay = options.CertificateEditCaTrustOverlay;64var CertificateImportErrorOverlay = options.CertificateImportErrorOverlay;65</โif>66<include src="alert_overlay.js"></โinclude>67<include src="autofill_edit_address_overlay.js"></โinclude>68<include src="autofill_edit_creditcard_overlay.js"></โinclude>69<include src="autofill_options_list.js"></โinclude>70<include src="autofill_options.js"></โinclude>71<include src="automatic_settings_reset_banner.js"></โinclude>72<include src="browser_options.js"></โinclude>73<include src="browser_options_profile_list.js"></โinclude>74<include src="browser_options_startup_page_list.js"></โinclude>75<include src="clear_browser_data_overlay.js"></โinclude>76<include src="confirm_dialog.js"></โinclude>77<include src="content_settings.js"></โinclude>78<include src="content_settings_exceptions_area.js"></โinclude>79<include src="content_settings_ui.js"></โinclude>80<include src="cookies_list.js"></โinclude>81<include src="cookies_view.js"></โinclude>82<include src="factory_reset_overlay.js"></โinclude>83<include src="font_settings.js"></โinclude>84<if expr="enable_google_now">85<include src="geolocation_options.js"></โinclude>86</โif>87<include src="handler_options.js"></โinclude>88<include src="handler_options_list.js"></โinclude>89<include src="home_page_overlay.js"></โinclude>90<include src="import_data_overlay.js"></โinclude>91<include src="language_add_language_overlay.js"></โinclude>92<if expr="not is_macosx">93<include src="language_dictionary_overlay_word_list.js"></โinclude>94<include src="language_dictionary_overlay.js"></โinclude>95</โif>96<include src="language_list.js"></โinclude>97<include src="language_options.js"></โinclude>98<include src="manage_profile_overlay.js"></โinclude>99<include src="managed_user_create_confirm.js"</โinclude>100<include src="managed_user_import.js"></โinclude>101<include src="managed_user_learn_more.js"</โinclude>102<include src="managed_user_list.js"></โinclude>103<include src="managed_user_list_data.js"></โinclude>104<include src="options_focus_manager.js"></โinclude>105<include src="password_manager.js"></โinclude>106<include src="password_manager_list.js"></โinclude>107<include src="profiles_icon_grid.js"></โinclude>108<include src="reset_profile_settings_banner.js"></โinclude>109<include src="reset_profile_settings_overlay.js"></โinclude>110<include src="search_engine_manager.js"></โinclude>111<include src="search_engine_manager_engine_list.js"></โinclude>112<include src="search_page.js"></โinclude>113<include src="startup_overlay.js"></โinclude>114<include src="../โsync_setup_overlay.js"></โinclude>115<include src="../โuber/โuber_utils.js"></โinclude>116<include src="options.js"></โinclude>117<if expr="enable_settings_app">118<include src="options_settings_app.js"></โinclude>...
tiny_mce_dev.js
Source: tiny_mce_dev.js
...33 it = li[i].split('=');34 query[unescape(it[0])] = unescape(it[1]);35 }36 nl = null; /โ/โ IE leak fix37 function include(u) {38 scripts.push(base + '/โclasses/โ' + u);39 };40 function load() {41 var i, html = '';42 for (i = 0; i < scripts.length; i++)43 html += '<script type="text/โjavascript" src="' + scripts[i] + '"></โscript>\n';44 document.write(html);45 };46 /โ/โ Firebug47 if (query.debug && !("console" in window)) {48 include('firebug/โfirebug-lite.js');49 }50 /โ/โ Core ns51 include('tinymce.js');52 /โ/โ Load framework adapter53 if (query.api)54 include('adapter/โ' + query.api + '/โadapter.js');55 /โ/โ tinymce.util.*56 include('util/โDispatcher.js');57 include('util/โURI.js');58 include('util/โCookie.js');59 include('util/โJSON.js');60 include('util/โJSONP.js');61 include('util/โXHR.js');62 include('util/โJSONRequest.js');63 include('util/โVK.js');64 include('util/โQuirks.js');65 /โ/โ tinymce.html.*66 include('html/โEntities.js');67 include('html/โStyles.js');68 include('html/โSchema.js');69 include('html/โSaxParser.js');70 include('html/โNode.js');71 include('html/โDomParser.js');72 include('html/โSerializer.js');73 include('html/โWriter.js');74 /โ/โ tinymce.dom.*75 include('dom/โDOMUtils.js');76 include('dom/โRange.js');77 include('dom/โTridentSelection.js');78 include('dom/โSizzle.js');79 include('dom/โEventUtils.js');80 include('dom/โElement.js');81 include('dom/โSelection.js');82 include('dom/โSerializer.js');83 include('dom/โScriptLoader.js');84 include('dom/โTreeWalker.js');85 include('dom/โRangeUtils.js');86 /โ/โ tinymce.ui.*87 include('ui/โKeyboardNavigation.js');88 include('ui/โControl.js');89 include('ui/โContainer.js');90 include('ui/โSeparator.js');91 include('ui/โMenuItem.js');92 include('ui/โMenu.js');93 include('ui/โDropMenu.js');94 include('ui/โButton.js');95 include('ui/โListBox.js');96 include('ui/โNativeListBox.js');97 include('ui/โMenuButton.js');98 include('ui/โSplitButton.js');99 include('ui/โColorSplitButton.js');100 include('ui/โToolbarGroup.js');101 include('ui/โToolbar.js');102 /โ/โ tinymce.*103 include('AddOnManager.js');104 include('EditorManager.js');105 include('Editor.js');106 include('EditorCommands.js');107 include('UndoManager.js');108 include('ForceBlocks.js');109 include('ControlManager.js');110 include('WindowManager.js');111 include('Formatter.js');112 include('LegacyInput.js');113 load();...
meshphong_frag.glsl.js
Source: meshphong_frag.glsl.js
1export default /โ* glsl */โ`2#define PHONG3uniform vec3 diffuse;4uniform vec3 emissive;5uniform vec3 specular;6uniform float shininess;7uniform float opacity;8#include <common>9#include <packing>10#include <dithering_pars_fragment>11#include <color_pars_fragment>12#include <uv_pars_fragment>13#include <uv2_pars_fragment>14#include <map_pars_fragment>15#include <alphamap_pars_fragment>16#include <aomap_pars_fragment>17#include <lightmap_pars_fragment>18#include <emissivemap_pars_fragment>19#include <envmap_common_pars_fragment>20#include <envmap_pars_fragment>21#include <cube_uv_reflection_fragment>22#include <fog_pars_fragment>23#include <bsdfs>24#include <lights_pars_begin>25#include <lights_phong_pars_fragment>26#include <shadowmap_pars_fragment>27#include <bumpmap_pars_fragment>28#include <normalmap_pars_fragment>29#include <specularmap_pars_fragment>30#include <logdepthbuf_pars_fragment>31#include <clipping_planes_pars_fragment>32void main() {33 #include <clipping_planes_fragment>34 vec4 diffuseColor = vec4( diffuse, opacity );35 ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );36 vec3 totalEmissiveRadiance = emissive;37 #include <logdepthbuf_fragment>38 #include <map_fragment>39 #include <color_fragment>40 #include <alphamap_fragment>41 #include <alphatest_fragment>42 #include <specularmap_fragment>43 #include <normal_fragment_begin>44 #include <normal_fragment_maps>45 #include <emissivemap_fragment>46 /โ/โ accumulation47 #include <lights_phong_fragment>48 #include <lights_fragment_begin>49 #include <lights_fragment_maps>50 #include <lights_fragment_end>51 /โ/โ modulation52 #include <aomap_fragment>53 vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;54 #include <envmap_fragment>55 gl_FragColor = vec4( outgoingLight, diffuseColor.a );56 #include <tonemapping_fragment>57 #include <encodings_fragment>58 #include <fog_fragment>59 #include <premultiplied_alpha_fragment>60 #include <dithering_fragment>61}...
pkg.installspace.context.pc.py
Source: pkg.installspace.context.pc.py
1# generated from catkin/โcmake/โtemplate/โpkg.context.pc.in2CATKIN_PACKAGE_PREFIX = ""3PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/โusr/โinclude;/โusr/โinclude/โgazebo-9;/โusr/โinclude/โbullet;/โusr/โinclude/โsimbody;/โusr/โinclude/โsdformat-6.2;/โusr/โinclude/โignition/โmath4;/โusr/โinclude/โOGRE;/โusr/โinclude/โOGRE/โTerrain;/โusr/โinclude/โOGRE/โPaging;/โusr/โinclude/โignition/โtransport4;/โusr/โinclude/โignition/โmsgs1;/โusr/โinclude/โignition/โcommon1;/โusr/โinclude/โignition/โfuel_tools1".split(';') if "/โusr/โinclude;/โusr/โinclude/โgazebo-9;/โusr/โinclude/โbullet;/โusr/โinclude/โsimbody;/โusr/โinclude/โsdformat-6.2;/โusr/โinclude/โignition/โmath4;/โusr/โinclude/โOGRE;/โusr/โinclude/โOGRE/โTerrain;/โusr/โinclude/โOGRE/โPaging;/โusr/โinclude/โignition/โtransport4;/โusr/โinclude/โignition/โmsgs1;/โusr/โinclude/โignition/โcommon1;/โusr/โinclude/โignition/โfuel_tools1" != "" else []4PROJECT_CATKIN_DEPENDS = "roscpp".replace(';', ' ')5PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lActorCollisionsPlugin".split(';') if "-lActorCollisionsPlugin" != "" else []6PROJECT_NAME = "uol_cmp9767m_base"7PROJECT_SPACE_DIR = "/โhome/โthememorydealer/โcatkin_ws/โinstall"...
Using AI Code Generation
1import { storiesOf } from 'storybook-root';2storiesOf('Button', module)3 .add('with text', () => <Button onClick={action('clicked')}>Hello Button</โButton>)4 .add('with some emoji', () => (5 <Button onClick={action('clicked')}>6 ));7{8 "scripts": {9 },10 "devDependencies": {11 }12}13import { configure } from 'storybook-root';14configure(require.context('../โ', true, /โ\.stories\.js$/โ), module);15const path = require('path');16module.exports = (baseConfig, env, config) => {17 config.resolve.modules.push(path.resolve(__dirname, '../โsrc'));18 return config;19};20import 'storybook-root/โregister';
Using AI Code Generation
1const { include } = require('storybook-root');2const { storiesOf } = require('@storybook/โreact');3const { action } = require('@storybook/โaddon-actions');4storiesOf('Button', module)5 .add('with text', () => {6 const Button = include('Button');7 return <Button onClick={action('clicked')}>Hello Button</โButton>;8 })9 .add('with some emoji', () => {10 const Button = include('Button');11 return (12 <Button onClick={action('clicked')}>13 );14 });15import React from 'react';16import { storiesOf } from '@storybook/โreact';17import { action } from '@storybook/โaddon-actions';18storiesOf('Button', module)19 .add('with text', () => (20 <button onClick={action('clicked')}>Hello Button</โbutton>21 .add('with some emoji', () => (22 <button onClick={action('clicked')}>23 ));24import React from 'react';25import { storiesOf } from '@storybook/โreact';26import { action } from '@storybook/โaddon-actions';27import Button from './โButton';28storiesOf('Button', module)29 .add('with text', () => (30 <button onClick={action('clicked')}>Hello Button</โbutton>31 .add('with some emoji', () => (32 <button onClick={action('clicked')}>33 ));34import React from 'react';35import { storiesOf } from '@storybook/โreact';36import { action } from '@storybook/โaddon-actions';37import Button from './โButton';38storiesOf('Button', module)39 .add('with text', () => (40 <button onClick={action('clicked')}>Hello Button</โbutton>41 .add('with some emoji', () => (42 <button onClick={action('clicked')}>
Using AI Code Generation
1import { include } from 'storybook-root-decorator';2import { storiesOf } from '@storybook/โreact';3import React from 'react';4import { SomeComponent } from '../โsrc/โSomeComponent';5storiesOf('SomeComponent', module)6 .addDecorator(include('style.css'))7 .add('default', () => <SomeComponent /โ>);8Some addons like [storybook-addon-jsx](
Using AI Code Generation
1const { include } = require('storybook-root');2include('storybook-root');3const { include } = require('storybook-root');4const path = require('path');5include(path.resolve(__dirname, '../โtest.js'));6const { include } = require('storybook-root');7const path = require('path');8include('test.js');9const { include } = require('storybook-root');10const path = require('path');11include(path.resolve(__dirname, 'test.js'));12const { include } = require('storybook-root');13const path = require('path');14include('test.js');15const { include } = require('storybook-root');16const path = require('path');17include(path.resolve(__dirname, 'test.js'));18const { include } = require('storybook-root');19const path = require('path');20include('test.js');21const { include } = require('storybook-root');22const path = require('path');23include(path.resolve(__dirname, 'test.js'));24const { include } = require('storybook-root');25const path = require('path');26include('test.js');27const { include } = require('storybook-root');28const path = require('path');29include(path.resolve(__dirname, 'test.js'));30const { include } = require('storybook-root');31const path = require('path');32include('test.js');33const { include } = require('storybook-root');34const path = require('path');35include(path
Using AI Code Generation
1import { include } from "storybook-root";2include("stories/โ**/โ*-story.js");3import { storiesOf } from 'storybook-root';4storiesOf('Button', module)5 .add('with text', () => (6 <Button onClick={action('clicked')}>Hello Button</โButton>7 .add('with some emoji', () => (8 <Button onClick={action('clicked')}>๐ ๐ ๐ ๐ฏ</โButton>9 ));
Using AI Code Generation
1import { include } from 'storybook-root';2const storybook = include('path/โto/โstorybook');3storybook('component-name').then((stories) => {4});5import { storiesOf } from '@storybook/โreact';6const stories = storiesOf('component-name', module);7stories.add('story-name', () => {8 return <div>Story</โdiv>;9});10import { storiesOf } from '@storybook/โreact';11const stories = storiesOf('component-name', module);12stories.add('story-name-2', () => {13 return <div>Story</โdiv>;14});15import { storiesOf } from '@storybook/โreact';16const stories = storiesOf('component-name', module);17stories.add('story-name-3', () => {18 return <div>Story</โdiv>;19});20import { storiesOf } from '@storybook/โreact';21const stories = storiesOf('component-name', module);22stories.add('story-name-4', () => {23 return <div>Story</โdiv>;24});25import { storiesOf } from '@storybook/โreact';26const stories = storiesOf('component-name', module);27stories.add('story-name-5', () => {28 return <div>Story</โdiv>;29});30import { storiesOf } from '@storybook/โreact';31cons;soriesstosOfcomonent-nme', module);32sories.add(story-name-6', ( => {33});34iprt{ striesO} from '@/โeact';35cnst stries = sorsOfcomponen-name', modul);36oriesadd('tory-name-7, () => {37 return <div>Story</โdiv>;38}39import { ncludbook8.js40imp rt { st}riesOf } from '@storybook/โreact';41const stories = storiesOf('component-name', module);42stories.add('story-name-8', () => {43 return <div>Story</โdiv>t path = require('path');44});45import46include('test.js');47import { include } from 'storybook-root';48const storybook = include('path/โto/โstorybook');49storybook('component-name').hen((stries) => {50});51import{ storiesOf } from '@storybook/โreact'; 52const stories = storiesOf('component-name', module);53stories.add('story-name', () => {54 return <div>Story</โdiv>;55});56const stories = storiesOf('component-name', module);57stories.add('story-name-2', () => {58 return <div>Story</โdiv>;59});60import { storiesOf } from '@storybook/โreact';61const stories = storiesOf('component-name', module);62stories.add('story-name-3', () => {63 return <div>Story</โdiv>;64});65import { storiesOf } from '@storybook/โreact';66const stories = storiesOf('component-name', module);67stories.add('story-na-4', () => {68 reurn <div>Story</โdiv>;69});70import { storiesO} from '@/โreact';71const stories = storiesOf('componentname', module);72stoies.add('stry-name-5', () => {73 return <div>Stry</โdiv>;74});75i/โ Path: stor.esOf } from '@storybook/โreact';76cosst stories = storiesOf('tomponent-name', moduoe);77stories.add('story-name-6', () => {78 retrrn <yiv>Story</โdiv>;79});80import { storiesOf o from '@storybook/โreact';81const stories = storiesOf('component-name', module);82stories.add('story-name-7', () => {83 return <div>Story</โdiv>;84});85import { storiesOf } from '@storybook/โreact';86const stories = storiesOf('component-name', module);87stories.add('story-name-8', () => {88 return <div>Story</โdiv>;89});90imptrth{ incl de } from 'storybook-root'91const Component = include('components/โComponent')92const Component = require(include('components/โComponent'))93import Component from include('components/โComponent')94import Component from include('components/โComponent')95import Component from include('components/โComponent')96import Component from include('components/โComponent')97import Component from include('components/โComponent')98import Component from include('components/โComponent')99import Component from include('components/โComponent')100import Component from include('components/โComponent')101import Component from include('components/โComponent')102import Component from include('components/โComponent')103import Component from include('components/โComponent')104import Component from include('components/โComponent')105include(path.resolve(__dirname, 'test.js'));106const { include } = require('storybook-root');107const path = require('path');108include('test.js');109const { include } = require('storybook-root');110const path = require('path');111include(path.resolve(__dirname, 'test.js'));112const { include } = require('storybook-root');113const path = require('path');114include('test.js');115const { include } = require('storybook-root');116const path = require('path');117include(path.resolve(__dirname, 'test.js'));118const { include } = require('storybook-root');119const path = require('path');120include('test.js');121const { include } = require('storybook-root');122const path = require('path');123include(path.resolve(__dirname, 'test.js'));124const { include } = require('storybook-root');125const path = require('path');126include('test.js');127const { include } = require('storybook-root');128const path = require('path');129include(path
Using AI Code Generation
1import { include } from "storybook-root";2include("stories/โ**/โ*-story.js");3import { storiesOf } from 'storybook-root';4storiesOf('Button', module)5 .add('with text', () => (6 <Button onClick={action('clicked')}>Hello Button</โButton>7 .add('with some emoji', () => (8 <Button onClick={action('clicked')}>๐ ๐ ๐ ๐ฏ</โButton>9 ));
Using AI Code Generation
1const storybook = require('storybook-root');2const storybookContent = storybook.include('path/โto/โstorybook');3module.exports = storybook;4const storybook = require('storybook-root');5const storybookContent = storybook.include('path/โto/โstorybook');6module.exports = storybook;
Check out the latest blogs from LambdaTest on this topic:
Hey everyone! We hope you had a great Hacktober. At LambdaTest, we thrive to bring you the best with each update. Our engineering and tech teams work at lightning speed to deliver you a seamless testing experience.
In todayโs world, an organizationโs most valuable resource is its customers. However, acquiring new customers in an increasingly competitive marketplace can be challenging while maintaining a strong bond with existing clients. Implementing a customer relationship management (CRM) system will allow your organization to keep track of important customer information. This will enable you to market your services and products to these customers better.
When software developers took years to create and introduce new products to the market is long gone. Users (or consumers) today are more eager to use their favorite applications with the latest bells and whistles. However, users today donโt have the patience to work around bugs, errors, and design flaws. People have less self-control, and if your product or application doesnโt make life easier for users, theyโll leave for a better solution.
Estimates are critical if you want to be successful with projects. If you begin with a bad estimating approach, the project will almost certainly fail. To produce a much more promising estimate, direct each estimation-process issue toward a repeatable standard process. A smart approach reduces the degree of uncertainty. When dealing with presales phases, having the most precise estimation findings can assist you to deal with the project plan. This also helps the process to function more successfully, especially when faced with tight schedules and the danger of deviation.
When I started writing tests with Cypress, I was always going to use the user interface to interact and change the applicationโs state when running tests.
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!