/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
FormatParagraph.py | 46 # Reformat the comment lines - convert to text sans header. 47 lines = data.split("\n") 48 lines = map(lambda st, l=len(comment_header): st[l:], lines) 49 data = "\n".join(lines) 58 # lines, but whatever!) Can't think of a clean solution, 107 lines = data.split("\n") 109 n = len(lines) 110 while i < n and is_all_white(lines[i]): 114 indent1 = get_indent(lines[i] [all...] |
/build/make/core/ |
checktree | 54 lines = fd.readlines() 62 if len(lines) >= 1: 63 lines = filter(filterit, lines) 64 if len(lines) >= 1: 65 return map(matchit, lines)
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
SupportedBitstreamsProcessor.java | 85 String[] lines = getReportLines(device, reportPath); local 87 for (int i = 0; i < lines.length;) { 88 String path = lines[i++]; 89 int n = Integer.parseInt(lines[i++]); 91 String name = lines[i++]; 92 String status = lines[i++];
|
/external/llvm/utils/ |
sort_includes.py | 3 """Script to sort the top-most block of #include lines. 15 """Sort the #include lines of a specific file.""" 25 lines = f.readlines() 35 for (i, l) in enumerate(lines): 78 lines = lines[:headers_begin] + header_lines + lines[headers_end + 1:] 82 f.writelines(lines)
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/ |
HelpCommand.java | 85 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, local 87 for (String line : lines) { 111 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, local 113 for (String line : lines) { 172 Iterable<String> lines = StringWrapper.wrapStringOnBreaks(registerInfoHelp, local 174 for (String line : lines) {
|
/external/tensorflow/tensorflow/contrib/cmake/ |
python_sanity_test.py | 41 lines = f.readlines() 43 lines = [line.strip() for line in lines] 44 lines = [line for line in lines if line] 49 for line in lines:
|
/system/timezone/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/ |
ErrorsTest.java | 90 String[] lines = errors.asString().split("\n"); local 92 String line0 = lines[0]; 96 String line1 = lines[1]; 101 String line2 = lines[2]; 106 String line3 = lines[3]; 111 String line4 = lines[4];
|
/external/tensorflow/tensorflow/python/debug/cli/ |
curses_ui_test.py | 266 lines = [parsed.line] * parsed.num_times 269 for i in range(len(lines)): 272 len(lines[i]), 285 lines, font_attr_segs=font_attr_segs, annotations=annotations) 358 ui.unwrapped_outputs[0].lines) 359 # TODO(cais): Add explanation for the 35 extra lines. 361 ui.wrapped_outputs[0].lines[:1]) 384 ui.unwrapped_outputs[0].lines) 405 self.assertEqual(["bar"] * 60, ui.unwrapped_outputs[0].lines) 406 self.assertEqual(["bar"] * 60, ui.wrapped_outputs[0].lines[:60] [all...] |
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
LogcatParserTest.java | 42 List<String> lines = Arrays.asList( local 48 LogcatItem logcat = new LogcatParser("2012").parse(lines); 65 List<String> lines = Arrays.asList( local 72 LogcatItem logcat = new LogcatParser("2012").parse(lines); 89 List<String> lines = Arrays.asList( local 95 LogcatItem logcat = new LogcatParser("2012").parse(lines); 110 List<String> lines = Arrays.asList( local 137 LogcatItem logcat = logcatParser.parse(lines); 149 List<String> lines = Arrays.asList( local 174 LogcatItem logcat = logcatParser.parse(lines); 193 List<String> lines = Arrays.asList( local 219 List<String> lines = Arrays.asList( local 246 List<String> lines = Arrays.asList( local 273 List<String> lines = Arrays.asList( local 289 List<String> lines = Arrays.asList( local 313 List<String> lines = Arrays.asList( local 337 List<String> lines = Arrays.asList( local 362 List<String> lines = Arrays.asList( local 399 List<String> lines = Arrays.asList( local 470 List<String> lines = local 540 List<String> lines = Arrays.asList( local 592 List<String> lines = Arrays.asList( local 642 List<String> lines = Arrays.asList( local 661 List<String> lines = Arrays.asList( local 706 List<String> lines = Arrays.asList( local 728 List<String> lines = Arrays.asList( local 755 List<String> lines = Arrays.asList( local 776 List<String> lines = Arrays.asList( local 796 List<String> lines = Arrays.asList( local 828 List<String> lines = Arrays.asList( local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the
20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default
23 f.writelines(lines)
51 lines = list(fi)
53 self.assertEqual(len(lines), 31)
54 self.assertEqual(lines[4], 'Line 5 of file 1\n')
55 self.assertEqual(lines[30], 'Line 1 of file 4\n')
84 lines = list(fi)
85 self.assertEqual(len(lines), 33) [all...] |
test_multifile.py | 54 lines = mf.readlines()
55 linecount += len(lines)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 51 lines = list(fi) 53 self.assertEqual(len(lines), 31) 54 self.assertEqual(lines[4], 'Line 5 of file 1\n') 55 self.assertEqual(lines[30], 'Line 1 of file 4\n') 84 lines = list(fi) 85 self.assertEqual(len(lines), 33 [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 51 lines = list(fi) 53 self.assertEqual(len(lines), 31) 54 self.assertEqual(lines[4], 'Line 5 of file 1\n') 55 self.assertEqual(lines[30], 'Line 1 of file 4\n') 84 lines = list(fi) 85 self.assertEqual(len(lines), 33 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 51 lines = list(fi) 53 self.assertEqual(len(lines), 31) 54 self.assertEqual(lines[4], 'Line 5 of file 1\n') 55 self.assertEqual(lines[30], 'Line 1 of file 4\n') 84 lines = list(fi) 85 self.assertEqual(len(lines), 33 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 51 lines = list(fi) 53 self.assertEqual(len(lines), 31) 54 self.assertEqual(lines[4], 'Line 5 of file 1\n') 55 self.assertEqual(lines[30], 'Line 1 of file 4\n') 84 lines = list(fi) 85 self.assertEqual(len(lines), 33 [all...] |
/external/google-breakpad/src/testing/gtest/scripts/ |
pump.py | 163 def StartsWith(lines, pos, string): 164 """Returns True iff the given position in lines starts with 'string'.""" 166 return lines[pos.line][pos.column:].startswith(string) 174 # We found regex in lines 186 def FindFirst(lines, token_table, cursor): 187 """Finds the first occurrence of any string in strings in lines.""" 191 for line in lines[start.line:]: 202 return MakeToken(lines, found_start, found_end, token_type) 204 # We failed to find str in lines 208 def SubString(lines, start, end) [all...] |
/external/googletest/googletest/scripts/ |
pump.py | 163 def StartsWith(lines, pos, string): 164 """Returns True iff the given position in lines starts with 'string'.""" 166 return lines[pos.line][pos.column:].startswith(string) 174 # We found regex in lines 186 def FindFirst(lines, token_table, cursor): 187 """Finds the first occurrence of any string in strings in lines.""" 191 for line in lines[start.line:]: 202 return MakeToken(lines, found_start, found_end, token_type) 204 # We failed to find str in lines 208 def SubString(lines, start, end) [all...] |
/external/libvncserver/utils/ |
git2cl.pl | 94 my @lines = split /\n/, $text; 96 $lines[0] =~ s/^$indent1\s+/$indent1/; 98 for @lines[1..$#lines]; 99 my $newtext = join "\n", @lines; 107 my @lines = split (/\n/, $files_list); 108 my $last_line = pop (@lines); 128 my @lines = split (/\n/, $text); 129 while (@lines) # Don't use `foreach' here, it won't work. 131 my $this_line = shift (@lines); [all...] |
/external/protobuf/gtest/scripts/ |
pump.py | 164 def StartsWith(lines, pos, string): 165 """Returns True iff the given position in lines starts with 'string'.""" 167 return lines[pos.line][pos.column:].startswith(string) 175 # We found regex in lines 187 def FindFirst(lines, token_table, cursor): 188 """Finds the first occurrence of any string in strings in lines.""" 192 for line in lines[start.line:]: 203 return MakeToken(lines, found_start, found_end, token_type) 205 # We failed to find str in lines 209 def SubString(lines, start, end) [all...] |
/external/v8/testing/gtest/scripts/ |
pump.py | 163 def StartsWith(lines, pos, string): 164 """Returns True iff the given position in lines starts with 'string'.""" 166 return lines[pos.line][pos.column:].startswith(string) 174 # We found regex in lines 186 def FindFirst(lines, token_table, cursor): 187 """Finds the first occurrence of any string in strings in lines.""" 191 for line in lines[start.line:]: 202 return MakeToken(lines, found_start, found_end, token_type) 204 # We failed to find str in lines 208 def SubString(lines, start, end) [all...] |
/external/valgrind/auxprogs/ |
nightly-build-summary | 84 my (@lines) = @_; 86 foreach my $line (@lines) { 99 my (@lines, $msgno) = @_; 102 $n = scalar @lines; 108 last if ($lines[$i] =~ /^valgrind revision:/); 115 $line = $lines[$i]; 131 $line = $lines[$i]; 145 $line = $lines[$i]; 156 $line = $lines[$i]; 164 $line = $lines[$i] [all...] |
/external/vulkan-validation-layers/tests/gtest-1.7.0/scripts/ |
pump.py | 163 def StartsWith(lines, pos, string): 164 """Returns True iff the given position in lines starts with 'string'.""" 166 return lines[pos.line][pos.column:].startswith(string) 174 # We found regex in lines 186 def FindFirst(lines, token_table, cursor): 187 """Finds the first occurrence of any string in strings in lines.""" 191 for line in lines[start.line:]: 202 return MakeToken(lines, found_start, found_end, token_type) 204 # We failed to find str in lines 208 def SubString(lines, start, end) [all...] |
/prebuilts/ndk/r16/sources/third_party/vulkan/src/tests/gtest-1.7.0/scripts/ |
pump.py | 163 def StartsWith(lines, pos, string): 164 """Returns True iff the given position in lines starts with 'string'.""" 166 return lines[pos.line][pos.column:].startswith(string) 174 # We found regex in lines 186 def FindFirst(lines, token_table, cursor): 187 """Finds the first occurrence of any string in strings in lines.""" 191 for line in lines[start.line:]: 202 return MakeToken(lines, found_start, found_end, token_type) 204 # We failed to find str in lines 208 def SubString(lines, start, end) [all...] |
/external/python/cpython2/Lib/test/ |
test_fileinput.py | 18 # Write lines (a list of lines) to temp file number i, and return the 20 def writeTmp(i, lines, mode='w'): # opening in text mode is the default 23 f.writelines(lines) 53 lines = [] 58 return lines 59 lines.append(line) 62 return lines 87 lines = list(fi) 89 self.assertEqual(len(lines), 31 [all...] |
/development/scripts/ |
stack | 69 lines = f.readlines() 72 stack_core.ConvertTrace(lines)
|