Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2_test.py139 _, unused_report, unused_errors, new_text = self._upgrade(text)
140 self.assertEqual(new_text, "tf.math.conj(a)\n")
142 _, unused_report, unused_errors, new_text = self._upgrade(text)
143 self.assertEqual(new_text, "tf.math.rsqrt(tf.math.log_sigmoid(3.8))\n")
383 _, unused_report, unused_errors, new_text = self._upgrade(text)
384 self.assertEqual(new_text, "tf.sysconfig.MONOLITHIC_BUILD\n")
386 _, unused_report, unused_errors, new_text = self._upgrade(text)
387 self.assertEqual(new_text, "some_call(tf.sysconfig.MONOLITHIC_BUILD)\n")
392 _, unused_report, unused_errors, new_text = self._upgrade(text)
393 self.assertEqual(new_text,
[all …]
Dast_edits_test.py186 (_, _, errors), new_text = self._upgrade(ModuleDeprecationSpec(), text)
187 self.assertEqual(text, new_text)
195 _, new_text = self._upgrade(NoUpdateSpec(), text)
196 self.assertEqual(new_text, text)
199 _, new_text = self._upgrade(NoUpdateSpec(), text)
200 self.assertEqual(new_text, text)
206 _, new_text = self._upgrade(RenameKeywordSpec(), text)
207 self.assertEqual(new_text, expected)
211 _, new_text = self._upgrade(RenameKeywordSpec(), text)
212 self.assertEqual(new_text, text)
[all …]
Dtf_upgrade_test.py60 _, unused_report, unused_errors, new_text = self._upgrade(text)
61 self.assertEqual(new_text, "tf.multiply(a, tf.subtract(b, c))\n")
65 _, unused_report, unused_errors, new_text = self._upgrade(text)
66 self.assertEqual(new_text, "tf.stack(a)\n")
68 _, unused_report, unused_errors, new_text = self._upgrade(text)
69 self.assertEqual(new_text, "tf.unstack(a)\n")
73 _, unused_report, unused_errors, new_text = self._upgrade(text)
74 self.assertEqual(new_text, "tf.concat(axis=a, values=b)\n"
79 _, unused_report, unused_errors, new_text = self._upgrade(text)
80 self.assertEqual(new_text, "tf.concat(axis=a, values=b)\n")
[all …]
/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.py625 new_text = untokenize(tokens1)
626 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.cpp36 llvm::StringRef new_text) { in Add() argument
49 result.first->getValue().new_text = new_text; in Add()
59 << edit.getValue().new_text << "\n"; in SerializeTo()
DEditTracker.h21 std::string new_text; member
42 llvm::StringRef new_text);
DRewriteToChromeStyle.cpp1119 llvm::StringRef new_text = new_name; in GenerateReplacement() local
1120 if (loc.isMacroID() && expected_old_text.substr(1) == new_text.substr(1)) { in GenerateReplacement()
1122 new_text = new_text.substr(0, 1); in GenerateReplacement()
1145 *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/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/python/cpython3/Lib/lib2to3/
Drefactor.py270 def print_output(self, old_text, new_text, filename, equal): argument
488 def processed_file(self, new_text, filename, old_text=None, write=False, argument
498 equal = old_text == new_text
499 self.print_output(old_text, new_text, filename, equal)
505 self.write_file(new_text, filename, old_text, encoding)
509 def write_file(self, new_text, filename, old_text, encoding=None): argument
524 fp.write(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/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/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/u-boot/scripts/kconfig/
Dgconf.c263 const gchar * new_text, gpointer user_data);
781 const gchar * new_text, gpointer user_data) in renderer_edited() argument
796 new_def = new_text; in renderer_edited()
/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()