Home
last modified time | relevance | path

Searched refs:pairs (Results 1 – 25 of 599) sorted by relevance

12345678910>>...24

/external/python/cpython2/Lib/test/
Dtest_ordered_dict.py15 pairs = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]
16 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input
17 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input
18 self.assertEqual(list(OrderedDict(pairs).items()), pairs) # pairs input
20 c=3, e=5).items()), pairs) # mixed input
38 pairs = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]
40 od.update(dict(pairs))
41 self.assertEqual(sorted(od.items()), pairs) # dict input
43 od.update(**dict(pairs))
44 self.assertEqual(sorted(od.items()), pairs) # kwds input
[all …]
/external/toybox/toys/posix/
Dcut.c46 int pairs;
77 unsigned *pairs = (void *)toybuf; in cut_line() local
84 for (i=0; i<TT.pairs; i++) { in cut_line()
85 unsigned start = pairs[2*i], end = pairs[(2*i)+1], count; in cut_line()
183 unsigned *pairs = (void *)toybuf, i; in get_range() local
186 if (TT.pairs == sizeof(toybuf)/sizeof(int)) perror_exit("select limit"); in get_range()
187 pairs += 2*TT.pairs++; in get_range()
189 pairs[1] = UINT_MAX; in get_range()
196 pairs[i] = ll; in get_range()
200 if (!i) pairs[1] = pairs[0]; in get_range()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/expr/
DNormalAnnotationExpr.java46 private NodeList<MemberValuePair> pairs; field in NormalAnnotationExpr
53 public NormalAnnotationExpr(final Name name, final NodeList<MemberValuePair> pairs) { in NormalAnnotationExpr() argument
54 this(null, name, pairs); in NormalAnnotationExpr()
61 public NormalAnnotationExpr(TokenRange tokenRange, Name name, NodeList<MemberValuePair> pairs) { in NormalAnnotationExpr() argument
63 setPairs(pairs); in NormalAnnotationExpr()
81 return pairs; in getPairs()
85 public NormalAnnotationExpr setPairs(final NodeList<MemberValuePair> pairs) { in setPairs() argument
86 assertNotNull(pairs); in setPairs()
87 if (pairs == this.pairs) { in setPairs()
90 notifyPropertyChange(ObservableProperty.PAIRS, this.pairs, pairs); in setPairs()
[all …]
/external/python/cpython3/Lib/test/
Dtest_ordered_dict.py35 pairs = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]
36 self.assertEqual(sorted(OrderedDict(dict(pairs)).items()), pairs) # dict input
37 self.assertEqual(sorted(OrderedDict(**dict(pairs)).items()), pairs) # kwds input
38 self.assertEqual(list(OrderedDict(pairs).items()), pairs) # pairs input
40 c=3, e=5).items()), pairs) # mixed input
67 pairs = [('a', 1), ('b', 2), ('c', 3), ('d', 4), ('e', 5)]
69 od.update(dict(pairs))
70 self.assertEqual(sorted(od.items()), pairs) # dict input
72 od.update(**dict(pairs))
73 self.assertEqual(sorted(od.items()), pairs) # kwds input
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/expr/
DNormalAnnotationExpr.java42 private List<MemberValuePair> pairs; field in NormalAnnotationExpr
47 public NormalAnnotationExpr(final NameExpr name, final List<MemberValuePair> pairs) { in NormalAnnotationExpr() argument
49 setPairs(pairs); in NormalAnnotationExpr()
52 …c NormalAnnotationExpr(final Range range, final NameExpr name, final List<MemberValuePair> pairs) { in NormalAnnotationExpr() argument
55 setPairs(pairs); in NormalAnnotationExpr()
69 pairs = ensureNotNull(pairs); in getPairs()
70 return pairs; in getPairs()
73 public NormalAnnotationExpr setPairs(final List<MemberValuePair> pairs) { in setPairs() argument
74 this.pairs = pairs; in setPairs()
75 setAsParentNodeOf(this.pairs); in setPairs()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/expr/
DNormalAnnotationExpr.java34 private List<MemberValuePair> pairs; field in NormalAnnotationExpr
39 public NormalAnnotationExpr(final NameExpr name, final List<MemberValuePair> pairs) { in NormalAnnotationExpr() argument
41 setPairs(pairs); in NormalAnnotationExpr()
45 final NameExpr name, final List<MemberValuePair> pairs) { in NormalAnnotationExpr() argument
48 setPairs(pairs); in NormalAnnotationExpr()
60 return pairs; in getPairs()
63 public void setPairs(final List<MemberValuePair> pairs) { in setPairs() argument
64 this.pairs = pairs; in setPairs()
65 setAsParentNodeOf(this.pairs); in setPairs()
/external/brotli/c/enc/
Dcluster_inc.h16 uint32_t idx2, size_t max_num_pairs, HistogramPair* pairs,
44 BROTLI_MAX(double, 0.0, pairs[0].cost_diff);
56 if (*num_pairs > 0 && HistogramPairIsLess(&pairs[0], &p)) {
59 pairs[*num_pairs] = pairs[0];
62 pairs[0] = p;
64 pairs[*num_pairs] = p;
74 HistogramPair* pairs,
91 clusters[idx2], max_num_pairs, &pairs[0], &num_pairs);
100 if (pairs[0].cost_diff >= cost_diff_threshold) {
106 best_idx1 = pairs[0].idx1;
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DAttrData.java8 private final List<Pair> pairs; field in AttrData
10 public AttrData(String name, String format, List<Pair> pairs) { in AttrData() argument
13 this.pairs = pairs; in AttrData()
25 if (pairs == null) return null; in getValueFor()
26 for (Pair pair : pairs) { in getValueFor()
35 if (pairs == null) { in isValue()
38 for (Pair pair : pairs) { in isValue()
53 if (pairs != null) { in toString()
54 for (Pair p : pairs) { in toString()
DStaxAttrLoader.java11 private final List<AttrData.Pair> pairs = new ArrayList<>(); field in StaxAttrLoader
23 if (pairs.isEmpty()) { in StaxAttrLoader()
32 pairs.add(new AttrData.Pair(name, value)); in StaxAttrLoader()
53 AttrData attrData = new AttrData(name, format, new ArrayList<>(pairs)); in onEnd()
54 pairs.clear(); in onEnd()
/external/junit-params/src/test/java/junitparams/internal/
DTestMethodTest.java99 public void testVarargsCustomClass(Pair... pairs){ in testVarargsCustomClass() argument
100 assertEquals(pairs[0].x, pairs[0].y); in testVarargsCustomClass()
101 assertEquals(pairs[1].x, pairs[1].y); in testVarargsCustomClass()
102 assertNotEquals(pairs[2].x, pairs[2].y); in testVarargsCustomClass()
113 public void testVarargsMoreArgs(int sumOfX, int sumOfY, Pair... pairs){ in testVarargsMoreArgs() argument
116 for (Pair pair : pairs) { in testVarargsMoreArgs()
131 public void testVargsMoreArgsOfTheSameType(Pair sum, Pair... pairs) { in testVargsMoreArgsOfTheSameType() argument
132 assertEquals(sum.x, pairs[0].x + pairs[1].x); in testVargsMoreArgsOfTheSameType()
133 assertEquals(sum.y, pairs[0].y + pairs[1].y); in testVargsMoreArgsOfTheSameType()
/external/lzma/CPP/Common/
DTextConfig.cpp50 bool GetTextConfig(const AString &s, CObjectVector<CTextConfigPair> &pairs) in GetTextConfig() argument
52 pairs.Clear(); in GetTextConfig()
105 pairs.Add(pair); in GetTextConfig()
110 int FindTextConfigItem(const CObjectVector<CTextConfigPair> &pairs, const UString &id) throw() in FindTextConfigItem() argument
112 FOR_VECTOR (i, pairs) in FindTextConfigItem()
113 if (pairs[i].ID == id) in FindTextConfigItem()
118 UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const UString &id) in GetTextConfigValue() argument
120 int index = FindTextConfigItem(pairs, id); in GetTextConfigValue()
123 return pairs[index].String; in GetTextConfigValue()
/external/curl/tests/unit/
Dunit1395.c47 const struct dotdot pairs[] = { variable
77 for(i = 0; i < sizeof(pairs)/sizeof(pairs[0]); i++) {
78 char *out = Curl_dedotdotify(pairs[i].input);
81 if(strcmp(out, pairs[i].output)) {
83 i, pairs[i].input, out, pairs[i].output);
/external/jcommander/src/test/java/com/beust/jcommander/
DMethodSetterTest.java17 public void setPairs(List<String> pairs) { in arityStringsSetter() argument
18 this.pairs = pairs; in arityStringsSetter()
21 return this.pairs; in arityStringsSetter()
23 public List<String> pairs; in arityStringsSetter() field in MethodSetterTest.ArgsArityStringSetter
38 Assert.assertEquals(args.pairs.size(), 2); in arityStringsSetter()
39 Assert.assertEquals(args.pairs.get(0), "pair0"); in arityStringsSetter()
40 Assert.assertEquals(args.pairs.get(1), "pair1"); in arityStringsSetter()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/
DAbstractSampleEncryptionBox.java70 e.pairs = new LinkedList<Entry.Pair>(); in _parseDetails()
72 … e.pairs.add(e.createPair(IsoTypeReader.readUInt16(content), IsoTypeReader.readUInt32(content))); in _parseDetails()
162 IsoTypeWriter.writeUInt16(byteBuffer, entry.pairs.size()); in getContent()
163 for (Entry.Pair pair : entry.pairs) { in getContent()
196 public List<Pair> pairs = new LinkedList<Pair>(); field in AbstractSampleEncryptionBox.Entry
209 for (Entry.Pair pair : pairs) { in getSize()
279 if (pairs != null ? !pairs.equals(entry.pairs) : entry.pairs != null) { in equals()
289 result = 31 * result + (pairs != null ? pairs.hashCode() : 0); in hashCode()
297 ", pairs=" + pairs + in toString()
344 size += entry.pairs.size() * 6; in getEntrySizes()
/external/python/cpython2/Lib/
Dmhlib.py795 self.pairs = []
801 self.pairs = []
804 return cmp(self.pairs, other.pairs)
807 return hash(self.pairs)
813 self.pairs.sort()
815 while i < len(self.pairs):
816 alo, ahi = self.pairs[i-1]
817 blo, bhi = self.pairs[i]
819 self.pairs[i-1:i+1] = [(alo, max(ahi, bhi))]
825 for lo, hi in self.pairs:
[all …]
/external/python/cpython3/Lib/json/
Ddecoder.py138 pairs = []
139 pairs_append = pairs.append
155 result = object_pairs_hook(pairs)
157 pairs = {}
159 pairs = object_hook(pairs)
160 return pairs, end + 1
209 result = object_pairs_hook(pairs)
211 pairs = dict(pairs)
213 pairs = object_hook(pairs)
214 return pairs, end
/external/python/cpython2/Lib/json/
Ddecoder.py151 pairs = []
152 pairs_append = pairs.append
164 result = object_pairs_hook(pairs)
166 pairs = {}
168 pairs = object_hook(pairs)
169 return pairs, end + 1
229 result = object_pairs_hook(pairs)
231 pairs = dict(pairs)
233 pairs = object_hook(pairs)
234 return pairs, end
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_expected_output/
Dcom_github_javaparser_ast_expr_NormalAnnotationExpr.txt9 Line 41) setPairs(pairs) ==> void
15 Line 48) setPairs(pairs) ==> void
18 Line 60) pairs ==> java.util.List<com.github.javaparser.ast.expr.MemberValuePair>
19 Line 64) this.pairs = pairs ==> java.util.List<com.github.javaparser.ast.expr.MemberValuePair>
20 Line 65) setAsParentNodeOf(this.pairs) ==> void
/external/libmicrohttpd/src/testspdy/
Dtest_struct_namevalue.c31 char *pairs[] = {"one","1","two","2","three","3","four","4","five","5"}; variable
49 if(strcmp(name,pairs[*c]) != 0) in iterate_cb()
59 if(strcmp(value[0],pairs[(*c)+1]) != 0) in iterate_cb()
112 size = sizeof(pairs)/sizeof(pairs[0]); in main()
131 if(SPDY_YES != SPDY_name_value_add(container,pairs[i],pairs[i+1])) in main()
149 value = SPDY_name_value_lookup(container,pairs[i], &ret); in main()
150 if(NULL == value || 1 !=ret || strcmp(value[0], pairs[i+1]) != 0) in main()
153 (NULL == value) ? -1 : strcmp(value[0], pairs[i+1])); in main()
/external/skqp/tools/lua/
Dbbh_filter.lua12 for _,_ in pairs(table) do
77 for k,v in pairs(verbCounts) do
86 for k, v in pairs(meta) do
104 for name, count in pairs(verbs) do
109 for n, info in pairs(globalInfo) do
120 for i, t in pairs(meta) do
124 for verb,count in pairs(globalInfo[t.fileName].verbs) do
/external/skia/tools/lua/
Dbbh_filter.lua12 for _,_ in pairs(table) do
77 for k,v in pairs(verbCounts) do
86 for k, v in pairs(meta) do
104 for name, count in pairs(verbs) do
109 for n, info in pairs(globalInfo) do
120 for i, t in pairs(meta) do
124 for verb,count in pairs(globalInfo[t.fileName].verbs) do
/external/libchrome/base/process/
Dprocess_metrics_linux.cc34 void TrimKeyValuePairs(StringPairs* pairs) { in TrimKeyValuePairs() argument
35 DCHECK(pairs); in TrimKeyValuePairs()
36 StringPairs& p_ref = *pairs; in TrimKeyValuePairs()
69 StringPairs pairs; in ReadProcStatusAndGetFieldAsSizeT() local
70 SplitStringIntoKeyValuePairs(status, ':', '\n', &pairs); in ReadProcStatusAndGetFieldAsSizeT()
71 TrimKeyValuePairs(&pairs); in ReadProcStatusAndGetFieldAsSizeT()
72 for (size_t i = 0; i < pairs.size(); ++i) { in ReadProcStatusAndGetFieldAsSizeT()
73 const std::string& key = pairs[i].first; in ReadProcStatusAndGetFieldAsSizeT()
74 const std::string& value_str = pairs[i].second; in ReadProcStatusAndGetFieldAsSizeT()
111 StringPairs pairs; in ReadProcSchedAndGetFieldAsUint64() local
[all …]
/external/lzma/CPP/7zip/Bundles/SFXSetup/
DSfxSetup.cpp177 CObjectVector<CTextConfigPair> pairs; in WinMain() local
178 if (!GetTextConfig(config, pairs)) in WinMain()
184 UString friendlyName = GetTextConfigValue(pairs, L"Title"); in WinMain()
185 UString installPrompt = GetTextConfigValue(pairs, L"BeginPrompt"); in WinMain()
186 UString progress = GetTextConfigValue(pairs, L"Progress"); in WinMain()
189 int index = FindTextConfigItem(pairs, L"Directory"); in WinMain()
191 dirPrefix = pairs[index].String; in WinMain()
198 appLaunched = GetTextConfigValue(pairs, L"RunProgram"); in WinMain()
201 executeFile = GetTextConfigValue(pairs, L"ExecuteFile"); in WinMain()
202 executeParameters = GetTextConfigValue(pairs, L"ExecuteParameters"); in WinMain()
/external/nist-sip/java/gov/nist/core/
DMultiValueMapImpl.java56 Set pairs = map.entrySet(); in containsValue() local
58 if (pairs == null) in containsValue()
61 Iterator pairsIterator = pairs.iterator(); in containsValue()
72 Set pairs = map.entrySet(); in clear() local
73 Iterator pairsIterator = pairs.iterator(); in clear()
85 Set pairs = map.entrySet(); in values() local
86 Iterator pairsIterator = pairs.iterator(); in values()
/external/autotest/server/site_tests/native_Benchmarks/
Doctane.py39 pairs = [line.split(': ') for line in log.splitlines()]
40 del pairs[-2]
41 pairs[-1][0] = 'Total'
45 'units': 'score'} for p in pairs]

12345678910>>...24