HomeSort by relevance Sort by last modified time
    Searched refs:dict (Results 51 - 75 of 2670) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/llvm/utils/
llvm-compilers-check 211 abbrevs = dict(zip(paths, [base for base in unique_bases]))
247 abbrevs = dict(zip(unique_bases, abbrevs))
268 self.component_abbrev = dict(
368 configure_flags = dict(
369 llvm=dict(debug=["--prefix=" + self.install_prefix,
381 dragonegg=dict(debug=[],
390 configure_env = dict(
391 llvm=dict(debug=dict(CC=self.cc,
393 release=dict(CC=self.cc
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
FusionDictionaryTest.java 70 private static void checkDictionary(final FusionDictionary dict, final ArrayList<String> words,
72 assertNotNull(dict);
76 final PtNode ptNode = FusionDictionary.findWordInTree(dict.mRootNodeArray, word);
90 private static void dumpDict(final FusionDictionary dict) {
91 for (WordProperty wordProperty : dict) {
99 final FusionDictionary dict = new FusionDictionary(new PtNodeArray(), local
105 dict.add(sWords.get(i), new ProbabilityInfo(180), null, false,
107 dumpDict(dict);
108 checkDictionary(dict, sWords, i);
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_mutants.py 5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict = {} variable
229 dict = {} variable
255 dict = {} variable
    [all...]
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
104 class defaultdict2(dict):
108 dict.__init__(self)
113 return dict.__getitem__(self, key)
120 return dict.get(self, key, *args)
161 >>> isinstance([], dict)
    [all...]
  /external/python/cpython2/Lib/test/
test_mutants.py 5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict = { variable
229 dict = {} variable
255 dict = {} variable
    [all...]
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
104 class defaultdict2(dict):
108 dict.__init__(self)
113 return dict.__getitem__(self, key)
120 return dict.get(self, key, *args)
161 >>> isinstance([], dict)
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_mutants.py 5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict = { variable
229 dict = {} variable
255 dict = {} variable
    [all...]
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
104 class defaultdict2(dict):
108 dict.__init__(self)
113 return dict.__getitem__(self, key)
120 return dict.get(self, key, *args)
161 >>> isinstance([], dict)
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_mutants.py 5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict = { variable
229 dict = {} variable
255 dict = {} variable
    [all...]
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
104 class defaultdict2(dict):
108 dict.__init__(self)
113 return dict.__getitem__(self, key)
120 return dict.get(self, key, *args)
161 >>> isinstance([], dict)
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_mutants.py 5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict = { variable
229 dict = {} variable
255 dict = {} variable
    [all...]
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
104 class defaultdict2(dict):
108 dict.__init__(self)
113 return dict.__getitem__(self, key)
120 return dict.get(self, key, *args)
161 >>> isinstance([], dict)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_mutants.py 5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict = { variable
229 dict = {} variable
255 dict = {} variable
    [all...]
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
104 class defaultdict2(dict):
108 dict.__init__(self)
113 return dict.__getitem__(self, key)
120 return dict.get(self, key, *args)
161 >>> isinstance([], dict)
    [all...]
  /external/autotest/client/common_lib/cros/fake_device_server/
resource_method_unittest.py 23 """Sets up resource_method object and dict of resources."""
32 expected_resource = dict(id=1234, blah='hi')
33 update_resource = dict(blah='hi')
34 self.resources[(1234, None)] = dict(id=1234)
48 update_resource = dict(id=12345, blah='hi')
49 self.resources[(12345, None)] = dict(id=12345)
63 update_resource = dict(id=12346, blah='hi')
registration_tickets_unittest.py 48 self.tickets[(1234, None)] = dict(id=1234)
53 expected_ticket = dict(
55 deviceDraft=dict(name='buffet_device',
56 channel=dict(supportedType='xmpp')))
81 self.tickets[(1234, None)] = dict(id=1234)
92 expected_ticket = dict(id=1234, blah='hi')
93 update_ticket = dict(blah='hi')
94 self.tickets[(1234, None)] = dict(id=1234)
108 update_ticket = dict(id=12345, blah='hi')
109 self.tickets[(12345, None)] = dict(id=12345
    [all...]
  /external/chromium-trace/catapult/common/py_utils/py_utils/
camel_case.py 9 """Converts a string, list, or dict from camelCase to lower_with_underscores.
11 Descends recursively into lists and dicts, converting all dict keys.
20 elif isinstance(obj, dict):
23 if isinstance(v, list) or isinstance(v, dict):
  /external/python/cpython2/Lib/plat-mac/
aepack.py 306 def mkrange(dict):
307 return aetypes.Range(dict['star'], dict['stop'])
309 def mkcomparison(dict):
310 return aetypes.Comparison(dict['obj1'], dict['relo'].enum, dict['obj2'])
312 def mklogical(dict):
313 return aetypes.Logical(dict['logc'], dict['term']
    [all...]
  /external/python/cpython3/Lib/test/
test_descrtut.py 14 class defaultdict(dict):
16 dict.__init__(self)
21 return dict.__getitem__(self, key)
28 return dict.get(self, key, *args)
59 >>> a.merge({1:100, 2:200}) # use a dict method
102 class defaultdict2(dict):
106 dict.__init__(self)
111 return dict.__getitem__(self, key)
118 return dict.get(self, key, *args)
159 >>> isinstance([], dict)
    [all...]
test_string.py 186 kwargs = dict(i=100)
211 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
213 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
218 d = dict(who='tim', what='ham', meal='dinner')
221 dict(who='tim', what='ham'))
226 eq(s.substitute(dict(who='tim', what='ham')),
229 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
234 d = dict(foo='baz')
241 d = dict(count=7)
250 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao')
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DictEncoder.java 31 public void writeDictionary(final FusionDictionary dict, final FormatOptions formatOptions)
37 public void writePtNode(final PtNode ptNode, final FusionDictionary dict,
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
UserHistoryDictionaryTestsHelper.java 70 * @param dict {@link UserHistoryDictionary} to which words should be added.
77 public static boolean addAndWriteRandomWords(final UserHistoryDictionary dict,
82 addWordsToDictionary(dict, words, currentTime);
85 dict.waitAllTasksForTests();
88 if (!dict.isInDictionary(word)) {
95 dict.close();
96 dict.waitAllTasksForTests();
100 private static void addWordsToDictionary(final UserHistoryDictionary dict,
105 UserHistoryDictionary.addToDictionary(dict, ngramContext, word, true, timestamp);
  /prebuilts/gdb/darwin-x86/lib/python2.7/plat-mac/
aepack.py 306 def mkrange(dict):
307 return aetypes.Range(dict['star'], dict['stop'])
309 def mkcomparison(dict):
310 return aetypes.Comparison(dict['obj1'], dict['relo'].enum, dict['obj2'])
312 def mklogical(dict):
313 return aetypes.Logical(dict['logc'], dict['term']
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/
aepack.py 306 def mkrange(dict):
307 return aetypes.Range(dict['star'], dict['stop'])
309 def mkcomparison(dict):
310 return aetypes.Comparison(dict['obj1'], dict['relo'].enum, dict['obj2'])
312 def mklogical(dict):
313 return aetypes.Logical(dict['logc'], dict['term']
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
_functoolsmodule.c 97 PyObject *dict; member in struct:__anon4377
143 pto->dict = NULL;
157 Py_XDECREF(pto->dict);
213 Py_VISIT(pto->dict);
235 if (pto->dict == NULL) {
236 pto->dict = PyDict_New();
237 if (pto->dict == NULL)
240 Py_INCREF(pto->dict);
241 return pto->dict;
258 "setting partial object's dictionary to a non-dict");
291 PyObject *fn, *fnargs, *kw, *dict; local
    [all...]

Completed in 565 milliseconds

1 23 4 5 6 7 8 91011>>