Home
last modified time | relevance | path

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

12345678910>>...30

/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.c45 int pairs;
75 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()
184 unsigned *pairs = (void *)toybuf, i; in get_range() local
187 if (TT.pairs == sizeof(toybuf)/sizeof(int)) perror_exit("select limit"); in get_range()
188 pairs += 2*TT.pairs++; in get_range()
190 pairs[1] = UINT_MAX; in get_range()
197 pairs[i] = ll; in get_range()
201 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 char *id) throw() in FindTextConfigItem() argument
112 FOR_VECTOR (i, pairs) in FindTextConfigItem()
113 if (pairs[i].ID.IsEqualTo(id)) in FindTextConfigItem()
118 UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const char *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.py139 pairs = []
140 pairs_append = pairs.append
156 result = object_pairs_hook(pairs)
158 pairs = {}
160 pairs = object_hook(pairs)
161 return pairs, end + 1
210 result = object_pairs_hook(pairs)
212 pairs = dict(pairs)
214 pairs = object_hook(pairs)
215 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/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DBlockLZ4CompressorOutputStream.java86 private Deque<Pair> pairs = new LinkedList<>(); field in BlockLZ4CompressorOutputStream
198 Pair last = pairs.peekLast(); in writeBlocksAndReturnUnfinishedPair()
201 pairs.addLast(last); in writeBlocksAndReturnUnfinishedPair()
288 for (Iterator<Pair> it = pairs.descendingIterator(); it.hasNext(); ) { in clearUnusedPairs()
296 final int size = pairs.size(); in clearUnusedPairs()
298 Pair p = pairs.peekFirst(); in clearUnusedPairs()
300 pairs.removeFirst(); in clearUnusedPairs()
309 for (Pair p : pairs) { in writeFinalLiteralBlock()
314 pairs.clear(); in writeFinalLiteralBlock()
319 for (Iterator<Pair> it = pairs.descendingIterator(); it.hasNext(); ) { in writeWritablePairs()
[all …]
/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/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/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/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, "Title"); in WinMain()
185 UString installPrompt = GetTextConfigValue(pairs, "BeginPrompt"); in WinMain()
186 UString progress = GetTextConfigValue(pairs, "Progress"); in WinMain()
189 int index = FindTextConfigItem(pairs, "Directory"); in WinMain()
191 dirPrefix = pairs[index].String; in WinMain()
198 appLaunched = GetTextConfigValue(pairs, "RunProgram"); in WinMain()
201 executeFile = GetTextConfigValue(pairs, "ExecuteFile"); in WinMain()
202 executeParameters = GetTextConfigValue(pairs, "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/cldr/tools/java/org/unicode/cldr/draft/
DCharacterListCompressor.java135 public static void addPair(List<List<Integer>> pairs, int value, int type) { in addPair() argument
139 pairs.add(pair); in addPair()
142 public static String encodeValueTypePairs2Base88(List<List<Integer>> pairs) { in encodeValueTypePairs2Base88() argument
144 for (int i = 0; i < pairs.size(); i++) { in encodeValueTypePairs2Base88()
145 List<Integer> pair = pairs.get(i); in encodeValueTypePairs2Base88()
175 List<List<Integer>> pairs = getValueTypePairsFromStrRangeList(intervalList); in base88EncodeList() local
176 String encoded = encodeValueTypePairs2Base88(pairs); in base88EncodeList()
182 List<List<Integer>> pairs = decodeBase88ToValueTypePairs(base88String); in base88DecodeList() local
183 List<Interval> decoded = getStrRangeListFromValueTypePairs(pairs); in base88DecodeList()
227 public static List<Interval> getStrRangeListFromValueTypePairs(List<List<Integer>> pairs) { in getStrRangeListFromValueTypePairs() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Dmemcpy_dereferenceable.ll14 %pairs = alloca [4 x <2 x i64>], align 8
15 %pair1 = getelementptr inbounds [4 x <2 x i64>], [4 x <2 x i64>]* %pairs, i64 0, i64 1
16 %pair2 = getelementptr inbounds [4 x <2 x i64>], [4 x <2 x i64>]* %pairs, i64 0, i64 2
19 %dst = bitcast [4 x <2 x i64>]* %pairs to i8*
47 %pairs = alloca [4 x <2 x i64>], align 8
48 %pair1 = getelementptr inbounds [4 x <2 x i64>], [4 x <2 x i64>]* %pairs, i64 0, i64 1
49 %pair2 = getelementptr inbounds [4 x <2 x i64>], [4 x <2 x i64>]* %pairs, i64 0, i64 2
52 %dst = bitcast [4 x <2 x i64>]* %pairs to i8*

12345678910>>...30