rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
poll -- rate at which the worker pings the server to check for new jobs, this value will increase if the server has no jobs | verbose -- be more verbose about launching the workers | def worker(self, server='localhost', port=8081, workers=2, poll=1.0, username=getuser(), blocking=True, ssl=True, log_level=0, anonymous=False, priority=20, privkey=os.path.join(DSAGE_DIR, 'dsage_key'), pubkey=os.path.join(DSAGE_DIR, 'dsage_key.pub'), log_file=os.path.join(DSAGE_DIR, 'worker.log'), verbose=True): r""" ... | 1c2a5cdc48f78bcba5d9a0e59edf4be0b36490d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1c2a5cdc48f78bcba5d9a0e59edf4be0b36490d3/dsage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4322,
12,
2890,
16,
1438,
2218,
13014,
2187,
1756,
33,
3672,
11861,
16,
9798,
33,
22,
16,
7672,
33,
21,
18,
20,
16,
2718,
33,
588,
1355,
9334,
9445,
33,
5510,
16,
5832,
33,
5510,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4322,
12,
2890,
16,
1438,
2218,
13014,
2187,
1756,
33,
3672,
11861,
16,
9798,
33,
22,
16,
7672,
33,
21,
18,
20,
16,
2718,
33,
588,
1355,
9334,
9445,
33,
5510,
16,
5832,
33,
5510,
16,... |
title=u"Primary phone number", required=False, description=u"Phone number.") | title=u"Primary phone", required=False, description=u"Recommended telephone number.") | def setPassword(password): """Set the password in a hashed form, so it can be verified later. | 2bbe1ac63333590a7b48992c129c74244c28fb9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/2bbe1ac63333590a7b48992c129c74244c28fb9d/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23753,
12,
3664,
4672,
3536,
694,
326,
2201,
316,
279,
14242,
646,
16,
1427,
518,
848,
506,
13808,
5137,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23753,
12,
3664,
4672,
3536,
694,
326,
2201,
316,
279,
14242,
646,
16,
1427,
518,
848,
506,
13808,
5137,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Choice_boolean_False, | Choice_boolean_True, | def _debug_pref_keep_signals_always_connected(): #Ninad 2008-08-13 #-The current code always connects signals while shown a PM and #disconnects those in the close method. The above flag, if True, signals #are connected when PM is created (this is a proposed scheme in the new #command stack project) #As of 2008-08-13 th... | 055a1046aae4e0ab37b6a630fdc069542cd8f09e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/055a1046aae4e0ab37b6a630fdc069542cd8f09e/GlobalPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4148,
67,
25724,
67,
10102,
67,
29659,
67,
17737,
67,
8537,
13332,
468,
50,
267,
361,
4044,
28,
17,
6840,
17,
3437,
468,
17,
1986,
783,
981,
3712,
23441,
11505,
1323,
12188,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4148,
67,
25724,
67,
10102,
67,
29659,
67,
17737,
67,
8537,
13332,
468,
50,
267,
361,
4044,
28,
17,
6840,
17,
3437,
468,
17,
1986,
783,
981,
3712,
23441,
11505,
1323,
12188,
279,
... |
stdout.write(command.indata) | if command.status != 0: print "Command failed:", command.show_sense(), assert 0 == 1 sys.stdout.write(command.indata) | def readfile(pid, oid): len = 1 << 20 # 1 MB chunk size pos = 0 while True: command = OSDCommand() command.set_read(pid, oid, len, pos) run(command) if command.inlen == 0: break stdout.write(command.indata) pos += command.inlen | beb971f1cc15ac8efdfeb47155988403683d415f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/beb971f1cc15ac8efdfeb47155988403683d415f/readfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
768,
12,
6610,
16,
7764,
4672,
562,
273,
404,
2296,
4200,
225,
468,
404,
17897,
2441,
963,
949,
273,
374,
1323,
1053,
30,
1296,
273,
5932,
40,
2189,
1435,
1296,
18,
542,
67,
896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
768,
12,
6610,
16,
7764,
4672,
562,
273,
404,
2296,
4200,
225,
468,
404,
17897,
2441,
963,
949,
273,
374,
1323,
1053,
30,
1296,
273,
5932,
40,
2189,
1435,
1296,
18,
542,
67,
896,
... |
print "Method %s.reuse_browser() is not implemented." % gui.__name__ | print "Method %s.reuse_browser() is not implemented." % gui.__class__ | def can_reuse_browser(options, gui, config, previous): """ Check if the existing browser window can be reused. """ if not options.reuse_browser: pass # print "Browser reuse is not enabled." elif not options.reuse_count: pass # print "No browser is running yet." elif options.reuse_count >= options.reuse_browser: print "... | 027c090bbef85e497679171d6e54b2a678be7f1e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10655/027c090bbef85e497679171d6e54b2a678be7f1e/shotfactory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
266,
1202,
67,
11213,
12,
2116,
16,
13238,
16,
642,
16,
2416,
4672,
3536,
2073,
309,
326,
2062,
4748,
2742,
848,
506,
23312,
18,
3536,
309,
486,
702,
18,
266,
1202,
67,
11213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
266,
1202,
67,
11213,
12,
2116,
16,
13238,
16,
642,
16,
2416,
4672,
3536,
2073,
309,
326,
2062,
4748,
2742,
848,
506,
23312,
18,
3536,
309,
486,
702,
18,
266,
1202,
67,
11213,... |
gLogger.debug("SRM2Storage.getDirectory: Attempting to get local copies of %s directories." % len(urls)) | gLogger.debug( "SRM2Storage.getDirectory: Attempting to get local copies of %s directories." % len( urls ) ) | def getDirectory(self,path,localPath=False): """ Get a local copy in the current directory of a physical file specified by its path """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 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,
19831,
12,
2890,
16,
803,
16,
3729,
743,
33,
8381,
4672,
3536,
968,
279,
1191,
1610,
316,
326,
783,
1867,
434,
279,
11640,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
12,
2890,
16,
803,
16,
3729,
743,
33,
8381,
4672,
3536,
968,
279,
1191,
1610,
316,
326,
783,
1867,
434,
279,
11640,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
137... |
if needDNode: x509DNode = xmlDoc.createElementNS(keyInfoNS, 'ds:X509Data') x509SNode = xmlDoc.createElementNS(keyInfoNS, 'ds:X509SubjectName') textNode = xmlDoc.createTextNode(certinfo['DN']) x509SNode.appendChild(textNode) x509DNode.appendChild(x509SNode) keyInfoNode.appendChild(x509DNode) if not keyInfoNode.parentNo... | if needDNnode: if not DNnode: DNnode = xmlDoc.createElementNS(namespace, 'DN') textNode = xmlDoc.createTextNode(certInfo['DN']) DNnode.appendChild(textNode) if not DNnode.parentNode: userIdentityNode.appendChild(DNnode) | def verifyFromCertInfo(xmlDoc, userIdentityNode, namespace, prefix): " Use localJobID and probeName to find cert info file and insert info into XML record" # Collect data needed by certinfo reader JobIdentityNode = GetNode(xmlDoc.getElementsByTagNameNS(namespace, 'JobIdentity')) if JobIdentityNode == None: return loca... | 51ede0c708fe8defac686f35f9a8d75038b92238 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/51ede0c708fe8defac686f35f9a8d75038b92238/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
1265,
5461,
966,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
2672,
1191,
2278,
734,
471,
10695,
461,
358,
1104,
3320,
1123,
585,
471,
2243,
1123,
1368,
3167,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
1265,
5461,
966,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
2672,
1191,
2278,
734,
471,
10695,
461,
358,
1104,
3320,
1123,
585,
471,
2243,
1123,
1368,
3167,... |
ostream = tempfile.NamedTemporaryFile(suffix='.xml') | handle, path = tempfile.mkstemp(suffix='.xml') | def test_OFS_ObjectManager__importObjectFromFile_xml(self): from OFS.DTMLMethod import DTMLMethod from OFS.Folder import Folder from OFS.XMLExportImport import exportXML | 77e086c8919a0209ebd7eda0130e6c30bbba3b4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/77e086c8919a0209ebd7eda0130e6c30bbba3b4f/test_XMLExportImport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3932,
55,
67,
921,
1318,
972,
5666,
921,
13087,
67,
2902,
12,
2890,
4672,
628,
531,
4931,
18,
40,
2838,
1305,
1930,
463,
2838,
1305,
628,
531,
4931,
18,
3899,
1930,
12623,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3932,
55,
67,
921,
1318,
972,
5666,
921,
13087,
67,
2902,
12,
2890,
4672,
628,
531,
4931,
18,
40,
2838,
1305,
1930,
463,
2838,
1305,
628,
531,
4931,
18,
3899,
1930,
12623,
62... |
function[outevent] = float(function[inevent])/float(self[inevent]) | function[outevent] = ratio(function[inevent], self[inevent]) | def _estimate_ratio(self, outevent, inevent): for function in self.functions.itervalues(): if outevent not in function: try: function[outevent] = float(function[inevent])/float(self[inevent]) except UndefinedEvent: pass except ZeroDivisionError: if not function[inevent]: function[outevent] = 0.0 | c946fddc65f9475f074761482461e0e5046aafe8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8271/c946fddc65f9475f074761482461e0e5046aafe8/gprof2dot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23562,
67,
9847,
12,
2890,
16,
596,
2575,
16,
316,
2575,
4672,
364,
445,
316,
365,
18,
10722,
18,
2165,
2372,
13332,
309,
596,
2575,
486,
316,
445,
30,
775,
30,
445,
63,
2571,
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,
23562,
67,
9847,
12,
2890,
16,
596,
2575,
16,
316,
2575,
4672,
364,
445,
316,
365,
18,
10722,
18,
2165,
2372,
13332,
309,
596,
2575,
486,
316,
445,
30,
775,
30,
445,
63,
2571,
6... |
def _CreateDisks(cfg, instance): | def _CreateDisks(lu, instance): | def _CreateDisks(cfg, instance): """Create all disks for an instance. This abstracts away some work from AddInstance. Args: instance: the instance object Returns: True or False showing the success of the creation process """ info = _GetInstanceInfoText(instance) if instance.disk_template == constants.DT_FILE: file... | b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1684,
22021,
12,
28832,
16,
791,
4672,
3536,
1684,
777,
17164,
364,
392,
791,
18,
225,
1220,
8770,
87,
10804,
2690,
1440,
628,
1436,
1442,
18,
225,
6634,
30,
791,
30,
326,
791,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1684,
22021,
12,
28832,
16,
791,
4672,
3536,
1684,
777,
17164,
364,
392,
791,
18,
225,
1220,
8770,
87,
10804,
2690,
1440,
628,
1436,
1442,
18,
225,
6634,
30,
791,
30,
326,
791,
73... |
return S_OK(resDict) def __gfalprestage_wrapper(self,urls,lifetime): | return S_OK( resDict ) def __gfalprestage_wrapper( self, urls, lifetime ): | def __gfalls_wrapper(self,urls,depth): """ This is a function that can be reused everywhere to perform the gfal_ls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['srmv2_lslevels'] = depth | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... |
Provides a conversion to unicode without the UnicodeDecode error of the | Convert to Unicode without the UnicodeDecode error of the | def decode_path(path): """ Decode file/path string. Return `nodes.reprunicode` object. Provides a conversion to unicode without the UnicodeDecode error of the implicit 'ascii:strict' decoding. """ # see also http://article.gmane.org/gmane.text.docutils.user/2905 try: path = path.decode(sys.getfilesystemencoding(), 'st... | c56c993deb8a157289311b3a4c318b671d674421 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1532/c56c993deb8a157289311b3a4c318b671d674421/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
803,
12,
803,
4672,
3536,
6209,
585,
19,
803,
533,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
4037,
358,
9633,
2887,
326,
9633,
6615,
555,
434,
326,
10592,
296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
803,
12,
803,
4672,
3536,
6209,
585,
19,
803,
533,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
4037,
358,
9633,
2887,
326,
9633,
6615,
555,
434,
326,
10592,
296,... |
AddaModuleBlock.finish( self ) | AddaModuleRecord.finish( self ) | def finish(self): self.mOutfile.close() self.info( "aligned: %i links input, %i links passed, %i links failed, %i links not found" %\ (self.mInput, self.mNPassed, self.mNFailed, self.mNNotFound ) ) AddaModuleBlock.finish( self ) | ff8f0623f3572978d8b0e00be0794788e7924534 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8010/ff8f0623f3572978d8b0e00be0794788e7924534/AddaAlign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,
2890,
4672,
225,
365,
18,
81,
1182,
768,
18,
4412,
1435,
225,
365,
18,
1376,
12,
315,
20677,
30,
738,
77,
4716,
810,
16,
738,
77,
4716,
2275,
16,
738,
77,
4716,
2535,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,
2890,
4672,
225,
365,
18,
81,
1182,
768,
18,
4412,
1435,
225,
365,
18,
1376,
12,
315,
20677,
30,
738,
77,
4716,
810,
16,
738,
77,
4716,
2275,
16,
738,
77,
4716,
2535,
16,
... |
self.stopcomm = False | self.stopSocketReader = False | def waitforconn(self, function): """ <Purpose> Waits for a connection to a port. Calls function with a socket-like object if it succeeds. | 67cd0076600d34842ab89638d144dd99685df4ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/67cd0076600d34842ab89638d144dd99685df4ce/NATLayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
1884,
4646,
12,
2890,
16,
445,
4672,
3536,
411,
10262,
4150,
34,
678,
12351,
364,
279,
1459,
358,
279,
1756,
18,
23665,
445,
598,
279,
2987,
17,
5625,
733,
309,
518,
21933,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2529,
1884,
4646,
12,
2890,
16,
445,
4672,
3536,
411,
10262,
4150,
34,
678,
12351,
364,
279,
1459,
358,
279,
1756,
18,
23665,
445,
598,
279,
2987,
17,
5625,
733,
309,
518,
21933,
18,
2... |
print_test('cos') | print 'cos' | def testit(name, value, expected): if abs(value-expected) > eps: raise TestFailed, '%s returned %f, expected %f'%\ (name, value, expected) | 8c8ac34babc99b5c0ebbd8bdade89f73afabedc0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/8c8ac34babc99b5c0ebbd8bdade89f73afabedc0/test_math.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
305,
12,
529,
16,
460,
16,
2665,
4672,
309,
2417,
12,
1132,
17,
3825,
13,
405,
7785,
30,
1002,
7766,
2925,
16,
1995,
87,
2106,
738,
74,
16,
2665,
738,
74,
11,
30671,
261,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
305,
12,
529,
16,
460,
16,
2665,
4672,
309,
2417,
12,
1132,
17,
3825,
13,
405,
7785,
30,
1002,
7766,
2925,
16,
1995,
87,
2106,
738,
74,
16,
2665,
738,
74,
11,
30671,
261,
529,
... |
if base in ['authors', 'books', 'works', 'people', 'usergroup', 'permission']: | if base in ['authors', 'books', 'works', 'languages', 'people', 'usergroup', 'permission']: | def process_json(key, json): if key is None or json is None: return None base = key[1:].split("/")[0] if base in ['authors', 'books', 'works', 'people', 'usergroup', 'permission']: data = simplejson.loads(json) data = _process_data(data) json = simplejson.dumps(data) return json | f0adbd61739453c28b3d43a096d1532d0cda1181 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/f0adbd61739453c28b3d43a096d1532d0cda1181/ol_infobase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1977,
12,
856,
16,
1163,
4672,
309,
498,
353,
599,
578,
1163,
353,
599,
30,
327,
599,
1026,
273,
498,
63,
21,
30,
8009,
4939,
2932,
4898,
25146,
20,
65,
309,
1026,
316,
102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1977,
12,
856,
16,
1163,
4672,
309,
498,
353,
599,
578,
1163,
353,
599,
30,
327,
599,
1026,
273,
498,
63,
21,
30,
8009,
4939,
2932,
4898,
25146,
20,
65,
309,
1026,
316,
102... |
q3 = q3.filter( flt) q3 = q3.all() print '\n'.join( ' '+str(x) for x in q3) | if isinstance( flt, sqlalchemy.sql.Selectable): q3 = q3.from_statement( flt) else: q3 = q3.filter( flt) q3 = q3.all() for x in q3: print ' ', x | def test_klas_tree_structure(): #check whats in the tables: print '\n-------------- all tables:' for klas in [Employee, Manager, Engineer, Director]: table = mybuild.tables[ klas] print klas,':',[r for r in table.select().execute()] print '\n-------------- classes and subclassing:' session = sqlalchemy.orm.create_sess... | d9b3a2e587baabafe5ebcc0406b8e5b6168e245e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/d9b3a2e587baabafe5ebcc0406b8e5b6168e245e/example1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
79,
9521,
67,
3413,
67,
7627,
13332,
468,
1893,
600,
2323,
316,
326,
4606,
30,
1172,
2337,
82,
17908,
777,
4606,
2497,
364,
417,
9521,
316,
306,
41,
27520,
16,
8558,
16,
1050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
79,
9521,
67,
3413,
67,
7627,
13332,
468,
1893,
600,
2323,
316,
326,
4606,
30,
1172,
2337,
82,
17908,
777,
4606,
2497,
364,
417,
9521,
316,
306,
41,
27520,
16,
8558,
16,
1050... |
config = [{'frequency' : 44100, 'size' : 16, 'channels' : 1}] | configs = [{'frequency' : 44100, 'size' : 16, 'channels' : 1}] | def test_pre_init__keyword_args(self): | c4b8718001aeeebc2bceebe31a9490b28badd8a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1298/c4b8718001aeeebc2bceebe31a9490b28badd8a4/mixer_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1484,
67,
2738,
972,
11041,
67,
1968,
12,
2890,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1484,
67,
2738,
972,
11041,
67,
1968,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this = apply(_quickfix.new_MassStatusReqID, args) | this = _quickfix.new_MassStatusReqID(*args) | def __init__(self, *args): this = apply(_quickfix.new_MassStatusReqID, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
18060,
1482,
6113,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
18060,
1482,
6113,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... |
dependencies = [], | def __init__(self, directory, rcsSubDir, rcsBaseUrl, rcs): super(SystemTest, self).__init__(directory = directory, rcsSubDir = rcsSubDir, rcsBaseUrl = rcsBaseUrl, rcs = rcs, dependencies = [], executable = None, generateDoc = False) | 86d1cb8f56b7616de04a48f2f3921ba30e9ded39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8259/86d1cb8f56b7616de04a48f2f3921ba30e9ded39/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
436,
2143,
1676,
1621,
16,
436,
2143,
14074,
16,
436,
2143,
4672,
2240,
12,
3163,
4709,
16,
365,
2934,
972,
2738,
972,
12,
5149,
273,
1867,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
436,
2143,
1676,
1621,
16,
436,
2143,
14074,
16,
436,
2143,
4672,
2240,
12,
3163,
4709,
16,
365,
2934,
972,
2738,
972,
12,
5149,
273,
1867,
16,... | |
script = nic_params.get("script") downscript = nic_params.get("downscript") | script = nic_params.get("nic_script") downscript = nic_params.get("nic_downscript") | def add_pcidevice(help, host): return " -pcidevice host=%s" % host | 1997a9703636f92bd09e06df284d1633527ca436 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/1997a9703636f92bd09e06df284d1633527ca436/kvm_vm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2436,
831,
633,
12,
5201,
16,
1479,
4672,
327,
315,
300,
2436,
831,
633,
1479,
5095,
87,
6,
738,
1479,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
2436,
831,
633,
12,
5201,
16,
1479,
4672,
327,
315,
300,
2436,
831,
633,
1479,
5095,
87,
6,
738,
1479,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.path.join(dir, 'lib'... | join(execdir, 'doc'), join(sys.prefix, 'doc/python-docs-' + split(sys.version)[0]), join(sys.prefix, 'doc/python-' + split(sys.version)[0]), join(sys.prefix, 'doc/python-docs-' + sys.version[:3]), join(sys.prefix, 'doc/python-' + sys.version[:3]), join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and o... | def __init__(self, input, output): self.input = input self.output = output self.docdir = None execdir = os.path.dirname(sys.executable) homedir = os.environ.get('PYTHONHOME') for dir in [os.environ.get('PYTHONDOCS'), homedir and os.path.join(homedir, 'doc'), os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split... | 4791c113635043714cd938a027459029803ec546 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/4791c113635043714cd938a027459029803ec546/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
876,
4672,
365,
18,
2630,
273,
810,
365,
18,
2844,
273,
876,
365,
18,
2434,
1214,
273,
599,
1196,
1214,
273,
1140,
18,
803,
18,
12287,
12,
949... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
810,
16,
876,
4672,
365,
18,
2630,
273,
810,
365,
18,
2844,
273,
876,
365,
18,
2434,
1214,
273,
599,
1196,
1214,
273,
1140,
18,
803,
18,
12287,
12,
949... |
self.canvas.lower(self.id, belowthis) | self.canvas.tag_lower(self.id, belowthis) | def lower(self, belowthis=None): self.canvas.lower(self.id, belowthis) | f0c06c96c8ea1257fc228a6111fb74dba48579f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f0c06c96c8ea1257fc228a6111fb74dba48579f3/Canvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2612,
12,
2890,
16,
5712,
2211,
33,
7036,
4672,
365,
18,
15424,
18,
8167,
12,
2890,
18,
350,
16,
5712,
2211,
13,
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,
2612,
12,
2890,
16,
5712,
2211,
33,
7036,
4672,
365,
18,
15424,
18,
8167,
12,
2890,
18,
350,
16,
5712,
2211,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if self.enablealtsrc == 'True': | if settings.ENABLE_ALT_SRC: | def maketable(self): self.translations = self.gettranslations() items = [] suggestions = {} if (self.reviewmode or self.translatemode) and self.item is not None: suggestions = {self.item: self.project.getsuggestions(self.pofilename, self.item)} for row, unit in enumerate(self.translations): tmsuggestions = [] if isinst... | 76cab2da13d19d9bec2385a63151ab723c6876d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/76cab2da13d19d9bec2385a63151ab723c6876d7/translatepage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
429,
12,
2890,
4672,
365,
18,
13457,
273,
365,
18,
588,
13457,
1435,
1516,
273,
5378,
17969,
273,
2618,
309,
261,
2890,
18,
16041,
3188,
578,
365,
18,
13929,
3188,
13,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
429,
12,
2890,
4672,
365,
18,
13457,
273,
365,
18,
588,
13457,
1435,
1516,
273,
5378,
17969,
273,
2618,
309,
261,
2890,
18,
16041,
3188,
578,
365,
18,
13929,
3188,
13,
471,
... |
type, value = lExcinfo[:2] | type, value = (lExcinfo[0],lExcinfo[1]) | def __getExceptionString( self, lException = False ): if lException: lExcinfo = lException else: lExcinfo = sys.exc_info() type, value = lExcinfo[:2] return "== EXCEPTION ==\n%s:%s\n%s===============" % ( type, value, "\n".join( traceback.format_tb( lExcinfo[2] ) ) ) | 00e13738d94dd08de6744b950d46c69f83e164e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/00e13738d94dd08de6744b950d46c69f83e164e4/Logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
503,
780,
12,
365,
16,
328,
503,
273,
1083,
262,
30,
309,
328,
503,
30,
328,
29924,
1376,
273,
328,
503,
469,
30,
328,
29924,
1376,
273,
2589,
18,
10075,
67,
1376,
1435,
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,
1001,
588,
503,
780,
12,
365,
16,
328,
503,
273,
1083,
262,
30,
309,
328,
503,
30,
328,
29924,
1376,
273,
328,
503,
469,
30,
328,
29924,
1376,
273,
2589,
18,
10075,
67,
1376,
1435,
6... |
logger.debug("...adding to trash (%s)", self.trash.getItemDisplayName().encode('ascii', 'replace')) | if DEBUG: logger.debug("...adding to trash (%s)", self.trash.getItemDisplayName().encode('ascii', 'replace')) | def remove (self, item): """ Remove an item from the collection """ | 495ed4931d7b8d6efa65c3e08861fd8c42b76d58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/495ed4931d7b8d6efa65c3e08861fd8c42b76d58/collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
261,
2890,
16,
761,
4672,
3536,
3581,
392,
761,
628,
326,
1849,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
261,
2890,
16,
761,
4672,
3536,
3581,
392,
761,
628,
326,
1849,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if argtype._ffishape == 'u': | if argtype._ffishape == 'u' or argtype._ffishape == 'c': | def _unwrap_args(self, argtypes, args): """ Convert from ctypes high-level values to low-level values suitables to be passed to _ffi """ assert len(argtypes) == len(args) newargs = [] # XXX: investigate the difference between _ffishape and _ffiargshape for argtype, arg in zip(argtypes, args): if argtype._ffishape == 'u... | 686c17684cfe16abd1df735869b6a7b3ea8e1cdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/686c17684cfe16abd1df735869b6a7b3ea8e1cdf/function.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
318,
4113,
67,
1968,
12,
2890,
16,
1501,
2352,
16,
833,
4672,
3536,
4037,
628,
6983,
3551,
17,
2815,
924,
358,
4587,
17,
2815,
924,
1597,
305,
1538,
358,
506,
2275,
358,
389,
1403... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
4113,
67,
1968,
12,
2890,
16,
1501,
2352,
16,
833,
4672,
3536,
4037,
628,
6983,
3551,
17,
2815,
924,
358,
4587,
17,
2815,
924,
1597,
305,
1538,
358,
506,
2275,
358,
389,
1403... |
if uploadable > 0: | def cancel_all(): for item in paused: messages.CancelDownload(item.id).send_to_backend() menu.append((_('Cancel Download'), cancel_all)) if uploadable: | def resume_all(): for item in selection: messages.ResumeDownload(item.id).send_to_backend() | 841888bd2d8fb6b7cd9bf7de6ed4a4a6328edb5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/841888bd2d8fb6b7cd9bf7de6ed4a4a6328edb5c/itemcontextmenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10774,
67,
454,
13332,
364,
761,
316,
4421,
30,
2743,
18,
20911,
7109,
12,
1726,
18,
350,
2934,
4661,
67,
869,
67,
9993,
1435,
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,
10774,
67,
454,
13332,
364,
761,
316,
4421,
30,
2743,
18,
20911,
7109,
12,
1726,
18,
350,
2934,
4661,
67,
869,
67,
9993,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/.../release/RunChandler... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests=TestAllDayEvent -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../debug/RunChandler... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles ... | /.../chandler... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests=TestAllDayEvent -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../chandlerDebug... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests... | def runFuncTestsSingly(options): """ Run functional tests each in its own process. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release', 'debug'] >>> runFuncTestsSingly(options) /.../release/RunChandler... --create --catch=tests ... | 2268248f0e4728b63ca1842648cbad866d679472 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/2268248f0e4728b63ca1842648cbad866d679472/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2622,
14650,
55,
310,
715,
12,
2116,
4672,
3536,
1939,
18699,
7434,
1517,
316,
2097,
4953,
1207,
18,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2622,
14650,
55,
310,
715,
12,
2116,
4672,
3536,
1939,
18699,
7434,
1517,
316,
2097,
4953,
1207,
18,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702... |
mx[i] = data.getFloat64() my[i] = data.getFloat64() | mx[sender] = data.getFloat64() my[sender] = data.getFloat64() | def setOpponentMove(data, sender=0): global mx, my if (mode == MODE_4P): mx[i] = data.getFloat64() my[i] = data.getFloat64() elif (mode==MODE_2P): mx[3] = mx[2] = data.getFloat64() my[3] = my[2] = data.getFloat64() | ef36154c23fcfe8214e1ec8765e36b2de590f9fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/ef36154c23fcfe8214e1ec8765e36b2de590f9fa/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
3817,
1029,
7607,
12,
892,
16,
5793,
33,
20,
4672,
2552,
7938,
16,
3399,
309,
261,
3188,
422,
11741,
67,
24,
52,
4672,
7938,
63,
15330,
65,
273,
501,
18,
588,
4723,
1105,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
3817,
1029,
7607,
12,
892,
16,
5793,
33,
20,
4672,
2552,
7938,
16,
3399,
309,
261,
3188,
422,
11741,
67,
24,
52,
4672,
7938,
63,
15330,
65,
273,
501,
18,
588,
4723,
1105,
1435,
... |
assert SVN_URL.startswith(SVN_URL_HEAD) svnbranch = SVN_URL[len(SVN_URL_HEAD):].strip('/') | svnbranch = SVN_URL if TRIM_URL_UP_TO in svnbranch: svnbranch = svnbranch.split(TRIM_URL_UP_TO, 1)[1] svnbranch = svnbranch.strip('/') | def get_subversion_info(space): assert SVN_URL.startswith(SVN_URL_HEAD) svnbranch = SVN_URL[len(SVN_URL_HEAD):].strip('/') return space.newtuple([space.wrap('PyPy'), space.wrap(svnbranch), space.wrap(str(svn_revision()))]) | 17526fecd6636725420214c18eed7ba7974cd9c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/17526fecd6636725420214c18eed7ba7974cd9c0/version.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1717,
1589,
67,
1376,
12,
2981,
4672,
5893,
6423,
2645,
273,
29537,
50,
67,
1785,
309,
22800,
49,
67,
1785,
67,
3079,
67,
4296,
316,
5893,
6423,
2645,
30,
5893,
6423,
2645,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1717,
1589,
67,
1376,
12,
2981,
4672,
5893,
6423,
2645,
273,
29537,
50,
67,
1785,
309,
22800,
49,
67,
1785,
67,
3079,
67,
4296,
316,
5893,
6423,
2645,
30,
5893,
6423,
2645,
27... |
self.watcher.add_watch(RoomWatch()) | def __init__(self,network,size=None,ui=None): self.dt=0.001 self.tau_filter=0.03 self.delay=10 self.current_tick=0 self.time_shown=0.5 self.timelog=timelog.TimeLog() self.network=network self.watcher=watcher.Watcher(self.timelog) self.watcher.add_watch(NodeWatch()) self.watcher.add_watch(EnsembleWatch()) self.watcher.... | c84f5121abb9d03cdbbc5ed01466046d771afed3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9336/c84f5121abb9d03cdbbc5ed01466046d771afed3/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5185,
16,
1467,
33,
7036,
16,
4881,
33,
7036,
4672,
365,
18,
7510,
33,
20,
18,
11664,
365,
18,
29908,
67,
2188,
33,
20,
18,
4630,
365,
18,
10790,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5185,
16,
1467,
33,
7036,
16,
4881,
33,
7036,
4672,
365,
18,
7510,
33,
20,
18,
11664,
365,
18,
29908,
67,
2188,
33,
20,
18,
4630,
365,
18,
10790,
33,
... | |
except Exception, e: | except Exception: | def getName(rank_method_code, ln=CFG_SITE_LANG, type='ln'): """Returns the name of the method if it exists""" try: rnkid = run_sql("SELECT id FROM rnkMETHOD where name=%s", (rank_method_code, )) if rnkid: rnkid = str(rnkid[0][0]) res = run_sql("SELECT value FROM rnkMETHODNAME where type=%s and ln=%s and id_rnkMETHOD=%... | 846554c8d6e9969d880e3e7a83c4fe1b09d53065 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/846554c8d6e9969d880e3e7a83c4fe1b09d53065/bibrank_tag_based_indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1723,
12,
11500,
67,
2039,
67,
710,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
16,
618,
2218,
2370,
11,
4672,
3536,
1356,
326,
508,
434,
326,
707,
309,
518,
1704,
8395,
225,
775,
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,
1723,
12,
11500,
67,
2039,
67,
710,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
16,
618,
2218,
2370,
11,
4672,
3536,
1356,
326,
508,
434,
326,
707,
309,
518,
1704,
8395,
225,
775,
30,
... |
raise TransferError('rsync error code %s, message:' % rsync_exit, rsync_p.childerr.read()) | raise TransferError('rsync error code %s, message:' % rsync_exit, rsync_p.childerr.read()) tmpfile = tempfile.mkstemp() rsync = ("/usr/bin/rsync --timeout 10 -e '%s' '%s' '%s' " % (ssh, tmpfile[1], to_path+'/.transfer_complete')) rsync_p = popen2.Popen3(rsync, True) rsync_exit = os.WEXITSTATUS(rsync_p.wait()) if r... | def rsync_to_xs(from_path, to_path, keyfile, user): # add a trailing slash to ensure # that we don't generate a subdir # at the remote end. rsync oddities... if not re.compile('/$').search(from_path): from_path = from_path + '/' ssh = '/usr/bin/ssh -F /dev/null -o "PasswordAuthentication no" -i "%s" -l "%s"' \ % (key... | 7ccf9331a585948e64c58234f9e6f35ddf9013d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9380/7ccf9331a585948e64c58234f9e6f35ddf9013d0/ds_backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3597,
1209,
67,
869,
67,
13713,
12,
2080,
67,
803,
16,
358,
67,
803,
16,
28632,
16,
729,
4672,
225,
468,
527,
279,
7341,
9026,
358,
3387,
468,
716,
732,
2727,
1404,
2103,
279,
16921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3597,
1209,
67,
869,
67,
13713,
12,
2080,
67,
803,
16,
358,
67,
803,
16,
28632,
16,
729,
4672,
225,
468,
527,
279,
7341,
9026,
358,
3387,
468,
716,
732,
2727,
1404,
2103,
279,
16921,
... |
TsvReader().read(tsv, self.tcf) | TsvReader().read(tsv, FromFilePopulator(self.tcf)) | def test_quotes(self): tsv = StringIO('''*Variable*\t*Value* | 8c961662b534c9a3780965d6a23449f1204ff68b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/8c961662b534c9a3780965d6a23449f1204ff68b/test_tsvreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18653,
12,
2890,
4672,
22731,
273,
15777,
2668,
6309,
14,
3092,
12174,
88,
14,
620,
14,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18653,
12,
2890,
4672,
22731,
273,
15777,
2668,
6309,
14,
3092,
12174,
88,
14,
620,
14,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.messagequeue.put(msg) | self.console.message(self, msg) | def message(self, msg): self.messagequeue.put(msg) | 6ce7414417db4dd27c8e71c88381f1ffd3608f30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/6ce7414417db4dd27c8e71c88381f1ffd3608f30/clients.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
12,
2890,
16,
1234,
4672,
365,
18,
2150,
4000,
18,
458,
12,
3576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
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,
883,
12,
2890,
16,
1234,
4672,
365,
18,
2150,
4000,
18,
458,
12,
3576,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
But if a person has no photo | However, if a person has no photo, the view raises a NotFound error. | def test_personPhotoView(): r"""Test for PersonPhotoView Let's create a new person: >>> from schoolbell.app.app import Person >>> person = Person() >>> person.__name__ = "Jonas" >>> person.title = "Jonas Petraitis" >>> person.photo = "I am a photo!" Let's create a person photo view >>> request = TestRequest() >>> fr... | 5d1e5d9e4f62357cff332e9f67f2986d9f474f5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5d1e5d9e4f62357cff332e9f67f2986d9f474f5f/test_app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12479,
19934,
1767,
13332,
436,
8395,
4709,
364,
11573,
19934,
1767,
225,
10559,
1807,
752,
279,
394,
6175,
30,
225,
4080,
628,
18551,
1371,
70,
1165,
18,
2910,
18,
2910,
1930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12479,
19934,
1767,
13332,
436,
8395,
4709,
364,
11573,
19934,
1767,
225,
10559,
1807,
752,
279,
394,
6175,
30,
225,
4080,
628,
18551,
1371,
70,
1165,
18,
2910,
18,
2910,
1930,
... |
except IOError: | except IOError, reason: | def main(self): | f25521a6d07c968b7f585598e43d332e4c2af3bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f25521a6d07c968b7f585598e43d332e4c2af3bb/pybench.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
event.Check (arguments.get ('Check', False)) | check = arguments.get ('Check', None) if check is not None: event.Check (check) | def OnCommand(self, event): """ Catch commands and pass them along to the blocks. Our events have ids greater than wx.ID_HIGHEST Delay imports to avoid circular references. """ from osaf.framework.blocks.Block import Block | 1270ddee241b0e50a8a397d38f8d2095cf1c1767 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1270ddee241b0e50a8a397d38f8d2095cf1c1767/Application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2189,
12,
2890,
16,
871,
4672,
3536,
21984,
4364,
471,
1342,
2182,
7563,
358,
326,
4398,
18,
29613,
2641,
1240,
3258,
6802,
2353,
7075,
18,
734,
67,
44,
3047,
3900,
882,
20165,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2189,
12,
2890,
16,
871,
4672,
3536,
21984,
4364,
471,
1342,
2182,
7563,
358,
326,
4398,
18,
29613,
2641,
1240,
3258,
6802,
2353,
7075,
18,
734,
67,
44,
3047,
3900,
882,
20165,
100... |
'all':'-DWXTOPDIR=%s../' % prefix, | 'not_autoconf':dirflags, | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return prefix = ''.join(['../' for i in range(0,depth)]) args = { 'all':'-DWXTOPDIR=%s../' % prefix, 'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m... | 2e1a466fcba0078a8d5c0ae259fe8cb854509bb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2e1a466fcba0078a8d5c0ae259fe8cb854509bb1/regenMakefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1676,
6540,
768,
12,
723,
16,
4283,
16,
1257,
4672,
324,
3223,
273,
306,
92,
364,
619,
316,
1257,
309,
619,
18,
5839,
1918,
2668,
18,
70,
16391,
6134,
65,
309,
562,
12,
70,
3223... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1676,
6540,
768,
12,
723,
16,
4283,
16,
1257,
4672,
324,
3223,
273,
306,
92,
364,
619,
316,
1257,
309,
619,
18,
5839,
1918,
2668,
18,
70,
16391,
6134,
65,
309,
562,
12,
70,
3223... |
self.data, self.objects = self.prepareContents(registry) | self.data, self.objects = self.prepareContents(registry, register_subdirs=changed) | def getContents(self, registry): if self.data is None: try: self.data, self.objects = self.prepareContents(registry) except: # DEBUG import traceback traceback.print_exc() | 752208f03c91375821f38a1c99d21f34d9206013 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/752208f03c91375821f38a1c99d21f34d9206013/DirectoryView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15015,
12,
2890,
16,
4023,
4672,
309,
365,
18,
892,
353,
599,
30,
775,
30,
365,
18,
892,
16,
365,
18,
6911,
273,
365,
18,
9366,
6323,
12,
9893,
16,
1744,
67,
1717,
8291,
33,
6703,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15015,
12,
2890,
16,
4023,
4672,
309,
365,
18,
892,
353,
599,
30,
775,
30,
365,
18,
892,
16,
365,
18,
6911,
273,
365,
18,
9366,
6323,
12,
9893,
16,
1744,
67,
1717,
8291,
33,
6703,
... |
for libname in libraries or []: | for libname in libraries: | def _link (self, body, headers, include_dirs, libraries, library_dirs, lang): if self.compiler.compiler_type=='msvc': libraries = libraries[:] library_dirs = library_dirs[:] if lang in ['f77','f90']: lang = 'c' # always use system linker when using MSVC compiler if self.fcompiler: for d in self.fcompiler.library_dirs o... | 0168bce06a2d0266a2d337a2f587ec1327d19fb4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/0168bce06a2d0266a2d337a2f587ec1327d19fb4/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1232,
261,
2890,
16,
1417,
16,
1607,
16,
2341,
67,
8291,
16,
14732,
16,
5313,
67,
8291,
16,
3303,
4672,
309,
365,
18,
9576,
18,
9576,
67,
723,
18920,
959,
4227,
4278,
14732,
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,
389,
1232,
261,
2890,
16,
1417,
16,
1607,
16,
2341,
67,
8291,
16,
14732,
16,
5313,
67,
8291,
16,
3303,
4672,
309,
365,
18,
9576,
18,
9576,
67,
723,
18920,
959,
4227,
4278,
14732,
273,
... |
ips.extend(re.findall('[\dabcdef]:[\dabcdef:]+[\dabcdef]', ip_string, re.IGNORECASE)) | ips.extend(re.findall('[\dabcdef]+:[\dabcdef:]+[\dabcdef]', ip_string, re.IGNORECASE)) | def ExtractIPsFromString(ip_string): """Return a tuple of ip addressed held in a string.""" ips = [] # IPV6 If this regexp is too loose, see Regexp-IPv6 in CPAN for inspiration. ips.extend(re.findall('[\dabcdef]:[\dabcdef:]+[\dabcdef]', ip_string, re.IGNORECASE)) ips.extend(re.findall('\d+\.\d+\.\d+\.+\d+', ip_string)... | b1b71e295ed82c129ac0638b3995fc36ef8ca23b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/b1b71e295ed82c129ac0638b3995fc36ef8ca23b/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8152,
18246,
9193,
12,
625,
67,
1080,
4672,
3536,
990,
279,
3193,
434,
2359,
527,
4638,
15770,
316,
279,
533,
12123,
225,
13872,
273,
5378,
468,
30618,
26,
971,
333,
7195,
353,
4885,
283... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8152,
18246,
9193,
12,
625,
67,
1080,
4672,
3536,
990,
279,
3193,
434,
2359,
527,
4638,
15770,
316,
279,
533,
12123,
225,
13872,
273,
5378,
468,
30618,
26,
971,
333,
7195,
353,
4885,
283... |
if (latextype == ""): | if (latextype_line < 0): | def convert(lines): " Convert to new format." re_Comment = re.compile(r'^(\s*)#') re_Empty = re.compile(r'^(\s*)$') re_Format = re.compile(r'^(\s*)(Format)(\s+)(\S+)', re.IGNORECASE) re_Preamble = re.compile(r'^(\s*)Preamble', re.IGNORECASE) re_EndPreamble = re.compile(r'^(\s*)EndPreamble', re.IGNORECASE) re_MaxCounter... | ba4236f744c4b0d66b02240ca249a72a73cb9dc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/ba4236f744c4b0d66b02240ca249a72a73cb9dc0/layout2layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
3548,
4672,
315,
4037,
358,
394,
740,
1199,
283,
67,
4469,
273,
283,
18,
11100,
12,
86,
19856,
4713,
87,
12437,
7,
6134,
283,
67,
1921,
273,
283,
18,
11100,
12,
86,
19856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3548,
4672,
315,
4037,
358,
394,
740,
1199,
283,
67,
4469,
273,
283,
18,
11100,
12,
86,
19856,
4713,
87,
12437,
7,
6134,
283,
67,
1921,
273,
283,
18,
11100,
12,
86,
19856,
... |
if not hasattr(self, '__v__types_map'): | if not hasattr(self, '_v_types_map'): | def _typesMap(self, proxy): """ Obtain types map from the underlying DB-API. I hope that is portable code. """ | 77f1271afe6631e6123411277dcee035c622b5dc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6817/77f1271afe6631e6123411277dcee035c622b5dc/da.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2352,
863,
12,
2890,
16,
2889,
4672,
3536,
24850,
1953,
852,
628,
326,
6808,
2383,
17,
2557,
18,
467,
27370,
716,
353,
1756,
429,
981,
18,
3536,
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,
2352,
863,
12,
2890,
16,
2889,
4672,
3536,
24850,
1953,
852,
628,
326,
6808,
2383,
17,
2557,
18,
467,
27370,
716,
353,
1756,
429,
981,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-... |
resultDict[ref] = 'Killed' elif creamStatus in ['RUNNING','REALLY-RUNNING']: | resultDict[ref] = 'Killed' elif creamStatus in ['RUNNING', 'REALLY-RUNNING']: | def __parseJobStatus(self,output): """ Parse the output of the glite-ce-job-status """ resultDict = {} ref = '' for line in output.split('\n'): if not line: continue match = re.search('JobID=\[(.*)\]',line) if match and len(match.groups()) == 1: ref = match.group(1) match = re.search('Status.*\[(.*)\]',line) if match a... | 45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
23422,
12,
2890,
16,
2844,
4672,
3536,
2884,
326,
876,
434,
326,
5118,
1137,
17,
311,
17,
4688,
17,
2327,
3536,
563,
5014,
273,
2618,
1278,
273,
875,
364,
980,
316,
876,
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,
2670,
23422,
12,
2890,
16,
2844,
4672,
3536,
2884,
326,
876,
434,
326,
5118,
1137,
17,
311,
17,
4688,
17,
2327,
3536,
563,
5014,
273,
2618,
1278,
273,
875,
364,
980,
316,
876,
18... |
log.debug("Last request removed",'client') | log.debug("Last request removed",'Fetcher') | def remove_request(self, request): """ Request should NOT be served through this Fetcher, the client probably closed the connection. If this is our last request, we may also close the connection with the server depending on the configuration. | 5c9bae059cd7d11136ad9fba35419cb5fb58a393 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/5c9bae059cd7d11136ad9fba35419cb5fb58a393/apt_proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
2293,
12,
2890,
16,
590,
4672,
3536,
1567,
1410,
4269,
506,
30722,
3059,
333,
8065,
264,
16,
326,
1004,
8656,
4375,
326,
1459,
18,
225,
971,
333,
353,
3134,
1142,
590,
16,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
2293,
12,
2890,
16,
590,
4672,
3536,
1567,
1410,
4269,
506,
30722,
3059,
333,
8065,
264,
16,
326,
1004,
8656,
4375,
326,
1459,
18,
225,
971,
333,
353,
3134,
1142,
590,
16,
73... |
@raise raise ProfileError: if no profile is found with |name| | @raise ProfileError: if no profile is found with |name| | def setProfileInfo( self, name, **args ): """ Add/Override infos about a given profile:: e.g. setInfo('relASA', comment='new', params={'bin':'whatif'}) | d94a4af3582d8dee98e9e90efc4d479cc6e0d58e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/d94a4af3582d8dee98e9e90efc4d479cc6e0d58e/Trajectory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4029,
966,
12,
365,
16,
508,
16,
2826,
1968,
262,
30,
3536,
1436,
19,
6618,
10626,
2973,
279,
864,
3042,
2866,
425,
18,
75,
18,
444,
966,
2668,
2878,
3033,
37,
2187,
2879,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4029,
966,
12,
365,
16,
508,
16,
2826,
1968,
262,
30,
3536,
1436,
19,
6618,
10626,
2973,
279,
864,
3042,
2866,
425,
18,
75,
18,
444,
966,
2668,
2878,
3033,
37,
2187,
2879,
2218,
... |
if use_images: self.nbTop.AddPage(self.stackView, 'Stack', imageId = 0) else: self.nbTop.AddPage(self.stackView, 'Stack') | self.nbTop.AddPage(self.stackView, 'Stack', imageId=stackImgIdx) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4858,
16,
1544,
33,
7036,
16,
11735,
67,
3188,
33,
21,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
4858,
16,
300,
21,
16,
296,
24113,
6134,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4858,
16,
1544,
33,
7036,
16,
11735,
67,
3188,
33,
21,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
4858,
16,
300,
21,
16,
296,
24113,
6134,
2,
-1... |
view_name = createViewName('_verifyGroup', group_id or login) | view_name = createViewName('_verifyGroup', group_id) | def _verifyGroup(self, plugins, group_id=None, title=None): | 35ca9dad76d4fb36d66f14ada1774710d8a973aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/35ca9dad76d4fb36d66f14ada1774710d8a973aa/group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
1114,
12,
2890,
16,
4799,
16,
1041,
67,
350,
33,
7036,
16,
2077,
33,
7036,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
1114,
12,
2890,
16,
4799,
16,
1041,
67,
350,
33,
7036,
16,
2077,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage: monsky_washnitzer.reduce_positive(Q, coeffs, 0) | sage: monsky_washnitzer.reduce_positive(Q, 5, coeffs, 0) | def reduce_positive(Q, coeffs, offset): """ Applies cohomology relations to incorporate positive powers of $y$ into the $y^0$ term. INPUT: Q -- cubic polynomial coeffs -- list of length 3 lists. The i^th list [a, b, c] represents $y^{2(i - offset)} (a + bx + cx^2) dx/y$. offset -- nonnegative integer OUTPUT: The redu... | 7f79a6926630ce3f730c5245a57ff05c8166390a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7f79a6926630ce3f730c5245a57ff05c8166390a/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
67,
21094,
12,
53,
16,
16530,
16,
1384,
4672,
3536,
1716,
5259,
1825,
17125,
4676,
7467,
358,
316,
3850,
3831,
340,
6895,
7602,
414,
434,
271,
93,
8,
1368,
326,
271,
93,
66,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
67,
21094,
12,
53,
16,
16530,
16,
1384,
4672,
3536,
1716,
5259,
1825,
17125,
4676,
7467,
358,
316,
3850,
3831,
340,
6895,
7602,
414,
434,
271,
93,
8,
1368,
326,
271,
93,
66,
20,
... |
failures.add(test) | text_failures.add(test) | def _CalculateRegressions(self): """Calculate regressions from this run through the layout tests.""" worklist = self._test_files.copy() | a02a58382e0d0776379e8647e5bb821cc50ff15f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/a02a58382e0d0776379e8647e5bb821cc50ff15f/compare_failures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8695,
1617,
663,
1115,
12,
2890,
4672,
3536,
8695,
960,
663,
1115,
628,
333,
1086,
3059,
326,
3511,
7434,
12123,
1440,
1098,
273,
365,
6315,
3813,
67,
2354,
18,
3530,
1435,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8695,
1617,
663,
1115,
12,
2890,
4672,
3536,
8695,
960,
663,
1115,
628,
333,
1086,
3059,
326,
3511,
7434,
12123,
1440,
1098,
273,
365,
6315,
3813,
67,
2354,
18,
3530,
1435,
2,
-100,... |
var_list = [v for v in var_list if v.is_imported is True] | var_list = [v for v in var_list if v.is_inherited is True] | def select_variables(self, group=None, value_type=None, inherited=None, public=None, imported=None): """ Return a specified subset of this class's L{sorted_variables} list. If C{value_type} is given, then only return variables whose values have the specified type. If C{group} is given, then only return variables that... | 5280d02e74ff7bd7a1c6aebe60dc63dfb5c722ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5280d02e74ff7bd7a1c6aebe60dc63dfb5c722ad/apidoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
7528,
12,
2890,
16,
1041,
33,
7036,
16,
460,
67,
723,
33,
7036,
16,
12078,
33,
7036,
16,
1071,
33,
7036,
16,
9101,
33,
7036,
4672,
3536,
2000,
279,
1269,
7931,
434,
333,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
7528,
12,
2890,
16,
1041,
33,
7036,
16,
460,
67,
723,
33,
7036,
16,
12078,
33,
7036,
16,
1071,
33,
7036,
16,
9101,
33,
7036,
4672,
3536,
2000,
279,
1269,
7931,
434,
333,
66... |
slice_loc.bbox.near_point = Vector3D(0, slice_loc.bbox.near_point.y, slice_loc.bbox.near_point.z) slice_loc.bbox.far_point = Vector3D(self.width, slice_loc.bbox.far_point.y, slice_loc.bbox.far_point.z) | pos_offset = Vector3D(target.location.bbox.far_point.x, 0, 0) pos_offset.rotate(target.location.orientation) slice_loc.coordinates = target.location.coordinates + pos_offset slice_bbox = [0, target.location.bbox.near_point.y, target.location.bbox.near_point.z, self.width, target.location.bbox.far_point.y, target.loca... | def tick_operation(self, op): """ Op handler for regular tick op """ print "Slice.tick" | eb993559622c0db68ad5e8781c5b16d0b2845519 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/eb993559622c0db68ad5e8781c5b16d0b2845519/Slice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
67,
7624,
12,
2890,
16,
1061,
4672,
3536,
6066,
1838,
364,
6736,
4024,
1061,
3536,
1172,
315,
5959,
18,
6470,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
67,
7624,
12,
2890,
16,
1061,
4672,
3536,
6066,
1838,
364,
6736,
4024,
1061,
3536,
1172,
315,
5959,
18,
6470,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return | return None | def applyone(self, repo, node, cl, patchfile, merge=False, log=False, filter=None, lock=None, wlock=None): '''apply the patch in patchfile to the repository as a transplant''' (manifest, user, (time, timezone), files, message) = cl[:5] date = "%d %d" % (time, timezone) extra = {'transplant_source': node} if filter: (us... | 9fb48de454f110c159fe4e16e7227be484c0b3a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/9fb48de454f110c159fe4e16e7227be484c0b3a1/transplant.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
476,
12,
2890,
16,
3538,
16,
756,
16,
927,
16,
4729,
768,
16,
2691,
33,
8381,
16,
613,
33,
8381,
16,
1034,
33,
7036,
16,
2176,
33,
7036,
16,
341,
739,
33,
7036,
4672,
9163,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
476,
12,
2890,
16,
3538,
16,
756,
16,
927,
16,
4729,
768,
16,
2691,
33,
8381,
16,
613,
33,
8381,
16,
1034,
33,
7036,
16,
2176,
33,
7036,
16,
341,
739,
33,
7036,
4672,
9163,
9... |
pieposy = 0 pie = PieChart('J',pieposx,pieposy,pie_offset,pie_rad,colors) sum = (float(jwarns)/totalObj) * 100 sum2 = (float(jbugs)/totalObj) * 100 pie.addPiece(sum) pie.addPiece(sum2) pie.addPiece(100-(sum+sum2)) js += pie.generate(); barposy = pieposy - 2*pie_rad/3 - pie_offset bar = ChartLegend('J',barposx,barposy,... | if totalObj > 0: pieposy = 0 pie = PieChart('J',pieposx,pieposy,pie_offset,pie_rad,colors) sum = (float(jwarns)/totalObj) * 100 sum2 = (float(jbugs)/totalObj) * 100 pie.addPiece(sum) pie.addPiece(sum2) pie.addPiece(100-(sum+sum2)) js += pie.generate(); barposy = pieposy - 2*pie_rad/3 - pie_offset bar = ChartLegend('J'... | def MakeStatsPage(): """ Generate Statistics Page """ if metaInfo.indexPage['stat'] == '': # statistics disabled return printProgress(_('Creating statistics page')) outfile = fopen(metaInfo.htmlDir + metaInfo.indexPage['stat'], 'w', metaInfo.encoding) outfile.write(MakeHTMLHeader('stat',True,'initCharts();')) try: c... | 9bd33854a585408a1fb323dbb7784afb43a83e75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5976/9bd33854a585408a1fb323dbb7784afb43a83e75/HyperSQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
4195,
1964,
13332,
3536,
6654,
22964,
3460,
3536,
225,
309,
2191,
966,
18,
1615,
1964,
3292,
5642,
3546,
422,
875,
30,
468,
7691,
5673,
327,
225,
1172,
5491,
24899,
2668,
11092,
7691... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4195,
1964,
13332,
3536,
6654,
22964,
3460,
3536,
225,
309,
2191,
966,
18,
1615,
1964,
3292,
5642,
3546,
422,
875,
30,
468,
7691,
5673,
327,
225,
1172,
5491,
24899,
2668,
11092,
7691... |
if not wsc.check_user(uid): | if not wsc.check_user(uid, 'cfgwebsearch'): | def addportalbox(req, colID, ln=cdslang, title='', body='', callback='yes', confirm=-1): navtrail_previous_links = wsc.getnavtrail() + """> <a class=navtrail href="%s/admin/websearch/websearchadmin.py/">Edit Collection Tree</a> """ % (weburl) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) i... | 64768d1c90331fa30ff327f07b134d7b2140dd2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/64768d1c90331fa30ff327f07b134d7b2140dd2a/websearchadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
24386,
2147,
12,
3658,
16,
645,
734,
16,
7211,
33,
4315,
2069,
539,
16,
2077,
2218,
2187,
1417,
2218,
2187,
1348,
2218,
9707,
2187,
6932,
29711,
21,
4672,
8775,
15565,
67,
11515,
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,
527,
24386,
2147,
12,
3658,
16,
645,
734,
16,
7211,
33,
4315,
2069,
539,
16,
2077,
2218,
2187,
1417,
2218,
2187,
1348,
2218,
9707,
2187,
6932,
29711,
21,
4672,
8775,
15565,
67,
11515,
67... |
user = "%s@%s" % (msg.getFrom().getNode(), msg.getFrom().getDomain()) | user = msg["from"].bare | def new(self, msg, args): user = "%s@%s" % (msg.getFrom().getNode(), msg.getFrom().getDomain()) if self.is_validuser(user): return fun(self, msg, args) else: self.log.warning("ignoring command %s, invalid user %s." % \ ( fun.__name__[4:], user )) | 4dd6b13917538d45714036ef2362f1e13b6846dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14221/4dd6b13917538d45714036ef2362f1e13b6846dd/bot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1234,
16,
833,
4672,
729,
273,
1234,
9614,
2080,
6,
8009,
70,
834,
309,
365,
18,
291,
67,
877,
1355,
12,
1355,
4672,
327,
9831,
12,
2890,
16,
1234,
16,
833,
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,
394,
12,
2890,
16,
1234,
16,
833,
4672,
729,
273,
1234,
9614,
2080,
6,
8009,
70,
834,
309,
365,
18,
291,
67,
877,
1355,
12,
1355,
4672,
327,
9831,
12,
2890,
16,
1234,
16,
833,
13,
... |
glade = gtk.glade.XML(os.path.join (os.path.dirname(__file__), "postr.glade")) | glade = gtk.glade.XML(os.path.join(os.path.dirname(__file__), "postr.glade")) | def __init__(self): UniqueApp.__init__(self, 'com.burtonini.Postr') try: self.connect("message", self.on_message) except AttributeError: pass | 2d5662c0dbb2949d881433d9dbffceb653671dd4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11023/2d5662c0dbb2949d881433d9dbffceb653671dd4/postr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
14584,
3371,
16186,
2738,
972,
12,
2890,
16,
296,
832,
18,
70,
295,
1917,
8767,
18,
1616,
313,
6134,
775,
30,
365,
18,
3612,
2932,
2150,
3113,
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,
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,
14584,
3371,
16186,
2738,
972,
12,
2890,
16,
296,
832,
18,
70,
295,
1917,
8767,
18,
1616,
313,
6134,
775,
30,
365,
18,
3612,
2932,
2150,
3113,
365,
18,... |
c.push("hello world\n\nI'm not dead yet!\n") | c.push(b"hello world\n\nI'm not dead yet!\n") | def test_empty_line(self): # checks that empty lines are handled correctly s = echo_server() s.start() time.sleep(0.5) # Give server time to initialize c = echo_client(b'\n') c.push("hello world\n\nI'm not dead yet!\n") c.push(SERVER_QUIT) asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01) s.join() | 3a33a03a5b66c879f5de911edef102bdd8b4a0f6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/3a33a03a5b66c879f5de911edef102bdd8b4a0f6/test_asynchat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5531,
67,
1369,
12,
2890,
4672,
468,
4271,
716,
1008,
2362,
854,
7681,
8783,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12,
20,
18,
25,
13,
468,
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,
1842,
67,
5531,
67,
1369,
12,
2890,
4672,
468,
4271,
716,
1008,
2362,
854,
7681,
8783,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12,
20,
18,
25,
13,
468,
2... |
data.byteswap() | if big_endian: data.byteswap() | def writeframesraw(self, data): self._ensure_header_written(len(data)) nframes = len(data) / (self._sampwidth * self._nchannels) if self._convert: data = self._convert(data) if self._sampwidth > 1: import array data = array.array(_array_fmts[self._sampwidth], data) data.byteswap() data.tofile(self._file) self._datawrit... | a7ed780f77dfefec90156c3d9e4a948dbe65b9e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a7ed780f77dfefec90156c3d9e4a948dbe65b9e0/wave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
10278,
1899,
12,
2890,
16,
501,
4672,
365,
6315,
15735,
67,
3374,
67,
9748,
12,
1897,
12,
892,
3719,
290,
10278,
273,
562,
12,
892,
13,
342,
261,
2890,
6315,
87,
931,
2819,
380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
10278,
1899,
12,
2890,
16,
501,
4672,
365,
6315,
15735,
67,
3374,
67,
9748,
12,
1897,
12,
892,
3719,
290,
10278,
273,
562,
12,
892,
13,
342,
261,
2890,
6315,
87,
931,
2819,
380,
... |
include_dirs=GTK_INCLUDE_DIRS + [PYGOBJECT_INCLUDE_DIR], library_dirs=[GTK_LIB_PATH], libraries=[ 'gtk-win32-2.0', ]) | include_dirs=GTK_INCLUDE_DIRS + [PYGOBJECT_INCLUDE_DIR], library_dirs=[GTK_LIB_PATH], libraries=[ 'gtk-win32-2.0', ] ) | def find_data_files(dest_path_base, source_path): retval = [] for path, dirs, files in os.walk(source_path): if not path.startswith(source_path): raise AssertionError() dest_path = path.replace(source_path, dest_path_base) source_files = [os.path.join(path, f) for f in files] retval.append((dest_path, source_files)) if... | 16717514d85be409df247e58637855a19e0ad04f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/16717514d85be409df247e58637855a19e0ad04f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
892,
67,
2354,
12,
10488,
67,
803,
67,
1969,
16,
1084,
67,
803,
4672,
5221,
273,
5378,
364,
589,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3168,
67,
803,
4672,
309,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
892,
67,
2354,
12,
10488,
67,
803,
67,
1969,
16,
1084,
67,
803,
4672,
5221,
273,
5378,
364,
589,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3168,
67,
803,
4672,
309,
486... |
' test ' : ' ', ' testindex ' : ' ', | 'test' : '', 'testindex' : '', | def __init__(self, message): """Initialization.""" self.message = message | 855acf1f403f93dbc03543809cdbbd3d0c4c46af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/855acf1f403f93dbc03543809cdbbd3d0c4c46af/search_engine_query_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return root.unrestrictedTraverse(self._path) | return root.unrestrictedTraverse(self._path).aq_base | def _get_object(self): root = get_context().request.zope_request['PARENTS'][-1] return root.unrestrictedTraverse(self._path) | 2c39eb0e804cbd23c02a34ad40f4e772a5cf6934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/2c39eb0e804cbd23c02a34ad40f4e772a5cf6934/zope2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1612,
12,
2890,
4672,
1365,
273,
336,
67,
2472,
7675,
2293,
18,
94,
1306,
67,
2293,
3292,
14943,
55,
3546,
18919,
21,
65,
327,
1365,
18,
318,
29306,
29654,
12,
2890,
6315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1612,
12,
2890,
4672,
1365,
273,
336,
67,
2472,
7675,
2293,
18,
94,
1306,
67,
2293,
3292,
14943,
55,
3546,
18919,
21,
65,
327,
1365,
18,
318,
29306,
29654,
12,
2890,
6315... |
print >> sys.stderr, "ERROR: Could not drop copyright. Database said: '%s'" % error | print >> sys.stdout, "ERROR: Could not drop copyright. 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,
... |
self.context.add_pin(lat, lon, '', '', type, rating, REQUEST) | self.submit_pin(lat, lon, '', '', type, rating, REQUEST) | def add_random_pins(self, num, REQUEST): num = int(num) for i in range(num): lat = randint(-89*100, 89*100)/100. lon = randint(-179*100, 179*100)/100. type = choice(TYPE_VALUES) rating = choice(RATING_VALUES) self.context.add_pin(lat, lon, '', '', type, rating, REQUEST) | 54b49b122756c95b05ba369d7d2b53faa86a7e0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/54b49b122756c95b05ba369d7d2b53faa86a7e0d/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9188,
67,
84,
2679,
12,
2890,
16,
818,
16,
12492,
4672,
818,
273,
509,
12,
2107,
13,
364,
277,
316,
1048,
12,
2107,
4672,
2516,
273,
16783,
19236,
6675,
14,
6625,
16,
28308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9188,
67,
84,
2679,
12,
2890,
16,
818,
16,
12492,
4672,
818,
273,
509,
12,
2107,
13,
364,
277,
316,
1048,
12,
2107,
4672,
2516,
273,
16783,
19236,
6675,
14,
6625,
16,
28308,
... |
self._leakDetector.removeContainerById(id) | self._leakDetector.removeContainerById(objId) | def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain... | d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... |
'SUBSCRIPTS': ('subscriptions', 'SEQUENCEMETHODS1'), 'SLICINGS': ('slicings', 'SEQUENCEMETHODS2'), | 'SUBSCRIPTS': ('subscriptions', 'SEQUENCEMETHODS'), 'SLICINGS': ('slicings', 'SEQUENCEMETHODS'), | 'METHODS': ('typesmethods', 'class def CLASSES TYPES'), | d46665cc2e0fa20ac234cdc9750bad012c8f0589 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/d46665cc2e0fa20ac234cdc9750bad012c8f0589/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
296,
25750,
4278,
7707,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
296,
25750,
4278,
7707,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rwidth = 0 while rwidth < width and im.getpixel((rwidth,pos)) != background: rwidth += 1 bbox = im.getbbox() if bbox is None or rwidth == (width-1): return PILImage.new("RGB", (1,1), background), 0 bbox = list(bbox) bbox[0] = rwidth | rwidth = 0 while rwidth < width and im.getpixel((rwidth,pos)) != background: rwidth += 1 bbox = im.getbbox() if bbox is None or rwidth == (width-1): return PILImage.new("RGB", (1,1), background), 0 bbox = list(bbox) bbox[0] = rwidth | def _stripBaseline(self, im, padbaseline=0): """ Find the baseline register mark and crop it out | aa2746ffa569898f8c20352acf9ddf30c4890ff2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/aa2746ffa569898f8c20352acf9ddf30c4890ff2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6406,
16635,
12,
2890,
16,
709,
16,
4627,
27818,
33,
20,
4672,
3536,
4163,
326,
14243,
1744,
2267,
471,
7987,
518,
596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6406,
16635,
12,
2890,
16,
709,
16,
4627,
27818,
33,
20,
4672,
3536,
4163,
326,
14243,
1744,
2267,
471,
7987,
518,
596,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return curses.tparm(curses.tigetstr("setf"), 2) | return curses.tparm(SETF, 2) | def GetColor(color = None): if not HAVE_COLORS: return "" if color != None: color = color.lower() if (color == "blue"): return curses.tparm(curses.tigetstr("setf"), 1) elif (color == "green"): return curses.tparm(curses.tigetstr("setf"), 2) elif (color == "cyan"): return curses.tparm(curses.tigetstr("setf"), 3) elif (c... | c0695c34a90684ebb8c382fa9ff9081ded7d9802 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/c0695c34a90684ebb8c382fa9ff9081ded7d9802/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2957,
12,
3266,
273,
599,
4672,
309,
486,
21926,
3412,
67,
10989,
55,
30,
327,
1408,
309,
2036,
480,
599,
30,
2036,
273,
2036,
18,
8167,
1435,
309,
261,
3266,
422,
315,
14081,
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,
968,
2957,
12,
3266,
273,
599,
4672,
309,
486,
21926,
3412,
67,
10989,
55,
30,
327,
1408,
309,
2036,
480,
599,
30,
2036,
273,
2036,
18,
8167,
1435,
309,
261,
3266,
422,
315,
14081,
6,
... |
if not opt_simulate: | if installing: print command if not opt_simulate and installing: | def main(): try: opts, args = getopt.gnu_getopt(sys.argv[1:], 'i:svh', ['input=', 'simulate', 'verbose']) except getopt.GetoptError, e: usage(e) opt_input = None opt_simulate = False opt_verbose = False for opt, val in opts: if opt in ('-i', '--input'): opt_input=val elif opt in ('-s', '--simulate'): opt_simulate = ... | a4d3f9374d51ae3d2d30b108997db9fd87689a7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/a4d3f9374d51ae3d2d30b108997db9fd87689a7b/cmd_newpkgs_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
1600,
89,
67,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
77,
30,
5751,
76,
2187,
10228,
2630,
33,
2187,
296,
9812... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
1600,
89,
67,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
77,
30,
5751,
76,
2187,
10228,
2630,
33,
2187,
296,
9812... |
msg = 'No such issue with id %s' % R.issue_id | msg = 'No such issue with id "%s"' % R.issue_id | def keys(self): return self._k | 99f24d12220abdb85d2bb6ecae9f3f0be18fed44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/99f24d12220abdb85d2bb6ecae9f3f0be18fed44/Collector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
365,
6315,
79,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
365,
6315,
79,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
actref+=string.lower(l[19:72]) | actref+=l[19:72].lower() | def _get_references(inl): # REMARK 1 REFERENCE 1 1CSE 11 # REMARK 1 AUTH W.BODE,E.PAPAMOKOS,D.MUSIL 1CSE 12 references=[] actref="" for l in inl: if re.search("\AREMARK 1",l): if re.search("\AREMARK 1 REFERENCE",l): if actref!="": a... | 8ddf606a834a8cc06f52daec7b4ce067280da302 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/8ddf606a834a8cc06f52daec7b4ce067280da302/parse_pdb_header.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
14353,
12,
267,
80,
4672,
468,
2438,
12693,
282,
404,
22898,
404,
4766,
5375,
404,
39,
1090,
225,
4648,
468,
2438,
12693,
282,
404,
225,
12790,
282,
678,
18,
38,
2712,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
14353,
12,
267,
80,
4672,
468,
2438,
12693,
282,
404,
22898,
404,
4766,
5375,
404,
39,
1090,
225,
4648,
468,
2438,
12693,
282,
404,
225,
12790,
282,
678,
18,
38,
2712,
16... |
if platform.platform().startswith('Windows'): logging.debug(' python %s' % python) out = open('unpack.py', 'w') out.write("""\ | logging.debug(' python %s' % python) out = open('unpack.py', 'w') out.write("""\ | def test_save_load(self): logging.debug('') logging.debug('test_save_load') | f9c24c7aaa62815f4dc1b799b39354aa43ebcba1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/f9c24c7aaa62815f4dc1b799b39354aa43ebcba1/test_save_load.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5688,
67,
945,
12,
2890,
4672,
2907,
18,
4148,
2668,
6134,
2907,
18,
4148,
2668,
3813,
67,
5688,
67,
945,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5688,
67,
945,
12,
2890,
4672,
2907,
18,
4148,
2668,
6134,
2907,
18,
4148,
2668,
3813,
67,
5688,
67,
945,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
actions.action_help() | actions.action_help() | def show_help(): print """Usage: benchmark.py [OPTION]... [PROJECT]... | a3f9539b6a2c9ef05898598e02cf4a476579fb8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7392/a3f9539b6a2c9ef05898598e02cf4a476579fb8e/benchmark.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
5201,
13332,
1172,
3536,
5357,
30,
14128,
18,
2074,
306,
7425,
65,
2777,
306,
17147,
65,
2777,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
5201,
13332,
1172,
3536,
5357,
30,
14128,
18,
2074,
306,
7425,
65,
2777,
306,
17147,
65,
2777,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tag, session, message = self.incoming_queue.wait() if tag == 'message': self._dispatch_message(session, message) else: assert tag == 'disconnect', repr(tag) self.sessions.remove(session) | session, message = self.incoming_queue.wait() self._dispatch_message(session, message) | def _message_dispatcher(self): """Read from self.incoming_queue and dispatch the messages to other participants""" while True: tag, session, message = self.incoming_queue.wait() if tag == 'message': self._dispatch_message(session, message) else: assert tag == 'disconnect', repr(tag) self.sessions.remove(session) | 86486162e8822068c3835c02e4ea7cd8afd6a0ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/86486162e8822068c3835c02e4ea7cd8afd6a0ba/chatroom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2150,
67,
18495,
12,
2890,
4672,
3536,
1994,
628,
365,
18,
31033,
67,
4000,
471,
3435,
326,
2743,
358,
1308,
22346,
8395,
1323,
1053,
30,
1047,
16,
1339,
16,
883,
273,
365,
18,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2150,
67,
18495,
12,
2890,
4672,
3536,
1994,
628,
365,
18,
31033,
67,
4000,
471,
3435,
326,
2743,
358,
1308,
22346,
8395,
1323,
1053,
30,
1047,
16,
1339,
16,
883,
273,
365,
18,
31... |
tx = self.canv.beginText(cur_x, cur_y) | tx = self.canv.beginText(cur_x, cur_y) | def draw(self): #call another method for historical reasons. Besides, I #suspect I will be playing with alternate drawing routines #so not doing it here makes it easier to switch. cur_x = self.style.leftIndent cur_y = self.height - self.style.spaceBefore - self.style.fontSize self.canv.addLiteral('%PreformattedPara') | 0a3005e58658b34c80170c55abb5ba2f74e8209b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0a3005e58658b34c80170c55abb5ba2f74e8209b/layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
468,
1991,
4042,
707,
364,
23922,
14000,
18,
225,
605,
281,
4369,
16,
467,
468,
87,
407,
1181,
467,
903,
506,
23982,
598,
12184,
16327,
28580,
468,
2048,
486,
9957,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
468,
1991,
4042,
707,
364,
23922,
14000,
18,
225,
605,
281,
4369,
16,
467,
468,
87,
407,
1181,
467,
903,
506,
23982,
598,
12184,
16327,
28580,
468,
2048,
486,
9957,... |
jsreg.registerStylesheet(id=sheetId, enabled=True) | jsreg.registerScript(id=sheetId, enabled=True) | def updatePloneCustomJS(self): site = getSite() jsreg = getToolByName(site, 'portal_javascripts', None) if jsreg is not None: stylesheet_ids = jsreg.getResourceIds() if self.custom_js not in stylesheet_ids: jsreg.registerStylesheet(id=sheetId, enabled=True) jsreg.cookResources() else: jsreg.updateScript(self.custom_js,... | 450ea1a6cc3df4ee84b904befbaf3ff8b61a1fdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11317/450ea1a6cc3df4ee84b904befbaf3ff8b61a1fdf/edit_css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1749,
476,
3802,
6479,
12,
2890,
4672,
2834,
273,
11021,
1435,
3828,
1574,
273,
336,
6364,
5911,
12,
4256,
16,
296,
24386,
67,
19207,
3691,
6513,
2187,
599,
13,
309,
3828,
1574,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1749,
476,
3802,
6479,
12,
2890,
4672,
2834,
273,
11021,
1435,
3828,
1574,
273,
336,
6364,
5911,
12,
4256,
16,
296,
24386,
67,
19207,
3691,
6513,
2187,
599,
13,
309,
3828,
1574,
35... |
node1 = etree.SubElement(node3, util.nspath('And', namespaces['ogc'])) | node1 = etree.SubElement(node0, util.nspath('And', namespaces['ogc'])) | def set(self, parent=False, qtype=None, keywords=[], typenames='csw:Record', propertyname='AnyText', bbox=None): """ | 09fffe88a9077dd52f7641be72b98ebda1295e43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11708/09fffe88a9077dd52f7641be72b98ebda1295e43/filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
982,
33,
8381,
16,
28056,
33,
7036,
16,
7093,
22850,
6487,
3815,
6809,
2218,
2143,
91,
30,
2115,
2187,
1272,
529,
2218,
2961,
1528,
2187,
8472,
33,
7036,
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,
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,
444,
12,
2890,
16,
982,
33,
8381,
16,
28056,
33,
7036,
16,
7093,
22850,
6487,
3815,
6809,
2218,
2143,
91,
30,
2115,
2187,
1272,
529,
2218,
2961,
1528,
2187,
8472,
33,
7036,
4672,
3536,
... |
for attrname in ['cn','sn','givenName','mail','street','description', | for attrname in ['cn','sn','givenName','street','description', | def ldap_entry(self): "Representation of the object as an LDAP entry" if not self.telephoneNumber: self.telephoneNumber = u'' # XXX Waaaa? if not self.ou: self.ou = u'' if not self.job_title: self.job_title = u'' if not self.description: self.description = u'' entry = { 'objectClass': ['top', 'person', 'organizationa... | c8872473193c7294a1940d16654e798b73fd91d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1205/c8872473193c7294a1940d16654e798b73fd91d6/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8079,
67,
4099,
12,
2890,
4672,
315,
13742,
434,
326,
733,
487,
392,
11916,
1241,
6,
309,
486,
365,
18,
29170,
10540,
1854,
30,
365,
18,
29170,
10540,
1854,
273,
582,
6309,
225,
468,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8079,
67,
4099,
12,
2890,
4672,
315,
13742,
434,
326,
733,
487,
392,
11916,
1241,
6,
309,
486,
365,
18,
29170,
10540,
1854,
30,
365,
18,
29170,
10540,
1854,
273,
582,
6309,
225,
468,
1... |
original_stderr = original_stderr | sys.stderr = original_stderr | def assert_log_equals(self, log_input, expected_output): original_stderr = sys.stderr test_stderr = StringIO.StringIO() sys.stderr = test_stderr | 4e8163fc321afec71b20965fa44177685dd943ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/4e8163fc321afec71b20965fa44177685dd943ce/deprecated_logging_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
1330,
67,
14963,
12,
2890,
16,
613,
67,
2630,
16,
2665,
67,
2844,
4672,
2282,
67,
11241,
273,
2589,
18,
11241,
1842,
67,
11241,
273,
15777,
18,
780,
4294,
1435,
2589,
18,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
1330,
67,
14963,
12,
2890,
16,
613,
67,
2630,
16,
2665,
67,
2844,
4672,
2282,
67,
11241,
273,
2589,
18,
11241,
1842,
67,
11241,
273,
15777,
18,
780,
4294,
1435,
2589,
18,
112... |
if not self.is_running(): unexpected("Exit code %d" % self.returncode) | if not self.is_running(): self.unexpected("Exit code %d" % self.returncode) | def assert_running(self): if not self.is_running(): unexpected("Exit code %d" % self.returncode) | 5ea15473e66289f047f411629184767faf3802a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/5ea15473e66289f047f411629184767faf3802a3/brokertest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
8704,
12,
2890,
4672,
309,
486,
365,
18,
291,
67,
8704,
13332,
9733,
2932,
6767,
981,
738,
72,
6,
738,
365,
18,
2463,
710,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
8704,
12,
2890,
4672,
309,
486,
365,
18,
291,
67,
8704,
13332,
9733,
2932,
6767,
981,
738,
72,
6,
738,
365,
18,
2463,
710,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
booksetting=bs) | booksetting=bs, **settings) | def me(base, tagname): tag = base.find(tagname.lower()) tag = (self.tag_to_string(tag), tag.get('reading') if tag.has_key('reading') else '') return tag | d8e4b9103fa1a2df41dd3dba58eb6e5791d41fb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/d8e4b9103fa1a2df41dd3dba58eb6e5791d41fb1/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1791,
12,
1969,
16,
25586,
4672,
1047,
273,
1026,
18,
4720,
12,
2692,
529,
18,
8167,
10756,
1047,
273,
261,
2890,
18,
2692,
67,
869,
67,
1080,
12,
2692,
3631,
1047,
18,
588,
2668,
2180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1791,
12,
1969,
16,
25586,
4672,
1047,
273,
1026,
18,
4720,
12,
2692,
529,
18,
8167,
10756,
1047,
273,
261,
2890,
18,
2692,
67,
869,
67,
1080,
12,
2692,
3631,
1047,
18,
588,
2668,
2180... |
'validator': 'wxDefaultValidator', | def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): return {'pos': position, 'size': size, 'style': 'wxLC_ICON', 'validator': 'wxDefaultValidator', 'name': `self.name`} | bf2d0fc28ac1c46bdc6f0710c24fe8c632cc2553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/bf2d0fc28ac1c46bdc6f0710c24fe8c632cc2553/ListCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8281,
950,
1830,
12,
2890,
16,
1754,
273,
296,
27226,
1868,
2555,
2187,
963,
273,
296,
27226,
1868,
1225,
11,
4672,
327,
13666,
917,
4278,
1754,
16,
296,
1467,
4278,
963,
16,
296,
4060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8281,
950,
1830,
12,
2890,
16,
1754,
273,
296,
27226,
1868,
2555,
2187,
963,
273,
296,
27226,
1868,
1225,
11,
4672,
327,
13666,
917,
4278,
1754,
16,
296,
1467,
4278,
963,
16,
296,
4060,
... | |
return { | return { | def review_link(request, path_obj): try: if path_obj.getcompletestats(request.translation_project.checker).get('check-hassuggestion', 0): if check_permission('translate', request): text = _('Review Suggestions') else: text = _('View Suggestions') return { 'href': dispatch.translate(request, path_obj.pootle_path, match_... | 582cfbf41b3b0c1924c5557a814f3c35f7838d60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/582cfbf41b3b0c1924c5557a814f3c35f7838d60/item_dict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
1232,
12,
2293,
16,
589,
67,
2603,
4672,
775,
30,
309,
589,
67,
2603,
18,
588,
7806,
395,
2323,
12,
2293,
18,
10173,
67,
4406,
18,
19243,
2934,
588,
2668,
1893,
17,
76,
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,
10725,
67,
1232,
12,
2293,
16,
589,
67,
2603,
4672,
775,
30,
309,
589,
67,
2603,
18,
588,
7806,
395,
2323,
12,
2293,
18,
10173,
67,
4406,
18,
19243,
2934,
588,
2668,
1893,
17,
76,
42... |
collection_path + "\.:(format)", action='index', | collection_path + ".:(format)", action='index', | def requirements_for(meth): """Returns a new dict to be used for all route creation as the route options""" opts = options.copy() if method != 'any': opts['conditions'] = {'method':[meth]} return opts | 825a0d2a8b34a69b3bec7577699dcc8ab41fd74a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12081/825a0d2a8b34a69b3bec7577699dcc8ab41fd74a/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8433,
67,
1884,
12,
27305,
4672,
3536,
1356,
279,
394,
2065,
358,
506,
1399,
364,
777,
1946,
6710,
487,
326,
1946,
702,
8395,
1500,
273,
702,
18,
3530,
1435,
309,
707,
480,
296,
2273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8433,
67,
1884,
12,
27305,
4672,
3536,
1356,
279,
394,
2065,
358,
506,
1399,
364,
777,
1946,
6710,
487,
326,
1946,
702,
8395,
1500,
273,
702,
18,
3530,
1435,
309,
707,
480,
296,
2273,
... |
Return the derived series of this group as a list of | Return the composition series of this group as a list of | def composition_series(self): """ Return the derived series of this group as a list of permutation groups. | 1658b04d4cf7d534376d011a40bb52f192eac894 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1658b04d4cf7d534376d011a40bb52f192eac894/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16919,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
16919,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16919,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
16919,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
VARS['$SYS'] = '-linux' | VARS['$WFLAGS'] = '-Wwrite-strings -std=c89 -Wall' | def vars_linux(): VARS['$RM'] = 'rm -f' VARS['$VM'] = './vm' VARS['$TINYPY'] = './tinypy' VARS['$FLAGS'] = '' VARS['$SYS'] = '-linux' if 'pygame' in MODULES: VARS['$FLAGS'] += ' `sdl-config --cflags --libs` ' | 50de20088b9b472fa66345155d25e4f1484af0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3895/50de20088b9b472fa66345155d25e4f1484af0b9/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4153,
67,
20132,
13332,
8350,
55,
3292,
8,
8717,
3546,
273,
296,
8864,
300,
74,
11,
8350,
55,
3292,
8,
7397,
3546,
273,
12871,
3489,
11,
8350,
55,
3292,
8,
56,
31853,
16235,
3546,
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,
4153,
67,
20132,
13332,
8350,
55,
3292,
8,
8717,
3546,
273,
296,
8864,
300,
74,
11,
8350,
55,
3292,
8,
7397,
3546,
273,
12871,
3489,
11,
8350,
55,
3292,
8,
56,
31853,
16235,
3546,
273,... |
try: | info_key=server_name, module_name if module_dicts.has_key(info_key): | def publish(self, module_name, after_list, published='web_objects', | 6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
os.file.rename(target + "/" + a, a) | if os.path.isdir("." + prefix + "/" + a): print("mv ." + prefix + "/" + a + " " + a) os.rename("." + prefix + "/" + a, a) | def RestoreSkel(target): for a in ["bin", "pkg", "lib", "www", "man"]: os.file.rename(target + "/" + a, a) | 76016a7391ea05e06c392ab2cb15691bbf19aa15 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9328/76016a7391ea05e06c392ab2cb15691bbf19aa15/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11197,
5925,
292,
12,
3299,
4672,
364,
279,
316,
8247,
4757,
3113,
315,
10657,
3113,
315,
2941,
3113,
315,
5591,
3113,
315,
4728,
11929,
30,
309,
1140,
18,
803,
18,
291,
1214,
2932,
1199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11197,
5925,
292,
12,
3299,
4672,
364,
279,
316,
8247,
4757,
3113,
315,
10657,
3113,
315,
2941,
3113,
315,
5591,
3113,
315,
4728,
11929,
30,
309,
1140,
18,
803,
18,
291,
1214,
2932,
1199... |
img=tord(img, tailles.DECALAGE_TUILES, False) | img=tord(img, tailles.DECALAGE_TUILES) | def chargerImagesMap(self, **tabsNums): """Charge les tuiles, gdsElements et ptsElements: gestionnaire.chargerImagesMap(tuiles=listeNumsTuiles, gdsElements=listeNumsGdsElements, ptsElements=listeNumsPtsElements)""" chargementOK = True # Parsage des documents tuiles.xml, gdsElements.xml et ptsElements.xml, et chargem... | 90cf827de8fd488141ee9a5da04026437a3de6aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3315/90cf827de8fd488141ee9a5da04026437a3de6aa/img.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
693,
8946,
863,
12,
2890,
16,
2826,
16056,
25532,
4672,
3536,
17649,
18022,
28325,
1449,
16,
314,
2377,
3471,
3393,
13397,
3471,
30,
225,
314,
6868,
6582,
577,
18,
3001,
693,
8946,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1149,
693,
8946,
863,
12,
2890,
16,
2826,
16056,
25532,
4672,
3536,
17649,
18022,
28325,
1449,
16,
314,
2377,
3471,
3393,
13397,
3471,
30,
225,
314,
6868,
6582,
577,
18,
3001,
693,
8946,
... |
return http.Response(stream = s) | return HTMLResponse(stream = s) | def render(self, ctx): conf = self.worksheet.conf() s = str(conf) # TODO: This should be a form that allows for configuring all options # of a given worksheet, saves the result, return http.Response(stream = s) | 5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
2195,
273,
365,
18,
1252,
8118,
18,
3923,
1435,
272,
273,
609,
12,
3923,
13,
468,
2660,
30,
1220,
1410,
506,
279,
646,
716,
5360,
364,
642,
4017,
777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
2195,
273,
365,
18,
1252,
8118,
18,
3923,
1435,
272,
273,
609,
12,
3923,
13,
468,
2660,
30,
1220,
1410,
506,
279,
646,
716,
5360,
364,
642,
4017,
777,
... |
jsTxt += "{ text : '%s', url : '%s' }," % ( page.capitalize(), pagePath ) | jsTxt += "{ text : '%s', url : '%s' }," % ( page, pagePath ) | def jsSchemaSection( area, section ): jsTxt = "[" for subSection in gWebConfig.getSchemaSections( section ): subSectionPath = "%s/%s" % ( section, subSection ) subJSTxt = jsSchemaSection( area, subSectionPath ) if len( subJSTxt ) > 0: jsTxt += "{ text: '%s', submenu : { id: '%s', itemdata : %s } }, " % ( subSection, su... | 46b013cb453e51992f5b8e21aee6551c55ef646b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/46b013cb453e51992f5b8e21aee6551c55ef646b/webBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3078,
5285,
12,
5091,
16,
2442,
262,
30,
3828,
21811,
273,
13626,
364,
720,
5285,
316,
314,
4079,
809,
18,
588,
3078,
15965,
12,
2442,
262,
30,
720,
5285,
743,
273,
2213,
87,
525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3078,
5285,
12,
5091,
16,
2442,
262,
30,
3828,
21811,
273,
13626,
364,
720,
5285,
316,
314,
4079,
809,
18,
588,
3078,
15965,
12,
2442,
262,
30,
720,
5285,
743,
273,
2213,
87,
525... |
assetMacros = self._genobj._job.get('asset-let',{}) assetHints = [] | assetMacros = self._genobj._job.get('asset-let',{}) assetHints = [] | def mapResourcesToClasses(self, libs, classes): # Resource list resources = [] for libObj in libs: resources.extend(libObj.getResources()) # weightedness of same res id through order of script.libraries # remove unwanted files exclpatt = re.compile("\.(?:meta|py)$", re.I) for res in resources[:]: if exclpatt.search(re... | 7dfc9ae1444818d8f76dff6243602d9371a51a49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/7dfc9ae1444818d8f76dff6243602d9371a51a49/ResourceHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
3805,
774,
4818,
12,
2890,
16,
15042,
16,
3318,
4672,
225,
468,
2591,
666,
2703,
273,
5378,
364,
2561,
2675,
316,
15042,
30,
2703,
18,
14313,
12,
2941,
2675,
18,
588,
3805,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
3805,
774,
4818,
12,
2890,
16,
15042,
16,
3318,
4672,
225,
468,
2591,
666,
2703,
273,
5378,
364,
2561,
2675,
316,
15042,
30,
2703,
18,
14313,
12,
2941,
2675,
18,
588,
3805,
10756,
... |
cmd_cxx = $(CXX.$(TOOLSET)) $(CXXFLAGS) $(GYP_CXXFLAGS) $(DEPFLAGS) -c -o $@ $< | cmd_cxx = $(CXX.$(TOOLSET)) $(CXXFLAGS.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) -c -o $@ $< | ifdef V quiet= | 312acb7d155fd29279a7d2d7a349808ca34de752 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6220/312acb7d155fd29279a7d2d7a349808ca34de752/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
cogl.path_round_rectangle(0, 0, width, height, self._radius, 1) | cogl.path_round_rectangle(0, 0, width, height, radius, 1) | def __paint_rectangle(self, width, height, color, border_color=None): if border_color is not None and self._border_width > 0.0: cogl.path_round_rectangle(0, 0, width, height, self._radius, 1) cogl.path_close() cogl.set_source_color(border_color) cogl.path_fill() w = self._border_width cogl.path_round_rectangle(w, w, w... | 320fb0be9b0aac7238c86becef29e9739ebfc92b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/320fb0be9b0aac7238c86becef29e9739ebfc92b/roundrect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
84,
1598,
67,
2607,
4341,
12,
2890,
16,
1835,
16,
2072,
16,
2036,
16,
5795,
67,
3266,
33,
7036,
4672,
309,
5795,
67,
3266,
353,
486,
599,
471,
365,
6315,
8815,
67,
2819,
405,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
84,
1598,
67,
2607,
4341,
12,
2890,
16,
1835,
16,
2072,
16,
2036,
16,
5795,
67,
3266,
33,
7036,
4672,
309,
5795,
67,
3266,
353,
486,
599,
471,
365,
6315,
8815,
67,
2819,
405,
3... |
t_start = startOfInterval(t, t_length) print timestamp_to_string(t), t_length, timestamp_to_string(t_start) assert(time.localtime(t_start)[0:6] == (2009, 3, 4, 1, 30, 00)) t = time.mktime((2009, 3, 4, 1, 57, 17, 0, 0, 0)) | t_test = time.mktime((2009, 3, 4, 1, 57, 17, 0, 0, 0)) t_ans = time.mktime((2009, 3, 4, 1, 30, 00, 0, 0, 0)) t_start = startOfInterval(t_test, t_length) print timestamp_to_string(t_test), t_length, timestamp_to_string(t_start) assert(t_start == t_ans) | def _get_object(module_class, *args, **kwargs): """Given a path to a class, instantiates an instance of the class with the given args and returns it.""" # Split the path into its parts parts = module_class.split('.') # Strip off the classname: module = '.'.join(parts[:-1]) # Import the top level module mod = __import_... | e7f837b0d6bf15754108508ecefa2a293f5150e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6433/e7f837b0d6bf15754108508ecefa2a293f5150e1/weeutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1612,
12,
2978,
67,
1106,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
6083,
279,
589,
358,
279,
667,
16,
5934,
16020,
392,
791,
434,
326,
667,
598,
326,
864,
833,
471,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1612,
12,
2978,
67,
1106,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
6083,
279,
589,
358,
279,
667,
16,
5934,
16020,
392,
791,
434,
326,
667,
598,
326,
864,
833,
471,
1... |
'view_type1': fields.selection([('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'First View', required=True), 'view_type2': fields.selection([('','/'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'Second View'), 'view_type3': fields.selection([('','/'),('tree','Tree'),('graph','Graph'),('cale... | 'view_type1': fields.selection([('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'First View', required=True), 'view_type2': fields.selection([('','/'),('form','Form'),('tree','Tree'),('graph','Graph'),('calendar','Calendar')], 'Second View'), 'view_type3': fields.selection([('','/'),('form',... | def _sql_query_get(self, cr, uid, ids, prop, unknow_none, context, where_plus=[], limit=None, offset=None): result = {} for obj in self.browse(cr, uid, ids): fields = [] groupby = [] i = 0 for f in obj.field_ids: t = self.pool.get(f.field_id.model_id.model)._table if f.group_method == 'group': fields.append('\t'+t+'.'+... | 12efe25602a1ee9109944c7d15a2f68fdc7d413b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/12efe25602a1ee9109944c7d15a2f68fdc7d413b/base_report_creator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4669,
67,
2271,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
2270,
16,
640,
79,
3338,
67,
6102,
16,
819,
16,
1625,
67,
10103,
22850,
6487,
1800,
33,
7036,
16,
1384,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4669,
67,
2271,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
2270,
16,
640,
79,
3338,
67,
6102,
16,
819,
16,
1625,
67,
10103,
22850,
6487,
1800,
33,
7036,
16,
1384,
33,
... |
if not firstCategory: res += "}," | def htmlfiles(rootpath): dirwalker = os.walk(rootpath) | def main(dist, scan): res = "" structurize = False firstCategory = True for category in os.listdir(scan): if category in [".svn", ".DS_Store"]: continue ext = os.path.splitext(category)[1] if ext == ".html" or ext == ".js": continue if not firstCategory: res += "}," res += "{" res += "\"classname\":\""+category+"\"... | a444ba5dd52fe79e230a6b635c98d2eb5f790204 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/a444ba5dd52fe79e230a6b635c98d2eb5f790204/genjson.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
4413,
16,
4135,
4672,
400,
273,
1408,
1958,
295,
554,
273,
1083,
225,
1122,
4457,
273,
1053,
364,
3150,
316,
1140,
18,
1098,
1214,
12,
9871,
4672,
309,
3150,
316,
8247,
18,
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,
2774,
12,
4413,
16,
4135,
4672,
400,
273,
1408,
1958,
295,
554,
273,
1083,
225,
1122,
4457,
273,
1053,
364,
3150,
316,
1140,
18,
1098,
1214,
12,
9871,
4672,
309,
3150,
316,
8247,
18,
3... |
ff = open(tfile, "rU") | try: ff = open(tfile, "rU") except: print_compact_traceback("exception opening trace file %r: " % tfile) env.history.message( redmsg( "Error: simulator trace file not found at [%s]." % tfile )) self.mentioned_sim_trace_file = True return | def print_sim_warnings(self): #bruce 050407; soon we should do this continuously instead "#doc; might change self.said_we_are_done to False or True, or leave it alone" try: tfile = self.traceFileName except AttributeError: return # sim never ran (not always an error, I suspect) if not tfile: return # no trace file was ... | f3729834a82fbace359ec6c263e7aa15df6e8351 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f3729834a82fbace359ec6c263e7aa15df6e8351/runSim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
9812,
67,
12103,
12,
2890,
4672,
468,
2848,
3965,
15331,
3028,
8642,
31,
17136,
732,
1410,
741,
333,
17235,
715,
3560,
6619,
2434,
31,
4825,
2549,
365,
18,
13098,
350,
67,
1814... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
9812,
67,
12103,
12,
2890,
4672,
468,
2848,
3965,
15331,
3028,
8642,
31,
17136,
732,
1410,
741,
333,
17235,
715,
3560,
6619,
2434,
31,
4825,
2549,
365,
18,
13098,
350,
67,
1814... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.