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
def setOriginLowerLeft(self):
def setOriginBottomLeft(self):
def setOriginLowerLeft(self): """ Set origin to lower, left """ self.write(PI([self.margins.soft.left, self.margins.soft.bottom, self.margins.soft.right, self.margins.soft.top])) self.write(SC([0, self.margins.soft.width, 0, self.margins.soft.height])
342fe153071edf1a0ea3523c3e5148022d86f9f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3716/342fe153071edf1a0ea3523c3e5148022d86f9f2/drawingplotter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 7571, 10393, 3910, 12, 2890, 4672, 3536, 1000, 4026, 358, 2612, 16, 2002, 3536, 365, 18, 2626, 12, 1102, 3816, 2890, 18, 10107, 87, 18, 9269, 18, 4482, 16, 365, 18, 10107, 87, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 7571, 10393, 3910, 12, 2890, 4672, 3536, 1000, 4026, 358, 2612, 16, 2002, 3536, 365, 18, 2626, 12, 1102, 3816, 2890, 18, 10107, 87, 18, 9269, 18, 4482, 16, 365, 18, 10107, 87, 18,...
@staticmethod def poll(context):
@classmethod def poll(cls, context):
def edgeIntersect(context, operator): obj = context.active_object if (obj.type != "MESH"): operator.report({'ERROR'}, "Object must be a mesh") return None edges = []; mesh = obj.data verts = mesh.verts is_editmode = (obj.mode == 'EDIT') if is_editmode: bpy.ops.object.mode_set(mode='OBJECT') for e in mesh.edges: if...
6acbfe84f80dd37a53d81df2b3e295622b70e51f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/6acbfe84f80dd37a53d81df2b3e295622b70e51f/space_view3d_cursor_to_edge_intersection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 22541, 12, 2472, 16, 3726, 4672, 225, 1081, 273, 819, 18, 3535, 67, 1612, 225, 309, 261, 2603, 18, 723, 480, 315, 958, 2664, 6, 4672, 3726, 18, 6006, 12590, 11, 3589, 11, 5779, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3591, 22541, 12, 2472, 16, 3726, 4672, 225, 1081, 273, 819, 18, 3535, 67, 1612, 225, 309, 261, 2603, 18, 723, 480, 315, 958, 2664, 6, 4672, 3726, 18, 6006, 12590, 11, 3589, 11, 5779, ...
logger.notifyChannel('orm', netsvc.LOG_ERROR, 'create a column parent_left on object %s: fields.integer(\'Left Parent\', select=1)' % (self._table, )) logging.getLogger('schema').info("Table '%s': added column '%s' with definition=%s" % (self._table, 'parent_left', 'INTEGER'))
self.__logger.error('create a column parent_left on object %s: fields.integer(\'Left Parent\', select=1)', self._table) self.__schema.debug("Table '%s': added column '%s' with definition=%s", self._table, 'parent_left', 'INTEGER')
def _auto_init(self, cr, context={}): store_compute = False logger = netsvc.Logger() create = False todo_end = [] self._field_create(cr, context=context) if getattr(self, '_auto', True): cr.execute("SELECT relname FROM pg_class WHERE relkind IN ('r','v') AND relname=%s", (self._table,)) if not cr.rowcount: cr.execute('...
2601e23d09b38f3de363ad11deafc4840b5020b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/2601e23d09b38f3de363ad11deafc4840b5020b5/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 67, 2738, 12, 2890, 16, 4422, 16, 819, 12938, 4672, 1707, 67, 9200, 273, 1083, 1194, 273, 21954, 4227, 18, 3328, 1435, 752, 273, 1083, 10621, 67, 409, 273, 5378, 365, 6315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6079, 67, 2738, 12, 2890, 16, 4422, 16, 819, 12938, 4672, 1707, 67, 9200, 273, 1083, 1194, 273, 21954, 4227, 18, 3328, 1435, 752, 273, 1083, 10621, 67, 409, 273, 5378, 365, 6315, ...
break
continue
def run_linux(self, host): self.db.execute("""select distinctrow net.mac, net.ip, net.device, if(net.subnet, s.netmask, NULL), net.vlanid, net.subnet, net.module, s.mtu, net.options, net.channel from networks net, nodes n, subnets s where net.node = n.id and if(net.subnet, net.subnet = s.id, true) and n.name = "%s" ord...
de2af271c0086e1e0c418feaa8a5494f7b8521b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/de2af271c0086e1e0c418feaa8a5494f7b8521b6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 20132, 12, 2890, 16, 1479, 4672, 365, 18, 1966, 18, 8837, 2932, 3660, 4025, 10217, 492, 2901, 18, 5821, 16, 2901, 18, 625, 16, 2901, 18, 5964, 16, 309, 12, 2758, 18, 19926, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 20132, 12, 2890, 16, 1479, 4672, 365, 18, 1966, 18, 8837, 2932, 3660, 4025, 10217, 492, 2901, 18, 5821, 16, 2901, 18, 625, 16, 2901, 18, 5964, 16, 309, 12, 2758, 18, 19926, ...
tags.add(remote_wiki=remote_full_iwid, remote_rev=very_current_remote_rev, current_rev=new_local_rev, direction=direction, normalised_name=sp.name)
try: tags.add(remote_wiki=remote_full_iwid, remote_rev=very_current_remote_rev, current_rev=new_local_rev, direction=direction, normalised_name=sp.name) except: self.log_status(ActionClass.ERROR, _("The page %s could not be merged because you are not allowed to modify the page in the remote wiki."), (sp.name, )) retu...
def rollback_local_change(): # YYY direct local access comment = u"Wikisync rollback" rev = new_local_rev - 1 revstr = '%08d' % rev oldpg = Page(self.request, sp.local_name, rev=rev) pg = PageEditor(self.request, sp.local_name) if not oldpg.exists(): pg.deletePage(comment) else: try: savemsg = pg.saveText(oldpg.get_raw...
a94612ff1fc087c9958e4c1af116b85ff666a5d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/a94612ff1fc087c9958e4c1af116b85ff666a5d9/SyncPages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8006, 67, 3729, 67, 3427, 13332, 468, 1624, 9317, 2657, 1191, 2006, 2879, 273, 582, 6, 59, 1766, 291, 1209, 8006, 6, 5588, 273, 394, 67, 3729, 67, 9083, 300, 404, 5588, 701, 273, 1995,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8006, 67, 3729, 67, 3427, 13332, 468, 1624, 9317, 2657, 1191, 2006, 2879, 273, 582, 6, 59, 1766, 291, 1209, 8006, 6, 5588, 273, 394, 67, 3729, 67, 9083, 300, 404, 5588, 701, 273, 1995,...
except self.ReferenceTimeParseError:
except ReferenceTimeParseError:
def isTimeDimension(self,dimname): """See if specified dimension is a time dimension according to COARDS convention. """ try: timeunit,timeref = self.getTimeReference(dimname) except self.ReferenceTimeParseError: return False return True
d595d0017e779a5b06214ee30e710e5635deab41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/d595d0017e779a5b06214ee30e710e5635deab41/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 950, 8611, 12, 2890, 16, 3509, 529, 4672, 3536, 9704, 309, 1269, 4968, 353, 279, 813, 4968, 4888, 358, 7910, 985, 3948, 15797, 18, 3536, 775, 30, 813, 4873, 16, 8584, 822, 74, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 950, 8611, 12, 2890, 16, 3509, 529, 4672, 3536, 9704, 309, 1269, 4968, 353, 279, 813, 4968, 4888, 358, 7910, 985, 3948, 15797, 18, 3536, 775, 30, 813, 4873, 16, 8584, 822, 74, 273...
properties = [p.name for p in self.db_class.properties(hidden=False)]
properties = [p.name for p in query.model_class.properties(hidden=False)]
def search(self, params, user): """ Search for given objects @param params: The Terms to search for @type params: Dictionary
1bc8d00d54b0f415b1aa26af5baa0f302546ec16 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10599/1bc8d00d54b0f415b1aa26af5baa0f302546ec16/db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 859, 16, 729, 4672, 3536, 5167, 364, 864, 2184, 632, 891, 859, 30, 1021, 26563, 358, 1623, 364, 632, 723, 859, 30, 16447, 2, 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, 0, 0, 0, 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, 1623, 12, 2890, 16, 859, 16, 729, 4672, 3536, 5167, 364, 864, 2184, 632, 891, 859, 30, 1021, 26563, 358, 1623, 364, 632, 723, 859, 30, 16447, 2, -100, -100, -100, -100, -100, -100, -10...
diffopts = patch.diffopts(ui)
diffopts = patch.diffopts(self.repo.ui)
def prettyprintlines(diff): for l in diff.splitlines(1): if l.startswith('+'): yield self.t("difflineplus", line=l) elif l.startswith('-'): yield self.t("difflineminus", line=l) elif l.startswith('@'): yield self.t("difflineat", line=l) else: yield self.t("diffline", line=l)
3cbd635c8f592a2bec334d795ddbfa69a7244dc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/3cbd635c8f592a2bec334d795ddbfa69a7244dc1/hgweb_mod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 1188, 3548, 12, 5413, 4672, 364, 328, 316, 3122, 18, 4939, 3548, 12, 21, 4672, 309, 328, 18, 17514, 1918, 2668, 6797, 4672, 2824, 365, 18, 88, 2932, 5413, 1369, 10103, 3113, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7517, 1188, 3548, 12, 5413, 4672, 364, 328, 316, 3122, 18, 4939, 3548, 12, 21, 4672, 309, 328, 18, 17514, 1918, 2668, 6797, 4672, 2824, 365, 18, 88, 2932, 5413, 1369, 10103, 3113, 980, ...
return 'customer: "%s", user: "%s", consumer (uuid): %s' % \ (self.getCustomerName(), self.getUser(), self.getConsumerId())
return 'consumer: name="%s", uuid=%s, user: "%s"' % \ (self.getConsumerName(), self.getConsumerId(), self.getUser())
def __str__(self): return 'customer: "%s", user: "%s", consumer (uuid): %s' % \ (self.getCustomerName(), self.getUser(), self.getConsumerId())
8f37c7e7020664eaf5ae2508e99fcefb0250adcc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/8f37c7e7020664eaf5ae2508e99fcefb0250adcc/certlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 296, 10061, 30, 2213, 87, 3113, 729, 30, 2213, 87, 3113, 4765, 261, 7080, 4672, 738, 87, 11, 738, 521, 261, 2890, 18, 588, 8883, 461, 9334, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 296, 10061, 30, 2213, 87, 3113, 729, 30, 2213, 87, 3113, 4765, 261, 7080, 4672, 738, 87, 11, 738, 521, 261, 2890, 18, 588, 8883, 461, 9334, 365, ...
if p2cread is not None: p2cread.Close() if c2pwrite is not None: c2pwrite.Close() if errwrite is not None: errwrite.Close()
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (MS Windows version)"""
8c487ce66000452aef64319f6889d42d2b97d69c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/8c487ce66000452aef64319f6889d42d2b97d69c/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
def_file = os.path.join (build_temp, '%s.def' % modname) f = open (def_file, 'w') f.write ('EXPORTS\n')
temp_dir = os.path.dirname(objects[0]) def_file = os.path.join (temp_dir, '%s.def' % modname) contents = ['EXPORTS']
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None):
9785481e9d4764ad00cdf3c5c92c436452d1c1ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9785481e9d4764ad00cdf3c5c92c436452d1c1ae/bcppcompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, ...
do_in_background=False, tiny=False, pdflatex=True):
do_in_background=False, tiny=False, pdflatex=True, engine='pdflatex'):
def png(x, filename, density=150, debug=False, do_in_background=False, tiny=False, pdflatex=True): """ Create a png image representation of ``x`` and save to the given filename. INPUT: - ``x`` - object to be displayed - ``filename`` - file in which to save the image - ``density`` - integer (default: 150) - ``d...
f861246ed3920cddfa7558f769e8b83392788530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f861246ed3920cddfa7558f769e8b83392788530/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14476, 12, 92, 16, 1544, 16, 12142, 33, 23014, 16, 1198, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 16, 24405, 33, 8381, 16, 8169, 26264, 33, 5510, 16, 4073, 2218, 7699, 26264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14476, 12, 92, 16, 1544, 16, 12142, 33, 23014, 16, 1198, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 16, 24405, 33, 8381, 16, 8169, 26264, 33, 5510, 16, 4073, 2218, 7699, 26264, ...
def adjacency_matrix(self, sparse=True, boundary_first=False, over_integers=False):
def adjacency_matrix(self, sparse=True, boundary_first=False):
def adjacency_matrix(self, sparse=True, boundary_first=False, over_integers=False): """ Returns the adjacency matrix of the (di)graph. Each vertex is represented by its position in the list returned by the vertices() function.
eed3623c0caa3c0a2126620432702d05dae34083 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/eed3623c0caa3c0a2126620432702d05dae34083/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25220, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 25220, 3148, 434, 326, 261, 3211, 13, 4660, 18, 8315, 5253, 353, 10584, 635, 2097, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25220, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 25220, 3148, 434, 326, 261, 3211, 13, 4660, 18, 8315, 5253, 353, 10584, 635, 2097, 1...
self.delete(base) self.add(base)
self._add_unchecked(base, quiet)
def sync(self, base, quiet = False): '''Sync overlay.'''
d7425a8bfc7d18a7f5b7e682f65cb8f8d7db4abe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7305/d7425a8bfc7d18a7f5b7e682f65cb8f8d7db4abe/tar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 2890, 16, 1026, 16, 10902, 273, 1083, 4672, 9163, 4047, 9218, 1093, 6309, 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, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 2890, 16, 1026, 16, 10902, 273, 1083, 4672, 9163, 4047, 9218, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
[app_name, 'dhcp_filename','/install/sbin/kickstart.cgi'])
[app_name, 'dhcp_filename','pxelinux.0'])
def run(self, params, args):
7e59974a08f1c6c4daacc1a15cd8bdd3430e1a86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/7e59974a08f1c6c4daacc1a15cd8bdd3430e1a86/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 859, 16, 833, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 859, 16, 833, 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, ...
"Set the output MIME type for batch mode. The default is " + get("cli-output-type") + ". Note that you probably want to set " + "the output suffix as well."),
_("Set the output MIME type for batch mode. The default is\n %s . Note that you probably want to set\n the output suffix as well.") % get("cli-output-type")),
def print_help(*args): print "Usage: %s [options] [soundfile ...]" % sys.argv[0] for short, long, func, doc in options: print if short[-1] == ":": print " -%s arg, --%sarg" % (short[:1], long) else: print " -%s, --%s" % (short[:1], long) for line in textwrap.wrap(doc): print " %s" % line sys.exit(0)
3d05bb4765be57508ad4a5c21668c8f8d9795c8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/3d05bb4765be57508ad4a5c21668c8f8d9795c8f/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 5201, 30857, 1968, 4672, 1172, 315, 5357, 30, 738, 87, 306, 2116, 65, 306, 29671, 768, 1372, 4279, 738, 2589, 18, 19485, 63, 20, 65, 364, 3025, 16, 1525, 16, 1326, 16, 997, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 67, 5201, 30857, 1968, 4672, 1172, 315, 5357, 30, 738, 87, 306, 2116, 65, 306, 29671, 768, 1372, 4279, 738, 2589, 18, 19485, 63, 20, 65, 364, 3025, 16, 1525, 16, 1326, 16, 997, ...
game.quad[neighbor.x][neighbor.y] = IHDOT
game.quad[neighbor.i][neighbor.j] = IHDOT
def nova(nov): "Star goes nova." course = (0.0, 10.5, 12.0, 1.5, 9.0, 0.0, 3.0, 7.5, 6.0, 4.5) newc = coord(); neighbor = coord(); bump = coord(0, 0) if withprob(0.05): # Wow! We've supernova'ed supernova(False, nov) return # handle initial nova game.quad[nov.x][nov.y] = IHDOT prout(crmena(False, IHSTAR, "sector", nov)...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1158, 15304, 12, 82, 1527, 4672, 315, 18379, 13998, 1158, 15304, 1199, 4362, 273, 261, 20, 18, 20, 16, 1728, 18, 25, 16, 2593, 18, 20, 16, 404, 18, 25, 16, 2468, 18, 20, 16, 374, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1158, 15304, 12, 82, 1527, 4672, 315, 18379, 13998, 1158, 15304, 1199, 4362, 273, 261, 20, 18, 20, 16, 1728, 18, 25, 16, 2593, 18, 20, 16, 404, 18, 25, 16, 2468, 18, 20, 16, 374, 1...
WaitForSingleObject(self._handle, INFINITE) self.returncode = GetExitCodeProcess(self._handle)
_subprocess.WaitForSingleObject(self._handle, _subprocess.INFINITE) self.returncode = _subprocess.GetExitCodeProcess(self._handle)
def wait(self): """Wait for child process to terminate. Returns returncode attribute.""" if self.returncode is None: WaitForSingleObject(self._handle, INFINITE) self.returncode = GetExitCodeProcess(self._handle) return self.returncode
958deca641a868ca98342972b095b9029eaf8c72 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/958deca641a868ca98342972b095b9029eaf8c72/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 3536, 5480, 364, 1151, 1207, 358, 10850, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, 389, 1717, 2567, 18, 29321, 5281, 921, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2529, 12, 2890, 4672, 3536, 5480, 364, 1151, 1207, 358, 10850, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, 389, 1717, 2567, 18, 29321, 5281, 921, 12, 2890, ...
retVal = self.sendCMD(['push ' + destname + '\r\n', data], newline = False, sleep = sleepTime) if (retVal == None): return None if (self.validateFile(destname, localname) == False): if (self.debug >= 2): print "file did not copy as expected" return None return retVal
retVal = self.sendCMD(['push ' + destname + ' ' + str(filesize) + '\r\n', data], newline = False) if (self.debug >= 3): print "push returned: " + str(retVal) validated = False if (retVal): retline = self.stripPrompt(retVal).strip() if (retline == None or self.agentErrorRE.match(retVal)): validated = self.validateFil...
def pushFile(self, localname, destname): if (self.validateFile(destname, localname) == True): return ''
fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 812, 12, 2890, 16, 1191, 529, 16, 1570, 529, 4672, 309, 261, 2890, 18, 5662, 812, 12, 10488, 529, 16, 1191, 529, 13, 422, 1053, 4672, 327, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 1817, 812, 12, 2890, 16, 1191, 529, 16, 1570, 529, 4672, 309, 261, 2890, 18, 5662, 812, 12, 10488, 529, 16, 1191, 529, 13, 422, 1053, 4672, 327, 875, 2, -100, -100, -100, -100, -100, ...
def setUp(self):
def setup_method(self, method):
def setUp(self): # Save original user and cookie self.saved_cookie = self.request.saved_cookie self.saved_user = self.request.user
849b1103e8c94a8cb2c087f6102a7b8c77f3cb4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/849b1103e8c94a8cb2c087f6102a7b8c77f3cb4d/test_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2039, 12, 2890, 16, 707, 4672, 468, 7074, 2282, 729, 471, 3878, 365, 18, 14077, 67, 8417, 273, 365, 18, 2293, 18, 14077, 67, 8417, 365, 18, 14077, 67, 1355, 273, 365, 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, 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, 3875, 67, 2039, 12, 2890, 16, 707, 4672, 468, 7074, 2282, 729, 471, 3878, 365, 18, 14077, 67, 8417, 273, 365, 18, 2293, 18, 14077, 67, 8417, 365, 18, 14077, 67, 1355, 273, 365, 18, 2...
self._unavailable(x)
raise BuildFailed()
def build_extension(self, ext): try: build_ext.build_extension(self, ext) except (CCompilerError, DistutilsExecError), x: self._unavailable(x)
b449b6e199e51936b350f84d40448083c21321eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13128/b449b6e199e51936b350f84d40448083c21321eb/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6447, 12, 2890, 16, 1110, 4672, 775, 30, 1361, 67, 408, 18, 3510, 67, 6447, 12, 2890, 16, 1110, 13, 1335, 261, 39, 9213, 668, 16, 19893, 5471, 1905, 668, 3631, 619, 30, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6447, 12, 2890, 16, 1110, 4672, 775, 30, 1361, 67, 408, 18, 3510, 67, 6447, 12, 2890, 16, 1110, 13, 1335, 261, 39, 9213, 668, 16, 19893, 5471, 1905, 668, 3631, 619, 30, 365...
if line[:1] == '.': line = '.' + line
if line.startswith(b'.'): line = b'.' + line
def post(self, f): """Process a POST command. Arguments: - f: file containing the article Returns: - resp: server response if successful"""
9bd2973908ef080e31fd8a2b44c929188a135cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9bd2973908ef080e31fd8a2b44c929188a135cb0/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 284, 4672, 3536, 2227, 279, 5485, 1296, 18, 225, 13599, 30, 300, 284, 30, 585, 4191, 326, 7559, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 8395, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 12, 2890, 16, 284, 4672, 3536, 2227, 279, 5485, 1296, 18, 225, 13599, 30, 300, 284, 30, 585, 4191, 326, 7559, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 8395, 2, -100, -100, ...
z3cfile.cook_check(parameters=())
zopefile = zope.pagetemplate.pagetemplatefile.PageTemplateFile( self._testfile('bigtable_python_zope.pt')) len(zopefile(table=table)) len(z3cfile(table=table))
def testCache(self): table = self.table
d76abccf57b228bf5b7f659bad315054fbf235b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9696/d76abccf57b228bf5b7f659bad315054fbf235b7/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1649, 12, 2890, 4672, 1014, 273, 365, 18, 2121, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1649, 12, 2890, 4672, 1014, 273, 365, 18, 2121, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
source_parts = os.path.abspath(source or '').split(os.sep)
source_parts = os.path.abspath(source or 'dummy_file').split(os.sep)
def relative_path(source, target): """ Build and return a path to `target`, relative to `source`. If there is no common prefix, return the absolute path to `target`. """ source_parts = os.path.abspath(source or '').split(os.sep) target_parts = os.path.abspath(target).split(os.sep) # Check first 2 parts because '/dir'....
1d453e651412f4e60cc26d74657e4c70f2ca7f8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/1d453e651412f4e60cc26d74657e4c70f2ca7f8a/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3632, 67, 803, 12, 3168, 16, 1018, 4672, 3536, 3998, 471, 327, 279, 589, 358, 1375, 3299, 9191, 3632, 358, 1375, 3168, 8338, 225, 971, 1915, 353, 1158, 2975, 1633, 16, 327, 326, 4967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3632, 67, 803, 12, 3168, 16, 1018, 4672, 3536, 3998, 471, 327, 279, 589, 358, 1375, 3299, 9191, 3632, 358, 1375, 3168, 8338, 225, 971, 1915, 353, 1158, 2975, 1633, 16, 327, 326, 4967, ...
'defaultTestLoader', 'SkipException', 'skip', 'skipIf', 'skipUnless',
'defaultTestLoader', 'SkipTest', 'skip', 'skipIf', 'skipUnless',
def testMultiply(self): self.assertEquals((0 * 10), 0) self.assertEquals((5 * 8), 40)
e98f8718d64f8ae453301059cfefa42de0e4d5b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/e98f8718d64f8ae453301059cfefa42de0e4d5b7/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26040, 12, 2890, 4672, 365, 18, 11231, 8867, 12443, 20, 380, 1728, 3631, 374, 13, 365, 18, 11231, 8867, 12443, 25, 380, 1725, 3631, 8063, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 26040, 12, 2890, 4672, 365, 18, 11231, 8867, 12443, 20, 380, 1728, 3631, 374, 13, 365, 18, 11231, 8867, 12443, 25, 380, 1725, 3631, 8063, 13, 2, -100, -100, -100, -100, -100, -100,...
sel.wait_for_page_to_load('30000')
try: sel.click('link=Show all') sel.wait_for_page_to_load('30000') except: pass
def check_column_sort(self, column): sel = self.selenium sel.wait_for_page_to_load('30000') sel.click('//table[@id="widget"]/thead/th[%d]//a[@href]' % column) sel.wait_for_page_to_load('30000') row_count = int(sel.get_xpath_count( '//table[@id="widget"]/tbody/tr/td[%d]' % column)) cell_values = [sel.get_table('widget.%...
270448b3949320ec4fcda2b7d38ef7f9cd699b40 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/270448b3949320ec4fcda2b7d38ef7f9cd699b40/test_systems.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2827, 67, 3804, 12, 2890, 16, 1057, 4672, 357, 273, 365, 18, 1786, 17327, 775, 30, 357, 18, 7475, 2668, 1232, 33, 5706, 777, 6134, 357, 18, 7048, 67, 1884, 67, 2433, 67, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 2827, 67, 3804, 12, 2890, 16, 1057, 4672, 357, 273, 365, 18, 1786, 17327, 775, 30, 357, 18, 7475, 2668, 1232, 33, 5706, 777, 6134, 357, 18, 7048, 67, 1884, 67, 2433, 67, 869...
self.context = DottedName(self.context, funcname) self.parentdocs.append(funcdoc)
def process_funcdef(self, funcname, parameters, body, pseudo_docstring): """ The statement handler for function definition blocks. This handler constructs the documentation for the function, and adds it to the containing namespaces. If the function is a method's C{__init__} method, then it calls L{process_suite} to p...
d4b62290bc22e63f8cc96e7c77bc6b16300b943b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d4b62290bc22e63f8cc96e7c77bc6b16300b943b/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 644, 536, 12, 2890, 16, 1326, 529, 16, 1472, 16, 1417, 16, 12454, 67, 24675, 4672, 3536, 1021, 3021, 1838, 364, 445, 2379, 4398, 18, 225, 1220, 1838, 15725, 326, 7323, 364, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 644, 536, 12, 2890, 16, 1326, 529, 16, 1472, 16, 1417, 16, 12454, 67, 24675, 4672, 3536, 1021, 3021, 1838, 364, 445, 2379, 4398, 18, 225, 1220, 1838, 15725, 326, 7323, 364, 3...
return self.tk.call(self._w, 'selection', 'includes', entry)
return self.tk.call(self._w, 'selection', 'includes', entry)
def selection_includes(self, entry):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 18499, 12, 2890, 16, 1241, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 18499, 12, 2890, 16, 1241, 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...
else: return w, t
def _listCellGeom(self, V,w,s,W=None,H=None,aH=72000): aW = w-s.leftPadding-s.rightPadding aH = aH - s.topPadding - s.bottomPadding t = 0 w = 0 canv = getattr(self,'canv',None) for v in V: vw, vh = v.wrapOn(canv,aW, aH) if W is not None: W.append(vw) if H is not None: H.append(vh) w = max(w,vw) t = t + vh + v.getSpaceB...
7d8965c3c851045f5dcebadd12e920c756ccb7b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/7d8965c3c851045f5dcebadd12e920c756ccb7b1/tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 4020, 16972, 12, 2890, 16, 776, 16, 91, 16, 87, 16, 59, 33, 7036, 16, 44, 33, 7036, 16, 69, 44, 33, 9060, 3784, 4672, 279, 59, 273, 341, 17, 87, 18, 4482, 9485, 17, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 4020, 16972, 12, 2890, 16, 776, 16, 91, 16, 87, 16, 59, 33, 7036, 16, 44, 33, 7036, 16, 69, 44, 33, 9060, 3784, 4672, 279, 59, 273, 341, 17, 87, 18, 4482, 9485, 17, 87...
return [i[0] for i in data if i[1] == None and "!" in i[0]]
L = [] for mask, removal in data: if removal is not None: continue elif not isUserHostmask(mask) and mask[0] != '$': continue L.append(mask) return L
def getBans(chan): data = self.db_run("SELECT mask, removal FROM bans WHERE channel=%s", chan, expect_result=True) return [i[0] for i in data if i[1] == None and "!" in i[0]]
31a982084917e0319aee6fbcd04b63ef03e3438e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3124/31a982084917e0319aee6fbcd04b63ef03e3438e/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2882, 634, 12, 7472, 4672, 501, 273, 365, 18, 1966, 67, 2681, 2932, 4803, 3066, 16, 14817, 4571, 324, 634, 4852, 1904, 5095, 87, 3113, 3861, 16, 4489, 67, 2088, 33, 5510, 13, 327, 306,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2882, 634, 12, 7472, 4672, 501, 273, 365, 18, 1966, 67, 2681, 2932, 4803, 3066, 16, 14817, 4571, 324, 634, 4852, 1904, 5095, 87, 3113, 3861, 16, 4489, 67, 2088, 33, 5510, 13, 327, 306,...
f.seek(0)
def test_truncate(self): eq = self.assertEqual f = self.MODULE.StringIO() f.write(self._lines) f.seek(10) f.truncate() eq(f.getvalue(), 'abcdefghij') f.seek(0) f.truncate(5) eq(f.getvalue(), 'abcde') f.close() self.assertRaises(ValueError, f.write, 'frobnitz')
d46fa054924ab904f291940c65c8eea6341ec139 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d46fa054924ab904f291940c65c8eea6341ec139/test_StringIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 27201, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 284, 273, 365, 18, 12194, 18, 780, 4294, 1435, 284, 18, 2626, 12, 2890, 6315, 3548, 13, 284, 18, 16508, 12, 2163, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 27201, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 284, 273, 365, 18, 12194, 18, 780, 4294, 1435, 284, 18, 2626, 12, 2890, 6315, 3548, 13, 284, 18, 16508, 12, 2163, 13, ...
self.active_view = self.VIEW_VIRTUAL_LISTS
def append_virtual(self, beans=None): LOG.debug("Current virtual list", self.currentListMap) self.active_view = self.VIEW_VIRTUAL_LISTS if not self.currentListMap: self.currentListMap = self.DEFAULT_LIST
5f9356b8adcb95c31684f7dcfa0053365cc20878 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/5f9356b8adcb95c31684f7dcfa0053365cc20878/directory_controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 12384, 12, 2890, 16, 15709, 33, 7036, 4672, 2018, 18, 4148, 2932, 3935, 5024, 666, 3113, 365, 18, 2972, 682, 863, 13, 309, 486, 365, 18, 2972, 682, 863, 30, 365, 18, 2972, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 12384, 12, 2890, 16, 15709, 33, 7036, 4672, 2018, 18, 4148, 2932, 3935, 5024, 666, 3113, 365, 18, 2972, 682, 863, 13, 309, 486, 365, 18, 2972, 682, 863, 30, 365, 18, 2972, 6...
self.addSliders()
def __init__(self, client = None, streams = None, options = None): self.client = client self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagFilt=False #False:no filter True:filter self.flagFiltTyp=0 #0: bandpass 1: bandstop 2:lowpass 3: highpass self.dictFiltTyp...
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1004, 273, 599, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 2625, 273, 1004, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1004, 273, 599, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 2625, 273, 1004, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, ...
print cloud.icloud.vis_info.keys()
def write_out_plots(): rms_r_logger.generate_plot( title="Kapchinskij-Vladimirskij Beam Evolution", sim_label="RMS, simulated, with space charge", outfile="beam-rad-rms", theories=[ ("RMS, theoretical, with space charge", rms_theory_with_charge) ])
c4b90fec8084ff080abf7b19d795982f28513097 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12869/c4b90fec8084ff080abf7b19d795982f28513097/with-charge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 659, 67, 13214, 13332, 27806, 67, 86, 67, 4901, 18, 7163, 67, 4032, 12, 2077, 1546, 47, 438, 343, 2679, 79, 8302, 17, 58, 80, 361, 381, 481, 7771, 8302, 605, 3820, 30964, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 67, 659, 67, 13214, 13332, 27806, 67, 86, 67, 4901, 18, 7163, 67, 4032, 12, 2077, 1546, 47, 438, 343, 2679, 79, 8302, 17, 58, 80, 361, 381, 481, 7771, 8302, 605, 3820, 30964, 5...
if not check_path: rp_base.isincfile() if compress and not rp_base.isinccompressed():
if compress and check_path and not rp_base.isinccompressed()):
def __init__(self, rp_base, mode, check_path = 1, compress = 1, callback = None): """Open rp (or rp+'.gz') for reading ('r') or writing ('w')
5a9322bcd4cec6ad6fe5c32d2bc4c307c5bf01a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/783/5a9322bcd4cec6ad6fe5c32d2bc4c307c5bf01a6/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8715, 67, 1969, 16, 1965, 16, 866, 67, 803, 273, 404, 16, 8099, 273, 404, 16, 1348, 273, 599, 4672, 3536, 3678, 8715, 261, 280, 8715, 6797, 18, 9764, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8715, 67, 1969, 16, 1965, 16, 866, 67, 803, 273, 404, 16, 8099, 273, 404, 16, 1348, 273, 599, 4672, 3536, 3678, 8715, 261, 280, 8715, 6797, 18, 9764, 6...
for name,props in paramsDict.items():
for name, props in paramsDict.items():
def _dumpParameters(self,showType=None): """Developer function. Method to print the workflow parameters. """ paramsDict = {} paramList = self.workflow.parameters for param in paramList: paramsDict[param.getName()]= {'type':param.getType(),'value':param.getValue()} self.log.info('--------------------------------------')...
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 2402, 12, 2890, 16, 4500, 559, 33, 7036, 4672, 3536, 28145, 445, 18, 2985, 358, 1172, 326, 6095, 1472, 18, 3536, 859, 5014, 273, 2618, 579, 682, 273, 365, 18, 13815, 18, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8481, 2402, 12, 2890, 16, 4500, 559, 33, 7036, 4672, 3536, 28145, 445, 18, 2985, 358, 1172, 326, 6095, 1472, 18, 3536, 859, 5014, 273, 2618, 579, 682, 273, 365, 18, 13815, 18, 397...
cmd += ' | grep "<.*\(verification\|hash\)>" > "%s"' % dst
cmd += ' | grep "</\?\(verification\|hash\|pieces\).*>" > "%s"' % dst
def make_hashes(src, dst, opts): src_dir = os.path.dirname(src) src_dir_mode = os.stat(src_dir).st_mode dst_dir = os.path.dirname(dst) dst = dst + ML_EXTENSION if not opts.dry_run: if not os.path.isdir(dst_dir): os.makedirs(dst_dir, mode = 0755) os.chmod(dst_dir, src_dir_mode) src_mtime = os.path.getmtime(src) try: ...
f2f1eab1d3af24cf20db10de4f91b22ed5d1acf3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3890/f2f1eab1d3af24cf20db10de4f91b22ed5d1acf3/metalink-hasher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 17612, 12, 4816, 16, 3046, 16, 1500, 4672, 1705, 67, 1214, 273, 1140, 18, 803, 18, 12287, 12, 4816, 13, 1705, 67, 1214, 67, 3188, 273, 1140, 18, 5642, 12, 4816, 67, 1214, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 17612, 12, 4816, 16, 3046, 16, 1500, 4672, 1705, 67, 1214, 273, 1140, 18, 803, 18, 12287, 12, 4816, 13, 1705, 67, 1214, 67, 3188, 273, 1140, 18, 5642, 12, 4816, 67, 1214, 2...
self.file.seek(2880*(self.file.tell()/2880+1))
self.file.seek(2880*((self.file.tell()-1)/2880+1))
def __init__(self, filename='', mode='r'): #mode is 'h' (headers) or 'r' (data+headers) self.filename=filename if mode=='h': #Mode h opens file, reads headers, closes the file self.data = None if not filename: self.headers={'SIMPLE':'T', 'EXTEND':'T', 'NAXIS':'2'} self.comments={'COMMENT':'Empty header','HISTO...
de5dcff844b91a0c3b12b127a083c25e5b46112f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8228/de5dcff844b91a0c3b12b127a083c25e5b46112f/fits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 2218, 2187, 1965, 2218, 86, 11, 4672, 468, 3188, 353, 296, 76, 11, 261, 2485, 13, 578, 296, 86, 11, 261, 892, 15, 2485, 13, 365, 18, 3459, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 2218, 2187, 1965, 2218, 86, 11, 4672, 468, 3188, 353, 296, 76, 11, 261, 2485, 13, 578, 296, 86, 11, 261, 892, 15, 2485, 13, 365, 18, 3459, 33, ...
if g0.useRects == 1 and g1.useRects == 0: group.add(g0.draw()) group.add(g1.draw()) else: group.add(g1.draw()) group.add(g0.draw())
G = g0.useRects == 1 and g1.useRects == 0 and (g0,g1) or (g1,g0) for g in G: group.add(g.makeOuterRect()) for g in G: group.add(g.makeInnerTiles()) group.add(g.makeInnerLines())
def draw(self): group = Group()
c0f0f74bde126f660f9b435c26ee1cebfeb195bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/c0f0f74bde126f660f9b435c26ee1cebfeb195bd/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 1041, 273, 3756, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 1041, 273, 3756, 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, -1...
command = command.replace('\\\\ensuremath{\\\\', '$\n\\backslash')
command = command.replace('\\\\ensuremath{\\\\', '$\n\\backslash\n')
def revert_unicode(document): '''Transform unicode characters that can not be written using the
586a07709fa2111e5db88487dfe5c19b9bdcf689 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/586a07709fa2111e5db88487dfe5c19b9bdcf689/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 9124, 12, 5457, 4672, 9163, 4059, 5252, 3949, 716, 848, 486, 506, 5941, 1450, 326, 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, ...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 9124, 12, 5457, 4672, 9163, 4059, 5252, 3949, 716, 848, 486, 506, 5941, 1450, 326, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
""" Call every command that was set for the current active breakpoint (if there is one) Returns True if the normal interaction function must be called, False otherwise """ if getattr(self,"currentbp",False) and self.currentbp in self.commands:
"""Call every command that was set for the current active breakpoint (if there is one). Returns True if the normal interaction function must be called, False otherwise.""" if getattr(self, "currentbp", False) and \ self.currentbp in self.commands:
def bp_commands(self,frame): """ Call every command that was set for the current active breakpoint (if there is one) Returns True if the normal interaction function must be called, False otherwise """ #self.currentbp is set in bdb.py in bdb.break_here if a breakpoint was hit if getattr(self,"currentbp",False) and self....
f856eefea3958fc4346d1e2b34b70f05aa053bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f856eefea3958fc4346d1e2b34b70f05aa053bdc/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9107, 67, 7847, 12, 2890, 16, 3789, 4672, 3536, 3049, 3614, 1296, 716, 1703, 444, 364, 326, 783, 2695, 18820, 261, 430, 1915, 353, 1245, 13, 2860, 1053, 309, 326, 2212, 13581, 445, 1297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9107, 67, 7847, 12, 2890, 16, 3789, 4672, 3536, 3049, 3614, 1296, 716, 1703, 444, 364, 326, 783, 2695, 18820, 261, 430, 1915, 353, 1245, 13, 2860, 1053, 309, 326, 2212, 13581, 445, 1297,...
return self.tk.call(self._w, 'info', 'anchor')
return self.tk.call(self._w, 'info', 'anchor')
def info_anchor(self):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 16215, 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,...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 16215, 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, -1...
cmd = os.path.join(self.srcdir, script) + ' ' + args
ltpbin_dir = os.path.join(self.srcdir, 'bin') cmd = os.path.join(ltpbin_dir, script) + ' ' + args
def run_once(self, args = '', script = 'runltp', ignore_tests=[]):
6180ffc701ee4bc415b934f83dc1a570a46c4533 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/6180ffc701ee4bc415b934f83dc1a570a46c4533/ltp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 833, 273, 10226, 2728, 273, 296, 2681, 5618, 84, 2187, 2305, 67, 16341, 33, 8526, 4672, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 833, 273, 10226, 2728, 273, 296, 2681, 5618, 84, 2187, 2305, 67, 16341, 33, 8526, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if opts.plot_spectrum: (ax1, ax2, ax3), info = fig.axes[:3], fig.texts[0] else: (ax1, ax2), info = fig.axes[:2], fig.texts[0]
def interp_sensor(quantity, default): try: sensor = current_dataset.enviro[quantity] except KeyError: return (lambda times: default) else: interp = scape.fitting.PiecewisePolynomial1DFit(max_degree=0) interp.fit(sensor['timestamp'], sensor['value']) return interp
1645a5e5d2badb3b540a8453519ebad084c3b736 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5243/1645a5e5d2badb3b540a8453519ebad084c3b736/analyse_point_source_scans.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8174, 67, 27426, 12, 16172, 16, 805, 4672, 775, 30, 10583, 273, 783, 67, 8682, 18, 275, 522, 303, 63, 16172, 65, 1335, 4999, 30, 327, 261, 14661, 4124, 30, 805, 13, 469, 30, 8174, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8174, 67, 27426, 12, 16172, 16, 805, 4672, 775, 30, 10583, 273, 783, 67, 8682, 18, 275, 522, 303, 63, 16172, 65, 1335, 4999, 30, 327, 261, 14661, 4124, 30, 805, 13, 469, 30, 8174, 27...
open(os.path.join(self.svn_dir, "pjlib", "include", "pj", "config_site.h"), "wb").write("\n".join(self.config_site))
def fetch_pjsip_from_svn(self): self.svn_dir = os.path.join(self.pjsip_build_dir or self.build_temp, "pjsip") try: old_svn_rev = get_svn_revision(self.svn_dir) except: old_svn_rev = -1 if not os.path.exists(self.svn_dir): log.info("Fetching PJSIP from SVN repository") distutils_exec_process(["svn", "co", "-r", self.pjs...
a7c3cf7a1802f8d72906666ea28980727d86cf39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/a7c3cf7a1802f8d72906666ea28980727d86cf39/setup_pjsip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 84, 2924, 625, 67, 2080, 67, 31505, 12, 2890, 4672, 365, 18, 31505, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 84, 2924, 625, 67, 3510, 67, 1214, 578, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2158, 67, 84, 2924, 625, 67, 2080, 67, 31505, 12, 2890, 4672, 365, 18, 31505, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 84, 2924, 625, 67, 3510, 67, 1214, 578, 365, 18, ...
stripall(revnum)
stripall(striprev)
def stripall(revnum): mm = repo.changectx(rev).manifest() seen = {}
d2c57f799695df6e062a9b05895035a6a4e5dc56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/d2c57f799695df6e062a9b05895035a6a4e5dc56/repair.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 454, 12, 9083, 2107, 4672, 9740, 273, 3538, 18, 24083, 386, 92, 12, 9083, 2934, 14357, 1435, 5881, 273, 2618, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2569, 454, 12, 9083, 2107, 4672, 9740, 273, 3538, 18, 24083, 386, 92, 12, 9083, 2934, 14357, 1435, 5881, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if nm.lower() == (assembly.name + ".dll").lower(): ftocnm = nm else: ftocnm = os.path.join(assembly.name, nm)
ftocnm = nm
def selectAssemblies(pth): """Return a binary's dependent assemblies files that should be included. Return a list of pairs (name, fullpath) """ rv = [] if not os.path.isfile(pth): pth = check_extract_from_egg(pth)[0][0] for assembly in getAssemblies(pth): if excludesRe.search(assembly.name): if not silent: print "I: S...
940917800f8f949aa4bb722389e69c3fa70396cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11925/940917800f8f949aa4bb722389e69c3fa70396cd/bindepend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 1463, 5747, 549, 281, 12, 2397, 4672, 3536, 990, 279, 3112, 1807, 10460, 20489, 549, 281, 1390, 716, 1410, 506, 5849, 18, 225, 2000, 279, 666, 434, 5574, 261, 529, 16, 15170, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2027, 1463, 5747, 549, 281, 12, 2397, 4672, 3536, 990, 279, 3112, 1807, 10460, 20489, 549, 281, 1390, 716, 1410, 506, 5849, 18, 225, 2000, 279, 666, 434, 5574, 261, 529, 16, 15170, 13, ...
print "\t
print >> stream, "\t
def WriteEventSinkClassHeader(self, generator): generator.checkWriteEventBaseClass() doc = self.doc print 'class ' + self.python_name + ':' if doc[1]: print '\t' + build._safeQuotedString(doc[1]) try: progId = pythoncom.ProgIDFromCLSID(self.clsid) print "\t# This class is creatable by the name '%s'" % (progId) except p...
d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1133, 11326, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 1133, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1172, 296, 1106, 296, 397, 365, 18, 8103, 67, 529, 397, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2598, 1133, 11326, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 1133, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1172, 296, 1106, 296, 397, 365, 18, 8103, 67, 529, 397, 39...
if cast_weakgcaddress_to_object(addr_ref, W_Root) is not None: w_ref = cast_weakgcaddress_to_object(addr_ref, W_Root)
w_ref = cast_weakgcaddress_to_object(addr_ref, W_WeakrefBase) if w_ref is not None:
def __del__(self): for i in range(len(self.addr_refs) - 1, -1, -1): addr_ref = self.addr_refs[i] if cast_weakgcaddress_to_object(addr_ref, W_Root) is not None: w_ref = cast_weakgcaddress_to_object(addr_ref, W_Root) w_ref.invalidate() for i in range(len(self.addr_refs) - 1, -1, -1): addr_ref = self.addr_refs[i] if cast_...
da9c1fbccd844859d2d80a9cf2c10be77531c0bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/da9c1fbccd844859d2d80a9cf2c10be77531c0bf/interp__weakref.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 4793, 67, 9316, 13, 300, 404, 16, 300, 21, 16, 300, 21, 4672, 3091, 67, 1734, 273, 365, 18, 4793, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3771, 972, 12, 2890, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 4793, 67, 9316, 13, 300, 404, 16, 300, 21, 16, 300, 21, 4672, 3091, 67, 1734, 273, 365, 18, 4793, 67, ...
def groupby(self, key_selector=None, val_selector=None):
def group_by(self, key_selector=None, val_selector=None):
def groupby(self, key_selector=None, val_selector=None): result = {} # this is greedy...but there's no other way to do it other than returning the same key # multiple times. key_selector = key_selector or (lambda item: item) val_selector = val_selector or (lambda item: item) for k, v in self.select(lambda item: (key_se...
f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 67, 1637, 12, 2890, 16, 498, 67, 9663, 33, 7036, 16, 1244, 67, 9663, 33, 7036, 4672, 563, 273, 2618, 468, 333, 353, 5174, 24009, 2777, 12885, 1915, 1807, 1158, 1308, 4031, 358, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1041, 67, 1637, 12, 2890, 16, 498, 67, 9663, 33, 7036, 16, 1244, 67, 9663, 33, 7036, 4672, 563, 273, 2618, 468, 333, 353, 5174, 24009, 2777, 12885, 1915, 1807, 1158, 1308, 4031, 358, 7...
for feature in features: line = string.replace(line,"/"+feature,"") line = string.replace(line,"\\"+feature,"")
def _expect_line(self, content, expected): expected = expected.strip() lines = content.splitlines() found = 0 for line in lines: line = line.strip() for feature in features: line = string.replace(line,"/"+feature,"") line = string.replace(line,"\\"+feature,"") if fnmatch.fnmatch(line, expected): found = 1 break
109fba60a09838d9c10f23b1b0f5999619965b4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9981/109fba60a09838d9c10f23b1b0f5999619965b4a/BoostBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12339, 67, 1369, 12, 2890, 16, 913, 16, 2665, 4672, 2665, 273, 2665, 18, 6406, 1435, 2362, 273, 913, 18, 4939, 3548, 1435, 1392, 273, 374, 364, 980, 316, 2362, 30, 980, 273, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12339, 67, 1369, 12, 2890, 16, 913, 16, 2665, 4672, 2665, 273, 2665, 18, 6406, 1435, 2362, 273, 913, 18, 4939, 3548, 1435, 1392, 273, 374, 364, 980, 316, 2362, 30, 980, 273, 980, ...
namespace[sig[_SIG_SPILLOVER]] = argDict[v]
namespace[sig[_SIG_SPILLOVER]] = argDict
def mergeNamespaces( self, namespace, argDict, auxVars ): sig = self.dt.meta().get(_SIG_META) if sig: #check the argument signature here if a <:compargs:> tag namespace.update(auxVars) for v in sig[_SIG_REQUIRED]: if not argDict.has_key(v) and not auxVars.has_key(v): raise SkunkStandardError, ( 'component %s: argument ...
bafef647e3821b61ff1e9da93c147c532e28c7b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/bafef647e3821b61ff1e9da93c147c532e28c7b0/Executables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 13180, 12, 365, 16, 1981, 16, 1501, 5014, 16, 9397, 5555, 262, 30, 3553, 273, 365, 18, 7510, 18, 3901, 7675, 588, 24899, 18513, 67, 19294, 13, 309, 3553, 30, 468, 1893, 326, 1237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 13180, 12, 365, 16, 1981, 16, 1501, 5014, 16, 9397, 5555, 262, 30, 3553, 273, 365, 18, 7510, 18, 3901, 7675, 588, 24899, 18513, 67, 19294, 13, 309, 3553, 30, 468, 1893, 326, 1237...
event['auth_method'] = auth_method
event['auth_type'] = auth_method
def log(self, fault_code, runtime, *args): """ Log the transaction """
2751840aebc6b3af61c8f72cd12982c6993af063 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7598/2751840aebc6b3af61c8f72cd12982c6993af063/Method.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 16, 12530, 67, 710, 16, 3099, 16, 380, 1968, 4672, 3536, 1827, 326, 2492, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 16, 12530, 67, 710, 16, 3099, 16, 380, 1968, 4672, 3536, 1827, 326, 2492, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
inspect.isbuiltin(val_doc.pyval) and inspect.isbuiltin(src_val.pyval) and
(inspect.isbuiltin(val_doc.pyval) or isinstance(val_doc.pyval, _method_descriptor)) and (inspect.isbuiltin(src_val.pyval) or isinstance(src_val.pyval, _method_descriptor)) and
def _inherit_info(var_doc): """ Copy any relevant documentation information from the variable that C{var_doc} overrides into C{var_doc} itself. """ src_var = var_doc.overrides src_val = var_doc.overrides.value val_doc = var_doc.value # If the new variable has a docstring, then don't inherit # anything, even if the doc...
0cdb03e7602b85215d0ddd269d1514b8fcec56a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3512/0cdb03e7602b85215d0ddd269d1514b8fcec56a1/docbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6018, 67, 1376, 12, 1401, 67, 2434, 4672, 3536, 5631, 1281, 9368, 7323, 1779, 628, 326, 2190, 716, 385, 95, 1401, 67, 2434, 97, 9515, 1368, 385, 95, 1401, 67, 2434, 97, 6174, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6018, 67, 1376, 12, 1401, 67, 2434, 4672, 3536, 5631, 1281, 9368, 7323, 1779, 628, 326, 2190, 716, 385, 95, 1401, 67, 2434, 97, 9515, 1368, 385, 95, 1401, 67, 2434, 97, 6174, 18, ...
_cs_matrix._matvec(self, other, self.rowind, cscmux)
if isdense(other): oth = numpy.ravel(other) y = cscmux(self.shape[0], self.shape[1], \ self.indptr, self.rowind, self.data, oth) if isinstance(other, matrix): y = asmatrix(y) if other.ndim == 2 and other.shape[1] == 1: y = y.T return y elif isspmatrix(other): raise TypeError, "use matmat() for sparse * sparse" el...
def matvec(self, other): _cs_matrix._matvec(self, other, self.rowind, cscmux)
68509c21665a282972955c9c541c98c796ab1d7d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/68509c21665a282972955c9c541c98c796ab1d7d/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4834, 8799, 12, 2890, 16, 1308, 4672, 389, 2143, 67, 5667, 6315, 7373, 8799, 12, 2890, 16, 1308, 16, 365, 18, 492, 728, 16, 276, 1017, 81, 2616, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 4834, 8799, 12, 2890, 16, 1308, 4672, 389, 2143, 67, 5667, 6315, 7373, 8799, 12, 2890, 16, 1308, 16, 365, 18, 492, 728, 16, 276, 1017, 81, 2616, 13, 2, -100, -100, -100, -100, -100, ...
cwd = os.getcwd()
def run(self): try: cwd = os.getcwd() wasexecuting = False while True: os.chdir(cwd) act = TM._get_action(wasexecuting) if act == None: wasexecuting=False else: ret = act.execute() if ret == True: act.post_process() else: TM.exit() wasexecuting=True except KeyboardInterrupt: TM.exit()
7c3d227a52bbaa10dd2d7ffdf243825154cc38c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7c3d227a52bbaa10dd2d7ffdf243825154cc38c2/taskmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 341, 448, 92, 557, 8490, 273, 1083, 1323, 1053, 30, 1140, 18, 343, 1214, 12, 11089, 13, 1328, 273, 27435, 6315, 588, 67, 1128, 12, 91, 448, 92, 557, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 341, 448, 92, 557, 8490, 273, 1083, 1323, 1053, 30, 1140, 18, 343, 1214, 12, 11089, 13, 1328, 273, 27435, 6315, 588, 67, 1128, 12, 91, 448, 92, 557, 84...
</div>""" % ( myself, tree.name, entry.date, revision_url, myself, tree.name, entry.date, revision_url, msg, entry.author)
</div>""" % (myself, tree.name, entry.date, revision_url, myself, tree.name, entry.date, revision_url, msg, entry.author)
def history_row_html(myself, entry, tree, changes): """show one row of history table""" msg = cgi.escape(entry.message) t = time.asctime(time.gmtime(entry.date)) age = util.dhm_time(time.time()-entry.date) t = t.replace(" ", "&nbsp;") yield """
6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 67, 492, 67, 2620, 12, 4811, 2890, 16, 1241, 16, 2151, 16, 3478, 4672, 3536, 4500, 1245, 1027, 434, 4927, 1014, 8395, 1234, 273, 276, 10052, 18, 6939, 12, 4099, 18, 2150, 13, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4927, 67, 492, 67, 2620, 12, 4811, 2890, 16, 1241, 16, 2151, 16, 3478, 4672, 3536, 4500, 1245, 1027, 434, 4927, 1014, 8395, 1234, 273, 276, 10052, 18, 6939, 12, 4099, 18, 2150, 13, 268...
if __name__=="__main__":
if __name__ == "__main__":
def wavelength_to_scalar_Q(obj,**kwargs): """ This function converts a primary axis of a SOM or SO from wavelength to scalar_Q. The wavelength axis for a SOM must be in units of Angstroms. The primary axis of a SO is assumed to be in units of Angstroms. A tuple of [wavelength, wavelength_err2] (assumed to be in units o...
7d83b6f5d5d15076b08b26f742c3cd9eb8f954cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/7d83b6f5d5d15076b08b26f742c3cd9eb8f954cf/hlr_wavelength_to_scalar_Q.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21410, 67, 869, 67, 8748, 67, 53, 12, 2603, 16, 636, 4333, 4672, 3536, 1220, 445, 7759, 279, 3354, 2654, 434, 279, 348, 1872, 578, 7460, 628, 21410, 358, 4981, 67, 53, 18, 1021, 21410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21410, 67, 869, 67, 8748, 67, 53, 12, 2603, 16, 636, 4333, 4672, 3536, 1220, 445, 7759, 279, 3354, 2654, 434, 279, 348, 1872, 578, 7460, 628, 21410, 358, 4981, 67, 53, 18, 1021, 21410,...
The quoting this session appears to need do not match those in
The quoting chars this session needs (%s) do not match the repository settings (%s) listed in
def compare_ctq_file(self, rbdir, suggested_ctq): """Compare ctq file with suggested result, return actual ctq""" ctq_rp = rbdir.append("chars_to_quote") if not ctq_rp.lstat(): if Globals.chars_to_quote is None: actual_ctq = suggested_ctq else: actual_ctq = Globals.chars_to_quote ctq_rp.write_string(actual_ctq) return ...
124c02b64fd4ec886431e54334367fe183946edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6202/124c02b64fd4ec886431e54334367fe183946edf/fs_abilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 299, 85, 67, 768, 12, 2890, 16, 7138, 1214, 16, 22168, 67, 299, 85, 4672, 3536, 8583, 5691, 85, 585, 598, 22168, 563, 16, 327, 3214, 5691, 85, 8395, 5691, 85, 67, 13832, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 67, 299, 85, 67, 768, 12, 2890, 16, 7138, 1214, 16, 22168, 67, 299, 85, 4672, 3536, 8583, 5691, 85, 585, 598, 22168, 563, 16, 327, 3214, 5691, 85, 8395, 5691, 85, 67, 13832, 27...
vcs.UploadBaseFiles(issue, rpc, patches, patchset, upload_options, files)
if vcs: vcs.UploadBaseFiles(issue, rpc, patches, patchset, upload_options, files)
def Upload(self, ui, repo, send_mail=False, gofmt=True, gofmt_just_warn=False): if ui.configbool("codereview", "force_gofmt", True) and gofmt: CheckGofmt(ui, repo, self.files, just_warn=gofmt_just_warn) os.chdir(repo.root) form_fields = [ ("content_upload", "1"), ("reviewers", JoinComma(self.reviewer)), ("cc", JoinComm...
82747423937fa5c65b7f33af496505a3f77bedc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6483/82747423937fa5c65b7f33af496505a3f77bedc8/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 5915, 16, 3538, 16, 1366, 67, 4408, 33, 8381, 16, 314, 792, 1010, 33, 5510, 16, 314, 792, 1010, 67, 3732, 67, 8935, 33, 8381, 4672, 309, 5915, 18, 1425, 6430, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9414, 12, 2890, 16, 5915, 16, 3538, 16, 1366, 67, 4408, 33, 8381, 16, 314, 792, 1010, 33, 5510, 16, 314, 792, 1010, 67, 3732, 67, 8935, 33, 8381, 4672, 309, 5915, 18, 1425, 6430, 293...
gap.eval("G := %s"%G._gap_()) gap.eval("N := %s"%N._gap_()) gap.eval(" Q := G/N;")
gap.eval("G := %s"%G._gap_().name()) gap.eval("N := %s"%N._gap_().name()) gap.eval("Q := G/N;")
def quotient_group(self, N): """ Returns the quotient group permgp/N, where N is a normal subgroup. Wraps the GAP operator "/".
e8e25d957126756edd922db45b4c206d3d7e775c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e8e25d957126756edd922db45b4c206d3d7e775c/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26708, 67, 1655, 12, 2890, 16, 423, 4672, 3536, 2860, 326, 26708, 1041, 4641, 6403, 19, 50, 16, 1625, 423, 353, 279, 2212, 720, 1655, 18, 678, 7506, 326, 611, 2203, 3726, 4016, 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, 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, 26708, 67, 1655, 12, 2890, 16, 423, 4672, 3536, 2860, 326, 26708, 1041, 4641, 6403, 19, 50, 16, 1625, 423, 353, 279, 2212, 720, 1655, 18, 678, 7506, 326, 611, 2203, 3726, 4016, 18, 2, ...
array([(1,), (4,)],
array([(1,), (4,)],
def drop_fields(base, drop_names, usemask=True, asrecarray=False): """ Return a new array with fields in `drop_names` dropped. Nested fields are supported. Parameters ---------- base : array Input array drop_names : string or sequence String or sequence of strings corresponding to the names of the fields to drop. use...
8d227b3f6d8e882676ce43a6651c20409b01bd96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8d227b3f6d8e882676ce43a6651c20409b01bd96/recfunctions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 2821, 12, 1969, 16, 3640, 67, 1973, 16, 999, 4455, 33, 5510, 16, 487, 3927, 1126, 33, 8381, 4672, 3536, 2000, 279, 394, 526, 598, 1466, 316, 1375, 7285, 67, 1973, 68, 14611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3640, 67, 2821, 12, 1969, 16, 3640, 67, 1973, 16, 999, 4455, 33, 5510, 16, 487, 3927, 1126, 33, 8381, 4672, 3536, 2000, 279, 394, 526, 598, 1466, 316, 1375, 7285, 67, 1973, 68, 14611, ...
if self._css is None:
if cssname is None:
def _write_css(self, directory): """ Write the CSS stylesheet for the documentation. If a stylesheet file or name (from L{epydoc.css}) is specified, then use that stylesheet; otherwise, if a stylesheet file already exists, use that stylesheet. Otherwise, use the default stylesheet.
dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 5212, 12, 2890, 16, 1867, 4672, 3536, 2598, 326, 6765, 13820, 364, 326, 7323, 18, 225, 971, 279, 13820, 585, 578, 508, 261, 2080, 511, 95, 881, 93, 2434, 18, 5212, 6792,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 5212, 12, 2890, 16, 1867, 4672, 3536, 2598, 326, 6765, 13820, 364, 326, 7323, 18, 225, 971, 279, 13820, 585, 578, 508, 261, 2080, 511, 95, 881, 93, 2434, 18, 5212, 6792,...
self.adv_keyseq_pos = 0
def new(self): self.adv_keyseq_pos = 0
983f5345513365d0609444b9a17b16db6e553947 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/983f5345513365d0609444b9a17b16db6e553947/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 2890, 4672, 365, 18, 28107, 67, 856, 5436, 67, 917, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 2890, 4672, 365, 18, 28107, 67, 856, 5436, 67, 917, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print 'Warning: number of controls %d is greater than number of self.affectedected individuals %d in subpopulation %d.' \
print 'Warning: number of controls %d is greater than number of affectedected individuals %d in subpopulation %d.' \
def prepareSample(self, input_pop): '''Find out indexes all affected and unaffected individuales. ''' BaseSampler.prepareSample(self, input_pop, isSequence(self.cases)) if self.pop is None: # this will produce self.pop and self.cases and self.controls self.prepareSample(input_pop) # if not isSequence(self.cases): # fin...
30b748ce630fe250610a749c82ee5a53aa4652d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/30b748ce630fe250610a749c82ee5a53aa4652d3/sampling.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 8504, 12, 2890, 16, 810, 67, 5120, 4672, 9163, 3125, 596, 5596, 777, 9844, 471, 640, 20119, 7327, 281, 18, 9163, 3360, 26243, 18, 9366, 8504, 12, 2890, 16, 810, 67, 5120, 16, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 8504, 12, 2890, 16, 810, 67, 5120, 4672, 9163, 3125, 596, 5596, 777, 9844, 471, 640, 20119, 7327, 281, 18, 9163, 3360, 26243, 18, 9366, 8504, 12, 2890, 16, 810, 67, 5120, 16, 353...
if DEBUG: print 'SKIP:', ch+dummy
def __init__(self, ifp):
d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 309, 84, 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, ...
[ 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, 1001, 2738, 972, 12, 2890, 16, 309, 84, 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, ...
',\n'.join(["'tap:aio:%s,xvd%d,w'" % (os.path.abspath(img), id+1) for (img, id) in zip(destimages, range(len(destimages)))]),
',\n'.join(["'tap:aio:%s,xvda%d,w'" % (os.path.abspath(img), id+1) for (img, id) in zip(destimages, range(len(destimages)))]),
def finalize(self): destimages = [] for filesystem in self.vm.filesystems: destfile = '%s/%s' % (self.vm.destdir, os.path.basename(filesystem.filename)) logging.info('Moving %s to %s' % (filesystem.filename, destfile)) self.vm.result_files.append(destfile) run_cmd('cp', '--sparse=always', filesystem.filename, destfile)...
909a7e705984b80c63f8954fd69ec8f3ea424a56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1496/909a7e705984b80c63f8954fd69ec8f3ea424a56/vm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 4672, 1570, 7369, 273, 5378, 364, 6496, 316, 365, 18, 3489, 18, 17846, 87, 30, 1570, 768, 273, 1995, 87, 5258, 87, 11, 738, 261, 2890, 18, 3489, 18, 10488, 1214, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12409, 12, 2890, 4672, 1570, 7369, 273, 5378, 364, 6496, 316, 365, 18, 3489, 18, 17846, 87, 30, 1570, 768, 273, 1995, 87, 5258, 87, 11, 738, 261, 2890, 18, 3489, 18, 10488, 1214, 16, ...
[{'tool': 'LINE', 'points': (240.0, 240.0, 320.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0,200.0), 'line_width': 8.0, 'stroke_color_rgba': 0x1010FFFFL}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0, 160.0), 'line_width': 8.0, 'stroke_color_rgba': 0...
[{'tool': 'LINE', 'points': (240.0, 240.0, 320.0, 240.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0,200.0), 'line_width': 8.0, 'stroke_color_rgba': C_BLUE|C_STROKE}, {'tool': 'LINE', 'points': (300.0, 180.0, 320.0, 160.0), 'line_width': 8.0, 'stroke_color_...
def init_item_list(self):
afe6d4cfa4a483507d506d63168d467aba7acf11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/afe6d4cfa4a483507d506d63168d467aba7acf11/redraw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1726, 67, 1098, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1726, 67, 1098, 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,...
self.__covery = (h - ch) // 2
if self.__cover is not None: w += self.__coverwidth + self.conf.border self.__covery = (h - ch) // 2
def render_setup(self, song): # size cover cover = self.__cover = song.find_cover() if cover is not None: try: self.__cover = gtk.gdk.pixbuf_new_from_file_at_size( cover.name, self.__coverwidth, self.__coverwidth) cw = self.__cover.get_width() ch = self.__cover.get_height() self.__coverx = self.conf.border + (self.__co...
0b9f64947b6c3e5100d69a12c2f2bf2221ee9c70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/0b9f64947b6c3e5100d69a12c2f2bf2221ee9c70/animosd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 8401, 12, 2890, 16, 17180, 4672, 468, 963, 5590, 5590, 273, 365, 16186, 3165, 273, 17180, 18, 4720, 67, 3165, 1435, 309, 5590, 353, 486, 599, 30, 775, 30, 365, 16186, 3165, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 8401, 12, 2890, 16, 17180, 4672, 468, 963, 5590, 5590, 273, 365, 16186, 3165, 273, 17180, 18, 4720, 67, 3165, 1435, 309, 5590, 353, 486, 599, 30, 775, 30, 365, 16186, 3165, 2...
EXAMPLE: sage: R = WeylCharacterRing(['B',3], prefix='R') sage: chi = R(R.lattice().fundamental_weights()[2]); chi R(1/2,1/2,1/2) sage: R(1/2,1/2,1/2) == chi True
EXAMPLES: sage: R = WeylCharacterRing(['B',3], prefix='R') sage: chi = R(R.lattice().fundamental_weights()[2]); chi R(1/2,1/2,1/2) sage: R(1/2,1/2,1/2) == chi True
def parent(self): return self._parent
585641b32ec9003014ab40e39d632a05e840e883 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/585641b32ec9003014ab40e39d632a05e840e883/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 982, 12, 2890, 4672, 327, 365, 6315, 2938, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 982, 12, 2890, 4672, 327, 365, 6315, 2938, 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...
if s != None: p.add_constraint( Sum( f_edge_used(s,u) for u in self.neighbors(s) ), max = 1, min = 1) if t != None: p.add_constraint( Sum( f_edge_used(t,u) for u in self.neighbors(t) ), max = 1, min = 1)
if s is not None: p.add_constraint( Sum(f_edge_used(s,u) for u in self.neighbors(s)), max=1, min=1) if t is not None: p.add_constraint( Sum(f_edge_used(t,u) for u in self.neighbors(t)), max=1, min=1)
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
"Return the public identifier for the current event." return None
"Return the public identifier for the current event." return None
def getPublicId(self):
f9059ebede7acc7d498d0703dd97adede37c5016 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f9059ebede7acc7d498d0703dd97adede37c5016/xmlreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17426, 548, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17426, 548, 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, -...
self.contents = None
self.contents = []
def __init__(self, terminator): asynchat.async_chat.__init__(self) self.contents = None self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.connect((HOST, PORT)) self.set_terminator(terminator) self.buffer = ""
9ca2d22ba40d5e7580cdc9ea44c9c91d4c1aff1a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9ca2d22ba40d5e7580cdc9ea44c9c91d4c1aff1a/test_asynchat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 24965, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 13, 365, 18, 3980, 273, 5378, 365, 18, 2640, 67, 7814, 12, 7814, 18, 6799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24965, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 13, 365, 18, 3980, 273, 5378, 365, 18, 2640, 67, 7814, 12, 7814, 18, 6799, ...
try: self.win.addch(ch) except curses.error: pass
self._insert_printable_char(ch)
def do_command(self, ch): "Process a single editing command." (y, x) = self.win.getyx() self.lastcmd = ch if ascii.isprint(ch): if y < self.maxy or x < self.maxx: # The try-catch ignores the error we trigger from some curses # versions by trying to write into the lowest-rightmost spot # in the window. try: self.win.add...
4a2762d146e2b19b981bd734827308c742d34c1a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/4a2762d146e2b19b981bd734827308c742d34c1a/textpad.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3076, 12, 2890, 16, 462, 4672, 315, 2227, 279, 2202, 15755, 1296, 1199, 261, 93, 16, 619, 13, 273, 365, 18, 8082, 18, 588, 93, 92, 1435, 365, 18, 2722, 4172, 273, 462, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 67, 3076, 12, 2890, 16, 462, 4672, 315, 2227, 279, 2202, 15755, 1296, 1199, 261, 93, 16, 619, 13, 273, 365, 18, 8082, 18, 588, 93, 92, 1435, 365, 18, 2722, 4172, 273, 462, 309, ...
sr.x = x+s
sr.x = x
def test(): D = Drawing(450, 650) d = 80 s = 60 for row in range(10): y = 530 - row*d if row == 0: for col in range(3): x = 20 + col*d g = Grid0() g.x = x g.y = y g.width = s g.height = s g.useRects = 0 g.useLines = 1 if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() ...
27b6bffb56ecaf66dee61eab61c6828d35de4558 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/27b6bffb56ecaf66dee61eab61c6828d35de4558/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 463, 273, 10184, 310, 12, 24, 3361, 16, 1666, 3361, 13, 225, 302, 273, 8958, 272, 273, 4752, 225, 364, 1027, 316, 1048, 12, 2163, 4672, 677, 273, 1381, 5082, 300, 1027, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 463, 273, 10184, 310, 12, 24, 3361, 16, 1666, 3361, 13, 225, 302, 273, 8958, 272, 273, 4752, 225, 364, 1027, 316, 1048, 12, 2163, 4672, 677, 273, 1381, 5082, 300, 1027, 14...
def __init__( self, width=None, alignment=None, leader=None ) : self.SetWidth ( width ) self.SetAlignment( alignment or self.LEFT ) self.SetLeader ( leader ) def SetWidth( self, value ) :
def __init__(self, width=None, alignment=None, leader=None): self.SetWidth(width) self.SetAlignment(alignment or self.LEFT) self.SetLeader(leader) def SetWidth(self, value):
def __init__( self, width=None, alignment=None, leader=None ) : self.SetWidth ( width ) self.SetAlignment( alignment or self.LEFT ) self.SetLeader ( leader )
13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 1835, 33, 7036, 16, 8710, 33, 7036, 16, 10302, 33, 7036, 262, 294, 365, 18, 694, 2384, 565, 261, 1835, 377, 262, 365, 18, 694, 11535, 12, 8710, 578, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 365, 16, 1835, 33, 7036, 16, 8710, 33, 7036, 16, 10302, 33, 7036, 262, 294, 365, 18, 694, 2384, 565, 261, 1835, 377, 262, 365, 18, 694, 11535, 12, 8710, 578, 365...
target = tempfile.mkstemp(suffix = ".sqlite", dir = tmp_path)[1]
fd, target = tempfile.mkstemp(suffix = ".sqlite", dir = tmp_path) os.close(fd)
def truncate(filename, verbose = False): if verbose: print >>sys.stderr, "%s exists, truncating ..." % filename try: fd = os.open(filename, os.O_WRONLY | os.O_TRUNC) except: raise e, "cannot truncate %s" % filename os.close(fd) if verbose: print >>sys.stderr, "done."
729c1dd08bde85e8626b377a31ff418b52eea64a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/729c1dd08bde85e8626b377a31ff418b52eea64a/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10310, 12, 3459, 16, 3988, 273, 1083, 4672, 309, 3988, 30, 1172, 1671, 9499, 18, 11241, 16, 2213, 87, 1704, 16, 6956, 1776, 18483, 738, 1544, 775, 30, 5194, 273, 1140, 18, 3190, 12, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10310, 12, 3459, 16, 3988, 273, 1083, 4672, 309, 3988, 30, 1172, 1671, 9499, 18, 11241, 16, 2213, 87, 1704, 16, 6956, 1776, 18483, 738, 1544, 775, 30, 5194, 273, 1140, 18, 3190, 12, 34...
'step': Signal(changed_cb = _step_signal_changed),
'step': Signal(),
def _step_signal_changed(signal, flag): if flag == Signal.SIGNAL_CONNECTED and signal.count() == 1: notifier.dispatcher_add(signals["step"].emit) elif flag == Signal.SIGNAL_DISCONNECTED and signal.count() == 0: notifier.dispatcher_remove(signals["step"].emit)
ea472369d7a6ddd38ad7b14fec68d672e2108951 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11722/ea472369d7a6ddd38ad7b14fec68d672e2108951/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4119, 67, 10420, 67, 6703, 12, 10420, 16, 2982, 4672, 309, 2982, 422, 12032, 18, 11260, 1013, 67, 29011, 471, 4277, 18, 1883, 1435, 422, 404, 30, 19057, 18, 18495, 67, 1289, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4119, 67, 10420, 67, 6703, 12, 10420, 16, 2982, 4672, 309, 2982, 422, 12032, 18, 11260, 1013, 67, 29011, 471, 4277, 18, 1883, 1435, 422, 404, 30, 19057, 18, 18495, 67, 1289, 12, 2...
return self._b[n]
return self._b[n-self.offset]
def _eval(self, n): if len(self._b) < n: self._precompute(n - len(self._b) + 1) return self._b[n]
4e126d13403b67192b1f9a1f3f86e89eae8a6861 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4e126d13403b67192b1f9a1f3f86e89eae8a6861/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 309, 562, 12, 2890, 6315, 70, 13, 411, 290, 30, 365, 6315, 1484, 9200, 12, 82, 300, 562, 12, 2890, 6315, 70, 13, 397, 404, 13, 327, 365, 6315, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 309, 562, 12, 2890, 6315, 70, 13, 411, 290, 30, 365, 6315, 1484, 9200, 12, 82, 300, 562, 12, 2890, 6315, 70, 13, 397, 404, 13, 327, 365, 6315, 7...
if PLONE30: home.reindexObjectSecurity()
home.reindexObjectSecurity()
def _createHomeFolder(portal, member_id, take_ownership=1): '''Creates a memberarea if it does not already exist.''' pm = portal.portal_membership members = pm.getMembersFolder() if not hasattr(aq_base(members), member_id): # Create home folder _createObjectByType('Folder', members, id=member_id) if not PLONE21: # Cre...
b2f4b0d2369f737a0ae5007c9d8cbbfa29076dab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11947/b2f4b0d2369f737a0ae5007c9d8cbbfa29076dab/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 8684, 3899, 12, 24386, 16, 3140, 67, 350, 16, 4862, 67, 995, 12565, 33, 21, 4672, 9163, 2729, 279, 3140, 5036, 309, 518, 1552, 486, 1818, 1005, 1093, 6309, 7430, 273, 11899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2640, 8684, 3899, 12, 24386, 16, 3140, 67, 350, 16, 4862, 67, 995, 12565, 33, 21, 4672, 9163, 2729, 279, 3140, 5036, 309, 518, 1552, 486, 1818, 1005, 1093, 6309, 7430, 273, 11899, ...
if dlg.exec_loop():
if dlg.exec_():
def setColors(self): dlg = self.createColorDialog() if dlg.exec_loop(): self.colorSettings = dlg.getColorSchemas() self.graph.contPalette = dlg.getContinuousPalette("contPalette") self.graph.discPalette = dlg.getDiscretePalette() self.graph.setCanvasBackground(dlg.getColor("Canvas")) self.graph.setGridPen(QPen(dlg.getC...
818ca9c8fbe0920c8ab47d73dd69ea5577008e9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/818ca9c8fbe0920c8ab47d73dd69ea5577008e9c/OWCorrAnalysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12570, 12, 2890, 4672, 25840, 273, 365, 18, 2640, 2957, 6353, 1435, 309, 25840, 18, 4177, 67, 13332, 365, 18, 3266, 2628, 273, 25840, 18, 588, 2957, 16749, 1435, 365, 18, 4660, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12570, 12, 2890, 4672, 25840, 273, 365, 18, 2640, 2957, 6353, 1435, 309, 25840, 18, 4177, 67, 13332, 365, 18, 3266, 2628, 273, 25840, 18, 588, 2957, 16749, 1435, 365, 18, 4660, 18, ...
isofstype = self.__isofstype,
isofstype = self._isofstype,
def __get_image_stanzas(self, isodir): versions = [] kernels = self._get_kernel_versions() for kernel in kernels: for version in kernels[kernel]: versions.append(version)
4a670c764a1a949c866539b8a6a60e2729747acb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9342/4a670c764a1a949c866539b8a6a60e2729747acb/live.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 2730, 67, 541, 94, 345, 12, 2890, 16, 353, 369, 481, 4672, 5244, 273, 5378, 5536, 87, 273, 365, 6315, 588, 67, 8111, 67, 10169, 1435, 364, 5536, 316, 5536, 87, 30, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 2730, 67, 541, 94, 345, 12, 2890, 16, 353, 369, 481, 4672, 5244, 273, 5378, 5536, 87, 273, 365, 6315, 588, 67, 8111, 67, 10169, 1435, 364, 5536, 316, 5536, 87, 30, 364...
res = xcap_client.put('pres-rules', prules.toxml(pretty_print=True), etag=prules_etag)
res = xcap_client.put('pres-rules', prules.toxml(pretty_print=True), etag=prules_etag, headers={'Content-Type': 'application/auth-policy+xml'})
def remove_watcher(watcher): global prules, prules_etag, allow_rule_identities, block_rule_identities, polite_block_rule_identities for i in xrange(3): if prules is None: get_prules() if prules is not None: if allow_rule_identities is not None and str(watcher) in allow_rule_identities: allow_rule_identities.remove(str(...
ceb111f682d1a9b03ff397fe244ca517760afbb2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/ceb111f682d1a9b03ff397fe244ca517760afbb2/xcap_pres_rules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 23894, 12, 23894, 4672, 2552, 846, 1513, 16, 846, 1513, 67, 20788, 16, 1699, 67, 5345, 67, 6392, 1961, 16, 1203, 67, 5345, 67, 6392, 1961, 16, 2952, 1137, 67, 2629, 67, 5345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 67, 23894, 12, 23894, 4672, 2552, 846, 1513, 16, 846, 1513, 67, 20788, 16, 1699, 67, 5345, 67, 6392, 1961, 16, 1203, 67, 5345, 67, 6392, 1961, 16, 2952, 1137, 67, 2629, 67, 5345,...
self.setMaxlag(120)
if self.maxlag == 5: self.setMaxlag(120)
def login(self, username, password = False, remember = True): """ Login to the site remember - currently unused """ if not password: from getpass import getpass password = getpass() data = { "action" : "login", "lgname" : username, "lgpassword" : password } self.setMaxlag(120) req = api.APIRequest(self, data) info = r...
c00ba346d88eafaf896de9d306311f5128cac30a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8398/c00ba346d88eafaf896de9d306311f5128cac30a/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2718, 16, 2201, 273, 1083, 16, 11586, 273, 1053, 4672, 3536, 11744, 358, 326, 2834, 11586, 300, 4551, 10197, 3536, 225, 309, 486, 2201, 30, 628, 31889, 1930, 31889, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2718, 16, 2201, 273, 1083, 16, 11586, 273, 1053, 4672, 3536, 11744, 358, 326, 2834, 11586, 300, 4551, 10197, 3536, 225, 309, 486, 2201, 30, 628, 31889, 1930, 31889, 2...
self.assertEqual(rc, 1)
self.assertEqual(rc, 1, "%r is not in sys.path (sys.exit returned %r)" % (usersite, rc))
def test_s_option(self): usersite = site.USER_SITE self.assert_(usersite in sys.path)
e74e756bf962a6ddcf51b23d0de9215c0fa11ede /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/e74e756bf962a6ddcf51b23d0de9215c0fa11ede/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 67, 3482, 12, 2890, 4672, 3677, 1137, 273, 2834, 18, 4714, 67, 20609, 365, 18, 11231, 67, 12, 5577, 1137, 316, 2589, 18, 803, 13, 2, 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, 0, 0, 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, 87, 67, 3482, 12, 2890, 4672, 3677, 1137, 273, 2834, 18, 4714, 67, 20609, 365, 18, 11231, 67, 12, 5577, 1137, 316, 2589, 18, 803, 13, 2, -100, -100, -100, -100, -100, -100, ...
basis = matrix( M.columns() + M.integer_kernel().basis() ).transpose() self._dual_embedding_scale = basis.det()
basis = M.columns() + M.integer_kernel().basis() basis = matrix(basis).transpose() self._dual_embedding_scale = abs(basis.det())
def _compute_dim(self, compute_vertices): r""" Compute the dimension of this polytope and its vertices, if necessary. If ``compute_vertices`` is ``True``, then ``self._vertices`` should contain points whose convex hull will be computed and placed back into ``self._vertices``. If the dimension of this polytope is not ...
d3f0e4ca34fafb6808137a2658880304a3db8f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d3f0e4ca34fafb6808137a2658880304a3db8f29/lattice_polytope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 3509, 12, 2890, 16, 3671, 67, 17476, 4672, 436, 8395, 8155, 326, 4968, 434, 333, 7573, 869, 347, 471, 2097, 6928, 16, 309, 4573, 18, 225, 971, 12176, 9200, 67, 17476, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9200, 67, 3509, 12, 2890, 16, 3671, 67, 17476, 4672, 436, 8395, 8155, 326, 4968, 434, 333, 7573, 869, 347, 471, 2097, 6928, 16, 309, 4573, 18, 225, 971, 12176, 9200, 67, 17476, 10...
errCoeff = sqrt(sigmaSquare * inv(dot(X.T,X)).diagonal())
self.errCoeff = sqrt(self.sigmaSquare * inv(dot(X.T,X)).diagonal())
def __call__(self, data, weight=None): # missing values handling (impute missing) imputer = orange.ImputerConstructor_model() imputer.learnerContinuous = orange.MajorityLearner() imputer.learnerDiscrete = orange.BayesLearner() imputer = imputer(data) data = imputer(data)
2f0d6c2e9c037aae88c832940eb40e18d9619a80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/2f0d6c2e9c037aae88c832940eb40e18d9619a80/orngRegression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 3119, 33, 7036, 4672, 468, 3315, 924, 5057, 261, 381, 2507, 3315, 13, 709, 458, 264, 273, 578, 726, 18, 1170, 458, 264, 6293, 67, 2284, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 3119, 33, 7036, 4672, 468, 3315, 924, 5057, 261, 381, 2507, 3315, 13, 709, 458, 264, 273, 578, 726, 18, 1170, 458, 264, 6293, 67, 2284, 1435, ...
while 1: res = mime_head.search(line)
pos = 0 while 1: res = mime_head.search(line, pos)
def mime_decode_header(line): '''Decode a header line to 8bit.''' newline = '' while 1: res = mime_head.search(line) if res is None: break match = res.group(1) # convert underscores to spaces (before =XX conversion!) match = string.join(string.split(match, '_'), ' ') newline = newline + line[:res.start(0)] + mime_decod...
613418aa09107c6b751e0a1d7e299fb985b85c91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/613418aa09107c6b751e0a1d7e299fb985b85c91/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4892, 67, 3922, 67, 3374, 12, 1369, 4672, 9163, 6615, 279, 1446, 980, 358, 1725, 3682, 1093, 6309, 9472, 273, 875, 949, 273, 374, 1323, 404, 30, 400, 273, 4892, 67, 1978, 18, 3072, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4892, 67, 3922, 67, 3374, 12, 1369, 4672, 9163, 6615, 279, 1446, 980, 358, 1725, 3682, 1093, 6309, 9472, 273, 875, 949, 273, 374, 1323, 404, 30, 400, 273, 4892, 67, 1978, 18, 3072, 12,...
def test_get_marker(self): cm = CacheManager(self.workdir) marker1 = cm._getMarker('some_hash_digest', None) marker2 = cm._getMarker('some_hash_digest', 'bucket_marker')
def test_compose_marker(self): cm = CacheManager(self.workdir) marker1 = cm._composeMarker('some_hash_digest', None) marker2 = cm._composeMarker('some_hash_digest', 'bucket_marker')
def test_get_marker(self): cm = CacheManager(self.workdir) marker1 = cm._getMarker('some_hash_digest', None) marker2 = cm._getMarker('some_hash_digest', 'bucket_marker') self.assertEqual(marker1, 'some_hash_digest') self.assertEqual(marker2, 'some_hash_digest_bucket_marker')
96d1097d4d040d95be08cdb7c8fd96f6383ec2db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/96d1097d4d040d95be08cdb7c8fd96f6383ec2db/test_cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 23658, 67, 11145, 12, 2890, 4672, 5003, 273, 4379, 1318, 12, 2890, 18, 1252, 1214, 13, 5373, 21, 273, 5003, 6315, 23658, 7078, 2668, 19068, 67, 2816, 67, 10171, 2187, 599, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 23658, 67, 11145, 12, 2890, 4672, 5003, 273, 4379, 1318, 12, 2890, 18, 1252, 1214, 13, 5373, 21, 273, 5003, 6315, 23658, 7078, 2668, 19068, 67, 2816, 67, 10171, 2187, 599, 13, ...
sdd = IECore.ObjectReader( "test/SplineData.cob" ).read()
sdd = IECore.ObjectReader( "test/IECore/SplineData.cob" ).read()
def testColorIO( self ) : s = IECore.SplinefColor3f( IECore.CubicBasisf.linear() ) s[0] = IECore.Color3f( 1 ) s[1] = IECore.Color3f( 2 ) s[2] = IECore.Color3f( 3 ) s[3] = IECore.Color3f( 4 ) sd = IECore.SplinefColor3fData( s ) IECore.ObjectWriter( sd, "test/SplineData.cob" ).write() sdd = IECore.ObjectReader( "test...
76c56ef1823ae4744f95d9cbc7612ca9879f8669 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/76c56ef1823ae4744f95d9cbc7612ca9879f8669/SplineDataTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2957, 4294, 12, 365, 262, 294, 225, 272, 273, 10897, 4670, 18, 16881, 558, 74, 2957, 23, 74, 12, 10897, 4670, 18, 39, 17616, 11494, 7396, 18, 12379, 1435, 262, 272, 63, 20, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2957, 4294, 12, 365, 262, 294, 225, 272, 273, 10897, 4670, 18, 16881, 558, 74, 2957, 23, 74, 12, 10897, 4670, 18, 39, 17616, 11494, 7396, 18, 12379, 1435, 262, 272, 63, 20, 65, ...
''' Render a "plain" representation of the property '''
""" Render a "plain" representation of the property """
def plain(self): ''' Render a "plain" representation of the property ''' if not self.is_view_ok(): return self._('[hidden]')
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7351, 12, 2890, 4672, 3536, 6987, 279, 315, 7446, 6, 4335, 434, 326, 1272, 3536, 309, 486, 365, 18, 291, 67, 1945, 67, 601, 13332, 327, 365, 6315, 2668, 63, 6345, 3864, 13, 2, 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, 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, 7351, 12, 2890, 4672, 3536, 6987, 279, 315, 7446, 6, 4335, 434, 326, 1272, 3536, 309, 486, 365, 18, 291, 67, 1945, 67, 601, 13332, 327, 365, 6315, 2668, 63, 6345, 3864, 13, 2, -100, ...
o = PyString_FromStringAndSize((char *)&qd.arrow, sizeof(qd.arrow)); if (o == NULL || PyDict_SetItemString(d, "arrow", o) != 0) Py_FatalError("can't initialize Qd.arrow"); o = PyString_FromStringAndSize((char *)&qd.black, sizeof(qd.black)); if (o == NULL || PyDict_SetItemString(d, "black", o) != 0) Py_FatalError("can'...
o = QDGA_New(); if (o == NULL || PyDict_SetItemString(d, "qd", o) != 0) Py_FatalError("can't initialize Qd.qd");
def getargsCheck(self, name): pass
63469bab184844c7faa3329cd3882d1b8fa1aa93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/63469bab184844c7faa3329cd3882d1b8fa1aa93/qdsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 1564, 12, 2890, 16, 508, 4672, 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...
[ 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, 336, 1968, 1564, 12, 2890, 16, 508, 4672, 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,...
+ etree.tostring(err, method='text', pretty_print=True, encoding=unicode))
+ text)
def check_for_errors(root): err = root.find('.//'+AWS('Error')) if err is not None: raise Exception('Failed to get metadata with error: '\ + etree.tostring(err, method='text', pretty_print=True, encoding=unicode))
d866fcc48f076c3f9c639b68d114015507059e16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/d866fcc48f076c3f9c639b68d114015507059e16/amazon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1884, 67, 4324, 12, 3085, 4672, 393, 273, 1365, 18, 4720, 2668, 18, 759, 11, 15, 10800, 2668, 668, 26112, 309, 393, 353, 486, 599, 30, 1002, 1185, 2668, 2925, 358, 336, 1982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1884, 67, 4324, 12, 3085, 4672, 393, 273, 1365, 18, 4720, 2668, 18, 759, 11, 15, 10800, 2668, 668, 26112, 309, 393, 353, 486, 599, 30, 1002, 1185, 2668, 2925, 358, 336, 1982, ...
setup_calendar = twc.JSFuncCall(function="Calendar.setup")
def strftime_before1900(dt, fmt): """ A strftime implementation that supports proleptic Gregorian dates before 1900. @see: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/306860 """ if _illegal_s.search(fmt): raise TypeError("This strftime implementation does not handle %s") if dt.year > 1900: return dt.strfti...
a8348e688b0f21414e35dab448e482a2105cb26f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11476/a8348e688b0f21414e35dab448e482a2105cb26f/calendars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10405, 67, 5771, 3657, 713, 12, 7510, 16, 1325, 4672, 3536, 432, 10405, 4471, 716, 6146, 450, 298, 21507, 21913, 7811, 1865, 5342, 713, 18, 225, 632, 5946, 30, 1062, 2207, 345, 7449, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10405, 67, 5771, 3657, 713, 12, 7510, 16, 1325, 4672, 3536, 432, 10405, 4471, 716, 6146, 450, 298, 21507, 21913, 7811, 1865, 5342, 713, 18, 225, 632, 5946, 30, 1062, 2207, 345, 7449, 18,...
word_buf += int2bin(imm, 5)
regT = immToInt(regT) word_buf += int2bin(regT, 5)
def parse_alu(instruc = "", word_buf = ""): if instruc == "" or word_buf == "": print "ERROR: someone accidentally the code in parse_alu" return "-1" instruc = sanitize(instruc) ins = instruc[0] regD = instruc[1] regS = instruc[2] regT = instruc[3] regD = reg2bin(regD) regS = reg2bin(regS) word_buf += regD word_buf +...
3544f255124af0db34ea242b135b6b6390308500 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/3544f255124af0db34ea242b135b6b6390308500/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 700, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 700, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230, ...
... print("caught ValueError (%s)" % (v), end=' ')
... print("caught ValueError (%s)" % (v))
>>> def f():
0665f7d932e15bc75f6d745c6e03e0762451c536 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0665f7d932e15bc75f6d745c6e03e0762451c536/test_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 13332, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4080, 1652, 284, 13332, 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, ...
limm t1, imm srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
def macroop BT_P_R { rdip t7 limm t1, imm srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" ld t1, seg, [1, t2, t7] sext t0, t1, reg, flags=(CF,)
d500993113cb44e4193c5579eb62b3c18ad05788 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/d500993113cb44e4193c5579eb62b3c18ad05788/bit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 56, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 272, 354, 77, 268, 22, 16, 960, 16, 7751, 3074, 18, 892, 1225, 422, 1725, 13, 692, 890, 294, 14015, 3074, 18, 892, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11522, 556, 605, 56, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 272, 354, 77, 268, 22, 16, 960, 16, 7751, 3074, 18, 892, 1225, 422, 1725, 13, 692, 890, 294, 14015, 3074, 18, 892, 122...
sage: is_same_shape(abelian_2group(2), back_circulant(4))
sage: is_same_shape(elementary_abelian_2group(2), back_circulant(4))
def is_same_shape(T1, T2): """ Two partial latin squares T1, T2 have the same shape if T1[r, c] >= 0 if and only if T2[r, c] >= 0. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: is_same_shape(abelian_2group(2), back_circulant(4)) True sage: is_same_shape(LatinSquare(5), LatinSquare(5)) True sage: is_...
940ac7fc9c99ff948cd46103f8ba7e338a7354d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/940ac7fc9c99ff948cd46103f8ba7e338a7354d6/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 14307, 67, 4867, 12, 56, 21, 16, 399, 22, 4672, 3536, 16896, 4702, 30486, 31206, 399, 21, 16, 399, 22, 1240, 326, 1967, 2179, 309, 399, 21, 63, 86, 16, 276, 65, 1545, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 14307, 67, 4867, 12, 56, 21, 16, 399, 22, 4672, 3536, 16896, 4702, 30486, 31206, 399, 21, 16, 399, 22, 1240, 326, 1967, 2179, 309, 399, 21, 63, 86, 16, 276, 65, 1545, 374, ...
for i, u in ((i, v1.slerp(v2, i/float(steps))) for i in xrange(steps+1)):
for i, u in ((i, v1.slerp(v2, i/float(steps))) for i in range(steps+1)):
def test_slerp(self): self.assertRaises(ZeroDivisionError, lambda : self.zeroVec.slerp(self.v1, .5)) self.assertRaises(ZeroDivisionError, lambda : self.v1.slerp(self.zeroVec, .5)) self.assertRaises(ZeroDivisionError, lambda : self.zeroVec.slerp(self.zeroVec, .5)) v1 = Vector2(1, 0) v2 = Vector2(0, 1) steps = 10 angle_s...
a7a4ac4e8ee68f05b8641d542bf4df67c0e15d4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1298/a7a4ac4e8ee68f05b8641d542bf4df67c0e15d4d/math_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 749, 84, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 7170, 28223, 668, 16, 3195, 294, 365, 18, 7124, 12991, 18, 87, 749, 84, 12, 2890, 18, 90, 21, 16, 263, 25, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 749, 84, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 7170, 28223, 668, 16, 3195, 294, 365, 18, 7124, 12991, 18, 87, 749, 84, 12, 2890, 18, 90, 21, 16, 263, 25, 3...
print sys.version
def serve_wiki(port=8081, bind_to='localhost', out_func=default_out_func): print sys.version out_func("Reading parameters from fniki.cfg...") piki.set_data_dir_from_cfg() out_func("Running wiki from:") out_func(piki.text_dir + " (wiki text)") www_dir = os.path.join(piki.data_dir, 'www') out_func(www_dir + " (.css, .pn...
430e3d469678f0bdba2c9953054a7817176fd3ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4007/430e3d469678f0bdba2c9953054a7817176fd3ac/servepiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 13044, 12, 655, 33, 3672, 11861, 16, 1993, 67, 869, 2218, 13014, 2187, 596, 67, 644, 33, 1886, 67, 659, 67, 644, 4672, 225, 596, 67, 644, 2932, 15714, 1472, 628, 2295, 6169,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12175, 67, 13044, 12, 655, 33, 3672, 11861, 16, 1993, 67, 869, 2218, 13014, 2187, 596, 67, 644, 33, 1886, 67, 659, 67, 644, 4672, 225, 596, 67, 644, 2932, 15714, 1472, 628, 2295, 6169,...