Home
last modified time | relevance | path

Searched +full:helper +full:- +full:module +full:- +full:imports (Results 1 – 25 of 219) sorted by relevance

123456789

/external/python/cpython3/Lib/test/test_importlib/
Dthreaded_import_hangers.py1 # This is a helper module for test_threaded_import. The test imports this
2 # module, and this module tries to run various Python library functions in
5 # is appended to the module-global `errors` list. That list remains empty
18 # this module holds the import lock, so if the function called by T tries
19 # to do its own imports it will block waiting for this module's import
Dtest_threaded_import.py3 # trying to import the same module "at the same time".
4 # There are no pleasant failure modes -- most likely is that Python
5 # complains several times about module random having no attribute
22 threading_helper.requires_working_threading(module=True)
45 # bpo-30599: Mock os.register_at_fork() when importing the random module,
50 # Create a circular import structure: A -> C -> B -> D -> A
80 # Simulate some thread-unsafe behaviour. If calls to find_spec()
104 # If the `random` module was already initialized, we restore the
105 # old module at the end so that pickling tests don't fail.
135 dt = time.monotonic() - t0
[all …]
/external/python/cpython2/Lib/test/
Dthreaded_import_hangers.py1 # This is a helper module for test_threaded_import. The test imports this
2 # module, and this module tries to run various Python library functions in
5 # is appended to the module-global `errors` list. That list remains empty
18 # this module holds the import lock, so if the function called by T tries
19 # to do its own imports it will block waiting for this module's import
Dtest_threaded_import.py3 # trying to import the same module "at the same time".
4 # There are no pleasant failure modes -- most likely is that Python
5 # complains several times about module random having no attribute
20 N -= 1
41 # In case this test is run again, make sure the helper module
45 # Tricky: When regrtest imports this module, the thread running regrtest
46 # grabs the import lock and won't let go of it until this module returns.
49 # successfully until after this module finishes importing and regrtest
51 # regrtest to invoke a module's "test_main" function (if any) after
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/xds_k8s_test_driver/bin/
Disort.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -eo pipefail
20 A helper to run isort import sorter.
22 USAGE: $0 [--diff]
23 --diff: Do not apply changes, only show the diff
30 $0 --diff
35 if [[ "$1" == "-h" || "$1" == "--help" ]]; then
39 SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
49 if [[ "$1" == "--diff" ]]; then
50 readonly MODE="--diff"
[all …]
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_function_importer.h7 http://www.apache.org/licenses/LICENSE-2.0
22 #include "mlir/Dialect/Arithmetic/IR/Arithmetic.h" // from @llvm-project
23 #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project
24 #include "mlir/IR/Attributes.h" // from @llvm-project
25 #include "mlir/IR/Builders.h" // from @llvm-project
26 #include "mlir/IR/BuiltinOps.h" // from @llvm-project
27 #include "mlir/IR/BuiltinTypes.h" // from @llvm-project
28 #include "mlir/IR/MLIRContext.h" // from @llvm-project
31 #include "tensorflow/compiler/xla/mlir_hlo/include/mlir-hlo/Dialect/mhlo/IR/hlo_ops.h"
49 // Helper class for importing HloComputations.
[all …]
/external/python/absl-py/absl/flags/
D__init__.py7 # http://www.apache.org/licenses/LICENSE-2.0
16 This package defines a *distributed* flag-definition policy: rather than
18 module defines flags that are useful to it. When one Python module
19 imports another, it gains access to the other's flags. (This is
25 and optionally type-converted, when it's seen on the command line.
77 # Module exceptions.
109 # Helper functions.
122 # Add current module to disclaimed module ids.
125 # DEFINE functions. They are explained in more details in the module doc string.
126 # pylint: disable=invalid-name
[all …]
/external/bazelbuild-rules_python/python/pip_install/
Dpip_repository.bzl7 # http://www.apache.org/licenses/LICENSE-2.0
36 """Helper function to construct a PYTHONPATH.
58 """A helper function for getting the `python_interpreter` attribute or it's default
75 """Helper function to find the python interpreter from the common attributes
105 otherwise. See https://github.com/indygreg/python-build-standalone/issues/103
112 xcode_sdk_location = rctx.execute([which_with_fail("xcode-select", rctx), "--print-path"])
123 "-isysroot {}/SDKs/MacOSX.sdk".format(xcode_root),
130 otherwise. See https://github.com/indygreg/python-build-standalone/issues/103
143 "-c",
154 return ["-isystem {}".format(include_path)]
[all …]
/external/bazel-skylib/
DCHANGELOG.md4 * Fix distribution tarballs to include directory rules. (https://github.com/bazelbuild/bazel-skylib…
6 **Full Changelog**: https://github.com/bazelbuild/bazel-skylib/compare/1.7.0...1.7.1
11 * Implement `directory` rules by @matts1 in https://github.com/bazelbuild/bazel-skylib/pull/510
12 … Add `is_normalized` and `starts_with` to paths module by @comius in https://github.com/bazelbuild…
15 * @matts1 made their first contribution in https://github.com/bazelbuild/bazel-skylib/pull/510
17 **Full Changelog**: https://github.com/bazelbuild/bazel-skylib/compare/1.6.1...1.7.0
23 * Fix `modules` Bazel 6 compatibility by @phst in https://github.com/bazelbuild/bazel-skylib/pull/4…
26 * @phst made their first contribution in https://github.com/bazelbuild/bazel-skylib/pull/499
28 **Full Changelog**: https://github.com/bazelbuild/bazel-skylib/compare/1.6.0...1.6.1
33 * Add helper functions for module extensions as `modules` by @fmeum in https://github.com/bazelbuil…
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_searchengine.py12 # With mock replacements, the module does not use any gui widgets.
16 # The tkinter imports are used to restore searchengine.
19 # Replace s-e module tkinter imports other than non-gui TclError.
38 se.SearchEngine = Mock # monkey-patch class
46 se.SearchEngine = saved_Engine # restore class to module
49 # Test simple text-independent helper function
58 # Test text-dependent helper function.
93 # Test helper function that searches backwards within a line.
189 pat = '[a-z'
194 expected_message = ("Error: " + msg + "\nPattern: [a-z")
[all …]
/external/python/cpython2/Lib/
Dwarnings.py3 # Note: function level imports should *not* be used
4 # in this module as it may cause import lock deadlock.
18 Warnings are omitted unless Python is started with the -3 option.
30 # sys.stderr is None - warnings get lost
35 pass # the file (probably stderr) is invalid - this warning gets lost.
67 def filterwarnings(action, message="", category=Warning, module="", lineno=0, argument
71 'action' -- one of "error", "ignore", "always", "default", "module",
73 'message' -- a regex that the warning message must match
74 'category' -- a class that the warning must be a subclass of
75 'module' -- a regex that the module name must match
[all …]
Dpyclbr.py1 """Parse a Python module and describe its classes and methods.
3 Parse enough of a Python file to recognize imports and class and
7 readmodule_ex(module [, path])
8 where module is the name of a Python module, and path is an optional
9 list of directories where the module is to be searched. If present,
12 the classes defined in the module (including classes that are defined
18 A class is described by the class Class in this module. Instances
20 module -- the module name
21 name -- the name of the class
22 super -- a list of super classes (Class instances)
[all …]
/external/llvm/tools/llvm-link/
Dllvm-link.cpp1 //===- llvm-link.cpp - Low-level LLVM linker ------------------------------===//
8 //===----------------------------------------------------------------------===//
11 // llvm-link a.bc b.bc c.bc -o x.bc
13 //===----------------------------------------------------------------------===//
21 #include "llvm/IR/Module.h"
52 // llvm-link to simulate ThinLTO backend processes.
53 static cl::list<std::string> Imports( variable
58 // Option to support testing of function importing. The module summary
59 // must be specified in the case were we request imports via the -import
60 // option, as well as when compiling any module with functions that may be
[all …]
/external/kotlinpoet/docs/
Dchangelog.md10 _2024-01-18_
13 * New: KSP 1.9.22-1.0.16.
14 * New: Add `NameAllocator` API to control keyword pre-allocation (#1803).
16 * Fix: Honour same-package import aliases (#1794).
23 _2023-12-04_
31 _2023-11-30_
34 * New: KSP 1.9.21-1.0.15.
39 _2023-11-19_
46 _2023-11-18_
51 In this release the `:kotlinpoet` module has been converted to a Kotlin Multiplatform module
[all …]
/external/angle/build/
Dprint_python_deps.py3 # Use of this source code is governed by a BSD-style license that can be
6 """Prints all non-system dependencies for the given module.
8 The primary use-case for this script is to generate the list of python modules
17 # Don't use any helper modules, or else they will end up in the results.
24 """Gets the paths of imported non-system python modules.
42 path = path[:-1]
60 args.extend(('--root', root))
62 args.extend(('--output', os.path.relpath(options.output, _SRC_ROOT)))
64 args.extend(('--gn-paths',))
66 args.extend(('--allowlist', os.path.relpath(allowlist, _SRC_ROOT)))
[all …]
/external/cronet/build/
Dprint_python_deps.py3 # Use of this source code is governed by a BSD-style license that can be
6 """Prints all non-system dependencies for the given module.
8 The primary use-case for this script is to generate the list of python modules
17 # Don't use any helper modules, or else they will end up in the results.
24 """Gets the paths of imported non-system python modules.
42 path = path[:-1]
60 args.extend(('--root', root))
62 args.extend(('--output', os.path.relpath(options.output, _SRC_ROOT)))
64 args.extend(('--gn-paths',))
66 args.extend(('--allowlist', os.path.relpath(allowlist, _SRC_ROOT)))
[all …]
/external/perfetto/infra/perfetto.dev/src/
Dgen_stdlib_docs_md.py8 # http://www.apache.org/licenses/LICENSE-2.0
39 modules in the standard library convert low-level trace concepts
45 -- Include all tables/views/functions from the android.startup.startups
46 -- module in the standard library.
47 INCLUDE PERFETTO MODULE android.startup.startups;
49 -- Use the android_startups table defined in the android.startup.startups
50 -- module.
55 Prelude is a special module is automatically imported. It contains key helper
59 [syntax documentation](/docs/analysis/perfetto-sql-syntax#including-perfettosql-modules)
60 for the `INCLUDE PERFETTO MODULE` statement.
[all …]
/external/deqp-deps/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_donate_modules.h7 // http://www.apache.org/licenses/LICENSE-2.0
26 // A fuzzer pass that randomly adds code from other SPIR-V modules to the module
41 // functions of the donated module will be made livesafe (see
46 // Adapts a storage class coming from a donor module so that it will work
47 // in a recipient module, e.g. by changing Uniform to Private.
51 // Identifies all external instruction set imports in |donor_ir_context| and
69 // Helper method for HandleTypesAndValues, to handle a single type/value.
75 // functions in |donor_ir_context|'s call graph in a reverse-topologically-
76 // sorted order (leaves-to-root), adding each function to the recipient
77 // module, rewritten to use fresh ids and using |original_id_to_donated_id| to
[all …]
/external/angle/third_party/spirv-tools/src/source/fuzz/
Dfuzzer_pass_donate_modules.h7 // http://www.apache.org/licenses/LICENSE-2.0
26 // A fuzzer pass that randomly adds code from other SPIR-V modules to the module
41 // functions of the donated module will be made livesafe (see
46 // Adapts a storage class coming from a donor module so that it will work
47 // in a recipient module, e.g. by changing Uniform to Private.
51 // Identifies all external instruction set imports in |donor_ir_context| and
69 // Helper method for HandleTypesAndValues, to handle a single type/value.
75 // functions in |donor_ir_context|'s call graph in a reverse-topologically-
76 // sorted order (leaves-to-root), adding each function to the recipient
77 // module, rewritten to use fresh ids and using |original_id_to_donated_id| to
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dfuzzer_pass_donate_modules.h7 // http://www.apache.org/licenses/LICENSE-2.0
26 // A fuzzer pass that randomly adds code from other SPIR-V modules to the module
41 // functions of the donated module will be made livesafe (see
46 // Adapts a storage class coming from a donor module so that it will work
47 // in a recipient module, e.g. by changing Uniform to Private.
51 // Identifies all external instruction set imports in |donor_ir_context| and
69 // Helper method for HandleTypesAndValues, to handle a single type/value.
75 // functions in |donor_ir_context|'s call graph in a reverse-topologically-
76 // sorted order (leaves-to-root), adding each function to the recipient
77 // module, rewritten to use fresh ids and using |original_id_to_donated_id| to
[all …]
/external/skia/modules/canvaskit/
Dpackage-lock.json2 "name": "canvaskit-local",
8 "name": "canvaskit-local",
10 "license": "BSD-3-Clause",
12 "is-docker": "~1.1.0",
13 "jasmine-core": "~3.6.0",
15 "karma-chrome-launcher": "~3.1.0",
16 "karma-coverage": "~2.0.3",
17 "karma-jasmine": "~4.0.1",
21 "node_modules/@babel/code-frame": {
23 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz",
[all …]
/external/skia/modules/pathkit/
Dpackage-lock.json2 "name": "pathkit-local",
7 "@babel/code-frame": {
9 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
10 …"integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3O…
18 "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.10.tgz",
19 …"integrity": "sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dp…
22 "@babel/code-frame": "^7.10.4",
24 "@babel/helper-module-transforms": "^7.12.1",
30 "convert-source-map": "^1.7.0",
32 "gensync": "^1.0.0-beta.1",
[all …]
/external/libchrome/third_party/jinja2/
Dmeta.py1 # -*- coding: utf-8 -*-
6 This module implements various functions that exposes information about
63 imports. If dynamic inheritance or inclusion is used, `None` will be
68 >>> ast = env.parse('{% extends "layout.html" %}{% include helper %}')
82 # non-string consts that really just make no sense
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst1 :mod:`unittest.mock` --- getting started
10 .. _getting-started:
27 ----------
119 ... instance = module.Foo()
122 >>> with patch('module.Foo') as mock:
148 to child attributes of the mock - and also to their children.
176 >>> m.mock_calls[-1] == call.factory(important=False).deliver()
284 :ref:`async-iterators` through ``__aiter__``. The :attr:`~Mock.return_value`
301 :ref:`async-context-managers` through ``__aenter__`` and ``__aexit__``.
328 you refactor the first class, so that it no longer has ``some_method`` - then
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_searchengine.py3 # With mock replacements, the module does not use any gui widgets.
18 # Replace s-e module tkinter imports other than non-gui TclError.
37 se.SearchEngine = Mock # monkey-patch class
45 se.SearchEngine = saved_Engine # restore class to module
48 # Test simple text-independent helper function
57 # Test text-dependent helper function.
92 # Test helper function that searches backwards within a line.
186 pat = '[a-z'
191 expected_message = ("Error: " + msg + "\nPattern: [a-z")
275 # search_backward calls index('end-1c')
[all …]

123456789