rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
self.assertIsInstance(items[0][0], int) self.assertIsInstance(items[0][1], str)
self.assertTrue(isinstance(items[0][0], int)) self.assertTrue(isinstance(items[0][1], str))
def test01_basic(self): d = db.DB()
b62bf81229c1b9502246f627f8284f73d7dd31ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/b62bf81229c1b9502246f627f8284f73d7dd31ac/test_recno.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 13240, 12, 2890, 4672, 302, 273, 1319, 18, 2290, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1611, 67, 13240, 12, 2890, 4672, 302, 273, 1319, 18, 2290, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 run_one_example():
class subgroup_comparator: def __init__(self,symmetry): self.symmetry = symmetry def get_input_symmetry_subgroups(self): cb_op_input_to_primitive = self.symmetry.change_of_basis_op_to_primitive_setting() primitive_symmetry = self.symmetry.primitive_setting() cb_op_input_to_minimum = primitive_symmetry.change_of_basis_op_to_minimum_cell() * cb_op_input_to_primitive subgroup_list = iotbx_converter( self.symmetry.change_basis(cb_op_input_to_minimum).unit_cell(),max_delta=3.0, bravais_types_only=False, space_group_symbol= str(self.symmetry.change_basis(cb_op_input_to_minimum).space_group_info()), force_minimum=False,interest_focus="input_symmetry") return subgroup_list def get_metric_symmetry_subgroups(self): subgroup_list = lattice_symmetry.metric_subgroups( self.symmetry,3.0,bravais_types_only=False, best_monoclinic_beta=False).result_groups return subgroup_list def show_list(self,any_subgroup_list): for subgroup in any_subgroup_list: subgroup['best_subsym'].show_summary() print def get_best_subsym_list(self, any_subgroup_list): return [subgroup['best_subsym'] for subgroup in any_subgroup_list] def get_list_as_string(self,any_subgroup_list): S = StringIO.StringIO() pickle.dump( [subgroup['best_subsym'] for subgroup in any_subgroup_list], S) return S.getvalue() def get_string_as_list(self,any_subgroup_string): S = StringIO.StringIO(any_subgroup_string) subgroups = pickle.load( S ) return subgroups def compare_lists(self,a,b): assert len(a) == len(b) all_comparisons=[] for item in a: all_comparisons.append(False) for ritem in b: if item.is_similar_symmetry(ritem): all_comparisons[-1]=True assert False not in all_comparisons def get_one_example(): return subgroup_comparator(symmetry =
def run_one_example(): # symmetry from 3ged crystal_symmetry = crystal.symmetry( unit_cell=uctbx.unit_cell((124.287,124.287,162.608,90.0,90.0,90.0)), space_group=sgtbx.space_group_info('I 41 2 2').group()) cb_op_input_to_primitive = crystal_symmetry.change_of_basis_op_to_primitive_setting() primitive_symmetry = crystal_symmetry.primitive_setting() cb_op_input_to_minimum = primitive_symmetry.change_of_basis_op_to_minimum_cell() * cb_op_input_to_primitive subgroup_list = iotbx_converter( crystal_symmetry.change_basis(cb_op_input_to_minimum).unit_cell(),max_delta=3.0, bravais_types_only=False, space_group_symbol= str(crystal_symmetry.change_basis(cb_op_input_to_minimum).space_group_info()), force_minimum=False,interest_focus="input_symmetry") for subgroup in subgroup_list: subgroup['best_subsym'].show_summary() print # for comparision subgroup_list = lattice_symmetry.metric_subgroups( crystal_symmetry,3.0,bravais_types_only=False, best_monoclinic_beta=False).result_groups for subgroup in subgroup_list: subgroup['best_subsym'].show_summary() print
0ab86c61448327eb063d01b796ae714dcae8a2b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/0ab86c61448327eb063d01b796ae714dcae8a2b2/tst_iotbx_converter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 667, 720, 1655, 67, 832, 2528, 30, 225, 1652, 1001, 2738, 972, 12, 2890, 16, 8117, 18042, 4672, 365, 18, 8117, 18042, 273, 26144, 225, 1652, 336, 67, 2630, 67, 8117, 18042, 67, 1717, 4650, 12, 2890, 4672, 2875, 67, 556, 67, 2630, 67, 869, 67, 683, 5025, 273, 365, 18, 8117, 18042, 18, 3427, 67, 792, 67, 23774, 67, 556, 67, 869, 67, 683, 5025, 67, 8920, 1435, 8225, 67, 8117, 18042, 273, 365, 18, 8117, 18042, 18, 683, 5025, 67, 8920, 1435, 2875, 67, 556, 67, 2630, 67, 869, 67, 15903, 273, 8225, 67, 8117, 18042, 18, 3427, 67, 792, 67, 23774, 67, 556, 67, 869, 67, 15903, 67, 3855, 1435, 380, 2875, 67, 556, 67, 2630, 67, 869, 67, 683, 5025, 225, 720, 1655, 67, 1098, 273, 30956, 70, 92, 67, 15747, 12, 365, 18, 8117, 18042, 18, 3427, 67, 23774, 12, 7358, 67, 556, 67, 2630, 67, 869, 67, 15903, 2934, 4873, 67, 3855, 9334, 1896, 67, 9878, 33, 23, 18, 20, 16, 16430, 15304, 291, 67, 2352, 67, 3700, 33, 8381, 16, 3476, 67, 1655, 67, 7175, 33, 609, 12, 2890, 18, 8117, 18042, 18, 3427, 67, 23774, 12, 7358, 67, 556, 67, 2630, 67, 869, 67, 15903, 2934, 2981, 67, 1655, 67, 1376, 1435, 3631, 2944, 67, 15903, 33, 8381, 16, 2761, 395, 67, 13923, 1546, 2630, 67, 8117, 18042, 7923, 225, 327, 720, 1655, 67, 1098, 225, 1652, 336, 67, 6899, 67, 8117, 18042, 67, 1717, 4650, 12, 2890, 4672, 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, 667, 720, 1655, 67, 832, 2528, 30, 225, 1652, 1001, 2738, 972, 12, 2890, 16, 8117, 18042, 4672, 365, 18, 8117, 18042, 273, 26144, 225, 1652, 336, 67, 2630, 67, 8117, 18042, 67, 1717, 4650, 12, 2890, 4672, 2875, 67, 556, 67, 2630, 67, 869, 67, 683, 5025, 273, 365, 18, 8117, 18042, 18, 3427, 67, 792, 67, 23774, 67, 556, 67, 869, 67, 683, 5025, 67, 8920, 1435, 8225, 67, 8117, 18042, 273, 365, 18, 8117, 18042, 18, 683, 5025, 67, 8920, 1435, 2875, 67, 556, 67, 2630, 67, 869, 67, 15903, 273, 8225, 67, 8117, 18042, 18, 3427, 67, 792, 67, 23774, 67, 556, 67, 869, 67, 15903, 67, 3855, 1435, 380, 2875, 67, 556, 67, 2630, 2 ]
mainmodule = os.path.basename(filename)
def help(): for dirname in sys.path: fullname = os.path.join(dirname, 'pdb.doc') if os.path.exists(fullname): sts = os.system('${PAGER-more} '+fullname) if sts: print '*** Pager exit status:', sts break else: print 'Sorry, can\'t find the help file "pdb.doc"', print 'along the Python search path'
25b38c89690e79e8f3bc78245b73017eed07f42e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25b38c89690e79e8f3bc78245b73017eed07f42e/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 13332, 364, 4283, 316, 2589, 18, 803, 30, 13321, 273, 1140, 18, 803, 18, 5701, 12, 12287, 16, 296, 17414, 18, 2434, 6134, 309, 1140, 18, 803, 18, 1808, 12, 21885, 4672, 27099, 273, 1140, 18, 4299, 2668, 18498, 52, 16302, 17, 10161, 97, 15126, 21885, 13, 309, 27099, 30, 1172, 296, 14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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, 2809, 13332, 364, 4283, 316, 2589, 18, 803, 30, 13321, 273, 1140, 18, 803, 18, 5701, 12, 12287, 16, 296, 17414, 18, 2434, 6134, 309, 1140, 18, 803, 18, 1808, 12, 21885, 4672, 27099, 273, 1140, 18, 4299, 2668, 18498, 52, 16302, 17, 10161, 97, 15126, 21885, 13, 309, 27099, 30, 1172, 296, 14465, 23197, 2427, 1267, 30, 2187, 27099, 898, 469, 30, 1172, 296, 28898, 16, 848, 3730, 88, 1104, 326, 2809, 585, 315, 17414, 18, 2434, 6, 2187, 1172, 296, 287, 932, 326, 6600, 1623, 589, 11, 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 ]
return (objects, output_dir)
raise TypeError, \ "'libraries' (if supplied) must be a list of strings" if library_dirs is None: library_dirs = self.library_dirs elif type (library_dirs) in (ListType, TupleType): library_dirs = list (library_dirs) + (self.library_dirs or []) else: raise TypeError, \ "'library_dirs' (if supplied) must be a list of strings" if runtime_library_dirs is None: runtime_library_dirs = self.runtime_library_dirs elif type (runtime_library_dirs) in (ListType, TupleType): runtime_library_dirs = (list (runtime_library_dirs) + (self.runtime_library_dirs or [])) else: raise TypeError, \ "'runtime_library_dirs' (if supplied) " + \ "must be a list of strings" return (libraries, library_dirs, runtime_library_dirs)
def _fix_link_args (self, objects, output_dir, takes_libs=0, libraries=None, library_dirs=None): """Typecheck and fix up some of the arguments supplied to the 'link_*' methods and return the fixed values. Specifically: ensure that 'objects' is a list; if output_dir is None, use self.output_dir; ensure that 'libraries' and 'library_dirs' are both lists, and augment them with 'self.libraries' and 'self.library_dirs'. If 'takes_libs' is true, return a tuple (objects, output_dir, libraries, library_dirs; else return (objects, output_dir)."""
f10f95d6bb7854ba2b3a8f6b554bcb8baecd7674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f10f95d6bb7854ba2b3a8f6b554bcb8baecd7674/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 67, 1232, 67, 1968, 261, 2890, 16, 2184, 16, 876, 67, 1214, 16, 5530, 67, 21571, 33, 20, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 4672, 3536, 559, 1893, 471, 2917, 731, 2690, 434, 326, 1775, 4580, 358, 326, 296, 1232, 67, 4035, 2590, 471, 327, 326, 5499, 924, 18, 225, 23043, 1230, 30, 3387, 716, 296, 6911, 11, 353, 279, 666, 31, 309, 876, 67, 1214, 353, 599, 16, 999, 365, 18, 2844, 67, 1214, 31, 3387, 716, 296, 31417, 11, 471, 296, 12083, 67, 8291, 11, 854, 3937, 6035, 16, 471, 18260, 2182, 598, 296, 2890, 18, 31417, 11, 471, 296, 2890, 18, 12083, 67, 8291, 10332, 225, 971, 296, 88, 3223, 67, 21571, 11, 353, 638, 16, 327, 279, 3193, 261, 6911, 16, 876, 67, 1214, 16, 14732, 16, 5313, 67, 8291, 31, 469, 327, 261, 6911, 16, 876, 67, 1214, 13, 12123, 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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, 2184, 16, 876, 67, 1214, 16, 5530, 67, 21571, 33, 20, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 4672, 3536, 559, 1893, 471, 2917, 731, 2690, 434, 326, 1775, 4580, 358, 326, 296, 1232, 67, 4035, 2590, 471, 327, 326, 5499, 924, 18, 225, 23043, 1230, 30, 3387, 716, 296, 6911, 11, 353, 279, 666, 31, 309, 876, 67, 1214, 353, 599, 16, 999, 365, 18, 2844, 67, 1214, 31, 3387, 716, 296, 31417, 11, 471, 296, 12083, 67, 8291, 11, 854, 3937, 6035, 16, 471, 18260, 2182, 598, 296, 2890, 18, 31417, 11, 471, 296, 2890, 18, 12083, 67, 8291, 10332, 225, 971, 296, 88, 2 ]
name = filter(lambda x: x in string.letters, (data.get('name','') or '').lower())
try: name = filter(lambda x: x in string.letters, (data.get('name','') or '').lower()) except: name=''
def _create_id(self, cr, uid, model, data): i = 0 while True: name = filter(lambda x: x in string.letters, (data.get('name','') or '').lower()) val = model.replace('.','_')+'_'+name+ str(i) i+=1 if val not in self.ids.values(): break return val
86dbc91231b51093fd5ba58d5c30d3acfe783579 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/86dbc91231b51093fd5ba58d5c30d3acfe783579/base_module_record.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 501, 4672, 277, 273, 374, 1323, 1053, 30, 775, 30, 508, 273, 1034, 12, 14661, 619, 30, 619, 316, 533, 18, 26054, 16, 261, 892, 18, 588, 2668, 529, 17023, 6134, 578, 875, 2934, 8167, 10756, 1335, 30, 508, 2218, 11, 1244, 273, 938, 18, 2079, 2668, 1093, 11189, 4623, 13, 6797, 4623, 15, 529, 15, 609, 12, 77, 13, 277, 15, 33, 21, 309, 1244, 486, 316, 365, 18, 2232, 18, 2372, 13332, 898, 327, 1244, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 501, 4672, 277, 273, 374, 1323, 1053, 30, 775, 30, 508, 273, 1034, 12, 14661, 619, 30, 619, 316, 533, 18, 26054, 16, 261, 892, 18, 588, 2668, 529, 17023, 6134, 578, 875, 2934, 8167, 10756, 1335, 30, 508, 2218, 11, 1244, 273, 938, 18, 2079, 2668, 1093, 11189, 4623, 13, 6797, 4623, 15, 529, 15, 609, 12, 77, 13, 277, 15, 33, 21, 309, 1244, 486, 316, 365, 18, 2232, 18, 2372, 13332, 898, 327, 1244, 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 ]
self.options = OptionsDialog(self.view) self.__ReadConfigurationFile()
def SaveSWF(self, filename, pages, options): self.__lastsavefile = filename t = _SaveSWFThread(filename, self.__pdf, pages, options) t.Start() return t
def __init__(self): self.__doc = Document()
fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5722/fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 2434, 273, 4319, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 2434, 273, 4319, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 'FILL'
def _tag_menuitem(self, cr, rec, data_node=None): rec_id = rec.getAttribute("id").encode('ascii') m_l = map(escape, escape_re.split(rec.getAttribute("name").encode('utf8'))) pid = False for idx, menu_elem in enumerate(m_l): if pid: cr.execute('select id from ir_ui_menu where parent_id=%d and name=%s', (pid, menu_elem)) else: cr.execute('select id from ir_ui_menu where parent_id is null and name=%s', (menu_elem,)) res = cr.fetchone() if idx==len(m_l)-1: # we are at the last menu element/level (it's a leaf) values = {'parent_id': pid,'name':menu_elem}
29a1e47fb1295ff56a6f74368f7337fbbb92177b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12853/29a1e47fb1295ff56a6f74368f7337fbbb92177b/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 5414, 1726, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 1950, 67, 350, 273, 1950, 18, 588, 1499, 2932, 350, 20387, 3015, 2668, 9184, 6134, 312, 67, 80, 273, 852, 12, 6939, 16, 4114, 67, 266, 18, 4939, 12, 3927, 18, 588, 1499, 2932, 529, 20387, 3015, 2668, 3158, 28, 11, 20349, 4231, 273, 1083, 364, 2067, 16, 3824, 67, 10037, 316, 4241, 12, 81, 67, 80, 4672, 309, 4231, 30, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 4881, 67, 5414, 1625, 982, 67, 350, 5095, 72, 471, 508, 5095, 87, 2187, 261, 6610, 16, 3824, 67, 10037, 3719, 469, 30, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 4881, 67, 5414, 1625, 982, 67, 350, 353, 446, 471, 508, 5095, 87, 2187, 261, 5414, 67, 10037, 16, 3719, 400, 273, 4422, 18, 5754, 476, 1435, 309, 2067, 631, 1897, 12, 81, 67, 80, 24950, 21, 30, 468, 732, 854, 622, 326, 1142, 3824, 930, 19, 2815, 261, 305, 1807, 279, 7839, 13, 924, 273, 13666, 2938, 67, 350, 4278, 4231, 11189, 529, 4278, 5414, 67, 10037, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 5414, 1726, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 1950, 67, 350, 273, 1950, 18, 588, 1499, 2932, 350, 20387, 3015, 2668, 9184, 6134, 312, 67, 80, 273, 852, 12, 6939, 16, 4114, 67, 266, 18, 4939, 12, 3927, 18, 588, 1499, 2932, 529, 20387, 3015, 2668, 3158, 28, 11, 20349, 4231, 273, 1083, 364, 2067, 16, 3824, 67, 10037, 316, 4241, 12, 81, 67, 80, 4672, 309, 4231, 30, 4422, 18, 8837, 2668, 4025, 612, 628, 9482, 67, 4881, 67, 5414, 1625, 982, 67, 350, 5095, 72, 471, 508, 5095, 87, 2187, 261, 6610, 16, 3824, 67, 10037, 3719, 469, 30, 4422, 18, 8837, 2668, 4025, 612, 628, 2 ]
''' scan the given subtree for source filesnames
""" scan the given subtree for source filesnames
def scanSrcSubtree(root): ''' scan the given subtree for source filesnames (python generator function) ''' for (dir,_,files) in os.walk(root): if dir.startswith('./'): dir = dir[2:] for p in SRCPATTERNS: for f in fnmatch.filter(files, p): yield os.path.join(dir,f)
805399aa7bd426f570ac3d393804b04d329e3b77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13677/805399aa7bd426f570ac3d393804b04d329e3b77/Buildhelper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 7740, 18615, 12, 3085, 4672, 3536, 4135, 326, 864, 12773, 364, 1084, 1390, 1973, 261, 8103, 4456, 445, 13, 9163, 364, 261, 1214, 16, 67, 16, 2354, 13, 316, 1140, 18, 11348, 12, 3085, 4672, 309, 1577, 18, 17514, 1918, 2668, 18, 2473, 4672, 1577, 273, 1577, 63, 22, 26894, 364, 293, 316, 19145, 4258, 789, 2560, 3156, 30, 364, 284, 316, 18764, 18, 2188, 12, 2354, 16, 293, 4672, 2824, 1140, 18, 803, 18, 5701, 12, 1214, 16, 74, 13, 377, 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, 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214, 16, 67, 16, 2354, 13, 316, 1140, 18, 11348, 12, 3085, 4672, 309, 1577, 18, 17514, 1918, 2668, 18, 2473, 4672, 1577, 273, 1577, 63, 22, 26894, 364, 293, 316, 19145, 4258, 789, 2560, 3156, 30, 364, 284, 316, 18764, 18, 2188, 12, 2354, 16, 293, 4672, 2824, 1140, 18, 803, 18, 5701, 12, 1214, 16, 74, 13, 377, 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 ]
evalString += "%s])" % tdata[-1]
evalString += "%s])" % tData[-1]
def setData(self, *dataList): """ Set data to the plot
7c21316bd2b0282da374aba97a863460405e2cdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/7c21316bd2b0282da374aba97a863460405e2cdb/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7929, 12, 2890, 16, 380, 892, 682, 4672, 3536, 1000, 501, 358, 326, 3207, 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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, 7929, 12, 2890, 16, 380, 892, 682, 4672, 3536, 1000, 501, 358, 326, 3207, 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 ]
_run_nose(argv=["", "--with-nosexunit", "--source-folder=src", "--where=test/springpythontest", "--xml-report-folder=%s" % dir, "--with-coverage", "--cover-package=springpython", "checkin"]) def _run_nose(argv):
_run_nose(argv=["", "--with-nosexunit", "--source-folder=src", "--where=test/springpythontest", "--xml-report-folder=%s" % dir, "--with-coverage", "--cover-package=springpython", test_suite], debug_level=debug_level) def _run_nose(argv, debug_level): logger = logging.getLogger("springpython") loggingLevel = debug_level logger.setLevel(loggingLevel) ch = logging.StreamHandler() ch.setLevel(loggingLevel) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") ch.setFormatter(formatter) logger.addHandler(ch)
def test_coverage(dir): """ Run nose programmatically, so that it uses the same python version as this script uses Nose expects to receive a sys.argv, of which the first arg is the script path (usually nosetests). Since this isn't being run that way, a filler entry was created to satisfy the library's needs. """ if not os.path.exists(dir): os.makedirs(dir) _run_nose(argv=["", "--with-nosexunit", "--source-folder=src", "--where=test/springpythontest", "--xml-report-folder=%s" % dir, "--with-coverage", "--cover-package=springpython", "checkin"])
170dd39b88ceef35d0bd055f76db990772aa994f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/170dd39b88ceef35d0bd055f76db990772aa994f/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16356, 12, 1214, 4672, 3536, 1939, 1158, 307, 5402, 26500, 1230, 16, 1427, 716, 518, 4692, 326, 1967, 5790, 1177, 487, 333, 2728, 4692, 225, 423, 2584, 10999, 358, 6798, 279, 2589, 18, 19485, 16, 434, 1492, 326, 1122, 1501, 353, 326, 2728, 589, 261, 407, 3452, 26628, 278, 25563, 2934, 7897, 333, 5177, 1404, 3832, 1086, 716, 4031, 16, 279, 28187, 1241, 1703, 2522, 358, 18866, 326, 5313, 1807, 4260, 18, 3536, 225, 309, 486, 1140, 18, 803, 18, 1808, 12, 1214, 4672, 1140, 18, 81, 9477, 10539, 12, 1214, 13, 225, 389, 2681, 67, 2135, 307, 12, 19485, 33, 9614, 3113, 5238, 1918, 17, 2135, 20909, 4873, 3113, 5238, 3168, 17, 5609, 33, 4816, 3113, 5238, 6051, 33, 3813, 19, 87, 11638, 2074, 451, 1580, 395, 3113, 5238, 2902, 17, 6006, 17, 5609, 5095, 87, 6, 738, 1577, 16, 5238, 1918, 17, 16356, 3113, 5238, 3165, 17, 5610, 33, 87, 11638, 8103, 3113, 315, 1893, 267, 6, 5717, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16356, 12, 1214, 4672, 3536, 1939, 1158, 307, 5402, 26500, 1230, 16, 1427, 716, 518, 4692, 326, 1967, 5790, 1177, 487, 333, 2728, 4692, 225, 423, 2584, 10999, 358, 6798, 279, 2589, 18, 19485, 16, 434, 1492, 326, 1122, 1501, 353, 326, 2728, 589, 261, 407, 3452, 26628, 278, 25563, 2934, 7897, 333, 5177, 1404, 3832, 1086, 716, 4031, 16, 279, 28187, 1241, 1703, 2522, 358, 18866, 326, 5313, 1807, 4260, 18, 3536, 225, 309, 486, 1140, 18, 803, 18, 1808, 12, 1214, 4672, 1140, 18, 81, 9477, 10539, 12, 1214, 13, 225, 389, 2681, 67, 2135, 307, 12, 19485, 33, 9614, 3113, 5238, 1918, 17, 2135, 20909, 4873, 3113, 5238, 3168, 17, 5609, 33, 4816, 2 ]
return self.add_module(src.__name__)
return self.add_module(src.__name__)
def copy_none(self, src):
ce7c76df1b92a89c9b48d025af1313d1dcf28c4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ce7c76df1b92a89c9b48d025af1313d1dcf28c4f/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6102, 12, 2890, 16, 1705, 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 ]
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6102, 12, 2890, 16, 1705, 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 ]
self.stc.EnsureCaretVisible() def showLine(self, pos, msg): self.resetColor() self.frame.SetStatusText(msg) line = self.stc.LineFromPosition(pos) self.stc.EnsureVisible(line)
self.dprint()
def sel(self, posns, posne, msg, interactive=True): if interactive: self.resetColor() self.frame.SetStatusText(msg) line = self.stc.LineFromPosition(posns) self.stc.GotoLine(line) posns, posne = self.getRange(posns, posne-posns) self.stc.SetSelection(posns, posne) if interactive: self.stc.EnsureVisible(line) self.stc.EnsureCaretVisible()
8a28b0efda1c203a706edbd9f92f2fac98e2c69a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/8a28b0efda1c203a706edbd9f92f2fac98e2c69a/find_replace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 12, 2890, 16, 949, 2387, 16, 949, 4644, 16, 1234, 16, 12625, 33, 5510, 4672, 309, 12625, 30, 365, 18, 6208, 2957, 1435, 365, 18, 3789, 18, 20547, 1528, 12, 3576, 13, 980, 273, 365, 18, 334, 71, 18, 1670, 1265, 2555, 12, 917, 2387, 13, 365, 18, 334, 71, 18, 43, 6302, 1670, 12, 1369, 13, 949, 2387, 16, 949, 4644, 273, 365, 18, 588, 2655, 12, 917, 2387, 16, 949, 4644, 17, 917, 2387, 13, 365, 18, 334, 71, 18, 694, 6233, 12, 917, 2387, 16, 949, 4644, 13, 309, 12625, 30, 365, 18, 334, 71, 18, 12512, 6207, 12, 1369, 13, 365, 18, 334, 71, 18, 12512, 39, 20731, 6207, 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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890, 16, 949, 2387, 16, 949, 4644, 16, 1234, 16, 12625, 33, 5510, 4672, 309, 12625, 30, 365, 18, 6208, 2957, 1435, 365, 18, 3789, 18, 20547, 1528, 12, 3576, 13, 980, 273, 365, 18, 334, 71, 18, 1670, 1265, 2555, 12, 917, 2387, 13, 365, 18, 334, 71, 18, 43, 6302, 1670, 12, 1369, 13, 949, 2387, 16, 949, 4644, 273, 365, 18, 588, 2655, 12, 917, 2387, 16, 949, 4644, 17, 917, 2387, 13, 365, 18, 334, 71, 18, 694, 6233, 12, 917, 2387, 16, 949, 4644, 13, 309, 12625, 30, 365, 18, 334, 71, 18, 12512, 6207, 12, 1369, 13, 365, 18, 334, 71, 18, 12512, 39, 20731, 6207, 1435, 225, 2, -100, -100 ]
node = parentIndex.internalPointer() if parentIndex.isValid() else self
def removeRows(self, row, count, parentIndex): self.beginRemoveRows(parentIndex, row, row + count - 1) node = parentIndex.internalPointer() if parentIndex.isValid() else self node.invalidate() self.endRemoveRows() return True
b7f433aab5e94eba6ef479572b7b0edb8792127f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2072/b7f433aab5e94eba6ef479572b7b0edb8792127f/fs_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 4300, 12, 2890, 16, 1027, 16, 1056, 16, 982, 1016, 4672, 365, 18, 10086, 3288, 4300, 12, 2938, 1016, 16, 1027, 16, 1027, 397, 1056, 300, 404, 13, 756, 18, 5387, 340, 1435, 365, 18, 409, 3288, 4300, 1435, 327, 1053, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 4300, 12, 2890, 16, 1027, 16, 1056, 16, 982, 1016, 4672, 365, 18, 10086, 3288, 4300, 12, 2938, 1016, 16, 1027, 16, 1027, 397, 1056, 300, 404, 13, 756, 18, 5387, 340, 1435, 365, 18, 409, 3288, 4300, 1435, 327, 1053, 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 ]
path = os.path.normpath(path)
path = os.path.abspath(path)
def main(args): import cPickle options, args = parse_args(args) exitcode = 0 if options.configfile: readConfigFile(options) try: # step 1: make/find the system if options.systemclass: systemclass = findClassFromDottedName(options.systemclass, '--system-class') if not issubclass(systemclass, model.System): msg = "%s is not a subclass of model.System" error(msg, systemclass) else: systemclass = model.System if options.inputpickle: system = cPickle.load(open(options.inputpickle, 'rb')) if options.systemclass: if type(system) is not systemclass: cls = type(system) msg = ("loaded pickle has class %s.%s, differing " "from explicitly requested %s") error(msg, cls.__module__, cls.__name__, options.systemclass) else: system = systemclass() system.options = options system.urlprefix = '' if options.moresystems: moresystems = [] for fnamepref in options.moresystems: fname, prefix = fnamepref.split(':', 1) moresystems.append(cPickle.load(open(fname, 'rb'))) moresystems[-1].urlprefix = prefix moresystems[-1].options = system.options moresystems[-1].subsystems.append(system) system.moresystems = moresystems system.sourcebase = options.htmlsourcebase if options.abbrevmapping: for thing in options.abbrevmapping.split(','): k, v = thing.split('=') system.abbrevmapping[k] = v # step 1.25: make a builder if options.builderclass: builderclass = findClassFromDottedName(options.builderclass, '--builder-class') if not issubclass(builderclass, astbuilder.ASTBuilder): msg = "%s is not a subclass of astbuilder.ASTBuilder" error(msg, builderclass) elif hasattr(system, 'defaultBuilder'): builderclass = system.defaultBuilder else: builderclass = astbuilder.ASTBuilder builder = builderclass(system) # step 1.5: check that we're actually going to accomplish something here if not options.outputpickle and not options.makehtml \ and not options.testing: msg = ("this invocation isn't going to do anything\n" "maybe supply --make-html and/or --output-pickle?") error(msg) # step 2: add any packages and modules if options.packages or options.modules: if options.prependedpackage: for m in options.prependedpackage.split('.'): builder.pushPackage(m, None) for path in options.packages: path = os.path.normpath(path) if path in system.packages: continue if system.state not in ['blank', 'preparse']: msg = ('system is in state %r, which is too late to add ' 'new code') error(msg, system.state) system.msg('addPackage', 'adding directory ' + path) builder.preprocessDirectory(path) system.packages.append(path) for path in options.modules: path = os.path.normpath(path) if path in system.packages: continue if system.state not in ['blank', 'preparse']: msg = ('system is in state %r, which is too late to add ' 'new code') error(msg, system.state) system.msg('addModule', 'adding module ' + path) # XXX should be a builder method! builder.addModule(path) system.state = 'preparse' system.packages.append(path) if options.prependedpackage: for m in options.prependedpackage.split('.'): builder.popPackage() # step 3: move the system to the desired state if not system.packages: error("The system does not contain any code, did you " "forget an --add-package?") curstateindex = model.states.index(system.state) finalstateindex = model.states.index(options.targetstate) if finalstateindex < curstateindex and \ (options.targetstate, system.state) != \ ('finalized', 'livechecked'): msg = 'cannot reverse system from %r to %r' error(msg, system.state, options.targetstate) if finalstateindex > 0 and curstateindex == 0: msg = 'cannot advance totally blank system to %r' error(msg, options.targetstate) def liveCheck(): liveobjectchecker.liveCheck(system, builder) funcs = [None, builder.analyseImports, builder.extractDocstrings, builder.finalStateComputations, liveCheck] for i in range(curstateindex, finalstateindex): f = funcs[i] system.msg(f.__name__, f.__name__) f() if system.state != options.targetstate: msg = "failed to advance state to %r (this is a bug)" error(msg, options.targetstate) if system.options.projectname is None: name = '/'.join([ro.name for ro in system.rootobjects]) system.msg( 'warning', 'WARNING: guessing '+name+' for project name', thresh=-1) system.guessedprojectname = name # step 4: save the system, if desired if options.outputpickle: del system.options # don't persist the options f = open(options.outputpickle, 'wb') cPickle.dump(system, f, cPickle.HIGHEST_PROTOCOL) f.close() system.options = options # step 5: make html, if desired if options.makehtml: if options.htmlwriter: writerclass = findClassFromDottedName( options.htmlwriter, '--html-writer') else: from pydoctor import nevowhtml writerclass = nevowhtml.NevowWriter system.msg('html', 'writing html to %s using %s.%s'%( options.htmloutput, writerclass.__module__, writerclass.__name__)) writer = writerclass(options.htmloutput) writer.system = system writer.prepOutputDirectory() system.epytextproblems = [] if options.htmlsubjects: subjects = [] for fn in options.htmlsubjects: subjects.append(system.allobjects[fn]) elif options.htmlsummarypages: writer.writeModuleIndex(system) subjects = [] else: writer.writeModuleIndex(system) subjects = system.rootobjects writer.writeIndividualFiles(subjects, options.htmlfunctionpages) if system.epytextproblems: def p(msg): system.msg('epytext', msg, thresh=-1, topthresh=1) p("these %s objects' docstrings are not proper epytext:" %(len(system.epytextproblems),)) exitcode = 2 for fn in system.epytextproblems: p(' '+fn) if options.outputpickle: # save again, with epytextproblems del system.options # don't persist the options f = open(options.outputpickle, 'wb') cPickle.dump(system, f, cPickle.HIGHEST_PROTOCOL) f.close() system.options = options except: if options.pdb: import pdb pdb.post_mortem(sys.exc_traceback) raise return exitcode
c807309301a92bfd7a7a639573230d3cb458e76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/c807309301a92bfd7a7a639573230d3cb458e76d/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 1930, 276, 17968, 298, 702, 16, 833, 273, 1109, 67, 1968, 12, 1968, 13, 225, 2427, 710, 273, 374, 225, 309, 702, 18, 1425, 768, 30, 855, 13705, 12, 2116, 13, 225, 775, 30, 468, 2235, 404, 30, 1221, 19, 4720, 326, 2619, 309, 702, 18, 4299, 1106, 30, 2619, 1106, 273, 1104, 797, 1265, 10412, 2344, 461, 12, 2116, 18, 4299, 1106, 16, 3534, 4299, 17, 1106, 6134, 309, 486, 14664, 12, 4299, 1106, 16, 938, 18, 3163, 4672, 1234, 273, 2213, 87, 353, 486, 279, 10177, 434, 938, 18, 3163, 6, 555, 12, 3576, 16, 2619, 1106, 13, 469, 30, 2619, 1106, 273, 938, 18, 3163, 225, 309, 702, 18, 2630, 20847, 30, 2619, 273, 276, 17968, 298, 18, 945, 12, 3190, 12, 2116, 18, 2630, 20847, 16, 296, 6731, 26112, 309, 702, 18, 4299, 1106, 30, 309, 618, 12, 4299, 13, 353, 486, 2619, 1106, 30, 2028, 273, 618, 12, 4299, 13, 1234, 273, 7566, 4230, 13379, 711, 667, 738, 87, 7866, 87, 16, 15221, 310, 315, 315, 2080, 8122, 3764, 738, 87, 7923, 555, 12, 3576, 16, 2028, 16186, 2978, 972, 16, 2028, 16186, 529, 972, 16, 702, 18, 4299, 1106, 13, 469, 30, 2619, 273, 2619, 1106, 1435, 225, 2619, 18, 2116, 273, 702, 225, 2619, 18, 718, 3239, 273, 875, 309, 702, 18, 81, 3485, 1108, 87, 30, 312, 3485, 1108, 87, 273, 5378, 364, 5299, 25724, 316, 702, 18, 81, 3485, 1108, 87, 30, 5299, 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, 2774, 12, 1968, 4672, 1930, 276, 17968, 298, 702, 16, 833, 273, 1109, 67, 1968, 12, 1968, 13, 225, 2427, 710, 273, 374, 225, 309, 702, 18, 1425, 768, 30, 855, 13705, 12, 2116, 13, 225, 775, 30, 468, 2235, 404, 30, 1221, 19, 4720, 326, 2619, 309, 702, 18, 4299, 1106, 30, 2619, 1106, 273, 1104, 797, 1265, 10412, 2344, 461, 12, 2116, 18, 4299, 1106, 16, 3534, 4299, 17, 1106, 6134, 309, 486, 14664, 12, 4299, 1106, 16, 938, 18, 3163, 4672, 1234, 273, 2213, 87, 353, 486, 279, 10177, 434, 938, 18, 3163, 6, 555, 12, 3576, 16, 2619, 1106, 13, 469, 30, 2619, 1106, 273, 938, 18, 3163, 225, 309, 702, 18, 2630, 20847, 2 ]
def _draw_turtle(self,position=[]):
def speed(self, speed): """ Set the turtle's speed. speed must one of these five strings: 'fastest' is a 0 ms delay 'fast' is a 5 ms delay 'normal' is a 10 ms delay 'slow' is a 15 ms delay 'slowest' is a 20 ms delay Example: >>> turtle.speed('slow') """ try: speed = speed.strip().lower() self._delay = speeds.index(speed) * 5 except: raise ValueError("%r is not a valid speed. speed must be " "one of %s" % (speed, speeds)) def delay(self, delay): """ Set the drawing delay in milliseconds. This is intended to allow finer control of the drawing speed than the speed() method Example: >>> turtle.delay(15) """ if int(delay) < 0: raise ValueError("delay must be greater than or equal to 0") self._delay = int(delay) def _draw_turtle(self, position=[]):
def _draw_turtle(self,position=[]): if not self._tracing: return if position == []: position = self._position x,y = position distance = 8 dx = distance * cos(self._angle*self._invradian) dy = distance * sin(self._angle*self._invradian) self._delete_turtle() self._arrow = self._canvas.create_line(x-dx,y+dy,x,y, width=self._width, arrow="last", capstyle="round", fill=self._color) self._canvas.update()
97324e132aa8e41ef597f91f42d2d171c39f616a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/97324e132aa8e41ef597f91f42d2d171c39f616a/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8632, 12, 2890, 16, 8632, 4672, 3536, 1000, 326, 268, 295, 5929, 1807, 8632, 18, 225, 8632, 1297, 1245, 434, 4259, 23714, 2064, 30, 225, 296, 8076, 395, 11, 353, 279, 374, 4086, 4624, 296, 8076, 11, 353, 279, 1381, 4086, 4624, 296, 6130, 11, 353, 279, 1728, 4086, 4624, 296, 87, 821, 11, 353, 279, 4711, 4086, 4624, 296, 87, 821, 395, 11, 353, 279, 4200, 4086, 4624, 225, 5090, 30, 4080, 268, 295, 5929, 18, 13871, 2668, 87, 821, 6134, 3536, 775, 30, 8632, 273, 8632, 18, 6406, 7675, 8167, 1435, 365, 6315, 10790, 273, 8632, 87, 18, 1615, 12, 13871, 13, 380, 1381, 1335, 30, 1002, 2068, 27188, 86, 353, 486, 279, 923, 8632, 18, 8632, 1297, 506, 315, 315, 476, 434, 738, 87, 6, 738, 261, 13871, 16, 8632, 87, 3719, 282, 1652, 4624, 12, 2890, 16, 4624, 4672, 3536, 1000, 326, 16327, 4624, 316, 10993, 18, 225, 1220, 353, 12613, 358, 1699, 574, 264, 3325, 434, 326, 16327, 8632, 2353, 326, 8632, 1435, 707, 225, 5090, 30, 4080, 268, 295, 5929, 18, 10790, 12, 3600, 13, 3536, 309, 509, 12, 10790, 13, 411, 374, 30, 1002, 2068, 2932, 10790, 1297, 506, 6802, 2353, 578, 3959, 358, 374, 7923, 365, 6315, 10790, 273, 509, 12, 10790, 13, 225, 1652, 389, 9446, 67, 25271, 5929, 12, 2890, 16, 1754, 33, 8526, 4672, 309, 486, 365, 6315, 20187, 30, 327, 309, 1754, 422, 5378, 30, 1754, 273, 365, 6315, 3276, 619, 16, 93, 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, 8632, 12, 2890, 16, 8632, 4672, 3536, 1000, 326, 268, 295, 5929, 1807, 8632, 18, 225, 8632, 1297, 1245, 434, 4259, 23714, 2064, 30, 225, 296, 8076, 395, 11, 353, 279, 374, 4086, 4624, 296, 8076, 11, 353, 279, 1381, 4086, 4624, 296, 6130, 11, 353, 279, 1728, 4086, 4624, 296, 87, 821, 11, 353, 279, 4711, 4086, 4624, 296, 87, 821, 395, 11, 353, 279, 4200, 4086, 4624, 225, 5090, 30, 4080, 268, 295, 5929, 18, 13871, 2668, 87, 821, 6134, 3536, 775, 30, 8632, 273, 8632, 18, 6406, 7675, 8167, 1435, 365, 6315, 10790, 273, 8632, 87, 18, 1615, 12, 13871, 13, 380, 1381, 1335, 30, 1002, 2068, 27188, 86, 353, 486, 279, 923, 8632, 18, 2 ]
for [returnType, names, arguments] in functions:
for [return_type, names, arguments] in functions:
file.write('#ifndef APP_GFX_GL_GL_BINDINGS_AUTOGEN_%s_H_\n' % setName.upper())
218a5a204661ad6185f01d6233b35b2d5f86027b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/218a5a204661ad6185f01d6233b35b2d5f86027b/generate_bindings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 585, 18, 2626, 2668, 7, 430, 82, 536, 9146, 67, 43, 25172, 67, 11261, 67, 11261, 67, 2739, 55, 67, 18909, 16652, 10185, 87, 67, 44, 22202, 82, 11, 738, 6788, 18, 5797, 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, 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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, 585, 18, 2626, 2668, 7, 430, 82, 536, 9146, 67, 43, 25172, 67, 11261, 67, 11261, 67, 2739, 55, 67, 18909, 16652, 10185, 87, 67, 44, 22202, 82, 11, 738, 6788, 18, 5797, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise MediaConverterError('could not run ffmpeg: "ffmpeg -h" has exited with code %s: %s' % (exit_code, error))
raise MediaConverterError('could not run ffmpeg: "ffmpeg -h" has exited with code %s' % (exit_code, ))
def _check_ffmpeg(): """Returns True if ffmpeg is installed with the proper options (libmp3lame), False otherwise.""" status = os.system("ffmpeg -h") if sys.platform != 'win32' and os.WIFEXITED(status): # TODO: portable way to get the exit code exit_code = os.WEXITSTATUS(status) else: exit_code = status if exit_code: raise MediaConverterError('could not run ffmpeg: "ffmpeg -h" has exited with code %s: %s' % (exit_code, error)) child_stdout, child_stdin, child_stderr = popen3("ffmpeg -h") error = child_stderr.read() if "--enable-libmp3lame" not in error: raise MediaConverterError('ffmpeg was not compiled with --enable-libmp3lame; ffmpeg -h returned: %s' % (error, ))
e6432ede4523b4af9c464c3c457f399784f17826 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/e6432ede4523b4af9c464c3c457f399784f17826/MediaConverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1403, 19951, 13332, 3536, 1356, 1053, 309, 6875, 19951, 353, 5876, 598, 326, 5338, 702, 261, 2941, 1291, 23, 80, 339, 3631, 1083, 3541, 12123, 1267, 273, 1140, 18, 4299, 2932, 1403, 19951, 300, 76, 7923, 309, 2589, 18, 9898, 480, 296, 8082, 1578, 11, 471, 1140, 18, 59, 5501, 28682, 2056, 12, 2327, 4672, 468, 2660, 30, 1756, 429, 4031, 358, 336, 326, 2427, 981, 2427, 67, 710, 273, 1140, 18, 59, 28682, 8608, 12, 2327, 13, 469, 30, 2427, 67, 710, 273, 1267, 309, 2427, 67, 710, 30, 1002, 6128, 5072, 668, 2668, 15195, 486, 1086, 6875, 19951, 30, 315, 1403, 19951, 300, 76, 6, 711, 21590, 598, 981, 738, 87, 11, 738, 261, 8593, 67, 710, 16, 8623, 1151, 67, 10283, 16, 1151, 67, 21772, 16, 1151, 67, 11241, 273, 30925, 23, 2932, 1403, 19951, 300, 76, 7923, 555, 273, 1151, 67, 11241, 18, 896, 1435, 309, 5238, 7589, 17, 2941, 1291, 23, 80, 339, 6, 486, 316, 555, 30, 1002, 6128, 5072, 668, 2668, 1403, 19951, 1703, 486, 7743, 598, 1493, 7589, 17, 2941, 1291, 23, 80, 339, 31, 6875, 19951, 300, 76, 2106, 30, 738, 87, 11, 738, 261, 1636, 16, 8623, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1403, 19951, 13332, 3536, 1356, 1053, 309, 6875, 19951, 353, 5876, 598, 326, 5338, 702, 261, 2941, 1291, 23, 80, 339, 3631, 1083, 3541, 12123, 1267, 273, 1140, 18, 4299, 2932, 1403, 19951, 300, 76, 7923, 309, 2589, 18, 9898, 480, 296, 8082, 1578, 11, 471, 1140, 18, 59, 5501, 28682, 2056, 12, 2327, 4672, 468, 2660, 30, 1756, 429, 4031, 358, 336, 326, 2427, 981, 2427, 67, 710, 273, 1140, 18, 59, 28682, 8608, 12, 2327, 13, 469, 30, 2427, 67, 710, 273, 1267, 309, 2427, 67, 710, 30, 1002, 6128, 5072, 668, 2668, 15195, 486, 1086, 6875, 19951, 30, 315, 1403, 19951, 300, 76, 6, 711, 21590, 598, 981, 738, 87, 11, 738, 2 ]
x = i = H = pS = 0
x = i = H = pS = hx = 0
def split(self, availWidth, availHeight): canv = self.canv C = self._content x = i = H = pS = 0 n = len(C) I2W = {} for x in xrange(n): c = C[x] I = c._ptoinfo if I not in I2W.keys(): T = I.trailer Hdr = I.header tW, tH = _listWrapOn(T, availWidth, self.canv) tSB = T[0].getSpaceBefore() I2W[I] = T,tW,tH,tSB else: T,tW,tH,tSB = I2W[I] _, h = c.wrapOn(canv,availWidth,0xfffffff) if x: h += max(c.getSpaceBefore()-pS,0) pS = c.getSpaceAfter() H += h+pS if H+tH+max(tSB,pS)>=availHeight-_FUZZ: break i += 1
5ff6a5fdbd2ac83da8c2921d82a3bd22bd2e6039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/5ff6a5fdbd2ac83da8c2921d82a3bd22bd2e6039/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 15783, 2384, 16, 15783, 2686, 4672, 848, 90, 273, 365, 18, 4169, 90, 385, 273, 365, 6315, 1745, 619, 273, 277, 273, 670, 273, 293, 55, 273, 366, 92, 273, 374, 290, 273, 562, 12, 39, 13, 467, 22, 59, 273, 2618, 364, 619, 316, 12314, 12, 82, 4672, 276, 273, 385, 63, 92, 65, 467, 273, 276, 6315, 337, 885, 617, 309, 467, 486, 316, 467, 22, 59, 18, 2452, 13332, 399, 273, 467, 18, 15565, 264, 670, 3069, 273, 467, 18, 3374, 268, 59, 16, 268, 44, 273, 389, 1098, 2964, 1398, 12, 56, 16, 15783, 2384, 16, 365, 18, 4169, 90, 13, 268, 14541, 273, 399, 63, 20, 8009, 588, 3819, 4649, 1435, 467, 22, 59, 63, 45, 65, 273, 399, 16, 88, 59, 16, 88, 44, 16, 88, 14541, 469, 30, 399, 16, 88, 59, 16, 88, 44, 16, 88, 14541, 273, 467, 22, 59, 63, 45, 65, 389, 16, 366, 273, 276, 18, 4113, 1398, 12, 4169, 90, 16, 842, 671, 2384, 16, 20, 5297, 9460, 74, 13, 309, 619, 30, 366, 1011, 943, 12, 71, 18, 588, 3819, 4649, 1435, 17, 84, 55, 16, 20, 13, 293, 55, 273, 276, 18, 588, 3819, 4436, 1435, 670, 1011, 366, 15, 84, 55, 309, 670, 15, 88, 44, 15, 1896, 12, 88, 14541, 16, 84, 55, 13, 34, 33, 842, 671, 2686, 17, 67, 42, 57, 27096, 30, 898, 277, 1011, 404, 2, 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, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 15783, 2384, 16, 15783, 2686, 4672, 848, 90, 273, 365, 18, 4169, 90, 385, 273, 365, 6315, 1745, 619, 273, 277, 273, 670, 273, 293, 55, 273, 366, 92, 273, 374, 290, 273, 562, 12, 39, 13, 467, 22, 59, 273, 2618, 364, 619, 316, 12314, 12, 82, 4672, 276, 273, 385, 63, 92, 65, 467, 273, 276, 6315, 337, 885, 617, 309, 467, 486, 316, 467, 22, 59, 18, 2452, 13332, 399, 273, 467, 18, 15565, 264, 670, 3069, 273, 467, 18, 3374, 268, 59, 16, 268, 44, 273, 389, 1098, 2964, 1398, 12, 56, 16, 15783, 2384, 16, 365, 18, 4169, 90, 13, 268, 14541, 273, 399, 63, 20, 8009, 588, 3819, 2 ]
from distutils.command.install import INSTALL_SCHEMES for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib']
def run(self): if not self.py_modules and not self.packages: return if self.py_modules: self.build_modules() if self.packages: self.build_packages() self.byte_compile(self.get_outputs(include_bytecode=0))
de006b806a333fa96f2e3e2298c71a1f9dec8006 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/de006b806a333fa96f2e3e2298c71a1f9dec8006/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 486, 365, 18, 2074, 67, 6400, 471, 486, 365, 18, 10308, 30, 327, 309, 365, 18, 2074, 67, 6400, 30, 365, 18, 3510, 67, 6400, 1435, 309, 365, 18, 10308, 30, 365, 18, 3510, 67, 10308, 1435, 365, 18, 7229, 67, 11100, 12, 2890, 18, 588, 67, 12295, 12, 6702, 67, 1637, 16651, 33, 20, 3719, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 486, 365, 18, 2074, 67, 6400, 471, 486, 365, 18, 10308, 30, 327, 309, 365, 18, 2074, 67, 6400, 30, 365, 18, 3510, 67, 6400, 1435, 309, 365, 18, 10308, 30, 365, 18, 3510, 67, 10308, 1435, 365, 18, 7229, 67, 11100, 12, 2890, 18, 588, 67, 12295, 12, 6702, 67, 1637, 16651, 33, 20, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
- ``transformation`` - (default: None) a transformation to apply. May be a 4-tuple (x_func, y_func, z_func, fvar) where the first 3 items indicate a transformation to cartesian coordinates (from your coordinate system) in terms of u, v, and the function variable fvar (for which the value of f will be substituted). May also be a predefined coordinate system transformation like Spherical or Cylindrical.
- ``transformation`` - (default: None) a transformation to apply. May be a 3 or 4-tuple (x_func, y_func, z_func, independent_vars) where the first 3 items indicate a transformation to cartesian coordinates (from your coordinate system) in terms of u, v, and the function variable fvar (for which the value of f will be substituted). If a 3-tuple is specified, the independent variables are chosen from the range variables. If a 4-tuple is specified, the 4th element is a list of independent variables. ``transformation`` may also be a predefined coordinate system transformation like Spherical or Cylindrical.
def plot3d(f, urange, vrange, adaptive=False, transformation=None, **kwds): """ INPUT: - ``f`` - a symbolic expression or function of 2 variables - ``urange`` - a 2-tuple (u_min, u_max) or a 3-tuple (u, u_min, u_max) - ``vrange`` - a 2-tuple (v_min, v_max) or a 3-tuple (v, v_min, v_max) - ``adaptive`` - (default: False) whether to use adaptive refinement to draw the plot (slower, but may look better). This option does NOT work in conjuction with a transformation (see below). - ``mesh`` - bool (default: False) whether to display mesh grid lines - ``dots`` - bool (default: False) whether to display dots at mesh grid points - ``plot_points`` - (default: "automatic") initial number of sample points in each direction; an integer or a pair of integers - ``transformation`` - (default: None) a transformation to apply. May be a 4-tuple (x_func, y_func, z_func, fvar) where the first 3 items indicate a transformation to cartesian coordinates (from your coordinate system) in terms of u, v, and the function variable fvar (for which the value of f will be substituted). May also be a predefined coordinate system transformation like Spherical or Cylindrical. .. note:: ``mesh`` and ``dots`` are not supported when using the Tachyon raytracer renderer. EXAMPLES: We plot a 3d function defined as a Python function:: sage: plot3d(lambda x, y: x^2 + y^2, (-2,2), (-2,2)) We plot the same 3d function but using adaptive refinement:: sage: plot3d(lambda x, y: x^2 + y^2, (-2,2), (-2,2), adaptive=True) Adaptive refinement but with more points:: sage: plot3d(lambda x, y: x^2 + y^2, (-2,2), (-2,2), adaptive=True, initial_depth=5) We plot some 3d symbolic functions:: sage: var('x,y') (x, y) sage: plot3d(x^2 + y^2, (x,-2,2), (y,-2,2)) sage: plot3d(sin(x*y), (x, -pi, pi), (y, -pi, pi)) We give a plot with extra sample points:: sage: var('x,y') (x, y) sage: plot3d(sin(x^2+y^2),(x,-5,5),(y,-5,5), plot_points=200) sage: plot3d(sin(x^2+y^2),(x,-5,5),(y,-5,5), plot_points=[10,100]) A 3d plot with a mesh:: sage: var('x,y') (x, y) sage: plot3d(sin(x-y)*y*cos(x),(x,-3,3),(y,-3,3), mesh=True) Two wobby translucent planes:: sage: x,y = var('x,y') sage: P = plot3d(x+y+sin(x*y), (x,-10,10),(y,-10,10), opacity=0.87, color='blue') sage: Q = plot3d(x-2*y-cos(x*y),(x,-10,10),(y,-10,10),opacity=0.3,color='red') sage: P + Q We draw two parametric surfaces and a transparent plane:: sage: L = plot3d(lambda x,y: 0, (-5,5), (-5,5), color="lightblue", opacity=0.8) sage: P = plot3d(lambda x,y: 4 - x^3 - y^2, (-2,2), (-2,2), color='green') sage: Q = plot3d(lambda x,y: x^3 + y^2 - 4, (-2,2), (-2,2), color='orange') sage: L + P + Q We draw the "Sinus" function (water ripple-like surface):: sage: x, y = var('x y') sage: plot3d(sin(pi*(x^2+y^2))/2,(x,-1,1),(y,-1,1)) Hill and valley (flat surface with a bump and a dent):: sage: x, y = var('x y') sage: plot3d( 4*x*exp(-x^2-y^2), (x,-2,2), (y,-2,2)) An example of a transformation:: sage: r, phi, z = var('r phi z') sage: trans=(r*cos(phi),r*sin(phi),z,z) sage: plot3d(cos(r),(r,0,17*pi/2),(phi,0,2*pi),transformation=trans,opacity=0.87).show(aspect_ratio=(1,1,2),frame=False) Many more examples of transformations:: sage: u, v, w = var('u v w') sage: rectangular=(u,v,w,w) sage: spherical=(w*cos(u)*sin(v),w*sin(u)*sin(v),w*cos(v),w) sage: cylindric_radial=(w*cos(u),w*sin(u),v,w) sage: cylindric_axial=(v*cos(u),v*sin(u),w,w) sage: parabolic_cylindrical=(w*v,(v^2-w^2)/2,u,w) Plot a constant function of each of these to get an idea of what it does:: sage: A = plot3d(2,(u,-pi,pi),(v,0,pi),transformation=rectangular,plot_points=[100,100]) sage: B = plot3d(2,(u,-pi,pi),(v,0,pi),transformation=spherical,plot_points=[100,100]) sage: C = plot3d(2,(u,-pi,pi),(v,0,pi),transformation=cylindric_radial,plot_points=[100,100]) sage: D = plot3d(2,(u,-pi,pi),(v,0,pi),transformation=cylindric_axial,plot_points=[100,100]) sage: E = plot3d(2,(u,-pi,pi),(v,-pi,pi),transformation=parabolic_cylindrical,plot_points=[100,100]) sage: @interact sage: def _(which_plot=[A,B,C,D,E]): ... show(which_plot) Now plot a function:: sage: g=3+sin(4*u)/2+cos(4*v)/2 sage: F = plot3d(g,(u,-pi,pi),(v,0,pi),transformation=rectangular,plot_points=[100,100]) sage: G = plot3d(g,(u,-pi,pi),(v,0,pi),transformation=spherical,plot_points=[100,100]) sage: H = plot3d(g,(u,-pi,pi),(v,0,pi),transformation=cylindric_radial,plot_points=[100,100]) sage: I = plot3d(g,(u,-pi,pi),(v,0,pi),transformation=cylindric_axial,plot_points=[100,100]) sage: J = plot3d(g,(u,-pi,pi),(v,0,pi),transformation=parabolic_cylindrical,plot_points=[100,100]) sage: @interact sage: def _(which_plot=[F, G, H, I, J]): ... show(which_plot) TESTS: Make sure the transformation plots work:: sage: show(A + B + C + D + E) sage: show(F + G + H + I + J) Listing the same plot variable twice gives an error:: sage: x, y = var('x y') sage: plot3d( 4*x*exp(-x^2-y^2), (x,-2,2), (x,-2,2)) Traceback (most recent call last): ... ValueError: range variables should be distinct, but there are duplicates """ if transformation is not None: from sage.symbolic.callable import is_CallableSymbolicExpression # First, determine the parameters for f (from the first item of urange # and vrange, preferably). if len(urange) == 3 and len(vrange) == 3: params = (urange[0], vrange[0]) elif is_CallableSymbolicExpression(f): params = f.variables() else: # There's no way to find out raise ValueError, 'expected 3-tuple for urange and vrange' if isinstance(transformation, (tuple, list)): transformation = _ArbCoordTrans(transformation[0:3], transformation[3]) if isinstance(transformation, _CoordTrans): R = transformation.to_cartesian(f, params) return parametric_plot3d.parametric_plot3d(R, urange, vrange, **kwds) else: raise ValueError, 'unknown transformation type' elif adaptive: P = plot3d_adaptive(f, urange, vrange, **kwds) else: u=fast_float_arg(0) v=fast_float_arg(1) P=parametric_plot3d.parametric_plot3d((u,v,f), urange, vrange, **kwds) P.frame_aspect_ratio([1.0,1.0,0.5]) return P
f1a033cac620bf133b1f996c6db511753cab6f3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f1a033cac620bf133b1f996c6db511753cab6f3d/plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 5855, 688, 33, 8381, 16, 8620, 33, 7036, 16, 2826, 25577, 4672, 3536, 12943, 30, 282, 300, 225, 12176, 74, 10335, 300, 279, 16754, 2652, 578, 445, 434, 576, 3152, 225, 300, 225, 12176, 295, 726, 10335, 300, 279, 576, 17, 8052, 261, 89, 67, 1154, 16, 582, 67, 1896, 13, 578, 279, 890, 17, 8052, 261, 89, 16, 582, 67, 1154, 16, 582, 67, 1896, 13, 225, 300, 225, 12176, 90, 3676, 10335, 300, 279, 576, 17, 8052, 261, 90, 67, 1154, 16, 331, 67, 1896, 13, 578, 279, 890, 17, 8052, 261, 90, 16, 331, 67, 1154, 16, 331, 67, 1896, 13, 225, 300, 225, 12176, 19195, 688, 10335, 300, 261, 1886, 30, 1083, 13, 2856, 358, 999, 5855, 688, 25994, 820, 358, 3724, 326, 3207, 261, 87, 8167, 16, 1496, 2026, 2324, 7844, 2934, 1220, 1456, 1552, 4269, 1440, 316, 10550, 4062, 598, 279, 8620, 261, 5946, 5712, 2934, 225, 300, 225, 12176, 15557, 10335, 300, 1426, 261, 1886, 30, 1083, 13, 2856, 358, 2562, 6986, 3068, 2362, 225, 300, 225, 12176, 72, 6968, 10335, 300, 1426, 261, 1886, 30, 1083, 13, 2856, 358, 2562, 19522, 622, 6986, 3068, 3143, 225, 300, 225, 12176, 4032, 67, 4139, 10335, 300, 261, 1886, 30, 315, 5854, 4941, 7923, 2172, 1300, 434, 3296, 3143, 316, 1517, 4068, 31, 392, 3571, 578, 279, 3082, 434, 12321, 282, 300, 12176, 2338, 1471, 10335, 300, 261, 1886, 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, 3207, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 5855, 688, 33, 8381, 16, 8620, 33, 7036, 16, 2826, 25577, 4672, 3536, 12943, 30, 282, 300, 225, 12176, 74, 10335, 300, 279, 16754, 2652, 578, 445, 434, 576, 3152, 225, 300, 225, 12176, 295, 726, 10335, 300, 279, 576, 17, 8052, 261, 89, 67, 1154, 16, 582, 67, 1896, 13, 578, 279, 890, 17, 8052, 261, 89, 16, 582, 67, 1154, 16, 582, 67, 1896, 13, 225, 300, 225, 12176, 90, 3676, 10335, 300, 279, 576, 17, 8052, 261, 90, 67, 1154, 16, 331, 67, 1896, 13, 578, 279, 890, 17, 8052, 261, 90, 16, 331, 67, 1154, 16, 331, 67, 1896, 13, 225, 300, 2 ]
'/usr/lib',
'/usr/local/lib',
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
141cd423f5039b9efe4d6fa7280d4d98d607e1ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/141cd423f5039b9efe4d6fa7280d4d98d607e1ba/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 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, -100 ]
WakeupSignalTests, SiginterruptTest)
WakeupSignalTests, SiginterruptTest, ItimerTest)
def test_main(): test_support.run_unittest(BasicSignalTests, InterProcessSignalTests, WakeupSignalTests, SiginterruptTest)
fb2c3b45c4caf1be64df5f7c3cfc00180d61d030 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/fb2c3b45c4caf1be64df5f7c3cfc00180d61d030/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 8252, 11208, 14650, 16, 5294, 2227, 11208, 14650, 16, 678, 911, 416, 11208, 14650, 16, 21911, 31847, 4709, 16, 2597, 4417, 4709, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 2227, 11208, 14650, 16, 678, 911, 416, 11208, 14650, 16, 21911, 31847, 4709, 16, 2597, 4417, 4709, 13, 282, 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 ]
raise AttributeError("Attribute '%s' is read-only.")
raise AttributeError("Attribute '%s' is read-only." % name)
def __setattr__(self, name, value): hidden = getattr(self, "__hidden") if name in hidden: current = hidden.get(name) if current is None: if isinstance(value, numpy.ndarray): value.setflags(write=False) hidden[name] = value else: raise AttributeError("Attribute '%s' is read-only.") else: object.__setattr__(self, name, value)
204982b5bbda62ba857b98f49bd4bd2527b79707 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11053/204982b5bbda62ba857b98f49bd4bd2527b79707/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 5949, 273, 3869, 12, 2890, 16, 10425, 6345, 7923, 309, 508, 316, 5949, 30, 783, 273, 5949, 18, 588, 12, 529, 13, 309, 783, 353, 599, 30, 309, 1549, 12, 1132, 16, 3972, 18, 25681, 4672, 460, 18, 542, 7133, 12, 2626, 33, 8381, 13, 5949, 63, 529, 65, 273, 460, 469, 30, 1002, 6394, 2932, 1499, 1995, 87, 11, 353, 855, 17, 3700, 1199, 738, 508, 13, 469, 30, 733, 16186, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 4672, 5949, 273, 3869, 12, 2890, 16, 10425, 6345, 7923, 309, 508, 316, 5949, 30, 783, 273, 5949, 18, 588, 12, 529, 13, 309, 783, 353, 599, 30, 309, 1549, 12, 1132, 16, 3972, 18, 25681, 4672, 460, 18, 542, 7133, 12, 2626, 33, 8381, 13, 5949, 63, 529, 65, 273, 460, 469, 30, 1002, 6394, 2932, 1499, 1995, 87, 11, 353, 855, 17, 3700, 1199, 738, 508, 13, 469, 30, 733, 16186, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 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 ]
total_hists=1, nbins=20, hist_width=None, hist_norm=None):
total_hists=1, nbins=20, hist_width=[0,0], hist_norm=None):
def histdiff(table1, table2, col_name, plot_type, hist_num, total_hists=1, nbins=20, hist_width=None, hist_norm=None): """ function to plot a histogram of the difference of the value of col_name between table1 and table2 @param table1: metaDataTable @param table2: metaDataTable @param col_name: name of column to plot @param plot_type: either 'hist' or 'frac_hist' @param hist_num: the number of the histogram (used for color + placement) @param total_hists: total number of histograms (used to place bars) @param nbins: number of bins to plot in histogram (default = 20) @param hist_width:the minimum/maximum difference to be shown (2 element list) @param hist_norm: normalization of the histogram (total nevents) """ histcolors = ['r','b','g','k'] [tmpvar1, tmpvar2, ifo ] = readcolfrom2tables(table1, table2, col_name) tmp_diff = tmpvar2 - tmpvar1 if (plot_type == 'frac_hist'): tmp_diff /= tmpvar1 figure(100) if hist_width: bins = [] for i in range(nbins): bins.append(hist_width[0] + (hist_width[1] - hist_width[0]) * i / nbins) out = hist(tmp_diff,bins) else: out = hist(tmp_diff,nbins) close(100) width = out[1][1] - out[1][0] height = out[0] if hist_norm: height = height / float(hist_norm) width = width / total_hists left = [] for val in out[1]: val = val + (width * hist_num)/2 left.append(val) bar(left,height,width,color=histcolors[hist_num]) #figtext(0.13,0.8 - 0.1* sym," mean = %6.3e" % mean(tmp_diff)) #figtext(0.13,0.75 - 0.1 * sym,'sigma = %6.3e' % std(tmp_diff))
c6e94ec0fb1c0e3e18e2e09d23920e541e16592a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/c6e94ec0fb1c0e3e18e2e09d23920e541e16592a/viz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5356, 5413, 12, 2121, 21, 16, 1014, 22, 16, 645, 67, 529, 16, 3207, 67, 723, 16, 5356, 67, 2107, 16, 2078, 67, 76, 1486, 33, 21, 16, 225, 4264, 2679, 33, 3462, 16, 5356, 67, 2819, 22850, 20, 16, 20, 6487, 5356, 67, 7959, 33, 7036, 4672, 3536, 445, 358, 3207, 279, 8892, 434, 326, 7114, 434, 326, 460, 434, 645, 67, 529, 3086, 1014, 21, 471, 1014, 22, 225, 632, 891, 1014, 21, 30, 11651, 1388, 632, 891, 1014, 22, 30, 11651, 1388, 632, 891, 645, 67, 529, 30, 508, 434, 1057, 358, 3207, 632, 891, 3207, 67, 723, 30, 3344, 296, 11488, 11, 578, 296, 22187, 67, 11488, 11, 632, 891, 5356, 67, 2107, 30, 326, 1300, 434, 326, 8892, 261, 3668, 364, 2036, 397, 12607, 13, 632, 891, 2078, 67, 76, 1486, 30, 2078, 1300, 434, 29592, 261, 3668, 358, 3166, 22252, 13, 632, 891, 4264, 2679, 30, 1300, 434, 8963, 358, 3207, 316, 8892, 261, 1886, 273, 4200, 13, 632, 891, 5356, 67, 2819, 30, 5787, 5224, 19, 15724, 7114, 358, 506, 12188, 261, 22, 930, 666, 13, 632, 891, 5356, 67, 7959, 30, 13728, 434, 326, 8892, 261, 4963, 1073, 616, 87, 13, 3536, 225, 5356, 9724, 273, 10228, 86, 17023, 70, 17023, 75, 17023, 79, 3546, 225, 306, 5645, 1401, 21, 16, 1853, 1401, 22, 16, 21479, 308, 273, 855, 1293, 2080, 22, 9373, 12, 2121, 21, 16, 1014, 22, 16, 645, 67, 529, 13, 1853, 67, 5413, 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, 5356, 5413, 12, 2121, 21, 16, 1014, 22, 16, 645, 67, 529, 16, 3207, 67, 723, 16, 5356, 67, 2107, 16, 2078, 67, 76, 1486, 33, 21, 16, 225, 4264, 2679, 33, 3462, 16, 5356, 67, 2819, 22850, 20, 16, 20, 6487, 5356, 67, 7959, 33, 7036, 4672, 3536, 445, 358, 3207, 279, 8892, 434, 326, 7114, 434, 326, 460, 434, 645, 67, 529, 3086, 1014, 21, 471, 1014, 22, 225, 632, 891, 1014, 21, 30, 11651, 1388, 632, 891, 1014, 22, 30, 11651, 1388, 632, 891, 645, 67, 529, 30, 508, 434, 1057, 358, 3207, 632, 891, 3207, 67, 723, 30, 3344, 296, 11488, 11, 578, 296, 22187, 67, 11488, 11, 632, 891, 5356, 67, 2107, 30, 2 ]
return self.tfm(x + 5 * fi(i), y, yoff)
return self.tfm(x + 5 * fi(i), y, yoff, yflip)
def tfm2(x, y): return self.tfm(x + 5 * fi(i), y, yoff)
f3eeb04707884fb7833f737347fd9735848b706e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f3eeb04707884fb7833f737347fd9735848b706e/dimensions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3253, 81, 22, 12, 92, 16, 677, 4672, 327, 365, 18, 6632, 81, 12, 92, 397, 1381, 380, 7314, 12, 77, 3631, 677, 16, 677, 3674, 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, 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 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, 3253, 81, 22, 12, 92, 16, 677, 4672, 327, 365, 18, 6632, 81, 12, 92, 397, 1381, 380, 7314, 12, 77, 3631, 677, 16, 677, 3674, 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 ]
clause = In('usesysid', row.grolist)
if row.grolist is None: clause = None else: clause = 'usesysid in %s' % row.grolist
def get_users(self, group=None): clause = None if group is not None: clause = Eq('groname', group) row = self.db.select_row(fields=['grolist'], table='pg_group', clause=clause) clause = In('usesysid', row.grolist) fields = ['usename', 'usesysid'] return self.db.select(fields=fields, table='pg_user', clause=clause)
8f69fc6c710b7089f9cc8113cae6adfa00fe8a06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2501/8f69fc6c710b7089f9cc8113cae6adfa00fe8a06/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5577, 12, 2890, 16, 1041, 33, 7036, 4672, 6591, 273, 599, 309, 1041, 353, 486, 599, 30, 6591, 273, 24931, 2668, 75, 1949, 339, 2187, 1041, 13, 1027, 273, 365, 18, 1966, 18, 4025, 67, 492, 12, 2821, 33, 3292, 75, 922, 376, 17337, 1014, 2218, 8365, 67, 1655, 2187, 6591, 33, 18128, 13, 225, 309, 1027, 18, 75, 922, 376, 353, 599, 30, 6591, 273, 599, 469, 30, 6591, 273, 296, 6117, 1900, 350, 316,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5577, 12, 2890, 16, 1041, 33, 7036, 4672, 6591, 273, 599, 309, 1041, 353, 486, 599, 30, 6591, 273, 24931, 2668, 75, 1949, 339, 2187, 1041, 13, 1027, 273, 365, 18, 1966, 18, 4025, 67, 492, 12, 2821, 33, 3292, 75, 922, 376, 17337, 1014, 2218, 8365, 67, 1655, 2187, 6591, 33, 18128, 13, 225, 309, 1027, 18, 75, 922, 376, 353, 599, 30, 6591, 273, 599, 469, 30, 6591, 273, 296, 6117, 1900, 350, 316, 738, 87, 11, 738, 1027, 18, 75, 922, 376, 1466, 273, 10228, 407, 1069, 2187, 296, 6117, 1900, 350, 3546, 327, 365, 18, 1966, 18, 4025, 12, 2821, 33, 2821, 16, 1014, 2218, 8365, 67, 1355, 2187, 6591, 33, 18128, 2 ]
filePath = os.path.join(os.path.dirname(self._job.get("compile-options/paths/file")), package.file)
filePath = self._config.absPath(self._job.get("compile-options/paths/file")) filePath = os.path.join(os.path.dirname(filePath), package.file)
def writePackages(self, packages, script):
67be3c084a3efe99ba920ae0e46c4019f61563c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/67be3c084a3efe99ba920ae0e46c4019f61563c1/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 11425, 12, 2890, 16, 5907, 16, 2728, 4672, 2, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 11425, 12, 2890, 16, 5907, 16, 2728, 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 ]
infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), newInfraNodes)
infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), stas)
def main(argv): # # First, we declare and initialize a few local variables that control some # simulation parameters. # backboneNodes = 10 infraNodes = 5 lanNodes = 5 stopTime = 10 # # Simulation defaults are typically set next, before command line # arguments are parsed. # ns3.Config.SetDefault("ns3::OnOffApplication::PacketSize", ns3.StringValue("210")) ns3.Config.SetDefault("ns3::OnOffApplication::DataRate", ns3.StringValue("448kb/s")) # # For convenience, we add the local variables to the command line argument # system so that they can be overridden with flags such as # "--backboneNodes=20" # cmd = ns3.CommandLine() #cmd.AddValue("backboneNodes", "number of backbone nodes", backboneNodes) #cmd.AddValue("infraNodes", "number of leaf nodes", infraNodes) #cmd.AddValue("lanNodes", "number of LAN nodes", lanNodes) #cmd.AddValue("stopTime", "simulation stop time(seconds)", stopTime) # # The system global variables and the local values added to the argument # system can be overridden by command line arguments by using this call. # cmd.Parse(argv) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Construct the backbone # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # Create a container to manage the nodes of the adhoc(backbone) network. # Later we'll create the rest of the nodes we'll need. # backbone = ns3.NodeContainer() backbone.Create(backboneNodes) # # Create the backbone wifi net devices and install them into the nodes in # our container # wifi = ns3.WifiHelper() wifi.SetMac("ns3::AdhocWifiMac") wifi.SetPhy("ns3::WifiPhy") backboneDevices = wifi.Install(backbone) # # Add the IPv4 protocol stack to the nodes in our container # internet = ns3.InternetStackHelper() internet.Install(backbone) # # Assign IPv4 addresses to the device drivers(actually to the associated # IPv4 interfaces) we just created. # ipAddrs = ns3.Ipv4AddressHelper() ipAddrs.SetBase(ns3.Ipv4Address("192.168.0.0"), ns3.Ipv4Mask("255.255.255.0")) ipAddrs.Assign(backboneDevices) # # The ad-hoc network nodes need a mobility model so we aggregate one to # each of the nodes we just finished building. # mobility = ns3.MobilityHelper() positionAlloc = ns3.ListPositionAllocator() x = 0.0 for i in range(backboneNodes): positionAlloc.Add(ns3.Vector(x, 0.0, 0.0)) x += 5.0 mobility.SetPositionAllocator(positionAlloc) mobility.SetMobilityModel("ns3::RandomDirection2dMobilityModel", "Bounds", ns3.RectangleValue(ns3.Rectangle(0, 1000, 0, 1000)), "Speed", ns3.RandomVariableValue(ns3.ConstantVariable(2000)), "Pause", ns3.RandomVariableValue(ns3.ConstantVariable(0.2))) mobility.Install(backbone) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Construct the LANs # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # Reset the address base-- all of the CSMA networks will be in # the "172.16 address space ipAddrs.SetBase(ns3.Ipv4Address("172.16.0.0"), ns3.Ipv4Mask("255.255.255.0")) for i in range(backboneNodes): print "Configuring local area network for backbone node ", i # # Create a container to manage the nodes of the LAN. We need # two containers here; one with all of the new nodes, and one # with all of the nodes including new and existing nodes # newLanNodes = ns3.NodeContainer() newLanNodes.Create(lanNodes - 1) # Now, create the container with all nodes on this link lan = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), newLanNodes) # # Create the CSMA net devices and install them into the nodes in our # collection. # csma = ns3.CsmaHelper() csma.SetChannelAttribute("DataRate", ns3.DataRateValue(ns3.DataRate(5000000))) csma.SetChannelAttribute("Delay", ns3.TimeValue(ns3.MilliSeconds(2))) lanDevices = csma.Install(lan) # # Add the IPv4 protocol stack to the new LAN nodes # internet.Install(newLanNodes) # # Assign IPv4 addresses to the device drivers(actually to the # associated IPv4 interfaces) we just created. # ipAddrs.Assign(lanDevices) # # Assign a new network prefix for the next LAN, according to the # network mask initialized above # ipAddrs.NewNetwork() # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Construct the mobile networks # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # Reset the address base-- all of the 802.11 networks will be in # the "10.0" address space ipAddrs.SetBase(ns3.Ipv4Address("10.0.0.0"), ns3.Ipv4Mask("255.255.255.0")) for i in range(backboneNodes): print "Configuring wireless network for backbone node ", i # # Create a container to manage the nodes of the LAN. We need # two containers here; one with all of the new nodes, and one # with all of the nodes including new and existing nodes # newInfraNodes = ns3.NodeContainer() newInfraNodes.Create(infraNodes - 1) # Now, create the container with all nodes on this link infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), newInfraNodes) # # Create another ad hoc network and devices # wifiInfra = ns3.WifiHelper() wifiInfra.SetMac("ns3::AdhocWifiMac") wifiInfra.SetPhy("ns3::WifiPhy") infraDevices = wifiInfra.Install(infra) # Add the IPv4 protocol stack to the nodes in our container # internet.Install(newInfraNodes) # # Assign IPv4 addresses to the device drivers(actually to the associated # IPv4 interfaces) we just created. # ipAddrs.Assign(infraDevices) # # Assign a new network prefix for each mobile network, according to # the network mask initialized above # ipAddrs.NewNetwork() # # The new wireless nodes need a mobility model so we aggregate one # to each of the nodes we just finished building. # subnetAlloc = ns3.ListPositionAllocator() for j in range(infra.GetN()): subnetAlloc.Add(ns3.Vector(0.0, j, 0.0)) mobility.PushReferenceMobilityModel(backbone.Get(i)) mobility.SetPositionAllocator(subnetAlloc) mobility.SetMobilityModel("ns3::RandomDirection2dMobilityModel", "Bounds", ns3.RectangleValue(ns3.Rectangle(-25, 25, -25, 25)), "Speed", ns3.RandomVariableValue(ns3.ConstantVariable(30)), "Pause", ns3.RandomVariableValue(ns3.ConstantVariable(0.4))) mobility.Install(infra) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Routing configuration # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / print "Enabling OLSR routing on all backbone nodes" olsr = ns3.OlsrHelper() olsr.Install(backbone) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Application configuration # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # Create the OnOff application to send UDP datagrams of size # 210 bytes at a rate of 448 Kb/s, between two nodes print "Create Applications." port = 9 # Discard port(RFC 863) # Let's make sure that the user does not define too few LAN nodes # to make this example work. We need lanNodes >= 5 assert (lanNodes >= 5) appSource = ns3.NodeList.GetNode(11) appSink = ns3.NodeList.GetNode(13) remoteAddr = ns3.Ipv4Address("172.16.0.5") onoff = ns3.OnOffHelper("ns3::UdpSocketFactory", ns3.Address(ns3.InetSocketAddress(remoteAddr, port))) onoff.SetAttribute("OnTime", ns3.RandomVariableValue(ns3.ConstantVariable(1))) onoff.SetAttribute("OffTime", ns3.RandomVariableValue(ns3.ConstantVariable(0))) apps = onoff.Install(ns3.NodeContainer(appSource)) apps.Start(ns3.Seconds(3.0)) apps.Stop(ns3.Seconds(20.0)) # Create a packet sink to receive these packets sink = ns3.PacketSinkHelper("ns3::UdpSocketFactory", ns3.InetSocketAddress(ns3.Ipv4Address.GetAny(), port)) apps = sink.Install(ns3.NodeContainer(appSink)) apps.Start(ns3.Seconds(3.0)) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / # # # Tracing configuration # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # / print "Configure Tracing." # # Let's set up some ns-2-like ascii traces, using another helper class # #std.ofstream ascii #ascii.open("mixed-wireless.tr") #WifiHelper.EnableAsciiAll(ascii) #CsmaHelper.EnableAsciiAll(ascii) print "(tracing not done for Python)" # Look at nodes 11, 13 only # WifiHelper.EnableAscii(ascii, 11, 0); # WifiHelper.EnableAscii(ascii, 13, 0); # Let's do a pcap trace on the backbone devices ns3.WifiHelper.EnablePcap("mixed-wireless", backboneDevices) # Let's additionally trace the application Sink, ifIndex 0 ns3.CsmaHelper.EnablePcap("mixed-wireless", appSink.GetId(), 0)
101ff6648fd16cde81e6411fa653e46544298119 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7746/101ff6648fd16cde81e6411fa653e46544298119/mixed-wireless.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 468, 468, 225, 5783, 16, 732, 14196, 471, 4046, 279, 11315, 1191, 3152, 716, 3325, 2690, 468, 225, 14754, 1472, 18, 468, 1473, 19930, 3205, 273, 1728, 8286, 354, 3205, 273, 1381, 328, 304, 3205, 273, 1381, 2132, 950, 273, 1728, 225, 468, 468, 225, 9587, 6234, 3467, 854, 14755, 444, 1024, 16, 1865, 1296, 980, 468, 225, 1775, 854, 2707, 18, 468, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 6667, 1225, 3113, 3153, 23, 18, 19733, 2932, 22, 2163, 6, 3719, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 751, 4727, 3113, 3153, 23, 18, 19733, 2932, 6334, 28, 8899, 19, 87, 6, 3719, 225, 468, 468, 225, 2457, 13553, 16, 732, 527, 326, 1191, 3152, 358, 326, 1296, 980, 1237, 468, 225, 2619, 1427, 716, 2898, 848, 506, 11000, 598, 2943, 4123, 487, 468, 225, 5238, 823, 19930, 3205, 33, 3462, 6, 468, 1797, 273, 3153, 23, 18, 21391, 1435, 468, 4172, 18, 986, 620, 2932, 823, 19930, 3205, 3113, 315, 2696, 434, 1473, 19930, 2199, 3113, 1473, 19930, 3205, 13, 468, 4172, 18, 986, 620, 2932, 10625, 354, 3205, 3113, 315, 2696, 434, 7839, 2199, 3113, 8286, 354, 3205, 13, 468, 4172, 18, 986, 620, 2932, 6115, 3205, 3113, 315, 2696, 434, 511, 1258, 2199, 3113, 328, 304, 3205, 13, 468, 4172, 18, 986, 620, 2932, 5681, 950, 3113, 315, 9812, 6234, 2132, 813, 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, 2774, 12, 19485, 4672, 468, 468, 225, 5783, 16, 732, 14196, 471, 4046, 279, 11315, 1191, 3152, 716, 3325, 2690, 468, 225, 14754, 1472, 18, 468, 1473, 19930, 3205, 273, 1728, 8286, 354, 3205, 273, 1381, 328, 304, 3205, 273, 1381, 2132, 950, 273, 1728, 225, 468, 468, 225, 9587, 6234, 3467, 854, 14755, 444, 1024, 16, 1865, 1296, 980, 468, 225, 1775, 854, 2707, 18, 468, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 6667, 1225, 3113, 3153, 23, 18, 19733, 2932, 22, 2163, 6, 3719, 3153, 23, 18, 809, 18, 694, 1868, 2932, 2387, 23, 2866, 1398, 7210, 3208, 2866, 751, 4727, 3113, 3153, 23, 18, 19733, 2932, 6334, 2 ]
not try to detect the po file encoding
not try to detect the po file encoding (optional, default to True) - *encoding*: string, an encoding, only relevant if autodetect_encoding is set to False
def mofile(fpath, wrapwidth=78, autodetect_encoding=True): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext to generate the po file that was used to format the mo file, default to 78 (optional) - *autodetect_encoding*: boolean, if set to False the function will not try to detect the po file encoding **Example**: >>> import polib >>> mo = polib.mofile('tests/test_utf8.mo') >>> mo #doctest: +ELLIPSIS <MOFile instance at ...> >>> import os, tempfile >>> for fname in ['test_iso-8859-15.mo', 'test_utf8.mo']: ... orig_mo = polib.mofile('tests/'+fname) ... tmpf = tempfile.NamedTemporaryFile().name ... orig_mo.save(tmpf) ... try: ... new_mo = polib.mofile(tmpf) ... for old, new in zip(orig_mo, new_mo): ... if old.msgid != new.msgid: ... old.msgstr ... new.msgstr ... finally: ... os.unlink(tmpf) """ # mofile {{{ if autodetect_encoding == True: global encoding encoding = detect_encoding(fpath) parser = _MOFileParser(fpath) instance = parser.parse() instance.wrapwidth = wrapwidth return instance # }}}
84283a42e705237a5676e2d029a85a48c882212d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/84283a42e705237a5676e2d029a85a48c882212d/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7344, 768, 12, 28900, 16, 2193, 2819, 33, 8285, 16, 2059, 369, 278, 386, 67, 5999, 33, 5510, 4672, 3536, 735, 9080, 445, 716, 1109, 326, 7344, 585, 380, 28900, 14, 471, 327, 279, 16070, 812, 791, 18, 225, 2826, 8736, 1775, 636, 30, 300, 380, 28900, 14, 30, 533, 16, 1983, 578, 3632, 589, 358, 326, 7344, 585, 358, 1109, 300, 380, 4113, 2819, 14, 30, 3571, 16, 326, 2193, 1835, 16, 1338, 5301, 1347, 300, 91, 1456, 1703, 2275, 358, 619, 29967, 358, 2103, 326, 8275, 585, 716, 1703, 1399, 358, 740, 326, 7344, 585, 16, 805, 358, 22860, 261, 10444, 13, 300, 380, 5854, 369, 278, 386, 67, 5999, 14, 30, 1250, 16, 309, 444, 358, 1083, 326, 445, 903, 486, 775, 358, 5966, 326, 8275, 585, 2688, 261, 10444, 16, 805, 358, 1053, 13, 300, 380, 5999, 14, 30, 533, 16, 392, 2688, 16, 1338, 9368, 309, 2059, 369, 278, 386, 67, 5999, 353, 444, 358, 1083, 225, 2826, 10908, 636, 30, 225, 4080, 1930, 2952, 495, 4080, 7344, 273, 2952, 495, 18, 8683, 768, 2668, 16341, 19, 3813, 67, 3158, 28, 18, 8683, 6134, 4080, 7344, 468, 2896, 299, 395, 30, 397, 2247, 2053, 52, 15664, 411, 5980, 812, 791, 622, 1372, 34, 4080, 1930, 1140, 16, 13275, 4080, 364, 5299, 316, 10228, 3813, 67, 9699, 17, 17258, 17, 3600, 18, 8683, 2187, 296, 3813, 67, 3158, 28, 18, 8683, 3546, 30, 1372, 377, 1647, 67, 8683, 273, 2952, 495, 18, 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, 7344, 768, 12, 28900, 16, 2193, 2819, 33, 8285, 16, 2059, 369, 278, 386, 67, 5999, 33, 5510, 4672, 3536, 735, 9080, 445, 716, 1109, 326, 7344, 585, 380, 28900, 14, 471, 327, 279, 16070, 812, 791, 18, 225, 2826, 8736, 1775, 636, 30, 300, 380, 28900, 14, 30, 533, 16, 1983, 578, 3632, 589, 358, 326, 7344, 585, 358, 1109, 300, 380, 4113, 2819, 14, 30, 3571, 16, 326, 2193, 1835, 16, 1338, 5301, 1347, 300, 91, 1456, 1703, 2275, 358, 619, 29967, 358, 2103, 326, 8275, 585, 716, 1703, 1399, 358, 740, 326, 7344, 585, 16, 805, 358, 22860, 261, 10444, 13, 300, 380, 5854, 369, 278, 386, 67, 5999, 14, 30, 1250, 16, 309, 444, 2 ]
lock = traced_call(None,"getlock",getlock,args,kwargs)
lock = traced_call(None,"createlock",createlock,args,kwargs)
def wrapped_getlock(*args,**kwargs): # Trace the call to get the lock lock = traced_call(None,"getlock",getlock,args,kwargs) # Return the wrapped lock return LockObj(lock)
73585345fe5f99a8f8f82c8c6e5fba2301440367 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/73585345fe5f99a8f8f82c8c6e5fba2301440367/strace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5805, 67, 588, 739, 30857, 1968, 16, 636, 4333, 4672, 468, 2677, 326, 745, 358, 336, 326, 2176, 2176, 273, 2606, 72, 67, 1991, 12, 7036, 10837, 27350, 292, 975, 3113, 27350, 292, 975, 16, 1968, 16, 4333, 13, 225, 468, 2000, 326, 5805, 2176, 327, 3488, 2675, 12, 739, 13, 225, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5805, 67, 588, 739, 30857, 1968, 16, 636, 4333, 4672, 468, 2677, 326, 745, 358, 336, 326, 2176, 2176, 273, 2606, 72, 67, 1991, 12, 7036, 10837, 27350, 292, 975, 3113, 27350, 292, 975, 16, 1968, 16, 4333, 13, 225, 468, 2000, 326, 5805, 2176, 327, 3488, 2675, 12, 739, 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 ]
day = int(mo.group(day)) year = int(mo.group(year)) hour = int(mo.group(hour)) min = int(mo.group(min)) sec = int(mo.group(sec)) zoneh = int(mo.group(zoneh)) zonem = int(mo.group(zonem))
day = int(mo.group('day')) year = int(mo.group('year')) hour = int(mo.group('hour')) min = int(mo.group('min')) sec = int(mo.group('sec')) zoneh = int(mo.group('zoneh')) zonem = int(mo.group('zonem'))
def Internaldate2tuple(resp): """Convert IMAP4 INTERNALDATE to UT. Returns Python time module tuple. """ mo = InternalDate.match(resp) if not mo: return None mon = Mon2num[mo.group('mon')] zonen = mo.group('zonen') day = int(mo.group(day)) year = int(mo.group(year)) hour = int(mo.group(hour)) min = int(mo.group(min)) sec = int(mo.group(sec)) zoneh = int(mo.group(zoneh)) zonem = int(mo.group(zonem)) # INTERNALDATE timezone must be subtracted to get UT zone = (zoneh*60 + zonem)*60 if zonen == '-': zone = -zone tt = (year, mon, day, hour, min, sec, -1, -1, -1) utc = time.mktime(tt) # Following is necessary because the time module has no 'mkgmtime'. # 'mktime' assumes arg in local timezone, so adds timezone/altzone. lt = time.localtime(utc) if time.daylight and lt[-1]: zone = zone + time.altzone else: zone = zone + time.timezone return time.localtime(utc - zone)
1cb949e02a2b684e42632ed3ee42c01e8be12ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1cb949e02a2b684e42632ed3ee42c01e8be12ea8/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3186, 712, 22, 8052, 12, 12243, 4672, 3536, 2723, 6246, 2203, 24, 18139, 4594, 358, 4732, 18, 225, 2860, 6600, 813, 1605, 3193, 18, 3536, 225, 7344, 273, 3186, 1626, 18, 1916, 12, 12243, 13, 309, 486, 7344, 30, 327, 599, 225, 6921, 273, 9041, 22, 2107, 63, 8683, 18, 1655, 2668, 2586, 6134, 65, 998, 265, 275, 273, 7344, 18, 1655, 2668, 94, 265, 275, 6134, 225, 2548, 273, 509, 12, 8683, 18, 1655, 2668, 2881, 26112, 3286, 273, 509, 12, 8683, 18, 1655, 2668, 6874, 26112, 6126, 273, 509, 12, 8683, 18, 1655, 2668, 12091, 26112, 1131, 273, 509, 12, 8683, 18, 1655, 2668, 1154, 26112, 1428, 273, 509, 12, 8683, 18, 1655, 2668, 3321, 26112, 4157, 76, 273, 509, 12, 8683, 18, 1655, 2668, 3486, 76, 26112, 998, 265, 351, 273, 509, 12, 8683, 18, 1655, 2668, 94, 265, 351, 26112, 225, 468, 18139, 4594, 6371, 1297, 506, 10418, 329, 358, 336, 4732, 225, 4157, 273, 261, 3486, 76, 14, 4848, 397, 998, 265, 351, 17653, 4848, 309, 998, 265, 275, 422, 4014, 30, 4157, 273, 300, 3486, 225, 3574, 273, 261, 6874, 16, 6921, 16, 2548, 16, 6126, 16, 1131, 16, 1428, 16, 300, 21, 16, 300, 21, 16, 300, 21, 13, 225, 9439, 273, 813, 18, 24816, 957, 12, 748, 13, 225, 468, 16093, 310, 353, 4573, 2724, 326, 813, 1605, 711, 1158, 296, 81, 14931, 10838, 10332, 468, 296, 24816, 957, 11, 13041, 1501, 316, 1191, 6371, 16, 1427, 4831, 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, 3186, 712, 22, 8052, 12, 12243, 4672, 3536, 2723, 6246, 2203, 24, 18139, 4594, 358, 4732, 18, 225, 2860, 6600, 813, 1605, 3193, 18, 3536, 225, 7344, 273, 3186, 1626, 18, 1916, 12, 12243, 13, 309, 486, 7344, 30, 327, 599, 225, 6921, 273, 9041, 22, 2107, 63, 8683, 18, 1655, 2668, 2586, 6134, 65, 998, 265, 275, 273, 7344, 18, 1655, 2668, 94, 265, 275, 6134, 225, 2548, 273, 509, 12, 8683, 18, 1655, 2668, 2881, 26112, 3286, 273, 509, 12, 8683, 18, 1655, 2668, 6874, 26112, 6126, 273, 509, 12, 8683, 18, 1655, 2668, 12091, 26112, 1131, 273, 509, 12, 8683, 18, 1655, 2668, 1154, 26112, 1428, 273, 509, 12, 8683, 18, 1655, 2668, 3321, 26112, 2 ]
( {'label':'Contents', 'action':'manage_main', 'help':('OFSP','Control-Panel_Contents.dtml')}, ) +Undo.UndoSupport.manage_options ) id ='Control_Panel' name=title='Control Panel' meta_type ='Control Panel' icon='p_/ControlPanel_icon' process_id=os.getpid() process_start=int(time.time()) manage_addObject=None manage_delObjects=None manage_addProperty=None manage_editProperties=None manage_delProperties=None def __init__(self): self.Products=ProductFolder() def _canCopy(self, op=0): return 0 def _init(self): pass def manage_app(self, URL2): """Return to the main management screen""" raise 'Redirect', URL2+'/manage' def process_time(self): s=int(time.time())-self.process_start d=int(s/86400) s=s-(d*86400) h=int(s/3600) s=s-(h*3600) m=int(s/60) s=s-(m*60) d=d and ('%d day%s' % (d, (d != 1 and 's' or ''))) or '' h=h and ('%d hour%s' % (h, (h != 1 and 's' or ''))) or '' m=m and ('%d min' % m) or '' s='%d sec' % s return '%s %s %s %s' % (d, h, m, s) def thread_get_ident(self): return get_ident() def db_name(self): return self._p_jar.db().getName() def db_size(self): if Globals.DatabaseVersion=='2': s=os.stat(self.db_name())[6] else: s=self._p_jar.db().getSize() if s >= 1048576.0: return '%.1fM' % (s/1048576.0) return '%.1fK' % (s/1024.0)
( {'label':'Debugging Info', 'action':'manage_main', 'help':('OFSP','DebugInfo-Debug.dtml')}, {'label':'Profiling', 'action':'manage_profile', 'help':('OFSP','DebugInfo-Profile.dtml')}, ) )
def sys_platform(self): return sys.platform
09e6a202ddf687c78c33a7a6774b6900b16fb69b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/09e6a202ddf687c78c33a7a6774b6900b16fb69b/ApplicationManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2589, 67, 9898, 12, 2890, 4672, 327, 2589, 18, 9898, 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 ]
[ 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2589, 67, 9898, 12, 2890, 4672, 327, 2589, 18, 9898, 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.__putConnection(connection)
self.__putConnection( connection )
def _escapeValues( self, inValues = [] ): """ Escapes all strings in the list of values provided """ self.logger.debug( '_escapeValues:', inValues )
0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6939, 1972, 12, 365, 16, 316, 1972, 273, 5378, 262, 30, 3536, 512, 1017, 7315, 777, 2064, 316, 326, 666, 434, 924, 2112, 3536, 365, 18, 4901, 18, 4148, 12, 2070, 6939, 1972, 30, 2187, 316, 1972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 924, 2112, 3536, 365, 18, 4901, 18, 4148, 12, 2070, 6939, 1972, 30, 2187, 316, 1972, 262, 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 ]
elif os.name == u'mac': pass
def _getLineWidth(self): width = 80 # 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' if os.name == u'posix' or os.name == u'mac' or os.name == u'os2': try: width_in, width_tmp, width_err = os.popen3('stty size') except ValueError: return width if not width_err.read(): width_tmp = width_tmp.read() width_in.close() width_tmp = width_tmp.splitlines() width_tmp = width_tmp[0].split() if len(width_tmp) == 2: try: width= int(width_tmp[1]) except ValueError: pass elif os.name == u'nt' or os.name == u'dos' or os.name == u'ce': try: from ctypes import windll, create_string_buffer except ImportError, m: return width # from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440694 h = windll.kernel32.GetStdHandle(-12) csbi = create_string_buffer(22) res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi) if res: try: import struct except ImportError: return width (bufx, bufy, curx, cury, wattr, left, top, right, bottom, maxx, maxy) = struct.unpack("hhhhHhhhhhh", csbi.raw) width = right - left + 1 elif os.name == u'mac': pass return width
d47ae56aadc97a6b2d8b1a2e17c3824e7e3bc676 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/d47ae56aadc97a6b2d8b1a2e17c3824e7e3bc676/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1670, 2384, 12, 2890, 4672, 1835, 273, 8958, 468, 296, 24463, 2187, 296, 496, 2187, 296, 19219, 2187, 296, 538, 22, 2187, 296, 5821, 2187, 578, 296, 311, 11, 309, 1140, 18, 529, 422, 582, 11, 24463, 11, 578, 1140, 18, 529, 422, 582, 17784, 1077, 11, 578, 1140, 18, 529, 422, 582, 11, 538, 22, 4278, 775, 30, 1835, 67, 267, 16, 1835, 67, 5645, 16, 1835, 67, 370, 273, 1140, 18, 84, 3190, 23, 2668, 334, 4098, 963, 6134, 1335, 2068, 30, 327, 1835, 309, 486, 1835, 67, 370, 18, 896, 13332, 1835, 67, 5645, 273, 1835, 67, 5645, 18, 896, 1435, 1835, 67, 267, 18, 4412, 1435, 1835, 67, 5645, 273, 1835, 67, 5645, 18, 4939, 3548, 1435, 1835, 67, 5645, 273, 1835, 67, 5645, 63, 20, 8009, 4939, 1435, 309, 562, 12, 2819, 67, 5645, 13, 422, 576, 30, 775, 30, 1835, 33, 509, 12, 2819, 67, 5645, 63, 21, 5717, 1335, 2068, 30, 1342, 1327, 1140, 18, 529, 422, 582, 11, 496, 11, 578, 1140, 18, 529, 422, 582, 14271, 538, 11, 578, 1140, 18, 529, 422, 582, 11, 311, 4278, 775, 30, 628, 6983, 1930, 17064, 2906, 16, 752, 67, 1080, 67, 4106, 1335, 11308, 16, 312, 30, 327, 1835, 468, 628, 1062, 2207, 345, 7449, 18, 11422, 395, 340, 18, 832, 19, 3033, 15124, 19, 39, 1184, 3618, 19, 15774, 19, 5650, 3151, 19, 6334, 7677, 11290, 366, 273, 17064, 2906, 18, 8111, 1578, 18, 967, 10436, 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, 1670, 2384, 12, 2890, 4672, 1835, 273, 8958, 468, 296, 24463, 2187, 296, 496, 2187, 296, 19219, 2187, 296, 538, 22, 2187, 296, 5821, 2187, 578, 296, 311, 11, 309, 1140, 18, 529, 422, 582, 11, 24463, 11, 578, 1140, 18, 529, 422, 582, 17784, 1077, 11, 578, 1140, 18, 529, 422, 582, 11, 538, 22, 4278, 775, 30, 1835, 67, 267, 16, 1835, 67, 5645, 16, 1835, 67, 370, 273, 1140, 18, 84, 3190, 23, 2668, 334, 4098, 963, 6134, 1335, 2068, 30, 327, 1835, 309, 486, 1835, 67, 370, 18, 896, 13332, 1835, 67, 5645, 273, 1835, 67, 5645, 18, 896, 1435, 1835, 67, 267, 18, 4412, 1435, 1835, 67, 5645, 273, 1835, 67, 2 ]
dict_string = dict_string.strip(" {}")
try: evaluated_dict = eval(dict_string, {"__builtins__": {}}, {}) except: evaluated_dict = {}
def get_dictionary_from_string(dict_string): """Given a string version of a "dictionary", split the string into a python dictionary. For example, given the following string: {'TITLE' : 'EX_TITLE', 'AUTHOR' : 'EX_AUTHOR', 'REPORTNUMBER' : 'EX_RN'} A dictionary in the following format will be returned: { 'TITLE' : 'EX_TITLE', 'AUTHOR' : 'EX_AUTHOR', 'REPORTNUMBER' : 'EX_RN', } @param dict_string: (string) - the string version of the dictionary. @return: (dictionary) - the dictionary build from the string. """ ## First, strip off the leading and trailing spaces and braces: dict_string = dict_string.strip(" {}") ## Next, split the string on commas (,) that have not been escaped ## So, the following string: """'hello' : 'world', 'click' : 'here'""" will be split ## into the following list: ["'hello' : 'world'", " 'click' : 'here'"] ## ## However, The following string: """'hello\, world' : '!', 'click' : 'here'""" ## will be split into: ["'hello\, world' : '!'", " 'click' : 'here'"] ## I.e. the comma that was escaped in the string has been kept. ## ## So basically, split on unescaped parameters at first: key_vals = re.split(r'(?<!\\),', dict_string) ## Now we should have a list of "key" : "value" terms. For each of them, check ## it is OK. If not in the format "Key" : "Value" (quotes are optional), discard it. ## As with the comma separator in the previous splitting, this one splits on any colon ## (:) that is not escaped by a backslash. final_dictionary = {} for key_value_string in key_vals: ## Split the pair apart, based on ":": key_value_pair = re.split(r'(?<!\\):', key_value_string, 1) ## check that the length of the new list is 2: if len(key_value_pair) != 2: ## There was a problem with the splitting - pass this pair continue ## The split was made. ## strip white-space, single-quotes and double-quotes from around the ## key and value pairs: key_term = key_value_pair[0].strip(" '\"") value_term = key_value_pair[1].strip(" '\"") ## Is the left-side (key) term empty? if len(key_term) == 0: continue ## Now, add the search-replace pair to the dictionary of search-replace terms: final_dictionary[key_term] = value_term return final_dictionary
27b839d58ba764a3d6ac21d85504e7ea967d3c94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/27b839d58ba764a3d6ac21d85504e7ea967d3c94/Shared_Functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15556, 67, 2080, 67, 1080, 12, 1576, 67, 1080, 4672, 3536, 6083, 279, 533, 1177, 434, 279, 315, 15556, 3113, 1416, 326, 533, 1368, 279, 5790, 3880, 18, 2457, 3454, 16, 864, 326, 3751, 533, 30, 13666, 14123, 11, 294, 296, 2294, 67, 14123, 2187, 296, 7131, 916, 11, 294, 296, 2294, 67, 7131, 916, 2187, 296, 22710, 9931, 11, 294, 296, 2294, 67, 54, 50, 11, 97, 432, 3880, 316, 326, 3751, 740, 903, 506, 2106, 30, 288, 296, 14123, 11, 3639, 294, 296, 2294, 67, 14123, 2187, 296, 7131, 916, 11, 4202, 294, 296, 2294, 67, 7131, 916, 2187, 296, 22710, 9931, 11, 294, 296, 2294, 67, 54, 50, 2187, 289, 632, 891, 2065, 67, 1080, 30, 261, 1080, 13, 300, 326, 533, 1177, 434, 326, 3880, 18, 632, 2463, 30, 261, 15556, 13, 300, 326, 3880, 1361, 628, 326, 533, 18, 3536, 7541, 5783, 16, 2569, 3397, 326, 7676, 471, 7341, 7292, 471, 26852, 30, 698, 30, 1377, 12697, 67, 1576, 273, 5302, 12, 1576, 67, 1080, 16, 12528, 972, 12406, 2679, 972, 6877, 2618, 5779, 2618, 13, 1335, 30, 12697, 67, 1576, 273, 2618, 225, 7541, 4804, 16, 1416, 326, 533, 603, 23528, 261, 16, 13, 716, 1240, 486, 2118, 8345, 7541, 6155, 16, 326, 3751, 533, 30, 3536, 11, 23711, 11, 294, 296, 18179, 2187, 296, 7475, 11, 294, 296, 14852, 11, 8395, 903, 506, 1416, 7541, 1368, 326, 3751, 666, 30, 306, 5187, 23711, 11, 294, 296, 18179, 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, 15556, 67, 2080, 67, 1080, 12, 1576, 67, 1080, 4672, 3536, 6083, 279, 533, 1177, 434, 279, 315, 15556, 3113, 1416, 326, 533, 1368, 279, 5790, 3880, 18, 2457, 3454, 16, 864, 326, 3751, 533, 30, 13666, 14123, 11, 294, 296, 2294, 67, 14123, 2187, 296, 7131, 916, 11, 294, 296, 2294, 67, 7131, 916, 2187, 296, 22710, 9931, 11, 294, 296, 2294, 67, 54, 50, 11, 97, 432, 3880, 316, 326, 3751, 740, 903, 506, 2106, 30, 288, 296, 14123, 11, 3639, 294, 296, 2294, 67, 14123, 2187, 296, 7131, 916, 11, 4202, 294, 296, 2294, 67, 7131, 916, 2187, 296, 22710, 9931, 11, 294, 296, 2294, 67, 54, 50, 2187, 289, 632, 891, 2065, 2 ]
_add_section(doc, token, stack, indent_stack, errors, warnings)
_add_section(doc, token, stack, indent_stack, errors)
def parse(str, errors = None, warnings = None): """ Return a DOM tree encoding the contents of an epytext string. Any errors or warnings generated during parsing will be stored in the C{errors} and C{warnings} parameters. @param str: The epytext string to parse. @type str: C{string} @param errors: A list where any errors generated during parsing will be stored. If no list is specified, then errors will generate exceptions. @type errors: C{list} of L{ParseError} @param warnings: A list where any warnings generated during parsing will be stored. If no list is specified, then warnings will be silently ignored. @type warnings: C{list} of L{ParseError} @return: a DOM tree encoding the contents of an epytext string. @rtype: L{xml.dom.minidom.Document} @raise ParseError: If C{errors} is C{None} and an error is encountered while parsing. @see: L{xml.dom.minidom.Document} """ # Initialize warning and error lists. if warnings == None: warnings = [] if errors == None: errors = [] raise_on_error = 1 else: raise_on_error = 0 # Preprocess the string. str = re.sub('\015\012', '\012', str) str = string.expandtabs(str) # Tokenize the input string. tokens = _tokenize(str, warnings, errors) # Have we encountered a field yet? encountered_field = 0 # Create an XML document to hold the epytext. doc = Document() # Maintain two parallel stacks: one contains DOM elements, and # gives the ancestors of the current block. The other contains # indentation values, and gives the indentation of the # corresponding DOM elements. An indentation of "None" reflects # an unknown indentation. However, the indentation must be # greater than, or greater than or equal to, the indentation of # the prior element (depending on what type of DOM element it # corresponds to). No 2 consecutive indent_stack values will be # ever be "None." Use initial dummy elements in the stack, so we # don't have to worry about bounds checking. stack = [None, doc.createElement('epytext')] indent_stack = [-1, None] for token in tokens: # Uncomment these for debugging: #print ''.join(['%11s' % (t and t.tagName) for t in stack]),':',token.tag #print ''.join(['%11s' % i for i in indent_stack]),':',token.indent # Pop any completed blocks off the stack. _pop_completed_blocks(token, stack, indent_stack) # If Token has type PARA, colorize and add the new paragraph if token.tag == Token.PARA: _add_para(doc, token, stack, indent_stack, errors, warnings) # If Token has type HEADING, add the new section elif token.tag == Token.HEADING: _add_section(doc, token, stack, indent_stack, errors, warnings) # If Token has type LBLOCK, add the new literal block elif token.tag == Token.LBLOCK: stack[-1].appendChild(token.to_dom(doc)) # If Token has type DTBLOCK, add the new doctest block elif token.tag == Token.DTBLOCK: stack[-1].appendChild(token.to_dom(doc)) # If Token has type BULLET, add the new list/list item/field elif token.tag == Token.BULLET: _add_list(doc, token, stack, indent_stack, errors, warnings) else: assert 0, 'Unknown token type: '+token.tag # Check if the DOM element we just added was a field.. if stack[-1].tagName == 'field': encountered_field = 1 elif encountered_field == 1: if len(stack) <= 3: estr = ("Fields must be the final elements in an "+ "epytext string.") errors.append(StructuringError(estr, token)) # If there was an error, then signal it! if errors != []: if raise_on_error: raise errors[0] else: return None # Return the top-level epytext DOM element. doc.appendChild(stack[1]) return doc
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 701, 16, 1334, 273, 599, 16, 5599, 273, 599, 4672, 3536, 2000, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 5502, 1334, 578, 5599, 4374, 4982, 5811, 903, 506, 4041, 316, 326, 385, 95, 4324, 97, 471, 385, 95, 12103, 97, 1472, 18, 225, 632, 891, 609, 30, 1021, 425, 2074, 955, 533, 358, 1109, 18, 632, 723, 609, 30, 385, 95, 1080, 97, 225, 632, 891, 1334, 30, 432, 666, 1625, 1281, 1334, 4374, 4982, 5811, 903, 506, 4041, 18, 225, 971, 1158, 666, 353, 1269, 16, 1508, 1334, 903, 2103, 4798, 18, 632, 723, 1334, 30, 385, 95, 1098, 97, 434, 511, 95, 21004, 97, 225, 632, 891, 5599, 30, 432, 666, 1625, 1281, 5599, 4374, 4982, 5811, 903, 506, 4041, 18, 225, 971, 1158, 666, 353, 1269, 16, 1508, 5599, 903, 506, 22274, 5455, 18, 632, 723, 5599, 30, 385, 95, 1098, 97, 434, 511, 95, 21004, 97, 225, 632, 2463, 30, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 632, 86, 723, 30, 511, 95, 2902, 18, 9859, 18, 1154, 350, 362, 18, 2519, 97, 225, 632, 11628, 17372, 30, 971, 385, 95, 4324, 97, 353, 385, 95, 7036, 97, 471, 392, 555, 353, 9919, 1323, 5811, 18, 225, 632, 5946, 30, 511, 95, 2902, 18, 9859, 18, 1154, 350, 362, 18, 2519, 97, 3536, 468, 9190, 3436, 471, 555, 6035, 18, 309, 5599, 422, 599, 30, 5599, 273, 5378, 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, 1109, 12, 701, 16, 1334, 273, 599, 16, 5599, 273, 599, 4672, 3536, 2000, 279, 4703, 2151, 2688, 326, 2939, 434, 392, 425, 2074, 955, 533, 18, 5502, 1334, 578, 5599, 4374, 4982, 5811, 903, 506, 4041, 316, 326, 385, 95, 4324, 97, 471, 385, 95, 12103, 97, 1472, 18, 225, 632, 891, 609, 30, 1021, 425, 2074, 955, 533, 358, 1109, 18, 632, 723, 609, 30, 385, 95, 1080, 97, 225, 632, 891, 1334, 30, 432, 666, 1625, 1281, 1334, 4374, 4982, 5811, 903, 506, 4041, 18, 225, 971, 1158, 666, 353, 1269, 16, 1508, 1334, 903, 2103, 4798, 18, 632, 723, 1334, 30, 385, 95, 1098, 97, 434, 511, 95, 21004, 97, 225, 632, 891, 5599, 2 ]
["source/run.c"],
["source/run.c", "source/start.c"],
def _removefiles(self, dstdir, srcdir): if not os.path.isdir(srcdir): return for n in os.listdir(srcdir): name = os.path.join(dstdir, n) if os.path.isfile(name): self.announce("removing '%s'" % name) if not self.dry_run: os.remove(name) if os.path.splitext(name)[1] == '.py': try: os.remove(name + 'c') except: pass try: os.remove(name + 'o') except: pass elif os.path.isdir(name): self._removefiles(name, os.path.join(srcdir, n)) if not self.dry_run: os.rmdir(name) else: self.announce("skipping removal of '%s' (does not exist)" %\ name)
6c0e865e7cfefd57ec3be3495edb997bb8f96e7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/6c0e865e7cfefd57ec3be3495edb997bb8f96e7f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 2354, 12, 2890, 16, 3046, 1214, 16, 1705, 1214, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 4816, 1214, 4672, 327, 364, 290, 316, 1140, 18, 1098, 1214, 12, 4816, 1214, 4672, 508, 273, 1140, 18, 803, 18, 5701, 12, 11057, 1214, 16, 290, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 529, 4672, 365, 18, 1072, 8386, 2932, 2764, 13767, 1995, 87, 4970, 738, 508, 13, 309, 486, 365, 18, 25011, 67, 2681, 30, 1140, 18, 4479, 12, 529, 13, 309, 1140, 18, 803, 18, 4939, 408, 12, 529, 25146, 21, 65, 422, 2418, 2074, 4278, 775, 30, 1140, 18, 4479, 12, 529, 397, 296, 71, 6134, 1335, 30, 1342, 775, 30, 1140, 18, 4479, 12, 529, 397, 296, 83, 6134, 1335, 30, 1342, 1327, 1140, 18, 803, 18, 291, 1214, 12, 529, 4672, 365, 6315, 4479, 2354, 12, 529, 16, 1140, 18, 803, 18, 5701, 12, 4816, 1214, 16, 290, 3719, 309, 486, 365, 18, 25011, 67, 2681, 30, 1140, 18, 8864, 1214, 12, 529, 13, 469, 30, 365, 18, 1072, 8386, 2932, 7457, 1382, 14817, 434, 1995, 87, 11, 261, 20657, 486, 1005, 2225, 738, 64, 508, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 2354, 12, 2890, 16, 3046, 1214, 16, 1705, 1214, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 4816, 1214, 4672, 327, 364, 290, 316, 1140, 18, 1098, 1214, 12, 4816, 1214, 4672, 508, 273, 1140, 18, 803, 18, 5701, 12, 11057, 1214, 16, 290, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 529, 4672, 365, 18, 1072, 8386, 2932, 2764, 13767, 1995, 87, 4970, 738, 508, 13, 309, 486, 365, 18, 25011, 67, 2681, 30, 1140, 18, 4479, 12, 529, 13, 309, 1140, 18, 803, 18, 4939, 408, 12, 529, 25146, 21, 65, 422, 2418, 2074, 4278, 775, 30, 1140, 18, 4479, 12, 529, 397, 296, 71, 6134, 1335, 30, 1342, 775, 30, 2 ]
self.assertEqual(lookup.directories, ['a', 'b'])
module_path = os.path.dirname(sys.modules['__main__'].__file__) self.assertEqual(lookup.directories, [ os.path.join(module_path, 'a'), os.path.join(module_path, 'b')])
def test_directories_list(self): from pyramid.mako_templating import IMakoLookup settings = {'mako.directories':['a', 'b']} info = DummyRendererInfo({ 'name':'helloworld.mak', 'package':None, 'registry':self.config.registry, 'settings':settings, }) self._callFUT(info) lookup = self.config.registry.getUtility(IMakoLookup) self.assertEqual(lookup.directories, ['a', 'b'])
b4675031ed9b2313e9df5cd73dc2575bec67192b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/b4675031ed9b2313e9df5cd73dc2575bec67192b/test_mako_templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15121, 67, 1098, 12, 2890, 4672, 628, 2395, 23083, 18, 81, 581, 83, 67, 27380, 1776, 1930, 6246, 581, 83, 6609, 1947, 273, 13666, 81, 581, 83, 18, 15121, 4278, 3292, 69, 2187, 296, 70, 14579, 1123, 273, 28622, 6747, 966, 12590, 296, 529, 11, 2497, 76, 11394, 6245, 18, 81, 581, 2187, 296, 5610, 4278, 7036, 16, 296, 9893, 4278, 2890, 18, 1425, 18, 9893, 16, 296, 4272, 4278, 4272, 16, 289, 13, 365, 6315, 1991, 42, 1693, 12, 1376, 13, 3689, 273, 365, 18, 1425, 18, 9893, 18, 588, 6497, 12, 3445, 581, 83, 6609, 13, 365, 18, 11231, 5812, 12, 8664, 18, 15121, 16, 10228, 69, 2187, 296, 70, 19486, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15121, 67, 1098, 12, 2890, 4672, 628, 2395, 23083, 18, 81, 581, 83, 67, 27380, 1776, 1930, 6246, 581, 83, 6609, 1947, 273, 13666, 81, 581, 83, 18, 15121, 4278, 3292, 69, 2187, 296, 70, 14579, 1123, 273, 28622, 6747, 966, 12590, 296, 529, 11, 2497, 76, 11394, 6245, 18, 81, 581, 2187, 296, 5610, 4278, 7036, 16, 296, 9893, 4278, 2890, 18, 1425, 18, 9893, 16, 296, 4272, 4278, 4272, 16, 289, 13, 365, 6315, 1991, 42, 1693, 12, 1376, 13, 3689, 273, 365, 18, 1425, 18, 9893, 18, 588, 6497, 12, 3445, 581, 83, 6609, 13, 365, 18, 11231, 5812, 12, 8664, 18, 15121, 16, 10228, 69, 2187, 296, 70, 19486, 2, -100, -100, -100 ]
self.rbAlignment.SetSelection(text_to_ID(self.curOptions.alignment))
self.rbAlignment.SetSelection(util.text_to_ID(self.curOptions.alignment))
def SetOptions(self, menuOpts): """Set control values based on the provided MenuOptions.""" self.curOptions = menuOpts
39f50e3e21f3be060f5de23ec9248e81c76a04ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2305/39f50e3e21f3be060f5de23ec9248e81c76a04ed/panels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1320, 12, 2890, 16, 3824, 5476, 4672, 3536, 694, 3325, 924, 2511, 603, 326, 2112, 9809, 1320, 12123, 365, 18, 1397, 1320, 273, 3824, 5476, 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,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, 5476, 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 ]
manifestchangeset[changes[0]] = n
def verify(self): filelinkrevs = {} filenodes = {} manifestchangeset = {} changesets = revisions = files = 0 errors = 0
d28dfb673f54a4ab197cab7a012ae86c69a139b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/d28dfb673f54a4ab197cab7a012ae86c69a139b4/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 4672, 661, 27269, 266, 6904, 273, 2618, 661, 275, 1145, 273, 2618, 5643, 6329, 278, 273, 2618, 3478, 2413, 273, 18325, 273, 1390, 273, 374, 1334, 273, 374, 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, 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652, 3929, 12, 2890, 4672, 661, 27269, 266, 6904, 273, 2618, 661, 275, 1145, 273, 2618, 5643, 6329, 278, 273, 2618, 3478, 2413, 273, 18325, 273, 1390, 273, 374, 1334, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 2, 'extension', extension
def parse_post(self, entry): # parse the dates first. updated = parse_iso8601(entry.findtext(atom.updated)) published = entry.findtext(atom.published) if published is not None: published = parse_iso8601(published) else: published = updated
3971ab248c9675fd10b8e78a70a73a9f06d0bdb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5796/3971ab248c9675fd10b8e78a70a73a9f06d0bdb4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2767, 12, 2890, 16, 1241, 4672, 468, 1109, 326, 7811, 1122, 18, 3526, 273, 1109, 67, 9699, 14181, 12, 4099, 18, 4720, 955, 12, 7466, 18, 7007, 3719, 9487, 273, 1241, 18, 4720, 955, 12, 7466, 18, 12614, 13, 309, 9487, 353, 486, 599, 30, 9487, 273, 1109, 67, 9699, 14181, 12, 12614, 13, 469, 30, 9487, 273, 3526, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2767, 12, 2890, 16, 1241, 4672, 468, 1109, 326, 7811, 1122, 18, 3526, 273, 1109, 67, 9699, 14181, 12, 4099, 18, 4720, 955, 12, 7466, 18, 7007, 3719, 9487, 273, 1241, 18, 4720, 955, 12, 7466, 18, 12614, 13, 309, 9487, 353, 486, 599, 30, 9487, 273, 1109, 67, 9699, 14181, 12, 12614, 13, 469, 30, 9487, 273, 3526, 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 ]
'commitment_date': fields.function(_get_commitment_date, method=True,store=True, type='date', string='Commitment Date', help="Date on which delivery of products is to be made"),
'commitment_date': fields.function(_get_commitment_date, method=True, store=True, type='date', string='Commitment Date', help="Date on which delivery of products is to be made"),
def _get_commitment_date(self, cr, uid, ids, name, arg, context={}): res = {} dates_list = [] for order in self.browse(cr, uid, ids): dates_list = [] for line in order.order_line: dt = datetime.strptime(order.date_order, '%Y-%m-%d') + relativedelta(days=line.delay or 0.0) dt_s = dt.strftime('%Y-%m-%d') dates_list.append(dt_s) if dates_list: res[order.id] = min(dates_list) return res
f7eae25635f6966d88cdbfc057fef7ac01f12d3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f7eae25635f6966d88cdbfc057fef7ac01f12d3d/sale_order_dates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 7371, 475, 67, 712, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 7811, 67, 1098, 273, 5378, 364, 1353, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 7811, 67, 1098, 273, 5378, 364, 980, 316, 1353, 18, 1019, 67, 1369, 30, 3681, 273, 3314, 18, 701, 10650, 12, 1019, 18, 712, 67, 1019, 16, 1995, 61, 6456, 81, 6456, 72, 6134, 397, 26513, 2950, 8967, 12, 9810, 33, 1369, 18, 10790, 578, 374, 18, 20, 13, 3681, 67, 87, 273, 3681, 18, 701, 9982, 29909, 61, 6456, 81, 6456, 72, 6134, 7811, 67, 1098, 18, 6923, 12, 7510, 67, 87, 13, 309, 7811, 67, 1098, 30, 400, 63, 1019, 18, 350, 65, 273, 1131, 12, 9683, 67, 1098, 13, 327, 400, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 7371, 475, 67, 712, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 7811, 67, 1098, 273, 5378, 364, 1353, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 7811, 67, 1098, 273, 5378, 364, 980, 316, 1353, 18, 1019, 67, 1369, 30, 3681, 273, 3314, 18, 701, 10650, 12, 1019, 18, 712, 67, 1019, 16, 1995, 61, 6456, 81, 6456, 72, 6134, 397, 26513, 2950, 8967, 12, 9810, 33, 1369, 18, 10790, 578, 374, 18, 20, 13, 3681, 67, 87, 273, 3681, 18, 701, 9982, 29909, 61, 6456, 81, 6456, 72, 6134, 7811, 67, 1098, 18, 6923, 12, 7510, 67, 87, 13, 2 ]
shutil.copyfile(kconfig.path, os.path.join(self.branch.srcdir, ".config"))
if kconfig.path: shutil.copyfile(kconfig.path, os.path.join(self.branch.srcdir, ".config"))
def do_configure(self, buildscript): buildscript.set_action(_('Configuring'), self)
3c3b5cab97cd85b94624d2a4563b4dc89c24dfc2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/3c3b5cab97cd85b94624d2a4563b4dc89c24dfc2/linux.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 14895, 12, 2890, 16, 1361, 4263, 4672, 1361, 4263, 18, 542, 67, 1128, 24899, 2668, 809, 4017, 19899, 365, 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, 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, 741, 67, 14895, 12, 2890, 16, 1361, 4263, 4672, 1361, 4263, 18, 542, 67, 1128, 24899, 2668, 809, 4017, 19899, 365, 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 ]
sys.stderr.write("Error: Cannot read %s.\n" % url_direct[1:-1])
sys.stderr.write("Error: Cannot read %s.\n" % url_direct)
def get_words_from_fulltext(url_indirect,separators="[^\w]",split=string.split): """Returns all the words contained in the fulltext whose url is contained in the document pointed to in phrase. Please note the double indirection. url_indirect returns a document that has to be parsed to get the actual urls.""" if cfg_bibindex_fulltext_index_local_files_only and string.find(url_indirect, weburl) < 0: return [] if options["verbose"] >= 2: write_message("... reading fulltext files from %s started" % url_indirect) url_direct = None fulltext_urls = None # check for direct link in url url_indirect_ext = lower(split(url_indirect,".")[-1]) if url_indirect_ext in conv_programs.keys(): fulltext_urls = [(url_indirect_ext,url_indirect)] # Indirect url. Try to fetch the real fulltext(s) if not fulltext_urls: # read "setlink" data try: htmlpagebody = urllib.urlopen(url_indirect).read() except: sys.stderr.write("Error: Cannot read %s.\n" % url_indirect) return [] fulltext_urls = get_fulltext_urls_from_html_page(htmlpagebody) if options["verbose"] >= 9: write_message("... fulltext_urls = %s" % fulltext_urls) words = {} # process as many urls as they were found: for (ext,url_direct) in fulltext_urls: if options["verbose"] >= 2: write_message(".... processing %s from %s started" % (ext,url_direct)) # sanity check: if not url_direct: break; # read fulltext file: try: url = urllib.urlopen(url_direct[1:-1]) except: sys.stderr.write("Error: Cannot read %s.\n" % url_direct[1:-1]) break # try other fulltext files... tmp_name = tempfile.mktemp('cdsware.tmp') tmp_fd = open(tmp_name, "w") data_chunk = url.read(8*1024) while data_chunk: tmp_fd.write(data_chunk) data_chunk = url.read(8*1024) tmp_fd.close() # try all available conversion programs according to their order: bingo = 0 for conv_program in conv_programs[ext]: if os.path.exists(conv_program): # intelligence on how to run various conversion programs: cmd = "" # wil keep command to run bingo = 0 # had we success? if os.path.basename(conv_program) == "pdftotext": cmd = "%s %s %s.txt" % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "pstotext": if ext == "ps.gz": # is there gzip available? if os.path.exists(conv_programs_helpers["gz"]): cmd = "%s -cd %s | %s > %s.txt" \ % (conv_programs_helpers["gz"], tmp_name, conv_program, tmp_name) else: cmd = "%s %s > %s.txt" \ % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "ps2ascii": if ext == "ps.gz": # is there gzip available? if os.path.exists(conv_programs_helpers["gz"]): cmd = "%s -cd %s | %s > %s.txt"\ % (conv_programs_helpers["gz"], tmp_name, conv_program, tmp_name) else: cmd = "%s %s %s.txt" \ % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "antiword": cmd = "%s %s > %s.txt" % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "catdoc": cmd = "%s %s > %s.txt" % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "wvText": cmd = "%s %s %s.txt" % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "ppthtml": # is there html2text available? if os.path.exists(conv_programs_helpers["html"]): cmd = "%s %s | %s > %s.txt"\ % (conv_program, tmp_name, conv_programs_helpers["html"], tmp_name) else: cmd = "%s %s > %s.txt" \ % (conv_program, tmp_name, tmp_name) elif os.path.basename(conv_program) == "xlhtml": # is there html2text available? if os.path.exists(conv_programs_helpers["html"]): cmd = "%s %s | %s > %s.txt" % \ (conv_program, tmp_name, conv_programs_helpers["html"], tmp_name) else: cmd = "%s %s > %s.txt" % \ (conv_program, tmp_name, tmp_name) else: sys.stderr.write("Error: Do not know how to handle %s conversion program.\n" % conv_program) # try to run it: try: if options["verbose"] >= 9: write_message("..... launching %s" % cmd) errcode = os.system(cmd) if errcode == 0 and os.path.exists("%s.txt" % tmp_name): bingo = 1 break # bingo! else: write_message("Error while running %s for %s.\n" % (cmd, url_direct), sys.stderr) except: write_message("Error running %s for %s.\n" % (cmd, url_direct), sys.stderr) # were we successful? if bingo: tmp_name_txt_file = open("%s.txt" % tmp_name) for phrase in tmp_name_txt_file.xreadlines(): for word in get_words_from_phrase(phrase): if not words.has_key(word): words[word] = 1; tmp_name_txt_file.close() else: if options["verbose"]: write_message("No conversion success for %s.\n" % (url_direct), sys.stderr) # delete temp files (they might not exist): try: os.unlink(tmp_name) os.unlink(tmp_name + ".txt") except StandardError: write_message("Error: Could not delete file. It didn't exist", sys.stderr) if options["verbose"] >= 2: write_message(".... processing %s from %s ended" % (ext,url_direct)) if options["verbose"] >= 2: write_message("... reading fulltext files from %s ended" % url_indirect) return words.keys()
561825a6b79fb9a0227b867de758f582751b04a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/561825a6b79fb9a0227b867de758f582751b04a3/bibindex_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3753, 67, 2080, 67, 2854, 955, 12, 718, 67, 728, 867, 16, 11287, 87, 1546, 15441, 91, 65, 3113, 4939, 33, 1080, 18, 4939, 4672, 3536, 1356, 777, 326, 4511, 7542, 316, 326, 1983, 955, 8272, 880, 353, 7542, 316, 326, 1668, 25874, 358, 316, 13045, 18, 7801, 4721, 326, 1645, 1547, 2769, 18, 880, 67, 728, 867, 1135, 279, 1668, 716, 711, 358, 506, 2707, 358, 336, 326, 3214, 6903, 12123, 309, 2776, 67, 70, 495, 1615, 67, 2854, 955, 67, 1615, 67, 3729, 67, 2354, 67, 3700, 471, 533, 18, 4720, 12, 718, 67, 728, 867, 16, 3311, 718, 13, 411, 374, 30, 327, 5378, 309, 702, 9614, 11369, 11929, 1545, 576, 30, 1045, 67, 2150, 2932, 2777, 6453, 1983, 955, 1390, 628, 738, 87, 5746, 6, 738, 880, 67, 728, 867, 13, 880, 67, 7205, 273, 599, 1983, 955, 67, 10518, 273, 599, 468, 866, 364, 2657, 1692, 316, 880, 880, 67, 728, 867, 67, 408, 273, 2612, 12, 4939, 12, 718, 67, 728, 867, 10837, 1199, 13, 18919, 21, 5717, 225, 309, 880, 67, 728, 867, 67, 408, 316, 6292, 67, 12890, 87, 18, 2452, 13332, 1983, 955, 67, 10518, 273, 306, 12, 718, 67, 728, 867, 67, 408, 16, 718, 67, 728, 867, 25887, 225, 468, 27437, 880, 18, 6161, 358, 2158, 326, 2863, 1983, 955, 12, 87, 13, 309, 486, 1983, 955, 67, 10518, 30, 468, 855, 315, 542, 1232, 6, 501, 775, 30, 1729, 2433, 3432, 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, 336, 67, 3753, 67, 2080, 67, 2854, 955, 12, 718, 67, 728, 867, 16, 11287, 87, 1546, 15441, 91, 65, 3113, 4939, 33, 1080, 18, 4939, 4672, 3536, 1356, 777, 326, 4511, 7542, 316, 326, 1983, 955, 8272, 880, 353, 7542, 316, 326, 1668, 25874, 358, 316, 13045, 18, 7801, 4721, 326, 1645, 1547, 2769, 18, 880, 67, 728, 867, 1135, 279, 1668, 716, 711, 358, 506, 2707, 358, 336, 326, 3214, 6903, 12123, 309, 2776, 67, 70, 495, 1615, 67, 2854, 955, 67, 1615, 67, 3729, 67, 2354, 67, 3700, 471, 533, 18, 4720, 12, 718, 67, 728, 867, 16, 3311, 718, 13, 411, 374, 30, 327, 5378, 309, 702, 9614, 11369, 11929, 1545, 576, 30, 1045, 2 ]
sage: G = abelian_2group(3).gcs()
sage: G = elementary_abelian_2group(3).gcs()
def is_uniquely_completable(self): """ Returns True if the partial latin square self has exactly one completion to a latin square. This is just a wrapper for the current best-known algorithm, Dancing Links by Knuth. See dancing_links.spyx
be8c2e6b4b0657cdd72dccd599da425d93a43bab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/be8c2e6b4b0657cdd72dccd599da425d93a43bab/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 318, 18988, 2357, 67, 7806, 429, 12, 2890, 4672, 3536, 2860, 1053, 309, 326, 4702, 30486, 8576, 365, 711, 8950, 1245, 8364, 358, 279, 30486, 8576, 18, 1220, 353, 2537, 279, 4053, 364, 326, 783, 3796, 17, 2994, 4886, 16, 463, 304, 2822, 21771, 635, 1475, 82, 795, 18, 2164, 302, 304, 2822, 67, 7135, 18, 30884, 92, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 318, 18988, 2357, 67, 7806, 429, 12, 2890, 4672, 3536, 2860, 1053, 309, 326, 4702, 30486, 8576, 365, 711, 8950, 1245, 8364, 358, 279, 30486, 8576, 18, 1220, 353, 2537, 279, 4053, 364, 326, 783, 3796, 17, 2994, 4886, 16, 463, 304, 2822, 21771, 635, 1475, 82, 795, 18, 2164, 302, 304, 2822, 67, 7135, 18, 30884, 92, 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 ]
print 'opening %s' % url
def _query(self, path=None, **keyvars): """ obj._query(path=None, **keyvars) -> xml string
b416cacb8ad84b111e61fa22756b38ff9f6ebba8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/b416cacb8ad84b111e61fa22756b38ff9f6ebba8/MythBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2271, 12, 2890, 16, 589, 33, 7036, 16, 2826, 856, 4699, 4672, 3536, 1081, 6315, 2271, 12, 803, 33, 7036, 16, 2826, 856, 4699, 13, 317, 2025, 533, 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, 0, 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, 2271, 12, 2890, 16, 589, 33, 7036, 16, 2826, 856, 4699, 4672, 3536, 1081, 6315, 2271, 12, 803, 33, 7036, 16, 2826, 856, 4699, 13, 317, 2025, 533, 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 ]
self.assert_(not os.path.exists(linkname))
self.assert_(not os.path.lexists(linkname))
def test_delete(self): """Unit test for method delete()"""
e08d8cbaa1024e6af1840257911d4a6a2b6d83a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/e08d8cbaa1024e6af1840257911d4a6a2b6d83a6/FileUtilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 12, 2890, 4672, 3536, 2802, 1842, 364, 707, 1430, 1435, 8395, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 12, 2890, 4672, 3536, 2802, 1842, 364, 707, 1430, 1435, 8395, 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 ]
ctype, gp = patches[f]
gp = patches[f]
def updatedir(ui, repo, patches): '''Update dirstate after patch application according to metadata''' if not patches: return copies = [] removes = {} cfiles = patches.keys() cwd = repo.getcwd() if cwd: cfiles = [util.pathto(repo.root, cwd, f) for f in patches.keys()] for f in patches: ctype, gp = patches[f] if ctype == 'RENAME': copies.append((gp.oldpath, gp.path)) removes[gp.oldpath] = 1 elif ctype == 'COPY': copies.append((gp.oldpath, gp.path)) elif ctype == 'DELETE': removes[gp.path] = 1 for src, dst in copies: repo.copy(src, dst) removes = removes.keys() if removes: repo.remove(util.sort(removes), True) for f in patches: ctype, gp = patches[f] if gp and gp.mode: islink, isexec = gp.mode dst = os.path.join(repo.root, gp.path) # patch won't create empty files if ctype == 'ADD' and not os.path.exists(dst): flags = (isexec and 'x' or '') + (islink and 'l' or '') repo.wwrite(gp.path, '', flags) else: util.set_flags(dst, islink, isexec) cmdutil.addremove(repo, cfiles) files = patches.keys() files.extend([r for r in removes if r not in files]) return util.sort(files)
545f4d8d558fec3c96fc1546200fe77944791dac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/545f4d8d558fec3c96fc1546200fe77944791dac/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3526, 481, 12, 4881, 16, 3538, 16, 16482, 4672, 9163, 1891, 302, 920, 340, 1839, 4729, 2521, 4888, 358, 1982, 26418, 309, 486, 16482, 30, 327, 13200, 273, 5378, 7157, 273, 2618, 276, 2354, 273, 16482, 18, 2452, 1435, 7239, 273, 3538, 18, 588, 11089, 1435, 309, 7239, 30, 276, 2354, 273, 306, 1367, 18, 803, 869, 12, 7422, 18, 3085, 16, 7239, 16, 284, 13, 364, 284, 316, 16482, 18, 2452, 1435, 65, 364, 284, 316, 16482, 30, 4178, 273, 16482, 63, 74, 65, 309, 11920, 422, 296, 862, 1985, 4278, 13200, 18, 6923, 12443, 6403, 18, 1673, 803, 16, 4178, 18, 803, 3719, 7157, 63, 6403, 18, 1673, 803, 65, 273, 404, 1327, 11920, 422, 296, 24875, 4278, 13200, 18, 6923, 12443, 6403, 18, 1673, 803, 16, 4178, 18, 803, 3719, 1327, 11920, 422, 296, 6460, 4278, 7157, 63, 6403, 18, 803, 65, 273, 404, 364, 1705, 16, 3046, 316, 13200, 30, 3538, 18, 3530, 12, 4816, 16, 3046, 13, 7157, 273, 7157, 18, 2452, 1435, 309, 7157, 30, 3538, 18, 4479, 12, 1367, 18, 3804, 12, 2764, 10829, 3631, 1053, 13, 364, 284, 316, 16482, 30, 4178, 273, 16482, 63, 74, 65, 309, 4178, 471, 4178, 18, 3188, 30, 353, 1232, 16, 277, 20909, 557, 273, 4178, 18, 3188, 3046, 273, 1140, 18, 803, 18, 5701, 12, 7422, 18, 3085, 16, 4178, 18, 803, 13, 468, 4729, 8462, 1404, 752, 1008, 1390, 309, 11920, 422, 296, 8355, 11, 471, 486, 1140, 18, 803, 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, 3526, 481, 12, 4881, 16, 3538, 16, 16482, 4672, 9163, 1891, 302, 920, 340, 1839, 4729, 2521, 4888, 358, 1982, 26418, 309, 486, 16482, 30, 327, 13200, 273, 5378, 7157, 273, 2618, 276, 2354, 273, 16482, 18, 2452, 1435, 7239, 273, 3538, 18, 588, 11089, 1435, 309, 7239, 30, 276, 2354, 273, 306, 1367, 18, 803, 869, 12, 7422, 18, 3085, 16, 7239, 16, 284, 13, 364, 284, 316, 16482, 18, 2452, 1435, 65, 364, 284, 316, 16482, 30, 4178, 273, 16482, 63, 74, 65, 309, 11920, 422, 296, 862, 1985, 4278, 13200, 18, 6923, 12443, 6403, 18, 1673, 803, 16, 4178, 18, 803, 3719, 7157, 63, 6403, 18, 1673, 803, 65, 273, 404, 1327, 11920, 422, 296, 2 ]
data = self.sendCMD(['hash ' + filename]) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" return retVal
data = self.sendCMD(['hash ' + filename]) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" return retVal
def getRemoteHash(self, filename): data = self.sendCMD(['hash ' + filename]) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" return retVal
6d855d666bf8a81ed9b14d5d4659023ea46c184a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/6d855d666bf8a81ed9b14d5d4659023ea46c184a/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14879, 2310, 12, 2890, 16, 1544, 4672, 501, 273, 365, 18, 4661, 19473, 12, 3292, 2816, 296, 397, 1544, 5717, 309, 261, 892, 422, 599, 4672, 327, 875, 12197, 273, 365, 18, 6406, 15967, 12, 892, 13, 309, 261, 1349, 3053, 480, 599, 4672, 12197, 273, 12197, 18, 6406, 2668, 64, 82, 6134, 309, 261, 2890, 18, 4148, 1545, 890, 4672, 1172, 315, 7222, 1651, 2106, 30, 2119, 397, 12197, 397, 5862, 327, 12197, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14879, 2310, 12, 2890, 16, 1544, 4672, 501, 273, 365, 18, 4661, 19473, 12, 3292, 2816, 296, 397, 1544, 5717, 309, 261, 892, 422, 599, 4672, 327, 875, 12197, 273, 365, 18, 6406, 15967, 12, 892, 13, 309, 261, 1349, 3053, 480, 599, 4672, 12197, 273, 12197, 18, 6406, 2668, 64, 82, 6134, 309, 261, 2890, 18, 4148, 1545, 890, 4672, 1172, 315, 7222, 1651, 2106, 30, 2119, 397, 12197, 397, 5862, 327, 12197, 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 ]
type(e) is not exc):
type(e) is not exc):
def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e
80dc76e9072c4adaedf5c52032699b859c82eca2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/80dc76e9072c4adaedf5c52032699b859c82eca2/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, 273, 425, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2498, 12, 2890, 4672, 468, 1842, 716, 1520, 1677, 854, 5622, 2074, 775, 30, 609, 12, 89, 11, 18601, 521, 89, 713, 41, 21, 6134, 1335, 1185, 16, 425, 30, 3296, 16532, 5509, 668, 273, 425, 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 ]
self.UIManager.get_widget('/MainMenu/MiscKeysMenuHidden').set_property('visible', False)
def __init__(self): gtk.gdk.threads_init()
dae71a8ff3f44139da0ed295e4c9db01c71db241 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2291/dae71a8ff3f44139da0ed295e4c9db01c71db241/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 225, 22718, 18, 75, 2883, 18, 12495, 67, 2738, 1435, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 225, 22718, 18, 75, 2883, 18, 12495, 67, 2738, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = dict( inode_id = inode_id, url = e['URL'], _LastVisitDate = "from_unixtime('%s')" % e['LastVisitDate'][:10], _FirstVisitDate = "from_unixtime('%s')" % e['FirstVisitDate'][:10], id = e['id'])
try: result = dict( inode_id = inode_id, url = e['URL'], _LastVisitDate = "from_unixtime('%s')" % e['LastVisitDate'][:10], _FirstVisitDate = "from_unixtime('%s')" % e['FirstVisitDate'][:10], id = e['id']) except KeyError: continue
def external_process(self, fd): ## Read all the events from the file: pyflaglog.log(pyflaglog.DEBUG, "Processing %s as mork" % self.fd.inode) dbh = DB.DBO(self.case) inode_id = self.fd.lookup_id() h = MozHist.MozHist(fd=fd) context = None while 1: token = h.next_token() if not token: break
40a14036c7ae7ac7ec840097cee0e8c2b3bf764c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/40a14036c7ae7ac7ec840097cee0e8c2b3bf764c/Mozilla.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3903, 67, 2567, 12, 2890, 16, 5194, 4672, 7541, 2720, 777, 326, 2641, 628, 326, 585, 30, 2395, 6420, 1330, 18, 1330, 12, 2074, 6420, 1330, 18, 9394, 16, 315, 7798, 738, 87, 487, 312, 778, 6, 738, 365, 18, 8313, 18, 267, 390, 13, 225, 1319, 76, 273, 2383, 18, 2290, 51, 12, 2890, 18, 3593, 13, 17870, 67, 350, 273, 365, 18, 8313, 18, 8664, 67, 350, 1435, 225, 366, 273, 19058, 8648, 18, 49, 11142, 8648, 12, 8313, 33, 8313, 13, 819, 273, 599, 1323, 404, 30, 1147, 273, 366, 18, 4285, 67, 2316, 1435, 309, 486, 1147, 30, 898, 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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273, 2383, 18, 2290, 51, 12, 2890, 18, 3593, 13, 17870, 67, 350, 273, 365, 18, 8313, 18, 8664, 67, 350, 1435, 225, 366, 273, 19058, 8648, 18, 49, 11142, 8648, 12, 8313, 33, 8313, 13, 819, 273, 599, 1323, 404, 30, 1147, 273, 366, 18, 4285, 67, 2316, 1435, 309, 486, 1147, 30, 898, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
inputSE = StorageElement( transferDict[ 'InputSE' ] ) inputSE.removeFile( file )
def __transferIfNotRegistered( self, file, transferDict ): result = self.isRegisteredInOutputCatalog( file, transferDict ) if not result[ 'OK' ]: self.log.error( result[ 'Message' ] ) return result #Already registered. Need to delete if result[ 'Value' ]: self.log.info( "Transfer file %s is already registered in the output catalog" % file ) #Delete if transferDict[ 'InputFC' ] == 'LocalDisk': os.unlink( os.path.join( transferDict[ 'InputPath' ], file ) ) else: inputSE = StorageElement( transferDict[ 'InputSE' ] ) inputSE.removeFile( file ) inputFC = FileCatalog( [ transferDict['InputFC'] ] ) inputFC.removeFile( file ) self.log.info( "File %s deleted from %s" % ( file, transferDict[ 'InputSE' ] ) ) self.__processingFiles.discard( file ) return S_OK( file ) #Do the transfer return self.__retrieveAndUploadFile( file, transferDict )
c508b064da88ba529bdae6d7ae9523660970d485 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/c508b064da88ba529bdae6d7ae9523660970d485/OutputDataExecutor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13866, 10288, 10868, 12, 365, 16, 585, 16, 7412, 5014, 262, 30, 563, 273, 365, 18, 291, 10868, 382, 1447, 9769, 12, 585, 16, 7412, 5014, 262, 309, 486, 563, 63, 296, 3141, 11, 308, 30, 365, 18, 1330, 18, 1636, 12, 563, 63, 296, 1079, 11, 308, 262, 327, 563, 468, 9430, 4104, 18, 12324, 358, 1430, 309, 563, 63, 296, 620, 11, 308, 30, 365, 18, 1330, 18, 1376, 12, 315, 5912, 585, 738, 87, 353, 1818, 4104, 316, 326, 876, 6222, 6, 738, 585, 262, 468, 2613, 309, 7412, 5014, 63, 296, 1210, 4488, 11, 308, 422, 296, 2042, 6247, 4278, 1140, 18, 318, 1232, 12, 1140, 18, 803, 18, 5701, 12, 7412, 5014, 63, 296, 1210, 743, 11, 308, 16, 585, 262, 262, 469, 30, 810, 4488, 273, 1387, 9769, 12, 306, 7412, 5014, 3292, 1210, 4488, 3546, 308, 262, 810, 4488, 18, 4479, 812, 12, 585, 262, 365, 18, 1330, 18, 1376, 12, 315, 812, 738, 87, 4282, 628, 738, 87, 6, 738, 261, 585, 16, 7412, 5014, 63, 296, 1210, 1090, 11, 308, 262, 262, 365, 16186, 10632, 2697, 18, 31992, 12, 585, 262, 327, 348, 67, 3141, 12, 585, 262, 468, 3244, 326, 7412, 327, 365, 16186, 17466, 1876, 4777, 812, 12, 585, 16, 7412, 5014, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13866, 10288, 10868, 12, 365, 16, 585, 16, 7412, 5014, 262, 30, 563, 273, 365, 18, 291, 10868, 382, 1447, 9769, 12, 585, 16, 7412, 5014, 262, 309, 486, 563, 63, 296, 3141, 11, 308, 30, 365, 18, 1330, 18, 1636, 12, 563, 63, 296, 1079, 11, 308, 262, 327, 563, 468, 9430, 4104, 18, 12324, 358, 1430, 309, 563, 63, 296, 620, 11, 308, 30, 365, 18, 1330, 18, 1376, 12, 315, 5912, 585, 738, 87, 353, 1818, 4104, 316, 326, 876, 6222, 6, 738, 585, 262, 468, 2613, 309, 7412, 5014, 63, 296, 1210, 4488, 11, 308, 422, 296, 2042, 6247, 4278, 1140, 18, 318, 1232, 12, 1140, 18, 803, 18, 5701, 12, 7412, 5014, 2 ]
user_taro.login.user_name + '@' + domain,
user_taro.login.user_name + '@' + apps_domain,
def test001MethodsForEmaillist(self): """Tests methods for emaillist """ user_name = 'YujiMatsuo-' + self.postfix family_name = 'Matsuo' given_name = 'Yuji' password = '123$$abc' suspended = 'false'
432cc086d6a9ff3dc03c0c0c8c2e4f58f235ba5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/432cc086d6a9ff3dc03c0c0c8c2e4f58f235ba5a/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 11664, 4712, 1290, 4134, 1098, 12, 2890, 4672, 3536, 14650, 2590, 364, 2699, 1098, 3536, 225, 729, 67, 529, 273, 296, 61, 11501, 77, 49, 2323, 89, 83, 6627, 397, 365, 18, 2767, 904, 6755, 67, 529, 273, 296, 49, 2323, 89, 83, 11, 864, 67, 529, 273, 296, 61, 11501, 77, 11, 2201, 273, 296, 12936, 16547, 18947, 11, 21850, 273, 296, 5743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 11664, 4712, 1290, 4134, 1098, 12, 2890, 4672, 3536, 14650, 2590, 364, 2699, 1098, 3536, 225, 729, 67, 529, 273, 296, 61, 11501, 77, 49, 2323, 89, 83, 6627, 397, 365, 18, 2767, 904, 6755, 67, 529, 273, 296, 49, 2323, 89, 83, 11, 864, 67, 529, 273, 296, 61, 11501, 77, 11, 2201, 273, 296, 12936, 16547, 18947, 11, 21850, 273, 296, 5743, 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 ]
val = logn(3,-1) assert(0) except ValueError:
val = log2(-1) assert(0) except OverflowError:
def check_log_neg(self): """ Later have log(-1) raise warning, not error """ try: val = logn(3,-1) assert(0) except ValueError: pass
c9316d1d2ba5e114019481f968becf25226dff17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c9316d1d2ba5e114019481f968becf25226dff17/test_misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1330, 67, 14518, 12, 2890, 4672, 3536, 511, 2045, 1240, 613, 19236, 21, 13, 1002, 3436, 16, 486, 555, 3536, 775, 30, 1244, 273, 613, 22, 19236, 21, 13, 1815, 12, 20, 13, 225, 1335, 10752, 2426, 668, 30, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1330, 67, 14518, 12, 2890, 4672, 3536, 511, 2045, 1240, 613, 19236, 21, 13, 1002, 3436, 16, 486, 555, 3536, 775, 30, 1244, 273, 613, 22, 19236, 21, 13, 1815, 12, 20, 13, 225, 1335, 10752, 2426, 668, 30, 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 ]
self.jig_QColor = RGBf_to_QColor(self.jig.normcolor) self.jig_color_pixmap = get_widget_with_color_palette(
self.jig_QColor = RGBf_to_QColor(self.jig.normcolor) self.jig_color_pixmap = get_widget_with_color_palette(
def setup(self): '''Initializes the dialog and it's widgets ''' self.jig_attrs = self.jig.copyable_attrs_dict() # Save the jig's attributes in case of Cancel. # Jig color self.jig_QColor = RGBf_to_QColor(self.jig.normcolor) # Used as default color by Color Chooser
bd01a8e6fe710371d813f6a499a7e6617f837706 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/bd01a8e6fe710371d813f6a499a7e6617f837706/JigProp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 9163, 9685, 326, 6176, 471, 518, 1807, 10965, 9163, 225, 365, 18, 78, 360, 67, 7039, 273, 365, 18, 78, 360, 18, 3530, 429, 67, 7039, 67, 1576, 1435, 468, 7074, 326, 525, 360, 1807, 1677, 316, 648, 434, 10347, 18, 225, 468, 804, 360, 2036, 365, 18, 78, 360, 67, 53, 2957, 273, 11510, 74, 67, 869, 67, 53, 2957, 12, 2890, 18, 78, 360, 18, 7959, 3266, 13, 468, 10286, 487, 805, 2036, 635, 5563, 1680, 83, 13164, 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,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, 360, 18, 3530, 429, 67, 7039, 67, 1576, 1435, 468, 7074, 326, 525, 360, 1807, 1677, 316, 648, 434, 10347, 18, 225, 468, 804, 360, 2036, 365, 18, 78, 360, 67, 53, 2957, 273, 11510, 74, 67, 869, 67, 53, 2957, 12, 2890, 18, 78, 360, 18, 7959, 3266, 13, 468, 10286, 487, 805, 2036, 635, 5563, 1680, 83, 13164, 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 ]
'msg' : _("The field %(field)s is mandatory.") + '\n' + _("Going back to page") + returnto['page'],
'msg' : _("The field %(field)s is mandatory.") + '\n' \ + _("Going back to page") \ + str(returnto['page']),
def tmpl_page_interface_js(self, ln, upload, field, fieldhtml, txt, check, level, curdir, values, select, radio, curpage, nbpages, images, returnto): """ Produces the javascript for validation and value filling for a submit interface page
f8295d07a88ae11b179c4dac6feb905627c3506c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/f8295d07a88ae11b179c4dac6feb905627c3506c/websubmit_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2433, 67, 5831, 67, 2924, 12, 2890, 16, 7211, 16, 3617, 16, 652, 16, 652, 2620, 16, 6463, 16, 866, 16, 1801, 16, 662, 1214, 16, 924, 16, 2027, 16, 13512, 16, 662, 2433, 16, 4264, 7267, 16, 4602, 16, 327, 869, 4672, 3536, 22934, 326, 11341, 364, 3379, 471, 460, 25740, 364, 279, 4879, 1560, 1363, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2433, 67, 5831, 67, 2924, 12, 2890, 16, 7211, 16, 3617, 16, 652, 16, 652, 2620, 16, 6463, 16, 866, 16, 1801, 16, 662, 1214, 16, 924, 16, 2027, 16, 13512, 16, 662, 2433, 16, 4264, 7267, 16, 4602, 16, 327, 869, 4672, 3536, 22934, 326, 11341, 364, 3379, 471, 460, 25740, 364, 279, 4879, 1560, 1363, 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 ]
return url, [], None return url, {}, None
return [], None return {}, None
def ohloh_url2data(url, selector, params = {}, many = False, API_KEY = None, person=None): '''Input: A URL to get, a bunch of parameters to toss onto the end url-encoded, many (a boolean) indicating if we should return a list of just one datum, API_KEY suggesting a key to use with Ohloh, and a Person object to, if the request is slow, log messages to. Output: A list/dictionary of Ohloh data plus a saved WebResponse instance that logs information about the request.''' if API_KEY is None: API_KEY = settings.OHLOH_API_KEY my_params = {'api_key': API_KEY} my_params.update(params) params = my_params ; del my_params # FIXME: We return more than just "ret" these days! Rename this variable. ret = [] encoded = urllib.urlencode(params) url += encoded try: b = mechanize_get(url, person) web_response = mysite.customs.models.WebResponse.create_from_browser(b) web_response.save() # Always save the WebResponse, even if we don't know # that any other object will store a pointer here. except urllib2.HTTPError, e: # FIXME: Also return a web_response for error cases if str(e.code) == '404': if many: return url, [], None return url, {}, None else: raise try: s = web_response.text tree = ET.parse(StringIO.StringIO(s)) except xml.parsers.expat.ExpatError: # well, I'll be. it doesn't parse. return web_response.url, None # Did Ohloh return an error? root = tree.getroot() if root.find('error') is not None: raise ValueError, "Ohloh gave us back an error. Wonder why." interestings = root.findall(selector) for interesting in interestings: this = {} for child in interesting.getchildren(): if child.text: this[unicode(child.tag)] = uni_text(child.text) ret.append(this) if many: return b.geturl(), ret, web_response if ret: return b.geturl(), ret[0], web_response return b.geturl(), None, web_response
b59d458cd897dbc72d6d2574b975f73b40c0009a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/b59d458cd897dbc72d6d2574b975f73b40c0009a/ohloh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29797, 383, 76, 67, 718, 22, 892, 12, 718, 16, 3451, 16, 859, 273, 10615, 4906, 273, 1083, 16, 1491, 67, 3297, 273, 599, 16, 6175, 33, 7036, 4672, 9163, 1210, 30, 432, 1976, 358, 336, 16, 279, 25606, 434, 1472, 358, 358, 1049, 10170, 326, 679, 880, 17, 10787, 16, 4906, 261, 69, 1250, 13, 11193, 309, 732, 1410, 327, 279, 666, 434, 2537, 1245, 12059, 16, 1491, 67, 3297, 19816, 310, 279, 498, 358, 999, 598, 531, 76, 383, 76, 16, 471, 279, 11573, 733, 358, 16, 309, 326, 590, 353, 11816, 16, 613, 2743, 358, 18, 225, 3633, 30, 432, 666, 19, 15556, 434, 531, 76, 383, 76, 501, 8737, 279, 5198, 2999, 1064, 791, 716, 5963, 1779, 2973, 326, 590, 1093, 6309, 225, 309, 1491, 67, 3297, 353, 599, 30, 1491, 67, 3297, 273, 1947, 18, 51, 44, 1502, 44, 67, 2557, 67, 3297, 282, 3399, 67, 2010, 273, 13666, 2425, 67, 856, 4278, 1491, 67, 3297, 97, 3399, 67, 2010, 18, 2725, 12, 2010, 13, 859, 273, 3399, 67, 2010, 274, 1464, 3399, 67, 2010, 225, 468, 9852, 30, 1660, 327, 1898, 2353, 2537, 315, 1349, 6, 4259, 4681, 5, 19996, 333, 2190, 18, 325, 273, 5378, 225, 3749, 273, 11527, 18, 718, 3015, 12, 2010, 13, 880, 1011, 3749, 775, 30, 324, 273, 1791, 7472, 554, 67, 588, 12, 718, 16, 6175, 13, 3311, 67, 2740, 273, 312, 1900, 1137, 18, 3662, 87, 18, 7665, 18, 4079, 1064, 18, 2640, 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, 29797, 383, 76, 67, 718, 22, 892, 12, 718, 16, 3451, 16, 859, 273, 10615, 4906, 273, 1083, 16, 1491, 67, 3297, 273, 599, 16, 6175, 33, 7036, 4672, 9163, 1210, 30, 432, 1976, 358, 336, 16, 279, 25606, 434, 1472, 358, 358, 1049, 10170, 326, 679, 880, 17, 10787, 16, 4906, 261, 69, 1250, 13, 11193, 309, 732, 1410, 327, 279, 666, 434, 2537, 1245, 12059, 16, 1491, 67, 3297, 19816, 310, 279, 498, 358, 999, 598, 531, 76, 383, 76, 16, 471, 279, 11573, 733, 358, 16, 309, 326, 590, 353, 11816, 16, 613, 2743, 358, 18, 225, 3633, 30, 432, 666, 19, 15556, 434, 531, 76, 383, 76, 501, 8737, 279, 5198, 2999, 1064, 791, 2 ]
if flag not in ('-j', '-m', '-d'):
if flag not in ('-j', '-m', '-p', '-d'):
def parse_jitflags(): jitflags = [ [ '-' + flag for flag in flags ] for flags in OPTIONS.jitflags.split(',') ] for flags in jitflags: for flag in flags: if flag not in ('-j', '-m', '-d'): print('Invalid jit flag: "%s"'%flag) sys.exit(1) return jitflags
69c844d45a657a30457ccd326fa323ce4fd470b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/69c844d45a657a30457ccd326fa323ce4fd470b6/jit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 78, 305, 7133, 13332, 525, 305, 7133, 273, 306, 306, 4014, 397, 2982, 364, 2982, 316, 2943, 308, 364, 2943, 316, 16726, 18, 78, 305, 7133, 18, 4939, 12, 2187, 6134, 308, 364, 2943, 316, 525, 305, 7133, 30, 364, 2982, 316, 2943, 30, 309, 2982, 486, 316, 7707, 17, 78, 2187, 2400, 81, 2187, 2400, 84, 2187, 2400, 72, 11, 4672, 1172, 2668, 1941, 525, 305, 2982, 30, 2213, 87, 5187, 9, 6420, 13, 2589, 18, 8593, 12, 21, 13, 327, 525, 305, 7133, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 78, 305, 7133, 13332, 525, 305, 7133, 273, 306, 306, 4014, 397, 2982, 364, 2982, 316, 2943, 308, 364, 2943, 316, 16726, 18, 78, 305, 7133, 18, 4939, 12, 2187, 6134, 308, 364, 2943, 316, 525, 305, 7133, 30, 364, 2982, 316, 2943, 30, 309, 2982, 486, 316, 7707, 17, 78, 2187, 2400, 81, 2187, 2400, 84, 2187, 2400, 72, 11, 4672, 1172, 2668, 1941, 525, 305, 2982, 30, 2213, 87, 5187, 9, 6420, 13, 2589, 18, 8593, 12, 21, 13, 327, 525, 305, 7133, 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 ]
self.assertEqual(simu.pop(0).indInfo('info1'), tuple([6.0]*10)) self.assertEqual(simu.pop(0).indInfo('info2'), tuple([12.]*10))
self.assertEqual(simu.population(0).indInfo('info1'), tuple([6.0]*10)) self.assertEqual(simu.population(0).indInfo('info2'), tuple([12.]*10))
def indFunc1(ind, param): 'do something to info2' ind.setInfo(ind.info('info2')+param[1], 'info2') return True
a435b11df2d7d7fb6018bc8d134c677d4cf639ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/a435b11df2d7d7fb6018bc8d134c677d4cf639ae/test_09_pyOperator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1547, 2622, 21, 12, 728, 16, 579, 4672, 296, 2896, 5943, 358, 1123, 22, 11, 1547, 18, 542, 966, 12, 728, 18, 1376, 2668, 1376, 22, 6134, 15, 891, 63, 21, 6487, 296, 1376, 22, 6134, 327, 1053, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1547, 2622, 21, 12, 728, 16, 579, 4672, 296, 2896, 5943, 358, 1123, 22, 11, 1547, 18, 542, 966, 12, 728, 18, 1376, 2668, 1376, 22, 6134, 15, 891, 63, 21, 6487, 296, 1376, 22, 6134, 327, 1053, 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 ]
return [x for x in Directory(self.cfg['patches_dir'])]
return [x for x in Directory(self.patches_dir)]
def list(self): """List patches. """ return [x for x in Directory(self.cfg['patches_dir'])]
3ca6542562023ec3ef0019aeb55f887f7c10e766 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14549/3ca6542562023ec3ef0019aeb55f887f7c10e766/distributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 4672, 3536, 682, 16482, 18, 3536, 327,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 4672, 3536, 682, 16482, 18, 3536, 327, 306, 92, 364, 619, 316, 8930, 12, 2890, 18, 7066, 3292, 30278, 67, 1214, 19486, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.load_status = ((x + 0.0)/(len(candidate_modules) - 1))
counter = counter + 1 self.load_status = (counter + 0.0)/len(candidate_modules)
def execute_load(self): # Perform validation to ensure that we didn't end up invalid # parameters if type(self.path_list) is not list: raise ModuleLoaderInitException(MLOAD_NOT_LIST) # Only perform an actual import if we have a non-zero list if len(self.path_list) is not 0: # Perform validation of the content of the path_list for p in self.path_list: if type(p) is not str: # Prune from list if not a string if self.fault_tolerance: self.path_list.remove(p) else: raise ModuleLoaderInitException(MLOAD_HAS_NONSTR) # Find all modules for path_name in self.path_list: if path_name not in sys.path: sys.path.append(path_name) candidate_modules = [] candidate_modules = candidate_modules + self.scan_directory(path_name)
b0ef13ccc93492a85fde2f334efc074b4e2eb122 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/b0ef13ccc93492a85fde2f334efc074b4e2eb122/moduleloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 945, 12, 2890, 4672, 468, 11217, 3379, 358, 3387, 716, 732, 10242, 1404, 679, 731, 2057, 468, 1472, 309, 618, 12, 2890, 18, 803, 67, 1098, 13, 353, 486, 666, 30, 1002, 5924, 2886, 2570, 503, 12, 1495, 51, 1880, 67, 4400, 67, 7085, 13, 225, 468, 5098, 3073, 392, 3214, 1930, 309, 732, 1240, 279, 1661, 17, 7124, 666, 309, 562, 12, 2890, 18, 803, 67, 1098, 13, 353, 486, 374, 30, 468, 11217, 3379, 434, 326, 913, 434, 326, 589, 67, 1098, 364, 293, 316, 365, 18, 803, 67, 1098, 30, 309, 618, 12, 84, 13, 353, 486, 609, 30, 468, 2301, 7556, 628, 666, 309, 486, 279, 533, 309, 365, 18, 643, 67, 25456, 30, 365, 18, 803, 67, 1098, 18, 4479, 12, 84, 13, 469, 30, 1002, 5924, 2886, 2570, 503, 12, 1495, 51, 1880, 67, 27765, 67, 3993, 3902, 13, 225, 468, 4163, 777, 4381, 364, 589, 67, 529, 316, 365, 18, 803, 67, 1098, 30, 309, 589, 67, 529, 486, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 6923, 12, 803, 67, 529, 13, 225, 5500, 67, 6400, 273, 5378, 5500, 67, 6400, 273, 5500, 67, 6400, 397, 365, 18, 9871, 67, 5149, 12, 803, 67, 529, 13, 2, 0, 0, 0, 0, 0,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, 5924, 2886, 2570, 503, 12, 1495, 51, 1880, 67, 4400, 67, 7085, 13, 225, 468, 5098, 3073, 392, 3214, 1930, 309, 732, 1240, 279, 1661, 17, 7124, 666, 309, 562, 12, 2890, 18, 803, 67, 1098, 13, 353, 486, 374, 30, 468, 11217, 3379, 434, 326, 913, 434, 326, 589, 67, 1098, 364, 293, 316, 365, 18, 803, 67, 1098, 30, 309, 618, 12, 84, 13, 353, 486, 609, 30, 468, 2301, 7556, 628, 666, 309, 486, 279, 533, 309, 365, 18, 643, 67, 2 ]
def blackman(M):
def triang(M,sym=1): """The M-point triangular window. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M + 1 n = grid[1:(M+1)/2+1] if M % 2 == 0: w = (2*n-1.0)/M w = r_[w, w[::-1]] else: w = 2*n/(M+1.0) w = r_[w, w[-2::-1]] if not sym and not odd: w = w[:-1] return w def blackman(M,sym=1):
def blackman(M): """The M-point Blackman window. """ n = arange(0,M) return 0.42-0.5*cos(2.0*pi*n/(M-1)) + 0.08*cos(4.0*pi*n/(M-1))
c910a765560a2edce76e1be8b2a9eead5b434b0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c910a765560a2edce76e1be8b2a9eead5b434b0d/signaltools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6882, 539, 12, 49, 16, 8117, 33, 21, 4672, 3536, 1986, 490, 17, 1153, 6882, 13077, 2742, 18, 3536, 309, 490, 411, 404, 30, 327, 16980, 18, 1126, 3816, 5717, 309, 490, 422, 404, 30, 327, 16980, 18, 5322, 12, 21, 11189, 72, 6134, 14800, 273, 490, 738, 576, 309, 486, 5382, 471, 486, 14800, 30, 490, 273, 490, 397, 404, 290, 273, 3068, 63, 21, 30, 12, 49, 15, 21, 13176, 22, 15, 21, 65, 309, 490, 738, 576, 422, 374, 30, 341, 273, 261, 22, 14, 82, 17, 21, 18, 20, 13176, 49, 341, 273, 436, 67, 63, 91, 16, 341, 63, 2866, 17, 21, 13563, 469, 30, 341, 273, 576, 14, 82, 19, 12, 49, 15, 21, 18, 20, 13, 341, 273, 436, 67, 63, 91, 16, 341, 18919, 22, 2866, 17, 21, 13563, 225, 309, 486, 5382, 471, 486, 14800, 30, 341, 273, 341, 10531, 17, 21, 65, 327, 341, 225, 1652, 7721, 4728, 12, 49, 16, 8117, 33, 21, 4672, 3536, 1986, 490, 17, 1153, 22467, 4728, 2742, 18, 3536, 290, 273, 9660, 12, 20, 16, 49, 13, 327, 374, 18, 9452, 17, 20, 18, 25, 14, 14445, 12, 22, 18, 20, 14, 7259, 14, 82, 19, 12, 49, 17, 21, 3719, 397, 374, 18, 6840, 14, 14445, 12, 24, 18, 20, 14, 7259, 14, 82, 19, 12, 49, 17, 21, 3719, 225, 2, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6882, 539, 12, 49, 16, 8117, 33, 21, 4672, 3536, 1986, 490, 17, 1153, 6882, 13077, 2742, 18, 3536, 309, 490, 411, 404, 30, 327, 16980, 18, 1126, 3816, 5717, 309, 490, 422, 404, 30, 327, 16980, 18, 5322, 12, 21, 11189, 72, 6134, 14800, 273, 490, 738, 576, 309, 486, 5382, 471, 486, 14800, 30, 490, 273, 490, 397, 404, 290, 273, 3068, 63, 21, 30, 12, 49, 15, 21, 13176, 22, 15, 21, 65, 309, 490, 738, 576, 422, 374, 30, 341, 273, 261, 22, 14, 82, 17, 21, 18, 20, 13176, 49, 341, 273, 436, 67, 63, 91, 16, 341, 63, 2866, 17, 21, 13563, 469, 30, 341, 273, 576, 14, 82, 19, 12, 49, 2 ]
for lfn,fileDict in lfnFileIDDict.items(): lfns[lfn].update(fileDict) res = self._insertReplicas(lfns,connection=connection)
for lfn, fileDict in lfnFileIDDict.items(): lfns[lfn].update( fileDict ) res = self._insertReplicas( lfns, connection = connection )
def _addReplicas(self,lfns,connection=False): connection = self._getConnection(connection) successful = {} res = self._findFiles(lfns.keys(),['DirID','FileID','Size'],connection=connection) failed = res['Value']['Failed'] for lfn in failed.keys(): lfns.pop(lfn) lfnFileIDDict = res['Value']['Successful'] for lfn,fileDict in lfnFileIDDict.items(): lfns[lfn].update(fileDict) res = self._insertReplicas(lfns,connection=connection) if not res['OK']: for lfn in lfns.keys(): failed[lfn] = res['Message'] else: successful = res['Value']['Successful'] failed.update(res['Value']['Successful']) return S_OK({'Successful':successful,'Failed':failed})
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 17248, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, 18, 2452, 9334, 3292, 1621, 734, 17023, 812, 734, 17023, 1225, 17337, 4071, 33, 4071, 13, 2535, 273, 400, 3292, 620, 21712, 2925, 3546, 364, 328, 4293, 316, 2535, 18, 2452, 13332, 18594, 2387, 18, 5120, 12, 80, 4293, 13, 328, 4293, 812, 734, 5014, 273, 400, 3292, 620, 21712, 14277, 3546, 364, 328, 4293, 16, 585, 5014, 316, 328, 4293, 812, 734, 5014, 18, 3319, 13332, 18594, 2387, 63, 80, 4293, 8009, 2725, 12, 585, 5014, 262, 400, 273, 365, 6315, 6387, 17248, 12, 18594, 2387, 16, 1459, 273, 1459, 262, 309, 486, 400, 3292, 3141, 3546, 30, 364, 328, 4293, 316, 18594, 2387, 18, 2452, 13332, 2535, 63, 80, 4293, 65, 273, 400, 3292, 1079, 3546, 469, 30, 6873, 273, 400, 3292, 620, 21712, 14277, 3546, 2535, 18, 2725, 12, 455, 3292, 620, 21712, 14277, 19486, 327, 348, 67, 3141, 12590, 11, 14277, 4278, 18418, 11189, 2925, 4278, 7307, 6792, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 17248, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 400, 273, 365, 6315, 4720, 2697, 12, 20850, 2387, 18, 2452, 9334, 3292, 1621, 734, 17023, 812, 734, 17023, 1225, 17337, 4071, 33, 4071, 13, 2535, 273, 400, 3292, 620, 21712, 2925, 3546, 364, 328, 4293, 316, 2535, 18, 2452, 13332, 18594, 2387, 18, 5120, 12, 80, 4293, 13, 328, 4293, 812, 734, 5014, 273, 400, 3292, 620, 21712, 14277, 3546, 364, 328, 4293, 16, 585, 5014, 316, 328, 4293, 812, 734, 5014, 18, 3319, 13332, 18594, 2387, 63, 80, 4293, 8009, 2725, 12, 585, 5014, 262, 400, 273, 365, 6315, 6387, 17248, 2 ]
":PlugIns:macspeechmodule.ppc.",
":PlugIns:macspeech.ppc.",
def buildapplet(top, dummy, list): """Create a PPC python applet""" template = mkapplet.findtemplate() for src in list: if src[-3:] != '.py': raise 'Should end in .py', src base = os.path.basename(src) dst = os.path.join(top, base)[:-3] src = os.path.join(top, src) try: os.unlink(dst) except os.error: pass print 'Building applet', dst mkapplet.process(template, src, dst)
057971528d37cbb45d80d7d16fdfe890e3bd356e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/057971528d37cbb45d80d7d16fdfe890e3bd356e/fullbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 438, 1469, 12, 3669, 16, 9609, 16, 666, 4672, 3536, 1684, 279, 453, 3513, 5790, 21853, 8395, 1542, 273, 5028, 438, 1469, 18, 4720, 3202, 1435, 364, 1705, 316, 666, 30, 309, 1705, 18919, 23, 26894, 480, 2418, 2074, 4278, 1002, 296, 14309, 679, 316, 263, 2074, 2187, 1705, 1026, 273, 1140, 18, 803, 18, 13909, 12, 4816, 13, 3046, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 1026, 13, 10531, 17, 23, 65, 1705, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 1705, 13, 775, 30, 1140, 18, 318, 1232, 12, 11057, 13, 1335, 1140, 18, 1636, 30, 1342, 1172, 296, 16713, 21853, 2187, 3046, 5028, 438, 1469, 18, 2567, 12, 3202, 16, 1705, 16, 3046, 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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0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 438, 1469, 12, 3669, 16, 9609, 16, 666, 4672, 3536, 1684, 279, 453, 3513, 5790, 21853, 8395, 1542, 273, 5028, 438, 1469, 18, 4720, 3202, 1435, 364, 1705, 316, 666, 30, 309, 1705, 18919, 23, 26894, 480, 2418, 2074, 4278, 1002, 296, 14309, 679, 316, 263, 2074, 2187, 1705, 1026, 273, 1140, 18, 803, 18, 13909, 12, 4816, 13, 3046, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 1026, 13, 10531, 17, 23, 65, 1705, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 1705, 13, 775, 30, 1140, 18, 318, 1232, 12, 11057, 13, 1335, 1140, 18, 1636, 30, 1342, 1172, 296, 16713, 21853, 2187, 3046, 5028, 438, 1469, 18, 2567, 12, 3202, 16, 1705, 2 ]
childCount= self.childCount
if self.IAccessibleChildID>0: return [] childCount= self.IAccessibleObject.accChildCount children=[]
def _get_children(self): childCount= self.childCount if childCount>0: children=[IAccessible(x[0],x[1]) for x in IAccessibleHandler.accessibleChildren(self.IAccessibleObject,0,childCount) if x] children=[(getNVDAObjectFromEvent(x.windowHandle,IAccessibleHandler.OBJID_CLIENT,0) if x and x.IAccessibleRole==IAccessibleHandler.ROLE_SYSTEM_WINDOW else x) for x in children] else: child=self.firstChild children=[] while child: children.append(child) child=child.next children=[x for x in children if x and winUser.isDescendantWindow(self.windowHandle,x.windowHandle)] return children
f954b17df73dd0e8d5ed74a901e3ce4adadcf286 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/f954b17df73dd0e8d5ed74a901e3ce4adadcf286/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5906, 12, 2890, 4672, 309, 365, 18, 45, 10451, 1763, 734, 34, 20, 30, 327, 5378, 31492, 33, 365, 18, 45, 10451, 921, 18, 8981, 1763, 1380, 2325, 33, 8526, 309, 31492, 34, 20, 30, 2325, 22850, 45, 10451, 12, 92, 63, 20, 6487, 92, 63, 21, 5717, 364, 619, 316, 467, 10451, 1503, 18, 26037, 4212, 12, 2890, 18, 45, 10451, 921, 16, 20, 16, 3624, 1380, 13, 309, 619, 65, 2325, 22850, 12, 588, 11679, 9793, 921, 1265, 1133, 12, 92, 18, 5668, 3259, 16, 45, 10451, 1503, 18, 24547, 734, 67, 11935, 16, 20, 13, 309, 619, 471, 619, 18, 45, 10451, 2996, 631, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 23407, 469, 619, 13, 364, 619, 316, 2325, 65, 469, 30, 1151, 33, 2890, 18, 3645, 1763, 2325, 33, 8526, 1323, 1151, 30, 2325, 18, 6923, 12, 3624, 13, 1151, 33, 3624, 18, 4285, 2325, 22850, 92, 364, 619, 316, 2325, 309, 619, 471, 5657, 1299, 18, 291, 29014, 3829, 12, 2890, 18, 5668, 3259, 16, 92, 18, 5668, 3259, 25887, 327, 2325, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5906, 12, 2890, 4672, 309, 365, 18, 45, 10451, 1763, 734, 34, 20, 30, 327, 5378, 31492, 33, 365, 18, 45, 10451, 921, 18, 8981, 1763, 1380, 2325, 33, 8526, 309, 31492, 34, 20, 30, 2325, 22850, 45, 10451, 12, 92, 63, 20, 6487, 92, 63, 21, 5717, 364, 619, 316, 467, 10451, 1503, 18, 26037, 4212, 12, 2890, 18, 45, 10451, 921, 16, 20, 16, 3624, 1380, 13, 309, 619, 65, 2325, 22850, 12, 588, 11679, 9793, 921, 1265, 1133, 12, 92, 18, 5668, 3259, 16, 45, 10451, 1503, 18, 24547, 734, 67, 11935, 16, 20, 13, 309, 619, 471, 619, 18, 45, 10451, 2996, 631, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 2 ]
else: print "%s test_crasher skipped on 64bit build."
def test_crasher(self): if IS32BIT: self.assertRaises(MemoryError, struct.pack, "357913941c", "a") else: print "%s test_crasher skipped on 64bit build."
a0205d0a46667bd69b45863537931750ec7ee1c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/a0205d0a46667bd69b45863537931750ec7ee1c0/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3353, 961, 264, 12, 2890, 4672, 309, 4437, 1578, 15650, 30, 365, 18, 11231, 12649, 6141, 12, 6031, 668, 16, 1958, 18, 2920, 16, 315, 4763, 7235, 24347, 9803, 71, 3113, 315, 69, 7923, 469, 30, 1172, 2213, 87, 1842, 67, 3353, 961, 264, 9700, 603, 5178, 3682, 1361, 1199, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3353, 961, 264, 12, 2890, 4672, 309, 4437, 1578, 15650, 30, 365, 18, 11231, 12649, 6141, 12, 6031, 668, 16, 1958, 18, 2920, 16, 315, 4763, 7235, 24347, 9803, 71, 3113, 315, 69, 7923, 469, 30, 1172, 2213, 87, 1842, 67, 3353, 961, 264, 9700, 603, 5178, 3682, 1361, 1199, 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 ]
res_ids = run_sql(query1%params1)
res_ids = run_sql(query1%params1)
def update_user_inbox_for_reminders(uid): """ Updates user's inbox with any reminders that should have arrived @param uid: user id @return integer number of new expired reminders """ now = convert_datestruct_to_datetext(localtime()) reminder_status = CFG_WEBMESSAGE_STATUS_CODE['REMINDER'] new_status = CFG_WEBMESSAGE_STATUS_CODE['NEW'] query1 = """SELECT m.id FROM msgMESSAGE m, user_msgMESSAGE um WHERE um.id_user_to=%(uid)i AND um.id_msgMESSAGE=m.id AND m.received_date <= '%(date)s' AND um.status like binary '%(old_status)s' """ params1 = {'uid': int(uid), 'date': now, 'old_status': reminder_status} res_ids = run_sql(query1%params1) out = len(res_ids) if (out>0): query2 = """UPDATE user_msgMESSAGE SET status='%(new_status)s' WHERE id_user_to=%(uid)i AND (""" for msg_id in res_ids[0:-1]: query2 += "id_msgMESSAGE=" + str(int(msg_id[0])) + " OR " params2 = {'uid': int(uid), 'new_status': new_status, } query2 += "id_msgMESSAGE=" + str(int(res_ids[-1][0])) + ")" run_sql(query2%params2) return out
13dadf0fcb63f21c72c3528156245972761c7633 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2876/13dadf0fcb63f21c72c3528156245972761c7633/webmessage_dblayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1355, 67, 267, 2147, 67, 1884, 67, 2764, 728, 414, 12, 1911, 4672, 3536, 15419, 729, 1807, 27271, 598, 1281, 849, 728, 414, 716, 1410, 1240, 2454, 2950, 632, 891, 4555, 30, 729, 612, 632, 2463, 3571, 1300, 434, 394, 7708, 849, 728, 414, 3536, 2037, 273, 225, 1765, 67, 9683, 8813, 67, 869, 67, 3404, 27830, 12, 3729, 957, 10756, 849, 14055, 67, 2327, 273, 7577, 67, 14778, 8723, 67, 8608, 67, 5572, 3292, 862, 49, 14822, 3546, 394, 67, 2327, 273, 7577, 67, 14778, 8723, 67, 8608, 67, 5572, 3292, 12917, 3546, 843, 21, 273, 3536, 4803, 312, 18, 350, 4571, 282, 1234, 8723, 312, 16, 729, 67, 3576, 8723, 9570, 4852, 225, 9570, 18, 350, 67, 1355, 67, 869, 5095, 12, 1911, 13, 77, 4116, 9570, 18, 350, 67, 3576, 8723, 33, 81, 18, 350, 4116, 312, 18, 15213, 67, 712, 1648, 21063, 712, 13, 87, 11, 4116, 9570, 18, 2327, 3007, 3112, 21063, 1673, 67, 2327, 13, 87, 11, 3536, 859, 21, 273, 13666, 1911, 4278, 509, 12, 1911, 3631, 296, 712, 4278, 2037, 16, 296, 1673, 67, 2327, 4278, 849, 14055, 67, 2327, 97, 400, 67, 2232, 273, 1086, 67, 4669, 12, 2271, 21, 9, 2010, 21, 13, 596, 273, 562, 12, 455, 67, 2232, 13, 309, 261, 659, 34, 20, 4672, 843, 22, 273, 3536, 8217, 729, 67, 3576, 8723, 7855, 565, 1267, 2218, 17105, 2704, 67, 2327, 13, 87, 11, 4852, 225, 612, 67, 1355, 67, 869, 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, 1089, 67, 1355, 67, 267, 2147, 67, 1884, 67, 2764, 728, 414, 12, 1911, 4672, 3536, 15419, 729, 1807, 27271, 598, 1281, 849, 728, 414, 716, 1410, 1240, 2454, 2950, 632, 891, 4555, 30, 729, 612, 632, 2463, 3571, 1300, 434, 394, 7708, 849, 728, 414, 3536, 2037, 273, 225, 1765, 67, 9683, 8813, 67, 869, 67, 3404, 27830, 12, 3729, 957, 10756, 849, 14055, 67, 2327, 273, 7577, 67, 14778, 8723, 67, 8608, 67, 5572, 3292, 862, 49, 14822, 3546, 394, 67, 2327, 273, 7577, 67, 14778, 8723, 67, 8608, 67, 5572, 3292, 12917, 3546, 843, 21, 273, 3536, 4803, 312, 18, 350, 4571, 282, 1234, 8723, 312, 16, 729, 67, 3576, 8723, 9570, 4852, 225, 9570, 2 ]
raise IncompleteRead(value)
raise IncompleteRead(''.join(value))
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = ''
49148cf5287e34a399ecfc1958d62d2d83339f64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/49148cf5287e34a399ecfc1958d62d2d83339f64/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 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 ]
finally: if os.path.isfile(srcname): os.unlink(srcname) if os.path.isfile(zipname): os.unlink(zipname)
class OtherTests(unittest.TestCase): def testCloseErroneousFile(self): fp = open(TESTFN, "w") fp.write("this is not a legal zip file\n") fp.close() try: zf = zipfile.ZipFile(TESTFN) except zipfile.BadZipfile: os.unlink(TESTFN)
def zipTest(f, compression, srccontents): zip = zipfile.ZipFile(f, "w", compression) # Create the ZIP archive zip.write(srcname, "another"+os.extsep+"name") zip.write(srcname, srcname) zip.close() zip = zipfile.ZipFile(f, "r", compression) # Read the ZIP archive readData2 = zip.read(srcname) readData1 = zip.read("another"+os.extsep+"name") zip.close() if readData1 != srccontents or readData2 != srccontents: raise TestFailed, "Written data doesn't equal read data."
2d2ac3a0a10cdc817f61cb177b9af6e2cc4d5007 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2d2ac3a0a10cdc817f61cb177b9af6e2cc4d5007/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3144, 4709, 12, 74, 16, 9154, 16, 1705, 3980, 4672, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 91, 3113, 9154, 13, 282, 468, 1788, 326, 18277, 5052, 3144, 18, 2626, 12, 4816, 529, 16, 315, 304, 3011, 6, 15, 538, 18, 408, 10814, 9078, 529, 7923, 3144, 18, 2626, 12, 4816, 529, 16, 1705, 529, 13, 3144, 18, 4412, 1435, 225, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 86, 3113, 9154, 13, 282, 468, 2720, 326, 18277, 5052, 20913, 22, 273, 3144, 18, 896, 12, 4816, 529, 13, 20913, 21, 273, 3144, 18, 896, 2932, 304, 3011, 6, 15, 538, 18, 408, 10814, 9078, 529, 7923, 3144, 18, 4412, 1435, 225, 309, 20913, 21, 480, 1705, 3980, 578, 20913, 22, 480, 1705, 3980, 30, 1002, 7766, 2925, 16, 315, 12643, 501, 3302, 1404, 3959, 855, 501, 1199, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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7923, 3144, 18, 2626, 12, 4816, 529, 16, 1705, 529, 13, 3144, 18, 4412, 1435, 225, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 86, 3113, 9154, 13, 282, 468, 2720, 326, 18277, 5052, 20913, 22, 273, 3144, 18, 896, 12, 4816, 529, 13, 20913, 21, 273, 3144, 18, 896, 2932, 304, 3011, 6, 15, 538, 18, 408, 10814, 9078, 529, 7923, 3144, 18, 4412, 1435, 225, 309, 20913, 21, 2 ]
sitelist+="target.GlueSEUniqueID==\"%s\""%i+" || "
sitelist+="Member(\"%s\" , other.GlueCESEBindGroupSEUniqueID)"%i+" || "
def createJDL(self, cladfilename): """ _createJDL_ create the scheduler JDL combining the user specified bit of the JDL """
2030c14425c2bdcf9c1b7438bf5cb953fc9428f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/2030c14425c2bdcf9c1b7438bf5cb953fc9428f9/GLiteBulkSubmitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 46, 8914, 12, 2890, 16, 927, 361, 3459, 4672, 3536, 389, 2640, 46, 8914, 67, 225, 752, 326, 8129, 804, 8914, 29189, 326, 729, 1269, 2831, 434, 326, 804, 8914, 3536, 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,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 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 46, 8914, 12, 2890, 16, 927, 361, 3459, 4672, 3536, 389, 2640, 46, 8914, 67, 225, 752, 326, 8129, 804, 8914, 29189, 326, 729, 1269, 2831, 434, 326, 804, 8914, 3536, 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 ]
'`%s.%s.%s()` is not overriden' % (cls.__module__, cls.__name__, f.__name__),
'`%s.%s.%s()` is not overridden' % (cls.__module__, cls.__name__, f.__name__),
def new_f(self, *args, **kwargs): cls = type(self) warnings.warn( '`%s.%s.%s()` is not overriden' % (cls.__module__, cls.__name__, f.__name__), category = NotOverriddenWarning, stacklevel = 2 ) return f(self, *args, **kwargs)
a66466a270ebf3307345fa9e70ac9d23f79d2635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3683/a66466a270ebf3307345fa9e70ac9d23f79d2635/varietes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 74, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2028, 273, 618, 12, 2890, 13, 5599, 18, 8935, 12, 6992, 9, 87, 7866, 87, 7866, 87, 20338, 353, 486, 11000, 11, 738, 261, 6429, 16186, 2978, 972, 16, 2028, 16186, 529, 972, 16, 284, 16186, 529, 972, 3631, 3150, 273, 2288, 22042, 2794, 6210, 16, 26847, 273, 576, 262, 327, 284, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 74, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2028, 273, 618, 12, 2890, 13, 5599, 18, 8935, 12, 6992, 9, 87, 7866, 87, 7866, 87, 20338, 353, 486, 11000, 11, 738, 261, 6429, 16186, 2978, 972, 16, 2028, 16186, 529, 972, 16, 284, 16186, 529, 972, 3631, 3150, 273, 2288, 22042, 2794, 6210, 16, 26847, 273, 576, 262, 327, 284, 12, 2890, 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 ]
"permissions, then please do it now." % basename))
"permissions, then please do it now.") % basename)
def write_image_metadata(self, obj): """ saves the data fields to the image """
6d53c284fac914f22af26560942a476c3db791ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/6d53c284fac914f22af26560942a476c3db791ee/ImageMetadataGramplet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2730, 67, 4165, 12, 2890, 16, 1081, 4672, 3536, 14649, 326, 501, 1466, 358, 326, 1316, 3536, 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,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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, 1045, 67, 2730, 67, 4165, 12, 2890, 16, 1081, 4672, 3536, 14649, 326, 501, 1466, 358, 326, 1316, 3536, 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 ]
base = os.lstat(id)
base = os.lstat(rpath)
def getattr(self,path): debug("getattr",path) path = normpath(path) c = self.conn.cursor() c.execute("select * from files where path=?",(path,)) file = c.fetchone() if file is None: raise IOError(errno.ENOENT,path) id = file["id"] mode = file["mode"] st = MyStat() if id!="!": if os.path.exists(id): # use the actual files for size calculations base = os.lstat(id) st.st_size = base.st_size st.st_blocks = base.st_blocks st.st_blksize = base.st_blksize else: # if it's not a directory, it should have # some file corresponding to it if not (mode&stat.S_IFDIR): debug("getattr",id,"not found for",path) st.st_atime = int(file["atime"]) st.st_mtime = int(file["mtime"]) st.st_ctime = int(file["ctime"]) st.st_mode = file["mode"] c.close() return st
31d598fe7b8ca1f35abd107cc00700f76f38954e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5937/31d598fe7b8ca1f35abd107cc00700f76f38954e/archivefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3869, 12, 2890, 16, 803, 4672, 1198, 2932, 588, 1747, 3113, 803, 13, 589, 273, 20446, 12, 803, 13, 276, 273, 365, 18, 4646, 18, 9216, 1435, 276, 18, 8837, 2932, 4025, 380, 628, 1390, 1625, 589, 17282, 3113, 12, 803, 16, 3719, 585, 273, 276, 18, 5754, 476, 1435, 309, 585, 353, 599, 30, 1002, 8340, 12, 19088, 18, 1157, 51, 2222, 16, 803, 13, 612, 273, 585, 9614, 350, 11929, 1965, 273, 585, 9614, 3188, 11929, 384, 273, 8005, 5000, 1435, 309, 612, 5, 1546, 4442, 30, 309, 1140, 18, 803, 18, 1808, 12, 350, 4672, 468, 999, 326, 3214, 1390, 364, 963, 20882, 1026, 273, 1140, 18, 80, 5642, 12, 86, 803, 13, 384, 18, 334, 67, 1467, 273, 1026, 18, 334, 67, 1467, 384, 18, 334, 67, 7996, 273, 1026, 18, 334, 67, 7996, 384, 18, 334, 67, 3083, 79, 1467, 273, 1026, 18, 334, 67, 3083, 79, 1467, 469, 30, 468, 309, 518, 1807, 486, 279, 1867, 16, 518, 1410, 1240, 468, 2690, 585, 4656, 358, 518, 309, 486, 261, 3188, 10, 5642, 18, 55, 67, 5501, 4537, 4672, 1198, 2932, 588, 1747, 3113, 350, 10837, 902, 1392, 364, 3113, 803, 13, 384, 18, 334, 67, 270, 494, 273, 509, 12, 768, 9614, 270, 494, 6, 5717, 384, 18, 334, 67, 10838, 273, 509, 12, 768, 9614, 10838, 6, 5717, 384, 18, 334, 67, 21261, 273, 509, 12, 768, 9614, 21261, 6, 5717, 384, 18, 334, 67, 3188, 273, 585, 9614, 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, 3869, 12, 2890, 16, 803, 4672, 1198, 2932, 588, 1747, 3113, 803, 13, 589, 273, 20446, 12, 803, 13, 276, 273, 365, 18, 4646, 18, 9216, 1435, 276, 18, 8837, 2932, 4025, 380, 628, 1390, 1625, 589, 17282, 3113, 12, 803, 16, 3719, 585, 273, 276, 18, 5754, 476, 1435, 309, 585, 353, 599, 30, 1002, 8340, 12, 19088, 18, 1157, 51, 2222, 16, 803, 13, 612, 273, 585, 9614, 350, 11929, 1965, 273, 585, 9614, 3188, 11929, 384, 273, 8005, 5000, 1435, 309, 612, 5, 1546, 4442, 30, 309, 1140, 18, 803, 18, 1808, 12, 350, 4672, 468, 999, 326, 3214, 1390, 364, 963, 20882, 1026, 273, 1140, 18, 80, 5642, 12, 86, 803, 13, 384, 18, 2 ]
for entry in entries: self.edit_entry(entry, False)
if not entries: sys.exit(_('No entries found for given patterns')) self.edit_entries(entries)
def _cmd_edit(self, options, *args): """Interactivly edit entries""" entries = self._find_entries(options, *args) for entry in entries: self.edit_entry(entry, False)
8ccd379498d1d27031b3b1ad7ea07c99bd6ef743 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/8ccd379498d1d27031b3b1ad7ea07c99bd6ef743/tel_console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4172, 67, 4619, 12, 2890, 16, 702, 16, 380, 1968, 4672, 3536, 2465, 11422, 715, 3874, 3222, 8395, 3222, 273, 365, 6315, 4720, 67, 8219, 12, 2116, 16, 380, 1968, 13, 364, 1241, 316, 3222, 30, 365, 18, 4619, 67, 4099, 12, 4099, 16, 1083, 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,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395, 3222, 273, 365, 6315, 4720, 67, 8219, 12, 2116, 16, 380, 1968, 13, 364, 1241, 316, 3222, 30, 365, 18, 4619, 67, 4099, 12, 4099, 16, 1083, 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 ]
d["config-file"] = '-c', ONE_PARAM
d["config-file"] = '-c', MULT_PARAM
def addParameters(self, argDef): d = {} d["config"] = MULT_PARAM d["config-file"] = '-c', ONE_PARAM d["debug-all"] = '-d', NO_PARAM d["skip-default-config"] = NO_PARAM
25bde0b1e2c33bb32df7adc80958430603629273 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/25bde0b1e2c33bb32df7adc80958430603629273/daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2402, 12, 2890, 16, 1501, 3262, 4672, 302, 273, 2618, 302, 9614, 1425, 11929, 273, 14913, 67, 8388, 302, 9614, 1425, 17, 768, 11929, 273, 2400, 71, 2187, 14913, 67, 8388, 302, 9614, 4148, 17, 454, 11929, 273, 2400, 72, 2187, 3741, 67, 8388, 302, 9614, 7457, 17, 1886, 17, 1425, 11929, 273, 3741, 67, 8388, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2402, 12, 2890, 16, 1501, 3262, 4672, 302, 273, 2618, 302, 9614, 1425, 11929, 273, 14913, 67, 8388, 302, 9614, 1425, 17, 768, 11929, 273, 2400, 71, 2187, 14913, 67, 8388, 302, 9614, 4148, 17, 454, 11929, 273, 2400, 72, 2187, 3741, 67, 8388, 302, 9614, 7457, 17, 1886, 17, 1425, 11929, 273, 3741, 67, 8388, 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 ]
def __iter__(self): return self.__ContextIterator(self)
_ctx_debug = ('Dr0', 'Dr1', 'Dr2', 'Dr3', 'Dr6', 'Dr7') _ctx_segs = ('SegGs', 'SegFs', 'SegEs', 'SegDs', ) _ctx_int = ('Edi', 'Esi', 'Ebx', 'Edx', 'Ecx', 'Eax') _ctx_ctrl = ('Ebp', 'Eip', 'SegCs', 'EFlags', 'Esp', 'SegSs')
def __iter__(self): return self.__ContextIterator(self)
4d6379e62a20ffbde8f748f5070b761e3ca679e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/4d6379e62a20ffbde8f748f5070b761e3ca679e3/kernel32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 327, 365, 16186, 1042, 3198, 12, 2890, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 327, 365, 16186, 1042, 3198, 12, 2890, 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, -100, -100, -100 ]
id = self.pool.get('ir.model.data')._update(self.cr, self.uid, \
id = self.pool.get('ir.model.data')._update(self.cr, 1, \
def process_url(self, node): self.validate_xml_id(node.id)
06e658d5cb1bd984a0d6e2d2a2ef16371be837a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/06e658d5cb1bd984a0d6e2d2a2ef16371be837a0/yaml_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 718, 12, 2890, 16, 756, 4672, 365, 18, 5662, 67, 2902, 67, 350, 12, 2159, 18, 350, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 718, 12, 2890, 16, 756, 4672, 365, 18, 5662, 67, 2902, 67, 350, 12, 2159, 18, 350, 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 ]
debugMsg("Called LinePlot.setXAxisRange()")
debugMsg("Called Plot.setXAxisRange()")
def setXAxisRange(self, xMin, xMax): """ Set the range of the x axis
71d8a0c344b606da3c4335fda12fbe32b9705f62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/71d8a0c344b606da3c4335fda12fbe32b9705f62/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23733, 6558, 2655, 12, 2890, 16, 619, 2930, 16, 619, 2747, 4672, 3536, 1000, 326, 1048, 434, 326, 619, 2654, 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 ]
noGuessMatch = noGuessRe.match(line) if noGuessMatch: word = noGuessMatch.group(1) if word not in skipList: return (word, int(noGuessMatch.group(2)) - 1, []) return None
guesses = [] word = match.group(1) if word in skipList: return None wordPos = int(match.group(2)) - 1 while line[wordPos:wordPos + len(word)] != word and wordPos > 0: wordPos -= 1 return (word, wordPos, guesses)
def formatOutput(line, skipList=[]): """Return tuple of word, position and guess list""" line = line.strip() guessMatch = guessRe.match(line) if guessMatch: word = guessMatch.group(1) if word not in skipList: return (word, int(guessMatch.group(2)) - 1, guessMatch.group(3).split(', ')) else: return None noGuessMatch = noGuessRe.match(line) if noGuessMatch: word = noGuessMatch.group(1) if word not in skipList: return (word, int(noGuessMatch.group(2)) - 1, []) return None
2ccaa52ba354eea9053a61d2472b96c4c219819e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3087/2ccaa52ba354eea9053a61d2472b96c4c219819e/spellcheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1447, 12, 1369, 16, 2488, 682, 33, 8526, 4672, 3536, 990, 3193, 434, 2076, 16, 1754, 471, 7274, 666, 8395, 980, 273, 980, 18, 6406, 1435, 7274, 2060, 273, 7274, 426, 18, 1916, 12, 1369, 13, 309, 7274, 2060, 30, 2076, 273, 7274, 2060, 18, 1655, 12, 21, 13, 309, 2076, 486, 316, 2488, 682, 30, 327, 261, 1095, 16, 509, 12, 20885, 2060, 18, 1655, 12, 22, 3719, 300, 404, 16, 7274, 2060, 18, 1655, 12, 23, 2934, 4939, 12, 2187, 296, 3719, 469, 30, 327, 599, 7274, 281, 273, 5378, 2076, 273, 845, 18, 1655, 12, 21, 13, 309, 2076, 316, 2488, 682, 30, 327, 599, 2076, 1616, 273, 509, 12, 1916, 18, 1655, 12, 22, 3719, 300, 404, 225, 1323, 980, 63, 1095, 1616, 30, 1095, 1616, 397, 562, 12, 1095, 25887, 480, 2076, 471, 2076, 1616, 405, 374, 30, 2076, 1616, 3947, 404, 327, 261, 1095, 16, 2076, 1616, 16, 7274, 281, 13, 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, 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 434, 2076, 16, 1754, 471, 7274, 666, 8395, 980, 273, 980, 18, 6406, 1435, 7274, 2060, 273, 7274, 426, 18, 1916, 12, 1369, 13, 309, 7274, 2060, 30, 2076, 273, 7274, 2060, 18, 1655, 12, 21, 13, 309, 2076, 486, 316, 2488, 682, 30, 327, 261, 1095, 16, 509, 12, 20885, 2060, 18, 1655, 12, 22, 3719, 300, 404, 16, 7274, 2060, 18, 1655, 12, 23, 2934, 4939, 12, 2187, 296, 3719, 469, 30, 327, 599, 7274, 281, 273, 5378, 2076, 273, 845, 18, 1655, 12, 21, 13, 309, 2076, 316, 2488, 682, 30, 327, 599, 2076, 1616, 273, 509, 12, 1916, 18, 1655, 12, 2 ]
image_exp = zeros((r+2, c+2),int8) imagebuf = zeros((r+2,c+2),int8)
image_exp = numpy.zeros((r+2, c+2),numpy.int8) imagebuf = numpy.zeros((r+2,c+2),numpy.int8)
def mmthin(binimg): """ skel = mmthin(binimg) image transformation by thinning rewrite the mmthin function in the morphological toolbox This code is written by yenixsa and Sam in Summer 2004 Last updated on 12/3/2005 Ported to Python by LPC on Feb 2008 """ binimg=binimg.copy() degrees = 45; num_elem = abs(360//degrees) struct_elem = [] struct_elem.append([ [0,0,0], [2,1,2], [1,1,1]]) struct_elem.append([ [2,0,0], [1,1,0], [1,1,2]]) struct_elem.append([ [1,2,0], [1,1,0], [1,2,0]]) struct_elem.append([ [1,1,2], [1,1,0], [2,0,0]]) struct_elem.append([ [1,1,1], [2,1,2], [0,0,0]]) struct_elem.append([ [2,1,1], [0,1,1], [0,0,2]]) struct_elem.append([ [0,2,1], [0,1,1], [0,2,1]]) struct_elem.append([ [0,0,2], [0,1,1], [2,1,1]]) struct_elem=[array(E) for E in struct_elem] min1,max1,min2,max2 = bbox(binimg) r,c=(max1-min1,max2-min2) acnum_elem = 0; total_op=0 image_exp = zeros((r+2, c+2),int8) imagebuf = zeros((r+2,c+2),int8) image_exp[1:r+1, 1:c+1] = binimg[min1:max1,min2:max2] while True: newimg=hitmiss(image_exp,struct_elem[acnum_elem],imagebuf) image_exp -= newimg total_op += fastany(newimg) acnum_elem += 1; if acnum_elem == num_elem: if total_op == 0: break acnum_elem = 0 total_op = 0 binimg[min1:max1,min2:max2] = image_exp[1:r+1, 1:c+1] return binimg
bac0f315ca4895d299b4bea345ca939303156ade /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/bac0f315ca4895d299b4bea345ca939303156ade/mmthin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9740, 451, 267, 12, 4757, 6081, 4672, 3536, 4343, 292, 273, 9740, 451, 267, 12, 4757, 6081, 13, 1316, 8620, 635, 21936, 2093, 225, 10738, 326, 9740, 451, 267, 445, 316, 326, 14354, 18224, 5226, 2147, 1220, 981, 353, 5941, 635, 677, 275, 697, 13098, 471, 348, 301, 316, 9352, 6592, 4044, 24, 6825, 3526, 603, 2593, 19, 23, 19, 6976, 25, 6008, 329, 358, 6600, 635, 511, 3513, 603, 5782, 70, 4044, 28, 3536, 225, 4158, 6081, 33, 4757, 6081, 18, 3530, 1435, 10904, 273, 12292, 31, 818, 67, 10037, 273, 2417, 12, 29751, 759, 26943, 13, 225, 1958, 67, 10037, 273, 5378, 1958, 67, 10037, 18, 6923, 3816, 306, 20, 16, 20, 16, 20, 6487, 306, 22, 16, 21, 16, 22, 6487, 306, 21, 16, 21, 16, 21, 65, 5717, 1958, 67, 10037, 18, 6923, 3816, 306, 22, 16, 20, 16, 20, 6487, 306, 21, 16, 21, 16, 20, 6487, 306, 21, 16, 21, 16, 22, 65, 5717, 1958, 67, 10037, 18, 6923, 3816, 306, 21, 16, 22, 16, 20, 6487, 306, 21, 16, 21, 16, 20, 6487, 306, 21, 16, 22, 16, 20, 65, 5717, 1958, 67, 10037, 18, 6923, 3816, 306, 21, 16, 21, 16, 22, 6487, 306, 21, 16, 21, 16, 20, 6487, 306, 22, 16, 20, 16, 20, 65, 5717, 1958, 67, 10037, 18, 6923, 3816, 306, 21, 16, 21, 16, 21, 6487, 306, 22, 16, 21, 16, 22, 6487, 306, 20, 16, 20, 16, 20, 65, 5717, 1958, 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, 9740, 451, 267, 12, 4757, 6081, 4672, 3536, 4343, 292, 273, 9740, 451, 267, 12, 4757, 6081, 13, 1316, 8620, 635, 21936, 2093, 225, 10738, 326, 9740, 451, 267, 445, 316, 326, 14354, 18224, 5226, 2147, 1220, 981, 353, 5941, 635, 677, 275, 697, 13098, 471, 348, 301, 316, 9352, 6592, 4044, 24, 6825, 3526, 603, 2593, 19, 23, 19, 6976, 25, 6008, 329, 358, 6600, 635, 511, 3513, 603, 5782, 70, 4044, 28, 3536, 225, 4158, 6081, 33, 4757, 6081, 18, 3530, 1435, 10904, 273, 12292, 31, 818, 67, 10037, 273, 2417, 12, 29751, 759, 26943, 13, 225, 1958, 67, 10037, 273, 5378, 1958, 67, 10037, 18, 6923, 3816, 306, 20, 16, 20, 16, 20, 6487, 306, 2 ]
reports[self.cid][key] = (1,res[0],res)
reports[self.cid][key] = (1, res[0], res)
def log(self):
78534fa5e44f63d640ff07c425ec3edd3bb48fe9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/78534fa5e44f63d640ff07c425ec3edd3bb48fe9/CatalogReport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 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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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, -100, -100 ]
if pos[0]-radius<-config.config.world.size[0]/2 or\ pos[1]-radius<-config.config.world.size[1]/2 or\ pos[0]+radius>config.config.world.size[0]/2 or \ pos[1]+radius>config.config.world.size[1]/2:
if pos[0]-radius<-config.world.size[0]/2 or\ pos[1]-radius<-config.world.size[1]/2 or\ pos[0]+radius>config.world.size[0]/2 or \ pos[1]+radius>config.world.size[1]/2:
def collision_at(self, pos): for obs in self.team.map.obstacles: if collide.poly2circle(obs.shape, ((pos),constants.TANKRADIUS)): return True for tank in self.team.map.tanks(): if tank is self:continue if collide.circle2circle((tank.pos, constants.TANKRADIUS), (pos, constants.TANKRADIUS)): self.collide_tank(tank) return True radius = constants.TANKRADIUS if pos[0]-radius<-config.config.world.size[0]/2 or\ pos[1]-radius<-config.config.world.size[1]/2 or\ pos[0]+radius>config.config.world.size[0]/2 or \ pos[1]+radius>config.config.world.size[1]/2: return True return False
514bd7bd8178ee4371240d9315e3fd7d459ce673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/514bd7bd8178ee4371240d9315e3fd7d459ce673/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17740, 67, 270, 12, 2890, 16, 949, 4672, 364, 7160, 316, 365, 18, 10035, 18, 1458, 18, 947, 334, 69, 9558, 30, 309, 645, 8130, 18, 16353, 22, 18970, 12, 10992, 18, 4867, 16, 14015, 917, 3631, 13358, 18, 56, 20201, 54, 23575, 3719, 30, 327, 1053, 364, 268, 2304, 316, 365, 18, 10035, 18, 1458, 18, 88, 19965, 13332, 309, 268, 2304, 353, 365, 30, 17143, 309, 645, 8130, 18, 18970, 22, 18970, 12443, 88, 2304, 18, 917, 16, 6810, 18, 56, 20201, 54, 23575, 3631, 261, 917, 16, 6810, 18, 56, 20201, 54, 23575, 3719, 30, 365, 18, 1293, 8130, 67, 88, 2304, 12, 88, 2304, 13, 327, 1053, 5725, 273, 6810, 18, 56, 20201, 54, 23575, 309, 949, 63, 20, 65, 17, 11282, 32, 17, 1425, 18, 18179, 18, 1467, 63, 20, 18537, 22, 578, 64, 949, 63, 21, 65, 17, 11282, 32, 17, 1425, 18, 18179, 18, 1467, 63, 21, 18537, 22, 578, 64, 949, 63, 20, 3737, 11282, 34, 1425, 18, 18179, 18, 1467, 63, 20, 18537, 22, 578, 521, 949, 63, 21, 3737, 11282, 34, 1425, 18, 18179, 18, 1467, 63, 21, 18537, 22, 30, 327, 1053, 327, 1083, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17740, 67, 270, 12, 2890, 16, 949, 4672, 364, 7160, 316, 365, 18, 10035, 18, 1458, 18, 947, 334, 69, 9558, 30, 309, 645, 8130, 18, 16353, 22, 18970, 12, 10992, 18, 4867, 16, 14015, 917, 3631, 13358, 18, 56, 20201, 54, 23575, 3719, 30, 327, 1053, 364, 268, 2304, 316, 365, 18, 10035, 18, 1458, 18, 88, 19965, 13332, 309, 268, 2304, 353, 365, 30, 17143, 309, 645, 8130, 18, 18970, 22, 18970, 12443, 88, 2304, 18, 917, 16, 6810, 18, 56, 20201, 54, 23575, 3631, 261, 917, 16, 6810, 18, 56, 20201, 54, 23575, 3719, 30, 365, 18, 1293, 8130, 67, 88, 2304, 12, 88, 2304, 13, 327, 1053, 5725, 273, 6810, 18, 56, 20201, 54, 2 ]
client = SystemAdministratorClient( self.host )
client = SystemAdministratorClient( self.host, self.port )
def do_show( self, args ): """ Show list of components usage: show software show installed show setup show status show database show mysql show log <system> <service|agent> show info - show version of software and setup """
cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6/SystemAdministratorClientCLI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4500, 12, 365, 16, 833, 262, 30, 3536, 9674, 666, 434, 4085, 225, 4084, 30, 225, 2405, 17888, 2405, 5876, 2405, 3875, 2405, 1267, 2405, 2063, 2405, 7219, 2405, 613, 411, 4299, 34, 411, 3278, 96, 5629, 34, 2405, 1123, 565, 300, 2405, 1177, 434, 17888, 471, 3875, 3536, 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, 741, 67, 4500, 12, 365, 16, 833, 262, 30, 3536, 9674, 666, 434, 4085, 225, 4084, 30, 225, 2405, 17888, 2405, 5876, 2405, 3875, 2405, 1267, 2405, 2063, 2405, 7219, 2405, 613, 411, 4299, 34, 411, 3278, 96, 5629, 34, 2405, 1123, 565, 300, 2405, 1177, 434, 17888, 471, 3875, 3536, 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 ]
evt.set()
PORT = None time.sleep(0.5) serv_evt.set()
def debugging_server(evt): serv = smtpd.DebuggingServer(("", PORT), ('nowhere', -1)) try: asyncore.loop(timeout=.01, count=300) except socket.timeout: pass finally: # allow some time for the client to read the result time.sleep(0.5) asyncore.close_all() evt.set()
412b8b654cda5aa8abd038ac9cdcb19a0722c563 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/412b8b654cda5aa8abd038ac9cdcb19a0722c563/test_smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10450, 67, 3567, 12, 73, 11734, 4672, 13515, 273, 17660, 72, 18, 2829, 1998, 2081, 12, 2932, 3113, 20987, 3631, 7707, 3338, 14852, 2187, 300, 21, 3719, 225, 775, 30, 4326, 479, 18, 6498, 12, 4538, 33, 18, 1611, 16, 1056, 33, 19249, 13, 1335, 2987, 18, 4538, 30, 1342, 3095, 30, 468, 1699, 2690, 813, 364, 326, 1004, 358, 855, 326, 563, 813, 18, 19607, 12, 20, 18, 25, 13, 4326, 479, 18, 4412, 67, 454, 1435, 20987, 273, 599, 813, 18, 19607, 12, 20, 18, 25, 13, 13515, 67, 73, 11734, 18, 542, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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30, 1342, 3095, 30, 468, 1699, 2690, 813, 364, 326, 1004, 358, 855, 326, 563, 813, 18, 19607, 12, 20, 18, 25, 13, 4326, 479, 18, 4412, 67, 454, 1435, 20987, 273, 599, 813, 18, 19607, 12, 20, 18, 25, 13, 13515, 67, 73, 11734, 18, 542, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
class KeepaliveServerTestCase(BaseServerTestCase):
class BaseKeepaliveServerTestCase(BaseServerTestCase):
def test_dotted_attribute(self): # Raises an AttributeError because private methods are not allowed. self.assertRaises(AttributeError, SimpleXMLRPCServer.resolve_dotted_attribute, str, '__add')
2bacdb8520f43f8a75cc37ad9c49e3f793176a3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/2bacdb8520f43f8a75cc37ad9c49e3f793176a3b/test_xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9811, 2344, 67, 4589, 12, 2890, 4672, 468, 20497, 392, 6394, 2724, 3238, 2590, 854, 486, 2935, 18, 365, 18, 11231, 12649, 6141, 12, 1499, 668, 16, 4477, 4201, 8087, 2081, 18, 10828, 67, 9811, 2344, 67, 4589, 16, 609, 16, 4940, 1289, 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,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 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9811, 2344, 67, 4589, 12, 2890, 4672, 468, 20497, 392, 6394, 2724, 3238, 2590, 854, 486, 2935, 18, 365, 18, 11231, 12649, 6141, 12, 1499, 668, 16, 4477, 4201, 8087, 2081, 18, 10828, 67, 9811, 2344, 67, 4589, 16, 609, 16, 4940, 1289, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.buffer.insert_with_tags_by_name(self.iter,string+"\r\n\r\n",'text')
print "WTF?" print string self.text(string, options)
def para(self,string,**options): self.buffer.insert_with_tags_by_name(self.iter,string+"\r\n\r\n",'text')
c2382404387dc87cc861620b92f02d5025c3db16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/c2382404387dc87cc861620b92f02d5025c3db16/GTKUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12602, 12, 2890, 16, 1080, 16, 636, 2116, 4672, 365, 18, 4106, 18, 6387, 67, 1918, 67, 4156, 67, 1637, 67, 529, 12, 2890, 18, 2165, 16, 1080, 9078, 64, 86, 64, 82, 64, 86, 64, 82, 3113, 11, 955, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12602, 12, 2890, 16, 1080, 16, 636, 2116, 4672, 365, 18, 4106, 18, 6387, 67, 1918, 67, 4156, 67, 1637, 67, 529, 12, 2890, 18, 2165, 16, 1080, 9078, 64, 86, 64, 82, 64, 86, 64, 82, 3113, 11, 955, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def GetInterfaceArgCleanup(self):
def GetInterfaceArgCleanup(self):
def GetInterfaceArgCleanup(self):
5f67bd7ea22947865b42d844065aa434d854dc62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/5f67bd7ea22947865b42d844065aa434d854dc62/makegwparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1358, 4117, 15007, 12, 2890, 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,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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, 968, 1358, 4117, 15007, 12, 2890, 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 ]
(s1,s2,s3) = map(lambda x:x.get_property('sensitive'), (self.first_scan_button, self.next_scan_button, self.value_input))
self.backend.send_command('option search_integer %s' % ((self.search_integer_checkbutton.get_property('active') and '1' or '0'),)) self.backend.send_command('option search_float %s' % ((self.search_float_checkbutton.get_property('active') and '1' or '0'),))
def do_scan(self): (s1,s2,s3) = map(lambda x:x.get_property('sensitive'), (self.first_scan_button, self.next_scan_button, self.value_input)) # TODO: syntax check self.backend.send_command(self.value_input.get_text()) self.update_scan_result()
f365924e6143036d1d9c74c5401adabe84f8f416 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4850/f365924e6143036d1d9c74c5401adabe84f8f416/GameConqueror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 9871, 12, 2890, 4672, 225, 365, 18, 9993, 18, 4661, 67, 3076, 2668, 3482, 1623, 67, 7745, 738, 87, 11, 738, 14015, 2890, 18, 3072, 67, 7745, 67, 1893, 5391, 18, 588, 67, 4468, 2668, 3535, 6134, 471, 296, 21, 11, 578, 296, 20, 19899, 3719, 365, 18, 9993, 18, 4661, 67, 3076, 2668, 3482, 1623, 67, 5659, 738, 87, 11, 738, 14015, 2890, 18, 3072, 67, 5659, 67, 1893, 5391, 18, 588, 67, 4468, 2668, 3535, 6134, 471, 296, 21, 11, 578, 296, 20, 19899, 3719, 468, 2660, 30, 6279, 866, 365, 18, 9993, 18, 4661, 67, 3076, 12, 2890, 18, 1132, 67, 2630, 18, 588, 67, 955, 10756, 365, 18, 2725, 67, 9871, 67, 2088, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 9871, 12, 2890, 4672, 225, 365, 18, 9993, 18, 4661, 67, 3076, 2668, 3482, 1623, 67, 7745, 738, 87, 11, 738, 14015, 2890, 18, 3072, 67, 7745, 67, 1893, 5391, 18, 588, 67, 4468, 2668, 3535, 6134, 471, 296, 21, 11, 578, 296, 20, 19899, 3719, 365, 18, 9993, 18, 4661, 67, 3076, 2668, 3482, 1623, 67, 5659, 738, 87, 11, 738, 14015, 2890, 18, 3072, 67, 5659, 67, 1893, 5391, 18, 588, 67, 4468, 2668, 3535, 6134, 471, 296, 21, 11, 578, 296, 20, 19899, 3719, 468, 2660, 30, 6279, 866, 365, 18, 9993, 18, 4661, 67, 3076, 12, 2890, 18, 1132, 67, 2630, 18, 588, 67, 955, 10756, 365, 18, 2725, 67, 9871, 67, 2 ]
max_phenotype = max(phenData.data_matrix[:,phenotype_col_index]) min_phenotype = min(phenData.data_matrix[:,phenotype_col_index])
max_phenotype = numpy.nanmax(phenData.data_matrix[:,phenotype_col_index]) min_phenotype = numpy.nanmin(phenData.data_matrix[:,phenotype_col_index])
def run(self): if self.debug: import pdb pdb.set_trace() db = Stock_250kDB.Stock_250kDB(drivername=self.drivername, username=self.db_user, password=self.db_passwd, hostname=self.hostname, database=self.dbname, schema=self.schema) db.setup(create_tables=False) session = db.session snpData = SNPData(input_fname=self.input_fname, turn_into_integer=1, turn_into_array=1, ignore_2nd_column=1) max_no_of_snps = 30000 if len(snpData.col_id_ls)>max_no_of_snps: #2008-12-01 randomly pick 30000 SNPs picked_col_index_ls = random.sample(range(len(snpData.col_id_ls)), max_no_of_snps) new_col_id_ls = [snpData.col_id_ls[i] for i in picked_col_index_ls] newSnpData = SNPData(row_id_ls=snpData.row_id_ls, col_id_ls=new_col_id_ls, strain_acc_list=snpData.strain_acc_list,\ category_list=snpData.category_list) newSnpData.data_matrix = snpData.data_matrix[:, picked_col_index_ls] snpData = newSnpData snpData, allele2index_ls = snpData.convertSNPAllele2Index() header_phen, strain_acc_list_phen, category_list_phen, data_matrix_phen = read_data(self.phenotype_fname, turn_into_integer=0) phenData = SNPData(header=header_phen, strain_acc_list=snpData.strain_acc_list, data_matrix=data_matrix_phen) #row label is that of the SNP matrix, because the phenotype matrix is gonna be re-ordered in that way phenData.data_matrix = Kruskal_Wallis.get_phenotype_matrix_in_data_matrix_order(snpData.row_id_ls, strain_acc_list_phen, phenData.data_matrix) #tricky, using strain_acc_list_phen phenotype_col_index = self.findOutWhichPhenotypeColumn(phenData, Set([self.phenotype_method_id]))[0] ecotype_info = getEcotypeInfo(db, self.country_order_type) #the offset below decides where the label of strains/snps should start in axe_snp_matrix #2008-11-14 only for PlotGroupOfSNPs.py. you can set it to 1 cuz we dont' draw axe_snp_matrix here. snp_id_label_y_offset = 0.95 StrainID2PCAPosInfo = self.getStrainID2PCAPosInfo(snpData, pca_range=[0,1], snp_id_label_y_offset=snp_id_label_y_offset) axe_y_offset1 = 0.03 axe_height1 = 0.45 #height of axe_chromosome, twice height of axe_map_phenotype_legend axe_y_offset2 = axe_y_offset1+axe_height1 axe_height2 = 0.5 #height of axe_strain_pca, axe_snp_matrix, axe_map axe_y_offset3 = axe_y_offset2+axe_height2 axe_x_offset1 = 0.05 axe_width1 = 0.8 #width of axe_strain_pca axe_x_offset2 = axe_x_offset1 + 0.02 + axe_width1 axe_width2 = 0.05 #width of axe_chromosome, axe_snp_matrix, axe_snp_pca axe_x_offset3 = axe_x_offset2 + axe_width2 axe_width3 = 0.02 #width of axe_phenotype phenotype_method = Stock_250kDB.PhenotypeMethod.get(self.phenotype_method_id) phenotype_cmap = mpl.cm.jet max_phenotype = max(phenData.data_matrix[:,phenotype_col_index]) min_phenotype = min(phenData.data_matrix[:,phenotype_col_index]) phenotype_gap = max_phenotype - min_phenotype phenotype_jitter = phenotype_gap/10. phenotype_norm = mpl.colors.Normalize(vmin=min_phenotype-phenotype_jitter, vmax=max_phenotype+phenotype_jitter) axe_map_phenotype_legend = pylab.axes([axe_x_offset2, axe_y_offset1, axe_width2, 0.3], frameon=False) cb = mpl.colorbar.ColorbarBase(axe_map_phenotype_legend, cmap=phenotype_cmap, norm=phenotype_norm, orientation='vertical') cb.set_label('Legend Of Phenotype %s %s'%(phenotype_method.id, phenotype_method.short_name)) axe_strain_map = pylab.axes([axe_x_offset1, axe_y_offset2, axe_width1, axe_height2], frameon=False) axe_strain_pca = pylab.axes([axe_x_offset1, axe_y_offset1, axe_width1, axe_height1], frameon=False) axe_strain_map_pca_cover = pylab.axes([axe_x_offset1, axe_y_offset1, axe_width1, axe_height1+axe_height2], frameon=False, \ sharex=axe_strain_pca) #cover both axe_strain_map and axe_strain_pca axe_strain_map_pca_cover.set_yticks([]) axe_strain_pca_xlim = [-0.05,1.05] axe_strain_pca_ylim = [0, 1.05] axe_strain_pca.set_xlim(axe_strain_pca_xlim) axe_strain_pca.set_ylim(axe_strain_pca_ylim) axe_strain_map_pca_cover_ylim = [0, (axe_height1+axe_height2)/axe_height1] #set it accordingly axe_strain_map_pca_cover.set_ylim(axe_strain_map_pca_cover_ylim) axe_strain_pca.grid(True, alpha=0.3) axe_strain_pca.set_xticks([]) axe_strain_pca.set_yticks([]) axe_strain_pca_legend = None #no pca legend self.drawStrainPCA(axe_strain_pca, axe_strain_map, axe_strain_map_pca_cover, axe_strain_pca_legend, StrainID2PCAPosInfo, \ ecotype_info, phenData, \ phenotype_col_index, phenotype_cmap, phenotype_norm, rightmost_x_value=axe_strain_pca_xlim[1],\ strain_color_type=2, pca2map_line_color=None, ecotype_width_on_map=10,\ draw_lines_to_axe_snp_matrix = False, strain_size_on_axe_strain_pca=14) #customize a couple of things axe_strain_pca.set_xlim(axe_strain_pca_xlim) axe_strain_pca.set_ylim(axe_strain_pca_ylim) axe_strain_map_pca_cover.set_ylim(axe_strain_map_pca_cover_ylim) png_output_fname = '%s.png'%self.output_fname_prefix pylab.savefig(png_output_fname, dpi=400) pylab.savefig('%s.svg'%self.output_fname_prefix)
2bdedeec67e197efc1586eb251f93015f76066c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/2bdedeec67e197efc1586eb251f93015f76066c2/DrawEcotypeOnMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 365, 18, 4148, 30, 1930, 10892, 10892, 18, 542, 67, 5129, 1435, 1319, 273, 20296, 363, 67, 26520, 79, 2290, 18, 17821, 67, 26520, 79, 2290, 12, 7407, 529, 33, 2890, 18, 7407, 529, 16, 2718, 33, 2890, 18, 1966, 67, 1355, 16, 2201, 33, 2890, 18, 1966, 67, 24002, 16, 5199, 33, 2890, 18, 10358, 16, 2063, 33, 2890, 18, 20979, 16, 1963, 33, 2890, 18, 4821, 13, 1319, 18, 8401, 12, 2640, 67, 9373, 33, 8381, 13, 1339, 273, 1319, 18, 3184, 225, 28648, 751, 273, 14204, 52, 751, 12, 2630, 67, 12749, 33, 2890, 18, 2630, 67, 12749, 16, 7005, 67, 18591, 67, 7745, 33, 21, 16, 7005, 67, 18591, 67, 1126, 33, 21, 16, 2305, 67, 22, 4880, 67, 2827, 33, 21, 13, 225, 943, 67, 2135, 67, 792, 67, 8134, 1121, 273, 890, 2787, 309, 562, 12, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 13, 34, 1896, 67, 2135, 67, 792, 67, 8134, 1121, 30, 202, 7, 6976, 28, 17, 2138, 17, 1611, 20153, 6002, 890, 2787, 14204, 18124, 25534, 67, 1293, 67, 1615, 67, 3251, 273, 2744, 18, 6358, 12, 3676, 12, 1897, 12, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 13, 3631, 943, 67, 2135, 67, 792, 67, 8134, 1121, 13, 394, 67, 1293, 67, 350, 67, 3251, 273, 306, 87, 6782, 751, 18, 1293, 67, 350, 67, 3251, 63, 77, 65, 364, 277, 316, 25534, 67, 1293, 67, 1615, 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, 12, 2890, 4672, 309, 365, 18, 4148, 30, 1930, 10892, 10892, 18, 542, 67, 5129, 1435, 1319, 273, 20296, 363, 67, 26520, 79, 2290, 18, 17821, 67, 26520, 79, 2290, 12, 7407, 529, 33, 2890, 18, 7407, 529, 16, 2718, 33, 2890, 18, 1966, 67, 1355, 16, 2201, 33, 2890, 18, 1966, 67, 24002, 16, 5199, 33, 2890, 18, 10358, 16, 2063, 33, 2890, 18, 20979, 16, 1963, 33, 2890, 18, 4821, 13, 1319, 18, 8401, 12, 2640, 67, 9373, 33, 8381, 13, 1339, 273, 1319, 18, 3184, 225, 28648, 751, 273, 14204, 52, 751, 12, 2630, 67, 12749, 33, 2890, 18, 2630, 67, 12749, 16, 7005, 67, 18591, 67, 7745, 33, 21, 16, 7005, 67, 18591, 2 ]
def store_remote_cib(self, node):
def store_remote_cib(self, node, target):
def store_remote_cib(self, node): combined = "" first_line = 1 extra_debug = 0 #self.CM.debug("\tRetrieving CIB from: %s" % node) (rc, lines) = self.CM.rsh(node, self.CM["CibQuery"], None) if extra_debug: self.CM.debug("Start Cib[%s]" % node) for line in lines: combined = combined + line[:-1] if first_line: self.CM.debug("[Cib]" + line) first_line = 0 elif extra_debug: self.CM.debug("[Cib]" + line)
83266b9903a44b19df33db8ad1f5db2880315af1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/83266b9903a44b19df33db8ad1f5db2880315af1/CTSaudits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 7222, 67, 71, 495, 12, 2890, 16, 756, 16, 1018, 4672, 8224, 273, 1408, 1122, 67, 1369, 273, 404, 2870, 67, 4148, 273, 374, 468, 2890, 18, 9611, 18, 4148, 31458, 88, 3848, 6282, 385, 13450, 628, 30, 738, 87, 6, 738, 756, 13, 261, 1310, 16, 2362, 13, 273, 365, 18, 9611, 18, 86, 674, 12, 2159, 16, 365, 18, 9611, 9614, 39, 495, 1138, 6, 6487, 599, 13, 309, 2870, 67, 4148, 30, 365, 18, 9611, 18, 4148, 2932, 1685, 385, 495, 14451, 87, 4279, 738, 756, 13, 364, 980, 316, 2362, 30, 8224, 273, 8224, 397, 980, 10531, 17, 21, 65, 309, 1122, 67, 1369, 30, 365, 18, 9611, 18, 4148, 2932, 63, 39, 495, 4279, 397, 980, 13, 1122, 67, 1369, 273, 374, 1327, 2870, 67, 4148, 30, 365, 18, 9611, 18, 4148, 2932, 63, 39, 495, 4279, 397, 980, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 7222, 67, 71, 495, 12, 2890, 16, 756, 16, 1018, 4672, 8224, 273, 1408, 1122, 67, 1369, 273, 404, 2870, 67, 4148, 273, 374, 468, 2890, 18, 9611, 18, 4148, 31458, 88, 3848, 6282, 385, 13450, 628, 30, 738, 87, 6, 738, 756, 13, 261, 1310, 16, 2362, 13, 273, 365, 18, 9611, 18, 86, 674, 12, 2159, 16, 365, 18, 9611, 9614, 39, 495, 1138, 6, 6487, 599, 13, 309, 2870, 67, 4148, 30, 365, 18, 9611, 18, 4148, 2932, 1685, 385, 495, 14451, 87, 4279, 738, 756, 13, 364, 980, 316, 2362, 30, 8224, 273, 8224, 397, 980, 10531, 17, 21, 65, 309, 1122, 67, 1369, 30, 365, 18, 9611, 18, 4148, 2932, 63, 2 ]
shutil.copytree(SCELETON_DIR, dir)
shutil.copytree(SKELETON_DIR, dir)
def copySkeleton(dir, namespace): console.log("Copy skeleton into the output directory: %s" % dir) try: shutil.copytree(SCELETON_DIR, dir) except OSError: console.error("Failed to copy skeleton") sys.exit(1) # rename namespace os.rename( os.path.join(dir, "source", "class", "custom"), os.path.join(dir, "source", "class", namespace) ) os.rename( os.path.join(dir, "source", "resource", "sample"), os.path.join(dir, "source", "resource", namespace) ) #clean svn directories for root, dirs, files in os.walk(dir, topdown=False): if ".svn" in dirs: shutil.rmtree(os.path.join(root, ".svn"), ignore_errors=True)
ee7363b4f96da94d82a2ba168ae2249eedfdfdea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/ee7363b4f96da94d82a2ba168ae2249eedfdfdea/createProject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 28070, 12, 1214, 16, 1981, 4672, 2983, 18, 1330, 2932, 2951, 17761, 1368, 326, 876, 1867, 30, 738, 87, 6, 738, 1577, 13, 225, 775, 30, 11060, 18, 3530, 3413, 12, 55, 6859, 15146, 673, 67, 4537, 16, 1577, 13, 1335, 10002, 30, 2983, 18, 1636, 2932, 2925, 358, 1610, 17761, 7923, 2589, 18, 8593, 12, 21, 13, 225, 468, 6472, 1981, 1140, 18, 18539, 12, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 315, 1106, 3113, 315, 3662, 6, 3631, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 315, 1106, 3113, 1981, 13, 262, 225, 1140, 18, 18539, 12, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 315, 3146, 3113, 315, 6358, 6, 3631, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 315, 3146, 3113, 1981, 13, 262, 225, 468, 6200, 5893, 82, 6402, 364, 1365, 16, 7717, 16, 1390, 316, 1140, 18, 11348, 12, 1214, 16, 1760, 2378, 33, 8381, 4672, 309, 3552, 31505, 6, 316, 7717, 30, 11060, 18, 86, 17371, 12, 538, 18, 803, 18, 5701, 12, 3085, 16, 3552, 31505, 6, 3631, 2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, 17761, 1368, 326, 876, 1867, 30, 738, 87, 6, 738, 1577, 13, 225, 775, 30, 11060, 18, 3530, 3413, 12, 55, 6859, 15146, 673, 67, 4537, 16, 1577, 13, 1335, 10002, 30, 2983, 18, 1636, 2932, 2925, 358, 1610, 17761, 7923, 2589, 18, 8593, 12, 21, 13, 225, 468, 6472, 1981, 1140, 18, 18539, 12, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 315, 1106, 3113, 315, 3662, 6, 3631, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 315, 1106, 3113, 1981, 13, 262, 225, 1140, 18, 18539, 12, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 3168, 3113, 2 ]
self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serverSocket.connect((serverName, serverPort)) self.serverIn = self.serverSocket.makefile('r') self.push(self.serverIn.readline())
self.command = '' self.args = '' self.isClosing = False self.seenAllHeaders = False self.startTime = 0 self.serverSocket = ServerLineReader(serverName, serverPort, self.onServerLine)
def __init__(self, clientSocket, serverName, serverPort): BrighterAsyncChat.__init__(self, clientSocket) self.request = '' self.set_terminator('\r\n') self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serverSocket.connect((serverName, serverPort)) self.serverIn = self.serverSocket.makefile('r') # For reading only self.push(self.serverIn.readline())
959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1004, 4534, 16, 10926, 16, 1438, 2617, 4672, 605, 86, 18117, 2771, 14163, 16186, 2738, 972, 12, 2890, 16, 1004, 4534, 13, 365, 18, 2293, 273, 875, 365, 18, 542, 67, 9505, 639, 2668, 64, 86, 64, 82, 6134, 365, 18, 3567, 4534, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 3567, 4534, 18, 3612, 12443, 3567, 461, 16, 1438, 2617, 3719, 365, 18, 3567, 382, 273, 365, 18, 3567, 4534, 18, 6540, 768, 2668, 86, 6134, 225, 468, 2457, 6453, 1338, 365, 18, 6206, 12, 2890, 18, 3567, 382, 18, 896, 1369, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1004, 4534, 16, 10926, 16, 1438, 2617, 4672, 605, 86, 18117, 2771, 14163, 16186, 2738, 972, 12, 2890, 16, 1004, 4534, 13, 365, 18, 2293, 273, 875, 365, 18, 542, 67, 9505, 639, 2668, 64, 86, 64, 82, 6134, 365, 18, 3567, 4534, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 3567, 4534, 18, 3612, 12443, 3567, 461, 16, 1438, 2617, 3719, 365, 18, 3567, 382, 273, 365, 18, 3567, 4534, 18, 6540, 768, 2668, 86, 6134, 225, 468, 2457, 6453, 1338, 365, 18, 6206, 12, 2890, 18, 3567, 382, 18, 896, 1369, 10756, 2, -100, -100, -100, -100, -100, -100 ]
self._leakDetector.removeContainerById(id)
self._leakDetector.removeContainerById(objId)
def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this container no longer exists if self.notify.getDebug(): for contName in self._leakDetector.getContainerNameByIdGen(id): yield None self.notify.debug( '%s no longer exists; caught exception in getContainerById (%s)' % ( contName, e)) self._leakDetector.removeContainerById(id) continue if container is None: # this container no longer exists if self.notify.getDebug(): for contName in self._leakDetector.getContainerNameByIdGen(id): yield None self.notify.debug('%s no longer exists; getContainerById returned None' % contName) self._leakDetector.removeContainerById(id) continue try: cLen = len(container) except Exception, e: # this container no longer exists if self.notify.getDebug(): for contName in self._leakDetector.getContainerNameByIdGen(id): yield None self.notify.debug( '%s is no longer a container, it is now %s (%s)' % (contName, safeRepr(container), e)) self._leakDetector.removeContainerById(id) continue self._leakDetector._index2containerId2len[self._index][id] = cLen # compare the current len of each container to past lens if self._index > 0: idx2id2len = self._leakDetector._index2containerId2len for id in idx2id2len[self._index]: yield None if id in idx2id2len[self._index-1]: diff = idx2id2len[self._index][id] - idx2id2len[self._index-1][id] if diff > 0: if diff > idx2id2len[self._index-1][id]: minutes = (self._leakDetector._index2delay[self._index] - self._leakDetector._index2delay[self._index-1]) / 60. name = self._leakDetector.getContainerNameById(id) if idx2id2len[self._index-1][id] != 0: percent = 100. * (float(diff) / float(idx2id2len[self._index-1][id])) try: for container in self._leakDetector.getContainerByIdGen(id): yield None except: # TODO self.notify.debug('caught exception in getContainerByIdGen (1)') else: self.notify.warning( '%s (%s) grew %.2f%% in %.2f minutes (%s items at last measurement, current contents: %s)' % ( name, itype(container), percent, minutes, idx2id2len[self._index][id], fastRepr(container, maxLen=CheckContainers.ReprItems))) yield None if (self._index > 2 and id in idx2id2len[self._index-2] and id in idx2id2len[self._index-3]): diff2 = idx2id2len[self._index-1][id] - idx2id2len[self._index-2][id] diff3 = idx2id2len[self._index-2][id] - idx2id2len[self._index-3][id] if self._index <= 4: if diff > 0 and diff2 > 0 and diff3 > 0: name = self._leakDetector.getContainerNameById(id) try: for container in self._leakDetector.getContainerByIdGen(id): yield None except: # TODO self.notify.debug('caught exception in getContainerByIdGen (2)') else: msg = ('%s (%s) consistently increased in size over the last ' '3 periods (%s items at last measurement, current contents: %s)' % (name, itype(container), idx2id2len[self._index][id], fastRepr(container, maxLen=CheckContainers.ReprItems))) self.notify.warning(msg) yield None elif (id in idx2id2len[self._index-4] and id in idx2id2len[self._index-5]): # if size has consistently increased over the last 5 checks, # send out a warning diff4 = idx2id2len[self._index-3][id] - idx2id2len[self._index-4][id] diff5 = idx2id2len[self._index-4][id] - idx2id2len[self._index-5][id] if diff > 0 and diff2 > 0 and diff3 > 0 and diff4 > 0 and diff5 > 0: name = self._leakDetector.getContainerNameById(id) try: for container in self._leakDetector.getContainerByIdGen(id): yield None except: # TODO self.notify.debug('caught exception in getContainerByIdGen (3)') else: msg = ('%s (%s) consistently increased in size over the last ' '5 periods (%s items at last measurement, current contents: %s)' % (name, itype(container), idx2id2len[self._index][id], fastRepr(container, maxLen=CheckContainers.ReprItems))) self.notify.warning(msg) self.notify.info('sending notification...') yield None messenger.send(self._leakDetector.getLeakEvent(), [container, name]) except Exception, e: print 'CheckContainers job caught exception: %s' % e if __dev__: #raise e pass yield Job.Done
2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 2170, 2673, 1435, 468, 1409, 326, 783, 562, 434, 1517, 1478, 364, 612, 316, 3258, 30, 2824, 599, 775, 30, 364, 563, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 5132, 7642, 12, 350, 4672, 2824, 599, 1478, 273, 563, 1335, 1185, 16, 425, 30, 468, 333, 1478, 1158, 7144, 1704, 309, 365, 18, 12336, 18, 588, 2829, 13332, 364, 466, 461, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 461, 5132, 7642, 12, 350, 4672, 2824, 599, 365, 18, 12336, 18, 4148, 12, 1995, 87, 1158, 7144, 1704, 31, 13537, 1520, 316, 9272, 5132, 6142, 87, 2506, 738, 261, 466, 461, 16, 425, 3719, 365, 6315, 298, 581, 12594, 18, 4479, 2170, 5132, 12, 2603, 548, 13, 1324, 309, 1478, 353, 599, 30, 468, 333, 1478, 1158, 7144, 1704, 309, 365, 18, 12336, 18, 588, 2829, 13332, 364, 466, 461, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 461, 5132, 7642, 12, 350, 4672, 2824, 599, 365, 18, 12336, 18, 4148, 29909, 87, 1158, 7144, 1704, 31, 9272, 5132, 2106, 599, 11, 738, 466, 461, 13, 365, 6315, 298, 581, 12594, 18, 4479, 2170, 5132, 12, 2603, 548, 13, 1324, 775, 30, 276, 2891, 273, 562, 12, 3782, 13, 1335, 1185, 16, 425, 30, 468, 333, 1478, 1158, 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, 12, 2890, 4672, 775, 30, 365, 6315, 298, 581, 12594, 6315, 1615, 22, 3782, 548, 22, 1897, 63, 2890, 6315, 1615, 65, 273, 2618, 3258, 273, 365, 6315, 298, 581, 12594, 18, 588, 2170, 2673, 1435, 468, 1409, 326, 783, 562, 434, 1517, 1478, 364, 612, 316, 3258, 30, 2824, 599, 775, 30, 364, 563, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 5132, 7642, 12, 350, 4672, 2824, 599, 1478, 273, 563, 1335, 1185, 16, 425, 30, 468, 333, 1478, 1158, 7144, 1704, 309, 365, 18, 12336, 18, 588, 2829, 13332, 364, 466, 461, 316, 365, 6315, 298, 581, 12594, 18, 588, 2170, 461, 5132, 7642, 12, 350, 4672, 2824, 599, 365, 18, 12336, 18, 2 ]
assert(len(wl)==15) eoc = wl[14]
assert(len(wl)==12) eoc = wl[11]
def isLastArgMax(l): argmax = 0 maxval = 0.0 argn = 0 for p in l: if maxval<p[1]: maxval = p[1] argmax = argn argn += 1 return argmax==(argn-1)
525610922bf97a49dc921ee3d6f19cb70ac9706b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10249/525610922bf97a49dc921ee3d6f19cb70ac9706b/SPCTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23075, 4117, 2747, 12, 80, 4672, 20828, 273, 374, 30443, 273, 374, 18, 20, 1501, 82, 273, 374, 364, 293, 316, 328, 30, 309, 30443, 32, 84, 63, 21, 14542, 30443, 273, 293, 63, 21, 65, 20828, 273, 1501,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23075, 4117, 2747, 12, 80, 4672, 20828, 273, 374, 30443, 273, 374, 18, 20, 1501, 82, 273, 374, 364, 293, 316, 328, 30, 309, 30443, 32, 84, 63, 21, 14542, 30443, 273, 293, 63, 21, 65, 20828, 273, 1501, 82, 1501, 82, 1011, 404, 327, 20828, 631, 12, 297, 1600, 17, 21, 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 ]
_form_addnofilter(form['newnofilter'].value.strip())
_form_addnofilter(getval(form, 'newnofilter').strip())
def exec_form (form): # reset info/error del info[:] del error[:] # proxy port if form.has_key('port'): _form_proxyport(form['port'].value) # proxy user if form.has_key('proxyuser'): _form_proxyuser(form['proxyuser'].value.strip()) # proxy pass if form.has_key('proxypass'): _form_proxypass(base64.encodestring(form['proxypass'].value.strip())) # parent proxy host if form.has_key('parentproxy'): _form_parentproxy(form['parentproxy'].value.strip()) # parent proxy port if form.has_key('parentproxyport'): _form_parentproxyport(form['parentproxyport'].value) # parent proxy user if form.has_key('parentproxyuser'): _form_parentproxyuser(form['parentproxyuser'].value.strip()) # parent proxy pass if form.has_key('parentproxypass'): _form_parentproxypass( base64.encodestring(form['parentproxypass'].value)) # timeout if form.has_key('timeout'): _form_timeout(form['timeout'].value) # filter modules _form_filtermodules(form) # allowed hosts if form.has_key('addallowed') and form.has_key('newallowed'): _form_addallowed(form['newallowed'].value.strip()) elif form.has_key('delallowed') and form.has_key('allowedhosts'): _form_delallowed(form['allowedhosts']) # no filter hosts if form.has_key('addnofilter') and form.has_key('newnofilter'): _form_addnofilter(form['newnofilter'].value.strip()) elif form.has_key('delnofilter') and form.has_key('nofilterhosts'): _form_delnofilter(form['nofilterhosts']) if info: # write changed config config.write_proxyconf()
98aca97370c8fe2057b4b424343b612a4590773e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/98aca97370c8fe2057b4b424343b612a4590773e/config_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 67, 687, 261, 687, 4672, 468, 2715, 1123, 19, 1636, 1464, 1123, 10531, 65, 1464, 555, 10531, 65, 468, 2889, 1756, 309, 646, 18, 5332, 67, 856, 2668, 655, 11, 4672, 389, 687, 67, 5656, 655, 12, 687, 3292, 655, 29489, 1132, 13, 468, 2889, 729, 309, 646, 18, 5332, 67, 856, 2668, 5656, 1355, 11, 4672, 389, 687, 67, 5656, 1355, 12, 687, 3292, 5656, 1355, 29489, 1132, 18, 6406, 10756, 468, 2889, 1342, 309, 646, 18, 5332, 67, 856, 2668, 20314, 25567, 11, 4672, 389, 687, 67, 20314, 25567, 12, 1969, 1105, 18, 1331, 1145, 371, 12, 687, 3292, 20314, 25567, 29489, 1132, 18, 6406, 1435, 3719, 468, 982, 2889, 1479, 309, 646, 18, 5332, 67, 856, 2668, 2938, 5656, 11, 4672, 389, 687, 67, 2938, 5656, 12, 687, 3292, 2938, 5656, 29489, 1132, 18, 6406, 10756, 468, 982, 2889, 1756, 309, 646, 18, 5332, 67, 856, 2668, 2938, 5656, 655, 11, 4672, 389, 687, 67, 2938, 5656, 655, 12, 687, 3292, 2938, 5656, 655, 29489, 1132, 13, 468, 982, 2889, 729, 309, 646, 18, 5332, 67, 856, 2668, 2938, 5656, 1355, 11, 4672, 389, 687, 67, 2938, 5656, 1355, 12, 687, 3292, 2938, 5656, 1355, 29489, 1132, 18, 6406, 10756, 468, 982, 2889, 1342, 309, 646, 18, 5332, 67, 856, 2668, 2938, 20314, 25567, 11, 4672, 389, 687, 67, 2938, 20314, 25567, 12, 1026, 1105, 18, 1331, 1145, 371, 12, 687, 3292, 2938, 20314, 25567, 29489, 1132, 3719, 468, 2021, 309, 646, 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, 1196, 67, 687, 261, 687, 4672, 468, 2715, 1123, 19, 1636, 1464, 1123, 10531, 65, 1464, 555, 10531, 65, 468, 2889, 1756, 309, 646, 18, 5332, 67, 856, 2668, 655, 11, 4672, 389, 687, 67, 5656, 655, 12, 687, 3292, 655, 29489, 1132, 13, 468, 2889, 729, 309, 646, 18, 5332, 67, 856, 2668, 5656, 1355, 11, 4672, 389, 687, 67, 5656, 1355, 12, 687, 3292, 5656, 1355, 29489, 1132, 18, 6406, 10756, 468, 2889, 1342, 309, 646, 18, 5332, 67, 856, 2668, 20314, 25567, 11, 4672, 389, 687, 67, 20314, 25567, 12, 1969, 1105, 18, 1331, 1145, 371, 12, 687, 3292, 20314, 25567, 29489, 1132, 18, 6406, 1435, 3719, 468, 982, 2889, 1479, 309, 646, 18, 5332, 2 ]
for xitem in range(len(arg[2])): if arg[2][xitem] == False \ and isinstance(arg[2][xitem],bool): todel.append(xitem)
if table._columns[arg[0]]._type != 'boolean': for xitem in range(len(arg[2])): if arg[2][xitem] == False \ and isinstance(arg[2][xitem],bool): todel.append(xitem)
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent)
075e3e6d78cc351f595719e600aae223f5bd453e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/075e3e6d78cc351f595719e600aae223f5bd453e/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 9216, 16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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 3631, 261, 2938, 16, 11817, 33, 2187, 1083, 13, 6487, 819, 33, 2472, 13, 327, 3258, 397, 389, 3927, 67, 588, 12, 2232, 22, 16, 1014, 16, 982, 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 ]
try: class C(object, Classic): pass except TypeError: pass else: verify(0, "inheritance from object and Classic should be illegal")
def errors(): if verbose: print "Testing errors..." try: class C(list, dict): pass except TypeError: pass else: verify(0, "inheritance from both list and dict should be illegal") try: class C(object, None): pass except TypeError: pass else: verify(0, "inheritance from non-type should be illegal") class Classic: pass try: class C(object, Classic): pass except TypeError: pass else: verify(0, "inheritance from object and Classic should be illegal") try: class C(type(len)): pass except TypeError: pass else: verify(0, "inheritance from CFunction should be illegal") try: class C(object): __slots__ = 1 except TypeError: pass else: verify(0, "__slots__ = 1 should be illegal") try: class C(object): __slots__ = [1] except TypeError: pass else: verify(0, "__slots__ = [1] should be illegal")
f45c9e0c5648c523a02313ccb2f245e392ab0ad2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f45c9e0c5648c523a02313ccb2f245e392ab0ad2/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1334, 13332, 309, 3988, 30, 1172, 315, 22218, 1334, 7070, 225, 775, 30, 667, 385, 12, 1098, 16, 2065, 4672, 1342, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 315, 6018, 1359, 628, 3937, 666, 471, 2065, 1410, 506, 16720, 7923, 225, 775, 30, 667, 385, 12, 1612, 16, 599, 4672, 1342, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 315, 6018, 1359, 628, 1661, 17, 723, 1410, 506, 16720, 7923, 667, 26902, 30, 1342, 225, 775, 30, 667, 385, 12, 723, 12, 1897, 3719, 30, 1342, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 315, 6018, 1359, 628, 385, 2083, 1410, 506, 16720, 7923, 225, 775, 30, 667, 385, 12, 1612, 4672, 1001, 18875, 972, 273, 404, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 10425, 18875, 972, 273, 404, 1410, 506, 16720, 7923, 225, 775, 30, 667, 385, 12, 1612, 4672, 1001, 18875, 972, 273, 306, 21, 65, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 10425, 18875, 972, 273, 306, 21, 65, 1410, 506, 16720, 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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, 471, 2065, 1410, 506, 16720, 7923, 225, 775, 30, 667, 385, 12, 1612, 16, 599, 4672, 1342, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 315, 6018, 1359, 628, 1661, 17, 723, 1410, 506, 16720, 7923, 667, 26902, 30, 1342, 225, 775, 30, 667, 385, 12, 723, 12, 1897, 3719, 30, 1342, 1335, 3580, 30, 1342, 469, 30, 3929, 12, 20, 16, 315, 6018, 1359, 628, 385, 2083, 1410, 506, 16720, 7923, 225, 775, 30, 667, 385, 12, 1612, 2 ]
filtered = units_qs.filter(index__range=(start_index, end_index)) return _build_units_list(filtered) def _get_prevnext_unit_ids(unit):
filtered = units_qs[start_index:end_index] return _build_units_list(units_qs, filtered) def _get_prevnext_unit_ids(qs, unit):
def _filter_view_units(units_qs, current_page, limit): """ Returns C{limit} units that are contained within page C{current_page}. """ #TODO: For now this filters in a simple manner, but we should # allow more complex filtering start_index = limit * (current_page - 1) end_index = start_index + limit filtered = units_qs.filter(index__range=(start_index, end_index)) return _build_units_list(filtered)
9f3ce7792a374c47521821bbf169d3f084c085c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/9f3ce7792a374c47521821bbf169d3f084c085c7/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 67, 1945, 67, 7705, 12, 7705, 67, 12926, 16, 783, 67, 2433, 16, 1800, 4672, 3536, 2860, 385, 95, 3595, 97, 4971, 716, 854, 7542, 3470, 1363, 385, 95, 2972, 67, 2433, 5496, 3536, 468, 6241, 30, 2457, 2037, 333, 3415, 316, 279, 4143, 21296, 16, 1496, 732, 1410, 468, 1699, 1898, 7233, 11346, 787, 67, 1615, 273, 1800, 380, 261, 2972, 67, 2433, 300, 404, 13, 679, 67, 1615, 273, 787, 67, 1615, 397, 1800, 5105, 273, 4971, 67, 12926, 18, 2188, 12, 1615, 972, 3676, 28657, 1937, 67, 1615, 16, 679, 67, 1615, 3719, 327, 389, 3510, 67, 7705, 67, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 67, 1945, 67, 7705, 12, 7705, 67, 12926, 16, 783, 67, 2433, 16, 1800, 4672, 3536, 2860, 385, 95, 3595, 97, 4971, 716, 854, 7542, 3470, 1363, 385, 95, 2972, 67, 2433, 5496, 3536, 468, 6241, 30, 2457, 2037, 333, 3415, 316, 279, 4143, 21296, 16, 1496, 732, 1410, 468, 1699, 1898, 7233, 11346, 787, 67, 1615, 273, 1800, 380, 261, 2972, 67, 2433, 300, 404, 13, 679, 67, 1615, 273, 787, 67, 1615, 397, 1800, 5105, 273, 4971, 67, 12926, 18, 2188, 12, 1615, 972, 3676, 28657, 1937, 67, 1615, 16, 679, 67, 1615, 3719, 327, 389, 3510, 67, 7705, 67, 1098, 12, 12071, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
group.add_option('--price_accuracy', dest='price_accuracy', default='2', help='specify the price accuracy')
def __init__(self, fname=None): self.options = { 'email_from':False, 'interface': '', # this will bind the server to all interfaces 'port': 8069, 'netinterface': '', 'netport': 8070, 'db_host': False, 'db_port': False, 'db_name': False, 'db_user': False, 'db_password': False, 'db_maxconn': 64, 'reportgz': False, 'netrpc': True, 'xmlrpc': True, 'soap': False, 'translate_in': None, 'translate_out': None, 'language': None, 'pg_path': None, 'admin_passwd': 'admin', 'csv_internal_sep': ',', 'addons_path': None, 'root_path': None, 'debug_mode': False, 'import_partial': "", 'pidfile': None, 'logfile': None, 'smtp_server': 'localhost', 'smtp_user': False, 'smtp_port':25, 'smtp_password': False, 'stop_after_init': False, # this will stop the server after initialization 'price_accuracy': 2, 'secure' : False, 'syslog' : False, 'log_level': logging.INFO, 'assert_exit_level': logging.WARNING, # level above which a failed assert will be raise 'cache_timeout': 100000, }
d325e7fa0058252980ef91ec19f19ba697632da5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/d325e7fa0058252980ef91ec19f19ba697632da5/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5299, 33, 7036, 4672, 365, 18, 2116, 273, 288, 296, 3652, 67, 2080, 4278, 8381, 16, 296, 5831, 4278, 10226, 565, 468, 333, 903, 1993, 326, 1438, 358, 777, 7349, 296, 655, 4278, 1725, 7677, 29, 16, 296, 2758, 5831, 4278, 10226, 296, 2758, 655, 4278, 8958, 7301, 16, 296, 1966, 67, 2564, 4278, 1083, 16, 296, 1966, 67, 655, 4278, 1083, 16, 296, 1966, 67, 529, 4278, 1083, 16, 296, 1966, 67, 1355, 4278, 1083, 16, 296, 1966, 67, 3664, 4278, 1083, 16, 296, 1966, 67, 1896, 4646, 4278, 5178, 16, 296, 6006, 9764, 4278, 1083, 16, 296, 2758, 7452, 4278, 1053, 16, 296, 2902, 7452, 4278, 1053, 16, 296, 19215, 4278, 1083, 16, 296, 13929, 67, 267, 4278, 599, 16, 296, 13929, 67, 659, 4278, 599, 16, 296, 4923, 4278, 599, 16, 296, 8365, 67, 803, 4278, 599, 16, 296, 3666, 67, 24002, 4278, 296, 3666, 2187, 296, 6715, 67, 7236, 67, 10814, 4278, 2265, 2187, 296, 1289, 7008, 67, 803, 4278, 599, 16, 296, 3085, 67, 803, 4278, 599, 16, 296, 4148, 67, 3188, 4278, 1083, 16, 296, 5666, 67, 11601, 4278, 23453, 296, 6610, 768, 4278, 599, 16, 296, 28806, 4278, 599, 16, 296, 20278, 67, 3567, 4278, 296, 13014, 2187, 296, 20278, 67, 1355, 4278, 1083, 16, 296, 20278, 67, 655, 4278, 2947, 16, 296, 20278, 67, 3664, 4278, 1083, 16, 296, 5681, 67, 5205, 67, 2738, 4278, 1083, 16, 282, 468, 333, 903, 2132, 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, 2738, 972, 12, 2890, 16, 5299, 33, 7036, 4672, 365, 18, 2116, 273, 288, 296, 3652, 67, 2080, 4278, 8381, 16, 296, 5831, 4278, 10226, 565, 468, 333, 903, 1993, 326, 1438, 358, 777, 7349, 296, 655, 4278, 1725, 7677, 29, 16, 296, 2758, 5831, 4278, 10226, 296, 2758, 655, 4278, 8958, 7301, 16, 296, 1966, 67, 2564, 4278, 1083, 16, 296, 1966, 67, 655, 4278, 1083, 16, 296, 1966, 67, 529, 4278, 1083, 16, 296, 1966, 67, 1355, 4278, 1083, 16, 296, 1966, 67, 3664, 4278, 1083, 16, 296, 1966, 67, 1896, 4646, 4278, 5178, 16, 296, 6006, 9764, 4278, 1083, 16, 296, 2758, 7452, 4278, 1053, 16, 296, 2902, 7452, 4278, 1053, 16, 296, 19215, 2 ]