rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if isDead(self.proxiedItem) and isFirst and not isDead(master):
if isDead(self.proxiedItem) and isFirst and not isDead(master.itsItem):
def propagateChange(self, name, value): proxiedEvent = EventStamp(self.proxiedItem) master = proxiedEvent.getMaster() isFirst = (proxiedEvent != master and proxiedEvent.recurrenceID == master.effectiveStartTime) table = {'this' : proxiedEvent.changeThis, 'thisandfuture' : proxiedEvent.changeThisAndFuture} t...
008fa6b7797a8a544301a7a1f4663367a5ebf6b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/008fa6b7797a8a544301a7a1f4663367a5ebf6b3/RecurrenceDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13551, 3043, 12, 2890, 16, 508, 16, 460, 4672, 21875, 1133, 273, 2587, 8860, 12, 2890, 18, 20314, 2092, 1180, 13, 225, 4171, 273, 21875, 1133, 18, 588, 7786, 1435, 17447, 273, 261, 20314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13551, 3043, 12, 2890, 16, 508, 16, 460, 4672, 21875, 1133, 273, 2587, 8860, 12, 2890, 18, 20314, 2092, 1180, 13, 225, 4171, 273, 21875, 1133, 18, 588, 7786, 1435, 17447, 273, 261, 20314...
:rtype : The newly created VpnGateway :return : A :class:`boto.vpc.vpngateway.VpnGateway object
:rtype: The newly created VpnGateway :return: A :class:`boto.vpc.vpngateway.VpnGateway` object
def create_vpn_gateway(self, type, availability_zone=None): """ Create a new Vpn Gateway
953eb471ca2be49c4f821f024a3e0a6347048a4f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/953eb471ca2be49c4f821f024a3e0a6347048a4f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 27769, 67, 11127, 12, 2890, 16, 618, 16, 13395, 67, 3486, 33, 7036, 4672, 3536, 1788, 279, 394, 31531, 11381, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 27769, 67, 11127, 12, 2890, 16, 618, 16, 13395, 67, 3486, 33, 7036, 4672, 3536, 1788, 279, 394, 31531, 11381, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'playlist': item
'playlist': item, 'songs': len(songs), 'time': playtime, 'ptime': hmsFromSeconds(playtime)
def listplaylists(self, *args): data = self._safe_cmd(self.con.listplaylists, args) for index in range(len(data)): item = data[index]['playlist'] data[index] = { 'title': item, 'type': 'playlist', 'playlist': item } return data
02561c1e38a2d157269df452c083119912c49b61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4699/02561c1e38a2d157269df452c083119912c49b61/mpd_proxy2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 1601, 9772, 12, 2890, 16, 380, 1968, 4672, 501, 273, 365, 6315, 4626, 67, 4172, 12, 2890, 18, 591, 18, 1098, 1601, 9772, 16, 833, 13, 364, 770, 316, 1048, 12, 1897, 12, 892, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 1601, 9772, 12, 2890, 16, 380, 1968, 4672, 501, 273, 365, 6315, 4626, 67, 4172, 12, 2890, 18, 591, 18, 1098, 1601, 9772, 16, 833, 13, 364, 770, 316, 1048, 12, 1897, 12, 892, 371...
self.endTagBody(impliedTagToken("body")) if not self.parser.innerHTML:
if self.tree.elementInScope("body"): self.endTagBody(impliedTagToken("body"))
def endTagHtml(self, token): self.endTagBody(impliedTagToken("body")) if not self.parser.innerHTML: self.parser.phase.processEndTag(token)
33cb109a3190acbbd68ca45ea0a1083908f6b7b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/33cb109a3190acbbd68ca45ea0a1083908f6b7b0/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 4353, 12, 2890, 16, 1147, 4672, 225, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 3432, 6, 4672, 365, 18, 409, 1805, 2250, 12, 381, 3110, 1805, 1345, 2932, 3432, 6, 3719, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 4353, 12, 2890, 16, 1147, 4672, 225, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 3432, 6, 4672, 365, 18, 409, 1805, 2250, 12, 381, 3110, 1805, 1345, 2932, 3432, 6, 3719, 365,...
movex = -scale*(maxx+minx)/2 movey = -scale*(maxy+miny)/2
movex = (maxx+minx)/2 movey = (maxy+miny)/2
def oasa_mol_to_bkchem_mol( mol, paper): m = molecule.molecule( paper) if None in reduce( operator.add, [[a.x, a.y] for a in mol.atoms], []): calc_position = 0 else: calc_position = 1 minx = None maxx = None miny = None maxy = None # atoms for a in mol.vertices: a2 = oasa_atom_to_bkchem_atom( a, paper, m) m.insert_ato...
7d644b1d74fecb072d33e593580eede91f1bf3de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/7d644b1d74fecb072d33e593580eede91f1bf3de/oasa_bridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 345, 69, 67, 21260, 67, 869, 67, 24600, 1036, 67, 21260, 12, 12629, 16, 15181, 4672, 312, 273, 13661, 18, 81, 10545, 12, 15181, 13, 309, 599, 316, 5459, 12, 3726, 18, 1289, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 345, 69, 67, 21260, 67, 869, 67, 24600, 1036, 67, 21260, 12, 12629, 16, 15181, 4672, 312, 273, 13661, 18, 81, 10545, 12, 15181, 13, 309, 599, 316, 5459, 12, 3726, 18, 1289, 16, ...
return marshal.dumps((self.id,stat))
if callable(self.id): id=self.id() else: id=self.id return marshal.dumps((id,stat))
def manage_FTPlist(self,REQUEST): """Directory listing for FTP. In the case of non-Foldoid objects, the listing should contain one object, the object itself.""" stat=marshal.loads(self.manage_FTPstat(REQUEST)) return marshal.dumps((self.id,stat))
49421aab63124d2f32cc771c8264083a5d0a9304 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/49421aab63124d2f32cc771c8264083a5d0a9304/SimpleItem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 17104, 1098, 12, 2890, 16, 5519, 4672, 3536, 2853, 11591, 364, 19324, 18, 657, 326, 648, 434, 1661, 17, 15592, 839, 2184, 16, 326, 11591, 1410, 912, 1245, 733, 16, 326, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10680, 67, 17104, 1098, 12, 2890, 16, 5519, 4672, 3536, 2853, 11591, 364, 19324, 18, 657, 326, 648, 434, 1661, 17, 15592, 839, 2184, 16, 326, 11591, 1410, 912, 1245, 733, 16, 326, 733, ...
hosts = [host.__add__((host[1].split("."), host[0].split(".", 1)))
hosts = [(host[1].split("."), host[0].split(".", 1))
def buildZones(self): '''Pre-build and stash zone files''' cursor = connection.cursor()
f930ee284c1d068927d686b340db09b3fc2764fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/f930ee284c1d068927d686b340db09b3fc2764fe/Hostbase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 13600, 12, 2890, 4672, 9163, 1386, 17, 3510, 471, 23017, 4157, 1390, 26418, 3347, 273, 1459, 18, 9216, 1435, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 13600, 12, 2890, 4672, 9163, 1386, 17, 3510, 471, 23017, 4157, 1390, 26418, 3347, 273, 1459, 18, 9216, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cursor = self.connection.cursor()
try: cursor = self.connection.cursor() except: self.connection = sqlite.connect(self.path) cursor = self.connection.cursor()
def connect(self): if not self.connection: self.connection = sqlite.connect(self.path) cursor = self.connection.cursor() return (self.connection, cursor)
05571a04ace204f3c3b05b892132f0ae8e525fb7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2682/05571a04ace204f3c3b05b892132f0ae8e525fb7/shaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 309, 486, 365, 18, 4071, 30, 365, 18, 4071, 273, 16184, 18, 3612, 12, 2890, 18, 803, 13, 775, 30, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 1335, 30, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 309, 486, 365, 18, 4071, 30, 365, 18, 4071, 273, 16184, 18, 3612, 12, 2890, 18, 803, 13, 775, 30, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 1335, 30, 365, 18, ...
The following is Trac is not recognized as being a field at this time, so the fraction field is not the quotient ring itself::
The following is Trac is not recognized as being a field at this time, so the fraction field is not the quotient ring itself::
def is_prime(self, **kwds): r""" Return ``True`` if this ideal is prime.
74eb5b0603b6272744b6913b613a8e918759309e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/74eb5b0603b6272744b6913b613a8e918759309e/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 16382, 12, 2890, 16, 2826, 25577, 4672, 436, 8395, 2000, 12176, 5510, 10335, 309, 333, 23349, 353, 17014, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 16382, 12, 2890, 16, 2826, 25577, 4672, 436, 8395, 2000, 12176, 5510, 10335, 309, 333, 23349, 353, 17014, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.syllableTable = self.getReadingEntities() return entity.lower() in self.syllableTable
self._syllableTable = self.getReadingEntities() return entity.lower() in self._syllableTable
def isReadingEntity(self, entity): """ Returns true if the given entity is recognised by the romanisation operator, i.e. it is a valid entity of the reading returned by the segmentation method.
01cc0f3b3089a2c824402c7d0c59f75b7c5af166 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/01cc0f3b3089a2c824402c7d0c59f75b7c5af166/operator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 15714, 1943, 12, 2890, 16, 1522, 4672, 3536, 2860, 638, 309, 326, 864, 1522, 353, 14603, 5918, 635, 326, 24137, 304, 10742, 3726, 16, 277, 18, 73, 18, 518, 353, 279, 923, 1522, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 15714, 1943, 12, 2890, 16, 1522, 4672, 3536, 2860, 638, 309, 326, 864, 1522, 353, 14603, 5918, 635, 326, 24137, 304, 10742, 3726, 16, 277, 18, 73, 18, 518, 353, 279, 923, 1522, 43...
if ((totalcpu/totaltime) >= cpulimit): totalcpu += percentused*elapsedtime else: totalcpu += max(percentused, cpulimit)*elapsedtime
totalcpu += percentused*elapsedtime
def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: #print "Time, Rolling, Average, Instant" return #if totaltime > 120: # linux_killme...
a130b68d202c10ca030b7418740d1c46b4de4350 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/a130b68d202c10ca030b7418740d1c46b4de4350/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
print "Executing: ", self.host, ' ', \
print "Executing on ", self.host, ' with ', \
def run( self ): """ Run HEX job.
aec78ff89c794cc621832116bfd870db1713cd23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/aec78ff89c794cc621832116bfd870db1713cd23/Docker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 262, 30, 3536, 1939, 23971, 1719, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 262, 30, 3536, 1939, 23971, 1719, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
tmp = value.translate(_knDigitsToLocal)
tmp = value.translate(digitsToLocal)
def dh_knYearConverter( value ): if type(value) is int: # Encode an integer value into a textual form. return unicode(value).translate(_knDigitsToLocal) else: # First make sure there are no real digits in the string tmp = value.translate(_knDigitsToLocal) # Test if tmp == value: tmp = value.translate(_knLocalTo...
32e5f5c1a30bc02fc3075b9c456f10fafab05a66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/32e5f5c1a30bc02fc3075b9c456f10fafab05a66/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11007, 67, 21112, 5593, 5072, 12, 460, 262, 30, 309, 618, 12, 1132, 13, 353, 509, 30, 468, 6240, 392, 3571, 460, 1368, 279, 25774, 646, 18, 327, 5252, 12, 1132, 2934, 13929, 24899, 211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11007, 67, 21112, 5593, 5072, 12, 460, 262, 30, 309, 618, 12, 1132, 13, 353, 509, 30, 468, 6240, 392, 3571, 460, 1368, 279, 25774, 646, 18, 327, 5252, 12, 1132, 2934, 13929, 24899, 211...
opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m",
opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:",
def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir="]) except getopt.error, msg: sys.stderr.write("%s: %s\n" % (sys.a...
66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
return u"%s" % self.url_save
return force_unicode(self.url_save)
def __repr__(self): return u"%s" % self.url_save
d2883615b172064b6250e9514a91df28a46ed237 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12975/d2883615b172064b6250e9514a91df28a46ed237/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2944, 67, 9124, 12, 2890, 18, 718, 67, 5688, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2944, 67, 9124, 12, 2890, 18, 718, 67, 5688, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._string_from_ip_int(self.network) + '/' + str(self.prefixlen + prefixlen_diff))
self._string_from_ip_int(self.network) + '/' + str(self._prefixlen + prefixlen_diff))
def subnet(self, prefixlen_diff=1): """The subnets which join to make the current subnet.
fff47fe8f2324dff8c8e9a139755e429be20efed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3510/fff47fe8f2324dff8c8e9a139755e429be20efed/ipaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8821, 12, 2890, 16, 1633, 1897, 67, 5413, 33, 21, 4672, 3536, 1986, 19140, 1492, 1233, 358, 1221, 326, 783, 8821, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8821, 12, 2890, 16, 1633, 1897, 67, 5413, 33, 21, 4672, 3536, 1986, 19140, 1492, 1233, 358, 1221, 326, 783, 8821, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
suite = unittest.TestLoader().loadTestsFromTestCase(TestObjectives) unittest.TextTestRunner(verbosity=2).run(suite)
def test_check_objective_player (self): print "\nTesting check mission player" world = self.world obj = self.obj pla_obj = filter (lambda o: o.type == 'player',obj) random.shuffle(pla_obj)
14dd3427f1c25a25fa68abb11ec8e37237a38268 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/14dd3427f1c25a25fa68abb11ec8e37237a38268/model_objectives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1893, 67, 20174, 67, 14872, 261, 2890, 4672, 1172, 1548, 82, 22218, 866, 29396, 7291, 6, 9117, 273, 365, 18, 18179, 1081, 273, 365, 18, 2603, 886, 69, 67, 2603, 273, 1034, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 20174, 67, 14872, 261, 2890, 4672, 1172, 1548, 82, 22218, 866, 29396, 7291, 6, 9117, 273, 365, 18, 18179, 1081, 273, 365, 18, 2603, 886, 69, 67, 2603, 273, 1034, 26...
- ``bits`` - integer (optional and considered only if ``cf`` is a real number) the number of bits to consider when computing the
- ``bits`` - integer (optional and considered only if ``slope`` is a real number) the number of bits to consider when computing the
def CharacteristicSturmianWord(self, cf, alphabet=(0, 1), bits=None): r""" Returns the characteristic Sturmian word of the given slope ``cf``.
b3fbc1cf28b1612f234458261a8411d34f117fd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b3fbc1cf28b1612f234458261a8411d34f117fd9/word_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6577, 5846, 510, 27430, 2779, 3944, 12, 2890, 16, 6080, 16, 10877, 28657, 20, 16, 404, 3631, 4125, 33, 7036, 4672, 436, 8395, 2860, 326, 23158, 934, 27430, 2779, 2076, 434, 326, 864, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6577, 5846, 510, 27430, 2779, 3944, 12, 2890, 16, 6080, 16, 10877, 28657, 20, 16, 404, 3631, 4125, 33, 7036, 4672, 436, 8395, 2860, 326, 23158, 934, 27430, 2779, 2076, 434, 326, 864, 175...
self.mocoeffs[spin, i + symoffset + base, row + symoffset] = float(cols[i + 1])
self.mocoeffs[spin, aolist[i+base], row + symoffset] = float(cols[i + 1])
def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 # Used to avoid extracting the final geometry...
722578f84e20e2883d2f098179d9927deafe4732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/722578f84e20e2883d2f098179d9927deafe4732/adfparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 8...
form = form_class(data=request.POST, files=request.FILES, **form_args)
form = self.form_class(data=request.POST, files=request.FILES, **self.form_args)
def __call__(self, request, *args, **kwargs): form_class = kwargs.get('form_class', getattr(self, 'form_class', self.get_form_class())) form_args = kwargs.get('form_args', getattr(self, 'form_args', self.get_form_args(*args, **kwargs))) template_name=kwargs.get('template_name', getattr(self, 'template_name', self.get_t...
34a2e9c7044829a5a6cdb3f63c9be5a103290f99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12648/34a2e9c7044829a5a6cdb3f63c9be5a103290f99/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 590, 16, 380, 1968, 16, 2826, 4333, 4672, 646, 67, 1106, 273, 1205, 18, 588, 2668, 687, 67, 1106, 2187, 3869, 12, 2890, 16, 296, 687, 67, 1106, 2187, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 590, 16, 380, 1968, 16, 2826, 4333, 4672, 646, 67, 1106, 273, 1205, 18, 588, 2668, 687, 67, 1106, 2187, 3869, 12, 2890, 16, 296, 687, 67, 1106, 2187, 3...
def do_shell(self):
def do_shell(self, s):
def do_shell(self): pass
5089a38af2b90dfe51bbf157ff38227c85eff687 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/5089a38af2b90dfe51bbf157ff38227c85eff687/test_cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 10304, 12, 2890, 16, 272, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 10304, 12, 2890, 16, 272, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not headers.has_key('content-type') and self.status == 200: self.setStatus('nocontent')
def __str__(self, html_search=regex.compile('<html>',regex.casefold).search, ): if self._wrote: return '' # Streaming output was used.
a925db54a85961bd5dbc4796caea38cd3a2b8842 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a925db54a85961bd5dbc4796caea38cd3a2b8842/HTTPResponse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 16, 1729, 67, 3072, 33, 7584, 18, 11100, 2668, 32, 2620, 1870, 16, 7584, 18, 3593, 16007, 2934, 3072, 16, 262, 30, 309, 365, 6315, 91, 21436, 30, 327, 875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 16, 1729, 67, 3072, 33, 7584, 18, 11100, 2668, 32, 2620, 1870, 16, 7584, 18, 3593, 16007, 2934, 3072, 16, 262, 30, 309, 365, 6315, 91, 21436, 30, 327, 875, ...
if not compile_dir(dir, maxlevels, ddir, force, rx):
if not compile_dir(dir, maxlevels, ddir, force, rx, quiet):
def main(): """Script main program.""" import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'lfd:x:') except getopt.error, msg: print msg print "usage: python compileall.py [-l] [-f] [-d destdir] " \ "[-s regexp] [directory ...]" print "-l: don't recurse down" print "-f: force rebuild even if timestamps are up-t...
6fb3494c60cbdbefb2193ec4f676a8916063457f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6fb3494c60cbdbefb2193ec4f676a8916063457f/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 3651, 2774, 5402, 12123, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 80, 8313, 30, 92, 2497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 3536, 3651, 2774, 5402, 12123, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 80, 8313, 30, 92, 2497, ...
None, lambda w,e: self.on_new_notebook(), 0,
"", lambda w,e: self.on_new_notebook(), 0,
def make_menubar(self): # menu bar folder_delete = gtk.Image() folder_delete.set_from_file(get_resource("images", "folder-delete.png")) page_delete = gtk.Image() page_delete.set_from_file(get_resource("images", "note-delete.png")) self.menu_items = ( ("/_File", None, None, 0, "<Branch>"), ("/File/_New Notebook", None...
15d239b1ef23a9b5c25e57156d74ceece038ccc0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/15d239b1ef23a9b5c25e57156d74ceece038ccc0/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 27617, 373, 297, 12, 2890, 4672, 468, 3824, 4653, 3009, 67, 3733, 273, 22718, 18, 2040, 1435, 3009, 67, 3733, 18, 542, 67, 2080, 67, 768, 12, 588, 67, 3146, 2932, 7369, 3113,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 27617, 373, 297, 12, 2890, 4672, 468, 3824, 4653, 3009, 67, 3733, 273, 22718, 18, 2040, 1435, 3009, 67, 3733, 18, 542, 67, 2080, 67, 768, 12, 588, 67, 3146, 2932, 7369, 3113,...
def __is_displayed(self,tid):
def __is_displayed(self, tid):
def __is_displayed(self,tid): """ This is a private method that return True if the task *should* be displayed in the tree, regardless of its current status """ if tid: result = True for f in self.applied_filters: filt = self.req.get_filter(f) if filt: result = result and filt.is_displayed(tid) return result else: retur...
e3bd06aa0faafd067fb9f358429e0b05d6f6f816 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/e3bd06aa0faafd067fb9f358429e0b05d6f6f816/filteredtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 291, 67, 5417, 329, 12, 2890, 16, 11594, 4672, 3536, 1220, 353, 279, 3238, 707, 716, 327, 1053, 309, 326, 1562, 380, 13139, 14, 506, 10453, 316, 326, 2151, 16, 15255, 434, 2097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 291, 67, 5417, 329, 12, 2890, 16, 11594, 4672, 3536, 1220, 353, 279, 3238, 707, 716, 327, 1053, 309, 326, 1562, 380, 13139, 14, 506, 10453, 316, 326, 2151, 16, 15255, 434, 2097, ...
host = host.split(':', 1)[0]
host, port = host.split(':', 1)[0] else: if environ['wsgi.url_scheme'] == 'http': port = '80' else: port = '443'
def __call__(self, environ, start_response): host = environ.get('HTTP_HOST', environ.get('SERVER_NAME')).lower() if ':' in host: host = host.split(':', 1)[0] path_info = environ.get('PATH_INFO') path_info = self.normalize_url(path_info, False)[1] for (domain, app_url), app in self.applications: if domain and domain != ...
e1a052c802aecd7c328af246552be494d80c174d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/e1a052c802aecd7c328af246552be494d80c174d/urlmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 1479, 273, 5473, 18, 588, 2668, 3693, 67, 8908, 2187, 5473, 18, 588, 2668, 4370, 67, 1985, 6134, 2934, 8167, 1435, 309, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 1479, 273, 5473, 18, 588, 2668, 3693, 67, 8908, 2187, 5473, 18, 588, 2668, 4370, 67, 1985, 6134, 2934, 8167, 1435, 309, 39...
xccl = gyp.xcodeproj_file.XCConfigurationList({'buildConfigurations': []}) for configuration_name in configuration_names: xcbc = gyp.xcodeproj_file.XCBuildConfiguration({ 'name': configuration_name}) xccl.AppendProperty('buildConfigurations', xcbc) xccl.SetProperty('defaultConfigurationName', configuration_names[0])
xccl = CreateXCConfigurationList(configuration_names)
def GenerateOutput(target_list, target_dicts, data, params): options = params['options'] generator_flags = params.get('generator_flags', {}) parallel_builds = generator_flags.get('xcode_parallel_builds', True) serialize_all_tests = \ generator_flags.get('xcode_serialize_all_test_runs', True) xcode_projects = {} for bui...
9b6358ccfb062c60eee046cd65f1d7fbd396ffcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/9b6358ccfb062c60eee046cd65f1d7fbd396ffcc/xcode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 1447, 12, 3299, 67, 1098, 16, 1018, 67, 16287, 16, 501, 16, 859, 4672, 702, 273, 859, 3292, 2116, 3546, 4456, 67, 7133, 273, 859, 18, 588, 2668, 8812, 67, 7133, 2187, 2618, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 1447, 12, 3299, 67, 1098, 16, 1018, 67, 16287, 16, 501, 16, 859, 4672, 702, 273, 859, 3292, 2116, 3546, 4456, 67, 7133, 273, 859, 18, 588, 2668, 8812, 67, 7133, 2187, 2618, 13, ...
line+='PID: ' + os.getenv(' line+='QUEUE: ' + os.getenv('
try: line+='PID: ' + os.getenv(' line+='QUEUE: ' + os.getenv(' except: pass
def preparejob(self,jobconfig,master_input_sandbox):
637db2d472e4294b7f7425b7e2073bcab5832482 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/637db2d472e4294b7f7425b7e2073bcab5832482/Batch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 4688, 12, 2890, 16, 4688, 1425, 16, 7525, 67, 2630, 67, 27004, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 4688, 12, 2890, 16, 4688, 1425, 16, 7525, 67, 2630, 67, 27004, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
EXAMPLES:
Returns a generator object which iterates through the elements of self. The order in which the elements are generated is based on a 'weight' of a matrix which is the number of iterations on the base ring that are required to reach that matrix. The ordering is similar to a degree negative lexicographic order in monomi...
def __iter__(self): """ EXAMPLES: sage: MS = MatrixSpace(GF(2),2) sage: a = list(MS) sage: len(a) 16 sage: a[0] [0 0] [0 0]
bbebd3f89fde9fdae231bd7426d05a4e2a454b81 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/bbebd3f89fde9fdae231bd7426d05a4e2a454b81/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 2860, 279, 4456, 733, 1492, 16960, 3059, 326, 2186, 434, 365, 18, 225, 1021, 1353, 316, 1492, 326, 2186, 854, 4374, 353, 2511, 603, 279, 296, 4865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2165, 972, 12, 2890, 4672, 3536, 2860, 279, 4456, 733, 1492, 16960, 3059, 326, 2186, 434, 365, 18, 225, 1021, 1353, 316, 1492, 326, 2186, 854, 4374, 353, 2511, 603, 279, 296, 4865,...
inspect.classify_class_attrs(object))
classify_class_attrs(object))
def spilldata(msg, attrs, predicate): ok, attrs = _split_list(attrs, predicate) if ok: hr.maybe() push(msg) for name, kind, homecls, value in ok: base = self.docother(getattr(object, name), name, mod) if callable(value) or inspect.isdatadescriptor(value): doc = getattr(value, "__doc__", None) else: doc = None if doc is...
210cc240dc7573286fe4f4380906712aae9b9a70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/210cc240dc7573286fe4f4380906712aae9b9a70/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1694, 737, 892, 12, 3576, 16, 3422, 16, 5641, 4672, 1529, 16, 3422, 273, 389, 4939, 67, 1098, 12, 7039, 16, 5641, 13, 309, 1529, 30, 15407, 18, 19133, 1435, 1817, 12, 3576, 13, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1694, 737, 892, 12, 3576, 16, 3422, 16, 5641, 4672, 1529, 16, 3422, 273, 389, 4939, 67, 1098, 12, 7039, 16, 5641, 13, 309, 1529, 30, 15407, 18, 19133, 1435, 1817, 12, 3576, 13, 364, ...
def time_order_rows(ligolw_segment_list, segment_table, process, segment_def_row): for seg, activity in iterutils.inorder(((seg, True) for seg in ligolw_segment_list.active), ((seg, False) for seg in ligolw_segment_list.inactive)): segment_row = segment_table.RowType() segment_row.set(seg) segment_row.process_id = proc...
def row_generator(segs, target_table, process_row, segment_def_row): id_column = target_table.next_id.column_name for seg in segs: row = target_table.RowType() row.set(seg) row.process_id = process_row.process_id setattr(row, id_column, target_table.get_next_id()) row.segment_def_id = segment_def_row.segment_def_id yie...
def time_order_rows(ligolw_segment_list, segment_table, process, segment_def_row): for seg, activity in iterutils.inorder(((seg, True) for seg in ligolw_segment_list.active), ((seg, False) for seg in ligolw_segment_list.inactive)): segment_row = segment_table.RowType() segment_row.set(seg) segment_row.process_id = proc...
bcd97bdeac084860dc395b535f5985906d79618c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/bcd97bdeac084860dc395b535f5985906d79618c/segments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 813, 67, 1019, 67, 3870, 12, 80, 360, 355, 91, 67, 9273, 67, 1098, 16, 3267, 67, 2121, 16, 1207, 16, 3267, 67, 536, 67, 492, 4672, 364, 2291, 16, 5728, 316, 1400, 5471, 18, 267, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 813, 67, 1019, 67, 3870, 12, 80, 360, 355, 91, 67, 9273, 67, 1098, 16, 3267, 67, 2121, 16, 1207, 16, 3267, 67, 536, 67, 492, 4672, 364, 2291, 16, 5728, 316, 1400, 5471, 18, 267, 10...
bad_list = string.split(config.get('refer_blacklist',''),',')
bad_list = string.split(self._config.get('refer_blacklist',''),',')
def genReferrers(self): """ Generate the list of referring files """ config = self._request.getConfiguration()
bbe9b47d1117252e30350aac61eb72d8b52f5895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/bbe9b47d1117252e30350aac61eb72d8b52f5895/logstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 1957, 370, 414, 12, 2890, 4672, 3536, 6654, 326, 666, 434, 1278, 20245, 1390, 3536, 642, 273, 365, 6315, 2293, 18, 588, 1750, 1435, 2, 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, 0, 0, 0, 0, 0, 0, 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, 3157, 1957, 370, 414, 12, 2890, 4672, 3536, 6654, 326, 666, 434, 1278, 20245, 1390, 3536, 642, 273, 365, 6315, 2293, 18, 588, 1750, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -10...
attribute, accessor) columndef = {'value': accessor } defs[catalogid]['columns'].append(columndef)
attribute, accessor) defs[catalogid]['columns'].append({'value': accessor})
if ctypedef and ctypedef['index']: indexdef['meta_type'] = ctypedef['index']
333392d9b9337c7275f358060115919d0fef5d57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11941/333392d9b9337c7275f358060115919d0fef5d57/ArchetypesGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 11920, 536, 471, 11920, 536, 3292, 1615, 3546, 30, 770, 536, 3292, 3901, 67, 723, 3546, 273, 11920, 536, 3292, 1615, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 11920, 536, 471, 11920, 536, 3292, 1615, 3546, 30, 770, 536, 3292, 3901, 67, 723, 3546, 273, 11920, 536, 3292, 1615, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
else:
else:
def insert_into_subdivision(element, bbox): for bucket in self.all_buckets: if do_boxes_intersect((bucket.bottom_left, bucket.top_right), bbox): bucket.insert(element, bbox)
353a9bb8a040092e66fbf172198bc1e6d18df417 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12871/353a9bb8a040092e66fbf172198bc1e6d18df417/spatial_btree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 18591, 67, 1717, 2892, 1951, 12, 2956, 16, 8472, 4672, 364, 2783, 316, 365, 18, 454, 67, 20700, 30, 309, 741, 67, 15918, 67, 12288, 12443, 7242, 18, 9176, 67, 4482, 16, 2783,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 18591, 67, 1717, 2892, 1951, 12, 2956, 16, 8472, 4672, 364, 2783, 316, 365, 18, 454, 67, 20700, 30, 309, 741, 67, 15918, 67, 12288, 12443, 7242, 18, 9176, 67, 4482, 16, 2783,...
guess = map(lambda x: sign(dot(los,x))*x, guess) self.axis=norm(sum(guess))
def f(x): s = sign(dot(los,x)) if s == 0: return -x else: return s * x guess = map(f, guess) self.axis = norm(sum(guess))
def recompute_center_axis(self, los = None): #bruce 050518 split this out of findCenter, for use in a new cmenu item oldaxis = self.axis if los is None: los = self.assy.o.lineOfSight shaft = self.atoms # remaining code is a kluge, according to the comment above findcenter; # note that it depends on order of atoms, pres...
140facc6163ba4f80ca95ca5f5df035baa438379 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/140facc6163ba4f80ca95ca5f5df035baa438379/jigs_motors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30067, 67, 5693, 67, 4890, 12, 2890, 16, 22148, 273, 599, 4672, 468, 2848, 3965, 374, 3361, 25, 2643, 1416, 333, 596, 434, 1104, 8449, 16, 364, 999, 316, 279, 394, 5003, 2104, 761, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30067, 67, 5693, 67, 4890, 12, 2890, 16, 22148, 273, 599, 4672, 468, 2848, 3965, 374, 3361, 25, 2643, 1416, 333, 596, 434, 1104, 8449, 16, 364, 999, 316, 279, 394, 5003, 2104, 761, 159...
AND NOT pf_protocol IS NULL AND pf_protocol != ''"""
"""
def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email: return None
312a5969453f1098fae0678df91a68f627c5a2a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/312a5969453f1098fae0678df91a68f627c5a2a3/untangle_node_protofilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 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, 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, 4660, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -100, -100, ...
self.write_dependent_schema(self._wa.getSchemaDict().get(ns), fd)
self.write_dependent_schema(self._wa.\ getSchemaDict().get(ns), fd)
def write_dependent_schema(self, schema, fd): """Write schema instance contents w/respect to dependency requirements. First write any schema that is imported directly into current schema, then check current schema's xmlns and see if any of these represent currently held schema instances.
a2422a4ff104ae248ad594b02d159d0d4a1b9d0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/a2422a4ff104ae248ad594b02d159d0d4a1b9d0e/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10891, 67, 4821, 12, 2890, 16, 1963, 16, 5194, 4672, 3536, 3067, 1963, 791, 2939, 341, 19, 455, 1181, 358, 4904, 8433, 18, 5783, 1045, 1281, 1963, 716, 353, 9101, 5122, 1368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10891, 67, 4821, 12, 2890, 16, 1963, 16, 5194, 4672, 3536, 3067, 1963, 791, 2939, 341, 19, 455, 1181, 358, 4904, 8433, 18, 5783, 1045, 1281, 1963, 716, 353, 9101, 5122, 1368, ...
merged = []
def doPreview(self, depth, renew, timePoint = 0): """ Makes a two-dimensional preview using the class-specific combination function Parameters: depth The preview depth renew Flag indicating, whether the preview should be regenerated or if a stored image can be reused timePoint The timepoint from which to generate the...
5ab84ae3fb47cec3dc170caeca2d9d6b294cc39c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2877/5ab84ae3fb47cec3dc170caeca2d9d6b294cc39c/CombinedDataUnit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 11124, 12, 2890, 16, 3598, 16, 15723, 16, 813, 2148, 273, 374, 4672, 3536, 490, 3223, 279, 2795, 17, 31236, 10143, 1450, 326, 667, 17, 12524, 10702, 445, 7012, 30, 3598, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 11124, 12, 2890, 16, 3598, 16, 15723, 16, 813, 2148, 273, 374, 4672, 3536, 490, 3223, 279, 2795, 17, 31236, 10143, 1450, 326, 667, 17, 12524, 10702, 445, 7012, 30, 3598, 202, 202, ...
self.start_times = {}
self.start_times = {}
def __init__(self, c, selmgr): # Call constructor of superclass PathBuilder.__init__(self, c, selmgr, GeoIPRouter) # Additional stuff self.ping_circs = Queue.Queue() # (circ_id, hop)-pairs self.start_times = {} # dict mapping circ_id:start_time TODO: cleanup self.circs_sorted = [] # sorted list of...
5c07e1b6d34f16556018f8177a0bd4db44e9e733 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3762/5c07e1b6d34f16556018f8177a0bd4db44e9e733/op-addon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 276, 16, 357, 13552, 4672, 468, 3049, 3885, 434, 12098, 2666, 1263, 16186, 2738, 972, 12, 2890, 16, 276, 16, 357, 13552, 16, 9385, 2579, 8259, 13, 468, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 276, 16, 357, 13552, 4672, 468, 3049, 3885, 434, 12098, 2666, 1263, 16186, 2738, 972, 12, 2890, 16, 276, 16, 357, 13552, 16, 9385, 2579, 8259, 13, 468, 1...
for id in ids: userdeleter.doDeleteUser(id) PluggableAuthService._doDelUsers = _doDelUsers
userdeleter.doDeleteUser(id) PluggableAuthService._doDelUser = _doDelUser
def _doDelUsers(self, ids): """ Given a list of user ids, hand off to a deleter plugin if available; has no return value, like the original """ plugins = self._getOb('plugins') userdeleters = plugins.listPlugins(IUserManagement) if not userdeleters: raise NotImplementedError("There is no plugin that can " " delete us...
d4ed704a8299446a409a45d056f3b50d97a5a658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/d4ed704a8299446a409a45d056f3b50d97a5a658/pas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 2837, 6588, 12, 2890, 16, 3258, 4672, 3536, 16803, 279, 666, 434, 729, 3258, 16, 948, 3397, 358, 279, 6578, 264, 1909, 309, 2319, 31, 711, 1158, 327, 460, 16, 3007, 326, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 2837, 6588, 12, 2890, 16, 3258, 4672, 3536, 16803, 279, 666, 434, 729, 3258, 16, 948, 3397, 358, 279, 6578, 264, 1909, 309, 2319, 31, 711, 1158, 327, 460, 16, 3007, 326, 228...
sourcefiles = []
_context = self._ctx if _context is None: _context = self._ctx = self._make_context(self.autocommit)
def main(global_config, **settings): config = Configurator() config.include('myapp.myconfig.configure')
4a5f9df2c6ecfaea37c231f5c5aa48b92e1b59ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/4a5f9df2c6ecfaea37c231f5c5aa48b92e1b59ad/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 6347, 67, 1425, 16, 2826, 4272, 4672, 642, 273, 1903, 10662, 1435, 642, 18, 6702, 2668, 4811, 2910, 18, 4811, 1425, 18, 14895, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 12, 6347, 67, 1425, 16, 2826, 4272, 4672, 642, 273, 1903, 10662, 1435, 642, 18, 6702, 2668, 4811, 2910, 18, 4811, 1425, 18, 14895, 6134, 2, -100, -100, -100, -100, -100, -100, -100...
if node.get('class', '') == '': node['class'] = 'toc'
if _node_class( node ) is None: _set_node_class( node, 'toc' )
def _auto_toc_filter(node,root=node): return node != root \ and isinstance(node, docutils.nodes.bullet_list)
594566144131a9ea678d1f59e8605fef59589a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/594566144131a9ea678d1f59e8605fef59589a0f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 67, 1391, 67, 2188, 12, 2159, 16, 3085, 33, 2159, 4672, 327, 225, 756, 480, 1365, 521, 471, 1549, 12, 2159, 16, 997, 5471, 18, 4690, 18, 70, 19994, 67, 1098, 13, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 67, 1391, 67, 2188, 12, 2159, 16, 3085, 33, 2159, 4672, 327, 225, 756, 480, 1365, 521, 471, 1549, 12, 2159, 16, 997, 5471, 18, 4690, 18, 70, 19994, 67, 1098, 13, 2, -100, ...
replacement repl"""
replacement repl. repl can be either a string or a callable; if a callable, it's passed the match object and must return a replacement string to be used."""
def sub(pattern, repl, string, count=0): """Return the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in string by the replacement repl""" return _compile(pattern, 0).sub(repl, string, count)
8901987dc5265c407c474061672b77c237f3400a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8901987dc5265c407c474061672b77c237f3400a/sre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 12, 4951, 16, 6831, 16, 533, 16, 1056, 33, 20, 4672, 3536, 990, 326, 533, 12700, 635, 13993, 326, 2002, 10329, 1661, 17, 17946, 1382, 15698, 434, 326, 1936, 316, 533, 635, 326, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 720, 12, 4951, 16, 6831, 16, 533, 16, 1056, 33, 20, 4672, 3536, 990, 326, 533, 12700, 635, 13993, 326, 2002, 10329, 1661, 17, 17946, 1382, 15698, 434, 326, 1936, 316, 533, 635, 326, 60...
'EXECUTION': ('ref/execframes', ''), 'NAMESPACES': ('ref/execframes', 'global ASSIGNMENT DELETION'),
'EXECUTION': ('ref/naming', ''), 'NAMESPACES': ('ref/naming', 'global ASSIGNMENT DELETION'),
'METHODS': ('lib/typesmethods', 'class def CLASSES TYPES'),
9fbf287241e4561acb33255cfb71cba124e273ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9fbf287241e4561acb33255cfb71cba124e273ee/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 296, 25750, 4278, 7707, 2941, 19, 2352, 5163, 2187, 296, 1106, 1652, 29859, 20230, 3463, 55, 19899, 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...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 296, 25750, 4278, 7707, 2941, 19, 2352, 5163, 2187, 296, 1106, 1652, 29859, 20230, 3463, 55, 19899, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8', 'surrogatepass'), b'\xf0\x90\x80\x82'*1000 )
if sys.maxunicode == 65535: self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8'), b'\xf0\x90\x80\x82'*1000)
def test_codecs_utf8(self): self.assertEqual(''.encode('utf-8'), b'') self.assertEqual('\u20ac'.encode('utf-8'), b'\xe2\x82\xac') self.assertEqual('\ud800\udc02'.encode('utf-8'), b'\xf0\x90\x80\x82') self.assertEqual('\ud84d\udc56'.encode('utf-8'), b'\xf0\xa3\x91\x96') self.assertEqual('\ud800'.encode('utf-8', 'surroga...
6e85511651f5d91f9b7ca72740d65689de538f5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/6e85511651f5d91f9b7ca72740d65689de538f5e/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 710, 2143, 67, 3158, 28, 12, 2890, 4672, 365, 18, 11231, 5812, 2668, 10332, 3015, 2668, 3158, 17, 28, 19899, 324, 11, 6134, 365, 18, 11231, 5812, 2668, 64, 89, 3462, 1077, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 710, 2143, 67, 3158, 28, 12, 2890, 4672, 365, 18, 11231, 5812, 2668, 10332, 3015, 2668, 3158, 17, 28, 19899, 324, 11, 6134, 365, 18, 11231, 5812, 2668, 64, 89, 3462, 1077, 10...
if template in list_licenses: seems_ok = True break
def checkbot(): """ Main function """ # Command line configurable parameters repeat = True # Restart after having check all the images? limit = 80 # How many images check? time_sleep = 30 # How many time sleep after the check? skip_number = 0 # How many images to skip before checking? wait_number = 0 # How many time sl...
2165209677d483eb7ff231fba7e819490a2c8291 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/2165209677d483eb7ff231fba7e819490a2c8291/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4819, 13332, 3536, 12740, 445, 3536, 468, 3498, 980, 14593, 1472, 7666, 273, 1053, 468, 20709, 1839, 7999, 866, 777, 326, 4602, 35, 1800, 273, 8958, 468, 9017, 4906, 4602, 866, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4819, 13332, 3536, 12740, 445, 3536, 468, 3498, 980, 14593, 1472, 7666, 273, 1053, 468, 20709, 1839, 7999, 866, 777, 326, 4602, 35, 1800, 273, 8958, 468, 9017, 4906, 4602, 866, 35, ...
print feeds
def handle_subscription_link_clicked(self, message): url = message.url subscriptions = subscription.find_subscribe_links(url) added, ignored = subscription.Subscriber().add_subscriptions( subscriptions) feeds = added.get('feed') # send a notification to the user if feeds: print feeds if len(feeds) == 1: title = _("Subs...
f407a2dc743249d53077f225b09cdd5f79c24cff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/f407a2dc743249d53077f225b09cdd5f79c24cff/messagehandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 11185, 67, 1232, 67, 7475, 329, 12, 2890, 16, 883, 4672, 880, 273, 883, 18, 718, 11912, 273, 4915, 18, 4720, 67, 9174, 67, 7135, 12, 718, 13, 3096, 16, 5455, 273, 4915, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 11185, 67, 1232, 67, 7475, 329, 12, 2890, 16, 883, 4672, 880, 273, 883, 18, 718, 11912, 273, 4915, 18, 4720, 67, 9174, 67, 7135, 12, 718, 13, 3096, 16, 5455, 273, 4915, 18,...
command = OSDCommand().get_member_attributes(pid, cid)
command = OSDCommand().set_get_member_attributes(pid, cid)
def create_any_object(pid): command = OSDCommand().set_create(pid) command.attr_build(OSDAttr(ATTR_GET, CUR_CMD_ATTR_PG, CCAP_OID, \ CCAP_OID_LEN)) attr = run(command) return ntohll(attr.val)
1a657e8a0d40e2f52afb4de22d8d54d26392a8c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/1a657e8a0d40e2f52afb4de22d8d54d26392a8c1/test-collection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2273, 67, 1612, 12, 6610, 4672, 1296, 273, 5932, 40, 2189, 7675, 542, 67, 2640, 12, 6610, 13, 1296, 18, 1747, 67, 3510, 12, 4618, 40, 3843, 12, 12043, 67, 3264, 16, 4706, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2273, 67, 1612, 12, 6610, 4672, 1296, 273, 5932, 40, 2189, 7675, 542, 67, 2640, 12, 6610, 13, 1296, 18, 1747, 67, 3510, 12, 4618, 40, 3843, 12, 12043, 67, 3264, 16, 4706, 67...
0x866: 'IMAGE_FILE_MACHINE_AMD64',
0x8664: 'IMAGE_FILE_MACHINE_AMD64',
def symname(value): parts = struct.unpack("<2L", value) if parts [0] == 0: return string_table_entry (parts [1]) else: return '%s'
b001d9753c11709b1bec11bbf13d3488d72d49b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6277/b001d9753c11709b1bec11bbf13d3488d72d49b4/coff-dump.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5382, 529, 12, 1132, 4672, 2140, 273, 1958, 18, 17309, 2932, 32, 22, 48, 3113, 460, 13, 309, 2140, 306, 20, 65, 422, 374, 30, 327, 533, 67, 2121, 67, 4099, 261, 6019, 306, 21, 5717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5382, 529, 12, 1132, 4672, 2140, 273, 1958, 18, 17309, 2932, 32, 22, 48, 3113, 460, 13, 309, 2140, 306, 20, 65, 422, 374, 30, 327, 533, 67, 2121, 67, 4099, 261, 6019, 306, 21, 5717, ...
factor = 1.0
factor = .8
def user_point(self, x, y): # Return the point described by the SVG coordinates x and y as # an SKPoint object in user coordinates. x and y are expected to # be strings. x = strip(x) y = strip(y)
4176e9424d509c8e23f7b45346e57b94fed80180 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3127/4176e9424d509c8e23f7b45346e57b94fed80180/svgloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 1153, 12, 2890, 16, 619, 16, 677, 4672, 468, 2000, 326, 1634, 11893, 635, 326, 11281, 5513, 619, 471, 677, 487, 468, 392, 12038, 2148, 733, 316, 729, 5513, 18, 619, 471, 677, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 729, 67, 1153, 12, 2890, 16, 619, 16, 677, 4672, 468, 2000, 326, 1634, 11893, 635, 326, 11281, 5513, 619, 471, 677, 487, 468, 392, 12038, 2148, 733, 316, 729, 5513, 18, 619, 471, 677, ...
[wc.filter.rules.RewriteRule.ENDTAG, "script"])
[wc.filter.rules.RewriteRule.ENDTAG, u"script"])
def jsScriptData (self, data, url, ver): """Callback for loading <script src=""> data in the background If downloading is finished, data is None""" assert self.htmlparser.state[0] == 'wait', "non-wait state" wc.log.debug(wc.LOG_JS, "%s jsScriptData %r", self, data) if data is None: if not self.js_script: wc.log.warn(wc...
b1dda6c5bb0d6477a864e1272a9bb9f4dbc578bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/b1dda6c5bb0d6477a864e1272a9bb9f4dbc578bd/JSFilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 3651, 751, 261, 2890, 16, 501, 16, 880, 16, 1924, 4672, 3536, 2428, 364, 7153, 411, 4263, 1705, 1546, 6441, 501, 316, 326, 5412, 971, 23742, 353, 6708, 16, 501, 353, 599, 8395, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3828, 3651, 751, 261, 2890, 16, 501, 16, 880, 16, 1924, 4672, 3536, 2428, 364, 7153, 411, 4263, 1705, 1546, 6441, 501, 316, 326, 5412, 971, 23742, 353, 6708, 16, 501, 353, 599, 8395, 1...
programs = map(lambda t: TVProgram({'title': t, 'category_type':'movie'}, translator=Mock()), self.movies) provider = TheMovieDbFanartProvider(nextProvider=None) @run_async def work(p): posters = provider.getPosters(p) if not posters: self.fail = True for poster in posters: log.debug('%s - %s' % (p.title(), poster))...
def test_getRandomPoster_When_program_is_not_movie_Then_returns_poster(self): # Setup program = TVProgram({'title':'Seinfeld', 'category_type':'series'}, translator=Mock()) provider = TvdbFanartProvider(self.platform, nextProvider=None) # Test def test_getPosters_When_pounded_by_many_threads_Then_doesnt_fail_misera...
16a27dc9c028607cb88cd31c86b47e5d25397565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12279/16a27dc9c028607cb88cd31c86b47e5d25397565/test_fanart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 8529, 3349, 264, 67, 9434, 67, 12890, 67, 291, 67, 902, 67, 8683, 13120, 67, 20112, 67, 6154, 67, 2767, 264, 12, 2890, 4672, 468, 10939, 5402, 273, 399, 58, 9459, 12590,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 8529, 3349, 264, 67, 9434, 67, 12890, 67, 291, 67, 902, 67, 8683, 13120, 67, 20112, 67, 6154, 67, 2767, 264, 12, 2890, 4672, 468, 10939, 5402, 273, 399, 58, 9459, 12590,...
return {'type':'ir.actions.act_window_close' }
return {'type': 'ir.actions.act_window_close'}
def action_move(self,cr,uid,ids,context=None): move_obj=self.pool.get('stock.move') picking_obj=self.pool.get('stock.picking') for act in self.read(cr,uid,ids): move_lines=move_obj.browse(cr,uid,act['move_ids']) for line in move_lines: if line.picking_id: picking_obj.write(cr,uid,[line.picking_id.id],{'move_lines':[(1,...
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 2472, 33, 7036, 4672, 3635, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 15381, 18, 8501, 6134, 6002, 310, 67, 2603, 33, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8501, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 2472, 33, 7036, 4672, 3635, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 15381, 18, 8501, 6134, 6002, 310, 67, 2603, 33, 2...
temp_dict[key] = self._copy(obj[key])
temp_dict[key] = self._copy(obj[key], objectmap) objectmap[_saved_id(obj)] = temp_dict
def _copy(self, obj): """ <Purpose> Create a deep copy of an object without using the python 'copy' module. Using copy.deepcopy() doesn't work because builtins like id and hasattr aren't available when this is called. <Arguments> self obj The object to make a deep copy of. <Exceptions> TypeError If an object is encount...
269dec09cf5f6cd26664269cfea5fe441cc84fa4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/269dec09cf5f6cd26664269cfea5fe441cc84fa4/namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 1081, 4672, 3536, 411, 10262, 4150, 34, 1788, 279, 4608, 1610, 434, 392, 733, 2887, 1450, 326, 5790, 296, 3530, 11, 1605, 18, 11637, 1610, 18, 16589, 3530, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 12, 2890, 16, 1081, 4672, 3536, 411, 10262, 4150, 34, 1788, 279, 4608, 1610, 434, 392, 733, 2887, 1450, 326, 5790, 296, 3530, 11, 1605, 18, 11637, 1610, 18, 16589, 3530, 1435,...
return rt.sage_poly(self.parent())
r = rt.sage_poly(self.parent()) if self.parent().ngens() <= 1 and r.degree() <= 0: return self.parent().base_ring()(r[0]) else: return r
def resultant(self, other, variable=None): """ computes the resultant of self and the first argument with respect to the variable given as the second argument.
4bdea39bd10a1269a205eb65cd78180066651f77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4bdea39bd10a1269a205eb65cd78180066651f77/polynomial_singular_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 970, 12, 2890, 16, 1308, 16, 2190, 33, 7036, 4672, 3536, 15881, 326, 563, 970, 434, 365, 471, 326, 1122, 1237, 598, 8762, 358, 326, 2190, 864, 487, 326, 2205, 1237, 18, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 970, 12, 2890, 16, 1308, 16, 2190, 33, 7036, 4672, 3536, 15881, 326, 563, 970, 434, 365, 471, 326, 1122, 1237, 598, 8762, 358, 326, 2190, 864, 487, 326, 2205, 1237, 18, 2, -100, ...
target_list = target_list[len(pp):]
def add_data_dir(self,data_path): """ Recursively add files under data_path to data_files list. Argument can be either - 2-sequence (<datadir suffix>,<path to data directory>) - path to data directory where python datadir suffix defaults to package dir.
7ac6e2005976d03e25e723bacd59f27ad87e86dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/7ac6e2005976d03e25e723bacd59f27ad87e86dc/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 892, 67, 1214, 12, 2890, 16, 892, 67, 803, 4672, 3536, 31362, 527, 1390, 3613, 501, 67, 803, 358, 501, 67, 2354, 666, 18, 5067, 848, 506, 3344, 300, 576, 17, 6178, 261, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 892, 67, 1214, 12, 2890, 16, 892, 67, 803, 4672, 3536, 31362, 527, 1390, 3613, 501, 67, 803, 358, 501, 67, 2354, 666, 18, 5067, 848, 506, 3344, 300, 576, 17, 6178, 261, 32, ...
if authProtocol is None: usmNoAuthProtocol, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-USER-BASED-SM-MIB', 'usmNoAuthProtocol')
if authProtocol is usmNoAuthProtocol:
def addV3User(snmpEngine, securityName, authKey=None, authProtocol=None, privKey=None, privProtocol=None, hashedAuthKey=None, hashedPrivKey=None): # v3 setup snmpEngineID, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'snmpEngineID') # Build entry index usmUserEntry, = s...
798dbb057dd82e34376d111b9d3e6bd0d5f57239 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/798dbb057dd82e34376d111b9d3e6bd0d5f57239/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 58, 23, 1299, 12, 26527, 4410, 16, 4373, 461, 16, 1357, 653, 33, 7036, 16, 1357, 5752, 33, 7036, 16, 22849, 33, 7036, 16, 6015, 5752, 33, 7036, 16, 14242, 1730, 653, 33, 7036, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 58, 23, 1299, 12, 26527, 4410, 16, 4373, 461, 16, 1357, 653, 33, 7036, 16, 1357, 5752, 33, 7036, 16, 22849, 33, 7036, 16, 6015, 5752, 33, 7036, 16, 14242, 1730, 653, 33, 7036, 1...
author_email='zope3-dev@zope.org',
author_email='zope-dev@zope.org',
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
9b426a5a9ad9fcee24ac48dc97b5820d558e710b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9628/9b426a5a9ad9fcee24ac48dc97b5820d558e710b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100,...
self.buttonUpload.setIcon(QtGui.QIcon("../../../.designer/backup"))
self.buttonUpload.setIcon(QtGui.QIcon(" "))
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,593).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon("../../../.designer/backup"))
79b42f390e6f53f319f4cccbce3f6018d111c729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/79b42f390e6f53f319f4cccbce3f6018d111c729/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
'value'))
'value'), is_method=True)
def annotate(obj, d): self._logger.insert_annotation_DB(locator, currentVersion, obj.id, d)
80df9da371f9270b1373f11f10818be64d95ec8f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/80df9da371f9270b1373f11f10818be64d95ec8f/noncached.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 12, 2603, 16, 302, 4672, 365, 6315, 4901, 18, 6387, 67, 11495, 67, 2290, 12, 20048, 16, 23344, 16, 1081, 18, 350, 16, 302, 13, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 12, 2603, 16, 302, 4672, 365, 6315, 4901, 18, 6387, 67, 11495, 67, 2290, 12, 20048, 16, 23344, 16, 1081, 18, 350, 16, 302, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
raise OperationError(BufferTooShort)
raise BufferTooShort(space)
def recv_bytes_into(self, space, w_buffer, offset=0): rwbuffer = space.rwbuffer_w(w_buffer) length = rwbuffer.getlength()
c8a395526acc384b8abc9423dba4c5bcf6d8e363 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/c8a395526acc384b8abc9423dba4c5bcf6d8e363/interp_connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 67, 3890, 67, 18591, 12, 2890, 16, 3476, 16, 341, 67, 4106, 16, 1384, 33, 20, 4672, 7985, 4106, 273, 3476, 18, 21878, 4106, 67, 91, 12, 91, 67, 4106, 13, 769, 273, 7985, 4106,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 67, 3890, 67, 18591, 12, 2890, 16, 3476, 16, 341, 67, 4106, 16, 1384, 33, 20, 4672, 7985, 4106, 273, 3476, 18, 21878, 4106, 67, 91, 12, 91, 67, 4106, 13, 769, 273, 7985, 4106,...
src_dir = '$MAIN_DIR/..'
src_dir = '$SCONSBUILD_DIR/..'
def GenerateSConscript(output_filename, spec, build_file): """ Generates a SConscript file for a specific target. This generates a SConscript file suitable for building any or all of the target's configurations. A SConscript file may be called multiple times to generate targets for multiple configurations. Consequen...
9aede4f9faaa362bdd9b7beef7797e547894741d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/9aede4f9faaa362bdd9b7beef7797e547894741d/scons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 55, 442, 4263, 12, 2844, 67, 3459, 16, 857, 16, 1361, 67, 768, 4672, 3536, 31902, 279, 348, 442, 4263, 585, 364, 279, 2923, 1018, 18, 225, 1220, 6026, 279, 348, 442, 4263, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6654, 55, 442, 4263, 12, 2844, 67, 3459, 16, 857, 16, 1361, 67, 768, 4672, 3536, 31902, 279, 348, 442, 4263, 585, 364, 279, 2923, 1018, 18, 225, 1220, 6026, 279, 348, 442, 4263, 585, ...
'/opt/kde3/lib'))
'/opt/kde3/lib', '/opt/kde3/lib64'))
def check(self, pkg): global _policy_legacy_exceptions
0cbe50ccaeadfb12134b9e1b3e950b862eb62fb7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10341/0cbe50ccaeadfb12134b9e1b3e950b862eb62fb7/LibraryPolicyCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2552, 389, 5086, 67, 17386, 67, 11855, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3475, 4672, 2552, 389, 5086, 67, 17386, 67, 11855, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
new_price = float(price) * from_uom.factor
new_price = float(price) * from_uom.rate
def _compute_price(self, cursor, user, from_uom, price, to_uom=False): """ Convert price for given uom's. from_uom and to_uom should be browse records. """ if not from_uom or not price or not to_uom: return price if from_uom.category.id <> to_uom.category.id: return price if from_uom.factor_data: new_price = float(pric...
1c3eb8968b62e8d0dd32434c2ed5ad19c170cb2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9285/1c3eb8968b62e8d0dd32434c2ed5ad19c170cb2e/uom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89,...
assert_arrays_equal(actual, desired)
self.assertRavelEqual(actual, desired)
def test_add_path(self): path1 = agg.CompiledPath() path1.move_to(1.0,1.0) path1.translate_ctm(1.0,1.0) path1.line_to(2.0,2.0) #actually (3.0,3.0) path1.scale_ctm(2.0,2.0) path1.line_to(2.0,2.0) # actually (5.0,5.0) path2 = agg.CompiledPath() path2.move_to(1.0,1.0) path2.translate_ctm(1.0,1.0) path2.line_to(2.0,2.0) #...
3d92c0ab4a3a1dfa3f396a7b42d8cc8314558496 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/3d92c0ab4a3a1dfa3f396a7b42d8cc8314558496/compiled_path_test_case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 803, 12, 2890, 4672, 589, 21, 273, 10421, 18, 20733, 743, 1435, 589, 21, 18, 8501, 67, 869, 12, 21, 18, 20, 16, 21, 18, 20, 13, 589, 21, 18, 13929, 67, 299, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 803, 12, 2890, 4672, 589, 21, 273, 10421, 18, 20733, 743, 1435, 589, 21, 18, 8501, 67, 869, 12, 21, 18, 20, 16, 21, 18, 20, 13, 589, 21, 18, 13929, 67, 299, 8...
warn("building table '" + builder.PROVIDES \
warn("Building table '" + builder.PROVIDES \
def build(self, tables): """ Builds the given tables.
e8e9b1566ed97c2e61c03da42d88ea3809b5a0f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11128/e8e9b1566ed97c2e61c03da42d88ea3809b5a0f1/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 4606, 4672, 3536, 3998, 87, 326, 864, 4606, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 4606, 4672, 3536, 3998, 87, 326, 864, 4606, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
else
else:
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 695) else quickfix.CharField.__init__(self, 695, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 8778, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 8778, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 27...
self.mode.buffer.revert(text)
self.mode.buffer.revert(encoding=text)
def processMinibuffer(self, minibuffer, mode, text): #dprint("Revert to encoding %s" % text) # see if it's a known encoding try: 'test'.encode(text) # if we get here, it's valid self.mode.buffer.revert(text) if text != self.mode.buffer.stc.encoding: self.mode.setStatusText("Failed converting to %s; loaded as binary (pr...
cf56d234d99c79a038cfc2338a94d9a6f7416785 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/cf56d234d99c79a038cfc2338a94d9a6f7416785/fundamental_menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2930, 495, 962, 12, 2890, 16, 1131, 495, 962, 16, 1965, 16, 977, 4672, 468, 72, 1188, 2932, 426, 1097, 358, 2688, 738, 87, 6, 738, 977, 13, 468, 2621, 309, 518, 1807, 279, 4846...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2930, 495, 962, 12, 2890, 16, 1131, 495, 962, 16, 1965, 16, 977, 4672, 468, 72, 1188, 2932, 426, 1097, 358, 2688, 738, 87, 6, 738, 977, 13, 468, 2621, 309, 518, 1807, 279, 4846...
if pzEndStamp < int(time.time()):
if not doing_still_pzlocked_rows:
def pz_locked(doc, pageContext): world = pageContext.get_selected_world() curtime = int(time.time()) limits = (0, 30) #limits = (0, 200) doc.write("Players sorted by descending protection zone lock time remaining. Also shown is their level, vocation, guild, and most recent victim.") with stattab_table_tag(doc.open_tag)...
e8c01a7a2c0aee291735f4d3cf0f1bf1195fef6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4811/e8c01a7a2c0aee291735f4d3cf0f1bf1195fef6d/pages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 94, 67, 15091, 12, 2434, 16, 21442, 4672, 9117, 273, 21442, 18, 588, 67, 8109, 67, 18179, 1435, 662, 957, 273, 509, 12, 957, 18, 957, 10756, 8181, 273, 261, 20, 16, 5196, 13, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 94, 67, 15091, 12, 2434, 16, 21442, 4672, 9117, 273, 21442, 18, 588, 67, 8109, 67, 18179, 1435, 662, 957, 273, 509, 12, 957, 18, 957, 10756, 8181, 273, 261, 20, 16, 5196, 13, 46...
print "client is kopete"
if DEBUG: print "client is kopete"
def logout(self): self.imapObject.close() self.imapObject.logout()
65e3917b5bf16d473b6d7144e95cbec4674e8433 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2167/65e3917b5bf16d473b6d7144e95cbec4674e8433/im2imap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 12, 2890, 4672, 365, 18, 12161, 921, 18, 4412, 1435, 365, 18, 12161, 921, 18, 21229, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 12, 2890, 4672, 365, 18, 12161, 921, 18, 4412, 1435, 365, 18, 12161, 921, 18, 21229, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
TESTS::
A curve of rank 0 and prime conductor:: sage: E = EllipticCurve('19a') sage: E.prove_BSD(verbosity=2) p = 2: true by 2-descent True for p not in {2, 3} by Kolyvagin. True for p=3 by Mazur []
def prove_BSD(self, verbosity=0, simon=False, proof=None): """ Attempts to prove the Birch and Swinnerton-Dyer conjectural formula for `E`, returning a list of primes `p` for which this function fails to prove BSD(E,p). Here, BSD(E,p) is the statement: "the Birch and Swinnerton-Dyer formula holds up to a rational numb...
7e12d1cab8922a4b992851b4d1773b845c6c9b38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7e12d1cab8922a4b992851b4d1773b845c6c9b38/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 537, 67, 30780, 12, 2890, 16, 11561, 33, 20, 16, 3142, 265, 33, 8381, 16, 14601, 33, 7036, 4672, 3536, 6020, 9585, 358, 450, 537, 326, 605, 481, 343, 471, 5434, 267, 82, 1051, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 537, 67, 30780, 12, 2890, 16, 11561, 33, 20, 16, 3142, 265, 33, 8381, 16, 14601, 33, 7036, 4672, 3536, 6020, 9585, 358, 450, 537, 326, 605, 481, 343, 471, 5434, 267, 82, 1051, 2...
return code
return (code,msg)
def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name=socket.gethostbyaddr(socket.gethostname())[0] self.putcmd("ehlo",name) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # MT...
053a07b597f875016b8bc478c8a905c8baf4efe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/053a07b597f875016b8bc478c8a905c8baf4efe4/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20124, 383, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 18102, 296, 73, 76, 383, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20124, 383, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 18102, 296, 73, 76, 383, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 353...
tokens appears anywhere in the sequqnce of returned tokens.
tokens appears anywhere in the sequence of returned tokens.
def tokensMatch(expectedTokens, recievedTokens): """Test whether the test has passed or failed For brevity in the tests, the test has passed if the sequence of expected tokens appears anywhere in the sequqnce of returned tokens. """ return expectedTokens == recievedTokens for i, token in enumerate(recievedTokens): if ...
b71ce9ba4dcd259d5d334c2f0b5ef8d97f1860fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/b71ce9ba4dcd259d5d334c2f0b5ef8d97f1860fe/test_tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2430, 2060, 12, 3825, 5157, 16, 1950, 1385, 2155, 5157, 4672, 3536, 4709, 2856, 326, 1842, 711, 2275, 578, 2535, 225, 2457, 324, 9083, 560, 316, 326, 7434, 16, 326, 1842, 711, 2275, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2430, 2060, 12, 3825, 5157, 16, 1950, 1385, 2155, 5157, 4672, 3536, 4709, 2856, 326, 1842, 711, 2275, 578, 2535, 225, 2457, 324, 9083, 560, 316, 326, 7434, 16, 326, 1842, 711, 2275, 309,...
Using 'str(bug)' and 'print bug' is not recommended because of potential encoding issues. Please use unicode(bug) where possible. ''' return unicode(self)
This is available only for compatibility. Using 'str(bug)' and 'print bug' is not recommended because of potential encoding issues. Please use unicode(bug) where possible. ''' return unicode(self).encode(locale.getpreferredencoding(), 'replace')
def __str__(self): '''Return a simple string representation of this bug
0c06e3225bf33fbfe59be3e01f75d50e7de778a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5050/0c06e3225bf33fbfe59be3e01f75d50e7de778a2/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 9163, 990, 279, 4143, 533, 4335, 434, 333, 7934, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 9163, 990, 279, 4143, 533, 4335, 434, 333, 7934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if itera.begins_line() :
if itera.starts_line() :
def inserttag_clicked(self,widget) : itera = self.textview.get_insert() if itera.begins_line() : self.textview.insert_text("@",itera) else : self.textview.insert_text(" @",itera)
b20233cbbb113ee4fe055aecf3371281eed1b3bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/b20233cbbb113ee4fe055aecf3371281eed1b3bd/editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 550, 748, 346, 67, 7475, 329, 12, 2890, 16, 6587, 13, 294, 1400, 69, 273, 365, 18, 955, 1945, 18, 588, 67, 6387, 1435, 309, 1400, 69, 18, 17514, 67, 1369, 1435, 294, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 550, 748, 346, 67, 7475, 329, 12, 2890, 16, 6587, 13, 294, 1400, 69, 273, 365, 18, 955, 1945, 18, 588, 67, 6387, 1435, 309, 1400, 69, 18, 17514, 67, 1369, 1435, 294, 365, 18, ...
sage: sr = mq.SR(3,1,1,8) sage: sr.field_polynomials('x',2)
sage: sr = mq.SR(3, 1, 1, 8) sage: sr.field_polynomials('x', 2)
def field_polynomials(self, name, i, l=None): """ Return list of field polynomials for a given round -- given by its number $i$ -- and name.
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 3915, 13602, 87, 12, 2890, 16, 508, 16, 277, 16, 328, 33, 7036, 4672, 3536, 2000, 666, 434, 652, 16991, 87, 364, 279, 864, 3643, 1493, 864, 635, 2097, 1300, 271, 77, 8, 1493...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 3915, 13602, 87, 12, 2890, 16, 508, 16, 277, 16, 328, 33, 7036, 4672, 3536, 2000, 666, 434, 652, 16991, 87, 364, 279, 864, 3643, 1493, 864, 635, 2097, 1300, 271, 77, 8, 1493...
traceback.format_ext())
traceback.format_exc())
def open_url(self, url): # It looks like the maximum URL length is about 2k. I can't # seem to find the exact value if len(url) > 2047: url = url[:2047] try: webbrowser.get("windows-default").open_new(url) except: logging.warn("Error opening URL: %r\n%s", url, traceback.format_ext()) recommendURL = config.get(prefs.REC...
9a7c1245a51fbcea127214a775d13ad8fa35f9a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/9a7c1245a51fbcea127214a775d13ad8fa35f9a9/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 718, 12, 2890, 16, 880, 4672, 468, 2597, 10192, 3007, 326, 4207, 1976, 769, 353, 2973, 576, 79, 18, 467, 848, 1404, 468, 19264, 358, 1104, 326, 5565, 460, 309, 562, 12, 718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 67, 718, 12, 2890, 16, 880, 4672, 468, 2597, 10192, 3007, 326, 4207, 1976, 769, 353, 2973, 576, 79, 18, 467, 848, 1404, 468, 19264, 358, 1104, 326, 5565, 460, 309, 562, 12, 718, ...
smtp.sendmail("mom@ubuntu.com", addr , message.as_string())
smtp.sendmail("mom@ubuntu.com", env_addr , message.as_string())
def send_message(message, recipients): """Send out a message to everyone subscribed to it.""" smtp = SMTP("localhost") for addr in recipients: logging.debug("Sending to %s", addr) message.replace_header("To", addr) smtp.sendmail("mom@ubuntu.com", addr , message.as_string()) smtp.quit()
79f0991ee4561814c91aecfb7b523e979971c812 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1955/79f0991ee4561814c91aecfb7b523e979971c812/mail-diffs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 2150, 12, 2150, 16, 12045, 4672, 3536, 3826, 596, 279, 883, 358, 3614, 476, 16445, 358, 518, 12123, 17660, 273, 18102, 2932, 13014, 7923, 225, 364, 3091, 316, 12045, 30, 2907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 67, 2150, 12, 2150, 16, 12045, 4672, 3536, 3826, 596, 279, 883, 358, 3614, 476, 16445, 358, 518, 12123, 17660, 273, 18102, 2932, 13014, 7923, 225, 364, 3091, 316, 12045, 30, 2907, ...
if xmid-x >= 0: d = tol1 else: d = -tol1
if xmid-x >= 0: rat = tol1 else: rat = -tol1
def brent(func, args=(), brack=None, tol=1.48e-8, full_output=0, maxiter=500): """ Given a function of one-variable and a possible bracketing interval, return the minimum of the function isolated to a fractional precision of tol. A bracketing interval is a triple (a,b,c) where (a<b<c) and func(b) < func(a),func(c). If...
151bc0cf429941b974cff683950f0c18642f7da4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/151bc0cf429941b974cff683950f0c18642f7da4/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 547, 12, 644, 16, 833, 33, 9334, 16430, 363, 33, 7036, 16, 6085, 33, 21, 18, 8875, 73, 17, 28, 16, 1983, 67, 2844, 33, 20, 16, 25743, 33, 12483, 4672, 3536, 16803, 279, 445, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 324, 547, 12, 644, 16, 833, 33, 9334, 16430, 363, 33, 7036, 16, 6085, 33, 21, 18, 8875, 73, 17, 28, 16, 1983, 67, 2844, 33, 20, 16, 25743, 33, 12483, 4672, 3536, 16803, 279, 445, 4...
if map is None: map=asyncore.socket_map
if map is None: map = asyncore.socket_map
def loop (timeout=30.0, use_poll=0, map=None): if use_poll: poll_fun = asyncore.poll2 else: poll_fun = asyncore.poll if map is None: map=asyncore.socket_map _start_loop(map) while map: poll_fun (timeout, map) _stop_loop()
5415dbe3669c0431316ed3f82bda29b29aa844b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/5415dbe3669c0431316ed3f82bda29b29aa844b9/ThreadedAsync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2798, 261, 4538, 33, 5082, 18, 20, 16, 999, 67, 13835, 33, 20, 16, 852, 33, 7036, 4672, 225, 309, 999, 67, 13835, 30, 7672, 67, 12125, 273, 4326, 479, 18, 13835, 22, 469, 30, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2798, 261, 4538, 33, 5082, 18, 20, 16, 999, 67, 13835, 33, 20, 16, 852, 33, 7036, 4672, 225, 309, 999, 67, 13835, 30, 7672, 67, 12125, 273, 4326, 479, 18, 13835, 22, 469, 30, 3639, ...
flash(u"We recorded you as Maybe Attending. When you know better, could you select Yes or No?", 'info')
flash(u"We recorded you as Maybe Attending, %s. When you know better, could you select Yes or No?" % user.fullname, 'info')
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('inde...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
return idaapi.get_numbered_type_name(idaapi.cvar.idati, ordinal)
return idaapi.idc_get_local_type_name(ordinal)
def GetLocalTypeName(ordinal): """ Retrieve a local type name @param ordinal: slot number (1...NumberOfLocalTypes) returns: local type name or None """ return idaapi.get_numbered_type_name(idaapi.cvar.idati, ordinal)
8b2650eebaf80bde2146ed36982b6253636dd286 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/8b2650eebaf80bde2146ed36982b6253636dd286/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2042, 7947, 12, 517, 1490, 4672, 3536, 10708, 279, 1191, 618, 508, 225, 632, 891, 12675, 30, 225, 4694, 1300, 261, 21, 2777, 9226, 2042, 2016, 13, 225, 1135, 30, 1191, 618, 508, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2042, 7947, 12, 517, 1490, 4672, 3536, 10708, 279, 1191, 618, 508, 225, 632, 891, 12675, 30, 225, 4694, 1300, 261, 21, 2777, 9226, 2042, 2016, 13, 225, 1135, 30, 1191, 618, 508, 5...
primes up to bound.
primes up to ``bound``.
def saturate(self, bound=-1): """ Compute the saturation of the Mordell-Weil group at all primes up to bound.
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 2489, 29711, 21, 4672, 3536, 8155, 326, 22824, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 622, 777, 846, 4485, 731, 358, 2489, 18, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 2489, 29711, 21, 4672, 3536, 8155, 326, 22824, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 622, 777, 846, 4485, 731, 358, 2489, 18, 2, -100, -100, -100...
(root_drive, root_path) = os.path.splitdrive (new_root)
def change_root (new_root, pathname): """Return 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to "os.path.join(new_root,pathname)". Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS.""" if not abspath (pathname)...
4b46ef9a4f35c50eed2e0993058be0cfe71e0b3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4b46ef9a4f35c50eed2e0993058be0cfe71e0b3b/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 3085, 261, 2704, 67, 3085, 16, 9806, 4672, 225, 3536, 990, 296, 28336, 11, 598, 296, 2704, 67, 3085, 11, 26989, 18, 225, 971, 296, 28336, 11, 353, 3632, 16, 333, 353, 7680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2549, 67, 3085, 261, 2704, 67, 3085, 16, 9806, 4672, 225, 3536, 990, 296, 28336, 11, 598, 296, 2704, 67, 3085, 11, 26989, 18, 225, 971, 296, 28336, 11, 353, 3632, 16, 333, 353, 7680, ...
'theorical_margin': fields.function(_theorical_margin_calc, method=True, type='float', string='Theorical Margin',
'theorical_margin': fields.function(_theorical_margin_calc, method=True, type='float', string='Theoretical Margin',
def _theorical_margin_calc(self, cr, uid, ids, name, arg, context=None): res = {} for account in self.browse(cr, uid, ids, context=context): res[account.id] = account.ca_theorical + account.total_cost for id in ids: res[id] = round(res.get(id, 0.0),2) return res
3415b14d6137c1321c302ddbfce5d3abfacd8e15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/3415b14d6137c1321c302ddbfce5d3abfacd8e15/account_analytic_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5787, 10129, 67, 10107, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 2236, 316, 365, 18, 25731, 12, 3353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5787, 10129, 67, 10107, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 2236, 316, 365, 18, 25731, 12, 3353, ...
except Exception, e:
except DOMGenerationError, e:
def extendDOMFromContent (self, document, element, ctd_instance): assert isinstance(ctd_instance, PyWXSB_complexTypeDefinition) if self.C_SEQUENCE == self.compositor(): for particle in self.particles(): particle.extendDOMFromContent(document, element, ctd_instance) elif self.C_ALL == self.compositor(): mutable_particle...
bd2c5c290cba6195c7988af7f54c294b36490ade /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/bd2c5c290cba6195c7988af7f54c294b36490ade/bindings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2133, 8168, 1265, 1350, 261, 2890, 16, 1668, 16, 930, 16, 276, 4465, 67, 1336, 4672, 1815, 1549, 12, 299, 72, 67, 1336, 16, 4707, 59, 60, 14541, 67, 14259, 559, 1852, 13, 309, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2133, 8168, 1265, 1350, 261, 2890, 16, 1668, 16, 930, 16, 276, 4465, 67, 1336, 4672, 1815, 1549, 12, 299, 72, 67, 1336, 16, 4707, 59, 60, 14541, 67, 14259, 559, 1852, 13, 309, 365, 1...
escape_newlines=self._get_preserve_newlines())
escape_newlines=self.must_preserve_newlines)
def category(m): return m.is_completed and 1 or m.due and 2 or 3
76404ab70779d75689c7caa0a8c2b2405923c55a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/76404ab70779d75689c7caa0a8c2b2405923c55a/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3150, 12, 81, 4672, 327, 312, 18, 291, 67, 13615, 471, 404, 578, 312, 18, 24334, 471, 576, 578, 890, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3150, 12, 81, 4672, 327, 312, 18, 291, 67, 13615, 471, 404, 578, 312, 18, 24334, 471, 576, 578, 890, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
win.addstr(my - 2, x, self.help_title, curses.A_BOLD) win.addstr(my - 2, x + len(self.help_title), self.help, curses.A_DIM)
self.safe_add_str(my - 2, x, self.help_title, curses.A_BOLD) self.safe_add_str(my - 2, x + len(self.help_title), self.help, curses.A_DIM)
def draw(self): win = self.win self.handle_keypress() x = LEFT_BORDER_OFFSET y = blank_line = count(2).next my, mx = win.getmaxyx() win.erase() win.bkgd(" ", curses.color_pair(1)) win.border() win.addstr(1, x, self.greet, curses.A_DIM | curses.color_pair(5)) blank_line() win.addstr(y(), x, self.format_row("UUID", "TASK...
3781edb034e455f00bc49bc3dfa71d146102d27d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/3781edb034e455f00bc49bc3dfa71d146102d27d/cursesmon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 5657, 273, 365, 18, 8082, 365, 18, 4110, 67, 856, 1028, 1435, 619, 273, 9686, 67, 38, 7954, 67, 11271, 677, 273, 7052, 67, 1369, 273, 1056, 12, 22, 2934, 4285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 12, 2890, 4672, 5657, 273, 365, 18, 8082, 365, 18, 4110, 67, 856, 1028, 1435, 619, 273, 9686, 67, 38, 7954, 67, 11271, 677, 273, 7052, 67, 1369, 273, 1056, 12, 22, 2934, 4285, ...
import matplotlib matplotlib.use("Agg")
if not opts.show_plots: import matplotlib matplotlib.use("Agg")
help="path to the config file (def = mvsc_config)")
0704cea2649a288bce696ecf79ec4f35cdeb0d32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/0704cea2649a288bce696ecf79ec4f35cdeb0d32/pylal_mvsc_player.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2809, 1546, 803, 358, 326, 642, 585, 261, 536, 273, 7701, 1017, 67, 1425, 2225, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2809, 1546, 803, 358, 326, 642, 585, 261, 536, 273, 7701, 1017, 67, 1425, 2225, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return run_sql('insert into basket_record (id_basket, id_record) values %s;' % vals)
owner_uid = get_basket_owner_id(basket_id) add_to_basket(owner_uid, record_ids, [basket_id])
def add_records_to_basket(record_ids, basket_id): nrec = len(record_ids) if nrec > 0: vals = '(%s,%s)' % (basket_id, record_ids[0]) if nrec > 1: for i in record_ids[1:]: vals += ',(%s, %s)' % (basket_id, i) if CFG_WEBALERT_DEBUG_LEVEL > 0: print "-> adding %s records into basket %s: %s" % (nrec, basket_id, vals) try: ...
7fd38a342394a9733a4995f21b115dc0ee9a9425 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/7fd38a342394a9733a4995f21b115dc0ee9a9425/alert_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7094, 67, 869, 67, 26219, 12, 3366, 67, 2232, 16, 12886, 67, 350, 4672, 225, 290, 3927, 273, 562, 12, 3366, 67, 2232, 13, 309, 290, 3927, 405, 374, 30, 5773, 273, 7747, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 7094, 67, 869, 67, 26219, 12, 3366, 67, 2232, 16, 12886, 67, 350, 4672, 225, 290, 3927, 273, 562, 12, 3366, 67, 2232, 13, 309, 290, 3927, 405, 374, 30, 5773, 273, 7747, 9, ...
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Distributing to: '+str(distri)+'.')
pManager.manager.DebugStr('cOwlManager '+ __version__ +': Distributing to '+str(len(distri))+' owls.')
def Distribute(self, cNetPackage): """Pass cNetPackage to all Neighbourowls.
d6a08bcedb67323d8f55162c82e03e2d1169ba6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/d6a08bcedb67323d8f55162c82e03e2d1169ba6e/cOwlManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3035, 887, 12, 2890, 16, 276, 7308, 2261, 4672, 3536, 6433, 276, 7308, 2261, 358, 777, 30663, 477, 543, 3251, 18, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3035, 887, 12, 2890, 16, 276, 7308, 2261, 4672, 3536, 6433, 276, 7308, 2261, 358, 777, 30663, 477, 543, 3251, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
result = '"%s"' % tool_path( bjam )
result = '%s "-sBOOST_BUILD_PATH=%s:%s" "-sBOOST_ROOT=%s"'\ % ( tool_path( bjam ) , regression_root , os.path.join( boost_root, 'tools/build/v1' ) , boost_root )
def bjam_command( toolsets ): result = '"%s"' % tool_path( bjam ) if not toolsets is None: result += ' "-sTOOLS=%s"' % string.join( string.split( toolsets, ',' ), ' ' ) result += ' "-sBOOST_ROOT=%s"' % boost_root return result
cb3bf0e2aaf71156423e0967a9e6571cb015a2e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/cb3bf0e2aaf71156423e0967a9e6571cb015a2e5/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 78, 301, 67, 3076, 12, 5226, 4424, 262, 30, 563, 273, 1995, 87, 3701, 87, 5315, 4005, 67, 20215, 67, 4211, 5095, 87, 5319, 87, 6, 3701, 87, 5315, 4005, 67, 9185, 5095, 87, 5187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 324, 78, 301, 67, 3076, 12, 5226, 4424, 262, 30, 563, 273, 1995, 87, 3701, 87, 5315, 4005, 67, 20215, 67, 4211, 5095, 87, 5319, 87, 6, 3701, 87, 5315, 4005, 67, 9185, 5095, 87, 5187,...
error ("Expected to find 3 but found: " + value);
error ("Expected to find 3 but found: " + str(value)) return False queue.unref () queue = vortex.AsyncQueue () iterator = 0 while iterator < 1000: queue.push (iterator) iterator += 1 iterator = 0 while iterator < 1000: value = queue.pop () if value != iterator: error ("Expected to find: " + str(value) + ", but ...
def test_00_a(): ########## # create a queue queue = vortex.AsyncQueue (); # call to terminate queue del queue; ######### # create a queue queue = vortex.AsyncQueue (); # call to unref iterator = 0 while iterator < 100: # unref queue.unref (); # next operation iterator += 1; # and now finish del queue; #########...
44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 713, 67, 69, 13332, 468, 3228, 7, 468, 752, 279, 2389, 2389, 273, 331, 20873, 18, 2771, 3183, 261, 1769, 225, 468, 745, 358, 10850, 2389, 1464, 2389, 31, 225, 468, 3228, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 713, 67, 69, 13332, 468, 3228, 7, 468, 752, 279, 2389, 2389, 273, 331, 20873, 18, 2771, 3183, 261, 1769, 225, 468, 745, 358, 10850, 2389, 1464, 2389, 31, 225, 468, 3228, 225,...
self.__node.x = self.__startDragPos[0]+event.x-event.lastdownpos[0] self.__node.y = self.__startDragPos[1]+event.y-event.lastdownpos[1]
self.__node.pos = (self.__startDragPos[0]+event.x-event.lastdownpos[0],self.__startDragPos[1]+event.y-event.lastdownpos[1])
def __onMove(self, event): if event.cursorid == self.__cursorID: self.__node.x = self.__startDragPos[0]+event.x-event.lastdownpos[0] self.__node.y = self.__startDragPos[1]+event.y-event.lastdownpos[1] stopBubble = False if self.__onDragMove: stopBubble = self.__onDragMove(event) if stopBubble == None: stopBubble = Fals...
08d03676380c0236e98994118de1718693c0dd36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/08d03676380c0236e98994118de1718693c0dd36/draggable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 265, 7607, 12, 2890, 16, 871, 4672, 309, 871, 18, 9216, 350, 422, 365, 16186, 9216, 734, 30, 365, 16186, 2159, 18, 917, 273, 261, 2890, 16186, 1937, 11728, 1616, 63, 20, 3737, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 265, 7607, 12, 2890, 16, 871, 4672, 309, 871, 18, 9216, 350, 422, 365, 16186, 9216, 734, 30, 365, 16186, 2159, 18, 917, 273, 261, 2890, 16186, 1937, 11728, 1616, 63, 20, 3737, 25...
self.doSaveConfig() def doSaveConfig (self, reallySave="dunno"): if reallySave == "No": return
def saveConfig (self, widget): self.doSaveConfig()
44ba4a387d4167dedba8d083a763a0b3d1a1236b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/44ba4a387d4167dedba8d083a763a0b3d1a1236b/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 809, 261, 2890, 16, 3604, 4672, 365, 18, 2896, 4755, 809, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 809, 261, 2890, 16, 3604, 4672, 365, 18, 2896, 4755, 809, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
' journal-page ' : ' 773__c:', ' jp ' : ' 773__c:',
'journal-page' : '773__c:', 'jp' : '773__c:',
def __init__(self, message): """Initialization.""" self.message = message
9ac6f199aca80bde5350b014ceb25041ee84876b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/9ac6f199aca80bde5350b014ceb25041ee84876b/search_engine_query_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 3536, 17701, 12123, 365, 18, 2150, 273, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 883, 4672, 3536, 17701, 12123, 365, 18, 2150, 273, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
flags = fcntl.fcntl (fd, fcntl.F_GETFL, 0)
flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
def __init__ (self, fd): dispatcher.__init__ (self) self.connected = 1 # set it to non-blocking mode flags = fcntl.fcntl (fd, fcntl.F_GETFL, 0) flags = flags | os.O_NONBLOCK fcntl.fcntl (fd, fcntl.F_SETFL, flags) self.set_file (fd)
d560ace3a76d1fa162fa40ec90a158d4d3540036 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d560ace3a76d1fa162fa40ec90a158d4d3540036/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 5194, 4672, 7393, 16186, 2738, 972, 261, 2890, 13, 365, 18, 8537, 273, 404, 468, 444, 518, 358, 1661, 17, 18926, 1965, 2943, 273, 30894, 18, 7142, 16681, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 5194, 4672, 7393, 16186, 2738, 972, 261, 2890, 13, 365, 18, 8537, 273, 404, 468, 444, 518, 358, 1661, 17, 18926, 1965, 2943, 273, 30894, 18, 7142, 16681, ...
arguments in each of any two columns, i. e.
arguments in each of any two columns, i.e.
def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number ...
88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 26, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 26, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
marshal.load(file(test_support.TESTFN, "rb"))
new = marshal.load(file(test_support.TESTFN, "rb"))
def test_sets(self): for constructor in (set, frozenset): t = constructor(self.d.keys()) new = marshal.loads(marshal.dumps(t)) self.assertEqual(t, new) self.assert_(isinstance(new, constructor)) self.assertNotEqual(id(t), id(new)) marshal.dump(t, file(test_support.TESTFN, "wb")) marshal.load(file(test_support.TESTFN, "...
605586a925121ac8d40dc68dcb21bf374fc9e92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/605586a925121ac8d40dc68dcb21bf374fc9e92b/test_marshal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4424, 12, 2890, 4672, 364, 3885, 316, 261, 542, 16, 23462, 4672, 268, 273, 3885, 12, 2890, 18, 72, 18, 2452, 10756, 394, 273, 10893, 18, 17135, 12, 3108, 18, 13302, 1121, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4424, 12, 2890, 4672, 364, 3885, 316, 261, 542, 16, 23462, 4672, 268, 273, 3885, 12, 2890, 18, 72, 18, 2452, 10756, 394, 273, 10893, 18, 17135, 12, 3108, 18, 13302, 1121, 12,...
def setUp(self):
def setUp(self):
def _test_currency(self, value, out, **format_opts): self.assertEqual(locale.currency(value, **format_opts), out)
728388af075aafcab93ed25c4da71bb6877a5e55 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/728388af075aafcab93ed25c4da71bb6877a5e55/test_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 7095, 12, 2890, 16, 460, 16, 596, 16, 2826, 2139, 67, 4952, 4672, 365, 18, 11231, 5812, 12, 6339, 18, 7095, 12, 1132, 16, 2826, 2139, 67, 4952, 3631, 596, 13, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 7095, 12, 2890, 16, 460, 16, 596, 16, 2826, 2139, 67, 4952, 4672, 365, 18, 11231, 5812, 12, 6339, 18, 7095, 12, 1132, 16, 2826, 2139, 67, 4952, 3631, 596, 13, 2, -100,...