rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
tmpl.run(vars = {'config':config})
tmpl.run(vars = { 'config':config, 'web_url':web_url })
def admin(req): config = parse_config() req.content_type = 'html' tmpl = psp.PSP(req, filename='templates/admin.tmpl') tmpl.run(vars = {'config':config})
e8c788619789d7d5e9dec7ac6f23771244be61b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8874/e8c788619789d7d5e9dec7ac6f23771244be61b5/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3981, 12, 3658, 4672, 642, 273, 1109, 67, 1425, 1435, 1111, 18, 1745, 67, 723, 273, 296, 2620, 11, 10720, 273, 293, 1752, 18, 52, 3118, 12, 3658, 16, 1544, 2218, 8502, 19, 3666, 18, 24717, 6134, 10720, 18, 2681, 12, 4699, 273, 288, 296, 1425, 4278, 1425, 16, 296, 4875, 67, 718, 4278, 4875, 67, 718, 289, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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425, 4278, 1425, 16, 296, 4875, 67, 718, 4278, 4875, 67, 718, 289, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'test_reordering_jigs_or_chunks_05_thermo_lmotor_anchor_measurement_jigs_reordering_5', 'test_reordering_jigs_or_chunks_05_thermo_lmotor_anchor_measurement_jigs_reordering_3',
def lastLineOfReadings(f): lines = readlines(f) n = None for i in range(len(lines)): if lines[i].startswith("# Done:"): n = i - 1 break if n == None: return None return map(string.atof, lines[n].split())
0b789e7ec79dfae45d6cb15c2976c03b0322f72f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0b789e7ec79dfae45d6cb15c2976c03b0322f72f/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31661, 951, 1994, 899, 12, 74, 4672, 2362, 273, 17546, 12, 74, 13, 290, 273, 599, 364, 277, 316, 1048, 12, 1897, 12, 3548, 3719, 30, 309, 2362, 63, 77, 8009, 17514, 1918, 2932, 7, 8677, 2773, 4672, 290, 273, 277, 300, 404, 898, 309, 290, 422, 599, 30, 327, 599, 327, 852, 12, 1080, 18, 270, 792, 16, 2362, 63, 82, 8009, 4939, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31661, 951, 1994, 899, 12, 74, 4672, 2362, 273, 17546, 12, 74, 13, 290, 273, 599, 364, 277, 316, 1048, 12, 1897, 12, 3548, 3719, 30, 309, 2362, 63, 77, 8009, 17514, 1918, 2932, 7, 8677, 2773, 4672, 290, 273, 277, 300, 404, 898, 309, 290, 422, 599, 30, 327, 599, 327, 852, 12, 1080, 18, 270, 792, 16, 2362, 63, 82, 8009, 4939, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
progress_callback(os.path.join(directory, 'epydoc-help.html'), None) self._write_help(directory)
filename = os.path.join(directory, 'epydoc-help.html') if progress_callback: progress_callback(filename, None) self._write_help(filename) if self._create_frames: self._write_frames(directory, progress_callback)
def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory.
60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 16, 4007, 67, 3394, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
tags.sort(cmp=lambda x, y: cmp(x.get_name().lower(), y.get_name().lower()))
tags.sort( cmp=lambda x, y: cmp(x.get_name().lower(), y.get_name().lower()))
def refresh_tags(self): select = self.tag_tview.get_selection() t_path = None if select: t_model, t_path = select.get_selected_rows() #pylint: disable-msg=W0612 self.tag_ts.clear() alltag = self.req.get_alltag_tag() notag = self.req.get_notag_tag() if self.workview: count_all_task = len(self.req.get_active_tasks_list(workable=True)) count_no_tags = len(self.req.get_active_tasks_list(notag_only=True,\ workable=True)) else: count_all_task = len(self.req.get_tasks_list(started_only=False)) count_no_tags = len(self.req.get_tasks_list(notag_only=True,\ started_only=False))
fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 4156, 12, 2890, 4672, 2027, 273, 365, 18, 2692, 67, 88, 1945, 18, 588, 67, 10705, 1435, 268, 67, 803, 273, 599, 309, 2027, 30, 268, 67, 2284, 16, 268, 67, 803, 273, 2027, 18, 588, 67, 8109, 67, 3870, 1435, 468, 2074, 5671, 30, 4056, 17, 3576, 33, 59, 7677, 2138, 365, 18, 2692, 67, 3428, 18, 8507, 1435, 777, 2692, 273, 365, 18, 3658, 18, 588, 67, 454, 2692, 67, 2692, 1435, 486, 346, 273, 365, 18, 3658, 18, 588, 67, 902, 346, 67, 2692, 1435, 309, 365, 18, 1252, 1945, 30, 1056, 67, 454, 67, 4146, 273, 562, 12, 2890, 18, 3658, 18, 588, 67, 3535, 67, 9416, 67, 1098, 12, 1252, 429, 33, 5510, 3719, 1056, 67, 2135, 67, 4156, 273, 562, 12, 2890, 18, 3658, 18, 588, 67, 3535, 67, 9416, 67, 1098, 12, 902, 346, 67, 3700, 33, 5510, 17211, 1440, 429, 33, 5510, 3719, 469, 30, 1056, 67, 454, 67, 4146, 273, 562, 12, 2890, 18, 3658, 18, 588, 67, 9416, 67, 1098, 12, 14561, 67, 3700, 33, 8381, 3719, 1056, 67, 2135, 67, 4156, 273, 562, 12, 2890, 18, 3658, 18, 588, 67, 9416, 67, 1098, 12, 902, 346, 67, 3700, 33, 5510, 17211, 5746, 67, 3700, 33, 8381, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 4156, 12, 2890, 4672, 2027, 273, 365, 18, 2692, 67, 88, 1945, 18, 588, 67, 10705, 1435, 268, 67, 803, 273, 599, 309, 2027, 30, 268, 67, 2284, 16, 268, 67, 803, 273, 2027, 18, 588, 67, 8109, 67, 3870, 1435, 468, 2074, 5671, 30, 4056, 17, 3576, 33, 59, 7677, 2138, 365, 18, 2692, 67, 3428, 18, 8507, 1435, 777, 2692, 273, 365, 18, 3658, 18, 588, 67, 454, 2692, 67, 2692, 1435, 486, 346, 273, 365, 18, 3658, 18, 588, 67, 902, 346, 67, 2692, 1435, 309, 365, 18, 1252, 1945, 30, 1056, 67, 454, 67, 4146, 273, 562, 12, 2890, 18, 3658, 18, 588, 67, 3535, 67, 9416, 67, 1098, 12, 1252, 429, 2 ]
versions.append(re.search(r'cc_(.*)$', d).group(1))
m = re.search(r'cc_(.*)$', d) if m: versions.append(m.group(1))
def get_all_compiler_versions(): """Returns a sorted list of strings, like "70" or "80" or "9.0" with most recent compiler version first. """ versions=[] if is_windows: if is_win64: keyname = 'Software\\WoW6432Node\\Intel\\Compilers\\C++' else: keyname = 'Software\\Intel\\Compilers\\C++' try: k = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, keyname) except WindowsError: return [] i = 0 versions = [] try: while i < 100: subkey = SCons.Util.RegEnumKey(k, i) # raises EnvironmentError # Check that this refers to an existing dir. # This is not 100% perfect but should catch common # installation issues like when the compiler was installed # and then the install directory deleted or moved (rather # than uninstalling properly), so the registry values # are still there. ok = False for try_abi in ('IA32', 'IA32e', 'IA64', 'EM64T'): try: d = get_intel_registry_value('ProductDir', subkey, try_abi) except MissingRegistryError: continue # not found in reg, keep going if os.path.exists(d): ok = True if ok: versions.append(subkey) else: try: # Registry points to nonexistent dir. Ignore this # version. value = get_intel_registry_value('ProductDir', subkey, 'IA32') except MissingRegistryError, e: # Registry key is left dangling (potentially # after uninstalling). print \ "scons: *** Ignoring the registry key for the Intel compiler version %s.\n" \ "scons: *** It seems that the compiler was uninstalled and that the registry\n" \ "scons: *** was not cleaned up properly.\n" % subkey else: print "scons: *** Ignoring "+str(value) i = i + 1 except EnvironmentError: # no more subkeys pass elif is_linux: for d in glob.glob('/opt/intel_cc_*'): # Typical dir here is /opt/intel_cc_80. versions.append(re.search(r'cc_(.*)$', d).group(1)) for d in glob.glob('/opt/intel/cc*/*'): # Typical dir here is /opt/intel/cc/9.0 for IA32, # /opt/intel/cce/9.0 for EMT64 (AMD64) versions.append(re.search(r'([0-9.]+)$', d).group(1)) versions = uniquify(versions) # remove dups versions.sort(vercmp) return versions
28af5defad21f225553b957f547144c303cfc6a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/28af5defad21f225553b957f547144c303cfc6a2/intelc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 9576, 67, 10169, 13332, 3536, 1356, 279, 3115, 666, 434, 2064, 16, 3007, 315, 7301, 6, 578, 315, 3672, 6, 578, 315, 29, 18, 20, 6, 598, 4486, 8399, 5274, 1177, 1122, 18, 3536, 5244, 33, 8526, 309, 353, 67, 13226, 30, 309, 353, 67, 8082, 1105, 30, 27567, 273, 296, 21742, 1695, 59, 83, 59, 1105, 1578, 907, 1695, 27233, 1695, 2945, 330, 414, 1695, 39, 15, 6797, 469, 30, 27567, 273, 296, 21742, 1695, 27233, 1695, 2945, 330, 414, 1695, 39, 15, 6797, 775, 30, 417, 273, 20487, 18, 1304, 18, 1617, 3678, 653, 424, 12, 55, 9054, 18, 1304, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 27567, 13, 1335, 8202, 668, 30, 327, 5378, 277, 273, 374, 5244, 273, 5378, 775, 30, 1323, 277, 411, 2130, 30, 21949, 273, 20487, 18, 1304, 18, 1617, 3572, 653, 12, 79, 16, 277, 13, 468, 14183, 7518, 668, 468, 2073, 716, 333, 21368, 358, 392, 2062, 1577, 18, 468, 1220, 353, 486, 2130, 9, 24746, 1496, 1410, 1044, 2975, 468, 13193, 8296, 3007, 1347, 326, 5274, 1703, 5876, 468, 471, 1508, 326, 3799, 1867, 4282, 578, 10456, 261, 86, 4806, 468, 2353, 16577, 310, 8214, 3631, 1427, 326, 4023, 924, 468, 854, 4859, 1915, 18, 1529, 273, 1083, 364, 775, 67, 21457, 316, 7707, 15188, 1578, 2187, 296, 15188, 1578, 73, 2187, 225, 296, 15188, 1105, 2187, 296, 3375, 1105, 56, 11, 4672, 775, 30, 302, 273, 336, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 9576, 67, 10169, 13332, 3536, 1356, 279, 3115, 666, 434, 2064, 16, 3007, 315, 7301, 6, 578, 315, 3672, 6, 578, 315, 29, 18, 20, 6, 598, 4486, 8399, 5274, 1177, 1122, 18, 3536, 5244, 33, 8526, 309, 353, 67, 13226, 30, 309, 353, 67, 8082, 1105, 30, 27567, 273, 296, 21742, 1695, 59, 83, 59, 1105, 1578, 907, 1695, 27233, 1695, 2945, 330, 414, 1695, 39, 15, 6797, 469, 30, 27567, 273, 296, 21742, 1695, 27233, 1695, 2945, 330, 414, 1695, 39, 15, 6797, 775, 30, 417, 273, 20487, 18, 1304, 18, 1617, 3678, 653, 424, 12, 55, 9054, 18, 1304, 18, 44, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 27567, 13, 2 ]
if not self._metadata_popupated:
if not self._metadata_populated:
def maintainer(self): if not self._metadata_popupated: self.parse_metadata() return self._maintainer
d7301a0b869a76845ebfdf478ff07d95dc243e3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13693/d7301a0b869a76845ebfdf478ff07d95dc243e3a/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11566, 1521, 12, 2890, 4672, 309, 486, 365, 6315, 4165, 67, 5120, 11799, 30, 365, 18, 2670, 67, 4165, 1435, 327, 365, 6315, 81, 1598, 1521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11566, 1521, 12, 2890, 4672, 309, 486, 365, 6315, 4165, 67, 5120, 11799, 30, 365, 18, 2670, 67, 4165, 1435, 327, 365, 6315, 81, 1598, 1521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sec=c.tm_sec + 1
sec=c.tm_sec!=59 and c.tm_sec + 1
def _info_default(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) mod = pool.get('ir.model') list=('ir.ui.view','ir.ui.menu','ir.model','ir.model.fields','ir.model.access',\ 'res.partner','res.partner.address','res.partner.category','workflow',\ 'workflow.activity','workflow.transition','ir.actions.server','ir.server.object.lines') data['form']['objects']=mod.search(cr,uid,[('model','in',list)]) cr.execute('select max(create_date) from ir_model_data') c=(cr.fetchone())[0].split('.')[0] c = time.strptime(c,"%Y-%m-%d %H:%M:%S") sec=c.tm_sec + 1 c=(c[0],c[1],c[2],c[3],c[4],sec,c[6],c[7],c[8]) data['form']['check_date']=time.strftime("%Y-%m-%d %H:%M:%S",c) return data['form']
5527de5e0fba0d0be2056943427a8b348a634961 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/5527de5e0fba0d0be2056943427a8b348a634961/base_module_record_objects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1376, 67, 1886, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 681, 273, 2845, 18, 588, 2668, 481, 18, 2284, 6134, 666, 33, 2668, 481, 18, 4881, 18, 1945, 17023, 481, 18, 4881, 18, 5414, 17023, 481, 18, 2284, 17023, 481, 18, 2284, 18, 2821, 17023, 481, 18, 2284, 18, 3860, 2187, 64, 296, 455, 18, 31993, 17023, 455, 18, 31993, 18, 2867, 17023, 455, 18, 31993, 18, 4743, 17023, 13815, 2187, 64, 296, 13815, 18, 9653, 17023, 13815, 18, 14936, 17023, 481, 18, 4905, 18, 3567, 17023, 481, 18, 3567, 18, 1612, 18, 3548, 6134, 501, 3292, 687, 21712, 6911, 3546, 33, 1711, 18, 3072, 12, 3353, 16, 1911, 16, 63, 2668, 2284, 17023, 267, 2187, 1098, 13, 5717, 4422, 18, 8837, 2668, 4025, 943, 12, 2640, 67, 712, 13, 628, 9482, 67, 2284, 67, 892, 6134, 276, 28657, 3353, 18, 5754, 476, 10756, 63, 20, 8009, 4939, 2668, 1093, 25146, 20, 65, 276, 273, 813, 18, 701, 10650, 12, 71, 10837, 9, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 7923, 1428, 33, 71, 18, 16925, 67, 3321, 5, 33, 6162, 471, 276, 18, 16925, 67, 3321, 397, 404, 276, 28657, 71, 63, 20, 6487, 71, 63, 21, 6487, 71, 63, 22, 6487, 71, 63, 23, 6487, 71, 63, 24, 6487, 3321, 16, 71, 63, 26, 6487, 71, 63, 27, 6487, 71, 63, 28, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1376, 67, 1886, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 681, 273, 2845, 18, 588, 2668, 481, 18, 2284, 6134, 666, 33, 2668, 481, 18, 4881, 18, 1945, 17023, 481, 18, 4881, 18, 5414, 17023, 481, 18, 2284, 17023, 481, 18, 2284, 18, 2821, 17023, 481, 18, 2284, 18, 3860, 2187, 64, 296, 455, 18, 31993, 17023, 455, 18, 31993, 18, 2867, 17023, 455, 18, 31993, 18, 4743, 17023, 13815, 2187, 64, 296, 13815, 18, 9653, 17023, 13815, 18, 14936, 17023, 481, 18, 4905, 18, 3567, 17023, 481, 18, 3567, 18, 1612, 18, 3548, 6134, 501, 3292, 687, 21712, 6911, 2 ]
print item
def processDir (self, dummy, dirname, items):
352d2c1ef9bc0cd5133b8f2c47f8949c45ba5da7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12443/352d2c1ef9bc0cd5133b8f2c47f8949c45ba5da7/faq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1621, 261, 2890, 16, 9609, 16, 4283, 16, 1516, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1621, 261, 2890, 16, 9609, 16, 4283, 16, 1516, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _init(self, smtpHost, smtpPort): self.smtpHost=smtpHost self.smtpPort=smtpPort def manage_makeChanges(self,title,smtpHost,smtpPort, REQUEST=None):
def _init(self, smtp_host, smtp_port): self.smtp_host=smtp_host self.smtp_port=smtp_port def manage_makeChanges(self,title,smtp_host,smtp_port, REQUEST=None):
def _init(self, smtpHost, smtpPort): self.smtpHost=smtpHost self.smtpPort=smtpPort
461223c7f2e9e331b7ecd4fac798e4a7bbfee80f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/461223c7f2e9e331b7ecd4fac798e4a7bbfee80f/MailHost.py
[ 1, 8585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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 12, 2890, 16, 17660, 2594, 16, 17660, 2617, 4672, 365, 18, 20278, 2594, 33, 20278, 2594, 365, 18, 20278, 2617, 33, 20278, 2617, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def maybe_conn_error(self, predicate, fun): if predicate: try: fun() except Exception: pass
def maybe_conn_error(self, fun): try: fun() except Exception: pass
def maybe_conn_error(self, predicate, fun): if predicate: try: fun() except Exception: # TODO kombu.connection_errors pass
be010336871df201608b89bc747c4e7a978a9c44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/be010336871df201608b89bc747c4e7a978a9c44/listener.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6944, 67, 4646, 67, 1636, 12, 2890, 16, 5641, 16, 9831, 4672, 309, 5641, 30, 775, 30, 9831, 1435, 1335, 1185, 30, 468, 2660, 417, 16659, 89, 18, 4071, 67, 4324, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6944, 67, 4646, 67, 1636, 12, 2890, 16, 5641, 16, 9831, 4672, 309, 5641, 30, 775, 30, 9831, 1435, 1335, 1185, 30, 468, 2660, 417, 16659, 89, 18, 4071, 67, 4324, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""The heartbeat channel which monitors the kernel heartbeat. """
"""The heartbeat channel which monitors the kernel heartbeat."""
def _queue_reply(self, msg): self.msg_queue.put(msg) self.add_io_state(POLLOUT)
96d8f662e356a0dea630ccc4ea3a9846cbab19f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4219/96d8f662e356a0dea630ccc4ea3a9846cbab19f8/kernelmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4000, 67, 10629, 12, 2890, 16, 1234, 4672, 365, 18, 3576, 67, 4000, 18, 458, 12, 3576, 13, 365, 18, 1289, 67, 1594, 67, 2019, 12, 14232, 1502, 1693, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4000, 67, 10629, 12, 2890, 16, 1234, 4672, 365, 18, 3576, 67, 4000, 18, 458, 12, 3576, 13, 365, 18, 1289, 67, 1594, 67, 2019, 12, 14232, 1502, 1693, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'fi': u'Teemasivu',
def __init__(self): family.Family.__init__(self) self.name = 'wikipedia'
f06a3c70da8a005c1f7b367c005f6253ff07f708 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/f06a3c70da8a005c1f7b367c005f6253ff07f708/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.terms = field.bind(self.context).vocabulary
if field.vocabulary is None: field = field.bind(context) self.terms = field.vocabulary
def __init__(self, context, request, form, field, widget): self.context = context self.request = request self.form = form self.field = field self.widget = widget self.terms = field.bind(self.context).vocabulary
b52271d326a9e3c0b546ff144ca76ae6e14039bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9738/b52271d326a9e3c0b546ff144ca76ae6e14039bd/term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 590, 16, 646, 16, 652, 16, 3604, 4672, 365, 18, 2472, 273, 819, 365, 18, 2293, 273, 590, 365, 18, 687, 273, 646, 365, 18, 1518, 273, 652, 365, 18, 6587, 273, 3604, 365, 18, 10112, 273, 652, 18, 4376, 12, 2890, 18, 2472, 2934, 15913, 13631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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2890, 16, 819, 16, 590, 16, 646, 16, 652, 16, 3604, 4672, 365, 18, 2472, 273, 819, 365, 18, 2293, 273, 590, 365, 18, 687, 273, 646, 365, 18, 1518, 273, 652, 365, 18, 6587, 273, 3604, 365, 18, 10112, 273, 652, 18, 4376, 12, 2890, 18, 2472, 2934, 15913, 13631, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
generate_html()
self.generate_html()
def run(self): while 1: g_mutex.acquire() generate_html() g_mutex.release() time.sleep(3)
8e5e1b423b795a8573942cfd8c3b7178278fed38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/228/8e5e1b423b795a8573942cfd8c3b7178278fed38/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 314, 67, 29946, 18, 1077, 1039, 1435, 365, 18, 7163, 67, 2620, 1435, 314, 67, 29946, 18, 9340, 1435, 813, 18, 19607, 12, 23, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 314, 67, 29946, 18, 1077, 1039, 1435, 365, 18, 7163, 67, 2620, 1435, 314, 67, 29946, 18, 9340, 1435, 813, 18, 19607, 12, 23, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (self.a <= abs(self.b)) and (abs(self.b) <= self.c)
return (abs(self.b) <= self.a) and (self.a <= self.c)
def is_weakly_reduced(self): """ Checks if the form $ax^2 + bxy + cy^2$ satisfies $|b| \leq a \leq c$, i.e., is weakly reduced.
9045d7fbba21db1a90f5ba53a408263e967bdf4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9045d7fbba21db1a90f5ba53a408263e967bdf4d/binary_qf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 26008, 715, 67, 1118, 26372, 12, 2890, 4672, 3536, 13074, 309, 326, 646, 271, 651, 66, 22, 397, 324, 1698, 397, 6143, 66, 22, 8, 225, 17917, 271, 96, 70, 96, 521, 298, 85, 279, 521, 298, 85, 276, 8, 16, 277, 18, 73, 12990, 353, 16046, 715, 13162, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 26008, 715, 67, 1118, 26372, 12, 2890, 4672, 3536, 13074, 309, 326, 646, 271, 651, 66, 22, 397, 324, 1698, 397, 6143, 66, 22, 8, 225, 17917, 271, 96, 70, 96, 521, 298, 85, 279, 521, 298, 85, 276, 8, 16, 277, 18, 73, 12990, 353, 16046, 715, 13162, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
while self.parser.openElements[:-1].name in ("tbody", "tfoot", "thead",
while self.parser.openElements[-1].name in ("tbody", "tfoot", "thead",
def clearStackToTableBodyContext(self): while self.parser.openElements[:-1].name in ("tbody", "tfoot", "thead", "html"): self.parser.openElements.pop() self.parser.parseError()
40f9853d6b4691906618664f09607a4a6e6241d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/40f9853d6b4691906618664f09607a4a6e6241d6/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 2624, 774, 1388, 2250, 1042, 12, 2890, 4672, 1323, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 8009, 529, 316, 7566, 20779, 3113, 315, 88, 10923, 3113, 315, 24604, 3113, 315, 2620, 6, 4672, 365, 18, 4288, 18, 3190, 3471, 18, 5120, 1435, 365, 18, 4288, 18, 2670, 668, 1435, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 2624, 774, 1388, 2250, 1042, 12, 2890, 4672, 1323, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 8009, 529, 316, 7566, 20779, 3113, 315, 88, 10923, 3113, 315, 24604, 3113, 315, 2620, 6, 4672, 365, 18, 4288, 18, 3190, 3471, 18, 5120, 1435, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return prefix + html_quote(newlink)
return prefix + newlink
def checklink(match): matched = match.group(0) newlink = link = decodeEntities(match.group('href')) classification, uid, relpath, tail = self.classifyLink(link, base)
8fe83efc66a2995a24eb6010a755333eb9134a03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/8fe83efc66a2995a24eb6010a755333eb9134a03/html2captioned.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1232, 12, 1916, 4672, 4847, 273, 845, 18, 1655, 12, 20, 13, 394, 1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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1232, 12, 1916, 4672, 4847, 273, 845, 18, 1655, 12, 20, 13, 394, 1232, 273, 1692, 273, 2495, 8108, 12, 1916, 18, 1655, 2668, 7547, 26112, 13804, 16, 4555, 16, 14614, 16, 5798, 273, 365, 18, 1106, 1164, 2098, 12, 1232, 16, 1026, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(self.execute('NOOP', 1),
self.assertEqual(self.execute('NOOP', 1).rstrip(),
def testNOOP(self): self.assertEqual(self.execute('NOOP', 0), status_messages['SUCCESS_200'] %'NOOP') self.assertEqual(self.execute('NOOP', 1), status_messages['SUCCESS_200'] %'NOOP')
90d04321f031c84ce099735d79abab9afd55bb34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9635/90d04321f031c84ce099735d79abab9afd55bb34/test_ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3417, 3665, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 3417, 3665, 2187, 374, 3631, 1267, 67, 6833, 3292, 12778, 67, 6976, 3546, 738, 11, 3417, 3665, 6134, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 3417, 3665, 2187, 404, 2934, 86, 6406, 9334, 1267, 67, 6833, 3292, 12778, 67, 6976, 3546, 738, 11, 3417, 3665, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3417, 3665, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 3417, 3665, 2187, 374, 3631, 1267, 67, 6833, 3292, 12778, 67, 6976, 3546, 738, 11, 3417, 3665, 6134, 365, 18, 11231, 5812, 12, 2890, 18, 8837, 2668, 3417, 3665, 2187, 404, 2934, 86, 6406, 9334, 1267, 67, 6833, 3292, 12778, 67, 6976, 3546, 738, 11, 3417, 3665, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not os.path.lexists(DV.conf_file_directory):
if not os.path.exists(DV.conf_file_directory):
def DamnUnicode(s): if type(s) is type(u''): return s if type(s) is type(''): return unicode(s,errors='ignore') try: return unicode(s) except: return s
a23aab3cca4213a18f7de633eeab28f6386139ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/a23aab3cca4213a18f7de633eeab28f6386139ab/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 301, 82, 16532, 12, 87, 4672, 309, 618, 12, 87, 13, 353, 618, 12, 89, 6309, 4672, 327, 272, 309, 618, 12, 87, 13, 353, 618, 2668, 11, 4672, 327, 5252, 12, 87, 16, 4324, 2218, 6185, 6134, 775, 30, 327, 5252, 12, 87, 13, 1335, 30, 327, 272, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 301, 82, 16532, 12, 87, 4672, 309, 618, 12, 87, 13, 353, 618, 12, 89, 6309, 4672, 327, 272, 309, 618, 12, 87, 13, 353, 618, 2668, 11, 4672, 327, 5252, 12, 87, 16, 4324, 2218, 6185, 6134, 775, 30, 327, 5252, 12, 87, 13, 1335, 30, 327, 272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ev = event() w = coord()
ev = Event() w = Coord()
def debugme(): "Access to the internals for debugging." proutn("Reset levels? ") if ja(): if game.energy < game.inenrg: game.energy = game.inenrg game.shield = game.inshld game.torps = game.intorps game.lsupres = game.inlsr proutn("Reset damage? ") if ja(): for i in range(NDEVICES): if game.damage[i] > 0.0: game.damage[i] = 0.0 proutn("Toggle debug flag? ") if ja(): game.idebug = not game.idebug if game.idebug: prout("Debug output ON") else: prout("Debug output OFF") proutn("Cause selective damage? ") if ja(): for i in range(NDEVICES): proutn("Kill %s?" % device[i]) scanner.chew() key = scanner.next() if key == "IHALPHA" and scanner.sees("y"): game.damage[i] = 10.0 proutn("Examine/change events? ") if ja(): ev = event() w = coord() legends = { FSNOVA: "Supernova ", FTBEAM: "T Beam ", FSNAP: "Snapshot ", FBATTAK: "Base Attack ", FCDBAS: "Base Destroy ", FSCMOVE: "SC Move ", FSCDBAS: "SC Base Destroy ", FDSPROB: "Probe Move ", FDISTR: "Distress Call ", FENSLV: "Enslavement ", FREPRO: "Klingon Build ", } for i in range(1, NEVENTS): proutn(legends[i]) if is_scheduled(i): proutn("%.2f" % (scheduled(i)-game.state.date)) if i == FENSLV or i == FREPRO: ev = findevent(i) proutn(" in %s" % ev.quadrant) else: proutn("never") proutn("? ") scanner.chew() key = scanner.next() if key == 'n': unschedule(i) scanner.chew() elif key == "IHREAL": ev = schedule(i, scanner.real) if i == FENSLV or i == FREPRO: scanner.chew() proutn("In quadrant- ") key = scanner.next() # "IHEOL" says to leave coordinates as they are if key != "IHEOL": if key != "IHREAL": prout("Event %d canceled, no x coordinate." % (i)) unschedule(i) continue w.i = int(round(scanner.real)) key = scanner.next() if key != "IHREAL": prout("Event %d canceled, no y coordinate." % (i)) unschedule(i) continue w.j = int(round(scanner.real)) ev.quadrant = w scanner.chew() proutn("Induce supernova here? ") if ja(): game.state.galaxy[game.quadrant.i][game.quadrant.j].supernova = True atover(True)
e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 3501, 13332, 315, 1862, 358, 326, 8216, 1031, 364, 10450, 1199, 450, 322, 82, 2932, 7013, 7575, 35, 9369, 309, 26879, 13332, 309, 7920, 18, 15358, 411, 7920, 18, 267, 275, 26876, 30, 7920, 18, 15358, 273, 7920, 18, 267, 275, 26876, 7920, 18, 674, 491, 273, 7920, 18, 267, 674, 1236, 7920, 18, 13039, 1121, 273, 7920, 18, 474, 280, 1121, 7920, 18, 80, 2859, 455, 273, 7920, 18, 267, 3251, 86, 450, 322, 82, 2932, 7013, 302, 301, 410, 35, 9369, 309, 26879, 13332, 364, 277, 316, 1048, 12, 50, 18953, 55, 4672, 309, 7920, 18, 72, 301, 410, 63, 77, 65, 405, 374, 18, 20, 30, 7920, 18, 72, 301, 410, 63, 77, 65, 273, 374, 18, 20, 450, 322, 82, 2932, 17986, 1198, 2982, 35, 9369, 309, 26879, 13332, 7920, 18, 831, 925, 273, 486, 7920, 18, 831, 925, 309, 7920, 18, 831, 925, 30, 450, 322, 2932, 2829, 876, 6229, 7923, 469, 30, 450, 322, 2932, 2829, 876, 17511, 7923, 450, 322, 82, 2932, 10683, 2027, 688, 302, 301, 410, 35, 9369, 309, 26879, 13332, 364, 277, 316, 1048, 12, 50, 18953, 55, 4672, 450, 322, 82, 2932, 19045, 738, 87, 7225, 738, 2346, 63, 77, 5717, 7683, 18, 343, 359, 1435, 498, 273, 7683, 18, 4285, 1435, 309, 498, 422, 315, 45, 44, 26313, 6, 471, 7683, 18, 307, 281, 2932, 93, 6, 4672, 7920, 18, 72, 301, 410, 63, 77, 65, 273, 1728, 18, 20, 450, 322, 82, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 3501, 13332, 315, 1862, 358, 326, 8216, 1031, 364, 10450, 1199, 450, 322, 82, 2932, 7013, 7575, 35, 9369, 309, 26879, 13332, 309, 7920, 18, 15358, 411, 7920, 18, 267, 275, 26876, 30, 7920, 18, 15358, 273, 7920, 18, 267, 275, 26876, 7920, 18, 674, 491, 273, 7920, 18, 267, 674, 1236, 7920, 18, 13039, 1121, 273, 7920, 18, 474, 280, 1121, 7920, 18, 80, 2859, 455, 273, 7920, 18, 267, 3251, 86, 450, 322, 82, 2932, 7013, 302, 301, 410, 35, 9369, 309, 26879, 13332, 364, 277, 316, 1048, 12, 50, 18953, 55, 4672, 309, 7920, 18, 72, 301, 410, 63, 77, 65, 405, 374, 18, 20, 30, 7920, 18, 72, 301, 410, 63, 77, 65, 2 ]
print "</OL>"
print "</ol>"
def processLine(linein): global level, formatMode, slides, hideComments, inBodyText, styleSheet, inlineStyle if (lstrip(linein) == ""): return lineLevel = getLineLevel(linein) if ((hideComments == 0) or (lineLevel != (find(linein,"[")+1))): if (formatMode == "simple"): print "<H" + str(lineLevel) + ">" + lstrip(linein) + "</H" + str(lineLevel) + ">" else: if (lineLevel > level): while (lineLevel > level): if (formatMode == "bullets"): if (inBodyText == 1): print"</p>" inBodyText = 0 print "<UL>" elif (formatMode == "roman"): if (inBodyText == 1): print"</p>" inBodyText = 0 print "<OL type=\"I\">" elif (formatMode == "numeric"): if (inBodyText == 1): print"</p>" inBodyText = 0 print "<OL type=\"1\">" elif (formatMode == "alpha"): if (inBodyText == 1): print"</p>" inBodyText = 0 print "<OL type=\"A\">" elif (formatMode == "indent"): if (inBodyText == 1): print"</p>" inBodyText = 0 print "<OL>" else: sys.exit("Error! Unknown formatMode type") level = level + 1 elif (lineLevel < level): while (lineLevel < level): if (formatMode == "bullets"): if (inBodyText == 1): print"</p>" inBodyText = 0 print "</UL>" else: if (inBodyText == 1): print"</p>" inBodyText = 0 print "</OL>" level = level - 1 else: print if (lstrip(rstrip(linein)) == "----------------------------------------"): print "<br><br><hr><br>" else: if (slides == 0): if (lineLevel == find(linein," ") +1 ) or \ (lineLevel == find(linein,":") +1 ): if (inBodyText == 0): handleBodyText(linein,lineLevel) else: print colonStrip(rstrip(lstrip(linein))), else: if (inBodyText == 1): print"</p>" inBodyText = 0 print "<LI", if (styleSheet != ""): print " class=\"L" + str(lineLevel) + "\"", print ">" + rstrip(lstrip(linein)), else: if (lineLevel == 1): if (linein[0] == " "): if (inBodyText == 0): handleBodyText(linein,lineLevel) else: print rstrip(lstrip(linein)), else: print "<address>" print rstrip(lstrip(linein)), print "</address>\n" else: if (lineLevel == find(linein," ") +1 ) or \ (lineLevel == find(linein,":") +1 ): if (inBodyText == 0): handleBodyText(linein,lineLevel) else: print rstrip(lstrip(linein)), else: if (inBodyText == 1): print"</p>" inBodyText = 0 print "<LI", if (styleSheet != ""): print " class=\"LI.L" + str(lineLevel) + "\"", print ">" + rstrip(lstrip(linein)),
7af5c2bb8f0372438a2b397a27fa3bf97585fc33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/7af5c2bb8f0372438a2b397a27fa3bf97585fc33/otl2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1670, 12, 1369, 267, 4672, 2552, 1801, 16, 740, 2309, 16, 30119, 16, 6853, 9051, 16, 316, 2250, 1528, 16, 2154, 8229, 16, 6370, 2885, 309, 261, 80, 6406, 12, 1369, 267, 13, 422, 1408, 4672, 327, 980, 2355, 273, 9851, 2355, 12, 1369, 267, 13, 309, 14015, 11248, 9051, 422, 374, 13, 578, 261, 1369, 2355, 480, 261, 4720, 12, 1369, 267, 10837, 63, 7923, 15, 21, 3719, 4672, 309, 261, 2139, 2309, 422, 315, 9647, 6, 4672, 1172, 3532, 44, 6, 397, 609, 12, 1369, 2355, 13, 397, 14675, 397, 14730, 12, 1369, 267, 13, 397, 6823, 44, 6, 397, 609, 12, 1369, 2355, 13, 397, 14675, 469, 30, 309, 261, 1369, 2355, 405, 1801, 4672, 1323, 261, 1369, 2355, 405, 1801, 4672, 309, 261, 2139, 2309, 422, 315, 70, 420, 2413, 6, 4672, 309, 261, 267, 2250, 1528, 422, 404, 4672, 1172, 6, 1757, 84, 2984, 316, 2250, 1528, 273, 374, 1172, 3532, 1506, 2984, 1327, 261, 2139, 2309, 422, 315, 520, 304, 6, 4672, 309, 261, 267, 2250, 1528, 422, 404, 4672, 1172, 6, 1757, 84, 2984, 316, 2250, 1528, 273, 374, 1172, 3532, 1741, 618, 5189, 45, 21121, 1327, 261, 2139, 2309, 422, 315, 5246, 6, 4672, 309, 261, 267, 2250, 1528, 422, 404, 4672, 1172, 6, 1757, 84, 2984, 316, 2250, 1528, 273, 374, 1172, 3532, 1741, 618, 5189, 21, 21121, 1327, 261, 2139, 2309, 422, 315, 5429, 6, 4672, 309, 261, 267, 2250, 1528, 422, 404, 4672, 1172, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1670, 12, 1369, 267, 4672, 2552, 1801, 16, 740, 2309, 16, 30119, 16, 6853, 9051, 16, 316, 2250, 1528, 16, 2154, 8229, 16, 6370, 2885, 309, 261, 80, 6406, 12, 1369, 267, 13, 422, 1408, 4672, 327, 980, 2355, 273, 9851, 2355, 12, 1369, 267, 13, 309, 14015, 11248, 9051, 422, 374, 13, 578, 261, 1369, 2355, 480, 261, 4720, 12, 1369, 267, 10837, 63, 7923, 15, 21, 3719, 4672, 309, 261, 2139, 2309, 422, 315, 9647, 6, 4672, 1172, 3532, 44, 6, 397, 609, 12, 1369, 2355, 13, 397, 14675, 397, 14730, 12, 1369, 267, 13, 397, 6823, 44, 6, 397, 609, 12, 1369, 2355, 13, 397, 14675, 469, 30, 309, 261, 1369, 2355, 405, 1801, 2 ]
urls.append(dict(url=url, tag=str(link), title=title))
urls.append(dict(url=url, tag=unicode(link), title=title))
def html2plaintext(html, body_id=None, encoding='utf-8'): ## (c) Fry-IT, www.fry-it.com, 2007 ## <peter@fry-it.com> ## download here: http://www.peterbe.com/plog/html2plaintext """ from an HTML text, convert the HTML to plain text. If @body_id is provided then this is the tag where the body (not necessarily <body>) starts. """ try: from BeautifulSoup import BeautifulSoup, SoupStrainer, Comment except: return html urls = [] if body_id is not None: strainer = SoupStrainer(id=body_id) else: strainer = SoupStrainer('body') soup = BeautifulSoup(html, parseOnlyThese=strainer, fromEncoding=encoding) for link in soup.findAll('a'): title = link.renderContents() for url in [x[1] for x in link.attrs if x[0]=='href']: urls.append(dict(url=url, tag=str(link), title=title)) html = unicode(soup) url_index = [] i = 0 for d in urls: if d['title'] == d['url'] or 'http://'+d['title'] == d['url']: html = html.replace(d['tag'], d['url']) else: i += 1 html = html.replace(d['tag'], '%s [%s]' % (d['title'], i)) url_index.append(d['url']) html = html.replace('<strong>', '*').replace('</strong>', '*') html = html.replace('<b>', '*').replace('</b>', '*') html = html.replace('<h3>', '*').replace('</h3>', '*') html = html.replace('<h2>', '**').replace('</h2>', '**') html = html.replace('<h1>', '**').replace('</h1>', '**') html = html.replace('<em>', '/').replace('</em>', '/') # the only line breaks we respect is those of ending tags and # breaks html = html.replace('\n', ' ') html = html.replace('<br>', '\n') html = html.replace('<tr>', '\n') html = html.replace('</p>', '\n\n') html = re.sub('<br\s*/>', '\n', html) html = html.replace(' ' * 2, ' ') # for all other tags we failed to clean up, just remove then and # complain about them on the stderr def desperate_fixer(g): #print >>sys.stderr, "failed to clean up %s" % str(g.group()) return ' ' html = re.sub('<.*?>', desperate_fixer, html) # lstrip all lines html = '\n'.join([x.lstrip() for x in html.splitlines()]) for i, url in enumerate(url_index): if i == 0: html += '\n\n' html += '[%s] %s\n' % (i+1, url) return html
35fb39a353d212b29fbca953832064af202b72f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/35fb39a353d212b29fbca953832064af202b72f4/openerp_mailgate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 22, 412, 10133, 12, 2620, 16, 1417, 67, 350, 33, 7036, 16, 2688, 2218, 3158, 17, 28, 11, 4672, 7541, 261, 71, 13, 478, 1176, 17, 1285, 16, 8765, 18, 74, 1176, 17, 305, 18, 832, 16, 4044, 27, 7541, 411, 84, 847, 36, 74, 1176, 17, 305, 18, 832, 34, 7541, 4224, 2674, 30, 1062, 2207, 5591, 18, 84, 847, 2196, 18, 832, 19, 84, 1330, 19, 2620, 22, 412, 10133, 282, 3536, 628, 392, 3982, 977, 16, 1765, 326, 3982, 358, 7351, 977, 18, 971, 632, 3432, 67, 350, 353, 2112, 1508, 333, 353, 326, 1047, 1625, 326, 1417, 261, 902, 23848, 411, 3432, 23429, 2542, 18, 3536, 775, 30, 628, 28132, 1930, 28132, 16, 6155, 416, 1585, 1521, 16, 9821, 1335, 30, 327, 1729, 225, 6903, 273, 5378, 309, 1417, 67, 350, 353, 486, 599, 30, 609, 1521, 273, 6155, 416, 1585, 1521, 12, 350, 33, 3432, 67, 350, 13, 469, 30, 609, 1521, 273, 6155, 416, 1585, 1521, 2668, 3432, 6134, 225, 15418, 273, 28132, 12, 2620, 16, 1109, 3386, 29690, 33, 701, 1521, 16, 628, 4705, 33, 5999, 13, 364, 1692, 316, 15418, 18, 4720, 1595, 2668, 69, 11, 4672, 2077, 273, 1692, 18, 5902, 6323, 1435, 364, 880, 316, 306, 92, 63, 21, 65, 364, 619, 316, 1692, 18, 7039, 309, 619, 63, 20, 65, 18920, 7547, 3546, 30, 6903, 18, 6923, 12, 1576, 12, 718, 33, 718, 16, 1047, 33, 9124, 12, 1232, 3631, 2077, 33, 2649, 3719, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 22, 412, 10133, 12, 2620, 16, 1417, 67, 350, 33, 7036, 16, 2688, 2218, 3158, 17, 28, 11, 4672, 7541, 261, 71, 13, 478, 1176, 17, 1285, 16, 8765, 18, 74, 1176, 17, 305, 18, 832, 16, 4044, 27, 7541, 411, 84, 847, 36, 74, 1176, 17, 305, 18, 832, 34, 7541, 4224, 2674, 30, 1062, 2207, 5591, 18, 84, 847, 2196, 18, 832, 19, 84, 1330, 19, 2620, 22, 412, 10133, 282, 3536, 628, 392, 3982, 977, 16, 1765, 326, 3982, 358, 7351, 977, 18, 971, 632, 3432, 67, 350, 353, 2112, 1508, 333, 353, 326, 1047, 1625, 326, 1417, 261, 902, 23848, 411, 3432, 23429, 2542, 18, 3536, 775, 30, 628, 28132, 1930, 28132, 16, 2 ]
searchLock.acquire() try: queue.put(None) if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not movestr:
if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not movestr: global mytime, increment, scr lsearch.skipPruneChance = skipPruneChance lsearch.searching = True if mytime == None: lsearch.endtime = sys.maxint print "Searching to depth %d without timelimit" % sd mvs, scr = alphaBeta (board, sd) else: usetime = mytime / remainingMovesA(len(board.history)) if mytime < 6*60+increment*40: usetime *= 2 usetime += increment if usetime < 0.5: usetime = 0.5
def go (queue): """ Finds and prints the best move from the current position """ searchLock.acquire() try: queue.put(None) # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not movestr: global mytime, increment, scr lsearch.skipPruneChance = skipPruneChance lsearch.searching = True if mytime == None: lsearch.endtime = sys.maxint mvs, scr = alphaBeta (board, sd) else: usetime = mytime / remainingMovesA(len(board.history)) if mytime < 6*60+increment*40: # If game is blitz, we assume 40 moves rather than 80 usetime *= 2 # The increment is a constant. We'll use this allways usetime += increment if usetime < 0.5: # We don't wan't to search for e.g. 0 secs usetime = 0.5 starttime = time() lsearch.endtime = starttime + usetime prevtime = 0 print "Time left: %3.2f seconds; Planing to thinking for %3.2f seconds" % \ (mytime, usetime) for depth in range(1, sd+1): # Heuristic time saving # Don't waste time, if the estimated isn't enough to complete next depth if usetime > prevtime*4 or usetime <= 1: lsearch.timecheck_counter = lsearch.TIMECHECK_FREQ search_result = alphaBeta(board, depth) if lsearch.searching: mvs, scr = search_result if time() > lsearch.endtime: # Endtime occured after depth break else: # Endtime occured in depth print "Endtime occoured while I was searching depth %d" % depth break prevtime = time()-starttime - prevtime else: print "I don't have enough time to go into depth %d" % depth # Not enough time for depth break else: print "I searched through depths [1, %d]" % (sd+1) mytime -= time() - starttime mytime += increment if not mvs: if not lsearch.searching: # We were interupted lsearch.movesearches = 0 lsearch.nodes = 0 searchLock.release() return #if lsearch.last == 4: # print "resign" #else: if scr == 0: print "result", reprResult[DRAW] elif scr < 0: if board.color == WHITE: print "result", reprResult[BLACKWON] else: print "result", reprResult[WHITEWON] else: if board.color == WHITE: print "result", reprResult[WHITEWON] else: print "result", reprResult[BLACKWON] print "last:", lsearch.last, scr return print "moves were:", " ".join(listToSan(board, mvs)), scr lsearch.movesearches = 0 lsearch.nodes = 0 lsearch.searching = False move = mvs[0] print "move", toSAN(board, move) board.applyMove(move) finally: searchLock.release()
3989d5f03e9e09f795eaf02ffa22de695b21e8e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/3989d5f03e9e09f795eaf02ffa22de695b21e8e9/PyChess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11311, 1123, 1410, 506, 1378, 316, 326, 6978, 18, 468, 605, 11246, 18, 1728, 353, 486, 7304, 18, 6161, 4200, 309, 562, 12, 3752, 18, 8189, 13, 411, 5045, 30, 13934, 313, 273, 28782, 21378, 12, 3752, 13, 309, 13934, 313, 30, 312, 6904, 273, 306, 2670, 22721, 12, 3752, 16, 13934, 313, 25887, 225, 309, 562, 12, 3752, 18, 8189, 13, 1545, 5045, 578, 486, 13934, 313, 30, 225, 2552, 3399, 957, 16, 5504, 16, 11991, 328, 3072, 18, 7457, 28404, 782, 1359, 273, 2488, 28404, 782, 1359, 328, 3072, 18, 3072, 310, 273, 1053, 225, 309, 3399, 957, 422, 599, 30, 328, 3072, 18, 409, 957, 273, 2589, 18, 1896, 474, 312, 6904, 16, 11991, 273, 4190, 38, 1066, 261, 3752, 16, 8349, 13, 225, 469, 30, 584, 2374, 273, 3399, 957, 342, 4463, 19297, 37, 12, 1897, 12, 3752, 18, 8189, 3719, 309, 3399, 957, 411, 1666, 14, 4848, 15, 15016, 14, 7132, 30, 468, 971, 7920, 353, 2811, 305, 94, 16, 732, 6750, 8063, 13934, 9178, 2353, 8958, 584, 2374, 6413, 576, 468, 1021, 5504, 353, 279, 5381, 18, 1660, 5614, 999, 333, 777, 3052, 584, 2374, 1011, 5504, 309, 584, 2374, 411, 374, 18, 25, 30, 468, 1660, 2727, 1404, 341, 304, 1404, 358, 1623, 364, 425, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11311, 1123, 1410, 506, 1378, 316, 326, 6978, 18, 468, 605, 11246, 18, 1728, 353, 486, 7304, 18, 6161, 4200, 309, 562, 12, 3752, 18, 8189, 13, 411, 5045, 30, 13934, 313, 273, 28782, 21378, 12, 3752, 13, 309, 13934, 313, 30, 312, 6904, 273, 306, 2670, 22721, 12, 3752, 16, 13934, 313, 25887, 225, 309, 562, 12, 3752, 18, 8189, 13, 1545, 5045, 578, 486, 13934, 313, 30, 225, 2552, 3399, 957, 16, 5504, 16, 11991, 328, 3072, 18, 7457, 28404, 782, 1359, 2 ]
return
raise SystemExit
def run (self): """Remove files.""" print UNINSTALL_WARNING response = raw_input('Continue [y/N]? ') if response.lower() != 'y': return
81889475a41d52b6cb1972ded80f1bb6d56539d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/81889475a41d52b6cb1972ded80f1bb6d56539d3/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 3536, 3288, 1390, 12123, 225, 1172, 5019, 28865, 67, 9511, 766, 273, 1831, 67, 2630, 2668, 12378, 306, 93, 19, 50, 26717, 8624, 309, 766, 18, 8167, 1435, 480, 296, 93, 4278, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 3536, 3288, 1390, 12123, 225, 1172, 5019, 28865, 67, 9511, 766, 273, 1831, 67, 2630, 2668, 12378, 306, 93, 19, 50, 26717, 8624, 309, 766, 18, 8167, 1435, 480, 296, 93, 4278, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def encode_multipart_formdata(fields, files): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$' CRLF = '\r\n' L = [] for (key, value) in fields: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"' % key) L.append('') L.append(value) for (key, filename, value) in files: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename)) L.append('Content-Type: %s' % get_content_type(filename)) L.append('') L.append(value) L.append('--' + BOUNDARY + '--') L.append('') body = CRLF.join(L) content_type = 'multipart/form-data; boundary=%s' % BOUNDARY return content_type, body
def doTinderboxPrint(self, contents, testlongname, testname, prettyval): lines = contents.split('\n') found = False for line in lines: if "RETURN" in line : tboxPrint = 'TinderboxPrint: ' + \ '<a title="%s" href=\'http://%s/%s\'>%s:%s</a>\n' % \ (testlongname, self.server, line.split("\t")[3], testname, prettyval) print tboxPrint found = True if not found: print >> sys.stderr, "results not added, response: \n" + contents raise Exception("graph server did not add results successfully")
def encode_multipart_formdata(fields, files): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$' CRLF = '\r\n' L = [] for (key, value) in fields: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"' % key) L.append('') L.append(value) for (key, filename, value) in files: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename)) L.append('Content-Type: %s' % get_content_type(filename)) L.append('') L.append(value) L.append('--' + BOUNDARY + '--') L.append('') body = CRLF.join(L) content_type = 'multipart/form-data; boundary=%s' % BOUNDARY return content_type, body
47bd7c2e8fd58c5a552e0b183cdc52621b97f22d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/47bd7c2e8fd58c5a552e0b183cdc52621b97f22d/graph_server_post.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 56, 14055, 2147, 5108, 12, 2890, 16, 2939, 16, 1842, 5748, 529, 16, 1842, 529, 16, 7517, 1125, 4672, 225, 2362, 273, 2939, 18, 4939, 2668, 64, 82, 6134, 1392, 273, 1083, 364, 980, 316, 2362, 30, 309, 315, 14033, 6, 316, 980, 294, 268, 2147, 5108, 273, 225, 296, 56, 14055, 2147, 5108, 30, 296, 397, 521, 2368, 69, 2077, 11613, 87, 6, 3897, 31343, 2505, 23155, 87, 5258, 87, 3730, 9822, 87, 5319, 87, 1757, 69, 5333, 82, 11, 738, 521, 261, 3813, 5748, 529, 16, 365, 18, 3567, 16, 980, 18, 4939, 31458, 88, 7923, 63, 23, 6487, 1842, 529, 16, 7517, 1125, 13, 1172, 268, 2147, 5108, 1392, 273, 1053, 309, 486, 1392, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 4717, 486, 3096, 16, 766, 30, 521, 82, 6, 397, 2939, 1002, 1185, 2932, 4660, 1438, 5061, 486, 527, 1686, 4985, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 56, 14055, 2147, 5108, 12, 2890, 16, 2939, 16, 1842, 5748, 529, 16, 1842, 529, 16, 7517, 1125, 4672, 225, 2362, 273, 2939, 18, 4939, 2668, 64, 82, 6134, 1392, 273, 1083, 364, 980, 316, 2362, 30, 309, 315, 14033, 6, 316, 980, 294, 268, 2147, 5108, 273, 225, 296, 56, 14055, 2147, 5108, 30, 296, 397, 521, 2368, 69, 2077, 11613, 87, 6, 3897, 31343, 2505, 23155, 87, 5258, 87, 3730, 9822, 87, 5319, 87, 1757, 69, 5333, 82, 11, 738, 521, 261, 3813, 5748, 529, 16, 365, 18, 3567, 16, 980, 18, 4939, 31458, 88, 7923, 63, 23, 6487, 1842, 529, 16, 7517, 1125, 13, 1172, 268, 2147, 5108, 1392, 273, 1053, 309, 486, 1392, 2 ]
'name': fields.char('Name', size=64, required=True),
'name': fields.char('Communication', size=64, required=True),
def onchange_partner_id(self, cursor, user, line_id, partner_id, type, currency_id, context=None): res_users_obj = self.pool.get('res.users') res_currency_obj = self.pool.get('res.currency') res = {'value': {}} obj_partner = self.pool.get('res.partner') if context is None: context = {} if not partner_id: return res account_id = False line = self.browse(cursor, user, line_id) if not line or (line and not line[0].account_id): part = obj_partner.browse(cursor, user, partner_id, context=context) if type == 'supplier': account_id = part.property_account_payable.id else: account_id = part.property_account_receivable.id res['value']['account_id'] = account_id
02d922e3957cc2244cf163acbaedabfef204b660 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/02d922e3957cc2244cf163acbaedabfef204b660/account_bank_statement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 3347, 16, 729, 16, 980, 67, 350, 16, 19170, 67, 350, 16, 618, 16, 5462, 67, 350, 16, 819, 33, 7036, 4672, 400, 67, 5577, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 6134, 400, 67, 7095, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 7095, 6134, 400, 273, 13666, 1132, 4278, 2618, 97, 1081, 67, 31993, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 31993, 6134, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 486, 19170, 67, 350, 30, 327, 400, 2236, 67, 350, 273, 1083, 980, 273, 365, 18, 25731, 12, 9216, 16, 729, 16, 980, 67, 350, 13, 309, 486, 980, 578, 261, 1369, 471, 486, 980, 63, 20, 8009, 4631, 67, 350, 4672, 1087, 273, 1081, 67, 31993, 18, 25731, 12, 9216, 16, 729, 16, 19170, 67, 350, 16, 819, 33, 2472, 13, 309, 618, 422, 296, 2859, 5742, 4278, 2236, 67, 350, 273, 1087, 18, 4468, 67, 4631, 67, 10239, 429, 18, 350, 469, 30, 2236, 67, 350, 273, 1087, 18, 4468, 67, 4631, 67, 8606, 427, 429, 18, 350, 400, 3292, 1132, 21712, 4631, 67, 350, 3546, 273, 2236, 67, 350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 3347, 16, 729, 16, 980, 67, 350, 16, 19170, 67, 350, 16, 618, 16, 5462, 67, 350, 16, 819, 33, 7036, 4672, 400, 67, 5577, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 6134, 400, 67, 7095, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 7095, 6134, 400, 273, 13666, 1132, 4278, 2618, 97, 1081, 67, 31993, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 31993, 6134, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 486, 19170, 67, 350, 30, 327, 400, 2236, 67, 350, 273, 1083, 980, 273, 365, 18, 25731, 12, 9216, 16, 729, 16, 980, 67, 350, 2 ]
set_kw(self,kw,"fruitname","seed") set_kw(self,kw,"fruitchance",fruitchance) def tick_operation(self, op): if debug_tree: print "I this big ", self.height print `self`,"Got tick operation:" opTick=Operation("tick",to=self) opTick.time.sadd=const.basic_tick*speed result = atlas.Message(opTick) fcount = self.fruits result = result + self.drop_fruit() if self.height > sizeadult : if randint(1, self.fruitchance) == 1: if debug_tree: print "I'm growing a fruit!" self.fruits = self.fruits + 1 else: if debug_tree: print "I didn't grow a fruit" if fcount != self.fruits: if fcount == 0: newmode = "normal" else: newmode = "fruit" result = result + Operation("set",Entity(self.id,fruits=self.fruits,mode=newmode),to=self) return result def drop_fruit(self): result = atlas.Message() if self.fruits > 0: rand = randint(minudrop, maxudrop) rand = min(rand,self.fruits) self.fruits = self.fruits - rand for x in range(rand): if debug_tree: print "Creating Fruit" randx = uniform ( self.location.coordinates.x - cs( x1 * self.height, x2 * self.height, xMax) , self.location.coordinates.x + cs( x2 * self.height, x1 * self.height, xMax) ) randy = uniform ( self.location.coordinates.y - cs( y1 * self.height, y2 * self.height, yMax) , self.location.coordinates.y + cs( y2 * self.height, y1 * self.height, yMax) ) randz = 0 if hasattr(self,"coords_modify"): randx,randy,randz=coords_modify(randx,randy,randz) fruit=Entity(name=self.fruitname,location=Location(self.world,Vector3D(randx,randy,randz)),parents=[self.fruitname]) result = result + Operation("create",fruit,to=self) if debug_tree: print fruit return result
def __init__(self, cppthing, **kw): self.base_init(cppthing, kw) # The default height set_kw(self,kw,"height",10)
8913e2e109ea220f628a50f24dc1853a67e9d780 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/8913e2e109ea220f628a50f24dc1853a67e9d780/Tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3283, 2397, 310, 16, 2826, 9987, 4672, 365, 18, 1969, 67, 2738, 12, 4057, 2397, 310, 16, 5323, 13, 225, 468, 1021, 805, 2072, 444, 67, 9987, 12, 2890, 16, 9987, 10837, 4210, 3113, 2163, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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468, 1021, 805, 2072, 444, 67, 9987, 12, 2890, 16, 9987, 10837, 4210, 3113, 2163, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
html_post = '</pre>'
html_post += '</pre>'
def paste(environ, start_response): params = FieldStorage(fp=environ['wsgi.input'], environ=environ, keep_blank_values = True) html_pre = '''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
97ad87e206fc0882ae36b8a6caf0f808acac00d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12745/97ad87e206fc0882ae36b8a6caf0f808acac00d6/paste.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 12, 28684, 16, 787, 67, 2740, 4672, 859, 273, 2286, 3245, 12, 7944, 33, 28684, 3292, 28539, 18, 2630, 17337, 5473, 33, 28684, 16, 3455, 67, 12111, 67, 2372, 273, 1053, 13, 1729, 67, 1484, 273, 9163, 5586, 29824, 1729, 17187, 3701, 759, 59, 23, 39, 759, 25728, 30551, 404, 18, 20, 2604, 6457, 759, 1157, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 12, 28684, 16, 787, 67, 2740, 4672, 859, 273, 2286, 3245, 12, 7944, 33, 28684, 3292, 28539, 18, 2630, 17337, 5473, 33, 28684, 16, 3455, 67, 12111, 67, 2372, 273, 1053, 13, 1729, 67, 1484, 273, 9163, 5586, 29824, 1729, 17187, 3701, 759, 59, 23, 39, 759, 25728, 30551, 404, 18, 20, 2604, 6457, 759, 1157, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: show(plot(sin,-4,4), frame=True)
sage.: show(plot(sin,-4,4), frame=True)
def show(self, xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, filename=None, dpi=DEFAULT_DPI, axes=True, axes_label=None,frame=False, **args): """ Show this graphics image with the default image viewer.
c0e21f844db5dcf442dd512ff861c952b0661fb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/c0e21f844db5dcf442dd512ff861c952b0661fb2/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 6515, 33, 5510, 16, 6515, 67, 1925, 33, 7036, 16, 3789, 33, 8381, 16, 2826, 1968, 4672, 3536, 9674, 333, 17313, 1316, 598, 326, 805, 1316, 14157, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 6515, 33, 5510, 16, 6515, 67, 1925, 33, 7036, 16, 3789, 33, 8381, 16, 2826, 1968, 4672, 3536, 9674, 333, 17313, 1316, 598, 326, 805, 1316, 14157, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except AttributeError: pass else: raise TestFailed, 'expected AttributeError' if b.__dict__ <> None: raise TestFailed, 'expected unassigned func.__dict__ to be None'
except AttributeError: pass else: raise TestFailed, 'expected AttributeError' if b.__dict__ <> {}: raise TestFailed, 'expected unassigned func.__dict__ to be {}'
def b(): 'my docstring' pass
19490fcd3650b91ff20afbec3aad3295d3ad9ccd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/19490fcd3650b91ff20afbec3aad3295d3ad9ccd/test_funcattrs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 296, 4811, 14525, 11, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 296, 4811, 14525, 11, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"tcidvi" : [""], "textures" : ["", ".ps", ".eps", ".pict"],
"tcidvi" : [], "textures" : [".ps", ".eps", ".pict"],
# default suffixes for each device driver (taken from the .def files)
54d7233db590e1bdc00b147ac889a0949af5e0de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/54d7233db590e1bdc00b147ac889a0949af5e0de/graphics.py
[ 1, 8585, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 805, 18333, 364, 1517, 2346, 3419, 261, 29113, 628, 326, 263, 536, 1390, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif (colls or (limit.isdigit() and nb_authors > int(limit))) and interactive == "yes":
elif interactive == "yes" and ((colls and not short_coll) or (limit.isdigit() and nb_authors > int(limit))):
def format(bfo, limit, separator='; ', extension='[...]', print_links = "yes", print_affiliations='no', affiliation_prefix = ' (', affiliation_suffix = ')', print_affiliation_first='no', interactive="no", highlight="no", affiliations_separator=" ; ", name_last_first = "yes", collaboration = "yes", id_links = "no", markup = "html", link_extension = "no", ): """ Prints the list of authors of a record. @param limit the maximum number of authors to display @param separator the separator between authors. @param extension a text printed if more authors than 'limit' exist @param print_links if yes, prints the authors as HTML link to their publications @param print_affiliations if yes, make each author name followed by its affiliation @param affiliation_prefix prefix printed before each affiliation @param affiliation_suffix suffix printed after each affiliation @param print_affiliation_first if 'yes', affiliation is printed before the author @param interactive if yes, enable user to show/hide authors when there are too many (html + javascript) @param highlight highlights authors corresponding to search query if set to 'yes' @param affiliations_separator separates affiliation groups @param name_last_first if yes (default) print last, first otherwise first last @param collaboration if yes (default) uses collaboration name in place of long author list, if available @param id_links if yes (default = no) prints link based on INSPIRE IDs if available - only used if print_links = yes @param markup html (default) or latex controls small markup differences @param link_extension if 'yes' link the extension to the detailed record page """ from urllib import quote from cgi import escape import re from invenio.config import CFG_SITE_URL from invenio.bibformat_elements.bfe_server_info import format as bfe_server #regex for parsing last and first names and initials re_last_first = re.compile('^(?P<last>[^,]+)\s*,\s*(?P<first_names>[^\,]*)(?P<extension>\,?.*)$') re_initials = re.compile(r'(?P<initial>\w)(\w+|\.)\s*') re_coll = re.compile(r'\s*collaborations?', re.IGNORECASE) from invenio.bibformat_config_inspire import CFG_BIBFORMAT_INSPIRE_INST_LINK from invenio.messages import gettext_set_language _ = gettext_set_language(bfo.lang) # load the right message language authors = [] authors = bfo.fields('100__', repeatable_subfields_p=True) authors.extend(bfo.fields('700__', repeatable_subfields_p=True)) # Keep real num of authorsfix + affiliations_separator.join(author['u']) + \ nb_authors = len(authors) # Limit num of authors, so that we do not process # the authors that will not be shown. This can only # be done in non-interactive mode, as interactive mode # allows to show all of them. if limit.isdigit() and nb_authors > int(limit) \ and interactive != "yes": if bfo.field('710g'): #check for colln note authors = authors[:1] else: authors = authors[:int(limit)] # Process authors to add link, affiliation and highlight for author in authors: if author.has_key('a'): author['a'] = author['a'][0] # There should not be # repeatable subfields here. if highlight == 'yes': from invenio import bibformat_utils author['a'] = bibformat_utils.highlight(author['a'], bfo.search_pattern) #check if we need to reverse last, first #we don't try to reverse it if it isn't stored with a comma. first_last_match = re_last_first.search(author['a']) author['display'] = author['a'] if name_last_first.lower() == "no": if first_last_match: author['display'] = first_last_match.group('first_names') + \ ' ' + \ first_last_match.group('last') + \ first_last_match.group('extension') #for latex we do initials only (asn assume first last) if markup == 'latex': if first_last_match: first = re_initials.sub('\g<initial>.~', \ first_last_match.group('first_names')) author['display'] = first + \ first_last_match.group('last') + \ first_last_match.group('extension') if print_links.lower() == "yes": # if there is an ID, search using that. id_link = '' if id_links == "yes" and author.has_key('i'): author['i'] = author['i'][0] #possible to have more IDs? id_link = '<a class="authoridlink" href="' + \ CFG_SITE_URL + \ '/search?' + \ 'ln='+ bfo.lang + \ '&amp;p=100__i' + escape(':' + author['i']) + \ '+or+700__i' + escape(':' + author['i']) +\ '">'+escape("(ID Search)") + '</a> ' author['display'] = '<a class="authorlink" href="' + \ CFG_SITE_URL + \ '/author/'+ quote(author['a']) + \ '?ln='+ bfo.lang + \ '">'+escape(author['display'])+'</a>' + \ id_link if print_affiliations == "yes": if author.has_key('e'): author['e'] = affiliation_prefix + \ affiliations_separator.join(author['e']) + \ affiliation_suffix if author.has_key('u'): author['ilink'] = ['<a class="afflink" href="' + \ CFG_BIBFORMAT_INSPIRE_INST_LINK + \ escape(string) + \ '">' + \ string.lstrip() + \ '</a>' for string in author['u']] author['u'] = affiliation_prefix + \ affiliations_separator.join(author['ilink']) + \ affiliation_suffix
c8c2cf5be797b1d4116fae289e47ed54a8b5996d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14116/c8c2cf5be797b1d4116fae289e47ed54a8b5996d/bfe_INSPIRE_authors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 16, 1800, 16, 4182, 2218, 31, 2265, 2710, 2218, 63, 2777, 65, 2187, 1172, 67, 7135, 273, 315, 9707, 3113, 1172, 67, 7329, 15700, 1012, 2218, 2135, 2187, 7103, 16278, 67, 3239, 273, 296, 261, 2187, 7103, 16278, 67, 8477, 273, 8624, 2187, 1172, 67, 7329, 16278, 67, 3645, 2218, 2135, 2187, 12625, 1546, 2135, 3113, 8839, 1546, 2135, 3113, 7103, 15700, 1012, 67, 11287, 1546, 274, 3104, 508, 67, 2722, 67, 3645, 273, 315, 9707, 3113, 21326, 22226, 273, 315, 9707, 3113, 612, 67, 7135, 273, 315, 2135, 3113, 9813, 273, 315, 2620, 3113, 1692, 67, 6447, 273, 315, 2135, 3113, 262, 30, 3536, 3038, 87, 326, 666, 434, 14494, 434, 279, 1409, 18, 225, 632, 891, 1800, 326, 4207, 1300, 434, 14494, 358, 2562, 632, 891, 4182, 326, 4182, 3086, 14494, 18, 632, 891, 2710, 279, 977, 14099, 309, 1898, 14494, 2353, 296, 3595, 11, 1005, 632, 891, 1172, 67, 7135, 309, 12465, 16, 14971, 326, 14494, 487, 3982, 1692, 358, 3675, 1071, 1012, 632, 891, 1172, 67, 7329, 15700, 1012, 309, 12465, 16, 1221, 1517, 2869, 508, 10860, 635, 2097, 7103, 16278, 632, 891, 7103, 16278, 67, 3239, 1633, 14099, 1865, 1517, 7103, 16278, 632, 891, 7103, 16278, 67, 8477, 3758, 14099, 1839, 1517, 7103, 16278, 632, 891, 1172, 67, 7329, 16278, 67, 3645, 309, 296, 9707, 2187, 7103, 16278, 353, 14099, 1865, 326, 2869, 632, 891, 12625, 309, 12465, 16, 4237, 729, 358, 2405, 19, 11248, 14494, 1347, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 16, 1800, 16, 4182, 2218, 31, 2265, 2710, 2218, 63, 2777, 65, 2187, 1172, 67, 7135, 273, 315, 9707, 3113, 1172, 67, 7329, 15700, 1012, 2218, 2135, 2187, 7103, 16278, 67, 3239, 273, 296, 261, 2187, 7103, 16278, 67, 8477, 273, 8624, 2187, 1172, 67, 7329, 16278, 67, 3645, 2218, 2135, 2187, 12625, 1546, 2135, 3113, 8839, 1546, 2135, 3113, 7103, 15700, 1012, 67, 11287, 1546, 274, 3104, 508, 67, 2722, 67, 3645, 273, 315, 9707, 3113, 21326, 22226, 273, 315, 9707, 3113, 612, 67, 7135, 273, 315, 2135, 3113, 9813, 273, 315, 2620, 3113, 1692, 67, 6447, 273, 315, 2135, 3113, 262, 30, 3536, 3038, 87, 326, 666, 434, 14494, 434, 279, 1409, 2 ]
def test_samefile(self): f = open(test_support.TESTFN + "1", "wb") try: f.write("foo") f.close()
def test_samefile(self): f = open(test_support.TESTFN + "1", "wb") try: f.write("foo") f.close() self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "1" ), True ) if hasattr(os, "symlink"): os.symlink( test_support.TESTFN + "1", test_support.TESTFN + "2" )
def test_samefile(self): f = open(test_support.TESTFN + "1", "wb") try: f.write("foo") f.close() self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "1" ), True ) # If we don't have links, assume that os.stat doesn't return resonable # inode information and thus, that samefile() doesn't work if hasattr(os, "symlink"): os.symlink( test_support.TESTFN + "1", test_support.TESTFN + "2" ) self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "2" ), True ) os.remove(test_support.TESTFN + "2") f = open(test_support.TESTFN + "2", "wb") f.write("bar") f.close() self.assertIs( posixpath.samefile( test_support.TESTFN + "1", test_support.TESTFN + "2" ), False ) finally: if not f.close(): f.close() try: os.remove(test_support.TESTFN + "1") except os.error: pass try: os.remove(test_support.TESTFN + "2") except os.error: pass
3daf60bdfe4bb713399929b64a36849597f2be05 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3daf60bdfe4bb713399929b64a36849597f2be05/test_posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14307, 768, 12, 2890, 4672, 284, 273, 1696, 12, 3813, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 315, 9464, 7923, 775, 30, 284, 18, 2626, 2932, 11351, 7923, 284, 18, 4412, 1435, 365, 18, 11231, 2520, 12, 16366, 803, 18, 14307, 768, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 6, 262, 16, 1053, 262, 282, 309, 3859, 12, 538, 16, 315, 21278, 6, 4672, 1140, 18, 21278, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 22, 6, 262, 365, 18, 11231, 2520, 12, 16366, 803, 18, 14307, 768, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 6, 262, 16, 1053, 262, 468, 971, 732, 2727, 1404, 1240, 4716, 16, 6750, 716, 1140, 18, 5642, 3302, 1404, 327, 400, 265, 429, 468, 17870, 1779, 471, 12493, 16, 716, 1967, 768, 1435, 3302, 1404, 1440, 309, 3859, 12, 538, 16, 315, 21278, 6, 4672, 1140, 18, 21278, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 22, 6, 262, 365, 18, 11231, 2520, 12, 16366, 803, 18, 14307, 768, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 22, 6, 262, 16, 1053, 262, 1140, 18, 4479, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14307, 768, 12, 2890, 4672, 284, 273, 1696, 12, 3813, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 315, 9464, 7923, 775, 30, 284, 18, 2626, 2932, 11351, 7923, 284, 18, 4412, 1435, 365, 18, 11231, 2520, 12, 16366, 803, 18, 14307, 768, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 6, 262, 16, 1053, 262, 282, 309, 3859, 12, 538, 16, 315, 21278, 6, 4672, 1140, 18, 21278, 12, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 21, 3113, 1842, 67, 13261, 18, 16961, 19793, 397, 315, 22, 6, 262, 365, 18, 11231, 2520, 12, 16366, 803, 18, 14307, 768, 12, 1842, 2 ]
The patches must not be applied. With -k, the patch files are preserved in the patch directory."""
With --forget, mq will stop managing the named patches. The patches must be applied and at the base of the stack. This option is useful when the patches have been applied upstream. Otherwise, the patches must not be applied. With --keep, the patch files are preserved in the patch directory."""
def delete(ui, repo, patch, *patches, **opts): """remove patches from queue The patches must not be applied. With -k, the patch files are preserved in the patch directory.""" q = repo.mq q.delete(repo, (patch,) + patches, keep=opts.get('keep')) q.save_dirty() return 0
51580bdfb468330b010bd4b9364c4461e97f7604 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/51580bdfb468330b010bd4b9364c4461e97f7604/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 4881, 16, 3538, 16, 4729, 16, 380, 30278, 16, 2826, 4952, 4672, 3536, 4479, 16482, 628, 2389, 225, 3423, 1493, 1884, 588, 16, 18327, 903, 2132, 30632, 326, 4141, 16482, 18, 1021, 16482, 1297, 506, 6754, 471, 622, 326, 1026, 434, 326, 2110, 18, 1220, 1456, 353, 5301, 1347, 326, 16482, 1240, 2118, 6754, 13505, 18, 225, 5272, 16, 326, 16482, 1297, 486, 506, 6754, 18, 225, 3423, 1493, 10102, 16, 326, 4729, 1390, 854, 21096, 316, 326, 4729, 1867, 12123, 1043, 273, 3538, 18, 11636, 1043, 18, 3733, 12, 7422, 16, 261, 2272, 16, 13, 397, 16482, 16, 3455, 33, 4952, 18, 588, 2668, 10102, 26112, 1043, 18, 5688, 67, 18013, 1435, 327, 374, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 4881, 16, 3538, 16, 4729, 16, 380, 30278, 16, 2826, 4952, 4672, 3536, 4479, 16482, 628, 2389, 225, 3423, 1493, 1884, 588, 16, 18327, 903, 2132, 30632, 326, 4141, 16482, 18, 1021, 16482, 1297, 506, 6754, 471, 622, 326, 1026, 434, 326, 2110, 18, 1220, 1456, 353, 5301, 1347, 326, 16482, 1240, 2118, 6754, 13505, 18, 225, 5272, 16, 326, 16482, 1297, 486, 506, 6754, 18, 225, 3423, 1493, 10102, 16, 326, 4729, 1390, 854, 21096, 316, 326, 4729, 1867, 12123, 1043, 273, 3538, 18, 11636, 1043, 18, 3733, 12, 7422, 16, 261, 2272, 16, 13, 397, 16482, 16, 3455, 33, 4952, 18, 588, 2668, 10102, 26112, 1043, 18, 5688, 67, 18013, 1435, 327, 374, 225, 2 ]
status(status='error')
self.status(status='error')
def __call__(self): options, args, parser = self.parse_options() self.parser = parser self.options = options import tempfile from mwlib.mwapidb import MWAPIError from mwlib.writerbase import WriterError from mwlib.status import Status
b4247c76bd1169d4393aaa2f80f31a2e1e1f2405 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/b4247c76bd1169d4393aaa2f80f31a2e1e1f2405/render.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 702, 16, 833, 16, 2082, 273, 365, 18, 2670, 67, 2116, 1435, 365, 18, 4288, 273, 2082, 365, 18, 2116, 273, 702, 225, 1930, 13275, 628, 14721, 2941, 18, 81, 91, 438, 350, 70, 1930, 16948, 25415, 628, 14721, 2941, 18, 6299, 1969, 1930, 5497, 668, 628, 14721, 2941, 18, 2327, 1930, 2685, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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299, 1969, 1930, 5497, 668, 628, 14721, 2941, 18, 2327, 1930, 2685, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
subdivisions between each major tick - ``absolute`` - (default: False) if True, makes a huge ruler in the direction of an axis - ``snap`` - (default: False) if True, snaps to an implied grid
subdivisions between each major tick. - ``absolute`` - (default: ``False``) if ``True``, makes a huge ruler in the direction of an axis. - ``snap`` - (default: ``False``) if ``True``, snaps to an implied grid.
def ruler(start, end, ticks=4, sub_ticks=4, absolute=False, snap=False, **kwds): """ Draw a ruler in 3D, with major and minor ticks. INPUT: - ``start`` - the beginning of the ruler, as a list, tuple, or vector - ``end`` - the end of the ruler, as a list, tuple, or vector - ``ticks`` - (default: 4) the number of major ticks shown on the ruler - ``sub_ticks`` - (default: 4) the number of shown subdivisions between each major tick - ``absolute`` - (default: False) if True, makes a huge ruler in the direction of an axis - ``snap`` - (default: False) if True, snaps to an implied grid Type ``line3d.options`` for a dictionary of the default options for lines which are also available. EXAMPLES: A ruler:: sage: from sage.plot.plot3d.shapes2 import ruler sage: R = ruler([1,2,3],vector([2,3,4])); R A ruler with some options:: sage: R = ruler([1,2,3],vector([2,3,4]),ticks=6, sub_ticks=2, color='red'); R The keyword ``snap`` makes the ticks not necessarily coincide with the ruler:: sage: ruler([1,2,3],vector([1,2,4]),snap=True) The keyword ``absolute`` makes a huge ruler in one of the axis directions:: sage: ruler([1,2,3],vector([1,2,4]),absolute=True) TESTS:: sage: ruler([1,2,3],vector([1,3,4]),absolute=True) Traceback (most recent call last): ... ValueError: Absolute rulers only valid for axis-aligned paths """ start = vector(RDF, start) end = vector(RDF, end) dir = end - start dist = math.sqrt(dir.dot_product(dir)) dir /= dist one_tick = dist/ticks * 1.414 unit = 10 ** math.floor(math.log(dist/ticks, 10)) if unit * 5 < one_tick: unit *= 5 elif unit * 2 < one_tick: unit *= 2 if dir[0]: tick = dir.cross_product(vector(RDF, (0,0,-dist/30))) elif dir[1]: tick = dir.cross_product(vector(RDF, (0,0,dist/30))) else: tick = vector(RDF, (dist/30,0,0)) if snap: for i in range(3): start[i] = unit * math.floor(start[i]/unit + 1e-5) end[i] = unit * math.ceil(end[i]/unit - 1e-5) if absolute: if dir[0]*dir[1] or dir[1]*dir[2] or dir[0]*dir[2]: raise ValueError, "Absolute rulers only valid for axis-aligned paths" m = max(dir[0], dir[1], dir[2]) if dir[0] == m: off = start[0] elif dir[1] == m: off = start[1] else: off = start[2] first_tick = unit * math.ceil(off/unit - 1e-5) - off else: off = 0 first_tick = 0 ruler = shapes.LineSegment(start, end, **kwds) for k in range(1, int(sub_ticks * first_tick/unit)): P = start + dir*(k*unit/sub_ticks) ruler += shapes.LineSegment(P, P + tick/2, **kwds) for d in srange(first_tick, dist + unit/(sub_ticks+1), unit): P = start + dir*d ruler += shapes.LineSegment(P, P + tick, **kwds) ruler += shapes.Text(str(d+off), **kwds).translate(P - tick) if dist - d < unit: sub_ticks = int(sub_ticks * (dist - d)/unit) for k in range(1, sub_ticks): P += dir * (unit/sub_ticks) ruler += shapes.LineSegment(P, P + tick/2, **kwds) return ruler
a074a851cc2fcbb495453d24cda3b4b1c0b78eec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/a074a851cc2fcbb495453d24cda3b4b1c0b78eec/shapes2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 17040, 12, 1937, 16, 679, 16, 13003, 33, 24, 16, 720, 67, 11767, 33, 24, 16, 4967, 33, 8381, 16, 10915, 33, 8381, 16, 2826, 25577, 4672, 3536, 10184, 279, 436, 17040, 316, 890, 40, 16, 598, 7888, 471, 8439, 13003, 18, 225, 12943, 30, 225, 300, 12176, 1937, 10335, 300, 326, 8435, 434, 326, 436, 17040, 16, 487, 279, 666, 16, 3193, 16, 578, 3806, 225, 300, 12176, 409, 10335, 300, 326, 679, 434, 326, 436, 17040, 16, 487, 279, 666, 16, 3193, 16, 578, 3806, 225, 300, 12176, 11767, 10335, 300, 261, 1886, 30, 1059, 13, 326, 1300, 434, 7888, 13003, 12188, 603, 326, 436, 17040, 225, 300, 12176, 1717, 67, 11767, 10335, 300, 261, 1886, 30, 1059, 13, 326, 1300, 434, 12188, 25741, 12682, 3086, 1517, 7888, 4024, 18, 225, 300, 12176, 12547, 10335, 300, 261, 1886, 30, 12176, 8381, 10335, 13, 309, 12176, 5510, 68, 9191, 7297, 279, 366, 21627, 436, 17040, 316, 326, 4068, 434, 392, 2654, 18, 225, 300, 12176, 28449, 10335, 300, 261, 1886, 30, 12176, 8381, 10335, 13, 309, 12176, 5510, 68, 9191, 10915, 87, 358, 392, 23547, 3068, 18, 225, 1412, 12176, 1369, 23, 72, 18, 2116, 10335, 364, 279, 3880, 434, 326, 805, 702, 364, 2362, 1492, 854, 2546, 2319, 18, 225, 5675, 8900, 11386, 30, 225, 432, 436, 17040, 2866, 225, 272, 410, 30, 628, 272, 410, 18, 4032, 18, 4032, 23, 72, 18, 17648, 22, 1930, 436, 17040, 272, 410, 30, 534, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 17040, 12, 1937, 16, 679, 16, 13003, 33, 24, 16, 720, 67, 11767, 33, 24, 16, 4967, 33, 8381, 16, 10915, 33, 8381, 16, 2826, 25577, 4672, 3536, 10184, 279, 436, 17040, 316, 890, 40, 16, 598, 7888, 471, 8439, 13003, 18, 225, 12943, 30, 225, 300, 12176, 1937, 10335, 300, 326, 8435, 434, 326, 436, 17040, 16, 487, 279, 666, 16, 3193, 16, 578, 3806, 225, 300, 12176, 409, 10335, 300, 326, 679, 434, 326, 436, 17040, 16, 487, 279, 666, 16, 3193, 16, 578, 3806, 225, 300, 12176, 11767, 10335, 300, 261, 1886, 30, 1059, 13, 326, 1300, 434, 7888, 13003, 12188, 603, 326, 436, 17040, 225, 300, 12176, 1717, 67, 11767, 10335, 300, 261, 2 ]
isplot = re.compile(r'^[^%]*\\(?:side|full)?plot\*?\s*\{([^\}]+)')
isplot = re.compile(r'^[^%]*\\(?:side|full)?plot\*?\s*(?:\[[htbp]+\])\{([^\}]+)')
def dummy(target=None,source=None,env=None): tex = open(str(target[0]),'w') tex.write('%% This file is automatically generated. Do not edit!\n') user = commands.getoutput('whoami') name = string.split(commands.getoutput('finger -m ' + user),'\n').pop(0) real = re.match(r'^.*:\s*(.*)$',name) if real: name = real.group(1) else: name = 'Anonymous' tex.write('\\author{%s}\n' % name) tex.write('\\title{Dummy paper}\n\n\maketitle\n') dirold = '' for src in source: fig = str(src) plt = os.path.splitext(os.path.basename(fig))[0] plt2 = string.replace(plt,'_','\_') dir = os.path.split(os.path.split(fig)[0])[0] if dir != dirold: tex.write('\n\\section{%s}\n' % dir) tex.write('\\inputdir{%s}\n\n' % dir) dirold = dir tex.write('\\plot{%s}{width=\\textwidth}{%s/%s} ' % (plt,dir,plt2)) tex.write('\\clearpage\n') tex.close() return 0
5381a8c7972fea209b32eb3f89086bd59daa35cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3143/5381a8c7972fea209b32eb3f89086bd59daa35cf/rsftex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9609, 12, 3299, 33, 7036, 16, 3168, 33, 7036, 16, 3074, 33, 7036, 4672, 16573, 273, 1696, 12, 701, 12, 3299, 63, 20, 65, 3631, 11, 91, 6134, 16573, 18, 2626, 2668, 11438, 1220, 585, 353, 6635, 4374, 18, 2256, 486, 3874, 24440, 82, 6134, 729, 273, 4364, 18, 588, 2844, 2668, 3350, 83, 26223, 6134, 508, 273, 533, 18, 4939, 12, 7847, 18, 588, 2844, 2668, 74, 6658, 300, 81, 296, 397, 729, 3631, 8314, 82, 16063, 5120, 12, 20, 13, 2863, 273, 283, 18, 1916, 12, 86, 19856, 4509, 5581, 87, 14, 14361, 8, 2187, 529, 13, 309, 2863, 30, 508, 273, 2863, 18, 1655, 12, 21, 13, 469, 30, 508, 273, 296, 18792, 11, 16573, 18, 2626, 2668, 1695, 4161, 95, 9, 87, 6280, 82, 11, 738, 508, 13, 16573, 18, 2626, 2668, 1695, 2649, 95, 20094, 15181, 6280, 82, 64, 82, 64, 81, 581, 278, 1280, 64, 82, 6134, 4314, 922, 72, 273, 875, 364, 1705, 316, 1084, 30, 4291, 273, 609, 12, 4816, 13, 5451, 273, 1140, 18, 803, 18, 4939, 408, 12, 538, 18, 803, 18, 13909, 12, 470, 3719, 63, 20, 65, 5451, 22, 273, 533, 18, 2079, 12, 24339, 11189, 67, 2187, 8314, 4623, 13, 1577, 273, 1140, 18, 803, 18, 4939, 12, 538, 18, 803, 18, 4939, 12, 470, 25146, 20, 5717, 63, 20, 65, 309, 1577, 480, 4314, 922, 72, 30, 16573, 18, 2626, 2668, 64, 82, 1695, 3464, 95, 9, 87, 6280, 82, 11, 738, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9609, 12, 3299, 33, 7036, 16, 3168, 33, 7036, 16, 3074, 33, 7036, 4672, 16573, 273, 1696, 12, 701, 12, 3299, 63, 20, 65, 3631, 11, 91, 6134, 16573, 18, 2626, 2668, 11438, 1220, 585, 353, 6635, 4374, 18, 2256, 486, 3874, 24440, 82, 6134, 729, 273, 4364, 18, 588, 2844, 2668, 3350, 83, 26223, 6134, 508, 273, 533, 18, 4939, 12, 7847, 18, 588, 2844, 2668, 74, 6658, 300, 81, 296, 397, 729, 3631, 8314, 82, 16063, 5120, 12, 20, 13, 2863, 273, 283, 18, 1916, 12, 86, 19856, 4509, 5581, 87, 14, 14361, 8, 2187, 529, 13, 309, 2863, 30, 508, 273, 2863, 18, 1655, 12, 21, 13, 469, 30, 508, 273, 296, 18792, 11, 16573, 2 ]
ignore_blank_lines='-B' in diff_options, ignore_case='-i' in diff_options, ignore_space_changes='-b' in diff_options)
ignore_blank_lines='-B' in diff_options[1], ignore_case='-i' in diff_options[1], ignore_space_changes='-b' in diff_options[1])
def render_html(self, req, repos, chgset, diff_options): """HTML version""" req.hdf['title'] = '[%s]' % chgset.rev req.hdf['changeset'] = { 'revision': chgset.rev, 'time': time.strftime('%c', time.localtime(chgset.date)), 'author': util.escape(chgset.author or 'anonymous'), 'message': wiki_to_html(chgset.message or '--', self.env, req, escape_newlines=True) }
48c56ad401dad6fa254a7be7f860bb61cf7062f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/48c56ad401dad6fa254a7be7f860bb61cf7062f3/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 2620, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4870, 1177, 8395, 1111, 18, 26428, 3292, 2649, 3546, 273, 21848, 87, 3864, 738, 462, 75, 542, 18, 9083, 1111, 18, 26428, 3292, 6329, 278, 3546, 273, 288, 296, 13057, 4278, 462, 75, 542, 18, 9083, 16, 296, 957, 4278, 813, 18, 701, 9982, 29909, 71, 2187, 813, 18, 3729, 957, 12, 343, 75, 542, 18, 712, 13, 3631, 296, 4161, 4278, 1709, 18, 6939, 12, 343, 75, 542, 18, 4161, 578, 296, 19070, 19899, 296, 2150, 4278, 9050, 67, 869, 67, 2620, 12, 343, 75, 542, 18, 2150, 578, 3534, 2187, 365, 18, 3074, 16, 1111, 16, 4114, 67, 31276, 33, 5510, 13, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 2620, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4870, 1177, 8395, 1111, 18, 26428, 3292, 2649, 3546, 273, 21848, 87, 3864, 738, 462, 75, 542, 18, 9083, 1111, 18, 26428, 3292, 6329, 278, 3546, 273, 288, 296, 13057, 4278, 462, 75, 542, 18, 9083, 16, 296, 957, 4278, 813, 18, 701, 9982, 29909, 71, 2187, 813, 18, 3729, 957, 12, 343, 75, 542, 18, 712, 13, 3631, 296, 4161, 4278, 1709, 18, 6939, 12, 343, 75, 542, 18, 4161, 578, 296, 19070, 19899, 296, 2150, 4278, 9050, 67, 869, 67, 2620, 12, 343, 75, 542, 18, 2150, 578, 3534, 2187, 365, 18, 3074, 16, 1111, 16, 4114, 2 ]
return 1
return True
def allowance(self, filename): """Preconditions: - our agent applies to this entry - filename is URLdecoded""" for line in self.rulelines: _verbosedebug((filename, str(line), line.allowance)) if line.applies_to(filename): return line.allowance return 1
9f86ae009f1e74ee040c0d6e683bcba6894a674b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4845/9f86ae009f1e74ee040c0d6e683bcba6894a674b/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1699, 1359, 12, 2890, 16, 1544, 4672, 3536, 1386, 6381, 30, 300, 3134, 4040, 10294, 358, 333, 1241, 300, 1544, 353, 1976, 26646, 8395, 364, 980, 316, 365, 18, 86, 332, 14567, 30, 389, 11369, 4148, 12443, 3459, 16, 609, 12, 1369, 3631, 980, 18, 5965, 1359, 3719, 309, 980, 18, 438, 5259, 67, 869, 12, 3459, 4672, 327, 980, 18, 5965, 1359, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1699, 1359, 12, 2890, 16, 1544, 4672, 3536, 1386, 6381, 30, 300, 3134, 4040, 10294, 358, 333, 1241, 300, 1544, 353, 1976, 26646, 8395, 364, 980, 316, 365, 18, 86, 332, 14567, 30, 389, 11369, 4148, 12443, 3459, 16, 609, 12, 1369, 3631, 980, 18, 5965, 1359, 3719, 309, 980, 18, 438, 5259, 67, 869, 12, 3459, 4672, 327, 980, 18, 5965, 1359, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._addDebugInterestHistory("RESET", "", 0, 0, 0, [])
if __debug__: self._addDebugInterestHistory("RESET", "", 0, 0, 0, [])
def resetInterestStateForConnectionLoss(self): DoInterestManager._interests.clear() self._outstandingScopes = set() self._completeEventCount = ScratchPad(num=0) self._addDebugInterestHistory("RESET", "", 0, 0, 0, [])
b00eff64e06f6e95d740f7cb3c0a57b65dc26721 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/b00eff64e06f6e95d740f7cb3c0a57b65dc26721/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 29281, 1119, 1290, 1952, 20527, 12, 2890, 4672, 2256, 29281, 1318, 6315, 2761, 25563, 18, 8507, 1435, 365, 6315, 659, 15167, 12668, 273, 444, 1435, 365, 6315, 6226, 1133, 1380, 273, 2850, 86, 505, 14878, 12, 2107, 33, 20, 13, 365, 6315, 1289, 2829, 29281, 5623, 2932, 26665, 3113, 23453, 374, 16, 374, 16, 374, 16, 5378, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 29281, 1119, 1290, 1952, 20527, 12, 2890, 4672, 2256, 29281, 1318, 6315, 2761, 25563, 18, 8507, 1435, 365, 6315, 659, 15167, 12668, 273, 444, 1435, 365, 6315, 6226, 1133, 1380, 273, 2850, 86, 505, 14878, 12, 2107, 33, 20, 13, 365, 6315, 1289, 2829, 29281, 5623, 2932, 26665, 3113, 23453, 374, 16, 374, 16, 374, 16, 5378, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ci.append(-2.5, -2.0, 3.0) ci.append(-1.5, -2.0, 4.0) ci.append(1.5, -2.0, -3.0) ci.append(2.5, -2.0, 0.0)
ci.append((-2.5, -2.0, 3.0)) ci.append((-1.5, -2.0, 4.0)) ci.append((1.5, -2.0, -3.0)) ci.append((2.5, -2.0, 0.0))
def make_ctlpoints(): c = [] # ci = [] ci.append(-2.5, -3.7, 1.0) ci.append(-1.5, -3.7, 3.0) ci.append(1.5, -3.7, -2.5) ci.append(2.5, -3.7, -0.75) c.append(ci) # ci = [] ci.append(-2.5, -2.0, 3.0) ci.append(-1.5, -2.0, 4.0) ci.append(1.5, -2.0, -3.0) ci.append(2.5, -2.0, 0.0) c.append(ci) # ci = [] ci.append(-2.5, 2.0, 1.0) ci.append(-1.5, 2.0, 0.0) ci.append(1.5, 2.0, -1.0) ci.append(2.5, 2.0, 2.0) c.append(ci) # ci = [] ci.append(-2.5, 2.7, 1.25) ci.append(-1.5, 2.7, 0.1) ci.append(1.5, 2.7, -0.6) ci.append(2.5, 2.7, 0.2) c.append(ci) # return c
062c870df054eb11558984a420ed98a4052153ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/062c870df054eb11558984a420ed98a4052153ff/nurbs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 12930, 4139, 13332, 276, 273, 5378, 468, 9039, 273, 5378, 9039, 18, 6923, 19236, 22, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 404, 18, 20, 13, 9039, 18, 6923, 19236, 21, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 890, 18, 20, 13, 9039, 18, 6923, 12, 21, 18, 25, 16, 225, 300, 23, 18, 27, 16, 300, 22, 18, 25, 13, 9039, 18, 6923, 12, 22, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 300, 20, 18, 5877, 13, 276, 18, 6923, 12, 8450, 13, 468, 9039, 273, 5378, 9039, 18, 6923, 12443, 17, 22, 18, 25, 16, 225, 300, 22, 18, 20, 16, 225, 890, 18, 20, 3719, 9039, 18, 6923, 12443, 17, 21, 18, 25, 16, 225, 300, 22, 18, 20, 16, 225, 1059, 18, 20, 3719, 9039, 18, 6923, 12443, 21, 18, 25, 16, 225, 300, 22, 18, 20, 16, 225, 300, 23, 18, 20, 3719, 9039, 18, 6923, 12443, 22, 18, 25, 16, 225, 300, 22, 18, 20, 16, 225, 374, 18, 20, 3719, 276, 18, 6923, 12, 8450, 13, 468, 9039, 273, 5378, 9039, 18, 6923, 19236, 22, 18, 25, 16, 576, 18, 20, 16, 225, 404, 18, 20, 13, 9039, 18, 6923, 19236, 21, 18, 25, 16, 576, 18, 20, 16, 225, 374, 18, 20, 13, 9039, 18, 6923, 12, 21, 18, 25, 16, 225, 576, 18, 20, 16, 225, 300, 21, 18, 20, 13, 9039, 18, 6923, 12, 22, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 12930, 4139, 13332, 276, 273, 5378, 468, 9039, 273, 5378, 9039, 18, 6923, 19236, 22, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 404, 18, 20, 13, 9039, 18, 6923, 19236, 21, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 890, 18, 20, 13, 9039, 18, 6923, 12, 21, 18, 25, 16, 225, 300, 23, 18, 27, 16, 300, 22, 18, 25, 13, 9039, 18, 6923, 12, 22, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 300, 20, 18, 5877, 13, 276, 18, 6923, 12, 8450, 13, 468, 9039, 273, 5378, 9039, 18, 6923, 12443, 17, 22, 18, 25, 16, 225, 300, 22, 18, 20, 16, 225, 890, 18, 20, 2 ]
if type == 'head':
if tag_base == 'head':
def __init__(self,cp,dir='',type='plot'):
e7dc96264f8fa6761fca7488785053e6db4d6c14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/e7dc96264f8fa6761fca7488785053e6db4d6c14/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4057, 16, 1214, 2218, 2187, 723, 2218, 4032, 11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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4057, 16, 1214, 2218, 2187, 723, 2218, 4032, 11, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
wikipedia.output(u"Page [[%s]] not saved; sysop privileges required." % redir.title())
wikipedia.output( u"Page [[%s]] not saved; sysop privileges required." % redir.title())
def fix_1_double_redirect(self, redir_name): redir = wikipedia.Page(self.site, redir_name) # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir.title()) newRedir = redir redirList = [] # bookkeeping to detect loops while True: redirList.append(u'%s:%s' % (newRedir.site().lang, newRedir.sectionFreeTitle())) try: targetPage = newRedir.getRedirectTarget() except wikipedia.IsNotRedirectPage: if len(redirList) == 1: wikipedia.output(u'Skipping: Page %s is not a redirect.' % redir.aslink()) break #do nothing elif len(redirList) == 2: wikipedia.output( u'Skipping: Redirect target %s is not a redirect.' % newRedir.aslink()) break # do nothing except wikipedia.SectionError: wikipedia.output( u'Warning: Redirect target section %s doesn\'t exist.' % newRedir.aslink()) except wikipedia.BadTitle, e: # str(e) is in the format 'BadTitle: [[Foo]]' wikipedia.output( u'Warning: Redirect target %s is not a valid page title.' % str(e)[10:]) #sometimes this error occures. Invalid Title starting with a '#' except wikipedia.InvalidTitle, err: wikipedia.output(u'Warning: %s' % err) break except wikipedia.NoPage: if len(redirList) == 1: wikipedia.output(u'Skipping: Page %s does not exist.' % redir.aslink()) break else: if self.always: wikipedia.output( u"Skipping: Redirect target %s doesn't exist." % newRedir.aslink()) break # skip if automatic else: wikipedia.output( u"Warning: Redirect target %s doesn't exist." % newRedir.aslink()) except wikipedia.ServerError: wikipedia.output(u'Skipping: Server Error') break else: wikipedia.output( u' Links to: %s.' % targetPage.aslink()) if targetPage.site() != self.site: wikipedia.output(u'Warning: redirect target (%s) is on a different site.' % (targetPage.aslink())) if self.always: break # skip if automatic # watch out for redirect loops if redirList.count(u'%s:%s' % (targetPage.site().lang, targetPage.sectionFreeTitle()) ) > 0: wikipedia.output( u'Warning: Redirect target %s forms a redirect loop.' % targetPage.aslink()) break ###xqt doesn't work. edits twice! try: content = targetPage.get(get_redirect=True) except wikipedia.SectionError: content = wikipedia.Page( targetPage.site(), targetPage.sectionFreeTitle() ).get(get_redirect=True) if targetPage.site().lang in sd_template \ and targetPage.site().lang in sd_tagging_sum: wikipedia.output(u"Tagging redirect for deletion") # Delete the two redirects content = wikipedia.translate(targetPage.site().lang, sd_template)+"\n"+content summ = wikipedia.translate(targetPage.site().lang, sd_tagging_sum) targetPage.put(content, summ) redir.put(content, summ) else: break # TODO Better implement loop redirect else: newRedir = targetPage continue # try: oldText = redir.get(get_redirect=True) except wikipedia.BadTitle: wikipedia.output(u"Bad Title Error") break text = self.site.redirectRegex().sub( '#%s %s' % (self.site.redirect( True ), targetPage.aslink()), oldText) if text == oldText: break summary = wikipedia.translate(self.site, msg_double) % targetPage.aslink() wikipedia.showDiff(oldText, text) if self.prompt(u'Do you want to accept the changes?'): try: redir.put(text, summary) except wikipedia.LockedPage: wikipedia.output(u'%s is locked.' % redir.title()) except wikipedia.SpamfilterError, error: wikipedia.output(u"Saving page [[%s]] prevented by spam filter: %s" % (redir.title(), error.url)) except wikipedia.PageNotSaved, error: wikipedia.output(u"Saving page [[%s]] failed: %s" % (redir.title(), error)) except wikipedia.NoUsername: wikipedia.output(u"Page [[%s]] not saved; sysop privileges required." % redir.title()) except wikipedia.Error, error: wikipedia.output(u"Unexpected error occurred trying to save [[%s]]: %s" % (redir.title(), error)) break
c499f5c4d7eb66e6b361af0a88786c3f2ea91f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c499f5c4d7eb66e6b361af0a88786c3f2ea91f11/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 21, 67, 9056, 67, 7590, 12, 2890, 16, 225, 283, 1214, 67, 529, 4672, 283, 1214, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 283, 1214, 67, 529, 13, 468, 9674, 326, 2077, 434, 326, 1363, 732, 4565, 5960, 603, 18, 468, 31386, 326, 2077, 316, 5405, 1802, 18, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, 12688, 1802, 97, 9, 87, 64, 4630, 95, 1886, 97, 14360, 6, 738, 283, 1214, 18, 2649, 10756, 394, 3715, 481, 273, 283, 1214, 283, 1214, 682, 273, 5378, 225, 468, 6978, 10102, 310, 358, 5966, 14075, 1323, 1053, 30, 283, 1214, 682, 18, 6923, 12, 89, 11, 9, 87, 5319, 87, 11, 738, 261, 2704, 3715, 481, 18, 4256, 7675, 4936, 16, 394, 3715, 481, 18, 3464, 9194, 4247, 1435, 3719, 775, 30, 1018, 1964, 273, 394, 3715, 481, 18, 588, 5961, 2326, 1435, 1335, 21137, 18, 28041, 5961, 1964, 30, 309, 562, 12, 1118, 481, 682, 13, 422, 404, 30, 21137, 18, 2844, 12, 89, 11, 16877, 30, 3460, 738, 87, 353, 486, 279, 3136, 1093, 738, 283, 1214, 18, 345, 1232, 10756, 898, 225, 468, 2896, 5083, 1327, 562, 12, 1118, 481, 682, 13, 422, 576, 30, 21137, 18, 2844, 12, 582, 11, 16877, 30, 9942, 1018, 738, 87, 353, 486, 279, 3136, 1093, 738, 394, 3715, 481, 18, 345, 1232, 10756, 898, 225, 468, 741, 5083, 1335, 21137, 18, 5285, 668, 30, 21137, 18, 2844, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 21, 67, 9056, 67, 7590, 12, 2890, 16, 225, 283, 1214, 67, 529, 4672, 283, 1214, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 283, 1214, 67, 529, 13, 468, 9674, 326, 2077, 434, 326, 1363, 732, 4565, 5960, 603, 18, 468, 31386, 326, 2077, 316, 5405, 1802, 18, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, 12688, 1802, 97, 9, 87, 64, 4630, 95, 1886, 97, 14360, 6, 738, 283, 1214, 18, 2649, 10756, 394, 3715, 481, 273, 283, 1214, 283, 1214, 682, 273, 5378, 225, 468, 6978, 10102, 310, 358, 5966, 14075, 1323, 1053, 30, 283, 1214, 682, 18, 6923, 12, 89, 11, 9, 87, 5319, 87, 2 ]
if not hasattr(self, '_v_total'): self._v_total = 0
def catalog_object(self, obj, uid): """ wrapper around catalog """ if not hasattr(self, '_v_total'): self._v_total = 0 self._v_total = (self._v_total + self._catalog.catalogObject(obj, uid, self.threshold)) if self._v_total > self.threshold: get_transaction().commit(1) self._v_total = 0
8f1d78c8726f1c96d9a6e93168576401ed8a01fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8f1d78c8726f1c96d9a6e93168576401ed8a01fa/ZCatalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 67, 1612, 12, 2890, 16, 1081, 16, 4555, 4672, 3536, 4053, 6740, 6222, 3536, 365, 6315, 90, 67, 4963, 273, 261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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 67, 1612, 12, 2890, 16, 1081, 16, 4555, 4672, 3536, 4053, 6740, 6222, 3536, 365, 6315, 90, 67, 4963, 273, 261, 2890, 6315, 90, 67, 4963, 397, 365, 6315, 7199, 18, 7199, 921, 12, 2603, 16, 4555, 16, 365, 18, 8699, 3719, 225, 309, 365, 6315, 90, 67, 4963, 405, 365, 18, 8699, 30, 336, 67, 7958, 7675, 7371, 12, 21, 13, 365, 6315, 90, 67, 4963, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
`j_1\ge|m_1|`, `j_2\ge|m_2|`, `j_3\ge|m_3|`
`j_1 \ge |m_1|`, `j_2 \ge |m_2|`, `j_3 \ge |m_3|`
def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES:: sage: wigner_3j(2, 6, 4, 0, 0, 0) sqrt(5/143) sage: wigner_3j(2, 6, 4, 0, 0, 1) 0 sage: wigner_3j(0.5, 0.5, 1, 0.5, -0.5, 0) sqrt(1/6) sage: wigner_3j(40, 100, 60, -10, 60, -50) 95608/18702538494885*sqrt(21082735836735314343364163310/220491455010479533763) sage: wigner_3j(2500, 2500, 5000, 2488, 2400, -4888, prec=64) 7.60424456883448589e-12 It is an error to have arguments that are not integer or half integer values:: sage: wigner_3j(2.1, 6, 4, 0, 0, 0) Traceback (most recent call last): ... ValueError: j values must be integer or half integer sage: wigner_3j(2, 6, 4, 1, 0, -1.1) Traceback (most recent call last): ... ValueError: m values must be integer or half integer NOTES: The Wigner 3j symbol obeys the following symmetry rules: - invariant under any permutation of the columns (with the exception of a sign change where `J:=j_1+j_2+j_3`): .. math:: Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3) =Wigner3j(j_3,j_1,j_2,m_3,m_1,m_2) =Wigner3j(j_2,j_3,j_1,m_2,m_3,m_1) =(-1)^J Wigner3j(j_3,j_2,j_1,m_3,m_2,m_1) =(-1)^J Wigner3j(j_1,j_3,j_2,m_1,m_3,m_2) =(-1)^J Wigner3j(j_2,j_1,j_3,m_2,m_1,m_3) - invariant under space inflection, i. e. .. math:: Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3) =(-1)^J Wigner3j(j_1,j_2,j_3,-m_1,-m_2,-m_3) - symmetric with respect to the 72 additional symmetries based on the work by [Regge58] - zero for `j_1`, `j_2`, `j_3` not fulfilling triangle relation - zero for `m_1+m_2+m_3\neq 0` - zero for violating any one of the conditions `j_1\ge|m_1|`, `j_2\ge|m_2|`, `j_3\ge|m_3|` ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Regge58] 'Symmetry Properties of Clebsch-Gordan Coefficients', T. Regge, Nuovo Cimento, Volume 10, pp. 544 (1958) - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) AUTHORS: - Jens Rasch (2009-03-24): initial version """ if int(j_1 * 2) != j_1 * 2 or int(j_2 * 2) != j_2 * 2 or \ int(j_3 * 2) != j_3 * 2: raise ValueError("j values must be integer or half integer") if int(m_1 * 2) != m_1 * 2 or int(m_2 * 2) != m_2 * 2 or \ int(m_3 * 2) != m_3 * 2: raise ValueError("m values must be integer or half integer") if (m_1 + m_2 + m_3 <> 0): return 0 prefid = Integer((-1) ** (int(j_1 - j_2 - m_3))) m_3 = -m_3 a1 = j_1 + j_2 - j_3 if (a1 < 0): return 0 a2 = j_1 - j_2 + j_3 if (a2 < 0): return 0 a3 = -j_1 + j_2 + j_3 if (a3 < 0): return 0 if (abs(m_1) > j_1) or (abs(m_2) > j_2) or (abs(m_3) > j_3): return 0 maxfact = max(j_1 + j_2 + j_3 + 1, j_1 + abs(m_1), j_2 + abs(m_2), \ j_3 + abs(m_3)) _calc_factlist(maxfact) argsqrt = Integer(_Factlist[int(j_1 + j_2 - j_3)] * \ _Factlist[int(j_1 - j_2 + j_3)] * \ _Factlist[int(-j_1 + j_2 + j_3)] * \ _Factlist[int(j_1 - m_1)] * \ _Factlist[int(j_1 + m_1)] * \ _Factlist[int(j_2 - m_2)] * \ _Factlist[int(j_2 + m_2)] * \ _Factlist[int(j_3 - m_3)] * \ _Factlist[int(j_3 + m_3)]) / \ _Factlist[int(j_1 + j_2 + j_3 + 1)] ressqrt = argsqrt.sqrt(prec) if type(ressqrt) is ComplexNumber: ressqrt = ressqrt.real() imin = max(-j_3 + j_1 + m_2, -j_3 + j_2 - m_1, 0) imax = min(j_2 + m_2, j_1 - m_1, j_1 + j_2 - j_3) sumres = 0 for ii in range(imin, imax + 1): den = _Factlist[ii] * \ _Factlist[int(ii + j_3 - j_1 - m_2)] * \ _Factlist[int(j_2 + m_2 - ii)] * \ _Factlist[int(j_1 - ii - m_1)] * \ _Factlist[int(ii + j_3 - j_2 + m_1)] * \ _Factlist[int(j_1 + j_2 - j_3 - ii)] sumres = sumres + Integer((-1) ** ii) / den res = ressqrt * sumres * prefid return res
7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326, 678, 724, 264, 890, 78, 3273, 1375, 59, 724, 264, 23, 78, 12, 78, 67, 21, 16, 78, 67, 22, 16, 78, 67, 23, 16, 81, 67, 21, 16, 81, 67, 22, 16, 81, 67, 23, 13, 8338, 225, 12943, 30, 225, 300, 225, 12176, 78, 67, 21, 68, 9191, 12176, 78, 67, 22, 68, 9191, 12176, 78, 67, 23, 68, 9191, 12176, 81, 67, 21, 68, 9191, 12176, 81, 67, 22, 68, 9191, 12176, 81, 67, 23, 10335, 300, 3571, 578, 8816, 3571, 225, 300, 225, 12176, 4036, 10335, 300, 6039, 16, 805, 30, 599, 18, 1186, 1246, 310, 279, 6039, 848, 302, 354, 334, 6478, 8632, 731, 326, 11096, 18, 225, 11550, 30, 225, 436, 8371, 1300, 4124, 326, 8576, 1365, 434, 279, 436, 8371, 1300, 261, 430, 13382, 33, 7036, 3631, 578, 2863, 1300, 309, 279, 6039, 353, 864, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 341, 724, 264, 67, 23, 78, 12, 22, 16, 1666, 16, 1059, 16, 374, 16, 374, 16, 374, 13, 5700, 12, 25, 19, 28643, 13, 225, 272, 410, 30, 341, 724, 264, 67, 23, 78, 12, 22, 16, 1666, 16, 1059, 16, 374, 16, 374, 16, 404, 13, 374, 225, 272, 410, 30, 341, 724, 264, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326, 678, 724, 264, 890, 78, 3273, 1375, 59, 724, 264, 23, 78, 12, 78, 67, 21, 16, 78, 67, 22, 16, 78, 67, 23, 16, 81, 67, 21, 16, 81, 67, 22, 16, 81, 67, 23, 13, 8338, 225, 12943, 30, 225, 300, 225, 12176, 78, 67, 21, 68, 9191, 12176, 78, 67, 22, 68, 9191, 12176, 78, 67, 23, 68, 9191, 12176, 81, 67, 21, 68, 9191, 12176, 81, 67, 22, 68, 9191, 12176, 81, 67, 23, 10335, 2 ]
instanceCat.objectType = 'POINT'
def doOneCatalogType(self, catalogType, queryTypes, obsHistID): #nFN = self.getNextGoodFileNum() self.executionDBManager = jobDB.JobState() t0 = self.executionDBManager.getJobId()
fa2e63a27dcb0519a268db93e01ae343ce3245f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/fa2e63a27dcb0519a268db93e01ae343ce3245f5/jobAllocator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3335, 9769, 559, 12, 2890, 16, 6222, 559, 16, 843, 2016, 16, 7160, 8648, 734, 4672, 468, 82, 19793, 273, 365, 18, 588, 2134, 18195, 812, 2578, 1435, 365, 18, 16414, 2290, 1318, 273, 1719, 2290, 18, 2278, 1119, 1435, 268, 20, 273, 365, 18, 16414, 2290, 1318, 18, 588, 23378, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3335, 9769, 559, 12, 2890, 16, 6222, 559, 16, 843, 2016, 16, 7160, 8648, 734, 4672, 468, 82, 19793, 273, 365, 18, 588, 2134, 18195, 812, 2578, 1435, 365, 18, 16414, 2290, 1318, 273, 1719, 2290, 18, 2278, 1119, 1435, 268, 20, 273, 365, 18, 16414, 2290, 1318, 18, 588, 23378, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return S_OK( value )
return S_OK( value.replace( '"', "'" ) )
def cleanValue( value ): value = value.strip() if value[0] == '"': entries = [] iPos = 1 current = "" state = "in" while iPos < len( value ): if value[ iPos ] == '"': if state == "in": entries.append( current ) current = "" state = "out" elif state == "out": current = current.strip() if current not in ( ",", ): return S_ERROR( "value seems a list but is not separated in commas" ) current = "" state = "in" else: current += value[ iPos ] iPos += 1 if state == "in": return S_ERROR( 'value is opened with " but is not closed' ) return S_OK( ", ".join ( entries ) ) else: return S_OK( value )
e3debe1437d39b0821106c971059c340c16c7e1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/e3debe1437d39b0821106c971059c340c16c7e1f/JDL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 620, 12, 460, 262, 30, 460, 273, 460, 18, 6406, 1435, 309, 460, 63, 20, 65, 422, 2119, 4278, 3222, 273, 5378, 277, 1616, 273, 404, 783, 273, 1408, 919, 273, 315, 267, 6, 1323, 277, 1616, 411, 562, 12, 460, 262, 30, 309, 460, 63, 277, 1616, 308, 422, 2119, 4278, 309, 919, 422, 315, 267, 6877, 3222, 18, 6923, 12, 783, 262, 783, 273, 1408, 919, 273, 315, 659, 6, 1327, 919, 422, 315, 659, 6877, 783, 273, 783, 18, 6406, 1435, 309, 783, 486, 316, 261, 3104, 3113, 262, 30, 327, 348, 67, 3589, 12, 315, 1132, 12001, 279, 666, 1496, 353, 486, 8936, 316, 23528, 6, 262, 783, 273, 1408, 919, 273, 315, 267, 6, 469, 30, 783, 1011, 460, 63, 277, 1616, 308, 277, 1616, 1011, 404, 309, 919, 422, 315, 267, 6877, 327, 348, 67, 3589, 12, 296, 1132, 353, 10191, 598, 315, 1496, 353, 486, 4375, 11, 262, 327, 348, 67, 3141, 12, 3104, 3552, 5701, 261, 3222, 262, 262, 469, 30, 327, 348, 67, 3141, 12, 460, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 620, 12, 460, 262, 30, 460, 273, 460, 18, 6406, 1435, 309, 460, 63, 20, 65, 422, 2119, 4278, 3222, 273, 5378, 277, 1616, 273, 404, 783, 273, 1408, 919, 273, 315, 267, 6, 1323, 277, 1616, 411, 562, 12, 460, 262, 30, 309, 460, 63, 277, 1616, 308, 422, 2119, 4278, 309, 919, 422, 315, 267, 6877, 3222, 18, 6923, 12, 783, 262, 783, 273, 1408, 919, 273, 315, 659, 6, 1327, 919, 422, 315, 659, 6877, 783, 273, 783, 18, 6406, 1435, 309, 783, 486, 316, 261, 3104, 3113, 262, 30, 327, 348, 67, 3589, 12, 315, 1132, 12001, 279, 666, 1496, 353, 486, 8936, 316, 23528, 6, 262, 783, 273, 1408, 919, 273, 315, 2 ]
def get_lastversion_of_many( klas, query, obj_id =(),
get_lastversion_of_many( klas, query, obj_id =(),
def get_lastversion_of_many( klas, query, obj_id =(), time =None, with_disabled =False, **setup_kargs):
0fb92a565349623415ef0fae2cfa4ab7c1f0d6c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/0fb92a565349623415ef0fae2cfa4ab7c1f0d6c3/timed_sa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 336, 67, 2722, 1589, 67, 792, 67, 9353, 12, 417, 9521, 16, 843, 16, 1081, 67, 350, 273, 9334, 813, 273, 7036, 16, 598, 67, 9278, 273, 8381, 16, 2826, 8401, 67, 79, 1968, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 336, 67, 2722, 1589, 67, 792, 67, 9353, 12, 417, 9521, 16, 843, 16, 1081, 67, 350, 273, 9334, 813, 273, 7036, 16, 598, 67, 9278, 273, 8381, 16, 2826, 8401, 67, 79, 1968, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.form_result.get('result'):
if self.form_result.get('result')!='all':
def votes(self, id, format='html'): c.poll = get_entity_or_abort(model.Poll, id) require.poll.show(c.poll) decisions = democracy.Decision.for_poll(c.poll) if self.form_result.get('result'): decisions = filter(lambda d: d.result == self.form_result.get('result'), decisions) c.decisions_pager = pager.scope_decisions(decisions) if format == 'json': return render_json(c.decisions_pager) return render("/poll/votes.html")
80b37c5a0b52af03e4b3cee25048458198c4c587 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/80b37c5a0b52af03e4b3cee25048458198c4c587/poll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19588, 12, 2890, 16, 612, 16, 740, 2218, 2620, 11, 4672, 276, 18, 13835, 273, 336, 67, 1096, 67, 280, 67, 18623, 12, 2284, 18, 19085, 16, 612, 13, 2583, 18, 13835, 18, 4500, 12, 71, 18, 13835, 13, 2109, 12682, 273, 9626, 504, 354, 2431, 18, 15861, 18, 1884, 67, 13835, 12, 71, 18, 13835, 13, 309, 365, 18, 687, 67, 2088, 18, 588, 2668, 2088, 6134, 5, 2218, 454, 4278, 2109, 12682, 273, 1034, 12, 14661, 302, 30, 302, 18, 2088, 422, 365, 18, 687, 67, 2088, 18, 588, 2668, 2088, 19899, 2109, 12682, 13, 276, 18, 4924, 12682, 67, 24081, 273, 12679, 18, 4887, 67, 4924, 12682, 12, 4924, 12682, 13, 225, 309, 740, 422, 296, 1977, 4278, 327, 1743, 67, 1977, 12, 71, 18, 4924, 12682, 67, 24081, 13, 225, 327, 1743, 2932, 19, 13835, 19, 27800, 18, 2620, 7923, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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13835, 13, 2109, 12682, 273, 9626, 504, 354, 2431, 18, 15861, 18, 1884, 67, 13835, 12, 71, 18, 13835, 13, 309, 365, 18, 687, 67, 2088, 18, 588, 2668, 2088, 6134, 5, 2218, 454, 4278, 2109, 12682, 273, 1034, 12, 14661, 302, 30, 302, 18, 2088, 422, 365, 18, 687, 67, 2088, 18, 588, 2668, 2088, 19899, 2109, 12682, 13, 276, 18, 4924, 12682, 67, 24081, 273, 12679, 18, 4887, 67, 4924, 12682, 12, 4924, 12682, 13, 225, 309, 740, 422, 2 ]
log(log.Info, "serial", "Device started, serial interface running.")
log(Log.Info, "serial", "Device started, serial interface running.")
def start(self): self._handler.start() log(log.Info, "serial", "Device started, serial interface running.")
94e8bb1bfc2a5fb9fcdfdd72fe0ce6487e350736 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12317/94e8bb1bfc2a5fb9fcdfdd72fe0ce6487e350736/Serial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 6315, 4176, 18, 1937, 1435, 613, 12, 1330, 18, 966, 16, 315, 8818, 3113, 315, 3654, 5746, 16, 2734, 1560, 3549, 1199, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 6315, 4176, 18, 1937, 1435, 613, 12, 1330, 18, 966, 16, 315, 8818, 3113, 315, 3654, 5746, 16, 2734, 1560, 3549, 1199, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return GetData( lang, params ) def GetLinks( lang, titles, extraParams = None ):
return GetData(site, params ) def GetLinks(site, titles, extraParams = None ):
def GetInterwikies( lang, titles, extraParams = None ): """ Usage example: data = GetInterwikies('ru','user:yurik') titles may be either ane title (as a string), or a list of strings extraParams if given must be a dict() as taken by GetData() """ params = {'titles':ListToParam(titles), 'what' : 'redirects|langlinks'} params = CombineParams( params, extraParams ) return GetData( lang, params )
3524e338086618d1dabcda0ee7578a46a28e59e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/3524e338086618d1dabcda0ee7578a46a28e59e3/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2465, 11999, 606, 12, 3303, 16, 14693, 16, 2870, 1370, 273, 599, 262, 30, 3536, 10858, 3454, 30, 501, 273, 968, 2465, 11999, 606, 2668, 8653, 17023, 1355, 30, 93, 1650, 79, 6134, 14693, 2026, 506, 3344, 392, 73, 2077, 261, 345, 279, 533, 3631, 578, 279, 666, 434, 2064, 2870, 1370, 309, 864, 1297, 506, 279, 2065, 1435, 487, 9830, 635, 30837, 1435, 3536, 225, 859, 273, 13666, 17643, 4278, 682, 774, 786, 12, 17643, 3631, 296, 23770, 11, 294, 296,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2465, 11999, 606, 12, 3303, 16, 14693, 16, 2870, 1370, 273, 599, 262, 30, 3536, 10858, 3454, 30, 501, 273, 968, 2465, 11999, 606, 2668, 8653, 17023, 1355, 30, 93, 1650, 79, 6134, 14693, 2026, 506, 3344, 392, 73, 2077, 261, 345, 279, 533, 3631, 578, 279, 666, 434, 2064, 2870, 1370, 309, 864, 1297, 506, 279, 2065, 1435, 487, 9830, 635, 30837, 1435, 3536, 225, 859, 273, 13666, 17643, 4278, 682, 774, 786, 12, 17643, 3631, 296, 23770, 11, 294, 296, 22715, 96, 4936, 7135, 11, 97, 859, 273, 23949, 1370, 12, 859, 16, 2870, 1370, 262, 327, 30837, 12, 3303, 16, 859, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cursor = self.db.execute("select * from runs")
cursor = self.db.db.execute("select * from runs")
def execute_magic(self, cmdline): cmd_end = cmdline.find(" ") if cmd_end == -1: cmd = cmdline[1:] args = "" else: cmd = cmdline[1:cmd_end] args = cmdline[cmd_end+1:]
c57cb376e1a7288e570db78785f22bfcb199fdcf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12871/c57cb376e1a7288e570db78785f22bfcb199fdcf/runalyzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 11179, 12, 2890, 16, 22877, 4672, 1797, 67, 409, 273, 22877, 18, 4720, 2932, 9369, 309, 1797, 67, 409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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 11179, 12, 2890, 16, 22877, 4672, 1797, 67, 409, 273, 22877, 18, 4720, 2932, 9369, 309, 1797, 67, 409, 422, 300, 21, 30, 1797, 273, 22877, 63, 21, 26894, 833, 273, 1408, 469, 30, 1797, 273, 22877, 63, 21, 30, 4172, 67, 409, 65, 833, 273, 22877, 63, 4172, 67, 409, 15, 21, 26894, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
items[url_unquote_plus(key)] = value
key = url_unquote_plus(key) try: key = str(key) except UnicodeError: pass items[key] = value
def unserialize(cls, string, secret_key): """Load the secure cookie from a serialized string.""" if isinstance(string, unicode): string = string.encode('utf-8', 'ignore') salt = string[:4] try: base64_hash, data = string[4:].split('?', 1) except (ValueError, IndexError): items = () else: items = {} hash = sha1(secret_key + salt) for item in data.split('&'): hash.update('|' + item) if not '=' in item: items = None break key, value = item.split('=', 1) items[url_unquote_plus(key)] = value
84eabcaa81f60d47939ac2d43f01d01eeab598a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/84eabcaa81f60d47939ac2d43f01d01eeab598a4/securecookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10954, 12, 6429, 16, 533, 16, 4001, 67, 856, 4672, 3536, 2563, 326, 8177, 3878, 628, 279, 5343, 533, 12123, 309, 1549, 12, 1080, 16, 5252, 4672, 533, 273, 533, 18, 3015, 2668, 3158, 17, 28, 2187, 296, 6185, 6134, 4286, 273, 533, 10531, 24, 65, 775, 30, 1026, 1105, 67, 2816, 16, 501, 273, 533, 63, 24, 30, 8009, 4939, 2668, 35, 2187, 404, 13, 1335, 261, 23610, 16, 10195, 4672, 1516, 273, 1832, 469, 30, 1516, 273, 2618, 1651, 273, 6056, 21, 12, 5875, 67, 856, 397, 4286, 13, 364, 761, 316, 501, 18, 4939, 2668, 26045, 4672, 1651, 18, 2725, 2668, 16637, 397, 761, 13, 309, 486, 5214, 316, 761, 30, 1516, 273, 599, 898, 498, 16, 460, 273, 761, 18, 4939, 2668, 33, 2187, 404, 13, 1516, 63, 718, 67, 318, 6889, 67, 10103, 12, 856, 25887, 273, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10954, 12, 6429, 16, 533, 16, 4001, 67, 856, 4672, 3536, 2563, 326, 8177, 3878, 628, 279, 5343, 533, 12123, 309, 1549, 12, 1080, 16, 5252, 4672, 533, 273, 533, 18, 3015, 2668, 3158, 17, 28, 2187, 296, 6185, 6134, 4286, 273, 533, 10531, 24, 65, 775, 30, 1026, 1105, 67, 2816, 16, 501, 273, 533, 63, 24, 30, 8009, 4939, 2668, 35, 2187, 404, 13, 1335, 261, 23610, 16, 10195, 4672, 1516, 273, 1832, 469, 30, 1516, 273, 2618, 1651, 273, 6056, 21, 12, 5875, 67, 856, 397, 4286, 13, 364, 761, 316, 501, 18, 4939, 2668, 26045, 4672, 1651, 18, 2725, 2668, 16637, 397, 761, 13, 309, 486, 5214, 316, 761, 30, 1516, 273, 599, 898, 2 ]
if self.elementInScope("tbody", True) or \ self.elementInScope("thead", True) or \ self.elementInScope("tfoot", True):
if self.parser.elementInScope("tbody", True) or \ self.parser.elementInScope("thead", True) or \ self.parser.elementInScope("tfoot", True):
def startTagTableOther(self, name, attributes): # XXX AT Any ideas on how to share this with endTagTable? if self.elementInScope("tbody", True) or \ self.elementInScope("thead", True) or \ self.elementInScope("tfoot", True): self.clearStackToTableBodyContext() self.endTagTableRowGroup(self.parser.openElements[-1]) else: # innerHTML case self.parser.parseError()
ff3cb9ccd4f2187f0dd0c5d17a8a5955ca4fc12f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/ff3cb9ccd4f2187f0dd0c5d17a8a5955ca4fc12f/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 468, 11329, 14464, 5502, 10572, 345, 603, 3661, 358, 7433, 333, 598, 29765, 1388, 35, 309, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 20779, 3113, 1053, 13, 578, 521, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 24604, 3113, 1053, 13, 578, 521, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 88, 10923, 3113, 1053, 4672, 365, 18, 8507, 2624, 774, 1388, 2250, 1042, 1435, 365, 18, 409, 1805, 30650, 1114, 12, 2890, 18, 4288, 18, 3190, 3471, 18919, 21, 5717, 469, 30, 468, 14129, 648, 365, 18, 4288, 18, 2670, 668, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 468, 11329, 14464, 5502, 10572, 345, 603, 3661, 358, 7433, 333, 598, 29765, 1388, 35, 309, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 20779, 3113, 1053, 13, 578, 521, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 24604, 3113, 1053, 13, 578, 521, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 88, 10923, 3113, 1053, 4672, 365, 18, 8507, 2624, 774, 1388, 2250, 1042, 1435, 365, 18, 409, 1805, 30650, 1114, 12, 2890, 18, 4288, 18, 3190, 3471, 18919, 21, 5717, 469, 30, 468, 14129, 648, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
h = self.__get_font_height(style_name) y += h * 0.15
def __draw_box(self, text, color, color_count, generation, top, height):
cf7685d3510e0a8311694f7721ff3f1b53e4d250 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/cf7685d3510e0a8311694f7721ff3f1b53e4d250/FamilyTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9446, 67, 2147, 12, 2890, 16, 977, 16, 2036, 16, 2036, 67, 1883, 16, 9377, 16, 1760, 16, 2072, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9446, 67, 2147, 12, 2890, 16, 977, 16, 2036, 16, 2036, 67, 1883, 16, 9377, 16, 1760, 16, 2072, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for m_unused in range(wcourse.moves):
look = wcourse.moves while look > 0: look -= 1
def warp(wcourse, involuntary): "ove under warp drive." blooey = False; twarp = False if not involuntary: # Not WARPX entry game.ididit = False if game.damage[DWARPEN] > 10.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"The warp engines are damaged, Sir.\"")) return if damaged(DWARPEN) and game.warpfac > 4.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"Sorry, Captain. Until this damage")) prout(_(" is repaired, I can only give you warp 4.\"")) return # Read in course and distance if wcourse==None: try: wcourse = getcourse(isprobe=False) except TrekError: return # Make sure starship has enough energy for the trip # Note: this formula is slightly different from the C version, # and lets you skate a bit closer to the edge. if wcourse.power(game.warpfac) >= game.energy: # Insufficient power for trip game.ididit = False skip(1) prout(_("Engineering to bridge--")) if not game.shldup or 0.5*wcourse.power(game.warpfac) > game.energy: iwarp = (game.energy/(wcourse.dist+0.05)) ** 0.333333333 if iwarp <= 0: prout(_("We can't do it, Captain. We don't have enough energy.")) else: proutn(_("We don't have enough energy, but we could do it at warp %d") % iwarp) if game.shldup: prout(",") prout(_("if you'll lower the shields.")) else: prout(".") else: prout(_("We haven't the energy to go that far with the shields up.")) return # Make sure enough time is left for the trip game.optime = wcourse.time(game.warpfac) if game.optime >= 0.8*game.state.remtime: skip(1) prout(_("First Officer Spock- \"Captain, I compute that such")) proutn(_(" a trip would require approximately %2.0f") % (100.0*game.optime/game.state.remtime)) prout(_(" percent of our")) proutn(_(" remaining time. Are you sure this is wise?\" ")) if not ja(): game.ididit = False game.optime=0 return # Entry WARPX if game.warpfac > 6.0: # Decide if engine damage will occur # ESR: Seems wrong. Probability of damage goes *down* with distance? prob = wcourse.distance*(6.0-game.warpfac)**2/66.666666666 if prob > randreal(): blooey = True wcourse.distance = randreal(wcourse.distance) # Decide if time warp will occur if 0.5*wcourse.distance*math.pow(7.0,game.warpfac-10.0) > randreal(): twarp = True if game.idebug and game.warpfac==10 and not twarp: blooey = False proutn("=== Force time warp? ") if ja(): twarp = True if blooey or twarp: # If time warp or engine damage, check path # If it is obstructed, don't do warp or damage for m_unused in range(wcourse.moves): wcourse.next() w = wcourse.sector() if not w.valid_sector(): break if game.quad[w.i][w.j] != '.': blooey = False twarp = False wcourse.reset() # Activate Warp Engines and pay the cost imove(course, noattack=False) if game.alldone: return game.energy -= wcourse.power(game.warpfac) if game.energy <= 0: finish(FNRG) game.optime = wcourse.time(game.warpfac) if twarp: timwrp() if blooey: game.damage[DWARPEN] = game.damfac * randreal(1.0, 4.0) skip(1) prout(_("Engineering to bridge--")) prout(_(" Scott here. The warp engines are damaged.")) prout(_(" We'll have to reduce speed to warp 4.")) game.ididit = True return
65ebc303124b932f39a34d20faaa702d07854b82 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/65ebc303124b932f39a34d20faaa702d07854b82/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 11441, 12, 91, 5566, 16, 29876, 10032, 814, 4672, 315, 841, 3613, 341, 11441, 14316, 1199, 324, 383, 83, 402, 273, 1083, 31, 268, 905, 84, 273, 1083, 309, 486, 29876, 10032, 814, 30, 468, 2288, 678, 985, 52, 60, 1241, 7920, 18, 350, 350, 305, 273, 1083, 309, 7920, 18, 72, 301, 410, 63, 40, 16777, 52, 1157, 65, 405, 1728, 18, 20, 30, 7683, 18, 343, 359, 1435, 2488, 12, 21, 13, 450, 322, 24899, 2932, 4410, 264, 2850, 352, 88, 17, 1239, 1986, 341, 11441, 20504, 854, 302, 301, 11349, 16, 348, 481, 18, 8530, 3719, 327, 309, 302, 301, 11349, 12, 40, 16777, 52, 1157, 13, 471, 7920, 18, 905, 84, 11639, 405, 1059, 18, 20, 30, 7683, 18, 343, 359, 1435, 2488, 12, 21, 13, 450, 322, 24899, 2932, 4410, 264, 2850, 352, 88, 17, 1239, 28898, 16, 385, 1657, 530, 18, 30608, 333, 302, 301, 410, 6, 3719, 450, 322, 24899, 2932, 225, 353, 2071, 69, 2921, 16, 467, 848, 1338, 8492, 1846, 341, 11441, 1059, 18, 8530, 3719, 327, 468, 2720, 316, 4362, 471, 3888, 309, 341, 5566, 631, 7036, 30, 775, 30, 341, 5566, 273, 336, 5566, 12, 291, 27230, 33, 8381, 13, 1335, 399, 266, 79, 668, 30, 327, 468, 4344, 3071, 384, 976, 625, 711, 7304, 12929, 364, 326, 20654, 468, 3609, 30, 333, 8013, 353, 21980, 3775, 628, 326, 385, 1177, 16, 468, 471, 14557, 1846, 4343, 340, 279, 2831, 13306, 358, 326, 3591, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 11441, 12, 91, 5566, 16, 29876, 10032, 814, 4672, 315, 841, 3613, 341, 11441, 14316, 1199, 324, 383, 83, 402, 273, 1083, 31, 268, 905, 84, 273, 1083, 309, 486, 29876, 10032, 814, 30, 468, 2288, 678, 985, 52, 60, 1241, 7920, 18, 350, 350, 305, 273, 1083, 309, 7920, 18, 72, 301, 410, 63, 40, 16777, 52, 1157, 65, 405, 1728, 18, 20, 30, 7683, 18, 343, 359, 1435, 2488, 12, 21, 13, 450, 322, 24899, 2932, 4410, 264, 2850, 352, 88, 17, 1239, 1986, 341, 11441, 20504, 854, 302, 301, 11349, 16, 348, 481, 18, 8530, 3719, 327, 309, 302, 301, 11349, 12, 40, 16777, 52, 1157, 13, 471, 7920, 18, 905, 84, 11639, 405, 2 ]
atts['height'] = int(round(atts['height'] * (float(atts['scale']) / 100))) del atts['scale'] if not atts.has_key('alt'): atts['alt'] = atts['src'] if atts.has_key('align'): atts['align'] = self.attval(atts['align'])
atts['height'] = int(round(node['height'] * (float(node['scale']) / 100))) atts['alt'] = node.get('alt', atts['src']) if node.has_key('align'): atts['align'] = self.attval(node['align'])
def visit_image(self, node): atts = node.non_default_attributes() if atts.has_key('classes'): del atts['classes'] # prevent duplication with node attrs atts['src'] = atts['uri'] del atts['uri'] if atts.has_key('scale'): if Image and not (atts.has_key('width') and atts.has_key('height')): try: im = Image.open(str(atts['src'])) except (IOError, # Source image can't be found or opened UnicodeError): # PIL doesn't like Unicode paths. pass else: if not atts.has_key('width'): atts['width'] = im.size[0] if not atts.has_key('height'): atts['height'] = im.size[1] del im if atts.has_key('width'): atts['width'] = int(round(atts['width'] * (float(atts['scale']) / 100))) if atts.has_key('height'): atts['height'] = int(round(atts['height'] * (float(atts['scale']) / 100))) del atts['scale'] if not atts.has_key('alt'): atts['alt'] = atts['src'] if atts.has_key('align'): atts['align'] = self.attval(atts['align']) atts['class'] = 'align-%s' % atts['align'] if (isinstance(node.parent, nodes.TextElement) or (isinstance(node.parent, nodes.reference) and not isinstance(node.parent.parent, nodes.TextElement))): # Inline context or surrounded by <a>...</a>. suffix = '' else: suffix = '\n' self.body.append(self.emptytag(node, 'img', suffix, **atts))
c07247e46b1ef1b8fc4ea67029910a77e04b2ae7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/c07247e46b1ef1b8fc4ea67029910a77e04b2ae7/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 15687, 273, 756, 18, 5836, 67, 1886, 67, 4350, 1435, 309, 15687, 18, 5332, 67, 856, 2668, 4701, 11, 4672, 1464, 15687, 3292, 4701, 3546, 540, 468, 5309, 31201, 598, 756, 3422, 15687, 3292, 4816, 3546, 273, 15687, 3292, 1650, 3546, 1464, 15687, 3292, 1650, 3546, 309, 15687, 18, 5332, 67, 856, 2668, 5864, 11, 4672, 309, 3421, 471, 486, 261, 270, 3428, 18, 5332, 67, 856, 2668, 2819, 6134, 471, 15687, 18, 5332, 67, 856, 2668, 4210, 26112, 30, 775, 30, 709, 273, 3421, 18, 3190, 12, 701, 12, 270, 3428, 3292, 4816, 3546, 3719, 1335, 261, 4294, 668, 16, 468, 4998, 1316, 848, 1404, 506, 1392, 578, 10191, 9633, 668, 4672, 225, 468, 29407, 3302, 1404, 3007, 9633, 2953, 18, 1342, 469, 30, 309, 486, 15687, 18, 5332, 67, 856, 2668, 2819, 11, 4672, 15687, 3292, 2819, 3546, 273, 709, 18, 1467, 63, 20, 65, 309, 486, 15687, 18, 5332, 67, 856, 2668, 4210, 11, 4672, 15687, 3292, 4210, 3546, 273, 709, 18, 1467, 63, 21, 65, 1464, 709, 309, 15687, 18, 5332, 67, 856, 2668, 2819, 11, 4672, 15687, 3292, 2819, 3546, 273, 509, 12, 2260, 12, 270, 3428, 3292, 2819, 3546, 380, 261, 5659, 12, 270, 3428, 3292, 5864, 19486, 342, 2130, 20349, 309, 15687, 18, 5332, 67, 856, 2668, 4210, 11, 4672, 15687, 3292, 4210, 3546, 273, 509, 12, 2260, 12, 2159, 3292, 4210, 3546, 380, 261, 5659, 12, 2159, 3292, 5864, 19486, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 15687, 273, 756, 18, 5836, 67, 1886, 67, 4350, 1435, 309, 15687, 18, 5332, 67, 856, 2668, 4701, 11, 4672, 1464, 15687, 3292, 4701, 3546, 540, 468, 5309, 31201, 598, 756, 3422, 15687, 3292, 4816, 3546, 273, 15687, 3292, 1650, 3546, 1464, 15687, 3292, 1650, 3546, 309, 15687, 18, 5332, 67, 856, 2668, 5864, 11, 4672, 309, 3421, 471, 486, 261, 270, 3428, 18, 5332, 67, 856, 2668, 2819, 6134, 471, 15687, 18, 5332, 67, 856, 2668, 4210, 26112, 30, 775, 30, 709, 273, 3421, 18, 3190, 12, 701, 12, 270, 3428, 3292, 4816, 3546, 3719, 1335, 261, 4294, 668, 16, 468, 4998, 1316, 848, 1404, 506, 1392, 578, 10191, 2 ]
if _debug: print "\t%s: Called Camera.setAzimuth()" % rendererName
debugMsg("Called Camera.setAzimuth()")
def setAzimuth(self,azimuth): """ Set the azimuthal angle (in degrees) of the Camera
9eafeed6682cc7693274ff2418342722b828961f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/9eafeed6682cc7693274ff2418342722b828961f/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 37, 94, 15968, 12, 2890, 16, 28306, 4672, 3536, 1000, 326, 23090, 287, 5291, 261, 267, 10904, 13, 434, 326, 30355, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 37, 94, 15968, 12, 2890, 16, 28306, 4672, 3536, 1000, 326, 23090, 287, 5291, 261, 267, 10904, 13, 434, 326, 30355, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.create_boot_floppy() if self.tftp_root: self.setup_pxe_boot()
print " url: " + str(self.url) print " kernel: " + str(self.kernel) print " initrd: " + str(self.initrd) print " nfs_server: " + str(self.nfs_server) print " nfs_dir: " + str(self.nfs_dir) print " nfs_mount: " + str(self.nfs_mount) if self.unattended_file and self.floppy_img is not None: self.create_boot_floppy() if self.medium == "cdrom": if self.tftp_root: self.setup_pxe_boot() elif self.medium == "url": self.setup_url() elif self.medium == "nfs": self.setup_nfs() else: raise SetupError("Unexpected installation method %s" % self.medium)
def setup(self): print "Starting unattended install setup"
5d9aab674ce465a9ce3a7a478b717edacff93a86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/5d9aab674ce465a9ce3a7a478b717edacff93a86/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 1172, 315, 11715, 640, 270, 8140, 3799, 3875, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self.where(pred).singleordefault(default=default)
return self.where(pred).single_or_default(default=default)
def singleordefault(self, pred=None, default=None): if pred: return self.where(pred).singleordefault(default=default) else: result = no_result = object() i = iter(self) try: result = i.next() except StopIteration: return default try: i.next() raise ValueError('Sequence contains more than one item') except StopIteration: return result
f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2202, 280, 1886, 12, 2890, 16, 3479, 33, 7036, 16, 805, 33, 7036, 4672, 309, 3479, 30, 327, 365, 18, 6051, 12, 6510, 2934, 7526, 67, 280, 67, 1886, 12, 1886, 33, 1886, 13, 469, 30, 563, 273, 1158, 67, 2088, 273, 733, 1435, 277, 273, 1400, 12, 2890, 13, 775, 30, 563, 273, 277, 18, 4285, 1435, 1335, 16179, 30, 327, 805, 775, 30, 277, 18, 4285, 1435, 1002, 2068, 2668, 4021, 1914, 1898, 2353, 1245, 761, 6134, 1335, 16179, 30, 327, 563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2202, 280, 1886, 12, 2890, 16, 3479, 33, 7036, 16, 805, 33, 7036, 4672, 309, 3479, 30, 327, 365, 18, 6051, 12, 6510, 2934, 7526, 67, 280, 67, 1886, 12, 1886, 33, 1886, 13, 469, 30, 563, 273, 1158, 67, 2088, 273, 733, 1435, 277, 273, 1400, 12, 2890, 13, 775, 30, 563, 273, 277, 18, 4285, 1435, 1335, 16179, 30, 327, 805, 775, 30, 277, 18, 4285, 1435, 1002, 2068, 2668, 4021, 1914, 1898, 2353, 1245, 761, 6134, 1335, 16179, 30, 327, 563, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
content=content, atom_id=atom_id, link=link, published=published, title=title, updated=updated)
content=content, atom_id=atom_id, link=link, published=published, title=title, updated=updated, text=None)
def __init__(self, author=None, category=None, content=None, atom_id=None, link=None, published=None, title=None, updated=None, color=None, access_level=None, hidden=None, timezone=None, text=None,extension_elements=None, extension_attributes=None): gdata.GDataEntry.__init__(self, author=author, category=category, content=content, atom_id=atom_id, link=link, published=published, title=title, updated=updated)
0ba6315ab8118b874d87e51c8f024bfc6f59e8a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/0ba6315ab8118b874d87e51c8f024bfc6f59e8a9/gcalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2869, 33, 7036, 16, 3150, 33, 7036, 16, 913, 33, 7036, 16, 3179, 67, 350, 33, 7036, 16, 1692, 33, 7036, 16, 9487, 33, 7036, 16, 2077, 33, 7036, 16, 3526, 33, 7036, 16, 2036, 33, 7036, 16, 2006, 67, 2815, 33, 7036, 16, 5949, 33, 7036, 16, 6371, 33, 7036, 16, 977, 33, 7036, 16, 6447, 67, 6274, 33, 7036, 16, 2710, 67, 4350, 33, 7036, 4672, 314, 892, 18, 43, 751, 1622, 16186, 2738, 972, 12, 2890, 16, 2869, 33, 4161, 16, 3150, 33, 4743, 16, 913, 33, 1745, 16, 3179, 67, 350, 33, 7466, 67, 350, 16, 1692, 33, 1232, 16, 9487, 33, 12614, 16, 2077, 33, 2649, 16, 3526, 33, 7007, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2869, 33, 7036, 16, 3150, 33, 7036, 16, 913, 33, 7036, 16, 3179, 67, 350, 33, 7036, 16, 1692, 33, 7036, 16, 9487, 33, 7036, 16, 2077, 33, 7036, 16, 3526, 33, 7036, 16, 2036, 33, 7036, 16, 2006, 67, 2815, 33, 7036, 16, 5949, 33, 7036, 16, 6371, 33, 7036, 16, 977, 33, 7036, 16, 6447, 67, 6274, 33, 7036, 16, 2710, 67, 4350, 33, 7036, 4672, 314, 892, 18, 43, 751, 1622, 16186, 2738, 972, 12, 2890, 16, 2869, 33, 4161, 16, 3150, 33, 4743, 16, 913, 33, 1745, 16, 3179, 67, 350, 33, 7466, 67, 350, 16, 1692, 33, 1232, 16, 9487, 33, 12614, 16, 2077, 33, 2649, 16, 2 ]
for dir, file in (("bzip2","LICENSE"), ("db", "LICENSE"), ("openssl", "LICENSE"), ("tcl", "license.terms"), ("tk", "license.terms")): out.write("\nThis copy of Python includes a copy of %s, which is licensed under the following terms:\n\n" % dir) dirs = glob.glob(srcdir+"/../"+dir+"-*")
for name, pat, file in (("bzip2","bzip2-*", "LICENSE"), ("Berkeley DB", "db-*", "LICENSE"), ("openssl", "openssl-*", "LICENSE"), ("Tcl", "tcl8*", "license.terms"), ("Tk", "tk8*", "license.terms"), ("Tix", "tix-*", "license.terms")): out.write("\nThis copy of Python includes a copy of %s, which is licensed under the following terms:\n\n" % name) dirs = glob.glob(srcdir+"/../"+pat)
def generate_license(): import shutil, glob out = open("LICENSE.txt", "w") shutil.copyfileobj(open(os.path.join(srcdir, "LICENSE")), out) for dir, file in (("bzip2","LICENSE"), ("db", "LICENSE"), ("openssl", "LICENSE"), ("tcl", "license.terms"), ("tk", "license.terms")): out.write("\nThis copy of Python includes a copy of %s, which is licensed under the following terms:\n\n" % dir) dirs = glob.glob(srcdir+"/../"+dir+"-*") if not dirs: raise ValueError, "Could not find "+srcdir+"/../"+dir+"-*" if len(dirs) > 2: raise ValueError, "Multiple copies of "+dir dir = dirs[0] shutil.copyfileobj(open(os.path.join(dir, file)), out) out.close()
b8a18eaca9e2bdb278a8e45d1cb24e14198d0959 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/b8a18eaca9e2bdb278a8e45d1cb24e14198d0959/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 12687, 13332, 1930, 11060, 16, 4715, 596, 273, 1696, 2932, 6065, 23396, 18, 5830, 3113, 315, 91, 7923, 11060, 18, 3530, 768, 2603, 12, 3190, 12, 538, 18, 803, 18, 5701, 12, 4816, 1214, 16, 315, 6065, 23396, 7923, 3631, 596, 13, 364, 508, 16, 9670, 16, 585, 316, 261, 2932, 70, 4450, 22, 15937, 70, 4450, 22, 17, 14, 3113, 315, 6065, 23396, 6, 3631, 7566, 38, 264, 79, 292, 402, 2383, 3113, 315, 1966, 17, 14, 3113, 315, 6065, 23396, 6, 3631, 7566, 27764, 3113, 315, 27764, 17, 14, 3113, 315, 6065, 23396, 6, 3631, 7566, 56, 830, 3113, 315, 88, 830, 28, 14, 3113, 315, 12687, 18, 10112, 6, 3631, 7566, 56, 79, 3113, 315, 16099, 28, 14, 3113, 315, 12687, 18, 10112, 6, 3631, 7566, 56, 697, 3113, 315, 88, 697, 17, 14, 3113, 315, 12687, 18, 10112, 6, 3719, 30, 596, 18, 2626, 31458, 82, 2503, 1610, 434, 6600, 6104, 279, 1610, 434, 738, 87, 16, 1492, 353, 328, 335, 28003, 3613, 326, 3751, 6548, 5581, 82, 64, 82, 6, 738, 508, 13, 7717, 273, 4715, 18, 10581, 12, 4816, 1214, 9078, 19, 838, 4898, 15, 16330, 13, 309, 486, 7717, 30, 1002, 2068, 16, 315, 4445, 486, 1104, 13773, 4816, 1214, 9078, 19, 838, 4898, 15, 1214, 9078, 17, 7388, 309, 562, 12, 8291, 13, 405, 576, 30, 1002, 2068, 16, 315, 8438, 13200, 434, 13773, 1214, 1577, 273, 7717, 63, 20, 65, 11060, 18, 3530, 768, 2603, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 12687, 13332, 1930, 11060, 16, 4715, 596, 273, 1696, 2932, 6065, 23396, 18, 5830, 3113, 315, 91, 7923, 11060, 18, 3530, 768, 2603, 12, 3190, 12, 538, 18, 803, 18, 5701, 12, 4816, 1214, 16, 315, 6065, 23396, 7923, 3631, 596, 13, 364, 508, 16, 9670, 16, 585, 316, 261, 2932, 70, 4450, 22, 15937, 70, 4450, 22, 17, 14, 3113, 315, 6065, 23396, 6, 3631, 7566, 38, 264, 79, 292, 402, 2383, 3113, 315, 1966, 17, 14, 3113, 315, 6065, 23396, 6, 3631, 7566, 27764, 3113, 315, 27764, 17, 14, 3113, 315, 6065, 23396, 6, 3631, 7566, 56, 830, 3113, 315, 88, 830, 28, 14, 3113, 315, 12687, 18, 10112, 6, 3631, 7566, 56, 79, 2 ]
if e.number in [-600, -609] and self.AS_appdata.path:
if e.number in [-600, -609] and self.AS_appdata.constructor == 'path':
def __call__(self, *args, **kargs): keywordArgs = kargs.copy() if len(args) > 1: raise TypeError, "Command received more than one direct parameter %r." % (args,) # get user-specified timeout, if any timeout = int(keywordArgs.pop('timeout', 60)) # appscript's default is 60 sec if timeout <= 0: timeout = kAE.kNoTimeOut else: timeout *= 60 # convert to ticks # ignore application's reply? sendFlags = keywordArgs.pop('waitreply', True) and kAE.kAEWaitReply or kAE.kAENoReply atts, params = {'subj':None}, {} # add considering/ignoring attributes (note: most apps currently ignore these) ignoreOptions = keywordArgs.pop('ignore', None) if ignoreOptions is None: atts['cons'] = _defaultConsiderations # 'csig' obsoletes 'cons', but latter is retained for compatibility atts['csig'] = _defaultConsidsAndIgnores else: atts['cons'] = ignoreOptions csig = 0 for option, considerMask, ignoreMask in _ignoreEnums: csig += option in ignoreOptions and ignoreMask or considerMask atts['csig'] = _packUInt32(csig) # optionally have application supply return value as specified type if keywordArgs.has_key('resulttype'): params['rtyp'] = keywordArgs.pop('resulttype') # add direct parameter, if any if args: params['----'] = args[0] # extract Apple event's labelled parameters, if any try: for name, value in keywordArgs.items(): params[self._labelledArgTerms[name]] = value except KeyError: raise TypeError, 'Unknown keyword argument %r.' % name # apply special cases for certain commands (make, set, any command that takes target object specifier as its direct parameter); appscript provides these as a convenience to users, making its syntax more concise, OO-like and nicer to use if self._aemreference is not aem.app: if self._code == 'coresetd': # Special case: if ref.set(...) contains no 'to' argument, use direct argument for 'to' parameter and target reference for direct parameter if params.has_key('----') and not params.has_key('data'): params['data'] = params['----'] params['----'] = self._aemreference elif not params.has_key('----'): params['----'] = self._aemreference else: atts['subj'] = self._aemreference elif self._code == 'corecrel': # this next bit is a bit tricky: # - While it should be possible to pack the target reference as a subject attribute, when the target is of typeInsertionLoc, CocoaScripting stupidly tries to coerce it to typeObjectSpecifier, which causes a coercion error. # - While it should be possible to pack the target reference as the 'at' parameter, some less-well-designed applications won't accept this and require it to be supplied as a subject attribute (i.e. how AppleScript supplies it). # One option is to follow the AppleScript approach and force users to always supply subject attributes as target references and 'at' parameters as 'at' parameters, but the syntax for the latter is clumsy and not backwards-compatible with a lot of existing appscript code (since earlier versions allowed the 'at' parameter to be given as the target reference). So for now we split the difference when deciding what to do with a target reference: if it's an insertion location then pack it as the 'at' parameter (where possible), otherwise pack it as the subject attribute (and if the application doesn't like that then it's up to the client to pack it as an 'at' parameter themselves). # # if ref.make(...) contains no 'at' argument and target is an insertion reference, use target reference for 'at' parameter... if isinstance(self._aemreference, aem.types.objectspecifiers.specifier.InsertionSpecifier) and not params.has_key('insh'): params['insh'] = self._aemreference else: # ...otherwise pack the target reference as the subject attribute atts['subj'] = self._aemreference elif params.has_key('----'): # if user has already supplied a direct parameter, pack that reference as the subject attribute atts['subj'] = self._aemreference else: # pack that reference as the direct parameter params['----'] = self._aemreference # build and send the Apple event, returning its result, if any try: return self.AS_appdata.target.event(self._code, params, atts, codecs=self.AS_appdata).send(timeout, sendFlags) except aem.CommandError, e: if e.number in [-600, -609] and self.AS_appdata.path: # event was sent to a local app for which we no longer have a valid address (i.e. the application has quit since this aem.Application object was made). # - If application is running under a new process id, we just update the aem.Application object and resend the event. # - If application isn't running, then we see if the event being sent is one of those allowed to relaunch the application (i.e. 'run' or 'launch'). If it is, the aplication is relaunched, the process id updated and the event resent; if not, the error is rethrown. if not self.AS_appdata.target.isrunning(self.AS_appdata.path): if self._code == 'ascrnoop': aem.Application.launch(self.AS_appdata.path) # relaunch app in background elif self._code != 'aevtoapp': # only 'launch' and 'run' are allowed to restart a local application that's been quit raise CommandError(self, (args, kargs), e) self.AS_appdata.target.reconnect() # update aem.Application object so it has a valid address for app try: return self.AS_appdata.target.event(self._code, params, atts, codecs=self.AS_appdata).send(timeout, sendFlags) except Exception, e: pass elif e.number == -1708 and self._code == 'ascrnoop': # squelch 'not handled' error for 'launch' event return raise CommandError(self, (args, kargs), e)
9c71f3a23beef6af1eb2fbeba91b31e651f8018b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10961/9c71f3a23beef6af1eb2fbeba91b31e651f8018b/reference.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 4932, 2615, 273, 25916, 18, 3530, 1435, 309, 562, 12, 1968, 13, 405, 404, 30, 1002, 3580, 16, 315, 2189, 5079, 1898, 2353, 1245, 2657, 1569, 738, 86, 1199, 738, 261, 1968, 16, 13, 468, 336, 729, 17, 13827, 2021, 16, 309, 1281, 2021, 273, 509, 12, 11041, 2615, 18, 5120, 2668, 4538, 2187, 4752, 3719, 468, 595, 4263, 1807, 805, 353, 4752, 1428, 309, 2021, 1648, 374, 30, 2021, 273, 417, 16985, 18, 79, 2279, 950, 1182, 469, 30, 2021, 6413, 4752, 468, 1765, 358, 13003, 468, 2305, 2521, 1807, 4332, 35, 1366, 5094, 273, 4932, 2615, 18, 5120, 2668, 7048, 10629, 2187, 1053, 13, 471, 417, 16985, 18, 79, 16985, 5480, 7817, 578, 417, 16985, 18, 79, 37, 1157, 83, 7817, 15687, 16, 859, 273, 13666, 1717, 78, 4278, 7036, 5779, 2618, 468, 527, 24453, 19, 724, 6053, 1677, 261, 7652, 30, 4486, 8279, 4551, 2305, 4259, 13, 2305, 1320, 273, 4932, 2615, 18, 5120, 2668, 6185, 2187, 599, 13, 309, 2305, 1320, 353, 599, 30, 15687, 3292, 8559, 3546, 273, 389, 1886, 9054, 3585, 1012, 468, 296, 2143, 360, 11, 7160, 355, 278, 281, 296, 8559, 2187, 1496, 23740, 353, 25227, 364, 8926, 15687, 3292, 2143, 360, 3546, 273, 389, 1886, 9054, 2232, 1876, 45, 1600, 3485, 469, 30, 15687, 3292, 8559, 3546, 273, 2305, 1320, 2873, 360, 273, 374, 364, 1456, 16, 5260, 5796, 16, 2305, 5796, 316, 389, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 4932, 2615, 273, 25916, 18, 3530, 1435, 309, 562, 12, 1968, 13, 405, 404, 30, 1002, 3580, 16, 315, 2189, 5079, 1898, 2353, 1245, 2657, 1569, 738, 86, 1199, 738, 261, 1968, 16, 13, 468, 336, 729, 17, 13827, 2021, 16, 309, 1281, 2021, 273, 509, 12, 11041, 2615, 18, 5120, 2668, 4538, 2187, 4752, 3719, 468, 595, 4263, 1807, 805, 353, 4752, 1428, 309, 2021, 1648, 374, 30, 2021, 273, 417, 16985, 18, 79, 2279, 950, 1182, 469, 30, 2021, 6413, 4752, 468, 1765, 358, 13003, 468, 2305, 2521, 1807, 4332, 35, 1366, 5094, 273, 4932, 2615, 18, 5120, 2668, 7048, 10629, 2187, 1053, 2 ]
EVT_MAIN_THREAD_CALLBACK(self, self.OnMainThreadCallbackEvent)
def _displayHook(obj): if obj is not None: print repr(obj)
5f7a266be468cf995d0d4c94701c270068d03a56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5f7a266be468cf995d0d4c94701c270068d03a56/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5417, 5394, 12, 2603, 4672, 309, 1081, 353, 486, 599, 30, 1172, 8480, 12,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5417, 5394, 12, 2603, 4672, 309, 1081, 353, 486, 599, 30, 1172, 8480, 12, 2603, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for root, dirs, files in tools.osutil.walksymlinks(tools.config['root_path']): for fname in fnmatch.filter(files, '*.py'): fabsolutepath = join(root, fname) frelativepath = fabsolutepath[len(tools.config['root_path'])+1:] module = get_module_from_path(frelativepath) is_mod_installed = module in installed_modules if (('all' in modules) or (module in modules)) and is_mod_installed: code_string = tools.file_open(fabsolutepath, subdir='').read() iter = re.finditer( '[^a-zA-Z0-9_]_\([\s]*["\'](.+?)["\'][\s]*\)', code_string, re.M) for i in iter: push_translation(module, 'code', frelativepath, 0, encode(i.group(1)))
if tools.config['root_path'] in tools.config['addons_path'] : path_list = [tools.config['root_path']] else : path_list = [tools.config['root_path'],tools.config['addons_path']] for path in path_list: for root, dirs, files in tools.osutil.walksymlinks(path): for fname in fnmatch.filter(files, '*.py'): fabsolutepath = join(root, fname) frelativepath = fabsolutepath[len(path):] module = get_module_from_path(frelativepath) is_mod_installed = module in installed_modules if (('all' in modules) or (module in modules)) and is_mod_installed: code_string = tools.file_open(fabsolutepath, subdir='').read() iter = re.finditer('[^a-zA-Z0-9_]_\([\s]*["\'](.+?)["\'][\s]*\)', code_string, re.S) if module in installed_modules : frelativepath =str("addons"+frelativepath) for i in iter: push_translation(module, 'code', frelativepath, 0, encode(i.group(1)))
def get_module_from_path(path): relative_addons_path = tools.config['addons_path'][len(tools.config['root_path'])+1:] if path.startswith(relative_addons_path) and (os.path.dirname(path) != relative_addons_path): path = path[len(relative_addons_path)+1:] return path.split(os.path.sep)[0] return 'base' # files that are not in a module are considered as being in 'base' module
48aadedd0ebfe61219776b556a4eeb2760623461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/48aadedd0ebfe61219776b556a4eeb2760623461/translate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 67, 2080, 67, 803, 12, 803, 4672, 3632, 67, 1289, 7008, 67, 803, 273, 8513, 18, 1425, 3292, 1289, 7008, 67, 803, 3546, 63, 1897, 12, 6642, 18, 1425, 3292, 3085, 67, 803, 19486, 15, 21, 26894, 309, 589, 18, 17514, 1918, 12, 11626, 67, 1289, 7008, 67, 803, 13, 471, 261, 538, 18, 803, 18, 12287, 12, 803, 13, 480, 3632, 67, 1289, 7008, 67, 803, 4672, 589, 273, 589, 63, 1897, 12, 11626, 67, 1289, 7008, 67, 803, 27921, 21, 26894, 327, 589, 18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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 67, 2080, 67, 803, 12, 803, 4672, 3632, 67, 1289, 7008, 67, 803, 273, 8513, 18, 1425, 3292, 1289, 7008, 67, 803, 3546, 63, 1897, 12, 6642, 18, 1425, 3292, 3085, 67, 803, 19486, 15, 21, 26894, 309, 589, 18, 17514, 1918, 12, 11626, 67, 1289, 7008, 67, 803, 13, 471, 261, 538, 18, 803, 18, 12287, 12, 803, 13, 480, 3632, 67, 1289, 7008, 67, 803, 4672, 589, 273, 589, 63, 1897, 12, 11626, 67, 1289, 7008, 67, 803, 27921, 21, 26894, 327, 589, 18, 4939, 12, 538, 18, 803, 18, 10814, 25146, 20, 65, 327, 296, 1969, 11, 282, 468, 1390, 716, 854, 486, 316, 279, 1605, 854, 7399, 487, 3832, 316, 296, 2 ]
if secondPoint and secondVolume:
if secondPoint != None and secondVolume != None:
def AddAudioFadePoints(self, firstPoint, secondPoint, firstVolume, secondVolume): """ Add the two passed points to the audioFadePoints list. If either point exists already, replace it, and resort the list by time. undo : RemoveAudioFadePoints: temp, temp2, temp3, temp4 """ #for command manager to use with undo self.temp = firstPoint self.temp2 = secondPoint self.temp3 = None self.temp4 = None if self.__fadePointsDict.has_key(firstPoint): self.temp3 = self.__fadePointsDict[firstPoint] if self.__fadePointsDict.has_key(secondPoint): self.temp4 = self.__fadePointsDict[secondPoint] if firstPoint and firstVolume: self.__fadePointsDict[firstPoint] = firstVolume if secondPoint and secondVolume: self.__fadePointsDict[secondPoint] = secondVolume self.__UpdateAudioFadePoints()
b4269afbff33b39edcd60c6fcef2af75678d467c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/b4269afbff33b39edcd60c6fcef2af75678d467c/Event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 12719, 42, 2486, 5636, 12, 2890, 16, 1122, 2148, 16, 2205, 2148, 16, 1122, 4545, 16, 2205, 4545, 4672, 3536, 1436, 326, 2795, 2275, 3143, 358, 326, 7447, 42, 2486, 5636, 666, 18, 971, 3344, 1634, 1704, 1818, 16, 1453, 518, 16, 471, 400, 499, 326, 666, 635, 813, 18, 225, 15436, 294, 3581, 12719, 42, 2486, 5636, 30, 1906, 16, 1906, 22, 16, 1906, 23, 16, 1906, 24, 3536, 468, 1884, 1296, 3301, 358, 999, 598, 15436, 365, 18, 5814, 273, 1122, 2148, 365, 18, 5814, 22, 273, 2205, 2148, 365, 18, 5814, 23, 273, 599, 365, 18, 5814, 24, 273, 599, 225, 309, 365, 16186, 507, 323, 5636, 5014, 18, 5332, 67, 856, 12, 3645, 2148, 4672, 365, 18, 5814, 23, 273, 365, 16186, 507, 323, 5636, 5014, 63, 3645, 2148, 65, 309, 365, 16186, 507, 323, 5636, 5014, 18, 5332, 67, 856, 12, 8538, 2148, 4672, 365, 18, 5814, 24, 273, 365, 16186, 507, 323, 5636, 5014, 63, 8538, 2148, 65, 225, 309, 1122, 2148, 471, 1122, 4545, 30, 365, 16186, 507, 323, 5636, 5014, 63, 3645, 2148, 65, 273, 1122, 4545, 309, 2205, 2148, 480, 599, 471, 2205, 4545, 480, 599, 30, 365, 16186, 507, 323, 5636, 5014, 63, 8538, 2148, 65, 273, 2205, 4545, 225, 365, 16186, 1891, 12719, 42, 2486, 5636, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 12719, 42, 2486, 5636, 12, 2890, 16, 1122, 2148, 16, 2205, 2148, 16, 1122, 4545, 16, 2205, 4545, 4672, 3536, 1436, 326, 2795, 2275, 3143, 358, 326, 7447, 42, 2486, 5636, 666, 18, 971, 3344, 1634, 1704, 1818, 16, 1453, 518, 16, 471, 400, 499, 326, 666, 635, 813, 18, 225, 15436, 294, 3581, 12719, 42, 2486, 5636, 30, 1906, 16, 1906, 22, 16, 1906, 23, 16, 1906, 24, 3536, 468, 1884, 1296, 3301, 358, 999, 598, 15436, 365, 18, 5814, 273, 1122, 2148, 365, 18, 5814, 22, 273, 2205, 2148, 365, 18, 5814, 23, 273, 599, 365, 18, 5814, 24, 273, 599, 225, 309, 365, 16186, 507, 323, 5636, 5014, 18, 5332, 67, 856, 12, 3645, 2 ]
render()
render(scene)
def invoke(self, context, event): scene = context.scene path = getdefaultribpath(scene) checkpaths(path) checkpaths(os.path.join(path, scene.renderman_settings.polydir)) checkpaths(os.path.join(path, scene.renderman_settings.shadowdir)) checkpaths(os.path.join(path, scene.renderman_settings.envdir)) checkpaths(os.path.join(path, scene.renderman_settings.texdir)) if self.anim: for i in range(scene.frame_start, scene.frame_end+scene.frame_step, scene.frame_step): scene.frame_current = i render() else: render() return{'FINISHED'}
7f85553c4440f5b8b61bece99e657a34af1b0143 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14285/7f85553c4440f5b8b61bece99e657a34af1b0143/export_renderman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 16, 819, 16, 871, 4672, 9065, 273, 819, 18, 23694, 589, 273, 336, 323, 507, 332, 665, 803, 12, 23694, 13, 866, 4481, 12, 803, 13, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 16353, 1214, 3719, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 19119, 1214, 3719, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 3074, 1214, 3719, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 21763, 1214, 3719, 309, 365, 18, 304, 381, 30, 364, 277, 316, 1048, 12, 23694, 18, 3789, 67, 1937, 16, 9065, 18, 3789, 67, 409, 15, 23694, 18, 3789, 67, 4119, 16, 9065, 18, 3789, 67, 4119, 4672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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 16, 819, 16, 871, 4672, 9065, 273, 819, 18, 23694, 589, 273, 336, 323, 507, 332, 665, 803, 12, 23694, 13, 866, 4481, 12, 803, 13, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 16353, 1214, 3719, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 19119, 1214, 3719, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 3074, 1214, 3719, 866, 4481, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 9065, 18, 5902, 4728, 67, 4272, 18, 21763, 1214, 3719, 309, 365, 18, 304, 381, 2 ]
self.Close()
self._port_handle.Close()
def close(self): """Close port""" if self._isOpen: if self._port_handle: try: self.Close() except System.IO.Ports.InvalidOperationException: # ignore errors. can happen for unplugged USB serial devices pass self._port_handle = None self._isOpen = False
f163508a56e9c4a0cd51d4294add9531bc4f03ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10955/f163508a56e9c4a0cd51d4294add9531bc4f03ca/serialcli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4605, 1756, 8395, 309, 365, 6315, 291, 3678, 30, 309, 365, 6315, 655, 67, 4110, 30, 775, 30, 365, 6315, 655, 67, 4110, 18, 4605, 1435, 1335, 2332, 18, 4294, 18, 11107, 18, 1941, 10602, 30, 468, 2305, 1334, 18, 848, 5865, 364, 640, 22045, 2423, 11836, 38, 2734, 7166, 1342, 365, 6315, 655, 67, 4110, 273, 599, 365, 6315, 291, 3678, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4605, 1756, 8395, 309, 365, 6315, 291, 3678, 30, 309, 365, 6315, 655, 67, 4110, 30, 775, 30, 365, 6315, 655, 67, 4110, 18, 4605, 1435, 1335, 2332, 18, 4294, 18, 11107, 18, 1941, 10602, 30, 468, 2305, 1334, 18, 848, 5865, 364, 640, 22045, 2423, 11836, 38, 2734, 7166, 1342, 365, 6315, 655, 67, 4110, 273, 599, 365, 6315, 291, 3678, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
event().startup()
try: event().startup() except Exception,e: pyflaglog.log(pyflaglog.ERRORS, "Error: %s" % e)
def start_workers(): if config.FLUSH: dbh = DB.DBO() print "Deleting job queue" dbh.execute("delete from jobs") if config.WORKERS == 0: return for i in range(config.WORKERS): pid = os.fork() ## Parents: if pid: children.append(pid) else: atexit.register(child_exist) ## It is an error to fork with db connections ## established... they can not be shared: if DB.db_connections > 0: ## We try to fix it by making the child get new ## handlers. Note that the child still needs to hold the ## handles or they will get closed on the parent as well ## - this seems like a hack DB.DBO.DBH_old = DB.DBO.DBH DB.DBO.DBH = Store.Store(max_size=10) DB.db_connections = 0 ## Start the logging thread for each worker: pyflaglog.start_log_thread() ## These are all the methods we support jobs = [] ## This is the last broadcast message we handled. We will ## only handle broadcasts newer than this. broadcast_id = 0 try: dbh=DB.DBO() dbh.execute("select max(id) as max from jobs") row = dbh.fetch() broadcast_id = row['max'] or 0 except: pass while 1: ## Check for new tasks: if not jobs: time.sleep(10) dbh = None try: dbh = DB.DBO() try: dbh.execute("lock tables jobs write") sql = [ "command=%r" % x for x in Registry.TASKS.class_names ] dbh.execute("select * from jobs where ((%s) and state='pending') or (state='broadcast' and id>%r) order by id limit %s", (" or ".join(sql), broadcast_id, config.JOB_QUEUE)) jobs = [ row for row in dbh ] if not jobs: continue ## Ensure the jobs are marked as processing so other jobs dont touch them: for row in jobs: if row['state'] == 'pending': dbh.execute("update jobs set state='processing' where id=%r", row['id']) elif row['state'] == 'broadcast': broadcast_id = row['id'] finally: if dbh: dbh.execute("unlock tables") except: continue ## Now do the jobs for row in jobs: try: try: task = Registry.TASKS.dispatch(row['command']) except: print "Dont know how to process job %s" % row['command'] continue try: task = task() task.run(row['arg1'], row['arg2'], row['arg3']) except Exception,e: pyflaglog.log(pyflaglog.ERRORS, "Error %s(%s,%s,%s) %s" % (task.__class__.__name__,row['arg1'], row['arg2'],row['arg3'],e)) finally: if row['state'] != 'broadcast': dbh.execute("delete from jobs where id=%r", row['id']) atexit.register(terminate_children) ## The parent now calls the startup method on each of the events: for event in Registry.EVENT_HANDLERS.classes: event().startup() ## The parent now calls the startup method on each of the events: print "Launching startup" for event in Registry.EVENT_HANDLERS.classes: event().startup()
caea32aadf0428a2bb5c9c723ec10f46011470c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/caea32aadf0428a2bb5c9c723ec10f46011470c4/Farm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 15625, 13332, 309, 642, 18, 42, 31959, 30, 1319, 76, 273, 2383, 18, 2290, 51, 1435, 1172, 315, 20433, 1719, 2389, 6, 1319, 76, 18, 8837, 2932, 3733, 628, 6550, 7923, 225, 309, 642, 18, 10566, 11367, 422, 374, 30, 327, 225, 364, 277, 316, 1048, 12, 1425, 18, 10566, 11367, 4672, 4231, 273, 1140, 18, 23335, 1435, 7541, 9520, 87, 30, 309, 4231, 30, 2325, 18, 6923, 12, 6610, 13, 469, 30, 622, 8593, 18, 4861, 12, 3624, 67, 7398, 13, 225, 7541, 2597, 353, 392, 555, 358, 12515, 598, 1319, 5921, 7541, 19703, 2777, 2898, 848, 486, 506, 5116, 30, 309, 2383, 18, 1966, 67, 13313, 405, 374, 30, 7541, 1660, 775, 358, 2917, 518, 635, 10480, 326, 1151, 336, 394, 7541, 4919, 18, 3609, 716, 326, 1151, 4859, 4260, 358, 6887, 326, 7541, 7372, 578, 2898, 903, 336, 4375, 603, 326, 982, 487, 5492, 7541, 300, 333, 12001, 3007, 279, 11769, 2383, 18, 2290, 51, 18, 2290, 44, 67, 1673, 273, 2383, 18, 2290, 51, 18, 2290, 44, 2383, 18, 2290, 51, 18, 2290, 44, 273, 4994, 18, 2257, 12, 1896, 67, 1467, 33, 2163, 13, 2383, 18, 1966, 67, 13313, 273, 374, 225, 7541, 3603, 326, 2907, 2650, 364, 1517, 4322, 30, 2395, 6420, 1330, 18, 1937, 67, 1330, 67, 5930, 1435, 225, 7541, 8646, 854, 777, 326, 2590, 732, 2865, 6550, 273, 5378, 225, 7541, 1220, 353, 326, 1142, 8959, 883, 732, 7681, 18, 1660, 903, 7541, 1338, 1640, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 15625, 13332, 309, 642, 18, 42, 31959, 30, 1319, 76, 273, 2383, 18, 2290, 51, 1435, 1172, 315, 20433, 1719, 2389, 6, 1319, 76, 18, 8837, 2932, 3733, 628, 6550, 7923, 225, 309, 642, 18, 10566, 11367, 422, 374, 30, 327, 225, 364, 277, 316, 1048, 12, 1425, 18, 10566, 11367, 4672, 4231, 273, 1140, 18, 23335, 1435, 7541, 9520, 87, 30, 309, 4231, 30, 2325, 18, 6923, 12, 6610, 13, 469, 30, 622, 8593, 18, 4861, 12, 3624, 67, 7398, 13, 225, 7541, 2597, 353, 392, 555, 358, 12515, 598, 1319, 5921, 7541, 19703, 2777, 2898, 848, 486, 506, 5116, 30, 309, 2383, 18, 1966, 67, 13313, 405, 374, 30, 7541, 1660, 775, 358, 2917, 2 ]
writePackages({0: content})
writePackage(content)
def writePackage(content, packageId=""): # Construct file name resolvedFilePath = self._resolveFileName(filePath, variants, settings, packageId)
9252efc67e4f549a91130510683a48ae8b6601e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/9252efc67e4f549a91130510683a48ae8b6601e8/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2261, 12, 1745, 16, 2181, 548, 1546, 6, 4672, 468, 14291, 585, 508, 4640, 5598, 273, 365, 6315, 10828, 4771, 12, 22787, 16, 12935, 16, 1947, 16, 2181, 548, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2261, 12, 1745, 16, 2181, 548, 1546, 6, 4672, 468, 14291, 585, 508, 4640, 5598, 273, 365, 6315, 10828, 4771, 12, 22787, 16, 12935, 16, 1947, 16, 2181, 548, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: from sage.groups.perm_gps.permgroup import SymmetricGroup
sage: from sage.groups.perm_gps.permgroup_named import SymmetricGroup
def relabel(self, perm, inplace=True, quick=False): r""" Uses a dictionary or permutation to relabel the (di)graph. If perm is a dictionary, each old vertex v is a key in the dictionary, and its new label is d[v]. If perm is a list, we think of it as a map $i \mapsto perm[i]$ (only for graphs with $V = \{0,1,...,n-1\}$ ). If perm is a per mutation, the permutation is simply applied to the graph, under the assumption that $V = \{0,1,...,n-1\}$ is the vertex set, and the permutation acts on the set $\{1,2,...,n\}$, where we think of $n = 0$. INPUT: quick -- if True, simply return the enumeration of the new graph without constructing it. Requires that perm is of type list. EXAMPLES: sage: G = Graph({0:[1],1:[2],2:[]}) sage: G.am() [0 1 0] [1 0 1] [0 1 0] Relabeling using a list: sage: G.relabel([0,2,1]) sage: G.am() [0 0 1] [0 0 1] [1 1 0] Relabeling using a dictionary: sage: G.relabel({0:2,2:0}) sage: G.am() [0 1 1] [1 0 0] [1 0 0] Relabeling using a SAGE permutation: sage: from sage.groups.perm_gps.permgroup import SymmetricGroup sage: S = SymmetricGroup(3) sage: gamma = S('(3,2)') sage: G.relabel(gamma) sage: G.am() [0 0 1] [0 0 1] [1 1 0]
64ceae3747cadb0980b0243bf4df51901a212828 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/64ceae3747cadb0980b0243bf4df51901a212828/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1279, 873, 12, 2890, 16, 4641, 16, 11783, 33, 5510, 16, 9549, 33, 8381, 4672, 436, 8395, 14854, 279, 3880, 578, 17440, 358, 1279, 873, 326, 261, 3211, 13, 4660, 18, 971, 4641, 353, 279, 3880, 16, 1517, 1592, 5253, 331, 353, 279, 498, 316, 326, 3880, 16, 471, 2097, 394, 1433, 353, 302, 63, 90, 8009, 971, 4641, 353, 279, 666, 16, 732, 15507, 434, 518, 487, 279, 852, 271, 77, 521, 1458, 30168, 4641, 63, 77, 65, 8, 261, 3700, 364, 19422, 598, 271, 58, 273, 521, 95, 20, 16, 21, 16, 2777, 16, 82, 17, 21, 64, 22496, 262, 18, 971, 4641, 353, 279, 1534, 11934, 16, 326, 17440, 353, 8616, 6754, 358, 326, 2667, 16, 3613, 326, 24743, 716, 271, 58, 273, 521, 95, 20, 16, 21, 16, 2777, 16, 82, 17, 21, 64, 22496, 353, 326, 5253, 444, 16, 471, 326, 17440, 22668, 603, 326, 444, 271, 64, 95, 21, 16, 22, 16, 2777, 16, 82, 64, 22496, 16, 1625, 732, 15507, 434, 271, 82, 273, 374, 8, 18, 225, 12943, 30, 9549, 1493, 309, 1053, 16, 8616, 327, 326, 16836, 434, 326, 394, 2667, 2887, 27389, 518, 18, 16412, 716, 4641, 353, 434, 618, 666, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 611, 273, 5601, 12590, 20, 30, 63, 21, 6487, 21, 30, 63, 22, 6487, 22, 30, 8526, 6792, 272, 410, 30, 611, 18, 301, 1435, 306, 20, 404, 374, 65, 306, 21, 374, 404, 65, 306, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1279, 873, 12, 2890, 16, 4641, 16, 11783, 33, 5510, 16, 9549, 33, 8381, 4672, 436, 8395, 14854, 279, 3880, 578, 17440, 358, 1279, 873, 326, 261, 3211, 13, 4660, 18, 971, 4641, 353, 279, 3880, 16, 1517, 1592, 5253, 331, 353, 279, 498, 316, 326, 3880, 16, 471, 2097, 394, 1433, 353, 302, 63, 90, 8009, 971, 4641, 353, 279, 666, 16, 732, 15507, 434, 518, 487, 279, 852, 271, 77, 521, 1458, 30168, 4641, 63, 77, 65, 8, 261, 3700, 364, 19422, 598, 271, 58, 273, 521, 95, 20, 16, 21, 16, 2777, 16, 82, 17, 21, 64, 22496, 262, 18, 971, 4641, 353, 279, 1534, 11934, 16, 326, 17440, 353, 8616, 6754, 358, 326, 2667, 2 ]
if self.__patch_applied(name) or self.__patch_unapplied(name):
if self.patch_applied(name) or self.patch_unapplied(name):
def new_patch(self, name, message = None, can_edit = True, unapplied = False, show_patch = False, top = None, bottom = None, author_name = None, author_email = None, author_date = None, committer_name = None, committer_email = None, before_existing = False, refresh = True): """Creates a new patch """ if self.__patch_applied(name) or self.__patch_unapplied(name): raise StackException, 'Patch "%s" already exists' % name
ed0350be88dca8315cf7b32e88972306aae4f700 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/ed0350be88dca8315cf7b32e88972306aae4f700/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2272, 12, 2890, 16, 508, 16, 883, 273, 599, 16, 848, 67, 4619, 273, 1053, 16, 640, 438, 3110, 273, 1083, 16, 2405, 67, 2272, 273, 1083, 16, 1760, 273, 599, 16, 5469, 273, 599, 16, 2869, 67, 529, 273, 599, 16, 2869, 67, 3652, 273, 599, 16, 2869, 67, 712, 273, 599, 16, 3294, 387, 67, 529, 273, 599, 16, 3294, 387, 67, 3652, 273, 599, 16, 1865, 67, 11711, 273, 1083, 16, 4460, 273, 1053, 4672, 3536, 2729, 279, 394, 4729, 3536, 309, 365, 18, 2272, 67, 438, 3110, 12, 529, 13, 578, 365, 18, 2272, 67, 318, 438, 3110, 12, 529, 4672, 1002, 7283, 503, 16, 296, 7332, 2213, 87, 6, 1818, 1704, 11, 738, 508, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2272, 12, 2890, 16, 508, 16, 883, 273, 599, 16, 848, 67, 4619, 273, 1053, 16, 640, 438, 3110, 273, 1083, 16, 2405, 67, 2272, 273, 1083, 16, 1760, 273, 599, 16, 5469, 273, 599, 16, 2869, 67, 529, 273, 599, 16, 2869, 67, 3652, 273, 599, 16, 2869, 67, 712, 273, 599, 16, 3294, 387, 67, 529, 273, 599, 16, 3294, 387, 67, 3652, 273, 599, 16, 1865, 67, 11711, 273, 1083, 16, 4460, 273, 1053, 4672, 3536, 2729, 279, 394, 4729, 3536, 309, 365, 18, 2272, 67, 438, 3110, 12, 529, 13, 578, 365, 18, 2272, 67, 318, 438, 3110, 12, 529, 4672, 1002, 7283, 503, 16, 296, 7332, 2213, 87, 6, 1818, 1704, 2 ]
cr.show_page()
def render(self, cr, paperwidth, paperheight): cr.set_source_rgb(1, 1, 1) cr.paint() cr.set_source_rgb(0.0, 0.0, 0.0)
507d3613f2a6f5db297c78cc6a85408a5dcc35cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9326/507d3613f2a6f5db297c78cc6a85408a5dcc35cf/street_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 4422, 16, 15181, 2819, 16, 15181, 4210, 4672, 4422, 18, 542, 67, 3168, 67, 10948, 12, 21, 16, 404, 16, 404, 13, 4422, 18, 84, 1598, 1435, 4422, 18, 542, 67, 3168, 67, 10948, 12, 20, 18, 20, 16, 374, 18, 20, 16, 374, 18, 20, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 4422, 16, 15181, 2819, 16, 15181, 4210, 4672, 4422, 18, 542, 67, 3168, 67, 10948, 12, 21, 16, 404, 16, 404, 13, 4422, 18, 84, 1598, 1435, 4422, 18, 542, 67, 3168, 67, 10948, 12, 20, 18, 20, 16, 374, 18, 20, 16, 374, 18, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
finally: fileobj.close() os.unlink(name)
def test_read_dict_fields(self): fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: fileobj.write("1,2,abc\r\n") fileobj.seek(0) reader = csv.DictReader(fileobj, fieldnames=["f1", "f2", "f3"]) self.assertEqual(next(reader), {"f1": '1', "f2": '2', "f3": 'abc'}) finally: fileobj.close() os.unlink(name)
4626458cc57b73dc01edf4987bbc3fe1d4437e59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4626458cc57b73dc01edf4987bbc3fe1d4437e59/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 67, 1576, 67, 2821, 12, 2890, 4672, 5194, 16, 508, 273, 13275, 18, 24816, 19781, 84, 1435, 17041, 273, 1140, 18, 8313, 3190, 12, 8313, 16, 315, 91, 15, 70, 7923, 775, 30, 17041, 18, 2626, 2932, 21, 16, 22, 16, 18947, 64, 86, 64, 82, 7923, 17041, 18, 16508, 12, 20, 13, 2949, 273, 6101, 18, 5014, 2514, 12, 768, 2603, 16, 25051, 33, 9614, 74, 21, 3113, 315, 74, 22, 3113, 315, 74, 23, 6, 5717, 365, 18, 11231, 5812, 12, 4285, 12, 10530, 3631, 12528, 74, 21, 6877, 296, 21, 2187, 315, 74, 22, 6877, 296, 22, 2187, 315, 74, 23, 6877, 296, 18947, 11, 6792, 3095, 30, 17041, 18, 4412, 1435, 1140, 18, 318, 1232, 12, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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1140, 18, 8313, 3190, 12, 8313, 16, 315, 91, 15, 70, 7923, 775, 30, 17041, 18, 2626, 2932, 21, 16, 22, 16, 18947, 64, 86, 64, 82, 7923, 17041, 18, 16508, 12, 20, 13, 2949, 273, 6101, 18, 5014, 2514, 12, 768, 2603, 16, 25051, 33, 9614, 74, 21, 3113, 315, 74, 22, 3113, 315, 74, 23, 6, 5717, 365, 18, 11231, 5812, 12, 4285, 12, 10530, 3631, 12528, 74, 21, 6877, 296, 21, 2187, 315, 74, 22, 6877, 296, 22, 2187, 315, 74, 23, 6877, 296, 18947, 11, 6792, 3095, 30, 17041, 18, 4412, 1435, 2 ]
for k in os.environ.keys(): if k == 'NO_PROXY':
for k in list(os.environ): if 'proxy' not in k.lower():
def setUp(self): # Records changes to env vars self.env = support.EnvironmentVarGuard() # Delete all proxy related env vars for k in os.environ.keys(): if k == 'NO_PROXY': self.env.unset(k)
b702178a0c9c6c9c88fcca5c422ee8fdce800617 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b702178a0c9c6c9c88fcca5c422ee8fdce800617/test_urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 27390, 3478, 358, 1550, 4153, 365, 18, 3074, 273, 2865, 18, 5494, 1537, 16709, 1435, 468, 2504, 777, 2889, 3746, 1550, 4153, 364, 417, 316, 666, 12, 538, 18, 28684, 4672, 309, 296, 5656, 11, 486, 316, 417, 18, 8167, 13332, 365, 18, 3074, 18, 18579, 12, 79, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 27390, 3478, 358, 1550, 4153, 365, 18, 3074, 273, 2865, 18, 5494, 1537, 16709, 1435, 468, 2504, 777, 2889, 3746, 1550, 4153, 364, 417, 316, 666, 12, 538, 18, 28684, 4672, 309, 296, 5656, 11, 486, 316, 417, 18, 8167, 13332, 365, 18, 3074, 18, 18579, 12, 79, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print author_id print fas.cache[author_id] print fas.cache[author_id]['email']
def _mass_branch(self, to_branch, devel_branch, pkgs, author_name, author_id): '''Performs a mass branching. Intended to run in the background.
7434facc4bb47994ba753df0d87e2a0817284236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/7434facc4bb47994ba753df0d87e2a0817284236/collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10424, 67, 7500, 12, 2890, 16, 358, 67, 7500, 16, 443, 941, 67, 7500, 16, 16922, 16, 2869, 67, 529, 16, 2869, 67, 350, 4672, 9163, 9409, 279, 8039, 3803, 310, 18, 225, 657, 8140, 358, 1086, 316, 326, 5412, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10424, 67, 7500, 12, 2890, 16, 358, 67, 7500, 16, 443, 941, 67, 7500, 16, 16922, 16, 2869, 67, 529, 16, 2869, 67, 350, 4672, 9163, 9409, 279, 8039, 3803, 310, 18, 225, 657, 8140, 358, 1086, 316, 326, 5412, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "Tarkistuspiste 9\n";
def formatAlnSeq(alns,names,starts,motifAln="",linelen=60): """Formats the DNA sequence alignment output""" outstr="\n".join(["Sequence %d: %s"%(seqI+1,iname) for (seqI,iname) in enumerate(names)])+"\n\n" n=len(alns[0]) poses=[xstart+1 for xstart in starts] for i in range(0,n,linelen): lines=[xaln[i:i+linelen] for xaln in alns] mline=motifAln[i:i+linelen] outstr+="\n".join(["%7d : %s"%(xpos,xline) for (xpos,xline) in zip(poses,lines)]) outstr+="\n %s\n\n"%(mline) poses=[xpos+len(xline)-xline.count("-") for (xpos,xline) in zip(poses,lines)] return outstr
bc032a4656439ef0d7cfdf470d894358c59e2762 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11674/bc032a4656439ef0d7cfdf470d894358c59e2762/Output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1067, 82, 6926, 12, 287, 2387, 16, 1973, 16, 17514, 16, 18313, 430, 1067, 82, 1546, 3113, 7511, 292, 275, 33, 4848, 4672, 3536, 8976, 326, 463, 11277, 3102, 8710, 876, 8395, 596, 701, 1546, 64, 82, 9654, 5701, 3816, 6, 4021, 738, 72, 30, 738, 87, 6, 17105, 5436, 45, 15, 21, 16, 267, 339, 13, 364, 261, 5436, 45, 16, 267, 339, 13, 316, 4241, 12, 1973, 13, 5717, 9078, 64, 82, 64, 82, 6, 290, 33, 1897, 12, 287, 2387, 63, 20, 5717, 949, 281, 22850, 92, 1937, 15, 21, 364, 619, 1937, 316, 2542, 65, 364, 277, 316, 1048, 12, 20, 16, 82, 16, 7511, 292, 275, 4672, 2362, 22850, 92, 30907, 63, 77, 30, 77, 15, 7511, 292, 275, 65, 364, 619, 30907, 316, 524, 2387, 65, 312, 1369, 33, 18313, 430, 1067, 82, 63, 77, 30, 77, 15, 7511, 292, 275, 65, 596, 701, 15, 1546, 64, 82, 9654, 5701, 3816, 28385, 27, 72, 294, 738, 87, 6, 17105, 92, 917, 16, 92, 1369, 13, 364, 261, 92, 917, 16, 92, 1369, 13, 316, 3144, 12, 10522, 16, 3548, 13, 5717, 596, 701, 15, 1546, 64, 82, 1850, 738, 87, 64, 82, 64, 82, 6, 17105, 781, 558, 13, 949, 281, 22850, 92, 917, 15, 1897, 12, 92, 1369, 24950, 92, 1369, 18, 1883, 2932, 17, 7923, 364, 261, 92, 917, 16, 92, 1369, 13, 316, 3144, 12, 10522, 16, 3548, 25887, 327, 596, 701, 225, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1067, 82, 6926, 12, 287, 2387, 16, 1973, 16, 17514, 16, 18313, 430, 1067, 82, 1546, 3113, 7511, 292, 275, 33, 4848, 4672, 3536, 8976, 326, 463, 11277, 3102, 8710, 876, 8395, 596, 701, 1546, 64, 82, 9654, 5701, 3816, 6, 4021, 738, 72, 30, 738, 87, 6, 17105, 5436, 45, 15, 21, 16, 267, 339, 13, 364, 261, 5436, 45, 16, 267, 339, 13, 316, 4241, 12, 1973, 13, 5717, 9078, 64, 82, 64, 82, 6, 290, 33, 1897, 12, 287, 2387, 63, 20, 5717, 949, 281, 22850, 92, 1937, 15, 21, 364, 619, 1937, 316, 2542, 65, 364, 277, 316, 1048, 12, 20, 16, 82, 16, 7511, 292, 275, 4672, 2362, 22850, 92, 30907, 63, 2 ]
headers['accept-encoding'] = 'compress, gzip'
headers['accept-encoding'] = 'deflate, gzip'
def request(self, uri, method="GET", body=None, headers=None, redirections=DEFAULT_MAX_REDIRECTS, connection_type=None): """ Performs a single HTTP request.
b00e991f840d81258afcb7e4362a7d37fbdc28a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13138/b00e991f840d81258afcb7e4362a7d37fbdc28a7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 2003, 16, 707, 1546, 3264, 3113, 1417, 33, 7036, 16, 1607, 33, 7036, 16, 19611, 87, 33, 5280, 67, 6694, 67, 25103, 55, 16, 1459, 67, 723, 33, 7036, 4672, 3536, 27391, 279, 2202, 2239, 590, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 2003, 16, 707, 1546, 3264, 3113, 1417, 33, 7036, 16, 1607, 33, 7036, 16, 19611, 87, 33, 5280, 67, 6694, 67, 25103, 55, 16, 1459, 67, 723, 33, 7036, 4672, 3536, 27391, 279, 2202, 2239, 590, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if method.startswith('_'): raise AttributeError(method)
def __getattr__(self, method): # Don't invoke methods that start with _ if method.startswith('_'): raise AttributeError(method) return lambda *args, **kwargs: self.callByName(method, *args, **kwargs)
b7f25cfc3b480c500d5346c9b05b39a12b699499 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/b7f25cfc3b480c500d5346c9b05b39a12b699499/proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 707, 4672, 468, 7615, 1404, 4356, 2590, 716, 787, 598, 389, 2463, 3195, 380, 1968, 16, 2826, 4333, 30, 365, 18, 1991, 5911, 12, 2039, 16, 380, 1968, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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039, 16, 380, 1968, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bot = upload.UploadRobot(metadata['url'], description=description, useFilename=title, keepFilename=True, verifyDescription=False, targetSite = wikipedia.getSite('commons', 'commons')) bot.upload_image(debug=False)
try: bot = upload.UploadRobot(metadata['url'], description=description, useFilename=title, keepFilename=True, verifyDescription=False, targetSite = wikipedia.getSite('commons', 'commons')) bot.upload_image(debug=False) except wikipedia.PageNotFound: pass
def processPhoto(photo_id): ''' Work on a single photo at http://www.navy.mil/view_single.asp?id=<photo_id> get the metadata, check for dupes, build description, upload the image ''' # Get all the metadata metadata = getMetadata(photo_id) if not metadata: #Incorrect photo_id return photo = downloadPhoto(metadata['url']) duplicates = findDuplicateImages(photo) #duplicates = False # We don't want to upload tupes if duplicates: wikipedia.output(u'Found duplicate image at %s' % duplicates.pop()) return title = buildTitle(photo_id, metadata) description = buildDescription(photo_id, metadata) #wikipedia.output(title) #wikipedia.output(description) bot = upload.UploadRobot(metadata['url'], description=description, useFilename=title, keepFilename=True, verifyDescription=False, targetSite = wikipedia.getSite('commons', 'commons')) bot.upload_image(debug=False)
a00a887bb5181eb77db0c194e5745c0cfde2fccf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7426/a00a887bb5181eb77db0c194e5745c0cfde2fccf/navy_bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 19934, 12, 17232, 67, 350, 4672, 9163, 4147, 603, 279, 2202, 10701, 622, 1062, 2207, 5591, 18, 11589, 93, 18, 81, 330, 19, 1945, 67, 7526, 18, 28264, 35, 350, 27127, 17232, 67, 350, 34, 336, 326, 1982, 16, 866, 364, 9417, 281, 16, 1361, 2477, 16, 3617, 326, 1316, 9163, 225, 468, 968, 777, 326, 1982, 1982, 273, 11159, 12, 17232, 67, 350, 13, 225, 309, 486, 1982, 30, 468, 16268, 10701, 67, 350, 327, 225, 10701, 273, 4224, 19934, 12, 4165, 3292, 718, 19486, 225, 11211, 273, 1104, 11826, 8946, 12, 17232, 13, 468, 22449, 273, 1083, 468, 1660, 2727, 1404, 2545, 358, 3617, 15822, 281, 309, 11211, 30, 21137, 18, 2844, 12, 89, 11, 2043, 6751, 1316, 622, 738, 87, 11, 738, 11211, 18, 5120, 10756, 327, 225, 2077, 273, 1361, 4247, 12, 17232, 67, 350, 16, 1982, 13, 2477, 273, 1361, 3291, 12, 17232, 67, 350, 16, 1982, 13, 225, 468, 11999, 13744, 18, 2844, 12, 2649, 13, 468, 11999, 13744, 18, 2844, 12, 3384, 13, 225, 775, 30, 2512, 273, 3617, 18, 4777, 20605, 12, 4165, 3292, 718, 17337, 2477, 33, 3384, 16, 999, 5359, 33, 2649, 16, 3455, 5359, 33, 5510, 16, 3929, 3291, 33, 8381, 16, 1018, 4956, 273, 21137, 18, 588, 4956, 2668, 6054, 87, 2187, 296, 6054, 87, 26112, 2512, 18, 6327, 67, 2730, 12, 4148, 33, 8381, 13, 1335, 21137, 18, 1964, 2768, 30, 225, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 19934, 12, 17232, 67, 350, 4672, 9163, 4147, 603, 279, 2202, 10701, 622, 1062, 2207, 5591, 18, 11589, 93, 18, 81, 330, 19, 1945, 67, 7526, 18, 28264, 35, 350, 27127, 17232, 67, 350, 34, 336, 326, 1982, 16, 866, 364, 9417, 281, 16, 1361, 2477, 16, 3617, 326, 1316, 9163, 225, 468, 968, 777, 326, 1982, 1982, 273, 11159, 12, 17232, 67, 350, 13, 225, 309, 486, 1982, 30, 468, 16268, 10701, 67, 350, 327, 225, 10701, 273, 4224, 19934, 12, 4165, 3292, 718, 19486, 225, 11211, 273, 1104, 11826, 8946, 12, 17232, 13, 468, 22449, 273, 1083, 468, 1660, 2727, 1404, 2545, 358, 3617, 15822, 281, 309, 11211, 30, 21137, 18, 2844, 12, 89, 11, 2 ]
cmd += [ options.params ]
cmd += [options.params]
def runStartupPerfTests(options, timer, largeData=False, repeat=3, logger=log): """ Run startup time tests. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> runStartupPerfTests(options, '/usr/bin/time') Creating repository for startup time tests /.../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log .../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 False >>> runStartupPerfTests(options, '/usr/bin/time', repeat=1) Creating repository for startup time tests /.../RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log /.../RunChandler --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 False >>> runStartupPerfTests(options, '/usr/bin/time', largeData=True) Creating repository for startup time tests /.../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --restore=test_profile/__repository__.001 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log .../release/RunChandler --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup_with_large_calendar 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 False >>> options.tbox = True >>> runStartupPerfTests(options, '/usr/bin/time') Creating repository for startup time tests /.../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log .../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 <BLANKLINE> Startup [#TINDERBOX# Status = PASSED] OSAF_QA: Startup | ... | 0.00 #TINDERBOX# Testname = Startup #TINDERBOX# Status = PASSED #TINDERBOX# Time elapsed = 0.00 (seconds) - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False """ if repeat < 3: repeat = 3 # You can't get an accurate number otherwise # Create test repo if options.verbose: log('Creating repository for startup time tests') cmd = [ options.runchandler['release'], '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--scriptFile=%s' % os.path.join('tools', 'QATestScripts', 'Performance', 'quit.py') ] if not largeData: cmd += ['--create'] timeout = 180 name = 'Startup' else: cmd += ['--restore=%s' % os.path.join(options.profileDir, '__repository__.001')] timeout = 600 name = 'Startup_with_large_calendar' if options.params: cmd += [ options.params ] if options.verbose: log(' '.join(cmd)) if options.dryrun: result = 0 else: result = build_lib.runCommand(cmd, timeout=timeout, logger=logger) if result != 0: log('***Error exit code=%d, creating %s repository' % (result, name)) failedTests.append(name) return True if options.dryrun: log('- + ' * 15) else: logger('- + ' * 15) # Time startup values = [] timeLog = os.path.join(options.profileDir, 'time.log') if not options.dryrun: if os.path.isfile(timeLog): os.remove(timeLog) cmd = [ timer, r'--format=%e', '-o', timeLog, options.runchandler['release'], '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--scriptFile=%s' % os.path.join('tools', 'QATestScripts', 'Performance', 'end.py') ] if options.params: cmd += [ options.params ] if options.verbose: log(' '.join(cmd)) log(name.ljust(33), newline=' ') for _x in range(repeat): if options.dryrun: result = 0 else: result = build_lib.runCommand(cmd, timeout=180, logger=logger) if result == 0: if options.dryrun: line = '0.0' else: line = open(timeLog).readline()[:-1] try: value = float(line) except ValueError, e: log('| %s' % str(e)) failedTests.append(name) return True log(('%02.2f' % value).rjust(6), newline=' ') values.append(value) else: log('| failed') failedTests.append(name) return True if options.dryrun: log('- + ' * 15) else: logger('- + ' * 15) else: values.sort() value = values[repeat/2] log(' | ', newline='') log(('%02.2f' % value).rjust(6) , newline='') log(u' \u00B1 '.encode('utf8'), newline='') # Unicode PLUS-MINUS SIGN log(('%02.2f' % stddev(values)).rjust(6)) if options.tbox: revision = getattr(build_lib.loadModuleFromFile(os.path.join(options.chandlerHome, 'version.py'), 'vmodule'), 'revision', '') log('') log('%s [#TINDERBOX# Status = PASSED]' % name) log('OSAF_QA: %s | %s | %02.2f' % (name, revision, value)) log('#TINDERBOX# Testname = %s' % name) log('#TINDERBOX# Status = PASSED') log('#TINDERBOX# Time elapsed = %02.2f (seconds)' % value) if options.dryrun: log('- + ' * 15) else: logger('- + ' * 15) return False
64e3ec7e167097dc0b4afb4eadc40bc6adec660f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/64e3ec7e167097dc0b4afb4eadc40bc6adec660f/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22178, 22016, 14650, 12, 2116, 16, 5441, 16, 7876, 751, 33, 8381, 16, 7666, 33, 23, 16, 1194, 33, 1330, 4672, 3536, 1939, 11850, 813, 7434, 18, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 225, 4080, 1086, 22178, 22016, 14650, 12, 2116, 16, 1173, 13640, 19, 4757, 19, 957, 6134, 21837, 3352, 364, 11850, 813, 7434, 342, 2777, 19, 9340, 19, 1997, 782, 464, 749, 2777, 1493, 14683, 33, 16341, 1493, 5040, 1621, 33, 3813, 67, 5040, 1493, 1065, 2183, 743, 33, 6642, 19, 24750, 19, 751, 2697, 1493, 4263, 812, 33, 6642, 19, 53, 789, 395, 15041, 19, 25024, 19, 27176, 18, 2074, 1493, 2640, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 342, 13640, 19, 4757, 19, 957, 1493, 2139, 5095, 73, 300, 83, 1842, 67, 5040, 19, 957, 18, 1330, 1372, 19, 9340, 19, 1997, 782, 464, 749, 2777, 1493, 14683, 33, 16341, 1493, 5040, 1621, 33, 3813, 67, 5040, 1493, 1065, 2183, 743, 33, 6642, 19, 24750, 19, 751, 2697, 1493, 4263, 812, 33, 6642, 19, 53, 789, 395, 15041, 19, 25024, 19, 409, 18, 2074, 3603, 416, 11794, 374, 18, 713, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22178, 22016, 14650, 12, 2116, 16, 5441, 16, 7876, 751, 33, 8381, 16, 7666, 33, 23, 16, 1194, 33, 1330, 4672, 3536, 1939, 11850, 813, 7434, 18, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 225, 4080, 1086, 22178, 22016, 14650, 12, 2116, 16, 1173, 13640, 19, 4757, 19, 957, 6134, 21837, 3352, 364, 11850, 813, 7434, 342, 2777, 19, 9340, 19, 1997, 782, 464, 749, 2777, 1493, 14683, 33, 16341, 1493, 5040, 1621, 33, 3813, 67, 5040, 1493, 1065, 2183, 743, 33, 6642, 19, 24750, 19, 751, 2697, 1493, 4263, 812, 33, 6642, 19, 53, 789, 395, 2 ]
site=site, timestamp__gt=this_month).aggregate(Max('page_count'))['page_count__max']
site=site, completion_time__gte=this_month).aggregate(Sum('page_count'))['page_count__sum']
def home(request): site = request.site updates = site.scheduledupdate_set.all() email_subscribers = Subscriber.via_email.filter(site=site) fax_subscribers = Subscriber.via_fax.filter(site=site) total_pages = Fax.objects.filter(site=site).aggregate(Max('page_count'))['page_count__max'] this_month = datetime(datetime.now().year, datetime.now().month, 1) pages_for_month = Fax.objects.filter( site=site, timestamp__gt=this_month).aggregate(Max('page_count'))['page_count__max'] return direct_to_template(request, template='dashboard/marketing.html', extra_context={ 'updates': updates, 'email_subscribers': email_subscribers, 'fax_subscribers': fax_subscribers, 'total_pages': total_pages, 'pages_for_month': pages_for_month })
6dc4f42cb179949cc59ad43b8f830b217530994c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9903/6dc4f42cb179949cc59ad43b8f830b217530994c/marketing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6382, 12, 2293, 4672, 2834, 273, 590, 18, 4256, 4533, 273, 2834, 18, 23307, 2725, 67, 542, 18, 454, 1435, 2699, 67, 1717, 17769, 273, 21339, 18, 21985, 67, 3652, 18, 2188, 12, 4256, 33, 4256, 13, 16969, 67, 1717, 17769, 273, 21339, 18, 21985, 67, 507, 92, 18, 2188, 12, 4256, 33, 4256, 13, 2078, 67, 7267, 273, 21603, 18, 6911, 18, 2188, 12, 4256, 33, 4256, 2934, 18573, 12, 2747, 2668, 2433, 67, 1883, 26112, 3292, 2433, 67, 1883, 972, 1896, 3546, 333, 67, 7496, 273, 3314, 12, 6585, 18, 3338, 7675, 6874, 16, 3314, 18, 3338, 7675, 7496, 16, 404, 13, 4689, 67, 1884, 67, 7496, 273, 21603, 18, 6911, 18, 2188, 12, 2834, 33, 4256, 16, 8364, 67, 957, 972, 27225, 33, 2211, 67, 7496, 2934, 18573, 12, 3495, 2668, 2433, 67, 1883, 26112, 3292, 2433, 67, 1883, 972, 1364, 3546, 327, 2657, 67, 869, 67, 3202, 12, 2293, 16, 1542, 2218, 13479, 19, 3355, 21747, 18, 2620, 2187, 2870, 67, 2472, 5899, 296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 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6382, 12, 2293, 4672, 2834, 273, 590, 18, 4256, 4533, 273, 2834, 18, 23307, 2725, 67, 542, 18, 454, 1435, 2699, 67, 1717, 17769, 273, 21339, 18, 21985, 67, 3652, 18, 2188, 12, 4256, 33, 4256, 13, 16969, 67, 1717, 17769, 273, 21339, 18, 21985, 67, 507, 92, 18, 2188, 12, 4256, 33, 4256, 13, 2078, 67, 7267, 273, 21603, 18, 6911, 18, 2188, 12, 4256, 33, 4256, 2934, 18573, 12, 2747, 2668, 2433, 67, 1883, 26112, 3292, 2433, 67, 1883, 972, 1896, 3546, 333, 67, 7496, 273, 3314, 12, 6585, 18, 3338, 7675, 6874, 16, 3314, 18, 3338, 7675, 7496, 16, 404, 13, 4689, 67, 1884, 67, 7496, 273, 21603, 18, 6911, 18, 2188, 12, 2834, 33, 2 ]
return x.extend(y)
if type(y) == Num.ArrayType: y = y.tolist() if type(y) == types.ListType: x.extend(y) elif datalen(y) == 1: x.append(y) return list2array(x)
def _listjoin(x,y): "join two lists" "return list of dictionary items" if type(x) == Num.ArrayType: x = x.tolist() if type(x) == types.ListType: return x.extend(y)
d6ca5dfdabbb3462996f873fbd59d12889ec71a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11796/d6ca5dfdabbb3462996f873fbd59d12889ec71a0/TdlBuiltins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 5701, 12, 92, 16, 93, 4672, 315, 5701, 2795, 6035, 6, 315, 2463, 666, 434, 3880, 1516, 6, 309, 618, 12, 92, 13, 422, 6805, 18, 27182, 30, 619, 273, 619, 18, 3490, 376, 1435, 309, 618, 12, 92, 13, 422, 1953, 18, 19366, 30, 327, 619, 18, 14313, 12, 93, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 5701, 12, 92, 16, 93, 4672, 315, 5701, 2795, 6035, 6, 315, 2463, 666, 434, 3880, 1516, 6, 309, 618, 12, 92, 13, 422, 6805, 18, 27182, 30, 619, 273, 619, 18, 3490, 376, 1435, 309, 618, 12, 92, 13, 422, 1953, 18, 19366, 30, 327, 619, 18, 14313, 12, 93, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sections[tag] = _section(tag, title=title, secnum=secnum, pagenum=self.pagenum, level=self.level+1)
self.sections[tag] = _section(tag, title=title, secnum=secnum, pagenum=self.pagenum, level=self.level+1, open_by_default=open_by_default)
def add_section(self, tag, title=""): secnum = "%s.%d" % (self.secnum, len(self.sections.values())+1) self.sections[tag] = _section(tag, title=title, secnum=secnum, pagenum=self.pagenum, level=self.level+1) self.section_ids.append([len(self.sections.values()), tag]) return self.sections[tag]
0a9ef6e90647a2f6188dcd1101d39b03cb8c8ec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/0a9ef6e90647a2f6188dcd1101d39b03cb8c8ec9/cbcwebpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3464, 12, 2890, 16, 1047, 16, 2077, 1546, 6, 4672, 1428, 2107, 273, 2213, 87, 7866, 72, 6, 738, 261, 2890, 18, 3321, 2107, 16, 562, 12, 2890, 18, 11657, 18, 2372, 10756, 15, 21, 13, 365, 18, 11657, 63, 2692, 65, 273, 389, 3464, 12, 2692, 16, 2077, 33, 2649, 16, 1428, 2107, 33, 3321, 2107, 16, 4262, 7924, 33, 2890, 18, 9095, 7924, 16, 1801, 33, 2890, 18, 2815, 15, 21, 16, 1696, 67, 1637, 67, 1886, 33, 3190, 67, 1637, 67, 1886, 13, 365, 18, 3464, 67, 2232, 18, 6923, 3816, 1897, 12, 2890, 18, 11657, 18, 2372, 1435, 3631, 1047, 5717, 327, 365, 18, 11657, 63, 2692, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3464, 12, 2890, 16, 1047, 16, 2077, 1546, 6, 4672, 1428, 2107, 273, 2213, 87, 7866, 72, 6, 738, 261, 2890, 18, 3321, 2107, 16, 562, 12, 2890, 18, 11657, 18, 2372, 10756, 15, 21, 13, 365, 18, 11657, 63, 2692, 65, 273, 389, 3464, 12, 2692, 16, 2077, 33, 2649, 16, 1428, 2107, 33, 3321, 2107, 16, 4262, 7924, 33, 2890, 18, 9095, 7924, 16, 1801, 33, 2890, 18, 2815, 15, 21, 16, 1696, 67, 1637, 67, 1886, 33, 3190, 67, 1637, 67, 1886, 13, 365, 18, 3464, 67, 2232, 18, 6923, 3816, 1897, 12, 2890, 18, 11657, 18, 2372, 1435, 3631, 1047, 5717, 327, 365, 18, 11657, 63, 2692, 65, 2, -100, -100, -100, -100 ]
"Handle a recoverable error."
"Handle a recoverable error."
def error(self, exception):
b25f73bb9f7020358cb44af43b1b0ced01f57435 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b25f73bb9f7020358cb44af43b1b0ced01f57435/handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1520, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1520, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
1.6278054848727066 + 0.13682754839736855*I
1.62780548487270 + 0.136827548397368*I
def agm(self, right): """ EXAMPLES: sage: (1+I).agm(2-I) 1.6278054848727066 + 0.13682754839736855*I """ t = self.parent()(right)._pari_() return self.parent()(self._pari_().agm(t))
0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1737, 81, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 346, 81, 12, 22, 17, 45, 13, 404, 18, 26, 5324, 3672, 6564, 5193, 11035, 5324, 20, 397, 374, 18, 3437, 9470, 5324, 6564, 28, 5520, 27, 5718, 28, 14, 45, 3536, 268, 273, 365, 18, 2938, 1435, 12, 4083, 2934, 67, 1065, 77, 67, 1435, 327, 365, 18, 2938, 1435, 12, 2890, 6315, 1065, 77, 67, 7675, 346, 81, 12, 88, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1737, 81, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 346, 81, 12, 22, 17, 45, 13, 404, 18, 26, 5324, 3672, 6564, 5193, 11035, 5324, 20, 397, 374, 18, 3437, 9470, 5324, 6564, 28, 5520, 27, 5718, 28, 14, 45, 3536, 268, 273, 365, 18, 2938, 1435, 12, 4083, 2934, 67, 1065, 77, 67, 1435, 327, 365, 18, 2938, 1435, 12, 2890, 6315, 1065, 77, 67, 7675, 346, 81, 12, 88, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "profle edit button clicked"
print "profile edit button clicked"
def on_profile_edit_button_clicked(self, object): print "profle edit button clicked"
116d68ae27d7171816712ce03924ad7f5b504ac7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2456/116d68ae27d7171816712ce03924ad7f5b504ac7/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5040, 67, 4619, 67, 5391, 67, 7475, 329, 12, 2890, 16, 733, 4672, 1172, 315, 16121, 298, 3874, 3568, 17688, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Implement all elements related properties and functionality. Only one instance will be availabe for the whole application.It's better to have 'class elem' as an inner class, so user will not be able to create an element him/her-self, which normally will cause trouble. By doing that, it makes our code more modular and bugs more localized, easier to test. Whenever any element color/rad changes, it will depend on the user who use the element to update its display---Huaicai 3/8/05"""
"""Implement all elements related properties and functionality. Only one instance will be availabe for the whole application. It's better to have 'class elem' as an inner class, so user will not be able to create an element him/her-self, which normally will cause trouble. By doing that, it makes our code more modular and bugs more localized, easier to test. Whenever any element color/rad changes, it will depend on the user who use the element to update its display---Huaicai 3/8/05 """
def __new__(cls, *args, **kwds): if not cls._singletons.has_key(cls): cls._singletons[cls] = object.__new__(cls) return cls._singletons[cls]
3b028f76618d4601127f8e68774efbbf6c318379 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3b028f76618d4601127f8e68774efbbf6c318379/elements.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 25577, 4672, 309, 486, 2028, 6315, 24487, 87, 18, 5332, 67, 856, 12, 6429, 4672, 2028, 6315, 24487, 87, 63, 6429, 65, 273, 733, 16186, 2704, 972, 12, 6429, 13, 327, 2028, 6315, 24487, 87, 63, 6429, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 25577, 4672, 309, 486, 2028, 6315, 24487, 87, 18, 5332, 67, 856, 12, 6429, 4672, 2028, 6315, 24487, 87, 63, 6429, 65, 273, 733, 16186, 2704, 972, 12, 6429, 13, 327, 2028, 6315, 24487, 87, 63, 6429, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.setUp() self.newHand()
self.newGame()
def __init__(self): super(MahJongg, self).__init__() self.dbhandle = QSqlDatabase("QSQLITE") self.dbpath = kdecore.KGlobal.dirs().locateLocal("appdata","kmj.db") self.dbhandle.setDatabaseName(self.dbpath) dbExists = os.path.exists(self.dbpath) if not self.dbhandle.open(): logMessage(self.dbhandle.lastError().text()) sys.exit(1) if not dbExists: self.createTables() self.addTestData() self.playerwindow = None self.scoreTableWindow= None self.Players = [None, None, None, None] self.roundsFinished = 0 self.winner = None self.shiftRules = 'SWEN,SE,WE' self.setupUi() self.setupActions() self.creategui() self.setUp() self.newHand()
3a20e4bebc90562c28295f7106cbd388d688a133 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/3a20e4bebc90562c28295f7106cbd388d688a133/kmj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 49, 9795, 46, 932, 75, 16, 365, 2934, 972, 2738, 972, 1435, 365, 18, 1966, 4110, 273, 2238, 5101, 4254, 2932, 53, 3997, 5398, 7923, 365, 18, 1966, 803, 273, 417, 323, 3644, 18, 47, 5160, 18, 8291, 7675, 25450, 2042, 2932, 2910, 892, 15937, 18353, 78, 18, 1966, 7923, 365, 18, 1966, 4110, 18, 542, 4254, 461, 12, 2890, 18, 1966, 803, 13, 1319, 4002, 273, 1140, 18, 803, 18, 1808, 12, 2890, 18, 1966, 803, 13, 309, 486, 365, 18, 1966, 4110, 18, 3190, 13332, 19139, 12, 2890, 18, 1966, 4110, 18, 2722, 668, 7675, 955, 10756, 2589, 18, 8593, 12, 21, 13, 309, 486, 1319, 4002, 30, 365, 18, 2640, 6905, 1435, 365, 18, 1289, 4709, 751, 1435, 365, 18, 14872, 5668, 273, 599, 365, 18, 6355, 1388, 3829, 33, 599, 365, 18, 1749, 3907, 273, 306, 7036, 16, 599, 16, 599, 16, 599, 65, 365, 18, 27950, 10577, 273, 374, 365, 18, 91, 7872, 273, 599, 365, 18, 4012, 4478, 273, 296, 18746, 1157, 16, 1090, 16, 6950, 11, 365, 18, 8401, 13943, 1435, 365, 18, 8401, 6100, 1435, 365, 18, 2640, 20292, 1435, 365, 18, 542, 1211, 1435, 365, 18, 2704, 1144, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 49, 9795, 46, 932, 75, 16, 365, 2934, 972, 2738, 972, 1435, 365, 18, 1966, 4110, 273, 2238, 5101, 4254, 2932, 53, 3997, 5398, 7923, 365, 18, 1966, 803, 273, 417, 323, 3644, 18, 47, 5160, 18, 8291, 7675, 25450, 2042, 2932, 2910, 892, 15937, 18353, 78, 18, 1966, 7923, 365, 18, 1966, 4110, 18, 542, 4254, 461, 12, 2890, 18, 1966, 803, 13, 1319, 4002, 273, 1140, 18, 803, 18, 1808, 12, 2890, 18, 1966, 803, 13, 309, 486, 365, 18, 1966, 4110, 18, 3190, 13332, 19139, 12, 2890, 18, 1966, 4110, 18, 2722, 668, 7675, 955, 10756, 2589, 18, 8593, 12, 21, 13, 309, 486, 1319, 4002, 30, 2 ]
alignment = self.OPTIONAL_HEADER.FileAlignment
def parse_sections(self, offset): """Fetch the PE file sections. The sections will be readily available in the "sections" attribute. Its attributes will contain all the section information plus "data" a buffer containing the section's data. The "Characteristics" member will be processed and attributes representing the section characteristics (with the 'IMAGE_SCN_' string trimmed from the constant's names) will be added to the section instance. Refer to the SectionStructure class for additional info. """ self.sections = [] for i in xrange(self.FILE_HEADER.NumberOfSections): section = SectionStructure(self.__IMAGE_SECTION_HEADER_format__) if not section: break section_offset = offset + section.sizeof() * i section.set_file_offset(section_offset) section.__unpack__(self.__data__[section_offset:]) self.__structures__.append(section) if section.SizeOfRawData > len(self.__data__): self.__warnings.append( ('Error parsing section %d. ' % i) + 'SizeOfRawData is larger than file.')
34820c499168b02a42d03ceff64d1c7d82d717cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4177/34820c499168b02a42d03ceff64d1c7d82d717cc/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 11657, 12, 2890, 16, 1384, 4672, 3536, 5005, 326, 16628, 585, 7178, 18, 225, 1021, 7178, 903, 506, 855, 3220, 2319, 316, 326, 315, 11657, 6, 1566, 18, 29517, 1677, 903, 912, 777, 326, 2442, 1779, 8737, 315, 892, 6, 279, 1613, 4191, 326, 2442, 1807, 501, 18, 225, 1021, 315, 7069, 4287, 6, 3140, 903, 506, 5204, 471, 1677, 5123, 326, 2442, 29385, 261, 1918, 326, 296, 13603, 67, 2312, 50, 4623, 533, 12350, 628, 326, 5381, 1807, 1257, 13, 903, 506, 3096, 358, 326, 2442, 791, 18, 225, 868, 586, 358, 326, 10092, 6999, 667, 364, 3312, 1123, 18, 3536, 225, 365, 18, 11657, 273, 5378, 225, 364, 277, 316, 12314, 12, 2890, 18, 3776, 67, 7557, 18, 9226, 15965, 4672, 2442, 273, 10092, 6999, 12, 2890, 16186, 13603, 67, 19082, 67, 7557, 67, 2139, 972, 13, 309, 486, 2442, 30, 898, 2442, 67, 3348, 273, 1384, 397, 2442, 18, 1467, 792, 1435, 380, 277, 2442, 18, 542, 67, 768, 67, 3348, 12, 3464, 67, 3348, 13, 2442, 16186, 17309, 972, 12, 2890, 16186, 892, 972, 63, 3464, 67, 3348, 30, 5717, 365, 16186, 27979, 25648, 6923, 12, 3464, 13, 225, 309, 2442, 18, 1225, 951, 31733, 405, 562, 12, 2890, 16186, 892, 972, 4672, 365, 16186, 12103, 18, 6923, 12, 7707, 668, 5811, 2442, 738, 72, 18, 296, 738, 277, 13, 397, 296, 1225, 951, 31733, 353, 10974, 2353, 585, 1093, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 11657, 12, 2890, 16, 1384, 4672, 3536, 5005, 326, 16628, 585, 7178, 18, 225, 1021, 7178, 903, 506, 855, 3220, 2319, 316, 326, 315, 11657, 6, 1566, 18, 29517, 1677, 903, 912, 777, 326, 2442, 1779, 8737, 315, 892, 6, 279, 1613, 4191, 326, 2442, 1807, 501, 18, 225, 1021, 315, 7069, 4287, 6, 3140, 903, 506, 5204, 471, 1677, 5123, 326, 2442, 29385, 261, 1918, 326, 296, 13603, 67, 2312, 50, 4623, 533, 12350, 628, 326, 5381, 1807, 1257, 13, 903, 506, 3096, 358, 326, 2442, 791, 18, 225, 868, 586, 358, 326, 10092, 6999, 667, 364, 3312, 1123, 18, 3536, 225, 365, 18, 11657, 273, 5378, 225, 364, 277, 316, 12314, 12, 2890, 18, 2 ]
except:
except Exception:
def uninstall(path): """Remove the file or directory at <path>, which is relative to the install_dir. """ try: path = os.path.join(install_dir, path) if os.path.isfile(path) or os.path.islink(path): os.remove(path) elif os.path.isdir(path): shutil.rmtree(path) else: return print 'Removed', path except: print 'Could not remove', path
fb616df6d3c978a1f4269d9eda613b2b7f78a8c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14624/fb616df6d3c978a1f4269d9eda613b2b7f78a8c6/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 803, 4672, 3536, 3288, 326, 585, 578, 1867, 622, 411, 803, 20401, 1492, 353, 3632, 358, 326, 3799, 67, 1214, 18, 3536, 775, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 5425, 67, 1214, 16, 589, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 803, 13, 578, 1140, 18, 803, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 803, 4672, 3536, 3288, 326, 585, 578, 1867, 622, 411, 803, 20401, 1492, 353, 3632, 358, 326, 3799, 67, 1214, 18, 3536, 775, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 5425, 67, 1214, 16, 589, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 803, 13, 578, 1140, 18, 803, 18, 291, 1232, 12, 803, 4672, 1140, 18, 4479, 12, 803, 13, 1327, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 11060, 18, 86, 17371, 12, 803, 13, 469, 30, 327, 1172, 296, 10026, 2187, 589, 1335, 1185, 30, 1172, 296, 4445, 486, 1206, 2187, 589, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._matrixIsTransposed = False
def __init__(self): self.isWireframe = False self.objectName = None self.accept("mouse1", self.grabPoint) self.accept("mouse1-up", self.releasePoint) self.accept("p", self.saveTo, ["/tmp/test.egg"]) self.accept("b", self.toggleOobe) self.accept("r", self.toggleRenderMode) self.accept("escape", self.hideTrack) self.selectedObject = None self.points = [] self.surface = None self._matrixIsTransposed = False self.tempVertexes = []
225697350492711b09cc292c7229559fdda28fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/225697350492711b09cc292c7229559fdda28fd4/preview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 291, 15249, 3789, 273, 1083, 365, 18, 1612, 461, 273, 599, 225, 365, 18, 9436, 2932, 11697, 21, 3113, 365, 18, 2752, 70, 2148, 13, 365, 18, 9436, 2932, 11697, 21, 17, 416, 3113, 365, 18, 9340, 2148, 13, 365, 18, 9436, 2932, 84, 3113, 365, 18, 5688, 774, 16, 8247, 19, 5645, 19, 3813, 18, 23171, 6, 5717, 365, 18, 9436, 2932, 70, 3113, 365, 18, 14401, 51, 947, 73, 13, 365, 18, 9436, 2932, 86, 3113, 365, 18, 14401, 3420, 2309, 13, 365, 18, 9436, 2932, 6939, 3113, 365, 18, 11248, 4402, 13, 225, 365, 18, 8109, 921, 273, 599, 365, 18, 4139, 273, 5378, 365, 18, 18266, 273, 599, 225, 365, 18, 5814, 6475, 281, 273, 5378, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 291, 15249, 3789, 273, 1083, 365, 18, 1612, 461, 273, 599, 225, 365, 18, 9436, 2932, 11697, 21, 3113, 365, 18, 2752, 70, 2148, 13, 365, 18, 9436, 2932, 11697, 21, 17, 416, 3113, 365, 18, 9340, 2148, 13, 365, 18, 9436, 2932, 84, 3113, 365, 18, 5688, 774, 16, 8247, 19, 5645, 19, 3813, 18, 23171, 6, 5717, 365, 18, 9436, 2932, 70, 3113, 365, 18, 14401, 51, 947, 73, 13, 365, 18, 9436, 2932, 86, 3113, 365, 18, 14401, 3420, 2309, 13, 365, 18, 9436, 2932, 6939, 3113, 365, 18, 11248, 4402, 13, 225, 365, 18, 8109, 921, 273, 599, 365, 18, 4139, 273, 5378, 365, 18, 18266, 2 ]
if e.errno == errno.EBADF:
if err == errno.EBADF:
def remove_pending_socket(socket): with self.send_pending_lock: self.send_sockets_pending.remove(sock)
4ed866cd9ae305434b20d68b82167e9173864337 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/4ed866cd9ae305434b20d68b82167e9173864337/torbel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 9561, 67, 7814, 12, 7814, 4672, 598, 365, 18, 4661, 67, 9561, 67, 739, 30, 365, 18, 4661, 67, 7814, 87, 67, 9561, 18, 4479, 12, 15031, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 9561, 67, 7814, 12, 7814, 4672, 598, 365, 18, 4661, 67, 9561, 67, 739, 30, 365, 18, 4661, 67, 7814, 87, 67, 9561, 18, 4479, 12, 15031, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if type(port) in [type(''), type(u'')]:
if type(port) in [type(''), type(u'')]:
def setPort(self, port): """Change the port. The attribute portstr is set to a string that contains the name of the port.""" was_open = self._isOpen if was_open: self.close() if port is not None: if type(port) in [type(''), type(u'')]: #strings are taken directly self.portstr = port else: self.portstr = self.makeDeviceName(port) else: self.portstr = None self._port = port if was_open: self.open()
0a06dd5133ebccedf57bfd5cad2b2ea3aa21d306 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/0a06dd5133ebccedf57bfd5cad2b2ea3aa21d306/serialutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2617, 12, 2890, 16, 1756, 4672, 3536, 3043, 326, 1756, 18, 1021, 1566, 1756, 701, 353, 444, 358, 279, 533, 716, 1914, 326, 508, 434, 326, 1756, 12123, 225, 1703, 67, 3190, 273, 365, 6315, 291, 3678, 309, 1703, 67, 3190, 30, 365, 18, 4412, 1435, 309, 1756, 353, 486, 599, 30, 309, 618, 12, 655, 13, 316, 306, 723, 2668, 19899, 618, 12, 89, 11, 6134, 14542, 4202, 468, 10219, 854, 9830, 5122, 365, 18, 655, 701, 273, 1756, 469, 30, 365, 18, 655, 701, 273, 365, 18, 6540, 3654, 461, 12, 655, 13, 469, 30, 365, 18, 655, 701, 273, 599, 365, 6315, 655, 273, 1756, 309, 1703, 67, 3190, 30, 365, 18, 3190, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 18, 1021, 1566, 1756, 701, 353, 444, 358, 279, 533, 716, 1914, 326, 508, 434, 326, 1756, 12123, 225, 1703, 67, 3190, 273, 365, 6315, 291, 3678, 309, 1703, 67, 3190, 30, 365, 18, 4412, 1435, 309, 1756, 353, 486, 599, 30, 309, 618, 12, 655, 13, 316, 306, 723, 2668, 19899, 618, 12, 89, 11, 6134, 14542, 4202, 468, 10219, 854, 9830, 5122, 365, 18, 655, 701, 273, 1756, 469, 30, 365, 18, 655, 701, 273, 365, 18, 6540, 3654, 461, 12, 655, 13, 469, 30, 365, 18, 655, 701, 273, 599, 365, 6315, 655, 273, 1756, 309, 1703, 67, 3190, 30, 365, 18, 3190, 1435, 2 ]
supported = ('html', 'html4css1', 'xhtml')
supported = ('odt', )
def get_level(self): return self.level
3d85a55e9c4b1da5e9fc79b2cd9e901ee1d0fce0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1532/3d85a55e9c4b1da5e9fc79b2cd9e901ee1d0fce0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2815, 12, 2890, 4672, 327, 365, 18, 2815, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2815, 12, 2890, 4672, 327, 365, 18, 2815, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.last_event_y = event.y - self.get_transformed_position()[1] - self.padding scroller_position = event.y - self.get_transformed_position()[1] - self.padding
self.last_event_y = event.y - self.get_transformed_position()[1] - self.padding - self.scroller_height/2 scroller_position = event.y - self.get_transformed_position()[1] - self.padding - self.scroller_height/2
def on_scroll_move(self, source, event): if self.h == False : if self.last_event_y is None: return clutter.grab_pointer(self.scroller) self.last_event_y = event.y - self.get_transformed_position()[1] - self.padding scroller_position = event.y - self.get_transformed_position()[1] - self.padding self.scroller_position_percent = scroller_position/(self.height - 2*self.padding - self.scroller_height) else : if self.last_event_x is None: return clutter.grab_pointer(self.scroller) self.last_event_x = event.x - self.get_transformed_position()[0] - self.padding scroller_position = event.x - self.get_transformed_position()[0] - self.padding self.scroller_position_percent = scroller_position/(self.height - 2*self.padding - self.scroller_height) self.queue_relayout()
ee7c4622a4459d4bb3b702544f874e5bacb6e698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/ee7c4622a4459d4bb3b702544f874e5bacb6e698/scrollbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 12033, 67, 8501, 12, 2890, 16, 1084, 16, 871, 4672, 309, 365, 18, 76, 422, 1083, 294, 309, 365, 18, 2722, 67, 2575, 67, 93, 353, 599, 30, 327, 927, 18220, 18, 2752, 70, 67, 10437, 12, 2890, 18, 1017, 1539, 13, 365, 18, 2722, 67, 2575, 67, 93, 273, 871, 18, 93, 300, 365, 18, 588, 67, 6547, 329, 67, 3276, 1435, 63, 21, 65, 300, 365, 18, 9598, 300, 365, 18, 1017, 1539, 67, 4210, 19, 22, 888, 1539, 67, 3276, 273, 871, 18, 93, 300, 365, 18, 588, 67, 6547, 329, 67, 3276, 1435, 63, 21, 65, 300, 365, 18, 9598, 300, 365, 18, 1017, 1539, 67, 4210, 19, 22, 365, 18, 1017, 1539, 67, 3276, 67, 8849, 273, 888, 1539, 67, 3276, 19, 12, 2890, 18, 4210, 300, 576, 14, 2890, 18, 9598, 300, 365, 18, 1017, 1539, 67, 4210, 13, 469, 294, 309, 365, 18, 2722, 67, 2575, 67, 92, 353, 599, 30, 327, 927, 18220, 18, 2752, 70, 67, 10437, 12, 2890, 18, 1017, 1539, 13, 365, 18, 2722, 67, 2575, 67, 92, 273, 871, 18, 92, 300, 365, 18, 588, 67, 6547, 329, 67, 3276, 1435, 63, 20, 65, 300, 365, 18, 9598, 888, 1539, 67, 3276, 273, 871, 18, 92, 300, 365, 18, 588, 67, 6547, 329, 67, 3276, 1435, 63, 20, 65, 300, 365, 18, 9598, 365, 18, 1017, 1539, 67, 3276, 67, 8849, 273, 888, 1539, 67, 3276, 19, 12, 2890, 18, 4210, 300, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 12033, 67, 8501, 12, 2890, 16, 1084, 16, 871, 4672, 309, 365, 18, 76, 422, 1083, 294, 309, 365, 18, 2722, 67, 2575, 67, 93, 353, 599, 30, 327, 927, 18220, 18, 2752, 70, 67, 10437, 12, 2890, 18, 1017, 1539, 13, 365, 18, 2722, 67, 2575, 67, 93, 273, 871, 18, 93, 300, 365, 18, 588, 67, 6547, 329, 67, 3276, 1435, 63, 21, 65, 300, 365, 18, 9598, 300, 365, 18, 1017, 1539, 67, 4210, 19, 22, 888, 1539, 67, 3276, 273, 871, 18, 93, 300, 365, 18, 588, 67, 6547, 329, 67, 3276, 1435, 63, 21, 65, 300, 365, 18, 9598, 300, 365, 18, 1017, 1539, 67, 4210, 19, 22, 365, 18, 1017, 2 ]
def _configure(self, event): self._W = event.width-DW def _init_options(self, mainframe): self._leftImage=PhotoImage(master=self._top, data=LEFT_GIF) self._rightImage=PhotoImage(master=self._top, data=RIGHT_GIF)
def _init_messages(self, msgsframe, ctrlframe): self._downImage = PhotoImage(master=self._root, data=DOWN_GIF) self._upImage = PhotoImage(master=self._root, data=UP_GIF) b1 = Button(ctrlframe, text="Messages", justify='center', command=self._messages_toggle, underline=0, highlightthickness=0, activebackground=BG_COLOR, border=0, relief='flat', padx=2, pady=0, **COLOR_CONFIG) b2 = Button(ctrlframe, image=self._downImage, relief='flat', border=0, command=self._messages_toggle, activebackground=BG_COLOR, **COLOR_CONFIG) self._message_button = b2 self._messages_visible = 0 b2.pack(side="left") b1.pack(side="left") f = Frame(msgsframe, background=BG_COLOR) f.pack(side='top', expand=1, fill='both') messages = Text(f, width=80, height=10, **ENTRY_CONFIG) messages['state'] = 'disabled' messages.pack(fill='both', expand=1, side='left') self._messages = messages sb = Scrollbar(f, orient='vertical', **SB_CONFIG) sb.pack(fill='y', side='right') sb['command'] = messages.yview messages['yscrollcommand'] = sb.set messages.tag_config('error', foreground=ERROR_COLOR) messages.tag_config('warning', foreground=WARNING_COLOR) messages.tag_config('guierror', foreground=GUIERROR_COLOR) messages.tag_config('message', foreground=MESSAGE_COLOR) messages.tag_config('header', foreground=HEADER_COLOR) messages.tag_config('uline', underline=1) self._in_header = 0 self._last_tag = 'error' buttons = Frame(msgsframe, background=BG_COLOR) buttons.pack(side='bottom', fill='x') self._show_errors = IntVar(self._root) self._show_errors.set(1) self._show_warnings = IntVar(self._root) self._show_warnings.set(1) self._show_messages = IntVar(self._root) self._show_messages.set(1) Checkbutton(buttons, text='Show Messages', var=self._show_messages, command=self._update_msg_tags, **SHOWMSG_CONFIG).pack(side='left') Checkbutton(buttons, text='Show Warnings', var=self._show_warnings, command=self._update_msg_tags, **SHOWWRN_CONFIG).pack(side='left') Checkbutton(buttons, text='Show Errors', var=self._show_errors, command=self._update_msg_tags, **SHOWERR_CONFIG).pack(side='left') def _update_msg_tags(self, *e): elide_errors = not self._show_errors.get() elide_warnings = not self._show_warnings.get() elide_messages = not self._show_messages.get() elide_headers = elide_errors and elide_warnings self._messages.tag_config('error', elide=elide_errors) self._messages.tag_config('guierror', elide=elide_errors) self._messages.tag_config('warning', elide=elide_warnings) self._messages.tag_config('message', elide=elide_messages) self._messages.tag_config('header', elide=elide_headers) def _init_options(self, optsframe, ctrlframe): self._leftImage=PhotoImage(master=self._root, data=LEFT_GIF) self._rightImage=PhotoImage(master=self._root, data=RIGHT_GIF)
def _configure(self, event): self._W = event.width-DW
4cf6d74130c32443c10897614b39d1c2c512796c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4cf6d74130c32443c10897614b39d1c2c512796c/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14895, 12, 2890, 16, 871, 4672, 365, 6315, 59, 273, 871, 18, 2819, 17, 40, 59, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14895, 12, 2890, 16, 871, 4672, 365, 6315, 59, 273, 871, 18, 2819, 17, 40, 59, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
key = data_id['model']
key = data_id.model
def _get_views(self, cr, uid, ids, field_name=None, arg=None, context={}): res = {} model_data_obj = self.pool.get('ir.model.data') view_obj = self.pool.get('ir.ui.view') report_obj = self.pool.get('ir.actions.report.xml') menu_obj = self.pool.get('ir.ui.menu') mlist = self.browse(cr, uid, ids, context=context) mnames = {} for m in mlist: mnames[m.name] = m.id res[m.id] = { 'menus_by_module':[], 'reports_by_module':[], 'views_by_module': [] } view_id = model_data_obj.search(cr,uid,[('module','in', mnames.keys()), ('model','in',('ir.ui.view','ir.actions.report.xml','ir.ui.menu'))]) for data_id in model_data_obj.browse(cr,uid,view_id,context): # We use try except, because views or menus may not exist try: key = data_id['model'] if key=='ir.ui.view': v = view_obj.browse(cr,uid,data_id.res_id) aa = v.inherit_id and '* INHERIT ' or '' res[mnames[data_id.module]]['views_by_module'].append(aa + v.name + '('+v.type+')') elif key=='ir.actions.report.xml': res[mnames[data_id.module]]['reports_by_module'].append(report_obj.browse(cr,uid,data_id.res_id).name) elif key=='ir.ui.menu': res[mnames[data_id.module]]['menus_by_module'].append(menu_obj.browse(cr,uid,data_id.res_id).complete_name) except KeyError, e: pass for key, value in res.iteritems() : for k, v in res[key].iteritems() : res[key][k] = "\n".join(sorted(v)) return res
0c1061e4deb5a9c9963ede2ea8bc2b185ff66af8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0c1061e4deb5a9c9963ede2ea8bc2b185ff66af8/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 7061, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 33, 7036, 16, 1501, 33, 7036, 16, 819, 12938, 4672, 400, 273, 2618, 938, 67, 892, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 1476, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4881, 18, 1945, 6134, 2605, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4905, 18, 6006, 18, 2902, 6134, 3824, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4881, 18, 5414, 6134, 312, 1098, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 13, 312, 1973, 273, 2618, 364, 312, 316, 312, 1098, 30, 312, 1973, 63, 81, 18, 529, 65, 273, 312, 18, 350, 400, 63, 81, 18, 350, 65, 273, 288, 296, 26065, 67, 1637, 67, 2978, 4278, 63, 6487, 296, 20195, 67, 1637, 67, 2978, 4278, 63, 6487, 296, 7061, 67, 1637, 67, 2978, 4278, 5378, 289, 1476, 67, 350, 273, 938, 67, 892, 67, 2603, 18, 3072, 12, 3353, 16, 1911, 16, 63, 2668, 2978, 17023, 267, 2187, 312, 1973, 18, 2452, 1435, 3631, 7707, 2284, 17023, 267, 2187, 2668, 481, 18, 4881, 18, 1945, 17023, 481, 18, 4905, 18, 6006, 18, 2902, 17023, 481, 18, 4881, 18, 5414, 26112, 5717, 364, 501, 67, 350, 316, 938, 67, 892, 67, 2603, 18, 25731, 12, 3353, 16, 1911, 16, 1945, 67, 350, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 7061, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 33, 7036, 16, 1501, 33, 7036, 16, 819, 12938, 4672, 400, 273, 2618, 938, 67, 892, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 1476, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4881, 18, 1945, 6134, 2605, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4905, 18, 6006, 18, 2902, 6134, 3824, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4881, 18, 5414, 6134, 312, 1098, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 13, 312, 1973, 273, 2618, 2 ]
this = apply(_quickfix.new_TradingSessionID, args)
this = _quickfix.new_TradingSessionID(*args)
def __init__(self, *args): this = apply(_quickfix.new_TradingSessionID, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1609, 7459, 2157, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1609, 7459, 2157, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
next = self.e.animation.state_next()
next_state = self.e.animation.state_next()
def _update_states(self, emissor, data): step = self.e.animation.state self["main"]["current"].show_value() self["main"]["current"].value = str(step)
c238a894a54048234d34b4e1ffb8ac53a7f03bba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/c238a894a54048234d34b4e1ffb8ac53a7f03bba/animations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 7992, 12, 2890, 16, 801, 1054, 280, 16, 501, 4672, 2235, 273, 365, 18, 73, 18, 30822, 18, 2019, 365, 9614, 5254, 6, 6362, 6, 2972, 6, 8009, 4500, 67, 1132, 1435, 365, 9614, 5254, 6, 6362, 6, 2972, 6, 8009, 1132, 273, 609, 12, 4119, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]