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
(uid, gid, pid) = self.GetContext() tsumufs.cacheManager.access(uid, path, os.W_OK)
context = self.GetContext() tsumufs.cacheManager.access(context['uid'], path, os.W_OK)
def unlink(self, path): ''' Callback to unlink a file on disk.
c3478d05944e6e6bef9ad5c70ada99c0c43c2db1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/c3478d05944e6e6bef9ad5c70ada99c0c43c2db1/fusethread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 589, 4672, 9163, 8444, 358, 8255, 279, 585, 603, 4234, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 589, 4672, 9163, 8444, 358, 8255, 279, 585, 603, 4234, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
logging.exception("Failed to stop instance")
logging.exception("Failed to stop instance: %s" % err)
def ShutdownInstance(instance): """Shut an instance down. @note: this functions uses polling with a hardcoded timeout. @type instance: L{objects.Instance} @param instance: the instance object @rtype: boolean @return: whether the startup was successful or not """ hv_name = instance.hypervisor running_instances = GetI...
920aae9860f2265b572828db04f512bc886c5444 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/920aae9860f2265b572828db04f512bc886c5444/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17640, 1442, 12, 1336, 4672, 3536, 1555, 322, 392, 791, 2588, 18, 225, 632, 7652, 30, 333, 4186, 4692, 13708, 598, 279, 7877, 24808, 2021, 18, 225, 632, 723, 791, 30, 511, 95, 6911, 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, 17640, 1442, 12, 1336, 4672, 3536, 1555, 322, 392, 791, 2588, 18, 225, 632, 7652, 30, 333, 4186, 4692, 13708, 598, 279, 7877, 24808, 2021, 18, 225, 632, 723, 791, 30, 511, 95, 6911, 18...
for line in apply(traceback.format_exception, err): for l in string.split(line,"\n")[:-1]: self.stream.writeln("%s" % l)
self.stream.writeln("%s" % err)
def printErrorList(self, flavour, errors): for test, err in errors: self.stream.writeln(self.separator1) self.stream.writeln("%s: %s" % (flavour,self.getDescription(test))) self.stream.writeln(self.separator2) for line in apply(traceback.format_exception, err): for l in string.split(line,"\n")[:-1]: self.stream.writeln...
7b0657027f04ac0367908ee0474f6d762366e4bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7b0657027f04ac0367908ee0474f6d762366e4bb/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 668, 682, 12, 2890, 16, 31227, 477, 16, 1334, 4672, 364, 1842, 16, 393, 316, 1334, 30, 365, 18, 3256, 18, 5363, 292, 82, 12, 2890, 18, 11287, 21, 13, 365, 18, 3256, 18, 5363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 668, 682, 12, 2890, 16, 31227, 477, 16, 1334, 4672, 364, 1842, 16, 393, 316, 1334, 30, 365, 18, 3256, 18, 5363, 292, 82, 12, 2890, 18, 11287, 21, 13, 365, 18, 3256, 18, 5363, ...
''' Determine the context of this page from the URL:
""" Determine the context of this page from the URL:
def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')): ''' Determine the context of this page from the URL:
f11907437836b035b89a935141d5777def9d1278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f11907437836b035b89a935141d5777def9d1278/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 2472, 12, 2890, 16, 302, 266, 33, 266, 18, 11100, 12, 86, 11, 19042, 72, 7941, 4713, 72, 29169, 3719, 30, 9163, 10229, 326, 819, 434, 333, 1363, 628, 326, 1976, 30, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 2472, 12, 2890, 16, 302, 266, 33, 266, 18, 11100, 12, 86, 11, 19042, 72, 7941, 4713, 72, 29169, 3719, 30, 9163, 10229, 326, 819, 434, 333, 1363, 628, 326, 1976, 30, 2, -100...
if indiData and indiData[0] == 2:
if indiData and indiData[0] == self.D_ENTROPY:
def cdata(self, data=None): self.closeContext() self.indiData = [] self.attrList.clear() for le in self.customLineEdits: le.clear() self.indiDiscretization = 0
9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43/OWInteractiveDiscretization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20712, 12, 2890, 16, 501, 33, 7036, 4672, 365, 18, 4412, 1042, 1435, 225, 365, 18, 728, 77, 751, 273, 5378, 365, 18, 1747, 682, 18, 8507, 1435, 364, 884, 316, 365, 18, 3662, 1670, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20712, 12, 2890, 16, 501, 33, 7036, 4672, 365, 18, 4412, 1042, 1435, 225, 365, 18, 728, 77, 751, 273, 5378, 365, 18, 1747, 682, 18, 8507, 1435, 364, 884, 316, 365, 18, 3662, 1670, 26...
if tile.element[:2] not in ('WI', 'DR') and tile.element[1] < '8':
if tile.element[:2] not in ('WI', 'DR') and tile.element[-1] < '8':
def __meldVariants(self, tile): """returns a list of possible variants based on the dropped tile. The Variants are scoring strings. Do not use the real tiles because we change their properties""" lowerName = tile.scoringStr().lower() upperName = lowerName[0].upper() + lowerName[1] if self.lowerHalf: scName = upperName ...
74c31959fb14264c2ed3be5736f860b7fe52df3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/74c31959fb14264c2ed3be5736f860b7fe52df3d/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 81, 488, 21165, 12, 2890, 16, 4769, 4672, 3536, 6154, 279, 666, 434, 3323, 12935, 2511, 603, 326, 14611, 4769, 18, 1021, 11487, 4388, 854, 22958, 2064, 18, 2256, 486, 999, 326, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 81, 488, 21165, 12, 2890, 16, 4769, 4672, 3536, 6154, 279, 666, 434, 3323, 12935, 2511, 603, 326, 14611, 4769, 18, 1021, 11487, 4388, 854, 22958, 2064, 18, 2256, 486, 999, 326, 286...
self._progress = (block_count * block_size) / total_size * 100
self._progress = float(block_count * block_size) / total_size * 100 if self.dl.result == False: self._status = self.ERROR return if float(block_count * block_size) >= total_size: self._status = self.COMPLETE
def _set_status(self, block_count, block_size, total_size): self._progress = (block_count * block_size) / total_size * 100
be7d935a54e3bab81897512e96e17839ed102700 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6425/be7d935a54e3bab81897512e96e17839ed102700/JDownload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2327, 12, 2890, 16, 1203, 67, 1883, 16, 1203, 67, 1467, 16, 2078, 67, 1467, 4672, 365, 6315, 8298, 273, 1431, 12, 2629, 67, 1883, 380, 1203, 67, 1467, 13, 342, 2078, 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, 389, 542, 67, 2327, 12, 2890, 16, 1203, 67, 1883, 16, 1203, 67, 1467, 16, 2078, 67, 1467, 4672, 365, 6315, 8298, 273, 1431, 12, 2629, 67, 1883, 380, 1203, 67, 1467, 13, 342, 2078, 67...
random = RandomStreams(234)
random = RandomStreams(utt.fetch_seed())
def test_multinomial(self): """Test that RandomStreams.multinomial generates the same results as numpy""" # Check over two calls to see if the random state is correctly updated. random = RandomStreams(234) fn = function([], random.multinomial((4,4), 1, [0.1]*10), updates=random.updates())
767a7312c152b7ed8872e5185c2457d0aa95a8d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/767a7312c152b7ed8872e5185c2457d0aa95a8d0/test_shared_randomstreams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5421, 267, 11496, 12, 2890, 4672, 3536, 4709, 716, 8072, 10301, 18, 5421, 267, 11496, 6026, 326, 1967, 1686, 487, 3972, 8395, 468, 2073, 1879, 2795, 4097, 358, 2621, 309, 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, 1842, 67, 5421, 267, 11496, 12, 2890, 4672, 3536, 4709, 716, 8072, 10301, 18, 5421, 267, 11496, 6026, 326, 1967, 1686, 487, 3972, 8395, 468, 2073, 1879, 2795, 4097, 358, 2621, 309, 326, ...
L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
L.append( 'Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
def encode_multipart_formdata(self, fields, files): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNd...
9fb477f51590bae04c7375cb3b5f4e60a3cffe02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/9fb477f51590bae04c7375cb3b5f4e60a3cffe02/interwiki_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 16404, 67, 687, 892, 12, 2890, 16, 1466, 16, 1390, 4672, 3536, 1466, 353, 279, 3102, 434, 261, 529, 16, 460, 13, 2186, 364, 6736, 646, 1466, 18, 1390, 353, 279, 3102, 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, 2017, 67, 16404, 67, 687, 892, 12, 2890, 16, 1466, 16, 1390, 4672, 3536, 1466, 353, 279, 3102, 434, 261, 529, 16, 460, 13, 2186, 364, 6736, 646, 1466, 18, 1390, 353, 279, 3102, 434, ...
print
def dump(self, header): game_count = float(self.count)
cfd5fe253f886f0b8d400727543ebbaf36742094 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/cfd5fe253f886f0b8d400727543ebbaf36742094/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 1446, 4672, 7920, 67, 1883, 273, 1431, 12, 2890, 18, 1883, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 4657, 12, 2890, 16, 1446, 4672, 7920, 67, 1883, 273, 1431, 12, 2890, 18, 1883, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cmd = [ options.runpython[mode], 'Chandler.py', '--create', '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--recordedTest=%s' % test, ]
cmd = options.runchandler[mode][:] cmd += ['--create', '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--recordedTest=%s' % test, ]
def runRecordedScripts(options): """ Run recorded script tests >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release', 'debug'] >>> runRecordedScripts(options) /.../RunPython... Chandler.py --create --catch=tests --profileDir=test_prof...
134ce2a6ff32b988db479ade6fcf70a08aac23f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/134ce2a6ff32b988db479ade6fcf70a08aac23f5/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 426, 3850, 785, 15041, 12, 2116, 4672, 3536, 1939, 16421, 2728, 7434, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 702, 18, 25011, 2681, 273, 1053, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 426, 3850, 785, 15041, 12, 2116, 4672, 3536, 1939, 16421, 2728, 7434, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 702, 18, 25011, 2681, 273, 1053, 4...
self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.img_in_list_random, "ss")
self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.goto_random_image, "ss")
def img_in_list_last(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass s...
80bd8b120d791a7c2ba16ac790e82ce97ab073e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/80bd8b120d791a7c2ba16ac790e82ce97ab073e3/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 67, 267, 67, 1098, 67, 2722, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 67, 267, 67, 1098, 67, 2722, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, ...
k = 1
k = self._k
def gen(self,a0,a1,d): """ """ x, y = ZZ(a0), ZZ(a1) k = 1 yield x while True: k = k+1 x, y = y, k*y+(k-d)*x yield x
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 12, 2890, 16, 69, 20, 16, 69, 21, 16, 72, 4672, 3536, 225, 3536, 619, 16, 677, 273, 2285, 62, 12, 69, 20, 3631, 2285, 62, 12, 69, 21, 13, 417, 273, 365, 6315, 79, 2824, 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, 3157, 12, 2890, 16, 69, 20, 16, 69, 21, 16, 72, 4672, 3536, 225, 3536, 619, 16, 677, 273, 2285, 62, 12, 69, 20, 3631, 2285, 62, 12, 69, 21, 13, 417, 273, 365, 6315, 79, 2824, 619...
"""Logs given `list's` length and content with given `level`
"""Logs the length and contents of the `list` using given `level`.
def log_list(self, list_, level='INFO'): """Logs given `list's` length and content with given `level` Valid levels are TRACE, DEBUG, INFO (default), and WARN. In case you want only log the length, use keyword `Get Length` from BuiltIn library. """ print '*%s* ' % (_validate_log_level(level)), if len(list_) == 0: prin...
de39b6e29004a5333c4bba068a24007a666cf2eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/de39b6e29004a5333c4bba068a24007a666cf2eb/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 1098, 12, 2890, 16, 666, 67, 16, 1801, 2218, 5923, 11, 4672, 3536, 7777, 326, 769, 471, 2939, 434, 326, 1375, 1098, 68, 1450, 864, 1375, 2815, 8338, 225, 2364, 7575, 854, 1273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 613, 67, 1098, 12, 2890, 16, 666, 67, 16, 1801, 2218, 5923, 11, 4672, 3536, 7777, 326, 769, 471, 2939, 434, 326, 1375, 1098, 68, 1450, 864, 1375, 2815, 8338, 225, 2364, 7575, 854, 1273...
if entry.doc and entry.doc[1]: print '
if entry.doc and entry.doc[1]: print '
print '#\tdef ' + methName + '(self' + build.BuildCallList(fdesc, entry.names, "defaultNamedOptArg", "defaultNamedNotOptArg","defaultUnnamedArg") + '):'
a4eeb81efbe95eb04992894dc9da01f6979a7bdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/a4eeb81efbe95eb04992894dc9da01f6979a7bdc/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 2946, 64, 88, 536, 296, 397, 7917, 461, 397, 7747, 2890, 11, 397, 1361, 18, 3116, 1477, 682, 12, 74, 5569, 16, 1241, 18, 1973, 16, 315, 1886, 7604, 6179, 4117, 3113, 315, 1886, 7604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 2946, 64, 88, 536, 296, 397, 7917, 461, 397, 7747, 2890, 11, 397, 1361, 18, 3116, 1477, 682, 12, 74, 5569, 16, 1241, 18, 1973, 16, 315, 1886, 7604, 6179, 4117, 3113, 315, 1886, 7604, ...
"""
"""
def fl_create_glcanvas(type, x, y, w, h, label): """ fl_create_glcanvas(type, x, y, w, h, label) -> object """ retval = _fl_create_glcanvas(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, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 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, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16...
js += " $('
js += " $('
def injectScript(self): """ Returns a string of script to inject in to the page """
952b62eb135d8d38d7313d638f328c25dadafebb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5464/952b62eb135d8d38d7313d638f328c25dadafebb/BrowserMediaAnimatedBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4590, 3651, 12, 2890, 4672, 3536, 2860, 279, 533, 434, 2728, 358, 4590, 316, 358, 326, 1363, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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, 4590, 3651, 12, 2890, 4672, 3536, 2860, 279, 533, 434, 2728, 358, 4590, 316, 358, 326, 1363, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def unpack(self, archive, output=None):
def unpack(self, archive, output=None, package=None):
def unpack(self, archive, output=None): return None
b8bc1787f4d2ad5bafcd19ae7aee7c0bf279e0f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b8bc1787f4d2ad5bafcd19ae7aee7c0bf279e0f5/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 12, 2890, 16, 5052, 16, 876, 33, 7036, 16, 2181, 33, 7036, 4672, 327, 599, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 6167, 12, 2890, 16, 5052, 16, 876, 33, 7036, 16, 2181, 33, 7036, 4672, 327, 599, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if key == 'Mythical'
if key == 'Mythical':
def summarize(self): charlevel = int(self.CharLevel.text()) tot = {} tot['Cost'] = 0 tot['Price'] = 0 tot['Utility'] = 0.0 tot['Stats'] = {} tot['Resists'] = {} tot['Skills'] = {} tot['Focus'] = {} tot['OtherBonuses'] = {} tot['PvEBonuses'] = {} for effect in DropLists['All']['Stat'] + ('AF', '% Power Pool'): tot['Stat...
fb7e2dea77ecbd907b4a380dbbfcb41d751f5149 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/fb7e2dea77ecbd907b4a380dbbfcb41d751f5149/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28712, 12, 2890, 4672, 1149, 2815, 273, 509, 12, 2890, 18, 2156, 2355, 18, 955, 10756, 9997, 273, 2618, 9997, 3292, 8018, 3546, 273, 374, 9997, 3292, 5147, 3546, 273, 374, 9997, 3292, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28712, 12, 2890, 4672, 1149, 2815, 273, 509, 12, 2890, 18, 2156, 2355, 18, 955, 10756, 9997, 273, 2618, 9997, 3292, 8018, 3546, 273, 374, 9997, 3292, 5147, 3546, 273, 374, 9997, 3292, 64...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 426) else quickfix.DoubleField.__init__(self, 426, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 5558, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 5558, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
0125450000233d3e1b290821a4be9f6c7a827bd2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/0125450000233d3e1b290821a4be9f6c7a827bd2/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
for e in node.get_entries()
for e in sorted(node.get_entries(), key=kind_order)
def process_request(self, req): repos = self.env.get_repository(req.authname) authz = SubversionAuthorizer(self.env, req.authname)
7eeb255b3bf39b39acc8071d16f061d4cfa12c7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/7eeb255b3bf39b39acc8071d16f061d4cfa12c7c/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 13686, 273, 365, 18, 3074, 18, 588, 67, 9071, 12, 3658, 18, 1944, 529, 13, 18686, 273, 2592, 1589, 17170, 12, 2890, 18, 3074, 16, 1111, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 13686, 273, 365, 18, 3074, 18, 588, 67, 9071, 12, 3658, 18, 1944, 529, 13, 18686, 273, 2592, 1589, 17170, 12, 2890, 18, 3074, 16, 1111, 18, ...
raise util.Abort("[ui] username is not configured in .hgrc")
user = ui.config("ui", "username") if not user: raise util.Abort("[ui] username is not configured in .hgrc") userline = FindContributor(ui, repo, user, warn=False) if not userline: raise util.Abort("cannot find %s in CONTRIBUTORS" % (user,)) return userline def FindContributor(ui, repo, user, warn=True):
def CheckContributor(ui, repo): user = ui.config("ui", "username") if not user: raise util.Abort("[ui] username is not configured in .hgrc") try: f = open(repo.root + '/CONTRIBUTORS', 'r') except: raise util.Abort("cannot open %s: %s" % (repo.root+'/CONTRIBUTORS', ExceptionDetail())) for line in f.readlines(): if line....
790c9b59d674768bafd1cd45ffe856ee7db3b8ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6483/790c9b59d674768bafd1cd45ffe856ee7db3b8ce/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 442, 19293, 12, 4881, 16, 3538, 4672, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, 309, 486, 729, 30, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2073, 442, 19293, 12, 4881, 16, 3538, 4672, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, 309, 486, 729, 30, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, ...
self.is_immediate = False
def __init__(self, original_name, name, info, return_type, original_args, args_for_cmds, cmd_args, init_args, num_pointer_args): self.name = name self.original_name = original_name self.info = info self.type_handler = info.type_handler self.return_type = return_type self.original_args = original_args self.num_pointer_a...
56cf771f243d94985cd4e18f5f61bf6bab39d12c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/56cf771f243d94985cd4e18f5f61bf6bab39d12c/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2282, 67, 529, 16, 508, 16, 1123, 16, 327, 67, 723, 16, 2282, 67, 1968, 16, 833, 67, 1884, 67, 24680, 16, 1797, 67, 1968, 16, 1208, 67, 1968, 16, 818...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2282, 67, 529, 16, 508, 16, 1123, 16, 327, 67, 723, 16, 2282, 67, 1968, 16, 833, 67, 1884, 67, 24680, 16, 1797, 67, 1968, 16, 1208, 67, 1968, 16, 818...
readmes = ['README', 'readme.txt', 'LICENSE', 'ACKNOWLEDGEMENTS'] for readme in readmes: if os.path.exists(readme): copy_file(readme, pkg_dir)
def run (self): name = self.distribution.metadata.name version = self.distribution.metadata.version description = self.distribution.metadata.description self.run_command('build') install = self.reinitialize_command('install', reinit_subcommands=1) install.root = self.bdist_dir install.warn_dir = 0 log.info("installi...
e24c7be3948de844c8f43e643c213af03f056b13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/e24c7be3948de844c8f43e643c213af03f056b13/gamera_mac_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 508, 273, 365, 18, 16279, 18, 4165, 18, 529, 1177, 273, 365, 18, 16279, 18, 4165, 18, 1589, 2477, 273, 365, 18, 16279, 18, 4165, 18, 3384, 225, 365, 18, 2681, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 4672, 508, 273, 365, 18, 16279, 18, 4165, 18, 529, 1177, 273, 365, 18, 16279, 18, 4165, 18, 1589, 2477, 273, 365, 18, 16279, 18, 4165, 18, 3384, 225, 365, 18, 2681, ...
self.write(cr, uid, ids, {'state':'closed'}) return True
self.write(cr, uid, ids, {'state': 'closed'}) return True
def state_close_set(self, cr, uid, ids, *args): wf_service = netsvc.LocalService('workflow') for step in self.browse(cr, uid, ids): wf_service.trg_validate(uid, 'dm.offer.step', step.id, 'state_close_set', cr) self.write(cr, uid, ids, {'state':'closed'}) return True
85a1e7b7da9518beac3cb0935570916534cd57ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/85a1e7b7da9518beac3cb0935570916534cd57ee/dm_offer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 67, 4412, 67, 542, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2668, 13815, 6134, 364, 2235, 316, 365, 18, 25731, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 67, 4412, 67, 542, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2668, 13815, 6134, 364, 2235, 316, 365, 18, 25731, 12...
print '***setboard***'
def go (queue): """ Finds and prints the best move from the current position """ searchLock.acquire() try: queue.put(None) # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board...
d71b6fd56eaf827c3306c41dc1c6f2afa5889598 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/d71b6fd56eaf827c3306c41dc1c6f2afa5889598/PyChess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11...
genhtml_command = "utils/lcov/genhtml -o " + lcov_report_data + " " + info_file
genhtml_command = "utils/lcov/genhtml -o " + lcov_report_dir genhtml_command += " " + info_file
def generate_dependencies (self): env = Environment() self.gen_mod_config (env) cc = env['CC'] cxx = env.subst (env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split (' ') cxxflags = ARGUMENTS.get('cxxflags', '').split (' ') ldflags = ARGUMENTS.get('ldflags', '').split (' ') if cc == 'cl' and cxx == 'cl': env = ...
65b62108099d81522603b9e45d6beed0151463e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/65b62108099d81522603b9e45d6beed0151463e1/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11037, 261, 2890, 4672, 1550, 273, 7518, 1435, 365, 18, 4507, 67, 1711, 67, 1425, 261, 3074, 13, 4946, 273, 1550, 3292, 6743, 3546, 276, 5279, 273, 1550, 18, 1717, 334, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11037, 261, 2890, 4672, 1550, 273, 7518, 1435, 365, 18, 4507, 67, 1711, 67, 1425, 261, 3074, 13, 4946, 273, 1550, 3292, 6743, 3546, 276, 5279, 273, 1550, 18, 1717, 334, 261, ...
col.set_sort_order(gtk.SORT_ASCENDING)
col.set_spacing(6)
def populateProductDialog(self): self.tv_products = self.subsxml.get_widget("treeview_updates") self.productList = gtk.ListStore(gtk.gdk.Pixbuf, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING) self.warn_count = 0 for product in managerlib.getInstalledProductStatus(): if product[1] in ["Expired", "Not Su...
7dfd9087f4487a8bb74057606ef9d612ad68f05b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/7dfd9087f4487a8bb74057606ef9d612ad68f05b/managergui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 4133, 6353, 12, 2890, 4672, 365, 18, 24161, 67, 18736, 273, 225, 365, 18, 22284, 2902, 18, 588, 67, 6587, 2932, 3413, 1945, 67, 14703, 7923, 365, 18, 5896, 682, 273, 22718, 18, 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, 6490, 4133, 6353, 12, 2890, 4672, 365, 18, 24161, 67, 18736, 273, 225, 365, 18, 22284, 2902, 18, 588, 67, 6587, 2932, 3413, 1945, 67, 14703, 7923, 365, 18, 5896, 682, 273, 22718, 18, 6...
SmmSize += ImageClass.Size
SmmSize += ImageInfo.Image.Size
def _CollectModuleMapBuffer (self, MapBuffer, ModuleList): sys.stdout.write ("Generate Load Module At Fix Address Map") sys.stdout.flush() PatchEfiImageList = [] PeiModuleList = {} BtModuleList = {} RtModuleList = {} SmmModuleList = {} PeiSize = 0 BtSize = 0 RtSize = 0 # reserve 4K size in SMRAM to make SMM mod...
ef3747968bba5f59e31e3a867cfc32eb8a676f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/ef3747968bba5f59e31e3a867cfc32eb8a676f78/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10808, 3120, 863, 1892, 261, 2890, 16, 1635, 1892, 16, 5924, 682, 4672, 2589, 18, 10283, 18, 2626, 7566, 4625, 4444, 5924, 2380, 12139, 5267, 1635, 7923, 2589, 18, 10283, 18, 11330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10808, 3120, 863, 1892, 261, 2890, 16, 1635, 1892, 16, 5924, 682, 4672, 2589, 18, 10283, 18, 2626, 7566, 4625, 4444, 5924, 2380, 12139, 5267, 1635, 7923, 2589, 18, 10283, 18, 11330, ...
result = util.wait(onData) self.assertEquals(result, WritingProtocol.byte)
return onData.addCallback( lambda result: self.assertEquals(result, WritingProtocol.byte))
def testAllowedAnonymousClientConnection(self): onData = defer.Deferred() self.loopback(sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, requireCertificate=False), sslverify.OpenSSLCertificateOptions(requireCertificate=False), onData=onData)
6305a011c61d2e3075143d6d1aac62b453e35f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/6305a011c61d2e3075143d6d1aac62b453e35f67/test_sslverify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5042, 18792, 1227, 1952, 12, 2890, 4672, 603, 751, 273, 2220, 18, 16886, 1435, 365, 18, 6498, 823, 12, 8157, 8705, 18, 3678, 6745, 4719, 1320, 12, 1152, 653, 33, 2890, 18, 87, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5042, 18792, 1227, 1952, 12, 2890, 4672, 603, 751, 273, 2220, 18, 16886, 1435, 365, 18, 6498, 823, 12, 8157, 8705, 18, 3678, 6745, 4719, 1320, 12, 1152, 653, 33, 2890, 18, 87, 65...
this = apply(_quickfix.new_DoNotSend, args)
this = _quickfix.new_DoNotSend(*args)
def __init__(self, *args): this = apply(_quickfix.new_DoNotSend, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 3244, 1248, 3826, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 3244, 1248, 3826, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
self.runcmd_unchecked("rm -f testtmp.o")
self.runcmd_unchecked("rm -f testtmp.o")
def runtest(self): if sys.platform == 'hp-ux10': raise comfychair.NotRunError ('HP-UX bundled C compiler non-ANSI') # We can't run if cc is not installed on the system (maybe only gcc is) error_rc, _, _ = self.runcmd_unchecked("cc -c testtmp.c")
b4f25c92d972e0c7a6f64a4c1e436fc67a6d393b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/b4f25c92d972e0c7a6f64a4c1e436fc67a6d393b/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 309, 2589, 18, 9898, 422, 296, 15373, 17, 2616, 2163, 4278, 1002, 532, 74, 93, 343, 1826, 18, 1248, 1997, 668, 7707, 2500, 17, 57, 60, 324, 24467, 385, 5274...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 12, 2890, 4672, 309, 2589, 18, 9898, 422, 296, 15373, 17, 2616, 2163, 4278, 1002, 532, 74, 93, 343, 1826, 18, 1248, 1997, 668, 7707, 2500, 17, 57, 60, 324, 24467, 385, 5274...
PlatformFdfs = map(LoadPlatformFdf, XmlList(XmlFpd, XmlTag)) return PlatformFdfs
PlatformFvImages.FvImages = map(LoadPlatformFvImages, XmlList(XmlFpd, XmlTag)) return PlatformFvImages
def LoadPlatformFdfs(XmlFpd): XmlTag = "PlatformSurfaceArea/Flash/FvImages" PlatformFdfs = map(LoadPlatformFdf, XmlList(XmlFpd, XmlTag)) return PlatformFdfs
e3ad7624a34c23e19c67d615b2919203a867bc02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/e3ad7624a34c23e19c67d615b2919203a867bc02/LoadFpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 8201, 42, 12381, 12, 4432, 42, 22353, 4672, 5714, 1805, 273, 315, 8201, 11508, 5484, 19, 11353, 19, 42, 90, 8946, 6, 11810, 42, 90, 8946, 18, 42, 90, 8946, 273, 852, 12, 2563, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4444, 8201, 42, 12381, 12, 4432, 42, 22353, 4672, 5714, 1805, 273, 315, 8201, 11508, 5484, 19, 11353, 19, 42, 90, 8946, 6, 11810, 42, 90, 8946, 18, 42, 90, 8946, 273, 852, 12, 2563, ...
def __neq__(self, other): return not self == other
def __ne__(self, other): return not (self == other)
def __neq__(self, other): return not self == other
65b6e2c9888e28c1fdb21da1dff0d9311caa42be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/65b6e2c9888e28c1fdb21da1dff0d9311caa42be/mediaobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 85, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 422, 1308, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 85, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 422, 1308, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
dbh.execute("insert into NSRL_products set Code=%r,Name=%r,Version=%r,OpSystemCode=%r,ApplicationType=%r",(row[0],row[1],row[2],row[3],row[6]))
dbh.mass_insert( Code=row[0], Name=row[1], Version=row[2], OpSystemCode=row[3], ApplicationType=row[6], )
def ProductTable(dirname): fd=csv.reader(file(dirname+"/NSRLProd.txt")) print "Starting to import %s/NSRLProd.txt" % dirname ## Ensure the NSRL tables do not have any indexes - this speeds up insert significantly try: dbh.execute("alter table NSRL_products drop index Code"); except: pass for row in fd: try: dbh.execu...
2b819ebdabf58f59455e86c30491e4f73712f69b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/2b819ebdabf58f59455e86c30491e4f73712f69b/nsrl_load.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8094, 1388, 12, 12287, 4672, 5194, 33, 6715, 18, 10530, 12, 768, 12, 12287, 9078, 19, 3156, 54, 48, 30683, 18, 5830, 6, 3719, 1172, 315, 11715, 358, 1930, 738, 87, 19, 3156, 54, 48, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8094, 1388, 12, 12287, 4672, 5194, 33, 6715, 18, 10530, 12, 768, 12, 12287, 9078, 19, 3156, 54, 48, 30683, 18, 5830, 6, 3719, 1172, 315, 11715, 358, 1930, 738, 87, 19, 3156, 54, 48, ...
def hunt(klass, lst, depth, name=method.im_func.func_name, method=method):
def hunt(klass, lst, depth, name = method.im_func.func_name, method = method):
def hunt(klass, lst, depth, name=method.im_func.func_name, method=method): if hasattr(klass, name) and method.im_func is getattr(klass, name).im_func: lst.append((depth, klass)) for base in klass.__bases__: hunt(base, lst, depth+1)
cca576cf8798366875286f6eb559227b1be45d1e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/cca576cf8798366875286f6eb559227b1be45d1e/qt4transition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19101, 12, 22626, 16, 9441, 16, 3598, 16, 508, 273, 707, 18, 381, 67, 644, 18, 644, 67, 529, 16, 707, 273, 707, 4672, 309, 3859, 12, 22626, 16, 508, 13, 471, 707, 18, 381, 67, 644,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19101, 12, 22626, 16, 9441, 16, 3598, 16, 508, 273, 707, 18, 381, 67, 644, 18, 644, 67, 529, 16, 707, 273, 707, 4672, 309, 3859, 12, 22626, 16, 508, 13, 471, 707, 18, 381, 67, 644,...
assert self.selenium.get_text( "//table[@class='datatable']/tbody/tr[last()]") ==\ u'user3 Contributor Entire portal Manager Information' def test_revoke_role(self): self.selenium.open("/portal/admin_roles_html?section=users", True) self.selenium.click("css=.datatable>tbody>tr:last-child td input") role_row_text = sel...
last_row = "//div[@class='datatable']/table/tbody/tr[last()]" assert self.selenium.get_text('%s/td[2]' % last_row) == u'user3' assert self.selenium.get_text("%s/td/div[@class='user-role'][1]" % last_row) == u'Contributor in portal' assert self.selenium.get_text("%s/td/div[@class='user-role'][2]" % last_row) == u'Manage...
def test_assign_role(self): "Assign a role" self.selenium.open("/portal/admin_roles_html?section=assign_roles", True) self.selenium.add_selection("names", "label=user3") self.selenium.add_selection("//select[@name='roles']", 'Manager') self.selenium.click("//input[@value='Pick']")
0099cb6ccc4890514212ffb1b0945e946f8909da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/0099cb6ccc4890514212ffb1b0945e946f8909da/test_user_management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6145, 67, 4615, 12, 2890, 4672, 315, 4910, 279, 2478, 6, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 7774, 67, 2620, 35, 3464, 33, 6145, 67, 7774, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6145, 67, 4615, 12, 2890, 4672, 315, 4910, 279, 2478, 6, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 7774, 67, 2620, 35, 3464, 33, 6145, 67, 7774, 3113, ...
cfg.setUserValue(name,value+','+MONITORING_DEFAULT)
cfg.setUserValue(name,value+','+MONITORING_DEFAULT)
def postBootstrapHook(): from Ganga.Utility.logging import getLogger logger = getLogger() from Ganga.Utility.Config import getConfig cfg = getConfig('MonitoringServices') MONITORING_DEFAULT = "Ganga.Lib.MonitoringServices.Dashboard.LCGAthenaMS.LCGAthenaMS" for name in cfg.options: value = cfg[name] if 'Athena' in n...
94dbaed23a1fb7ad5c24047f4afab951e5277ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/94dbaed23a1fb7ad5c24047f4afab951e5277ee6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 10445, 5394, 13332, 628, 611, 539, 69, 18, 6497, 18, 11167, 1930, 7156, 225, 1194, 273, 7156, 1435, 225, 628, 611, 539, 69, 18, 6497, 18, 809, 1930, 4367, 2776, 273, 4367, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 10445, 5394, 13332, 628, 611, 539, 69, 18, 6497, 18, 11167, 1930, 7156, 225, 1194, 273, 7156, 1435, 225, 628, 611, 539, 69, 18, 6497, 18, 809, 1930, 4367, 2776, 273, 4367, 2668, ...
obj=info.NVDAObjectAtStart if not obj: log.debugWarning("Invalid NVDAObjectAtStart") return if obj==self.rootNVDAObject: return
def _set_selection(self, info, reason=speech.REASON_CARET): super(VirtualBuffer, self)._set_selection(info) if isScriptWaiting() or not info.isCollapsed: return api.setReviewPosition(info) obj=info.NVDAObjectAtStart if not obj: log.debugWarning("Invalid NVDAObjectAtStart") return if obj==self.rootNVDAObject: return if ...
bde2da675d0b23fd14bfee00b84707081f9e06de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/bde2da675d0b23fd14bfee00b84707081f9e06de/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 10705, 12, 2890, 16, 1123, 16, 3971, 33, 87, 12510, 18, 29416, 1413, 67, 3587, 10238, 4672, 2240, 12, 6466, 1892, 16, 365, 2934, 67, 542, 67, 10705, 12, 1376, 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, 389, 542, 67, 10705, 12, 2890, 16, 1123, 16, 3971, 33, 87, 12510, 18, 29416, 1413, 67, 3587, 10238, 4672, 2240, 12, 6466, 1892, 16, 365, 2934, 67, 542, 67, 10705, 12, 1376, 13, 309, ...
column.set_sizing(gtk.TREE_VIEW_COLUMN_GROW_ONLY)
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED) column.set_fixed_width(20)
def cell_data_fn(column, cell, model, iter, code, attr = (pango.WEIGHT_NORMAL, pango.WEIGHT_BOLD)): try: song = model[iter][0] cell.set_property('text', util.unexpand( song.comma(column.header_name).decode(code, 'replace'))) except AttributeError: pass
973aeb612d8c5dc6db93f08178c4373ac87c5eeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/973aeb612d8c5dc6db93f08178c4373ac87c5eeb/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2484, 67, 892, 67, 4293, 12, 2827, 16, 2484, 16, 938, 16, 1400, 16, 981, 16, 1604, 273, 261, 84, 6399, 18, 29988, 67, 15480, 16, 293, 6399, 18, 29988, 67, 38, 11846, 3719, 30, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2484, 67, 892, 67, 4293, 12, 2827, 16, 2484, 16, 938, 16, 1400, 16, 981, 16, 1604, 273, 261, 84, 6399, 18, 29988, 67, 15480, 16, 293, 6399, 18, 29988, 67, 38, 11846, 3719, 30, 775, ...
lun_link = lun_root_dir + "/" + lun + "/" + lun sourcelink = os.readlink(lun_link) print " \-------> " + lun + " -> " + sourcelink[21:] print " \-------> Write Protect for " + lun + ": " + wp_info
lun_link_dir = lun_root_dir + "/" + lun for lun_link in os.listdir(lun_link_dir): if lun_link == "write_protect": continue sourcelink = os.readlink(lun_link_dir + "/" + lun_link) print " \-------> " + lun + " -> " + sourcelink[21:] print " \-------> Write Protect for " + lun + ": " + wp_info...
def lio_target_list_lunacls(option, opt_str, value, parser): iqn = str(value[0]); tpgt = str(value[1]); iqn_root = os.listdir(lio_root) nacl_root_dir = lio_root + "/" + iqn + "/tpgt_" + tpgt + "/acls" nacl_root = os.listdir(nacl_root_dir) for nacl in nacl_root: print "\------> InitiatorName ACL: " + nacl print " ...
19ab781728ca76c3ccc03b7ad8c7c413a4a185bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/19ab781728ca76c3ccc03b7ad8c7c413a4a185bd/lio_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 1594, 67, 3299, 67, 1098, 67, 80, 31172, 6429, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 277, 15785, 273, 609, 12, 1132, 63, 20, 19226, 8071, 4521, 273, 609, 12, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 328, 1594, 67, 3299, 67, 1098, 67, 80, 31172, 6429, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 277, 15785, 273, 609, 12, 1132, 63, 20, 19226, 8071, 4521, 273, 609, 12, 113...
base = sys.argv[1]
def main (): from Service import Service, cfgfiles from Layer import Layer base = sys.argv[1] svc = Service.load(*cfgfiles) layer = svc.layers[sys.argv[2]] if len(sys.argv) == 5: seed(svc, base, layer, map(int, sys.argv[3:])) elif len(sys.argv) == 6: seed(svc, base, layer, map(int, sys.argv[3:5]), map(float, sys.argv[...
7c03b938be9179453d0fd8f6bb9a4360ab61083e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6188/7c03b938be9179453d0fd8f6bb9a4360ab61083e/Client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 1832, 30, 628, 1956, 1930, 1956, 16, 2776, 2354, 628, 12112, 1930, 12112, 7538, 273, 1956, 18, 945, 30857, 7066, 2354, 13, 3018, 273, 7538, 18, 10396, 63, 9499, 18, 19485, 63, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 1832, 30, 628, 1956, 1930, 1956, 16, 2776, 2354, 628, 12112, 1930, 12112, 7538, 273, 1956, 18, 945, 30857, 7066, 2354, 13, 3018, 273, 7538, 18, 10396, 63, 9499, 18, 19485, 63, 22, ...
o User will implement IExtensibleUser.
o User will implement IPropertiedUser.
def getPropertiesForUser( user, request=None ):
ffcead7854cd8a23de9967c775bfa58ee8f5f93e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/ffcead7854cd8a23de9967c775bfa58ee8f5f93e/plugins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9392, 19894, 12, 729, 16, 590, 33, 7036, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9392, 19894, 12, 729, 16, 590, 33, 7036, 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, -...
prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches)))
prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0, len(patches))))
def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()]
0d6c6befd9553fcc3ddd0704e450b09ebb5f89e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/0d6c6befd9553fcc3ddd0704e450b09ebb5f89e0/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, ...
if key is NULL:
if key is _NULL:
def load_dict(self): d = {} while 1: key = self.load() if key is NULL: break value = self.load() d[key] = value return d
e7f540ac4846b3c60c7f4243f1ad51ff7ea4fd68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/e7f540ac4846b3c60c7f4243f1ad51ff7ea4fd68/_marshal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1576, 12, 2890, 4672, 302, 273, 2618, 1323, 404, 30, 498, 273, 365, 18, 945, 1435, 309, 498, 353, 389, 8560, 30, 898, 460, 273, 365, 18, 945, 1435, 302, 63, 856, 65, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1576, 12, 2890, 4672, 302, 273, 2618, 1323, 404, 30, 498, 273, 365, 18, 945, 1435, 309, 498, 353, 389, 8560, 30, 898, 460, 273, 365, 18, 945, 1435, 302, 63, 856, 65, 273, ...
self.requred = ival_
self.required = ival_
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ip_address': ip_address_ = '' for text__content_ in child_.childNodes: ip_address_ += text__content_.nodeValue self.ip_address = ip_address_ self.validate_ip_address(self.ip_address) # validate type ip_address eli...
91b7fa5f4789cd99e181dad4d2401509c907da8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/91b7fa5f4789cd99e181dad4d2401509c907da8c/generateds_system_1_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 4672, 309, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 625, 67, 2867, 4278, 2359, 67, 2867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 4672, 309, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 625, 67, 2867, 4278, 2359, 67, 2867, ...
sage: Permutation([2,3,4,1]).longest_increasing_subsequence()
sage: Permutation([2,3,1,4]).longest_increasing_subsequence_length() 3 sage: all([i.longest_increasing_subsequence_length() == len(i.robinson_schensted()[0][0]) for i in Permutations(5)]) True """ r=[] for x in self: if max(r+[0]) > x: y = min(filter(lambda z: z > x, r)) r[r.index(y)] = x else: r.append(x) return len(r...
def longest_increasing_subsequence(self): r""" Returns a list of the longest increasing subsequences of the permutation p.
bc86ea1f913675376e54e3a47fe8ca154d6b5350 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/bc86ea1f913675376e54e3a47fe8ca154d6b5350/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 267, 1793, 11730, 67, 1717, 6178, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 434, 326, 12163, 21006, 720, 17190, 434, 326, 17440, 293, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 267, 1793, 11730, 67, 1717, 6178, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 434, 326, 12163, 21006, 720, 17190, 434, 326, 17440, 293, 18, 2, -100, -100, -100, -100, -100, -10...
self.do_compute(dotgen, *args)
self.do_compute(dotgen, *args, **kwds)
def compute(self, translator, *args): self.translator = translator self.object_by_name = {} self.name_by_object = {} dotgen = DotGen(self.graph_name(*args)) dotgen.emit('mclimit=15.0')
d1cf2c49edc54d7c490c5773ef4a030cab527132 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/d1cf2c49edc54d7c490c5773ef4a030cab527132/graphpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 8333, 16, 380, 1968, 4672, 365, 18, 17879, 273, 8333, 365, 18, 1612, 67, 1637, 67, 529, 273, 2618, 365, 18, 529, 67, 1637, 67, 1612, 273, 2618, 3928, 4507, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 8333, 16, 380, 1968, 4672, 365, 18, 17879, 273, 8333, 365, 18, 1612, 67, 1637, 67, 529, 273, 2618, 365, 18, 529, 67, 1637, 67, 1612, 273, 2618, 3928, 4507, 273, 1...
if T is None:
if T is None or T == float("inf"):
def select_by_poll(self, R, W, E, T): d = {} for f in R: if type(f) is types.IntType: fd = f else: fd = f.fileno() d[fd] = select.POLLIN for f in W: if type(f) is types.IntType: fd = f else: fd = f.fileno() d[fd] = (d.get(fd, 0) | select.POLLOUT) for f in E: if type(f) is types.IntType: fd = f else: fd = f.fileno() d[f...
112ee2b67ad2dcc046910a8ee540a6c7f13e7284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/924/112ee2b67ad2dcc046910a8ee540a6c7f13e7284/gxp_js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 1637, 67, 13835, 12, 2890, 16, 534, 16, 678, 16, 512, 16, 399, 4672, 302, 273, 2618, 364, 284, 316, 534, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 1637, 67, 13835, 12, 2890, 16, 534, 16, 678, 16, 512, 16, 399, 4672, 302, 273, 2618, 364, 284, 316, 534, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273...
width = self.screen.getmaxyx()[1] - 6 padding = width - len(PROMPTSTR)
def updateCurrentLine(self, s, tab=False, stringCompletion=False):
6812342bb945788db2863f4dad223ca80a6e0e6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11578/6812342bb945788db2863f4dad223ca80a6e0e6d/repl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3935, 1670, 12, 2890, 16, 272, 16, 3246, 33, 8381, 16, 533, 11238, 33, 8381, 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, ...
[ 1, 1, 1, 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, 1089, 3935, 1670, 12, 2890, 16, 272, 16, 3246, 33, 8381, 16, 533, 11238, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.wfile.write(favico)
bufsize = 4 * 1024 Processing = True while Processing: data = favicon_fileobj.read(bufsize) if len(data) > 0: self.wfile.write(data) else: Processing = False favicon_fileobj.close()
def inner_run_cgi(self): ''' This is the inner part of the CGI handling ''' rest = self.path
310bcbd03a0bbca37d277d0e3547ff34570eebb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/310bcbd03a0bbca37d277d0e3547ff34570eebb3/roundup_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 67, 2681, 67, 19062, 12, 2890, 4672, 9163, 1220, 353, 326, 3443, 1087, 434, 326, 385, 13797, 5057, 9163, 3127, 273, 365, 18, 803, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 3443, 67, 2681, 67, 19062, 12, 2890, 4672, 9163, 1220, 353, 326, 3443, 1087, 434, 326, 385, 13797, 5057, 9163, 3127, 273, 365, 18, 803, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
for multiField in self.__multiValueFields:
for multiField in self.__multiValueDefFields:
def __initializeDB(self): """ Create the tables """ retVal = self._query( "show tables" ) if not retVal[ 'OK' ]: return retVal
6df3e1dfd550d5095830cb4cb71d2151d3513a5a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6df3e1dfd550d5095830cb4cb71d2151d3513a5a/TaskQueueDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11160, 2290, 12, 2890, 4672, 3536, 1788, 326, 4606, 3536, 12197, 273, 365, 6315, 2271, 12, 315, 4500, 4606, 6, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11160, 2290, 12, 2890, 4672, 3536, 1788, 326, 4606, 3536, 12197, 273, 365, 6315, 2271, 12, 315, 4500, 4606, 6, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 2, -1...
if not re.match("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$", address):
if not re.match("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(\/[0-9]+)?$", address):
def validate_address(self, address):
0e6e4f9829bf9c8f055d7b88d4bed355c7a9e335 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/0e6e4f9829bf9c8f055d7b88d4bed355c7a9e335/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 2867, 12, 2890, 16, 1758, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 2867, 12, 2890, 16, 1758, 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,...
lst.append((mapping[x]['module'], opj(mapping[x]['rootdir'], version, f)))
lst.append(opj(mapping[x], version, f)) lst.sort()
def _get_migration_files(pkg, version, stage): """ return a list of tuple (module, file) """ m = self.migrations[pkg.name] lst = []
38bc19ac9aba788d1dd5341b321c09f35d22a9a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/38bc19ac9aba788d1dd5341b321c09f35d22a9a6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 15746, 67, 2354, 12, 10657, 16, 1177, 16, 6009, 4672, 3536, 327, 279, 666, 434, 3193, 261, 2978, 16, 585, 13, 3536, 312, 273, 365, 18, 15642, 63, 10657, 18, 529, 65, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 15746, 67, 2354, 12, 10657, 16, 1177, 16, 6009, 4672, 3536, 327, 279, 666, 434, 3193, 261, 2978, 16, 585, 13, 3536, 312, 273, 365, 18, 15642, 63, 10657, 18, 529, 65, 94...
console.stdoutln("=" * 80)
console.stdoutln("=" * 80)
def html_tls_chain_optimization(self, chain): """Generates and returns the HTML string report analysis of a single TLS graphed chain. """ ## class HTMLReport() title = "Chain %s TLS Analysis of %s" % (chain.chain_id, self.struct_id) l = [self.html_head(title), self.html_title(title), '<center><a href="index.html">Bac...
80aaf2a14dfcc5b684aad61f8ca72e81b353162c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/80aaf2a14dfcc5b684aad61f8ca72e81b353162c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 17116, 67, 5639, 67, 16689, 1588, 12, 2890, 16, 2687, 4672, 3536, 6653, 471, 1135, 326, 3982, 533, 2605, 6285, 434, 279, 2202, 8098, 2667, 329, 2687, 18, 3536, 7541, 667, 3982,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1729, 67, 17116, 67, 5639, 67, 16689, 1588, 12, 2890, 16, 2687, 4672, 3536, 6653, 471, 1135, 326, 3982, 533, 2605, 6285, 434, 279, 2202, 8098, 2667, 329, 2687, 18, 3536, 7541, 667, 3982,...
supported = ('html', 'html4css1', 'xhtml')
supported = ('odt', )
def get_level(self): return self.level
90e651e05f9b81a542e006f16d096b9926b75555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8194/90e651e05f9b81a542e006f16d096b9926b75555/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2815, 12, 2890, 4672, 327, 365, 18, 2815, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2815, 12, 2890, 4672, 327, 365, 18, 2815, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""
"""
def flps_roundrectangle(p1, p2, p3, p4, p5, p6): """ flps_roundrectangle(p1, p2, p3, p4, p5, p6) """ _flps_roundrectangle(p1, p2, p3, p4, p5, p6)
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, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 4672, 3536, 1183, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 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, 1183, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 4672, 3536, 1183, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, ...
yield 'f', util.pconvert(np), st
yield 'f', np, st
def findfiles(s): work = [s] while work: top = work.pop() names = os.listdir(top) names.sort() # nd is the top of the repository dir tree nd = util.normpath(top[len(self.root) + 1:]) if nd == '.': nd = '' for f in names: np = os.path.join(nd, f) if seen(np): continue p = os.path.join(top, f) # don't trip over symlinks ...
3e2626d917ff987b8712bce81b2ed9c2966d1fc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/3e2626d917ff987b8712bce81b2ed9c2966d1fc4/dirstate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, 1435, 468, 5346, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, 1435, 468, 5346, 353, ...
@classmethod def to_distribution(cls, elem):
def distribution(self, elem):
def to_date(cls, elem): return Tree.Date( unit=elem.get('unit'), desc=collapse_wspace(get_child_text(elem, 'desc')), value=get_child_text(elem, 'value', float), minimum=get_child_text(elem, 'minimum', float), maximum=get_child_text(elem, 'maximum', float), )
5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 712, 12, 6429, 16, 3659, 4672, 327, 4902, 18, 1626, 12, 2836, 33, 10037, 18, 588, 2668, 4873, 19899, 3044, 33, 21405, 67, 91, 2981, 12, 588, 67, 3624, 67, 955, 12, 10037, 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, 358, 67, 712, 12, 6429, 16, 3659, 4672, 327, 4902, 18, 1626, 12, 2836, 33, 10037, 18, 588, 2668, 4873, 19899, 3044, 33, 21405, 67, 91, 2981, 12, 588, 67, 3624, 67, 955, 12, 10037, 16...
self.text += nick
self.text += nick.decode('utf-8')
def shell_completion(self, user_list): if " " in self.text: after = " " # don't put the "," if it's not the begining of the sentence else: after = config.get('after_completion', ',')+" " after = config.get('after_completion', ',')+" " (y, x) = self.win.getyx() begin = self.text.split()[-1].encode('utf-8').lower() hit_l...
68573a6598e61e55c0e3217e095d34b6f87f5932 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/68573a6598e61e55c0e3217e095d34b6f87f5932/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5972, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 309, 315, 315, 316, 365, 18, 955, 30, 1839, 273, 315, 315, 468, 2727, 1404, 1378, 326, 5753, 309, 518, 1807, 486, 326, 2376, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5972, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 309, 315, 315, 316, 365, 18, 955, 30, 1839, 273, 315, 315, 468, 2727, 1404, 1378, 326, 5753, 309, 518, 1807, 486, 326, 2376, 310, ...
from wxPython.help import * app = wxPySimpleApp() provider = wxSimpleHelpProvider() wxHelpProvider_Set(provider) base = os.path.split(__file__)[0] config = os.path.abspath(os.path.join(base, 'stc-styles.rc.cfg'))
app = wx.PySimpleApp() provider = wx.SimpleHelpProvider() wx.HelpProvider.Set(provider) home = os.environ.get('HOME') if home: home = os.path.join(home, '.boa-constructor') if not os.path.exists(home): home = '.' else: home = '.' config = os.path.abspath(os.path.join(home, 'stc-styles.rc.cfg'))
def initSTC(stc, config, lang): """ Main module entry point. Initialise a wxSTC from given config file.""" (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo) = initFromConfig(config, lang) setSTCStyle...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 882, 39, 12, 334, 71, 16, 642, 16, 3303, 4672, 3536, 12740, 1605, 1241, 1634, 18, 31739, 279, 7075, 882, 39, 628, 864, 642, 585, 12123, 261, 7066, 16, 2975, 14554, 16, 2154, 548,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 882, 39, 12, 334, 71, 16, 642, 16, 3303, 4672, 3536, 12740, 1605, 1241, 1634, 18, 31739, 279, 7075, 882, 39, 628, 864, 642, 585, 12123, 261, 7066, 16, 2975, 14554, 16, 2154, 548,...
self.xml=lambda prefix:prefix + "<string>%s</string>"%(self['value'].value.encode('utf-8'))
self.xml=lambda prefix:prefix + "<string>%s</string>"%(self['value'].value.replace('&','&amp;').encode('utf-8'))
def createFields(self): yield Enum(Bits(self, "marker_type", 4), {0: "Simple", 1: "Int", 2: "Real", 3: "Date", 4: "Data", 5: "ASCII String", 6: "UTF-16-BE String", 8: "UID", 10: "Array", 13: "Dict",}) markertype = self['marker_type'].value if markertype == 0: # Simple (Null) yield Enum(Bits(self, "value", 4), {0: "Null...
879aa46a777fb162d538d6b14d159fddff160ba3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9327/879aa46a777fb162d538d6b14d159fddff160ba3/bplist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 11145, 67, 723, 3113, 1059, 3631, 288, 20, 30, 315, 5784, 3113, 404, 30, 315, 1702, 3113, 576, 30, 315, 6955, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 11145, 67, 723, 3113, 1059, 3631, 288, 20, 30, 315, 5784, 3113, 404, 30, 315, 1702, 3113, 576, 30, 315, 6955, 3113, ...
return getattr(self,name)(url, realm) def retry_http_basic_auth(self, url, realm, data):
if data is None: return getattr(self,name)(url, realm) else: return getattr(self,name)(url, realm, data) def retry_http_basic_auth(self, url, realm, data=None):
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None): if headers.has_key('www-authenticate'): stuff = headers['www-authenticate'] import re match = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', stuff) if match: scheme, realm = match.groups() if string.lower(scheme) == 'basic': name = 'retry_' + sel...
3c8baedaf8c69bd92f06a7de5f16cde19a9beb55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c8baedaf8c69bd92f06a7de5f16cde19a9beb55/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 27002, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 33, 7036, 4672, 309, 1607, 18, 5332, 67, 856, 2668, 5591, 17, 22035, 11, 4672, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1062, 67, 1636, 67, 27002, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 33, 7036, 4672, 309, 1607, 18, 5332, 67, 856, 2668, 5591, 17, 22035, 11, 4672, 107...
w = IECore.Writer.create(croppedImg, outputfile) w.write() w = None r = IECore.Reader.create(outputfile) testImg = r.read() if not resetOrigin: dyw = croppedImg.displayWindow dtw = croppedImg.dataWindow dyw.max -= dyw.min dtw.max -= dyw.min dtw.min -= dyw.min dyw.min = IECore.V2i( 0,0 ) croppedImg.displayWindow = dyw...
errors.append( "Crop test case failed:" + str(testCase) + ". Cropped image: " + str(croppedImg.displayWindow) + " " + str(croppedImg.dataWindow) + " Loaded image: " + str(testImg.displayWindow) + " " + str(testImg.dataWindow) )
def __testCrop( self, inputfile, outputfile, tests ): r = IECore.Reader.create(inputfile) img = r.read() self.assertEqual(type(img), IECore.ImagePrimitive)
cdf5cd230deb1ad29125cf70bd9fc056cd8f7800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/cdf5cd230deb1ad29125cf70bd9fc056cd8f7800/ImageCropOp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3813, 19729, 12, 365, 16, 810, 768, 16, 876, 768, 16, 7434, 262, 30, 436, 273, 10897, 4670, 18, 2514, 18, 2640, 12, 2630, 768, 13, 3774, 273, 436, 18, 896, 1435, 365, 18, 11231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3813, 19729, 12, 365, 16, 810, 768, 16, 876, 768, 16, 7434, 262, 30, 436, 273, 10897, 4670, 18, 2514, 18, 2640, 12, 2630, 768, 13, 3774, 273, 436, 18, 896, 1435, 365, 18, 11231...
original = '\n'.join(original) res['text']=original
res['text']= '\n'.join(original)
def get_reply_defaults(self, cr, uid, fields, context=None): """ This function gets default values for reply mail """ hist_obj = self.pool.get('crm.case.history') res_ids = context and context.get('active_ids', []) or []
c00448168e4375de7ebc0ec1f8f0b588dd1bea58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c00448168e4375de7ebc0ec1f8f0b588dd1bea58/crm_send_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10629, 67, 7606, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 364, 4332, 4791, 3536, 5356, 67, 2603, 273, 365, 18, 6011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10629, 67, 7606, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 364, 4332, 4791, 3536, 5356, 67, 2603, 273, 365, 18, 6011, ...
if index < self._initial_form_count:
if index < (is_dojo_1_0 and self._total_form_count or self.total_form_count()):
def add_fields(self, form, index): """Using the dojango form fields instead of the django ones""" if self.can_order: # Only pre-fill the ordering field for initial forms. if index < self._initial_form_count: form.fields[ORDERING_FIELD_NAME] = IntegerField(label=_(u'Order'), initial=index+1, required=False) else: form.f...
1b9ab90b428d201977ef9bf43081dbf0b85d7a6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12008/1b9ab90b428d201977ef9bf43081dbf0b85d7a6f/formsets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2821, 12, 2890, 16, 646, 16, 770, 4672, 3536, 7736, 326, 741, 9142, 646, 1466, 3560, 434, 326, 13710, 5945, 8395, 309, 365, 18, 4169, 67, 1019, 30, 468, 5098, 675, 17, 5935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2821, 12, 2890, 16, 646, 16, 770, 4672, 3536, 7736, 326, 741, 9142, 646, 1466, 3560, 434, 326, 13710, 5945, 8395, 309, 365, 18, 4169, 67, 1019, 30, 468, 5098, 675, 17, 5935, ...
BoolParam(True))
BoolParam(default_warn))
def warning(*msg): _logger.warning('WARNING theano.configdefaults: '+' '.join(msg))
43947ed93f0c38cb412ff0085e1e1de998a69522 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/43947ed93f0c38cb412ff0085e1e1de998a69522/configdefaults.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 30857, 3576, 4672, 389, 4901, 18, 8551, 2668, 9511, 326, 31922, 18, 1425, 7606, 30, 10058, 2418, 5701, 12, 3576, 3719, 225, 2, 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, 3436, 30857, 3576, 4672, 389, 4901, 18, 8551, 2668, 9511, 326, 31922, 18, 1425, 7606, 30, 10058, 2418, 5701, 12, 3576, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
yield i, addr
final = '\tjmp' in line yield i, addr, final
def findjumps(self): text = self.disassemble() lines = text.splitlines() for i, line in enumerate(lines): if '\tj' not in line: # poor heuristic to recognize lines that continue # could be jump instructions addrs = list(lineaddresses(line)) if not addrs: continue addr = addrs[-1] yield i, addr if self.fallthro...
43cb55866d1a9bd69726337a918ff0ee5df828de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/43cb55866d1a9bd69726337a918ff0ee5df828de/viewcode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 78, 23868, 12, 2890, 4672, 977, 273, 365, 18, 2251, 29676, 1435, 2362, 273, 977, 18, 4939, 3548, 1435, 364, 277, 16, 980, 316, 4241, 12, 3548, 4672, 309, 2337, 88, 78, 11, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 78, 23868, 12, 2890, 4672, 977, 273, 365, 18, 2251, 29676, 1435, 2362, 273, 977, 18, 4939, 3548, 1435, 364, 277, 16, 980, 316, 4241, 12, 3548, 4672, 309, 2337, 88, 78, 11, 486, ...
self.DrawRect(self.sel_key, self.grid_color) self.DrawRect(key, self.sel_color, sel_size)
self.DrawRect(self.sel_key, self.GetColor(COLOR_GRID_LINES), sel_size) self.DrawRect(key, self.GetColor(COLOR_HIGHLIGHT_BACKGROUND), sel_size)
def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size)
b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6766, 4245, 12, 2890, 16, 498, 4672, 357, 67, 1467, 273, 404, 468, 2424, 7876, 4421, 365, 18, 6493, 6120, 12, 2890, 18, 1786, 67, 856, 16, 365, 18, 823, 67, 3266, 16, 357, 67, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6766, 4245, 12, 2890, 16, 498, 4672, 357, 67, 1467, 273, 404, 468, 2424, 7876, 4421, 365, 18, 6493, 6120, 12, 2890, 18, 1786, 67, 856, 16, 365, 18, 823, 67, 3266, 16, 357, 67, 1467, ...
self._writer.end_element('table')
self._writer.end('table')
def _write_test_metadata(self, test): self._start_suite_or_test_metadata(test) if test.timeout.secs < 0: tout = '' else: tout = utils.secs_to_timestr(test.timeout.secs) if test.timeout.message: tout += ' | ' + test.timeout.message self._write_metadata_row('Timeout', tout) self._write_metadata_row('Tags', ', '.join(test...
f33f03560eaa42dec6e8352d9e273211d12d6c41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/f33f03560eaa42dec6e8352d9e273211d12d6c41/testdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 3813, 67, 4165, 12, 2890, 16, 1842, 4672, 365, 6315, 1937, 67, 30676, 67, 280, 67, 3813, 67, 4165, 12, 3813, 13, 309, 1842, 18, 4538, 18, 21317, 411, 374, 30, 358, 322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 3813, 67, 4165, 12, 2890, 16, 1842, 4672, 365, 6315, 1937, 67, 30676, 67, 280, 67, 3813, 67, 4165, 12, 3813, 13, 309, 1842, 18, 4538, 18, 21317, 411, 374, 30, 358, 322...
if not default:
if default is None:
def copy_data(self, cr, uid, id, default=None, context=None): """ Copy given record's data with all its fields values
89e7934e7df3be2c7029e87b9faf5c389bb4a5b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/89e7934e7df3be2c7029e87b9faf5c389bb4a5b5/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 5631, 864, 1409, 1807, 501, 598, 777, 2097, 1466, 924, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 5631, 864, 1409, 1807, 501, 598, 777, 2097, 1466, 924, 2, -100, -100, -100, -1...
self._write('%s*failed*\n' % test_dict['name'].ljust(30,'_'))
self._write('%s*FAILED*\n' % test_dict['name'].ljust(30,'_'))
def simpleSummary(self): #write simple summary self._write("\n*********** TEST RESULTS ************\n*************************************\n") for suite_dict in self.suiteList: for test_dict in suite_dict['testlist']: if test_dict['result'] == False: self._write('%s*failed*\n' % test_dict['name'].ljust(30,'_')) else: s...
7132caf66727358a92838fef305974dc3ded0de8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7132caf66727358a92838fef305974dc3ded0de8/TestOutput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 4733, 12, 2890, 4672, 468, 2626, 4143, 4916, 365, 6315, 2626, 31458, 82, 1644, 14465, 22130, 17210, 55, 380, 1644, 636, 12174, 82, 5021, 1007, 12174, 82, 7923, 364, 11371, 67, 1576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4143, 4733, 12, 2890, 4672, 468, 2626, 4143, 4916, 365, 6315, 2626, 31458, 82, 1644, 14465, 22130, 17210, 55, 380, 1644, 636, 12174, 82, 5021, 1007, 12174, 82, 7923, 364, 11371, 67, 1576, ...
primary = (method != 'GET' and lst.pop(0)) or None
if method not in ['POST', 'GET', 'any']: primary = lst.pop(0) else: primary = None
def requirements_for(meth): """Returns a new dict to be used for all route creation as the route options""" opts = options.copy() if method != 'any': opts['conditions'] = {'method':[meth]} return opts
31b71a664a34f649b1ec2d6a0bdb62b44b668467 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12081/31b71a664a34f649b1ec2d6a0bdb62b44b668467/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, ...
sampleRate=0
sampleRate=float(0)
def checkOpts(self): #Check for existance of [condor] section files condorOptList=self.iniOpts.options('condor') fileNotFound=False homedirectory=os.path.abspath(str(os.getenv('HOME')))+'/' for entry in condorOptList: optValue=self.iniOpts.get('condor',entry) if optValue.startswith('~/'): newValue=os.path.normpath(optV...
42746fa8e162b01056daa972aafc5f2435e7cfee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/42746fa8e162b01056daa972aafc5f2435e7cfee/tracksearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5476, 12, 2890, 4672, 468, 1564, 364, 1005, 1359, 434, 306, 10013, 280, 65, 2442, 1390, 6941, 280, 6179, 682, 33, 2890, 18, 8767, 5476, 18, 2116, 2668, 10013, 280, 6134, 585, 2768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5476, 12, 2890, 4672, 468, 1564, 364, 1005, 1359, 434, 306, 10013, 280, 65, 2442, 1390, 6941, 280, 6179, 682, 33, 2890, 18, 8767, 5476, 18, 2116, 2668, 10013, 280, 6134, 585, 2768, ...
avg = values[0] return (v, n, avg) def generateVarianceDetailPage(self, pagename, tests, startdate, enddate):
mean = values[0] return (stdDev, count, mean) def generateDetailPage(self, pagename, tests, startdate, enddate):
def variance(self, values): n = len(values) v = 0 avg = 0
529018113dc78215bd476acf6fba265caad9be59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/529018113dc78215bd476acf6fba265caad9be59/perf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12380, 12, 2890, 16, 924, 4672, 290, 282, 273, 562, 12, 2372, 13, 331, 282, 273, 374, 11152, 273, 374, 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, 12380, 12, 2890, 16, 924, 4672, 290, 282, 273, 562, 12, 2372, 13, 331, 282, 273, 374, 11152, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
vim.current.window.cursor = (lineno, 0)
self.cursor = (lineno, 0)
def goto_line(self, lineno): vim.current.window.cursor = (lineno, 0)
5c72b0eb3d32899f744a2be08ce57312b3a3dd75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8177/5c72b0eb3d32899f744a2be08ce57312b3a3dd75/ropevim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2897, 67, 1369, 12, 2890, 16, 7586, 4672, 18727, 18, 2972, 18, 5668, 18, 9216, 273, 261, 17782, 16, 374, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2897, 67, 1369, 12, 2890, 16, 7586, 4672, 18727, 18, 2972, 18, 5668, 18, 9216, 273, 261, 17782, 16, 374, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.drawGUI() EVT_CLOSE(self, self.done) EVT_BUTTON(self, self.cancelButton.GetId(), self.done) EVT_CHOOSE_FILE(self, self.onChooseFile) EVT_UPDATE_STATUS(self, self.onUpdateStatus) EVT_FINISH_STATUS(self, self.onFinishEvent) EVT_FAIL_STATUS(self, self.onFailEvent) EVT_ERROR_STATUS(self, self.onErrorEvent) def drawG...
panel = wxPanel(frame, -1) colSizer = wxFlexGridSizer(cols = 1, vgap = 7) colSizer.Add(wxStaticText(panel, -1, 'Saving:'), 0, wxEXPAND)
def __init__(self, flag): wxFrame.__init__(self, None, -1, 'BitTorrent download', size = wxSize(550, 260)) self.flag = flag self.fin = false self.shown = false self.drawGUI()
430aa782d5a96eea7ba9a579f334d6b2c77bbde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/430aa782d5a96eea7ba9a579f334d6b2c77bbde2/btdownloadgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2982, 4672, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 296, 5775, 27266, 547, 4224, 2187, 963, 273, 7075, 1225, 12, 2539, 20, 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, 1001, 2738, 972, 12, 2890, 16, 2982, 4672, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 296, 5775, 27266, 547, 4224, 2187, 963, 273, 7075, 1225, 12, 2539, 20, 16, ...
for key in keys: if key not in self.excludes: missing.append(key) return missing
maybe = [] for name in self.badmodules: if name in self.excludes: continue i = name.rfind(".") if i < 0: missing.append(name) continue subname = name[i+1:] pkgname = name[:i] pkg = self.modules.get(pkgname) if pkg is not None: if pkgname in self.badmodules[name]: missing.append(name) elif subname in pkg.globalnames: ...
def any_missing(self): keys = self.badmodules.keys() missing = [] for key in keys: if key not in self.excludes: # Missing, and its not supposed to be missing.append(key) return missing
dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d/modulefinder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 67, 7337, 12, 2890, 4672, 1311, 273, 365, 18, 8759, 6400, 18, 2452, 1435, 3315, 273, 5378, 364, 498, 316, 1311, 30, 309, 498, 486, 316, 365, 18, 338, 8993, 30, 468, 10230, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 67, 7337, 12, 2890, 4672, 1311, 273, 365, 18, 8759, 6400, 18, 2452, 1435, 3315, 273, 5378, 364, 498, 316, 1311, 30, 309, 498, 486, 316, 365, 18, 338, 8993, 30, 468, 10230, 16, ...
try: f = eval('self.repr_' + typename) except AttributeError:
if hasattr(self, 'repr_' + typename): return getattr(self, 'repr_' + typename)(x, level) else:
def repr1(self, x, level): typename = `type(x)`[7:-2] # "<type '......'>" if ' ' in typename: parts = string.split(typename) typename = string.joinfields(parts, '_') try: f = eval('self.repr_' + typename) except AttributeError: s = `x` if len(s) > self.maxother: i = max(0, (self.maxother-3)/2) j = max(0, self.maxother-...
e547b6667f5ec42506c0600528e9cba65f43d2e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e547b6667f5ec42506c0600528e9cba65f43d2e2/repr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8480, 21, 12, 2890, 16, 619, 16, 1801, 4672, 26735, 273, 1375, 723, 12, 92, 22025, 63, 27, 30, 17, 22, 65, 468, 3532, 723, 296, 6265, 838, 28533, 309, 296, 296, 316, 26735, 30, 2140,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8480, 21, 12, 2890, 16, 619, 16, 1801, 4672, 26735, 273, 1375, 723, 12, 92, 22025, 63, 27, 30, 17, 22, 65, 468, 3532, 723, 296, 6265, 838, 28533, 309, 296, 296, 316, 26735, 30, 2140,...
if self.text != '':
if self.text.strip() != '':
def normal_completion(self, user_list): """ Normal completion """ if " " not in self.text.strip() or\ self.last_completion and self.text == self.last_completion+config.get('after_completion', ',')+" ": after = config.get('after_completion', ',')+" " #if " " in self.text.strip() and (not self.last_completion or ' ' in s...
f179cbdd2e76f5b9ddc19ca737199f873a0d5719 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/f179cbdd2e76f5b9ddc19ca737199f873a0d5719/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2212, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 3536, 8769, 8364, 3536, 309, 315, 315, 486, 316, 365, 18, 955, 18, 6406, 1435, 578, 64, 365, 18, 2722, 67, 11469, 471, 365, 18, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2212, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 3536, 8769, 8364, 3536, 309, 315, 315, 486, 316, 365, 18, 955, 18, 6406, 1435, 578, 64, 365, 18, 2722, 67, 11469, 471, 365, 18, 95...
The given path is first normalized (e.g. a possible trailing path separator is removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. Examples (assuming a UNIX environment):
The given path is first normalized (e.g. a possible trailing path separator is removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. Examples:
def split_path(self, path): """Splits the given path from the last path separator ('/' or '\\'). The given path is first normalized (e.g. a possible trailing path separator is removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. Examples (assuming a UNIX environm...
a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 803, 12, 2890, 16, 589, 4672, 3536, 16582, 326, 864, 589, 628, 326, 1142, 589, 4182, 7707, 2473, 578, 5282, 2934, 225, 1021, 864, 589, 353, 1122, 5640, 261, 73, 18, 75, 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, 1416, 67, 803, 12, 2890, 16, 589, 4672, 3536, 16582, 326, 864, 589, 628, 326, 1142, 589, 4182, 7707, 2473, 578, 5282, 2934, 225, 1021, 864, 589, 353, 1122, 5640, 261, 73, 18, 75, 18, ...
maxWidth = 0 for ctrl in ctrls: maxWidth = max(maxWidth, ctrl.GetBestSize()[0])
maxWidth = max((ctrl.GetBestSize()[0] for ctrl in ctrls))
def EqualizeWidths(ctrls): maxWidth = 0 for ctrl in ctrls: maxWidth = max(maxWidth, ctrl.GetBestSize()[0]) for ctrl in ctrls: ctrl.SetMinSize((maxWidth, -1))
a1ed8db969bafcbcf92b44615c7fc0dfeed0e012 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8076/a1ed8db969bafcbcf92b44615c7fc0dfeed0e012/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9057, 554, 22407, 12, 16277, 87, 4672, 17681, 273, 943, 12443, 16277, 18, 967, 14173, 1225, 1435, 63, 20, 65, 364, 6414, 316, 14629, 3251, 3719, 364, 6414, 316, 14629, 3251, 30, 6414, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9057, 554, 22407, 12, 16277, 87, 4672, 17681, 273, 943, 12443, 16277, 18, 967, 14173, 1225, 1435, 63, 20, 65, 364, 6414, 316, 14629, 3251, 3719, 364, 6414, 316, 14629, 3251, 30, 6414, 18...
subplot.imshow(self.xy_data_array, cmap=cmap, extent=(x0,x1,y0,y1), interpolation=options['interpolation'])
subplot.imshow(self.xy_data_array, origin='lower', cmap=cmap, extent=(x0,x1,y0,y1), interpolation=options['interpolation'])
def _render_on_subplot(self, subplot): options = self.options() given_cmap = options['cmap'] #cm is the matplotlib color map module from matplotlib import cm from matplotlib.colors import LinearSegmentedColormap as C key_error = False try: cmap = cm.__dict__[given_cmap] except KeyError: key_error = True
da33ae72305fe661893aa9a685a1ea2a7a1f1658 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da33ae72305fe661893aa9a685a1ea2a7a1f1658/density_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 702, 273, 365, 18, 2116, 1435, 864, 67, 22738, 273, 702, 3292, 22738, 3546, 468, 7670, 353, 326, 13892, 2036, 852, 1605, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 702, 273, 365, 18, 2116, 1435, 864, 67, 22738, 273, 702, 3292, 22738, 3546, 468, 7670, 353, 326, 13892, 2036, 852, 1605, 628, ...
for transaction in self.transactions.values(): transaction.delete()
def tearDown(self): self.group.delete() self.user.delete() for transaction in self.transactions.values(): transaction.delete()
cfea0eccfd7db3ad42699b42b7c41cd779f23174 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/cfea0eccfd7db3ad42699b42b7c41cd779f23174/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 1655, 18, 3733, 1435, 365, 18, 1355, 18, 3733, 1435, 364, 2492, 316, 365, 18, 20376, 18, 2372, 13332, 2492, 18, 3733, 1435, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 1655, 18, 3733, 1435, 365, 18, 1355, 18, 3733, 1435, 364, 2492, 316, 365, 18, 20376, 18, 2372, 13332, 2492, 18, 3733, 1435, 2, -100, -100, -10...
self.assertRaises(ValueError, time.strftime, '', (1900, 0, 1, 0, 0, 0, 0, 1, -1))
self.assertRaises(ValueError, time.strftime, '', (1900, -1, 1, 0, 0, 0, 0, 1, -1))
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple.
edeb1885f91a6433a3787bea947b8430d9b2e390 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/edeb1885f91a6433a3787bea947b8430d9b2e390/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 18, 2, -100, -100, -100, ...
if v[0] == 32:
if v.args[0] == 32:
def send(self, str): """Send `str' to the server.""" if self.sock is None: if self.auto_open: self.connect() else: raise NotConnected()
74efa0a6def44a17e7b2a59c2eb16b3d01c3b9e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/74efa0a6def44a17e7b2a59c2eb16b3d01c3b9e5/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 609, 4672, 3536, 3826, 1375, 701, 11, 358, 326, 1438, 12123, 309, 365, 18, 15031, 353, 599, 30, 309, 365, 18, 6079, 67, 3190, 30, 365, 18, 3612, 1435, 469, 30, 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, 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, 1366, 12, 2890, 16, 609, 4672, 3536, 3826, 1375, 701, 11, 358, 326, 1438, 12123, 309, 365, 18, 15031, 353, 599, 30, 309, 365, 18, 6079, 67, 3190, 30, 365, 18, 3612, 1435, 469, 30, 10...
if buildenv['version'] == 'release': _outputLine(buildenv['outputdir']+os.sep+"enduser", compFile1) else: _outputLine(buildenv['outputdir']+os.sep+"developer", compFile1)
def distribute(buildenv): _createVersionFile(buildenv) buildVersionShort = \ hardhatutil.RemovePunctuation(buildenv['buildVersion']) # When the build version string is based on one of our CVS tags # (which usually begin with "CHANDLER_") let's remove the "CHANDLER_" # prefix from the string so it doesn't end up in t...
e535f1488d2bb35cc37fef5581a188eab259cf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e535f1488d2bb35cc37fef5581a188eab259cf83/__hardhat__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 194...
s.tk.call( s.f.plf._w, 'cmd', 'pllab', xlab, ylab, tlab )
s.cmd( 'pllab', xlab, ylab, tlab )
def pllab( s, xlab, ylab, tlab ):
5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 7411, 12, 272, 16, 619, 7411, 16, 677, 7411, 16, 268, 7411, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 7411, 12, 272, 16, 619, 7411, 16, 677, 7411, 16, 268, 7411, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def resetGameColours(kickers, texture1, texture2):
def resetGameColours(kickers, texture1, texture2):
def resetGameColours(kickers, texture1, texture2): #TODO: make this callable at any point in time to "turn" the table if role == ROLE_SERVER or MY_POSITION == 1: kickers[0].setTexture(texture1) kickers[1].setTexture(texture1) kickers[2].setTexture(texture2) kickers[3].setTexture(texture2) else: kickers[0].setTexture(te...
1fe530a103cc582ade1c2f591438d0c992ccdea1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/1fe530a103cc582ade1c2f591438d0c992ccdea1/kickern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12496, 914, 4390, 12, 79, 1200, 414, 16, 11428, 21, 16, 11428, 22, 4672, 468, 6241, 30, 1221, 333, 4140, 622, 1281, 1634, 316, 813, 358, 315, 20922, 6, 326, 1014, 309, 2478, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2715, 12496, 914, 4390, 12, 79, 1200, 414, 16, 11428, 21, 16, 11428, 22, 4672, 468, 6241, 30, 1221, 333, 4140, 622, 1281, 1634, 316, 813, 358, 315, 20922, 6, 326, 1014, 309, 2478, 422,...
except error.OpExecError, err:
except errors.OpExecError, err:
def Exec(self, feedback_fn): """Modifies an instance.
1492cca7a27fd8024a1ad58fe38924f2939f85f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/1492cca7a27fd8024a1ad58fe38924f2939f85f8/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 1739, 5032, 392, 791, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 1739, 5032, 392, 791, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
encoding = server.headers.get('Content-Encoding', '').lower() if encoding in ('gzip', 'x-gzip', 'deflate') and \ (filename is None or not filename.endswith(".gz")): if encoding == 'deflate': server.decoders.append(DeflateStream.DeflateStream()) else: server.decoders.append(GunzipStream.GunzipStream()) to_remove = ['C...
if server.headers.has_key('Content-Encoding'): to_remove.add('Content-Encoding') cencs = server.headers['Content-Encoding'].lower() for cenc in cencs.split(","): cenc = cenc.strip() if ";" in cenc: cenc = cenc.split(";", 1)[0] if not cenc or cenc == 'identity': continue if filename is not None and \ (filename.endswith(...
def server_set_encoding_headers (server, filename=None): """ Set encoding headers. """ rewrite = server.is_rewrite() bytes_remaining = get_content_length(server.headers) to_remove = sets.Set() # remove content length if rewrite: to_remove.add('Content-Length') # add decoders if server.headers.has_key('Transfer-Encoding...
1d0b4dde3d21f983a9244c939ccb80fd5778999a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/1d0b4dde3d21f983a9244c939ccb80fd5778999a/Headers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 542, 67, 5999, 67, 2485, 261, 3567, 16, 1544, 33, 7036, 4672, 3536, 1000, 2688, 1607, 18, 3536, 10738, 273, 1438, 18, 291, 67, 21489, 1435, 1731, 67, 17956, 273, 336, 67, 174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 67, 542, 67, 5999, 67, 2485, 261, 3567, 16, 1544, 33, 7036, 4672, 3536, 1000, 2688, 1607, 18, 3536, 10738, 273, 1438, 18, 291, 67, 21489, 1435, 1731, 67, 17956, 273, 336, 67, 174...
return Product((self, other)) def __rmul__(self, other): if not isinstance(other, Expression): other = Constant(other) if isinstance(other, Constant) and other.Value == 1: return self return Product((other, self)) def __div__(self, other): if not isinstance(other, Expression): other = Constant(other) if isinstance(ot...
def __mul__(self, other): if not isinstance(other, Expression): other = Constant(other) if isinstance(other, Constant) and other.Value == 1: return self return Product((self, other))
0aea67b6248de24bf5c20988f84fdf8ba68e066d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12571/0aea67b6248de24bf5c20988f84fdf8ba68e066d/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 5371, 4672, 1308, 273, 10551, 12, 3011, 13, 309, 1549, 12, 3011, 16, 10551, 13, 471, 1308, 18, 620, 422, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 5371, 4672, 1308, 273, 10551, 12, 3011, 13, 309, 1549, 12, 3011, 16, 10551, 13, 471, 1308, 18, 620, 422, 404, ...
'type': Unicode, 'usemap': Unicode, 'valign': Unicode,
'type': String, 'usemap': URI, 'valign': String,
def encode(value): return value
c802a777b027205443eadd7a1022a19096f8674b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/c802a777b027205443eadd7a1022a19096f8674b/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 1132, 4672, 327, 460, 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, 2017, 12, 1132, 4672, 327, 460, 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...
silent = 0 verbose = 0 if sys.argv[1:]: if sys.argv[1] == '-v': verbose = 1 elif sys.argv[1] == '-s': silent = 1
if len(sys.argv) > 1: verbose = (sys.argv[1] == '-v') silent = (sys.argv[1] == '-s') else: verbose = silent = False
def main(): silent = 0 verbose = 0 if sys.argv[1:]: if sys.argv[1] == '-v': verbose = 1 elif sys.argv[1] == '-s': silent = 1 MAGIC = imp.get_magic() if not silent: print('Using MAGIC word', repr(MAGIC)) for dirname in sys.path: try: names = os.listdir(dirname) except os.error: print('Cannot list directory', repr(dirnam...
c7eaede21ecb5259f2bd9e160a89b82d19cfb19b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/c7eaede21ecb5259f2bd9e160a89b82d19cfb19b/checkpyc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 3988, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 2400, 90, 6134, 10404, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 3988, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 2400, 90, 6134, 10404, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 240...
os.setreuid(-1, -1)
def test_setreuid_neg1(self): import subprocess subprocess.check_call([ sys.executable, '-c', 'import os,sys;os.setreuid(-1,-1);sys.exit(0)'])
def test_setreuid(self): if os.getuid() != 0: self.assertRaises(os.error, os.setreuid, 0, 0) self.assertRaises(OverflowError, os.setreuid, 1<<32, 0) self.assertRaises(OverflowError, os.setreuid, 0, 1<<32) os.setreuid(-1, -1) # Does nothing, but it needs to accept -1
e4096e1240ca50c2956bdbe84347441d455d69d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e4096e1240ca50c2956bdbe84347441d455d69d8/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 266, 1911, 12, 2890, 4672, 309, 1140, 18, 588, 1911, 1435, 480, 374, 30, 365, 18, 11231, 12649, 6141, 12, 538, 18, 1636, 16, 1140, 18, 542, 266, 1911, 16, 374, 16, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 266, 1911, 12, 2890, 4672, 309, 1140, 18, 588, 1911, 1435, 480, 374, 30, 365, 18, 11231, 12649, 6141, 12, 538, 18, 1636, 16, 1140, 18, 542, 266, 1911, 16, 374, 16, 374...
self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"])
if dict["arg"]: self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"])
def h_bibliographystyle (self, dict): """ Called when \\bibliographystyle is found. This registers the module bibtex (if not already done) and calls the method set_style() of the module. """ self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"])
a89c6e69e246c08c08ac0a0d07ecc8fff1d254d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/a89c6e69e246c08c08ac0a0d07ecc8fff1d254d1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 67, 70, 495, 549, 8829, 1094, 1362, 261, 2890, 16, 2065, 4672, 3536, 11782, 1347, 1736, 70, 495, 549, 8829, 1094, 1362, 353, 1392, 18, 1220, 10285, 326, 1605, 25581, 21763, 261, 430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 366, 67, 70, 495, 549, 8829, 1094, 1362, 261, 2890, 16, 2065, 4672, 3536, 11782, 1347, 1736, 70, 495, 549, 8829, 1094, 1362, 353, 1392, 18, 1220, 10285, 326, 1605, 25581, 21763, 261, 430...
cursor_x, cursor_y = terminal.get_cursor_position() cursor_x = cursor_x + allocation.x cursor_y = cursor_y + allocation.y
term_alloc = terminal.allocation cursor_x = term_alloc.x + term_alloc.width / 2 cursor_y = term_alloc.y + term_alloc.height / 2
def navigate_terminal(self, terminal, direction): """Navigate around terminals""" _containers, terminals = util.enumerate_descendants(self) visibles = self.get_visible_terminals() current = terminals.index(terminal) length = len(terminals) next = None
f7bdb519a125a5165b0e660ac17fec8346fb2de6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/f7bdb519a125a5165b0e660ac17fec8346fb2de6/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28479, 67, 15979, 12, 2890, 16, 8651, 16, 4068, 4672, 3536, 50, 20698, 6740, 16122, 1031, 8395, 389, 20596, 16, 16122, 1031, 273, 1709, 18, 7924, 12600, 67, 26236, 4388, 12, 2890, 13, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28479, 67, 15979, 12, 2890, 16, 8651, 16, 4068, 4672, 3536, 50, 20698, 6740, 16122, 1031, 8395, 389, 20596, 16, 16122, 1031, 273, 1709, 18, 7924, 12600, 67, 26236, 4388, 12, 2890, 13, 22...
successful["%s/%s" % (dirPath,fileName)] = fileDict
fname = '%s/%s' % (dirPath,fileName) fname = fname.replace('//','/') successful[fname] = fileDict
def _findFiles(self,lfns,metadata=['FileID'],connection=False): connection = self._getConnection(connection) """ Find file ID if it exists for the given list of LFNs """ dirDict = self._getFileDirectories(lfns) failed = {} directoryIDs = {} for dirPath in dirDict.keys(): res = self.db.dtree.findDir(dirPath) if (not res...
ab67cc5ab5284fed4da0b8d6db61bae143bc95b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ab67cc5ab5284fed4da0b8d6db61bae143bc95b8/FileManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 2697, 12, 2890, 16, 20850, 2387, 16, 4165, 33, 3292, 812, 734, 17337, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 4163, 585, 1599, 309, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 2697, 12, 2890, 16, 20850, 2387, 16, 4165, 33, 3292, 812, 734, 17337, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 4163, 585, 1599, 309, 518, 1...
self.playlist = self.get_playlist() self.lp = len(self.playlist) self.rand_list = range(0,self.lp) random.shuffle(self.rand_list)
def __init__(self, station, channel_id): Thread.__init__(self) self.channel_id = channel_id # self.channel = Shout() #self.station = station self.id = 999999 self.rand_list = [] # Media self.media_dir = station['media']['dir']
9bcb46828bd7ee9c824e79d41893f83e79986a9d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/9bcb46828bd7ee9c824e79d41893f83e79986a9d/d-fuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13282, 16, 1904, 67, 350, 4672, 4884, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4327, 67, 350, 273, 1904, 67, 350, 468, 365, 18, 4327, 273, 2638, 659, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13282, 16, 1904, 67, 350, 4672, 4884, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4327, 67, 350, 273, 1904, 67, 350, 468, 365, 18, 4327, 273, 2638, 659, 1...