/third_party/node/tools/inspector_protocol/ |
H A D | pdl.py | 58 lines = data.split('\n') 59 for i in range(0, len(lines)): 63 line = lines[i]
|
/third_party/python/Tools/scripts/ |
H A D | byext.py | 68 lines = str(data, "latin-1").splitlines() 69 self.addstats(ext, "lines", len(lines)) 70 del lines
|
/third_party/python/Lib/distutils/ |
H A D | text_file.py | 5 lines, and joining lines with backslashes.""" 14 comment character), skip blank lines, join adjacent lines by 21 spans multiple physical lines. Also provides 'unreadline()' for 46 skip lines that are empty *after* stripping comments and 48 then some lines may consist of solely whitespace: these will 53 to it to form one "logical line"; if N consecutive lines end 54 with a backslash, then N+1 physical lines will be joined to 57 strip leading whitespace from lines tha [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | promote.py | 74 lines = loadFile(filename) 75 if (lines == None): 95 for line in lines: 128 # Patterns used to recognize interesting lines in an asciidoc source file.
|
/third_party/skia/third_party/externals/brotli/research/ |
H A D | draw_diff.cc | 30 ScanLine* lines = new ScanLine[*height]; in ReadPGM() local 31 *image = lines; in ReadPGM() 34 lines[i] = line; in ReadPGM()
|
/third_party/unity/auto/ |
H A D | stylize_as_junit.py | 37 lines = list(map(lambda line: line.rstrip(), open(result_file, "r").read().split('\n'))) 38 if len(lines) == 0: 72 for l in lines:
|
/third_party/skia/gm/ |
H A D | pixelsnap.cpp | 80 // Draw test case grid lines (Draw them all at pixel centers to hopefully avoid any 98 // +1's account for the grid lines around each test case. 161 // A rectangle that exactly covers a pixel, a point at each corner, 8 horiz/vert lines 163 // order lines (green), points (blue), rect(red). 166 const SkPoint lines[] = { 176 canvas->drawPoints(SkCanvas::kLines_PointMode, SK_ARRAY_COUNT(lines), lines, paint);
|
/third_party/skia/platform_tools/android/skp_gen/ |
H A D | android_skp_capture.py | 93 lines = output.splitlines() 94 if lines[-1] != '0': 96 return '\n'.join(lines[:-1])
|
/third_party/backends/frontend/ |
H A D | scanimage.c | 137 #define STRIP_HEIGHT 256 /* # lines we increment image height */ 1415 if (parm.lines >= 0) in scan_it() 1418 prog_name, parm.pixels_per_line, parm.lines, in scan_it() 1450 if (parm.lines < 0) in scan_it() 1460 parm.pixels_per_line, parm.lines, in scan_it() 1466 parm.lines, parm.depth, ofp); in scan_it() 1471 parm.lines, parm.depth, resolution_value, in scan_it() 1477 sane_pdf_start_page ( pw, parm.pixels_per_line, parm.lines, in scan_it() 1481 parm.lines, resolution_value, in scan_it() 1486 parm.lines, resolution_valu in scan_it() [all...] |
/third_party/icu/tools/colprobe/ |
H A D | sortedlines.cpp | 13 lines(NULL), in SortedLines() 42 delete[] lines; in ~SortedLines() 236 lines = new Line[capacity]; in init() 237 init(repertoire, lines); in init() 333 setSortingArray(toSort, lines, size); in sort() 380 lines[size+i] = toAdd[i]; in addAll() 440 setSortingArray(toSort, lines, size); in addContractionsToRepertoire() 470 setSortingArray(toSort, lines, size); in addContractionsToRepertoire() 1307 lines[size] = *line; in add() 1308 Line *toAdd = &lines[siz in add() [all...] |
/third_party/littlefs/scripts/ |
H A D | plot.py | 171 self.lines = co.deque(maxlen=maxlen) 180 lines = s.split('\n') 182 if len(lines) > 1 and self.tail.getvalue(): 183 self.tail.write(lines[0]) 184 lines[0] = self.tail.getvalue() 187 self.lines.extend(lines[:-1]) 189 if lines[-1]: 190 self.tail.write(lines[-1]) 196 if maxlen != self.lines [all...] |
H A D | structs.py | 346 # build up our lines 347 lines = [] 372 lines.append(header) 434 lines.append(table_entry(name, r, diff_r, ratios)) 448 lines.append(table_entry('TOTAL', r, diff_r, ratios)) 453 ((max(it.chain([w], (len(l[i]) for l in lines)))+1+4-1)//4)*4-1 456 range(len(lines[0])-1))] 459 for line in lines:
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_framepack.c | 170 int lines = out->height; in horizontal_frame_pack() local 175 lines = AV_CEIL_RSHIFT(out->height, s->pix_desc->log2_chroma_h); in horizontal_frame_pack() 177 for (i = 0; i < lines; i++) { in horizontal_frame_pack() 205 int lines = out->height; in horizontal_frame_pack() local 210 lines = AV_CEIL_RSHIFT(out->height, s->pix_desc->log2_chroma_h); in horizontal_frame_pack() 212 for (i = 0; i < lines; i++) { in horizontal_frame_pack() 433 { "lines", "Views are interleaved by lines", 0, AV_OPT_TYPE_CONST,
|
/third_party/backends/backend/ |
H A D | hp-handle.c | 277 &p->lines,0,0)); in hp_handle_uploadParameters() 445 /* Photosmart: this gives the correct number of lines when doing in sanei_hp_handle_getParameters() 453 &p->lines,0,0)); in sanei_hp_handle_getParameters() 613 * this->scan_params.lines ); in sanei_hp_handle_startScan() 615 DBG(1, "start: %d pixels per line, %d bytes per line, %d lines high\n", in sanei_hp_handle_startScan() 617 this->scan_params.lines); in sanei_hp_handle_startScan() 625 procdata->lines = this->scan_params.lines; in sanei_hp_handle_startScan()
|
H A D | pieusb_specific.c | 81 static SANE_Status pieusb_write_pnm_file (char *filename, uint16_t *data, int depth, int channels, int pixels_per_line, int lines); 1269 DBG (DBG_info, "pie_usb_post: %d ppl, %d lines, %d bits, %d planes, %d dpi\n", in sanei_pieusb_post() 1270 parameters.pixels_per_line, parameters.lines, in sanei_pieusb_post() 1312 parameters.pixels_per_line, parameters.lines); in sanei_pieusb_post() 1368 parameters.lines); in sanei_pieusb_post() 1390 scanner->scan_parameters.lines); in sanei_pieusb_post() 1399 int channels, int pixels_per_line, int lines) in pieusb_write_pnm_file() 1407 "pie_usb_write_pnm_file: depth=%d, channels=%d, ppl=%d, lines=%d\n", in pieusb_write_pnm_file() 1408 depth, channels, pixels_per_line, lines); in pieusb_write_pnm_file() 1421 fprintf (out, "P4\n%d\n%d\n", pixels_per_line, lines); in pieusb_write_pnm_file() 1398 pieusb_write_pnm_file(char *filename, SANE_Uint *data, int depth, int channels, int pixels_per_line, int lines) pieusb_write_pnm_file() argument 2048 SANE_Int lines; sanei_pieusb_get_shading_data() local 2217 SANE_Int lines; sanei_pieusb_get_scan_data() local [all...] |
/third_party/python/Lib/unittest/test/testmock/ |
H A D | testwith.py | 201 # Check that readline will return all the lines from the fake file 224 # Check that dunder_iter will return all the lines from the fake file. 228 lines = [l for l in h] 229 self.assertEqual(lines[0], 'foo\n') 230 self.assertEqual(lines[1], 'bar\n') 231 self.assertEqual(lines[2], 'baz\n') 244 lines = [l for l in h] 247 self.assertEqual(lines[0], 'baz\n')
|
/third_party/skia/tools/viewer/ |
H A D | ParticlesSlide.cpp | 71 int lines = 1; in count_lines() local 74 ++lines; in count_lines() 77 return lines; in count_lines() 98 int lines = count_lines(s); variable 100 if (lines > 1) { 102 ImVec2 boxSize(-1.0f, ImGui::GetTextLineHeight() * (lines + 1));
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_codecontext.py | 318 # 4 lines of context showing. 326 # More context lines than limit. 438 lines = code_sample.splitlines() 441 eq(gli(lines[0]), (codecontext.INFINITY, '', False)) 443 eq(gli(lines[1]), (0, 'class C1:', 'class')) 445 eq(gli(lines[2]), (codecontext.INFINITY, ' # Class comment.', False)) 447 eq(gli(lines[3]), (4, ' def __init__(self, a, b):', 'def')) 449 eq(gli(lines[7]), (8, ' if a > b:', 'if'))
|
/third_party/protobuf/python/google/protobuf/ |
H A D | text_format.py | 737 def ParseLines(lines, 748 lines: An iterable of lines of a message's text representation. 768 return parser.ParseLines(lines, message) 771 def MergeLines(lines, 782 lines: An iterable of lines of a message's text representation. 802 return parser.MergeLines(lines, message) 818 def ParseLines(self, lines, message): 821 self._ParseOrMerge(lines, messag [all...] |
/third_party/python/Lib/test/ |
H A D | test_httplib.py | 367 lines = output.getvalue().splitlines() 368 self.assertEqual(lines[0], "reply: 'HTTP/1.1 200 OK\\r\\n'") 369 self.assertEqual(lines[1], "header: First: val") 370 self.assertEqual(lines[2], "header: Second: val1") 371 self.assertEqual(lines[3], "header: Second: val2") 474 lines = self.expected_body.split(b' ') 475 for idx, line in enumerate(lines): 476 # for testing handling empty lines 479 if idx < len(lines) - 1: 485 lines 1418 lines = ( global() variable in ExtendedReadTest 1543 lines = ( global() variable in ExtendedReadTestChunked [all...] |
H A D | test_binascii.py | 64 lines = [] 68 lines.append(a) 70 for line in lines: 80 lines = [] 84 lines.append(a) 103 for line in map(addnoise, lines): 191 lines = [] 195 lines.append(a) 197 for line in lines:
|
/third_party/python/Lib/test/test_peg_generator/ |
H A D | test_pegen.py | 996 lines: List[str] = [] 997 printer.print_grammar_ast(rules, printer=lines.append) 999 output = "\n".join(lines) 1023 lines: List[str] = [] 1024 printer.print_grammar_ast(rules, printer=lines.append) 1026 output = "\n".join(lines) 1060 lines: List[str] = [] 1061 printer.print_grammar_ast(rules, printer=lines.append) 1063 output = "\n".join(lines)
|
/third_party/rust/crates/proc-macro2/src/ |
H A D | fallback.rs | 331 lines: vec![0], 341 lines: Vec<usize>, 353 match self.lines.binary_search(&offset) { in offset_line_column() 360 column: offset - self.lines[idx - 1], in offset_line_column() 410 let mut lines = vec![0]; in lines_offsets() variables 416 lines.push(total); in lines_offsets() 420 (total, lines) in lines_offsets() 439 let (len, lines) = lines_offsets(src); in add_file() 449 lines, in add_file()
|
/build/test/example/ |
H A D | conftest.py | 44 lines = f.readlines() 45 total_memory_line = [line for line in lines if line.startswith('MemTotal')]
|
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/ant/ |
H A D | CleanOutputDirectoryTaskTest.java | 38 // Extra lines in testWasFileAutoGenerated_lenientMatching() 50 // Reversed lines. in testWasFileAutoGenerated_lenientMatching_fail() 83 private static BufferedReader testFile(String... lines) { in testFile() argument 84 return new BufferedReader(new StringReader(String.join("\n", lines) + "\n")); in testFile()
|