Home
last modified time | relevance | path

Searched refs:new_text (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_test.py59 _, 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 …]
Dtf_upgrade.py356 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/
Dtest_strftime.py24 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
Dtest_tokenize.py603 new_text = untokenize(tokens1)
604 readline = iter(new_text.splitlines(1)).next
/external/python/cpython3/Lib/test/
Dtest_strftime.py24 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/
Dlicenseupdater.py30 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/
DEditTracker.cpp15 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()
DEditTracker.h21 std::string new_text; member
34 llvm::StringRef new_text);
DRewriteToChromeStyle.cpp918 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/
Dpreprocessors.py187 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/
Darlib-argp.c64 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/
Dabbr.py49 new_text = []
58 new_text.append(line)
59 return new_text
/external/googletest/googletest/scripts/
Drelease_docs.py144 new_text = self.search_for_re.sub(self.replace_with, text)
145 file(versioned_file, 'w').write(new_text)
/external/v8/testing/gtest/scripts/
Drelease_docs.py144 new_text = self.search_for_re.sub(self.replace_with, text)
145 file(versioned_file, 'w').write(new_text)
/external/python/cpython3/Lib/lib2to3/
Drefactor.py286 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))
Dmain.py69 def write_file(self, new_text, filename, old_text, encoding): argument
101 write(new_text, filename, old_text, encoding)
/external/python/cpython2/Lib/lib2to3/
Drefactor.py289 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))
Dmain.py69 def write_file(self, new_text, filename, old_text, encoding): argument
101 write(new_text, filename, old_text, encoding)
/external/pdfium/third_party/libpng16/
Dpngset.c744 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/
Dtest_refactor.py170 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/
Dtest_refactor.py164 def print_output(self, old_text, new_text, filename, equal): argument
165 results.extend([old_text, new_text, filename, equal])
/external/libpng/
Dpngset.c793 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/
Dfpdfannot_embeddertest.cpp799 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()