/third_party/node/test/fixtures/wpt/encoding/ |
D | iso-2022-jp-decoder.any.js | 1 function decode(input, output, desc) { function 9 assert_equals(d.decode(view), output) 12 decode([0x1b, 0x24], "�$", "Error ESC") 13 decode([0x1b, 0x24, 0x50], "�$P", "Error ESC, character") 14 decode([0x1b, 0x28, 0x42, 0x50], "P", "ASCII ESC, character") 15 decode([0x1b, 0x28, 0x42, 0x1b, 0x28, 0x42, 0x50], "�P", "Double ASCII ESC, character") 16 decode([0x50, 0x1b, 0x28, 0x42, 0x50], "PP", "character, ASCII ESC, character") 17 decode([0x5C, 0x5D, 0x7E], "\\]~", "characters") 18 decode([0x0D, 0x0E, 0x0F, 0x10], "\x0D��\x10", "SO / SI") 20 decode([0x1b, 0x28, 0x4A, 0x5C, 0x5D, 0x7E], "¥]‾", "Roman ESC, characters") [all …]
|
D | textdecoder-fatal-streaming.any.js | 12 decoder.decode(new Uint8Array(testCase.sequence)); 16 new TextDecoder(testCase.encoding).decode(new Uint8Array([testCase.sequence])), 28 assert_equals(decoder.decode(odd, {stream: true}), ''); 29 assert_equals(decoder.decode(odd), '\u0000'); 32 decoder.decode(even, {stream: true}); 33 decoder.decode(odd) 37 decoder.decode(odd, {stream: true}); 38 decoder.decode(even); 41 assert_equals(decoder.decode(even, {stream: true}), '\u0000'); 42 assert_equals(decoder.decode(even), '\u0000');
|
/third_party/ltp/testcases/kernel/syscalls/ptrace/ |
D | simple_tracer.c | 40 #define decode(reg) _decode(#reg, pt->reg) macro 48 decode(p0); in decode_regs() 49 decode(r0); in decode_regs() 50 decode(r1); in decode_regs() 51 decode(r2); in decode_regs() 52 decode(r3); in decode_regs() 53 decode(r4); in decode_regs() 54 decode(r5); in decode_regs() 59 decode(eax); in decode_regs() 60 decode(ebx); in decode_regs() [all …]
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_datasets_clue.py | 32 'label': d['label'].item().decode("utf8"), 33 'sentence1': d['sentence1'].item().decode("utf8"), 34 'sentence2': d['sentence2'].item().decode("utf8") 49 'label': d['label'].item().decode("utf8"), 50 'sentence1': d['sentence1'].item().decode("utf8"), 51 'sentence2': d['sentence2'].item().decode("utf8") 93 'label': d['label'].item().decode("utf8"), 94 'sentence1': d['sentence1'].item().decode("utf8"), 95 'sentence2': d['sentence2'].item().decode("utf8") 105 'sentence1': d['sentence1'].item().decode("utf8"), [all …]
|
D | test_datasets_sbu.py | 71 dataset = ds.SBUDataset(DATA_DIR, decode=True, num_samples=50, shuffle=False) 77 assert data["caption"].item().decode("utf8") == captions[i] 86 dataset = ds.SBUDataset(DATA_DIR, decode=True) 100 dataset = ds.SBUDataset(DATA_DIR, decode=False) 122 dataset = ds.SBUDataset(DATA_DIR, decode=True) 130 dataset = ds.SBUDataset(DATA_DIR, decode=True, num_samples=5) 137 dataset = ds.SBUDataset(DATA_DIR, decode=True, num_samples=5) 145 dataset = ds.SBUDataset(DATA_DIR, decode=True, num_samples=5) 155 dataset = ds.SBUDataset(DATA_DIR, decode=True, num_samples=5) 159 dataset = ds.SBUDataset(DATA_DIR, decode=True, num_samples=5) [all …]
|
D | test_datasets_csv.py | 101 buffer.extend([d['col1'].item().decode("utf8"), 102 d['col2'].item().decode("utf8"), 103 d['col3'].item().decode("utf8"), 104 d['col4'].item().decode("utf8")]) 118 buffer.extend([d['col1'].item().decode("utf8"), 119 d['col2'].item().decode("utf8"), 120 d['col3'].item().decode("utf8"), 121 d['col4'].item().decode("utf8")]) 134 buffer.extend([d['col1'].item().decode("utf8"), 135 d['col2'].item().decode("utf8"), [all …]
|
D | test_datasets_flowers102.py | 80 num_samples=6, decode=True, shuffle=False) 92 num_samples=2, decode=True, shuffle=False) 104 num_samples=2, decode=True, shuffle=False) 116 num_samples=2, decode=True, shuffle=False) 135 …all_data = ds.Flowers102Dataset(DATA_DIR, task="Classification", usage="all", decode=False, shuffl… 137 …all_data_2 = ds.Flowers102Dataset(DATA_DIR, task="Classification", usage="all", decode=True, shuff… 147 …all_data = ds.Flowers102Dataset(DATA_DIR, task="Classification", usage="all", decode=True, num_sam… 154 …all_data = ds.Flowers102Dataset(DATA_DIR, task="Classification", usage="all", decode=True, num_sam… 162 …all_data = ds.Flowers102Dataset(DATA_DIR, task="Classification", usage="all", decode=False, num_sa… 178 …all_data = ds.Flowers102Dataset(DATA_DIR, task="Classification", usage="all", decode=False, num_sa… [all …]
|
D | test_random_crop_with_bbox.py | 42 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 43 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 72 decode=True, shuffle=False) 75 decode=True, shuffle=False) 104 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 105 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 141 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 142 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 171 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 172 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) [all …]
|
D | test_bounding_box_augment.py | 45 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 46 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 84 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 85 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 123 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 124 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 159 decode=True, shuffle=False) 162 decode=True, shuffle=False) 191 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 192 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) [all …]
|
D | test_datasets_flickr.py | 34 plt.title('\n'.join([s.decode('utf-8') for s in item[1]])) 39 data = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_1, decode=True) 54 …data = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_1, decode=True, shuffle=F… 73 annotation = [s.decode("utf8") for s in item["annotation"]] 82 … = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_2, num_samples=2, decode=True) 89 data2 = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_1, decode=True) 97 …data3 = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_2, decode=True, shuffle=… 111 …data4 = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_2, decode=True, shuffle=… 130 data = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_1, decode=True) 140 data = ds.FlickrDataset(FLICKR30K_DATASET_DIR, FLICKR30K_ANNOTATION_FILE_1, decode=True)
|
D | test_random_horizontal_flip_with_bbox.py | 40 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 42 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 69 decode=True, shuffle=False) 72 decode=True, shuffle=False) 103 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 105 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 139 dataVoc1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 140 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 177 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) 199 dataVoc2 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True) [all …]
|
D | test_random_vertical_flip_with_bbox.py | 40 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 42 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 70 decode=True, shuffle=False) 73 decode=True, shuffle=False) 104 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 106 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 139 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 141 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 175 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 200 …data_voc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=Tru… [all …]
|
D | test_random_crop_and_resize_with_bbox.py | 45 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 46 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 81 decode=True, shuffle=False) 84 decode=True, shuffle=False) 111 …dataVoc1 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 112 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 148 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 173 …dataVoc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=True) 199 …data_voc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=Tru… 201 …data_voc2 = ds.VOCDataset(DATA_DIR_VOC, task="Detection", usage="train", shuffle=False, decode=Tru… [all …]
|
D | test_datasets_voc.py | 26 …data1 = ds.VOCDataset(DATA_DIR, task="Segmentation", usage="train", shuffle=False, decode=True, ex… 38 …data1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", shuffle=False, decode=True, extra… 54 …= ds.VOCDataset(DATA_DIR, task="Detection", usage="train", class_indexing=class_index, decode=True) 72 data1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", decode=True) 91 …data1 = ds.VOCDataset(DATA_DIR, task="Segmentation", usage="train", decode=True, shuffle=False, ex… 101 …data2 = ds.VOCDataset(DATA_DIR, task="Segmentation", usage="train", decode=True, shuffle=False, ex… 113 …data3 = ds.VOCDataset(DATA_DIR, task="Segmentation", usage="train", decode=True, shuffle=False, ex… 126 …data4 = ds.VOCDataset(DATA_DIR, task="Segmentation", usage="train", decode=True, shuffle=False, ex… 137 data1 = ds.VOCDataset(DATA_DIR, task="Segmentation", usage="train", decode=True) 155 data1 = ds.VOCDataset(DATA_DIR, task="Detection", usage="train", decode=True) [all …]
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_base64.data | 91 Base64 decode (Illegal character) 94 Base64 decode (Too much equal signs) 97 Base64 decode (Invalid char after equal signs) 100 Base64 decode (Space inside string) 103 Base64 decode "Zm9vYmFy" (no newline nor '\0' at end) 106 Base64 decode "Zm9vYmFy\n" (LF at end) 109 Base64 decode "Zm9vYmFy\r\n" (CRLF at end) 112 Base64 decode "Zm9vYmFy\r" (CR at end) 115 Base64 decode "Zm9vYmFy " (SP at end) 118 Base64 decode "Zm9vYmFy \n" (SP+LF at end) [all …]
|
/third_party/nghttp2/src/ |
D | base64_test.cc | 65 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 67 CU_ASSERT("\xff" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 71 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 74 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 78 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 81 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 85 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 88 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 93 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode() 95 CU_ASSERT("" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() [all …]
|
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
D | basicauth.c | 50 char *decode; in MHD_basic_auth_get_username_password() local 60 if (NULL == (decode = BASE64Decode (header))) in MHD_basic_auth_get_username_password() 69 if (NULL == (separator = strchr (decode, ':'))) in MHD_basic_auth_get_username_password() 75 free (decode); in MHD_basic_auth_get_username_password() 78 if (NULL == (user = strdup (decode))) in MHD_basic_auth_get_username_password() 80 free (decode); in MHD_basic_auth_get_username_password() 83 user[separator - decode] = '\0'; /* cut off at ':' */ in MHD_basic_auth_get_username_password() 93 free (decode); in MHD_basic_auth_get_username_password() 98 free (decode); in MHD_basic_auth_get_username_password()
|
/third_party/node/test/parallel/ |
D | test-whatwg-encoding-custom-textdecoder.js | 24 const res = dec.decode(buf); 31 res += dec.decode(buf.slice(0, 8), { stream: true }); 32 res += dec.decode(buf.slice(8)); 41 const res = dec.decode(buf); 48 res += dec.decode(buf.slice(0, 8), { stream: true }); 49 res += dec.decode(buf.slice(8)); 58 assert.throws(() => dec.decode(buf.slice(0, 8)), 69 dec.decode(buf.slice(0, 8), { stream: true }); 70 dec.decode(buf.slice(8)); 94 const res = dec.decode(Buffer.from('test€', 'utf-16le')); [all …]
|
D | test-punycode.js | 39 assert.strictEqual(punycode.decode('tda'), 'ü'); 40 assert.strictEqual(punycode.decode('Goethe-'), 'Goethe'); 41 assert.strictEqual(punycode.decode('Bcher-kva'), 'Bücher'); 43 punycode.decode( 48 assert.strictEqual(punycode.decode('wgv71a119e'), '日本語'); 49 assert.strictEqual(punycode.decode('x73l'), ''); 51 punycode.decode(' '); 54 punycode.decode('α-'); 57 punycode.decode('あ'); 214 decode: (test) => assert.strictEqual( [all …]
|
D | test-stream-writev.js | 29 for (let decode = 0; decode < 2; decode++) { 32 queue.push([!!decode, !!uncork, !!multi]); 47 function test(decode, uncork, multi, next) { argument 48 console.log(`# decode=${decode} uncork=${uncork} multi=${multi}`); 61 const w = new stream.Writable({ decodeStrings: decode }); 64 const expectChunks = decode ? [
|
/third_party/python/Lib/test/ |
D | test_multibytecodec.py | 37 self.assertEqual(b''.decode(enc), '') 235 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0\xcc\xbd'), 237 self.assertEqual(decoder.decode(b'\xe3 \xb8\xb6\xc0\xbb'), 239 self.assertEqual(decoder.decode(b''), '') 243 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c') 244 self.assertRaises(UnicodeDecodeError, decoder.decode, b'', True) 245 self.assertEqual(decoder.decode(b'\xcc'), '\uc774') 247 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c') 248 self.assertRaises(UnicodeDecodeError, decoder.decode, 250 self.assertEqual(decoder.decode(b'\xcc'), '\uc774') [all …]
|
D | test_codecs.py | 78 part1 = d.decode(s[:i]) 87 self.assertTrue(not d.decode(state[0])) 94 part2 = d.decode(s[i:], True) 129 result += d.decode(bytes([c])) 132 self.assertEqual(d.decode(b"", True), "") 139 result += d.decode(bytes([c])) 142 self.assertEqual(d.decode(b"", True), "") 414 self.assertRaises(UnicodeDecodeError, test_sequence.decode, 419 self.assertEqual(test_sequence.decode(self.encoding, 422 self.assertEqual(test_sequence.decode(self.encoding, "ignore"), [all …]
|
D | test_uu.py | 46 return self.buffer.getvalue().decode(self._encoding, self._errors) 80 uu.decode(inp, out) 88 uu.decode(inp, out) 95 uu.decode(inp, out) 104 uu.decode(inp, out) 131 uu.decode(inp, out, quiet=True) 136 decoded = codecs.decode(encodedtext, "uu_codec") 159 sys.stdin = FakeIO(plaintext.decode("ascii")) 163 encodedtextwrapped(0o666, "t1").decode("ascii")) 166 sys.stdin = FakeIO(encodedtextwrapped(0o666, "t1").decode("ascii")) [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/ |
D | datasets.h | 843 …const std::vector<std::vector<char>> &column_names, bool decode, const std::shared_ptr<Sampler> &s… 854 … const std::vector<std::vector<char>> &column_names, bool decode, const Sampler *sampler, 865 const std::vector<std::vector<char>> &column_names, bool decode, 884 … const std::vector<std::string> &column_names = {}, bool decode = false, 888 VectorStringToChar(column_names), decode, sampler, cache); 900 … const std::vector<std::string> &column_names, bool decode, 904 VectorStringToChar(column_names), decode, sampler, cache); 916 … const std::vector<std::string> &column_names, bool decode, 920 VectorStringToChar(column_names), decode, sampler, cache); 936 …const std::shared_ptr<Sampler> &sampler, bool decode, const std::set<std::vector<char>> &extension… [all …]
|
/third_party/flutter/engine/flutter/shell/platform/darwin/common/framework/Source/ |
D | flutter_codecs_unittest.mm | 11 ASSERT_TRUE([codec decode:nil] == nil); 17 ASSERT_TRUE([[codec decode:[NSData data]] isEqualTo:@""]); 24 NSString* decoded = [codec decode:encoded]; 32 NSString* decoded = [codec decode:encoded]; 40 NSString* decoded = [codec decode:encoded]; 47 ASSERT_TRUE([codec decode:nil] == nil); 54 NSArray* decoded = [codec decode:encoded]; 62 NSDictionary* decoded = [codec decode:encoded];
|