Home
last modified time | relevance | path

Searched full:dictionary (Results 1 – 25 of 4364) sorted by relevance

12345678910>>...175

/external/federated-compute/fcp/dictionary/
Ddictionary_test.cc16 #include "fcp/dictionary/dictionary.h"
23 #include "fcp/dictionary/dictionary.pb.h"
30 namespace dictionary { namespace
37 std::unique_ptr<Dictionary> dictionary = *Dictionary::Create(PARSE_TEXT_PROTO( in TEST_F() local
40 EXPECT_EQ(0, dictionary->TokenToId("a")); in TEST_F()
41 EXPECT_EQ(1, dictionary->TokenToId("b")); in TEST_F()
42 EXPECT_EQ(2, dictionary->TokenToId("c")); in TEST_F()
43 EXPECT_EQ(Dictionary::kNotFound, dictionary->TokenToId("d")); in TEST_F()
47 std::unique_ptr<Dictionary> dictionary = *Dictionary::Create( in TEST_F() local
51 EXPECT_EQ(2, dictionary->TokenToId("a")); in TEST_F()
[all …]
/external/cronet/third_party/protobuf/objectivec/
DGPBDictionary.h60 /** Number of entries stored in this dictionary. */
64 * Initializes this dictionary, copying the given values and keys.
66 * @param values The values to be placed in this dictionary.
68 * @param count The number of elements to copy into the dictionary.
70 * @return A newly initialized dictionary with a copy of the values and keys.
77 * Initializes this dictionary, copying the entries from the given dictionary.
79 * @param dictionary Dictionary containing the entries to add to this dictionary.
81 * @return A newly initialized dictionary with the entries of the given dictionary.
83 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
86 * Initializes this dictionary with the requested capacity.
[all …]
/external/protobuf/objectivec/
DGPBDictionary.h60 /** Number of entries stored in this dictionary. */
64 * Initializes this dictionary, copying the given values and keys.
66 * @param values The values to be placed in this dictionary.
68 * @param count The number of elements to copy into the dictionary.
70 * @return A newly initialized dictionary with a copy of the values and keys.
77 * Initializes this dictionary, copying the entries from the given dictionary.
79 * @param dictionary Dictionary containing the entries to add to this dictionary.
81 * @return A newly initialized dictionary with the entries of the given dictionary.
83 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
86 * Initializes this dictionary with the requested capacity.
[all …]
/external/zstd/lib/
Dzdict.h51 * Zstd dictionary builder
55 * Why should I use a dictionary?
62 * structure, you can train a dictionary on ahead of time on some samples of
63 * these files. Then, zstd can use the dictionary to find repetitions that are
66 * When is a dictionary useful?
70 * The larger a file is, the less benefit a dictionary will have. Generally,
71 * we don't expect dictionary compression to be effective past 100KB. And the
72 * smaller a file is, the more we would expect the dictionary to help.
74 * How do I use a dictionary?
77 * Simply pass the dictionary to the zstd compressor with
[all …]
/external/sdv/vsomeip/third_party/boost/unordered/doc/src_code/
Ddictionary.cpp42 dictionary; in main() local
45 BOOST_TEST(dictionary.empty()); in main()
47 dictionary["one"] = 1; in main()
48 BOOST_TEST(dictionary.size() == 1); in main()
49 BOOST_TEST(dictionary.find("ONE") == dictionary.end()); in main()
51 dictionary.insert(std::make_pair("ONE", 2)); in main()
52 BOOST_TEST(dictionary.size() == 2); in main()
53 BOOST_TEST(dictionary.find("ONE") != dictionary.end() && in main()
54 dictionary.find("ONE")->first == "ONE" && in main()
55 dictionary.find("ONE")->second == 2); in main()
[all …]
/external/cronet/net/third_party/quiche/src/quiche/common/
Dstructured_headers_generated_test.cc2707 const std::optional<Dictionary>
2712 // dictionary.json
2713 {"basic dictionary",
2716 {Dictionary{
2721 {"empty dictionary", "", 0, {Dictionary{{}}}, nullptr},
2722 {"single item dictionary",
2725 {Dictionary{{{"a", {Integer(1), {}}}}}},
2727 {"list item dictionary",
2730 {Dictionary{{{"a", {{{Integer(1), {}}, {Integer(2), {}}}, {}}}}}},
2732 {"single list item dictionary",
[all …]
/external/federated-compute/fcp/tensorflow/
Ddictionary_ops.cc24 #include "fcp/dictionary/dictionary.h"
25 #include "fcp/dictionary/dictionary.pb.h"
38 using fcp::dictionary::Dictionary;
39 using fcp::dictionary::DictionaryDescription;
43 // Base class for ops that work with a Dictionary.
65 // Fully specified dictionary. in AbstractDictionaryOp()
66 absl::StatusOr<std::unique_ptr<Dictionary>> dictionary( in AbstractDictionaryOp() local
67 Dictionary::Create(parsed_dictionary_description)); in AbstractDictionaryOp()
68 OP_REQUIRES(context, dictionary.ok(), in AbstractDictionaryOp()
69 tf::errors::InvalidArgument(dictionary.status().ToString())); in AbstractDictionaryOp()
[all …]
Ddictionary_ops_test.py4 from fcp.dictionary import dictionary_pb2
11 dictionary = dictionary_pb2.DictionaryDescription()
17 dictionary)
21 dictionary_description_proto=dictionary.SerializeToString())
29 # Build a dictionary, explicitly blocklisting the first token and
31 dictionary = dictionary_ops.Dictionary.from_tokens(
43 dictionary_description_proto=dictionary.dictionary_description_proto)
49 [1, 4], list(dictionary.dictionary_description.output_blocklist_ids.id))
54 dictionary = dictionary_ops.Dictionary.from_tokens(
61 dictionary_description_proto=dictionary.dictionary_description_proto)
[all …]
Ddictionary_ops.py16 Please see fcp/dictionary/dictionary.h for more on this type of
17 dictionary.
21 * `Dictionary`: A Python analogue to fcp/dictionary/dictionary.h
22 that includes additional helpers for dictionary construction.
27 Queries the size of a dictionary.
30 Looks up ids for string tokens in the dictionary.
33 Looks up string tokens from ids in the dictionary.
35 Canonical use (note that the dictionary is known at graph construction time):
36 dictionary = Dictionary.from_tokens(
43 tokens, dictionary.dictionary_description_proto)
[all …]
/external/python/cpython2/Doc/c-api/
Ddict.rst5 Dictionary Objects
8 .. index:: object: dictionary
13 This subtype of :c:type:`PyObject` represents a Python dictionary object.
22 This instance of :c:type:`PyTypeObject` represents the Python dictionary
46 Return a new empty dictionary, or *NULL* on failure.
53 dictionary for non-dynamic class types.
60 Empty an existing dictionary of all key-value pairs.
65 Determine if dictionary *p* contains *key*. If an item in *p* is matches
74 Return a new dictionary that contains the same key-value pairs as *p*.
81 Insert *value* into the dictionary *p* with a key of *key*. *key* must be
[all …]
/external/python/google-api-python-client/docs/dyn/
Ddlp_v2.projects.storedInfoTypes.html116dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
118 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
121 …&quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain at le…
127dictionary created from a data source of any size up to the maximum size defined in the [limits](h…
128 …ld of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
138 …of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
141dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owner…
142 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
168dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
170 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
[all …]
Ddlp_v2.organizations.locations.storedInfoTypes.html116dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
118 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
121 …&quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain at le…
127dictionary created from a data source of any size up to the maximum size defined in the [limits](h…
128 …ld of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
138 …of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
141dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owner…
142 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
168dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
170 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
[all …]
Ddlp_v2.projects.locations.storedInfoTypes.html116dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
118 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
121 …&quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain at le…
127dictionary created from a data source of any size up to the maximum size defined in the [limits](h…
128 …ld of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
138 …of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
141dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owner…
142 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
168dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
170 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
[all …]
Ddlp_v2.organizations.storedInfoTypes.html116dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
118 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
121 …&quot;words&quot;: [ # Words or phrases defining the dictionary. The dictionary must contain at le…
127dictionary created from a data source of any size up to the maximum size defined in the [limits](h…
128 …ld of a BigQuery table. # Field in a BigQuery table where each cell represents a dictionary phrase.
138 …of files in Cloud Storage. # Set of files containing newline-delimited lists of dictionary phrases.
141dictionary artifacts in Google Cloud Storage. These files will only be accessible by project owner…
142 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
168dictionary&quot;: { # Custom information type based on a dictionary of words or phrases. This can …
170 …esenting a file or path (no wildcards) in Cloud Storage. Example: gs://[BUCKET_NAME]/dictionary.txt
[all …]
/external/autotest/client/common_lib/cros/manual/
Dget_usb_devices.py7 # 1. Populate usb data into dictionary
84 """populate usb data into list dictionary
86 @returns list of dictionary, examples:
102 """retrive the list of dictionary for certain types of VID_PID
103 @param usbdata: list of dictionary for usb devices
105 @returns the list of dictionary for certain types of VID_PID
118 """retrive the list of dictionary for all audio devices
119 @param usbdata: list of dictionary for usb devices
120 @returns the list of dictionary for all audio devices
130 """retrive the list of dictionary for all video devices
[all …]
/external/brotli/fetch-spec/
Dshared-brotli-fetch-spec.txt8 The goal is to add support for custom dictionaries for Brotli. A dictionary is used
9 to improve compression. A client can download a dictionary from a server and then
10 use it to decompress resources compressed with this dictionary.
12 This document specifies how the client and server negotiate the dictionary over HTTP.
14 with a URL of the dictionary. The browser downloads the dictionary from the URL and
16 which the client uses to verify the dictionary. Caching, CORS, and other existing
17 mechanisms are used. A dictionary can be a pre-made static dictionary, but does not
31 shared dictionary.
48 Shared-Brotli-dictionary fetch given dictionaryId and request.
55 [NOTE-BOX] If the dictionary is still being fetched, which happens in
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/
D.project12 <dictionary>
15 </dictionary>
16 <dictionary>
19 </dictionary>
20 <dictionary>
23 </dictionary>
24 <dictionary>
27 </dictionary>
28 <dictionary>
31 </dictionary>
[all …]
/external/python/cpython3/Doc/c-api/
Ddict.rst5 Dictionary Objects
8 .. index:: pair: object; dictionary
13 This subtype of :c:type:`PyObject` represents a Python dictionary object.
18 This instance of :c:type:`PyTypeObject` represents the Python dictionary
36 Return a new empty dictionary, or ``NULL`` on failure.
43 prevent modification of the dictionary for non-dynamic class types.
48 Empty an existing dictionary of all key-value pairs.
53 Determine if dictionary *p* contains *key*. If an item in *p* is matches
60 Return a new dictionary that contains the same key-value pairs as *p*.
65 Insert *val* into the dictionary *p* with a key of *key*. *key* must be
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_dictionary_storage.py43 dictionary = {}
45 storage = dictionary_storage.DictionaryStorage(dictionary, key)
47 self.assertEqual(dictionary, storage._dictionary)
52 dictionary = {}
54 storage = dictionary_storage.DictionaryStorage(dictionary, key)
58 dictionary, key, lock=lock)
63 dictionary = {}
65 storage = dictionary_storage.DictionaryStorage(dictionary, key)
69 dictionary[key] = credentials.to_json()
80 dictionary = {}
[all …]
/external/libaom/av1/decoder/
Daccounting.c31 /* Dictionary lookup based on an open-addressing hash table. */
35 AccountingDictionary *dictionary; in aom_accounting_dictionary_lookup() local
36 dictionary = &accounting->syms.dictionary; in aom_accounting_dictionary_lookup()
39 if (strcmp(dictionary->strs[accounting->hash_dictionary[hash]], str) == 0) { in aom_accounting_dictionary_lookup()
46 assert(dictionary->num_strs + 1 < MAX_SYMBOL_TYPES); in aom_accounting_dictionary_lookup()
47 accounting->hash_dictionary[hash] = dictionary->num_strs; in aom_accounting_dictionary_lookup()
49 dictionary->strs[dictionary->num_strs] = malloc(len + 1); in aom_accounting_dictionary_lookup()
50 if (!dictionary->strs[dictionary->num_strs]) abort(); in aom_accounting_dictionary_lookup()
51 snprintf(dictionary->strs[dictionary->num_strs], len + 1, "%s", str); in aom_accounting_dictionary_lookup()
52 dictionary->num_strs++; in aom_accounting_dictionary_lookup()
[all …]
/external/bazel-skylib/lib/
Ddicts.bzl26 dictionary, and the sum of a single dictionary is a copy of itself.
30 **kwargs: Additional dictionary passed as keyword args.
41 def _omit(dictionary, keys):
42 """Returns a new `dict` that has all the entries of `dictionary` with keys not in `keys`.
45 dictionary: A `dict`.
49 A new `dict` that has all the entries of `dictionary` with keys not in `keys`.
52 return {k: dictionary[k] for k in dictionary if k not in keys_set}
54 def _pick(dictionary, keys):
55 """Returns a new `dict` that has all the entries of `dictionary` with keys in `keys`.
58 dictionary: A `dict`.
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/
D.project12 <dictionary>
15 </dictionary>
16 <dictionary>
19 </dictionary>
20 <dictionary>
23 </dictionary>
24 <dictionary>
27 </dictionary>
28 <dictionary>
31 </dictionary>
[all …]
/external/cronet/third_party/brotli/include/brotli/
Dshared_dictionary.h7 /* (Opaque) Shared Dictionary definition and utilities. */
25 * Opaque structure that holds shared dictionary data.
36 /** Raw LZ77 prefix dictionary. */
38 /** Serialized shared dictionary. */
45 * Fresh instance has default word dictionary and transforms
46 * and no LZ77 prefix dictionary.
65 * @param dict shared dictionary instance to be cleaned up and deallocated
71 * Attaches dictionary to a given instance of ::BrotliSharedDictionary.
73 * Dictionary to be attached is represented in a serialized format as a region
76 * Provided data it partially referenced by a resulting (compound) dictionary,
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs315 IDictionary dictionary = map; in IDictionary_Add()
316 dictionary.Add("a", "b"); in IDictionary_Add()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
319 Assert.Throws<InvalidCastException>(() => dictionary.Add(new object(), "key is bad")); in IDictionary_Add()
320 Assert.Throws<InvalidCastException>(() => dictionary.Add("value is bad", new object())); in IDictionary_Add()
327 IDictionary dictionary = map; in IDictionary_Contains()
329 Assert.IsFalse(dictionary.Contains("a")); in IDictionary_Contains()
330 Assert.IsFalse(dictionary.Contains(5)); in IDictionary_Contains()
332 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains()
333 Assert.IsTrue(dictionary.Contains("x")); in IDictionary_Contains()
[all …]
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs315 IDictionary dictionary = map; in IDictionary_Add()
316 dictionary.Add("a", "b"); in IDictionary_Add()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
319 Assert.Throws<InvalidCastException>(() => dictionary.Add(new object(), "key is bad")); in IDictionary_Add()
320 Assert.Throws<InvalidCastException>(() => dictionary.Add("value is bad", new object())); in IDictionary_Add()
327 IDictionary dictionary = map; in IDictionary_Contains()
329 Assert.IsFalse(dictionary.Contains("a")); in IDictionary_Contains()
330 Assert.IsFalse(dictionary.Contains(5)); in IDictionary_Contains()
332 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains()
333 Assert.IsTrue(dictionary.Contains("x")); in IDictionary_Contains()
[all …]

12345678910>>...175