rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
if not len(glyph_range): glyph_range = range(0,len(encoding)) temp_dir =setup_temp () | if not len (glyph_range): glyph_range = range (0, len (encoding)) temp_dir = setup_temp () | def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py |
def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | ||
if not gf_fontname: | if not gf_fontname: | def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py |
trace_font (basename, gf_fontname, metric, glyph_range, encoding, magnification) | trace_font (basename, gf_fontname, metric, glyph_range, encoding, magnification) | def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py |
def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | ||
def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | ||
def optimal_graphs(target_type, source_groups, generators): """A 'simple generator' that produces the sequence of least-cost solutions for producing the target type from a subset of the source_groups, using the given generators. """ # An index from target type to lists of groups with that type. all_groups = {} # Prime... | dd959a722739e4670bd83a158d166b572dbd3a55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/dd959a722739e4670bd83a158d166b572dbd3a55/generators_prototype.py | ||
TestCmd.fail_test(self, condition, *args) | TestCmd.TestCmd.fail_test(self, condition, *args) | def fail_test(self, condition, *args): | a3022bed895db67f9fbd14cdbefbedbcc5a39079 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/a3022bed895db67f9fbd14cdbefbedbcc5a39079/BoostBuild.py |
return open(self.native_file_name(name), "r").read() | return open(self.native_file_name(name), "rb").read() | def read(self, name): return open(self.native_file_name(name), "r").read() | feae90d6d05ee85adf8e87fe181812f604668a35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/feae90d6d05ee85adf8e87fe181812f604668a35/BoostBuild.py |
lines = open(self.native_file_name(name), "r").readlines() | lines = open(self.native_file_name(name), "rb").readlines() | def read_and_strip(self, name): lines = open(self.native_file_name(name), "r").readlines() result = string.join(map(string.rstrip, lines), "\n") if lines and lines[-1][-1] == '\n': return result + '\n' else: return result | feae90d6d05ee85adf8e87fe181812f604668a35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/feae90d6d05ee85adf8e87fe181812f604668a35/BoostBuild.py |
if os.uname()[0] == 'Darwin': | if os.__dict__.has_key('uname') and os.uname()[0] == 'Darwin': | def prepare_suffix_map(toolset): global windows, suffixes suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'} if os.environ.get('OS','').lower().startswith('windows'): windows = 1 suffixes = {} if toolset in ["gcc"]: suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw... suffixes['.obj'] = ... | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py |
elif os.name == 'posix': | elif os.name == 'posix' and os.__dict__.has_key('uname'): | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py |
exit(1) | os.exit(1) | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py |
if not stderr is None and not match(self.stderr(), stderr): | intel_workaround = re.compile("^xi(link|lib): executing.*\n", re.M) actual_stderr = re.sub(intel_workaround, "", self.stderr()) if not stderr is None and not match(actual_stderr, stderr): | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py |
print self.stderr() self.maybe_do_diff(self.stderr(), stderr) | print actual_stderr self.maybe_do_diff(actual_stderr, stderr) | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py |
def expect_touch(self, names): d = self.unexpected_difference for name in self.adjust_names(names): | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py | ||
if windows: filesets = [d.modified_files, d.touched_files] else: filesets = [d.touched_files] | filesets = [d.modified_files, d.touched_files] | def expect_touch(self, names): d = self.unexpected_difference for name in self.adjust_names(names): | 2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eec4041cbc88ac1d0bb5a598e1b271e2fd0e216/BoostBuild.py |
"order_sensitive", | "ordered_properties", | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 7870e1fadb0575b50c683b184d7f572837bcbb4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/7870e1fadb0575b50c683b184d7f572837bcbb4c/test_all.py |
"library_order", | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 33b864e88e584ca2bf255e31cb8b1aac45e92d41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/33b864e88e584ca2bf255e31cb8b1aac45e92d41/test_all.py | |
self.last_build_time = time.time | self.last_build_time = time.time() | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, **kw): | 07b79b453f0554380f300b4f5f4fa99bc48025b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/07b79b453f0554380f300b4f5f4fa99bc48025b2/BoostBuild.py |
while int(time.time()) == self.last_build_time: os.sleep(0.1) | while int(time.time()) == int(self.last_build_time): time.sleep(0.1) | def wait_for_time_change(self): while int(time.time()) == self.last_build_time: os.sleep(0.1) | 07b79b453f0554380f300b4f5f4fa99bc48025b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/07b79b453f0554380f300b4f5f4fa99bc48025b2/BoostBuild.py |
global windows, suffixes | def prepare_suffix_map(toolset): suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'} if os.environ.get('OS','').lower().startswith('windows'): global windows, suffixes windows = 1 suffixes = {} if toolset in ["gcc"]: suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw... suffixes['.obj'] = ... | 8f3659a6633a5869ab729cbd32b44b1741c6f655 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/8f3659a6633a5869ab729cbd32b44b1741c6f655/BoostBuild.py | |
prepare_suffix_map(pass_toolset and 'gcc' or self.toolset) | prepare_suffix_map(pass_toolset and self.toolset or 'gcc') | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 8f3659a6633a5869ab729cbd32b44b1741c6f655 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/8f3659a6633a5869ab729cbd32b44b1741c6f655/BoostBuild.py |
if os.uname()[0] == 'Darwin': | if os.__dict__.has_key('uname') and os.uname()[0] == 'Darwin': | def prepare_suffix_map(toolset): global windows, suffixes suffixes = {'.exe': '', '.dll': '.so', '.lib': '.a', '.obj': '.o'} if os.environ.get('OS','').lower().startswith('windows'): windows = 1 suffixes = {} if toolset in ["gcc"]: suffixes['.lib'] = '.a' # static libs have '.a' suffix with mingw... suffixes['.obj'] = ... | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py |
elif os.name == 'posix': | elif os.name == 'posix' and os.__dict__.has_key('uname'): | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py |
exit(1) | os.exit(1) | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py |
if not stderr is None and not match(self.stderr(), stderr): | intel_workaround = re.compile("^xi(link|lib): executing.*\n", re.M) actual_stderr = re.sub(intel_workaround, "", self.stderr()) if not stderr is None and not match(actual_stderr, stderr): | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py |
print self.stderr() self.maybe_do_diff(self.stderr(), stderr) | print actual_stderr self.maybe_do_diff(actual_stderr, stderr) | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py |
def expect_touch(self, names): d = self.unexpected_difference for name in self.adjust_names(names): | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py | ||
if windows: filesets = [d.modified_files, d.touched_files] else: filesets = [d.touched_files] | filesets = [d.modified_files, d.touched_files] | def expect_touch(self, names): d = self.unexpected_difference for name in self.adjust_names(names): | 05eb6c1abcbbed88e6db32978bf5faa3aafba75d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05eb6c1abcbbed88e6db32978bf5faa3aafba75d/BoostBuild.py |
jam_build_dir = "bin.linuxx86" | cpu = os.uname()[4] if re.match("i.86", cpu): jam_build_dir = "bin.linuxx86"; else: jam_build_dir = "bin.linux" + os.uname()[4] | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | d67b94f85a2293e035496e33502f3c7c077ab851 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/d67b94f85a2293e035496e33502f3c7c077ab851/BoostBuild.py |
lib a : a.cpp l ; | static-lib a : a.cpp l ; | #ifdef _WIN32 | 05f8783fb2d196a11fa8ecd404d3043ed8f80854 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05f8783fb2d196a11fa8ecd404d3043ed8f80854/searched_lib.py |
actual_ = map(lambda x: sorted(x.split()),actual.splitlines()) content_ = map(lambda x: sorted(x.split()),content.splitlines()) | def expect_content(self, name, content, exact=0): name = self.adjust_names(name)[0] try: if exact: actual = self.read(name) else: actual = string.replace(self.read_and_strip(name), "\\", "/") except IOError: print "Note: could not open file", name self.fail_test(1) | aaed235d79d75fbef1c5f5fcde234b6272b5be6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/aaed235d79d75fbef1c5f5fcde234b6272b5be6a/BoostBuild.py | |
"unused", | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 3e37e47c8d2cffcef826106f28ac5960140d92f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/3e37e47c8d2cffcef826106f28ac5960140d92f1/test_all.py | |
if os.name == 'nt' or ( os.uname()[0].lower().startswith('cygwin') and get_toolset() != 'gcc') : | if (os.name == 'nt' or os.uname()[0].lower().startswith('cygwin')) and get_toolset() != 'gcc': | #ifdef _WIN32 | e825755eedd13b068e03df70d37f204dbdb51f14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/e825755eedd13b068e03df70d37f204dbdb51f14/searched_lib.py |
"unused", | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 79cd3623f4e529a4ce2e6084c7078f3166569403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/79cd3623f4e529a4ce2e6084c7078f3166569403/test_all.py | |
if os.name == 'nt': | if os.name == 'nt' or ( os.uname()[0].lower().startswith('cygwin') and get_toolset() != 'gcc') : | #ifdef _WIN32 | b1f7b4f34d27b7b8cbaf2ba6e0eff0040ed2c1d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/b1f7b4f34d27b7b8cbaf2ba6e0eff0040ed2c1d9/searched_lib.py |
#ifdef _WIN32 | b1f7b4f34d27b7b8cbaf2ba6e0eff0040ed2c1d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/b1f7b4f34d27b7b8cbaf2ba6e0eff0040ed2c1d9/searched_lib.py | ||
int main() { return 0; } | void foo(); int main() { foo(); return 0; } | #ifdef _WIN32 | c2abccc7de6b36f3e55fdc336172e49d07169ceb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/c2abccc7de6b36f3e55fdc336172e49d07169ceb/searched_lib.py |
jam_build_dir = "bin.linuxx86" | cpu = os.uname()[4] if re.match("i.86", cpu): jam_build_dir = "bin.linuxx86"; else: jam_build_dir = "bin.linux" + os.uname()[4] | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | d56e81487792ebe4b253c4ea901127dd46d81e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/d56e81487792ebe4b253c4ea901127dd46d81e57/BoostBuild.py |
self.difference.pprint() | if hasattr(self, 'difference'): self.difference.pprint() | def fail_test(self, *args, **kw): self.difference.pprint() TestCmd.fail_test(self, *args, **kw) | e76fd2da84ab55a4a79becf854695586db675a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/e76fd2da84ab55a4a79becf854695586db675a7a/BoostBuild.py |
if _failed(self, status): | if status != None and _failed(self, status): | def run_build_system(self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, **kw): self.previous_tree = build_tree(self.workdir) | 180d72a999d07d0883935c4ec14d3bf5799a28bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/180d72a999d07d0883935c4ec14d3bf5799a28bf/BoostBuild.py |
def run_build_system(self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, **kw): self.previous_tree = build_tree(self.workdir) | 180d72a999d07d0883935c4ec14d3bf5799a28bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/180d72a999d07d0883935c4ec14d3bf5799a28bf/BoostBuild.py | ||
def run_build_system(self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, **kw): self.previous_tree = build_tree(self.workdir) | 180d72a999d07d0883935c4ec14d3bf5799a28bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/180d72a999d07d0883935c4ec14d3bf5799a28bf/BoostBuild.py | ||
os.mkdir(self.workdir) | if not os.path.exists(self.workdir): os.mkdir(self.workdir) | def rm(self, names): self.wait_for_time_change() if not type(names) == types.ListType: names = [names] | 71e8e39f36b5cbbcd208731be86df9a57e8063bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/71e8e39f36b5cbbcd208731be86df9a57e8063bb/BoostBuild.py |
#ifdef _WIN32 | 5038ddac99f59108890125c6572e7d4c4cfb2e2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5038ddac99f59108890125c6572e7d4c4cfb2e2f/searched_lib.py | ||
jam_build_dir = "bin.linuxx86" else: raise "Don't know directory where jam is build for this system" | raise "Don't know directory where jam is build for this system: " + os.name + "/" + os.uname()[0] else: raise "Don't know directory where jam is build for this system: " + os.name | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 21f0722dfacee735b94341d7b408aef4a229df9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/21f0722dfacee735b94341d7b408aef4a229df9b/BoostBuild.py |
TestCmd.TestCmd.__init__(self, program=os.path.join('..', 'jam_src', jam_build_dir, 'bjam') + ' -d0', match=TestCmd.match_exact, workdir='') | TestCmd.TestCmd.__init__( self , program=os.path.join( '..', 'jam_src', jam_build_dir, 'bjam') + ' -d0 --debug --quiet' , match=TestCmd.match_exact , workdir='') | def __init__(self): | 6dc0ba224090fad15825eb0569a016928f9b0b7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/6dc0ba224090fad15825eb0569a016928f9b0b7a/BoostBuild.py |
os.chdir(self.original_workdir) | os.chdir(self.original_workdir) | def rm(self, names): self.wait_for_time_change() if not type(names) == types.ListType: names = [names] | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py |
if pass_toolset is None: pass_toolset = self.pass_toolset | if pass_toolset is None: pass_toolset = self.pass_toolset | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py |
print "STDOUT ============" print self.stdout() print "STDERR ============" print self.stderr() | self.dump_stdio() | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py |
print "STDOUT ============" print self.stdout() print "STDERR ============" print self.stderr() | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py | |
self.fail_test(1) | self.fail_test(1, dump_stdio = 0) | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py |
self.fail_test(1) | self.fail_test(1, dump_stdio = 0) | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py |
def fail_test(self, condition, *args): if condition and hasattr(self, 'difference'): | def fail_test(self, condition, dump_stdio = 1, *args): if condition and hasattr(self, 'difference'): | def fail_test(self, condition, *args): | acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py |
self.difference.pprint() | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, **kw): | ec6cb7521ba17be5b2c1689b39d4c0fb907ed1fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/ec6cb7521ba17be5b2c1689b39d4c0fb907ed1fb/BoostBuild.py | |
def fail_test(self, *args, **kw): self.difference.pprint() TestCmd.fail_test(self, *args, **kw) | def read_and_strip(self, name): lines = open(self.native_file_name(name), "r").readlines() result = string.join(map(string.rstrip, lines), "\n") if lines and lines[-1][-1] == '\n': return result + '\n' else: return result | ec6cb7521ba17be5b2c1689b39d4c0fb907ed1fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/ec6cb7521ba17be5b2c1689b39d4c0fb907ed1fb/BoostBuild.py | |
and _sort_tuple(g.atoms()) != _sort_tuple(v.group.atoms()): | and _sort_tuple(g.atoms()) == _sort_tuple(v.group.atoms()): | def _examine_edge(states, queue, g): """Handle a possible new state in the search. """ g_state = State(g) v = states.setdefault(g_state, g_state) if v.group is g: queue.append(g_state) return False if v.group.cost > g.cost: if debug: print 'reducing cost of state(%s) via %s' % (v.group,g) v.group.ambiguous = None v.g... | b777066dc9606d7750eeb67aa8e3a22742bab8b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/b777066dc9606d7750eeb67aa8e3a22742bab8b0/generators_prototype.py |
s = string.replace(s, "\ ", '\001') self.l = [] for e in string.split(s): | elements = [] if isinstance(s, type("")): s = string.replace(s, "\ ", '\001') elements = string.split(s) else: elements = s; self.l = [] for e in elements: | def __init__(self, s=""): # Have to handle espaced spaces correctly s = string.replace(s, "\ ", '\001') self.l = [] for e in string.split(s): self.l.append(string.replace(e, '\001', ' ')) | c72f0987ca55f9953c96fb950776fbd658bc0e1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/c72f0987ca55f9953c96fb950776fbd658bc0e1c/BoostBuild.py |
def __coerce__(self, other): if isinstance(other, type("")): return (self,List(other)) else: return None | def __delitem__(self, key): del self.l[key] | c72f0987ca55f9953c96fb950776fbd658bc0e1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/c72f0987ca55f9953c96fb950776fbd658bc0e1c/BoostBuild.py | |
def __mul__(self, other): | def __mul__(self, other): | def __mul__(self, other): result = List() for f in self: for s in other: result.l.append(f + s) return result | c72f0987ca55f9953c96fb950776fbd658bc0e1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/c72f0987ca55f9953c96fb950776fbd658bc0e1c/BoostBuild.py |
"library_order", | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 7f7e7a8a76e0f6a76705d8fb596af8daed4f4267 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/7f7e7a8a76e0f6a76705d8fb596af8daed4f4267/test_all.py | |
exe main : main.cpp test_lib ; | exe main : main.cpp helper ; lib helper : helper.cpp test_lib ; | #ifdef _WIN32 | 7afb7a98aba0464ec3847142e5d54322aaf3d610 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/7afb7a98aba0464ec3847142e5d54322aaf3d610/searched_lib.py |
int main() { foo(); return 0; } | void __declspec(dllexport) helper() { foo(); } | #ifdef _WIN32 | 7afb7a98aba0464ec3847142e5d54322aaf3d610 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/7afb7a98aba0464ec3847142e5d54322aaf3d610/searched_lib.py |
t.run_build_system() | t.run_build_system(stderr=None) | #ifdef _WIN32 | 7afb7a98aba0464ec3847142e5d54322aaf3d610 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/7afb7a98aba0464ec3847142e5d54322aaf3d610/searched_lib.py |
"order_sensitive", | "ordered_properties", | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 81530cba0287789b45d37bd248c1f21debca9c38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/81530cba0287789b45d37bd248c1f21debca9c38/test_all.py |
self.cost = reduce(lambda x,y:x + y.cost, parents, 1) | def __init__( self , target_type , size # how many of that type are in the group. , parents = () , generator = None): """ >>> g1 = TargetTypeGroup('x', 1) >>> assert not g1.extra_targets >>> assert g1.consumed_sources == { g1:1 } >>> g2 = TargetTypeGroup('x', 1) >>> g3 = TargetTypeGroup('x', 1, [g1,g2]) >>> asse... | 250809e90cc9f96d82b078629a0900bb6c705750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/250809e90cc9f96d82b078629a0900bb6c705750/generators_prototype.py | |
def __init__( self , target_type , size # how many of that type are in the group. , parents = () , generator = None): """ >>> g1 = TargetTypeGroup('x', 1) >>> assert not g1.extra_targets >>> assert g1.consumed_sources == { g1:1 } >>> g2 = TargetTypeGroup('x', 1) >>> g3 = TargetTypeGroup('x', 1, [g1,g2]) >>> asse... | 250809e90cc9f96d82b078629a0900bb6c705750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/250809e90cc9f96d82b078629a0900bb6c705750/generators_prototype.py | ||
elif len(parents) == 1: self.consumed_sources = parents[0].consumed_sources | def __init__( self , target_type , size # how many of that type are in the group. , parents = () , generator = None): """ >>> g1 = TargetTypeGroup('x', 1) >>> assert not g1.extra_targets >>> assert g1.consumed_sources == { g1:1 } >>> g2 = TargetTypeGroup('x', 1) >>> g3 = TargetTypeGroup('x', 1, [g1,g2]) >>> asse... | 250809e90cc9f96d82b078629a0900bb6c705750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/250809e90cc9f96d82b078629a0900bb6c705750/generators_prototype.py | |
self.consumed_sources = {} for c in parents: self.consumed_sources.update(c.consumed_sources) | ignored = [ self.moves.update(p.moves) for p in parents ] if len(parents) == 1: self.consumed_sources = parents[0].consumed_sources else: self.consumed_sources = {} for c in parents: self.consumed_sources.update(c.consumed_sources) | def __init__( self , target_type , size # how many of that type are in the group. , parents = () , generator = None): """ >>> g1 = TargetTypeGroup('x', 1) >>> assert not g1.extra_targets >>> assert g1.consumed_sources == { g1:1 } >>> g2 = TargetTypeGroup('x', 1) >>> g3 = TargetTypeGroup('x', 1, [g1,g2]) >>> asse... | 250809e90cc9f96d82b078629a0900bb6c705750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/250809e90cc9f96d82b078629a0900bb6c705750/generators_prototype.py |
cost = property(lambda self: len(self.moves)) | def __get_constituents(self): if self.__constituents is None: self.__constituents = {self:1} for c in self.parents: self.__constituents.update(c.constituents) return self.__constituents | 250809e90cc9f96d82b078629a0900bb6c705750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/250809e90cc9f96d82b078629a0900bb6c705750/generators_prototype.py | |
[(1.x( | [(1.x( | def parent_sets(chosen, signature, all_groups, generator): """Given an already-chosen tuple of TargetTypeGroups and a signature of the groups left to choose, generates all mutually-compatible combinations of groups starting with chosen >>> TargetTypeGroup.instances = 0 >>> groups = { ... 'x': [ TargetTypeGroup('x',... | 250809e90cc9f96d82b078629a0900bb6c705750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/250809e90cc9f96d82b078629a0900bb6c705750/generators_prototype.py |
actual_ = map(lambda x: sorted(x.split()),actual.splitlines()) content_ = map(lambda x: sorted(x.split()),content.splitlines()) | def expect_content(self, name, content, exact=0): name = self.adjust_names(name)[0] try: if exact: actual = self.read(name) else: actual = string.replace(self.read_and_strip(name), "\\", "/") except IOError: print "Note: could not open file", name self.fail_test(1) | c4ea7d28c2f323810fcc3f6c2a15ddbe5c434cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/c4ea7d28c2f323810fcc3f6c2a15ddbe5c434cfa/BoostBuild.py | |
if name.endswith('.exe'): | if windows: | def expect_touch(self, names): d = self.unexpected_difference for name in self.adjust_names(names): | 26ffd348a9990cf21e17d34fcf2e3a70e954efe1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/26ffd348a9990cf21e17d34fcf2e3a70e954efe1/BoostBuild.py |
f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w') f.write(i) f.close() raise | if failures_count == 0: f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w') f.write(i) f.close() failures_count = failures_count + 1 os.chdir(invocation_dir) continue | def run_tests(critical_tests, other_tests): """Runs first critical tests and then other_tests. Stops on first error, and write the name of failed test to test_results.txt. Critical tests are run in the specified order, other tests are run starting with the one that failed the last time. """ last_failed = last_failed_t... | d034f8f84e015b8581beafa1ccde2b50e710e550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/d034f8f84e015b8581beafa1ccde2b50e710e550/test_all.py |
open('test_results.txt', 'w') | if failures_count == 0: open('test_results.txt', 'w') | def run_tests(critical_tests, other_tests): """Runs first critical tests and then other_tests. Stops on first error, and write the name of failed test to test_results.txt. Critical tests are run in the specified order, other tests are run starting with the one that failed the last time. """ last_failed = last_failed_t... | d034f8f84e015b8581beafa1ccde2b50e710e550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/d034f8f84e015b8581beafa1ccde2b50e710e550/test_all.py |
int __declspec(dllexport) must_export_something(); | int __declspec(dllexport) must_export_something; | #ifdef _WIN32 | 5e84902733e101e267ca4718b7e8b4f292ec2d23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5e84902733e101e267ca4718b7e8b4f292ec2d23/use_requirements.py |
t.write("lib1/c.cpp", "") | t.write("lib1/c.cpp", """ int __declspec(dllexport) must_export_something; """) | #ifdef _WIN32 | 5e84902733e101e267ca4718b7e8b4f292ec2d23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5e84902733e101e267ca4718b7e8b4f292ec2d23/use_requirements.py |
if not type(names) == types.ListType: names = [names] for name in names: | for name in self.adjust_names(names): | def touch(self, names): self.wait_for_time_change() if not type(names) == types.ListType: names = [names] for name in names: os.utime(self.native_file_name(name), None) | 2eb79255bd93a3ec6059501c151e47e3b4fe41e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2eb79255bd93a3ec6059501c151e47e3b4fe41e6/BoostBuild.py |
jam_build_dir = "bin.linuxx86" else: raise "Don't know directory where jam is build for this system" | raise "Don't know directory where jam is build for this system: " + os.name + "/" + os.uname()[0] else: raise "Don't know directory where jam is build for this system: " + os.name | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 493c4746df305faeb9288f97d4395b328d7640b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/493c4746df305faeb9288f97d4395b328d7640b6/BoostBuild.py |
boost_build_path += ":" + self.original_workdir | if windows: boost_build_path += ";" + self.original_workdir else: boost_build_path += ":" + self.original_workdir | def __init__(self, arguments="", executable = 'bjam', match = TestCmd.match_exact, boost_build_path = None, translate_suffixes = 1, pass_toolset = 1, **keywords): | 9b3fd4f503c4972d2e945b3dad2ad81f3ccf6c05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/9b3fd4f503c4972d2e945b3dad2ad81f3ccf6c05/BoostBuild.py |
kw['program'] = self.program + ' ' + self.toolset + ' ' + extra_args | kw['program'] = self.program + ' ' + extra_args + ' ' + self.toolset | def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw): | dda1f62f934757223a81a540e2d4deac02d54f28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/dda1f62f934757223a81a540e2d4deac02d54f28/BoostBuild.py |
#ifdef _WIN32 | f78581a75ef7a3a9d9353c5db646aaa893492c49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/f78581a75ef7a3a9d9353c5db646aaa893492c49/searched_lib.py | ||
exe main : main.cpp test_lib ; | exe main : main.cpp helper ; lib helper : helper.cpp test_lib ; | #ifdef _WIN32 | 20c1e93a4023b9d874c3b8eb250c95a044b38b96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/20c1e93a4023b9d874c3b8eb250c95a044b38b96/searched_lib.py |
int main() { foo(); return 0; } | void __declspec(dllexport) helper() { foo(); } | #ifdef _WIN32 | 20c1e93a4023b9d874c3b8eb250c95a044b38b96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/20c1e93a4023b9d874c3b8eb250c95a044b38b96/searched_lib.py |
t.run_build_system() | t.run_build_system(stderr=None) | #ifdef _WIN32 | 20c1e93a4023b9d874c3b8eb250c95a044b38b96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/20c1e93a4023b9d874c3b8eb250c95a044b38b96/searched_lib.py |
if os.name == 'posix' and not os.uname()[0].startswith('CYGWIN'): | if os.name == 'posix': | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 5f99b86bd1ed20ee53d00558683324665281fc7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5f99b86bd1ed20ee53d00558683324665281fc7c/test_all.py |
tests.append("railsys") | if not os.uname()[0].startswith('CYGWIN'): tests.append("railsys") | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 5f99b86bd1ed20ee53d00558683324665281fc7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5f99b86bd1ed20ee53d00558683324665281fc7c/test_all.py |
ignore_elements(self.unexpected_difference.added_files, wildcard) | self.ignore_elements(self.unexpected_difference.added_files, wildcard) | def ignore_addition(self, wildcard): ignore_elements(self.unexpected_difference.added_files, wildcard) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
ignore_elements(self.unexpected_difference.removed_files, wildcard) | self.ignore_elements(self.unexpected_difference.removed_files, wildcard) | def ignore_removal(self, wildcard): ignore_elements(self.unexpected_difference.removed_files, wildcard) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
ignore_elements(self.unexpected_difference.modified_files, wildcard) | self.ignore_elements(self.unexpected_difference.modified_files, wildcard) | def ignore_modification(self, wildcard): ignore_elements(self.unexpected_difference.modified_files, wildcard) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
ignore_elements(self.unexpected_difference.touched_files, wildcard) | self.ignore_elements(self.unexpected_difference.touched_files, wildcard) | def ignore_touch(self, wildcard): ignore_elements(self.unexpected_difference.touched_files, wildcard) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
ignore_elements(self.unexpected_difference.added_files, wildcard) ignore_elements(self.unexpected_difference.removed_files, wildcard) ignore_elements(self.unexpected_difference.modified_files, wildcard) ignore_elements(self.unexpected_difference.touched_files, wildcard) | self.ignore_elements(self.unexpected_difference.added_files, wildcard) self.ignore_elements(self.unexpected_difference.removed_files, wildcard) self.ignore_elements(self.unexpected_difference.modified_files, wildcard) self.ignore_elements(self.unexpected_difference.touched_files, wildcard) | def ignore(self, wildcard): ignore_elements(self.unexpected_difference.added_files, wildcard) ignore_elements(self.unexpected_difference.removed_files, wildcard) ignore_elements(self.unexpected_difference.modified_files, wildcard) ignore_elements(self.unexpected_difference.touched_files, wildcard) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
def ignore_elements(list, wildcard): | def ignore_elements(self, list, wildcard): | def ignore_elements(list, wildcard): """Removes in-place, element of 'list' that match the given wildcard.""" w = fnmatch.translate(wildcard) list[:] = filter(lambda x, w=w: not w(x), list) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
w = fnmatch.translate(wildcard) list[:] = filter(lambda x, w=w: not w(x), list) | list[:] = filter(lambda x, w=wildcard: not fnmatch.fnmatch(x, w), list) | def ignore_elements(list, wildcard): """Removes in-place, element of 'list' that match the given wildcard.""" w = fnmatch.translate(wildcard) list[:] = filter(lambda x, w=w: not w(x), list) | 477aa5a9462b42213dc391e9211fdf0edccfc625 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/477aa5a9462b42213dc391e9211fdf0edccfc625/BoostBuild.py |
def __init__(self): | def __init__(self, arguments=""): | def __init__(self): | 05219612c87b15fa04afedb63eaafd564797f57d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05219612c87b15fa04afedb63eaafd564797f57d/BoostBuild.py |
return open(self.native_file_name(name), "wb").read() | return open(self.native_file_name(name), "rb").read() | def read(self, name): return open(self.native_file_name(name), "wb").read() | 05219612c87b15fa04afedb63eaafd564797f57d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/05219612c87b15fa04afedb63eaafd564797f57d/BoostBuild.py |
def empty(): | def empty(self): | def empty(): return (len(self.added_files) == 0 and len(self.removed_files) == 0)\ and len(modified_files) == 0 and len(self.touched_files) == 0 | d099c061b862d854e90c219fd1bea35bdf628910 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/d099c061b862d854e90c219fd1bea35bdf628910/tree.py |
f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w') f.write(i) f.close() raise | if failures_count == 0: f = open(os.path.join(invocation_dir, 'test_results.txt'), 'w') f.write(i) f.close() failures_count = failures_count + 1 os.chdir(invocation_dir) continue | def run_tests(critical_tests, other_tests): """Runs first critical tests and then other_tests. Stops on first error, and write the name of failed test to test_results.txt. Critical tests are run in the specified order, other tests are run starting with the one that failed the last time. """ last_failed = last_failed_t... | 2078bed2396b2365f13b52586c39cd0008f4b898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2078bed2396b2365f13b52586c39cd0008f4b898/test_all.py |
open('test_results.txt', 'w') | if failures_count == 0: open('test_results.txt', 'w') | def run_tests(critical_tests, other_tests): """Runs first critical tests and then other_tests. Stops on first error, and write the name of failed test to test_results.txt. Critical tests are run in the specified order, other tests are run starting with the one that failed the last time. """ last_failed = last_failed_t... | 2078bed2396b2365f13b52586c39cd0008f4b898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/2078bed2396b2365f13b52586c39cd0008f4b898/test_all.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.