rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
authors.add(entry.author) if author in ("ALL", "", entry.author):
m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL", "", m.group(2)):
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry)
731e40ea6b3f434d9d171d733ed24c390e59be4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/731e40ea6b3f434d9d171d733ed24c390e59be4d/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 2869, 33, 7036, 4672, 268, 273, 365, 18, 3510, 74, 4610, 18, 17204, 63, 3413, 65, 26122, 273, 666, 1435, 14494, 273, 444, 3816, 6, 4685, 6, 5717, 3803, 273, 268, 18, 588, 67, 7500, 1435, 364, 1241, 316, 3803, 18, 1330, 12, 3595, 33, 31746, 67, 44, 11581, 673, 4672, 312, 273, 283, 67, 4161, 18, 1916, 12, 4099, 18, 4161, 13, 14494, 63, 81, 18, 1655, 12, 22, 25887, 273, 312, 18, 1655, 12, 21, 13, 309, 2869, 316, 7566, 4685, 3113, 23453, 312, 18, 1655, 12, 22, 3719, 30, 26122, 18, 6923, 12, 4099, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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3510, 74, 4610, 18, 17204, 63, 3413, 65, 26122, 273, 666, 1435, 14494, 273, 444, 3816, 6, 4685, 6, 5717, 3803, 273, 268, 18, 588, 67, 7500, 1435, 364, 1241, 316, 3803, 18, 1330, 12, 3595, 33, 31746, 67, 44, 11581, 673, 4672, 312, 273, 283, 67, 4161, 18, 1916, 12, 4099, 18, 4161, 13, 14494, 63, 81, 18, 1655, 12, 22, 25887, 273, 312, 18, 1655, 12, 21, 13, 309, 2869, 316, 7566, 4685, 3113, 23453, 312, 18, 1655, 12, 22, 3719, 30, 26122, 18, 6923, 12, 4099, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except KeyError: comment = ''
def newimages(self, number = 100, lestart = None, leend = None, leuser = None, letitle = None, repeat = False): """ Yield ImagePages from APIs, call: action=query&list=logevents&letype=upload&lelimit=500
54fa5c4791af2d684720c89e9fd87b887b78d41c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/54fa5c4791af2d684720c89e9fd87b887b78d41c/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 7369, 12, 2890, 16, 1300, 273, 2130, 16, 328, 27893, 273, 599, 16, 884, 409, 273, 599, 16, 884, 1355, 273, 599, 16, 2231, 1280, 273, 599, 16, 7666, 273, 1083, 4672, 3536, 31666, 3421, 5716, 628, 19947, 16, 745, 30, 1301, 33, 2271, 10, 1098, 33, 383, 908, 616, 87, 10, 1810, 388, 33, 6327, 10, 80, 19741, 33, 12483, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 7369, 12, 2890, 16, 1300, 273, 2130, 16, 328, 27893, 273, 599, 16, 884, 409, 273, 599, 16, 884, 1355, 273, 599, 16, 2231, 1280, 273, 599, 16, 7666, 273, 1083, 4672, 3536, 31666, 3421, 5716, 628, 19947, 16, 745, 30, 1301, 33, 2271, 10, 1098, 33, 383, 908, 616, 87, 10, 1810, 388, 33, 6327, 10, 80, 19741, 33, 12483, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sql = "INSERT INTO `%s` (`sender`, `recipient`, `client_address`, `date`, `state`) VALUES (%%s, %%s, %%s, NOW(), 0)" % table
sql = "INSERT INTO `%s` (`sender`, `recipient`, `client_address`, `date`, `state`) VALUES (%%s, %%s, %%s, NOW(), -1)" % table
def check(self, data, *args, **keywords): sender = data.get('sender', '').lower() recipient = data.get('recipient', '').lower() client_name = data.get('client_name', '').lower() client_address = data.get('client_address')
2b39916674dfcb14ea61bf240a83d61daf31ba90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2b39916674dfcb14ea61bf240a83d61daf31ba90/Greylist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 501, 16, 380, 1968, 16, 2826, 11771, 4672, 5793, 273, 501, 18, 588, 2668, 15330, 2187, 875, 2934, 8167, 1435, 8027, 273, 501, 18, 588, 2668, 20367, 2187, 875, 2934, 8167, 1435, 1004, 67, 529, 273, 501, 18, 588, 2668, 2625, 67, 529, 2187, 875, 2934, 8167, 1435, 1004, 67, 2867, 273, 501, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 501, 16, 380, 1968, 16, 2826, 11771, 4672, 5793, 273, 501, 18, 588, 2668, 15330, 2187, 875, 2934, 8167, 1435, 8027, 273, 501, 18, 588, 2668, 20367, 2187, 875, 2934, 8167, 1435, 1004, 67, 529, 273, 501, 18, 588, 2668, 2625, 67, 529, 2187, 875, 2934, 8167, 1435, 1004, 67, 2867, 273, 501, 18, 588, 2668, 2625, 67, 2867, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if win32: self.addToShared(u"%s" % newname) else: self.addToShared(newname) self.eventprocessor.sendNumSharedFoldersFiles()
if newname: if win32: self.addToShared(u"%s" % newname) else: self.addToShared(newname) self.eventprocessor.sendNumSharedFoldersFiles()
def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is None: i.lastbytes = i.currentbytes if i.starttime is None: i.starttime = curtime if i.lasttime is None: i.lasttime = curtime - 1 #i.status = "%s" %(str(i.currentbytes)) i.status = "Transferring" oldelapsed = i.timeelapsed i.timeelapsed = curtime - i.starttime if curtime > i.starttime and i.currentbytes > i.offset: i.speed = (i.currentbytes - i.lastbytes)/(curtime - i.lasttime)/1024 if i.speed <= 0.0: i.timeleft = "∞" else: i.timeleft = self.getTime((i.size - i.currentbytes)/i.speed/1024) i.lastbytes = i.currentbytes i.lasttime = curtime if i.size > i.currentbytes: if oldelapsed == i.timeelapsed: needupdate = 0 #i.status = str(i.currentbytes) i.status = "Transferring" else: msg.file.close() basename = self.CleanPath(self.encode(string.split(i.filename,'\\')[-1], i.user)) downloaddir = config["transfers"]["downloaddir"] if i.path and i.path[0] == '/': folder = self.CleanPath(i.path) else: folder = os.path.join(downloaddir, self.encode(i.path)) if not os.access(folder, os.F_OK): os.makedirs(folder) newname = self.getRenamed(os.path.join(folder, basename)) try: if win32: os.rename(msg.file.name, u"%s" % newname) else: os.rename(msg.file.name, newname) except OSError: try: f1 = open(msg.file.name, "rb") d = f1.read() if win32: f1 = open(u"%s" % newname, "wb") else: f1 = open(newname, "wb") f1.write(d) f1.close() os.remove(msg.file.name) except OSError: self.eventprocessor.logMessage(_("Couldn't move '%(tempfile)s' to '%(file)s'") % {'tempfile':self.decode(msg.file.name), 'file':self.decode(newname)}) i.status = "Finished" self.eventprocessor.logMessage(_("Download finished: %(file)s") % {'file':self.decode(newname)}) self.eventprocessor.logTransfer(_("Download finished: user %(user)s, file %(file)s") % {'user':i.user, 'file':self.decode(i.filename)}) self.queue.put(slskmessages.ConnClose(msg.conn)) #if i.speed is not None: #self.queue.put(slskmessages.SendSpeed(i.user, int(i.speed*1024))) #Removed due to misuse. Replaced by SendUploadSpeed i.conn = None if win32: self.addToShared(u"%s" % newname) else: self.addToShared(newname) self.eventprocessor.sendNumSharedFoldersFiles() self.SaveDownloads() self.downloadspanel.update(i) if config["transfers"]["shownotification"]: self.eventprocessor.frame.NewNotification(_("%(file)s downloaded from %(user)s") % {'user':i.user, "file":newname.rsplit(os.sep, 1)[1]}, title=_("Nicotine+ :: file downloaded"))
e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8/transfers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813, 87, 30, 309, 277, 18, 4646, 480, 1234, 18, 4646, 30, 1324, 775, 30, 309, 277, 18, 13866, 12542, 353, 486, 599, 30, 277, 18, 13866, 12542, 18, 10996, 1435, 662, 957, 273, 813, 18, 957, 1435, 277, 18, 2972, 3890, 273, 1234, 18, 768, 18, 88, 1165, 1435, 309, 277, 18, 2722, 3890, 353, 599, 30, 277, 18, 2722, 3890, 273, 277, 18, 2972, 3890, 309, 277, 18, 1937, 957, 353, 599, 30, 277, 18, 1937, 957, 273, 662, 957, 309, 277, 18, 2722, 957, 353, 599, 30, 277, 18, 2722, 957, 273, 662, 957, 300, 404, 468, 77, 18, 2327, 273, 2213, 87, 6, 8975, 701, 12, 77, 18, 2972, 3890, 3719, 277, 18, 2327, 273, 315, 1429, 74, 20245, 6, 1592, 26201, 273, 277, 18, 957, 26201, 277, 18, 957, 26201, 273, 662, 957, 300, 277, 18, 1937, 957, 309, 662, 957, 405, 277, 18, 1937, 957, 471, 277, 18, 2972, 3890, 405, 277, 18, 3348, 30, 277, 18, 13871, 273, 261, 77, 18, 2972, 3890, 300, 277, 18, 2722, 3890, 13176, 12, 1397, 957, 300, 277, 18, 2722, 957, 13176, 2163, 3247, 309, 277, 18, 13871, 1648, 374, 18, 20, 30, 277, 18, 8584, 6516, 1222, 273, 315, 163, 235, 257, 6, 469, 30, 277, 18, 8584, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813, 87, 30, 309, 277, 18, 4646, 480, 1234, 18, 4646, 30, 1324, 775, 30, 309, 277, 18, 13866, 12542, 353, 486, 599, 30, 277, 18, 13866, 12542, 18, 10996, 1435, 662, 957, 273, 813, 18, 957, 1435, 277, 18, 2972, 3890, 273, 1234, 18, 768, 18, 88, 1165, 1435, 309, 277, 18, 2722, 3890, 353, 599, 30, 277, 18, 2722, 3890, 273, 277, 18, 2972, 3890, 309, 277, 18, 1937, 957, 353, 599, 30, 277, 18, 1937, 957, 273, 662, 957, 309, 277, 2 ]
def connect(self, required_args, ConnectorClass, *rest_args, **rest_kwargs): gtransport, factory = self._make_transport_and_factory() args = required_args + (factory, ) + rest_args c = ConnectorClass(*args, **rest_kwargs) c.connect() factory.event.wait() return gtransport
def connect(self, required_args, ConnectorClass, *rest_args, **rest_kwargs): gtransport, factory = self._make_transport_and_factory() args = required_args + (factory, ) + rest_args c = ConnectorClass(*args, **rest_kwargs) c.connect() factory.event.wait() return gtransport
c2a5d3bce6d30b6240322f87dc0cbe81dc538f4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/c2a5d3bce6d30b6240322f87dc0cbe81dc538f4c/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1931, 67, 1968, 16, 15779, 797, 16, 380, 8792, 67, 1968, 16, 2826, 8792, 67, 4333, 4672, 314, 13049, 16, 3272, 273, 365, 6315, 6540, 67, 13049, 67, 464, 67, 6848, 1435, 833, 273, 1931, 67, 1968, 397, 261, 6848, 16, 262, 397, 3127, 67, 1968, 276, 273, 15779, 797, 30857, 1968, 16, 2826, 8792, 67, 4333, 13, 276, 18, 3612, 1435, 3272, 18, 2575, 18, 7048, 1435, 327, 314, 13049, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 1931, 67, 1968, 16, 15779, 797, 16, 380, 8792, 67, 1968, 16, 2826, 8792, 67, 4333, 4672, 314, 13049, 16, 3272, 273, 365, 6315, 6540, 67, 13049, 67, 464, 67, 6848, 1435, 833, 273, 1931, 67, 1968, 397, 261, 6848, 16, 262, 397, 3127, 67, 1968, 276, 273, 15779, 797, 30857, 1968, 16, 2826, 8792, 67, 4333, 13, 276, 18, 3612, 1435, 3272, 18, 2575, 18, 7048, 1435, 327, 314, 13049, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bi_self = wholechain.wholechain_baseindex(rail, baseindex)
bi_baseatom = wholechain.wholechain_baseindex(rail, baseindex)
def getToolTipInfo(self, isAtomPosition, isAtomChunkInfo, isAtomMass, atomDistPrecision): """ Returns this atom's basic info string for the dynamic tooltip """ atom = self
58e4b662d67fdcb37978569adac18e6e93ba4517 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/58e4b662d67fdcb37978569adac18e6e93ba4517/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 29250, 966, 12, 2890, 16, 353, 3641, 2555, 16, 353, 3641, 5579, 966, 16, 353, 3641, 18060, 16, 3179, 5133, 15410, 4672, 3536, 2860, 333, 3179, 1807, 5337, 1123, 533, 364, 326, 5976, 11915, 3536, 3179, 273, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 29250, 966, 12, 2890, 16, 353, 3641, 2555, 16, 353, 3641, 5579, 966, 16, 353, 3641, 18060, 16, 3179, 5133, 15410, 4672, 3536, 2860, 333, 3179, 1807, 5337, 1123, 533, 364, 326, 5976, 11915, 3536, 3179, 273, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pkgId, pkgKey = op
pkgId, pkgKey = op[0], op[1]
def addFilesToPkg(self, name, epoch, version, release, arch, filelist, filetypelist): """Add a package to the filelists cache""" cur = self._primarydb.cursor() fcur = self._filelistsdb.cursor() cur.execute('SELECT pkgId, pkgKey FROM packages WHERE name="%s" ' 'and epoch="%s" and version="%s" and release="%s" ' 'and arch="%s"' % (name, epoch, version, release, arch)) op = cur.fetchone() if op is None: # package not found return pkgId, pkgKey = op
1bd6adee371af6defb14a869c8d6fece65e51000 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/1bd6adee371af6defb14a869c8d6fece65e51000/sqliterepodb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2697, 774, 11264, 12, 2890, 16, 508, 16, 7632, 16, 1177, 16, 3992, 16, 6637, 16, 26204, 16, 661, 278, 879, 5449, 4672, 3536, 986, 279, 2181, 358, 326, 661, 292, 1486, 1247, 8395, 662, 273, 365, 6315, 8258, 1966, 18, 9216, 1435, 284, 1397, 273, 365, 6315, 7540, 292, 1486, 1966, 18, 9216, 1435, 662, 18, 8837, 2668, 4803, 3475, 548, 16, 3475, 653, 4571, 5907, 4852, 508, 11613, 87, 6, 296, 296, 464, 7632, 11613, 87, 6, 471, 1177, 11613, 87, 6, 471, 3992, 11613, 87, 6, 296, 296, 464, 6637, 11613, 87, 5187, 738, 261, 529, 16, 7632, 16, 1177, 16, 3992, 16, 6637, 3719, 1061, 273, 662, 18, 5754, 476, 1435, 309, 1061, 353, 599, 30, 468, 2181, 486, 1392, 327, 3475, 548, 16, 3475, 653, 273, 1061, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2697, 774, 11264, 12, 2890, 16, 508, 16, 7632, 16, 1177, 16, 3992, 16, 6637, 16, 26204, 16, 661, 278, 879, 5449, 4672, 3536, 986, 279, 2181, 358, 326, 661, 292, 1486, 1247, 8395, 662, 273, 365, 6315, 8258, 1966, 18, 9216, 1435, 284, 1397, 273, 365, 6315, 7540, 292, 1486, 1966, 18, 9216, 1435, 662, 18, 8837, 2668, 4803, 3475, 548, 16, 3475, 653, 4571, 5907, 4852, 508, 11613, 87, 6, 296, 296, 464, 7632, 11613, 87, 6, 471, 1177, 11613, 87, 6, 471, 3992, 11613, 87, 6, 296, 296, 464, 6637, 11613, 87, 5187, 738, 261, 529, 16, 7632, 16, 1177, 16, 3992, 16, 6637, 3719, 1061, 273, 662, 18, 5754, 476, 1435, 309, 1061, 2 ]
self.desc = ["".join(self.desc)]
self.desc = ["by " + "".join(self.desc)]
def end_span(self): if self.indesc: self.desc = ["".join(self.desc)] self.indesc = False
20dccb057332bfbcc8b499baf100599e870ebf72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10627/20dccb057332bfbcc8b499baf100599e870ebf72/events.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 3969, 12, 2890, 4672, 309, 365, 18, 728, 742, 30, 365, 18, 5569, 273, 8247, 1637, 315, 397, 1408, 18, 5701, 12, 2890, 18, 5569, 25887, 365, 18, 728, 742, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 3969, 12, 2890, 4672, 309, 365, 18, 728, 742, 30, 365, 18, 5569, 273, 8247, 1637, 315, 397, 1408, 18, 5701, 12, 2890, 18, 5569, 25887, 365, 18, 728, 742, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
[2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 3*5^5 + 4*5^6 + 3*5^7 + 4*5^8 + O(5^9) 2*5 + 3*5^2 + 3*5^3 + 3*5^4 + 2*5^5 + O(5^7)] [ 2*5 + 3*5^2 + 3*5^3 + 3*5^4 + 2*5^5 + O(5^7) 3*5^3 + 5^4 + 5^6 + O(5^7)]
[2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 3*5^5 + 4*5^6 + 3*5^7 + 4*5^8 + O(5^9) 4*5 + 3*5^3 + 2*5^4 + 5^5 + 3*5^7 + 3*5^8 + O(5^9)] [ 4*5 + 3*5^3 + 2*5^4 + 5^5 + 3*5^7 + 3*5^8 + O(5^9) 5 + 4*5^2 + 4*5^3 + 2*5^4 + 4*5^5 + 5^6 + O(5^9)]
def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction.
97a7111045a2e1421945261832ecad2046ecee85 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/97a7111045a2e1421945261832ecad2046ecee85/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 335, 67, 4210, 67, 6017, 310, 67, 5667, 12, 2890, 16, 293, 16, 13382, 33, 3462, 16, 2072, 33, 7036, 16, 866, 67, 76, 879, 10370, 281, 281, 33, 5510, 4672, 436, 8395, 14169, 281, 326, 6143, 830, 352, 24721, 271, 84, 8, 17, 20333, 2072, 3082, 310, 3148, 434, 333, 8882, 598, 8762, 358, 326, 10853, 365, 18, 23730, 1435, 364, 326, 490, 517, 1165, 17, 3218, 330, 1041, 364, 279, 864, 14800, 17014, 293, 434, 7494, 4642, 2101, 20176, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 335, 67, 4210, 67, 6017, 310, 67, 5667, 12, 2890, 16, 293, 16, 13382, 33, 3462, 16, 2072, 33, 7036, 16, 866, 67, 76, 879, 10370, 281, 281, 33, 5510, 4672, 436, 8395, 14169, 281, 326, 6143, 830, 352, 24721, 271, 84, 8, 17, 20333, 2072, 3082, 310, 3148, 434, 333, 8882, 598, 8762, 358, 326, 10853, 365, 18, 23730, 1435, 364, 326, 490, 517, 1165, 17, 3218, 330, 1041, 364, 279, 864, 14800, 17014, 293, 434, 7494, 4642, 2101, 20176, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if isinstance(other, QAnd):
if isinstance(other, DjangoQAnd):
def __and__(self, other): if isinstance(other, QAnd): return QAnd(*(self.args+other.args)) elif isinstance(other, (Q, QOr)): return QAnd(*(self.args+(other,))) else: raise TypeError, other
ec2feccf6f65a442d209665aabd7b4d403d389ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/ec2feccf6f65a442d209665aabd7b4d403d389ea/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 464, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 18480, 53, 1876, 4672, 327, 2238, 1876, 12, 21556, 2890, 18, 1968, 15, 3011, 18, 1968, 3719, 1327, 1549, 12, 3011, 16, 261, 53, 16, 2238, 1162, 3719, 30, 327, 2238, 1876, 12, 21556, 2890, 18, 1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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 464, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 18480, 53, 1876, 4672, 327, 2238, 1876, 12, 21556, 2890, 18, 1968, 15, 3011, 18, 1968, 3719, 1327, 1549, 12, 3011, 16, 261, 53, 16, 2238, 1162, 3719, 30, 327, 2238, 1876, 12, 21556, 2890, 18, 1968, 15, 12, 3011, 16, 20349, 469, 30, 1002, 3580, 16, 1308, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.environ['LD_PRELOAD'] = ''
os.system('ls') sys.exit()
def main_func(): # Add the drives to the config.removable_media list. There doesn't have # to be any drives defined. if config.ROM_DRIVES != None: for i in range(len(config.ROM_DRIVES)): (dir, device, name) = config.ROM_DRIVES[i] media = RemovableMedia(mountdir=dir, devicename=device, drivename=name) # close the tray without popup message media.move_tray(dir='close', notify=0) osd.clearscreen(color=osd.COL_BLACK) osd.update() config.REMOVABLE_MEDIA.append(media) # Remove the ROM_DRIVES member to make sure it is not used by # legacy code! del config.ROM_DRIVES # XXX Remove later signal.signal(signal.SIGTERM, signal_handler) # Start identifymedia thread global im_thread im_thread = identifymedia.Identify_Thread() im_thread.start() # scan for plugins for t in ('video', 'audio', 'image', 'games'): config.FREEVO_PLUGINS[t] = [] dirname = 'src/%s/plugins' % t if os.path.isdir(dirname): for plugin in [ os.path.splitext(fname)[0] for fname in os.listdir(dirname) if os.path.isfile(os.path.join(dirname, fname))\ and os.path.splitext(fname)[1].lower()[1:] == 'py' \ and not fname == '__init__.py']: try: exec('import %s.plugins.%s' % (t, plugin)) if hasattr(eval('%s.plugins.%s' % (t, plugin)), 'actions'): print 'load %s plugin %s ' % (t, plugin) config.FREEVO_PLUGINS[t] += [ eval('%s.plugins.%s.actions'\ % (t, plugin)) ] except: traceback.print_exc() # Kick off the main menu loop print 'Main loop starting...' getcmd()
dee069b95425775e38cf7b903938b99451160486 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/dee069b95425775e38cf7b903938b99451160486/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 67, 644, 13332, 225, 468, 1436, 326, 5081, 3606, 358, 326, 642, 18, 2764, 1527, 429, 67, 5829, 666, 18, 6149, 3302, 1404, 1240, 468, 358, 506, 1281, 5081, 3606, 2553, 18, 309, 642, 18, 3942, 67, 40, 2259, 3412, 55, 480, 599, 30, 364, 277, 316, 1048, 12, 1897, 12, 1425, 18, 3942, 67, 40, 2259, 3412, 55, 3719, 30, 261, 1214, 16, 2346, 16, 508, 13, 273, 642, 18, 3942, 67, 40, 2259, 3412, 55, 63, 77, 65, 3539, 273, 2663, 1527, 429, 5419, 12, 4778, 1214, 33, 1214, 16, 4461, 335, 1069, 33, 5964, 16, 5081, 837, 339, 33, 529, 13, 468, 1746, 326, 268, 435, 2887, 10431, 883, 3539, 18, 8501, 67, 313, 528, 12, 1214, 2218, 4412, 2187, 5066, 33, 20, 13, 1140, 72, 18, 8507, 9252, 12, 3266, 33, 538, 72, 18, 4935, 67, 14618, 3649, 13, 1140, 72, 18, 2725, 1435, 642, 18, 11122, 58, 2782, 67, 26368, 18, 6923, 12, 5829, 13, 225, 468, 3581, 326, 534, 1872, 67, 40, 2259, 3412, 55, 3140, 358, 1221, 3071, 518, 353, 486, 1399, 635, 468, 8866, 981, 5, 1464, 642, 18, 3942, 67, 40, 2259, 3412, 55, 282, 468, 11329, 3581, 5137, 225, 4277, 18, 10420, 12, 10420, 18, 18513, 15176, 16, 4277, 67, 4176, 13, 225, 468, 3603, 9786, 5829, 2650, 2552, 709, 67, 5930, 709, 67, 5930, 273, 9786, 5829, 18, 25787, 67, 3830, 1435, 709, 67, 5930, 18, 1937, 1435, 225, 468, 4135, 364, 4799, 364, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 67, 644, 13332, 225, 468, 1436, 326, 5081, 3606, 358, 326, 642, 18, 2764, 1527, 429, 67, 5829, 666, 18, 6149, 3302, 1404, 1240, 468, 358, 506, 1281, 5081, 3606, 2553, 18, 309, 642, 18, 3942, 67, 40, 2259, 3412, 55, 480, 599, 30, 364, 277, 316, 1048, 12, 1897, 12, 1425, 18, 3942, 67, 40, 2259, 3412, 55, 3719, 30, 261, 1214, 16, 2346, 16, 508, 13, 273, 642, 18, 3942, 67, 40, 2259, 3412, 55, 63, 77, 65, 3539, 273, 2663, 1527, 429, 5419, 12, 4778, 1214, 33, 1214, 16, 4461, 335, 1069, 33, 5964, 16, 5081, 837, 339, 33, 529, 13, 468, 1746, 326, 268, 435, 2887, 10431, 883, 3539, 18, 8501, 67, 313, 2 ]
lsctables.SnglInspiralTable.next_id = lsctables.SnglInspiralID_old(0)
lsctables.SnglInspiralTable.next_id = _mangled_next_id
def ReadSnglInspiralFromFiles(fileList, mangle_event_id=False, verbose=False, non_lsc_tables_ok=False, old_document=False): """ Read the SnglInspiralTables from a list of files @param fileList: list of input files @param mangle_event_id: ID remapping is necessary in cases where multiple files might have event_id collisions (ex: exttrig injections) @param verbose: print ligolw_add progress """ # turn on ID remapping if necessary if mangle_event_id or old_document: next_id_orig = lsctables.SnglInspiralTable.next_id lsctables.SnglInspiralTable.next_id = lsctables.SnglInspiralID_old(0) if old_document: event_id_orig = lsctables.SnglInspiralTable.validcolumns["event_id"] lsctables.SnglInspiralTable.validcolumns["event_id"] = "int_8s" # ligolw_add will merge all tables, which is overkill, but merge time is # much less than I/O time. xmldoc = ligolw_add.ligolw_add(ligolw.Document(), fileList, non_lsc_tables_ok=non_lsc_tables_ok, verbose=verbose) # extract the SnglInspiral table try: snglInspiralTriggers = table.get_table(xmldoc, \ lsctables.SnglInspiralTable.tableName) except: snglInspiralTriggers = None # return ID remapping to its normal state (off) if mangle_event_id or old_document: lsctables.SnglInspiralTable.next_id = next_id_orig if old_document: lsctables.SnglInspiralTable.validcolumns["event_id"] = event_id_orig return snglInspiralTriggers
f034701ea38b4cafb05183ed54333ccfa17338be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/f034701ea38b4cafb05183ed54333ccfa17338be/SnglInspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 55, 3368, 80, 382, 1752, 481, 287, 1265, 2697, 12, 768, 682, 16, 312, 4341, 67, 2575, 67, 350, 33, 8381, 16, 3988, 33, 8381, 16, 1661, 67, 80, 1017, 67, 9373, 67, 601, 33, 8381, 16, 1592, 67, 5457, 33, 8381, 4672, 3536, 2720, 326, 348, 3368, 80, 382, 1752, 481, 287, 6905, 628, 279, 666, 434, 1390, 225, 632, 891, 18645, 30, 666, 434, 810, 1390, 632, 891, 312, 4341, 67, 2575, 67, 350, 30, 1599, 21674, 1382, 353, 4573, 316, 6088, 1625, 3229, 1390, 4825, 1240, 871, 67, 350, 27953, 261, 338, 30, 1110, 313, 360, 10380, 87, 13, 632, 891, 3988, 30, 1172, 16917, 355, 91, 67, 1289, 4007, 3536, 468, 7005, 603, 1599, 21674, 1382, 309, 4573, 309, 312, 4341, 67, 2575, 67, 350, 578, 1592, 67, 5457, 30, 1024, 67, 350, 67, 4949, 273, 7180, 299, 1538, 18, 55, 3368, 80, 382, 1752, 481, 287, 1388, 18, 4285, 67, 350, 7180, 299, 1538, 18, 55, 3368, 80, 382, 1752, 481, 287, 1388, 18, 4285, 67, 350, 273, 389, 81, 539, 1259, 67, 4285, 67, 350, 309, 1592, 67, 5457, 30, 871, 67, 350, 67, 4949, 273, 7180, 299, 1538, 18, 55, 3368, 80, 382, 1752, 481, 287, 1388, 18, 877, 5112, 9614, 2575, 67, 350, 11929, 7180, 299, 1538, 18, 55, 3368, 80, 382, 1752, 481, 287, 1388, 18, 877, 5112, 9614, 2575, 67, 350, 11929, 273, 315, 474, 67, 28, 87, 6, 225, 468, 16917, 355, 91, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 55, 3368, 80, 382, 1752, 481, 287, 1265, 2697, 12, 768, 682, 16, 312, 4341, 67, 2575, 67, 350, 33, 8381, 16, 3988, 33, 8381, 16, 1661, 67, 80, 1017, 67, 9373, 67, 601, 33, 8381, 16, 1592, 67, 5457, 33, 8381, 4672, 3536, 2720, 326, 348, 3368, 80, 382, 1752, 481, 287, 6905, 628, 279, 666, 434, 1390, 225, 632, 891, 18645, 30, 666, 434, 810, 1390, 632, 891, 312, 4341, 67, 2575, 67, 350, 30, 1599, 21674, 1382, 353, 4573, 316, 6088, 1625, 3229, 1390, 4825, 1240, 871, 67, 350, 27953, 261, 338, 30, 1110, 313, 360, 10380, 87, 13, 632, 891, 3988, 30, 1172, 16917, 355, 91, 67, 1289, 4007, 3536, 468, 7005, 603, 2 ]
Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a*b, c^6, d] sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")) sage: G Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a*b, c^6, d]
Multiplicative Abelian Group isomorphic to C5 x C64 x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [a*b, c^6, d] sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")); G Multiplicative Abelian Group isomorphic to C5 x C64 x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [a*b, c^6, d]
def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a^3, b] sage: F.subgroup([c]) Multiplicative Abelian Group isomorphic to C2 x C3 x C5, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [c] sage: F.subgroup([a,c]) Multiplicative Abelian Group isomorphic to Z x C2 x C3 x C5, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a, c] sage: F.subgroup([a,b*c]) Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a, b*c] sage: F.subgroup([b*c,d]) Multiplicative Abelian Group isomorphic to Z x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [b*c, d] sage: F.subgroup([a*b,c^6,d],names = list("xyz")) Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a*b, c^6, d] sage: H.<x,y,z> = F.subgroup([a*b, c^6, d]); H Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a*b, c^6, d] sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")) sage: G Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a*b, c^6, d] sage: x,y,z = G.gens() sage: x.order() +Infinity sage: y.order() 5 sage: z.order() 64 sage: A = AbelianGroup(5,[3, 5, 5, 7, 8], names = "abcde") sage: a,b,c,d,e = A.gens() sage: A.subgroup([a,b]) Multiplicative Abelian Group isomorphic to C3 x C5, which is the subgroup of Multiplicative Abelian Group isomorphic to C3 x C5 x C5 x C7 x C8 generated by [a, b] sage: A.subgroup([a,b,c,d^2,e]) Multiplicative Abelian Group isomorphic to C3 x C5 x C5 x C7 x C8, which is the subgroup of Multiplicative Abelian Group isomorphic to C3 x C5 x C5 x C7 x C8 generated by [a, b, c, d^2, e] sage: A.subgroup([a,b,c,d^2,e^2]) Multiplicative Abelian Group isomorphic to C3 x C4 x C5 x C5 x C7, which is the subgroup of Multiplicative Abelian Group isomorphic to C3 x C5 x C5 x C7 x C8 generated by [a, b, c, d^2, e^2] sage: B = A.subgroup([a^3,b,c,d,e^2]); B Multiplicative Abelian Group isomorphic to C4 x C5 x C5 x C7, which is the subgroup of Multiplicative Abelian Group isomorphic to C3 x C5 x C5 x C7 x C8 generated by [b, c, d, e^2] sage: B.invariants() [4, 5, 5, 7] sage: A = AbelianGroup(4,[1009, 2003, 3001, 4001], names = "abcd") sage: a,b,c,d = A.gens() sage: B = A.subgroup([a^3,b,c,d]) sage: B.invariants() [1009, 2003, 3001, 4001] sage: A.order() 24266473210027 sage: B.order() 24266473210027 sage: A = AbelianGroup(4,[1008, 2003, 3001, 4001], names = "abcd") sage: a,b,c,d = A.gens() sage: B = A.subgroup([a^3,b,c,d]) sage: B Multiplicative Abelian Group isomorphic to C3 x C7 x C16 x C2003 x C3001 x C4001, which is the subgroup of Multiplicative Abelian Group isomorphic to C7 x C9 x C16 x C2003 x C3001 x C4001 generated by [a^3, b, c, d] Infinite groups can also be handled: sage: G = AbelianGroup([3,4,0], names = "abc") sage: a,b,c = G.gens() sage: F = G.subgroup([a,b^2,c]); F Multiplicative Abelian Group isomorphic to Z x C3 x C4, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x C3 x C4 generated by [a, b^2, c] sage: F.invariants() [0, 3, 4] sage: F.gens() [a, b^2, c] sage: F.order() +Infinity
ac7b9e1e09a437ce1112b2a6f61db8126e9ee984 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ac7b9e1e09a437ce1112b2a6f61db8126e9ee984/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13232, 1979, 16, 314, 773, 16, 1257, 1546, 74, 6, 4672, 3536, 225, 5675, 8900, 11386, 30, 272, 410, 30, 478, 273, 9771, 292, 2779, 1114, 12, 25, 16, 63, 5082, 16, 1105, 16, 27, 5540, 6487, 1973, 273, 666, 2932, 18947, 323, 6, 3719, 272, 410, 30, 279, 16, 70, 16, 71, 16, 72, 16, 73, 273, 478, 18, 23730, 1435, 272, 410, 30, 478, 18, 1717, 1655, 3816, 69, 66, 23, 16, 70, 5717, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 2285, 619, 2285, 16, 1492, 353, 326, 720, 1655, 434, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 2285, 619, 2285, 619, 385, 22, 619, 385, 23, 619, 385, 25, 619, 385, 1105, 619, 385, 27, 5540, 4374, 635, 306, 69, 66, 23, 16, 324, 65, 272, 410, 30, 478, 18, 1717, 1655, 3816, 71, 5717, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 385, 22, 619, 385, 23, 619, 385, 25, 16, 1492, 353, 326, 720, 1655, 434, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 2285, 619, 2285, 619, 385, 22, 619, 385, 23, 619, 385, 25, 619, 385, 1105, 619, 385, 27, 5540, 4374, 635, 306, 71, 65, 272, 410, 30, 478, 18, 1717, 1655, 3816, 69, 16, 71, 5717, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 2285, 619, 385, 22, 619, 385, 23, 619, 385, 25, 16, 1492, 353, 326, 720, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13232, 1979, 16, 314, 773, 16, 1257, 1546, 74, 6, 4672, 3536, 225, 5675, 8900, 11386, 30, 272, 410, 30, 478, 273, 9771, 292, 2779, 1114, 12, 25, 16, 63, 5082, 16, 1105, 16, 27, 5540, 6487, 1973, 273, 666, 2932, 18947, 323, 6, 3719, 272, 410, 30, 279, 16, 70, 16, 71, 16, 72, 16, 73, 273, 478, 18, 23730, 1435, 272, 410, 30, 478, 18, 1717, 1655, 3816, 69, 66, 23, 16, 70, 5717, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 2285, 619, 2285, 16, 1492, 353, 326, 720, 1655, 434, 5991, 28884, 9771, 292, 2779, 3756, 353, 362, 18435, 358, 2285, 619, 2285, 619, 385, 22, 2 ]
<separator name="FM2"/>
<separator name="FM2"/>
def __init__(self): try: gettext.install('mirage', '/usr/share/locale', unicode=1) except: gettext.install('mirage', '/usr/local/share/locale', unicode=1) # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_zoom_to_fit self.min_zoomratio = 0.1 # 0.1 x self.zoomratio_for_zoom_to_fit
f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 225, 775, 30, 24972, 18, 5425, 2668, 81, 481, 410, 2187, 1173, 13640, 19, 14419, 19, 6339, 2187, 5252, 33, 21, 13, 1335, 30, 24972, 18, 5425, 2668, 81, 481, 410, 2187, 1173, 13640, 19, 3729, 19, 14419, 19, 6339, 2187, 5252, 33, 21, 13, 225, 468, 5245, 365, 18, 3190, 67, 3188, 67, 26416, 273, 374, 365, 18, 3190, 67, 3188, 67, 7216, 273, 404, 365, 18, 3190, 67, 3188, 67, 21, 869, 21, 273, 576, 365, 18, 3190, 67, 3188, 67, 2722, 273, 890, 365, 18, 1896, 67, 14932, 9847, 273, 1381, 4202, 468, 1381, 619, 365, 18, 14932, 9847, 67, 1884, 67, 14932, 67, 869, 67, 7216, 365, 18, 1154, 67, 14932, 9847, 273, 374, 18, 21, 377, 468, 374, 18, 21, 619, 365, 18, 14932, 9847, 67, 1884, 67, 14932, 67, 869, 67, 7216, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 225, 775, 30, 24972, 18, 5425, 2668, 81, 481, 410, 2187, 1173, 13640, 19, 14419, 19, 6339, 2187, 5252, 33, 21, 13, 1335, 30, 24972, 18, 5425, 2668, 81, 481, 410, 2187, 1173, 13640, 19, 3729, 19, 14419, 19, 6339, 2187, 5252, 33, 21, 13, 225, 468, 5245, 365, 18, 3190, 67, 3188, 67, 26416, 273, 374, 365, 18, 3190, 67, 3188, 67, 7216, 273, 404, 365, 18, 3190, 67, 3188, 67, 21, 869, 21, 273, 576, 365, 18, 3190, 67, 3188, 67, 2722, 273, 890, 365, 18, 1896, 67, 14932, 9847, 273, 1381, 4202, 468, 1381, 619, 365, 18, 14932, 9847, 67, 1884, 67, 14932, 67, 869, 67, 7216, 365, 18, 2 ]
self.appriss.xmlstream.send(message)
if (self.appriss): self.appriss.xmlstream.send(message)
def processMessage(self, elem): _from = jid.JID( elem["from"] ) t = "" try: t = elem["type"] except: print elem.toXml(), 'BOOOOOOO'
b893130001f5195f495b0519db505b2476a4a112 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11180/b893130001f5195f495b0519db505b2476a4a112/publicbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1079, 12, 2890, 16, 3659, 4672, 389, 2080, 273, 14201, 18, 46, 734, 12, 3659, 9614, 2080, 11929, 262, 268, 273, 1408, 775, 30, 268, 273, 3659, 9614, 723, 11929, 1335, 30, 1172, 3659, 18, 869, 4432, 9334, 296, 5315, 25148, 25148, 25148, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 3659, 9614, 2080, 11929, 262, 268, 273, 1408, 775, 30, 268, 273, 3659, 9614, 723, 11929, 1335, 30, 1172, 3659, 18, 869, 4432, 9334, 296, 5315, 25148, 25148, 25148, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.msgText("Shrink Display!\n")
if (self.debugLevel >= HighDebug) : self.msgText("Shrink Display!\n")
def whenShrinkButtonClicked(self, event): if (self.shrinkGrow == True) : self.msgText("Shrink Display!\n") # add text self.speedPane.setVisible(False) self.shrinkGrow = False self.fullScrollRows = self.scrollArea.getRows() self.scrollArea.setRows(self.fullScrollRows / 2) self.scriptFrame.pack() else : self.msgText("Grow Display!\n") self.speedPane.setVisible(True) self.shrinkGrow = True self.scrollArea.setRows(self.fullScrollRows) self.scriptFrame.pack() return
59e4aafd20d48b37b8557fb5f47ffa3c8e4ea316 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2146/59e4aafd20d48b37b8557fb5f47ffa3c8e4ea316/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1347, 28747, 3616, 27633, 12, 2890, 16, 871, 4672, 309, 261, 2890, 18, 674, 12334, 30948, 422, 1053, 13, 294, 309, 261, 2890, 18, 4148, 2355, 1545, 15207, 2829, 13, 294, 365, 18, 3576, 1528, 2932, 28747, 9311, 24440, 82, 7923, 377, 468, 527, 977, 365, 18, 13871, 8485, 18, 542, 6207, 12, 8381, 13, 365, 18, 674, 12334, 30948, 273, 1083, 365, 18, 2854, 6806, 4300, 273, 365, 18, 12033, 5484, 18, 588, 4300, 1435, 365, 18, 12033, 5484, 18, 542, 4300, 12, 2890, 18, 2854, 6806, 4300, 342, 576, 13, 365, 18, 4263, 3219, 18, 2920, 1435, 469, 294, 365, 18, 3576, 1528, 2932, 30948, 9311, 24440, 82, 7923, 365, 18, 13871, 8485, 18, 542, 6207, 12, 5510, 13, 365, 18, 674, 12334, 30948, 273, 1053, 365, 18, 12033, 5484, 18, 542, 4300, 12, 2890, 18, 2854, 6806, 4300, 13, 365, 18, 4263, 3219, 18, 2920, 1435, 327, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1347, 28747, 3616, 27633, 12, 2890, 16, 871, 4672, 309, 261, 2890, 18, 674, 12334, 30948, 422, 1053, 13, 294, 309, 261, 2890, 18, 4148, 2355, 1545, 15207, 2829, 13, 294, 365, 18, 3576, 1528, 2932, 28747, 9311, 24440, 82, 7923, 377, 468, 527, 977, 365, 18, 13871, 8485, 18, 542, 6207, 12, 8381, 13, 365, 18, 674, 12334, 30948, 273, 1083, 365, 18, 2854, 6806, 4300, 273, 365, 18, 12033, 5484, 18, 588, 4300, 1435, 365, 18, 12033, 5484, 18, 542, 4300, 12, 2890, 18, 2854, 6806, 4300, 342, 576, 13, 365, 18, 4263, 3219, 18, 2920, 1435, 469, 294, 365, 18, 3576, 1528, 2932, 30948, 9311, 24440, 82, 7923, 365, 18, 13871, 8485, 18, 542, 6207, 2 ]
lines.append('%s "%s"' % (commandparams_info[name][1], option2.replace('"', '\\"')))
lines.append('%s "%s"' % (commandparams_info[name][1], option2.replace('\\', '\\\\').replace('"', '\\"')))
def convert_commandparams(document): """ Convert \begin_inset LatexCommand \cmdname[opt1][opt2]{arg} \end_inset to \begin_inset LatexCommand cmdname name1 "opt1" name2 "opt2" name3 "arg" \end_inset name1, name2 and name3 can be different for each command.
7feaac16d224b7adb406eb79810b2b84e4816ca0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/7feaac16d224b7adb406eb79810b2b84e4816ca0/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 3076, 2010, 12, 5457, 4672, 3536, 4037, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 521, 4172, 529, 63, 3838, 21, 6362, 3838, 22, 7073, 3175, 97, 521, 409, 67, 267, 542, 225, 358, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 1797, 529, 508, 21, 315, 3838, 21, 6, 508, 22, 315, 3838, 22, 6, 508, 23, 315, 3175, 6, 521, 409, 67, 267, 542, 225, 508, 21, 16, 508, 22, 471, 508, 23, 848, 506, 3775, 364, 1517, 1296, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 3076, 2010, 12, 5457, 4672, 3536, 4037, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 521, 4172, 529, 63, 3838, 21, 6362, 3838, 22, 7073, 3175, 97, 521, 409, 67, 267, 542, 225, 358, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 1797, 529, 508, 21, 315, 3838, 21, 6, 508, 22, 315, 3838, 22, 6, 508, 23, 315, 3175, 6, 521, 409, 67, 267, 542, 225, 508, 21, 16, 508, 22, 471, 508, 23, 848, 506, 3775, 364, 1517, 1296, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._gl_has_been_initialised = False
self.material = gl_managed.material_model()
def __init__(self, fft_map=None, unit_cell=None, raw_map=None, frame=None, wires=True, **kwds): assert fft_map is None or (unit_cell is None and raw_map is None) import time super(map_view, self).__init__(frame, **kwds) self.buffer_factor = 2.0 self.back_colour = (0,)*4 self.wires = wires self._gl_has_been_initialised = False
7c5e2e9abbc0a0f9ae34009f899290df53499bb6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/7c5e2e9abbc0a0f9ae34009f899290df53499bb6/wx_map_viewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15741, 67, 1458, 33, 7036, 16, 2836, 67, 3855, 33, 7036, 16, 1831, 67, 1458, 33, 7036, 16, 2623, 33, 7036, 16, 341, 2814, 33, 5510, 16, 2826, 25577, 4672, 1815, 15741, 67, 1458, 353, 599, 578, 261, 4873, 67, 3855, 353, 599, 471, 1831, 67, 1458, 353, 599, 13, 1930, 813, 2240, 12, 1458, 67, 1945, 16, 365, 2934, 972, 2738, 972, 12, 3789, 16, 2826, 25577, 13, 365, 18, 4106, 67, 6812, 273, 576, 18, 20, 365, 18, 823, 67, 27408, 273, 261, 20, 16, 17653, 24, 365, 18, 91, 2814, 273, 341, 2814, 365, 6315, 7043, 67, 5332, 67, 2196, 275, 67, 6769, 5918, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15741, 67, 1458, 33, 7036, 16, 2836, 67, 3855, 33, 7036, 16, 1831, 67, 1458, 33, 7036, 16, 2623, 33, 7036, 16, 341, 2814, 33, 5510, 16, 2826, 25577, 4672, 1815, 15741, 67, 1458, 353, 599, 578, 261, 4873, 67, 3855, 353, 599, 471, 1831, 67, 1458, 353, 599, 13, 1930, 813, 2240, 12, 1458, 67, 1945, 16, 365, 2934, 972, 2738, 972, 12, 3789, 16, 2826, 25577, 13, 365, 18, 4106, 67, 6812, 273, 576, 18, 20, 365, 18, 823, 67, 27408, 273, 261, 20, 16, 17653, 24, 365, 18, 91, 2814, 273, 341, 2814, 365, 6315, 7043, 67, 5332, 67, 2196, 275, 67, 6769, 5918, 273, 1083, 2, -100, -100, -100 ]
self.transport.write("%s %s\r\n" % (subjectFields[0], subjectFields[1]))
commandLine = "%s %s\r\n" % (subjectFields[0], subjectFields[1]) logCommand(commandLine) self.transport.write(commandLine)
def connectionMade(self): import sys mailMsg = email.message_from_file(sys.stdin) f = open(mailLog, "a") f.write(mailMsg.as_string()) f.close() subjectFields = mailMsg['Subject'].split(" ") message = mailMsg.get_payload() subjectFields[1] = subjectFields[1].lower() if subjectFields[1][0] == "#": subjectFields[1] = subjectFields[1][1:]
01718cb5764c72d147feb28170508714b3a91a9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/01718cb5764c72d147feb28170508714b3a91a9b/emailBotClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 49, 2486, 12, 2890, 4672, 1930, 2589, 4791, 3332, 225, 273, 2699, 18, 2150, 67, 2080, 67, 768, 12, 9499, 18, 21772, 13, 284, 273, 1696, 12, 4408, 1343, 16, 315, 69, 7923, 284, 18, 2626, 12, 4408, 3332, 18, 345, 67, 1080, 10756, 284, 18, 4412, 1435, 3221, 2314, 273, 4791, 3332, 3292, 6638, 29489, 4939, 2932, 9369, 883, 273, 4791, 3332, 18, 588, 67, 7648, 1435, 3221, 2314, 63, 21, 65, 273, 3221, 2314, 63, 21, 8009, 8167, 1435, 309, 3221, 2314, 63, 21, 6362, 20, 65, 422, 6619, 6877, 3221, 2314, 63, 21, 65, 273, 3221, 2314, 63, 21, 6362, 21, 26894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 49, 2486, 12, 2890, 4672, 1930, 2589, 4791, 3332, 225, 273, 2699, 18, 2150, 67, 2080, 67, 768, 12, 9499, 18, 21772, 13, 284, 273, 1696, 12, 4408, 1343, 16, 315, 69, 7923, 284, 18, 2626, 12, 4408, 3332, 18, 345, 67, 1080, 10756, 284, 18, 4412, 1435, 3221, 2314, 273, 4791, 3332, 3292, 6638, 29489, 4939, 2932, 9369, 883, 273, 4791, 3332, 18, 588, 67, 7648, 1435, 3221, 2314, 63, 21, 65, 273, 3221, 2314, 63, 21, 8009, 8167, 1435, 309, 3221, 2314, 63, 21, 6362, 20, 65, 422, 6619, 6877, 3221, 2314, 63, 21, 65, 273, 3221, 2314, 63, 21, 6362, 21, 26894, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
x = np.array([np.inf + 1j * np.nan, np.inf + 1j * np.inf, np.nan + 1j * np.nan]) y_r = np.array([np.inf, np.inf, np.nan]) y = np.abs(x) for i in range(len(x)): assert_equal_spec(y_r[i], y[i])
xl = [] yl = [] x = np.array([complex(np.nan, np.nan)], np.complex) y = np.nan assert_almost_equal_spec(np.abs(x), y) xl.append(x) yl.append(y) x = np.array([complex(np.inf, np.nan)], np.complex) y = np.inf assert_almost_equal_spec(np.abs(x), y) xl.append(x) yl.append(y) x = np.array([complex(-np.inf, np.nan)], np.complex) y = np.inf assert_almost_equal_spec(np.abs(x), y) xl.append(x) yl.append(y) xa = np.array(xl, dtype=np.complex) ya = np.array(yl, dtype=np.complex) for i in range(len(xa)): assert_almost_equal_spec(np.abs(np.conj(xa[i])), np.conj(np.abs(xa[i])))
def test_cabs_inf_nan(self): # According to C99 standard, cabs(inf + j * nan) should be inf x = np.array([np.inf + 1j * np.nan, np.inf + 1j * np.inf, np.nan + 1j * np.nan]) y_r = np.array([np.inf, np.inf, np.nan]) y = np.abs(x) for i in range(len(x)): assert_equal_spec(y_r[i], y[i])
75d0322ad6aec180e9eb221f12ee71a81d85ed94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/75d0322ad6aec180e9eb221f12ee71a81d85ed94/test_umath_complex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 5113, 67, 10625, 67, 13569, 12, 2890, 4672, 468, 12848, 4643, 358, 385, 2733, 4529, 16, 276, 5113, 12, 10625, 397, 525, 380, 6468, 13, 1410, 506, 8286, 619, 273, 1130, 18, 1126, 3816, 6782, 18, 10625, 397, 404, 78, 380, 1130, 18, 13569, 16, 1130, 18, 10625, 397, 404, 78, 380, 1130, 18, 10625, 16, 1130, 18, 13569, 397, 404, 78, 380, 1130, 18, 13569, 5717, 677, 67, 86, 273, 1130, 18, 1126, 3816, 6782, 18, 10625, 16, 1130, 18, 10625, 16, 1130, 18, 13569, 5717, 677, 273, 1130, 18, 5113, 12, 92, 13, 364, 277, 316, 1048, 12, 1897, 12, 92, 3719, 30, 1815, 67, 9729, 67, 2793, 12, 93, 67, 86, 63, 77, 6487, 677, 63, 77, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 5113, 67, 10625, 67, 13569, 12, 2890, 4672, 468, 12848, 4643, 358, 385, 2733, 4529, 16, 276, 5113, 12, 10625, 397, 525, 380, 6468, 13, 1410, 506, 8286, 619, 273, 1130, 18, 1126, 3816, 6782, 18, 10625, 397, 404, 78, 380, 1130, 18, 13569, 16, 1130, 18, 10625, 397, 404, 78, 380, 1130, 18, 10625, 16, 1130, 18, 13569, 397, 404, 78, 380, 1130, 18, 13569, 5717, 677, 67, 86, 273, 1130, 18, 1126, 3816, 6782, 18, 10625, 16, 1130, 18, 10625, 16, 1130, 18, 13569, 5717, 677, 273, 1130, 18, 5113, 12, 92, 13, 364, 277, 316, 1048, 12, 1897, 12, 92, 3719, 30, 1815, 67, 9729, 67, 2793, 12, 93, 67, 86, 63, 2 ]
if '>' in content and '<' in content and not \
if ('>' in content or '<' in content) and not \
def escape_if_good_idea(match): before, content, after = match.groups() if '>' in content and '<' in content and not \ content.lstrip().startswith('<!CDATA[['): content = escape(content) return before + content + after
4b6144366997be49af8a1e1388ca1f02027397ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/4b6144366997be49af8a1e1388ca1f02027397ef/wordpress.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4114, 67, 430, 67, 19747, 67, 831, 69, 12, 1916, 4672, 1865, 16, 913, 16, 1839, 273, 845, 18, 4650, 1435, 309, 7707, 1870, 316, 913, 578, 9138, 316, 913, 13, 471, 486, 521, 913, 18, 80, 6406, 7675, 17514, 1918, 2668, 5586, 18375, 63, 3292, 4672, 913, 273, 4114, 12, 1745, 13, 327, 1865, 397, 913, 397, 1839, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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865, 16, 913, 16, 1839, 273, 845, 18, 4650, 1435, 309, 7707, 1870, 316, 913, 578, 9138, 316, 913, 13, 471, 486, 521, 913, 18, 80, 6406, 7675, 17514, 1918, 2668, 5586, 18375, 63, 3292, 4672, 913, 273, 4114, 12, 1745, 13, 327, 1865, 397, 913, 397, 1839, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._current_task = None
def run(self): """Main thread function.
b3558df1ce05334d20560d16cec79e7e4286ae09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b3558df1ce05334d20560d16cec79e7e4286ae09/workerpool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 6376, 2650, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 1086, 12, 2890, 4672, 3536, 6376, 2650, 445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out.write("TBR=" + author)
out.write("\nTBR=" + author)
def main(options, args): revision = options.revert or options.merge # Initialize some variables used below. They can be overwritten by # the drover.properties file. BASE_URL = "svn://svn.chromium.org/chrome" TRUNK_URL = BASE_URL + "/trunk/src" BRANCH_URL = BASE_URL + "/branches/$branch/src" SKIP_CHECK_WORKING = True PROMPT_FOR_AUTHOR = False DEFAULT_WORKING = "drover_" + str(revision) if options.branch: DEFAULT_WORKING += ("_" + options.branch) if not isMinimumSVNVersion(1,5): print "You need to use at least SVN version 1.5.x" sys.exit(1) # Override the default properties if there is a drover.properties file. global file_pattern_ if os.path.exists("drover.properties"): file = open("drover.properties") exec(file) file.close() if FILE_PATTERN: file_pattern_ = FILE_PATTERN if options.revert and options.branch: url = BRANCH_URL.replace("$branch", options.branch) elif options.merge and options.sbranch: url = BRANCH_URL.replace("$branch", options.sbranch) else: url = TRUNK_URL working = options.workdir or DEFAULT_WORKING if options.local: working = os.getcwd() if not inCheckoutRoot(working): print "'%s' appears not to be the root of a working copy" % working sys.exit(1) if isSVNDirty(): print "Working copy contains uncommitted files" sys.exit(1) command = 'svn log ' + url + " -r "+str(revision) + " -v" os.system(command) if not (options.revertbot or prompt("Is this the correct revision?")): sys.exit(0) if (os.path.exists(working)) and not options.local: if not (options.revertbot or SKIP_CHECK_WORKING or prompt("Working directory: '%s' already exists, clobber?" % working)): sys.exit(0) deltree(working) if not options.local: os.makedirs(working) os.chdir(working) if options.merge: action = "Merge" if not options.local: branch_url = BRANCH_URL.replace("$branch", options.branch) # Checkout everything but stuff that got added into a new dir checkoutRevision(url, revision, branch_url) # Merge everything that changed mergeRevision(url, revision) # "Export" files that were added from the source and add them to branch exportRevision(url, revision) # Delete directories that were deleted (file deletes are handled in the # merge). deleteRevision(url, revision) elif options.revert: action = "Revert" if options.branch: url = BRANCH_URL.replace("$branch", options.branch) checkoutRevision(url, revision, url, True) revertRevision(url, revision) revertExportRevision(url, revision) # Check the base url so we actually find the author who made the change if options.auditor: author = options.auditor else: author = getAuthor(url, revision) if not author: author = getAuthor(TRUNK_URL, revision) filename = str(revision)+".txt" out = open(filename,"w") out.write(action +" " + str(revision) + " - ") out.write(getRevisionLog(url, revision)) if (author): out.write("TBR=" + author) out.close() change_cmd = 'change ' + str(revision) + " " + filename if options.revertbot: change_cmd += ' --silent' runGcl(change_cmd) os.unlink(filename) if options.local: sys.exit(0) print author print revision print ("gcl upload " + str(revision) + " --send_mail --no_try --no_presubmit --reviewers=" + author) if options.revertbot or prompt("Would you like to upload?"): if PROMPT_FOR_AUTHOR: author = text_prompt("Enter new author or press enter to accept default", author) if options.revertbot and options.revertbot_reviewers: author += "," author += options.revertbot_reviewers gclUpload(revision, author) else: print "Deleting the changelist." print "gcl delete " + str(revision) runGcl("delete " + str(revision)) sys.exit(0) # We commit if the reverbot is set to commit automatically, or if this is # not the revertbot and the user agrees. if options.revertbot_commit or (not options.revertbot and prompt("Would you like to commit?")): print "gcl commit " + str(revision) + " --no_presubmit --force" runGcl("commit " + str(revision) + " --no_presubmit --force") else: sys.exit(0)
3f75f2c63435159215c8cb70929e3c9a4140a79e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/3f75f2c63435159215c8cb70929e3c9a4140a79e/drover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 6350, 273, 702, 18, 266, 1097, 578, 702, 18, 2702, 225, 468, 9190, 2690, 3152, 1399, 5712, 18, 16448, 848, 506, 15345, 635, 468, 326, 31473, 502, 18, 4738, 585, 18, 10250, 67, 1785, 273, 315, 31505, 2207, 31505, 18, 16298, 5077, 18, 3341, 19, 343, 10896, 6, 4235, 16141, 67, 1785, 273, 10250, 67, 1785, 397, 2206, 26133, 19, 4816, 6, 22427, 20360, 67, 1785, 273, 10250, 67, 1785, 397, 2206, 18078, 11141, 7500, 19, 4816, 6, 18420, 67, 10687, 67, 10566, 1360, 273, 1053, 453, 3942, 1856, 67, 7473, 67, 7131, 916, 273, 1083, 225, 3331, 67, 10566, 1360, 273, 315, 9005, 502, 9548, 397, 609, 12, 13057, 13, 309, 702, 18, 7500, 30, 3331, 67, 10566, 1360, 1011, 7566, 9548, 397, 702, 18, 7500, 13, 225, 309, 486, 353, 13042, 23927, 50, 1444, 12, 21, 16, 25, 4672, 1172, 315, 6225, 1608, 358, 999, 622, 4520, 29537, 50, 1177, 404, 18, 25, 18, 92, 6, 2589, 18, 8593, 12, 21, 13, 225, 468, 1439, 326, 805, 1790, 309, 1915, 353, 279, 31473, 502, 18, 4738, 585, 18, 2552, 585, 67, 4951, 67, 309, 1140, 18, 803, 18, 1808, 2932, 9005, 502, 18, 4738, 6, 4672, 585, 273, 1696, 2932, 9005, 502, 18, 4738, 7923, 1196, 12, 768, 13, 585, 18, 4412, 1435, 309, 7527, 67, 10831, 30, 585, 67, 4951, 67, 273, 7527, 67, 10831, 225, 309, 702, 18, 266, 1097, 471, 702, 18, 7500, 30, 880, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 6350, 273, 702, 18, 266, 1097, 578, 702, 18, 2702, 225, 468, 9190, 2690, 3152, 1399, 5712, 18, 16448, 848, 506, 15345, 635, 468, 326, 31473, 502, 18, 4738, 585, 18, 10250, 67, 1785, 273, 315, 31505, 2207, 31505, 18, 16298, 5077, 18, 3341, 19, 343, 10896, 6, 4235, 16141, 67, 1785, 273, 10250, 67, 1785, 397, 2206, 26133, 19, 4816, 6, 22427, 20360, 67, 1785, 273, 10250, 67, 1785, 397, 2206, 18078, 11141, 7500, 19, 4816, 6, 18420, 67, 10687, 67, 10566, 1360, 273, 1053, 453, 3942, 1856, 67, 7473, 67, 7131, 916, 273, 1083, 225, 3331, 67, 10566, 1360, 273, 315, 9005, 502, 9548, 397, 609, 12, 13057, 13, 309, 2 ]
'''
"""
def mouserightclick(self, window_name, object_name): ''' Mouse right click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy @type object_name: string
2840728a35706bfd7cd3e236c75533448a30fc1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/2840728a35706bfd7cd3e236c75533448a30fc1d/mouse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7344, 1355, 750, 7475, 12, 2890, 16, 2742, 67, 529, 16, 733, 67, 529, 4672, 3536, 17013, 2145, 4682, 603, 392, 733, 18, 225, 632, 891, 2742, 67, 529, 30, 6076, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 632, 723, 2742, 67, 529, 30, 533, 632, 891, 733, 67, 529, 30, 1033, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 2965, 3824, 3904, 481, 991, 93, 632, 723, 733, 67, 529, 30, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7344, 1355, 750, 7475, 12, 2890, 16, 2742, 67, 529, 16, 733, 67, 529, 4672, 3536, 17013, 2145, 4682, 603, 392, 733, 18, 225, 632, 891, 2742, 67, 529, 30, 6076, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 632, 723, 2742, 67, 529, 30, 533, 632, 891, 733, 67, 529, 30, 1033, 508, 358, 2324, 364, 16, 3344, 1983, 508, 16, 511, 9081, 52, 1807, 508, 15797, 16, 578, 279, 9480, 4715, 18, 2965, 3824, 3904, 481, 991, 93, 632, 723, 733, 67, 529, 30, 533, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s += chunk
s.append(chunk)
def _safe_read(self, amt): """Read the number of bytes requested, compensating for partial reads.
e44e6f8d0905df90ccdbc34eea46d10061c401d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e44e6f8d0905df90ccdbc34eea46d10061c401d1/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4626, 67, 896, 12, 2890, 16, 25123, 4672, 3536, 1994, 326, 1300, 434, 1731, 3764, 16, 1161, 773, 1776, 364, 4702, 6838, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
api = ComponentAPI(keyfile=keyfile, certfile=certfile)
api = ComponentAPI(key_file=keyfile, cert_file=certfile)
def GetSlivers(data, config=None, plc=None): if not sfa: return keyfile, certfile = get_keypair(config) api = ComponentAPI(keyfile=keyfile, certfile=certfile) slivers = [sliver['name'] for sliver in data['slivers']] install_gids(api, slivers) install_trusted_certs(api)
a1b8649eb48bec7cddb692f115cdc806eddc9baf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6995/a1b8649eb48bec7cddb692f115cdc806eddc9baf/sfagids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3738, 6760, 12, 892, 16, 642, 33, 7036, 16, 886, 71, 33, 7036, 4672, 309, 486, 272, 507, 30, 327, 225, 28632, 16, 3320, 768, 273, 336, 67, 856, 6017, 12, 1425, 13, 1536, 273, 5435, 2557, 12, 856, 67, 768, 33, 856, 768, 16, 3320, 67, 768, 33, 7593, 768, 13, 2020, 6760, 273, 306, 2069, 1667, 3292, 529, 3546, 364, 2020, 1667, 316, 501, 3292, 2069, 6760, 3546, 65, 3799, 67, 75, 2232, 12, 2425, 16, 2020, 6760, 13, 3799, 67, 25247, 67, 24596, 12, 2425, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3738, 6760, 12, 892, 16, 642, 33, 7036, 16, 886, 71, 33, 7036, 4672, 309, 486, 272, 507, 30, 327, 225, 28632, 16, 3320, 768, 273, 336, 67, 856, 6017, 12, 1425, 13, 1536, 273, 5435, 2557, 12, 856, 67, 768, 33, 856, 768, 16, 3320, 67, 768, 33, 7593, 768, 13, 2020, 6760, 273, 306, 2069, 1667, 3292, 529, 3546, 364, 2020, 1667, 316, 501, 3292, 2069, 6760, 3546, 65, 3799, 67, 75, 2232, 12, 2425, 16, 2020, 6760, 13, 3799, 67, 25247, 67, 24596, 12, 2425, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
)
) def testRibbonWindingOrder( self ) : c = IECore.CurvesPrimitive( IECore.IntVectorData( [ 4 ] ), IECore.CubicBasisf.bSpline(), True, IECore.V3fVectorData( [ IECore.V3f( 1, 0, 0 ), IECore.V3f( 0, 0, 0 ), IECore.V3f( 0, 1, 0 ), IECore.V3f( 1, 1, 0 ), ] ) ) c["width"] = IECore.PrimitiveVariable( IECore.PrimitiveVariable.Interpolation.Constant, IECore.FloatData( 0.05 ) ) self.performTest( c, [ ( "doubleSided", IECore.BoolData( False ) ), ], [ ], os.path.dirname( __file__ ) + "/images/bSplineCircle.tif" ) def testLinearRibbonWindingOrder( self ) : c = IECore.CurvesPrimitive( IECore.IntVectorData( [ 4 ] ), IECore.CubicBasisf.linear(), True, IECore.V3fVectorData( [ IECore.V3f( 0.8, 0.2, 0 ), IECore.V3f( 0.2, 0.2, 0 ), IECore.V3f( 0.2, 0.8, 0 ), IECore.V3f( 0.8, 0.8, 0 ), ] ) ) c["width"] = IECore.PrimitiveVariable( IECore.PrimitiveVariable.Interpolation.Constant, IECore.FloatData( 0.05 ) ) self.performTest( c, [ ( "doubleSided", IECore.BoolData( False ) ), ], [ ], os.path.dirname( __file__ ) + "/images/linearPeriodicRibbon.tif" ) def tearDown( self ) : if os.path.exists( self.outputFileName ) : os.remove( self.outputFileName )
def testSeveralBSplineLines( self ) : self.performTest( IECore.CurvesPrimitive( IECore.IntVectorData( [ 4, 4 ] ), IECore.CubicBasisf.bSpline(), True, IECore.V3fVectorData( [ IECore.V3f( 0.4, 0.2, 0 ), IECore.V3f( 0.2, 0.2, 0 ), IECore.V3f( 0.2, 0.4, 0 ), IECore.V3f( 0.4, 0.4, 0 ),
f01067daadb468b78e0b7a626d849d5e5f697463 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/f01067daadb468b78e0b7a626d849d5e5f697463/CurvesPrimitiveTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1761, 502, 287, 12692, 412, 558, 5763, 12, 365, 262, 294, 225, 365, 18, 16092, 4709, 12, 10897, 4670, 18, 2408, 3324, 9840, 12, 225, 10897, 4670, 18, 1702, 5018, 751, 12, 306, 1059, 16, 1059, 308, 262, 16, 10897, 4670, 18, 39, 17616, 11494, 7396, 18, 70, 16881, 558, 9334, 1053, 16, 10897, 4670, 18, 58, 23, 74, 5018, 751, 12, 306, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 24, 16, 374, 18, 22, 16, 374, 262, 16, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 22, 16, 374, 18, 22, 16, 374, 262, 16, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 22, 16, 374, 18, 24, 16, 374, 262, 16, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 24, 16, 374, 18, 24, 16, 374, 262, 16, 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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 326, 981, 30, 1652, 1842, 1761, 502, 287, 12692, 412, 558, 5763, 12, 365, 262, 294, 225, 365, 18, 16092, 4709, 12, 10897, 4670, 18, 2408, 3324, 9840, 12, 225, 10897, 4670, 18, 1702, 5018, 751, 12, 306, 1059, 16, 1059, 308, 262, 16, 10897, 4670, 18, 39, 17616, 11494, 7396, 18, 70, 16881, 558, 9334, 1053, 16, 10897, 4670, 18, 58, 23, 74, 5018, 751, 12, 306, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 24, 16, 374, 18, 22, 16, 374, 262, 16, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 22, 16, 374, 18, 22, 16, 374, 262, 16, 10897, 4670, 18, 58, 23, 74, 12, 374, 18, 22, 16, 374, 18, 24, 16, 374, 262, 16, 2 ]
self.assert_(msg.get_sequences() == ['unseen', 'flagged'])
self.assertEqual(msg.get_sequences(), ['unseen', 'flagged'])
def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') self.assertEqual(msg.get_sequences(), ['unseen']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.remove_sequence('unseen') self.assertEqual(msg.get_sequences(), ['flagged']) msg.add_sequence('foobar') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.remove_sequence('replied') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.set_sequences(['foobar', 'replied']) self.assert_(msg.get_sequences() == ['foobar', 'replied'])
fc9997a71def3361507ae020d7f678e347d8646b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/fc9997a71def3361507ae020d7f678e347d8646b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17190, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 8463, 1234, 273, 14187, 18, 49, 44, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 542, 67, 17190, 12, 3292, 617, 947, 297, 19486, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 617, 947, 297, 19486, 1234, 18, 542, 67, 17190, 3816, 5717, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 1289, 67, 6178, 2668, 318, 15156, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 318, 15156, 19486, 1234, 18, 1289, 67, 6178, 2668, 6420, 2423, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 318, 15156, 2187, 296, 6420, 2423, 19486, 1234, 18, 1289, 67, 6178, 2668, 6420, 2423, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 318, 15156, 2187, 296, 6420, 2423, 19486, 1234, 18, 4479, 67, 6178, 2668, 318, 15156, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 6420, 2423, 19486, 1234, 18, 1289, 67, 6178, 2668, 617, 947, 297, 6134, 365, 18, 11231, 67, 12, 3576, 18, 588, 67, 17190, 1435, 422, 10228, 6420, 2423, 2187, 296, 617, 947, 297, 19486, 1234, 18, 4479, 67, 6178, 2668, 266, 3110, 6134, 365, 18, 11231, 67, 12, 3576, 18, 588, 67, 17190, 1435, 422, 10228, 6420, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17190, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 8463, 1234, 273, 14187, 18, 49, 44, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 542, 67, 17190, 12, 3292, 617, 947, 297, 19486, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 617, 947, 297, 19486, 1234, 18, 542, 67, 17190, 3816, 5717, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 5378, 13, 1234, 18, 1289, 67, 6178, 2668, 318, 15156, 6134, 365, 18, 11231, 5812, 12, 3576, 18, 588, 67, 17190, 9334, 10228, 318, 15156, 19486, 1234, 18, 1289, 67, 6178, 2668, 2 ]
if(log is not None): print >> log, " Bond RMSD: %.3f" % bond_rmsd
print >> log, " Bond RMSD: %.3f" % bond_rmsd
def run_coordinate_refinement( geometry_restraints_manager, selection_variable, density_map, real_space_gradients_delta, work_params, pdb_atoms=None, sites_cart=None, home_restraints_list=[], work_scatterers=None, unit_cell=None, d_min=None, write_pdb_callback=None, log=None): assert [pdb_atoms, sites_cart].count(None)==1 if (work_scatterers is not None): assert unit_cell is not None assert d_min is not None best_info = None if(pdb_atoms is not None): sites_cart_start = pdb_atoms.extract_xyz() site_labels = [atom.id_str() for atom in pdb_atoms] else: sites_cart_start = sites_cart grmp = geometry_restraints_manager_plus( manager=geometry_restraints_manager, home_sites_cart=sites_cart_start, home_restraints_list=home_restraints_list) if(log is not None): print >> log, "Before coordinate refinement:" grmp.energies_sites(sites_cart=sites_cart_start).show(f=log) print >> log log.flush() rstw_params = work_params.coordinate_refinement.real_space_target_weights if (rstw_params.number_of_samples is None): rstw_list = [work_params.real_space_target_weight] else: rstw_list = [rstw_params.first_sample + i * rstw_params.sampling_step for i in xrange(rstw_params.number_of_samples)] lbfgs_termination_params = scitbx.lbfgs.termination_parameters( max_iterations=work_params.coordinate_refinement .lbfgs_max_iterations) lbfgs_exception_handling_params = \ scitbx.lbfgs.exception_handling_parameters( ignore_line_search_failed_step_at_lower_bound=True) bond_rmsd_list = [] for rstw in rstw_list: refined = maptbx.real_space_refinement_simple.lbfgs( sites_cart=sites_cart_start, density_map=density_map, selection_variable=selection_variable, geometry_restraints_manager=grmp, real_space_target_weight=rstw, real_space_gradients_delta=real_space_gradients_delta, lbfgs_termination_params=lbfgs_termination_params, lbfgs_exception_handling_params=lbfgs_exception_handling_params) if(log is not None): print >> log, "After coordinate refinement" \ " with real-space target weight %.1f:" % rstw grmp.energies_sites(sites_cart=refined.sites_cart).show(f=log) bond_proxies = grmp.pair_proxies().bond_proxies if(log is not None): bond_proxies.show_sorted( by_value="residual", sites_cart=refined.sites_cart, site_labels=site_labels, f=log, prefix=" ", max_items=3) print >> log print >> log, " number_of_function_evaluations:", \ refined.number_of_function_evaluations print >> log, " real+geo target start: %.6g" % refined.f_start print >> log, " real+geo target final: %.6g" % refined.f_final deltas = bond_proxies.deltas(sites_cart=refined.sites_cart) deltas_abs = flex.abs(deltas) deltas_abs_sorted = deltas_abs.select( flex.sort_permutation(deltas_abs), reverse=True) wabr_params = rstw_params.worst_acceptable_bond_rmsd acceptable = ( flex.mean(deltas_abs_sorted[:wabr_params.pool_size]) < wabr_params.max_pool_average) bond_rmsd = flex.mean_sq(deltas)**0.5 bond_rmsd_list.append(bond_rmsd) if(log is not None): print >> log, " Bond RMSD: %.3f" % bond_rmsd # if (work_scatterers is None): region_cc = None else: region_cc = maptbx.region_density_correlation( large_unit_cell=unit_cell, large_d_min=d_min, large_density_map=density_map, sites_cart=refined.sites_cart_variable, site_radii=flex.double(refined.sites_cart_variable.size(), 1), work_scatterers=work_scatterers) # rmsd_diff = abs(rstw_params.bond_rmsd_target - bond_rmsd) if ( best_info is None or best_info.rmsd_diff > rmsd_diff and (acceptable or not best_info.acceptable)): best_info = group_args( rstw=rstw, refined=refined, acceptable=acceptable, rmsd_diff=rmsd_diff, region_cc=region_cc, sites_cart=refined.sites_cart) if(log is not None): print >> log if (best_info is not None): if(log is not None): print >> log, "Table of real-space target weights vs. bond RMSD:" print >> log, " weight RMSD" for w,d in zip(rstw_list, bond_rmsd_list): print >> log, " %6.1f %5.3f" % (w,d) print >> log, "Best real-space target weight: %.1f" % best_info.rstw print >> log, \ "Associated refined final value: %.6g" % best_info.refined.f_final if (best_info.region_cc is not None): print >> log, "Associated region correlation: %.4f" % best_info.region_cc print >> log if(pdb_atoms is not None): pdb_atoms.set_xyz(new_xyz=refined.sites_cart) else: sites_cart = refined.sites_cart if (write_pdb_callback is not None): write_pdb_callback(situation="after_best_weight_determination") # fgm_params = work_params.coordinate_refinement \ .finishing_geometry_minimization if (fgm_params.cycles_max is not None and fgm_params.cycles_max > 0): if(log is not None): print >> log, "As previously obtained with target weight %.1f:" \ % best_info.rstw grmp.energies_sites(sites_cart=refined.sites_cart).show( f=log, prefix=" ") print >> log, "Finishing refinement to idealize geometry:" print >> log, " number of function" print >> log, " weight evaluations cycle RMSD" number_of_fgm_cycles = 0 rstw = best_info.rstw * fgm_params.first_weight_scale sites_cart_start = best_info.refined.sites_cart.deep_copy() for i_cycle in xrange(fgm_params.cycles_max): fgm_refined = maptbx.real_space_refinement_simple.lbfgs( sites_cart=sites_cart_start, density_map=density_map, selection_variable=selection_variable, geometry_restraints_manager=grmp, energies_sites_flags=cctbx.geometry_restraints.flags.flags( default=True, dihedral=fgm_params.dihedral_restraints), real_space_target_weight=rstw, real_space_gradients_delta=real_space_gradients_delta, lbfgs_termination_params=lbfgs_termination_params, lbfgs_exception_handling_params=lbfgs_exception_handling_params) cycle_rmsd = sites_cart_start.rms_difference(fgm_refined.sites_cart) if(log is not None): print >> log, " %6.1f %10d %6.3f" % ( rstw, fgm_refined.number_of_function_evaluations, cycle_rmsd) number_of_fgm_cycles += 1 rstw *= fgm_params.cycle_weight_multiplier if (cycle_rmsd < 1.e-4): break if (fgm_params.superpose_cycle_end_with_cycle_start): fit = scitbx.math.superpose.least_squares_fit( reference_sites=best_info.refined.sites_cart, other_sites=fgm_refined.sites_cart) fgm_refined.sites_cart = fit.other_sites_best_fit() sites_cart_start = fgm_refined.sites_cart.deep_copy() if(log is not None): print >> log, "After %d refinements to idealize geometry:" % ( number_of_fgm_cycles) grmp.energies_sites(sites_cart=fgm_refined.sites_cart).show( f=log, prefix=" ") if (work_scatterers is None): fgm_region_cc = None else: fgm_region_cc = maptbx.region_density_correlation( large_unit_cell=unit_cell, large_d_min=d_min, large_density_map=density_map, sites_cart=fgm_refined.sites_cart_variable, site_radii=flex.double(fgm_refined.sites_cart_variable.size(), 1), work_scatterers=work_scatterers) if(log is not None): print >> log, " Associated region correlation: %.4f" % fgm_region_cc if(log is not None): print >> log best_info.fgm_refined = fgm_refined best_info.fgm_region_cc = fgm_region_cc if(pdb_atoms is not None): pdb_atoms.set_xyz(new_xyz=fgm_refined.sites_cart) else: best_info.sites_cart = fgm_refined.sites_cart if (write_pdb_callback is not None): write_pdb_callback(situation="after_finishing_geo_min") else: best_info.fgm_refined = None best_info.fgm_region_cc = None return best_info
3052a0f1b97a4f3f9518cb82ebd62681810665a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/3052a0f1b97a4f3f9518cb82ebd62681810665a1/lockit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 29191, 67, 266, 926, 820, 12, 5316, 67, 455, 313, 1598, 87, 67, 4181, 16, 4421, 67, 6105, 16, 12142, 67, 1458, 16, 2863, 67, 2981, 67, 9974, 5828, 67, 9878, 16, 1440, 67, 2010, 16, 10892, 67, 14937, 33, 7036, 16, 9180, 67, 11848, 33, 7036, 16, 6382, 67, 455, 313, 1598, 87, 67, 1098, 22850, 6487, 1440, 67, 31320, 414, 33, 7036, 16, 2836, 67, 3855, 33, 7036, 16, 302, 67, 1154, 33, 7036, 16, 1045, 67, 17414, 67, 3394, 33, 7036, 16, 613, 33, 7036, 4672, 1815, 306, 17414, 67, 14937, 16, 9180, 67, 11848, 8009, 1883, 12, 7036, 13, 631, 21, 309, 261, 1252, 67, 31320, 414, 353, 486, 599, 4672, 1815, 2836, 67, 3855, 353, 486, 599, 1815, 302, 67, 1154, 353, 486, 599, 3796, 67, 1376, 273, 599, 309, 12, 17414, 67, 14937, 353, 486, 599, 4672, 9180, 67, 11848, 67, 1937, 273, 10892, 67, 14937, 18, 8004, 67, 17177, 1435, 2834, 67, 5336, 273, 306, 7466, 18, 350, 67, 701, 1435, 364, 3179, 316, 10892, 67, 14937, 65, 469, 30, 9180, 67, 11848, 67, 1937, 273, 9180, 67, 11848, 3821, 1291, 273, 5316, 67, 455, 313, 1598, 87, 67, 4181, 67, 10103, 12, 3301, 33, 14330, 67, 455, 313, 1598, 87, 67, 4181, 16, 6382, 67, 12180, 67, 11848, 33, 12180, 67, 11848, 67, 1937, 16, 6382, 67, 455, 313, 1598, 87, 67, 1098, 33, 8712, 67, 455, 313, 1598, 87, 67, 1098, 13, 309, 12, 1330, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 29191, 67, 266, 926, 820, 12, 5316, 67, 455, 313, 1598, 87, 67, 4181, 16, 4421, 67, 6105, 16, 12142, 67, 1458, 16, 2863, 67, 2981, 67, 9974, 5828, 67, 9878, 16, 1440, 67, 2010, 16, 10892, 67, 14937, 33, 7036, 16, 9180, 67, 11848, 33, 7036, 16, 6382, 67, 455, 313, 1598, 87, 67, 1098, 22850, 6487, 1440, 67, 31320, 414, 33, 7036, 16, 2836, 67, 3855, 33, 7036, 16, 302, 67, 1154, 33, 7036, 16, 1045, 67, 17414, 67, 3394, 33, 7036, 16, 613, 33, 7036, 4672, 1815, 306, 17414, 67, 14937, 16, 9180, 67, 11848, 8009, 1883, 12, 7036, 13, 631, 21, 309, 261, 1252, 67, 31320, 414, 353, 486, 599, 4672, 1815, 2 ]
for filename in zip.cat('/'):
files = zip.cat('/') files.extend(zip.cat('/Pictures')) for filename in files:
def manifest_xml(self, zip): content = """<?xml version="1.0" encoding="UTF-8"?>
33a7c4866e2877b824abcc7c913f1ca535a0f47f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/33a7c4866e2877b824abcc7c913f1ca535a0f47f/preso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5643, 67, 2902, 12, 2890, 16, 3144, 4672, 913, 273, 3536, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 34, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5643, 67, 2902, 12, 2890, 16, 3144, 4672, 913, 273, 3536, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 34, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
files = ['login.c', 'LoginLibrary.py', 'LoginTests.tsv', 'Makefile', 'README', 'README.html']
files = ['login.c', 'LoginLibrary.py', 'LoginTests.tsv', 'Makefile', 'README.txt']
def create_distribution(): outpath = create_doc() # we are in doc/examples/c_example after this outdir = 'robotframework-c-example-%d%02d%02d' % time.localtime()[:3] files = ['login.c', 'LoginLibrary.py', 'LoginTests.tsv', 'Makefile', 'README', 'README.html'] print 'Creating distribution directory ...' if os.path.exists(outdir): print 'Removing previous distribution' shutil.rmtree(outdir) os.mkdir(outdir) for name in files: print "Copying '%s' -> '%s'" % (name, outdir) shutil.copy(name, outdir) ug2html.zip_distribution(outdir)
ba95e8644209c10e6dcf42fd5c5e971eddea4c7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/ba95e8644209c10e6dcf42fd5c5e971eddea4c7c/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 16279, 13332, 596, 803, 273, 752, 67, 2434, 1435, 225, 468, 732, 854, 316, 997, 19, 16858, 19, 71, 67, 8236, 1839, 333, 15398, 273, 296, 28870, 12303, 17, 71, 17, 8236, 6456, 72, 9, 3103, 72, 9, 3103, 72, 11, 738, 813, 18, 3729, 957, 1435, 10531, 23, 65, 1390, 273, 10228, 5819, 18, 71, 2187, 296, 5358, 9313, 18, 2074, 2187, 296, 5358, 14650, 18, 25338, 2187, 296, 6464, 768, 2187, 296, 6949, 958, 18, 5830, 3546, 1172, 296, 11092, 7006, 1867, 25956, 309, 1140, 18, 803, 18, 1808, 12, 659, 1214, 4672, 1172, 296, 18939, 2416, 7006, 11, 11060, 18, 86, 17371, 12, 659, 1214, 13, 1140, 18, 26686, 12, 659, 1214, 13, 364, 508, 316, 1390, 30, 1172, 315, 2951, 310, 1995, 87, 11, 317, 1995, 87, 4970, 738, 261, 529, 16, 15398, 13, 11060, 18, 3530, 12, 529, 16, 15398, 13, 19645, 22, 2620, 18, 4450, 67, 16279, 12, 659, 1214, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 16279, 13332, 596, 803, 273, 752, 67, 2434, 1435, 225, 468, 732, 854, 316, 997, 19, 16858, 19, 71, 67, 8236, 1839, 333, 15398, 273, 296, 28870, 12303, 17, 71, 17, 8236, 6456, 72, 9, 3103, 72, 9, 3103, 72, 11, 738, 813, 18, 3729, 957, 1435, 10531, 23, 65, 1390, 273, 10228, 5819, 18, 71, 2187, 296, 5358, 9313, 18, 2074, 2187, 296, 5358, 14650, 18, 25338, 2187, 296, 6464, 768, 2187, 296, 6949, 958, 18, 5830, 3546, 1172, 296, 11092, 7006, 1867, 25956, 309, 1140, 18, 803, 18, 1808, 12, 659, 1214, 4672, 1172, 296, 18939, 2416, 7006, 11, 11060, 18, 86, 17371, 12, 659, 1214, 13, 1140, 18, 26686, 12, 659, 1214, 13, 2 ]
Subwidgets Class ---------- ----- label Label entry Entry"""
Subwidgets Class ---------- ----- label Label entry Entry"""
def __init__ (self,master=None,cnf={}, **kw):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 7525, 33, 7036, 16, 10305, 74, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'base','include'))
'core','include'))
def get_numpy_include_dirs(): # numpy_include_dirs are set by numpy/base/setup.py, otherwise [] include_dirs = Configuration.numpy_include_dirs[:] if not include_dirs: import numpy if numpy.show_core_config is None: # running from numpy_core source directory include_dirs.append(os.path.join(os.path.dirname(numpy.__file__), 'base','include')) else: # using installed numpy core headers import numpy.base as base include_dirs.append(os.path.join(os.path.dirname(base.__file__),'include')) # else running numpy/base/setup.py return include_dirs
75077ce6023283d25222768f177e52c5cd0a7904 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/75077ce6023283d25222768f177e52c5cd0a7904/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15974, 67, 6702, 67, 8291, 13332, 468, 3972, 67, 6702, 67, 8291, 854, 444, 635, 3972, 19, 1969, 19, 8401, 18, 2074, 16, 3541, 5378, 2341, 67, 8291, 273, 4659, 18, 15974, 67, 6702, 67, 8291, 10531, 65, 309, 486, 2341, 67, 8291, 30, 1930, 3972, 309, 3972, 18, 4500, 67, 3644, 67, 1425, 353, 599, 30, 468, 3549, 628, 3972, 67, 3644, 1084, 1867, 2341, 67, 8291, 18, 6923, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 15974, 16186, 768, 972, 3631, 296, 3644, 17023, 6702, 26112, 469, 30, 468, 1450, 5876, 3972, 2922, 1607, 1930, 3972, 18, 1969, 487, 1026, 2341, 67, 8291, 18, 6923, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 1969, 16186, 768, 972, 3631, 11, 6702, 26112, 468, 469, 3549, 3972, 19, 1969, 19, 8401, 18, 2074, 327, 2341, 67, 8291, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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486, 2341, 67, 8291, 30, 1930, 3972, 309, 3972, 18, 4500, 67, 3644, 67, 1425, 353, 599, 30, 468, 3549, 628, 3972, 67, 3644, 1084, 1867, 2341, 67, 8291, 18, 6923, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 15974, 16186, 768, 972, 3631, 296, 3644, 17023, 6702, 26112, 469, 30, 468, 1450, 5876, 3972, 2922, 1607, 1930, 3972, 18, 1969, 487, 1026, 2341, 67, 8291, 18, 6923, 12, 538, 18, 803, 2 ]
os.system('%s "%s"'%(PCMANFM,path))
os.system('%s "%s" &'%(PCMANFM,path))
def browse_folder(self): """Browse folder""" if self.app.children: child = self.app.childActive if hasattr(child,'fileName'): path = info.dirname(child.fileName) if not os.path.exists(path): path = os.getcwd() else: path = os.getcwd() if os.path.exists(THUNAR): os.system('%s "%s"'%(THUNAR,path)) elif os.path.exists(NAUTILUS): os.system('%s "%s"'%(NAUTILUS,path)) elif os.path.exists(DOLPHIN): os.system('%s "%s"'%(DOLPHIN,path)) elif os.path.exists(KONQUEROR): os.system('%s "%s"'%(KONQUEROR,path)) elif os.path.exists(PCMANFM): os.system('%s "%s"'%(PCMANFM,path)) else: if path[0] == '/': path = 'file://'+path webbrowser.open(path)
3297a811fde121a34b04e766bb0d64586dae5601 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2464/3297a811fde121a34b04e766bb0d64586dae5601/Parent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 5609, 12, 2890, 4672, 3536, 27304, 3009, 8395, 309, 365, 18, 2910, 18, 5906, 30, 1151, 6647, 273, 365, 18, 2910, 18, 3624, 3896, 309, 3859, 12, 3624, 11189, 17812, 11, 4672, 589, 3639, 273, 1123, 18, 12287, 12, 3624, 18, 17812, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 589, 565, 273, 1140, 18, 588, 11089, 1435, 469, 30, 589, 565, 273, 1140, 18, 588, 11089, 1435, 309, 1140, 18, 803, 18, 1808, 12, 2455, 2124, 985, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 5187, 17105, 2455, 2124, 985, 16, 803, 3719, 1327, 1140, 18, 803, 18, 1808, 12, 11277, 1693, 2627, 3378, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 5187, 17105, 11277, 1693, 2627, 3378, 16, 803, 3719, 1327, 1140, 18, 803, 18, 1808, 12, 40, 1741, 8939, 706, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 5187, 17105, 40, 1741, 8939, 706, 16, 803, 3719, 1327, 1140, 18, 803, 18, 1808, 12, 47, 673, 3500, 654, 916, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 5187, 17105, 47, 673, 3500, 654, 916, 16, 803, 3719, 1327, 1140, 18, 803, 18, 1808, 12, 3513, 9560, 42, 49, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 6, 473, 11, 17105, 3513, 9560, 42, 49, 16, 803, 3719, 469, 30, 309, 589, 63, 20, 65, 422, 2023, 30, 589, 273, 296, 768, 8931, 15, 803, 3311, 11213, 18, 3190, 12, 803, 13, 2, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 5609, 12, 2890, 4672, 3536, 27304, 3009, 8395, 309, 365, 18, 2910, 18, 5906, 30, 1151, 6647, 273, 365, 18, 2910, 18, 3624, 3896, 309, 3859, 12, 3624, 11189, 17812, 11, 4672, 589, 3639, 273, 1123, 18, 12287, 12, 3624, 18, 17812, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 589, 565, 273, 1140, 18, 588, 11089, 1435, 469, 30, 589, 565, 273, 1140, 18, 588, 11089, 1435, 309, 1140, 18, 803, 18, 1808, 12, 2455, 2124, 985, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 5187, 17105, 2455, 2124, 985, 16, 803, 3719, 1327, 1140, 18, 803, 18, 1808, 12, 11277, 1693, 2627, 3378, 4672, 1140, 18, 4299, 29909, 87, 2213, 87, 2 ]
def fetch(): return self.client.fetchSimplifiedBody(self.messages, uid=uid)
self.function = self.client.fetchSimplifiedBody
def fetch(): return self.client.fetchSimplifiedBody(self.messages, uid=uid)
fd0ab51569d572065ee4a73067158b7e009de90d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/fd0ab51569d572065ee4a73067158b7e009de90d/test_imap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 13332, 327, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 13332, 327, 365, 18, 2625, 18, 5754, 24490, 939, 2250, 12, 2890, 18, 6833, 16, 4555, 33, 1911, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
" error = context.catch(e, Reference(output))",
" error = context.catch(e, Reference(output.getvalue()))",
code.write("def _(context):", code.indent, "stash = context.stash()", "output = StringIO()", "try:", code.indent, "# BLOCK: {", block, "# }", code.unindent, "except base.Exception, e:", " error = context.catch(e, Reference(output))", " if error.type != 'return':", " raise error", "return output.getvalue()")
2f690578bd6ee4e422e65c5128f4e8c6d02f217b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1390/2f690578bd6ee4e422e65c5128f4e8c6d02f217b/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 981, 18, 2626, 2932, 536, 389, 12, 2472, 13, 2773, 16, 981, 18, 9355, 16, 315, 25915, 273, 819, 18, 25915, 1435, 3113, 315, 2844, 273, 15777, 1435, 3113, 315, 698, 2773, 16, 981, 18, 9355, 16, 6619, 14073, 30, 288, 3113, 1203, 16, 6619, 289, 3113, 981, 18, 318, 9355, 16, 315, 14137, 1026, 18, 503, 16, 425, 2773, 16, 315, 555, 273, 819, 18, 14683, 12, 73, 16, 6268, 12, 2844, 18, 588, 1132, 10756, 2225, 16, 315, 309, 555, 18, 723, 480, 296, 2463, 11, 2773, 16, 315, 225, 1002, 555, 3113, 315, 2463, 876, 18, 588, 1132, 1435, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 981, 18, 2626, 2932, 536, 389, 12, 2472, 13, 2773, 16, 981, 18, 9355, 16, 315, 25915, 273, 819, 18, 25915, 1435, 3113, 315, 2844, 273, 15777, 1435, 3113, 315, 698, 2773, 16, 981, 18, 9355, 16, 6619, 14073, 30, 288, 3113, 1203, 16, 6619, 289, 3113, 981, 18, 318, 9355, 16, 315, 14137, 1026, 18, 503, 16, 425, 2773, 16, 315, 555, 273, 819, 18, 14683, 12, 73, 16, 6268, 12, 2844, 18, 588, 1132, 10756, 2225, 16, 315, 309, 555, 18, 723, 480, 296, 2463, 11, 2773, 16, 315, 225, 1002, 555, 3113, 315, 2463, 876, 18, 588, 1132, 1435, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
d0 = base.replace(minute=3, tzinfo=OperandDependentOffset()) d1 = base.replace(minute=9, tzinfo=OperandDependentOffset()) d2 = base.replace(minute=11, tzinfo=OperandDependentOffset()) for x in d0, d1, d2: for y in d0, d1, d2: got = cmp(x, y) if (x is d0 or x is d1) and (y is d0 or y is d1): expected = 0 elif x is y is d2: expected = 0 elif x is d2: expected = -1 else: assert y is d2 expected = 1 self.assertEqual(got, expected)
if cls is not timetz: d0 = base.replace(minute=3, tzinfo=OperandDependentOffset()) d1 = base.replace(minute=9, tzinfo=OperandDependentOffset()) d2 = base.replace(minute=11, tzinfo=OperandDependentOffset()) for x in d0, d1, d2: for y in d0, d1, d2: got = cmp(x, y) if (x is d0 or x is d1) and (y is d0 or y is d1): expected = 0 elif x is y is d2: expected = 0 elif x is d2: expected = -1 else: assert y is d2 expected = 1 self.assertEqual(got, expected)
def utcoffset(self, t): if t.minute < 10: return t.minute # d0 and d1 equal after adjustment else: return 59 # d2 off in the weeds
c7f6862684ec7b935f2913e3e52aab59e378f82b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c7f6862684ec7b935f2913e3e52aab59e378f82b/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9439, 3348, 12, 2890, 16, 268, 4672, 309, 268, 18, 17637, 411, 1728, 30, 327, 268, 18, 17637, 468, 302, 20, 471, 302, 21, 3959, 1839, 18335, 469, 30, 327, 14995, 4202, 468, 302, 22, 3397, 316, 326, 732, 9765, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9439, 3348, 12, 2890, 16, 268, 4672, 309, 268, 18, 17637, 411, 1728, 30, 327, 268, 18, 17637, 468, 302, 20, 471, 302, 21, 3959, 1839, 18335, 469, 30, 327, 14995, 4202, 468, 302, 22, 3397, 316, 326, 732, 9765, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if match: print 'MATCH:' if match else 'NO MATCH:', meld.content + ' ' + hand.mjStr + ' against ' + self.rule.name, self.rule.value
def appliesToMeld(self, hand, meld): """does this regex match?""" if isinstance(self, RegexIgnoringCase): checkStr = meld.content.lower() + ' ' + hand.mjStr else: checkStr = meld.content + ' ' + hand.mjStr match = self.compiled.match(checkStr)
2352984d1cedc2fdc4321b71adc2d12b463885ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/2352984d1cedc2fdc4321b71adc2d12b463885ed/scoringengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10294, 774, 49, 488, 12, 2890, 16, 948, 16, 312, 488, 4672, 3536, 20657, 333, 3936, 845, 35, 8395, 309, 1549, 12, 2890, 16, 15078, 21702, 2449, 4672, 866, 1585, 273,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10294, 774, 49, 488, 12, 2890, 16, 948, 16, 312, 488, 4672, 3536, 20657, 333, 3936, 845, 35, 8395, 309, 1549, 12, 2890, 16, 15078, 21702, 2449, 4672, 866, 1585, 273, 312, 488, 18, 1745, 18, 8167, 1435, 397, 296, 296, 397, 948, 18, 81, 78, 1585, 469, 30, 866, 1585, 273, 312, 488, 18, 1745, 397, 296, 296, 397, 948, 18, 81, 78, 1585, 845, 273, 365, 18, 19397, 18, 1916, 12, 1893, 1585, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _login(self, *args, **kwargs): d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, args[0])
d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, jdict)
def _login(self, *args, **kwargs): d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, args[0]) return d
53db6e6d94620c51267e1f2f876662c701f8b791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/53db6e6d94620c51267e1f2f876662c701f8b791/test_remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 302, 273, 365, 18, 6848, 18, 5819, 12, 2890, 18, 29260, 16, 261, 5733, 18, 2404, 429, 9334, 366, 74, 3719, 302, 18, 1289, 2428, 12, 2890, 6315, 19385, 67, 267, 13, 302, 18, 1289, 2428, 12, 2890, 6315, 4688, 67, 7307, 16, 525, 1576, 13, 225, 327, 302, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 302, 273, 365, 18, 6848, 18, 5819, 12, 2890, 18, 29260, 16, 261, 5733, 18, 2404, 429, 9334, 366, 74, 3719, 302, 18, 1289, 2428, 12, 2890, 6315, 19385, 67, 267, 13, 302, 18, 1289, 2428, 12, 2890, 6315, 4688, 67, 7307, 16, 525, 1576, 13, 225, 327, 302, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s1 = "" and game.thawed and _("thawed ")
s1 = (game.thawed and _("thawed ")) or ""
def report(): # report on general game status scanner.chew() s1 = "" and game.thawed and _("thawed ") s2 = {1:"short", 2:"medium", 4:"long"}[game.length] s3 = (None, _("novice"), _("fair"), _("good"), _("expert"), _("emeritus"))[game.skill] prout(_("You %s a %s%s %s game.") % ((_("were playing"), _("are playing"))[game.alldone], s1, s2, s3)) if game.skill>SKILL_GOOD and game.thawed and not game.alldone: prout(_("No plaque is allowed.")) if game.tourn: prout(_("This is tournament game %d.") % game.tourn) prout(_("Your secret password is \"%s\"") % game.passwd) proutn(_("%d of %d Klingons have been killed") % (((game.inkling + game.incom + game.inscom) - (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)), (game.inkling + game.incom + game.inscom))) if game.incom - len(game.state.kcmdr): prout(_(", including %d Commander%s.") % (game.incom - len(game.state.kcmdr), (_("s"), "")[(game.incom - len(game.state.kcmdr))==1])) elif game.inkling - game.state.remkl + (game.inscom - game.state.nscrem) > 0: prout(_(", but no Commanders.")) else: prout(".") if game.skill > SKILL_FAIR: prout(_("The Super Commander has %sbeen destroyed.") % ("", _("not "))[game.state.nscrem]) if len(game.state.baseq) != game.inbase: proutn(_("There ")) if game.inbase-len(game.state.baseq)==1: proutn(_("has been 1 base")) else: proutn(_("have been %d bases") % (game.inbase-len(game.state.baseq))) prout(_(" destroyed, %d remaining.") % len(game.state.baseq)) else: prout(_("There are %d bases.") % game.inbase) if communicating() or game.iseenit: # Don't report this if not seen and # either the radio is dead or not at base! attackreport(False) game.iseenit = True if game.casual: prout(_("%d casualt%s suffered so far.") % (game.casual, ("y", "ies")[game.casual!=1])) if game.nhelp: prout(_("There were %d call%s for help.") % (game.nhelp, ("" , _("s"))[game.nhelp!=1])) if game.ship == 'E': proutn(_("You have ")) if game.nprobes: proutn("%d" % (game.nprobes)) else: proutn(_("no")) proutn(_(" deep space probe")) if game.nprobes!=1: proutn(_("s")) prout(".") if communicating() and is_scheduled(FDSPROB): if game.isarmed: proutn(_("An armed deep space probe is in ")) else: proutn(_("A deep space probe is in ")) prout("Quadrant %s." % game.probec) if game.icrystl: if game.cryprob <= .05: prout(_("Dilithium crystals aboard ship... not yet used.")) else: i=0 ai = 0.05 while game.cryprob > ai: ai *= 2.0 i += 1 prout(_("Dilithium crystals have been used %d time%s.") % \ (i, (_("s"), "")[i==1])) skip(1)
65ebc303124b932f39a34d20faaa702d07854b82 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/65ebc303124b932f39a34d20faaa702d07854b82/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 13332, 468, 2605, 603, 7470, 7920, 1267, 7683, 18, 343, 359, 1435, 272, 21, 273, 261, 13957, 18, 451, 2219, 329, 471, 389, 2932, 451, 2219, 329, 315, 3719, 578, 1408, 272, 22, 273, 288, 21, 2773, 6620, 3113, 576, 2773, 19011, 3113, 1059, 2773, 5748, 6, 20294, 13957, 18, 2469, 65, 272, 23, 273, 261, 7036, 16, 389, 2932, 2135, 633, 6, 3631, 389, 2932, 507, 481, 6, 3631, 389, 2932, 19747, 6, 3631, 389, 2932, 338, 672, 6, 3631, 389, 2932, 351, 264, 305, 407, 6, 3719, 63, 13957, 18, 7771, 737, 65, 450, 322, 24899, 2932, 6225, 738, 87, 279, 738, 87, 9, 87, 738, 87, 7920, 1199, 13, 738, 14015, 67, 2932, 91, 822, 23982, 6, 3631, 389, 2932, 834, 23982, 6, 3719, 63, 13957, 18, 454, 8734, 6487, 272, 21, 16, 272, 22, 16, 272, 23, 3719, 309, 7920, 18, 7771, 737, 34, 11129, 15125, 67, 16387, 1212, 471, 7920, 18, 451, 2219, 329, 471, 486, 7920, 18, 454, 8734, 30, 450, 322, 24899, 2932, 2279, 886, 14886, 353, 2935, 1199, 3719, 309, 7920, 18, 869, 321, 30, 450, 322, 24899, 2932, 2503, 353, 358, 30751, 7920, 738, 72, 1199, 13, 738, 7920, 18, 869, 321, 13, 450, 322, 24899, 2932, 15446, 4001, 2201, 353, 22049, 87, 2412, 7923, 738, 7920, 18, 24002, 13, 450, 322, 82, 24899, 27188, 72, 434, 738, 72, 1475, 2456, 7008, 1240, 2118, 24859, 7923, 738, 261, 12443, 13957, 18, 754, 2456, 397, 7920, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 13332, 468, 2605, 603, 7470, 7920, 1267, 7683, 18, 343, 359, 1435, 272, 21, 273, 261, 13957, 18, 451, 2219, 329, 471, 389, 2932, 451, 2219, 329, 315, 3719, 578, 1408, 272, 22, 273, 288, 21, 2773, 6620, 3113, 576, 2773, 19011, 3113, 1059, 2773, 5748, 6, 20294, 13957, 18, 2469, 65, 272, 23, 273, 261, 7036, 16, 389, 2932, 2135, 633, 6, 3631, 389, 2932, 507, 481, 6, 3631, 389, 2932, 19747, 6, 3631, 389, 2932, 338, 672, 6, 3631, 389, 2932, 351, 264, 305, 407, 6, 3719, 63, 13957, 18, 7771, 737, 65, 450, 322, 24899, 2932, 6225, 738, 87, 279, 738, 87, 9, 87, 738, 87, 7920, 1199, 13, 738, 14015, 67, 2932, 91, 2 ]
Filters out trips which do not follow the most common stop sequences and sets their trip_type attribute accordingly. <GTFS.zip> is overwritten with the modifed GTFS file unless the --output option is used.
Sets the trip_type for trips that have an unusual pattern for a route. <GTFS.zip> is overwritten with the modifed GTFS file unless the --output option is used. For more information see http://code.google.com/p/googletransitdatafeed/wiki/UnusualTripFilter
def main(): usage = \
ae74de2f81981085fc5b61d3d5243315b9ba2afe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6829/ae74de2f81981085fc5b61d3d5243315b9ba2afe/unusual_trip_filter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4084, 273, 521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
msg["To"] = ",".join(recipients.keys())
msg["To"] = ",".join(recipients)
def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 3: print "... hasn't regressed since %s: %s" % (old_rev, old_status) return recipients = set() change_log = "" for rev in t.get_branch().log(from_rev=cur.rev, exclude_revs=set([old.rev])): recipients.add(rev.author) recipients.add(rev.committer) change_log += """
90150b8b7b08904b4ec880822f3208a34c2467ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/90150b8b7b08904b4ec880822f3208a34c2467ec/import-and-analyse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 464, 67, 4661, 67, 4408, 87, 12, 3413, 16, 1479, 16, 5274, 16, 662, 16, 1592, 4672, 268, 273, 1361, 74, 4610, 18, 17204, 63, 3413, 65, 225, 261, 1397, 67, 9083, 16, 662, 67, 9083, 67, 5508, 13, 273, 662, 18, 13057, 67, 6395, 1435, 662, 67, 2327, 273, 662, 18, 2327, 1435, 225, 261, 1673, 67, 9083, 16, 1592, 67, 9083, 67, 5508, 13, 273, 1592, 18, 13057, 67, 6395, 1435, 1592, 67, 2327, 273, 1592, 18, 2327, 1435, 225, 309, 486, 662, 67, 2327, 18, 1574, 4638, 67, 9256, 12, 1673, 67, 2327, 4672, 309, 1500, 18, 11369, 1545, 890, 30, 1172, 31305, 13342, 1404, 960, 4638, 3241, 738, 87, 30, 738, 87, 6, 738, 261, 1673, 67, 9083, 16, 1592, 67, 2327, 13, 327, 225, 12045, 273, 444, 1435, 2549, 67, 1330, 273, 1408, 225, 364, 5588, 316, 268, 18, 588, 67, 7500, 7675, 1330, 12, 2080, 67, 9083, 33, 1397, 18, 9083, 16, 4433, 67, 266, 6904, 33, 542, 3816, 1673, 18, 9083, 22643, 30, 12045, 18, 1289, 12, 9083, 18, 4161, 13, 12045, 18, 1289, 12, 9083, 18, 7371, 387, 13, 2549, 67, 1330, 1011, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 464, 67, 4661, 67, 4408, 87, 12, 3413, 16, 1479, 16, 5274, 16, 662, 16, 1592, 4672, 268, 273, 1361, 74, 4610, 18, 17204, 63, 3413, 65, 225, 261, 1397, 67, 9083, 16, 662, 67, 9083, 67, 5508, 13, 273, 662, 18, 13057, 67, 6395, 1435, 662, 67, 2327, 273, 662, 18, 2327, 1435, 225, 261, 1673, 67, 9083, 16, 1592, 67, 9083, 67, 5508, 13, 273, 1592, 18, 13057, 67, 6395, 1435, 1592, 67, 2327, 273, 1592, 18, 2327, 1435, 225, 309, 486, 662, 67, 2327, 18, 1574, 4638, 67, 9256, 12, 1673, 67, 2327, 4672, 309, 1500, 18, 11369, 1545, 890, 30, 1172, 31305, 13342, 1404, 960, 4638, 3241, 738, 87, 30, 738, 87, 2 ]
class arch_armv6zkl(generic_arm): "Builder class for armv6zkl target"
class arch_armv7a(generic_arm): "Builder class for armv7a target"
def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv6zl-softloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv6z -pipe"
423613d4d63f3a603ff416edd814c78b4f729c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/423613d4d63f3a603ff416edd814c78b4f729c55/arm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 4610, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 1792, 4005, 11929, 1546, 4610, 90, 26, 94, 80, 17, 9269, 1159, 17, 20132, 17, 1600, 344, 21457, 6, 365, 18, 4272, 9614, 8955, 6552, 55, 11929, 1546, 17, 15112, 300, 81, 991, 33, 4610, 90, 26, 94, 300, 14772, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 4610, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 1792, 4005, 11929, 1546, 4610, 90, 26, 94, 80, 17, 9269, 1159, 17, 20132, 17, 1600, 344, 21457, 6, 365, 18, 4272, 9614, 8955, 6552, 55, 11929, 1546, 17, 15112, 300, 81, 991, 33, 4610, 90, 26, 94, 300, 14772, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print 'procesoooo NC VTA padre procesado:'
def validate_nc_vta(self, cr, uid, ids, scl_obj,q_mov,tot,prom,q_des,no_cp,lst_org,act_sml_id,s_ord): if scl_obj.parent_id: print 'validando padre NC VENTA: ',scl_obj.parent_id if scl_obj.parent_id.id in lst_org or scl_obj.parent_id.id in no_cp: no_cp.append(act_sml_id) else: print 'procesoooo NC VTA padre procesado:' q_bef = q_des q_des,subtot,tot,prom = self.compute_nc_vta(cr, uid, ids, scl_obj, q_mov,tot,prom,q_des) #REALIZAR EL WRITE DE LA LINEA value = { 'subtotal':subtot, 'total':tot, 'avg':prom, 'stk_bef_cor':q_bef, 'stk_aft_cor':q_des } s_ord=self.write_data(cr, uid, ids, scl_obj.id, value,s_ord) else: print 'procesoooo NC VTA:' q_bef = q_des q_des,subtot,tot,prom = self.compute_nc_vta(cr, uid, ids, scl_obj, q_mov,tot,prom,q_des) #REALIZAR EL WRITE DE LA LINEA value = { 'subtotal':subtot, 'total':tot, 'avg':prom, 'stk_bef_cor':q_bef, 'stk_aft_cor':q_des } s_ord=self.write_data(cr, uid, ids, scl_obj.id, value,s_ord)
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 14202, 67, 90, 2351, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 85, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 16, 2135, 67, 4057, 16, 16923, 67, 3341, 16, 621, 67, 87, 781, 67, 350, 16, 87, 67, 517, 4672, 309, 31648, 67, 2603, 18, 2938, 67, 350, 30, 1172, 296, 877, 28630, 4627, 266, 423, 39, 776, 2222, 37, 30, 2265, 87, 830, 67, 2603, 18, 2938, 67, 350, 309, 31648, 67, 2603, 18, 2938, 67, 350, 18, 350, 316, 9441, 67, 3341, 578, 31648, 67, 2603, 18, 2938, 67, 350, 18, 350, 316, 1158, 67, 4057, 30, 1158, 67, 4057, 18, 6923, 12, 621, 67, 87, 781, 67, 350, 13, 469, 30, 225, 1043, 67, 2196, 74, 273, 1043, 67, 5489, 1043, 67, 5489, 16, 1717, 3307, 16, 3307, 16, 17401, 273, 365, 18, 9200, 67, 14202, 67, 90, 2351, 12, 3353, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 13, 468, 31052, 6867, 985, 14801, 20967, 2030, 2928, 14340, 37, 460, 273, 288, 296, 1717, 4963, 4278, 1717, 3307, 16, 296, 4963, 4278, 3307, 16, 296, 14141, 4278, 17401, 16, 296, 334, 79, 67, 2196, 74, 67, 3850, 4278, 85, 67, 2196, 74, 16, 296, 334, 79, 67, 69, 1222, 67, 3850, 4278, 85, 67, 5489, 289, 272, 67, 517, 33, 2890, 18, 2626, 67, 892, 12, 3353, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 14202, 67, 90, 2351, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 85, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 16, 2135, 67, 4057, 16, 16923, 67, 3341, 16, 621, 67, 87, 781, 67, 350, 16, 87, 67, 517, 4672, 309, 31648, 67, 2603, 18, 2938, 67, 350, 30, 1172, 296, 877, 28630, 4627, 266, 423, 39, 776, 2222, 37, 30, 2265, 87, 830, 67, 2603, 18, 2938, 67, 350, 309, 31648, 67, 2603, 18, 2938, 67, 350, 18, 350, 316, 9441, 67, 3341, 578, 31648, 67, 2603, 18, 2938, 67, 350, 18, 350, 316, 1158, 67, 4057, 30, 1158, 67, 4057, 18, 6923, 12, 621, 67, 2 ]
exit()
rospy.signal_shutdown("ERROR")
def stateCb(self, msg): l_sum_tucked = 0 l_sum_untucked = 0 r_sum_tucked = 0 r_sum_untucked = 0 for name_state, name_desi, value_state, value_l_tucked, value_l_untucked, value_r_tucked, value_r_untucked in zip(msg.joint_names, joint_names, msg.actual.positions , l_arm_tucked, l_arm_untucked, r_arm_tucked, r_arm_untucked): if 'l_'+name_desi+'_joint' == name_state: self.l_received = True l_sum_tucked = l_sum_tucked + math.fabs(value_state - value_l_tucked) l_sum_untucked = l_sum_untucked + math.fabs(value_state - value_l_untucked) if 'r_'+name_desi+'_joint' == name_state: self.r_received = True r_sum_tucked = r_sum_tucked + math.fabs(value_state - value_r_tucked) r_sum_untucked = r_sum_untucked + math.fabs(value_state - value_r_untucked)
24ea94a3950f4dbbbedf71c3f6bd5b7996f6c3ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8822/24ea94a3950f4dbbbedf71c3f6bd5b7996f6c3ff/tuck_arms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 15237, 12, 2890, 16, 1234, 4672, 328, 67, 1364, 67, 88, 9031, 329, 273, 374, 328, 67, 1364, 67, 10032, 9031, 329, 273, 374, 436, 67, 1364, 67, 88, 9031, 329, 273, 374, 436, 67, 1364, 67, 10032, 9031, 329, 273, 374, 364, 508, 67, 2019, 16, 508, 67, 5489, 77, 16, 460, 67, 2019, 16, 460, 67, 80, 67, 88, 9031, 329, 16, 460, 67, 80, 67, 10032, 9031, 329, 16, 460, 67, 86, 67, 88, 9031, 329, 16, 460, 67, 86, 67, 10032, 9031, 329, 316, 3144, 12, 3576, 18, 16452, 67, 1973, 16, 15916, 67, 1973, 16, 1234, 18, 18672, 18, 12388, 269, 328, 67, 4610, 67, 88, 9031, 329, 16, 328, 67, 4610, 67, 10032, 9031, 329, 16, 436, 67, 4610, 67, 88, 9031, 329, 16, 436, 67, 4610, 67, 10032, 9031, 329, 4672, 309, 296, 80, 4623, 15, 529, 67, 5489, 77, 6797, 67, 16452, 11, 422, 508, 67, 2019, 30, 365, 18, 80, 67, 15213, 273, 1053, 328, 67, 1364, 67, 88, 9031, 329, 273, 328, 67, 1364, 67, 88, 9031, 329, 397, 4233, 18, 74, 5113, 12, 1132, 67, 2019, 300, 460, 67, 80, 67, 88, 9031, 329, 13, 328, 67, 1364, 67, 10032, 9031, 329, 273, 328, 67, 1364, 67, 10032, 9031, 329, 397, 4233, 18, 74, 5113, 12, 1132, 67, 2019, 300, 460, 67, 80, 67, 10032, 9031, 329, 13, 309, 296, 86, 4623, 15, 529, 67, 5489, 77, 6797, 67, 16452, 11, 422, 508, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 15237, 12, 2890, 16, 1234, 4672, 328, 67, 1364, 67, 88, 9031, 329, 273, 374, 328, 67, 1364, 67, 10032, 9031, 329, 273, 374, 436, 67, 1364, 67, 88, 9031, 329, 273, 374, 436, 67, 1364, 67, 10032, 9031, 329, 273, 374, 364, 508, 67, 2019, 16, 508, 67, 5489, 77, 16, 460, 67, 2019, 16, 460, 67, 80, 67, 88, 9031, 329, 16, 460, 67, 80, 67, 10032, 9031, 329, 16, 460, 67, 86, 67, 88, 9031, 329, 16, 460, 67, 86, 67, 10032, 9031, 329, 316, 3144, 12, 3576, 18, 16452, 67, 1973, 16, 15916, 67, 1973, 16, 1234, 18, 18672, 18, 12388, 269, 328, 67, 4610, 67, 88, 9031, 329, 16, 328, 67, 4610, 2 ]
self.slave_xrestore_unsafe(srcname, dstpath, os.getppid())
self.slave_xrestore_unsafe(srcname, dstpath, os.getppid(), lstname)
def xrestore(self): if len(self.args) < 2: die(1, "usage: xrestore srcname dstpath") srcname = self.args[0] dstpath = self.args[1] if self.wtype == MASTER: self.master_xrestore(srcname, dstpath) else: self.slave_xrestore_unsafe(srcname, dstpath, os.getppid())
5c30a274a6945a32dc53e7725ba74053bda74e5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/5c30a274a6945a32dc53e7725ba74053bda74e5e/walmgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 13991, 12, 2890, 4672, 309, 562, 12, 2890, 18, 1968, 13, 411, 576, 30, 10387, 12, 21, 16, 315, 9167, 30, 619, 13991, 1705, 529, 3046, 803, 7923, 1705, 529, 273, 365, 18, 1968, 63, 20, 65, 3046, 803, 273, 365, 18, 1968, 63, 21, 65, 309, 365, 18, 91, 723, 422, 27312, 30, 365, 18, 7525, 67, 92, 13991, 12, 4816, 529, 16, 3046, 803, 13, 469, 30, 365, 18, 27352, 67, 92, 13991, 67, 318, 4626, 12, 4816, 529, 16, 3046, 803, 16, 1140, 18, 588, 84, 6610, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 13991, 12, 2890, 4672, 309, 562, 12, 2890, 18, 1968, 13, 411, 576, 30, 10387, 12, 21, 16, 315, 9167, 30, 619, 13991, 1705, 529, 3046, 803, 7923, 1705, 529, 273, 365, 18, 1968, 63, 20, 65, 3046, 803, 273, 365, 18, 1968, 63, 21, 65, 309, 365, 18, 91, 723, 422, 27312, 30, 365, 18, 7525, 67, 92, 13991, 12, 4816, 529, 16, 3046, 803, 13, 469, 30, 365, 18, 27352, 67, 92, 13991, 67, 318, 4626, 12, 4816, 529, 16, 3046, 803, 16, 1140, 18, 588, 84, 6610, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"when a page is save or rendered."),
"when a page is saved or rendered."),
def __init__(self, tags='', attributes=''): self.tags = tags self.attributes = attributes
c41d32d84dbb6cab6088771d6b8bb2c5124b5a69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12189/c41d32d84dbb6cab6088771d6b8bb2c5124b5a69/filter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2342, 2218, 2187, 1677, 2218, 11, 4672, 365, 18, 4156, 273, 2342, 365, 18, 4350, 273, 1677, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2342, 2218, 2187, 1677, 2218, 11, 4672, 365, 18, 4156, 273, 2342, 365, 18, 4350, 273, 1677, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if len(descr.childNodes) != 1: raise ValueError, 'Expected a single paragraph' para = descr.childNodes[0] if para.tagName != 'para': raise ValueError, 'Expected a para; got a %s' % para.tagName if len(para.childNodes) != 1: raise ValueError, 'Colorization is not allowed' args = re.split(' *[:;,]+ *', para.childNodes[0].data)
descr = descr.to_plaintext(None).strip() args = re.split(' *[:;,]+ *', descr)
def _descr_to_docfield(arg, descr): tags = [s.lower() for s in re.split('[ :;,]+', arg)] if len(descr.childNodes) != 1: raise ValueError, 'Expected a single paragraph' para = descr.childNodes[0] if para.tagName != 'para': raise ValueError, 'Expected a para; got a %s' % para.tagName if len(para.childNodes) != 1: raise ValueError, 'Colorization is not allowed' args = re.split(' *[:;,]+ *', para.childNodes[0].data) if len(args) == 0 or len(args) > 3: raise ValueError, 'Wrong number of arguments' singular = args[0] if len(args) >= 2: plural = args[1] else: plural = None short = 0 if len(args) >= 3: if args[2] == 'short': short = 1 else: raise ValueError('Bad arg 2 (expected "short")') return DocField(tags, singular, plural, short)
3483c073f313594e2126bb590c1618ff249ff09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3483c073f313594e2126bb590c1618ff249ff09b/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 28313, 67, 869, 67, 2434, 1518, 12, 3175, 16, 18426, 4672, 2342, 273, 306, 87, 18, 8167, 1435, 364, 272, 316, 283, 18, 4939, 2668, 63, 294, 31, 16, 3737, 2187, 1501, 25887, 18426, 273, 18426, 18, 869, 67, 412, 10133, 12, 7036, 2934, 6406, 1435, 833, 273, 283, 18, 4939, 2668, 380, 10531, 31, 16, 3737, 380, 2187, 18426, 13, 309, 562, 12, 1968, 13, 422, 374, 578, 562, 12, 1968, 13, 405, 890, 30, 1002, 2068, 16, 296, 13634, 1300, 434, 1775, 11, 10048, 273, 833, 63, 20, 65, 309, 562, 12, 1968, 13, 1545, 576, 30, 7978, 273, 833, 63, 21, 65, 469, 30, 7978, 273, 599, 3025, 273, 374, 309, 562, 12, 1968, 13, 1545, 890, 30, 309, 833, 63, 22, 65, 422, 296, 6620, 4278, 3025, 273, 404, 469, 30, 1002, 2068, 2668, 6434, 1501, 576, 261, 3825, 315, 6620, 31241, 13, 327, 3521, 974, 12, 4156, 16, 10048, 16, 7978, 16, 3025, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 28313, 67, 869, 67, 2434, 1518, 12, 3175, 16, 18426, 4672, 2342, 273, 306, 87, 18, 8167, 1435, 364, 272, 316, 283, 18, 4939, 2668, 63, 294, 31, 16, 3737, 2187, 1501, 25887, 18426, 273, 18426, 18, 869, 67, 412, 10133, 12, 7036, 2934, 6406, 1435, 833, 273, 283, 18, 4939, 2668, 380, 10531, 31, 16, 3737, 380, 2187, 18426, 13, 309, 562, 12, 1968, 13, 422, 374, 578, 562, 12, 1968, 13, 405, 890, 30, 1002, 2068, 16, 296, 13634, 1300, 434, 1775, 11, 10048, 273, 833, 63, 20, 65, 309, 562, 12, 1968, 13, 1545, 576, 30, 7978, 273, 833, 63, 21, 65, 469, 30, 7978, 273, 599, 3025, 273, 374, 309, 562, 12, 1968, 2 ]
self.DeleteChildren(self.root)
def update(self, evt=None): """Update tree with the source code of the editor""" hierarchy = self.mode.getFoldHierarchy() #dprint(hierarchy) if hierarchy != self.hierarchy: self.hierarchy = hierarchy # native TreeCtrl doesn't Freeze on GTK, which prompted the move to # the CustomTreeCtrl self.Freeze() self.DeleteChildren(self.root) self.current_line = self.mode.GetCurrentLine() self.item_before = None self.appendChildren(self.root,self.hierarchy) if self.has_root: self.Expand(self.root) self.Thaw() else: self.UnselectAll() self.current_line = self.mode.GetCurrentLine() self.item_before = None self.highlightCurrentItem(self.root) if evt: evt.Skip()
968eca62c67552b807b8dfd14d0b4484a3b9d70c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/968eca62c67552b807b8dfd14d0b4484a3b9d70c/code_explorer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6324, 33, 7036, 4672, 3536, 1891, 2151, 598, 326, 1084, 981, 434, 326, 4858, 8395, 9360, 273, 365, 18, 3188, 18, 588, 15592, 12074, 1435, 468, 72, 1188, 12, 17937, 13, 309, 9360, 480, 365, 18, 17937, 30, 365, 18, 17937, 273, 9360, 225, 468, 6448, 4902, 12418, 3302, 1404, 15217, 8489, 603, 19688, 47, 16, 1492, 6866, 329, 326, 3635, 358, 468, 326, 6082, 2471, 12418, 365, 18, 9194, 8489, 1435, 365, 18, 2972, 67, 1369, 273, 365, 18, 3188, 18, 967, 3935, 1670, 1435, 365, 18, 1726, 67, 5771, 273, 599, 365, 18, 6923, 4212, 12, 2890, 18, 3085, 16, 2890, 18, 17937, 13, 309, 365, 18, 5332, 67, 3085, 30,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6324, 33, 7036, 4672, 3536, 1891, 2151, 598, 326, 1084, 981, 434, 326, 4858, 8395, 9360, 273, 365, 18, 3188, 18, 588, 15592, 12074, 1435, 468, 72, 1188, 12, 17937, 13, 309, 9360, 480, 365, 18, 17937, 30, 365, 18, 17937, 273, 9360, 225, 468, 6448, 4902, 12418, 3302, 1404, 15217, 8489, 603, 19688, 47, 16, 1492, 6866, 329, 326, 3635, 358, 468, 326, 6082, 2471, 12418, 365, 18, 9194, 8489, 1435, 365, 18, 2972, 67, 1369, 273, 365, 18, 3188, 18, 967, 3935, 1670, 1435, 365, 18, 1726, 67, 5771, 273, 599, 365, 18, 6923, 4212, 12, 2890, 18, 3085, 16, 2890, 18, 17937, 13, 309, 365, 18, 5332, 67, 3085, 30, 365, 2 ]
return 'set()'
return 'bag()'
def __str__(self): """ The printable string appears just like a set, except that each element is raised to the power of the multiplicity if it is greater than 1.
3325486bf02adc2f21c90c503985367500ba994b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/3325486bf02adc2f21c90c503985367500ba994b/collections_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 1021, 23474, 533, 14606, 2537, 3007, 279, 444, 16, 1335, 716, 1517, 930, 353, 11531, 358, 326, 7212, 434, 326, 3309, 20458, 309, 518, 353, 6802, 2353, 404, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 1021, 23474, 533, 14606, 2537, 3007, 279, 444, 16, 1335, 716, 1517, 930, 353, 11531, 358, 326, 7212, 434, 326, 3309, 20458, 309, 518, 353, 6802, 2353, 404, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
reactor.stop() else: reactor.callFromThread(reactor.stop)
self._stop_reactor() else: reactor.callFromThread(self._stop_reactor)
def _NH_SIPEngineDidEnd(self, notification): if threadable.isInIOThread(): reactor.stop() else: reactor.callFromThread(reactor.stop)
1882aa55121049242d9523e28e7d44f4ff0fd7d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/1882aa55121049242d9523e28e7d44f4ff0fd7d5/sip_register.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 4410, 18250, 1638, 12, 2890, 16, 3851, 4672, 309, 2650, 429, 18, 291, 382, 4294, 3830, 13332, 19178, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 4410, 18250, 1638, 12, 2890, 16, 3851, 4672, 309, 2650, 429, 18, 291, 382, 4294, 3830, 13332, 19178, 18, 5681, 1435, 469, 30, 19178, 18, 1991, 1265, 3830, 12, 266, 3362, 18, 5681, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pname = wikidb.print_template_pattern.replace(u'$1', name)
rname = name for k, v in self.redirects.items(): if v == name: rname = k break pname = wikidb.print_template_pattern.replace(u'$1', rname)
def _fetch(**kargs): res = wikidb.api_helper.query(ignore_errors=False, **kargs) assert 'query-continue' not in res
0158daeb0be3ae432b13addf25e8df857cfc0972 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/0158daeb0be3ae432b13addf25e8df857cfc0972/fzipcreator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 12, 636, 79, 1968, 4672, 400, 273, 225, 341, 1766, 350, 70, 18, 2425, 67, 4759, 18, 2271, 12, 6185, 67, 4324, 33, 8381, 16, 2826, 79, 1968, 13, 1815, 296, 2271, 17, 17143, 11, 486, 316, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 12, 636, 79, 1968, 4672, 400, 273, 225, 341, 1766, 350, 70, 18, 2425, 67, 4759, 18, 2271, 12, 6185, 67, 4324, 33, 8381, 16, 2826, 79, 1968, 13, 1815, 296, 2271, 17, 17143, 11, 486, 316, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
@gobject_utils.async @gtk_toolbox.log_exception(_moduleLogger)
def close(self): self._callback = None
532e373e023dcb85be242467ebe25773dcddfa8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/532e373e023dcb85be242467ebe25773dcddfa8f/state_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 6315, 3394, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 6315, 3394, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.check_session()
def call_wrapper(self, **kw): # Confirm user authentication and make sure we have a webservice object if not self.__name_lock.locked(): raise Exception("Somehow, I don't have my __name_lock. This is very bad.") name = self.__name del self.__name self.__name_lock.release() function = getattr(self.webservice, name) self.check_session() if kw.has_key('json'): kw = cjson.decode(kw['json']) result = function(kw) # Go through the result rows (better be dictionaries) if result: for row in result: # Loop through our self.__datetime_columns and convert those datetime objects for column in self.__datetime_columns: if row.has_key(column) and isinstance(row[column], datetime.datetime): # Wow...ok... # We're on a datetime object, JSON-haxify it to be a JSON string compatible with JavaScript: row[column] = jsonhax.datetime2json(row[column]) return cjson.encode(result)
cd18c59ee4852cf03fb663705ff3406696cef4d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7602/cd18c59ee4852cf03fb663705ff3406696cef4d3/ajax.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 8376, 12, 2890, 16, 2826, 9987, 4672, 468, 17580, 729, 5107, 471, 1221, 3071, 732, 1240, 279, 732, 20015, 733, 225, 309, 486, 365, 16186, 529, 67, 739, 18, 15091, 13332, 1002, 1185, 2932, 17358, 13606, 16, 467, 2727, 1404, 1240, 3399, 1001, 529, 67, 739, 18, 225, 1220, 353, 8572, 5570, 1199, 13, 225, 508, 273, 365, 16186, 529, 1464, 365, 16186, 529, 365, 16186, 529, 67, 739, 18, 9340, 1435, 225, 445, 273, 3869, 12, 2890, 18, 1814, 20015, 16, 508, 13, 309, 5323, 18, 5332, 67, 856, 2668, 1977, 11, 4672, 5323, 273, 276, 1977, 18, 3922, 12, 9987, 3292, 1977, 19486, 225, 563, 273, 445, 12, 9987, 13, 225, 468, 4220, 3059, 326, 563, 2595, 261, 70, 11214, 506, 16176, 13, 309, 563, 30, 364, 1027, 316, 563, 30, 225, 468, 9720, 3059, 3134, 365, 16186, 6585, 67, 5112, 471, 1765, 5348, 3314, 2184, 364, 1057, 316, 365, 16186, 6585, 67, 5112, 30, 225, 309, 1027, 18, 5332, 67, 856, 12, 2827, 13, 471, 1549, 12, 492, 63, 2827, 6487, 3314, 18, 6585, 4672, 468, 678, 543, 2777, 601, 2777, 468, 1660, 4565, 603, 279, 3314, 733, 16, 1796, 17, 76, 651, 1164, 518, 358, 506, 279, 1796, 533, 7318, 598, 11905, 30, 225, 1027, 63, 2827, 65, 273, 1163, 76, 651, 18, 6585, 22, 1977, 12, 492, 63, 2827, 5717, 225, 327, 276, 1977, 18, 3015, 12, 2088, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 745, 67, 8376, 12, 2890, 16, 2826, 9987, 4672, 468, 17580, 729, 5107, 471, 1221, 3071, 732, 1240, 279, 732, 20015, 733, 225, 309, 486, 365, 16186, 529, 67, 739, 18, 15091, 13332, 1002, 1185, 2932, 17358, 13606, 16, 467, 2727, 1404, 1240, 3399, 1001, 529, 67, 739, 18, 225, 1220, 353, 8572, 5570, 1199, 13, 225, 508, 273, 365, 16186, 529, 1464, 365, 16186, 529, 365, 16186, 529, 67, 739, 18, 9340, 1435, 225, 445, 273, 3869, 12, 2890, 18, 1814, 20015, 16, 508, 13, 309, 5323, 18, 5332, 67, 856, 2668, 1977, 11, 4672, 5323, 273, 276, 1977, 18, 3922, 12, 9987, 3292, 1977, 19486, 225, 563, 273, 445, 12, 9987, 13, 225, 468, 4220, 3059, 2 ]
return N.array([0] * 3 * 9 + list(costgradient[gradparams.xinit_start:gradparams.xinit_end]) + [0] * 9 + costgradient[gradparams.u_start:gradparams.u_end]) def h(p):
gradient = N.array([0] * len(model.getStates()) * (len(grid) - 1) + list(costgradient[gradparams['xinit_start'] : gradparams['xinit_end']]) + [0] * (len(grid) - 1) + list(costgradient[gradparams['u_start'] : gradparams['u_end']])) assert len(p) == len(gradient) print gradient return gradient def h(self, p):
def df(p): # grad(f) - CURRENTLY NOT USED """Returns the gradient of f(cur_u). In the VDP example it depends on the """ ys, us = _split_opt_x(model, len(grid), p) costgradient, last_y, gradparams, sens = shoot_single_segment(us[-1], ys[-1], grid[-1]) print "Evaluating cost function gradient." # HARDCODED # Comments: # * The cost does not depend on the first nine initial states. # * The cost does not depend on the inputs/control signal return N.array([0] * 3 * 9 + list(costgradient[gradparams.xinit_start:gradparams.xinit_end]) + [0] * 9 + costgradient[gradparams.u_start:gradparams.u_end])
f1dfce1901034f7575c607a69f80948c2d756531 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f1dfce1901034f7575c607a69f80948c2d756531/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3013, 12, 84, 4672, 468, 6058, 12, 74, 13, 300, 18484, 7076, 4269, 14988, 40, 3536, 1356, 326, 10292, 434, 284, 12, 1397, 67, 89, 2934, 225, 657, 326, 776, 8640, 3454, 518, 10935, 603, 326, 3536, 16036, 16, 584, 273, 389, 4939, 67, 3838, 67, 92, 12, 2284, 16, 562, 12, 5222, 3631, 293, 13, 6991, 20219, 16, 1142, 67, 93, 16, 6058, 2010, 16, 15390, 273, 699, 1632, 67, 7526, 67, 9273, 12, 407, 18919, 21, 6487, 16036, 18919, 21, 6487, 3068, 18919, 21, 5717, 225, 1172, 315, 6644, 1776, 6991, 445, 10292, 1199, 225, 468, 670, 985, 5528, 1212, 2056, 468, 23452, 30, 468, 225, 380, 1021, 6991, 1552, 486, 2447, 603, 326, 1122, 290, 558, 2172, 5493, 18, 468, 225, 380, 1021, 6991, 1552, 486, 2447, 603, 326, 4540, 19, 7098, 4277, 327, 423, 18, 1126, 3816, 20, 65, 380, 890, 380, 2468, 397, 666, 12, 12398, 20219, 63, 9974, 2010, 18, 92, 2738, 67, 1937, 30, 9974, 2010, 18, 92, 2738, 67, 409, 5717, 397, 306, 20, 65, 380, 2468, 397, 6991, 20219, 63, 9974, 2010, 18, 89, 67, 1937, 30, 9974, 2010, 18, 89, 67, 409, 5717, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3013, 12, 84, 4672, 468, 6058, 12, 74, 13, 300, 18484, 7076, 4269, 14988, 40, 3536, 1356, 326, 10292, 434, 284, 12, 1397, 67, 89, 2934, 225, 657, 326, 776, 8640, 3454, 518, 10935, 603, 326, 3536, 16036, 16, 584, 273, 389, 4939, 67, 3838, 67, 92, 12, 2284, 16, 562, 12, 5222, 3631, 293, 13, 6991, 20219, 16, 1142, 67, 93, 16, 6058, 2010, 16, 15390, 273, 699, 1632, 67, 7526, 67, 9273, 12, 407, 18919, 21, 6487, 16036, 18919, 21, 6487, 3068, 18919, 21, 5717, 225, 1172, 315, 6644, 1776, 6991, 445, 10292, 1199, 225, 468, 670, 985, 5528, 1212, 2056, 468, 23452, 30, 468, 225, 380, 1021, 6991, 1552, 486, 2447, 603, 326, 1122, 290, 2 ]
'_time__=misc.cputime(); __wall__=misc.walltime(); R = ZZ[\'x\']; print "Time: CPU %.2f s, Wall: %.2f s"%(misc.cputime(__time__), misc.walltime(__wall__)); (x,) = R._first_ngens(1)'
'__time__=misc.cputime(); __wall__=misc.walltime(); R = ZZ[\'x\']; print "Time: CPU %.2f s, Wall: %.2f s"%(misc.cputime(__time__), misc.walltime(__wall__)); (x,) = R._first_ngens(1)'
def preparse(line, reset=True, do_time=False, ignore_prompts=False): r""" EXAMPLES: sage: preparse("ZZ.<x> = ZZ['x']") "ZZ = ZZ['x']; (x,) = ZZ._first_ngens(1)" sage: preparse("ZZ.<x> = ZZ['y']") "ZZ = ZZ['y']; (x,) = ZZ._first_ngens(1)" sage: preparse("ZZ.<x,y> = ZZ[]") "ZZ = ZZ['x, y']; (x, y,) = ZZ._first_ngens(2)" sage: preparse("ZZ.<x,y> = ZZ['u,v']") "ZZ = ZZ['u,v']; (x, y,) = ZZ._first_ngens(2)" sage: preparse("ZZ.<x> = QQ[2^(1/3)]") 'ZZ = QQ[Integer(2)**(Integer(1)/Integer(3))]; (x,) = ZZ._first_ngens(1)' sage: QQ[2^(1/3)] Number Field in a with defining polynomial x^3 - 2 sage: preparse("a^b") 'a**b' sage: preparse("a^^b") 'a^b' sage: 8^1 8 sage: 8^^1 9 sage: 9^^1 8 sage: preparse("A \ B") 'A ._backslash_(B)' sage: preparse("time R.<x> = ZZ[]", do_time=True) '_time__=misc.cputime(); __wall__=misc.walltime(); R = ZZ[\'x\']; print "Time: CPU %.2f s, Wall: %.2f s"%(misc.cputime(__time__), misc.walltime(__wall__)); (x,) = R._first_ngens(1)' """ global quote_state if reset: quote_state = None L = line.lstrip() if len(L) > 0 and L[0] in ['#', '!']: return line if L.startswith('...'): i = line.find('...') return line[:i+3] + preparse(line[i+3:], reset=reset, do_time=do_time, ignore_prompts=ignore_prompts) if ignore_prompts: # Get rid of leading sage: and >>> so that pasting of examples from # the documentation works. line = strip_prompts(line) # This part handles lines with semi-colons all at once # Then can also handle multiple lines more efficiently, but # that optimization can be done later. L, literals, quote_state = strip_string_literals(line, quote_state) # Ellipsis Range # [1..n] try: L = parse_ellipsis(L, preparse_step=False) except SyntaxError: pass if implicit_mul_level: # Implicit Multiplication # 2x -> 2*x L = implicit_mul(L, level = implicit_mul_level) # Wrapping # 1 + 0.5 -> Integer(1) + RealNumber('0.5') L = preparse_numeric_literals(L) # Generators # R.0 -> R.gen(0) L = re.sub(r'([_a-zA-Z]\w*|[)\]])\.(\d+)', r'\1.gen(\2)', L) # Use ^ for exponentiation and ^^ for xor # (A side effect is that **** becomes xor as well.) L = L.replace('^', '**').replace('****', '^') # Make it easy to match statement ends L = ';%s;' % L.replace('\n', ';\n;') if do_time: # Separate time statement L = re.sub(r';(\s*)time +(\w)', r';time;\1\2', L) # Construction with generators # R.<...> = obj() # R.<.... = R[] L = preparse_generators(L) # Calculus functions # f(x,y) = x^3 - sin(y) L = preparse_calculus(L) # Backslash L = re.sub(r'''\\\s*([^*/;:\\#'"]+)''', r'._backslash_(\1)', L) if do_time: # Time keyword L = re.sub(r';time;(\s*)(\S[^;]*)', r'\1__time__=misc.cputime(); __wall__=misc.walltime(); \2; print ' + '"Time: CPU %%.2f s, Wall: %%.2f s"%%(misc.cputime(__time__), misc.walltime(__wall__))', L) # Remove extra ;'s L = L.replace(';\n;', '\n')[1:-1] line = L % literals return line
24b47dac91072a25c13666235ac8db706b2199ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/24b47dac91072a25c13666235ac8db706b2199ad/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2670, 12, 1369, 16, 2715, 33, 5510, 16, 741, 67, 957, 33, 8381, 16, 2305, 67, 17401, 1092, 33, 8381, 4672, 436, 8395, 5675, 8900, 11386, 30, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 34, 273, 2285, 62, 3292, 92, 3546, 7923, 315, 27096, 273, 2285, 62, 3292, 92, 3546, 31, 261, 92, 16, 13, 273, 2285, 62, 6315, 3645, 67, 3368, 773, 12, 21, 2225, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 34, 273, 2285, 62, 3292, 93, 3546, 7923, 315, 27096, 273, 2285, 62, 3292, 93, 3546, 31, 261, 92, 16, 13, 273, 2285, 62, 6315, 3645, 67, 3368, 773, 12, 21, 2225, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 16, 93, 34, 273, 2285, 62, 63, 4279, 13, 315, 27096, 273, 2285, 62, 3292, 92, 16, 677, 3546, 31, 261, 92, 16, 677, 16, 13, 273, 2285, 62, 6315, 3645, 67, 3368, 773, 12, 22, 2225, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 16, 93, 34, 273, 2285, 62, 3292, 89, 16, 90, 3546, 7923, 315, 27096, 273, 2285, 62, 3292, 89, 16, 90, 3546, 31, 261, 92, 16, 677, 16, 13, 273, 2285, 62, 6315, 3645, 67, 3368, 773, 12, 22, 2225, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 34, 273, 2238, 53, 63, 22, 29020, 21, 19, 23, 13, 4279, 13, 296, 27096, 273, 2238, 53, 63, 4522, 12, 22, 13, 636, 12, 4522, 12, 21, 13176, 4522, 12, 23, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 2670, 12, 1369, 16, 2715, 33, 5510, 16, 741, 67, 957, 33, 8381, 16, 2305, 67, 17401, 1092, 33, 8381, 4672, 436, 8395, 5675, 8900, 11386, 30, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 34, 273, 2285, 62, 3292, 92, 3546, 7923, 315, 27096, 273, 2285, 62, 3292, 92, 3546, 31, 261, 92, 16, 13, 273, 2285, 62, 6315, 3645, 67, 3368, 773, 12, 21, 2225, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 92, 34, 273, 2285, 62, 3292, 93, 3546, 7923, 315, 27096, 273, 2285, 62, 3292, 93, 3546, 31, 261, 92, 16, 13, 273, 2285, 62, 6315, 3645, 67, 3368, 773, 12, 21, 2225, 272, 410, 30, 675, 2670, 2932, 27096, 22782, 2 ]
sys.stdout.write('Exit code: ' + str(p.returncode) + "\n")
sys.stdout.write('Exit code: %s\n' % code)
def run_test(test, lib_dir): env = os.environ.copy() if test.tmflags: env['TMFLAGS'] = test.tmflags cmd = get_test_cmd(test.path, test.jitflags, lib_dir) if (test.valgrind and any([os.path.exists(os.path.join(d, 'valgrind')) for d in os.environ['PATH'].split(os.pathsep)])): valgrind_prefix = [ 'valgrind', '-q', '--smc-check=all', '--error-exitcode=1', '--leak-check=full'] if os.uname()[0] == 'Darwin': valgrind_prefix += ['--dsymutil=yes'] cmd = valgrind_prefix + cmd if OPTIONS.show_cmd: print(subprocess.list2cmdline(cmd)) if OPTIONS.avoid_stdio: out, err, code = run_cmd_avoid_stdio(cmd, env) else: out, err, code = run_cmd(cmd, env) if OPTIONS.show_output: sys.stdout.write(out) sys.stdout.write(err) sys.stdout.write('Exit code: ' + str(p.returncode) + "\n") if test.valgrind: sys.stdout.write(err) return (check_output(out, err, code, test.allow_oom, test.error), out, err, code)
cbe1052eea5cd34ebec32bc52a90723ed57eae4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/cbe1052eea5cd34ebec32bc52a90723ed57eae4e/trace_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3813, 12, 3813, 16, 2561, 67, 1214, 4672, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 309, 1842, 18, 16925, 7133, 30, 1550, 3292, 22903, 17836, 3546, 273, 1842, 18, 16925, 7133, 1797, 273, 336, 67, 3813, 67, 4172, 12, 3813, 18, 803, 16, 1842, 18, 78, 305, 7133, 16, 2561, 67, 1214, 13, 225, 309, 261, 3813, 18, 1125, 3197, 728, 471, 1281, 3816, 538, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 72, 16, 296, 1125, 3197, 728, 26112, 364, 302, 316, 1140, 18, 28684, 3292, 4211, 29489, 4939, 12, 538, 18, 803, 10814, 13, 22643, 30, 1244, 3197, 728, 67, 3239, 273, 306, 296, 1125, 3197, 728, 2187, 2400, 85, 2187, 3534, 4808, 71, 17, 1893, 33, 454, 2187, 3534, 1636, 17, 8593, 710, 33, 21, 2187, 3534, 298, 581, 17, 1893, 33, 2854, 3546, 309, 1140, 18, 318, 339, 1435, 63, 20, 65, 422, 296, 40, 19992, 4278, 1244, 3197, 728, 67, 3239, 1011, 10228, 413, 2377, 2942, 1367, 33, 9707, 3546, 1797, 273, 1244, 3197, 728, 67, 3239, 397, 1797, 225, 309, 16726, 18, 4500, 67, 4172, 30, 1172, 12, 1717, 2567, 18, 1098, 22, 4172, 1369, 12, 4172, 3719, 225, 309, 16726, 18, 842, 839, 67, 5084, 1594, 30, 596, 16, 393, 16, 981, 273, 1086, 67, 4172, 67, 842, 839, 67, 5084, 1594, 12, 4172, 16, 1550, 13, 469, 30, 596, 16, 393, 16, 981, 273, 1086, 67, 4172, 12, 4172, 16, 1550, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3813, 12, 3813, 16, 2561, 67, 1214, 4672, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 309, 1842, 18, 16925, 7133, 30, 1550, 3292, 22903, 17836, 3546, 273, 1842, 18, 16925, 7133, 1797, 273, 336, 67, 3813, 67, 4172, 12, 3813, 18, 803, 16, 1842, 18, 78, 305, 7133, 16, 2561, 67, 1214, 13, 225, 309, 261, 3813, 18, 1125, 3197, 728, 471, 1281, 3816, 538, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 5701, 12, 72, 16, 296, 1125, 3197, 728, 26112, 364, 302, 316, 1140, 18, 28684, 3292, 4211, 29489, 4939, 12, 538, 18, 803, 10814, 13, 22643, 30, 1244, 3197, 728, 67, 3239, 273, 306, 296, 1125, 3197, 728, 2187, 2400, 85, 2 ]
listOfLists = breakListIntoChunks(urls.keys(),self.filesPerCall)
listOfLists = breakListIntoChunks( urls.keys(), self.filesPerCall )
def __gfalturlsfromsurls_wrapper(self,urls,listProtocols): """ This is a function that can be reused everywhere to perform the gfal_turlsfromsurls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['protocols'] = listProtocols gfalDict['srmv2_spacetokendesc'] = self.spaceToken allResults = [] failed = {}
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 75, 74, 2390, 10518, 2080, 87, 10518, 67, 8376, 12, 2890, 16, 10518, 16, 1098, 21657, 4672, 3536, 1220, 353, 279, 445, 716, 848, 506, 23312, 3614, 6051, 358, 3073, 326, 13828, 287, 67, 88, 10518, 2080, 87, 10518, 3536, 13828, 287, 5014, 273, 2618, 13828, 287, 5014, 3292, 1886, 542, 388, 3546, 273, 296, 87, 8864, 90, 22, 11, 13828, 287, 5014, 3292, 2135, 67, 16410, 2835, 67, 1893, 3546, 273, 404, 13828, 287, 5014, 3292, 31018, 3546, 273, 666, 21657, 13828, 287, 5014, 3292, 87, 8864, 90, 22, 67, 1752, 1077, 278, 601, 409, 742, 3546, 273, 365, 18, 2981, 1345, 777, 3447, 273, 5378, 2535, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 75, 74, 2390, 10518, 2080, 87, 10518, 67, 8376, 12, 2890, 16, 10518, 16, 1098, 21657, 4672, 3536, 1220, 353, 279, 445, 716, 848, 506, 23312, 3614, 6051, 358, 3073, 326, 13828, 287, 67, 88, 10518, 2080, 87, 10518, 3536, 13828, 287, 5014, 273, 2618, 13828, 287, 5014, 3292, 1886, 542, 388, 3546, 273, 296, 87, 8864, 90, 22, 11, 13828, 287, 5014, 3292, 2135, 67, 16410, 2835, 67, 1893, 3546, 273, 404, 13828, 287, 5014, 3292, 31018, 3546, 273, 666, 21657, 13828, 287, 5014, 3292, 87, 8864, 90, 22, 67, 1752, 1077, 278, 601, 409, 742, 3546, 273, 365, 18, 2981, 1345, 777, 3447, 273, 5378, 2535, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100 ]
self.lines = None TableDialog.__init__(self, parent) def add_table_content(self, table): self.lines = self.add_entry_row(table, 0, "Memdump/disasm lines:", 2) self.lines.connect("activate", self.accept_cb)
table, self.dialog = create_table_dialog(parent, "Debugger UI options", 1) self.lines = table_add_entry_row(table, 0, "Memdump/disasm lines:", 2) self.lines.connect("activate", dialog_accept_cb, self.dialog)
def __init__(self, parent): self.lines = None TableDialog.__init__(self, parent)
0e0984f57cbf375cc2813fe0509dc8425a475afc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/0e0984f57cbf375cc2813fe0509dc8425a475afc/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 365, 18, 3548, 273, 599, 3555, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 365, 18, 3548, 273, 599, 3555, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 address in self._connections:
already_on_this_address = False for connection in self._connections: if connection.address == address: already_on_this_address = True break if already_on_this_address:
def _create_connections(self): # order by last connection attempt addresses = [(timestamp, address) for address, timestamp in self._potential_peers.iteritems()] addresses.sort()
b9bec093200551f0c1742a5a8482bf7dc0559673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/b9bec093200551f0c1742a5a8482bf7dc0559673/MiniBitTorrent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 13313, 12, 2890, 4672, 468, 1353, 635, 1142, 1459, 4395, 6138, 273, 306, 12, 5508, 16, 1758, 13, 364, 1758, 16, 2858, 316, 365, 6315, 26451, 67, 30502, 18, 2165, 3319, 1435, 65, 6138, 18, 3804, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
runESC = True
runESC = True
def usage(c): print 'usage: %s [options] [tests]' % basename(argv[0]) print ' -v --verbose enable additional output' print ' -E --avm avmplus command to use' print ' -a --asc compiler to use' print ' -g --globalabc location of global.abc' print ' -x --exclude comma separated list of directories to skip' print ' -h --help display help and exit' print ' -t --notime do not generate timestamps (cleaner diffs)' print ' -f --forcerebuild force rebuild all test files' print ' -c --config sets the config string [default OS-tvm]' print ' --esc run esc instead of avm' print ' --escbin location of esc/bin directory - defaults to ../../esc/bin' print ' --ext set the testfile extension (defaults to .as)' print ' --ascargs args to pass to asc on rebuild of test files' print ' --vmargs args to pass to vm' print ' --timeout max time to let a test run, in sec (default -1 = never timeout)' exit(c)
db237e95891341dd747fc6c2f05772c5033ee4a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13395/db237e95891341dd747fc6c2f05772c5033ee4a4/runtests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 71, 4672, 1172, 296, 9167, 30, 738, 87, 306, 2116, 65, 306, 16341, 3864, 738, 4882, 12, 19485, 63, 20, 5717, 1172, 296, 300, 90, 1493, 11369, 4202, 4237, 3312, 876, 11, 1172, 296, 300, 41, 1493, 842, 81, 6647, 1712, 81, 10103, 1296, 358, 999, 11, 1172, 296, 300, 69, 1493, 3691, 6647, 5274, 358, 999, 11, 1172, 296, 300, 75, 1493, 6347, 18947, 377, 2117, 434, 2552, 18, 18947, 11, 1172, 296, 300, 92, 1493, 10157, 4202, 8716, 8936, 666, 434, 6402, 358, 2488, 11, 1172, 296, 300, 76, 1493, 5201, 1850, 2562, 2809, 471, 2427, 11, 1172, 296, 300, 88, 1493, 902, 494, 3639, 741, 486, 2103, 11267, 261, 6200, 264, 15250, 2506, 1172, 296, 300, 74, 1493, 1884, 71, 822, 3510, 225, 2944, 13419, 777, 1842, 1390, 11, 1172, 296, 300, 71, 1493, 1425, 3639, 1678, 326, 642, 533, 306, 1886, 5932, 17, 88, 3489, 3864, 1172, 296, 565, 1493, 742, 6647, 1086, 2904, 3560, 434, 1712, 81, 11, 1172, 296, 565, 1493, 742, 4757, 3639, 2117, 434, 2904, 19, 4757, 1867, 300, 3467, 358, 6116, 19, 6216, 742, 19, 4757, 11, 1172, 296, 565, 1493, 408, 6647, 444, 326, 1842, 768, 2710, 261, 7606, 358, 263, 345, 2506, 1172, 296, 565, 1493, 3691, 1968, 4202, 833, 358, 1342, 358, 6972, 603, 13419, 434, 1842, 1390, 11, 1172, 296, 565, 1493, 3489, 1968, 3639, 833, 358, 1342, 358, 4268, 11, 1172, 296, 565, 1493, 4538, 4202, 943, 813, 358, 2231, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 71, 4672, 1172, 296, 9167, 30, 738, 87, 306, 2116, 65, 306, 16341, 3864, 738, 4882, 12, 19485, 63, 20, 5717, 1172, 296, 300, 90, 1493, 11369, 4202, 4237, 3312, 876, 11, 1172, 296, 300, 41, 1493, 842, 81, 6647, 1712, 81, 10103, 1296, 358, 999, 11, 1172, 296, 300, 69, 1493, 3691, 6647, 5274, 358, 999, 11, 1172, 296, 300, 75, 1493, 6347, 18947, 377, 2117, 434, 2552, 18, 18947, 11, 1172, 296, 300, 92, 1493, 10157, 4202, 8716, 8936, 666, 434, 6402, 358, 2488, 11, 1172, 296, 300, 76, 1493, 5201, 1850, 2562, 2809, 471, 2427, 11, 1172, 296, 300, 88, 1493, 902, 494, 3639, 741, 486, 2103, 11267, 261, 6200, 264, 15250, 2506, 2 ]
'a child of your mani company.', ['company']),
'a child of your main company.', ['company']),
def __init__(self, pool): super(User, self).__init__(pool) if pool: self._columns['main_company'] = fields.Many2One('company.company', 'Main Company') self._columns['company'] = fields.Many2One('company.company', 'Current Company', domain="[('parent', 'child_of', [main_company])]") self._context_fields = self._context_fields + ['company'] self._constraints = self._constraints + [ ('check_company', 'Error! You can not set a company that is not ' \ 'a child of your mani company.', ['company']), ]
2245a597a26b0eb46706ae78d16247d1bb946f78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9291/2245a597a26b0eb46706ae78d16247d1bb946f78/company.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2845, 4672, 2240, 12, 1299, 16, 365, 2934, 972, 2738, 972, 12, 6011, 13, 309, 2845, 30, 365, 6315, 5112, 3292, 5254, 67, 16840, 3546, 273, 1466, 18, 5594, 22, 3335, 2668, 16840, 18, 16840, 2187, 296, 6376, 26782, 6134, 365, 6315, 5112, 3292, 16840, 3546, 273, 1466, 18, 5594, 22, 3335, 2668, 16840, 18, 16840, 2187, 296, 3935, 26782, 2187, 2461, 1546, 63, 2668, 2938, 2187, 296, 3624, 67, 792, 2187, 306, 5254, 67, 16840, 5717, 4279, 13, 365, 6315, 2472, 67, 2821, 273, 365, 6315, 2472, 67, 2821, 397, 10228, 16840, 3546, 365, 6315, 11967, 273, 365, 6315, 11967, 397, 306, 7707, 1893, 67, 16840, 2187, 296, 668, 5, 4554, 848, 486, 444, 279, 9395, 716, 353, 486, 296, 521, 296, 69, 1151, 434, 3433, 2774, 9395, 1093, 16, 10228, 16840, 3546, 3631, 308, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2845, 4672, 2240, 12, 1299, 16, 365, 2934, 972, 2738, 972, 12, 6011, 13, 309, 2845, 30, 365, 6315, 5112, 3292, 5254, 67, 16840, 3546, 273, 1466, 18, 5594, 22, 3335, 2668, 16840, 18, 16840, 2187, 296, 6376, 26782, 6134, 365, 6315, 5112, 3292, 16840, 3546, 273, 1466, 18, 5594, 22, 3335, 2668, 16840, 18, 16840, 2187, 296, 3935, 26782, 2187, 2461, 1546, 63, 2668, 2938, 2187, 296, 3624, 67, 792, 2187, 306, 5254, 67, 16840, 5717, 4279, 13, 365, 6315, 2472, 67, 2821, 273, 365, 6315, 2472, 67, 2821, 397, 10228, 16840, 3546, 365, 6315, 11967, 273, 365, 6315, 11967, 397, 306, 7707, 1893, 67, 16840, 2187, 296, 668, 5, 4554, 2 ]
return self.parse( instring, loc, doActions=False )[0]
return self._parse( instring, loc, doActions=False )[0] def _parseCache( self, instring, loc, doActions=True, callPreParse=True ): lookup = (self,instring,loc,callPreParse) if lookup in ParserElement._exprArgCache: value = ParserElement._exprArgCache[ lookup ] if isinstance(value,Exception): if isinstance(value,ParseBaseException): value.loc = loc raise value return value else: try: ParserElement._exprArgCache[ lookup ] = \ value = self._parseNoCache( instring, loc, doActions, callPreParse ) return value except Exception, pe: ParserElement._exprArgCache[ lookup ] = pe raise _parse = _parseNoCache _exprArgCache = {} def resetCache(): ParserElement._exprArgCache.clear() resetCache = staticmethod(resetCache) _packratEnabled = False def enablePackrat(): if not ParserElement._packratEnabled: ParserElement._packratEnabled = True ParserElement._parse = ParserElement._parseCache enablePackrat = staticmethod(enablePackrat)
def tryParse( self, instring, loc ): return self.parse( instring, loc, doActions=False )[0]
cf270a876802009d82e8d28923bdd6b889a1f506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/cf270a876802009d82e8d28923bdd6b889a1f506/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 3201, 12, 365, 16, 316, 1080, 16, 1515, 262, 30, 327, 365, 18, 2670, 12, 316, 1080, 16, 1515, 16, 741, 6100, 33, 8381, 262, 63, 20, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 3201, 12, 365, 16, 316, 1080, 16, 1515, 262, 30, 327, 365, 18, 2670, 12, 316, 1080, 16, 1515, 16, 741, 6100, 33, 8381, 262, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert req.remote_user, 'Authentication information not available.'
if not req.remote_user: raise TracError(html("Authentication information not available. " "Please refer to the ", html.a('installation documentation', title="Configuring Authentication", href=req.href.wiki('TracInstall') + "
def _do_login(self, req): """Log the remote user in.
d6c5efdde410a5f9f0ce05f92cca653cc459ee31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d6c5efdde410a5f9f0ce05f92cca653cc459ee31/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5819, 12, 2890, 16, 1111, 4672, 3536, 1343, 326, 2632, 729, 316, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5819, 12, 2890, 16, 1111, 4672, 3536, 1343, 326, 2632, 729, 316, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
columns = int(floor(float(screenWidth) / columnWidth)) lines = int(ceil(float(len(items)) / columns))
columns = int(math.floor(float(screenWidth) / columnWidth)) lines = int(math.ceil(float(len(items)) / columns))
def FormattedCondPrint(self, state, items): '''Formatted conditional print''' items.sort() screenWidth = self.width - len("%s[%s]:" % (self.__name__, state)) columnWidth = 1 for item in items: if len(item) > columnWidth: columnWidth = len(item) columnWidth += 1
6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef/Toolset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 2344, 12441, 5108, 12, 2890, 16, 919, 16, 1516, 4672, 9163, 18298, 11139, 1172, 26418, 1516, 18, 3804, 1435, 5518, 2384, 273, 365, 18, 2819, 300, 562, 27188, 87, 14451, 87, 65, 2773, 738, 261, 2890, 16186, 529, 972, 16, 919, 3719, 1057, 2384, 273, 404, 364, 761, 316, 1516, 30, 309, 562, 12, 1726, 13, 405, 1057, 2384, 30, 1057, 2384, 273, 562, 12, 1726, 13, 1057, 2384, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 2344, 12441, 5108, 12, 2890, 16, 919, 16, 1516, 4672, 9163, 18298, 11139, 1172, 26418, 1516, 18, 3804, 1435, 5518, 2384, 273, 365, 18, 2819, 300, 562, 27188, 87, 14451, 87, 65, 2773, 738, 261, 2890, 16186, 529, 972, 16, 919, 3719, 1057, 2384, 273, 404, 364, 761, 316, 1516, 30, 309, 562, 12, 1726, 13, 405, 1057, 2384, 30, 1057, 2384, 273, 562, 12, 1726, 13, 1057, 2384, 1011, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
yield item
if item not in changedItems: yield item
def _run(self, kinds, newItems):
d2d8cf7b1a4a4ff75908d24fb667bc40910672c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d2d8cf7b1a4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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 12, 2890, 16, 21961, 16, 394, 3126, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
table:style-name="table-default.cell-C4">
table:style-name="table-default.cell-C1">
def test_table_tfoot_no_tbody(self): """Test <tfoot> tag without <tbody>""" html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <tfoot> <tr> <td>Cell1</td> <td>Cell2</td> </tr> </tfoot> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re.sub('(xmlns:[a-z0-9=:".-]+\s+)*', '', str(odt)) # remove comments odt = re.sub('(<!--[a-z0-9=-]+-->)*', '', odt) print odt assert re.search(r""" <table:table \s+ table:style-name="table-default"> \s* <table:table-column \s+ table:number-columns-repeated="2"/> \s* <table:table-row> \s*
3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c/test_tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2121, 67, 88, 10923, 67, 2135, 67, 20779, 12, 2890, 4672, 3536, 4709, 411, 88, 10923, 34, 1047, 2887, 411, 20779, 2984, 3660, 1729, 273, 3536, 32, 2620, 12302, 1546, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 6441, 411, 2121, 34, 411, 88, 10923, 34, 411, 313, 34, 411, 4465, 34, 4020, 21, 1757, 4465, 34, 411, 4465, 34, 4020, 22, 1757, 4465, 34, 7765, 313, 34, 7765, 88, 10923, 34, 411, 313, 34, 411, 4465, 34, 4020, 23, 1757, 4465, 34, 411, 4465, 34, 4020, 24, 1757, 4465, 34, 7765, 313, 34, 7765, 2121, 34, 7765, 2620, 34, 3536, 320, 7510, 273, 619, 2620, 22, 369, 88, 12, 2620, 13, 468, 1206, 7728, 320, 7510, 273, 283, 18, 1717, 2668, 12, 16741, 30, 63, 69, 17, 94, 20, 17, 29, 33, 2773, 18, 23238, 64, 87, 6975, 14, 2187, 10226, 609, 12, 369, 88, 3719, 468, 1206, 5678, 320, 7510, 273, 283, 18, 1717, 2668, 12, 5586, 413, 63, 69, 17, 94, 20, 17, 29, 33, 23238, 413, 34, 17653, 2187, 10226, 320, 7510, 13, 1172, 320, 7510, 1815, 283, 18, 3072, 12, 86, 8395, 411, 2121, 30, 2121, 521, 87, 15, 1014, 30, 4060, 17, 529, 1546, 2121, 17, 1886, 6441, 521, 87, 14, 411, 2121, 30, 2121, 17, 2827, 521, 87, 15, 1014, 30, 2696, 17, 5112, 17, 266, 9061, 1546, 22, 6, 21259, 521, 87, 14, 411, 2121, 30, 2121, 17, 492, 34, 521, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2121, 67, 88, 10923, 67, 2135, 67, 20779, 12, 2890, 4672, 3536, 4709, 411, 88, 10923, 34, 1047, 2887, 411, 20779, 2984, 3660, 1729, 273, 3536, 32, 2620, 12302, 1546, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 6441, 411, 2121, 34, 411, 88, 10923, 34, 411, 313, 34, 411, 4465, 34, 4020, 21, 1757, 4465, 34, 411, 4465, 34, 4020, 22, 1757, 4465, 34, 7765, 313, 34, 7765, 88, 10923, 34, 411, 313, 34, 411, 4465, 34, 4020, 23, 1757, 4465, 34, 411, 4465, 34, 4020, 24, 1757, 4465, 34, 7765, 313, 34, 7765, 2121, 34, 7765, 2620, 34, 3536, 320, 7510, 273, 619, 2620, 22, 369, 88, 12, 2620, 2 ]
d = self.get_data(key)
try: d = self.get_data(key) except web.HTTPError, e: if web.ctx.status.lower() == "404 not found": d = {"key": key} else: raise
def GET(self, key): # only allow admin users to edit yaml if not self.is_admin(): return render.permission_denied(key, 'Permission Denied') d = self.get_data(key) return render.edit_yaml(key, self.dump(d))
ded72711e9dc2b35673f0850b196c1956bb699ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/ded72711e9dc2b35673f0850b196c1956bb699ac/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 498, 4672, 468, 1338, 1699, 3981, 3677, 358, 3874, 6097, 309, 486, 365, 18, 291, 67, 3666, 13332, 327, 1743, 18, 9827, 67, 13002, 2092, 12, 856, 16, 296, 5041, 22453, 2092, 6134, 225, 775, 30, 302, 273, 365, 18, 588, 67, 892, 12, 856, 13, 1335, 3311, 18, 3693, 668, 16, 425, 30, 309, 3311, 18, 5900, 18, 2327, 18, 8167, 1435, 422, 315, 11746, 486, 1392, 6877, 302, 273, 12528, 856, 6877, 498, 97, 469, 30, 1002, 327, 1743, 18, 4619, 67, 9522, 12, 856, 16, 365, 18, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 498, 4672, 468, 1338, 1699, 3981, 3677, 358, 3874, 6097, 309, 486, 365, 18, 291, 67, 3666, 13332, 327, 1743, 18, 9827, 67, 13002, 2092, 12, 856, 16, 296, 5041, 22453, 2092, 6134, 225, 775, 30, 302, 273, 365, 18, 588, 67, 892, 12, 856, 13, 1335, 3311, 18, 3693, 668, 16, 425, 30, 309, 3311, 18, 5900, 18, 2327, 18, 8167, 1435, 422, 315, 11746, 486, 1392, 6877, 302, 273, 12528, 856, 6877, 498, 97, 469, 30, 1002, 327, 1743, 18, 4619, 67, 9522, 12, 856, 16, 365, 18, 8481, 12, 72, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self._player in self._dirtyEntities.keys():
if self._player is not None and self._player in self._dirtyEntities.keys():
def update(self): # FIXME the best thing to do is to call entity.update() # for now just hack the position if self._player in self._dirtyEntities.keys(): for entity, keypaths in self._dirtyEntities.items(): if entity.has_key("position"): pos = entity.position entity.render.nodepath.setPos(pos.x, pos.y, pos.z) else: pos = self._player.position self._player.render.nodepath.setPos(pos.x, pos.y, pos.z) self._player.render.nodepath.setQuat(pos.rotation) """ for entity, keypaths in self._dirtyEntities.items(): if len(keypaths) > 0: self._updaterDelegate.updateEntity(entity, keypaths) """
18e197a2fed4cf58387aff85aa46f3ac3f8b4aa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/18e197a2fed4cf58387aff85aa46f3ac3f8b4aa3/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 468, 9852, 326, 3796, 7757, 358, 741, 353, 358, 745, 1522, 18, 2725, 1435, 468, 364, 2037, 2537, 11769, 326, 1754, 309, 365, 6315, 14872, 353, 486, 599, 471, 365, 6315, 14872, 316, 365, 6315, 18013, 8108, 18, 2452, 13332, 364, 1522, 16, 498, 4481, 316, 365, 6315, 18013, 8108, 18, 3319, 13332, 309, 1522, 18, 5332, 67, 856, 2932, 3276, 6, 4672, 949, 273, 1522, 18, 3276, 1522, 18, 5902, 18, 2159, 803, 18, 542, 1616, 12, 917, 18, 92, 16, 949, 18, 93, 16, 949, 18, 94, 13, 469, 30, 949, 273, 365, 6315, 14872, 18, 3276, 365, 6315, 14872, 18, 5902, 18, 2159, 803, 18, 542, 1616, 12, 917, 18, 92, 16, 949, 18, 93, 16, 949, 18, 94, 13, 365, 6315, 14872, 18, 5902, 18, 2159, 803, 18, 542, 928, 270, 12, 917, 18, 18807, 13, 3536, 364, 1522, 16, 498, 4481, 316, 365, 6315, 18013, 8108, 18, 3319, 13332, 309, 562, 12, 856, 4481, 13, 405, 374, 30, 365, 6315, 25575, 9586, 18, 2725, 1943, 12, 1096, 16, 498, 4481, 13, 3536, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 468, 9852, 326, 3796, 7757, 358, 741, 353, 358, 745, 1522, 18, 2725, 1435, 468, 364, 2037, 2537, 11769, 326, 1754, 309, 365, 6315, 14872, 353, 486, 599, 471, 365, 6315, 14872, 316, 365, 6315, 18013, 8108, 18, 2452, 13332, 364, 1522, 16, 498, 4481, 316, 365, 6315, 18013, 8108, 18, 3319, 13332, 309, 1522, 18, 5332, 67, 856, 2932, 3276, 6, 4672, 949, 273, 1522, 18, 3276, 1522, 18, 5902, 18, 2159, 803, 18, 542, 1616, 12, 917, 18, 92, 16, 949, 18, 93, 16, 949, 18, 94, 13, 469, 30, 949, 273, 365, 6315, 14872, 18, 3276, 365, 6315, 14872, 18, 5902, 18, 2159, 803, 18, 542, 1616, 12, 917, 18, 92, 2 ]
while vs < nvs and k < maxiter: print "new iteration: vs = ", vs, " nvs = ", nvs, " k = ", k print "mu.shape = ", mu.shape
for k in xrange(p): print "NEW ITERATION k = ", k, " active_set = ", act_set
def lars(X, y): # n is the number of variables, p is the number of "predictors" or # basis vectors # the predictors are assumed to be standardized and y is centered. # in the example of the prostate data n would be the number n,p = X.shape mu = zeros(n) act_set = [] inact_set = range(p) k = 0 vs = 0 nvs = min(n-1,p) beta = zeros((2*nvs,p)) maxiter = nvs * 8 # initial cholesky decomposition of the gram matrix R = zeros((0,0)) while vs < nvs and k < maxiter: print "new iteration: vs = ", vs, " nvs = ", nvs, " k = ", k print "mu.shape = ", mu.shape #print "mu = ", mu # compute correlation with inactive set # and element that has the maximum correlation c = dot(X.T, y - mu) #c = c.reshape(1,len(c)) jia = argmax(abs(c[inact_set])) j = inact_set[jia] C = c[j] print "predictor ", j, " max corr with w/ current residual: ", C print "adding ", j, " to active set" print "R shape before insert: ", R.shape # add the most correlated predictor to the active set R = cholinsert(R,X[:,j],X[:,act_set]) act_set.append(j) inact_set.remove(j) vs += 1 print "R shape after insert ", R.shape print "active set = ", act_set print "inactive set = ", inact_set # get the signs of the correlations s = sign(c[act_set]) s = s.reshape(len(s),1) #print "R.shape = ", R.shape #print "s.shape = ", s.shape # move in the direction of the least squares solution GA1 = solve(R,solve(R.T, s)) AA = 1/sqrt(sum(GA1 * s)) w = AA * GA1 # equiangular direction - this should be a unit vector print "X[:,act_set].shape = ",X[:,act_set].shape #print "w.shape = ",w.shape u = dot(X[:,act_set], w).reshape(-1) #print "norm of u = ", norm(u) #print "u.shape = ", u.shape # if this is the last iteration i.e. all variables are in the # active set, then set the step toward the full least squares # solution if vs == nvs: print "last variable going all the way to least squares solution" gamma = C / AA else: a = dot(X.T,u) a = a.reshape((len(a),)) tmp = r_[(C - c[inact_set])/(AA - a[inact_set]), (C + c[inact_set])/(AA + a[inact_set])] gamma = min(r_[tmp[tmp > 0], array([C/AA]).reshape(-1)]) mu = mu + gamma * u if beta.shape[0] < k: beta = c_[beta, zeros((beta.shape[0],))] beta[k+1,act_set] = beta[k,act_set] + gamma*w.T.reshape(-1) k += 1 return beta
0db785b39c36b490ef6940e674e6c7ea9ebc6107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14601/0db785b39c36b490ef6940e674e6c7ea9ebc6107/lars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5604, 87, 12, 60, 16, 677, 4672, 468, 290, 353, 326, 1300, 434, 3152, 16, 293, 353, 326, 1300, 434, 315, 14491, 1383, 6, 578, 468, 10853, 10046, 225, 468, 326, 7810, 1383, 854, 12034, 358, 506, 4529, 1235, 471, 677, 353, 25340, 18, 225, 468, 316, 326, 3454, 434, 326, 450, 2019, 501, 290, 4102, 506, 326, 1300, 290, 16, 84, 273, 1139, 18, 4867, 225, 4129, 273, 4922, 12, 82, 13, 1328, 67, 542, 273, 5378, 316, 621, 67, 542, 273, 1048, 12, 84, 13, 225, 417, 273, 374, 6195, 273, 374, 290, 6904, 273, 1131, 12, 82, 17, 21, 16, 84, 13, 225, 6796, 273, 4922, 12443, 22, 14, 82, 6904, 16, 84, 3719, 225, 25743, 273, 290, 6904, 380, 1725, 225, 468, 2172, 462, 9112, 18465, 26288, 434, 326, 24663, 3148, 534, 273, 4922, 12443, 20, 16, 20, 3719, 225, 1323, 6195, 411, 290, 6904, 471, 417, 411, 25743, 30, 1172, 315, 2704, 6532, 30, 6195, 273, 3104, 6195, 16, 315, 290, 6904, 273, 3104, 290, 6904, 16, 315, 417, 273, 3104, 417, 1172, 315, 13297, 18, 4867, 273, 3104, 4129, 18, 4867, 468, 1188, 315, 13297, 273, 3104, 4129, 225, 468, 3671, 12603, 598, 16838, 444, 468, 471, 930, 716, 711, 326, 4207, 12603, 276, 273, 3928, 12, 60, 18, 56, 16, 677, 300, 4129, 13, 468, 71, 273, 276, 18, 1955, 1273, 12, 21, 16, 1897, 12, 71, 3719, 525, 1155, 273, 20828, 12, 5113, 12, 71, 63, 267, 621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5604, 87, 12, 60, 16, 677, 4672, 468, 290, 353, 326, 1300, 434, 3152, 16, 293, 353, 326, 1300, 434, 315, 14491, 1383, 6, 578, 468, 10853, 10046, 225, 468, 326, 7810, 1383, 854, 12034, 358, 506, 4529, 1235, 471, 677, 353, 25340, 18, 225, 468, 316, 326, 3454, 434, 326, 450, 2019, 501, 290, 4102, 506, 326, 1300, 290, 16, 84, 273, 1139, 18, 4867, 225, 4129, 273, 4922, 12, 82, 13, 1328, 67, 542, 273, 5378, 316, 621, 67, 542, 273, 1048, 12, 84, 13, 225, 417, 273, 374, 6195, 273, 374, 290, 6904, 273, 1131, 12, 82, 17, 21, 16, 84, 13, 225, 6796, 273, 4922, 12443, 22, 14, 82, 6904, 16, 84, 3719, 225, 2 ]
self.stopMainLoop()
def OnDebug(self, event): if self.interacting: self.set_continue() self.stopMainLoop() else: self.debug_file(self.filename) self.stopMainLoop()
4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2829, 12, 2890, 16, 871, 4672, 309, 365, 18, 2761, 621, 310, 30, 365, 18, 542, 67, 17143, 1435, 469, 30, 365, 18, 4148, 67, 768, 12, 2890, 18, 3459, 13, 365, 18, 5681, 6376, 6452, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 365, 18, 4148, 67, 768, 12, 2890, 18, 3459, 13, 365, 18, 5681, 6376, 6452, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""
'''
def testI18nResource(self): self.assertEqual(queryResource('test', request, None), None)
1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 45, 2643, 82, 1420, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2271, 1420, 2668, 3813, 2187, 590, 16, 599, 3631, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 1420, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2271, 1420, 2668, 3813, 2187, 590, 16, 599, 3631, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
char.socket.deltag( 'wood_gem' )
def successlumberjacking( char, args ): socket = char.socket pos = args[0] # Target POS resource = args[1] amount = args[2] tool = args[3] resname = args[4] table = args[5] # Lets make sure we stayed next to the tree # Player can reach that ? if char.pos.map != pos.map or char.pos.distance( pos ) > chopdistance: socket.sysmessage("You have moved too far away to gather any wood.") socket.deltag( 'is_lumberjacking' ) return False if not resource.hastag( 'resourcecount' ): return False if int( resource.gettag( 'resourcecount' ) ) <= 0: char.socket.clilocmessage( 500488, '', GRAY ) return False reqskill = woodtable[ resname ][ REQSKILL ] chance = int( ( char.skill[ LUMBERJACKING ] - woodtable[ resname ][ MINSKILL ] ) / 10 ) if char.skill[ LUMBERJACKING ] < reqskill: char.socket.clilocmessage( 500298 ) # You are not skilled enough... return False else: # Skill Check against LUMBERJACKING if not char.checkskill( LUMBERJACKING, reqskill, 1200 ): char.socket.clilocmessage( 500495 ) # You hack at the tree for a while but fail to produce... success = 0 return False elif chance >= randint(1, 100): char.socket.clilocmessage( 500498 ) # You put some logs into your backpack if tool.gettag( 'remaining_uses' ) > 1: tool.settag( 'remaining_uses', int( int( tool.gettag( 'remaining_uses' ) ) - 1 ) ) tool.resendtooltip() elif tool.gettag( 'remaining_uses' ) == 1: tool.delete() # You broke your axe! socket.clilocmessage( 500499, '', GRAY ) char.socket.deltag( 'wood_gem' ) char.socket.deltag( 'is_lumberjacking' ) success = 1 else: char.socket.clilocmessage( 500495 ) # You hack at the tree for a while but fail to produce... success = 0 return False if success == 1: # Check for a backpack backpack = char.getbackpack() if not backpack: return False # Create an item in my pack (logs to be specific) resourceitem = wolfpack.additem( "1bdd" ) if ( FELUCIA2XRESGAIN == TRUE ) and ( char.pos.map == 0 ): resourceitem.amount = 20 else: resourceitem.amount = 10 resourceitem.settag( 'resname', resname ) # Used when crafting if not wolfpack.utilities.tobackpack( resourceitem, char ): resourceitem.update() if resource.gettag( 'resourcecount' ) >= 1: resource.settag( 'resourcecount', int( amount - 1 ) ) elif resource.gettag( 'resourcecount' ) == 0: if not resource.hastag ('resource_empty') and int( resource.gettag( 'resourcecount' ) ) == 0: resource.settag( 'resource_empty', 'true' ) resource.addtimer( woodrespawndelay, "skills.lumberjacking.respawnvein", [], True ) return True
17b6829a3f12eb2f9286af89e445d64fe22e3222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/17b6829a3f12eb2f9286af89e445d64fe22e3222/lumberjacking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2216, 80, 1226, 78, 484, 310, 12, 1149, 16, 833, 262, 30, 2987, 273, 1149, 18, 7814, 949, 273, 833, 63, 20, 65, 468, 5916, 12511, 1058, 273, 833, 63, 21, 65, 3844, 273, 833, 63, 22, 65, 5226, 273, 833, 63, 23, 65, 400, 529, 273, 833, 63, 24, 65, 1014, 273, 833, 63, 25, 65, 225, 468, 511, 2413, 1221, 3071, 732, 23449, 329, 1024, 358, 326, 2151, 468, 19185, 848, 9287, 716, 692, 309, 1149, 18, 917, 18, 1458, 480, 949, 18, 1458, 578, 1149, 18, 917, 18, 8969, 12, 949, 262, 405, 31258, 8969, 30, 2987, 18, 9499, 2150, 2932, 6225, 1240, 10456, 4885, 10247, 10804, 358, 11090, 1281, 341, 4773, 1199, 13, 2987, 18, 3771, 2692, 12, 296, 291, 67, 80, 1226, 78, 484, 310, 11, 262, 327, 1083, 225, 309, 486, 1058, 18, 76, 689, 346, 12, 296, 3146, 1883, 11, 262, 30, 327, 1083, 225, 309, 509, 12, 1058, 18, 588, 2692, 12, 296, 3146, 1883, 11, 262, 262, 1648, 374, 30, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 6604, 24, 5482, 16, 10226, 611, 6722, 262, 327, 1083, 225, 1111, 7771, 737, 273, 341, 4773, 2121, 63, 400, 529, 308, 63, 2438, 53, 11129, 15125, 308, 17920, 273, 509, 12, 261, 1149, 18, 7771, 737, 63, 511, 2799, 6271, 46, 3649, 1360, 308, 300, 341, 4773, 2121, 63, 400, 529, 308, 63, 6989, 11129, 15125, 308, 262, 342, 1728, 262, 225, 309, 1149, 18, 7771, 737, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2216, 80, 1226, 78, 484, 310, 12, 1149, 16, 833, 262, 30, 2987, 273, 1149, 18, 7814, 949, 273, 833, 63, 20, 65, 468, 5916, 12511, 1058, 273, 833, 63, 21, 65, 3844, 273, 833, 63, 22, 65, 5226, 273, 833, 63, 23, 65, 400, 529, 273, 833, 63, 24, 65, 1014, 273, 833, 63, 25, 65, 225, 468, 511, 2413, 1221, 3071, 732, 23449, 329, 1024, 358, 326, 2151, 468, 19185, 848, 9287, 716, 692, 309, 1149, 18, 917, 18, 1458, 480, 949, 18, 1458, 578, 1149, 18, 917, 18, 8969, 12, 949, 262, 405, 31258, 8969, 30, 2987, 18, 9499, 2150, 2932, 6225, 1240, 10456, 4885, 10247, 10804, 358, 11090, 1281, 341, 4773, 1199, 13, 2987, 2 ]
gtk.ListStore.__init__(self, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
gtk.ListStore.__init__(self, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
def __init__(self, _device): gtk.ListStore.__init__(self, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT) self.__cache = {} # lock to prevent more thread for uodating the model at the same time self.__lock = Lock()
dd3cf1c4e1f5d4e7d093d63a04017b30e61ec998 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2271/dd3cf1c4e1f5d4e7d093d63a04017b30e61ec998/DeviceEngine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 389, 5964, 4672, 22718, 18, 682, 2257, 16186, 2738, 972, 12, 2890, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 57, 3217, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 16235, 9422, 13, 365, 16186, 2493, 273, 2618, 468, 2176, 358, 5309, 1898, 2650, 364, 582, 369, 1776, 326, 938, 622, 326, 1967, 813, 365, 16186, 739, 273, 3488, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 389, 5964, 4672, 22718, 18, 682, 2257, 16186, 2738, 972, 12, 2890, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 57, 3217, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 16235, 9422, 13, 365, 16186, 2493, 273, 2618, 468, 2176, 358, 5309, 1898, 2650, 364, 582, 369, 1776, 326, 938, 622, 326, 1967, 2 ]
if line.invoice_id.price_type == 'tax_included':
if line.invoice_id and line.invoice_id.price_type == 'tax_included':
def _amount_line(self, cr, uid, ids, name, args, context={}): """ Return the subtotal excluding taxes with respect to price_type. """ res = {} tax_obj = self.pool.get('account.tax') res = super(account_invoice_line, self)._amount_line(cr, uid, ids, name, args, context) res2 = res.copy() for line in self.browse(cr, uid, ids): if not line.quantity: res[line.id] = 0.0 continue if line.invoice_id.price_type == 'tax_included': product_taxes = None if line.product_id: if line.invoice_id.type in ('out_invoice', 'out_refund'): product_taxes = line.product_id.taxes_id else: product_taxes = line.product_id.supplier_taxes_id if product_taxes: for tax in tax_obj.compute_inv(cr, uid, product_taxes, res[line.id]/line.quantity, line.quantity): res[line.id] = res[line.id] - round(tax['amount'], 2) else: for tax in tax_obj.compute_inv(cr, uid,line.invoice_line_tax_id, res[line.id]/line.quantity, line.quantity): res[line.id] = res[line.id] - round(tax['amount'], 2) if name == 'price_subtotal_incl' and line.invoice_id.price_type == 'tax_included': prod_taxe_ids = None line_taxe_ids = None if product_taxes: prod_taxe_ids = [ t.id for t in product_taxes ] prod_taxe_ids.sort() line_taxe_ids = [ t.id for t in line.invoice_line_tax_id ] line_taxe_ids.sort() if product_taxes and prod_taxe_ids == line_taxe_ids: res[line.id] = res2[line.id] elif not line.product_id: res[line.id] = res2[line.id] else: for tax in tax_obj.compute(cr, uid, line.invoice_line_tax_id, res[line.id]/line.quantity, line.quantity): res[line.id] = res[line.id] + tax['amount'] res[line.id]= round(res[line.id], 2) return res
5f67e62100578928f518f7119b78592c629d21b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/5f67e62100578928f518f7119b78592c629d21b8/invoice_tax_incl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 1369, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 3536, 2000, 326, 720, 4963, 19560, 5320, 281, 598, 8762, 358, 6205, 67, 723, 18, 3536, 400, 273, 2618, 5320, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 6134, 400, 273, 2240, 12, 4631, 67, 16119, 67, 1369, 16, 365, 2934, 67, 8949, 67, 1369, 12, 3353, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 13, 400, 22, 273, 400, 18, 3530, 1435, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 486, 980, 18, 16172, 30, 400, 63, 1369, 18, 350, 65, 273, 374, 18, 20, 1324, 309, 980, 18, 16119, 67, 350, 471, 980, 18, 16119, 67, 350, 18, 8694, 67, 723, 422, 296, 8066, 67, 20405, 4278, 3017, 67, 8066, 281, 273, 599, 309, 980, 18, 5896, 67, 350, 30, 309, 980, 18, 16119, 67, 350, 18, 723, 316, 7707, 659, 67, 16119, 2187, 296, 659, 67, 1734, 1074, 11, 4672, 3017, 67, 8066, 281, 273, 980, 18, 5896, 67, 350, 18, 8066, 281, 67, 350, 469, 30, 3017, 67, 8066, 281, 273, 980, 18, 5896, 67, 350, 18, 2859, 5742, 67, 8066, 281, 67, 350, 309, 3017, 67, 8066, 281, 30, 364, 5320, 316, 5320, 67, 2603, 18, 9200, 67, 5768, 12, 3353, 16, 4555, 16, 3017, 67, 8066, 281, 16, 400, 63, 1369, 18, 350, 18537, 1369, 18, 16172, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 1369, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 3536, 2000, 326, 720, 4963, 19560, 5320, 281, 598, 8762, 358, 6205, 67, 723, 18, 3536, 400, 273, 2618, 5320, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 8066, 6134, 400, 273, 2240, 12, 4631, 67, 16119, 67, 1369, 16, 365, 2934, 67, 8949, 67, 1369, 12, 3353, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 13, 400, 22, 273, 400, 18, 3530, 1435, 364, 980, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 486, 980, 18, 16172, 30, 400, 63, 1369, 18, 350, 65, 273, 374, 18, 20, 2 ]
user.participant.rsvp = choice
participant = Participant.query.filter_by(user=user, edition=edition).first() if participant: participant.rsvp = choice else: flash(u"You did not register for this edition, %s." % user.fullname, 'error') return redirect(url_for('index'), code=303)
def rsvp(): key = request.args.get('key') choice = request.args.get('rsvp') if key is None: flash(u"You need an access key to RSVP.", 'error') return redirect(url_for('index'), code=303) if choice not in ['Y', 'N', 'M']: flash(u"You need to RSVP with Yes, No or Maybe: Y, N or M.", 'error') return redirect(url_for('index'), code=303) user = User.query.filter_by(privatekey=key).first() if user is None: flash(u"Sorry, that access key is not in our records.", 'error') return redirect(url_for('index'), code=303) user.participant.rsvp = choice if choice == 'Y': flash(u"Yay! So glad you will be joining us.", 'info') elif choice == 'N': flash(u"Sorry you can't make it. Hope you’ll join us next time.", 'error') # Fake 'error' for frowny icon elif choice == 'M': flash(u"We recorded you as Maybe Attending. When you know better, could you select Yes or No?", 'info') db.session.commit() return redirect(url_for('index'), code=303)
f7cc649d162305e0ce6ef8008f6f776172e0d077 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12083/f7cc649d162305e0ce6ef8008f6f776172e0d077/website.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3597, 20106, 13332, 498, 273, 590, 18, 1968, 18, 588, 2668, 856, 6134, 6023, 273, 590, 18, 1968, 18, 588, 2668, 5453, 20106, 6134, 309, 498, 353, 599, 30, 9563, 12, 89, 6, 6225, 1608, 392, 2006, 498, 358, 14746, 26152, 1199, 16, 296, 1636, 6134, 327, 3136, 12, 718, 67, 1884, 2668, 1615, 19899, 981, 33, 23, 4630, 13, 309, 6023, 486, 316, 10228, 61, 2187, 296, 50, 2187, 296, 49, 3546, 30, 9563, 12, 89, 6, 6225, 1608, 358, 14746, 26152, 598, 19925, 16, 2631, 578, 14024, 30, 1624, 16, 423, 578, 490, 1199, 16, 296, 1636, 6134, 327, 3136, 12, 718, 67, 1884, 2668, 1615, 19899, 981, 33, 23, 4630, 13, 729, 273, 2177, 18, 2271, 18, 2188, 67, 1637, 12, 1152, 856, 33, 856, 2934, 3645, 1435, 309, 729, 353, 599, 30, 9563, 12, 89, 6, 28898, 16, 716, 2006, 498, 353, 486, 316, 3134, 3853, 1199, 16, 296, 1636, 6134, 327, 3136, 12, 718, 67, 1884, 2668, 1615, 19899, 981, 33, 23, 4630, 13, 14188, 273, 31333, 18, 2271, 18, 2188, 67, 1637, 12, 1355, 33, 1355, 16, 28432, 33, 329, 608, 2934, 3645, 1435, 309, 14188, 30, 14188, 18, 5453, 20106, 273, 6023, 469, 30, 9563, 12, 89, 6, 6225, 5061, 486, 1744, 364, 333, 28432, 16, 738, 87, 1199, 738, 729, 18, 21885, 16, 296, 1636, 6134, 327, 3136, 12, 718, 67, 1884, 2668, 1615, 19899, 981, 33, 23, 4630, 13, 309, 6023, 422, 296, 61, 4278, 9563, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3597, 20106, 13332, 498, 273, 590, 18, 1968, 18, 588, 2668, 856, 6134, 6023, 273, 590, 18, 1968, 18, 588, 2668, 5453, 20106, 6134, 309, 498, 353, 599, 30, 9563, 12, 89, 6, 6225, 1608, 392, 2006, 498, 358, 14746, 26152, 1199, 16, 296, 1636, 6134, 327, 3136, 12, 718, 67, 1884, 2668, 1615, 19899, 981, 33, 23, 4630, 13, 309, 6023, 486, 316, 10228, 61, 2187, 296, 50, 2187, 296, 49, 3546, 30, 9563, 12, 89, 6, 6225, 1608, 358, 14746, 26152, 598, 19925, 16, 2631, 578, 14024, 30, 1624, 16, 423, 578, 490, 1199, 16, 296, 1636, 6134, 327, 3136, 12, 718, 67, 1884, 2668, 1615, 19899, 981, 33, 23, 4630, 13, 729, 273, 2177, 18, 2 ]
elif (at1.molecule.part is not None) or (at2.molecule.part is not None):
elif (at1.molecule.part is None) or (at2.molecule.part is None):
def changed_atoms(self): """Private method to call when the atoms assigned to this bond are changed. WARNING: does not call setup_invalidate(), though that would often also be needed, as would invalidate_bonded_mols() both before and after the change. """ at1 = self.atom1 at2 = self.atom2 assert at1 is not at2 self.key = 65536*min(at1.key,at2.key)+max(at1.key,at2.key) #bruce 050317: debug warning for interpart bonds, or bonding killed atoms/chunks, # or bonding to chunks not yet added to any Part (but not warning about internal # bonds, since mol.copy makes those before a copied chunk is added to any Part). # This covers new bonds (no matter how made) and the .rebond method. # Maybe this should be an actual error, or maybe it should set a flag so that # involved chunks are checked for interpart bonds when the user event is done # (in case caller plans to move the chunks into the same part, but hasn't yet). # It might turn out this happens a lot (and is not a bug), if callers make a # new chunk, bond to it, and only then add it into the tree of Nodes. if platform.atom_debug and at1.molecule is not at2.molecule: if (at1.molecule.assy is not None) or (at2.molecule.assy is not None): print_compact_stack( "atom_debug: bug?: bonding to a killed chunk(?); atoms are: %r, %r" % (at1,at2)) elif (at1.molecule.part is not None) or (at2.molecule.part is not None): if 0: #bruce 050321 this happens a lot when reading an mmp file, so disable it for now print_compact_stack( "atom_debug: bug or fyi: one or both Parts None when bonding atoms: %r, %r" % (at1,at2)) elif at1.molecule.part is not at2.molecule.part: print_compact_stack( "atom_debug: likely bug: bonding atoms whose parts differ: %r, %r" % (at1,at2)) return
ab12d1fb24b5f03c0416712cb29d44a3ec1091d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ab12d1fb24b5f03c0416712cb29d44a3ec1091d0/bonds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3550, 67, 14937, 12, 2890, 4672, 3536, 6014, 707, 358, 745, 1347, 326, 9006, 6958, 358, 333, 8427, 854, 3550, 18, 9744, 30, 1552, 486, 745, 3875, 67, 5387, 340, 9334, 11376, 716, 4102, 16337, 2546, 506, 3577, 16, 487, 4102, 11587, 67, 18688, 785, 67, 81, 3528, 1435, 3937, 1865, 471, 1839, 326, 2549, 18, 3536, 622, 21, 273, 365, 18, 7466, 21, 622, 22, 273, 365, 18, 7466, 22, 1815, 622, 21, 353, 486, 622, 22, 365, 18, 856, 273, 28652, 14, 1154, 12, 270, 21, 18, 856, 16, 270, 22, 18, 856, 27921, 1896, 12, 270, 21, 18, 856, 16, 270, 22, 18, 856, 13, 468, 2848, 3965, 374, 3361, 23, 4033, 30, 1198, 3436, 364, 1554, 2680, 15692, 16, 578, 8427, 310, 24859, 9006, 19, 14691, 16, 468, 578, 8427, 310, 358, 6055, 486, 4671, 3096, 358, 1281, 6393, 261, 12885, 486, 3436, 2973, 2713, 468, 15692, 16, 3241, 12629, 18, 3530, 7297, 5348, 1865, 279, 9268, 2441, 353, 3096, 358, 1281, 6393, 2934, 468, 282, 1220, 25559, 394, 15692, 261, 2135, 15177, 3661, 7165, 13, 471, 326, 263, 266, 26425, 707, 18, 468, 282, 14024, 333, 1410, 506, 392, 3214, 555, 16, 578, 6944, 518, 1410, 444, 279, 2982, 1427, 716, 468, 24589, 6055, 854, 5950, 364, 1554, 2680, 15692, 1347, 326, 729, 871, 353, 2731, 468, 261, 267, 648, 4894, 21440, 358, 3635, 326, 6055, 1368, 326, 1967, 1087, 16, 1496, 13342, 1404, 4671, 2934, 468, 2597, 4825, 7005, 596, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3550, 67, 14937, 12, 2890, 4672, 3536, 6014, 707, 358, 745, 1347, 326, 9006, 6958, 358, 333, 8427, 854, 3550, 18, 9744, 30, 1552, 486, 745, 3875, 67, 5387, 340, 9334, 11376, 716, 4102, 16337, 2546, 506, 3577, 16, 487, 4102, 11587, 67, 18688, 785, 67, 81, 3528, 1435, 3937, 1865, 471, 1839, 326, 2549, 18, 3536, 622, 21, 273, 365, 18, 7466, 21, 622, 22, 273, 365, 18, 7466, 22, 1815, 622, 21, 353, 486, 622, 22, 365, 18, 856, 273, 28652, 14, 1154, 12, 270, 21, 18, 856, 16, 270, 22, 18, 856, 27921, 1896, 12, 270, 21, 18, 856, 16, 270, 22, 18, 856, 13, 468, 2848, 3965, 374, 3361, 23, 4033, 30, 1198, 3436, 2 ]
if not isunicode(tags): os.system("mid3iconv -q -e%s --remove-v1 '%s'" % (CHARSET, tmp_filename)) except Exception as text: print(text)
if not isunicode(tags): os.system("mid3iconv -q -e%s --remove-v1 '%s'" % (CHARSET, tmp_filename)) converted = True except EOFError: buf = f.read(BUFSIZE) tmp = open(tmp_filename, "ab") tmp.write(buf) tmp.close() except Exception as text: converted = True print(text)
def do_GET(self): if self.path.find('?') != -1: path = self.path.split('?',1)[0] else: path = self.path if path[0] == '/': path = path[1:] # TODO: process 404 and other errors
c0888af3e71886c80c926dec4b400781297acbb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14156/c0888af3e71886c80c926dec4b400781297acbb9/tagconvd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 309, 365, 18, 803, 18, 4720, 2668, 4899, 13, 480, 300, 21, 30, 589, 273, 365, 18, 803, 18, 4939, 2668, 35, 2187, 21, 25146, 20, 65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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 309, 365, 18, 803, 18, 4720, 2668, 4899, 13, 480, 300, 21, 30, 589, 273, 365, 18, 803, 18, 4939, 2668, 35, 2187, 21, 25146, 20, 65, 469, 30, 589, 273, 365, 18, 803, 309, 589, 63, 20, 65, 422, 2023, 30, 589, 273, 589, 63, 21, 26894, 468, 2660, 30, 1207, 7709, 471, 1308, 1334, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ans = self._rescale(exp_min, context.rounding) if ans != self:
digits = len(self._int) + self._exp - exp_min if digits < 0: self = _dec_from_triple(self._sign, '1', exp_min-1) digits = 0 this_function = getattr(self, self._pick_rounding_function[context.rounding]) changed = this_function(digits) coeff = self._int[:digits] or '0' if changed == 1: coeff = str(int(coeff)+1) ans = _dec_from_triple(self._sign, coeff, exp_min) if changed:
def _fix(self, context): """Round if it is necessary to keep self within prec precision.
291ea60bec6861615ac3aedcb91a7d6f3db03771 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/291ea60bec6861615ac3aedcb91a7d6f3db03771/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 12, 2890, 16, 819, 4672, 3536, 11066, 309, 518, 353, 4573, 358, 3455, 365, 3470, 13382, 6039, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 12, 2890, 16, 819, 4672, 3536, 11066, 309, 518, 353, 4573, 358, 3455, 365, 3470, 13382, 6039, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def fromDom(node):
def fromDom(self, node):
def fromDom(node): self.setAttributes(node) contents = self.getContents(node) fields = []
5b20f2b0904cc43a45210136aca4b3c019980b52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5b20f2b0904cc43a45210136aca4b3c019980b52/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 1466, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 1466, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lambda_ = self.total_charge /(self.z_length*self.units.EL_CHARGE)
lambda_ = abs(self.total_charge) /(self.z_length*self.units.EL_CHARGE)
def get_total_space_charge_parameter(self): from math import pi
9d5c51afd150494a3de1fe478baa73bccc7cc5ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12869/9d5c51afd150494a3de1fe478baa73bccc7cc5ee/distribution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4963, 67, 2981, 67, 16385, 67, 6775, 12, 2890, 4672, 628, 4233, 1930, 4790, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4963, 67, 2981, 67, 16385, 67, 6775, 12, 2890, 4672, 628, 4233, 1930, 4790, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
props.setDepthBits(1)
props.setDepthBits(depthbits)
def createBuffer(self, name, xsize, ysize, texgroup, depthbits=1): """ Low-level buffer creation. Not intended for public use. """
d40af7bc80d8eac310f9f81b4bf33b5cd30cd3f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/d40af7bc80d8eac310f9f81b4bf33b5cd30cd3f9/FilterManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1892, 12, 2890, 16, 508, 16, 619, 1467, 16, 677, 1467, 16, 16573, 1655, 16, 3598, 6789, 33, 21, 4672, 3536, 23629, 17, 2815, 1613, 6710, 18, 225, 2288, 12613, 364, 1071, 999, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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629, 17, 2815, 1613, 6710, 18, 225, 2288, 12613, 364, 1071, 999, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
str = '<?xml version="1.0" ?>\n<a b="c"/>'
str = '<?xml version="1.0" ?><a b="c"/>'
def testWriteXML(): str = '<?xml version="1.0" ?>\n<a b="c"/>' dom = parseString(str) domstr = dom.toxml() dom.unlink() confirm(str == domstr)
d2b9565d572761b7027f216799c3094e169892ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d2b9565d572761b7027f216799c3094e169892ff/test_minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3067, 4201, 13332, 609, 273, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 692, 4438, 69, 324, 1546, 71, 6, 18280, 4092, 273, 23659, 12, 701, 13, 4092, 701, 273, 4092, 18, 869, 2902, 1435, 4092, 18, 318, 1232, 1435, 6932, 12, 701, 422, 4092, 701, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3067, 4201, 13332, 609, 273, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 692, 4438, 69, 324, 1546, 71, 6, 18280, 4092, 273, 23659, 12, 701, 13, 4092, 701, 273, 4092, 18, 869, 2902, 1435, 4092, 18, 318, 1232, 1435, 6932, 12, 701, 422, 4092, 701, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
selNanotubeSegmentList += [obj]
ntSegmentList += [obj]
def addSelectedNanotubeSegment(obj): if obj.picked and isinstance(obj, self.win.assy.NanotubeSegment): selNanotubeSegmentList += [obj] return
e47b7cffba732fb1a6f8d23fbde9e912df369c60 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/e47b7cffba732fb1a6f8d23fbde9e912df369c60/ops_select.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7416, 10312, 352, 4895, 4131, 12, 2603, 4672, 309, 1081, 18, 11503, 329, 471, 1549, 12, 2603, 16, 365, 18, 8082, 18, 428, 93, 18, 10312, 352, 4895, 4131, 4672, 9513, 4131, 682, 1011, 306, 2603, 65, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7416, 10312, 352, 4895, 4131, 12, 2603, 4672, 309, 1081, 18, 11503, 329, 471, 1549, 12, 2603, 16, 365, 18, 8082, 18, 428, 93, 18, 10312, 352, 4895, 4131, 4672, 9513, 4131, 682, 1011, 306, 2603, 65, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.target_area = [460.0, 20.0, 740.0, 500.0]
self.target_area = [440.0, 20.0, 720.0, 500.0]
def __init__(self, gcomprisBoard):
913924c8dcdbcb3da5c60216f2da57d28f6c835f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/913924c8dcdbcb3da5c60216f2da57d28f6c835f/redraw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 314, 832, 683, 291, 22233, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 314, 832, 683, 291, 22233, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
col = etree.SubElement(node_line, 'col', para='yes', tree='no')
col = etree.SubElement(node_line, 'col', para='group', tree='no')
def _append_node(name, text): n = etree.SubElement(config, name) n.text = text
043431014637563ca06b30dfced7df8f4140160d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/043431014637563ca06b30dfced7df8f4140160d/ps_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 12031, 18, 1676, 1046, 12, 1425, 16, 508, 13, 290, 18, 955, 273, 977, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 12031, 18, 1676, 1046, 12, 1425, 16, 508, 13, 290, 18, 955, 273, 977, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (undo, pkg, suite) in lundo:
for (undo, pkg, pkg_name, suite) in lundo:
def do_all(self, maxdepth=0, init=None, actions=None): """Testing update runner
d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 454, 12, 2890, 16, 943, 5979, 33, 20, 16, 1208, 33, 7036, 16, 4209, 33, 7036, 4672, 3536, 22218, 1089, 8419, 2, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 454, 12, 2890, 16, 943, 5979, 33, 20, 16, 1208, 33, 7036, 16, 4209, 33, 7036, 4672, 3536, 22218, 1089, 8419, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MemberSpec_('current_state', ['current_state', 'xsd:token'], 0),
MemberSpec_('state', 'xsd:string', 0), MemberSpec_('activated', 'xsd:string', 0),
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.TEXT_NODE: self.valueOf_ += child_.nodeValue elif child_.nodeType == Node.CDATA_SECTION_NODE: self.valueOf_ += '![CDATA['+child_.nodeValue+']]'
0edf7ff39fb592b3aec2afae94ce938d1f08b997 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/0edf7ff39fb592b3aec2afae94ce938d1f08b997/generateds_system_1_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 4672, 309, 1151, 27799, 2159, 559, 422, 2029, 18, 5151, 67, 8744, 30, 365, 18, 1132, 951, 67, 1011, 1151, 27799, 2159, 620, 1327, 1151, 27799, 2159, 559, 422, 2029, 18, 18375, 67, 19082, 67, 8744, 30, 365, 18, 1132, 951, 67, 1011, 11817, 63, 18375, 3292, 15, 3624, 27799, 2159, 620, 15, 3546, 3864, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 4672, 309, 1151, 27799, 2159, 559, 422, 2029, 18, 5151, 67, 8744, 30, 365, 18, 1132, 951, 67, 1011, 1151, 27799, 2159, 620, 1327, 1151, 27799, 2159, 559, 422, 2029, 18, 18375, 67, 19082, 67, 8744, 30, 365, 18, 1132, 951, 67, 1011, 11817, 63, 18375, 3292, 15, 3624, 27799, 2159, 620, 15, 3546, 3864, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
width=min_w,
width=txt_w,
def DoGetBestSize(self): """Calculate the best size of the button @return: wx.Size
738a116ccda602ca026f61a2c7059c80b0bbe249 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/738a116ccda602ca026f61a2c7059c80b0bbe249/metallicbutton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 967, 14173, 1225, 12, 2890, 4672, 3536, 8695, 326, 3796, 963, 434, 326, 3568, 632, 2463, 30, 7075, 18, 1225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 967, 14173, 1225, 12, 2890, 4672, 3536, 8695, 326, 3796, 963, 434, 326, 3568, 632, 2463, 30, 7075, 18, 1225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
win = utils.bind_object_from_request_to_form(request, base.get_row, base.edit_window) win.title = base.title win.form.url = base.save_action.get_absolute_url() return ExtUIScriptResult(base.get_edit_window(win)) class DictAddWindowAction(Action): ''' Добавление элемента справочника ''' url = '/add-window$' def run(self, request, context): base = self.parent if base.add_window:
id = utils.extract_int(request, 'id') obj = base.get_row(id) create_new = True if isinstance(obj, dict) and obj.get('id') != None: create_new = False elif hasattr(obj, 'id') and getattr(obj, 'id') != None: create_new = False if create_new and base.add_window:
def run(self, request, context): base = self.parent win = utils.bind_object_from_request_to_form(request, base.get_row, base.edit_window) win.title = base.title win.form.url = base.save_action.get_absolute_url() return ExtUIScriptResult(base.get_edit_window(win))
72c733334f682d5f093a59f7f057b6bf2da5acd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5296/72c733334f682d5f093a59f7f057b6bf2da5acd1/packs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 590, 16, 819, 4672, 1026, 273, 365, 18, 2938, 5657, 273, 2990, 18, 4376, 67, 1612, 67, 2080, 67, 2293, 67, 869, 67, 687, 12, 2293, 16, 1026, 18, 588, 67, 492, 16, 1026, 18, 4619, 67, 5668, 13, 5657, 18, 2649, 273, 1026, 18, 2649, 5657, 18, 687, 18, 718, 273, 1026, 18, 5688, 67, 1128, 18, 588, 67, 12547, 67, 718, 1435, 225, 327, 6419, 5370, 3651, 1253, 12, 1969, 18, 588, 67, 4619, 67, 5668, 12, 8082, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 590, 16, 819, 4672, 1026, 273, 365, 18, 2938, 5657, 273, 2990, 18, 4376, 67, 1612, 67, 2080, 67, 2293, 67, 869, 67, 687, 12, 2293, 16, 1026, 18, 588, 67, 492, 16, 1026, 18, 4619, 67, 5668, 13, 5657, 18, 2649, 273, 1026, 18, 2649, 5657, 18, 687, 18, 718, 273, 1026, 18, 5688, 67, 1128, 18, 588, 67, 12547, 67, 718, 1435, 225, 327, 6419, 5370, 3651, 1253, 12, 1969, 18, 588, 67, 4619, 67, 5668, 12, 8082, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = d.run() d.hide() if result == gtk.RESPONSE_YES: self.emit("action", action, param)
def response (dialog, response): if response == gtk.RESPONSE_YES: self.emit("action", action, param) d.hide() d.connect("response", response) d.show_all()
def _offer (self, action, param, title, desciprtion): d = gtk.MessageDialog ( type = gtk.MESSAGE_QUESTION, buttons = gtk.BUTTONS_YES_NO) d.set_markup (title) d.format_secondary_text (description) result = d.run() d.hide() if result == gtk.RESPONSE_YES: self.emit("action", action, param)
cd594a34df844bbb542b8dc11f598fa062b21917 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/cd594a34df844bbb542b8dc11f598fa062b21917/Human.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 23322, 261, 2890, 16, 1301, 16, 579, 16, 2077, 16, 3044, 625, 3797, 285, 4672, 302, 273, 22718, 18, 1079, 6353, 261, 618, 273, 22718, 18, 8723, 67, 4740, 1146, 16, 9502, 273, 22718, 18, 20068, 55, 67, 29081, 67, 3417, 13, 302, 18, 542, 67, 15056, 261, 2649, 13, 302, 18, 2139, 67, 19674, 67, 955, 261, 3384, 13, 1652, 766, 261, 12730, 16, 766, 4672, 309, 766, 422, 22718, 18, 14508, 67, 29081, 30, 365, 18, 18356, 2932, 1128, 3113, 1301, 16, 579, 13, 302, 18, 11248, 1435, 302, 18, 3612, 2932, 2740, 3113, 766, 13, 302, 18, 4500, 67, 454, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 23322, 261, 2890, 16, 1301, 16, 579, 16, 2077, 16, 3044, 625, 3797, 285, 4672, 302, 273, 22718, 18, 1079, 6353, 261, 618, 273, 22718, 18, 8723, 67, 4740, 1146, 16, 9502, 273, 22718, 18, 20068, 55, 67, 29081, 67, 3417, 13, 302, 18, 542, 67, 15056, 261, 2649, 13, 302, 18, 2139, 67, 19674, 67, 955, 261, 3384, 13, 1652, 766, 261, 12730, 16, 766, 4672, 309, 766, 422, 22718, 18, 14508, 67, 29081, 30, 365, 18, 18356, 2932, 1128, 3113, 1301, 16, 579, 13, 302, 18, 11248, 1435, 302, 18, 3612, 2932, 2740, 3113, 766, 13, 302, 18, 4500, 67, 454, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if new_behavior: self.assertResult((p.update_i386, p.requires_update)) else: self.assertResult((p.installed_i386, p.update_x86_64, p.requires_update))
self.assertResult((p.update_i386, p.requires_update))
def testUpdatei386ToMultilibForDependency(self): p = self.pkgs res, msg = self.runOperation(['install', 'zsh-utils'], [p.installed_i386], [p.update_i386, p.update_x86_64, p.requires_update]) self.assert_(res=='ok', msg) if new_behavior: self.assertResult((p.update_i386, p.requires_update)) else: self.assertResult((p.installed_i386, p.update_x86_64, p.requires_update))
8e2a5f5410c9856fccd419757faf7f21560db8df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/8e2a5f5410c9856fccd419757faf7f21560db8df/operationstests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1891, 77, 23, 5292, 774, 5049, 330, 495, 1290, 7787, 12, 2890, 4672, 293, 273, 365, 18, 25376, 400, 16, 1234, 273, 365, 18, 2681, 2988, 12, 3292, 5425, 2187, 296, 94, 674, 17, 5471, 17337, 306, 84, 18, 13435, 67, 77, 23, 5292, 6487, 306, 84, 18, 2725, 67, 77, 23, 5292, 16, 293, 18, 2725, 67, 92, 5292, 67, 1105, 16, 293, 18, 18942, 67, 2725, 5717, 365, 18, 11231, 67, 12, 455, 18920, 601, 2187, 1234, 13, 309, 394, 67, 31936, 30, 365, 18, 11231, 1253, 12443, 84, 18, 2725, 67, 77, 23, 5292, 16, 293, 18, 18942, 67, 2725, 3719, 469, 30, 365, 18, 11231, 1253, 12443, 84, 18, 13435, 67, 77, 23, 5292, 16, 293, 18, 2725, 67, 92, 5292, 67, 1105, 16, 293, 18, 18942, 67, 2725, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1891, 77, 23, 5292, 774, 5049, 330, 495, 1290, 7787, 12, 2890, 4672, 293, 273, 365, 18, 25376, 400, 16, 1234, 273, 365, 18, 2681, 2988, 12, 3292, 5425, 2187, 296, 94, 674, 17, 5471, 17337, 306, 84, 18, 13435, 67, 77, 23, 5292, 6487, 306, 84, 18, 2725, 67, 77, 23, 5292, 16, 293, 18, 2725, 67, 92, 5292, 67, 1105, 16, 293, 18, 18942, 67, 2725, 5717, 365, 18, 11231, 67, 12, 455, 18920, 601, 2187, 1234, 13, 309, 394, 67, 31936, 30, 365, 18, 11231, 1253, 12443, 84, 18, 2725, 67, 77, 23, 5292, 16, 293, 18, 18942, 67, 2725, 3719, 469, 30, 365, 18, 11231, 1253, 12443, 84, 18, 13435, 67, 77, 23, 2 ]
TARGET [0] = t [0] if len (t) > 1:
if t [0] != "": TARGET [0] = t [0] if len (t) > 1 and t [1] != "":
def set_target (t): global TARGET t = t.split ('.') TARGET [0] = t [0] if len (t) > 1: TARGET [1] = t [1]
73b01283503026b342beabf80f1227ee4a92e0b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2556/73b01283503026b342beabf80f1227ee4a92e0b0/ac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3299, 261, 88, 4672, 2552, 16964, 268, 273, 268, 18, 4939, 7707, 1093, 13, 309, 268, 306, 20, 65, 480, 1408, 30, 16964, 306, 20, 65, 273, 268, 306, 20, 65, 309, 562, 261, 88, 13, 405, 404, 471, 268, 306, 21, 65, 480, 1408, 30, 16964, 306, 21, 65, 273, 268, 306, 21, 65, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 13, 405, 404, 471, 268, 306, 21, 65, 480, 1408, 30, 16964, 306, 21, 65, 273, 268, 306, 21, 65, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return S_OK(resultList) def __filterFile(self,lfn,filters=None):
return S_OK( resultList ) def __filterFile( self, lfn, filters = None ):
def __updateFilters(self,connection=False): """ Get filters for all defined input streams in all the transformations. If transID argument is given, get filters only for this transformation. """ resultList = [] # Define the general filter first setup = gConfig.getValue('/DIRAC/Setup','') value = gConfig.getValue('/Operations/InputDataFilter/%s/%sFilter' % (setup,self.database_name),'') if value: refilter = re.compile(value) resultList.append((0,refilter)) # Per transformation filters req = "SELECT TransformationID,FileMask FROM Transformations;" res = self._query(req,connection) if not res['OK']: return res for transID,mask in res['Value']: if mask: refilter = re.compile(mask) resultList.append((transID,refilter)) self.filters = resultList return S_OK(resultList)
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 5422, 12, 2890, 16, 4071, 33, 8381, 4672, 3536, 968, 3415, 364, 777, 2553, 810, 8205, 316, 777, 326, 19245, 18, 971, 906, 734, 1237, 353, 864, 16, 336, 3415, 1338, 364, 333, 8620, 18, 3536, 24520, 273, 5378, 468, 13184, 326, 7470, 1034, 1122, 3875, 273, 314, 809, 18, 24805, 2668, 19, 4537, 2226, 19, 7365, 17023, 6134, 460, 273, 314, 809, 18, 24805, 2668, 19, 9343, 19, 1210, 751, 1586, 5258, 87, 5258, 87, 1586, 11, 738, 261, 8401, 16, 2890, 18, 6231, 67, 529, 3631, 11, 6134, 309, 460, 30, 1278, 1088, 273, 283, 18, 11100, 12, 1132, 13, 24520, 18, 6923, 12443, 20, 16, 1734, 1088, 3719, 468, 5722, 8620, 3415, 1111, 273, 315, 4803, 21274, 734, 16, 812, 5796, 4571, 11514, 1012, 4868, 400, 273, 365, 6315, 2271, 12, 3658, 16, 4071, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 364, 906, 734, 16, 4455, 316, 400, 3292, 620, 3546, 30, 309, 3066, 30, 1278, 1088, 273, 283, 18, 11100, 12, 4455, 13, 24520, 18, 6923, 12443, 2338, 734, 16, 1734, 1088, 3719, 365, 18, 6348, 273, 24520, 327, 348, 67, 3141, 12, 2088, 682, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 5422, 12, 2890, 16, 4071, 33, 8381, 4672, 3536, 968, 3415, 364, 777, 2553, 810, 8205, 316, 777, 326, 19245, 18, 971, 906, 734, 1237, 353, 864, 16, 336, 3415, 1338, 364, 333, 8620, 18, 3536, 24520, 273, 5378, 468, 13184, 326, 7470, 1034, 1122, 3875, 273, 314, 809, 18, 24805, 2668, 19, 4537, 2226, 19, 7365, 17023, 6134, 460, 273, 314, 809, 18, 24805, 2668, 19, 9343, 19, 1210, 751, 1586, 5258, 87, 5258, 87, 1586, 11, 738, 261, 8401, 16, 2890, 18, 6231, 67, 529, 3631, 11, 6134, 309, 460, 30, 1278, 1088, 273, 283, 18, 11100, 12, 1132, 13, 24520, 18, 6923, 12443, 20, 16, 1734, 1088, 3719, 468, 5722, 8620, 3415, 1111, 2 ]
resource = memory.File('hello') root.set_resource('test.txt', resource)
root.set_resource('test.txt', memory.File('hello'))
def test_add_file(self): root = self.database.get_resource('/') resource = memory.File('hello') root.set_resource('test.txt', resource)
63faa3ff89eb5a06038d8b7e4351c9327a18dca8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/63faa3ff89eb5a06038d8b7e4351c9327a18dca8/test_zodb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 768, 12, 2890, 4672, 1365, 273, 365, 18, 6231, 18, 588, 67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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1289, 67, 768, 12, 2890, 4672, 1365, 273, 365, 18, 6231, 18, 588, 67, 3146, 2668, 2473, 13, 1058, 273, 3778, 18, 812, 2668, 23711, 6134, 1365, 18, 542, 67, 3146, 2668, 3813, 18, 5830, 2187, 1058, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def subImage(self, subnum): return subimage(self, self.data[subnum])
def subImage(self, subnum): return BaseImage(self.data[subnum], self.xsize, self.ysize, self.zsize, self.tsize, self.x0, self.y0, self.z0)
def subImage(self, subnum): return subimage(self, self.data[subnum])
2654ec94d7dd179b942ae470cb77e932a8e9f006 /local1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 720, 2040, 12, 2890, 16, 720, 2107, 4672, 327, 720, 2730, 12, 2890, 16, 365, 18, 892, 63, 1717, 2107, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.m_depth < g_recursionlimit - 10: sys.setprofile(self.profile)
def profile_recursion(self, frame, event, arg): if event == 'call': if self.m_depth > g_recursionlimit: print_debug('Exceeded recursion limit and caught in profile function.')
855df730877f2c165830062bf43bf6350b314800 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9402/855df730877f2c165830062bf43bf6350b314800/rpdb2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3042, 67, 31347, 12, 2890, 16, 2623, 16, 871, 16, 1501, 4672, 309, 871, 422, 296, 1991, 4278, 309, 365, 18, 81, 67, 5979, 405, 314, 67, 31347, 3595, 30, 1172, 67, 4148, 2668, 10069, 13917, 1800, 471, 13537, 316, 3042, 445, 1093, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3042, 67, 31347, 12, 2890, 16, 2623, 16, 871, 16, 1501, 4672, 309, 871, 422, 296, 1991, 4278, 309, 365, 18, 81, 67, 5979, 405, 314, 67, 31347, 3595, 30, 1172, 67, 4148, 2668, 10069, 13917, 1800, 471, 13537, 316, 3042, 445, 1093, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
tabwidth = self.config['diff'].getint('tab_width', self.config['mimeviewer'].getint('tab_width'))
tabwidth = self.config['diff'].getint('tab_width') or \ self.config['mimeviewer'].getint('tab_width', 8)
def _content_changes(old_node, new_node): """Returns the list of differences.
5ee3189defb5f99dab2e8e196a3eafb934a48fa7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5ee3189defb5f99dab2e8e196a3eafb934a48fa7/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1745, 67, 6329, 12, 1673, 67, 2159, 16, 394, 67, 2159, 4672, 3536, 1356, 326, 666, 434, 16440, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1745, 67, 6329, 12, 1673, 67, 2159, 16, 394, 67, 2159, 4672, 3536, 1356, 326, 666, 434, 16440, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
coords = polar_to_cartesian(self.base_x,
coords = polar_to_cartesian(self.base_x,
def to_point(self): '''Convert from PolarPoint to (cartesian) Point object'''
ce2b4b6fe9cf3418e9c7ba05c5479e2063ca2945 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5205/ce2b4b6fe9cf3418e9c7ba05c5479e2063ca2945/polar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 1153, 12, 2890, 4672, 9163, 2723, 628, 6730, 297, 2148, 358, 261, 11848, 13404, 13, 4686, 733, 26418, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13404, 13, 4686, 733, 26418, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dir_contents = os.listdir(self.simcoal_dir)
def __init__(self, simcoal_dir): """Initializes the controller. simcoal_dir is the directory where simcoal is. The initializer checks for existance and executability of binaries. """ self.simcoal_dir = simcoal_dir self.os_name = os.name if self.os_name=='nt' or sys.platform=='cygwin': self.bin_name = 'simcoal2.exe' #this is wrong (the exe name), most probably else: self.bin_name = 'simcoal2' #This name is too specific dir_contents = os.listdir(self.simcoal_dir) if self.bin_name in dir_contents: if not os.access(self.simcoal_dir + os.sep + self.bin_name, os.X_OK): raise IOError("SimCoal not executable") else: raise IOError("SimCoal not available")
1bea506fdfda2e761062add9b958d45f36a56c08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/1bea506fdfda2e761062add9b958d45f36a56c08/Controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3142, 2894, 287, 67, 1214, 4672, 3536, 9685, 326, 2596, 18, 225, 3142, 2894, 287, 67, 1214, 353, 326, 1867, 1625, 3142, 2894, 287, 353, 18, 225, 1021, 12562, 4271, 364, 1005, 1359, 471, 28743, 2967, 434, 4158, 5646, 18, 3536, 365, 18, 9812, 2894, 287, 67, 1214, 273, 3142, 2894, 287, 67, 1214, 365, 18, 538, 67, 529, 273, 1140, 18, 529, 309, 365, 18, 538, 67, 529, 18920, 496, 11, 578, 2589, 18, 9898, 18920, 2431, 75, 8082, 4278, 365, 18, 4757, 67, 529, 273, 296, 9812, 2894, 287, 22, 18, 14880, 11, 468, 2211, 353, 7194, 261, 5787, 15073, 508, 3631, 4486, 8656, 469, 30, 365, 18, 4757, 67, 529, 273, 296, 9812, 2894, 287, 22, 11, 468, 2503, 508, 353, 4885, 2923, 430, 365, 18, 4757, 67, 529, 316, 1577, 67, 3980, 30, 309, 486, 1140, 18, 3860, 12, 2890, 18, 9812, 2894, 287, 67, 1214, 397, 1140, 18, 10814, 397, 365, 18, 4757, 67, 529, 16, 1140, 18, 60, 67, 3141, 4672, 1002, 8340, 2932, 7993, 4249, 287, 486, 9070, 7923, 469, 30, 1002, 8340, 2932, 7993, 4249, 287, 486, 2319, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3142, 2894, 287, 67, 1214, 4672, 3536, 9685, 326, 2596, 18, 225, 3142, 2894, 287, 67, 1214, 353, 326, 1867, 1625, 3142, 2894, 287, 353, 18, 225, 1021, 12562, 4271, 364, 1005, 1359, 471, 28743, 2967, 434, 4158, 5646, 18, 3536, 365, 18, 9812, 2894, 287, 67, 1214, 273, 3142, 2894, 287, 67, 1214, 365, 18, 538, 67, 529, 273, 1140, 18, 529, 309, 365, 18, 538, 67, 529, 18920, 496, 11, 578, 2589, 18, 9898, 18920, 2431, 75, 8082, 4278, 365, 18, 4757, 67, 529, 273, 296, 9812, 2894, 287, 22, 18, 14880, 11, 468, 2211, 353, 7194, 261, 5787, 15073, 508, 3631, 4486, 8656, 469, 30, 365, 18, 4757, 67, 2 ]