Home
last modified time | relevance | path

Searched +full:balanced +full:- +full:match (Results 1 – 25 of 125) sorted by relevance

12345

/third_party/rust/rust/src/tools/rust-installer/src/
Dcompression.rs11 Balanced, enumerator
18 fn from_str(input: &str) -> Result<Self, Error> { in from_str()
19 Ok(match input { in from_str()
21 "balanced" => Self::Balanced, in from_str()
29 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
30 match self { in fmt()
32 CompressionProfile::Balanced => f.write_str("balanced"), in fmt()
45 pub(crate) fn detect_from_path(path: impl AsRef<Path>) -> Option<Self> { in detect_from_path()
46 match path.as_ref().extension().and_then(|e| e.to_str()) { in detect_from_path()
53 pub(crate) fn extension(&self) -> &'static str { in extension()
[all …]
/third_party/mbedtls/scripts/mbedtls_dev/
Dc_parsing_helper.py9 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 #pylint: disable=too-few-public-methods
34 def normalize_type(cls, typ: str) -> str:
40 def __init__(self, decl: str) -> None:
42 m = self._DECLARATION_RE.match(self.decl)
52 #pylint: disable=too-few-public-methods
57 def __init__(self, #pylint: disable=too-many-arguments
63 arguments: List[str]) -> None:
71 def returns_void(self) -> bool:
76 # Match one C comment.
[all …]
/third_party/rust/rust/compiler/rustc_codegen_cranelift/.github/actions/github-release/
Dpackage-lock.json2 "name": "rustc_codegen_cranelift-github-release",
8 "name": "rustc_codegen_cranelift-github-release",
18 "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz",
19 …"integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8…
21 "@actions/http-client": "^2.0.1",
27 "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz",
28 …"integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec…
30 "@actions/http-client": "^2.0.1",
32 "@octokit/plugin-paginate-rest": "^2.17.0",
33 "@octokit/plugin-rest-endpoint-methods": "^5.13.0"
[all …]
/third_party/cups/vcnet/regex/
Dregerror.c13 {REG_NOMATCH, "REG_NOMATCH", "regexec() failed to match"},
19 {REG_EBRACK, "REG_EBRACK", "brackets ([ ]) not balanced"},
20 {REG_EPAREN, "REG_EPAREN", "parentheses not balanced"},
21 {REG_EBRACE, "REG_EBRACE", "braces not balanced"},
25 {REG_BADRPT, "REG_BADRPT", "repetition-operator operand invalid"},
27 {REG_ASSERT, "REG_ASSERT", "\"can't happen\" -- you found a bug"},
29 {-1, "", "*** unknown regexp error code ***"},
36 size_t copy_len = result_len < errbuf_size ? result_len : errbuf_size - 1; in set_result()
44 - regerror - the interface to error numbers
53 if (preg == NULL || preg->re_endp == NULL) in regerror()
[all …]
Drxspencer.38 regcomp, regexec, regerror, regfree \- regular-expression library
36 transforms error codes from either into human-readable messages,
39 frees any dynamically-allocated storage used by the internal form
48 the former for compiled internal forms and the latter for match reporting.
96 Compile for newline-sensitive matching.
100 `[^' bracket expressions and `.' never match newline,
139 fails, it returns a non-zero error code;
160 the NUL-terminated string pointed to by
165 any other end-of-line marker is considered to have been removed
173 is not the beginning of a line, so the `^' anchor should not match before it.
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DRopeByteStringTest.java1 // Protocol Buffers - Google's data interchange format
4 // Use of this source code is governed by a BSD-style
6 // https://developers.google.com/open-source/licenses/bsd
46 expectedHashCode = -1214197238; in setUp()
51 // minLength should match the Fibonacci sequence in testMinLength()
89 assertWithMessage("%s underlying bytes must match after balancing", classUnderTest) in testBalance()
93 assertWithMessage("%s balanced string must equal flat string", classUnderTest) in testBalance()
96 assertWithMessage("%s flat string must equal balanced string", classUnderTest) in testBalance()
99 assertWithMessage("%s balanced string must have same hash code as flat string", classUnderTest) in testBalance()
124 assertWithMessage("%s unicode bytes must match", classUnderTest) in testToString()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
Dregerror.c1 /*-
59 { REG_NOMATCH, "REG_NOMATCH", "llvm_regexec() failed to match" },
65 { REG_EBRACK, "REG_EBRACK", "brackets ([ ]) not balanced" },
66 { REG_EPAREN, "REG_EPAREN", "parentheses not balanced" },
67 { REG_EBRACE, "REG_EBRACE", "braces not balanced" },
71 { REG_BADRPT, "REG_BADRPT", "repetition-operator operand invalid" },
73 { REG_ASSERT, "REG_ASSERT", "\"can't happen\" -- you found a bug" },
79 - llvm_regerror - the interface to error numbers
95 for (r = rerrs; r->code != 0; r++) in llvm_regerror()
96 if (r->code == target) in llvm_regerror()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
Dregerror.c1 /*-
59 { REG_NOMATCH, "REG_NOMATCH", "llvm_regexec() failed to match" },
65 { REG_EBRACK, "REG_EBRACK", "brackets ([ ]) not balanced" },
66 { REG_EPAREN, "REG_EPAREN", "parentheses not balanced" },
67 { REG_EBRACE, "REG_EBRACE", "braces not balanced" },
71 { REG_BADRPT, "REG_BADRPT", "repetition-operator operand invalid" },
73 { REG_ASSERT, "REG_ASSERT", "\"can't happen\" -- you found a bug" },
79 - llvm_regerror - the interface to error numbers
95 for (r = rerrs; r->code != 0; r++) in llvm_regerror()
96 if (r->code == target) in llvm_regerror()
[all …]
/third_party/skia/m133/include/android/
DSkImageAndroid.h4 * Use of this source code is governed by a BSD-style license that can be
71 * draws to a gpu-target will come from that texture (and not by looking at the original image
77 * All successful calls must be balanced by an equal number of calls to UnpinTexture().
81 * - all drawing, pinning, unpinning must happen in the same thread as the GrContext.
88 * The balancing call to a successful invocation of PinAsTexture. When a balanced
95 * The context passed to unpin must match the one passed to pin.
/third_party/rust/rust/library/std/src/sys/wasm/
Dalloc.rs12 //! in the rust-lang/rust repository as a submodule. The crate is a port of
26 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc()
27 …DLMALLOC access is guaranteed to be safe because the lock gives us unique and non-reentrant access. in alloc()
28 …// Calling malloc() is safe because preconditions on this function match the trait method precondi… in alloc()
34 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed()
35 …DLMALLOC access is guaranteed to be safe because the lock gives us unique and non-reentrant access. in alloc_zeroed()
36 …// Calling calloc() is safe because preconditions on this function match the trait method precondi… in alloc_zeroed()
43 …DLMALLOC access is guaranteed to be safe because the lock gives us unique and non-reentrant access. in dealloc()
44 …// Calling free() is safe because preconditions on this function match the trait method preconditi… in dealloc()
50 unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc()
[all …]
/third_party/skia/src/core/
DSkImagePriv.h4 * Use of this source code is governed by a BSD-style license that can be
26 // If alloc is non-nullptr, it will be used to allocate the returned SkShader, and MUST outlive
42 * if it needs to make a deep-copy of the pixels.
52 * It is illegal to call this with a texture-backed bitmap.
62 // in which case the surface may need to perform a copy-on-write.
67 * draws to a gpu-target will come from that texture (and not by looking at the original image
71 * All successful calls must be balanced by an equal number of calls to SkImage_unpinAsTexture().
75 * - all drawing, pinning, unpinning must happen in the same thread as the GrContext.
82 …* The balancing call to a successful invokation of SkImage_pinAsTexture. When a balanced number …
87 * The context passed to unpin must match the one passed to pin.
/third_party/skia/m133/src/core/
DSkImagePriv.h4 * Use of this source code is governed by a BSD-style license that can be
43 * if it needs to make a deep-copy of the pixels.
53 * It is illegal to call this with a texture-backed bitmap.
63 // in which case the surface may need to perform a copy-on-write.
68 * draws to a gpu-target will come from that texture (and not by looking at the original image
72 * All successful calls must be balanced by an equal number of calls to SkImage_unpinAsTexture().
76 * - all drawing, pinning, unpinning must happen in the same thread as the GrContext.
83 …* The balancing call to a successful invokation of SkImage_pinAsTexture. When a balanced number …
88 * The context passed to unpin must match the one passed to pin.
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DRopeByteString.java1 // Protocol Buffers - Google's data interchange format
4 // Use of this source code is governed by a BSD-style
6 // https://developers.google.com/open-source/licenses/bsd
30 * <p>Most of the operation here is inspired by the now-famous paper <a
31 ….org/web/20060202015456/http://www.cs.ubc.ca/local/reading/proceedings/spe91-95/spe/vol25/issue12/…
32 * BAP95 </a> Ropes: an Alternative to Strings hans-j. boehm, russ atkinson and michael plass
39 * relative to their depth cause a tree rebalance. More precisely, a tree of depth d is "balanced"
40 * in the terminology of BAP95 if its length is at least F(d+2), where F(n) is the n-th Fibonacci
48 * BAP95. Let Fn be the nth Fibonacci number. A {@link RopeByteString} of depth n is "balanced",
49 * i.e flat enough, if its length is at least Fn+2, e.g. a "balanced" {@link RopeByteString} of
[all …]
/third_party/openhitls/bsl/err/src/
Davl.c11 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
42 return node->height; in GetAvlTreeHeight()
49 uint32_t leftHeight = GetAvlTreeHeight(node->leftNode); in UpdateAvlTreeHeight()
50 uint32_t rightHeight = GetAvlTreeHeight(node->rightNode); in UpdateAvlTreeHeight()
51 if (node->height >= AVL_MAX_HEIGHT) { in UpdateAvlTreeHeight()
56 node->height = GetMaxHeight(leftHeight, rightHeight) + 1u; in UpdateAvlTreeHeight()
69 curNode->height = 1; in BSL_AVL_MakeLeafNode()
70 curNode->rightNode = NULL; in BSL_AVL_MakeLeafNode()
71 curNode->leftNode = NULL; in BSL_AVL_MakeLeafNode()
72 curNode->data = data; in BSL_AVL_MakeLeafNode()
[all …]
/third_party/skia/tools/run-wasm-gm-tests/
Dpackage-lock.json2 "name": "run-wasm-gm-tests",
9 "resolved": "https://registry.npmjs.org/@types/node/-/node-14.11.8.tgz",
10 …"integrity": "sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxc…
15 "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
16 …"integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0…
24 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
25 …"integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgI…
27 "mime-types": "~2.1.24",
31 "agent-base": {
33 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
[all …]
/third_party/skia/tools/perf-canvaskit-puppeteer/
Dpackage-lock.json2 "name": "perf-canvaskit-puppeteer",
9 "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.5.tgz",
10 …"integrity": "sha512-90hiq6/VqtQgX8Sp0EzeIsv3r+ellbGj4URKj5j30tLlZvRUpnAe9YbYnjl3pJM93GyXU0tghHhvX…
15 "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
16 …"integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0…
24 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
25 …"integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgI…
27 "mime-types": "~2.1.24",
31 "agent-base": {
33 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
[all …]
/third_party/skia/include/core/
DSkDrawable.h4 * Use of this source code is governed by a BSD-style license that can be
23 * Base-class for objects that draw into SkCanvas.
32 * Draws into the specified content. The drawing sequence will be balanced upon return
33 * (i.e. the saveLevel() on the canvas will match what it was when draw() was called,
44 * drawn to a GPU-backed canvas a new handler is snapped, representing the drawable's state at
85 return this->onSnapGpuDrawHandler(backendApi, matrix, clipBounds, bufferInfo); in snapGpuDrawHandler()
/third_party/mesa3d/src/nouveau/compiler/nak/
Dunion_find.rs2 // SPDX-License-Identifier: MIT
19 /// Union-find structure
21 /// This implementation follows Tarjan and van Leeuwen - specifically the
24 /// Robert E. Tarjan and Jan van Leeuwen. 1984. Worst-case Analysis of Set
33 /// Create a new union-find structure
36 pub fn new() -> Self { in new()
43 fn find_root(&mut self, mut idx: usize) -> (usize, Root<X>) { in find_root()
45 match self.nodes[idx] { in find_root()
47 match self.nodes[parent_idx] { in find_root()
68 pub fn find(&mut self, x: X) -> X { in find()
[all …]
/third_party/skia/m133/include/core/
DSkDrawable.h4 * Use of this source code is governed by a BSD-style license that can be
31 * Base-class for objects that draw into SkCanvas.
40 * Draws into the specified content. The drawing sequence will be balanced upon return
41 * (i.e. the saveLevel() on the canvas will match what it was when draw() was called,
52 * drawn to a GPU-backed canvas a new handler is snapped, representing the drawable's state at
93 return this->onSnapGpuDrawHandler(backendApi, matrix, clipBounds, bufferInfo); in snapGpuDrawHandler()
/third_party/skia/m133/tools/perf-canvaskit-puppeteer/
Dpackage-lock.json2 "name": "perf-canvaskit-puppeteer",
9 "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.5.tgz",
10 …"integrity": "sha512-90hiq6/VqtQgX8Sp0EzeIsv3r+ellbGj4URKj5j30tLlZvRUpnAe9YbYnjl3pJM93GyXU0tghHhvX…
15 "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
16 …"integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0…
24 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
25 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
27 "mime-types": "~2.1.34",
31 "agent-base": {
33 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
[all …]
/third_party/libwebsockets/lib/roles/raw-proxy/
Dops-raw-proxy.c2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
25 #include <private-lib-core.h>
37 if (!(pollfd->revents & LWS_POLLOUT)) in rops_handle_POLLIN_raw_proxy()
54 if ((pollfd->revents & pollfd->events & LWS_POLLIN) && in rops_handle_POLLIN_raw_proxy()
57 !(wsi->favoured_pollin && in rops_handle_POLLIN_raw_proxy()
58 (pollfd->revents & pollfd->events & LWS_POLLOUT))) { in rops_handle_POLLIN_raw_proxy()
69 wsi->seen_zero_length_recv = 1; in rops_handle_POLLIN_raw_proxy()
86 n = user_callback_handle_rxflow(wsi->a.protocol->callback, in rops_handle_POLLIN_raw_proxy()
90 wsi->user_space, ebuf.token, in rops_handle_POLLIN_raw_proxy()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DErrorScopeValidationTests.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
31 mockDevicePopErrorScopeCallback->Call(type, message, userdata); in ToMockDevicePopErrorScopeCallback()
41 mockQueueWorkDoneCallback->Call(status, userdata); in ToMockQueueWorkDone()
92 // OutOfMemory does not match Validation error. in TEST_F()
138 // Check that push/popping error scopes must be balanced.
/third_party/skia/m133/tools/run-wasm-gm-tests/
Dpackage-lock.json2 "name": "run-wasm-gm-tests",
9 "resolved": "https://registry.npmjs.org/@types/node/-/node-14.11.8.tgz",
10 …"integrity": "sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxc…
15 "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
16 …"integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0…
24 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
25 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
27 "mime-types": "~2.1.34",
31 "mime-db": {
33 "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
[all …]
/third_party/lwip/contrib/apps/LwipMibCompiler/Mibs/IANA/
DIANA-MAU-MIB1 IANA-MAU-MIB DEFINITIONS ::= BEGIN
4 MODULE-IDENTITY, OBJECT-IDENTITY, mib-2
5 FROM SNMPv2-SMI
6 TEXTUAL-CONVENTION
7 FROM SNMPv2-TC
10 ianaMauMIB MODULE-IDENTITY
11 LAST-UPDATED "200704210000Z" -- April 21, 2007
13 CONTACT-INFO " Internet Assigned Numbers Authority
19 Tel: +1-310-823-9358
23 "This MIB module defines dot3MauType OBJECT-IDENTITIES and
[all …]
/third_party/mindspore/mindspore-src/source/tests/ut/python/dataset/
Dtest_datasets_emnist.py1 # Copyright 2021-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
38 image_ext = "images-idx3-ubyte"
39 label_ext = "labels-idx1-ubyte"
40 train_prefix = "emnist-" + name + "-train-"
41 test_prefix = "emnist-" + name + "-test-"
61 image = image.reshape(-1, 28, 28, 1)
313 with pytest.raises(RuntimeError, match=error_msg_1):
318 with pytest.raises(RuntimeError, match=error_msg_2):
323 with pytest.raises(RuntimeError, match=error_msg_3):
[all …]

12345