rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
self.gridlayout15.addWidget(self.label_11,0,0,1,1)
self.gridlayout22.addWidget(self.label_11,0,0,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
self.assertRaises( RuntimeError, winsound.PlaySound, None, winsound.SND_PURGE )
pass
def test_stopasync(self): if _have_soundcard(): winsound.PlaySound( 'SystemQuestion', winsound.SND_ALIAS | winsound.SND_ASYNC | winsound.SND_LOOP ) time.sleep(0.5) try: winsound.PlaySound( 'SystemQuestion', winsound.SND_ALIAS | winsound.SND_NOSTOP ) except RuntimeError: pass else: # the first sound might already be fin...
dca8c128361e6acbd0a08b804c081168ac751857 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/dca8c128361e6acbd0a08b804c081168ac751857/test_winsound.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5681, 3810, 12, 2890, 4672, 309, 389, 21516, 67, 29671, 3327, 13332, 31307, 772, 18, 11765, 24331, 12, 296, 3163, 11665, 2187, 31307, 772, 18, 55, 2908, 67, 23784, 571, 31307, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5681, 3810, 12, 2890, 4672, 309, 389, 21516, 67, 29671, 3327, 13332, 31307, 772, 18, 11765, 24331, 12, 296, 3163, 11665, 2187, 31307, 772, 18, 55, 2908, 67, 23784, 571, 31307, ...
self.pack_start (self.spinner, FALSE, FALSE, 0)
self.pack_start (self.spinner, False, False, 0)
def __init__ (self, callback, lower, upper, integer): gtk.VBox.__init__ (self) diff = upper - lower self.isInteger = integer if integer: step = 1 page = (diff+4) / 5 self.digits = 0 else: self.digits = -int(math.floor(math.log10(diff) + 0.5)) + 3 step = math.pow(10, -self.digits + 1) page = step * 10 if self.digits < 0...
ab8126074d7036807d1d842171687cc01617a181 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ab8126074d7036807d1d842171687cc01617a181/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1348, 16, 2612, 16, 3854, 16, 3571, 4672, 22718, 18, 58, 3514, 16186, 2738, 972, 261, 2890, 13, 3122, 273, 3854, 300, 2612, 365, 18, 291, 4522, 273, 357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1348, 16, 2612, 16, 3854, 16, 3571, 4672, 22718, 18, 58, 3514, 16186, 2738, 972, 261, 2890, 13, 3122, 273, 3854, 300, 2612, 365, 18, 291, 4522, 273, 357...
while step < len(code): op = ord(code[step])
while step < len(co.co_code): op = ord(co.co_code[step])
def getargs(co): """Get information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is a list of argument names (possibly containing nested lists), and 'varargs' and 'varkw' are the names of the * and ** arguments or None.""" if not iscode(co): raise Type...
48b04f8a037fd669331241100a899163d25a0f09 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/48b04f8a037fd669331241100a899163d25a0f09/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 12, 2894, 4672, 3536, 967, 1779, 2973, 326, 1775, 8494, 635, 279, 981, 733, 18, 225, 935, 992, 9198, 854, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 3631, 1625, 296, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 12, 2894, 4672, 3536, 967, 1779, 2973, 326, 1775, 8494, 635, 279, 981, 733, 18, 225, 935, 992, 9198, 854, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 3631, 1625, 296, 196...
settings_overrides={'strict_visitor': 1})
settings_spec=self)
def test_publish(self): if self.run_in_debugger: pdb.set_trace() output = docutils.core.publish_string( source=self.input, reader_name='standalone', parser_name='restructuredtext', writer_name=self.writer_name, settings_overrides={'strict_visitor': 1}) self.compare_output(self.input, output, self.expected)
4a6c3a0877bc3e7284c742bf52b06d1b00f0ac40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4a6c3a0877bc3e7284c742bf52b06d1b00f0ac40/DocutilsTestSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6543, 12, 2890, 4672, 309, 365, 18, 2681, 67, 267, 67, 4148, 693, 30, 10892, 18, 542, 67, 5129, 1435, 876, 273, 997, 5471, 18, 3644, 18, 6543, 67, 1080, 12, 1084, 33, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6543, 12, 2890, 4672, 309, 365, 18, 2681, 67, 267, 67, 4148, 693, 30, 10892, 18, 542, 67, 5129, 1435, 876, 273, 997, 5471, 18, 3644, 18, 6543, 67, 1080, 12, 1084, 33, 2890,...
def getCachedFileFromMarker(self, marker):
def getCachedFileFromMarker(self, marker, suffix=None):
def getCachedFileFromMarker(self, marker): """Check whether a basket exists for marker and suffix.
650bd5e1b291f0846625e3656d53a7ea56cf16d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9162/650bd5e1b291f0846625e3656d53a7ea56cf16d7/cachemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20543, 812, 1265, 7078, 12, 2890, 16, 5373, 16, 3758, 33, 7036, 4672, 3536, 1564, 2856, 279, 12886, 1704, 364, 5373, 471, 3758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 20543, 812, 1265, 7078, 12, 2890, 16, 5373, 16, 3758, 33, 7036, 4672, 3536, 1564, 2856, 279, 12886, 1704, 364, 5373, 471, 3758, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if matches.size(): b = matches.begin() docid = b.get_docid()
if len(matches): docid = matches[0].docid
def add_text(self, identifier, text, mime_type='text/plain'): ''' "identifier" is (classname, itemid, property) ''' if mime_type != 'text/plain': return if not text: text = ''
20d000381e857a74e48e80d4e59a7719b7bb006e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1906/20d000381e857a74e48e80d4e59a7719b7bb006e/indexer_xapian.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 955, 12, 2890, 16, 2756, 16, 977, 16, 4892, 67, 723, 2218, 955, 19, 7446, 11, 4672, 9163, 315, 5644, 6, 353, 225, 261, 18340, 16, 16862, 16, 1272, 13, 9163, 309, 4892, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 955, 12, 2890, 16, 2756, 16, 977, 16, 4892, 67, 723, 2218, 955, 19, 7446, 11, 4672, 9163, 315, 5644, 6, 353, 225, 261, 18340, 16, 16862, 16, 1272, 13, 9163, 309, 4892, 67, ...
self.datequery_result(webpage, datedir, pagenum+1)
nextdownloads = self.datequery_result(webpage, relpath, pagenum+1) downloaded.extend(nextdownloads) return downloaded
def datequery_result(self, webpage, datedir, pagenum): filehandle = open('%s/index_%d.html' % (datedir, pagenum), 'w') filehandle.write(webpage) filehandle.close()
f55a79144368a66b96fa92a55d8cec444dbad926 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5095/f55a79144368a66b96fa92a55d8cec444dbad926/supremecourt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 2271, 67, 2088, 12, 2890, 16, 3311, 2433, 16, 302, 690, 481, 16, 4262, 7924, 4672, 585, 4110, 273, 1696, 29909, 87, 19, 1615, 10185, 72, 18, 2620, 11, 738, 261, 12563, 481, 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, 1509, 2271, 67, 2088, 12, 2890, 16, 3311, 2433, 16, 302, 690, 481, 16, 4262, 7924, 4672, 585, 4110, 273, 1696, 29909, 87, 19, 1615, 10185, 72, 18, 2620, 11, 738, 261, 12563, 481, 16, ...
'Set the background of `widget` to `color`.'
'Set the background of `widget` to a color or image.'
def _set_background(self, widget, ccontext = None, bounds = None): 'Set the background of `widget` to `color`.' if not widget.window: return False if ccontext is None: ccontext = widget.window.cairo_create() if bounds is None: bounds = widget.window.get_size() if self._black and widget is self.pres: bg = (0, 0, 0) el...
8d23729024fa76f4a1017ef684bb5b59fc46d99c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5029/8d23729024fa76f4a1017ef684bb5b59fc46d99c/screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 9342, 12, 2890, 16, 3604, 16, 276, 2472, 273, 599, 16, 4972, 273, 599, 4672, 296, 694, 326, 5412, 434, 1375, 6587, 68, 358, 279, 2036, 578, 1316, 1093, 309, 486, 3604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 67, 9342, 12, 2890, 16, 3604, 16, 276, 2472, 273, 599, 16, 4972, 273, 599, 4672, 296, 694, 326, 5412, 434, 1375, 6587, 68, 358, 279, 2036, 578, 1316, 1093, 309, 486, 3604, ...
response = xmlrpclib.dumps(response, methodresponse=1)
response = xmlrpclib.dumps(response, methodresponse=1, allow_none = self.allow_none)
def _marshaled_dispatch(self, data, dispatch_method = None): """Dispatches an XML-RPC method from marshalled (XML) data.
44fa98d1ff28f6996bb6ec8ada530657e180b1c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/44fa98d1ff28f6996bb6ec8ada530657e180b1c0/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 3536, 5325, 281, 392, 3167, 17, 8087, 707, 628, 10893, 1259, 261, 4201, 13, 501, 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, 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, 389, 3108, 329, 67, 10739, 12, 2890, 16, 501, 16, 3435, 67, 2039, 273, 599, 4672, 3536, 5325, 281, 392, 3167, 17, 8087, 707, 628, 10893, 1259, 261, 4201, 13, 501, 18, 2, -100, -100, ...
def_newitem = { 'oversion':0, 'npeers': 0, 'ntorrents': 0, 'nprefs': 0, 'nqueries':0 }
def updateDB(self, old_version): if old_version == 1 or old_version == 2 or old_version == 3: def_newitem = { 'oversion':0, 'npeers': 0, 'ntorrents': 0, 'nprefs': 0, 'nqueries':0 } keys = self._keys() for key in keys: self._updateItem(key, def_newitem)
8b66d78efc96d552825220bd0d697e94d4dc141d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/8b66d78efc96d552825220bd0d697e94d4dc141d/cachedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2290, 12, 2890, 16, 1592, 67, 1589, 4672, 309, 1592, 67, 1589, 422, 404, 578, 1592, 67, 1589, 422, 576, 578, 1592, 67, 1589, 422, 890, 30, 225, 1311, 273, 365, 6315, 2452, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2290, 12, 2890, 16, 1592, 67, 1589, 4672, 309, 1592, 67, 1589, 422, 404, 578, 1592, 67, 1589, 422, 576, 578, 1592, 67, 1589, 422, 890, 30, 225, 1311, 273, 365, 6315, 2452, 1435, ...
>>> a = Protection()
>>> a = Protection('','horde','3.0.5','portage')
def get_protectedname(self, destination, filename): ''' Woh. Somewhere, we've decided that we're trying to overwrite a file that we really want to save. So, we need a new name for the file that we want to install - which is where we come in.
623e115340b2dccbf16ad0f515bcb7a6b35c7bfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10458/623e115340b2dccbf16ad0f515bcb7a6b35c7bfa/protect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1117, 529, 12, 2890, 16, 2929, 16, 1544, 4672, 9163, 678, 16699, 18, 225, 348, 362, 359, 14852, 16, 732, 8081, 2109, 13898, 716, 732, 4565, 8374, 358, 6156, 279, 585, 716, 732...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1117, 529, 12, 2890, 16, 2929, 16, 1544, 4672, 9163, 678, 16699, 18, 225, 348, 362, 359, 14852, 16, 732, 8081, 2109, 13898, 716, 732, 4565, 8374, 358, 6156, 279, 585, 716, 732...
self.db.getWriteAccess()
def __getview(self): db = self.db._db view = db.view(self.classname) mkprops = view.structure() if mkprops and self.db.fastopen: return view.ordered(1) # is the definition the same? for nm, rutyp in self.ruprops.items(): for mkprop in mkprops: if mkprop.name == nm: break else: mkprop = None if mkprop is None: print "%s...
f01fcdcf7e1e6dd3255f017cff52859dcf4680c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f01fcdcf7e1e6dd3255f017cff52859dcf4680c1/back_metakit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1945, 12, 2890, 4672, 1319, 273, 365, 18, 1966, 6315, 1966, 1476, 273, 1319, 18, 1945, 12, 2890, 18, 18340, 13, 5028, 9693, 273, 1476, 18, 7627, 1435, 309, 5028, 9693, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 1945, 12, 2890, 4672, 1319, 273, 365, 18, 1966, 6315, 1966, 1476, 273, 1319, 18, 1945, 12, 2890, 18, 18340, 13, 5028, 9693, 273, 1476, 18, 7627, 1435, 309, 5028, 9693, 471, ...
print "searching cache for ", troveName
def getMetadata(self, troveList, label, cacheFile = None, cacheOnly = False, saveOnly = False): metadata = {} if cacheFile and not saveOnly: try: print "opening cache" cacheFp = open(cacheFile, "r") cache = pickle.load(cacheFp) cacheFp.close() except IOError, EOFError: print "got an error, returning" if cacheOnly: retu...
08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a/conaryclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
if file_ not in knownFiles and filetypes.is_video_filename(filenameToUnicode(file_)):
if (file_ not in known_files and not file_.startswith(incomplete_dir) and filetypes.is_video_filename(filenameToUnicode(file_))):
def update(self): self.ufeed.confirmDBThread() moviesDir = config.get(prefs.MOVIES_DIRECTORY) # Files known about by real feeds knownFiles = set() for item in views.toplevelItems: if item.feed_id is not self.ufeed.id: knownFiles.add(item.get_filename()) if item.isContainerItem: item.find_new_children()
d1ffddc5f472a5d87bc879f742e109f831dca38e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/d1ffddc5f472a5d87bc879f742e109f831dca38e/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 696, 73, 329, 18, 10927, 2290, 3830, 1435, 7344, 29028, 1621, 273, 642, 18, 588, 12, 1484, 2556, 18, 5980, 4136, 3991, 67, 17229, 13, 468, 6471, 4846, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 696, 73, 329, 18, 10927, 2290, 3830, 1435, 7344, 29028, 1621, 273, 642, 18, 588, 12, 1484, 2556, 18, 5980, 4136, 3991, 67, 17229, 13, 468, 6471, 4846, 29...
print 'NEW POST: %s: %s (%s)' % (entry.title, entry.link.replace("http://www.streetgeek.com.au/portal/modules.php?name=Forums&file=viewtopic&p=", "http://fj.streetgeek.com.au/"), feed) irc.action(CHANNEL, 'found a new post on %s: %s: %s' % (str(feed), str(entry.title.strip()), str(entry.link.strip().replace("http://www...
link = str(entry.link.replace("http://www.streetgeek.com.au/portal/modules.php?name=Forums&file=viewtopic&p=", "http://fj.streetgeek.com.au/")) print 'NEW POST: %s: %s (%s)' % (entry.title, link, feed) irc.action(CHANNEL, 'found a new post on %s: %s: %s' % (str(feed), str(entry.title), link))
def announce_post(irc, feed, entry): global CHANNEL print 'NEW POST: %s: %s (%s)' % (entry.title, entry.link.replace("http://www.streetgeek.com.au/portal/modules.php?name=Forums&file=viewtopic&p=", "http://fj.streetgeek.com.au/"), feed) irc.action(CHANNEL, 'found a new post on %s: %s: %s' % (str(feed), str(entry.title....
f05ae9855eec1f1cfc94d94ca2b3a82d5debb107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12995/f05ae9855eec1f1cfc94d94ca2b3a82d5debb107/feedbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14281, 67, 2767, 12, 481, 71, 16, 4746, 16, 1241, 4672, 2552, 27417, 1692, 273, 609, 12, 4099, 18, 1232, 18, 2079, 2932, 2505, 2207, 5591, 18, 22424, 908, 3839, 18, 832, 18, 8377, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14281, 67, 2767, 12, 481, 71, 16, 4746, 16, 1241, 4672, 2552, 27417, 1692, 273, 609, 12, 4099, 18, 1232, 18, 2079, 2932, 2505, 2207, 5591, 18, 22424, 908, 3839, 18, 832, 18, 8377, 19, ...
elif n == 10:
elif number == 10:
def number_mayan(self, n): x = 42.5 x1, x2, xc, x3, x4 = x + 5, x + 15, x + 20, x + 25, x + 35 y = 60 y1s, y5s, y10s, y20s = y, y - 10, y - 20, y - 40 if n == 5: svg_string = self._svg_bar(x, y1s) elif n == 7: svg_string = self._svg_bar(x, y1s) svg_string += self._svg_circle(x2, y5s, 3) svg_string += self._svg_circle(x...
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 24877, 304, 12, 2890, 16, 290, 4672, 619, 273, 14856, 18, 25, 619, 21, 16, 619, 22, 16, 15192, 16, 619, 23, 16, 619, 24, 273, 619, 397, 1381, 16, 619, 397, 4711, 16, 619,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1300, 67, 24877, 304, 12, 2890, 16, 290, 4672, 619, 273, 14856, 18, 25, 619, 21, 16, 619, 22, 16, 15192, 16, 619, 23, 16, 619, 24, 273, 619, 397, 1381, 16, 619, 397, 4711, 16, 619,...
are passed to it in the `edges`.
are passed to it in the 'edges' generator.
def kcliquesByEdges(edges, k): """Generate k-cliques from edges. Generator function that generates a list of cliques of size k in the order they are formed when edges are added in the order defined by the `edges` argument. If many cliques are formed by adding one edge, the order of the cliques is arbitrary. This gen...
aedcbc095d687b4ff7e65010866f483adf54eb65 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/aedcbc095d687b4ff7e65010866f483adf54eb65/percolator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 4857, 29896, 858, 10697, 12, 8746, 16, 417, 4672, 3536, 4625, 417, 17, 4857, 29896, 628, 5231, 18, 225, 10159, 445, 716, 6026, 279, 666, 434, 4942, 29896, 434, 963, 417, 316, 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, 417, 4857, 29896, 858, 10697, 12, 8746, 16, 417, 4672, 3536, 4625, 417, 17, 4857, 29896, 628, 5231, 18, 225, 10159, 445, 716, 6026, 279, 666, 434, 4942, 29896, 434, 963, 417, 316, 326, ...
indx = indx / thisN
indx = indx // thisN
def _scalarfunc(*params): params = squeeze(asarray(params)) return func(params,*args)
020b04c6dfb7d4314335367d321d657d08ec516e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/020b04c6dfb7d4314335367d321d657d08ec516e/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8748, 644, 30857, 2010, 4672, 859, 273, 17173, 12, 345, 1126, 12, 2010, 3719, 327, 1326, 12, 2010, 16, 14, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8748, 644, 30857, 2010, 4672, 859, 273, 17173, 12, 345, 1126, 12, 2010, 3719, 327, 1326, 12, 2010, 16, 14, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dsect.y = xi dsect.x = xj
dsect.j = xi dsect.i = xj
def getcourse(isprobe, akey): "Get a course and distance from the user." key = 0 dquad = copy.copy(game.quadrant) navmode = "unspecified" itemp = "curt" dsect = coord() iprompt = False if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) scan...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5566, 12, 291, 27230, 16, 279, 856, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5566, 12, 291, 27230, 16, 279, 856, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775...
if not launchUI:
if not launchUI and not force_UI:
def run(): try: opts, args = getopt.getopt(sys.argv[1:], 'hbPtcvl:e:i:d:p:o:') except getopt.error, msg: print >>sys.stderr, str(msg) + '\n\n' + __doc__ sys.exit() doTrain = False doClassify = False doExpunge = options["imap", "expunge"] imapDebug = 0 sleepTime = 0 promptForPass = False launchUI = False server = "" us...
4750d4f3615d798d5f3f56cfd02d7010a4608505 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/4750d4f3615d798d5f3f56cfd02d7010a4608505/sb_imapfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 70, 52, 5111, 10872, 30, 73, 30, 77, 30, 72, 30, 84, 30, 83, 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, 1086, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 70, 52, 5111, 10872, 30, 73, 30, 77, 30, 72, 30, 84, 30, 83, 2...
else: rv = _CommitTransaction(ta)
def _rename_atomic(src, dst): ta = _CreateTransaction(None, 0, 0, 0, 0, 1000, 'Werkzeug rename') if ta == -1: return False try: retry = 0 rv = False while not rv and retry < 100: rv = _MoveFileTransacted(src, dst, None, None, _MOVEFILE_REPLACE_EXISTING | _MOVEFILE_WRITE_THROUGH, ta) if rv == 0: time.sleep(0.001) retry ...
4c4bfaca7eaef810aff0a09e0385bdaa2eb0106b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14437/4c4bfaca7eaef810aff0a09e0385bdaa2eb0106b/posixemulation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18539, 67, 27718, 12, 4816, 16, 3046, 4672, 13561, 273, 389, 1684, 3342, 12, 7036, 16, 374, 16, 374, 16, 374, 16, 374, 16, 4336, 16, 296, 59, 264, 79, 31688, 6472, 6134, 309, 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, 389, 18539, 67, 27718, 12, 4816, 16, 3046, 4672, 13561, 273, 389, 1684, 3342, 12, 7036, 16, 374, 16, 374, 16, 374, 16, 374, 16, 4336, 16, 296, 59, 264, 79, 31688, 6472, 6134, 309, 13...
return "ERROR"
return "ERROR",reply
def socks5ParseResponse(r): if len(r)<8: return None version, reply, rsv, atype = struct.unpack("!BBBB",r[:4]) assert version==5 assert rsv==0 if reply != 0x00: return "ERROR" assert atype in (0x01,0x04) expected_len = 4 + ({1:4,4:16}[atype]) + 2 if len(r) < expected_len: return None elif len(r) > expected_len: raise V...
ba578f0ed63128d4d245b1d40c0ac01d90f8a0da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7483/ba578f0ed63128d4d245b1d40c0ac01d90f8a0da/tor-resolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7313, 87, 25, 3201, 1064, 12, 86, 4672, 309, 562, 12, 86, 13, 32, 28, 30, 327, 599, 1177, 16, 4332, 16, 3597, 90, 16, 30965, 273, 1958, 18, 17309, 2932, 5, 9676, 9676, 3113, 86, 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, 7313, 87, 25, 3201, 1064, 12, 86, 4672, 309, 562, 12, 86, 13, 32, 28, 30, 327, 599, 1177, 16, 4332, 16, 3597, 90, 16, 30965, 273, 1958, 18, 17309, 2932, 5, 9676, 9676, 3113, 86, 10...
return
return 'break'
def run_module_event(self, event): """Run the module after setting up the environment.
f127a38d2121d6ead50e5fa216c34bc47785f6dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/f127a38d2121d6ead50e5fa216c34bc47785f6dc/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 3536, 1997, 326, 1605, 1839, 3637, 731, 326, 3330, 18, 2, 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, 1086, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 3536, 1997, 326, 1605, 1839, 3637, 731, 326, 3330, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
raise "\nERROR: Invalid Tree Item. "
raise Exception("\nERROR: Invalid Tree Item. ")
def SetItemBackgroundColour(self, item, col): """Sets the item background colour."""
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1180, 8199, 26404, 12, 2890, 16, 761, 16, 645, 4672, 3536, 2785, 326, 761, 5412, 15046, 12123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1000, 1180, 8199, 26404, 12, 2890, 16, 761, 16, 645, 4672, 3536, 2785, 326, 761, 5412, 15046, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
appname = getattr(Context.g_module, Context.APPNAME, 'noname') version = getattr(Context.g_module, Context.VERSION, '1.0') tmp_folder = appname + '-' + version try: self.arch_name except: self.arch_name = tmp_folder + '.' + self.ext_algo.get(self.algo, self.algo)
arch_name = self.get_arch_name()
def archive(self): """ Create the archive (override or subclass) """ import tarfile
464a87414a1fb565e4e69a8076e1356940ff17e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/464a87414a1fb565e4e69a8076e1356940ff17e1/Scripting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 12, 2890, 4672, 3536, 1788, 326, 5052, 261, 10601, 578, 10177, 13, 3536, 1930, 25857, 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, 1652, 5052, 12, 2890, 4672, 3536, 1788, 326, 5052, 261, 10601, 578, 10177, 13, 3536, 1930, 25857, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"""Test that reactor.stop terminates reactor.run""" reactor.callLater(0.1, self.stop) reactor.run() reactor.callLater(0.1, self.stop) reactor.run()
"""Test that reactor.crash terminates reactor.run""" reactor.callLater(0.1, self.crash) reactor.run() reactor.callLater(0.1, self.crash) reactor.run()
def testRun(self): """Test that reactor.stop terminates reactor.run""" reactor.callLater(0.1, self.stop) reactor.run() # returns once .stop is called reactor.callLater(0.1, self.stop) reactor.run() # returns once .stop is called
0be193f40bb591ab4fea5811eacda01a0a047326 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0be193f40bb591ab4fea5811eacda01a0a047326/test_internet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1997, 12, 2890, 4672, 3536, 4709, 716, 19178, 18, 5681, 30559, 19178, 18, 2681, 8395, 19178, 18, 1991, 20607, 12, 20, 18, 21, 16, 365, 18, 5681, 13, 19178, 18, 2681, 1435, 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, 1842, 1997, 12, 2890, 4672, 3536, 4709, 716, 19178, 18, 5681, 30559, 19178, 18, 2681, 8395, 19178, 18, 1991, 20607, 12, 20, 18, 21, 16, 365, 18, 5681, 13, 19178, 18, 2681, 1435, 468, 1...
sage: q = qsieve(n, block=False, time=True) sage: q Proper factors so far: [] sage: q
sage: q = qsieve(n, block=False, time=True) sage: q Proper factors so far: [] sage: q
def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''...
e7f0d75b37635d6b3b81be7b0cf491b4009d0c25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e7f0d75b37635d6b3b81be7b0cf491b4009d0c25/qsieve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 869, 67, 1098, 12, 659, 16, 290, 16, 813, 4672, 3536, 4037, 876, 434, 670, 485, 1807, 272, 21271, 471, 290, 358, 279, 666, 471, 813, 18, 225, 12943, 30, 596, 1493, 4439, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 67, 869, 67, 1098, 12, 659, 16, 290, 16, 813, 4672, 3536, 4037, 876, 434, 670, 485, 1807, 272, 21271, 471, 290, 358, 279, 666, 471, 813, 18, 225, 12943, 30, 596, 1493, 4439, 434...
return Decimal((sign, self._int, self._exp))._fix(context=context)
return Decimal((sign, self._int, self._exp))._fix(context)
def __neg__(self, context=None): """Returns a copy with the sign switched.
05069e441412309fa5da59f2e1f6132b4e2386f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/05069e441412309fa5da59f2e1f6132b4e2386f6/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14518, 972, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 279, 1610, 598, 326, 1573, 31665, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14518, 972, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 279, 1610, 598, 326, 1573, 31665, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.name = name
def __init__(self, config_file, dir='', name='datafind'): self.name = name # unfortunately the logs directory has to be created before we call LSCDataFindJob try: os.mkdir(self.name) os.mkdir(self.name + '/logs') except: pass pipeline.LSCDataFindJob.__init__(self, self.name, self.name + '/logs', config_file) self.set...
4f059de02ba49cc10932529819f1976c7ed0ae64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/4f059de02ba49cc10932529819f1976c7ed0ae64/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 67, 768, 16, 1577, 2218, 2187, 508, 2218, 892, 4720, 11, 4672, 565, 468, 640, 24233, 326, 5963, 1867, 711, 358, 506, 2522, 1865, 732, 745, 511, 2312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 642, 67, 768, 16, 1577, 2218, 2187, 508, 2218, 892, 4720, 11, 4672, 565, 468, 640, 24233, 326, 5963, 1867, 711, 358, 506, 2522, 1865, 732, 745, 511, 2312...
"You have an obsolete version of setuptools installed. Please\n" "remove it from your system entirely before rerunning this script." )
"The required version of setuptools (>=%s) is not installed, and\n" "can't be installed while this script is running. Please install\n" "a more recent version first.\n\n(Currently using %r)" ) % (min_version, get_setuptools_version())
def use_setuptools( version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, min_version=None
21bc510cae2ea2ea23b0f5d17df554274cea2c04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9086/21bc510cae2ea2ea23b0f5d17df554274cea2c04/ez_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 542, 30693, 12, 1177, 33, 5280, 67, 5757, 16, 4224, 67, 1969, 33, 5280, 67, 1785, 16, 358, 67, 1214, 33, 538, 18, 1397, 1214, 16, 1131, 67, 1589, 33, 7036, 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, 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, 999, 67, 542, 30693, 12, 1177, 33, 5280, 67, 5757, 16, 4224, 67, 1969, 33, 5280, 67, 1785, 16, 358, 67, 1214, 33, 538, 18, 1397, 1214, 16, 1131, 67, 1589, 33, 7036, 2, -100, -100, ...
except NameError:
except AttributeError:
def plot(self,det,axis,start=None,stop=None): bin = self.detector[det] try: bin.data except NameError: self.arrayRead(det) sumaxis = [2,1,0] sumaxis.remove(axis) low,high = self.__ranges(det,start,stop) #Get requested data subdata = (slice(low[0],high[0]),slice(low[1],high[1]),slice(low[2],high[2])) plotdata = self.da...
d785280b5a2acb60771b8b2db31c180e8e66ae71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/509/d785280b5a2acb60771b8b2db31c180e8e66ae71/flukaplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 8238, 16, 4890, 16, 1937, 33, 7036, 16, 5681, 33, 7036, 4672, 225, 4158, 273, 365, 18, 8238, 1229, 63, 8238, 65, 775, 30, 4158, 18, 892, 1335, 6394, 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, 3207, 12, 2890, 16, 8238, 16, 4890, 16, 1937, 33, 7036, 16, 5681, 33, 7036, 4672, 225, 4158, 273, 365, 18, 8238, 1229, 63, 8238, 65, 775, 30, 4158, 18, 892, 1335, 6394, 30, 365, 18, ...
`s \geq` the sturm bound for `\Gamma_0` at
`s \geq` the Sturm bound for `\Gamma_0` at
def sturm_bound(self, M=None): r""" For a space M of modular forms, this function returns an integer B such that two modular forms in either self or M are equal if and only if their q-expansions are equal to precision B (note that this is 1+ the usual Sturm bound, since `O(q^\mathrm{prec})` has precision prec). If M is...
7cfc69b99a5e57fd68044d80a9e5bb2180a14c73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7cfc69b99a5e57fd68044d80a9e5bb2180a14c73/space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 27430, 67, 3653, 12, 2890, 16, 490, 33, 7036, 4672, 436, 8395, 2457, 279, 3476, 490, 434, 681, 2490, 10138, 16, 333, 445, 1135, 392, 3571, 605, 4123, 716, 2795, 681, 2490, 10138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 384, 27430, 67, 3653, 12, 2890, 16, 490, 33, 7036, 4672, 436, 8395, 2457, 279, 3476, 490, 434, 681, 2490, 10138, 16, 333, 445, 1135, 392, 3571, 605, 4123, 716, 2795, 681, 2490, 10138, ...
if answer == gtk.RESPONSE_OK:
if answer == gtk.RESPONSE_YES:
def Resolve(self): for conflict in self.Conflicts: if conflict[0] == 'ConflictFeature': answer = self.AskUser(self.Plugin, conflict) if answer == gtk.RESPONSE_OK: disableConflicts = conflict[2][0].DisableConflicts con = PluginConflict(conflict[2][0], disableConflicts) if con.Resolve(): conflict[2][0].Enabled = False el...
36d6b37e455460b3e47684e2c9154bf3ea58f2c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7183/36d6b37e455460b3e47684e2c9154bf3ea58f2c9/Conflicts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9910, 12, 2890, 4672, 364, 7546, 316, 365, 18, 30897, 30, 309, 7546, 63, 20, 65, 422, 296, 10732, 4595, 4278, 5803, 273, 365, 18, 23663, 1299, 12, 2890, 18, 3773, 16, 7546, 13, 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, 9910, 12, 2890, 4672, 364, 7546, 316, 365, 18, 30897, 30, 309, 7546, 63, 20, 65, 422, 296, 10732, 4595, 4278, 5803, 273, 365, 18, 23663, 1299, 12, 2890, 18, 3773, 16, 7546, 13, 309, ...
elif encoding and encoding!='identity':
elif encoding and encoding!='identity' and not rewrite:
def process_headers (self): # Headers are terminated by a blank line .. now in the regexp, # we want to say it's either a newline at the beginning of # the document, or it's a lot of headers followed by two newlines. # The cleaner alternative would be to read one line at a time # until we get to a blank line... m = re....
ef38c5f9723295584bfe497badcf732d2a0b1525 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ef38c5f9723295584bfe497badcf732d2a0b1525/HttpServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2485, 261, 2890, 4672, 468, 12158, 854, 14127, 635, 279, 7052, 980, 6116, 2037, 316, 326, 7195, 16, 468, 732, 2545, 358, 12532, 518, 1807, 3344, 279, 9472, 622, 326, 8435, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2485, 261, 2890, 4672, 468, 12158, 854, 14127, 635, 279, 7052, 980, 6116, 2037, 316, 326, 7195, 16, 468, 732, 2545, 358, 12532, 518, 1807, 3344, 279, 9472, 622, 326, 8435, 434,...
timeouts = (0, 0, timeout*1000, 0, timeout*1000)
timeouts = (0, 0, int(timeout*1000), 0, int(timeout*1000))
def __init__(self, port, #number of device, numbering starts at #zero. if everything fails, the user #can specify a device string, note #that this isn't portable anymore baudrate=9600, #baudrate bytesize=EIGHTBITS, #number of databits parity=PARITY_NONE, #enable parity checking stopbits=S...
466d166ed499866ce00ead2fd3fd4e1dc0b389d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/466d166ed499866ce00ead2fd3fd4e1dc0b389d3/serialwin32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 16, 5375, 468, 2696, 434, 2346, 16, 1300, 310, 2542, 622, 468, 7124, 18, 309, 7756, 6684, 16, 326, 729, 468, 4169, 4800, 279, 2346, 533, 16, 4721, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1756, 16, 5375, 468, 2696, 434, 2346, 16, 1300, 310, 2542, 622, 468, 7124, 18, 309, 7756, 6684, 16, 326, 729, 468, 4169, 4800, 279, 2346, 533, 16, 4721, ...
self.last_event_x = event.x - self.get_transformed_position()[0] - self.padding scroller_position = event.x - self.get_transformed_position()[0] - self.padding
self.last_event_x = event.x - self.get_transformed_position()[0] - self.padding - self.scroller_height/2 scroller_position = event.x - self.get_transformed_position()[0] - self.padding - self.scroller_height/2
def on_scroll_move(self, source, event): if self.h == False : if self.last_event_y is None: return clutter.grab_pointer(self.scroller) self.last_event_y = event.y - self.get_transformed_position()[1] - self.padding scroller_position = event.y - self.get_transformed_position()[1] - self.padding self.scroller_position_pe...
ee7c4622a4459d4bb3b702544f874e5bacb6e698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/ee7c4622a4459d4bb3b702544f874e5bacb6e698/scrollbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 12033, 67, 8501, 12, 2890, 16, 1084, 16, 871, 4672, 309, 365, 18, 76, 422, 1083, 294, 309, 365, 18, 2722, 67, 2575, 67, 93, 353, 599, 30, 327, 927, 18220, 18, 2752, 70, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 12033, 67, 8501, 12, 2890, 16, 1084, 16, 871, 4672, 309, 365, 18, 76, 422, 1083, 294, 309, 365, 18, 2722, 67, 2575, 67, 93, 353, 599, 30, 327, 927, 18220, 18, 2752, 70, 67...
def verify(self, patterns=[]):
def verify(self, patterns=[], all=False):
def verify(self, patterns=[]): """verify that the installed files match the packaged checksum optionally verify they match only if they are in the 'pattern' list returns a tuple """ fi = self.hdr.fiFromHeader() results = {} # fn = problem_obj?
92d0aa1485b02ac095fbe307bcfc3ad935fd8352 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/92d0aa1485b02ac095fbe307bcfc3ad935fd8352/packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 16, 6884, 22850, 6487, 777, 33, 8381, 4672, 3536, 8705, 716, 326, 5876, 1390, 845, 326, 2298, 11349, 6697, 8771, 3929, 2898, 845, 1338, 309, 2898, 854, 316, 326, 296, 495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 12, 2890, 16, 6884, 22850, 6487, 777, 33, 8381, 4672, 3536, 8705, 716, 326, 5876, 1390, 845, 326, 2298, 11349, 6697, 8771, 3929, 2898, 845, 1338, 309, 2898, 854, 316, 326, 296, 495...
return self.getdelimited('[', ']\r', 0)
return '[%s]' % self.getdelimited('[', ']\r', 0)
def getdomainliteral(self): """Parse an RFC-822 domain-literal.""" return self.getdelimited('[', ']\r', 0)
c98d48a7e336d591c4a47fe3d7b83d0b405d4112 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c98d48a7e336d591c4a47fe3d7b83d0b405d4112/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4308, 13107, 12, 2890, 4672, 3536, 3201, 392, 8372, 17, 24532, 2461, 17, 13107, 12123, 327, 21848, 87, 3864, 738, 365, 18, 588, 3771, 1038, 329, 2668, 63, 2187, 12671, 64, 86, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4308, 13107, 12, 2890, 4672, 3536, 3201, 392, 8372, 17, 24532, 2461, 17, 13107, 12123, 327, 21848, 87, 3864, 738, 365, 18, 588, 3771, 1038, 329, 2668, 63, 2187, 12671, 64, 86, 2187,...
so.axis[i-1].val = xvals[i]
so.axis[i].val = xvals[i]
def result_insert(result,descr,value,map_so,axis="y",pap=0,xvals=None): """ This function takes value and puts it into the result in an appropriate fashion. The description is used for decision making. Parameters: ---------- """ if descr == None: result_type = get_type(result) else: result_type = descr if (result_ty...
77b15cff46bb604871cdfb2e027bc5bcafe49f1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/77b15cff46bb604871cdfb2e027bc5bcafe49f1c/hlr_data_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 67, 6387, 12, 2088, 16, 28313, 16, 1132, 16, 1458, 67, 2048, 16, 4890, 1546, 93, 3113, 84, 438, 33, 20, 16, 92, 4524, 33, 7036, 4672, 3536, 1220, 445, 5530, 460, 471, 8200, 518,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 563, 67, 6387, 12, 2088, 16, 28313, 16, 1132, 16, 1458, 67, 2048, 16, 4890, 1546, 93, 3113, 84, 438, 33, 20, 16, 92, 4524, 33, 7036, 4672, 3536, 1220, 445, 5530, 460, 471, 8200, 518,...
def _createnode(self): ''' create a node based on the contents of the form ''' cl = self.db.classes[self.classname] props, dummy = parsePropsFromForm(self.db, cl, self.form) if not props.has_key('status'): try: unread_id = self.db.status.lookup('unread') except KeyError: pass else: props['status'] = unread_id if p...
def showfile(self): ''' display a file ''' nodeid = self.nodeid cl = self.db.file mime_type = cl.get(nodeid, 'type') if mime_type == 'message/rfc822': mime_type = 'text/plain' self.header(headers={'Content-Type': mime_type}) self.write(cl.get(nodeid, 'content'))
a43f362c984960504ee2a5274edaf031a40df05f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/a43f362c984960504ee2a5274edaf031a40df05f/cgi_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 768, 12, 2890, 4672, 9163, 2562, 279, 585, 9163, 756, 350, 273, 365, 18, 2159, 350, 927, 273, 365, 18, 1966, 18, 768, 4892, 67, 723, 273, 927, 18, 588, 12, 2159, 350, 16, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 768, 12, 2890, 4672, 9163, 2562, 279, 585, 9163, 756, 350, 273, 365, 18, 2159, 350, 927, 273, 365, 18, 1966, 18, 768, 4892, 67, 723, 273, 927, 18, 588, 12, 2159, 350, 16, 296, ...
if (sig.getAppearance() == RED) :
sigState = sig.getAppearance() if (sigState == RED) :
def cvtAppearanceText(self, sig) : rep = "" if (sig.getHeld()) : rep = rep + "Held " if (sig.getLit()) : rep = rep + "Lit " if (sig.getAppearance() == RED) : rep = rep + "Red " elif (sig.getAppearance() == FLASHRED) : rep = rep + "Flashing Red " elif (sig.getAppearance() == YELLOW) : rep = rep + "Yellow " elif (sig.get...
ea0545abfec3c873ac30e3d94a5ae0a9a6e544ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1660/ea0545abfec3c873ac30e3d94a5ae0a9a6e544ba/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8951, 88, 1294, 27668, 1528, 12, 2890, 16, 3553, 13, 294, 2071, 273, 1408, 309, 261, 7340, 18, 588, 44, 488, 10756, 294, 2071, 273, 2071, 397, 315, 44, 488, 315, 309, 261, 7340, 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, 8951, 88, 1294, 27668, 1528, 12, 2890, 16, 3553, 13, 294, 2071, 273, 1408, 309, 261, 7340, 18, 588, 44, 488, 10756, 294, 2071, 273, 2071, 397, 315, 44, 488, 315, 309, 261, 7340, 18, ...
address.fullName = section.fullName
try: address.fullName = section.fullName except AttributeError: pass
def saveAttributeFromWidget(self, item, widget, validate): if validate: section = item.getAttributeValue (self.whichAttribute()) widgetString = widget.GetValue() processedAddresses, validAddresses = self.parseEmailAddresses (item, widgetString) section.setAttributeValue('emailAddresses', validAddresses) for address in ...
9f33ff4eb39cebb8a6ee5bed9c613b2c0216bb03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9f33ff4eb39cebb8a6ee5bed9c613b2c0216bb03/Detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 1499, 1265, 4609, 12, 2890, 16, 761, 16, 3604, 16, 1954, 4672, 309, 1954, 30, 2442, 273, 761, 18, 588, 14942, 261, 2890, 18, 12784, 1499, 10756, 3604, 780, 273, 3604, 18, 967, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 1499, 1265, 4609, 12, 2890, 16, 761, 16, 3604, 16, 1954, 4672, 309, 1954, 30, 2442, 273, 761, 18, 588, 14942, 261, 2890, 18, 12784, 1499, 10756, 3604, 780, 273, 3604, 18, 967, 62...
j = string.find(sys.version, ")", i)
j = sys.version.find(")", i)
def get_platform (): """Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information ...
98ec5c93eb4b2e2f94abad95916bbbc38e6273b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/98ec5c93eb4b2e2f94abad95916bbbc38e6273b8/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9898, 1832, 30, 3536, 990, 279, 533, 716, 25283, 326, 783, 4072, 18, 225, 1220, 353, 1399, 31457, 358, 23926, 4072, 17, 12524, 1361, 6402, 471, 4072, 17, 12524, 6650, 23296, 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, 336, 67, 9898, 1832, 30, 3536, 990, 279, 533, 716, 25283, 326, 783, 4072, 18, 225, 1220, 353, 1399, 31457, 358, 23926, 4072, 17, 12524, 1361, 6402, 471, 4072, 17, 12524, 6650, 23296, 18,...
if c.logic == 1: for m in assy.selmols: for a in m.atoms.values():
if c.logic == 0: for m in assy.selmols[:]: for a in m.atoms.values():
def partselect(self, assy): """Loop thru all the atoms that are visible and select any that are 'in' the shape, ignoring the thickness parameter. pick the parts that contain them """ #---This function has been modified by Huaicai on 10/05/04 to fix bugs of shift & Ctrl drag#---selection of molecules c=self.curves[0] if...
6ccd717748b0fa2f763c67910e695080fc831885 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/6ccd717748b0fa2f763c67910e695080fc831885/shape.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1087, 4025, 12, 2890, 16, 1551, 93, 4672, 3536, 6452, 286, 8653, 777, 326, 9006, 716, 854, 6021, 471, 2027, 1281, 716, 854, 296, 267, 11, 326, 2179, 16, 14398, 326, 27199, 1569, 18, 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, 1087, 4025, 12, 2890, 16, 1551, 93, 4672, 3536, 6452, 286, 8653, 777, 326, 9006, 716, 854, 6021, 471, 2027, 1281, 716, 854, 296, 267, 11, 326, 2179, 16, 14398, 326, 27199, 1569, 18, 60...
portal_path = self.get_portal_path(metatype)
portal_path = self.get_portal_path(portal)
def list_fs_skinfiles(self, metatype, skin_id, schemes=False): """ return the list of the filesystem templates """ portal_path = self.get_portal_path(metatype) skel_handler, error = skel_parser().parse(readFile(join(portal_path, 'skel', 'skel.xml'), 'r')) if skel_handler.root.layout is not None: for skin in skel_handle...
0116da894b0fd06e2befe1c4b6331ce460957cbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/0116da894b0fd06e2befe1c4b6331ce460957cbc/NaayaUpdater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2556, 67, 7771, 267, 2354, 12, 2890, 16, 5100, 6361, 16, 18705, 67, 350, 16, 20436, 33, 8381, 4672, 3536, 327, 326, 666, 434, 326, 6496, 5539, 3536, 11899, 67, 803, 273, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2556, 67, 7771, 267, 2354, 12, 2890, 16, 5100, 6361, 16, 18705, 67, 350, 16, 20436, 33, 8381, 4672, 3536, 327, 326, 666, 434, 326, 6496, 5539, 3536, 11899, 67, 803, 273, 365, ...
self.transparency = transparency
self.transparency = transparency
def __init__(self, author=None, category=None, content=None, atom_id=None, link=None, published=None, title=None, updated=None, transparency=None, comments=None, event_status=None, send_event_notifications=None, visibility=None, recurrence=None, recurrence_exception=None, where=None, when=None, who=None, quick_add=None...
6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2869, 33, 7036, 16, 3150, 33, 7036, 16, 913, 33, 7036, 16, 3179, 67, 350, 33, 7036, 16, 1692, 33, 7036, 16, 9487, 33, 7036, 16, 2077, 33, 7036, 16, 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, 2738, 972, 12, 2890, 16, 2869, 33, 7036, 16, 3150, 33, 7036, 16, 913, 33, 7036, 16, 3179, 67, 350, 33, 7036, 16, 1692, 33, 7036, 16, 9487, 33, 7036, 16, 2077, 33, 7036, 16, 3...
files=os.listdir(destdir) files=[filename for filename in files if filename[0] != '.'] for i in files: if os.path.isfile(normpath(destdir+"/"+i)): self.gen_digest_file(normpath(destdir+"/"+i))
files=os.listdir(destdir) files=[filename for filename in files if filename[0] != '.'] for i in files: if os.path.isfile(normpath(destdir+"/"+i)): self.gen_digest_file(normpath(destdir+"/"+i))
def generate_digests(self): for pkgset in self.settings["grp"]: if self.settings["grp/"+pkgset+"/type"] == "pkgset": destdir=normpath(self.settings["target_path"]+"/"+pkgset+"/All") print "Digesting files in the pkgset....." digests=glob.glob(destdir+'/*.digests') for i in digests: if os.path.exists(i): os.remove(i) f...
6b4b951fcef85764cdb9b58bed286358fbc800f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/6b4b951fcef85764cdb9b58bed286358fbc800f7/grp_target.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 10171, 87, 12, 2890, 4672, 364, 3475, 542, 316, 365, 18, 4272, 9614, 17532, 11929, 30, 309, 365, 18, 4272, 9614, 17532, 4898, 15, 10657, 542, 9078, 19, 723, 11929, 422, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 10171, 87, 12, 2890, 4672, 364, 3475, 542, 316, 365, 18, 4272, 9614, 17532, 11929, 30, 309, 365, 18, 4272, 9614, 17532, 4898, 15, 10657, 542, 9078, 19, 723, 11929, 422, 315, ...
if self.greenlet is None:
if self.state == 'connected':
def unhold(self): if not self.on_hold or not self._hold_in_progress: return self._hold_in_progress = False streams = self.streams if self.streams is not None else self.proposed_streams if not streams: return for stream in streams: stream.unhold() if self.greenlet is None: self._send_unhold()
95660a14f98a86b53a44c1d34a8ff5fae0f69754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/95660a14f98a86b53a44c1d34a8ff5fae0f69754/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 21056, 12, 2890, 4672, 309, 486, 365, 18, 265, 67, 21056, 578, 486, 365, 6315, 21056, 67, 267, 67, 8298, 30, 327, 365, 6315, 21056, 67, 267, 67, 8298, 273, 1083, 8205, 273, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 21056, 12, 2890, 4672, 309, 486, 365, 18, 265, 67, 21056, 578, 486, 365, 6315, 21056, 67, 267, 67, 8298, 30, 327, 365, 6315, 21056, 67, 267, 67, 8298, 273, 1083, 8205, 273, 365, ...
self.bounds.append( self.makeBound() )
self.bounds.append( self.makeRandomBound() )
def makeTree(self, numBounds): # Make tree creation repeatable, but different for every size random.seed(100 + 5 * numBounds) self.bounds = Box2dVectorData() for i in range(0, numBounds): self.bounds.append( self.makeBound() ) self.tree = Box2dTree( self.bounds )
4ad6372a07364aefd9c635be6abf8692f532b8cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/4ad6372a07364aefd9c635be6abf8692f532b8cb/BoundedKDTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2471, 12, 2890, 16, 818, 5694, 4672, 468, 4344, 2151, 6710, 7666, 429, 16, 1496, 3775, 364, 3614, 963, 2744, 18, 12407, 12, 6625, 397, 1381, 380, 818, 5694, 13, 365, 18, 10576, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2471, 12, 2890, 16, 818, 5694, 4672, 468, 4344, 2151, 6710, 7666, 429, 16, 1496, 3775, 364, 3614, 963, 2744, 18, 12407, 12, 6625, 397, 1381, 380, 818, 5694, 13, 365, 18, 10576, 2...
(updater, ) = cursor.fetchone()
for updater, in cursor: break else: cursor.execute("SELECT reporter FROM ticket WHERE id=%s", (tktid,)) for updater, in cursor: break
def get_recipients(self, tktid): notify_reporter = self.config.getbool('notification', 'always_notify_reporter') notify_owner = self.config.getbool('notification', 'always_notify_owner') notify_updater = self.config.getbool('notification', 'always_notify_updater')
1626244378da507226f8963d045280baafde59cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/1626244378da507226f8963d045280baafde59cb/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 27925, 12, 2890, 16, 268, 8629, 350, 4672, 5066, 67, 266, 7988, 273, 365, 18, 1425, 18, 588, 6430, 2668, 9927, 2187, 296, 17737, 67, 12336, 67, 266, 7988, 6134, 5066, 67, 8443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 27925, 12, 2890, 16, 268, 8629, 350, 4672, 5066, 67, 266, 7988, 273, 365, 18, 1425, 18, 588, 6430, 2668, 9927, 2187, 296, 17737, 67, 12336, 67, 266, 7988, 6134, 5066, 67, 8443...
out_app(kml.add_point(loc.id, self.utXmlEncode(loc.title), self.utXmlEncode(loc.description), '%s/getSymbolPicture?id=%s' % (self.absolute_url(), loc.geo_type), loc.longitude, loc.latitude, self.utXmlEncode(self.getSymbolTitle(loc.geo_type)), self.absolute_url(), loc.absolute_url(), loc.url, self.utXmlEncode(loc.addres...
out_app(kml.add_point(self.utToUtf8(loc.id), self.utXmlEncode(loc.title), self.utXmlEncode(loc.description), '%s/getSymbolPicture?id=%s' % (self.absolute_url(), self.utToUtf8(loc.geo_type)), self.utToUtf8(loc.longitude), self.utToUtf8(loc.latitude), self.utXmlEncode(self.getSymbolTitle(loc.geo_type)), self.utToUtf8(sel...
def locations_kml(self, path='', show='', REQUEST=None): """ """ path = path or '/' show = eval(show)
5604a013a8d2846eebf2df818d6030886e545962 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/5604a013a8d2846eebf2df818d6030886e545962/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7838, 67, 79, 781, 12, 2890, 16, 589, 2218, 2187, 2405, 2218, 2187, 12492, 33, 7036, 4672, 3536, 3536, 589, 273, 589, 578, 2023, 2405, 273, 5302, 12, 4500, 13, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 7838, 67, 79, 781, 12, 2890, 16, 589, 2218, 2187, 2405, 2218, 2187, 12492, 33, 7036, 4672, 3536, 3536, 589, 273, 589, 578, 2023, 2405, 273, 5302, 12, 4500, 13, 2, -100, -100, -100, -10...
"""And replace frist ':' to space join +k channel,by Yuxans Yao 2007/07/13 11:45""" for channel in self.channels.keys():
for channel in self.serve_channels:
def on_welcome(self, c, e): """Whenever this bot joins a server, this is executed""" """And replace frist ':' to space join +k channel,by Yuxans Yao 2007/07/13 11:45""" for channel in self.channels.keys(): Debug("Joining", channel) c.join(channel.replace(':',' ',1))
8cebb5f4645543d8fae3fd0878d44268cabdc0cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10749/8cebb5f4645543d8fae3fd0878d44268cabdc0cf/moobot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 91, 16312, 12, 2890, 16, 276, 16, 425, 4672, 3536, 2888, 4009, 502, 333, 2512, 13471, 279, 1438, 16, 333, 353, 7120, 8395, 364, 1904, 316, 365, 18, 30104, 67, 9114, 30, 4015, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 91, 16312, 12, 2890, 16, 276, 16, 425, 4672, 3536, 2888, 4009, 502, 333, 2512, 13471, 279, 1438, 16, 333, 353, 7120, 8395, 364, 1904, 316, 365, 18, 30104, 67, 9114, 30, 4015, ...
return "CPU_ARCH:=" + arch[arc_v.get()][0]
return "CPU_ARCH:= " + arch[arc_v.get()][0]
def repl_arch(m): return "CPU_ARCH:=" + arch[arc_v.get()][0]
e2b0b7a15665e7f5130b4f9e830fd32651df813f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2128/e2b0b7a15665e7f5130b4f9e830fd32651df813f/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 67, 991, 12, 81, 4672, 327, 315, 15222, 67, 10586, 30, 33, 315, 397, 6637, 63, 11828, 67, 90, 18, 588, 1435, 6362, 20, 65, 225, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 67, 991, 12, 81, 4672, 327, 315, 15222, 67, 10586, 30, 33, 315, 397, 6637, 63, 11828, 67, 90, 18, 588, 1435, 6362, 20, 65, 225, 2, -100, -100, -100, -100, -100, -100, -100, -10...
finalOutputSandbox = currentFiles+';'+extraFiles uniqueOutputSandbox = uniqueElements(finalOutputSandbox.split(';')) paramsDict['OutputSandbox']['value'] = string.join(uniqueOutputSandbox,';') self.log.verbose('Final unique Output Sandbox %s' %(string.join(uniqueOutputSandbox,';')))
finalOutputSandbox = currentFiles + ';' + extraFiles uniqueOutputSandbox = uniqueElements( finalOutputSandbox.split( ';' ) ) paramsDict['OutputSandbox']['value'] = string.join( uniqueOutputSandbox, ';' ) self.log.verbose( 'Final unique Output Sandbox %s' % ( string.join( uniqueOutputSandbox, ';' ) ) )
def _toJDL(self,xmlFile=''): #messy but need to account for xml file being in /tmp/guid dir """Creates a JDL representation of itself as a Job. """ #Check if we have to do old bootstrap... classadJob = ClassAd('[]')
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 46, 8914, 12, 2890, 16, 2902, 812, 2218, 11, 4672, 468, 81, 403, 93, 1496, 1608, 358, 2236, 364, 2025, 585, 3832, 316, 342, 5645, 19, 14066, 1577, 3536, 2729, 279, 804, 8914,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 869, 46, 8914, 12, 2890, 16, 2902, 812, 2218, 11, 4672, 468, 81, 403, 93, 1496, 1608, 358, 2236, 364, 2025, 585, 3832, 316, 342, 5645, 19, 14066, 1577, 3536, 2729, 279, 804, 8914,...
def fl_set_object_lalign(ob, align): """ fl_set_object_lalign(ob, align) """ _fl_set_object_lalign(ob, align)
def fl_set_object_lalign(pObject, align): """ fl_set_object_lalign(pObject, align) """ _fl_set_object_lalign(pObject, align)
def fl_set_object_lalign(ob, align): """ fl_set_object_lalign(ob, align) """ _fl_set_object_lalign(ob, align)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1612, 67, 80, 7989, 12, 84, 921, 16, 5689, 4672, 3536, 1183, 67, 542, 67, 1612, 67, 80, 7989, 12, 84, 921, 16, 5689, 13, 3536, 225, 389, 2242, 67, 542, 67, 1612,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 1612, 67, 80, 7989, 12, 84, 921, 16, 5689, 4672, 3536, 1183, 67, 542, 67, 1612, 67, 80, 7989, 12, 84, 921, 16, 5689, 13, 3536, 225, 389, 2242, 67, 542, 67, 1612,...
if options.verbose: print " * Invalid Encoding. Required encoding: %s" % scriptEncoding else: print "\n * Invalid Encoding in file %s. Required encoding: %s" % (filePath, scriptEncoding)
print " * Invalid Encoding. Required encoding %s in %s" % (encoding, filePath)
def read(filePath, encoding): try: return codecs.open(filePath, "r", encoding).read() except ValueError: if options.verbose: print " * Invalid Encoding. Required encoding: %s" % scriptEncoding else: print "\n * Invalid Encoding in file %s. Required encoding: %s" % (filePath, scriptEncoding) sys.exit(1)
a010f477a9728103939f44844174bf55d0d4072e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/a010f477a9728103939f44844174bf55d0d4072e/filetool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 22787, 16, 2688, 4672, 775, 30, 327, 17437, 18, 3190, 12, 22787, 16, 315, 86, 3113, 2688, 2934, 896, 1435, 225, 1335, 2068, 30, 1172, 315, 565, 380, 1962, 13400, 18, 10647, 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, 855, 12, 22787, 16, 2688, 4672, 775, 30, 327, 17437, 18, 3190, 12, 22787, 16, 315, 86, 3113, 2688, 2934, 896, 1435, 225, 1335, 2068, 30, 1172, 315, 565, 380, 1962, 13400, 18, 10647, 26...
def fl_add_thumbwheel(type, x, y, w, h, label): """ fl_add_thumbwheel(type, x, y, w, h, label) -> object """ retval = _fl_add_thumbwheel(type, x, y, w, h, label)
def fl_add_thumbwheel(wheel_type, x, y, w, h, label): """ fl_add_thumbwheel(wheel_type, x, y, w, h, label) -> pObject """ retval = _fl_add_thumbwheel(wheel_type, x, y, w, h, label)
def fl_add_thumbwheel(type, x, y, w, h, label): """ fl_add_thumbwheel(type, x, y, w, h, label) -> object """ retval = _fl_add_thumbwheel(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 67, 21639, 21344, 12, 21344, 67, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 21639, 21344, 12, 21344, 67, 723, 16, 619, 16, 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, 1183, 67, 1289, 67, 21639, 21344, 12, 21344, 67, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 21639, 21344, 12, 21344, 67, 723, 16, 619, 16, 677...
for c, x in enumerate(self.metadata): mi, formats = x if self.is_canceled(): break if self.db.has_book(mi): self.duplicates.append((mi, formats)) else: self.db.import_book(mi, formats, notify=False) self.number_of_books_added += 1 self.emit(SIGNAL('pupdate(PyQt_PyObject)'), c)
for c, formats in enumerate(self.books): self.get_metadata.from_formats(c, formats) self.wait_for_condition() for c, x in enumerate(self.metadata): mi, formats = x if self.is_canceled(): break if self.db.has_book(mi): self.duplicates.append((mi, formats)) else: self.db.import_book(mi, formats, notify=False) self.numb...
def run(self): root = os.path.abspath(self.path) for dirpath in os.walk(root): if self.is_canceled(): return self.emit(SIGNAL('update(PyQt_PyObject)'), _('Searching in')+' '+dirpath[0]) self.books += list(self.db.find_books_in_directory(dirpath[0], self.single_book_per_directory)) self.books = [formats for formats in s...
7dba0088e8bcfd55cbbb46f6dbd7b59c08d34703 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/7dba0088e8bcfd55cbbb46f6dbd7b59c08d34703/add.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1365, 273, 1140, 18, 803, 18, 5113, 803, 12, 2890, 18, 803, 13, 364, 17803, 316, 1140, 18, 11348, 12, 3085, 4672, 309, 365, 18, 291, 67, 10996, 329, 13332, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1365, 273, 1140, 18, 803, 18, 5113, 803, 12, 2890, 18, 803, 13, 364, 17803, 316, 1140, 18, 11348, 12, 3085, 4672, 309, 365, 18, 291, 67, 10996, 329, 13332, 327, ...
c = c0.cyan+x*(c1.cyan - c0.cyan)/dx m = c0.magenta+x*(c1.magenta - c0.magenta)/dx y = c0.yellow+x*(c1.yellow - c0.yellow)/dx k = c0.black+x*(c1.black - c0.black)/dx d = c0.density+x*(c1.density - c0.density)/dx a = c0.alpha+x*(c1.alpha - c0.alpha)/dx return CMYKColor(c,m,y,k, density=d, alpha=a)
if cmykDistance(c0,c1)<1e-8: assert c0.spotName == c1.spotName, "Identical cmyk, but different spotName" c = c0.cyan m = c0.magenta y = c0.yellow k = c0.black d = c0.density+x*(c1.density - c0.density)/dx a = c0.alpha+x*(c1.alpha - c0.alpha)/dx return CMYKColor(c,m,y,k, density=d, spotName=c0.spotName, alpha=a) elif c...
def linearlyInterpolatedColor(c0, c1, x0, x1, x): """ Linearly interpolates colors. Can handle RGB, CMYK and PCMYK colors - give ValueError if colours aren't the same. Doesn't currently handle 'Spot Color Interpolation'. """ if c0.__class__ != c1.__class__: raise ValueError("Color classes must be the same for interpol...
81a5eae032fdd2eb280ecdd70193e51cdd02c67e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/81a5eae032fdd2eb280ecdd70193e51cdd02c67e/colors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9103, 715, 15665, 690, 2957, 12, 71, 20, 16, 276, 21, 16, 619, 20, 16, 619, 21, 16, 619, 4672, 3536, 13921, 715, 7326, 815, 5740, 18, 4480, 1640, 11510, 16, 15871, 61, 47, 471, 453, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9103, 715, 15665, 690, 2957, 12, 71, 20, 16, 276, 21, 16, 619, 20, 16, 619, 21, 16, 619, 4672, 3536, 13921, 715, 7326, 815, 5740, 18, 4480, 1640, 11510, 16, 15871, 61, 47, 471, 453, ...
Or you can turn on the drawing of a frame around the plots:
You can also label the axes: sage: show(plot(sin,-4,4), axes_labels=('x','y')) You can turn on the drawing of a frame around the plots:
def show(self, xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, filename=None, dpi=DEFAULT_DPI, axes=None, axes_labels=None,frame=False, fontsize=None, aspect_ratio=None): """ Show this graphics image with the default image viewer. OPTIONAL INPUT: filename -- (default: None) string dpi ...
3b699194ad65bafdc62bbbd6503423708ba63dd2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3b699194ad65bafdc62bbbd6503423708ba63dd2/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, ...
cmd = j.backend.ganga_cmd cmd += " -o\"[DefaultJobRepository]local_root=" + j.backend.ganga_dir + "/repository\" " cmd += "-o\"[FileWorkspace]topdir=" + j.backend.ganga_dir + "/workspace\" " cmd += j.backend.ganga_dir + script_name channel = j.backend._transport.open_session() channel.exec_command(cmd) out = x = ""...
stdout, stderr = j.backend.run_remote_script( script_name, "" ) if stdout.find("***_FINISHED_***") != -1: status, outputdir, id, be = j.backend.grabremoteinfo(stdout)
def updateMonitoringInformation( jobs ):
f28943d46a1275727d8c070b84ce3598227b3c8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/f28943d46a1275727d8c070b84ce3598227b3c8b/Remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 18410, 5369, 12, 6550, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 18410, 5369, 12, 6550, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (not src_acct.currency_id) or src_acct.currency_id.id == reference_currency_id:
if (not dest_acct.currency_id) or dest_acct.currency_id.id == reference_currency_id:
def _create_account_move_line(self, cr, uid, move, src_account_id, dest_account_id, reference_amount, reference_currency_id, context=None): """ Generate the account.move.line values to post to track the stock valuation difference due to the processing of the given stock move. """ # prepare default values considering th...
fc1a40a1eeeab3e7e352cc62423fc91f2add2df1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fc1a40a1eeeab3e7e352cc62423fc91f2add2df1/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 4631, 67, 8501, 67, 1369, 12, 2890, 16, 4422, 16, 4555, 16, 3635, 16, 1705, 67, 4631, 67, 350, 16, 1570, 67, 4631, 67, 350, 16, 2114, 67, 8949, 16, 2114, 67, 7095, 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, 389, 2640, 67, 4631, 67, 8501, 67, 1369, 12, 2890, 16, 4422, 16, 4555, 16, 3635, 16, 1705, 67, 4631, 67, 350, 16, 1570, 67, 4631, 67, 350, 16, 2114, 67, 8949, 16, 2114, 67, 7095, 6...
details=bzf)
details=ioe)
def __init__(self, zip_file, mode="r", compression="deflated", allow_zip_64=False, encoding="CP437", thread_synchronize=True): """Create a FS that maps on to a zip file.
8c720fc1577bf773c8c45b5880a730e137f383e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/8c720fc1577bf773c8c45b5880a730e137f383e1/zipfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3144, 67, 768, 16, 1965, 1546, 86, 3113, 9154, 1546, 536, 80, 690, 3113, 1699, 67, 4450, 67, 1105, 33, 8381, 16, 2688, 1546, 4258, 24, 6418, 3113, 2650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3144, 67, 768, 16, 1965, 1546, 86, 3113, 9154, 1546, 536, 80, 690, 3113, 1699, 67, 4450, 67, 1105, 33, 8381, 16, 2688, 1546, 4258, 24, 6418, 3113, 2650, ...
full_results = 'RETURN:<p style="font-size:smaller;">Details:<br>'
full_results = '\nRETURN:<p style="font-size:smaller;">Details:<br>'
def send_to_graph(results_server, results_link, title, date, browser_config, results): tbox = title url_format = "http://%s/%s" link_format= "<a href=\"%s\">%s</a>" #value, testname, tbox, timeval, date, branch, buildid, type, data result_format = "%.2f,%s,%s,%d,%d,%s,%s,%s,%s,\n" result_format2 = "%.2f,%s,%s,%d,%d,%s,...
1512403eef36069fb4d42731d52758d3e48179f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/1512403eef36069fb4d42731d52758d3e48179f0/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 2077, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 268, 2147, 273, 2077, 880, 67, 2139, 273, 315, 2505, 23155, 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, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 2077, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 268, 2147, 273, 2077, 880, 67, 2139, 273, 315, 2505, 23155, 8...
inc_dir = os.curdir
inc_dir = argv0_path
def get_config_h_filename(): """Return full pathname of installed pyconfig.h file.""" if python_build: inc_dir = os.curdir else: inc_dir = get_python_inc(plat_specific=1) if get_python_version() < '2.2': config_h = 'config.h' else: # The name of the config.h file changed in 2.2 config_h = 'pyconfig.h' return os.path.jo...
30d163f9d7e8b6ca2155b934ac5db61858e1e830 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/30d163f9d7e8b6ca2155b934ac5db61858e1e830/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1425, 67, 76, 67, 3459, 13332, 3536, 990, 1983, 9806, 434, 5876, 2395, 1425, 18, 76, 585, 12123, 309, 5790, 67, 3510, 30, 7290, 67, 1214, 273, 5261, 20, 67, 803, 469, 30, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1425, 67, 76, 67, 3459, 13332, 3536, 990, 1983, 9806, 434, 5876, 2395, 1425, 18, 76, 585, 12123, 309, 5790, 67, 3510, 30, 7290, 67, 1214, 273, 5261, 20, 67, 803, 469, 30, 72...
wikipedia.output( username + u" has enough edits to be welcomed")
wikipedia.output(username + u" has enough edits to be welcomed")
def parselog(raw): done = list() users = list() pos = 0 load = True # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure) while load == True: reg = '\(<a href=\"/w/index.php\?title=' + talk + '(.*?)&(amp;|)action=edit\"' p = re.compile(reg, re.UNICODE) ...
bf50a20b7e53b37ac1a5a7ffeb2895c56bcf1f38 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/bf50a20b7e53b37ac1a5a7ffeb2895c56bcf1f38/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 1899, 4672, 2731, 273, 666, 1435, 3677, 273, 666, 1435, 949, 273, 374, 1262, 273, 1053, 468, 467, 1623, 598, 279, 3936, 3661, 4906, 729, 1240, 486, 326, 26591, 1363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 779, 1786, 717, 12, 1899, 4672, 2731, 273, 666, 1435, 3677, 273, 666, 1435, 949, 273, 374, 1262, 273, 1053, 468, 467, 1623, 598, 279, 3936, 3661, 4906, 729, 1240, 486, 326, 26591, 1363, ...
Return values of `L(s, \chi_d)` for each quadratic character `\chi_d` for
Return values of `L(s, \chi_k)` for each quadratic character `\chi_k` whose discriminant `d` satisfies
def twist_values(self, s, dmin, dmax, L=''): r""" Return values of `L(s, \chi_d)` for each quadratic character `\chi_d` for `d_{\min} \leq d \leq d_{\max}`.
d7c08559ae2b2db2af151ddbb309aac5cf9d330f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d7c08559ae2b2db2af151ddbb309aac5cf9d330f/lcalc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2339, 376, 67, 2372, 12, 2890, 16, 272, 16, 302, 1154, 16, 302, 1896, 16, 511, 2218, 11, 4672, 436, 8395, 2000, 924, 434, 1375, 48, 12, 87, 16, 521, 24010, 67, 79, 22025, 364, 1517, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2339, 376, 67, 2372, 12, 2890, 16, 272, 16, 302, 1154, 16, 302, 1896, 16, 511, 2218, 11, 4672, 436, 8395, 2000, 924, 434, 1375, 48, 12, 87, 16, 521, 24010, 67, 79, 22025, 364, 1517, ...
except ValueError,IndexError: print "[error]: m00, wrong wrong wrong! ;-)"
value=int(value) except: print bold ("> Error: m00, wrong move! Try again..")
def e17_winlist(): try: import pyetun_winlist other=pyetun_winlist.get_list_other_desktops() icon=pyetun_winlist.get_show_iconified_windows() jump=pyetun_winlist.get_jump_desk() print "> Alt-tab Settings:" if other[0]=="POLICY=1": print bold_yellow("=> "), print "List other desktops windows: ENABLED (1)" elif other[0...
2fa3dd7d543e4707edab295f78b69a8e8ed810f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2281/2fa3dd7d543e4707edab295f78b69a8e8ed810f2/pyetun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 4033, 67, 8082, 1098, 13332, 775, 30, 1930, 2395, 278, 318, 67, 8082, 1098, 1308, 33, 2074, 278, 318, 67, 8082, 1098, 18, 588, 67, 1098, 67, 3011, 67, 31949, 87, 1435, 4126, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 4033, 67, 8082, 1098, 13332, 775, 30, 1930, 2395, 278, 318, 67, 8082, 1098, 1308, 33, 2074, 278, 318, 67, 8082, 1098, 18, 588, 67, 1098, 67, 3011, 67, 31949, 87, 1435, 4126, 33, ...
global_key = self.get_key_for_user() cache_dict = cache.get(global_key) if cache_dict is None: return if key in cache_dict: del cache_dict[key] cache.set(global_key, cache_dict, self.cache_time)
return cache.delete(self._prefix_user_key(key))
def __delitem__(self, key): global_key = self.get_key_for_user() cache_dict = cache.get(global_key) if cache_dict is None: return
941587095d5f96c224fcc018848a40ba2dbe7e68 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/941587095d5f96c224fcc018848a40ba2dbe7e68/userbits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 1726, 972, 12, 2890, 16, 498, 4672, 2552, 67, 856, 273, 365, 18, 588, 67, 856, 67, 1884, 67, 1355, 1435, 1247, 67, 1576, 273, 1247, 18, 588, 12, 6347, 67, 856, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 1726, 972, 12, 2890, 16, 498, 4672, 2552, 67, 856, 273, 365, 18, 588, 67, 856, 67, 1884, 67, 1355, 1435, 1247, 67, 1576, 273, 1247, 18, 588, 12, 6347, 67, 856, 13, 309, ...
else: d_feed = feed.Feed(default[0], initiallyAutoDownloadable=default[1])
for default in default_audio_feeds: self._add_default(default, u"audio")
def _install_default_feeds(self): logging.info("Adding default feeds")
6342be3c51e45e3f900a6bf37f53bb67b265ea13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/6342be3c51e45e3f900a6bf37f53bb67b265ea13/theme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 67, 1886, 67, 7848, 87, 12, 2890, 4672, 2907, 18, 1376, 2932, 13962, 805, 27684, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 389, 5425, 67, 1886, 67, 7848, 87, 12, 2890, 4672, 2907, 18, 1376, 2932, 13962, 805, 27684, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
str, "\\N{SPACE", 'unicode-escape', 'strict'
str, b"\\N{SPACE", 'unicode-escape', 'strict'
def test_strict_eror_handling(self): # bogus character name self.assertRaises( UnicodeError, str, "\\N{blah}", 'unicode-escape', 'strict' ) # long bogus character name self.assertRaises( UnicodeError, str, "\\N{%s}" % ("x" * 100000), 'unicode-escape', 'strict' ) # missing closing brace self.assertRaises( UnicodeError, ...
e560a3660e775406196138e35838041e5b7b5780 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e560a3660e775406196138e35838041e5b7b5780/test_ucn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13948, 67, 264, 280, 67, 26822, 12, 2890, 4672, 468, 324, 28774, 3351, 508, 365, 18, 11231, 12649, 6141, 12, 9633, 668, 16, 609, 16, 8422, 50, 95, 3083, 9795, 1532, 16, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13948, 67, 264, 280, 67, 26822, 12, 2890, 4672, 468, 324, 28774, 3351, 508, 365, 18, 11231, 12649, 6141, 12, 9633, 668, 16, 609, 16, 8422, 50, 95, 3083, 9795, 1532, 16, 296, ...
print "%s hasn't got a valid nickname, what shall i do?" % username
wikipedia.output(u"%s hasn't got a valid nickname, what shall i do?" % username )
def report(lang, rep_page, username, com): another_page = wikipedia.Page(lang, rep_page) if another_page.exists(): text_get = another_page.get() else: text_get = '' pos = 0 # The talk page includes "_" between the two names, in this way i replace them to " " regex = talk.replace('_', ' ') + username n = re.compile(rege...
379a1c075a443c2c6135e1a371699920ae8e15d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/379a1c075a443c2c6135e1a371699920ae8e15d3/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 4936, 16, 2071, 67, 2433, 16, 2718, 16, 532, 4672, 4042, 67, 2433, 273, 21137, 18, 1964, 12, 4936, 16, 2071, 67, 2433, 13, 309, 4042, 67, 2433, 18, 1808, 13332, 977, 67, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 4936, 16, 2071, 67, 2433, 16, 2718, 16, 532, 4672, 4042, 67, 2433, 273, 21137, 18, 1964, 12, 4936, 16, 2071, 67, 2433, 13, 309, 4042, 67, 2433, 18, 1808, 13332, 977, 67, 58...
s.connect(('', 42000))
s.connect(('localhost', 42000))
def get_monitor_output(self): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('', 42000)) L = [] while 1: buf = s.recv(8192) if buf: L.append(buf) else: break s.close() return "".join(L)
3b6a81109ca7cbe2d26943e0ff06eb086a004592 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3b6a81109ca7cbe2d26943e0ff06eb086a004592/testMonitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10259, 67, 2844, 12, 2890, 4672, 272, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 272, 18, 3612, 12, 2668, 13014, 2187, 14856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10259, 67, 2844, 12, 2890, 4672, 272, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 272, 18, 3612, 12, 2668, 13014, 2187, 14856,...
run_unittest(*test_classes)
_run_unittest(*test_classes)
def test_main(verbose=None): test_classes = (BuiltinTest, TestSorted) run_unittest(*test_classes) # verify reference counting if verbose and hasattr(sys, "gettotalrefcount"): import gc counts = [None] * 5 for i in xrange(len(counts)): run_unittest(*test_classes) gc.collect() counts[i] = sys.gettotalrefcount() print c...
2f6224bd829a8bdf7213cca18e8623c7bc8a7bf9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/2f6224bd829a8bdf7213cca18e8623c7bc8a7bf9/test_builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 12, 11369, 33, 7036, 4672, 1842, 67, 4701, 273, 261, 28032, 4709, 16, 7766, 11739, 13, 225, 389, 2681, 67, 4873, 3813, 30857, 3813, 67, 4701, 13, 225, 468, 3929, 2114, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 12, 11369, 33, 7036, 4672, 1842, 67, 4701, 273, 261, 28032, 4709, 16, 7766, 11739, 13, 225, 389, 2681, 67, 4873, 3813, 30857, 3813, 67, 4701, 13, 225, 468, 3929, 2114, ...
if mode1[0:1] == '04' or mode2[0:1] == '04':
if mode2.startswith('04') or mode1.startswith('04'):
def get_changes(self): #print "GitChangeset.get_changes" prev = self.props.has_key('parent') and self.props['parent'][0] or None for chg in self.git.diff_tree(prev, self.rev): (mode1,mode2,obj1,obj2,action,path) = chg kind = Node.FILE if mode1[0:1] == '04' or mode2[0:1] == '04': kind = Node.DIRECTORY
ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14465/ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e/git_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6329, 12, 2890, 4672, 468, 1188, 315, 11540, 29743, 18, 588, 67, 6329, 6, 2807, 273, 365, 18, 9693, 18, 5332, 67, 856, 2668, 2938, 6134, 471, 365, 18, 9693, 3292, 2938, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6329, 12, 2890, 4672, 468, 1188, 315, 11540, 29743, 18, 588, 67, 6329, 6, 2807, 273, 365, 18, 9693, 18, 5332, 67, 856, 2668, 2938, 6134, 471, 365, 18, 9693, 3292, 2938, 3546, ...
if self._must_close: return True
def _check_close(self): if self._must_close: return True
282eab1e2a9a5c7b36139fad21705a9675ed7cfe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/282eab1e2a9a5c7b36139fad21705a9675ed7cfe/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 4412, 12, 2890, 4672, 309, 365, 6315, 11926, 67, 4412, 30, 327, 1053, 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, 389, 1893, 67, 4412, 12, 2890, 4672, 309, 365, 6315, 11926, 67, 4412, 30, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
returnvals.append(raw_input('Project Name [%s]> ' % dp) or dp)
returnvals.append(raw_input('Project Name [%s]> ' % dp).strip() or dp)
def get_initenv_args(self): returnvals = [] print 'Creating a new Trac environment at %s' % self.envname print print 'Trac will first ask a few questions about your environment ' print 'in order to initalize and prepare the project database.' print print " Please enter the name of your project." print " This name will ...
86b84c2ebfb020cdd200f65caf38a3c6ccf166f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/86b84c2ebfb020cdd200f65caf38a3c6ccf166f3/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2738, 3074, 67, 1968, 12, 2890, 4672, 327, 4524, 273, 5378, 1172, 296, 11092, 279, 394, 2197, 71, 3330, 622, 738, 87, 11, 738, 365, 18, 3074, 529, 1172, 1172, 296, 1609, 71, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2738, 3074, 67, 1968, 12, 2890, 4672, 327, 4524, 273, 5378, 1172, 296, 11092, 279, 394, 2197, 71, 3330, 622, 738, 87, 11, 738, 365, 18, 3074, 529, 1172, 1172, 296, 1609, 71, ...
function_tests++;
test.write("#ifdef %s\n" % (function_defines[name]))
d0cf7f6eea7331cc398c232d7879e4239d989e14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/d0cf7f6eea7331cc398c232d7879e4239d989e14/gentest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1842, 18, 2626, 2932, 7, 430, 536, 738, 87, 64, 82, 6, 738, 261, 915, 67, 536, 1465, 63, 529, 22643, 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, 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, 1842, 18, 2626, 2932, 7, 430, 536, 738, 87, 64, 82, 6, 738, 261, 915, 67, 536, 1465, 63, 529, 22643, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L/usr/X11R6/lib'
cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp -L/usr/X11R6/lib'
def CompileLink(dll, obj, opts): if (COMPILER=="MSVC"): cmd = "link /nologo" if (platform.architecture()[0] == "64bit"): cmd += " /MACHINE:X64" if ("MFC" not in opts): cmd += " /NOD:MFC90.LIB" cmd += " /NOD:MFC80.LIB /NOD:LIBCI.LIB /DEBUG" cmd += " /nod:libc /nod:libcmtd /nod:atlthunk /nod:atls" if (GetOrigExt(dll) != ...
13b23ef61880b74ab63bffb868c218fe0e2d0a88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/13b23ef61880b74ab63bffb868c218fe0e2d0a88/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 315, 1232, 342, 82, 3966, 83, 6, 309, 261, 9898, 18, 991, 18123, 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, 16143, 2098, 12, 27670, 16, 1081, 16, 1500, 4672, 309, 261, 31075, 14668, 31713, 3537, 13464, 6, 4672, 1797, 273, 315, 1232, 342, 82, 3966, 83, 6, 309, 261, 9898, 18, 991, 18123, 1435, ...
funcs = [open_db3hash, open_dbhash, open_gdbm, open_db185hash]
funcs = [open_db3hash, open_dbhash, open_gdbm, open_db185hash, open_dbm]
def open_best(*args): if sys.platform == "win32": # Note that Python 2.3 and later ship with the new bsddb interface # as the default bsddb module - so 2.3 can use the old name safely. funcs = [open_db3hash, open_gdbm] if sys.version_info >= (2,3): funcs.insert(0, open_dbhash) else: funcs = [open_db3hash, open_dbhash, ...
32ad8d5e3951864339cb0a34117e12c121ebae8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9857/32ad8d5e3951864339cb0a34117e12c121ebae8b/dbmstorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 12729, 30857, 1968, 4672, 309, 2589, 18, 9898, 422, 315, 8082, 1578, 6877, 468, 3609, 716, 6600, 576, 18, 23, 471, 5137, 24316, 598, 326, 394, 7081, 449, 70, 1560, 468, 487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12729, 30857, 1968, 4672, 309, 2589, 18, 9898, 422, 315, 8082, 1578, 6877, 468, 3609, 716, 6600, 576, 18, 23, 471, 5137, 24316, 598, 326, 394, 7081, 449, 70, 1560, 468, 487, ...
elif cmd == 'reloadConfig': self.interval = int(Config().getExt('Trigger', 'interval').strip())
elif cmd == 'reloadConfig': self.interval = int(Config().getExt('Trigger', 'interval').strip())
def command(self, cmd):
1bc3f8ee0f5585b25b04dc37e869f107a4a3f4c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2550/1bc3f8ee0f5585b25b04dc37e869f107a4a3f4c1/Trigger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 12, 2890, 16, 1797, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 12, 2890, 16, 1797, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def connected( self, connected, writeEnabled ):
def setConnected( self, connected, writeEnabled ):
def connected( self, connected, writeEnabled ): self.connected = connected self.modifiedData = False self.writeEnabled = writeEnabled if connected: if writeEnabled: self.prompt = "(%s)-%s> " % ( self.masterURL, colorize( "Connected", "green" ) ) else: self.prompt = "(%s)-%s> " % ( self.masterURL, colorize( "Connected (...
9dbda8470abf4aa5cefd085dbced5e3d3d122a7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/9dbda8470abf4aa5cefd085dbced5e3d3d122a7f/CSCLI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8932, 12, 365, 16, 5840, 16, 1045, 1526, 262, 30, 365, 18, 8537, 273, 5840, 365, 18, 7342, 751, 273, 1083, 365, 18, 2626, 1526, 273, 1045, 1526, 309, 5840, 30, 309, 1045, 1526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8932, 12, 365, 16, 5840, 16, 1045, 1526, 262, 30, 365, 18, 8537, 273, 5840, 365, 18, 7342, 751, 273, 1083, 365, 18, 2626, 1526, 273, 1045, 1526, 309, 5840, 30, 309, 1045, 1526, ...
or isinstance(p,sage.combinat.permutation.Permutation_class)):
or isinstance(p,Permutation_class)):
def __classcall_private__(cls,p): r""" This function tries to recognize the input (it can be either a list or a tuple of pairs, or a fix-point free involution given as a list or as a permutation), constructs the parent (enumerated set of PerfectMatchings of the ground set) and calls the __init__ function to construct o...
8c73ada3e77a03c7e22ba4946a3c8d3f2ac08960 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8c73ada3e77a03c7e22ba4946a3c8d3f2ac08960/perfect_matching.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1106, 1991, 67, 1152, 972, 12, 6429, 16, 84, 4672, 436, 8395, 1220, 445, 9327, 358, 21431, 326, 810, 261, 305, 848, 506, 3344, 279, 666, 578, 279, 3193, 434, 5574, 16, 578, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1106, 1991, 67, 1152, 972, 12, 6429, 16, 84, 4672, 436, 8395, 1220, 445, 9327, 358, 21431, 326, 810, 261, 305, 848, 506, 3344, 279, 666, 578, 279, 3193, 434, 5574, 16, 578, 279, ...
dummy = self.store50['z']
dummy = self.store['z']
def raise__getitem__1(self): dummy = self.store50['z']
4f7397e773983ae72bd3ffebc2d43ad44a277e2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/4f7397e773983ae72bd3ffebc2d43ad44a277e2e/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1002, 972, 31571, 972, 21, 12, 2890, 4672, 9609, 273, 365, 18, 2233, 3292, 94, 3546, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1002, 972, 31571, 972, 21, 12, 2890, 4672, 9609, 273, 365, 18, 2233, 3292, 94, 3546, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if not self._options.delete_unversioned_trees or modified_files:
if (not self._options.delete_unversioned_trees or (modified_files and not self._options.force)):
def RunOnDeps(self, command, args): """Runs a command on each dependency in a client and its dependencies.
52ca2ded6aa92750a2d4f2c8509651d6fbf5cfef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/52ca2ded6aa92750a2d4f2c8509651d6fbf5cfef/gclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 1398, 14430, 12, 2890, 16, 1296, 16, 833, 4672, 3536, 9361, 279, 1296, 603, 1517, 4904, 316, 279, 1004, 471, 2097, 5030, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 1939, 1398, 14430, 12, 2890, 16, 1296, 16, 833, 4672, 3536, 9361, 279, 1296, 603, 1517, 4904, 316, 279, 1004, 471, 2097, 5030, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
code.append(jast.InvokeStatic("System", "arraycopy", args))
code.append(jast.InvokeStatic("java.lang.System", "arraycopy", args))
def dumpMain(self): meths = [] if self.javamain: code = [] newargs = jast.Identifier("newargs") code.append(jast.Declare("String[]", newargs, jast.NewArray("String", ["args.length+1"]))) code.append(jast.Set(jast.Identifier("newargs[0]"), jast.StringConstant(self.name)))
8d294fc99afedf463a5c9211eb610bc8cfe1f713 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/8d294fc99afedf463a5c9211eb610bc8cfe1f713/PythonModule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 6376, 12, 2890, 4672, 7917, 87, 273, 5378, 309, 365, 18, 19207, 301, 530, 30, 981, 273, 5378, 394, 1968, 273, 525, 689, 18, 3004, 2932, 2704, 1968, 7923, 981, 18, 6923, 12, 78, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 6376, 12, 2890, 4672, 7917, 87, 273, 5378, 309, 365, 18, 19207, 301, 530, 30, 981, 273, 5378, 394, 1968, 273, 525, 689, 18, 3004, 2932, 2704, 1968, 7923, 981, 18, 6923, 12, 78, ...
for output in self.call('listTaskOutput', {'taskID': srpm_task['id']}):
for output in self.call('listTaskOutput', { 'taskID': srpm_task['id'], }):
def call_get_latest_changelog(self, resource_path, _cookies=None, build_id=None, task_id=None, state=None): build_id = int(build_id); task_id = int(task_id); state = int(state);
0114ae5de894350cf673a533fb04d5d766086186 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/0114ae5de894350cf673a533fb04d5d766086186/kojiconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 588, 67, 13550, 67, 24083, 12970, 12, 2890, 16, 1058, 67, 803, 16, 389, 16240, 33, 7036, 16, 1361, 67, 350, 33, 7036, 16, 1562, 67, 350, 33, 7036, 16, 919, 33, 7036, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 745, 67, 588, 67, 13550, 67, 24083, 12970, 12, 2890, 16, 1058, 67, 803, 16, 389, 16240, 33, 7036, 16, 1361, 67, 350, 33, 7036, 16, 1562, 67, 350, 33, 7036, 16, 919, 33, 7036, 4672, ...
if( value == None ): return if key not in self._metas :
if value is None : return if key not in self._metaTypes :
def set_metadata(self, key, value, notify=True): """Sets the value of a meta data.""" if( value == None ): return if key not in self._metas : raise Exception("This key does not exist : " + key)
32182ef0ddf273b9a6767e2866166bde311fe575 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11338/32182ef0ddf273b9a6767e2866166bde311fe575/metadatadict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4165, 12, 2890, 16, 498, 16, 460, 16, 5066, 33, 5510, 4672, 3536, 2785, 326, 460, 434, 279, 2191, 501, 12123, 309, 460, 353, 599, 294, 327, 309, 498, 486, 316, 365, 6315, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4165, 12, 2890, 16, 498, 16, 460, 16, 5066, 33, 5510, 4672, 3536, 2785, 326, 460, 434, 279, 2191, 501, 12123, 309, 460, 353, 599, 294, 327, 309, 498, 486, 316, 365, 6315, 39...
blend = color1.Blend
blend = color1.RGB().Blend
def Sample(self, num): colors = self.colors max = num - 1.0 pos1, color1 = colors[0] pos2, color2 = colors[1] diff = float(pos2 - pos1) cur = 1 result = [] blend = color1.Blend for i in range(num): frac = i / max while frac > pos2: pos1 = pos2; color1 = color2 cur = cur + 1 pos2, color2 = colors[cur] diff = float(pos2 ...
a64a665d8990fc6eee8a6940f8e3023d7ea545f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3127/a64a665d8990fc6eee8a6940f8e3023d7ea545f7/gradient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11474, 12, 2890, 16, 818, 4672, 5740, 273, 365, 18, 9724, 943, 273, 818, 300, 404, 18, 20, 949, 21, 16, 2036, 21, 273, 5740, 63, 20, 65, 949, 22, 16, 2036, 22, 273, 5740, 63, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11474, 12, 2890, 16, 818, 4672, 5740, 273, 365, 18, 9724, 943, 273, 818, 300, 404, 18, 20, 949, 21, 16, 2036, 21, 273, 5740, 63, 20, 65, 949, 22, 16, 2036, 22, 273, 5740, 63, 21, ...
fld.append((field.field, field.sequence))
fld.append((field.field, field.sequence, field.name))
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False, submenu=False): journal_pool = self.pool.get('account.journal')
68d68134dadd580d950c241903ac4683faaa99b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/68d68134dadd580d950c241903ac4683faaa99b3/account_move_line.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 28793, 12748, 33, 8381, 16, 27539, 33, 8381, 4672, 13001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 28793, 12748, 33, 8381, 16, 27539, 33, 8381, 4672, 13001, ...
self.manage_permission(this_perm, [this_role])
self.manage_permission(this_perm, these_roles)
def setOp(self, op, usernames, category): """Set who can do a particular operation.""" if category is None: raise "Programmer error, emasculate programmer" this_perm = self._perms[op] this_role = self._roles_map[category] this_local_role = self._local_roles_map[op] self.manage_permission(this_perm, [this_role]) for use...
2262b1426eb2bef7e8d92c63a8c506f11ee616d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/2262b1426eb2bef7e8d92c63a8c506f11ee616d3/CMFWikiPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3817, 12, 2890, 16, 1061, 16, 27675, 16, 3150, 4672, 3536, 694, 10354, 848, 741, 279, 6826, 1674, 12123, 309, 3150, 353, 599, 30, 1002, 315, 9459, 6592, 555, 16, 801, 345, 6569, 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, 444, 3817, 12, 2890, 16, 1061, 16, 27675, 16, 3150, 4672, 3536, 694, 10354, 848, 741, 279, 6826, 1674, 12123, 309, 3150, 353, 599, 30, 1002, 315, 9459, 6592, 555, 16, 801, 345, 6569, 5...
m = re.match(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string) if m: return ('gfortran', m.group(1)) m = re.match(r'GNU Fortran.*?([0-9-.]+)', version_string) if m: v = m.group(1) if v.startswith('0') or v.startswith('2') or v.startswith('3'): return ('g77', v)
ctype = self.compiler_type f90 = set_exe('compiler_f90') if not f90: f77 = set_exe('compiler_f77') if f77: log.warn('%s: no Fortran 90 compiler found' % ctype)
def gnu_version_match(self, version_string): """Handle the different versions of GNU fortran compilers""" m = re.match(r'GNU Fortran', version_string) if not m: return None m = re.match(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string) if m: return ('gfortran', m.group(1)) m = re.match(r'GNU Fortran.*?([0-9-.]+)', vers...
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 13053, 67, 1589, 67, 1916, 12, 2890, 16, 1177, 67, 1080, 4672, 3536, 3259, 326, 3775, 5244, 434, 611, 50, 57, 364, 13171, 1161, 330, 414, 8395, 312, 273, 283, 18, 1916, 12, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 314, 13053, 67, 1589, 67, 1916, 12, 2890, 16, 1177, 67, 1080, 4672, 3536, 3259, 326, 3775, 5244, 434, 611, 50, 57, 364, 13171, 1161, 330, 414, 8395, 312, 273, 283, 18, 1916, 12, 86, ...
countOfUnfixedList += 1
def FixVpdOffset (self): # At first, the offset should start at 0 # Sort fixed offset list in order to find out where has free spaces for the pcd's offset # value is "*" to insert into. self.PcdFixedOffsetSizeList.sort(lambda x,y: cmp(x.PcdBinOffset, y.PcdBinOffset)) # # Sort the un-fixed pcd's offset by it's size. #...
662e219095e0387039bf7dfd32d2d3fdbba57513 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/662e219095e0387039bf7dfd32d2d3fdbba57513/GenVpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12139, 58, 22353, 2335, 261, 2890, 4672, 468, 2380, 1122, 16, 326, 1384, 1410, 787, 622, 374, 468, 5928, 5499, 1384, 666, 316, 1353, 358, 1104, 596, 1625, 711, 4843, 7292, 364, 326, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12139, 58, 22353, 2335, 261, 2890, 4672, 468, 2380, 1122, 16, 326, 1384, 1410, 787, 622, 374, 468, 5928, 5499, 1384, 666, 316, 1353, 358, 1104, 596, 1625, 711, 4843, 7292, 364, 326, 293,...
if f and f[:len(prefix)] == prefix:
if f:
def __export_row(self, cr, uid, row, fields, prefix, context=None): if not context: context={} lines = [] data = map(lambda x: '', range(len(fields))) done = [] for fpos in range(len(fields)): f = fields[fpos] if f and f[:len(prefix)] == prefix: r = row i = 0 while i<len(f): r = r[f[i]] if not r: break if isinstance(r,...
990cef5cc414168323c5be096b5aea5b92362f7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/990cef5cc414168323c5be096b5aea5b92362f7e/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6530, 67, 492, 12, 2890, 16, 4422, 16, 4555, 16, 1027, 16, 1466, 16, 1633, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 2362, 273, 5378, 501, 273, 852, 12, 14661, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6530, 67, 492, 12, 2890, 16, 4422, 16, 4555, 16, 1027, 16, 1466, 16, 1633, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 2362, 273, 5378, 501, 273, 852, 12, 14661, 61...
if prog <> self.prog:
if prog != self.prog:
def handle(self, call): # Don't use unpack_header but parse the header piecewise # XXX I have no idea if I am using the right error responses! self.unpacker.reset(call) self.packer.reset() xid = self.unpacker.unpack_uint() self.packer.pack_uint(xid) temp = self.unpacker.unpack_enum() if temp <> CALL: return None # Not ...
c672f8c377b9befd49fed010441b025deace386a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c672f8c377b9befd49fed010441b025deace386a/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 745, 4672, 468, 7615, 1404, 999, 6167, 67, 3374, 1496, 1109, 326, 1446, 11151, 2460, 468, 11329, 467, 1240, 1158, 21463, 309, 467, 2125, 1450, 326, 2145, 555, 7220, 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, 1640, 12, 2890, 16, 745, 4672, 468, 7615, 1404, 999, 6167, 67, 3374, 1496, 1109, 326, 1446, 11151, 2460, 468, 11329, 467, 1240, 1158, 21463, 309, 467, 2125, 1450, 326, 2145, 555, 7220, 5...
requirements += ' && other.OwnerDN = "%s" && other.OwnerGroup = "%s"' % ( ownerDN , ownerGroup ) requirements += ' && other.PilotType = "%s"' % pilotType
ownerGroupProperties = getPropertiesForGroup( ownerGroup ) if not 'JobSharing' in ownerGroupProperties: requirements += '&& other.OwnerGroup = %s' % ownerGroup requirements += ' && other.OwnerDN = %s ' % ownerDN requirements += ' && other.PilotType = %s' % pilotType
def insertJobInQueue(self,job): """ Check individual job and add to the Task Queue eventually. """ retVal = self.jobDB.getJobParameters(job,['Priority']) if retVal['OK']: if retVal['Value']: priority = retVal['Value']['Priority'] else: self.log.warn('No priority specified for job %d' % int(job)) priority = 0 else: prio...
4b1fcb1237df1cd914390afd4550e57034e343e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4b1fcb1237df1cd914390afd4550e57034e343e4/TaskQueueAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 2278, 382, 3183, 12, 2890, 16, 4688, 4672, 3536, 2073, 7327, 1719, 471, 527, 358, 326, 3837, 7530, 18011, 18, 3536, 12197, 273, 365, 18, 4688, 2290, 18, 588, 2278, 2402, 12, 4688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 2278, 382, 3183, 12, 2890, 16, 4688, 4672, 3536, 2073, 7327, 1719, 471, 527, 358, 326, 3837, 7530, 18011, 18, 3536, 12197, 273, 365, 18, 4688, 2290, 18, 588, 2278, 2402, 12, 4688, ...
if os.path.exists(iconname): icon_path = iconname elif os.path.exists('../share/pixmaps/' + iconname): icon_path = '../share/pixmaps/' + iconname elif os.path.exists('/usr/local/share/pixmaps/' + iconname): icon_path = '/usr/local/share/pixmaps/' + iconname elif os.path.exists('/usr/share/pixmaps/' + iconname): icon_pa...
if os.path.exists(iconname): icon_path = iconname elif os.path.exists('../share/pixmaps/' + iconname): icon_path = '../share/pixmaps/' + iconname elif os.path.exists('/usr/local/share/pixmaps/' + iconname): icon_path = '/usr/local/share/pixmaps/' + iconname elif os.path.exists('/usr/share/pixmaps/' + iconname): icon_pa...
def show_about(self, action): # Help > About
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 21071, 12, 2890, 16, 1301, 4672, 468, 11288, 405, 9771, 659, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 21071, 12, 2890, 16, 1301, 4672, 468, 11288, 405, 9771, 659, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise NotImplementedError
return MS_RING_ON & win32file.GetCommModemStatus(self.hComPort) != 0
def getRI(self): """read terminal status line""" if not self.hComPort: raise portNotOpenError raise NotImplementedError
25aa5f3bfacd32a2162715fd6078f5883d04081e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/25aa5f3bfacd32a2162715fd6078f5883d04081e/serialwin32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2259, 12, 2890, 4672, 3536, 896, 8651, 1267, 980, 8395, 309, 486, 365, 18, 76, 799, 2617, 30, 1002, 1756, 1248, 3678, 668, 1002, 11206, 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, 336, 2259, 12, 2890, 4672, 3536, 896, 8651, 1267, 980, 8395, 309, 486, 365, 18, 76, 799, 2617, 30, 1002, 1756, 1248, 3678, 668, 1002, 11206, 2, -100, -100, -100, -100, -100, -100, -100, ...
self.uri = foaf.replace(":","_").replace("/","_")
def __init__(self, foaf):
49b066a76d1e21202a028899861c176ca4476c0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2682/49b066a76d1e21202a028899861c176ca4476c0a/foaf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 18261, 1727, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 18261, 1727, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...