/external/tensorflow/tensorflow/tools/compatibility/ |
D | tf_upgrade_test.py | 59 _, unused_report, unused_errors, new_text = self._upgrade(text) 60 self.assertEqual(new_text, "tf.multiply(a, tf.subtract(b, c))\n") 64 _, unused_report, unused_errors, new_text = self._upgrade(text) 65 self.assertEqual(new_text, "tf.stack(a)\n") 67 _, unused_report, unused_errors, new_text = self._upgrade(text) 68 self.assertEqual(new_text, "tf.unstack(a)\n") 72 _, unused_report, unused_errors, new_text = self._upgrade(text) 73 self.assertEqual(new_text, "tf.concat(axis=a, values=b)\n" 78 _, unused_report, unused_errors, new_text = self._upgrade(text) 79 self.assertEqual(new_text, "tf.concat(axis=a, values=b)\n") [all …]
|
D | tf_upgrade.py | 356 new_text = full_name + "()" 357 self._file_edit.add("Changed %r to %r" % (full_name, new_text), 358 node.lineno, node.col_offset, full_name, new_text) 423 out_text, new_text, process_errors = visitor.process(lines) 424 text += new_text
|
/external/python/cpython2/Lib/test/ |
D | test_strftime.py | 24 new_text = re.escape(text) 25 new_text = new_text.replace(re.escape(ampm), ampm) 26 new_text = new_text.replace('\%', '%') 27 new_text = new_text.replace('\:', ':') 28 new_text = new_text.replace('\?', '?') 29 return new_text
|
D | test_tokenize.py | 603 new_text = untokenize(tokens1) 604 readline = iter(new_text.splitlines(1)).next
|
/external/python/cpython3/Lib/test/ |
D | test_strftime.py | 24 new_text = re.escape(text) 25 new_text = new_text.replace(re.escape(ampm), ampm) 26 new_text = new_text.replace(r'\%', '%') 27 new_text = new_text.replace(r'\:', ':') 28 new_text = new_text.replace(r'\?', '?') 29 return new_text
|
/external/jsoncpp/devtools/ |
D | licenseupdater.py | 30 new_text = BRIEF_LICENSE + original_text 33 new_text = BRIEF_LICENSE + original_text[license_end_index+2:] 34 if original_text != new_text: 37 fout.write( new_text.replace('\n', newline ) ) 42 new_text.split('\n') ) ))
|
/external/v8/tools/clang/rewrite_to_chrome_style/ |
D | EditTracker.cpp | 15 llvm::StringRef new_text) { in Add() argument 28 result.first->getValue().new_text = new_text; in Add() 38 << edit.getValue().new_text << "\n"; in SerializeTo()
|
D | EditTracker.h | 21 std::string new_text; member 34 llvm::StringRef new_text);
|
D | RewriteToChromeStyle.cpp | 918 llvm::StringRef new_text = new_name; in GenerateReplacement() local 919 if (loc.isMacroID() && expected_old_text.substr(1) == new_text.substr(1)) { in GenerateReplacement() 921 new_text = new_text.substr(0, 1); in GenerateReplacement() 937 *replacement = Replacement(source_manager, range, new_text); in GenerateReplacement()
|
/external/markdown/markdown/ |
D | preprocessors.py | 187 new_text = "\n\n".join(new_blocks) 188 return new_text.split("\n") 197 new_text = []; 211 new_text.append(line) 213 new_text.append(line) 215 return new_text #+ "\n"
|
/external/elfutils/src/ |
D | arlib-argp.c | 64 char *new_text; in help_filter() local 65 if (unlikely (asprintf (&new_text, gettext ("%s (default)"), text) < 0)) in help_filter() 67 return new_text; in help_filter()
|
/external/markdown/markdown/extensions/ |
D | abbr.py | 49 new_text = [] 58 new_text.append(line) 59 return new_text
|
/external/googletest/googletest/scripts/ |
D | release_docs.py | 144 new_text = self.search_for_re.sub(self.replace_with, text) 145 file(versioned_file, 'w').write(new_text)
|
/external/v8/testing/gtest/scripts/ |
D | release_docs.py | 144 new_text = self.search_for_re.sub(self.replace_with, text) 145 file(versioned_file, 'w').write(new_text)
|
/external/python/cpython3/Lib/lib2to3/ |
D | refactor.py | 286 def print_output(self, old_text, new_text, filename, equal): argument 504 def processed_file(self, new_text, filename, old_text=None, write=False, argument 514 equal = old_text == new_text 515 self.print_output(old_text, new_text, filename, equal) 521 self.write_file(new_text, filename, old_text, encoding) 525 def write_file(self, new_text, filename, old_text, encoding=None): argument 538 f.write(_to_system_newlines(new_text))
|
D | main.py | 69 def write_file(self, new_text, filename, old_text, encoding): argument 101 write(new_text, filename, old_text, encoding)
|
/external/python/cpython2/Lib/lib2to3/ |
D | refactor.py | 289 def print_output(self, old_text, new_text, filename, equal): argument 507 def processed_file(self, new_text, filename, old_text=None, write=False, argument 517 equal = old_text == new_text 518 self.print_output(old_text, new_text, filename, equal) 524 self.write_file(new_text, filename, old_text, encoding) 528 def write_file(self, new_text, filename, old_text, encoding=None): argument 541 f.write(_to_system_newlines(new_text))
|
D | main.py | 69 def write_file(self, new_text, filename, old_text, encoding): argument 101 write(new_text, filename, old_text, encoding)
|
/external/pdfium/third_party/libpng16/ |
D | pngset.c | 744 png_textp new_text = NULL; in png_set_text_2() local 762 new_text = png_voidcast(png_textp,png_realloc_array(png_ptr, in png_set_text_2() 764 sizeof *new_text)); in png_set_text_2() 767 if (new_text == NULL) in png_set_text_2() 777 info_ptr->text = new_text; in png_set_text_2()
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_refactor.py | 170 def print_output(self, old_text, new_text, filename, equal): argument 171 results.extend([old_text, new_text, filename, equal])
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_refactor.py | 164 def print_output(self, old_text, new_text, filename, equal): argument 165 results.extend([old_text, new_text, filename, equal])
|
/external/libpng/ |
D | pngset.c | 793 png_textp new_text = NULL; in png_set_text_2() local 811 new_text = png_voidcast(png_textp,png_realloc_array(png_ptr, in png_set_text_2() 813 sizeof *new_text)); in png_set_text_2() 816 if (new_text == NULL) in png_set_text_2() 826 info_ptr->text = new_text; in png_set_text_2()
|
/external/pdfium/fpdfsdk/ |
D | fpdfannot_embeddertest.cpp | 799 std::unique_ptr<unsigned short, pdfium::FreeDeleter> new_text = in TEST_F() local 801 EXPECT_TRUE(FPDFText_SetText(text_object, new_text.get())); in TEST_F()
|