rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
""" Should return False under normal circumstances """
""" Should return False under normal circumstances. """
def test_returns_false_by_default(self): """ Should return False under normal circumstances """ expect_result = False result = daemon.daemon.is_process_started_by_superserver() self.failUnlessIs(expect_result, result)
33a5bfc655a6417210c5c80d9f942714bf596533 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/33a5bfc655a6417210c5c80d9f942714bf596533/test_daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6154, 67, 5743, 67, 1637, 67, 1886, 12, 2890, 4672, 3536, 9363, 327, 1083, 3613, 2212, 29951, 2639, 18, 3536, 4489, 67, 2088, 273, 1083, 563, 273, 8131, 18, 21511, 18, 291, 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, 1842, 67, 6154, 67, 5743, 67, 1637, 67, 1886, 12, 2890, 4672, 3536, 9363, 327, 1083, 3613, 2212, 29951, 2639, 18, 3536, 4489, 67, 2088, 273, 1083, 563, 273, 8131, 18, 21511, 18, 291, 6...
error4 = 'Cannot log in to account "%s" on server %s:%i"'
error4 = 'Cannot log in to account "%s" on server "%s:%i"'
def validation(event=None): flag = True if not validateEmailAddr(toCtrl.GetValue()): flag = False if subjectCtrl.GetValue()=='': flag = False panel.dialog.buttonRow.applyButton.Enable(flag) panel.dialog.buttonRow.okButton.Enable(flag)
12fb689db69b2ce866902fbcc1bb19e0622932ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8076/12fb689db69b2ce866902fbcc1bb19e0622932ba/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3379, 12, 2575, 33, 7036, 4672, 2982, 273, 1053, 309, 486, 1954, 4134, 3178, 12, 869, 12418, 18, 967, 620, 1435, 4672, 2982, 273, 1083, 309, 3221, 12418, 18, 967, 620, 1435, 18920, 4278,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3379, 12, 2575, 33, 7036, 4672, 2982, 273, 1053, 309, 486, 1954, 4134, 3178, 12, 869, 12418, 18, 967, 620, 1435, 4672, 2982, 273, 1083, 309, 3221, 12418, 18, 967, 620, 1435, 18920, 4278,...
raise "\nERROR: Invalid Item"
raise Exception("\nERROR: Invalid Item")
def SetItemWindowEnabled(self, item, enable=True): """Enables/disables the window associated to the item."""
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1180, 3829, 1526, 12, 2890, 16, 761, 16, 4237, 33, 5510, 4672, 3536, 25924, 19, 2251, 1538, 326, 2742, 3627, 358, 326, 761, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1180, 3829, 1526, 12, 2890, 16, 761, 16, 4237, 33, 5510, 4672, 3536, 25924, 19, 2251, 1538, 326, 2742, 3627, 358, 326, 761, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100...
if line[0] == "U": print "needs update because of", line return True if line[0] == "P": print "needs update because of", line return True if line[0] == "A":
if line.lower().startswith('restored'): print "needs update because of", line return True s = line[:4] if s.find("U") != -1: print "needs update because of", line return True if s.find("P") != -1: print "needs update because of", line return True if s.find("A") != -1: print "needs update because of", line return Tr...
def NeedsUpdate(outputList): for line in outputList: if line.lower().find("ide scripts") != -1: # this hack is for skipping some Mac-specific files that # under Windows always appear to be needing an update continue if line.lower().find("xercessamples") != -1: # same type of hack as above continue if line[0] == "U": pr...
8fd67468a9f41b95e574894c23940c3231ad3efb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8fd67468a9f41b95e574894c23940c3231ad3efb/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29164, 1891, 12, 2844, 682, 4672, 364, 980, 316, 876, 682, 30, 309, 980, 18, 8167, 7675, 4720, 2932, 831, 8873, 7923, 480, 300, 21, 30, 468, 333, 11769, 353, 364, 14195, 2690, 13217, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29164, 1891, 12, 2844, 682, 4672, 364, 980, 316, 876, 682, 30, 309, 980, 18, 8167, 7675, 4720, 2932, 831, 8873, 7923, 480, 300, 21, 30, 468, 333, 11769, 353, 364, 14195, 2690, 13217, 1...
def __removeSubDirectories(self,subDirectories): resDict = {'FilesRemoved':0,'SizeRemoved':0,'AllRemoved':True} if len(subDirectories) > 0: res = self.__removeDirectoryRecursive(subDirectories)
def __removeSubDirectories( self, subDirectories ): resDict = {'FilesRemoved':0, 'SizeRemoved':0, 'AllRemoved':True} if len( subDirectories ) > 0: res = self.__removeDirectoryRecursive( subDirectories )
def __removeSubDirectories(self,subDirectories): resDict = {'FilesRemoved':0,'SizeRemoved':0,'AllRemoved':True} if len(subDirectories) > 0: res = self.__removeDirectoryRecursive(subDirectories) if res['OK']: for removedSubDir,removedDict in res['Value']['Successful'].items(): resDict['FilesRemoved'] += removedDict['Fil...
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4479, 1676, 13071, 12, 365, 16, 720, 13071, 262, 30, 400, 5014, 273, 13666, 2697, 10026, 4278, 20, 16, 296, 1225, 10026, 4278, 20, 16, 296, 1595, 10026, 4278, 5510, 97, 309, 562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 1676, 13071, 12, 365, 16, 720, 13071, 262, 30, 400, 5014, 273, 13666, 2697, 10026, 4278, 20, 16, 296, 1225, 10026, 4278, 20, 16, 296, 1595, 10026, 4278, 5510, 97, 309, 562, ...
image_list = ['cbc_plotsummary_4__count_vs_ifar_H1H2L1.png','cbc_plotsummary_4__count_vs_ifar_H1L1.png','cbc_plotsummary_4__count_vs_ifar_H2L1.png']
image_list = ['cbc_plotsummary_4_count_vs_ifar_H1H2L1.png','cbc_plotsummary_4_count_vs_ifar_H1L1.png','cbc_plotsummary_4_count_vs_ifar_H2L1.png']
def finish(self): self.file.close()
b9ae784b03603eea0127705621645b4c0039d780 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/b9ae784b03603eea0127705621645b4c0039d780/make_summary_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 12, 2890, 4672, 365, 18, 768, 18, 4412, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 4076, 12, 2890, 4672, 365, 18, 768, 18, 4412, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for offset_vector in self.offset_vectors:
for offset_vector in cafepacker.offset_vectors:
def split_bins(cafepacker, extentlimit): """ Split bins of stored in CafePacker until each bin has an extent no longer than extentlimit. """ # # loop overall the bins in cafepacker.bins. we pop items out of # cafepacker.bins and append new ones to the end so need a while loop # checking the extent of each bin in cafep...
4a884fa265544fa4242befa60915a19c7bcfebb7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/4a884fa265544fa4242befa60915a19c7bcfebb7/ligolw_cafe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 11862, 12, 71, 1727, 881, 484, 264, 16, 11933, 3595, 4672, 3536, 5385, 8963, 434, 4041, 316, 385, 2513, 4420, 264, 3180, 1517, 4158, 711, 392, 11933, 1158, 7144, 2353, 11933, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 11862, 12, 71, 1727, 881, 484, 264, 16, 11933, 3595, 4672, 3536, 5385, 8963, 434, 4041, 316, 385, 2513, 4420, 264, 3180, 1517, 4158, 711, 392, 11933, 1158, 7144, 2353, 11933, 3...
return os.path.join(self.oobdir, name)
return os.path.join(self.oob_dir, name)
def oob_file(self, name): return os.path.join(self.oobdir, name)
14a87ec5854d72b6b9ed3ff1d721be21db881ad7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/14a87ec5854d72b6b9ed3ff1d721be21db881ad7/task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 947, 67, 768, 12, 2890, 16, 508, 4672, 327, 1140, 18, 803, 18, 5701, 12, 2890, 18, 83, 947, 1214, 16, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 947, 67, 768, 12, 2890, 16, 508, 4672, 327, 1140, 18, 803, 18, 5701, 12, 2890, 18, 83, 947, 1214, 16, 508, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
""" created = self.__openSession() res = self.getUserDirectory(username) if not res['OK']: return res failed = {} for username,error in res['Value']['Failed'].items():
""" created = self.__openSession() res = self.getUserDirectory( username ) if not res['OK']: return res failed = {} for username, error in res['Value']['Failed'].items():
def removeUserDirectory(self,username): """ Remove the user directory and remove the user mapping """ created = self.__openSession() res = self.getUserDirectory(username) if not res['OK']: return res failed = {} for username,error in res['Value']['Failed'].items(): failed[username] = error directoriesToRemove = {} succ...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 1299, 2853, 12, 2890, 16, 5053, 4672, 3536, 3581, 326, 729, 1867, 471, 1206, 326, 729, 2874, 3536, 2522, 273, 365, 16186, 3190, 2157, 1435, 400, 273, 365, 18, 588, 1299, 2853, 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, 1206, 1299, 2853, 12, 2890, 16, 5053, 4672, 3536, 3581, 326, 729, 1867, 471, 1206, 326, 729, 2874, 3536, 2522, 273, 365, 16186, 3190, 2157, 1435, 400, 273, 365, 18, 588, 1299, 2853, 12, ...
self.__getWidget("vpaned_main").set_position(wheight-250)
def __init__(self): self.__device_engine = None self.transfer_manager = None self.__current_mode = None self.__current_folder = None
c53ab5980eab6bc66121ddbad3807ad1581e7164 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2271/c53ab5980eab6bc66121ddbad3807ad1581e7164/MTPnavigatorGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 5964, 67, 8944, 273, 599, 365, 18, 13866, 67, 4181, 273, 599, 365, 16186, 2972, 67, 3188, 273, 599, 365, 16186, 2972, 67, 5609, 273, 599, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 16186, 5964, 67, 8944, 273, 599, 365, 18, 13866, 67, 4181, 273, 599, 365, 16186, 2972, 67, 3188, 273, 599, 365, 16186, 2972, 67, 5609, 273, 599, 2...
for typ in [l[0] for l in listes.LISTE_TYPES]:
for typ in [l[0] for l in LISTE_TYPES]:
def detail_module(request): # récup visiteur v = request.session['v'] # utilisateur uid = request.GET['id'] try: u = Utilisateur.objects.get(id=uid) except Utilisateur.DoesNotExist: HttpResponseRedirect(reverse('v_home')) # module demandé id_mod = request.GET['mid'] try: m = Module.objects.get(id=id_mod) except Module....
0ed4a616ddb469b61b24b67392e00ccf2c2d793f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11552/0ed4a616ddb469b61b24b67392e00ccf2c2d793f/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7664, 67, 2978, 12, 2293, 4672, 468, 436, 132, 107, 71, 416, 2281, 1137, 295, 331, 273, 590, 18, 3184, 3292, 90, 3546, 468, 1709, 24954, 4555, 273, 590, 18, 3264, 3292, 350, 3546, 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, 7664, 67, 2978, 12, 2293, 4672, 468, 436, 132, 107, 71, 416, 2281, 1137, 295, 331, 273, 590, 18, 3184, 3292, 90, 3546, 468, 1709, 24954, 4555, 273, 590, 18, 3264, 3292, 350, 3546, 775,...
def _read_flat(self, cursor, user, ids, fields_names, context=None, load='_classic_read'): selection_obj = self.pool.get('analytic_account.account.selection') res = super(InvoiceLine, self)._read_flat(cursor, user, ids, fields_names, context=context, load=load)
def read(self, cursor, user, ids, fields_names=None, context=None): selection_obj = self.pool.get('analytic_account.account.selection') int_id = False if isinstance(ids, (int, long)): int_id = True ids = [ids] res = super(InvoiceLine, self).read(cursor, user, ids, fields_names=fields_names, context=context) if not f...
def _read_flat(self, cursor, user, ids, fields_names, context=None, load='_classic_read'): selection_obj = self.pool.get('analytic_account.account.selection') res = super(InvoiceLine, self)._read_flat(cursor, user, ids, fields_names, context=context, load=load)
e22dad79d3ab663087ccc80281487ff1686cbc13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9278/e22dad79d3ab663087ccc80281487ff1686cbc13/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 15401, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 1466, 67, 1973, 16, 819, 33, 7036, 16, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 4421, 67, 2603, 273, 365, 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, 389, 896, 67, 15401, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 1466, 67, 1973, 16, 819, 33, 7036, 16, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 4421, 67, 2603, 273, 365, 18, 6...
title = obj.getTitle() or '' desc = obj.getRawDescription() or '' filename = obj.getFilename() or ''
title = obj.getTitle() or u'' desc = obj.getRawDescription() or u'' filename = filenameToUnicode(obj.getFilename()) or u''
def matchingItems(obj, searchString): from miro import search if searchString is None: return True searchString = searchString.lower() title = obj.getTitle() or '' desc = obj.getRawDescription() or '' filename = obj.getFilename() or '' if search.match (searchString, [title.lower(), desc.lower(), filename.lower()]): ret...
7214014ef6bdf85e005b52f8aaedcad6dbcb8a5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/7214014ef6bdf85e005b52f8aaedcad6dbcb8a5c/filters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3607, 3126, 12, 2603, 16, 1623, 780, 4672, 628, 312, 11373, 1930, 1623, 309, 1623, 780, 353, 599, 30, 327, 1053, 1623, 780, 273, 1623, 780, 18, 8167, 1435, 2077, 273, 1081, 18, 588, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3607, 3126, 12, 2603, 16, 1623, 780, 4672, 628, 312, 11373, 1930, 1623, 309, 1623, 780, 353, 599, 30, 327, 1053, 1623, 780, 273, 1623, 780, 18, 8167, 1435, 2077, 273, 1081, 18, 588, 42...
'Create HTML from active file')
'Create HTML from active file')
def init_menubar(self): self.mainmenu = wxMenuBar() mainwindow = self
3ba07fe9c5b636ef447aa47e40d9f258c1d32e0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3ba07fe9c5b636ef447aa47e40d9f258c1d32e0a/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 27617, 373, 297, 12, 2890, 4672, 365, 18, 5254, 5414, 273, 7075, 4599, 5190, 1435, 2774, 5668, 273, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 27617, 373, 297, 12, 2890, 4672, 365, 18, 5254, 5414, 273, 7075, 4599, 5190, 1435, 2774, 5668, 273, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 3) else quickfix.StringField.__init__(self, 3, 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 890, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 890, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, ...
r1 = ndimage.correlate(a, filter_ * footprint) / 5
r1 = ndimage.correlate(a, filter_ * footprint) r1 /= 5
def _filter_func(buffer, weights, total = 1.0): weights = cf / total return (buffer * weights).sum()
be4495bd7d5ff0a88a161beb747f9a0abf7fd804 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/be4495bd7d5ff0a88a161beb747f9a0abf7fd804/test_ndimage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 67, 644, 12, 4106, 16, 5376, 16, 2078, 273, 404, 18, 20, 4672, 5376, 273, 6080, 342, 2078, 327, 261, 4106, 380, 5376, 2934, 1364, 1435, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 67, 644, 12, 4106, 16, 5376, 16, 2078, 273, 404, 18, 20, 4672, 5376, 273, 6080, 342, 2078, 327, 261, 4106, 380, 5376, 2934, 1364, 1435, 2, -100, -100, -100, -100, -100, -100...
if distance<=20000:
if distance<=5000:
def drawRegionAroundThisSNP(self, phenotype_method_id, this_snp, candidate_gene_set, gene_annotation, snp_info, analysis_method_id2gwr, \ LD_info, output_dir, which_LD_statistic, snp_region=None, min_distance=40000, list_type_id=None, label_gene=0, draw_LD_relative_to_center_SNP=0, commit=0, snpData=None, phenData=None...
bdc3752350001c791e90fb2760fcc0578318b113 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/bdc3752350001c791e90fb2760fcc0578318b113/DrawSNPRegion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 5165, 30022, 2503, 13653, 52, 12, 2890, 16, 28825, 67, 2039, 67, 350, 16, 333, 67, 87, 6782, 16, 5500, 67, 11857, 67, 542, 16, 7529, 67, 11495, 16, 28648, 67, 1376, 16, 6285, 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, 3724, 5165, 30022, 2503, 13653, 52, 12, 2890, 16, 28825, 67, 2039, 67, 350, 16, 333, 67, 87, 6782, 16, 5500, 67, 11857, 67, 542, 16, 7529, 67, 11495, 16, 28648, 67, 1376, 16, 6285, 6...
register_exception(req=Null,
register_exception(req=None,
def put_css_in_file(html_message, journal_name): """ Takes an external css file and puts all the content of it in the head of an HTML file in style tags. (Used for HTML emails) """ config_strings = get_xml_from_config(["screen"], journal_name) try: css_path = config_strings["screen"][0] except: register_exception(req=N...
07136f2983389563a1038c9139fc73a3a3e4319d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/07136f2983389563a1038c9139fc73a3a3e4319d/webjournal_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 67, 5212, 67, 267, 67, 768, 12, 2620, 67, 2150, 16, 13001, 67, 529, 4672, 3536, 23004, 392, 3903, 3747, 585, 471, 8200, 777, 326, 913, 434, 518, 316, 326, 910, 434, 392, 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, 1378, 67, 5212, 67, 267, 67, 768, 12, 2620, 67, 2150, 16, 13001, 67, 529, 4672, 3536, 23004, 392, 3903, 3747, 585, 471, 8200, 777, 326, 913, 434, 518, 316, 326, 910, 434, 392, 3982, ...
for user_id in users_online:
for user_id in users_online.keys():
def process_request(self, request): now = datetime.now() delta = now - timedelta(minutes=forum_settings.USER_ONLINE_TIMEOUT) users_online = cache.get('users_online', {}) guests_online = cache.get('guests_online', {})
f6fcd3de0ec7ab9a4ea2399356c74fa9b2498c8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/f6fcd3de0ec7ab9a4ea2399356c74fa9b2498c8a/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 2037, 273, 3314, 18, 3338, 1435, 3622, 273, 2037, 300, 10661, 12, 17916, 33, 11725, 67, 4272, 18, 4714, 67, 673, 5997, 67, 9503, 13, 3677, 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, 1207, 67, 2293, 12, 2890, 16, 590, 4672, 2037, 273, 3314, 18, 3338, 1435, 3622, 273, 2037, 300, 10661, 12, 17916, 33, 11725, 67, 4272, 18, 4714, 67, 673, 5997, 67, 9503, 13, 3677, 67, ...
self.run("/usr/sbin/update-rc.d %s defaults", name)
self.run("/usr/sbin/update-rc.d %s defaults" % name)
def add_init_script(self, file, name): """ Add this file to the init.d directory """ f_path = os.path.join("/etc/init.d", name) f = open(f_path, "w") f.write(file) f.close() os.chmod(f_path, stat.S_IREAD| stat.S_IWRITE | stat.S_IEXEC) self.run("/usr/sbin/update-rc.d %s defaults", name)
48fa517353691fcb4e9d77a9af4d89219451fd2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/48fa517353691fcb4e9d77a9af4d89219451fd2c/installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2738, 67, 4263, 12, 2890, 16, 585, 16, 508, 4672, 3536, 1436, 333, 585, 358, 326, 1208, 18, 72, 1867, 3536, 284, 67, 803, 273, 1140, 18, 803, 18, 5701, 2932, 19, 14175, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2738, 67, 4263, 12, 2890, 16, 585, 16, 508, 4672, 3536, 1436, 333, 585, 358, 326, 1208, 18, 72, 1867, 3536, 284, 67, 803, 273, 1140, 18, 803, 18, 5701, 2932, 19, 14175, 19, ...
if scanner.real == 0:
if nrg == 0:
def doshield(shraise): "Change shield status." action = "NONE" game.ididit = False if shraise: action = "SHUP" else: key = scanner.next() if key == "IHALPHA": if scanner.sees("transfer"): action = "NRG" else: if damaged(DSHIELD): prout(_("Shields damaged and down.")) return if scanner.sees("up"): action = "SHUP" elif s...
a84cb603c99e0318fcbf80e75f88f0f3fbcca0aa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3176/a84cb603c99e0318fcbf80e75f88f0f3fbcca0aa/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16153, 76, 491, 12, 674, 11628, 4672, 315, 3043, 699, 491, 1267, 1199, 1301, 273, 315, 9826, 6, 7920, 18, 350, 350, 305, 273, 1083, 309, 699, 11628, 30, 1301, 273, 315, 2664, 3079, 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, 16153, 76, 491, 12, 674, 11628, 4672, 315, 3043, 699, 491, 1267, 1199, 1301, 273, 315, 9826, 6, 7920, 18, 350, 350, 305, 273, 1083, 309, 699, 11628, 30, 1301, 273, 315, 2664, 3079, 6, ...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 485) else quickfix.DoubleField.__init__(self, 485, 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, 7140, 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, 7140, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
def findTag (self, name, desc):
def findTag (self, name, desc=None):
def findTag (self, name, desc): query_serv = self.getQueryService() res = list() p = omero.sys.Parameters() p.map = {} p.map["text"] = rstring(str(name)) p.map["desc"] = rstring(str(desc)) #p.map["eid"] = rlong(self.getEventContext().userId) f = omero.sys.Filter() f.limit = rint(1) p.theFilter = f sql = "select tg from...
1ce7e853aa0b13a5b6801c8d05d7256f4ff67744 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/1ce7e853aa0b13a5b6801c8d05d7256f4ff67744/gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1805, 261, 2890, 16, 508, 16, 3044, 33, 7036, 4672, 843, 67, 23039, 273, 365, 18, 588, 1138, 1179, 1435, 400, 273, 666, 1435, 293, 273, 8068, 2439, 18, 9499, 18, 2402, 1435, 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, 1104, 1805, 261, 2890, 16, 508, 16, 3044, 33, 7036, 4672, 843, 67, 23039, 273, 365, 18, 588, 1138, 1179, 1435, 400, 273, 666, 1435, 293, 273, 8068, 2439, 18, 9499, 18, 2402, 1435, 293,...
if msg.get_content_type() == in ('application/tar', 'application/zip'):
if msg.get_content_type() == 'application/tar':
def handle_msg(self, msgno, msg): if msg.get_content_type() == in ('application/tar', 'application/zip'): logging.info('Received snapshot') workdir = tempfile.mkdtemp(prefix='bitten') archive_name = msg.get('Content-Disposition', 'snapshot.tar.gz') archive_path = os.path.join(workdir, archive_name) file(archive_path, '...
065a58ec57b89b6d9d5e50d92abd6f0e6203116e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/065a58ec57b89b6d9d5e50d92abd6f0e6203116e/slave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3576, 12, 2890, 16, 1234, 2135, 16, 1234, 4672, 309, 1234, 18, 588, 67, 1745, 67, 723, 1435, 422, 296, 3685, 19, 11718, 4278, 2907, 18, 1376, 2668, 8872, 4439, 6134, 22231, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3576, 12, 2890, 16, 1234, 2135, 16, 1234, 4672, 309, 1234, 18, 588, 67, 1745, 67, 723, 1435, 422, 296, 3685, 19, 11718, 4278, 2907, 18, 1376, 2668, 8872, 4439, 6134, 22231, 2...
sets up self.conf and self.cmds as well as logger objects
sets up self.conf and self.cmds as well as logger objects
def getOptionsConfig(self, args): """parses command line arguments, takes cli args: sets up self.conf and self.cmds as well as logger objects in base instance"""
d3c62f55995ac3abcfbda384fccc4f8da37dad23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/34/d3c62f55995ac3abcfbda384fccc4f8da37dad23/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9849, 809, 12, 2890, 16, 833, 4672, 3536, 1065, 2420, 1296, 980, 1775, 16, 5530, 4942, 833, 30, 1678, 731, 365, 18, 3923, 471, 365, 18, 24680, 487, 5492, 487, 1194, 2184, 316, 1026, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9849, 809, 12, 2890, 16, 833, 4672, 3536, 1065, 2420, 1296, 980, 1775, 16, 5530, 4942, 833, 30, 1678, 731, 365, 18, 3923, 471, 365, 18, 24680, 487, 5492, 487, 1194, 2184, 316, 1026, 79...
size += len(field)
size += len(value)
def get_size( self ): """ Used for FTP and apparently the ZMI now too """ size = 0 for name in self.Schema().keys(): value = self[name] if IBaseUnit.isImplementedBy(value): size += field.get_size() else: try: size += len(field) except TypeError: pass
04005869903a2b18b824df19d39ec59b5522f7af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/04005869903a2b18b824df19d39ec59b5522f7af/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1467, 12, 365, 262, 30, 3536, 10286, 364, 19324, 471, 29614, 715, 326, 2285, 7492, 2037, 4885, 3536, 963, 273, 374, 364, 508, 316, 365, 18, 3078, 7675, 2452, 13332, 460, 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, 336, 67, 1467, 12, 365, 262, 30, 3536, 10286, 364, 19324, 471, 29614, 715, 326, 2285, 7492, 2037, 4885, 3536, 963, 273, 374, 364, 508, 316, 365, 18, 3078, 7675, 2452, 13332, 460, 273, ...
return c, conflicts
last = c return last, conflicts
def applyUpstreamChangesets(self, root, module, changesets, applyable=None, replay=None, applied=None, logger=None, delayed_commit=False): """ Apply the collected upstream changes.
d1ea5b6fc5954ee7e1992e75b76eb4bb4a9e47fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/d1ea5b6fc5954ee7e1992e75b76eb4bb4a9e47fe/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 1211, 3256, 7173, 2413, 12, 2890, 16, 1365, 16, 1605, 16, 3478, 2413, 16, 2230, 429, 33, 7036, 16, 16033, 33, 7036, 16, 6754, 33, 7036, 16, 1194, 33, 7036, 16, 15278, 67, 7371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 1211, 3256, 7173, 2413, 12, 2890, 16, 1365, 16, 1605, 16, 3478, 2413, 16, 2230, 429, 33, 7036, 16, 16033, 33, 7036, 16, 6754, 33, 7036, 16, 1194, 33, 7036, 16, 15278, 67, 7371, ...
command = "nvcc --cuda " + options.arguments
if options.ptx: command = "nvcc --ptx " + options.arguments else: command = "nvcc --cuda " + options.arguments
def main(): parser = OptionParser() parser.add_option("-d", "--directory", action="store", default=".", dest="directory", help="The directory to run on.") parser.add_option("-a", "--arguments", action="store", default="-I ~/checkout/thrust -I ./sdk", dest="arguments", help="NVCC options.") parser.add_option("-c", "--c...
3531dff3318e49ba5a7525caed84e8171620ec0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4467/3531dff3318e49ba5a7525caed84e8171620ec0e/CompileCudaTests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 18862, 1435, 225, 2082, 18, 1289, 67, 3482, 2932, 17, 72, 3113, 5238, 5149, 3113, 1301, 1546, 2233, 3113, 805, 1546, 1199, 16, 1570, 1546, 5149, 3113, 2809, 1546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2082, 273, 18862, 1435, 225, 2082, 18, 1289, 67, 3482, 2932, 17, 72, 3113, 5238, 5149, 3113, 1301, 1546, 2233, 3113, 805, 1546, 1199, 16, 1570, 1546, 5149, 3113, 2809, 1546, ...
btnBox.AddSpacer(4)
btnBox.AddSpacer((4, 4))
def createOptionsFrame(self): """ Created: 03.11.2004, KP Description: Creates a frame that contains the various widgets used to control the colocalization settings """ GUI.FilterBasedTaskPanel.FilterBasedTaskPanel.createOptionsFrame(self) #self.panel=wx.Panel(self.settingsNotebook,-1) self.panel = wx.Panel(self, -1) s...
1700b123e079a29b8062f04ceab839eee34973a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/1700b123e079a29b8062f04ceab839eee34973a1/ManipulationPanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1320, 3219, 12, 2890, 4672, 3536, 12953, 30, 17107, 18, 2499, 18, 6976, 24, 16, 1475, 52, 6507, 30, 10210, 279, 2623, 716, 1914, 326, 11191, 10965, 1399, 358, 3325, 326, 645, 23735,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1320, 3219, 12, 2890, 4672, 3536, 12953, 30, 17107, 18, 2499, 18, 6976, 24, 16, 1475, 52, 6507, 30, 10210, 279, 2623, 716, 1914, 326, 11191, 10965, 1399, 358, 3325, 326, 645, 23735,...
self.staticControlDelegate = delegate
self.staticControlDelegate = staticControlDelegate
def __init__(self, delegate=None, *args, **kwargs): super(StringAttributeEditor, self).__init__(*args, **kwargs) self.staticControlDelegate = delegate
7e26b9aa92a7aba337a0a352455dd52dc0b59b42 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/7e26b9aa92a7aba337a0a352455dd52dc0b59b42/AttributeEditors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7152, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 780, 1499, 6946, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7152, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 780, 1499, 6946, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 4333, 13, 365, 18, ...
if theDate >= firstDate and theDate <= lastDate:
if theDate >= firstDate and theDate <= endDate:
def addTick(i, xVals=xVals, formatter=formatter, ticks=ticks, labels=labels): ticks.insert(0,xVals[i]) labels.insert(0,formatter(xVals[i]))
4f7137b6a72dfea5cb32cca1dbed37762a7ec2d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/4f7137b6a72dfea5cb32cca1dbed37762a7ec2d7/axes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6264, 12, 77, 16, 619, 13169, 33, 92, 13169, 16, 4453, 33, 12354, 16, 13003, 33, 11767, 16, 3249, 33, 5336, 4672, 13003, 18, 6387, 12, 20, 16, 92, 13169, 63, 77, 5717, 3249, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6264, 12, 77, 16, 619, 13169, 33, 92, 13169, 16, 4453, 33, 12354, 16, 13003, 33, 11767, 16, 3249, 33, 5336, 4672, 13003, 18, 6387, 12, 20, 16, 92, 13169, 63, 77, 5717, 3249, 18,...
index.exposed = True def default(self,ecomap_id,*args,**kwargs): ecomap_id = int(ecomap_id) try: self.ecomap = Ecomap.get(ecomap_id) except Exception, e: print e cherrypy.session['message'] = "invalid id" return httptools.redirect("/course") if len(args) == 0: return self.view_ecomap(**kwargs) action = args[0] dis...
def query(self,id): return Ecomap.get(int(id)) @cherrypy.expose() def edit_form(self,ecomap): defaults = {'name' : ecomap.name, 'description' : ecomap.description}
def index(self): # this should really be a secured list of your ecomaps # it is a duplicate of the functionality of myList # it may be more appropriate to redirect to myList return self.template("list_ecomaps.pt",{'ecomaps' : [e for e in Ecomap.select()]})
bd620ed6e7bc94139cb8bd730d5c5775ee916a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/bd620ed6e7bc94139cb8bd730d5c5775ee916a14/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 468, 333, 1410, 8654, 506, 279, 1428, 2862, 666, 434, 3433, 425, 832, 6679, 468, 518, 353, 279, 6751, 434, 326, 14176, 434, 3399, 682, 468, 518, 2026, 506, 1898, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 468, 333, 1410, 8654, 506, 279, 1428, 2862, 666, 434, 3433, 425, 832, 6679, 468, 518, 353, 279, 6751, 434, 326, 14176, 434, 3399, 682, 468, 518, 2026, 506, 1898, 5...
self.autoSendSelectionCallback = None
self.selectionChangedCallback = None
def __init__(self, parent = None, name = "None"): "Constructs the graph" QwtPlot.__init__(self, parent, name) self.parentName = name self.setWFlags(Qt.WResizeNoErase) #this works like magic.. no flicker during repaint!
b688d29474a63826ced75f81b2e2416316c3c6fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/b688d29474a63826ced75f81b2e2416316c3c6fd/OWGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 16, 508, 273, 315, 7036, 6, 4672, 315, 13262, 326, 2667, 6, 2238, 6046, 11532, 16186, 2738, 972, 12, 2890, 16, 982, 16, 508, 13, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 16, 508, 273, 315, 7036, 6, 4672, 315, 13262, 326, 2667, 6, 2238, 6046, 11532, 16186, 2738, 972, 12, 2890, 16, 982, 16, 508, 13, 365, 18...
self.m_f_pull_builtins_hack = f_pull_builtins_hack
self.m_builtins_hack = builtins_hack
def settrace(self, f = None, f_break_on_init = True, timeout = None, f_pull_builtins_hack = False): """ Start tracing mechanism for thread. """ if not self.m_ftrace: return tid = thread.get_ident() if tid in self.m_threads: return
083f35804d1a92776e7df297bab8763f65ee36ef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1662/083f35804d1a92776e7df297bab8763f65ee36ef/rpdb2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 5129, 12, 2890, 16, 284, 273, 599, 16, 284, 67, 8820, 67, 265, 67, 2738, 273, 1053, 16, 2021, 273, 599, 16, 284, 67, 13469, 67, 12406, 2679, 67, 76, 484, 273, 1083, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 5129, 12, 2890, 16, 284, 273, 599, 16, 284, 67, 8820, 67, 265, 67, 2738, 273, 1053, 16, 2021, 273, 599, 16, 284, 67, 13469, 67, 12406, 2679, 67, 76, 484, 273, 1083, 4672, 3536, ...
x = int(x) elif isinstance(x, rational.Rational):
if isinstance(x, rational.Rational):
def __init__(self, parent, x, big_oh=infinity, ordp=None, construct=False): r""" INPUT: parent -- a p-adic field. x -- anything that can be coerced to a p-adic number. big_oh -- is such that, e.g. 3^(-1) + 1 + 2 * 3 + (3^2) has big_oh equal to 2. """ field_element.FieldElement.__init__(self, parent) if construct: self....
da5f5081a22672169933e312444f57d2267e1a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/da5f5081a22672169933e312444f57d2267e1a14/padic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 619, 16, 5446, 67, 16699, 33, 267, 7850, 16, 4642, 84, 33, 7036, 16, 4872, 33, 8381, 4672, 436, 8395, 12943, 30, 982, 1493, 279, 293, 17, 2033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 16, 619, 16, 5446, 67, 16699, 33, 267, 7850, 16, 4642, 84, 33, 7036, 16, 4872, 33, 8381, 4672, 436, 8395, 12943, 30, 982, 1493, 279, 293, 17, 2033...
if len(dbset) > 20 and dbpercent < 50.0 and not repository.testing:
if not filesonly and \ len(dbset) > 20 and dbpercent < 50.0 and \ not repository.testing:
def db_update(archname, reponame, pkgs, options): """ Parses a list and updates the Arch dev database accordingly. Arguments: pkgs -- A list of Pkg objects. """ logger.info('Updating Arch: %s' % archname) force = options.get('force', False) filesonly = options.get('filesonly', False) repository = Repo.objects.get(nam...
fcc6d98bc438ea917c757ee1a565a5dba625f333 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/fcc6d98bc438ea917c757ee1a565a5dba625f333/reporead.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 2725, 12, 991, 529, 16, 283, 500, 339, 16, 16922, 16, 702, 4672, 3536, 2280, 2420, 279, 666, 471, 4533, 326, 16959, 4461, 2063, 15905, 18, 225, 13599, 30, 16922, 1493, 432, 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, 1319, 67, 2725, 12, 991, 529, 16, 283, 500, 339, 16, 16922, 16, 702, 4672, 3536, 2280, 2420, 279, 666, 471, 4533, 326, 16959, 4461, 2063, 15905, 18, 225, 13599, 30, 16922, 1493, 432, 6...
- doResize resize object when zoom factor changes?
- isImSize is radius in image pixels? else cnv pixels. If true, annotation is resized as zoom changes.
def addAnnotation(self, annType, imPos, rad, tags=None, doResize=True, **kargs): """Add an annotation.
862ddc6db44e0f15ce4be898eafea39343ed98b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/862ddc6db44e0f15ce4be898eafea39343ed98b7/GrayImageDispWdg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24145, 12, 2890, 16, 8226, 559, 16, 709, 1616, 16, 6719, 16, 2342, 33, 7036, 16, 741, 12182, 33, 5510, 16, 2826, 79, 1968, 4672, 3536, 986, 392, 3204, 18, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24145, 12, 2890, 16, 8226, 559, 16, 709, 1616, 16, 6719, 16, 2342, 33, 7036, 16, 741, 12182, 33, 5510, 16, 2826, 79, 1968, 4672, 3536, 986, 392, 3204, 18, 2, -100, -100, -100, -100, ...
if product.virtual_available >= 0.0: continue newdate = datetime.today() if product.supply_method == 'buy': location_id = warehouse.lot_input_id.id elif product.supply_method == 'produce': location_id = warehouse.lot_stock_id.id else: continue proc_id = proc_obj.create(cr, uid, { 'name': _('Automatic OP: %s') % (produ...
if (product.active == True) and (product.purchase_ok == True): if product.virtual_available >= 0.0: continue newdate = datetime.today() if product.supply_method == 'buy': location_id = warehouse.lot_input_id.id elif product.supply_method == 'produce': location_id = warehouse.lot_stock_id.id else: continue proc_id = pr...
def create_automatic_op(self, cr, uid, context=None): """ Create procurement of virtual stock < 0 @param self: The object pointer @param cr: The current row, from the database cursor, @param uid: The current user ID for security checks @param context: A standard dictionary for contextual values @return: Dictionary o...
cdbdc6e29c80206930b70387e6ac9348586a8b62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/cdbdc6e29c80206930b70387e6ac9348586a8b62/schedulers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5854, 4941, 67, 556, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3536, 1788, 5418, 594, 475, 434, 225, 5024, 12480, 411, 374, 225, 632, 891, 365, 30, 1021, 733, 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, 752, 67, 5854, 4941, 67, 556, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3536, 1788, 5418, 594, 475, 434, 225, 5024, 12480, 411, 374, 225, 632, 891, 365, 30, 1021, 733, 4...
str += I+'<TH CLASS="navbar">&nbsp;&nbsp;&nbsp;'+\ 'Package&nbsp;&nbsp;&nbsp;</TH>\n'
str += I+'<th class="navbar">&nbsp;&nbsp;&nbsp;' str += 'Package&nbsp;&nbsp;&nbsp;</th>\n'
def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA...
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 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, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
for (npy_intp n = 0; n < N; ++n) { //Dz[m*Szm + n*Szn] = 0.0; Dz[m*Szm + n*Szn] = 0.5; //here is the py_offset amount } } //iterate over the sparse array, making the most of an entry wherever we find it. // // Normal matrix matrix multiply: // for m // for n // for k // z[m,n] += a[m,k] * b[k,n] // Here ...
((double*)PyArray_GETPTR1(%(z)s, m))[0] = 0.5 + ((double*)PyArray_GETPTR1(%(a)s, m))[0] + ((double*)PyArray_GETPTR1(%(b)s, m))[0] ;
def c_code(self, node, name, (a_val, a_ind, a_ptr, a_nrows, b), (z,), sub): return """ if (%(a_val)s->nd != 1) {PyErr_SetString(PyExc_NotImplementedError, "rank(a_val) != 1"); %(fail)s;} if (%(a_ind)s->nd != 1) {PyErr_SetString(PyExc_NotImplementedError, "rank(a_ind) != 1"); %(fail)s;} if (%(a_ptr)s->nd != 1) {PyErr_Se...
46305ee5eb1cd7beebd74117366afb20cd152a02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/46305ee5eb1cd7beebd74117366afb20cd152a02/test_debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 710, 12, 2890, 16, 756, 16, 508, 16, 261, 69, 67, 1125, 16, 279, 67, 728, 16, 279, 67, 6723, 16, 279, 67, 82, 3870, 16, 324, 3631, 261, 94, 16, 3631, 720, 4672, 327, 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, 276, 67, 710, 12, 2890, 16, 756, 16, 508, 16, 261, 69, 67, 1125, 16, 279, 67, 728, 16, 279, 67, 6723, 16, 279, 67, 82, 3870, 16, 324, 3631, 261, 94, 16, 3631, 720, 4672, 327, 353...
vgname = self.cfg.GetVGName()
def _ExecD8Secondary(self, feedback_fn): """Replace the secondary node for drbd8.
4504c3d66847d28ecb22fbda3d10285b993bda61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/4504c3d66847d28ecb22fbda3d10285b993bda61/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1905, 40, 28, 14893, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 5729, 326, 9946, 756, 364, 5081, 16410, 28, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1905, 40, 28, 14893, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 5729, 326, 9946, 756, 364, 5081, 16410, 28, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if pathlength != None: (p_descr,e_descr) = hlr_utils.get_descr(pathlength)
if pathlength is not None: p_descr = hlr_utils.get_descr(pathlength)
def tof_to_d_spacing(obj,**kwargs): # import the helper functions import hlr_utils # set up for working through data (result,res_descr)=hlr_utils.empty_result(obj) (o_descr,d_descr)=hlr_utils.get_descr(obj) if o_descr == "number" or o_descr == "list": raise RuntimeError, "Must provide a SOM of a SO to the function."...
8dcf8af8c74e3673ec736b87e019766d76714d13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8dcf8af8c74e3673ec736b87e019766d76714d13/hlr_tof_to_d_spacing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 74, 67, 869, 67, 72, 67, 14080, 12, 2603, 16, 636, 4333, 4672, 225, 468, 1930, 326, 4222, 4186, 1930, 366, 10826, 67, 5471, 225, 468, 444, 731, 364, 5960, 3059, 501, 261, 2088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 74, 67, 869, 67, 72, 67, 14080, 12, 2603, 16, 636, 4333, 4672, 225, 468, 1930, 326, 4222, 4186, 1930, 366, 10826, 67, 5471, 225, 468, 444, 731, 364, 5960, 3059, 501, 261, 2088, ...
self.vbox.pack_start(self.effectsHBox)
def __init__(self): # Create GUI objects rgbaColormap = gtk.gdk.screen_get_default().get_rgba_colormap() if rgbaColormap != None: gtk.gdk.screen_get_default().set_default_colormap(rgbaColormap) self.testedEffect = "hover" self.window = gtk.Window() self.window.connect("destroy", gtk.main_quit) #self.window.set_property...
ff0629e623d6a32f9ddcb2968962182c361dc9ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/ff0629e623d6a32f9ddcb2968962182c361dc9ee/test-effects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1788, 10978, 2184, 19465, 914, 18804, 273, 22718, 18, 75, 2883, 18, 9252, 67, 588, 67, 1886, 7675, 588, 67, 26198, 67, 1293, 18804, 1435, 309, 19465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 468, 1788, 10978, 2184, 19465, 914, 18804, 273, 22718, 18, 75, 2883, 18, 9252, 67, 588, 67, 1886, 7675, 588, 67, 26198, 67, 1293, 18804, 1435, 309, 19465...
'BazTest.Test1',
'BazTest.TestOne',
def testFilterWithoutDot(self): """Tests a filter that has no '.' in it."""
8811cad3eac09720ff023f0230f7f78253ae10a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14009/8811cad3eac09720ff023f0230f7f78253ae10a9/gtest_filter_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1586, 8073, 10412, 12, 2890, 4672, 3536, 14650, 279, 1034, 716, 711, 1158, 2611, 316, 518, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1586, 8073, 10412, 12, 2890, 4672, 3536, 14650, 279, 1034, 716, 711, 1158, 2611, 316, 518, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if doc: doc = '<small><tt>' + doc + '<br>&nbsp;</tt></small>'
if doc: doc = '<small><tt>' + doc + '</tt></small>'
def docclass(self, object, funcs={}, classes={}): """Produce HTML documentation for a class object.""" name = object.__name__ bases = object.__bases__ contents = ''
c59006cf0425a2636c8284ef2601f7f489fad815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c59006cf0425a2636c8284ef2601f7f489fad815/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1106, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 12938, 4672, 3536, 25884, 3982, 7323, 364, 279, 667, 733, 12123, 508, 273, 733, 16186, 529, 972, 8337, 273, 733, 16186, 18602, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1106, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 12938, 4672, 3536, 25884, 3982, 7323, 364, 279, 667, 733, 12123, 508, 273, 733, 16186, 529, 972, 8337, 273, 733, 16186, 18602, 972, ...
for t in Profile.objects.all().values('template__name').annotate(count = models.Count('node')):
for t in Profile.objects.all().values('template__name').annotate(count = models.Count('node')).order_by('template__name'):
def statistics(request): """ Displays some global statistics. """ nodes_by_status = [] for s in Node.objects.all().values('status').annotate(count = models.Count('ip')): nodes_by_status.append({ 'status' : NodeStatus.as_string(s['status']), 'count' : s['count'] }) templates_by_usage = [] for t in Profile.objects.all()...
95305844728c2b676fa017b5d8a3d0aa20e5759e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/95305844728c2b676fa017b5d8a3d0aa20e5759e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7691, 12, 2293, 4672, 3536, 9311, 87, 2690, 2552, 7691, 18, 3536, 2199, 67, 1637, 67, 2327, 273, 5378, 364, 272, 316, 2029, 18, 6911, 18, 454, 7675, 2372, 2668, 2327, 16063, 18338, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7691, 12, 2293, 4672, 3536, 9311, 87, 2690, 2552, 7691, 18, 3536, 2199, 67, 1637, 67, 2327, 273, 5378, 364, 272, 316, 2029, 18, 6911, 18, 454, 7675, 2372, 2668, 2327, 16063, 18338, 340, ...
cmd = "cython --embed-positions -I%s -o %s %s"%(os.getcwd(), outfile, f)
cmd = "cython --embed-positions --incref-local-binop -I%s -o %s %s"%(os.getcwd(), outfile, f)
def process_cython_file(f, m): """ INPUT: f -- file name m -- Extension module description (i.e., object of type Extension). """ # This is a cython file, so process accordingly. pyx_inst_file = '%s/%s'%(SITE_PACKAGES, f) if is_older(f, pyx_inst_file): print "%s --> %s"%(f, pyx_inst_file) os.system('cp %s %s 2>/dev/null...
22d6f153360ce8c2c378ff1bae4d09a39b4a2563 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/22d6f153360ce8c2c378ff1bae4d09a39b4a2563/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2431, 3041, 67, 768, 12, 74, 16, 312, 4672, 3536, 12943, 30, 284, 1493, 585, 508, 312, 1493, 10021, 1605, 2477, 261, 77, 18, 73, 12990, 733, 434, 618, 10021, 2934, 3536, 468,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2431, 3041, 67, 768, 12, 74, 16, 312, 4672, 3536, 12943, 30, 284, 1493, 585, 508, 312, 1493, 10021, 1605, 2477, 261, 77, 18, 73, 12990, 733, 434, 618, 10021, 2934, 3536, 468,...
class X(A,B,C,D):
class X(D,B,C,A):
def mro(cls): L = type.mro(cls) L.reverse() return L
8a1c43101e27f2143eb7d69d9e8d9c114f08f93a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8a1c43101e27f2143eb7d69d9e8d9c114f08f93a/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 303, 12, 6429, 4672, 511, 273, 618, 18, 81, 303, 12, 6429, 13, 511, 18, 9845, 1435, 327, 511, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 303, 12, 6429, 4672, 511, 273, 618, 18, 81, 303, 12, 6429, 13, 511, 18, 9845, 1435, 327, 511, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if sid is None and create: sid=uuid.uuid() if sid: self.__sessionID=sid
if sid is None and create: sid=uuid.uuid() if sid: self.__sessionID=sid
def getSessionID(self, create=1): ''' obtain the session id from the request cookie, or, if not available, create a new one. ''' try: return self.__sessionID except AttributeError: sesskey=Configuration.SessionIDKey try: sid=self.requestCookie[sesskey].value except KeyError: # look in connection arguments for session i...
e45496da053c8025699b4d61f9cac3a4541d2b97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/e45496da053c8025699b4d61f9cac3a4541d2b97/Session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7183, 734, 12, 2890, 16, 752, 33, 21, 4672, 9163, 7161, 326, 1339, 612, 628, 326, 590, 3878, 16, 578, 16, 309, 486, 2319, 16, 752, 279, 394, 1245, 18, 9163, 775, 30, 327, 365, 16186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7183, 734, 12, 2890, 16, 752, 33, 21, 4672, 9163, 7161, 326, 1339, 612, 628, 326, 590, 3878, 16, 578, 16, 309, 486, 2319, 16, 752, 279, 394, 1245, 18, 9163, 775, 30, 327, 365, 16186,...
Reporter.endTest(self, method)
def endTest(self, method): Reporter.endTest(self, method) self.endLine(*self._getText(self.getStatus(method)))
2111afd113df8f03d5a8292816aa499e4230763f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2111afd113df8f03d5a8292816aa499e4230763f/reporter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 4709, 12, 2890, 16, 707, 4672, 365, 18, 409, 1670, 30857, 2890, 6315, 588, 1528, 12, 2890, 18, 588, 1482, 12, 2039, 20349, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 4709, 12, 2890, 16, 707, 4672, 365, 18, 409, 1670, 30857, 2890, 6315, 588, 1528, 12, 2890, 18, 588, 1482, 12, 2039, 20349, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
(xmm_mem128, {'opcode':[0x0F, 0x51], 'modrm':None, 'prefix':[0xF3]}))
(xmm_mem32 , {'opcode':[0x0F, 0x51], 'modrm':None, 'prefix':[0xF3]}))
def x86_type(op): t = x86_imm_operand_type(op) if t is None: t = x86_reg_operand_type(op) if t is None: t = x86_reloff_operand_type(op) if t is None: t = x86_mem_operand_type(op) return t
00e8212a9e073ac222647cc5738654d07c44702e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9699/00e8212a9e073ac222647cc5738654d07c44702e/x86_64_isa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 5292, 67, 723, 12, 556, 4672, 268, 273, 619, 5292, 67, 381, 81, 67, 4063, 464, 67, 723, 12, 556, 13, 225, 309, 268, 353, 599, 30, 268, 273, 619, 5292, 67, 1574, 67, 4063, 464,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 5292, 67, 723, 12, 556, 4672, 268, 273, 619, 5292, 67, 381, 81, 67, 4063, 464, 67, 723, 12, 556, 13, 225, 309, 268, 353, 599, 30, 268, 273, 619, 5292, 67, 1574, 67, 4063, 464,...
repos arg [option]
%s arg [option]
def do_help(self, arg): msg = """
27e83a3774587a84532112eaada08ead41debbe9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/27e83a3774587a84532112eaada08ead41debbe9/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5201, 12, 2890, 16, 1501, 4672, 1234, 273, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5201, 12, 2890, 16, 1501, 4672, 1234, 273, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return parmpagename, parmyear, parmmonth, parmoffset, parmoffset2, parmheight6, parmanniversary
strtemplate = args.group('template') if strtemplate: parmtemplate = wikiutil.unquoteWikiname(strtemplate) else: parmtemplate = deftemplate return parmpagename, parmyear, parmmonth, parmoffset, parmoffset2, parmheight6, parmanniversary, parmtemplate
def parseargs(args, defpagename, defyear, defmonth, defoffset, defoffset2, defheight6, defanniversary): strpagename = args.group('basepage') if strpagename: parmpagename = wikiutil.unquoteWikiname(strpagename) else: parmpagename = defpagename # multiple pagenames separated by "*" - split into list of pagenames parmpage...
8df0648e183013444c9153b284dd9390e635d11b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/8df0648e183013444c9153b284dd9390e635d11b/MonthCalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1968, 12, 1968, 16, 1652, 9095, 1069, 16, 1652, 6874, 16, 1652, 7496, 16, 443, 617, 74, 988, 16, 443, 617, 74, 988, 22, 16, 1652, 4210, 26, 16, 1652, 1072, 6760, 814, 4672, 609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1968, 12, 1968, 16, 1652, 9095, 1069, 16, 1652, 6874, 16, 1652, 7496, 16, 443, 617, 74, 988, 16, 443, 617, 74, 988, 22, 16, 1652, 4210, 26, 16, 1652, 1072, 6760, 814, 4672, 609...
- blockStatementExpr - expression defining syntax of statement that
- blockStatementExpr - expression defining syntax of statement that
def indentedBlock(blockStatementExpr, indentStack, indent=True): """Helper method for defining space-delimited indentation blocks, such as those used to define block statements in Python source code. Parameters: - blockStatementExpr - expression defining syntax of statement that is repeated within the indented block -...
106c1bd9e9826a8eaaf30140a9c58bfb1b6d1801 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12364/106c1bd9e9826a8eaaf30140a9c58bfb1b6d1801/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23786, 1768, 12, 2629, 3406, 4742, 16, 3504, 2624, 16, 3504, 33, 5510, 4672, 3536, 2276, 707, 364, 9364, 3476, 17, 3771, 1038, 329, 12018, 4398, 16, 4123, 487, 5348, 1399, 358, 4426, 120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23786, 1768, 12, 2629, 3406, 4742, 16, 3504, 2624, 16, 3504, 33, 5510, 4672, 3536, 2276, 707, 364, 9364, 3476, 17, 3771, 1038, 329, 12018, 4398, 16, 4123, 487, 5348, 1399, 358, 4426, 120...
if parameters.has_key['group_timeout']:
if parameters.has_key('group_timeout'):
def placeOriginate(self, args): cId, cGUID, cli, cld, body, auth, caller_name = self.eTry.getData() rnum, host, cld, credit_time, expires, no_progress_expires, forward_on_fail, user, passw, cli, \ parameters = args self.huntstop_scodes = parameters.get('huntstop_scodes', ()) if self.global_config.has_key('static_tr_out...
0db8e3500145e01fe06c72e23d08d8349949671b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8853/0db8e3500145e01fe06c72e23d08d8349949671b/b2bua_radius.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 4741, 3322, 12, 2890, 16, 833, 4672, 276, 548, 16, 276, 17525, 16, 4942, 16, 23451, 16, 1417, 16, 1357, 16, 4894, 67, 529, 273, 365, 18, 73, 7833, 18, 588, 751, 1435, 436, 2107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 4741, 3322, 12, 2890, 16, 833, 4672, 276, 548, 16, 276, 17525, 16, 4942, 16, 23451, 16, 1417, 16, 1357, 16, 4894, 67, 529, 273, 365, 18, 73, 7833, 18, 588, 751, 1435, 436, 2107...
self.hatari.debug_command("d %06x-%06x" % (self.first, self.last))
self.hatari.debug_command("d $%06x-$%06x" % (self.first, self.last))
def _get_disasm(self, address, move_idx): # TODO: uses brute force i.e. ask for more lines that user has # requested to be sure that the window is filled, assuming # 6 bytes is largest possible instruction+args size # (I don't remember anymore my m68k asm...) screenful = 6*self.lines # no move, left/right, up/down, pag...
9b9c5609dfbddf355007116fedb8e4b397858c40 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2811/9b9c5609dfbddf355007116fedb8e4b397858c40/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2251, 23522, 12, 2890, 16, 1758, 16, 3635, 67, 3465, 4672, 468, 2660, 30, 4692, 5186, 624, 2944, 277, 18, 73, 18, 6827, 364, 1898, 2362, 716, 729, 711, 468, 3764, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 2251, 23522, 12, 2890, 16, 1758, 16, 3635, 67, 3465, 4672, 468, 2660, 30, 4692, 5186, 624, 2944, 277, 18, 73, 18, 6827, 364, 1898, 2362, 716, 729, 711, 468, 3764, 358, ...
var n = new Node(t, DO)
n = new Node(t, DO)
def DO__build(t): var n = new Node(t, DO) n.isLoop = true return n
14e57c50767cb32286882c207d0afc37f010f284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/14e57c50767cb32286882c207d0afc37f010f284/Builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5467, 972, 3510, 12, 88, 4672, 290, 273, 394, 2029, 12, 88, 16, 5467, 13, 290, 18, 291, 6452, 273, 638, 327, 290, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5467, 972, 3510, 12, 88, 4672, 290, 273, 394, 2029, 12, 88, 16, 5467, 13, 290, 18, 291, 6452, 273, 638, 327, 290, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
0.60190723019723457473754000153561733926158688995
0.60190723019723457473754000153561733926158688996810645601776795916855358294623784016886370695825821535464409978314005090846929281349329460565572696199608
def bessel_K(nu,z,prec=53): r""" Implements the "K-Bessel function", or "modifed Bessel function, 2nd kind", with index (or "order") nu and argument z. Defn:
5d4d1a4315d1dc34b216f5bb99d2f5bcf1f776e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d4d1a4315d1dc34b216f5bb99d2f5bcf1f776e9/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 47, 12, 13053, 16, 94, 16, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 47, 17, 38, 403, 292, 445, 3113, 578, 315, 1711, 430, 329, 605, 403, 292, 445, 16, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 47, 12, 13053, 16, 94, 16, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 47, 17, 38, 403, 292, 445, 3113, 578, 315, 1711, 430, 329, 605, 403, 292, 445, 16, 5...
SDK["PYTHONEXEC"] = os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable))
if (os.path.islink(sys.executable)): SDK["PYTHONEXEC"] = os.path.join(os.path.dirname(sys.executable), os.readlink(sys.executable)) else: SDK["PYTHONEXEC"] = sys.executable
def SdkLocatePython(force_use_sys_executable = False): if (PkgSkip("PYTHON")==0): if (sys.platform == "win32" and not force_use_sys_executable): SDK["PYTHON"] = "thirdparty/win-python" if (GetOptimize() <= 2): SDK["PYTHON"] += "-dbg" if (platform.architecture()[0] == "64bit" and os.path.isdir(SDK["PYTHON"] + "-x64")): ...
2af783dc286e912ed77b5320b3e0e1b147ac4521 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/2af783dc286e912ed77b5320b3e0e1b147ac4521/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 1333, 340, 15774, 12, 5734, 67, 1202, 67, 9499, 67, 17751, 273, 1083, 4672, 309, 261, 11264, 6368, 2932, 16235, 20131, 7923, 631, 20, 4672, 309, 261, 9499, 18, 9898, 422, 315, 8082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 1333, 340, 15774, 12, 5734, 67, 1202, 67, 9499, 67, 17751, 273, 1083, 4672, 309, 261, 11264, 6368, 2932, 16235, 20131, 7923, 631, 20, 4672, 309, 261, 9499, 18, 9898, 422, 315, 8082...
complete.append(move)
complete.append(move)
def do_partial(self, cr, uid, ids, partial_datas, context={}): """ @ partial_datas : dict. contain details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom """ res = {} picking_obj = self.pool.get('stock.picking') delivery_obj = self.pool.get('stock.deliver...
18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 12938, 4672, 3536, 632, 4702, 67, 13178, 294, 2065, 18, 912, 3189, 434, 4702, 6002, 310, 3007, 191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 12938, 4672, 3536, 632, 4702, 67, 13178, 294, 2065, 18, 912, 3189, 434, 4702, 6002, 310, 3007, 191...
return def pollBOSSDB(self): """ _pollBOSSDB_ Poll the BOSSDB for completed job ids, making sure that
elif event == "TrackingComponent:pollDB": self.checkJobs() return return def pollLB(self): """ _pollLB_ Poll the LB through BOSS to update the job status get completed job ids, making sure that
def __call__(self, event, payload): """ _operator()_
b299645affb60052912599346c5588880cf6034e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/b299645affb60052912599346c5588880cf6034e/TrackingComponent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 871, 16, 2385, 4672, 3536, 389, 9497, 1435, 67, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 871, 16, 2385, 4672, 3536, 389, 9497, 1435, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
val1 = sets.Set(filter(lambda x: x >= 0, T1.column(c))) val2 = sets.Set(filter(lambda x: x >= 0, T2.column(c)))
val1 = set(filter(lambda x: x >= 0, T1.column(c))) val2 = set(filter(lambda x: x >= 0, T2.column(c)))
def is_row_and_col_balanced(T1, T2): """ Partial latin squares T1 and T2 are balanced if the symbols appearing in row r of T1 are the same as the symbols appearing in row r of T2, for each r, and if the same condition holds on columns. EXAMPLES:: sage: from sage.combinat.matrices.latin import * sage: T1 = matrix([[0,...
51de86397c8440b9e23046c2f90476176b06c3fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/51de86397c8440b9e23046c2f90476176b06c3fd/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 492, 67, 464, 67, 1293, 67, 12296, 72, 12, 56, 21, 16, 399, 22, 4672, 3536, 19060, 30486, 31206, 399, 21, 471, 399, 22, 854, 11013, 72, 309, 326, 7963, 7226, 5968, 316, 1027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 492, 67, 464, 67, 1293, 67, 12296, 72, 12, 56, 21, 16, 399, 22, 4672, 3536, 19060, 30486, 31206, 399, 21, 471, 399, 22, 854, 11013, 72, 309, 326, 7963, 7226, 5968, 316, 1027...
'option_list' : ('', '.TP 0\n'),
def __init__(self, document): nodes.NodeVisitor.__init__(self, document) self.settings = settings = document.settings lcode = settings.language_code self.language = languages.get_language(lcode) self.head = [] self.body = [] self.foot = [] self.section_level = 0 self.context = [] self.topic_class = '' self.colspecs = [...
33fb604531cb0884e8062b15ab6fc530c3335af8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/33fb604531cb0884e8062b15ab6fc530c3335af8/manpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 328, 710, 273, 1947, 18, 4923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1668, 4672, 2199, 18, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1947, 273, 1668, 18, 4272, 328, 710, 273, 1947, 18, 4923, ...
cmdclass = {'build_ext':PyBuildExt, 'install':PyBuildInstall, 'install_lib':PyBuildInstallLib},
cmdclass = {'build_ext': PyBuildExt, 'build_scripts': PyBuildScripts, 'install': PyBuildInstall, 'install_lib': PyBuildInstallLib},
def main(): # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning) setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0], url = "http://www.python.org/%s" % sys.version[:3], maintainer = "Guido van Rossum and the...
cd38b5dc6aafe583dde6593b6e345db70bb5e34d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/cd38b5dc6aafe583dde6593b6e345db70bb5e34d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 7005, 3397, 5599, 1347, 6849, 4381, 854, 9101, 1930, 5599, 5599, 18, 2188, 12103, 2932, 6185, 3113, 4743, 33, 758, 13643, 6210, 13, 3875, 12, 7, 4707, 1102, 6912, 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, 2774, 13332, 468, 7005, 3397, 5599, 1347, 6849, 4381, 854, 9101, 1930, 5599, 5599, 18, 2188, 12103, 2932, 6185, 3113, 4743, 33, 758, 13643, 6210, 13, 3875, 12, 7, 4707, 1102, 6912, 261, ...
print '+ found LilyPond, but could not extract version number.'
logger.info('+ found LilyPond, but could not extract version number.')
def checkConverterEntries(): ''' Check all converters (\converter entries) ''' checkProg('the pdflatex program', ['pdflatex $$i'], rc_entry = [ r'\converter pdflatex pdf2 "%%" "latex"' ]) ''' If we're running LyX in-place then tex2lyx will be found in ../src/tex2lyx. Add this directory to the PATH temporarily ...
b8ce87578f9d75ccccfc9a3eb0e0156576b6d158 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/b8ce87578f9d75ccccfc9a3eb0e0156576b6d158/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 3...
else: pass verify('...%(foo)s...' % {'foo':u"abc"} == u'...abc...') verify('...%(foo)s...' % {'foo':"abc"} == '...abc...') verify('...%(foo)s...' % {u'foo':"abc"} == '...abc...') verify('...%(foo)s...' % {u'foo':u"abc"} == u'...abc...') verify('...%(foo)s...' % {u'foo':u"abc",'def':123} == u'...abc...') verify('......
out = BitBucket() print >>out, u'abc' print >>out, u'abc', u'def' print >>out, u'abc', 'def' print >>out, 'abc', u'def' print >>out, u'abc\n' print >>out, u'abc\n', print >>out, u'abc\n', print >>out, u'def\n' print >>out, u'def\n' def test_mul(self): self.checkmethod('__mul__', u'abc', u'', -1) self.checkmethod('__m...
def test_fixup(s): s2 = u'\ud800\udc01' test_lecmp(s, s2) s2 = u'\ud900\udc01' test_lecmp(s, s2) s2 = u'\uda00\udc01' test_lecmp(s, s2) s2 = u'\udb00\udc01' test_lecmp(s, s2) s2 = u'\ud800\udd01' test_lecmp(s, s2) s2 = u'\ud900\udd01' test_lecmp(s, s2) s2 = u'\uda00\udd01' test_lecmp(s, s2) s2 = u'\udb00\udd01' test_le...
2297ca3284c57a984832427dbc81d0141ceff94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2297ca3284c57a984832427dbc81d0141ceff94c/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 904, 416, 12, 87, 4672, 272, 22, 273, 582, 8314, 1100, 17374, 64, 1100, 71, 1611, 11, 1842, 67, 298, 9625, 12, 87, 16, 272, 22, 13, 272, 22, 273, 582, 8314, 1100, 29, 713...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 904, 416, 12, 87, 4672, 272, 22, 273, 582, 8314, 1100, 17374, 64, 1100, 71, 1611, 11, 1842, 67, 298, 9625, 12, 87, 16, 272, 22, 13, 272, 22, 273, 582, 8314, 1100, 29, 713...
try: newob.id = ob.getId() except AttributeError: pass
id = ob.id if callable(id): id = id() try: newob._setId(id) except AttributeError: newob.id = id
def convert(self, ob): ob = aq_base(ob) k = self._klass if hasattr(k, '__basicnew__'): newob = k.__basicnew__() else: newob = new.instance(k, {}) try: newob.id = ob.getId() except AttributeError: pass newob.__dict__.update(ob.__dict__) if hasattr(newob, '_objects'): # Clear the children. for info in newob._objects: del...
4633d1b5c9f15bd8eccf2975cad17434500555bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/4633d1b5c9f15bd8eccf2975cad17434500555bb/migrate_ptk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 3768, 4672, 3768, 273, 279, 85, 67, 1969, 12, 947, 13, 417, 273, 365, 6315, 22626, 309, 3859, 12, 79, 16, 4940, 13240, 2704, 7250, 4672, 394, 947, 273, 417, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 3768, 4672, 3768, 273, 279, 85, 67, 1969, 12, 947, 13, 417, 273, 365, 6315, 22626, 309, 3859, 12, 79, 16, 4940, 13240, 2704, 7250, 4672, 394, 947, 273, 417, 16186, ...
opcodes = diff2._get_opcodes(['A', 'B b'], ['A', 'B b'],
opcodes = Diff._get_opcodes(['A', 'B b'], ['A', 'B b'],
def test_space_changes(self): opcodes = diff2._get_opcodes(['A', 'B b'], ['A', 'B b'], ignore_space_changes=0) self.assertEqual(('equal', 0, 1, 0, 1), opcodes.next()) self.assertEqual(('replace', 1, 2, 1, 2), opcodes.next())
f0e6a3afeb9f648f246fa50a5aac86386a0128b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/f0e6a3afeb9f648f246fa50a5aac86386a0128b9/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2981, 67, 6329, 12, 2890, 4672, 1061, 7000, 273, 13008, 6315, 588, 67, 556, 7000, 12, 3292, 37, 2187, 296, 38, 324, 17337, 10228, 37, 2187, 296, 38, 225, 324, 17337, 2305, 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, 1842, 67, 2981, 67, 6329, 12, 2890, 4672, 1061, 7000, 273, 13008, 6315, 588, 67, 556, 7000, 12, 3292, 37, 2187, 296, 38, 324, 17337, 10228, 37, 2187, 296, 38, 225, 324, 17337, 2305, 67...
% dst)
% dst)
def copyfile(src, dst, basedir): abssrc, absdst = [util.canonpath(basedir, basedir, x) for x in [src, dst]] if os.path.exists(absdst): raise util.Abort(_("cannot create %s: destination already exists") % dst) dstdir = os.path.dirname(absdst) if dstdir and not os.path.isdir(dstdir): try: os.makedirs(dstdir) except IOEr...
fd9ae6d76bfad317319f3406fa5aff5454ed274e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/fd9ae6d76bfad317319f3406fa5aff5454ed274e/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 12, 4816, 16, 3046, 16, 15573, 4672, 1223, 1049, 1310, 16, 2417, 11057, 273, 306, 1367, 18, 4169, 265, 803, 12, 31722, 16, 15573, 16, 619, 13, 364, 619, 316, 306, 4816, 16, 3046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 12, 4816, 16, 3046, 16, 15573, 4672, 1223, 1049, 1310, 16, 2417, 11057, 273, 306, 1367, 18, 4169, 265, 803, 12, 31722, 16, 15573, 16, 619, 13, 364, 619, 316, 306, 4816, 16, 3046...
neighbors = open_ports[(connection.source.name, 'output')]
key = (connection.source.name, 'output') if key not in open_ports: continue neighbors = open_ports[key]
def create_ungroup(self, full_pipeline, module_id):
efce38d0a227c8eb1e279ac00f9a09a317b8a8ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/efce38d0a227c8eb1e279ac00f9a09a317b8a8ed/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 318, 1655, 12, 2890, 16, 1983, 67, 14511, 16, 1605, 67, 350, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 67, 318, 1655, 12, 2890, 16, 1983, 67, 14511, 16, 1605, 67, 350, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)==0:
if (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)<=0:
def torps(): "Launch photon torpedo salvo." course = [] game.ididit = False if damaged(DPHOTON): prout(_("Photon tubes damaged.")) scanner.chew() return if game.torps == 0: prout(_("No torpedoes left.")) scanner.chew() return # First, get torpedo count while True: scanner.next() if scanner.token == "IHALPHA": huh() ret...
b599a12ccbd7f0b4dbe131e77576649372d3be69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/b599a12ccbd7f0b4dbe131e77576649372d3be69/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8934, 1121, 13332, 315, 9569, 24542, 265, 8934, 1845, 83, 12814, 12307, 1199, 4362, 273, 5378, 7920, 18, 350, 350, 305, 273, 1083, 309, 302, 301, 11349, 12, 8640, 44, 1974, 673, 4672, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8934, 1121, 13332, 315, 9569, 24542, 265, 8934, 1845, 83, 12814, 12307, 1199, 4362, 273, 5378, 7920, 18, 350, 350, 305, 273, 1083, 309, 302, 301, 11349, 12, 8640, 44, 1974, 673, 4672, 45...
Indices[0] = i;
Indices[0] = i
def main(): Comm = Epetra.PyComm(); args = sys.argv[1:] if len(args) == 0: Type = "Amesos_Lapack" else: Type = args[0]; NumGlobalRows = 10; Map = Epetra.Map(NumGlobalRows, 0, Comm); LHS_exact = Epetra.MultiVector(Map, 1); LHS = Epetra.MultiVector(Map, 1); RHS = Epetra.MultiVector(Map, 1); Matrix = Epetra.CrsMatrix(Ep...
b0de99b594baede77af9aff7c1b994a5d198a226 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/b0de99b594baede77af9aff7c1b994a5d198a226/exSolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 16854, 273, 512, 6951, 354, 18, 9413, 12136, 5621, 225, 833, 273, 2589, 18, 19485, 63, 21, 26894, 309, 562, 12, 1968, 13, 422, 374, 30, 1412, 273, 315, 9864, 281, 538, 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, 2774, 13332, 16854, 273, 512, 6951, 354, 18, 9413, 12136, 5621, 225, 833, 273, 2589, 18, 19485, 63, 21, 26894, 309, 562, 12, 1968, 13, 422, 374, 30, 1412, 273, 315, 9864, 281, 538, 67,...
self.help.hide()
self.help.show()
def customize_installer(self): """Customizing logo and images.""" # images stuff import locale self.lang = locale.getdefaultlocale()[0].split('_')[0] messages_uri = os.path.join(PATH, 'htmldocs/', self.distro, self.lang, 'messages.txt') if os.path.exists(messages_uri): pass else: messages_uri = os.path.join(PATH, 'html...
9bfd21fbc5963e59248fe62b6d1feadd6c0494e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2662/9bfd21fbc5963e59248fe62b6d1feadd6c0494e2/gtkui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20236, 67, 20163, 12, 2890, 4672, 3536, 3802, 6894, 19128, 471, 4602, 12123, 468, 4602, 10769, 1930, 2573, 365, 18, 4936, 273, 2573, 18, 588, 1886, 6339, 1435, 63, 20, 8009, 4939, 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, 20236, 67, 20163, 12, 2890, 4672, 3536, 3802, 6894, 19128, 471, 4602, 12123, 468, 4602, 10769, 1930, 2573, 365, 18, 4936, 273, 2573, 18, 588, 1886, 6339, 1435, 63, 20, 8009, 4939, 2668, ...
- the *radial distance* (``rho``),
- the *radial distance* (``radius``) from the `z`-axis - the *azimuth angle* (``azimuth``) from the positive `x`-axis
def gen_transform(self, r=None, theta=None, phi=None): """ EXAMPLE:: sage: T = Spherical('r', ['theta', 'phi']) sage: T.gen_transform(r=var('r'), theta=var('theta'), phi=var('phi')) (r*sin(theta)*cos(phi), r*sin(phi)*sin(theta), r*cos(theta)) """ return (r * sin(theta) * cos(phi), r * sin(theta) * sin(phi), r * cos(th...
ae9bf5e0d28a56cbf9d189e5545c9a8340d806de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ae9bf5e0d28a56cbf9d189e5545c9a8340d806de/plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 6547, 12, 2890, 16, 436, 33, 7036, 16, 7338, 33, 7036, 16, 7706, 33, 7036, 4672, 3536, 5675, 21373, 2866, 225, 272, 410, 30, 399, 273, 348, 21570, 2668, 86, 2187, 10228, 1448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 6547, 12, 2890, 16, 436, 33, 7036, 16, 7338, 33, 7036, 16, 7706, 33, 7036, 4672, 3536, 5675, 21373, 2866, 225, 272, 410, 30, 399, 273, 348, 21570, 2668, 86, 2187, 10228, 1448...
return None
return None, False
def parselogentry(orig_paths, revnum, author, date, message): self.ui.debug("parsing revision %d (%d changes)\n" % (revnum, len(orig_paths)))
c6a1068cdcfcb9641c61c95fff848144537955b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/c6a1068cdcfcb9641c61c95fff848144537955b7/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 26...
debugging = False
debugging, just_flex = False, False
def main(argv): debugging = False t0 = time.time() gamelists = ['condensed_games', 'condensed_flex'] if len(argv) > 1: debugging = True gamelist = ['terse_games'] games = [] for gamelist in gamelists: games.extend(LoadGames(debugging, gamelist)) t1 = time.time() print 'games loaded time', t1 - t0 RenderTopPage(games...
57a620ce7c222ab1bc56811e70ce40710d67be1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10357/57a620ce7c222ab1bc56811e70ce40710d67be1d/compute_stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 10450, 16, 2537, 67, 27592, 273, 1083, 16, 1083, 268, 20, 273, 813, 18, 957, 1435, 314, 9925, 1486, 273, 10228, 10013, 28003, 67, 75, 753, 2187, 296, 10013, 28003,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 10450, 16, 2537, 67, 27592, 273, 1083, 16, 1083, 268, 20, 273, 813, 18, 957, 1435, 314, 9925, 1486, 273, 10228, 10013, 28003, 67, 75, 753, 2187, 296, 10013, 28003,...
"HUGETLB_SHARE=1", pre))
"HUGETLB_SHARE=%d" % i, pre))
def elflink_rw_and_share_test(cmd, pre=""): """ Run the ordinary linkhuge_rw tests with sharing enabled """ clear_hpages() for mode in ("R", "W", "RW"): for i in range(2): do_test(cmd, combine("HUGETLB_ELFMAP=" + mode + " " + \ "HUGETLB_SHARE=1", pre)) clear_hpages()
8b47c3cf275fa7bed790fd6cb196c14d48b64112 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3715/8b47c3cf275fa7bed790fd6cb196c14d48b64112/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 74, 1232, 67, 21878, 67, 464, 67, 14419, 67, 3813, 12, 4172, 16, 675, 1546, 6, 4672, 3536, 1939, 326, 4642, 2101, 1692, 76, 21627, 67, 21878, 7434, 598, 21001, 3696, 3536, 2424, 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, 415, 74, 1232, 67, 21878, 67, 464, 67, 14419, 67, 3813, 12, 4172, 16, 675, 1546, 6, 4672, 3536, 1939, 326, 4642, 2101, 1692, 76, 21627, 67, 21878, 7434, 598, 21001, 3696, 3536, 2424, 6...
self.logger.warning('Imaging: While processing result %s for %s : %s' % (MACAddress, result, e))
self.logger.warning('Imaging: While processing result %s for %s : %s' % (result, MACAddress, e))
def onSuccess(result): try: if result[0]: self.myUUIDCache.set(result[1]['uuid'], MACAddress, result[1]['shortname'], result[1]['fqdn']) self.logger.info('Imaging: Updating cache for %s' % (MACAddress)) return result[1] except Exception, e: self.logger.warning('Imaging: While processing result %s for %s : %s' % (MACAdd...
433412e00fa04ae64b63408fab93248fec79b319 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/433412e00fa04ae64b63408fab93248fec79b319/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20613, 12, 2088, 4672, 775, 30, 309, 563, 63, 20, 14542, 365, 18, 4811, 5562, 1649, 18, 542, 12, 2088, 63, 21, 23962, 7080, 17337, 14246, 1887, 16, 563, 63, 21, 23962, 28650, 17337, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20613, 12, 2088, 4672, 775, 30, 309, 563, 63, 20, 14542, 365, 18, 4811, 5562, 1649, 18, 542, 12, 2088, 63, 21, 23962, 7080, 17337, 14246, 1887, 16, 563, 63, 21, 23962, 28650, 17337, 56...
rooted_system_dir = client_root + system_dir
def _MakeLinkFromMirrorToRealLocation(system_dir, client_root, system_links): """Create a link under client root what will resolve to system dir on server. See comments for CompilerDefaults class for rationale. Args: system_dir: a path such as /usr/include or /usr/lib/gcc/i486-linux-gnu/4.0.3/include client_root: a p...
a92f6458ee0d0ec18eb75f96ad74a1bfd349438f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/a92f6458ee0d0ec18eb75f96ad74a1bfd349438f/compiler_defaults.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6464, 2098, 1265, 13035, 774, 6955, 2735, 12, 4299, 67, 1214, 16, 1004, 67, 3085, 16, 2619, 67, 7135, 4672, 3536, 1684, 279, 1692, 3613, 1004, 1365, 4121, 903, 2245, 358, 2619, 1577...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6464, 2098, 1265, 13035, 774, 6955, 2735, 12, 4299, 67, 1214, 16, 1004, 67, 3085, 16, 2619, 67, 7135, 4672, 3536, 1684, 279, 1692, 3613, 1004, 1365, 4121, 903, 2245, 358, 2619, 1577...
result.AppendOutput(FResult.FAILED_ANIMATION, message)
result.AppendOutput(FResult.FAILED_ANIMATION, message)
def __CompileResult(self, testProcedure, execution): if (execution == None): return # Prepare the result structure. result = FResult() history = self.__GetHistoryFilenames() try: currentIndex = history.index(execution.GetExecutionDir()) previousIndex = currentIndex + 1 if (previousIndex >= len(history)): previous = N...
812120875bbb3b45be5fedb1694c62d50a11c572 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11176/812120875bbb3b45be5fedb1694c62d50a11c572/FTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9937, 1253, 12, 2890, 16, 1842, 17213, 16, 4588, 4672, 309, 261, 16414, 422, 599, 4672, 327, 225, 468, 7730, 326, 563, 3695, 18, 563, 273, 478, 1253, 1435, 225, 4927, 273, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9937, 1253, 12, 2890, 16, 1842, 17213, 16, 4588, 4672, 309, 261, 16414, 422, 599, 4672, 327, 225, 468, 7730, 326, 563, 3695, 18, 563, 273, 478, 1253, 1435, 225, 4927, 273, 365, 1...
and hasattr(self.readingOperatorClass, "splitEntityTone")):
and hasattr(self.readingOperatorClass, "splitEntityTone") and hasattr(self.readingOperatorClass, "getReadingEntities")):
def testGetTonalEntityOfSplitEntityToneIsIdentity(self): """ Test if the composition of C{getTonalEntity()} and C{splitEntityTone()} returns the original value for all entities returned by C{getReadingEntities()}. """ if not (hasattr(self.readingOperatorClass, "getTonalEntity") and hasattr(self.readingOperatorClass, "s...
3fae0e33b8734fcf813a0594f0def029b4fe4c3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/3fae0e33b8734fcf813a0594f0def029b4fe4c3b/readingoperator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 56, 9528, 1943, 951, 5521, 1943, 56, 476, 2520, 4334, 12, 2890, 4672, 3536, 7766, 309, 326, 16919, 434, 385, 95, 588, 56, 9528, 1943, 17767, 471, 385, 95, 4939, 1943, 56, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 56, 9528, 1943, 951, 5521, 1943, 56, 476, 2520, 4334, 12, 2890, 4672, 3536, 7766, 309, 326, 16919, 434, 385, 95, 588, 56, 9528, 1943, 17767, 471, 385, 95, 4939, 1943, 56, 47...
import time if self.basename == "konqueror": os.system(self.name + " --silent &") else: os.system(self.name + " -d &") time.sleep(PROCESS_CREATION_DELAY) rc = os.system(cmd)
if _iscommand("konqueror"): rc = os.system(self.name + " --silent '%s' &" % url) elif _iscommand("kfm"): rc = os.system(self.name + " -d '%s'" % url)
def _remote(self, action): cmd = "kfmclient %s >/dev/null 2>&1" % action rc = os.system(cmd) if rc: import time if self.basename == "konqueror": os.system(self.name + " --silent &") else: os.system(self.name + " -d &") time.sleep(PROCESS_CREATION_DELAY) rc = os.system(cmd) return not rc
2e17d91b4cf4bb0fb2a60b21783a4491e2a33017 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e17d91b4cf4bb0fb2a60b21783a4491e2a33017/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7222, 12, 2890, 16, 1301, 4672, 1797, 273, 315, 79, 25089, 2625, 738, 87, 405, 19, 5206, 19, 2011, 576, 22393, 21, 6, 738, 1301, 4519, 273, 1140, 18, 4299, 12, 4172, 13, 309, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7222, 12, 2890, 16, 1301, 4672, 1797, 273, 315, 79, 25089, 2625, 738, 87, 405, 19, 5206, 19, 2011, 576, 22393, 21, 6, 738, 1301, 4519, 273, 1140, 18, 4299, 12, 4172, 13, 309, 45...
600).rendevous(*all) self.client(server_ip, test, test_time, num_streams)
600).rendezvous(*all) self.client(server_ip, test, test_time, num_streams, test_specific_args, cpu_affinity)
def run_once(self, server_ip, client_ip, role, test='TCP_STREAM', test_time=10, stream_list=[1]): if test not in self.valid_tests: raise error.TestError('invalid test specified') self.role = role self.test = test self.test_time = test_time self.stream_list = stream_list
49de5e0d0b50e0987eaa02005bcaf93491bae0f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/49de5e0d0b50e0987eaa02005bcaf93491bae0f3/netperf2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1438, 67, 625, 16, 1004, 67, 625, 16, 2478, 16, 1842, 2218, 13891, 67, 13693, 2187, 1842, 67, 957, 33, 2163, 16, 1407, 67, 1098, 22850, 21, 65, 4672, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1438, 67, 625, 16, 1004, 67, 625, 16, 2478, 16, 1842, 2218, 13891, 67, 13693, 2187, 1842, 67, 957, 33, 2163, 16, 1407, 67, 1098, 22850, 21, 65, 4672, 30...
self.application.MessageBox(title = _("Load Palette"), message = _("\nCannot load palette %(filename)s!\n") % {'filename': filename})
self.application.MessageBox(title=_("Load Palette"), message=_("\nCannot load palette %(filename)s!\n") % {'filename': filename})
def LoadPalette(self, filename = None): if not filename: directory = config.user_palettes if not directory: directory = fs.gethome() filename, sysfilename=dialogman.getGenericOpenFilename(_("Load Palette"), app.managers.dialogmanager.palette_types, initialdir = directory, initialfile = filename) if not filename: retur...
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 25863, 12, 2890, 16, 1544, 273, 599, 4672, 309, 486, 1544, 30, 1867, 273, 642, 18, 1355, 67, 15081, 278, 1078, 309, 486, 1867, 30, 1867, 273, 2662, 18, 75, 546, 1742, 1435, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 25863, 12, 2890, 16, 1544, 273, 599, 4672, 309, 486, 1544, 30, 1867, 273, 642, 18, 1355, 67, 15081, 278, 1078, 309, 486, 1867, 30, 1867, 273, 2662, 18, 75, 546, 1742, 1435, 225, ...
sage: v = FormalSum([(1,2), (5, 'a'), (-3, 7)]); v 5*a + 2 - 3*7 sage: v[0] (5, 'a')
sage: v = FormalSum([(1,2), (5, 1000), (-3, 7)]); v 2 - 3*7 + 5*1000 sage: v[0] (1, 2)
def __getitem__(self, n): """ EXAMPLES::
343a27258123d6b4bcdd414db630c96bc707ebdd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/343a27258123d6b4bcdd414db630c96bc707ebdd/formal_sum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 290, 4672, 3536, 5675, 8900, 11386, 2866, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 290, 4672, 3536, 5675, 8900, 11386, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
offsets specified as an optional argument
offsets specified as an optional argument. The input args are filename,gpsRefTime,timescale,useLogColors,colormap each of which is NOT manditory.
def graphdata(self,filename='',gpsReferenceFloat=0.0,timescale='second',useLogColors=True,myColorMap='jet'): """ This method uses matplotlib.py to make plots of curves contained in this list! Currently all plotting functions are hard wired to the method! Method needs to have relative offsets specified as an optional ...
200b2ee25a4ba9a59c190b99bab9281409dd3222 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/200b2ee25a4ba9a59c190b99bab9281409dd3222/tracksearchutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 892, 12, 2890, 16, 3459, 2218, 2187, 75, 1121, 2404, 4723, 33, 20, 18, 20, 16, 8584, 31402, 2218, 8538, 2187, 1202, 1343, 12570, 33, 5510, 16, 4811, 2957, 863, 2218, 78, 278, 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, 2667, 892, 12, 2890, 16, 3459, 2218, 2187, 75, 1121, 2404, 4723, 33, 20, 18, 20, 16, 8584, 31402, 2218, 8538, 2187, 1202, 1343, 12570, 33, 5510, 16, 4811, 2957, 863, 2218, 78, 278, 11,...
sub_key = OpenKey(key, "sub_key")
sub_key = OpenKey(key, subkeystr)
def ReadTestData(self, root_key): # Check we can get default value for this key. val = QueryValue(root_key, test_key_name) self.assertEquals(val, "Default value", "Registry didn't give back the correct value")
cb4d553cf72817f27384af68a0c274424525721b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/cb4d553cf72817f27384af68a0c274424525721b/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 468, 2073, 732, 848, 336, 805, 460, 364, 333, 498, 18, 1244, 273, 2770, 620, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 468, 2073, 732, 848, 336, 805, 460, 364, 333, 498, 18, 1244, 273, 2770, 620, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 13, ...
stat_bar = self.gld.get_widget("statusbar") stat_bar.pop(self.stat_id) stat_bar.push(self.stat_id, _("Done."))
self._statusbar(msg="Updating compleated")
def _done_upgrade(self, widget, data=None): self.database.refresh() self._refresh_repos_tree() self._setup_pacs_models() stat_bar = self.gld.get_widget("statusbar") stat_bar.pop(self.stat_id) stat_bar.push(self.stat_id, _("Done."))
64e1ca025017891278f9940d2cf1488af419581a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/64e1ca025017891278f9940d2cf1488af419581a/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 67, 15097, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 365, 18, 6231, 18, 9144, 1435, 365, 6315, 9144, 67, 15564, 67, 3413, 1435, 365, 6315, 8401, 67, 84, 28965, 67, 7665, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8734, 67, 15097, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 365, 18, 6231, 18, 9144, 1435, 365, 6315, 9144, 67, 15564, 67, 3413, 1435, 365, 6315, 8401, 67, 84, 28965, 67, 7665, ...
print >> sys.stderr, "ERROR: Could not drop copyright_ct_pk_seq. Database said: '%s'" % error
print >> sys.stdout, "ERROR: Could not drop copyright_ct_pk_seq. Database said: '%s'" % error
def drop_database(): db = None try: db = libfosspython.FossDB() except Exception, inst: print >> sys.stderr, 'ERROR: %s, in %s' % inst sys.exit(1) result = db.access("DROP TABLE copyright CASCADE") if result != 0: error = db.errmsg() if error != 'table "copyright" does not exist': print >> sys.stderr, "ERROR: Could no...
9cbd5f71e1aaef822d05b637d8be742d93279010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6959/9cbd5f71e1aaef822d05b637d8be742d93279010/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 6231, 13332, 1319, 273, 599, 775, 30, 1319, 273, 2561, 5075, 1752, 18490, 18, 42, 8464, 2290, 1435, 1335, 1185, 16, 1804, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 3589, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 6231, 13332, 1319, 273, 599, 775, 30, 1319, 273, 2561, 5075, 1752, 18490, 18, 42, 8464, 2290, 1435, 1335, 1185, 16, 1804, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 3589, 30, ...
if row:
if row is not None:
def grid_slaves(self, row=None, column=None): args = () if row: args = args + ('-row', row) if column: args = args + ('-column', column) return map(self._nametowidget, self.tk.splitlist(self.tk.call( ('grid', 'slaves', self._w) + args)))
ecf89b66573e760f300e62d2ecb4f95095ecdf25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ecf89b66573e760f300e62d2ecb4f95095ecdf25/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3068, 67, 2069, 6606, 12, 2890, 16, 1027, 33, 7036, 16, 1057, 33, 7036, 4672, 833, 273, 1832, 309, 1027, 353, 486, 599, 30, 833, 273, 833, 397, 7707, 17, 492, 2187, 1027, 13, 309, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3068, 67, 2069, 6606, 12, 2890, 16, 1027, 33, 7036, 16, 1057, 33, 7036, 4672, 833, 273, 1832, 309, 1027, 353, 486, 599, 30, 833, 273, 833, 397, 7707, 17, 492, 2187, 1027, 13, 309, 10...
try: user = os.getenv('REMOTE_USER') except KeyError: pass
if self.env.has_key('REMOTE_USER'): user = self.env['REMOTE_USER'] else: user = 'anonymous'
def determine_user(self): ''' Determine who the user is ''' # determine the uid to use self.opendb('admin')
35909d931cbaf91b992743121e746286adec065f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/35909d931cbaf91b992743121e746286adec065f/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 1355, 12, 2890, 4672, 9163, 10229, 10354, 326, 729, 353, 9163, 468, 4199, 326, 4555, 358, 999, 365, 18, 556, 409, 70, 2668, 3666, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 4199, 67, 1355, 12, 2890, 4672, 9163, 10229, 10354, 326, 729, 353, 9163, 468, 4199, 326, 4555, 358, 999, 365, 18, 556, 409, 70, 2668, 3666, 6134, 2, -100, -100, -100, -100, -100, -100, ...
self.assert_(self._box._toc == {key0: os.path.join('new', key0), key1: os.path.join('new', key1)})
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0), key1: os.path.join('new', key1)})
def test_refresh(self): # Update the table of contents self.assertEqual(self._box._toc, {}) key0 = self._box.add(self._template % 0) key1 = self._box.add(self._template % 1) self.assertEqual(self._box._toc, {}) self._box._refresh() self.assert_(self._box._toc == {key0: os.path.join('new', key0), key1: os.path.join('new...
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9144, 12, 2890, 4672, 468, 2315, 326, 1014, 434, 2939, 365, 18, 11231, 5812, 12, 2890, 6315, 2147, 6315, 1391, 16, 2618, 13, 498, 20, 273, 365, 6315, 2147, 18, 1289, 12, 2890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9144, 12, 2890, 4672, 468, 2315, 326, 1014, 434, 2939, 365, 18, 11231, 5812, 12, 2890, 6315, 2147, 6315, 1391, 16, 2618, 13, 498, 20, 273, 365, 6315, 2147, 18, 1289, 12, 2890...
oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, libdep, libname), True)
if not libdep.startswith("/Developer/Panda3D/lib/"): oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, libdep, libname), True)
def MakeInstallerOSX(): if (RUNTIME): # Invoke the make_installer script. AddToPathEnv("DYLD_LIBRARY_PATH", GetOutputDir() + "/plugins") oscmd(SDK["PYTHONEXEC"] + " direct/src/plugin_installer/make_installer.py --version %s" % VERSION) return import compileall if (os.path.isfile("Panda3D-%s.dmg" % VERSION)): oscmd("rm...
d82b2d6a9607ce0e820253f708363882fb231cd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/d82b2d6a9607ce0e820253f708363882fb231cd0/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 4618, 60, 13332, 309, 261, 54, 25375, 4672, 468, 14373, 326, 1221, 67, 20163, 2728, 18, 1436, 774, 743, 3491, 2932, 40, 61, 12069, 67, 2053, 28254, 67, 4211, 3113, 968, 1447...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 4618, 60, 13332, 309, 261, 54, 25375, 4672, 468, 14373, 326, 1221, 67, 20163, 2728, 18, 1436, 774, 743, 3491, 2932, 40, 61, 12069, 67, 2053, 28254, 67, 4211, 3113, 968, 1447...
self.session = cookie['roundup_user_2'].value
self.session = cookie[self.cookie_name].value
def determine_user(self): ''' Determine who the user is ''' # determine the uid to use self.opendb('admin') # clean age sessions self.clean_sessions() # make sure we have the session Class sessions = self.db.sessions
4d4a6e6ca055528d188bbc7f645ade423a905185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4d4a6e6ca055528d188bbc7f645ade423a905185/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 1355, 12, 2890, 4672, 9163, 10229, 10354, 326, 729, 353, 9163, 468, 4199, 326, 4555, 358, 999, 365, 18, 556, 409, 70, 2668, 3666, 6134, 468, 2721, 9388, 8856, 365, 18, 6200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 1355, 12, 2890, 4672, 9163, 10229, 10354, 326, 729, 353, 9163, 468, 4199, 326, 4555, 358, 999, 365, 18, 556, 409, 70, 2668, 3666, 6134, 468, 2721, 9388, 8856, 365, 18, 6200, ...
self.child_cset.parents = [rev]
self.child_cset.parents[:] = [rev]
def parselogentry(orig_paths, revnum, author, date, message): self.ui.debug("parsing revision %d (%d changes)\n" % (revnum, len(orig_paths)))
c6a1068cdcfcb9641c61c95fff848144537955b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/c6a1068cdcfcb9641c61c95fff848144537955b7/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 26...
LOG.info("TKL: Adding Qline: %s" % nickmask) self.data.qlines[nickmask] = (wild_to_regex(nickmask), reason)
self.data.qlines[nickmask] = (nick_re, reason)
def handleCmd_TKL(self, prefix, args):
d2de3b5e189c91aafab22e60dc740a5f8730ec31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12372/d2de3b5e189c91aafab22e60dc740a5f8730ec31/bridge_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
model = self.pool.get(current_rec.get('object_id')[1])
current_rec = current_rec[0] model_name = self.pool.get('ir.model').browse(cr, uid, current_rec.get('object_id')[0]).model model = self.pool.get(model_name)
def check_model(self, cr, uid, ids, context = None): if context is None: context = {} current_rec = self.read(cr, uid, ids, context)[0] if current_rec: model = self.pool.get(current_rec.get('object_id')[1]) if hasattr(model, 'message_new'): return True return False
acacf36ebb8dd7f2d736e19cbfc70ed22b867fdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/acacf36ebb8dd7f2d736e19cbfc70ed22b867fdc/fetchmail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2284, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 273, 599, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 783, 67, 3927, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2284, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 273, 599, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 783, 67, 3927, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 32...
Returns the underlying _Curvedata class for this mwrank elliptic curve.
Returns the underlying :class:`_Curvedata` class for this mwrank elliptic curve.
def _curve_data(self): r""" Returns the underlying _Curvedata class for this mwrank elliptic curve.
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16683, 67, 892, 12, 2890, 4672, 436, 8395, 2860, 326, 6808, 389, 2408, 2155, 396, 667, 364, 333, 14721, 11500, 415, 549, 21507, 8882, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16683, 67, 892, 12, 2890, 4672, 436, 8395, 2860, 326, 6808, 389, 2408, 2155, 396, 667, 364, 333, 14721, 11500, 415, 549, 21507, 8882, 18, 2, -100, -100, -100, -100, -100, -100, -100...
self.fail('conversion specifier: %r failed.' % format)
self.fail("conversion specifier %r failed with '%s' input." % (format, strf_output))
def test_strptime(self): tt = time.gmtime(self.t) for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I', 'j', 'm', 'M', 'p', 'S', 'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'): format = ' %' + directive try: time.strptime(time.strftime(format, tt), format) except ValueError: self.fail('conversion specifier: %r failed...
2727b920770b6986b0c54ea9fe80c0e05c2f831e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2727b920770b6986b0c54ea9fe80c0e05c2f831e/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 10650, 12, 2890, 4672, 3574, 273, 813, 18, 75, 10838, 12, 2890, 18, 88, 13, 364, 8655, 316, 7707, 69, 2187, 296, 37, 2187, 296, 70, 2187, 296, 38, 2187, 296, 71, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 10650, 12, 2890, 4672, 3574, 273, 813, 18, 75, 10838, 12, 2890, 18, 88, 13, 364, 8655, 316, 7707, 69, 2187, 296, 37, 2187, 296, 70, 2187, 296, 38, 2187, 296, 71, 2187,...
if len(self.frags)>1: autoLeading = getattr(self,'autoLeading',getattr(style,'autoLeading','')) calcBounds = autoLeading not in ('','off') return cjkFragSplit(self.frags, maxWidths, calcBounds) elif not len(self.frags):
frags = self.frags nFrags = len(frags) if nFrags==1 and not hasattr(frags[0],'cbDefn'): f = frags[0] if hasattr(self,'blPara') and getattr(self,'_splitpara',0): return f.clone(kind=0, lines=self.blPara.lines) lines = [] lineno = 0 if hasattr(f,'text'): text = f.text else: text = ''.join(getattr(f,'words',[])) from re...
def breakLinesCJK(self, width): """Initially, the dumbest possible wrapping algorithm. Cannot handle font variations."""
eec5bf031dd52b1c7c781cc7f260f1554571bbc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/eec5bf031dd52b1c7c781cc7f260f1554571bbc1/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 898, 5763, 39, 19474, 12, 2890, 16, 1835, 4672, 3536, 2570, 6261, 16, 326, 302, 3592, 395, 3323, 14702, 4886, 18, 14143, 1640, 3512, 28401, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 898, 5763, 39, 19474, 12, 2890, 16, 1835, 4672, 3536, 2570, 6261, 16, 326, 302, 3592, 395, 3323, 14702, 4886, 18, 14143, 1640, 3512, 28401, 12123, 2, -100, -100, -100, -100, -100, -100, ...