rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
parentId = simbase.air.districtId self.parentId = parentId | if not hasattr(self, 'parentId'): parentId = simbase.air.districtId self.parentId = parentId | def generateWithRequired(self, zoneId, optionalFields=[]): assert self.notify.debugStateCall(self) # have we already allocated a doId? if self.__preallocDoId: self.__preallocDoId = 0 return self.generateWithRequiredAndId( self.doId, zoneId, optionalFields) # The repository is the one that really does the work self.air.generateWithRequired(self, zoneId, optionalFields) if wantOtpServer: #HACK: parentId = simbase.air.districtId self.parentId = parentId self.zoneId = zoneId self.generate() | a14e7211bf84bab9ba1dfeecc9c2d8bf630bde81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/a14e7211bf84bab9ba1dfeecc9c2d8bf630bde81/DistributedObjectAI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1190,
3705,
12,
2890,
16,
29939,
16,
3129,
2314,
33,
8526,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
468,
1240,
732,
1818,
11977,
279,
741,
548,
35,
309,
365,
16186,
1484,
9853,
3244,
548,
30,
365,
16186,
1484,
9853,
3244,
548,
273,
374,
327,
365,
18,
7163,
1190,
3705,
1876,
548,
12,
365,
18,
2896,
548,
16,
29939,
16,
3129,
2314,
13,
225,
468,
1021,
3352,
353,
326,
1245,
716,
8654,
1552,
326,
1440,
365,
18,
1826,
18,
7163,
1190,
3705,
12,
2890,
16,
29939,
16,
3129,
2314,
13,
309,
2545,
51,
6834,
2081,
30,
468,
44,
3649,
30,
309,
486,
3859,
12,
2890,
16,
296,
2938,
548,
11,
4672,
11582,
273,
3142,
1969,
18,
1826,
18,
22602,
548,
365,
18,
2938,
548,
273,
11582,
365,
18,
3486,
548,
273,
29939,
365,
18,
7163,
1435,
2,
0,
0,
0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
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,
2103,
1190,
3705,
12,
2890,
16,
29939,
16,
3129,
2314,
33,
8526,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
468,
1240,
732,
1818,
11977,
279,
741,
548,
35,
309,
365,
16186,
1484,
9853,
3244,
548,
30,
365,
16186,
1484,
9853,
3244,
548,
273,
374,
327,
365,
18,
7163,
1190,
3705,
1876,
548,
12,
365,
18,
2896,
548,
16,
29939,
16,
3129,
2314,
13,
225,
468,
1021,
3352,
353,
326,
1245,
716,
8654,
1552,
326,
1440,
365,
18,
1826,
18,
7163,
1190,
3705,
12,
2890,
16,
29939,
16,
3129,
2314,
13,
309,
2545,
51,
6834,
2081,
30,
468,
44,
3649,
30,
309,
486,
3859,
12,
2890,
16,
296,
2938,
548,
11,
4672,
11582,
273,
2
] |
global localhostname, vid_graphics_dirs, dir_dict, storagegroups for key in storagegroups.keys(): vid_graphics_dirs[key] = storagegroups[key] | global localhostname, vid_graphics_dirs, dir_dict, storagegroups, local_only if storagegroups.has_key(u'mythvideo'): local_only = False for key in storagegroups.keys(): vid_graphics_dirs[key] = storagegroups[key] for key in dir_dict.keys(): if key == u'default' or key == u'mythvideo': continue if not storagegroups.has_key(key): vid_graphics_dirs[key] = storagegroups[u'mythvideo'] storagegroups[key] = storagegroups[u'mythvideo'] else: local_only = True if storagegroups.has_key(u'default'): vid_graphics_dirs[u'default'] = storagegroups[u'default'] if local_only: logger.warning(u'There is no "Videos" Storage Group set so ONLY MythTV Frontend local paths for videos and graphics that are accessable from this MythTV Backend can be used.') | def getMythtvDirectories(): """Get all video and graphics directories found in the MythTV DB and add them to the dictionary. Ignore any MythTV Frontend setting when there is already a storage group configured. """ # Stop processing if this local host has any storage groups global localhostname, vid_graphics_dirs, dir_dict, storagegroups # Pick up storage groups first for key in storagegroups.keys(): vid_graphics_dirs[key] = storagegroups[key] for key in dir_dict.keys(): if vid_graphics_dirs[key]: continue graphics_dir = mythdb.getSetting(dir_dict[key], hostname = localhostname) # Only use path from MythTV if one was found if key == u'mythvideo' and graphics_dir: tmp_directories = graphics_dir.split(u':') if len(tmp_directories): for i in range(len(tmp_directories)): tmp_directories[i] = tmp_directories[i].strip() if tmp_directories[i] != u'': if os.path.exists(tmp_directories[i]): if tmp_directories[i][-1] != u'/': tmp_directories[i]+=u'/' vid_graphics_dirs[key] = tmp_directories[i] break else: logger.error(u"MythTV video directory (%s) is not set or does not exist(%s)" % (key, tmp_directories[i])) if key != u'mythvideo': if graphics_dir and os.path.exists(graphics_dir): if graphics_dir[-1] != u'/': graphics_dir+=u'/' vid_graphics_dirs[key] = graphics_dir else: # There is the chance that MythTv DB does not have a dir logger.error(u"(%s) directory is not set or does not exist(%s)" % (key, dir_dict[key])) # Make sure there is a directory set for Videos and other graphics directories on this host for key in vid_graphics_dirs.keys(): if not vid_graphics_dirs[key]: logger.critical(u"There must be a directory for Videos and each graphics type. The (%s) directory is missing." % (key)) sys.exit(False) # Make sure that there is read/write access to all the directories Miro Bridge uses access_issue = False for key in vid_graphics_dirs.keys(): if not os.access(vid_graphics_dirs[key], os.F_OK | os.R_OK | os.W_OK): logger.critical(u"\nEvery Video and graphics directory must be read/writable for Miro Bridge to function. There is a permissions issue with (%s)." % (vid_graphics_dirs[key], )) access_issue = True if access_issue: sys.exit(False) # end getMythtvDirectories() | cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2108,
93,
451,
24161,
13071,
13332,
3536,
967,
777,
6191,
471,
17313,
6402,
1392,
316,
326,
8005,
451,
15579,
2383,
471,
527,
2182,
358,
326,
3880,
18,
8049,
1281,
8005,
451,
15579,
27162,
3637,
1347,
1915,
353,
1818,
279,
2502,
1041,
4351,
18,
3536,
468,
5131,
4929,
309,
333,
1191,
1479,
711,
1281,
2502,
3252,
2552,
1191,
10358,
16,
18339,
67,
31586,
67,
8291,
16,
1577,
67,
1576,
16,
2502,
4650,
225,
468,
23038,
731,
2502,
3252,
1122,
364,
498,
316,
2502,
4650,
18,
2452,
13332,
18339,
67,
31586,
67,
8291,
63,
856,
65,
273,
2502,
4650,
63,
856,
65,
225,
364,
498,
316,
1577,
67,
1576,
18,
2452,
13332,
309,
18339,
67,
31586,
67,
8291,
63,
856,
14542,
1324,
17313,
67,
1214,
273,
3399,
451,
1966,
18,
588,
5568,
12,
1214,
67,
1576,
63,
856,
6487,
5199,
273,
1191,
10358,
13,
468,
5098,
999,
589,
628,
8005,
451,
15579,
309,
1245,
1703,
1392,
309,
498,
422,
582,
17784,
93,
451,
9115,
11,
471,
17313,
67,
1214,
30,
1853,
67,
15121,
273,
17313,
67,
1214,
18,
4939,
12,
89,
11,
2497,
13,
309,
562,
12,
5645,
67,
15121,
4672,
364,
277,
316,
1048,
12,
1897,
12,
5645,
67,
15121,
3719,
30,
1853,
67,
15121,
63,
77,
65,
273,
1853,
67,
15121,
63,
77,
8009,
6406,
1435,
309,
1853,
67,
15121,
63,
77,
65,
480,
582,
11,
4278,
309,
1140,
18,
803,
18,
1808,
12,
5645,
67,
15121,
63,
77,
65,
4672,
309,
1853,
67,
15121,
63,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2108,
93,
451,
24161,
13071,
13332,
3536,
967,
777,
6191,
471,
17313,
6402,
1392,
316,
326,
8005,
451,
15579,
2383,
471,
527,
2182,
358,
326,
3880,
18,
8049,
1281,
8005,
451,
15579,
27162,
3637,
1347,
1915,
353,
1818,
279,
2502,
1041,
4351,
18,
3536,
468,
5131,
4929,
309,
333,
1191,
1479,
711,
1281,
2502,
3252,
2552,
1191,
10358,
16,
18339,
67,
31586,
67,
8291,
16,
1577,
67,
1576,
16,
2502,
4650,
225,
468,
23038,
731,
2502,
3252,
1122,
364,
498,
316,
2502,
4650,
18,
2452,
13332,
18339,
67,
31586,
67,
8291,
63,
856,
65,
273,
2502,
4650,
63,
856,
65,
225,
364,
498,
316,
1577,
67,
1576,
18,
2452,
13332,
309,
18339,
67,
31586,
67,
8291,
63,
856,
2
] |
key = None if key not in state.copyblocks: self.flowin(state, key) block = state.copyblocks[key] | merged_key = [] recompute = False for c1, c2 in zip(block.inputargs, next.args): if isinstance(c1, Constant) and c1 != c2: merged_key.append(None) recompute = True else: merged_key.append(c1) if recompute: print 'flowin() merged as', merged_key block = self.flowin(state, merged_key) state.copyblocks[key] = block raise RestartCompleting | def try_to_complete(self): graph = self.copygraph interp = self.interp pending = [self] seen = {} # follow all possible links, forcing the blocks along the way to be # computed while pending: next = pending.pop() state = interp.pendingstates[next] if interp.policy.const_propagate: key = tuple(state.getruntimevars(VarMemo(next.args))) else: key = None if key not in state.copyblocks: self.flowin(state, key) block = state.copyblocks[key] next.settarget(block) for link in block.exits: if link.target is None or link.target.operations != (): if link not in seen: seen[link] = True pending.append(link) else: # link.target is a return or except block; make sure # that it is really the one from 'graph' -- by patching # 'graph' if necessary. if len(link.target.inputargs) == 1: self.a_return = state.args_a[0] graph.returnblock = link.target elif len(link.target.inputargs) == 2: graph.exceptblock = link.target else: raise Exception("uh?") | 9ff1bb8b5ef2e3bd2c28b6210ffb0f9937ee702f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/9ff1bb8b5ef2e3bd2c28b6210ffb0f9937ee702f/llabstractinterp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
869,
67,
6226,
12,
2890,
4672,
2667,
273,
365,
18,
3530,
4660,
8174,
273,
365,
18,
24940,
4634,
273,
306,
2890,
65,
5881,
273,
2618,
468,
2805,
777,
3323,
4716,
16,
364,
2822,
326,
4398,
7563,
326,
4031,
358,
506,
468,
8470,
1323,
4634,
30,
1024,
273,
4634,
18,
5120,
1435,
919,
273,
8174,
18,
9561,
7992,
63,
4285,
65,
309,
8174,
18,
5086,
18,
10248,
67,
5986,
346,
340,
30,
498,
273,
3193,
12,
2019,
18,
588,
9448,
4699,
12,
1537,
21230,
12,
4285,
18,
1968,
20349,
469,
30,
282,
5384,
67,
856,
273,
5378,
30067,
273,
1083,
364,
276,
21,
16,
276,
22,
316,
3144,
12,
2629,
18,
2630,
1968,
16,
1024,
18,
1968,
4672,
309,
1549,
12,
71,
21,
16,
10551,
13,
471,
276,
21,
480,
276,
22,
30,
225,
5384,
67,
856,
18,
6923,
12,
7036,
13,
30067,
273,
1053,
469,
30,
5384,
67,
856,
18,
6923,
12,
71,
21,
13,
309,
30067,
30,
1172,
296,
2426,
267,
1435,
5384,
487,
2187,
5384,
67,
856,
1203,
273,
365,
18,
2426,
267,
12,
2019,
16,
5384,
67,
856,
13,
919,
18,
3530,
7996,
63,
856,
65,
273,
1203,
1002,
20709,
6297,
310,
1024,
18,
542,
3299,
12,
2629,
13,
364,
1692,
316,
1203,
18,
338,
1282,
30,
309,
1692,
18,
3299,
353,
599,
578,
1692,
18,
3299,
18,
17542,
480,
1832,
30,
309,
1692,
486,
316,
5881,
30,
5881,
63,
1232,
65,
273,
1053,
4634,
18,
6923,
12,
1232,
13,
469,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
869,
67,
6226,
12,
2890,
4672,
2667,
273,
365,
18,
3530,
4660,
8174,
273,
365,
18,
24940,
4634,
273,
306,
2890,
65,
5881,
273,
2618,
468,
2805,
777,
3323,
4716,
16,
364,
2822,
326,
4398,
7563,
326,
4031,
358,
506,
468,
8470,
1323,
4634,
30,
1024,
273,
4634,
18,
5120,
1435,
919,
273,
8174,
18,
9561,
7992,
63,
4285,
65,
309,
8174,
18,
5086,
18,
10248,
67,
5986,
346,
340,
30,
498,
273,
3193,
12,
2019,
18,
588,
9448,
4699,
12,
1537,
21230,
12,
4285,
18,
1968,
20349,
469,
30,
282,
5384,
67,
856,
273,
5378,
30067,
273,
1083,
364,
276,
21,
16,
276,
22,
316,
3144,
12,
2629,
18,
2630,
1968,
16,
1024,
18,
1968,
2
] |
elements = [ InodeType(case=query['case']), | elements = [ InodeIDType(case=query['case']), | def display(self, query, result): result.table( elements = [ InodeType(case=query['case']), StringType('Property','property'), StringType('Value','value')], table = 'xattr,inode', case = query['case'], where = 'inode.inode_id=xattr.inode_id', ) | 3f332eb15513f1943e246716b5c7ff4fef8eea62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/3f332eb15513f1943e246716b5c7ff4fef8eea62/Extractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
843,
16,
563,
4672,
563,
18,
2121,
12,
2186,
273,
306,
657,
390,
734,
559,
12,
3593,
33,
2271,
3292,
3593,
3546,
3631,
31570,
2668,
1396,
17023,
4468,
19899,
31570,
2668,
620,
17023,
1132,
6134,
6487,
1014,
273,
296,
92,
1747,
16,
267,
390,
2187,
648,
273,
843,
3292,
3593,
17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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2562,
12,
2890,
16,
843,
16,
563,
4672,
563,
18,
2121,
12,
2186,
273,
306,
657,
390,
734,
559,
12,
3593,
33,
2271,
3292,
3593,
3546,
3631,
31570,
2668,
1396,
17023,
4468,
19899,
31570,
2668,
620,
17023,
1132,
6134,
6487,
1014,
273,
296,
92,
1747,
16,
267,
390,
2187,
648,
273,
843,
3292,
3593,
17337,
1625,
273,
296,
267,
390,
18,
267,
390,
67,
350,
33,
92,
1747,
18,
267,
390,
67,
350,
2187,
262,
225,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.bpmedit = gtk.Entry() self.bpmedit.set_width_chars(3) | self.bpmedit = gtk.SpinButton() self.bpmedit.set_range(1, 400) self.bpmedit.set_increments(1, 5) | def OnEditBPM(self, widget, event): #self.parentUpdateMethod() if event.type == gtk.gdk.BUTTON_PRESS: self.bpmframe.remove(self.bpmeventbox) self.bpmedit = gtk.Entry() self.bpmedit.set_width_chars(3) self.bpmedit.set_text(str(self.project.transport.bpm)) self.bpmedit.connect("activate", self.OnAcceptEditBPM) | af3db0adaf362ee9d77de2b43b8573295de6265e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/af3db0adaf362ee9d77de2b43b8573295de6265e/TimeLineBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4666,
38,
12728,
12,
2890,
16,
3604,
16,
871,
4672,
468,
2890,
18,
2938,
1891,
1305,
1435,
309,
871,
18,
723,
422,
22718,
18,
75,
2883,
18,
20068,
67,
22526,
30,
365,
18,
70,
7755,
3789,
18,
4479,
12,
2890,
18,
70,
7755,
2575,
2147,
13,
225,
365,
18,
17152,
2937,
305,
273,
22718,
18,
3389,
267,
3616,
1435,
365,
18,
17152,
2937,
305,
18,
542,
67,
3676,
12,
21,
16,
7409,
13,
365,
18,
17152,
2937,
305,
18,
542,
67,
267,
1793,
1346,
12,
21,
16,
1381,
13,
365,
18,
17152,
2937,
305,
18,
542,
67,
955,
12,
701,
12,
2890,
18,
4406,
18,
13049,
18,
70,
7755,
3719,
365,
18,
17152,
2937,
305,
18,
3612,
2932,
10014,
3113,
365,
18,
1398,
5933,
4666,
38,
12728,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2755,
4666,
38,
12728,
12,
2890,
16,
3604,
16,
871,
4672,
468,
2890,
18,
2938,
1891,
1305,
1435,
309,
871,
18,
723,
422,
22718,
18,
75,
2883,
18,
20068,
67,
22526,
30,
365,
18,
70,
7755,
3789,
18,
4479,
12,
2890,
18,
70,
7755,
2575,
2147,
13,
225,
365,
18,
17152,
2937,
305,
273,
22718,
18,
3389,
267,
3616,
1435,
365,
18,
17152,
2937,
305,
18,
542,
67,
3676,
12,
21,
16,
7409,
13,
365,
18,
17152,
2937,
305,
18,
542,
67,
267,
1793,
1346,
12,
21,
16,
1381,
13,
365,
18,
17152,
2937,
305,
18,
542,
67,
955,
12,
701,
12,
2890,
18,
4406,
18,
13049,
18,
70,
7755,
3719,
365,
18,
17152,
2937,
305,
18,
3612,
2
] |
self.__holdHandler(float(relTime)/self.__activateDelay) | self.__holdHandler(float(relTime)/(self.__activateDelay-self.__holdDelay)) | def __onFrame(self): relTime = g_Player.getFrameTime() - self.__startTime if self.__state == HoldProcessor.DOWN: if relTime > self.__holdDelay: self.__changeState(HoldProcessor.HOLDING) if self.__state == HoldProcessor.HOLDING: if relTime > self.__activateDelay: self.__changeState(HoldProcessor.ACTIVE) else: self.__holdHandler(float(relTime)/self.__activateDelay) | b969b635def3d57083c9940a64e56e65a7fad331 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/b969b635def3d57083c9940a64e56e65a7fad331/manipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
265,
3219,
12,
2890,
4672,
1279,
950,
273,
314,
67,
12148,
18,
588,
3219,
950,
1435,
300,
365,
16186,
1937,
950,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
12711,
30,
309,
1279,
950,
405,
365,
16186,
21056,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
44,
11846,
1360,
13,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
44,
11846,
1360,
30,
309,
1279,
950,
405,
365,
16186,
10014,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
13301,
13,
469,
30,
365,
16186,
21056,
1503,
12,
5659,
12,
2878,
950,
13176,
2890,
16186,
10014,
6763,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
981,
30,
1652,
1001,
265,
3219,
12,
2890,
4672,
1279,
950,
273,
314,
67,
12148,
18,
588,
3219,
950,
1435,
300,
365,
16186,
1937,
950,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
12711,
30,
309,
1279,
950,
405,
365,
16186,
21056,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
44,
11846,
1360,
13,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
44,
11846,
1360,
30,
309,
1279,
950,
405,
365,
16186,
10014,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
13301,
13,
469,
30,
365,
16186,
21056,
1503,
12,
5659,
12,
2878,
950,
13176,
2890,
16186,
10014,
6763,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import md5, types, operator, os | import types, operator, os, md5 | to handle this 'cleanly'. One way would be to define methods like: def callBack(self, (arg1, arg2, arg)): ... another | 9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
358,
1640,
333,
296,
6200,
715,
10332,
6942,
4031,
4102,
506,
358,
4426,
2590,
3007,
30,
1652,
745,
2711,
12,
2890,
16,
261,
3175,
21,
16,
1501,
22,
16,
1501,
3719,
30,
1372,
4042,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
1640,
333,
296,
6200,
715,
10332,
6942,
4031,
4102,
506,
358,
4426,
2590,
3007,
30,
1652,
745,
2711,
12,
2890,
16,
261,
3175,
21,
16,
1501,
22,
16,
1501,
3719,
30,
1372,
4042,
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,
-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,
-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,
-100,
-100,
-100,
-100
] |
"""Perform error checking to make sure To and From have values""" | """Perform error checking to make sure To, From, and retries have values""" | def __sendMail(self): """Sends a mail message via SMTP using the account and mailMessage passed to this classes __init__ method using the Twisted Asych Reactor""" | 5a140966f5052a15b637c45c1e06a4784887f60c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5a140966f5052a15b637c45c1e06a4784887f60c/smtp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4661,
6759,
12,
2890,
4672,
3536,
10501,
279,
4791,
883,
3970,
18102,
1450,
326,
2236,
471,
4791,
1079,
2275,
358,
333,
3318,
1001,
2738,
972,
707,
1450,
326,
12694,
25444,
2970,
93,
343,
868,
3362,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4661,
6759,
12,
2890,
4672,
3536,
10501,
279,
4791,
883,
3970,
18102,
1450,
326,
2236,
471,
4791,
1079,
2275,
358,
333,
3318,
1001,
2738,
972,
707,
1450,
326,
12694,
25444,
2970,
93,
343,
868,
3362,
8395,
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,
-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,
-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
] |
if data and listform.is_valid() and columnformset.is_valid(): | if data and listform.is_valid(): | def new_edit_list(request, group, list=None, is_admin=False): """Create new or edit existing list""" if request.method == 'POST': data = request.POST else: data = None if not list: ColumnFormSet = inlineformset_factory(List, ListColumn, extra=10, form=ColumnForm) columnformset = ColumnFormSet(data) listform = ListForm(data=data, group=group) else: ColumnFormSet = inlineformset_factory(List, ListColumn, extra=3, form=ColumnForm) if list is None: raise Http404 listform = ListForm(data, instance=list, group=group) columnformset = ColumnFormSet(data, instance=list) if data and listform.is_valid() and columnformset.is_valid(): list = listform.save(group=group) columnformset.instance = list columns = columnformset.save(commit=False) for c in columns: if not c.name and not c.width: if c.id: c.delete() else: c.save() return HttpResponseRedirect(reverse('group-summary', kwargs={ 'group': group.slug, })) return render_to_response('reports/list_form.html', { 'is_admin': is_admin, 'group': group, 'list': list, 'listform': listform, 'columnformset': columnformset, }, context_instance=RequestContext(request)) | 4c0b0093f7a4767a435e9561e61d5b62ed7ae27b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12178/4c0b0093f7a4767a435e9561e61d5b62ed7ae27b/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
4619,
67,
1098,
12,
2293,
16,
1041,
16,
666,
33,
7036,
16,
353,
67,
3666,
33,
8381,
4672,
3536,
1684,
394,
578,
3874,
2062,
666,
8395,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
501,
273,
590,
18,
3798,
469,
30,
501,
273,
599,
225,
309,
486,
666,
30,
4753,
1204,
694,
273,
6370,
687,
542,
67,
6848,
12,
682,
16,
987,
1494,
16,
2870,
33,
2163,
16,
646,
33,
1494,
1204,
13,
225,
1057,
687,
542,
273,
4753,
1204,
694,
12,
892,
13,
666,
687,
273,
987,
1204,
12,
892,
33,
892,
16,
1041,
33,
1655,
13,
225,
469,
30,
4753,
1204,
694,
273,
6370,
687,
542,
67,
6848,
12,
682,
16,
987,
1494,
16,
2870,
33,
23,
16,
646,
33,
1494,
1204,
13,
309,
666,
353,
599,
30,
1002,
2541,
11746,
225,
666,
687,
273,
987,
1204,
12,
892,
16,
791,
33,
1098,
16,
1041,
33,
1655,
13,
1057,
687,
542,
273,
4753,
1204,
694,
12,
892,
16,
791,
33,
1098,
13,
225,
309,
501,
471,
666,
687,
18,
291,
67,
877,
13332,
666,
273,
666,
687,
18,
5688,
12,
1655,
33,
1655,
13,
225,
1057,
687,
542,
18,
1336,
273,
666,
2168,
273,
1057,
687,
542,
18,
5688,
12,
7371,
33,
8381,
13,
225,
364,
276,
316,
2168,
30,
309,
486,
276,
18,
529,
471,
486,
276,
18,
2819,
30,
309,
276,
18,
350,
30,
276,
18,
3733,
1435,
469,
30,
276,
18,
5688,
1435,
225,
327,
31780,
12,
9845,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
4619,
67,
1098,
12,
2293,
16,
1041,
16,
666,
33,
7036,
16,
353,
67,
3666,
33,
8381,
4672,
3536,
1684,
394,
578,
3874,
2062,
666,
8395,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
501,
273,
590,
18,
3798,
469,
30,
501,
273,
599,
225,
309,
486,
666,
30,
4753,
1204,
694,
273,
6370,
687,
542,
67,
6848,
12,
682,
16,
987,
1494,
16,
2870,
33,
2163,
16,
646,
33,
1494,
1204,
13,
225,
1057,
687,
542,
273,
4753,
1204,
694,
12,
892,
13,
666,
687,
273,
987,
1204,
12,
892,
33,
892,
16,
1041,
33,
1655,
13,
225,
469,
30,
4753,
1204,
694,
273,
6370,
687,
542,
67,
6848,
12,
682,
16,
987,
1494,
2
] |
if self.dont_send_messages: self._make_new_info(obj) return | def on_object_changed(self, obj, id): if self.dont_send_messages: # even though we're not sending messages, call _make_new_info() to # update _last_sent_info self._make_new_info(obj) return self.changed.add(obj) self.schedule_send_messages() | 9216676ad17c84f401690d41b09a052496b5842b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/9216676ad17c84f401690d41b09a052496b5842b/messagehandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1612,
67,
6703,
12,
2890,
16,
1081,
16,
612,
4672,
309,
365,
18,
72,
1580,
67,
4661,
67,
6833,
30,
468,
5456,
11376,
732,
4565,
486,
5431,
2743,
16,
745,
389,
6540,
67,
2704,
67,
1376,
1435,
358,
468,
1089,
389,
2722,
67,
7569,
67,
1376,
365,
6315,
6540,
67,
2704,
67,
1376,
12,
2603,
13,
327,
365,
18,
6703,
18,
1289,
12,
2603,
13,
365,
18,
10676,
67,
4661,
67,
6833,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
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,
603,
67,
1612,
67,
6703,
12,
2890,
16,
1081,
16,
612,
4672,
309,
365,
18,
72,
1580,
67,
4661,
67,
6833,
30,
468,
5456,
11376,
732,
4565,
486,
5431,
2743,
16,
745,
389,
6540,
67,
2704,
67,
1376,
1435,
358,
468,
1089,
389,
2722,
67,
7569,
67,
1376,
365,
6315,
6540,
67,
2704,
67,
1376,
12,
2603,
13,
327,
365,
18,
6703,
18,
1289,
12,
2603,
13,
365,
18,
10676,
67,
4661,
67,
6833,
1435,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if str(key) == line[i]: | if line[i] in [str(key),str(val)]: | def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id = False # # Import normal fields # for i in range(len(fields)): if i >= len(line): raise Exception(_('Please check that all your lines have %d columns.') % (len(fields),)) field = fields[i] if field == ["id"]: data_id = line[i] continue if (len(field)==len(prefix)+1) and field[len(prefix)].endswith(':id'): res_id = False if line[i]: if fields_def[field[len(prefix)][:-3]]['type']=='many2many': res_id = [] for word in line[i].split(config.get('csv_internal_sep')): if '.' in word: module, xml_id = word.rsplit('.', 1) else: module, xml_id = current_module, word ir_model_data_obj = self.pool.get('ir.model.data') id = ir_model_data_obj._get_id(cr, uid, module, xml_id) res_id2 = ir_model_data_obj.read(cr, uid, [id], ['res_id'])[0]['res_id'] if res_id2: res_id.append(res_id2) if len(res_id): res_id = [(6, 0, res_id)] else: if '.' in line[i]: module, xml_id = line[i].rsplit('.', 1) else: module, xml_id = current_module, line[i] ir_model_data_obj = self.pool.get('ir.model.data') id = ir_model_data_obj._get_id(cr, uid, module, xml_id) res_id = ir_model_data_obj.read(cr, uid, [id], ['res_id'])[0]['res_id'] row[field[0][:-3]] = res_id or False continue if (len(field) == len(prefix)+1) and \ len(field[len(prefix)].split(':lang=')) == 2: f, lang = field[len(prefix)].split(':lang=') translate.setdefault(lang, {})[f]=line[i] or False continue if (len(field) == len(prefix)+1) and \ (prefix == field[0:len(prefix)]): if fields_def[field[len(prefix)]]['type'] == 'integer': res = line[i] and int(line[i]) elif fields_def[field[len(prefix)]]['type'] == 'boolean': res = line[i] and eval(line[i]) elif fields_def[field[len(prefix)]]['type'] == 'float': res = line[i] and float(line[i]) elif fields_def[field[len(prefix)]]['type'] == 'selection': res = False if isinstance(fields_def[field[len(prefix)]]['selection'], (tuple, list)): sel = fields_def[field[len(prefix)]]['selection'] else: sel = fields_def[field[len(prefix)]]['selection'](self, cr, uid, context) for key, val in sel: if str(key) == line[i]: res = key if line[i] and not res: logger.notifyChannel("import", netsvc.LOG_WARNING, "key '%s' not found in selection field '%s'" % \ (line[i], field[len(prefix)])) elif fields_def[field[len(prefix)]]['type']=='many2one': res = False if line[i]: relation = fields_def[field[len(prefix)]]['relation'] res2 = self.pool.get(relation).name_search(cr, uid, line[i], [], operator='=') res = (res2 and res2[0][0]) or False if not res: warning += ('Relation not found: ' + line[i] + \ ' on ' + relation + ' !\n') logger.notifyChannel("import", netsvc.LOG_WARNING, 'Relation not found: ' + line[i] + \ ' on ' + relation + ' !\n') elif fields_def[field[len(prefix)]]['type']=='many2many': res = [] if line[i]: relation = fields_def[field[len(prefix)]]['relation'] for word in line[i].split(config.get('csv_internal_sep')): res2 = self.pool.get(relation).name_search(cr, uid, word, [], operator='=') res3 = (res2 and res2[0][0]) or False if not res3: warning += ('Relation not found: ' + \ line[i] + ' on '+relation + ' !\n') logger.notifyChannel("import", netsvc.LOG_WARNING, 'Relation not found: ' + line[i] + \ ' on '+relation + ' !\n') else: res.append(res3) if len(res): res = [(6, 0, res)] else: res = line[i] or False row[field[len(prefix)]] = res elif (prefix==field[0:len(prefix)]): if field[0] not in todo: todo.append(field[len(prefix)]) # # Import one2many fields # nbrmax = 1 for field in todo: newfd = self.pool.get(fields_def[field]['relation']).fields_get( cr, uid, context=context) res = process_liness(self, datas, prefix + [field], newfd, position) (newrow, max2, w2, translate2, data_id2) = res nbrmax = max(nbrmax, max2) warning = warning + w2 reduce(lambda x, y: x and y, newrow) row[field] = (reduce(lambda x, y: x or y, newrow.values()) and \ [(0, 0, newrow)]) or [] i = max2 while (position+i)<len(datas): ok = True for j in range(len(fields)): field2 = fields[j] if (len(field2) <= (len(prefix)+1)) and datas[position+i][j]: ok = False if not ok: break | adc4f059ec5a18fd24c9b935975c6013dc05fb4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/adc4f059ec5a18fd24c9b935975c6013dc05fb4e/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
875,
501,
67,
350,
273,
1083,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
2168,
1093,
13,
738,
261,
1897,
12,
2821,
3631,
3719,
652,
273,
1466,
63,
77,
65,
309,
652,
422,
8247,
350,
11929,
30,
501,
67,
350,
273,
980,
63,
77,
65,
1324,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
350,
11,
4672,
400,
67,
350,
273,
1083,
309,
980,
63,
77,
14542,
309,
1466,
67,
536,
63,
1518,
63,
1897,
12,
3239,
13,
6362,
30,
17,
23,
13563,
3292,
723,
3546,
18920,
9353,
22,
9353,
4278,
400,
67,
350,
273,
5378,
364,
2076,
316,
980,
63,
77,
8009,
4939,
12,
1425,
18,
588,
2668,
6715,
67,
7236,
67,
10814,
26112,
30,
309,
2611,
316,
2076,
30,
1605,
16,
2025,
67,
350,
273,
2076,
18,
86,
4939,
2668,
1093,
16,
404,
13,
469,
30,
1605,
16,
2025,
67,
350,
273,
783,
67,
2978,
16,
2076,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
875,
501,
67,
350,
273,
1083,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
2168,
1093,
13,
738,
261,
1897,
12,
2821,
3631,
3719,
652,
273,
1466,
63,
77,
65,
309,
652,
422,
8247,
350,
11929,
30,
501,
67,
350,
273,
980,
63,
77,
65,
1324,
309,
261,
1897,
12,
1518,
13,
631,
1897,
2
] |
self.bytebuffer = "" | self.buffer = "" | def reset(self): IncrementalDecoder.reset(self) self.bytebuffer = "" | 330bc7f9e45d80478e57e6f8a66d7fc7962dfb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/330bc7f9e45d80478e57e6f8a66d7fc7962dfb10/codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
17883,
287,
7975,
18,
6208,
12,
2890,
13,
365,
18,
7229,
4106,
273,
1408,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2715,
12,
2890,
4672,
17883,
287,
7975,
18,
6208,
12,
2890,
13,
365,
18,
7229,
4106,
273,
1408,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for host in hosts: | for host in hosts.keys(): | def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | 2f96994b0560407d1d9a82cb63b4ca80644ab796 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/2f96994b0560407d1d9a82cb63b4ca80644ab796/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
9625,
12,
69,
16,
324,
4672,
324,
5642,
273,
1361,
67,
2327,
67,
4524,
12,
70,
13,
3364,
270,
273,
1361,
67,
2327,
67,
4524,
12,
69,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1267,
67,
9625,
12,
69,
16,
324,
4672,
324,
5642,
273,
1361,
67,
2327,
67,
4524,
12,
70,
13,
3364,
270,
273,
1361,
67,
2327,
67,
4524,
12,
69,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.executables['archiver']: | if self.executables.get('archiver'): | def get_flags_ar(self): """ List of archiver flags. """ if self.executables['archiver']: return self.executables['archiver'][1:] return [] | 9ddd860b31ea1d4517eb3fff6ab4c280ebb14dec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/9ddd860b31ea1d4517eb3fff6ab4c280ebb14dec/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7133,
67,
297,
12,
2890,
4672,
3536,
987,
434,
6637,
1667,
2943,
18,
3536,
309,
365,
18,
4177,
322,
1538,
18,
588,
2668,
991,
1667,
11,
4672,
327,
365,
18,
4177,
322,
1538,
3292,
991,
1667,
3546,
63,
21,
26894,
327,
5378,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7133,
67,
297,
12,
2890,
4672,
3536,
987,
434,
6637,
1667,
2943,
18,
3536,
309,
365,
18,
4177,
322,
1538,
18,
588,
2668,
991,
1667,
11,
4672,
327,
365,
18,
4177,
322,
1538,
3292,
991,
1667,
3546,
63,
21,
26894,
327,
5378,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
num_idle += 1 if jf.steps: idle_since = datetime.strptime( jf.steps[-1].enddatetime, ISO8601) else: idle_since = datetime.strptime( jf.creationdatetime, ISO8601) idle_time = now - idle_since | idle_since = datetime.strptime( jf.creationdatetime, ISO8601) idle_time = now - idle_since | def main(): option_parser = make_option_parser() options, args = option_parser.parse_args() if args: option_parser.error('takes no arguments') # set up logging if not options.quiet: log_to_stream(name='mrjob', debug=options.verbose) emr_conn = EMRJobRunner(conf_path=options.conf_path).make_emr_conn() log.info( 'getting info about all job flows (this goes back about 2 weeks)') job_flows = emr_conn.describe_jobflows() now = datetime.utcnow() num_running = 0 num_idle = 0 num_done = 0 # a list of tuples of job flow id, name, idle time (as a timedelta) to_terminate = [] for jf in job_flows: # check if job flow is done if hasattr(jf, 'enddatetime'): num_done += 1 # check if job flow is currently running elif jf.steps and not hasattr(jf.steps[-1], 'enddatetime'): num_running += 1 # job flow is idle. how long? else: num_idle += 1 if jf.steps: idle_since = datetime.strptime( jf.steps[-1].enddatetime, ISO8601) else: idle_since = datetime.strptime( jf.creationdatetime, ISO8601) idle_time = now - idle_since # don't care about fractions of a second idle_time = timedelta(idle_time.days, idle_time.seconds) log.debug('Job flow %s (%s) idle for %s' % (jf.jobflowid, jf.name, idle_time)) if idle_time > timedelta(hours=options.max_hours_idle): to_terminate.append( (jf.jobflowid, jf.name, idle_time)) log.info('Job flow statuses: %d running, %d idle, %d done' % (num_running, num_idle, num_done)) terminate_and_notify(emr_conn, to_terminate, options) | 9d65274350c3ca98dd2bba37139fa3578017faf5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14504/9d65274350c3ca98dd2bba37139fa3578017faf5/terminate_idle_job_flows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1456,
67,
4288,
273,
1221,
67,
3482,
67,
4288,
1435,
702,
16,
833,
273,
1456,
67,
4288,
18,
2670,
67,
1968,
1435,
225,
309,
833,
30,
1456,
67,
4288,
18,
1636,
2668,
88,
3223,
1158,
1775,
6134,
225,
468,
444,
731,
2907,
309,
486,
702,
18,
20380,
30,
613,
67,
869,
67,
3256,
12,
529,
2218,
21387,
4688,
2187,
1198,
33,
2116,
18,
11369,
13,
225,
801,
86,
67,
4646,
273,
7141,
54,
2278,
9709,
12,
3923,
67,
803,
33,
2116,
18,
3923,
67,
803,
2934,
6540,
67,
351,
86,
67,
4646,
1435,
225,
613,
18,
1376,
12,
296,
588,
1787,
1123,
2973,
777,
1719,
22465,
261,
2211,
13998,
1473,
2973,
576,
17314,
2506,
13,
1719,
67,
24190,
273,
801,
86,
67,
4646,
18,
22748,
67,
4688,
24190,
1435,
225,
2037,
273,
3314,
18,
17892,
3338,
1435,
225,
818,
67,
8704,
273,
374,
818,
67,
20390,
273,
374,
818,
67,
8734,
273,
374,
468,
279,
666,
434,
10384,
434,
1719,
4693,
612,
16,
508,
16,
12088,
813,
261,
345,
279,
10661,
13,
358,
67,
30017,
273,
5378,
225,
364,
525,
74,
316,
1719,
67,
24190,
30,
468,
866,
309,
1719,
4693,
353,
2731,
309,
3859,
12,
78,
74,
16,
296,
409,
6585,
11,
4672,
818,
67,
8734,
1011,
404,
468,
866,
309,
1719,
4693,
353,
4551,
3549,
1327,
525,
74,
18,
8986,
471,
486,
3859,
12,
78,
74,
18,
8986,
18919,
21,
6487,
296,
409,
6585,
11,
4672,
818,
67,
8704,
1011,
404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1456,
67,
4288,
273,
1221,
67,
3482,
67,
4288,
1435,
702,
16,
833,
273,
1456,
67,
4288,
18,
2670,
67,
1968,
1435,
225,
309,
833,
30,
1456,
67,
4288,
18,
1636,
2668,
88,
3223,
1158,
1775,
6134,
225,
468,
444,
731,
2907,
309,
486,
702,
18,
20380,
30,
613,
67,
869,
67,
3256,
12,
529,
2218,
21387,
4688,
2187,
1198,
33,
2116,
18,
11369,
13,
225,
801,
86,
67,
4646,
273,
7141,
54,
2278,
9709,
12,
3923,
67,
803,
33,
2116,
18,
3923,
67,
803,
2934,
6540,
67,
351,
86,
67,
4646,
1435,
225,
613,
18,
1376,
12,
296,
588,
1787,
1123,
2973,
777,
1719,
22465,
261,
2211,
13998,
1473,
2973,
576,
17314,
2506,
13,
1719,
2
] |
(( 'x1', convert( x1)), ( 'y1', convert( y1)), ( 'x2', convert( x2)), ( 'y2', convert( y2)), | (( 'x1', self.convert( x1)), ( 'y1', self.convert( y1)), ( 'x2', self.convert( x2)), ( 'y2', self.convert( y2)), | def add_bond( self, b): """adds bond item to SVG document""" if not b.item: return line_width = (b.type == 'b') and b.wedge_width or b.type != 'w' and b.line_width or 1.0 l_group = dom_extensions.elementUnder( self.group, 'g', (('stroke-width', str( line_width)), ('stroke', self.cc( b.line_color)))) if sum( [int( a.show) for a in b.atoms]) == 2: # both atoms are visible, it does not look good with round caps l_group.setAttribute('stroke-linecap', 'butt') | 0de1b9f03df78cd14242cbe5d17110a7b29ab7cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4298/0de1b9f03df78cd14242cbe5d17110a7b29ab7cc/xml_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
26425,
12,
365,
16,
324,
4672,
3536,
25428,
8427,
761,
358,
11281,
1668,
8395,
309,
486,
324,
18,
1726,
30,
327,
980,
67,
2819,
273,
261,
70,
18,
723,
422,
296,
70,
6134,
471,
324,
18,
91,
7126,
67,
2819,
578,
324,
18,
723,
480,
296,
91,
11,
471,
324,
18,
1369,
67,
2819,
578,
404,
18,
20,
328,
67,
1655,
273,
4092,
67,
9489,
18,
2956,
14655,
12,
365,
18,
1655,
16,
296,
75,
2187,
261,
2668,
16181,
17,
2819,
2187,
609,
12,
980,
67,
2819,
13,
3631,
7707,
16181,
2187,
365,
18,
952,
12,
324,
18,
1369,
67,
3266,
3719,
3719,
309,
2142,
12,
306,
474,
12,
279,
18,
4500,
13,
364,
279,
316,
324,
18,
14937,
5717,
422,
576,
30,
468,
3937,
9006,
854,
6021,
16,
518,
1552,
486,
2324,
7494,
598,
3643,
15788,
328,
67,
1655,
18,
542,
1499,
2668,
16181,
17,
7511,
557,
438,
2187,
296,
12885,
88,
6134,
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,
0,
0,
0,
0,
0,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
18,
723,
422,
296,
70,
6134,
471,
324,
18,
91,
7126,
67,
2819,
578,
324,
18,
723,
480,
296,
91,
11,
471,
324,
18,
1369,
67,
2819,
578,
404,
18,
20,
328,
67,
1655,
273,
4092,
67,
9489,
18,
2956,
14655,
12,
365,
18,
1655,
16,
296,
75,
2187,
261,
2668,
16181,
17,
2819,
2187,
609,
12,
980,
67,
2819,
13,
3631,
7707,
16181,
2187,
365,
18,
952,
12,
324,
18,
1369,
67,
3266,
3719,
3719,
309,
2142,
12,
306,
474,
12,
279,
18,
4500,
13,
364,
279,
316,
2
] |
library_dir = sysconfig.get_config_var('srcdir') cmd.library_dirs = [('.' if library_dir is None else library_dir)] | runshared = sysconfig.get_config_var('RUNSHARED') if runshared is None: cmd.library_dirs = ['.'] else: name, equals, value = runshared.partition('=') cmd.library_dirs = value.split(os.pathsep) | def _fixup_command(self, cmd): # When Python was build with --enable-shared, -L. is not good enough # to find the libpython<blah>.so. This is because regrtest runs it # under a tempdir, not in the top level where the .so lives. By the # time we've gotten here, Python's already been chdir'd to the # tempdir. # # To further add to the fun, we can't just add library_dirs to the # Extension() instance because that doesn't get plumbed through to the # final compiler command. if not sys.platform.startswith('win'): library_dir = sysconfig.get_config_var('srcdir') cmd.library_dirs = [('.' if library_dir is None else library_dir)] | 7891bb288c7ac681d58325547df58eb4ee502957 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/7891bb288c7ac681d58325547df58eb4ee502957/test_build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
416,
67,
3076,
12,
2890,
16,
1797,
4672,
468,
5203,
6600,
1703,
1361,
598,
1493,
7589,
17,
11574,
16,
300,
48,
18,
353,
486,
7494,
7304,
468,
358,
1104,
326,
2561,
8103,
32,
3083,
9795,
18652,
2048,
18,
225,
1220,
353,
2724,
960,
3797,
395,
7597,
518,
468,
3613,
279,
23101,
16,
486,
316,
326,
1760,
1801,
1625,
326,
263,
2048,
328,
3606,
18,
225,
2525,
326,
468,
813,
732,
8081,
2363,
2253,
2674,
16,
6600,
1807,
1818,
2118,
14029,
14271,
358,
326,
468,
23101,
18,
468,
468,
2974,
9271,
527,
358,
326,
9831,
16,
732,
848,
1404,
2537,
527,
5313,
67,
8291,
358,
326,
468,
10021,
1435,
791,
2724,
716,
3302,
1404,
336,
886,
379,
2992,
3059,
358,
326,
468,
727,
5274,
1296,
18,
309,
486,
2589,
18,
9898,
18,
17514,
1918,
2668,
8082,
11,
4672,
5313,
67,
1214,
273,
2589,
1425,
18,
588,
67,
1425,
67,
1401,
2668,
4816,
1214,
6134,
1797,
18,
12083,
67,
8291,
273,
306,
2668,
1093,
309,
5313,
67,
1214,
353,
599,
469,
5313,
67,
1214,
25887,
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,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
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,
904,
416,
67,
3076,
12,
2890,
16,
1797,
4672,
468,
5203,
6600,
1703,
1361,
598,
1493,
7589,
17,
11574,
16,
300,
48,
18,
353,
486,
7494,
7304,
468,
358,
1104,
326,
2561,
8103,
32,
3083,
9795,
18652,
2048,
18,
225,
1220,
353,
2724,
960,
3797,
395,
7597,
518,
468,
3613,
279,
23101,
16,
486,
316,
326,
1760,
1801,
1625,
326,
263,
2048,
328,
3606,
18,
225,
2525,
326,
468,
813,
732,
8081,
2363,
2253,
2674,
16,
6600,
1807,
1818,
2118,
14029,
14271,
358,
326,
468,
23101,
18,
468,
468,
2974,
9271,
527,
358,
326,
9831,
16,
732,
848,
1404,
2537,
527,
5313,
67,
8291,
358,
326,
468,
10021,
1435,
791,
2724,
716,
3302,
1404,
336,
886,
379,
2
] |
SyntaxError: assignment to None (<doctest test.test_syntax[13]>, line 1) | SyntaxError: assignment to None (<doctest test.test_syntax[14]>, line 1) | >>> def f(None=1): | 70e76ec773b0317f9a87ce674bacec91d8b5bdac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/70e76ec773b0317f9a87ce674bacec91d8b5bdac/test_syntax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
7036,
33,
21,
4672,
2,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4080,
1652,
284,
12,
7036,
33,
21,
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,
-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,
-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,
-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,
-100,
-100,
-100
] |
return ''.join([self.parse(e) for e in element.children]) | return ''.join([s for s in self.childParser(element) if s]) | def unknownElement(self, element): return ''.join([self.parse(e) for e in element.children]) | e3045fe6effca290e32fed86c046eb6adf241931 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/e3045fe6effca290e32fed86c046eb6adf241931/ColorText.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
1046,
12,
2890,
16,
930,
4672,
327,
875,
18,
5701,
3816,
2890,
18,
2670,
12,
73,
13,
364,
425,
316,
930,
18,
5906,
5717,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5917,
1046,
12,
2890,
16,
930,
4672,
327,
875,
18,
5701,
3816,
2890,
18,
2670,
12,
73,
13,
364,
425,
316,
930,
18,
5906,
5717,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Metawidget.__init__(self, master, int, *args, **kwargs) | Metawidget.__init__(self, master, int) | def __init__(self, master=None, label="Number", min=1, max=10, style='spin', default=None, *args, **kwargs): """Create a number-setting widget. master: Tkinter widget that will contain this Number label: Text label describing the meaning of the number min, max: Range of allowable numbers (inclusive) style: 'spin' or 'scale' default: Default value, or None to use minimum """ # TODO: Multiple styles (entry, spinbox, scale) Metawidget.__init__(self, master, int, *args, **kwargs) log.debug("Creating Number(%s, %s, %s)" % (label, min, max)) self.style = style # Use min if default wasn't provided if default is None: default = min self.variable.set(default) # Create and pack widgets self.label = Label(self, name='label', text=label) self.label.pack(side=LEFT) if self.style == 'spin': self.number = Spinbox(self, from_=min, to=max, width=4, textvariable=self.variable) self.number.pack(side=LEFT) else: # 'scale' self.number = Scale(self, from_=min, to=max, tickinterval=max-min, variable=self.variable, orient=HORIZONTAL) self.number.pack(side=LEFT, fill=X, expand=YES) | f057996c3a6de2d5fabf3ad7997bbd1f796a9e23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/f057996c3a6de2d5fabf3ad7997bbd1f796a9e23/meta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
1433,
1546,
1854,
3113,
1131,
33,
21,
16,
943,
33,
2163,
16,
2154,
2218,
22876,
2187,
805,
33,
7036,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1684,
279,
1300,
17,
8920,
3604,
18,
225,
4171,
30,
282,
399,
79,
2761,
3604,
716,
903,
912,
333,
3588,
1433,
30,
565,
3867,
1433,
16868,
326,
12256,
434,
326,
1300,
1131,
16,
943,
30,
8086,
434,
30727,
5600,
261,
267,
9173,
13,
2154,
30,
565,
296,
22876,
11,
578,
296,
5864,
11,
805,
30,
225,
2989,
460,
16,
578,
599,
358,
999,
5224,
3536,
468,
2660,
30,
13531,
5687,
261,
4099,
16,
12490,
2147,
16,
3159,
13,
6565,
6587,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
509,
13,
613,
18,
4148,
2932,
11092,
3588,
9275,
87,
16,
738,
87,
16,
738,
87,
2225,
738,
261,
1925,
16,
1131,
16,
943,
3719,
365,
18,
4060,
273,
2154,
468,
2672,
1131,
309,
805,
14487,
1404,
2112,
309,
805,
353,
599,
30,
805,
273,
1131,
365,
18,
6105,
18,
542,
12,
1886,
13,
468,
1788,
471,
2298,
10965,
365,
18,
1925,
273,
5287,
12,
2890,
16,
508,
2218,
1925,
2187,
977,
33,
1925,
13,
365,
18,
1925,
18,
2920,
12,
5564,
33,
10066,
13,
309,
365,
18,
4060,
422,
296,
22876,
4278,
365,
18,
2696,
273,
28379,
2147,
12,
2890,
16,
628,
67,
33,
1154,
16,
358,
33,
1896,
16,
1835,
33,
24,
16,
977,
6105,
33,
2890,
18,
6105,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4171,
33,
7036,
16,
1433,
1546,
1854,
3113,
1131,
33,
21,
16,
943,
33,
2163,
16,
2154,
2218,
22876,
2187,
805,
33,
7036,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1684,
279,
1300,
17,
8920,
3604,
18,
225,
4171,
30,
282,
399,
79,
2761,
3604,
716,
903,
912,
333,
3588,
1433,
30,
565,
3867,
1433,
16868,
326,
12256,
434,
326,
1300,
1131,
16,
943,
30,
8086,
434,
30727,
5600,
261,
267,
9173,
13,
2154,
30,
565,
296,
22876,
11,
578,
296,
5864,
11,
805,
30,
225,
2989,
460,
16,
578,
599,
358,
999,
5224,
3536,
468,
2660,
30,
13531,
5687,
261,
4099,
16,
12490,
2147,
16,
3159,
13,
6565,
6587,
16186,
2
] |
sage: latex.pdflatex(False) | sage: latex.pdflatex(False) doctest:...: DeprecationWarning: Use engine("latex") instead. | def pdflatex(self, t = None): """ Controls whether Sage uses PDFLaTeX or LaTeX when typesetting with :func:`view`, in ``%latex`` cells, etc. INPUT: - ``t`` -- boolean or None | cb479d7b1046f03bed1e0b94d39ef8da9d356f4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cb479d7b1046f03bed1e0b94d39ef8da9d356f4e/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8169,
26264,
12,
2890,
16,
268,
273,
599,
4672,
3536,
8888,
87,
2856,
348,
410,
4692,
12667,
30745,
21575,
60,
578,
21072,
21575,
60,
1347,
1953,
278,
1787,
598,
294,
644,
28288,
1945,
9191,
316,
12176,
9,
26264,
10335,
5983,
16,
5527,
18,
225,
12943,
30,
225,
300,
12176,
88,
10335,
1493,
1250,
578,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8169,
26264,
12,
2890,
16,
268,
273,
599,
4672,
3536,
8888,
87,
2856,
348,
410,
4692,
12667,
30745,
21575,
60,
578,
21072,
21575,
60,
1347,
1953,
278,
1787,
598,
294,
644,
28288,
1945,
9191,
316,
12176,
9,
26264,
10335,
5983,
16,
5527,
18,
225,
12943,
30,
225,
300,
12176,
88,
10335,
1493,
1250,
578,
599,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def get_filenames_in_revision(self, revision): local_datetime = self._revision_timestamp_to_local(revision) p = subprocess.Popen(['bzr', 'inventory', '-r', 'date:' + str(local_datetime), str(self.repository.path)], stderr=subprocess.PIPE, stdout=subprocess.PIPE, close_fds=True) contents = p.stdout.read() errmsg = p.stderr.read() failure = p.wait() if failure: raise SCMError(errmsg) return contents.strip().splitlines(); | def get_filenames_in_revision(self, revision): local_datetime = self._revision_timestamp_to_local(revision) | 5898bbad7e7e40dda938a4de324658edf8298453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1600/5898bbad7e7e40dda938a4de324658edf8298453/bzr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19875,
67,
267,
67,
13057,
12,
2890,
16,
6350,
4672,
1191,
67,
6585,
273,
365,
6315,
13057,
67,
5508,
67,
869,
67,
3729,
12,
13057,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19875,
67,
267,
67,
13057,
12,
2890,
16,
6350,
4672,
1191,
67,
6585,
273,
365,
6315,
13057,
67,
5508,
67,
869,
67,
3729,
12,
13057,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
raise TypeError('Can not append object type '+ str(type(opt))+' to the '+str(type(self))+'. Parameter type appendable only') def appendCopy(self, opt, prefix="", postfix=""): if isinstance(opt, ParameterCollection): for p in opt: self.appendOrOverwrite(Parameter(name=prefix+p.getName()+postfix, parameter=p)) elif isinstance(opt, Parameter): self.appendOrOverwrite(Parameter(name=prefix+opt.getName()+postfix, parameter=opt)) else: raise TypeError('Can not append object type '+ str(type(opt))+' to the '+str(type(self))+'. Parameter type appendable only') def appendCopyLinked(self, opt, prefix="", postfix=""): if isinstance(opt, ParameterCollection): for p in opt: if p.isLinked(): self.appendOrOverwrite(Parameter(name=prefix+p.getName()+postfix, parameter=p)) elif isinstance(opt, Parameter): if opt.isLinked(): self.appendOrOverwrite(Parameter(name=prefix+opt.getName()+postfix, parameter=opt)) else: raise TypeError('Can not append object type '+ str(type(opt))+' to the '+str(type(self))+'. Parameter type appendable only') def setValue(self, name, value, vtype=None): """ Method finds parameter with the name "name" and if exists its set value Returns True if sucsessfull """ par = self.find(name) if par == None: print "ERROR ParameterCollection.setValue() can not find parameter with the name=%s to set Value=%s"% (name, value) return False else: par.setValue(value, vtype) return True def getInput(self): """ Get input linked parameters """ return self.get(input=True) def getOutput(self): """ Get output linked parameters """ return self.get(output=True) def getLinked(self): """ Get linked parameters """ return self.get(input=True,output=True) def get(self,input=False,output=False): """ Get a copy of parameters. If input or output is True, get corresponding io type parameters only. Otherwise, get all the parameters """ all = not input and not output params = ParameterCollection() for p in self: OK = False if all: OK = True elif input and p.isInput(): OK = True elif output and p.isOutput(): OK = True if OK: params.append(Parameter(parameter=p)) return params def setLink(self, name, module_name, parameter_name): """ Method finds parameter with the name "name" and if exists its set value Returns True if sucsessfull """ par = self.find(name) if par == None: print "ERROR ParameterCollection.setLink() can not find parameter with the name=%s to link it with %s.%s"% (name, module_name, parameter_name) return False else: par.link(module_name, parameter_name) return True def linkUp(self, opt, prefix="", postfix="", objname="self"): """ This is a GROUP method operates on the 'obj' parameters using only parameters listed in 'opt' list Method will link self.parameters with the outer object (self) perameters using prefix and postfix for example if we want to link module instance with the step or step instance with the workflow opt - ParameterCollection or sigle Parameter (WARNING!! used as reference to get a names!!! opt is not changing!!!) opt ALSO can be a list of string with the names of parameters to link objname - name of the object to connect with, usually 'self' """ if isinstance(opt, ParameterCollection): for p in opt: par = self.find(p.getName()) if par == None: print "WARNING ParameterCollection.linkUp can not find parameter with the name=", p.getName(), " IGNORING" else: par.link(objname, prefix+p.getName()+postfix) elif isinstance(opt, Parameter): self.setLink(opt.getName(), objname, prefix+opt.getName()+postfix) elif isinstance(opt, list) and isinstance(opt[0], str): for s in opt: par = self.find(s) if par == None: print "ERROR ParameterCollection.linkUp() can not find parameter with the name=%s"% (s) else: par.link(objname, prefix+p.getName()+postfix) elif isinstance(opt, str): par = self.find(opt) if par == None: print "ERROR ParameterCollection.linkUp() can not find parameter with the name=%s"% (par) else: par.link(objname, prefix+par.getName()+postfix) else: raise TypeError('Can not link object type '+ str(type(opt))+' to the '+str(type(self))+'.') def unlink(self, opt): """ This is a GROUP method operates on the 'obj' parameters using only parameters listed in 'opt' list Method will unlink some self.parameters opt - ParameterCollection or sigle Parameter (WARNING!! used as reference to get a names!!! opt is not changing!!!) opt ALSO can be a list of string with the names of parameters to link objname - name of the object to connect with, usually 'self' """ if isinstance(opt, ParameterCollection): for p in opt: par = self.find(p.getName()) if par == None: print "WARNING ParameterCollection.linkUp can not find parameter with the name=", p.getName(), " IGNORING" else: par.unlink() elif isinstance(opt, Parameter): self.unlink() elif isinstance(opt, list) and isinstance(opt[0], str): for s in opt: par = self.find(s) if par == None: print "ERROR ParameterCollection.unlink() can not find parameter with the name=%s"% (s) else: par.unlink() elif isinstance(opt, str): par = self.find(opt) if par == None: print "ERROR ParameterCollection.unlink() can not find parameter with the name=%s"% (s) else: par.unlink() else: raise TypeError('Can not unlink object type '+ str(type(opt))+' to the '+str(type(self))+'.') def removeAllParameters(self): self[:]=[] def remove(self, name_or_ind): if isinstance(name_or_ind, list) and isinstance(name_or_ind[0], str): for s in name_or_ind: par = self.find(s) if par == None: print "ERROR ParameterCollection.remove() can not find parameter with the name=%s"% (s) else: del self[self.findIndex(s)] elif isinstance(name_or_ind, str): del self[self.findIndex(name_or_ind)] elif isinstance(name_or_ind, int) or isinstance(name_or_ind): del self[name_or_ind] def find(self, name_or_ind): """ Method to find Parameters Return: Parameter """ if isinstance(name_or_ind, str): for v in self: if v.getName() == name_or_ind: return v return None elif isinstance(name_or_ind, int) or isinstance(name_or_ind, long): return self[name_or_ind] return self[int(name_or_ind)] def findLinked(self, name_or_ind, linked_status=True): """ Method to find Parameters if linked_status is True it returns only linked Var from the list if linked_status is False it returns only NOTlinked Var from the list Return: Parameter """ v = self.find(name_or_ind) if (v!= None) and (v.isLinked() != linked_status): return None return v def findIndex(self, name): i=0 for v in self: if v.getName() == name: return i i=i+1 return -1 def getParametersNames(self): list=[] for v in self: list.append(v.getName()) return list def compare(self, s): if (not isinstance(s, ParameterCollection)) or (len(s) != len(self)): return False for v in self: for i in s: if v.getName() == i.getName(): if not v.compare(i): return False else: break else: return False return True def __str__(self): ret=str(type(self))+':\n' for v in self: ret=ret+ str(v)+'\n' return ret def toXML(self): ret="" for v in self: ret=ret+v.toXML() return ret def createParametersCode(self, indent=0, instance_name=None): str='' for v in self: if v.preExecute(): str=str+v.createParameterCode(indent, instance_name) return str def resolveGlobalVars(self, wf_parameters=None, step_parameters=None): """This function resolves global parameters of type @{value} within the ParameterCollection """ recurrency_max=12 for v in self: recurrency=0 skip_list = [] substitute_vars = getSubstitute(v.value) while True: for substitute_var in substitute_vars: v_other = self.find(substitute_var) if v_other == None and step_parameters != None : v_other = step_parameters.findLinked(substitute_var, False) if v_other == None and wf_parameters != None : v_other = wf_parameters.findLinked(substitute_var, False) if v_other != None and not v_other.isLinked(): v.value = substitute(v.value,substitute_var,v_other.value) elif v_other != None: print "Leaving %s variable for dynamic resolution" % substitute_var skip_list.append(substitute_var) else: print "Can not resolve ", substitute_var, str(v) recurrency += 1 if recurrency > recurrency_max: print "ERROR! reached maximum recurrency level", recurrency, "within the parameter ", str(v) if step_parameters == None: if wf_parameters == None: print "on the level of Workflow" else: print "on the level of Step" else: if wf_parameters != None: print "on the level of Module" | substitute_vars = getSubstitute(v.value,skip_list) if not substitute_vars: | def append(self, opt): if isinstance(opt, ParameterCollection): for p in opt: self.appendOrOverwrite(p) elif isinstance(opt, Parameter): self.appendOrOverwrite(opt) return opt else: raise TypeError('Can not append object type '+ str(type(opt))+' to the '+str(type(self))+'. Parameter type appendable only') | 8613d68ff165b59e509d5eb04a831ffaf7fd692b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/8613d68ff165b59e509d5eb04a831ffaf7fd692b/Parameter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
2153,
4672,
309,
1549,
12,
3838,
16,
5498,
2532,
4672,
364,
293,
316,
2153,
30,
365,
18,
6923,
1162,
20832,
12,
84,
13,
1327,
1549,
12,
3838,
16,
5498,
4672,
365,
18,
6923,
1162,
20832,
12,
3838,
13,
327,
2153,
469,
30,
1002,
3580,
2668,
2568,
486,
714,
733,
618,
15126,
609,
12,
723,
12,
3838,
3719,
6797,
358,
326,
15126,
701,
12,
723,
12,
2890,
3719,
6797,
18,
5498,
618,
26815,
1338,
6134,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
714,
12,
2890,
16,
2153,
4672,
309,
1549,
12,
3838,
16,
5498,
2532,
4672,
364,
293,
316,
2153,
30,
365,
18,
6923,
1162,
20832,
12,
84,
13,
1327,
1549,
12,
3838,
16,
5498,
4672,
365,
18,
6923,
1162,
20832,
12,
3838,
13,
327,
2153,
469,
30,
1002,
3580,
2668,
2568,
486,
714,
733,
618,
15126,
609,
12,
723,
12,
3838,
3719,
6797,
358,
326,
15126,
701,
12,
723,
12,
2890,
3719,
6797,
18,
5498,
618,
26815,
1338,
6134,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
asyncore.loop(use_poll=self.usepoll) | asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01) | def numeric_terminator_check(self, termlen): # Try reading a fixed number of bytes s = echo_server() s.start() time.sleep(0.5) # Give server time to initialize c = echo_client(termlen) data = "hello world, I'm not dead yet!\n" c.push(data) c.push(SERVER_QUIT) asyncore.loop(use_poll=self.usepoll)#, count=5, timeout=5) s.join() | f814dbca6d7536d00d38b8e96fec7730755c6536 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/f814dbca6d7536d00d38b8e96fec7730755c6536/test_asynchat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6389,
67,
9505,
639,
67,
1893,
12,
2890,
16,
19272,
781,
275,
4672,
468,
6161,
6453,
279,
5499,
1300,
434,
1731,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12,
20,
18,
25,
13,
468,
22374,
1438,
813,
358,
4046,
276,
273,
3376,
67,
2625,
12,
387,
781,
275,
13,
501,
273,
315,
23711,
9117,
16,
467,
17784,
486,
8363,
4671,
24440,
82,
6,
276,
18,
6206,
12,
892,
13,
276,
18,
6206,
12,
4370,
67,
3500,
1285,
13,
4326,
479,
18,
6498,
12,
1202,
67,
13835,
33,
2890,
18,
1202,
13835,
13,
7,
16,
1056,
33,
25,
16,
2021,
33,
25,
13,
272,
18,
5701,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6389,
67,
9505,
639,
67,
1893,
12,
2890,
16,
19272,
781,
275,
4672,
468,
6161,
6453,
279,
5499,
1300,
434,
1731,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12,
20,
18,
25,
13,
468,
22374,
1438,
813,
358,
4046,
276,
273,
3376,
67,
2625,
12,
387,
781,
275,
13,
501,
273,
315,
23711,
9117,
16,
467,
17784,
486,
8363,
4671,
24440,
82,
6,
276,
18,
6206,
12,
892,
13,
276,
18,
6206,
12,
4370,
67,
3500,
1285,
13,
4326,
479,
18,
6498,
12,
1202,
67,
13835,
33,
2890,
18,
1202,
13835,
13,
7,
16,
1056,
33,
25,
16,
2021,
33,
25,
13,
272,
18,
5701,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: print t2 | sage: t2 | def tau2(T1, T2, cells_map): """ The definition of tau2 is: tau2 : T1 -> T1 tau2 = beta\^(-1)_3 beta_1 (composing left to right) where beta_i : T2 -> T1 changes just the i-th coordinate of a triple. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2,3,4) ) sage: y = isotopism(5) # identity sage: z = isotopism(5) # identity sage: T2 = T1.apply_isotopism(x, y, z) sage: print is_bitrade(T1, T2) True sage: (cells_map, t1, t2, t3) = tau123(T1, T2) sage: t2 = tau2(T1, T2, cells_map) sage: print t2 [21, 22, 23, 24, 25, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] sage: print t2.to_cycles() [(1, 21, 16, 11, 6), (2, 22, 17, 12, 7), (3, 23, 18, 13, 8), (4, 24, 19, 14, 9), (5, 25, 20, 15, 10)] """ # The cells_map has both directions, i.e. integer to # cell and cell to integer, so the size of T1 is # just half of len(cells_map). x = (int(len(cells_map)/2) + 1) * [-1] for r in range(T1.nrows()): for c in range(T1.ncols()): e = T1[r, c] if e < 0: continue (r2, c2, e2) = beta3( (r,c,e), T1, T2) (r3, c3, e3) = beta1( (r2,c2,e2), T2, T1) x[ cells_map[(r,c)] ] = cells_map[ (r3,c3) ] x.pop(0) # remove the head of the list since we # have permutations on 1..(something). return Permutation(x) | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
22,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
3536,
1021,
2379,
434,
12284,
22,
353,
30,
225,
12284,
22,
294,
399,
21,
317,
399,
21,
12284,
22,
273,
6796,
64,
66,
19236,
21,
13,
67,
23,
6796,
67,
21,
282,
261,
832,
24014,
2002,
358,
2145,
13,
225,
1625,
225,
6796,
67,
77,
294,
399,
22,
317,
399,
21,
225,
3478,
2537,
326,
277,
17,
451,
7799,
434,
279,
14543,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
7373,
12660,
18,
26578,
1930,
380,
272,
410,
30,
399,
21,
273,
1473,
67,
11614,
1934,
970,
12,
25,
13,
272,
410,
30,
619,
273,
29677,
556,
6228,
12,
261,
20,
16,
21,
16,
22,
16,
23,
16,
24,
13,
262,
272,
410,
30,
677,
273,
29677,
556,
6228,
12,
25,
13,
468,
4215,
272,
410,
30,
998,
273,
29677,
556,
6228,
12,
25,
13,
468,
4215,
272,
410,
30,
399,
22,
273,
399,
21,
18,
9010,
67,
17693,
556,
6228,
12,
92,
16,
677,
16,
998,
13,
272,
410,
30,
1172,
353,
67,
3682,
354,
323,
12,
56,
21,
16,
399,
22,
13,
1053,
272,
410,
30,
261,
14741,
67,
1458,
16,
268,
21,
16,
268,
22,
16,
268,
23,
13,
273,
12284,
12936,
12,
56,
21,
16,
399,
22,
13,
272,
410,
30,
268,
22,
273,
12284,
22,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
13,
272,
410,
30,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
22,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
3536,
1021,
2379,
434,
12284,
22,
353,
30,
225,
12284,
22,
294,
399,
21,
317,
399,
21,
12284,
22,
273,
6796,
64,
66,
19236,
21,
13,
67,
23,
6796,
67,
21,
282,
261,
832,
24014,
2002,
358,
2145,
13,
225,
1625,
225,
6796,
67,
77,
294,
399,
22,
317,
399,
21,
225,
3478,
2537,
326,
277,
17,
451,
7799,
434,
279,
14543,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
7373,
12660,
18,
26578,
1930,
380,
272,
410,
30,
399,
21,
273,
1473,
67,
11614,
1934,
970,
12,
25,
13,
272,
410,
30,
619,
273,
29677,
2
] |
at = i18n.translate(domain='plone', msgid='label_at', context=content_instance, default='at') | at = _(u'label_at', default=u'at') | def _Vocabulary(self, content_instance): pairs = [] pc = getToolByName(content_instance, 'portal_catalog') uc = getToolByName(content_instance, config.UID_CATALOG) purl = getToolByName(content_instance, 'portal_url') | 6bf0b4d803f7a6c42f16af81053d806d99f67096 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12165/6bf0b4d803f7a6c42f16af81053d806d99f67096/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30747,
12,
2890,
16,
913,
67,
1336,
4672,
5574,
273,
5378,
6125,
273,
336,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30747,
12,
2890,
16,
913,
67,
1336,
4672,
5574,
273,
5378,
6125,
273,
336,
6364,
5911,
12,
1745,
67,
1336,
16,
296,
24386,
67,
7199,
6134,
6232,
273,
336,
6364,
5911,
12,
1745,
67,
1336,
16,
642,
18,
3060,
67,
14130,
18683,
13,
293,
718,
273,
336,
6364,
5911,
12,
1745,
67,
1336,
16,
296,
24386,
67,
718,
6134,
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,
-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,
-100,
-100,
-100,
-100
] |
person_id = 1 | person_id = 0 | def wrapper(*args, **kwds): | 0e07df3a63bf8da8364972f95b821e82bae84c55 /local1/tlutelli/issta_data/temp/all_python//python/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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4053,
30857,
1968,
16,
2826,
25577,
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,
-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,
-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,
-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,
-100,
-100,
-100
] |
key_bindings = {'default': 'C-NUMPAD_SUBTRACT',} | key_bindings = {'emacs': 'C-NUMPAD_SUBTRACT',} | def action(self, index=-1, multiplier=1): self.mode.locals.font_zoom += 1 self.mode.SetZoom(self.mode.locals.font_zoom) | 8b410e6e6ae0aac72c77bd2eb59f31734db330c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/8b410e6e6ae0aac72c77bd2eb59f31734db330c4/fundamental_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
365,
18,
3188,
18,
17977,
18,
5776,
67,
14932,
1011,
404,
365,
18,
3188,
18,
694,
11497,
12,
2890,
18,
3188,
18,
17977,
18,
5776,
67,
14932,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
365,
18,
3188,
18,
17977,
18,
5776,
67,
14932,
1011,
404,
365,
18,
3188,
18,
694,
11497,
12,
2890,
18,
3188,
18,
17977,
18,
5776,
67,
14932,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return False else: return True | raise FetchError("No checksum specified for %s." % u) | def verify_checksum(d, ud): """ verify the MD5 and SHA256 checksum for downloaded src return value: - True: checksum matched - False: checksum unmatched if checksum is missing in recipes file, "BB_STRICT_CHECKSUM" decide the return value. if BB_STRICT_CHECKSUM = "1" then return false as unmatched, otherwise return true as matched """ if not ud.type in ["http", "https", "ftp", "ftps"]: return True md5data = bb.utils.md5_file(ud.localpath) sha256data = bb.utils.sha256_file(ud.localpath) if (ud.md5_expected == None or ud.sha256_expected == None): bb.warn("Missing SRC_URI checksum for %s, consider to add\n" \ "SRC_URI[%s] = \"%s\"\nSRC_URI[%s] = \"%s\"" \ % (ud.localpath, ud.md5_name, md5data, ud.sha256_name, sha256data)) if bb.data.getVar("BB_STRICT_CHECKSUM", d, True) == "1": return False else: return True if (ud.md5_expected != md5data or ud.sha256_expected != sha256data): bb.error("The checksums for '%s' did not match." % ud.localpath) bb.error("Expected MD5: '%s' and Got: '%s'" % (ud.md5_expected, md5data)) bb.error("Expected SHA256: '%s' and Got: '%s'" % (ud.sha256_expected, sha256data)) return False return True | 7abdf3e5c36197c5518edf53acb98611559dadec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/7abdf3e5c36197c5518edf53acb98611559dadec/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
15149,
12,
72,
16,
23969,
4672,
3536,
3929,
326,
10852,
25,
471,
9777,
5034,
6697,
364,
13549,
1705,
225,
327,
460,
30,
300,
1053,
30,
6697,
4847,
300,
1083,
30,
6697,
24863,
225,
309,
6697,
353,
3315,
316,
5863,
281,
585,
16,
315,
9676,
67,
30776,
67,
10687,
14020,
6,
16288,
326,
327,
460,
18,
309,
21752,
67,
30776,
67,
10687,
14020,
273,
315,
21,
6,
1508,
327,
629,
487,
24863,
16,
3541,
327,
638,
487,
4847,
3536,
225,
309,
486,
23969,
18,
723,
316,
8247,
2505,
3113,
315,
4528,
3113,
315,
11727,
3113,
315,
1222,
1121,
11929,
30,
327,
1053,
225,
3481,
25,
892,
273,
7129,
18,
5471,
18,
1264,
25,
67,
768,
12,
1100,
18,
3729,
803,
13,
6056,
5034,
892,
273,
7129,
18,
5471,
18,
7819,
5034,
67,
768,
12,
1100,
18,
3729,
803,
13,
225,
309,
261,
1100,
18,
1264,
25,
67,
3825,
422,
599,
578,
23969,
18,
7819,
5034,
67,
3825,
422,
599,
4672,
7129,
18,
8935,
2932,
4841,
348,
11529,
67,
3098,
6697,
364,
738,
87,
16,
5260,
358,
527,
64,
82,
6,
521,
315,
28413,
67,
3098,
14451,
87,
65,
273,
22049,
87,
31670,
82,
28413,
67,
3098,
14451,
87,
65,
273,
22049,
87,
8530,
521,
738,
261,
1100,
18,
3729,
803,
16,
23969,
18,
1264,
25,
67,
529,
16,
3481,
25,
892,
16,
23969,
18,
7819,
5034,
67,
529,
16,
6056,
5034,
892,
3719,
309,
7129,
18,
892,
18,
588,
1537,
2932,
9676,
67,
30776,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
15149,
12,
72,
16,
23969,
4672,
3536,
3929,
326,
10852,
25,
471,
9777,
5034,
6697,
364,
13549,
1705,
225,
327,
460,
30,
300,
1053,
30,
6697,
4847,
300,
1083,
30,
6697,
24863,
225,
309,
6697,
353,
3315,
316,
5863,
281,
585,
16,
315,
9676,
67,
30776,
67,
10687,
14020,
6,
16288,
326,
327,
460,
18,
309,
21752,
67,
30776,
67,
10687,
14020,
273,
315,
21,
6,
1508,
327,
629,
487,
24863,
16,
3541,
327,
638,
487,
4847,
3536,
225,
309,
486,
23969,
18,
723,
316,
8247,
2505,
3113,
315,
4528,
3113,
315,
11727,
3113,
315,
1222,
1121,
11929,
30,
327,
1053,
225,
3481,
25,
892,
273,
7129,
18,
5471,
18,
1264,
25,
67,
768,
12,
1100,
2
] |
confautoprc = confautoprc.replace("aux-display pandadx9","") confautoprc = confautoprc.replace("aux-display pandadx8","") | configprc = configprc.replace("aux-display pandadx9","") configprc = configprc.replace("aux-display pandadx8","") | def CreatePandaVersionFiles(): # First, move any conflicting files out of the way. if os.path.isfile("dtool/src/dtoolutil/pandaVersion.h"): os.rename("dtool/src/dtoolutil/pandaVersion.h", "dtool/src/dtoolutil/pandaVersion.h.moved") if os.path.isfile("dtool/src/dtoolutil/checkPandaVersion.h"): os.rename("dtool/src/dtoolutil/checkPandaVersion.h", "dtool/src/dtoolutil/checkPandaVersion.h.moved") if os.path.isfile("dtool/src/dtoolutil/checkPandaVersion.cxx"): os.rename("dtool/src/dtoolutil/checkPandaVersion.cxx", "dtool/src/dtoolutil/checkPandaVersion.cxx.moved") version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2)) pandaversion_h = pandaversion_h.replace("VERSION3",str(version3)) pandaversion_h = pandaversion_h.replace("NVERSION",str(nversion)) checkpandaversion_cxx = CHECKPANDAVERSION_CXX.replace("VERSION1",str(version1)) checkpandaversion_cxx = checkpandaversion_cxx.replace("VERSION2",str(version2)) checkpandaversion_cxx = checkpandaversion_cxx.replace("VERSION3",str(version3)) checkpandaversion_cxx = checkpandaversion_cxx.replace("NVERSION",str(nversion)) checkpandaversion_h = CHECKPANDAVERSION_H.replace("VERSION1",str(version1)) checkpandaversion_h = checkpandaversion_h.replace("VERSION2",str(version2)) checkpandaversion_h = checkpandaversion_h.replace("VERSION3",str(version3)) checkpandaversion_h = checkpandaversion_h.replace("NVERSION",str(nversion)) ConditionalWriteFile(GetOutputDir()+'/include/pandaVersion.h', pandaversion_h) ConditionalWriteFile(GetOutputDir()+'/include/checkPandaVersion.cxx', checkpandaversion_cxx) ConditionalWriteFile(GetOutputDir()+'/include/checkPandaVersion.h', checkpandaversion_h) ConditionalWriteFile(GetOutputDir()+"/tmp/null.cxx","") | af84ed5a5fb926a2d1db12ab6fcf7060c746f56c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/af84ed5a5fb926a2d1db12ab6fcf7060c746f56c/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
464,
69,
1444,
2697,
13332,
468,
5783,
16,
3635,
1281,
21462,
1390,
596,
434,
326,
4031,
18,
309,
1140,
18,
803,
18,
291,
768,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
84,
464,
69,
1444,
18,
76,
6,
4672,
1140,
18,
18539,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
84,
464,
69,
1444,
18,
76,
3113,
315,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
84,
464,
69,
1444,
18,
76,
18,
81,
9952,
7923,
309,
1140,
18,
803,
18,
291,
768,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
76,
6,
4672,
1140,
18,
18539,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
76,
3113,
315,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
76,
18,
81,
9952,
7923,
309,
1140,
18,
803,
18,
291,
768,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
71,
5279,
6,
4672,
1140,
18,
18539,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
71,
5279,
3113,
315,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
71,
5279,
18,
81,
9952,
7923,
225,
1177,
21,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
20,
5717,
1177,
22,
33,
474,
12,
5757,
18,
4939,
2932,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
464,
69,
1444,
2697,
13332,
468,
5783,
16,
3635,
1281,
21462,
1390,
596,
434,
326,
4031,
18,
309,
1140,
18,
803,
18,
291,
768,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
84,
464,
69,
1444,
18,
76,
6,
4672,
1140,
18,
18539,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
84,
464,
69,
1444,
18,
76,
3113,
315,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
84,
464,
69,
1444,
18,
76,
18,
81,
9952,
7923,
309,
1140,
18,
803,
18,
291,
768,
2932,
72,
6738,
19,
4816,
19,
72,
6738,
1367,
19,
1893,
52,
464,
69,
1444,
18,
76,
6,
4672,
1140,
18,
18539,
2932,
72,
6738,
19,
4816,
2
] |
def clear(self, host, name, id = None): d = self.dir / host / name | def clear(self, host = None, name = None, sess = None): | def clear(self, host, name, id = None): d = self.dir / host / name removed = [] if d.exists(): if id is not None: f = d / id f.remove() removed.append(f) else: for f in self.non_dot(d): removed.append(f) f.remove() return removed | dedb174305b3d47f3e0e7f4ad5cfc7cbb8accb03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/dedb174305b3d47f3e0e7f4ad5cfc7cbb8accb03/sessions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
16,
1479,
273,
599,
16,
508,
273,
599,
16,
8451,
273,
599,
4672,
3723,
273,
5378,
309,
302,
18,
1808,
13332,
309,
612,
353,
486,
599,
30,
284,
273,
302,
342,
612,
284,
18,
4479,
1435,
3723,
18,
6923,
12,
74,
13,
469,
30,
364,
284,
316,
365,
18,
5836,
67,
9811,
12,
72,
4672,
3723,
18,
6923,
12,
74,
13,
284,
18,
4479,
1435,
327,
3723,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
302,
18,
1808,
13332,
309,
612,
353,
486,
599,
30,
284,
273,
302,
342,
612,
284,
18,
4479,
1435,
3723,
18,
6923,
12,
74,
13,
469,
30,
364,
284,
316,
365,
18,
5836,
67,
9811,
12,
72,
4672,
3723,
18,
6923,
12,
74,
13,
284,
18,
4479,
1435,
327,
3723,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"CIF data table." | """CIF data table. """ | def get_save_frame(self, token, lexer, filename): raise CIFSyntaxError(token.line, "SaveFrame unimplemented") | b597f527f91018b92b8d24a86bc7d094e8af6f75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/b597f527f91018b92b8d24a86bc7d094e8af6f75/CIF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5688,
67,
3789,
12,
2890,
16,
1147,
16,
8512,
16,
1544,
4672,
1002,
17166,
4931,
5392,
668,
12,
2316,
18,
1369,
16,
315,
4755,
3219,
640,
21099,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5688,
67,
3789,
12,
2890,
16,
1147,
16,
8512,
16,
1544,
4672,
1002,
17166,
4931,
5392,
668,
12,
2316,
18,
1369,
16,
315,
4755,
3219,
640,
21099,
7923,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.progress(' Please wait getting manifest count (%s)' % (mcount)) | self.progress('Please wait getting manifest count (%s)' % (mcount)) | def manifest(self,path): from os.path import join, getsize cfiles = 0 if os.path.isdir(path): mname = '%s.manifest' % time.strftime('%d-%B-%Y',time.gmtime()) of = file(mname, 'w+') for root, dirs, files in os.walk(path): self.progress(' Please wait, getting initial file count (%s) ...' % (cfiles)) #get count first loop for fname in files: cfiles += 1 print q = 'There are currently %s files in %s, do you want to proceed with the manifest?:' % (cfiles,path) a = raw_input(q) while a not in ('y','n'): q = 'Invalid response (y/n):' a = raw_input(q) if a == 'n': sys.exit(0) else: print tfiles = cfiles cfiles = 0 ltime = 0 lfiles = 0 filessec = 0 for root, dirs, files in os.walk(path): for fname in files: ctime = time.time() if (ctime - ltime) >= 1: if ltime > 0: filessec = (cfiles - lfiles) / (ctime - ltime) ltime = ctime lfiles = cfiles fpath = join(root,fname) hash = self._checksum(fpath)['md5'] of.write("%s %s\n" % (hash, fpath)) cfiles += 1 fper = round(((1.00*cfiles)/(1.00*tfiles))*100.00,2) self.progress(' Added %s/%s Files to manifest (%s%%) (%s/s)' % (cfiles,tfiles,fper,filessec)) print elif os.path.isfile(path): mcount = 0 #get manifest linecount for line in open(path,'r'): mcount += 1 self.progress(' Please wait getting manifest count (%s)' % (mcount)) print print 'Manifest count complete' if mcount == 0: self.error('Counted 0 lines in manifest ... aborting') vcount = 0 #verify manifest for line in open(path,'r'): vcount += 1 vper = round(((1.00*vcount)/(1.00*mcount))*100.00,2) self.progress(' Please wait verifying manifest (%s%%)' % (vper)) dat = re.split(' ',line) dat[1] = dat[1].replace("\n",'') if len(dat[0]) != 32: self.error('Manifest Verification error line %s md5 is invalid' % vcount,False) elif not os.path.isfile(dat[1]): self.error('Manifest Verification error line %s path is invalid (file may be missing)' % vcount,False) print print 'Manifest verification complete' vcount = 0 fcount = 0 pcount = 0 failed = [] filessec = 0 lfiles = 0 ltime = 0 for line in open(path,'r'): ctime = time.time() if (ctime - ltime) >= 1: if ltime > 0: filessec = (vcount - lfiles) / (ctime - ltime) ltime = ctime lfiles = vcount dat = re.split(' ',line) dat[1] = dat[1].replace("\n",'') if self._checksum(dat[1])['md5'] == dat[0]: pcount += 1 else: fcount += 1 failed.append(dat[1]) vcount += 1 vper = round(((1.00*vcount)/(1.00*mcount))*100.00,2) fper = round(((1.00*fcount)/(1.00*mcount))*100.00,2) pper = round(((1.00*pcount)/(1.00*mcount))*100.00,2) bar = self.progressbar(vper, 50) #[==================================================] Pass (00%) Fail(00%) self.progress('Verification in progress: %s - %s%% Pass(%s%%) Fail(%s%%) %s/s' % (bar,vper,pper,fper,filessec)) print if fcount > 0: print '--- START FAILED LIST ---' for f in failed: print f print '--- END FAIL LIST ---' | a5680de1a5f6faad9bfe60d45120545421081bca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14038/a5680de1a5f6faad9bfe60d45120545421081bca/sysadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5643,
12,
2890,
16,
803,
4672,
628,
1140,
18,
803,
1930,
1233,
16,
30208,
276,
2354,
273,
374,
225,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
312,
529,
273,
1995,
87,
18,
14357,
11,
738,
813,
18,
701,
9982,
29909,
72,
6456,
38,
6456,
61,
2187,
957,
18,
75,
10838,
10756,
434,
273,
585,
12,
81,
529,
16,
296,
91,
15,
6134,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
803,
4672,
365,
18,
8298,
2668,
7801,
2529,
16,
8742,
2172,
585,
1056,
6142,
87,
13,
25956,
738,
261,
71,
2354,
3719,
468,
588,
1056,
1122,
2798,
364,
5299,
316,
1390,
30,
276,
2354,
1011,
404,
1172,
225,
1043,
273,
296,
9828,
854,
4551,
738,
87,
1390,
316,
738,
87,
16,
741,
1846,
2545,
358,
11247,
598,
326,
5643,
35,
2497,
738,
261,
71,
2354,
16,
803,
13,
279,
273,
1831,
67,
2630,
12,
85,
13,
1323,
279,
486,
316,
7707,
93,
17023,
82,
11,
4672,
1043,
273,
296,
1941,
766,
261,
93,
19,
82,
13,
2497,
279,
273,
1831,
67,
2630,
12,
85,
13,
309,
279,
422,
296,
82,
4278,
2589,
18,
8593,
12,
20,
13,
469,
30,
1172,
268,
2354,
273,
276,
2354,
276,
2354,
273,
374,
328,
957,
273,
374,
328,
2354,
273,
374,
1390,
3321,
273,
374,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
803,
4672,
364,
5299,
316,
1390,
30,
276,
957,
273,
813,
18,
957,
1435,
309,
261,
21261,
300,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5643,
12,
2890,
16,
803,
4672,
628,
1140,
18,
803,
1930,
1233,
16,
30208,
276,
2354,
273,
374,
225,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
312,
529,
273,
1995,
87,
18,
14357,
11,
738,
813,
18,
701,
9982,
29909,
72,
6456,
38,
6456,
61,
2187,
957,
18,
75,
10838,
10756,
434,
273,
585,
12,
81,
529,
16,
296,
91,
15,
6134,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
803,
4672,
365,
18,
8298,
2668,
7801,
2529,
16,
8742,
2172,
585,
1056,
6142,
87,
13,
25956,
738,
261,
71,
2354,
3719,
468,
588,
1056,
1122,
2798,
364,
5299,
316,
1390,
30,
276,
2354,
1011,
404,
1172,
225,
1043,
273,
296,
9828,
2
] |
command = '%s -vo null -ao %s %s %s' % \ | command = '%s -vo null -ao %s %s' % \ | def play(self, item, player): """ Play a AudioItem with mplayer """ filename = item.filename | c5d851e5232f80a950b02a3d8f9e2910daa228d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c5d851e5232f80a950b02a3d8f9e2910daa228d8/mplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
2890,
16,
761,
16,
7291,
4672,
3536,
19592,
279,
15045,
1180,
598,
312,
14872,
3536,
1544,
273,
761,
18,
3459,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6599,
12,
2890,
16,
761,
16,
7291,
4672,
3536,
19592,
279,
15045,
1180,
598,
312,
14872,
3536,
1544,
273,
761,
18,
3459,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" process received messages to check for file invitations and typing notifications and other control type messages """ | """ process received messages to check for file invitations and typing notifications and other control type messages """ | def checkMessage(self, message): """ process received messages to check for file invitations and typing notifications and other control type messages """ raise NotImplementedError | 9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26378,
12,
2890,
16,
883,
4672,
3536,
1207,
5079,
2743,
358,
866,
364,
585,
2198,
18282,
471,
13408,
9208,
471,
1308,
3325,
618,
2743,
3536,
1002,
11206,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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3325,
618,
2743,
3536,
1002,
11206,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def init(self, name = 'imaging', conffile = None): self.dbsection = "database" self.name = name if not conffile: self.conffile = mmctools.getConfigFile(name) else: self.conffile = conffile | def __init__(self, name = 'imaging', conffile = None): if not hasattr(self, 'initdone'): PluginConfig.__init__(self, name, conffile) ImagingDatabaseConfig.__init__(self) self.initdone = True | def init(self, name = 'imaging', conffile = None): self.dbsection = "database" self.name = name if not conffile: self.conffile = mmctools.getConfigFile(name) else: self.conffile = conffile | 217660aff28e7375065959b8884b34c46c9445a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/217660aff28e7375065959b8884b34c46c9445a2/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
508,
273,
296,
381,
5755,
2187,
2195,
768,
273,
599,
4672,
365,
18,
1966,
3464,
273,
315,
6231,
6,
365,
18,
529,
273,
508,
309,
486,
2195,
768,
30,
365,
18,
3923,
768,
273,
9740,
299,
8192,
18,
588,
13705,
12,
529,
13,
469,
30,
365,
18,
3923,
768,
273,
2195,
768,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
508,
273,
296,
381,
5755,
2187,
2195,
768,
273,
599,
4672,
365,
18,
1966,
3464,
273,
315,
6231,
6,
365,
18,
529,
273,
508,
309,
486,
2195,
768,
30,
365,
18,
3923,
768,
273,
9740,
299,
8192,
18,
588,
13705,
12,
529,
13,
469,
30,
365,
18,
3923,
768,
273,
2195,
768,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logging.debug("%s exists=%s"%(reportfilename,os.path.exists(reportfilename))) | logging.debug("%s exists=%s"%(self.reportfilename,os.path.exists(self.reportfilename))) | def checkJobs(self): """ _checkJobs_ | 71eac4586b54b72187621a1d3e62df95425a98ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/71eac4586b54b72187621a1d3e62df95425a98ef/TrackingComponent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
7276,
12,
2890,
4672,
3536,
389,
1893,
7276,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
7276,
12,
2890,
4672,
3536,
389,
1893,
7276,
67,
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,
-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,
-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,
-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
] |
script.append("JOB_SPEC_FILE=$PRODAGENT_JOB_INITIALDIR/%s\n" % | script.append("JOB_SPEC_FILE=$PRODAGENT_JOB_INITIALDIR/%s-JobSpec.xml\n" % | def makeWrapperScript(self, filename, jobName): """ _makeWrapperScript_ | f4fbde0e919194b455b393e466621fcfc684e4b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/f4fbde0e919194b455b393e466621fcfc684e4b2/GLiteBulkSubmitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
3611,
3651,
12,
2890,
16,
1544,
16,
17833,
4672,
3536,
389,
6540,
3611,
3651,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1221,
3611,
3651,
12,
2890,
16,
1544,
16,
17833,
4672,
3536,
389,
6540,
3611,
3651,
67,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
translation = gettext.translation("pyLoad", "locale", ["de"]) | translation = gettext.translation("pyLoad", "locale", languages=[self.config['language']]) | def __init__(self): self.config = {} self.config['plugin_folder'] = "Plugins" self.config['link_file'] = "links.txt" self.plugins_avaible = {} self.search_updates = False | 8b1e215d8c26e02670fa809868120dcccb9db446 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/8b1e215d8c26e02670fa809868120dcccb9db446/Core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1425,
273,
2618,
365,
18,
1425,
3292,
4094,
67,
5609,
3546,
273,
315,
9461,
6,
365,
18,
1425,
3292,
1232,
67,
768,
3546,
273,
315,
7135,
18,
5830,
6,
365,
18,
8057,
67,
1629,
1523,
273,
2618,
365,
18,
3072,
67,
14703,
273,
1083,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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315,
7135,
18,
5830,
6,
365,
18,
8057,
67,
1629,
1523,
273,
2618,
365,
18,
3072,
67,
14703,
273,
1083,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
[crystal for crystal in args]); | [crystalElement for crystalElement in args]); | def __call__(self, *args): return TensorProductOfCrystalsElement(self, [crystal for crystal in args]); | c6f595932725c6225dd7ef083830009d393045cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/c6f595932725c6225dd7ef083830009d393045cf/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
327,
13422,
4133,
951,
12893,
1094,
1031,
1046,
12,
2890,
16,
306,
3353,
31365,
364,
4422,
31365,
316,
833,
19226,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
327,
13422,
4133,
951,
12893,
1094,
1031,
1046,
12,
2890,
16,
306,
3353,
31365,
364,
4422,
31365,
316,
833,
19226,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ExecuteImmediateCmd(cmd, sizeof(temp))); | ExecuteImmediateCmd(cmd, sizeof(temp)));%(gl_error_test)s | def WriteImmediateServiceUnitTest(self, func, file): """Writes the service unit test for a command.""" valid_test = """ | d2cf0a2d41861a2cb6d3d409d367e122596328a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/d2cf0a2d41861a2cb6d3d409d367e122596328a6/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
1156,
2836,
1842,
364,
279,
1296,
12123,
923,
67,
3813,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2598,
22651,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
1156,
2836,
1842,
364,
279,
1296,
12123,
923,
67,
3813,
273,
3536,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
msg, (filename, lineno, offset, badline) = value | msg, (filename, lineno, offset, badline) = value.args | def format_exception_only(etype, value): """Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError exceptions, it contains several lines that (when printed) display detailed information about where the syntax error occurred. The message indicating which exception occurred is always the last string in the list. """ # An instance should not have a meaningful value parameter, but # sometimes does, particularly for string exceptions, such as # >>> raise string1, string2 # deprecated # # Clear these out first because issubtype(string1, SyntaxError) # would throw another exception and mask the original problem. if (isinstance(etype, BaseException) or isinstance(etype, types.InstanceType) or etype is None or type(etype) is str): return [_format_final_exc_line(etype, value)] stype = etype.__name__ if not issubclass(etype, SyntaxError): return [_format_final_exc_line(stype, value)] # It was a syntax error; show exactly where the problem was found. lines = [] try: msg, (filename, lineno, offset, badline) = value except Exception: pass else: filename = filename or "<string>" lines.append(' File "%s", line %d\n' % (filename, lineno)) if badline is not None: lines.append(' %s\n' % badline.strip()) if offset is not None: caretspace = badline[:offset].lstrip() # non-space whitespace (likes tabs) must be kept for alignment caretspace = ((c.isspace() and c or ' ') for c in caretspace) # only three spaces to account for offset1 == pos 0 lines.append(' %s^\n' % ''.join(caretspace)) value = msg lines.append(_format_final_exc_line(stype, value)) return lines | 838e5ad5f68f7e40b903f6aac94e3aca5a4721d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/838e5ad5f68f7e40b903f6aac94e3aca5a4721d2/traceback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,
67,
723,
471,
2589,
18,
2722,
67,
1132,
18,
1021,
327,
460,
353,
279,
666,
434,
2064,
16,
1517,
11463,
316,
279,
9472,
18,
225,
24773,
1230,
16,
326,
666,
1914,
279,
2202,
533,
31,
14025,
16,
364,
18453,
4798,
16,
518,
1914,
11392,
2362,
716,
261,
13723,
14099,
13,
2562,
6864,
1779,
2973,
1625,
326,
6279,
555,
7841,
18,
225,
1021,
883,
11193,
1492,
1520,
7841,
353,
3712,
326,
1142,
533,
316,
326,
666,
18,
225,
3536,
225,
468,
1922,
791,
1410,
486,
1240,
279,
26271,
460,
1569,
16,
1496,
468,
16594,
1552,
16,
6826,
715,
364,
533,
4798,
16,
4123,
487,
468,
4080,
1002,
533,
21,
16,
533,
22,
225,
468,
6849,
468,
468,
10121,
4259,
596,
1122,
2724,
353,
21974,
12,
1080,
21,
16,
18453,
13,
468,
4102,
604,
4042,
1520,
471,
3066,
326,
2282,
6199,
18,
309,
261,
291,
1336,
12,
5872,
16,
26778,
13,
578,
1549,
12,
5872,
16,
1953,
18,
29123,
13,
578,
24700,
353,
599,
578,
618,
12,
5872,
13,
353,
609,
4672,
327,
306,
67,
2139,
67,
6385,
67,
10075,
67,
1369,
12,
5872,
16,
460,
25887,
225,
29365,
273,
24700,
16186,
529,
972,
225,
309,
486,
14664,
12,
5872,
16,
18453,
4672,
327,
306,
67,
2139,
67,
6385,
67,
10075,
67,
1369,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,
67,
723,
471,
2589,
18,
2722,
67,
1132,
18,
1021,
327,
460,
353,
279,
666,
434,
2064,
16,
1517,
11463,
316,
279,
9472,
18,
225,
24773,
1230,
16,
326,
666,
1914,
279,
2202,
533,
31,
14025,
16,
364,
18453,
4798,
16,
518,
1914,
11392,
2362,
716,
261,
13723,
14099,
13,
2562,
6864,
1779,
2973,
1625,
326,
6279,
555,
7841,
18,
225,
1021,
883,
11193,
1492,
1520,
7841,
353,
3712,
326,
1142,
533,
316,
326,
666,
18,
225,
3536,
225,
468,
1922,
791,
1410,
2
] |
osd.clearscreen(osd.COL_BLACK) if settings.background.image: apply(osd.drawbitmap, (settings.background.image, -1, -1)) if settings.background.mask: osd.drawbitmap(settings.background.mask,-1,-1) DrawLogo(settings.logo) | InitScreen(settings) | def DrawTVGuide_Clear(self, settings): osd.clearscreen(osd.COL_BLACK) | d31c11c3f9777168daab09b7a7cda5ce84134383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d31c11c3f9777168daab09b7a7cda5ce84134383/main1_tv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
15579,
17424,
67,
9094,
12,
2890,
16,
1947,
4672,
1140,
72,
18,
8507,
9252,
12,
538,
72,
18,
4935,
67,
14618,
3649,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10184,
15579,
17424,
67,
9094,
12,
2890,
16,
1947,
4672,
1140,
72,
18,
8507,
9252,
12,
538,
72,
18,
4935,
67,
14618,
3649,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
v v v v v v v | def complex(a, b): c = zeros(a.shape, dtype=complex_) | 59b4e95f7f51e2949dfc41d870520dd7f49c95eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/59b4e95f7f51e2949dfc41d870520dd7f49c95eb/test_numexpr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7233,
12,
69,
16,
324,
4672,
276,
273,
4922,
12,
69,
18,
4867,
16,
3182,
33,
14259,
67,
13,
2,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7233,
12,
69,
16,
324,
4672,
276,
273,
4922,
12,
69,
18,
4867,
16,
3182,
33,
14259,
67,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
'useRunPython': ('-j', '--runPython', 'b', False, 'Use RunPython instead of native launchers to run tests'), | 'runLauncher': ('-l', '--runLauncher', 'b', False, 'Use Chandler launcher if possible instead of Python to run tests'), | def parseOptions(): """ parse options >>> options = parseOptions() >>> d = eval(str(options)) >>> keys = d.keys() >>> keys.sort() >>> for key in keys: ... print key, d[key], args [] dryrun False func False funcSuite False help False mode None noEnv False noStop False params None perf False profile False recorded False repeat 0 selftest True single tbox False testcase None unit False unitSuite False useRunPython False verbose False """ _configItems = { 'mode': ('-m', '--mode', 's', None, 'debug or release; by default attempts both'), 'noStop': ('-C', '--continue', 'b', False, 'Continue even after test failures'), 'unit': ('-u', '--unit', 'b', False, 'unit tests each in own process'), 'unitSuite': ('-U', '--unitSuite', 'b', False, 'all unit tests in single process'), 'verbose': ('-v', '--verbose', 'b', False, 'Verbose output'), 'funcSuite': ('-f', '--funcSuite', 'b', False, 'Functional test suite'), 'func': ('-F', '--func', 'b', False, 'Functional tests each in own process'), 'perf': ('-p', '--perf', 'b', False, 'Performance tests'), 'single': ('-t', '--test', 's', '', 'Run test(s) (comma separated list)'), 'noEnv': ('-i', '--ignoreEnv', 'b', False, 'Ignore environment variables'), 'help': ('-H', '', 'b', False, 'Extended help'), 'dryrun': ('-d', '--dryrun', 'b', False, 'Do all of the prep work but do not run any tests'), 'selftest': ('', '--selftest', 'b', False, 'Run self test'), 'profile': ('-P', '--profile', 'b', False, 'Profile performance tests with hotshot'), 'tbox': ('-T', '--tbox', 'b', False, 'Tinderbox mode'), 'recorded': ('-r', '--recordedScript', 'b', False, 'Run the Chandler recorded scripts'), 'repeat': ('', '--repeat', 'i', 0, 'Number of times to repeat performance test, 1 by default, 3 in Tinderbox mode'), 'params': ('', '--params', 's', None, 'Optional params that are to be passed straight to RunPython'), 'testcase': ('', '--testcase', 's', None, 'Run a single unit test or test case TestFilename[:testClass[.testCase]]'), 'useRunPython': ('-j', '--runPython', 'b', False, 'Use RunPython instead of native launchers to run tests'), #'restored': ('-R', '--restoredRepository', 'b', False, 'unit tests with restored repository instead of creating new for each test'), #'config': ('-L', '', 's', None, 'Custom Chandler logging configuration file'), } # %prog expands to os.path.basename(sys.argv[0]) usage = "usage: %prog [options]\n" parser = OptionParser(usage=usage, version="%prog") for key in _configItems: (shortCmd, longCmd, optionType, defaultValue, helpText) = _configItems[key] if optionType == 'b': parser.add_option(shortCmd, longCmd, dest=key, action='store_true', default=defaultValue, help=helpText) elif optionType == 'i': parser.add_option(shortCmd, longCmd, dest=key, type='int', default=defaultValue, help=helpText) else: parser.add_option(shortCmd, longCmd, dest=key, default=defaultValue, help=helpText) (options, args) = parser.parse_args() options.args = args if args: implicitSingle = False for key in _configItems.keys(): if getattr(options, key) != _configItems[key][3]: break implicitSingle = True if implicitSingle: options.single = ' '.join(args) options.args = '' return options | af34e6a7a2160f1862685baa804a3205994c1ff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/af34e6a7a2160f1862685baa804a3205994c1ff0/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1320,
13332,
3536,
1109,
702,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
302,
273,
5302,
12,
701,
12,
2116,
3719,
4080,
1311,
273,
302,
18,
2452,
1435,
4080,
1311,
18,
3804,
1435,
4080,
364,
498,
316,
1311,
30,
1372,
377,
1172,
498,
16,
302,
63,
856,
6487,
833,
5378,
10299,
2681,
1083,
1326,
1083,
1326,
13587,
1083,
2809,
1083,
1965,
599,
1158,
3491,
1083,
1158,
4947,
1083,
859,
599,
14184,
1083,
3042,
1083,
16421,
1083,
7666,
374,
365,
3813,
1053,
2202,
225,
268,
2147,
1083,
1842,
3593,
599,
2836,
1083,
2836,
13587,
1083,
999,
1997,
15774,
1083,
3988,
1083,
3536,
389,
1425,
3126,
273,
288,
296,
3188,
4278,
540,
7707,
17,
81,
2187,
3534,
3188,
2187,
9079,
296,
87,
2187,
599,
16,
225,
296,
4148,
578,
3992,
31,
635,
805,
7531,
3937,
19899,
296,
2135,
4947,
4278,
4202,
7707,
17,
39,
2187,
3534,
17143,
2187,
6647,
296,
70,
2187,
1083,
16,
296,
12378,
5456,
1839,
1842,
11720,
19899,
296,
4873,
4278,
540,
7707,
17,
89,
2187,
3534,
4873,
2187,
9079,
296,
70,
2187,
1083,
16,
296,
4873,
7434,
1517,
316,
4953,
1207,
19899,
296,
4873,
13587,
4278,
565,
7707,
17,
57,
2187,
3534,
4873,
13587,
2187,
1850,
296,
70,
2187,
1083,
16,
296,
454,
2836,
7434,
316,
2202,
1207,
19899,
296,
11369,
4278,
1377,
7707,
17,
90,
2187,
3534,
11369,
2187,
5411,
296,
70,
2187,
1083,
16,
296,
14489,
876,
19899,
296,
644,
13587,
4278,
565,
7707,
17,
74,
2187,
3534,
644,
13587,
2187,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1320,
13332,
3536,
1109,
702,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
302,
273,
5302,
12,
701,
12,
2116,
3719,
4080,
1311,
273,
302,
18,
2452,
1435,
4080,
1311,
18,
3804,
1435,
4080,
364,
498,
316,
1311,
30,
1372,
377,
1172,
498,
16,
302,
63,
856,
6487,
833,
5378,
10299,
2681,
1083,
1326,
1083,
1326,
13587,
1083,
2809,
1083,
1965,
599,
1158,
3491,
1083,
1158,
4947,
1083,
859,
599,
14184,
1083,
3042,
1083,
16421,
1083,
7666,
374,
365,
3813,
1053,
2202,
225,
268,
2147,
1083,
1842,
3593,
599,
2836,
1083,
2836,
13587,
1083,
999,
1997,
15774,
1083,
3988,
1083,
3536,
389,
1425,
3126,
273,
288,
296,
3188,
4278,
540,
7707,
17,
81,
2187,
3534,
3188,
2187,
2
] |
def setupJobWeb(self, name, tag_base): | def setupJobWeb(self, name, tag_base=None): | def setupJobWeb(self, name, tag_base): self.name = name try: os.mkdir(name) os.mkdir(name+'/logs') except: pass self.tag_base = tag_base self.add_condor_cmd('environment',"KMP_LIBRARY=serial;MKL_SERIAL=yes") self.set_sub_file(name+'.sub') self.outputPath = os.getcwd() + '/' + name + '/' self.set_stdout_file(self.outputPath+'/logs/'+name+'-$(macroid).out') self.set_stderr_file(self.outputPath+'/logs/'+name+'-$(macroid).err') | 7284b34939e8ed924c566d12e2acd24b2050b2c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/7284b34939e8ed924c566d12e2acd24b2050b2c4/fu_Condor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
2278,
4079,
12,
2890,
16,
508,
16,
1047,
67,
1969,
33,
7036,
4672,
365,
18,
529,
273,
508,
775,
30,
1140,
18,
26686,
12,
529,
13,
1140,
18,
26686,
12,
529,
6797,
19,
10011,
6134,
1335,
30,
1342,
365,
18,
2692,
67,
1969,
273,
1047,
67,
1969,
365,
18,
1289,
67,
10013,
280,
67,
4172,
2668,
10274,
2187,
6,
47,
4566,
67,
2053,
28254,
33,
8818,
31,
49,
47,
48,
67,
2123,
6365,
33,
9707,
7923,
365,
18,
542,
67,
1717,
67,
768,
12,
529,
6797,
18,
1717,
6134,
365,
18,
2844,
743,
273,
1140,
18,
588,
11089,
1435,
397,
2023,
397,
508,
397,
2023,
365,
18,
542,
67,
10283,
67,
768,
12,
2890,
18,
2844,
743,
6797,
19,
10011,
2473,
15,
529,
6797,
21830,
12,
5821,
5560,
2934,
659,
6134,
365,
18,
542,
67,
11241,
67,
768,
12,
2890,
18,
2844,
743,
6797,
19,
10011,
2473,
15,
529,
6797,
21830,
12,
5821,
5560,
2934,
370,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3875,
2278,
4079,
12,
2890,
16,
508,
16,
1047,
67,
1969,
33,
7036,
4672,
365,
18,
529,
273,
508,
775,
30,
1140,
18,
26686,
12,
529,
13,
1140,
18,
26686,
12,
529,
6797,
19,
10011,
6134,
1335,
30,
1342,
365,
18,
2692,
67,
1969,
273,
1047,
67,
1969,
365,
18,
1289,
67,
10013,
280,
67,
4172,
2668,
10274,
2187,
6,
47,
4566,
67,
2053,
28254,
33,
8818,
31,
49,
47,
48,
67,
2123,
6365,
33,
9707,
7923,
365,
18,
542,
67,
1717,
67,
768,
12,
529,
6797,
18,
1717,
6134,
365,
18,
2844,
743,
273,
1140,
18,
588,
11089,
1435,
397,
2023,
397,
508,
397,
2023,
365,
18,
542,
67,
10283,
67,
768,
12,
2890,
18,
2844,
743,
2
] |
class PIE(ARC): | class _PIE(_ARC): | def __init__(self,left=0,top=0,right=0,bottom=0, xstart=0,ystart=0,xend=0,yend=0): EMR_UNKNOWN.__init__(self) self.rclBox_left=left self.rclBox_top=top self.rclBox_right=right self.rclBox_bottom=bottom self.ptlStart_x=xstart self.ptlStart_y=ystart self.ptlEnd_x=xend self.ptlEnd_y=yend | 688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4482,
33,
20,
16,
3669,
33,
20,
16,
4083,
33,
20,
16,
9176,
33,
20,
16,
619,
1937,
33,
20,
16,
1094,
485,
33,
20,
16,
92,
409,
33,
20,
16,
93,
409,
33,
20,
4672,
7141,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
86,
830,
3514,
67,
4482,
33,
4482,
365,
18,
86,
830,
3514,
67,
3669,
33,
3669,
365,
18,
86,
830,
3514,
67,
4083,
33,
4083,
365,
18,
86,
830,
3514,
67,
9176,
33,
9176,
365,
18,
337,
80,
1685,
67,
92,
33,
92,
1937,
365,
18,
337,
80,
1685,
67,
93,
33,
1094,
485,
365,
18,
337,
80,
1638,
67,
92,
33,
92,
409,
365,
18,
337,
80,
1638,
67,
93,
33,
93,
409,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4482,
33,
20,
16,
3669,
33,
20,
16,
4083,
33,
20,
16,
9176,
33,
20,
16,
619,
1937,
33,
20,
16,
1094,
485,
33,
20,
16,
92,
409,
33,
20,
16,
93,
409,
33,
20,
4672,
7141,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
86,
830,
3514,
67,
4482,
33,
4482,
365,
18,
86,
830,
3514,
67,
3669,
33,
3669,
365,
18,
86,
830,
3514,
67,
4083,
33,
4083,
365,
18,
86,
830,
3514,
67,
9176,
33,
9176,
365,
18,
337,
80,
1685,
67,
92,
33,
92,
1937,
365,
18,
337,
80,
1685,
67,
93,
33,
1094,
485,
365,
18,
337,
80,
1638,
67,
92,
33,
92,
409,
2
] |
@match(r'^http://www.textsfromlastnight.com/view/(\d+)$') | @match(r'^(?:http://)?(?:www\.)?textsfromlastnight\.com/view/(\d+)$') | def tfln(self, event, number=u'random', timeframe=None): if number.lower() in (u'worst', u'best'): number += u'-nights' if timeframe: if timeframe.lower().endswith(u'week'): number += u'/this-week' elif timeframe.lower().endswith(u'month'): number += u'/this-month' elif number.isdigit(): number = 'view/%s' % number | 8f257757f4e8a450e95d055ecd06974205993d75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/8f257757f4e8a450e95d055ecd06974205993d75/lookup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2242,
82,
12,
2890,
16,
871,
16,
1300,
33,
89,
11,
9188,
2187,
813,
3789,
33,
7036,
4672,
309,
1300,
18,
8167,
1435,
316,
261,
89,
11,
91,
280,
334,
2187,
582,
11,
12729,
11,
4672,
1300,
1011,
582,
11,
17,
82,
10730,
11,
309,
813,
3789,
30,
309,
813,
3789,
18,
8167,
7675,
5839,
1918,
12,
89,
11,
10741,
11,
4672,
1300,
1011,
582,
11,
19,
2211,
17,
10741,
11,
1327,
813,
3789,
18,
8167,
7675,
5839,
1918,
12,
89,
17784,
2152,
11,
4672,
1300,
1011,
582,
11,
19,
2211,
17,
7496,
11,
1327,
1300,
18,
291,
11052,
13332,
1300,
273,
296,
1945,
5258,
87,
11,
738,
1300,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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33,
89,
11,
9188,
2187,
813,
3789,
33,
7036,
4672,
309,
1300,
18,
8167,
1435,
316,
261,
89,
11,
91,
280,
334,
2187,
582,
11,
12729,
11,
4672,
1300,
1011,
582,
11,
17,
82,
10730,
11,
309,
813,
3789,
30,
309,
813,
3789,
18,
8167,
7675,
5839,
1918,
12,
89,
11,
10741,
11,
4672,
1300,
1011,
582,
11,
19,
2211,
17,
10741,
11,
1327,
813,
3789,
18,
8167,
7675,
5839,
1918,
12,
89,
17784,
2152,
11,
4672,
1300,
1011,
582,
11,
19,
2211,
17,
7496,
11,
1327,
1300,
18,
291,
11052,
13332,
1300,
273,
296,
1945,
5258,
87,
11,
738,
1300,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
roottree=vartree(root) porttree=portagetree("/") | roottree=vartree(root,root_virts) | def ebuild_init(): "performs db/variable initialization for the ebuild system. Not required for other scripts." global roottree, localtree, porttree, ebuild_initialized, root localtree=vartree("/") if root=="/": #root is local, and build dep database is the runtime dep database roottree=localtree else: #root is non-local, initialize non-local database as roottree roottree=vartree(root) porttree=portagetree("/") ebuild_initialized=1 | cebbf2be609c4e61d733f5eaa2b4e0f66a59625a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/cebbf2be609c4e61d733f5eaa2b4e0f66a59625a/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
3510,
67,
2738,
13332,
315,
457,
9741,
1319,
19,
6105,
10313,
364,
326,
425,
3510,
2619,
18,
225,
2288,
1931,
364,
1308,
8873,
1199,
2552,
1365,
3413,
16,
1191,
3413,
16,
1756,
3413,
16,
425,
3510,
67,
13227,
16,
1365,
1191,
3413,
33,
90,
485,
992,
2932,
4898,
13,
309,
1365,
31713,
4898,
30,
468,
3085,
353,
1191,
16,
471,
1361,
5993,
2063,
353,
326,
3099,
5993,
2063,
1365,
3413,
33,
3729,
3413,
469,
30,
468,
3085,
353,
1661,
17,
3729,
16,
4046,
1661,
17,
3729,
2063,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
425,
3510,
67,
2738,
13332,
315,
457,
9741,
1319,
19,
6105,
10313,
364,
326,
425,
3510,
2619,
18,
225,
2288,
1931,
364,
1308,
8873,
1199,
2552,
1365,
3413,
16,
1191,
3413,
16,
1756,
3413,
16,
425,
3510,
67,
13227,
16,
1365,
1191,
3413,
33,
90,
485,
992,
2932,
4898,
13,
309,
1365,
31713,
4898,
30,
468,
3085,
353,
1191,
16,
471,
1361,
5993,
2063,
353,
326,
3099,
5993,
2063,
1365,
3413,
33,
3729,
3413,
469,
30,
468,
3085,
353,
1661,
17,
3729,
16,
4046,
1661,
17,
3729,
2063,
487,
1365,
27427,
264,
1632,
3413,
33,
90,
485,
992,
12,
3085,
16,
3085,
67,
14035,
87,
13,
425,
3510,
67,
13227,
33,
21,
225,
2,
-100,
-100,
-100,
-100,
-100
] |
def set_info_mp3( self, file ): | def set_info_mp3(self, filename): | def set_info_mp3( self, file ): """ Sets the info variables with info from the mp3 | 6fba5aad6b92c03fe1863c663acf4898bd8a34a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6fba5aad6b92c03fe1863c663acf4898bd8a34a7/audioinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1376,
67,
1291,
23,
12,
2890,
16,
1544,
4672,
3536,
11511,
326,
1123,
3152,
598,
1123,
628,
326,
6749,
23,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
67,
1376,
67,
1291,
23,
12,
2890,
16,
1544,
4672,
3536,
11511,
326,
1123,
3152,
598,
1123,
628,
326,
6749,
23,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for account_id, sum in cr.fetchall(): res[account_id][f] = sum | for account_id, lwd in cr.fetchall(): res[account_id][f] = lwd | def _analysis_all(self, cr, uid, ids, fields, arg, context=None): dp = 2 res = dict([(i, {}) for i in ids]) | 1a63e1c0446ff8a7681b88775ab2dc9fbd57a788 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/1a63e1c0446ff8a7681b88775ab2dc9fbd57a788/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12746,
67,
454,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
16,
1501,
16,
819,
33,
7036,
4672,
9986,
273,
576,
400,
273,
2065,
3816,
12,
77,
16,
2618,
13,
364,
277,
316,
3258,
5717,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12746,
67,
454,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
16,
1501,
16,
819,
33,
7036,
4672,
9986,
273,
576,
400,
273,
2065,
3816,
12,
77,
16,
2618,
13,
364,
277,
316,
3258,
5717,
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,
-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,
-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
] |
MAX_LOOKUP = 10 MAX_MX = 10 MAX_PTR = 10 | MAX_LOOKUP = 10 MAX_MX = 10 MAX_PTR = 10 | def bool(x): return not not x | 357cd1b740e7a93a1ed954617028ed60ebab9137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/139/357cd1b740e7a93a1ed954617028ed60ebab9137/spf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1426,
12,
92,
4672,
327,
486,
486,
619,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1426,
12,
92,
4672,
327,
486,
486,
619,
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,
-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,
-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,
-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,
-100,
-100
] |
(nodes, new_index_1, new_index_2)=Birth(index_to_birth,time,nodes); in_1.update([new_index_1, new_index_2]); in_1_alive.update([new_index_1, new_index_2]); in_1_alive.remove(index_to_birth); | (nodes, new_index_1, new_index_2, in_0, in_1, in_0_alive, in_1_alive)=Birth(index_to_birth,time,nodes, in_0, in_1, in_0_alive, in_1_alive); | def CreatePopulation(birth_0, death_0, turnover, birth_1, death_1, migration_0, migration_1, initial_0, initial_1): """ Starting with initial_0 unconnected lineages in the boreal region, and initial_1 unconnected lineages in the tropical region, this function simulates the birth-death-migration process until all the lineages left are related to eachother Input Parameters ---------------- birth_0 the per lineage birth rate in state 0 death_0 the per lineage death rate in state 0 birth_1 the per lineage birth rate in state 1 death_1 the per lineage death rate in state 1 migration_1 the per lineage migration rate from 0 to 1 migration_0 the per lineage migration rate from 1 to 0 initial_0 the size of the initial population in state 0 initial_1 the size of the initial population in state 1 Return Values ------------- nodes the node map [Time of Birth (0), Parent node (1), region (2), migration_times (3), Time of Death (4), related_to (5)] of the final population final_0 the number of lineages in the boreal region at the tips of the tree (after all remaining lineages are related to eachother) final_1 the number of lineages in the tropical region at the tips of the tree (after all remaining are related to eachother) common_rel the common ancestors of the remaining lineages """ all_related=False; time=0; nodes={}; in_0=set(range(initial_0)); in_1=range(initial_1); for i in range(initial_1): in_1[i]=in_1[i]+initial_0; in_1=set(in_1); in_0_alive=in_0.copy(); in_1_alive=in_1.copy(); for i in range(initial_0): nodes.update({i : [0,-1,0,[],-1,set([i])]}); for i in range(initial_1) : nodes.update({i+initial_0 : [0,-1,1,[],-1,set([i+initial_0])]}); j=0; time=0; while(all_related==False): j=j+1; #print j; #print(nodes); total_0=len(in_0); total_1=len(in_1); total_events=birth_0*total_0+birth_1*total_1+death_0*total_0+death_1*total_1+turnover*total_0+migration_0*total_1+migration_1; time_till_event=random.gammavariate(1,total_events); time=time+time_till_event; #time=time+dt; #prob_X is at least one X event in the time dt (1-Poisson probability no events), where X is birth_0, death_0 #birth_1, death_1, migration_0 or migration_1. Therefore, dt needs to be small enough #such that the probability of two events is much smaller than the probability of one event in dt. #prob_birth_0=1-math.exp(-birth_0*total_0*dt); #prob_death_0=1-math.exp(-death_0*total_0*dt); #prob_birth_1=1-math.exp(-birth_1*total_1*dt); #prob_death_1=1-math.exp(-death_1*total_1*dt); #prob_migration_0=1-math.exp(-migration_0*total_0*dt); #prob_migration_1=1-math.exp(-migration_1*total_1*dt); #Poisson distribution, probability of no events in time dt #prob_of_no_event=math.exp((-birth_0*dt+-death_0*dt+-migration_0*dt)*total_0+(-birth_1*dt+-death_1*dt+-migration_1*dt)*total_1); in_0_alive_copy=in_0_alive.copy() in_1_alive_copy=in_1_alive.copy() all_lineages_alive=in_0_alive_copy.union(in_1_alive_copy); all_lineages_alive_copy=all_lineages_alive.copy(); if(len(all_lineages_alive)==0): print "all died" return -1; random_list=range(len(in_0_alive)); for i in range(len(in_0_alive)): random_list[i]=in_0_alive_copy.pop(); random.shuffle(random_list); if len(random_list)==0: random_index_0=-1; else: random_index_0=random_list[0]; random_list=range(len(in_1_alive)); for i in range(len(in_1_alive)): random_list[i]=in_1_alive_copy.pop(); random.shuffle(random_list); if len(random_list)==0: random_index_1=-1; else: random_index_1=random_list[0]; random_list=range(len(all_lineages_alive )) for i in range(len(all_lineages_alive)): random_list[i]=all_lineages_alive_copy.pop(); random.shuffle(random_list); random_index_all=random_list[0]; #row_for_choosing 0:birth_0, 1:death_0, 2:migration_0, 3:turnover, 4:birth_1, 5:death_1, 6:migration_1 row_for_choosing=range(7); #special case if(len(in_0)==0): row_for_choosing[0]=0; row_for_choosing[1]=0; row_for_choosing[2]=0; row_for_choosing[3]=0; #normal else: row_for_choosing[0]=birth_0*total_0; row_for_choosing[1]=row_for_choosing[0]+death_0*total_0; row_for_choosing[2]=row_for_choosing[1]+migration_0*total_1; row_for_choosing[3]=row_for_choosing[2]+turnover*total_0; #special case if(len(in_1)==0): row_for_choosing[4]=0+row_for_choosing[0]; row_for_choosing[5]=0+row_for_choosing[0]; row_for_choosing[6]=0+row_for_choosing[0]; #normal else: row_for_choosing[4]=row_for_choosing[3]+birth_1*total_1; row_for_choosing[5]=row_for_choosing[4]+death_1*total_1; row_for_choosing[6]=row_for_choosing[5]+migration_1*total_0; #normalize sum=0; for i in range(len(row_for_choosing)): sum=sum+row_for_choosing[i]; #print("not normalized "+str(row_for_choosing)); #print("normalizing constant "+str(row_for_choosing[len(row_for_choosing)-1])); for i in range(len(row_for_choosing)): row_for_choosing[i]=row_for_choosing[i]/row_for_choosing[len(row_for_choosing)-1]; #print(row_for_choosing[len(row_for_choosing)-1]); #print(row_for_choosing); event_number=GetEvent(row_for_choosing); #print "event number "+str(event_number); | c872827e6167f1bc33108444aa076f7378184a7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7945/c872827e6167f1bc33108444aa076f7378184a7e/bd_simple.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
31821,
12,
22531,
67,
20,
16,
443,
421,
67,
20,
16,
7005,
1643,
16,
17057,
67,
21,
16,
443,
421,
67,
21,
16,
6333,
67,
20,
16,
6333,
67,
21,
16,
2172,
67,
20,
16,
2172,
67,
21,
4672,
3536,
24591,
598,
2172,
67,
20,
23980,
82,
828,
980,
1023,
316,
326,
324,
479,
287,
3020,
16,
471,
2172,
67,
21,
23980,
82,
828,
980,
1023,
316,
326,
268,
1764,
1706,
3020,
16,
333,
445,
3142,
17099,
326,
17057,
17,
323,
421,
17,
15746,
1207,
3180,
777,
326,
980,
1023,
2002,
854,
3746,
358,
1517,
3011,
2741,
7012,
300,
18753,
17057,
67,
20,
540,
326,
1534,
31766,
17057,
4993,
316,
919,
374,
443,
421,
67,
20,
540,
326,
1534,
31766,
443,
421,
4993,
316,
919,
374,
17057,
67,
21,
540,
326,
1534,
31766,
17057,
4993,
316,
919,
404,
443,
421,
67,
21,
540,
326,
1534,
31766,
443,
421,
4993,
316,
919,
404,
6333,
67,
21,
377,
326,
1534,
31766,
6333,
4993,
628,
374,
358,
404,
6333,
67,
20,
377,
326,
1534,
31766,
6333,
4993,
628,
404,
358,
374,
2172,
67,
20,
4202,
326,
963,
434,
326,
2172,
11209,
316,
919,
374,
2172,
67,
21,
4202,
326,
963,
434,
326,
2172,
11209,
316,
919,
404,
225,
2000,
6876,
300,
7620,
2199,
4202,
326,
756,
852,
306,
950,
434,
605,
10542,
261,
20,
3631,
9520,
756,
261,
21,
3631,
3020,
261,
22,
3631,
6333,
67,
8293,
261,
23,
3631,
2647,
434,
1505,
421,
261,
24,
3631,
3746,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
31821,
12,
22531,
67,
20,
16,
443,
421,
67,
20,
16,
7005,
1643,
16,
17057,
67,
21,
16,
443,
421,
67,
21,
16,
6333,
67,
20,
16,
6333,
67,
21,
16,
2172,
67,
20,
16,
2172,
67,
21,
4672,
3536,
24591,
598,
2172,
67,
20,
23980,
82,
828,
980,
1023,
316,
326,
324,
479,
287,
3020,
16,
471,
2172,
67,
21,
23980,
82,
828,
980,
1023,
316,
326,
268,
1764,
1706,
3020,
16,
333,
445,
3142,
17099,
326,
17057,
17,
323,
421,
17,
15746,
1207,
3180,
777,
326,
980,
1023,
2002,
854,
3746,
358,
1517,
3011,
2741,
7012,
300,
18753,
17057,
67,
20,
540,
326,
1534,
31766,
17057,
4993,
316,
919,
374,
443,
421,
67,
20,
540,
2
] |
delta_hour = now.replace(hour=(hour + 1), minute=0, second=0) - now wait_hour = delta_hour.seconds + randint(5, 300) | wait_hour = self._polling try: delta_hour = now.replace(hour=(hour + 1)%24, minute=0, second=0) - now if delta_hour.days < 0: logger.debug('Nuovo giorno: delta_hour %s' % delta_hour) wait_hour = delta_hour.seconds + randint(5, 300) except ValueError as e: logger.warning('Errore nella determinazione della prossima ora.') | def loop(self): # TODO Rivedere algoritmo di loop() | 775a9a0cc9600540241a29d07c8336e20d4ed332 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4588/775a9a0cc9600540241a29d07c8336e20d4ed332/executer.py | [
1,
8585,
326,
22398,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2798,
12,
2890,
4672,
468,
2660,
534,
2950,
822,
524,
3022,
305,
8683,
4314,
2798,
1435,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp,dax) | CondorDAGJob.__init__(self,self.__universe,self.__executable) AnalysisJob.__init__(self,cp,dax) | def __init__(self,log_dir,cp,dax=False): """ cp = ConfigParser object from which options are read. """ self.__executable = cp.get('condor','ligolw_add') self.__universe = 'vanilla' pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp,dax) | 5ec3f36a3cd4b9a43c9a253d7a82c2544c95a0da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/5ec3f36a3cd4b9a43c9a253d7a82c2544c95a0da/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1330,
67,
1214,
16,
4057,
16,
72,
651,
33,
8381,
4672,
3536,
3283,
273,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
365,
16186,
17751,
273,
3283,
18,
588,
2668,
10013,
280,
17023,
80,
360,
355,
91,
67,
1289,
6134,
365,
16186,
318,
17488,
273,
296,
90,
26476,
11,
5873,
18,
12441,
280,
40,
1781,
2278,
16186,
2738,
972,
12,
2890,
16,
2890,
16186,
318,
17488,
16,
2890,
16186,
17751,
13,
5873,
18,
9418,
2278,
16186,
2738,
972,
12,
2890,
16,
4057,
16,
72,
651,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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854,
855,
18,
3536,
365,
16186,
17751,
273,
3283,
18,
588,
2668,
10013,
280,
17023,
80,
360,
355,
91,
67,
1289,
6134,
365,
16186,
318,
17488,
273,
296,
90,
26476,
11,
5873,
18,
12441,
280,
40,
1781,
2278,
16186,
2738,
972,
12,
2890,
16,
2890,
16186,
318,
17488,
16,
2890,
16186,
17751,
13,
5873,
18,
9418,
2278,
16186,
2738,
972,
12,
2890,
16,
4057,
16,
72,
651,
13,
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
] |
out_file.write(bytes(out_data[:filesize - out_file.tell()])) | out_file.write(self.fix_bytes(out_data[:filesize - out_file.tell()])) | def decrypt_file(self, in_file_path, out_file_path, password = None): with open(in_file_path, 'rb') as in_file: #If a password is provided, generate key and iv using salt from file. if password is not None: self._salt = in_file.read (32) self.create_key_from_password (password) #Key and iv have not been generated or provided, bail out if self._key is None or self._iv is None: return False #Initialize encryption using key and iv key_expander_256 = key_expander.KeyExpander(256) expanded_key = key_expander_256.expand(self._key) aes_cipher_256 = aes_cipher.AESCipher(expanded_key) aes_cbc_256 = cbc_mode.CBCMode(aes_cipher_256, 16) aes_cbc_256.set_iv(self._iv) #Read original file size filesize = struct.unpack('L',in_file.read(4))[0] #Decrypt to eof with open(out_file_path, 'wb') as out_file: eof = False while not eof: in_data = bytearray(in_file.read(16)) if (len(in_data) == 0): eof = True else: out_data = aes_cbc_256.decrypt_block(bytearray(in_data)) #At end of file, if end of original file is within < 16 bytes slice it out. if (filesize - out_file.tell() < 16): out_file.write(bytes(out_data[:filesize - out_file.tell()])) else: out_file.write(bytes(out_data)) self._salt = None return True | 08024c3ed40cd8f2bf9e098292e3964a332846fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13669/08024c3ed40cd8f2bf9e098292e3964a332846fe/demo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8420,
67,
768,
12,
2890,
16,
316,
67,
768,
67,
803,
16,
596,
67,
768,
67,
803,
16,
2201,
273,
599,
4672,
598,
1696,
12,
267,
67,
768,
67,
803,
16,
296,
6731,
6134,
487,
316,
67,
768,
30,
225,
468,
2047,
279,
2201,
353,
2112,
16,
2103,
498,
471,
4674,
1450,
4286,
628,
585,
18,
309,
2201,
353,
486,
599,
30,
365,
6315,
5759,
273,
316,
67,
768,
18,
896,
261,
1578,
13,
365,
18,
2640,
67,
856,
67,
2080,
67,
3664,
261,
3664,
13,
225,
468,
653,
471,
4674,
1240,
486,
2118,
4374,
578,
2112,
16,
18422,
596,
309,
365,
6315,
856,
353,
599,
578,
365,
6315,
427,
353,
599,
30,
327,
1083,
225,
468,
7520,
8731,
1450,
498,
471,
4674,
498,
67,
12320,
264,
67,
5034,
273,
498,
67,
12320,
264,
18,
653,
12271,
264,
12,
5034,
13,
8406,
67,
856,
273,
498,
67,
12320,
264,
67,
5034,
18,
12320,
12,
2890,
6315,
856,
13,
16956,
67,
17094,
67,
5034,
273,
16956,
67,
17094,
18,
16985,
2312,
4337,
12,
17336,
67,
856,
13,
16956,
67,
28409,
67,
5034,
273,
2875,
71,
67,
3188,
18,
21813,
2309,
12,
22335,
67,
17094,
67,
5034,
16,
2872,
13,
16956,
67,
28409,
67,
5034,
18,
542,
67,
427,
12,
2890,
6315,
427,
13,
225,
468,
1994,
2282,
585,
963,
14104,
273,
1958,
18,
17309,
2668,
48,
2187,
267,
67,
768,
18,
896,
12,
24,
3719,
63,
20,
65,
225,
468,
17306,
358,
14813,
598,
1696,
12,
659,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8420,
67,
768,
12,
2890,
16,
316,
67,
768,
67,
803,
16,
596,
67,
768,
67,
803,
16,
2201,
273,
599,
4672,
598,
1696,
12,
267,
67,
768,
67,
803,
16,
296,
6731,
6134,
487,
316,
67,
768,
30,
225,
468,
2047,
279,
2201,
353,
2112,
16,
2103,
498,
471,
4674,
1450,
4286,
628,
585,
18,
309,
2201,
353,
486,
599,
30,
365,
6315,
5759,
273,
316,
67,
768,
18,
896,
261,
1578,
13,
365,
18,
2640,
67,
856,
67,
2080,
67,
3664,
261,
3664,
13,
225,
468,
653,
471,
4674,
1240,
486,
2118,
4374,
578,
2112,
16,
18422,
596,
309,
365,
6315,
856,
353,
599,
578,
365,
6315,
427,
353,
599,
30,
327,
1083,
225,
468,
7520,
2
] |
if oldrn != "" and not re.match("\?\?\?",oldrn): | if oldrn != "" and not re.search("\?\?\?",oldrn): | def Report_Number_Generation(parameters,curdir,form): global doctype,access,act,dir,rn # The program must automatically generate the report number # Generate Year if parameters['autorngen'] == "Y": if parameters['yeargen'] == "AUTO": # Current year is used yy = time.strftime("%Y") else : # If yeargen != auto then the contents of the file named 'yeargen' is used # Assumes file uses DD-MM-YYYY format fp = open("%s/%s" % (curdir,parameters['yeargen']),"r") mydate = fp.read() fp.close() yy = re.sub("^......","",mydate) # Evaluate category - Category is read from the file named 'rnin if os.path.exists("%s/%s" % (curdir,parameters['rnin'])): fp = open("%s/%s" % (curdir,parameters['rnin']),"r") category = fp.read() category = category.replace("\n","") else: category = "" # The counter and report number formats are evaluated. # All data is considered as a string literal except that enclosed # in the <PA></PA> brackets. The category replaces <PA>categ</PA> # and the 4 digits year replaces <PA>yy</PA> counter_path = parameters['counterpath'].replace("<PA>categ</PA>",category) counter_path = counter_path.replace ("<PA>yy</PA>",yy) counter_path = counter_path.replace(" ","") counter_path = counter_path.replace("\n","") rn_format = parameters['rnformat'].replace ("<PA>categ</PA>",category) rn_format = rn_format.replace ("<PA>yy</PA>",yy) # Check if the report number does not already exists if os.path.exists("%s/%s" % (curdir,parameters['edsrn'])): fp = open("%s/%s" % (curdir,parameters['edsrn']),"r") oldrn = fp.read() fp.close() if oldrn != "" and not re.match("\?\?\?",oldrn): rn = oldrn return "" # create it rn = Create_Reference(counter_path,rn_format) rn = rn.replace("\n","") rn = rn.replace("\r","") rn = rn.replace("\015","") rn = rn.replace("\013","") rn = rn.replace("\012","") # The file edsrn is created in the submission directory, and it stores the report number fp = open("%s/%s" % (curdir,parameters['edsrn']),"w+") fp.write(rn) fp.close() # The report number is just read from a specified file elif parameters['autorngen'] == "N": fp = open("%s/%s" % (curdir,parameters['edsrn']),"r") rn = fp.read() fp.close() # Some documents are really annoying and insist on a totally different way of doing things # This code is for documents which have the access number in the report # number (instead of using a counter) elif parameters['autorngen'] == "A": rn = parameters['rnformat'].replace ("<PA>access</PA>",access) # The file accessno/edsrn is created, and it stores the report number fp = open("%s/%s" % (curdir,parameters['edsrn']),"w+") fp.write(rn) fp.close() return "" | 1a612c910495b2e3fe9e00a5bb0d3d9acae49d21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/1a612c910495b2e3fe9e00a5bb0d3d9acae49d21/Report_Number_Generation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8706,
67,
1854,
67,
13842,
12,
3977,
16,
1397,
1214,
16,
687,
4672,
2552,
24909,
16,
3860,
16,
621,
16,
1214,
16,
27639,
468,
1021,
5402,
1297,
6635,
2103,
326,
2605,
1300,
468,
6654,
16666,
309,
1472,
3292,
69,
3408,
3368,
275,
3546,
422,
315,
61,
6877,
309,
1472,
3292,
6874,
4507,
3546,
422,
315,
18909,
6877,
468,
6562,
3286,
353,
1399,
9016,
273,
813,
18,
701,
9982,
27188,
61,
7923,
469,
294,
468,
971,
3286,
4507,
480,
3656,
1508,
326,
2939,
434,
326,
585,
4141,
296,
6874,
4507,
11,
353,
1399,
468,
25374,
585,
4692,
25177,
17,
8206,
17,
26287,
740,
4253,
273,
1696,
27188,
87,
5258,
87,
6,
738,
261,
1397,
1214,
16,
3977,
3292,
6874,
4507,
3546,
3631,
6,
86,
7923,
3399,
712,
273,
4253,
18,
896,
1435,
4253,
18,
4412,
1435,
9016,
273,
283,
18,
1717,
2932,
66,
6265,
838,
15937,
3113,
4811,
712,
13,
468,
18176,
3150,
300,
9856,
353,
855,
628,
326,
585,
4141,
296,
27639,
267,
309,
1140,
18,
803,
18,
1808,
27188,
87,
5258,
87,
6,
738,
261,
1397,
1214,
16,
3977,
3292,
27639,
267,
3546,
3719,
30,
4253,
273,
1696,
27188,
87,
5258,
87,
6,
738,
261,
1397,
1214,
16,
3977,
3292,
27639,
267,
3546,
3631,
6,
86,
7923,
3150,
273,
4253,
18,
896,
1435,
3150,
273,
225,
3150,
18,
2079,
31458,
82,
3113,
3660,
13,
469,
30,
3150,
273,
1408,
468,
1021,
3895,
471,
2605,
1300,
6449,
854,
12697,
18,
468,
4826,
501,
353,
7399,
487,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8706,
67,
1854,
67,
13842,
12,
3977,
16,
1397,
1214,
16,
687,
4672,
2552,
24909,
16,
3860,
16,
621,
16,
1214,
16,
27639,
468,
1021,
5402,
1297,
6635,
2103,
326,
2605,
1300,
468,
6654,
16666,
309,
1472,
3292,
69,
3408,
3368,
275,
3546,
422,
315,
61,
6877,
309,
1472,
3292,
6874,
4507,
3546,
422,
315,
18909,
6877,
468,
6562,
3286,
353,
1399,
9016,
273,
813,
18,
701,
9982,
27188,
61,
7923,
469,
294,
468,
971,
3286,
4507,
480,
3656,
1508,
326,
2939,
434,
326,
585,
4141,
296,
6874,
4507,
11,
353,
1399,
468,
25374,
585,
4692,
25177,
17,
8206,
17,
26287,
740,
4253,
273,
1696,
27188,
87,
5258,
87,
6,
738,
261,
1397,
1214,
16,
3977,
3292,
6874,
2
] |
patt = re.compile("^>*\s*Include [`'\"]*([A-Za-z/ ]*)['\"]* \\(*Table [A-Z0-9a-z-.]+\\)*.*$") | patt = re.compile("^>*\s*Include [`'\"]*([A-Za-z/ -]*)['\"]* \\(*Table [A-Z0-9a-z-.]+\\)*.*$") | def IsIncludeTable(self,s): # Need to support : "Include `Image Pixel Macro' Table C.7-11b" #assert self._Shift == 0 #print "Include:", s #patt = re.compile("^>*Include `(.*)' Table [A-Z0-9a-z-.]+$") #m = patt.match(s) #if m: # return True #patt = re.compile("^>*Include [`|'](.*)' Table [A-Z0-9a-z-.]+\s+Defined Context ID is.*$") #m = patt.match(s) #return m #print "FALLBACK" patt = re.compile("^>*\s*Include [`'\"]*([A-Za-z/ ]*)['\"]* \\(*Table [A-Z0-9a-z-.]+\\)*.*$") m = patt.match(s) #if not m: # print "FAIL", s return m | d0caad977d22d5987eef29934af564d699f103d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13995/d0caad977d22d5987eef29934af564d699f103d3/ParseAttributes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
8752,
1388,
12,
2890,
16,
87,
4672,
468,
12324,
358,
2865,
294,
315,
8752,
1375,
2040,
26070,
31203,
11,
3555,
385,
18,
27,
17,
2499,
70,
6,
468,
11231,
365,
6315,
10544,
422,
374,
468,
1188,
315,
8752,
2773,
16,
272,
468,
84,
4558,
273,
283,
18,
11100,
2932,
66,
34,
14,
8752,
1375,
7444,
2506,
3555,
306,
37,
17,
62,
20,
17,
29,
69,
17,
94,
17,
18,
3737,
8,
7923,
468,
81,
273,
28560,
18,
1916,
12,
87,
13,
468,
430,
312,
30,
468,
225,
327,
1053,
468,
84,
4558,
273,
283,
18,
11100,
2932,
66,
34,
14,
8752,
306,
68,
96,
3546,
7444,
2506,
3555,
306,
37,
17,
62,
20,
17,
29,
69,
17,
94,
17,
18,
26446,
87,
15,
8116,
1772,
1599,
353,
4509,
8,
7923,
468,
81,
273,
28560,
18,
1916,
12,
87,
13,
468,
2463,
312,
468,
1188,
315,
42,
4685,
8720,
6,
28560,
273,
283,
18,
11100,
2932,
66,
34,
12174,
87,
14,
8752,
306,
11294,
2412,
5772,
3816,
37,
17,
15948,
17,
94,
19,
300,
15471,
3292,
2412,
5772,
1736,
30857,
1388,
306,
37,
17,
62,
20,
17,
29,
69,
17,
94,
17,
18,
3737,
1695,
17653,
4509,
8,
7923,
312,
273,
28560,
18,
1916,
12,
87,
13,
468,
430,
486,
312,
30,
468,
225,
1172,
315,
12319,
3113,
272,
327,
312,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
8752,
1388,
12,
2890,
16,
87,
4672,
468,
12324,
358,
2865,
294,
315,
8752,
1375,
2040,
26070,
31203,
11,
3555,
385,
18,
27,
17,
2499,
70,
6,
468,
11231,
365,
6315,
10544,
422,
374,
468,
1188,
315,
8752,
2773,
16,
272,
468,
84,
4558,
273,
283,
18,
11100,
2932,
66,
34,
14,
8752,
1375,
7444,
2506,
3555,
306,
37,
17,
62,
20,
17,
29,
69,
17,
94,
17,
18,
3737,
8,
7923,
468,
81,
273,
28560,
18,
1916,
12,
87,
13,
468,
430,
312,
30,
468,
225,
327,
1053,
468,
84,
4558,
273,
283,
18,
11100,
2932,
66,
34,
14,
8752,
306,
68,
96,
3546,
7444,
2506,
3555,
306,
37,
17,
62,
20,
17,
29,
69,
17,
2
] |
super(CatalogReport,self).__init__() | super(CatalogReport, self).__init__() | def __init__(self, catalog, request=None, threshold=0): super(CatalogReport,self).__init__() self.catalog = catalog self.request = request self.threshold = threshold ## TODO: how to get an unique id? getPhysicalPath = getattr(catalog.aq_parent,'getPhysicalPath',lambda: ['','DummyCatalog']) self.cid = tuple(getPhysicalPath()) | 78534fa5e44f63d640ff07c425ec3edd3bb48fe9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/78534fa5e44f63d640ff07c425ec3edd3bb48fe9/CatalogReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6222,
16,
590,
33,
7036,
16,
5573,
33,
20,
4672,
2240,
12,
9769,
4820,
16,
365,
2934,
972,
2738,
972,
1435,
225,
365,
18,
7199,
273,
6222,
365,
18,
2293,
273,
590,
365,
18,
8699,
273,
5573,
225,
7541,
2660,
30,
3661,
358,
336,
392,
3089,
612,
35,
21735,
7046,
743,
273,
3869,
12,
7199,
18,
69,
85,
67,
2938,
11189,
588,
18136,
743,
2187,
14661,
30,
10228,
17023,
20094,
9769,
19486,
365,
18,
13478,
273,
3193,
12,
588,
18136,
743,
10756,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6222,
16,
590,
33,
7036,
16,
5573,
33,
20,
4672,
2240,
12,
9769,
4820,
16,
365,
2934,
972,
2738,
972,
1435,
225,
365,
18,
7199,
273,
6222,
365,
18,
2293,
273,
590,
365,
18,
8699,
273,
5573,
225,
7541,
2660,
30,
3661,
358,
336,
392,
3089,
612,
35,
21735,
7046,
743,
273,
3869,
12,
7199,
18,
69,
85,
67,
2938,
11189,
588,
18136,
743,
2187,
14661,
30,
10228,
17023,
20094,
9769,
19486,
365,
18,
13478,
273,
3193,
12,
588,
18136,
743,
10756,
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,
-100,
-100,
-100
] |
self._suspended.pop().send_exception(TaskletExit) | self._suspended.pop()[0].send_exception(TaskletExit) | def finalise(self): r'''Shut down all remaining, suspended tasklets. This should be done before calling sys.exit(), otherwise things could get ugly. ''' while self._suspended: self._suspended.pop().send_exception(TaskletExit) | 9cbfe581718d0c6f7da76396dc9d54a675eb371d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10902/9cbfe581718d0c6f7da76396dc9d54a675eb371d/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
727,
784,
12,
2890,
4672,
436,
26418,
1555,
322,
2588,
777,
4463,
16,
21850,
1562,
17307,
18,
225,
1220,
1410,
506,
2731,
1865,
4440,
2589,
18,
8593,
9334,
3541,
9198,
3377,
336,
26920,
18,
9163,
1323,
365,
6315,
87,
22942,
30,
365,
6315,
87,
22942,
18,
5120,
7675,
4661,
67,
4064,
12,
2174,
1810,
6767,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
784,
12,
2890,
4672,
436,
26418,
1555,
322,
2588,
777,
4463,
16,
21850,
1562,
17307,
18,
225,
1220,
1410,
506,
2731,
1865,
4440,
2589,
18,
8593,
9334,
3541,
9198,
3377,
336,
26920,
18,
9163,
1323,
365,
6315,
87,
22942,
30,
365,
6315,
87,
22942,
18,
5120,
7675,
4661,
67,
4064,
12,
2174,
1810,
6767,
13,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return [ sum([self[j] for j in range(1,i+1)]) for i in range(1,self.n)] | return [ sum([self._term(j) for j in range(i+1)]) for i in range(self.n-1)] | def fundamental_weights(self): """ EXAMPLES: sage: e = CartanType(['A',3]).root_system().ambient_lattice() sage: e.fundamental_weights() [(1, 0, 0, 0), (1, 1, 0, 0), (1, 1, 1, 0)] | 8d6d96a1c47938dcb8919cbf43ab1dab94c086b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8d6d96a1c47938dcb8919cbf43ab1dab94c086b5/root_system.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1074,
14773,
287,
67,
9727,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
425,
273,
17695,
304,
559,
12,
3292,
37,
2187,
23,
65,
2934,
3085,
67,
4299,
7675,
2536,
1979,
67,
80,
24966,
1435,
272,
410,
30,
425,
18,
74,
1074,
14773,
287,
67,
9727,
1435,
306,
12,
21,
16,
374,
16,
374,
16,
374,
3631,
261,
21,
16,
404,
16,
374,
16,
374,
3631,
261,
21,
16,
404,
16,
404,
16,
374,
25887,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
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,
284,
1074,
14773,
287,
67,
9727,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
425,
273,
17695,
304,
559,
12,
3292,
37,
2187,
23,
65,
2934,
3085,
67,
4299,
7675,
2536,
1979,
67,
80,
24966,
1435,
272,
410,
30,
425,
18,
74,
1074,
14773,
287,
67,
9727,
1435,
306,
12,
21,
16,
374,
16,
374,
16,
374,
3631,
261,
21,
16,
404,
16,
374,
16,
374,
3631,
261,
21,
16,
404,
16,
404,
16,
374,
25887,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
% form_get(request, 'not_terms')), | % form_get(request, 'not_terms', escaped=True)), | def advanced_ui(macro): """ Returns the code for the advanced search user interface @param macro: current macro instance """ _ = macro._ f = macro.formatter request = macro.request disabledIfMoinSearch = not request.cfg.xapian_search and \ ' disabled="disabled"' or '' search_boxes = ''.join([ f.table_row(1), f.table_cell(1, attrs={'rowspan': '5', 'class': 'searchfor'}), f.text(_('Search for items')), f.table_cell(0), ''.join([''.join([ f.table_row(1), f.table_cell(1), f.text(txt), f.table_cell(0), f.table_cell(1), f.rawHTML(input_field), f.table_cell(0), f.table_row(0), ]) for txt, input_field in ( (_('containing all the following terms'), '<input type="text" name="and_terms" size="30" value="%s">' % (form_get(request, 'and_terms') or form_get(request, 'value'))), (_('containing one or more of the following terms'), '<input type="text" name="or_terms" size="30" value="%s">' % form_get(request, 'or_terms')), (_('not containing the following terms'), '<input type="text" name="not_terms" size="30" value="%s">' % form_get(request, 'not_terms')), #('containing only one of the following terms', # '<input type="text" name="xor_terms" size="30" value="%s">' # % form_get(request, 'xor_terms')), # TODO: dropdown-box? (_('last modified since (e.g. last 2 weeks)'), '<input type="text" name="mtime" size="30" value="%s">' % form_get(request, 'mtime')), )]) ]) # category selection categories = form_get(request, 'categories') c_select = makeSelection('categories', [('', _('any category'))] + [(cat, '%s' % cat) for cat in getCategories(request)], categories, 3, True) # language selection searchedlang = form_get(request, 'language') langs = dict([(lang, lmeta['x-language-in-english']) for lang, lmeta in languages.items()]) userlang = macro.request.lang lang_select = makeSelection('language', [('', _('any language')), (userlang, langs[userlang])] + sorted(langs.items(), key=lambda i: i[1]), searchedlang, 3, True) # mimetype selection mimetype = form_get(request, 'mimetype') mt_select = makeSelection('mimetype', [('', _('any mimetype'))] + [(type, 'all %s files' % type) for type in getMimetypes()] + [(m[1], '*%s - %s' % m) for m in sorted(mimetypes.types_map.items())], mimetype, 3, True) # misc search options (checkboxes) search_options = ''.join([ ''.join([ f.table_row(1), f.table_cell(1, attrs={'class': 'searchfor'}), txt[0], f.table_cell(0), f.table_cell(1, colspan=2), unicode(txt[1]), txt[2], f.table_cell(0), f.table_row(0), ]) for txt in ( (_('Categories'), unicode(c_select), ''), (_('Language'), unicode(lang_select), ''), (_('File Type'), unicode(mt_select), ''), ('', html.INPUT(type='checkbox', name='titlesearch', value='1', checked=form_get(request, 'titlesearch'), id='titlesearch'), '<label for="titlesearch">%s</label>' % _('Search only in titles')), ('', html.INPUT(type='checkbox', name='case', value='1', checked=form_get(request, 'case'), id='case'), '<label for="case">%s</label>' % _('Case-sensitive search')), ('', html.INPUT(type='checkbox', name='excludeunderlay', value='1', checked=form_get(request, 'excludeunderlay'), id='excludeunderlay'), '<label for="excludeunderlay">%s</label>' % _('Exclude underlay')), ('', html.INPUT(type='checkbox', name='nosystemitems', value='1', checked=form_get(request, 'nosystemitems'), id='nosystempages'), '<label for="nosystempages">%s</label>' % _('No system items')), ('', html.INPUT(type='checkbox', name='historysearch', value='1', checked=form_get(request, 'historysearch'), disabled=(not request.cfg.xapian_search or not request.cfg.xapian_index_history), id='historysearch'), '<label for="historysearch">%s</label>' % _('Search in all page revisions')) ) ]) # the dialogue return f.rawHTML('\n'.join([ u'<form method="get" action="%s/%s">' % (macro.request.getScriptname(), wikiutil.quoteWikinameURL(macro.request.formatter.page.page_name)), u'<div>', u'<input type="hidden" name="action" value="fullsearch">', u'<input type="hidden" name="advancedsearch" value="1">', f.table(1, attrs={'tableclass': 'advancedsearch'}), search_boxes, search_options, f.table_row(1), f.table_cell(1, attrs={'class': 'submit', 'colspan': '3'}), u'<input type="submit" value="%s">' % _('Go get it!'), f.table_cell(0), f.table_row(0), f.table(0), u'</div>', u'</form>', ])) | 64bbbaa35e708345ab13c5f9e67c9054fad53cc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/64bbbaa35e708345ab13c5f9e67c9054fad53cc7/AdvancedSearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16111,
67,
4881,
12,
26448,
4672,
3536,
2860,
326,
981,
364,
326,
16111,
1623,
729,
1560,
225,
632,
891,
11522,
30,
783,
11522,
791,
3536,
389,
273,
11522,
6315,
284,
273,
11522,
18,
12354,
590,
273,
11522,
18,
2293,
225,
5673,
2047,
49,
885,
2979,
273,
486,
590,
18,
7066,
18,
92,
2425,
304,
67,
3072,
471,
521,
296,
5673,
1546,
9278,
5187,
578,
875,
225,
1623,
67,
15918,
273,
875,
18,
5701,
3816,
284,
18,
2121,
67,
492,
12,
21,
3631,
284,
18,
2121,
67,
3855,
12,
21,
16,
3422,
5899,
11,
492,
3969,
4278,
296,
25,
2187,
296,
1106,
4278,
296,
3072,
1884,
11,
97,
3631,
284,
18,
955,
24899,
2668,
2979,
364,
1516,
6134,
3631,
284,
18,
2121,
67,
3855,
12,
20,
3631,
875,
18,
5701,
12,
3292,
10332,
5701,
3816,
284,
18,
2121,
67,
492,
12,
21,
3631,
284,
18,
2121,
67,
3855,
12,
21,
3631,
284,
18,
955,
12,
5830,
3631,
284,
18,
2121,
67,
3855,
12,
20,
3631,
284,
18,
2121,
67,
3855,
12,
21,
3631,
284,
18,
1899,
4870,
12,
2630,
67,
1518,
3631,
284,
18,
2121,
67,
3855,
12,
20,
3631,
284,
18,
2121,
67,
492,
12,
20,
3631,
308,
13,
364,
6463,
16,
810,
67,
1518,
316,
261,
261,
67,
2668,
1213,
3280,
777,
326,
3751,
6548,
19899,
2368,
2630,
618,
1546,
955,
6,
508,
1546,
464,
67,
10112,
6,
963,
1546,
5082,
6,
460,
11613,
87,
7918,
738,
261,
687,
67,
588,
12,
2293,
16,
296,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16111,
67,
4881,
12,
26448,
4672,
3536,
2860,
326,
981,
364,
326,
16111,
1623,
729,
1560,
225,
632,
891,
11522,
30,
783,
11522,
791,
3536,
389,
273,
11522,
6315,
284,
273,
11522,
18,
12354,
590,
273,
11522,
18,
2293,
225,
5673,
2047,
49,
885,
2979,
273,
486,
590,
18,
7066,
18,
92,
2425,
304,
67,
3072,
471,
521,
296,
5673,
1546,
9278,
5187,
578,
875,
225,
1623,
67,
15918,
273,
875,
18,
5701,
3816,
284,
18,
2121,
67,
492,
12,
21,
3631,
284,
18,
2121,
67,
3855,
12,
21,
16,
3422,
5899,
11,
492,
3969,
4278,
296,
25,
2187,
296,
1106,
4278,
296,
3072,
1884,
11,
97,
3631,
284,
18,
955,
24899,
2668,
2979,
364,
1516,
6134,
3631,
2
] |
v = session.get(model.Person, vid) s = session.get(model.Submission, sid) st = session.get(model.SubmissionType, stid) | v = session.get(model.core.Person, vid) s = session.get(model.submission.Submission, sid) st = session.get(model.submission.SubmissionType, stid) | def test_create(self): """Test creation of a Submission object""" self.model = 'submission.Submission' | 41d9ae5f909a58b749142d2b3ba3cfd27cb58570 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/41d9ae5f909a58b749142d2b3ba3cfd27cb58570/test_submission.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
12,
2890,
4672,
3536,
4709,
6710,
434,
279,
2592,
3951,
733,
8395,
225,
365,
18,
2284,
273,
296,
12684,
18,
17865,
11,
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,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2640,
12,
2890,
4672,
3536,
4709,
6710,
434,
279,
2592,
3951,
733,
8395,
225,
365,
18,
2284,
273,
296,
12684,
18,
17865,
11,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
expect = "rename=_test2.txt_&" | expect = "rename=_test2.txt_" | def test_getAttachUrl(self): """ Tests if AttachFile.getAttachUrl taints a filename """ filename = "<test2.txt>" expect = "rename=_test2.txt_&" result = AttachFile.getAttachUrl(self.pagename, filename, self.request, upload=True) | 7a99eb915980311f60239d90c4cd4bde3119c5d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/7a99eb915980311f60239d90c4cd4bde3119c5d3/test_attachfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
4761,
1489,
12,
2890,
4672,
3536,
7766,
87,
309,
8659,
812,
18,
588,
4761,
1489,
22664,
87,
279,
1544,
3536,
1544,
273,
3532,
3813,
22,
18,
5830,
2984,
4489,
273,
315,
18539,
33,
67,
3813,
22,
18,
5830,
9548,
563,
273,
8659,
812,
18,
588,
4761,
1489,
12,
2890,
18,
9095,
1069,
16,
1544,
16,
365,
18,
2293,
16,
3617,
33,
5510,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
588,
4761,
1489,
12,
2890,
4672,
3536,
7766,
87,
309,
8659,
812,
18,
588,
4761,
1489,
22664,
87,
279,
1544,
3536,
1544,
273,
3532,
3813,
22,
18,
5830,
2984,
4489,
273,
315,
18539,
33,
67,
3813,
22,
18,
5830,
9548,
563,
273,
8659,
812,
18,
588,
4761,
1489,
12,
2890,
18,
9095,
1069,
16,
1544,
16,
365,
18,
2293,
16,
3617,
33,
5510,
13,
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,
-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
] |
if s[end] == ' ': | if s[end] in string.whitespace: | def split_quoted (s): """Split a string up according to Unix shell-like rules for quotes and backslashes. In short: words are delimited by spaces, as long as those spaces are not escaped by a backslash, or inside a quoted string. Single and double quotes are equivalent, and the quote characters can be backslash-escaped. The backslash is stripped from any two-character escape sequence, leaving only the escaped character. The quote characters are stripped from any quoted string. Returns a list of words. """ # This is a nice algorithm for splitting up a single string, since it # doesn't require character-by-character examination. It was a little # bit of a brain-bender to get it working right, though... s = string.strip(s) words = [] pos = 0 while s: m = _wordchars_re.match(s, pos) end = m.end() if end == len(s): words.append(s[:end]) break if s[end] == ' ': # unescaped, unquoted space: now words.append(s[:end]) # we definitely have a word delimiter s = string.lstrip(s[end:]) pos = 0 elif s[end] == '\\': # preserve whatever is being escaped; # will become part of the current word s = s[:end] + s[end+1:] pos = end+1 else: if s[end] == "'": # slurp singly-quoted string m = _squote_re.match(s, end) elif s[end] == '"': # slurp doubly-quoted string m = _dquote_re.match(s, end) else: raise RuntimeError, \ "this can't happen (bad char '%c')" % s[end] if m is None: raise ValueError, \ "bad string (mismatched %s quotes?)" % s[end] (beg, end) = m.span() s = s[:beg] + s[beg+1:end-1] + s[end:] pos = m.end() - 2 if pos >= len(s): words.append(s) break return words | 2b042ded19bc7efa43551da297c29dc142b7d73c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2b042ded19bc7efa43551da297c29dc142b7d73c/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
15179,
261,
87,
4672,
3536,
5521,
279,
533,
731,
4888,
358,
9480,
5972,
17,
5625,
2931,
364,
10681,
471,
1473,
13675,
18,
225,
657,
3025,
30,
4511,
854,
18609,
635,
7292,
16,
487,
1525,
487,
5348,
7292,
854,
486,
8345,
635,
279,
23253,
16,
578,
4832,
279,
9298,
533,
18,
10326,
471,
1645,
10681,
854,
7680,
16,
471,
326,
3862,
3949,
848,
506,
23253,
17,
16502,
18,
225,
1021,
23253,
353,
13300,
628,
1281,
2795,
17,
11560,
4114,
3102,
16,
15086,
1338,
326,
8345,
3351,
18,
225,
1021,
3862,
3949,
854,
13300,
628,
1281,
9298,
533,
18,
225,
2860,
279,
666,
434,
4511,
18,
3536,
225,
468,
1220,
353,
279,
13752,
4886,
364,
20347,
731,
279,
2202,
533,
16,
3241,
518,
468,
3302,
1404,
2583,
3351,
17,
1637,
17,
11560,
19707,
1735,
18,
225,
2597,
1703,
279,
12720,
468,
2831,
434,
279,
20970,
17,
70,
2345,
358,
336,
518,
5960,
2145,
16,
11376,
2777,
225,
272,
273,
533,
18,
6406,
12,
87,
13,
4511,
273,
5378,
949,
273,
374,
225,
1323,
272,
30,
312,
273,
389,
1095,
7549,
67,
266,
18,
1916,
12,
87,
16,
949,
13,
679,
273,
312,
18,
409,
1435,
309,
679,
422,
562,
12,
87,
4672,
4511,
18,
6923,
12,
87,
10531,
409,
5717,
898,
225,
309,
272,
63,
409,
65,
316,
533,
18,
18777,
30,
9079,
468,
27869,
16,
640,
15179,
3476,
30,
2037,
4511,
18,
6923,
12,
87,
10531,
409,
5717,
4202,
468,
732,
2217,
25818,
1240,
279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
15179,
261,
87,
4672,
3536,
5521,
279,
533,
731,
4888,
358,
9480,
5972,
17,
5625,
2931,
364,
10681,
471,
1473,
13675,
18,
225,
657,
3025,
30,
4511,
854,
18609,
635,
7292,
16,
487,
1525,
487,
5348,
7292,
854,
486,
8345,
635,
279,
23253,
16,
578,
4832,
279,
9298,
533,
18,
10326,
471,
1645,
10681,
854,
7680,
16,
471,
326,
3862,
3949,
848,
506,
23253,
17,
16502,
18,
225,
1021,
23253,
353,
13300,
628,
1281,
2795,
17,
11560,
4114,
3102,
16,
15086,
1338,
326,
8345,
3351,
18,
225,
1021,
3862,
3949,
854,
13300,
628,
1281,
9298,
533,
18,
225,
2860,
279,
666,
434,
4511,
18,
3536,
225,
468,
1220,
353,
279,
13752,
4886,
364,
20347,
731,
279,
2
] |
'pricelist_id':fields.many2one('product.pricelist', 'Pricelist', required=True, readonly=True, states={'draft':[('readonly',False)]}), 'project_id':fields.many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft':[('readonly', False)]}), 'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft':[('readonly',False)]}), | 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, readonly=True, states={'draft': [('readonly', False)]}), 'project_id': fields.many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft': [('readonly', False)]}), 'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)]}), | def _get_order(self, cr, uid, ids, context={}): result = {} for line in self.pool.get('sale.order.line').browse(cr, uid, ids, context=context): result[line.order_id.id] = True return result.keys() | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
563,
273,
2618,
364,
980,
316,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1019,
18,
1369,
16063,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
563,
63,
1369,
18,
1019,
67,
350,
18,
350,
65,
273,
1053,
327,
563,
18,
2452,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
588,
67,
1019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
563,
273,
2618,
364,
980,
316,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1019,
18,
1369,
16063,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
563,
63,
1369,
18,
1019,
67,
350,
18,
350,
65,
273,
1053,
327,
563,
18,
2452,
1435,
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,
-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
] |
self._ui.clear_image() | self._ui.clear_image(self._ui.default_width,self._ui.default_height) | def on_fileNewMenuItem_activate(self, *args): """Handler for File|New menu item""" if self._ui.save_changes(): self._ui.clear_image() | 957e250090c79f4ca933e19b75d4fe9659153717 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1947/957e250090c79f4ca933e19b75d4fe9659153717/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
768,
1908,
12958,
67,
10014,
12,
2890,
16,
380,
1968,
4672,
3536,
1503,
364,
1387,
96,
1908,
3824,
761,
8395,
309,
365,
6315,
4881,
18,
5688,
67,
6329,
13332,
365,
6315,
4881,
18,
8507,
67,
2730,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2890,
16,
380,
1968,
4672,
3536,
1503,
364,
1387,
96,
1908,
3824,
761,
8395,
309,
365,
6315,
4881,
18,
5688,
67,
6329,
13332,
365,
6315,
4881,
18,
8507,
67,
2730,
1435,
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,
-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,
-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
] |
"""Handle command-line options and trigger corresponding action. """ | "Handle command-line options and trigger corresponding action." | def main(): """Handle command-line options and trigger corresponding action. """ opts, args = getopt.getopt(sys.argv[1:], 'hf:m:p:') # On -h print usage and exit immediately. for o, a in opts: if o == '-h': print printUsage.__doc__ #printUsage() sys.exit(0) # On -f set the DocBuilder to use or a default one. builder = DocBuilder0() for o, a in opts: if o == '-f': builder = eval("%sDocBuilder0()" % a) break # Now call the real documentation functions. for o, a in opts: if o == '-m': builder.begin() documentModule0(a, builder) builder.end() sys.exit(0) elif o == '-p': builder.begin() documentPackage0(a, builder) builder.end() sys.exit(0) | 27641d6d7ca07abb463d93e34c541a906e62ba34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/27641d6d7ca07abb463d93e34c541a906e62ba34/graphicsdoc0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
315,
3259,
1296,
17,
1369,
702,
471,
3080,
4656,
1301,
1199,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
74,
30,
81,
30,
84,
2497,
13,
225,
468,
2755,
300,
76,
1172,
4084,
471,
2427,
7636,
18,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
76,
4278,
1172,
1172,
5357,
16186,
2434,
972,
468,
1188,
5357,
1435,
2589,
18,
8593,
12,
20,
13,
225,
468,
2755,
300,
74,
444,
326,
3521,
1263,
358,
999,
578,
279,
805,
1245,
18,
2089,
273,
3521,
1263,
20,
1435,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
74,
4278,
2089,
273,
5302,
27188,
87,
1759,
1263,
20,
10031,
738,
279,
13,
898,
225,
468,
4494,
745,
326,
2863,
7323,
4186,
18,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
81,
4278,
2089,
18,
10086,
1435,
1668,
3120,
20,
12,
69,
16,
2089,
13,
2089,
18,
409,
1435,
2589,
18,
8593,
12,
20,
13,
1327,
320,
422,
2400,
84,
4278,
2089,
18,
10086,
1435,
1668,
2261,
20,
12,
69,
16,
2089,
13,
2089,
18,
409,
1435,
2589,
18,
8593,
12,
20,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
315,
3259,
1296,
17,
1369,
702,
471,
3080,
4656,
1301,
1199,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
74,
30,
81,
30,
84,
2497,
13,
225,
468,
2755,
300,
76,
1172,
4084,
471,
2427,
7636,
18,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
76,
4278,
1172,
1172,
5357,
16186,
2434,
972,
468,
1188,
5357,
1435,
2589,
18,
8593,
12,
20,
13,
225,
468,
2755,
300,
74,
444,
326,
3521,
1263,
358,
999,
578,
279,
805,
1245,
18,
2089,
273,
3521,
1263,
20,
1435,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
74,
4278,
2089,
273,
5302,
2
] |
f = _fileio._FileIO("/dev/tty", "a") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) self.assertEquals(f.isatty(), True) f.close() | if not sys.platform.startswith("win"): f = _fileio._FileIO("/dev/tty", "a") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) if sys.platform != "darwin": self.assertEquals(f.seekable(), False) self.assertEquals(f.isatty(), True) f.close() | def testAbles(self): try: f = _fileio._FileIO(TESTFN, "w") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) self.assertEquals(f.seekable(), True) f.close() f = _fileio._FileIO(TESTFN, "r") self.assertEquals(f.readable(), True) self.assertEquals(f.writable(), False) self.assertEquals(f.seekable(), True) f.close() f = _fileio._FileIO(TESTFN, "a+") self.assertEquals(f.readable(), True) self.assertEquals(f.writable(), True) self.assertEquals(f.seekable(), True) self.assertEquals(f.isatty(), False) f.close() f = _fileio._FileIO("/dev/tty", "a") # XXX, won't work on e.g., Windows self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) ##self.assertEquals(f.seekable(), False) # XXX True on OSX!? self.assertEquals(f.isatty(), True) f.close() finally: os.unlink(TESTFN) | 5f09a00bf3f4c3a5aff32b959fecc9ca3ada82e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/5f09a00bf3f4c3a5aff32b959fecc9ca3ada82e1/test_fileio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5895,
1040,
12,
2890,
4672,
775,
30,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
91,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1083,
13,
365,
18,
11231,
8867,
12,
74,
18,
15699,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
16508,
429,
9334,
1053,
13,
284,
18,
4412,
1435,
225,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
86,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
15699,
9334,
1083,
13,
365,
18,
11231,
8867,
12,
74,
18,
16508,
429,
9334,
1053,
13,
284,
18,
4412,
1435,
225,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
69,
15,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
15699,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
16508,
429,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
291,
270,
4098,
9334,
1083,
13,
284,
18,
4412,
1435,
225,
284,
273,
389,
768,
1594,
6315,
812,
4294,
2932,
19,
5206,
19,
5512,
3113,
315,
69,
7923,
468,
11329,
16,
8462,
1404,
1440,
603,
425,
18,
75,
12990,
8202,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1083,
13,
365,
18,
11231,
8867,
12,
74,
18,
15699,
9334,
1053,
13,
7541,
2890,
18,
11231,
8867,
12,
74,
18,
16508,
429,
9334,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5895,
1040,
12,
2890,
4672,
775,
30,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
91,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1083,
13,
365,
18,
11231,
8867,
12,
74,
18,
15699,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
16508,
429,
9334,
1053,
13,
284,
18,
4412,
1435,
225,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
86,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1053,
13,
365,
18,
11231,
8867,
12,
74,
18,
15699,
9334,
1083,
13,
365,
18,
11231,
8867,
12,
74,
18,
16508,
429,
9334,
1053,
13,
284,
18,
4412,
1435,
225,
284,
273,
2
] |
self.log(3, "queries sent, awaiting reply") | self.log(3, "%s queries sent, awaiting reply" % numQueriesSent) | def sendSomeQueries(self, **kw): """ First step of findNode Select alpha nodes that we haven't yet queried, and send them queries """ # bail if too busy if self.numQueriesPending >= maxConcurrentQueries: return # shorthand localNode = self.localNode hashWanted = self.hashWanted # randomly choose some peers #somePeerRecs = self.peerTab.chooseN(numSearchPeers) somePeerRecs = self.peerTab.select('start') # start our ticker self.nextTickTime = time.time() + timeout['findNode'] # and send them findNode queries if len(somePeerRecs) > 0: for peerRec in somePeerRecs: self.log(3, "querying %s" % peerRec) if self.numQueriesPending < maxConcurrentQueries: self.sendOneQuery(peerRec) else: break self.log(3, "queries sent, awaiting reply") else: self.log(3, "no peer recs???") for peerRec in self.peerTab: self.log(4, "%s state=%s" % (peerRec, peerRec.state)) | e60b30ed443abca39b1d5552a464df392e201c33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11109/e60b30ed443abca39b1d5552a464df392e201c33/stasher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
17358,
9592,
12,
2890,
16,
2826,
9987,
4672,
3536,
5783,
2235,
434,
1104,
907,
225,
6766,
4190,
2199,
716,
732,
15032,
1404,
4671,
23264,
16,
471,
1366,
2182,
6218,
3536,
468,
18422,
309,
4885,
21697,
309,
365,
18,
2107,
9592,
8579,
1545,
943,
18521,
9592,
30,
327,
225,
468,
21310,
1191,
907,
273,
365,
18,
3729,
907,
1651,
59,
970,
329,
273,
365,
18,
2816,
59,
970,
329,
225,
468,
20153,
9876,
2690,
10082,
468,
19068,
6813,
19589,
273,
365,
18,
12210,
5661,
18,
25777,
50,
12,
2107,
2979,
14858,
13,
2690,
6813,
19589,
273,
365,
18,
12210,
5661,
18,
4025,
2668,
1937,
6134,
225,
468,
787,
3134,
14063,
365,
18,
4285,
6264,
950,
273,
813,
18,
957,
1435,
397,
2021,
3292,
4720,
907,
3546,
225,
468,
471,
1366,
2182,
1104,
907,
6218,
309,
562,
12,
19068,
6813,
19589,
13,
405,
374,
30,
364,
4261,
5650,
316,
2690,
6813,
19589,
30,
365,
18,
1330,
12,
23,
16,
315,
2271,
310,
738,
87,
6,
738,
4261,
5650,
13,
309,
365,
18,
2107,
9592,
8579,
411,
943,
18521,
9592,
30,
365,
18,
4661,
3335,
1138,
12,
12210,
5650,
13,
469,
30,
898,
365,
18,
1330,
12,
23,
16,
2213,
87,
6218,
3271,
16,
4273,
310,
4332,
6,
738,
818,
9592,
7828,
13,
469,
30,
365,
18,
1330,
12,
23,
16,
315,
2135,
4261,
27255,
14646,
7225,
13,
364,
4261,
5650,
316,
365,
18,
12210,
5661,
30,
365,
18,
1330,
12,
24,
16,
2213,
87,
919,
5095,
87,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
17358,
9592,
12,
2890,
16,
2826,
9987,
4672,
3536,
5783,
2235,
434,
1104,
907,
225,
6766,
4190,
2199,
716,
732,
15032,
1404,
4671,
23264,
16,
471,
1366,
2182,
6218,
3536,
468,
18422,
309,
4885,
21697,
309,
365,
18,
2107,
9592,
8579,
1545,
943,
18521,
9592,
30,
327,
225,
468,
21310,
1191,
907,
273,
365,
18,
3729,
907,
1651,
59,
970,
329,
273,
365,
18,
2816,
59,
970,
329,
225,
468,
20153,
9876,
2690,
10082,
468,
19068,
6813,
19589,
273,
365,
18,
12210,
5661,
18,
25777,
50,
12,
2107,
2979,
14858,
13,
2690,
6813,
19589,
273,
365,
18,
12210,
5661,
18,
4025,
2668,
1937,
6134,
225,
468,
787,
3134,
14063,
365,
18,
4285,
6264,
950,
273,
813,
18,
2
] |
v[i] = v[0] v[0] = tmp_bit | v[0], v[i] = v[i], v[0] | def NKStarGraph(self,n,k): r''' Returns the (n,k)-star graph. The vertices of the (n,k)-star graph are the set of all arangements of n symbols into labels of length k. There are two adjacency rules for the (n,k)-star graph. Frist, two vertices are adjacent if one can be obtained from the other by swapping the first symbol with another symbol. Second, two vertices are adjacent if one can be obtained from the other by swapping the first symbol with an external symbol (a symbol not used in the original label). INPUT:: - ``n`` - ``k`` EXAMPLES:: sage: g = graphs.NKStarGraph(4,2) sage: g.plot() # long time REFERENCES: - Wei-Kuo, Chiang, and Chen Rong-Jaye. "The (n, k)-star graph: A generalized star graph." Information Processing Letters 56, no. 5 (December 8, 1995): 259-264. AUTHORS: - Michael Yurko (2009-09-01) | 7519f34dad04abdea4d0e650013315e3a19aa9b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7519f34dad04abdea4d0e650013315e3a19aa9b2/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
47,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
261,
82,
16,
79,
24950,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
261,
82,
16,
79,
24950,
10983,
2667,
854,
326,
444,
434,
777,
419,
539,
17110,
434,
290,
7963,
1368,
3249,
434,
769,
417,
18,
6149,
854,
2795,
25220,
2931,
364,
326,
261,
82,
16,
79,
24950,
10983,
2667,
18,
13363,
376,
16,
2795,
6928,
854,
16335,
309,
1245,
848,
506,
12700,
628,
326,
1308,
635,
7720,
1382,
326,
1122,
3273,
598,
4042,
3273,
18,
7631,
16,
2795,
6928,
854,
16335,
309,
1245,
848,
506,
12700,
628,
326,
1308,
635,
7720,
1382,
326,
1122,
3273,
598,
392,
3903,
3273,
261,
69,
3273,
486,
1399,
316,
326,
2282,
1433,
2934,
225,
12943,
2866,
225,
300,
225,
12176,
82,
10335,
225,
300,
225,
12176,
79,
10335,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
314,
273,
19422,
18,
50,
47,
18379,
4137,
12,
24,
16,
22,
13,
272,
410,
30,
314,
18,
4032,
1435,
468,
1525,
813,
225,
22898,
55,
30,
225,
300,
1660,
77,
17,
47,
89,
83,
16,
1680,
77,
539,
16,
471,
1680,
275,
534,
932,
17,
46,
528,
73,
18,
315,
1986,
261,
82,
16,
417,
24950,
10983,
2667,
30,
432,
7470,
1235,
10443,
2667,
1199,
15353,
19652,
10559,
5432,
13850,
16,
1158,
18,
1381,
261,
758,
311,
81,
744,
1725,
16,
23673,
25,
4672,
576,
6162,
17,
23728,
18,
225,
12790,
14006,
30,
225,
300,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
47,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
261,
82,
16,
79,
24950,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
261,
82,
16,
79,
24950,
10983,
2667,
854,
326,
444,
434,
777,
419,
539,
17110,
434,
290,
7963,
1368,
3249,
434,
769,
417,
18,
6149,
854,
2795,
25220,
2931,
364,
326,
261,
82,
16,
79,
24950,
10983,
2667,
18,
13363,
376,
16,
2795,
6928,
854,
16335,
309,
1245,
848,
506,
12700,
628,
326,
1308,
635,
7720,
1382,
326,
1122,
3273,
598,
4042,
3273,
18,
7631,
16,
2795,
6928,
854,
16335,
309,
1245,
848,
506,
12700,
628,
326,
1308,
635,
7720,
1382,
326,
1122,
3273,
598,
392,
3903,
3273,
261,
69,
2
] |
if not self.newwiki: subject = 'Re: %s' % subject | def notify(self, action, page, version=None, time=None, comment=None, author=None, ipnr=None): self.page = page self.change_author = author self.time = time | 5ee5e47be0d2833751f7aec6f7fda29d45670aad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9414/5ee5e47be0d2833751f7aec6f7fda29d45670aad/notification.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
1301,
16,
1363,
16,
1177,
33,
7036,
16,
813,
33,
7036,
16,
2879,
33,
7036,
16,
2869,
33,
7036,
16,
2359,
11611,
33,
7036,
4672,
365,
18,
2433,
273,
1363,
365,
18,
3427,
67,
4161,
273,
2869,
365,
18,
957,
273,
813,
2,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5066,
12,
2890,
16,
1301,
16,
1363,
16,
1177,
33,
7036,
16,
813,
33,
7036,
16,
2879,
33,
7036,
16,
2869,
33,
7036,
16,
2359,
11611,
33,
7036,
4672,
365,
18,
2433,
273,
1363,
365,
18,
3427,
67,
4161,
273,
2869,
365,
18,
957,
273,
813,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
result = urllib2.urlopen(request) | result = self._openurl(request) | def exportConfig(self, configPassword): self._login() request = urllib2.Request(self.baseURL, urllib.urlencode({'actionType': 'importExport', 'export': ' Export Configuration ', 'password1': configPassword, 'password2': configPassword})) | 8e16cfd107c373f30f9fc5b591ff15092d8f634e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6393/8e16cfd107c373f30f9fc5b591ff15092d8f634e/gsa_admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
809,
12,
2890,
16,
642,
3913,
4672,
365,
6315,
5819,
1435,
590,
273,
11527,
22,
18,
691,
12,
2890,
18,
1969,
1785,
16,
11527,
18,
718,
3015,
12590,
11,
1128,
559,
4278,
296,
5666,
6144,
2187,
296,
6530,
4278,
296,
11054,
4659,
2265,
296,
3664,
21,
4278,
642,
3913,
16,
296,
3664,
22,
4278,
642,
3913,
31700,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3359,
809,
12,
2890,
16,
642,
3913,
4672,
365,
6315,
5819,
1435,
590,
273,
11527,
22,
18,
691,
12,
2890,
18,
1969,
1785,
16,
11527,
18,
718,
3015,
12590,
11,
1128,
559,
4278,
296,
5666,
6144,
2187,
296,
6530,
4278,
296,
11054,
4659,
2265,
296,
3664,
21,
4278,
642,
3913,
16,
296,
3664,
22,
4278,
642,
3913,
31700,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100
] |
def runSource1(self): injectLoader(parts) parts, packages = self._partBuilder.getPackages(partIncludes, smartExclude, classList, collapseCfg, variants, sizeCfg) compiled = self._generateSourcePackageCode(part, packages) for part in parts: for pkg in part: compiled += self.compileClasses(pkgClasses, variants) break break writeFile(fileName, boot + compiled) | def runSource(self, parts, packages, boot, variants, classList, libs, classes): if not self._job.get("compile-source/file"): return | 6c1607de6e1c540f791e595f73bd040a2fd94679 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/6c1607de6e1c540f791e595f73bd040a2fd94679/CodeGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1830,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
12935,
16,
16035,
16,
15042,
16,
3318,
4672,
309,
486,
365,
6315,
4688,
18,
588,
2932,
11100,
17,
3168,
19,
768,
6,
4672,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
-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,
-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,
-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
] |
|
_debug_('handling event %s' % str(event), 1) | _debug_('handling event %s' % str(event), 2) | def handle(self, event=None): """ event handling function """ # search for events in the queue if not event and not len(self.queue): return | 3bdf30b8cf5813eb0665cd21ff929a8f6963cc50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3bdf30b8cf5813eb0665cd21ff929a8f6963cc50/eventhandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
871,
33,
7036,
4672,
3536,
871,
5057,
445,
3536,
468,
1623,
364,
2641,
316,
326,
2389,
309,
486,
871,
471,
486,
562,
12,
2890,
18,
4000,
4672,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
871,
33,
7036,
4672,
3536,
871,
5057,
445,
3536,
468,
1623,
364,
2641,
316,
326,
2389,
309,
486,
871,
471,
486,
562,
12,
2890,
18,
4000,
4672,
327,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100
] |
if pkg in sources[suite]: for p in sources[suite][pkg]['binaries']: | if pkg[0] != '-' and pkg_name in sources[suite]: for p in sources[suite][pkg_name]['binaries']: | def iter_packages(self, packages, selected, hint=False, nuninst=None): """Iter on the list of actions and apply them one-by-one | d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
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,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
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,
-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,
-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,
-100,
-100
] |
return Hammie(storage.open_storage((filename, mode), useDB) | return Hammie(storage.open_storage((filename, mode), useDB)) | def open(filename, useDB=True, mode='r'): """Open a file, returning a Hammie instance. If usedb is False, open as a pickle instead of a DBDict. mode is used as the flag to open DBDict objects. 'c' for read-write (create if needed), 'r' for read-only, 'w' for read-write. """ return Hammie(storage.open_storage((filename, mode), useDB) | 5c4086a1a483368407a4f5ef5456dcbb7e4df3c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/5c4086a1a483368407a4f5ef5456dcbb7e4df3c8/hammie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
3459,
16,
999,
2290,
33,
5510,
16,
1965,
2218,
86,
11,
4672,
3536,
3678,
279,
585,
16,
5785,
279,
670,
301,
81,
1385,
791,
18,
225,
971,
1399,
70,
353,
1083,
16,
1696,
487,
279,
13379,
3560,
434,
279,
2383,
5014,
18,
225,
1965,
353,
225,
1399,
487,
326,
2982,
358,
1696,
2383,
5014,
2184,
18,
225,
296,
71,
11,
364,
855,
17,
2626,
261,
2640,
309,
3577,
3631,
296,
86,
11,
364,
855,
17,
3700,
16,
296,
91,
11,
364,
855,
17,
2626,
18,
3536,
327,
670,
301,
81,
1385,
12,
5697,
18,
3190,
67,
5697,
12443,
3459,
16,
1965,
3631,
999,
2290,
3719,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1696,
12,
3459,
16,
999,
2290,
33,
5510,
16,
1965,
2218,
86,
11,
4672,
3536,
3678,
279,
585,
16,
5785,
279,
670,
301,
81,
1385,
791,
18,
225,
971,
1399,
70,
353,
1083,
16,
1696,
487,
279,
13379,
3560,
434,
279,
2383,
5014,
18,
225,
1965,
353,
225,
1399,
487,
326,
2982,
358,
1696,
2383,
5014,
2184,
18,
225,
296,
71,
11,
364,
855,
17,
2626,
261,
2640,
309,
3577,
3631,
296,
86,
11,
364,
855,
17,
3700,
16,
296,
91,
11,
364,
855,
17,
2626,
18,
3536,
327,
670,
301,
81,
1385,
12,
5697,
18,
3190,
67,
5697,
12443,
3459,
16,
1965,
3631,
999,
2290,
3719,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.tree = gtk.glade.XML(find_path("arkadas.glade")) | self.tree = gtk.glade.XML(find_path("arkadas.glade"), "mainWindow", "arkadas") | def __init__(self): gtk.window_set_default_icon_name("address-book") self.tree = gtk.glade.XML(find_path("arkadas.glade")) | 8f5feb6f8174a659e8fecf1d7553bab503240a3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/8f5feb6f8174a659e8fecf1d7553bab503240a3e/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
529,
2932,
2867,
17,
3618,
7923,
365,
18,
3413,
273,
22718,
18,
7043,
2486,
18,
4201,
12,
4720,
67,
803,
2932,
1313,
361,
345,
18,
7043,
2486,
6,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4672,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
529,
2932,
2867,
17,
3618,
7923,
365,
18,
3413,
273,
22718,
18,
7043,
2486,
18,
4201,
12,
4720,
67,
803,
2932,
1313,
361,
345,
18,
7043,
2486,
6,
3719,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self): self.cfg = MinimalConfig() | def __init__(self, request): self.request = request | def __init__(self): self.cfg = MinimalConfig() self.clock = MoinMoin.request.Clock() self.content_lang = None self.current_lang = None self.form = {} self._page_headings = {} self.result = [] | ba2b39fcd04c590a84d41429669714ca936397e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/ba2b39fcd04c590a84d41429669714ca936397e8/test_converter_text_html_text_x_moin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
365,
18,
2293,
273,
590,
365,
18,
18517,
273,
490,
885,
49,
885,
18,
2293,
18,
14027,
1435,
365,
18,
1745,
67,
4936,
273,
599,
365,
18,
2972,
67,
4936,
273,
599,
365,
18,
687,
273,
2618,
365,
6315,
2433,
67,
1978,
899,
273,
2618,
365,
18,
2088,
273,
5378,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16,
590,
4672,
365,
18,
2293,
273,
590,
365,
18,
18517,
273,
490,
885,
49,
885,
18,
2293,
18,
14027,
1435,
365,
18,
1745,
67,
4936,
273,
599,
365,
18,
2972,
67,
4936,
273,
599,
365,
18,
687,
273,
2618,
365,
6315,
2433,
67,
1978,
899,
273,
2618,
365,
18,
2088,
273,
5378,
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,
-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,
-100,
-100,
-100,
-100,
-100
] |
self.unmount_device.emit() | self.umount_device.emit() | def eject_clicked(self, *args): self.unmount_device.emit() | 452083dc346ab04f28076751141bfdd1af091fd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/452083dc346ab04f28076751141bfdd1af091fd8/layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
937,
67,
7475,
329,
12,
2890,
16,
380,
1968,
4672,
365,
18,
318,
4778,
67,
5964,
18,
18356,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
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,
425,
937,
67,
7475,
329,
12,
2890,
16,
380,
1968,
4672,
365,
18,
318,
4778,
67,
5964,
18,
18356,
1435,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
console.stdoutln("calc_include_atom(%s): rejected non-mainchain atom" % (atm)) | msg = "rejected non-mainchain atom" console.stdoutln("calc_include_atom(%s): %s" % (atm, msg)) | def calc_include_atom(atm, reject_messages = False): """Filter out atoms from the model which will cause problems or can't contribute to the TLS analysis. """ if atm.position == None: return False if atm.occupancy < 0.1: if reject_messages == True: console.stdoutln("calc_include_atom(%s): rejected because of low occupancy" % (atm)) return False if atm.occupancy > 1.0: atm.occupancy = 1.0 console.stdoutln("calc_include_atom(%s): atom occupancy greator than 1.0; truncating" % (atm)) if numpy.trace(atm.get_U()) <= const.TSMALL: if reject_messages == True: console.stdoutln("calc_include_atom(%s): rejected because of small Uiso magnitude " % (atm)) return False elif conf.globalconf.include_atoms == "MAINCHAIN": if const.MAINCHAIN_ATOM_DICT.has_key(atm.name) is False: if reject_messages == True: console.stdoutln("calc_include_atom(%s): rejected non-mainchain atom" % (atm)) return False return True | 708319f15d1a5ad5105fc702a58cafe3d3c2e66d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/708319f15d1a5ad5105fc702a58cafe3d3c2e66d/atom_selection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
6702,
67,
7466,
12,
270,
81,
16,
4925,
67,
6833,
273,
1083,
4672,
3536,
1586,
596,
9006,
628,
326,
938,
1492,
903,
4620,
9688,
578,
848,
1404,
356,
887,
358,
326,
8098,
6285,
18,
3536,
309,
622,
81,
18,
3276,
422,
599,
30,
327,
1083,
225,
309,
622,
81,
18,
25049,
416,
12514,
411,
374,
18,
21,
30,
309,
4925,
67,
6833,
422,
1053,
30,
2983,
18,
10283,
2370,
2932,
12448,
67,
6702,
67,
7466,
9275,
87,
4672,
11876,
2724,
434,
4587,
18928,
12514,
6,
738,
261,
270,
81,
3719,
327,
1083,
225,
309,
622,
81,
18,
25049,
416,
12514,
405,
404,
18,
20,
30,
622,
81,
18,
25049,
416,
12514,
273,
404,
18,
20,
2983,
18,
10283,
2370,
2932,
12448,
67,
6702,
67,
7466,
9275,
87,
4672,
3179,
18928,
12514,
5174,
639,
2353,
404,
18,
20,
31,
6956,
1776,
6,
738,
261,
270,
81,
3719,
225,
309,
3972,
18,
5129,
12,
270,
81,
18,
588,
67,
57,
10756,
1648,
1866,
18,
56,
23882,
30,
309,
4925,
67,
6833,
422,
1053,
30,
2983,
18,
10283,
2370,
2932,
12448,
67,
6702,
67,
7466,
9275,
87,
4672,
11876,
2724,
434,
5264,
587,
9699,
13463,
315,
738,
261,
270,
81,
3719,
327,
1083,
225,
1327,
2195,
18,
6347,
3923,
18,
6702,
67,
14937,
422,
315,
19803,
1792,
6964,
6877,
309,
1866,
18,
19803,
1792,
6964,
67,
28146,
67,
31456,
18,
5332,
67,
856,
12,
270,
81,
18,
529,
13,
353,
1083,
30,
309,
4925,
67,
6833,
422,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
6702,
67,
7466,
12,
270,
81,
16,
4925,
67,
6833,
273,
1083,
4672,
3536,
1586,
596,
9006,
628,
326,
938,
1492,
903,
4620,
9688,
578,
848,
1404,
356,
887,
358,
326,
8098,
6285,
18,
3536,
309,
622,
81,
18,
3276,
422,
599,
30,
327,
1083,
225,
309,
622,
81,
18,
25049,
416,
12514,
411,
374,
18,
21,
30,
309,
4925,
67,
6833,
422,
1053,
30,
2983,
18,
10283,
2370,
2932,
12448,
67,
6702,
67,
7466,
9275,
87,
4672,
11876,
2724,
434,
4587,
18928,
12514,
6,
738,
261,
270,
81,
3719,
327,
1083,
225,
309,
622,
81,
18,
25049,
416,
12514,
405,
404,
18,
20,
30,
622,
81,
18,
25049,
416,
12514,
273,
404,
18,
20,
2983,
2
] |
print "abnormal attrtab",f print "abnormal lines:", lines | print "abnormal attrtab", f print "abnormal lines:" for t in lines: print `t` print 'abnormal line', `l` import traceback traceback.print_stack() | def line2def(self, lines): results = [] for l in lines: if not l: continue ####################### # ctags bug?! it seem that it could not handle two continous # doulbe quota charaecters ("")rightly in Exuberant Ctags 5.6, at least. # so here we resume "\xd3" to "", workaround :( ###### l = l.replace("\xd3", '""') fields = l.split("\t") filename = fields[1] caller = "" lineno = fields[2][:-2] # remove ';"' attrtab = {} for f in fields[3:]: try: k, v = f.split(":", 1) attrtab[k] = v except ValueError: print "abnormal attrtab",f print "abnormal lines:", lines continue attrtab["name"] = fields[0] try: results.append((filename, caller, int(lineno), attrtab)) except ValueError: print "bug here #1" print l return results | 67aea3fe0826595731f719b7ff477fe8a231398f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5753/67aea3fe0826595731f719b7ff477fe8a231398f/indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
22,
536,
12,
2890,
16,
2362,
4672,
1686,
273,
5378,
364,
328,
316,
2362,
30,
309,
486,
328,
30,
202,
17143,
29570,
1970,
1189,
468,
276,
4156,
7934,
35,
5,
518,
19264,
716,
518,
3377,
486,
1640,
2795,
17545,
1481,
468,
741,
332,
2196,
13257,
1149,
69,
386,
414,
261,
3660,
13,
4083,
715,
316,
1312,
373,
264,
970,
385,
4156,
1381,
18,
26,
16,
622,
4520,
18,
468,
1427,
2674,
732,
10774,
1548,
7669,
23,
6,
358,
23453,
18975,
294,
12,
468,
1970,
7,
328,
273,
328,
18,
2079,
31458,
7669,
23,
3113,
2119,
5187,
13,
1466,
273,
328,
18,
4939,
31458,
88,
7923,
1544,
273,
1466,
63,
21,
65,
4894,
273,
1408,
7586,
273,
1466,
63,
22,
6362,
30,
17,
22,
65,
468,
1206,
296,
4868,
11,
1604,
7032,
273,
2618,
364,
284,
316,
1466,
63,
23,
30,
14542,
775,
30,
417,
16,
331,
273,
284,
18,
4939,
2932,
2773,
16,
404,
13,
1604,
7032,
63,
79,
65,
273,
331,
1335,
2068,
30,
1172,
315,
378,
6130,
1604,
7032,
3113,
284,
1172,
315,
378,
6130,
2362,
2773,
364,
268,
316,
2362,
30,
1172,
1375,
88,
68,
1172,
296,
378,
6130,
980,
2187,
1375,
80,
68,
1930,
10820,
10820,
18,
1188,
67,
3772,
1435,
1324,
1604,
7032,
9614,
529,
11929,
273,
1466,
63,
20,
65,
775,
30,
1686,
18,
6923,
12443,
3459,
16,
4894,
16,
509,
12,
17782,
3631,
1604,
7032,
3719,
1335,
2068,
30,
1172,
315,
925,
2674,
468,
21,
6,
1172,
328,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
22,
536,
12,
2890,
16,
2362,
4672,
1686,
273,
5378,
364,
328,
316,
2362,
30,
309,
486,
328,
30,
202,
17143,
29570,
1970,
1189,
468,
276,
4156,
7934,
35,
5,
518,
19264,
716,
518,
3377,
486,
1640,
2795,
17545,
1481,
468,
741,
332,
2196,
13257,
1149,
69,
386,
414,
261,
3660,
13,
4083,
715,
316,
1312,
373,
264,
970,
385,
4156,
1381,
18,
26,
16,
622,
4520,
18,
468,
1427,
2674,
732,
10774,
1548,
7669,
23,
6,
358,
23453,
18975,
294,
12,
468,
1970,
7,
328,
273,
328,
18,
2079,
31458,
7669,
23,
3113,
2119,
5187,
13,
1466,
273,
328,
18,
4939,
31458,
88,
7923,
1544,
273,
1466,
63,
21,
65,
4894,
273,
1408,
7586,
273,
1466,
2
] |
if height_limit >= 21.4: | if height_limit >= 21.4: | def search(self, height_limit=18, verbose=False): r""" Search for new points, and add them to this subgroup of the Mordell-Weil group. | c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
2072,
67,
3595,
33,
2643,
16,
3988,
33,
8381,
4672,
436,
8395,
5167,
364,
394,
3143,
16,
471,
527,
2182,
358,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
18,
2,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1623,
12,
2890,
16,
2072,
67,
3595,
33,
2643,
16,
3988,
33,
8381,
4672,
436,
8395,
5167,
364,
394,
3143,
16,
471,
527,
2182,
358,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
18,
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,
-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,
-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
] |
if __name__ == '__main__': | def main (): | def seed (base, layer, levels = (0, 5), bbox = None): from Layer import Tile params = { 'layers' : layer.name, 'srs' : layer.srs, 'width' : layer.size[0], 'height' : layer.size[1], 'format' : layer.format() } client = WMS(base, params) if not bbox: bbox = layer.bbox start = time.time() total = 0 for z in range(*levels): bottomleft = layer.getClosestCell(z, bbox[0:2]) topright = layer.getClosestCell(z, bbox[2:4]) print >>sys.stderr, "###### %s, %s" % (bottomleft, topright) zcount = 0 ztiles = (topright[1] - bottomleft[1] + 1) * (topright[0] - bottomleft[0] + 1) for y in range(bottomleft[1], topright[1] + 1): for x in range(bottomleft[0], topright[0] + 1): tileStart = time.time() tile = Tile(layer,x,y,z) bounds = tile.bounds() client.setBBox(bounds) client.fetch() total += 1 zcount += 1 box = "(%.4f %.4f %.4f %.4f)" % bounds print >>sys.stderr, "%02d (%06d, %06d) = %s [%.4fs : %.3f/s] %s/%s" \ % (z,x,y, box, time.time() - tileStart, total / (time.time() - start + .0001), zcount, ztiles) | 20118aa0afbaf7af67184f6eecd3ff56d024c3dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6188/20118aa0afbaf7af67184f6eecd3ff56d024c3dd/Client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5009,
261,
1969,
16,
3018,
16,
7575,
273,
261,
20,
16,
1381,
3631,
8472,
273,
599,
4672,
628,
12112,
1930,
13791,
859,
273,
288,
296,
10396,
11,
294,
3018,
18,
529,
16,
296,
87,
5453,
11,
565,
294,
3018,
18,
87,
5453,
16,
296,
2819,
11,
225,
294,
3018,
18,
1467,
63,
20,
6487,
296,
4210,
11,
294,
3018,
18,
1467,
63,
21,
6487,
296,
2139,
11,
294,
3018,
18,
2139,
1435,
289,
1004,
273,
678,
3537,
12,
1969,
16,
859,
13,
225,
309,
486,
8472,
30,
8472,
273,
3018,
18,
20737,
225,
787,
273,
813,
18,
957,
1435,
2078,
273,
374,
225,
364,
998,
316,
1048,
30857,
12095,
4672,
5469,
4482,
273,
3018,
18,
588,
4082,
7781,
4020,
12,
94,
16,
8472,
63,
20,
30,
22,
5717,
358,
683,
750,
282,
273,
3018,
18,
588,
4082,
7781,
4020,
12,
94,
16,
8472,
63,
22,
30,
24,
5717,
1172,
1671,
9499,
18,
11241,
16,
315,
1970,
1189,
738,
87,
16,
738,
87,
6,
738,
261,
9176,
4482,
16,
358,
683,
750,
13,
998,
1883,
273,
374,
998,
28366,
273,
261,
3669,
4083,
63,
21,
65,
300,
5469,
4482,
63,
21,
65,
397,
404,
13,
380,
261,
3669,
4083,
63,
20,
65,
300,
5469,
4482,
63,
20,
65,
397,
404,
13,
364,
677,
316,
1048,
12,
9176,
4482,
63,
21,
6487,
358,
683,
750,
63,
21,
65,
397,
404,
4672,
364,
619,
316,
1048,
12,
9176,
4482,
63,
20,
6487,
358,
683,
750,
63,
20,
65,
397,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5009,
261,
1969,
16,
3018,
16,
7575,
273,
261,
20,
16,
1381,
3631,
8472,
273,
599,
4672,
628,
12112,
1930,
13791,
859,
273,
288,
296,
10396,
11,
294,
3018,
18,
529,
16,
296,
87,
5453,
11,
565,
294,
3018,
18,
87,
5453,
16,
296,
2819,
11,
225,
294,
3018,
18,
1467,
63,
20,
6487,
296,
4210,
11,
294,
3018,
18,
1467,
63,
21,
6487,
296,
2139,
11,
294,
3018,
18,
2139,
1435,
289,
1004,
273,
678,
3537,
12,
1969,
16,
859,
13,
225,
309,
486,
8472,
30,
8472,
273,
3018,
18,
20737,
225,
787,
273,
813,
18,
957,
1435,
2078,
273,
374,
225,
364,
998,
316,
1048,
30857,
12095,
4672,
5469,
4482,
273,
3018,
18,
588,
4082,
7781,
2
] |
_('<p>There currently are no publicly-advertised '), Link(mm_cfg.MAILMAN_URL, _('Mailman')), _(' mailing lists on %(hostname)s.'), | _('''<p>There currently are no publicly-advertised %(mailmanlink)s mailing lists on %(hostname)s.'''), | def admin_overview(msg=''): # Show the administrative overview page, with the list of all the lists on # this host. msg is an optional error message to display at the top of # the page. # # This page should be displayed in the server's default language, which # should have already been set. hostname = mm_cfg.DEFAULT_HOST_NAME legend = _('%(hostname)s mailing lists - Admin Links') # The html `document' doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) doc.SetTitle(legend) # The table that will hold everything table = Table(border=0, width="100%") table.AddRow([Center(Header(2, legend))]) table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0, colspan=2, bgcolor="#99ccff") # Skip any mailing list that isn't advertised. advertised = [] listnames = Utils.list_names() listnames.sort() for name in listnames: mlist = MailList.MailList(name, lock=0) if mlist.advertised: advertised.append(mlist) # Greeting depends on whether there was an error or not if msg: greeting = FontAttr(msg, color="ff5060", size="+1") else: greeting = _("Welcome!") welcome = [] if not advertised: welcome.extend([ greeting, _('<p>There currently are no publicly-advertised '), Link(mm_cfg.MAILMAN_URL, _('Mailman')), _(' mailing lists on %(hostname)s.'), ]) else: welcome.extend([ greeting, _('<p>Below is the collection of publicly-advertised '), Link(mm_cfg.MAILMAN_URL, _('Mailman')), _(' mailing lists on %(hostname)s.'), _(''' Click on a list name to visit the configuration pages for that list.'''), ]) creatorurl = Utils.ScriptURL('create') mailman_owner = mm_cfg.MAILMAN_OWNER extra = msg and _('right ') or '' welcome.extend([ _('''To visit the administrators configuration page for an unadvertised list, open a URL similar to this one, but with a '/' and the %(extra)slist name appended. If you have the proper authority, you can also <a href="%(creatorurl)s">create a new mailing list</a>. <p>General list information can be found at '''), Link(Utils.ScriptURL('listinfo'), _('the mailing list overview page')), '.', _('<p>(Send questions and comments to '), Link('mailto:%s' % mailman_owner, mailman_owner), '.)<p>', ]) table.AddRow([Container(*welcome)]) table.AddCellInfo(max(table.GetCurrentRowIndex(), 0), 0, colspan=2) if advertised: table.AddRow([' ', ' ']) table.AddRow([Bold(_('List')), Bold(_('Description'))]) for mlist in advertised: table.AddRow( [Link(mlist.GetScriptURL('admin'), Bold(mlist.real_name)), mlist.description or Italic(_('[no description available]')), ]) doc.AddItem(table) doc.AddItem('<hr>') doc.AddItem(MailmanLogo()) print doc.Format(bgcolor="#ffffff") | 3678cfa7fa6d263c8adc48317aa2af5324aa99d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/3678cfa7fa6d263c8adc48317aa2af5324aa99d3/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
26081,
12,
3576,
2218,
11,
4672,
468,
9674,
326,
30162,
1535,
18471,
1363,
16,
598,
326,
666,
434,
777,
326,
6035,
603,
468,
333,
1479,
18,
225,
1234,
353,
392,
3129,
555,
883,
358,
2562,
622,
326,
1760,
434,
468,
326,
1363,
18,
468,
468,
1220,
1363,
1410,
506,
10453,
316,
326,
1438,
1807,
805,
2653,
16,
1492,
468,
1410,
1240,
1818,
2118,
444,
18,
5199,
273,
9740,
67,
7066,
18,
5280,
67,
8908,
67,
1985,
7241,
273,
389,
2668,
17105,
10358,
13,
87,
4791,
310,
6035,
300,
7807,
21771,
6134,
468,
1021,
1729,
1375,
5457,
11,
997,
273,
4319,
1435,
997,
18,
542,
67,
4923,
12,
7020,
67,
7066,
18,
5280,
67,
4370,
67,
15547,
13,
997,
18,
694,
4247,
12,
16292,
13,
468,
1021,
1014,
716,
903,
6887,
7756,
1014,
273,
3555,
12,
8815,
33,
20,
16,
1835,
1546,
6625,
9,
7923,
1014,
18,
986,
1999,
3816,
8449,
12,
1864,
12,
22,
16,
7241,
3719,
5717,
1014,
18,
986,
4020,
966,
12,
1896,
12,
2121,
18,
967,
3935,
21769,
9334,
374,
3631,
374,
16,
20856,
33,
22,
16,
31509,
1546,
7,
2733,
952,
1403,
7923,
468,
6611,
1281,
4791,
310,
666,
716,
5177,
1404,
16738,
5918,
18,
16738,
5918,
273,
5378,
666,
1973,
273,
6091,
18,
1098,
67,
1973,
1435,
666,
1973,
18,
3804,
1435,
364,
508,
316,
666,
1973,
30,
312,
1098,
273,
11542,
682,
18,
6759,
682,
12,
529,
16,
2176,
33,
20,
13,
309,
312,
1098,
18,
361,
1097,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
26081,
12,
3576,
2218,
11,
4672,
468,
9674,
326,
30162,
1535,
18471,
1363,
16,
598,
326,
666,
434,
777,
326,
6035,
603,
468,
333,
1479,
18,
225,
1234,
353,
392,
3129,
555,
883,
358,
2562,
622,
326,
1760,
434,
468,
326,
1363,
18,
468,
468,
1220,
1363,
1410,
506,
10453,
316,
326,
1438,
1807,
805,
2653,
16,
1492,
468,
1410,
1240,
1818,
2118,
444,
18,
5199,
273,
9740,
67,
7066,
18,
5280,
67,
8908,
67,
1985,
7241,
273,
389,
2668,
17105,
10358,
13,
87,
4791,
310,
6035,
300,
7807,
21771,
6134,
468,
1021,
1729,
1375,
5457,
11,
997,
273,
4319,
1435,
997,
18,
542,
67,
4923,
12,
7020,
67,
7066,
18,
5280,
67,
4370,
67,
15547,
2
] |
print "[%r, %r, 1, %r, %r, %r, %r, %r]," % (testStr, commentStr, itemList, deg, sec, neatStr, outDMSStr) | print "[%r, %r, True, %r, %r, %r, %r, %r]," % (testStr, commentStr, itemList, deg, sec, neatStr, outDMSStr) | def _printTest(dmsSet = None): """Prints the results of running each routine on a set of test data. Data format is a list of tuples, each containing three elements: dmsStr to test, a comment, and isOK (true if the dmsStr is valid, false if not) The output is in the format used by _assertTest, but please use this with great caution. You must examine the output very carefully to confirm it is correct before updating _assertTest! """ print "Exercising RO string utilities" if not dmsSet: dmsSet = ( ("::", ""), ("-::", ""), (" +1", ""), ("-2.999998639", ""), # 3:00:00 = 3:00:00.0 = 3:00:00.00 = 2:59:59.9951 ("-2.999998583", ""), # 3:00:00 = 3:00:00.0 = 2:59:59.99 = 2:59:59.9949 ("-2.999986139", ""), # 3:00:00 = 3:00:00.0 = 2:59:59.95 = 2:59:59.9501 ("-2.999986083", ""), # 3:00:00 = 2:59:59.9 = 2:59:59.95 = 2:59:59.9499 ("-2.999861139", ""), # 2:59:59 = 2:59:59.5 = 2:59:59.50 = 2:59:59.5001 ("-2.999861083", ""), # 2:59:59 = 2:59:59.5 = 2:59:59.50 = 2:59:59.4999 ("-123::", ""), ("-123:4", ""), ("-123:45", ""), ("-123:4.56789", ""), ("-123:45.6789", ""), ("1:2:", ""), ("1:2:3", ""), ("1:2:3.456789", ""), ("1:23:4", ""), ("1:23:45", ""), ("123:45:6.789", ""), ("123:45:56.789", ""), ("-0::12.34", "bug test; the sign must be retained"), ("-::12.34", "a weird gray area, but it works"), ("::12.34", ""), ("1:23.4567", ""), ("-1.234567", ""), ("-1:abadstr", "invalid characters"), ("-1:2343:24", "too many minutes digits"), ("1:-1:24", "minus sign in wrong place"), ) for testStr, commentStr in dmsSet: # note: if splitDMSStr succeeds, then the other calls all should succeed if checkDMSStr(testStr): try: itemList = splitDMSStr(testStr) deg = degFromDMSStr (testStr) sec = secFromDMSStr (testStr) neatStr = neatenDMSStr (testStr) outDMSStr = [] for prec in range(3): outDMSStr.append(dmsStrFromDeg(deg, precision=prec)) print "[%r, %r, 1, %r, %r, %r, %r, %r]," % (testStr, commentStr, itemList, deg, sec, neatStr, outDMSStr) except StandardError, e: print "unexpected failure on %r (%s); error = %s" % (testStr, commentStr, e) else: print "[%r, %r, 0, %r, %r, %r, %r, %r]," % tuple([testStr, commentStr] + [None]*5) | 994804867e88210e2f2f130afe9f155048fe038b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/994804867e88210e2f2f130afe9f155048fe038b/StringUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
4709,
12,
72,
959,
694,
273,
599,
4672,
3536,
15402,
326,
1686,
434,
3549,
1517,
12245,
603,
279,
444,
434,
1842,
501,
18,
1910,
740,
353,
279,
666,
434,
10384,
16,
1517,
4191,
8925,
2186,
30,
302,
959,
1585,
358,
1842,
16,
279,
2879,
16,
471,
353,
3141,
261,
3767,
309,
326,
302,
959,
1585,
353,
923,
16,
629,
309,
486,
13,
225,
1021,
876,
353,
316,
326,
740,
1399,
635,
389,
11231,
4709,
16,
1496,
9582,
999,
333,
598,
18825,
3474,
1421,
18,
4554,
1297,
19707,
558,
326,
876,
8572,
7671,
4095,
358,
6932,
518,
353,
3434,
1865,
9702,
389,
11231,
4709,
5,
3536,
1172,
315,
424,
12610,
13734,
6525,
533,
22538,
6,
309,
486,
302,
959,
694,
30,
302,
959,
694,
273,
261,
261,
6877,
2773,
16,
1408,
3631,
7566,
17,
30,
2773,
16,
1408,
3631,
7566,
397,
21,
3113,
1408,
3631,
7566,
17,
22,
18,
7991,
10689,
21607,
3113,
1408,
3631,
202,
7,
890,
30,
713,
30,
713,
273,
890,
30,
713,
30,
713,
18,
20,
273,
890,
30,
713,
30,
713,
18,
713,
273,
576,
30,
6162,
30,
6162,
18,
2733,
10593,
7566,
17,
22,
18,
31463,
7140,
10261,
3113,
1408,
3631,
202,
7,
890,
30,
713,
30,
713,
273,
890,
30,
713,
30,
713,
18,
20,
273,
576,
30,
6162,
30,
6162,
18,
2733,
273,
576,
30,
6162,
30,
6162,
18,
2733,
7616,
7566,
17,
22,
18,
7991,
5292,
24347,
3113,
1408,
3631,
202,
7,
890,
30,
713,
30,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1188,
4709,
12,
72,
959,
694,
273,
599,
4672,
3536,
15402,
326,
1686,
434,
3549,
1517,
12245,
603,
279,
444,
434,
1842,
501,
18,
1910,
740,
353,
279,
666,
434,
10384,
16,
1517,
4191,
8925,
2186,
30,
302,
959,
1585,
358,
1842,
16,
279,
2879,
16,
471,
353,
3141,
261,
3767,
309,
326,
302,
959,
1585,
353,
923,
16,
629,
309,
486,
13,
225,
1021,
876,
353,
316,
326,
740,
1399,
635,
389,
11231,
4709,
16,
1496,
9582,
999,
333,
598,
18825,
3474,
1421,
18,
4554,
1297,
19707,
558,
326,
876,
8572,
7671,
4095,
358,
6932,
518,
353,
3434,
1865,
9702,
389,
11231,
4709,
5,
3536,
1172,
315,
424,
12610,
13734,
6525,
533,
22538,
6,
309,
486,
2
] |
x = m[0][0]*vector[0] + m[0][1]*vector[1] + m[0][2]*vector[2] + m[0][3] y = m[1][0]*vector[0] + m[1][1]*vector[1] + m[1][2]*vector[2] + m[1][3] z = m[2][0]*vector[0] + m[2][1]*vector[1] + m[2][2]*vector[2] + m[2][3] | x = m[0][0]*vector[0] + m[1][0]*vector[1] + m[2][0]*vector[2] + m[3][0] y = m[0][1]*vector[0] + m[1][1]*vector[1] + m[2][1]*vector[2] + m[3][1] z = m[0][2]*vector[0] + m[1][2]*vector[1] + m[2][2]*vector[2] + m[3][2] | def transform_vector3_by_blmat(vector,m): x = m[0][0]*vector[0] + m[0][1]*vector[1] + m[0][2]*vector[2] + m[0][3] y = m[1][0]*vector[0] + m[1][1]*vector[1] + m[1][2]*vector[2] + m[1][3] z = m[2][0]*vector[0] + m[2][1]*vector[1] + m[2][2]*vector[2] + m[2][3] return [x,y,z] | 84cc921174cdfdbab4a5bbe78f1df6c7393ba116 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12598/84cc921174cdfdbab4a5bbe78f1df6c7393ba116/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
67,
7737,
23,
67,
1637,
67,
3083,
7373,
12,
7737,
16,
81,
4672,
619,
273,
312,
63,
20,
6362,
20,
5772,
7737,
63,
20,
65,
397,
312,
63,
21,
6362,
20,
5772,
7737,
63,
21,
65,
397,
312,
63,
22,
6362,
20,
5772,
7737,
63,
22,
65,
397,
312,
63,
23,
6362,
20,
65,
677,
273,
312,
63,
20,
6362,
21,
5772,
7737,
63,
20,
65,
397,
312,
63,
21,
6362,
21,
5772,
7737,
63,
21,
65,
397,
312,
63,
22,
6362,
21,
5772,
7737,
63,
22,
65,
397,
312,
63,
23,
6362,
21,
65,
998,
273,
312,
63,
20,
6362,
22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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2510,
67,
7737,
23,
67,
1637,
67,
3083,
7373,
12,
7737,
16,
81,
4672,
619,
273,
312,
63,
20,
6362,
20,
5772,
7737,
63,
20,
65,
397,
312,
63,
21,
6362,
20,
5772,
7737,
63,
21,
65,
397,
312,
63,
22,
6362,
20,
5772,
7737,
63,
22,
65,
397,
312,
63,
23,
6362,
20,
65,
677,
273,
312,
63,
20,
6362,
21,
5772,
7737,
63,
20,
65,
397,
312,
63,
21,
6362,
21,
5772,
7737,
63,
21,
65,
397,
312,
63,
22,
6362,
21,
5772,
7737,
63,
22,
65,
397,
312,
63,
23,
6362,
21,
65,
998,
273,
312,
63,
20,
6362,
22,
5772,
7737,
63,
20,
65,
397,
312,
63,
21,
6362,
22,
5772,
7737,
63,
21,
2
] |
self.socket.close() | self.server_close() | def process_request(self, request, client_address): """Fork a new subprocess to process the request.""" self.collect_children() pid = os.fork() if pid: # Parent process if self.active_children is None: self.active_children = [] self.active_children.append(pid) return else: # Child process. # This must never return, hence os._exit()! try: self.socket.close() self.finish_request(request, client_address) os._exit(0) except: try: self.handle_error(request, client_address) finally: os._exit(1) | 90cb9067b82509ed4917084ffa85abc150509ff5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/90cb9067b82509ed4917084ffa85abc150509ff5/SocketServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
22662,
279,
394,
6652,
358,
1207,
326,
590,
12123,
365,
18,
14676,
67,
5906,
1435,
4231,
273,
1140,
18,
23335,
1435,
309,
4231,
30,
468,
9520,
1207,
309,
365,
18,
3535,
67,
5906,
353,
599,
30,
365,
18,
3535,
67,
5906,
273,
5378,
365,
18,
3535,
67,
5906,
18,
6923,
12,
6610,
13,
327,
469,
30,
468,
7451,
1207,
18,
468,
1220,
1297,
5903,
327,
16,
20356,
1140,
6315,
8593,
1435,
5,
775,
30,
365,
18,
3567,
67,
4412,
1435,
365,
18,
13749,
67,
2293,
12,
2293,
16,
1004,
67,
2867,
13,
1140,
6315,
8593,
12,
20,
13,
1335,
30,
775,
30,
365,
18,
4110,
67,
1636,
12,
2293,
16,
1004,
67,
2867,
13,
3095,
30,
1140,
6315,
8593,
12,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1207,
67,
2293,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
22662,
279,
394,
6652,
358,
1207,
326,
590,
12123,
365,
18,
14676,
67,
5906,
1435,
4231,
273,
1140,
18,
23335,
1435,
309,
4231,
30,
468,
9520,
1207,
309,
365,
18,
3535,
67,
5906,
353,
599,
30,
365,
18,
3535,
67,
5906,
273,
5378,
365,
18,
3535,
67,
5906,
18,
6923,
12,
6610,
13,
327,
469,
30,
468,
7451,
1207,
18,
468,
1220,
1297,
5903,
327,
16,
20356,
1140,
6315,
8593,
1435,
5,
775,
30,
365,
18,
3567,
67,
4412,
1435,
365,
18,
13749,
67,
2293,
12,
2293,
16,
1004,
67,
2867,
13,
1140,
6315,
8593,
12,
20,
13,
1335,
30,
775,
30,
365,
18,
4110,
2
] |
for rec in self.read(cr, uid, ids, ['number_of_days_temp','date_from','date_to']): | for rec in self.read(cr, uid, ids, ['number_of_days_temp','date_from','date_to', 'type']): | def _check_date(self, cr, uid, ids): for rec in self.read(cr, uid, ids, ['number_of_days_temp','date_from','date_to']): if rec['number_of_days_temp'] < 0: return False date_from = time.strptime(rec['date_from'], '%Y-%m-%d %H:%M:%S') date_to = time.strptime(rec['date_to'], '%Y-%m-%d %H:%M:%S') if date_from > date_to: return False return True | 174162b34489cb256d1564b615be6dd14c427d81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/174162b34489cb256d1564b615be6dd14c427d81/hr_holidays.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
364,
1950,
316,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
10228,
2696,
67,
792,
67,
9810,
67,
5814,
17023,
712,
67,
2080,
17023,
712,
67,
869,
2187,
296,
723,
3546,
4672,
309,
1950,
3292,
2696,
67,
792,
67,
9810,
67,
5814,
3546,
411,
374,
30,
327,
1083,
1509,
67,
2080,
273,
813,
18,
701,
10650,
12,
3927,
3292,
712,
67,
2080,
17337,
1995,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
1509,
67,
869,
273,
813,
18,
701,
10650,
12,
3927,
3292,
712,
67,
869,
17337,
1995,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
309,
1509,
67,
2080,
405,
1509,
67,
869,
30,
327,
1083,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
364,
1950,
316,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
10228,
2696,
67,
792,
67,
9810,
67,
5814,
17023,
712,
67,
2080,
17023,
712,
67,
869,
2187,
296,
723,
3546,
4672,
309,
1950,
3292,
2696,
67,
792,
67,
9810,
67,
5814,
3546,
411,
374,
30,
327,
1083,
1509,
67,
2080,
273,
813,
18,
701,
10650,
12,
3927,
3292,
712,
67,
2080,
17337,
1995,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
1509,
67,
869,
273,
813,
18,
701,
10650,
12,
3927,
3292,
712,
67,
869,
17337,
1995,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
2
] |
set python=%(bundle)s_build\python\python | cd %(bundle)s_build set python=python\python | def create_script(bundle, top_modules): py_major, py_minor = sys.version_info[:2] return r"""@echo off | c72bc0a5e3db312944a4a93d316f12ee0facf7c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/c72bc0a5e3db312944a4a93d316f12ee0facf7c0/install_bat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4263,
12,
9991,
16,
1760,
67,
6400,
4672,
2395,
67,
14019,
16,
2395,
67,
17364,
273,
2589,
18,
1589,
67,
1376,
10531,
22,
65,
327,
436,
8395,
36,
12946,
3397,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
65,
327,
436,
8395,
36,
12946,
3397,
225,
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,
-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,
-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,
-100,
-100,
-100,
-100
] |
return open(filename, encoding="utf-8").read(), filename | return open(filename, encoding=encoding).read(), filename | def _load_testfile(filename, package, module_relative): if module_relative: package = _normalize_module(package, 3) filename = _module_relative_path(package, filename) if hasattr(package, '__loader__'): if hasattr(package.__loader__, 'get_data'): return package.__loader__.get_data(filename).decode('utf-8'), filename return open(filename, encoding="utf-8").read(), filename | 1862736c3afcbb0446c06eff1ce76a43ca03ebb1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/1862736c3afcbb0446c06eff1ce76a43ca03ebb1/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
3813,
768,
12,
3459,
16,
2181,
16,
1605,
67,
11626,
4672,
309,
1605,
67,
11626,
30,
2181,
273,
389,
12237,
67,
2978,
12,
5610,
16,
890,
13,
1544,
273,
389,
2978,
67,
11626,
67,
803,
12,
5610,
16,
1544,
13,
309,
3859,
12,
5610,
16,
4940,
6714,
7250,
4672,
309,
3859,
12,
5610,
16186,
6714,
972,
16,
296,
588,
67,
892,
11,
4672,
327,
2181,
16186,
6714,
25648,
588,
67,
892,
12,
3459,
2934,
3922,
2668,
3158,
17,
28,
19899,
1544,
327,
1696,
12,
3459,
16,
2688,
33,
5999,
2934,
896,
9334,
1544,
225,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
945,
67,
3813,
768,
12,
3459,
16,
2181,
16,
1605,
67,
11626,
4672,
309,
1605,
67,
11626,
30,
2181,
273,
389,
12237,
67,
2978,
12,
5610,
16,
890,
13,
1544,
273,
389,
2978,
67,
11626,
67,
803,
12,
5610,
16,
1544,
13,
309,
3859,
12,
5610,
16,
4940,
6714,
7250,
4672,
309,
3859,
12,
5610,
16186,
6714,
972,
16,
296,
588,
67,
892,
11,
4672,
327,
2181,
16186,
6714,
25648,
588,
67,
892,
12,
3459,
2934,
3922,
2668,
3158,
17,
28,
19899,
1544,
327,
1696,
12,
3459,
16,
2688,
33,
5999,
2934,
896,
9334,
1544,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _verify(name, expected): computed = eval(name) | def _verify(name, computed, expected): | def _verify(name, expected): computed = eval(name) if abs(computed - expected) > 1e-7: raise ValueError( "computed value for %s deviates too much " "(computed %g, expected %g)" % (name, computed, expected)) | d6aac9e347f1c02a6991965619635ee60ddb6e1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6aac9e347f1c02a6991965619635ee60ddb6e1f/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
12,
529,
16,
8470,
16,
2665,
4672,
309,
2417,
12,
20307,
300,
2665,
13,
405,
404,
73,
17,
27,
30,
1002,
2068,
12,
315,
20307,
460,
364,
738,
87,
27492,
815,
4885,
9816,
315,
7751,
20307,
738,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
529,
16,
8470,
16,
2665,
4672,
309,
2417,
12,
20307,
300,
2665,
13,
405,
404,
73,
17,
27,
30,
1002,
2068,
12,
315,
20307,
460,
364,
738,
87,
27492,
815,
4885,
9816,
315,
7751,
20307,
738,
75,
16,
2665,
738,
75,
2225,
738,
261,
529,
16,
8470,
16,
2665,
3719,
225,
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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif status.get('version_fail', False) == True: | elif status.get('version_fail', False) and self.doUpgrade: | def queuePkg(pkg, inst, queue): if pkg.get('name') == 'gpg-pubkey': gpg_keys.append(inst) else: queue.append(inst) | fa828a85c54e0e883cfac6ad19227776c95ecb68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/fa828a85c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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2389,
11264,
12,
10657,
16,
1804,
16,
2389,
4672,
309,
3475,
18,
588,
2668,
529,
6134,
422,
296,
6403,
75,
17,
23428,
4278,
22544,
67,
2452,
18,
6923,
12,
8591,
13,
469,
30,
2389,
18,
6923,
12,
8591,
13,
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,
-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,
-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
] |
return new Node(t, SEMICOLON) | return Node(t, SEMICOLON) | def SEMICOLON__build(t): return new Node(t, SEMICOLON) | c7acf93c85d2480e1e64e292c2f42ae1721eefbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/c7acf93c85d2480e1e64e292c2f42ae1721eefbe/Builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3174,
22972,
1741,
673,
972,
3510,
12,
88,
4672,
327,
394,
2029,
12,
88,
16,
3174,
22972,
1741,
673,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3174,
22972,
1741,
673,
972,
3510,
12,
88,
4672,
327,
394,
2029,
12,
88,
16,
3174,
22972,
1741,
673,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
font.setMinFilter(minFilter) | font.setMinfilter(minFilter) | def loadFont(self, modelPath, spaceAdvance = None, pointSize = None, pixelsPerUnit = None, scaleFactor = None, textureMargin = None, polyMargin = None, minFilter = None, magFilter = None, anisotropicDegree = None, lineHeight = None): """ modelPath is a string. | 0bcf6e19e333d0eaa5f95cc4a55ebebdccd27289 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/0bcf6e19e333d0eaa5f95cc4a55ebebdccd27289/Loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
5711,
12,
2890,
16,
938,
743,
16,
3476,
1871,
5882,
273,
599,
16,
1634,
1225,
273,
599,
16,
8948,
2173,
2802,
273,
599,
16,
3159,
6837,
273,
599,
16,
11428,
9524,
273,
599,
16,
7573,
9524,
273,
599,
16,
1131,
1586,
273,
599,
16,
4447,
1586,
273,
599,
16,
392,
17693,
1764,
335,
22885,
273,
599,
16,
980,
2686,
273,
599,
4672,
3536,
938,
743,
353,
279,
533,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
5711,
12,
2890,
16,
938,
743,
16,
3476,
1871,
5882,
273,
599,
16,
1634,
1225,
273,
599,
16,
8948,
2173,
2802,
273,
599,
16,
3159,
6837,
273,
599,
16,
11428,
9524,
273,
599,
16,
7573,
9524,
273,
599,
16,
1131,
1586,
273,
599,
16,
4447,
1586,
273,
599,
16,
392,
17693,
1764,
335,
22885,
273,
599,
16,
980,
2686,
273,
599,
4672,
3536,
938,
743,
353,
279,
533,
18,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
vereq(hash(d), id(d)) | orig_hash = hash(d) | def subclasspropagation(): if verbose: print "Testing propagation of slot functions to subclasses..." class A(object): pass class B(A): pass class C(A): pass class D(B, C): pass d = D() vereq(hash(d), id(d)) A.__hash__ = lambda self: 42 vereq(hash(d), 42) C.__hash__ = lambda self: 314 vereq(hash(d), 314) B.__hash__ = lambda self: 144 vereq(hash(d), 144) D.__hash__ = lambda self: 100 vereq(hash(d), 100) del D.__hash__ vereq(hash(d), 144) del B.__hash__ vereq(hash(d), 314) del C.__hash__ vereq(hash(d), 42) del A.__hash__ vereq(hash(d), id(d)) d.foo = 42 d.bar = 42 vereq(d.foo, 42) vereq(d.bar, 42) def __getattribute__(self, name): if name == "foo": return 24 return object.__getattribute__(self, name) A.__getattribute__ = __getattribute__ vereq(d.foo, 24) vereq(d.bar, 42) def __getattr__(self, name): if name in ("spam", "foo", "bar"): return "hello" raise AttributeError, name B.__getattr__ = __getattr__ vereq(d.spam, "hello") vereq(d.foo, 24) vereq(d.bar, 42) del A.__getattribute__ vereq(d.foo, 42) del d.foo vereq(d.foo, "hello") vereq(d.bar, 42) del B.__getattr__ try: d.foo except AttributeError: pass else: raise TestFailed, "d.foo should be undefined now" # Test a nasty bug in recurse_down_subclasses() import gc class A(object): pass class B(A): pass del B gc.collect() A.__setitem__ = lambda *a: None # crash | 171b868195d6f4ffc08a94ff3cf02fde74f6e576 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/171b868195d6f4ffc08a94ff3cf02fde74f6e576/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10177,
5986,
346,
367,
13332,
309,
3988,
30,
1172,
315,
22218,
25686,
434,
4694,
4186,
358,
15320,
7070,
667,
432,
12,
1612,
4672,
1342,
667,
605,
12,
37,
4672,
1342,
667,
385,
12,
37,
4672,
1342,
667,
463,
12,
38,
16,
385,
4672,
1342,
302,
273,
463,
1435,
1647,
67,
2816,
273,
1651,
12,
72,
13,
432,
16186,
2816,
972,
273,
3195,
365,
30,
14856,
331,
822,
85,
12,
2816,
12,
72,
3631,
14856,
13,
385,
16186,
2816,
972,
273,
3195,
365,
30,
890,
3461,
331,
822,
85,
12,
2816,
12,
72,
3631,
890,
3461,
13,
605,
16186,
2816,
972,
273,
3195,
365,
30,
30457,
331,
822,
85,
12,
2816,
12,
72,
3631,
30457,
13,
463,
16186,
2816,
972,
273,
3195,
365,
30,
2130,
331,
822,
85,
12,
2816,
12,
72,
3631,
2130,
13,
1464,
463,
16186,
2816,
972,
331,
822,
85,
12,
2816,
12,
72,
3631,
30457,
13,
1464,
605,
16186,
2816,
972,
331,
822,
85,
12,
2816,
12,
72,
3631,
890,
3461,
13,
1464,
385,
16186,
2816,
972,
331,
822,
85,
12,
2816,
12,
72,
3631,
14856,
13,
1464,
432,
16186,
2816,
972,
1647,
67,
2816,
273,
1651,
12,
72,
13,
302,
18,
11351,
273,
14856,
302,
18,
3215,
273,
14856,
331,
822,
85,
12,
72,
18,
11351,
16,
14856,
13,
331,
822,
85,
12,
72,
18,
3215,
16,
14856,
13,
1652,
1001,
588,
4589,
972,
12,
2890,
16,
508,
4672,
309,
508,
422,
315,
11351,
6877,
327,
4248,
327,
733,
16186,
588,
4589,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10177,
5986,
346,
367,
13332,
309,
3988,
30,
1172,
315,
22218,
25686,
434,
4694,
4186,
358,
15320,
7070,
667,
432,
12,
1612,
4672,
1342,
667,
605,
12,
37,
4672,
1342,
667,
385,
12,
37,
4672,
1342,
667,
463,
12,
38,
16,
385,
4672,
1342,
302,
273,
463,
1435,
1647,
67,
2816,
273,
1651,
12,
72,
13,
432,
16186,
2816,
972,
273,
3195,
365,
30,
14856,
331,
822,
85,
12,
2816,
12,
72,
3631,
14856,
13,
385,
16186,
2816,
972,
273,
3195,
365,
30,
890,
3461,
331,
822,
85,
12,
2816,
12,
72,
3631,
890,
3461,
13,
605,
16186,
2816,
972,
273,
3195,
365,
30,
30457,
331,
822,
85,
12,
2816,
12,
72,
3631,
30457,
13,
463,
16186,
2816,
2
] |
exceptions, this sets `sender' to the string that the SMTP refused | exceptions, this sets `sender' to the string that the SMTP refused. | def __init__(self, code, msg): self.smtp_code = code self.smtp_error = msg self.args = (code, msg) | d25c1b73d2c8ab561476de849026aef7bd25808e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d25c1b73d2c8ab561476de849026aef7bd25808e/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
981,
16,
1234,
4672,
365,
18,
20278,
67,
710,
273,
981,
365,
18,
20278,
67,
1636,
273,
1234,
365,
18,
1968,
273,
261,
710,
16,
1234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18,
20278,
67,
1636,
273,
1234,
365,
18,
1968,
273,
261,
710,
16,
1234,
13,
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,
-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,
-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,
-100,
-100,
-100,
-100
] |
"""Return a tar header block as a 512 byte string. """ | """Return a tar header as a string of 512 byte blocks. """ buf = "" type = self.type prefix = "" if self.name.endswith("/"): type = DIRTYPE name = normpath(self.name) if type == DIRTYPE: name += "/" linkname = self.linkname if linkname: linkname = normpath(linkname) if posix: if self.size > MAXSIZE_MEMBER: raise ValueError("file is too large (>= 8 GB)") if len(self.linkname) > LENGTH_LINK: raise ValueError("linkname is too long (>%d)" % (LENGTH_LINK)) if len(name) > LENGTH_NAME: prefix = name[:LENGTH_PREFIX + 1] while prefix and prefix[-1] != "/": prefix = prefix[:-1] name = name[len(prefix):] prefix = prefix[:-1] if not prefix or len(name) > LENGTH_NAME: raise ValueError("name is too long") else: if len(self.linkname) > LENGTH_LINK: buf += self._create_gnulong(self.linkname, GNUTYPE_LONGLINK) if len(name) > LENGTH_NAME: buf += self._create_gnulong(name, GNUTYPE_LONGNAME) | def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), stn(MAGIC, 6), stn(VERSION, 2), stn(self.uname, 32), stn(self.gname, 32), itn(self.devmajor, 8, posix), itn(self.devminor, 8, posix), stn(self.prefix, 155) ] | 2527f7fee0f20946aa3162fae4ffe6181aee1eb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2527f7fee0f20946aa3162fae4ffe6181aee1eb1/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
487,
279,
533,
434,
13908,
1160,
4398,
18,
3536,
1681,
273,
1408,
618,
273,
365,
18,
723,
1633,
273,
1408,
225,
309,
365,
18,
529,
18,
5839,
1918,
2932,
4898,
4672,
618,
273,
18544,
2399,
225,
508,
273,
20446,
12,
2890,
18,
529,
13,
225,
309,
618,
422,
18544,
2399,
30,
225,
508,
1011,
4016,
225,
1692,
529,
273,
365,
18,
1232,
529,
309,
1692,
529,
30,
225,
1692,
529,
273,
20446,
12,
1232,
529,
13,
225,
309,
16366,
30,
309,
365,
18,
1467,
405,
4552,
4574,
67,
19630,
30,
1002,
2068,
2932,
768,
353,
4885,
7876,
261,
34,
33,
1725,
25069,
2225,
13,
225,
309,
562,
12,
2890,
18,
1232,
529,
13,
405,
24967,
67,
10554,
30,
1002,
2068,
2932,
1232,
529,
353,
4885,
1525,
261,
9822,
72,
2225,
738,
261,
7096,
67,
10554,
3719,
225,
309,
562,
12,
529,
13,
405,
24967,
67,
1985,
30,
1633,
273,
508,
10531,
7096,
67,
6307,
397,
404,
65,
1323,
1633,
471,
1633,
18919,
21,
65,
480,
4016,
30,
1633,
273,
1633,
10531,
17,
21,
65,
225,
508,
273,
508,
63,
1897,
12,
3239,
4672,
65,
1633,
273,
1633,
10531,
17,
21,
65,
225,
309,
486,
1633,
578,
562,
12,
529,
13,
405,
24967,
67,
1985,
30,
1002,
2068,
2932,
529,
353,
4885,
1525,
7923,
225,
469,
30,
309,
562,
12,
2890,
18,
1232,
529,
13,
405,
24967,
67,
10554,
30,
1681,
1011,
365,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
487,
279,
533,
434,
13908,
1160,
4398,
18,
3536,
1681,
273,
1408,
618,
273,
365,
18,
723,
1633,
273,
1408,
225,
309,
365,
18,
529,
18,
5839,
1918,
2932,
4898,
4672,
618,
273,
18544,
2399,
225,
508,
273,
20446,
12,
2890,
18,
529,
13,
225,
309,
618,
422,
18544,
2399,
30,
225,
508,
1011,
4016,
225,
1692,
529,
273,
365,
18,
1232,
529,
309,
1692,
529,
30,
225,
1692,
529,
273,
20446,
12,
1232,
529,
13,
225,
309,
16366,
30,
309,
365,
18,
1467,
405,
4552,
4574,
67,
19630,
30,
1002,
2068,
2932,
768,
353,
4885,
7876,
261,
34,
33,
1725,
25069,
2225,
13,
2
] |
print "File:", data_file | print "File:", filename resource = open(filename, "r") | def run(config, tim): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.DiffTime} """ import sys import DST if tim is not None: tim.getTime(False) old_time = tim.getOldTime() if config.data is None: raise RuntimeError("Need to pass a data filename to the driver "\ +"script.") dst_type = hlr_utils.file_peeker(config.data[0]) if config.verbose: print "Initial file type:", config.dst_type d_som1 = None counter = 0 for data_file in config.data: if config.verbose: print "File:", data_file try: data_dst = DST.getInstance(dst_type, data_file) except SystemError: print "ERROR: Failed to data read file %s" % data_file sys.exit(-1) if verbose: print "Reading data file %d" % counter if counter == 0: d_som1 = data_dst.getSOM() if tim is not None: tim.getTime(msg="After reading data") else: d_som_t = data_dst.getSOM() if tim is not None: tim.getTime(msg="After reading data") d_som1 = common_lib.add_ncerr(d_som_t, d_som1) if tim is not None: tim.getTime(msg="After adding spectra") del d_som_t if tim is not None: tim.getTime(msg="After SOM deletion") data_dst.release_resource() del data_dst counter += 1 if tim is not None: tim.getTime(msg="After resource release and DST deletion") hlr_utils.write_file(config.output, dst_type, d_som1, verbose=config.verbose, message="combined file") if tim is not None: tim.setOldTime(old_time) tim.getTime(msg="Total Running Time") | 00a2f2ab04a3d2c100930f95188f9e40495d16d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/00a2f2ab04a3d2c100930f95188f9e40495d16d3/agg_dr_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
723,
642,
30,
511,
95,
76,
10826,
67,
5471,
18,
11207,
97,
225,
632,
891,
1658,
30,
1033,
716,
903,
1699,
326,
707,
358,
3073,
15538,
3765,
1012,
18,
632,
723,
1658,
30,
385,
95,
87,
2387,
67,
957,
18,
5938,
950,
97,
3536,
1930,
2589,
225,
1930,
463,
882,
225,
309,
1658,
353,
486,
599,
30,
1658,
18,
588,
950,
12,
8381,
13,
1592,
67,
957,
273,
1658,
18,
588,
7617,
950,
1435,
225,
309,
642,
18,
892,
353,
599,
30,
1002,
7265,
2932,
14112,
358,
1342,
279,
501,
1544,
358,
326,
3419,
1548,
397,
6,
4263,
1199,
13,
225,
3046,
67,
723,
273,
366,
10826,
67,
5471,
18,
768,
67,
347,
3839,
264,
12,
1425,
18,
892,
63,
20,
5717,
225,
309,
642,
18,
11369,
30,
1172,
315,
4435,
585,
618,
2773,
16,
642,
18,
11057,
67,
723,
225,
302,
67,
87,
362,
21,
273,
599,
3895,
273,
374,
225,
364,
501,
67,
768,
316,
642,
18,
892,
30,
309,
642,
18,
11369,
30,
1172,
315,
812,
2773,
16,
1544,
225,
1058,
273,
1696,
12,
3459,
16,
315,
86,
7923,
225,
775,
30,
501,
67,
11057,
273,
463,
882,
18,
588,
1442,
12,
11057,
67,
723,
16,
501,
67,
768,
13,
1335,
2332,
668,
30,
1172,
315,
3589,
30,
11175,
358,
501,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1425,
16,
1658,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
723,
642,
30,
511,
95,
76,
10826,
67,
5471,
18,
11207,
97,
225,
632,
891,
1658,
30,
1033,
716,
903,
1699,
326,
707,
358,
3073,
15538,
3765,
1012,
18,
632,
723,
1658,
30,
385,
95,
87,
2387,
67,
957,
18,
5938,
950,
97,
3536,
1930,
2589,
225,
1930,
463,
882,
225,
309,
1658,
353,
486,
599,
30,
1658,
18,
588,
950,
12,
8381,
13,
1592,
67,
957,
273,
1658,
18,
588,
7617,
950,
1435,
225,
309,
642,
18,
892,
353,
599,
30,
1002,
7265,
2932,
14112,
2
] |
current_group = allgroups.groups[ pathstat.st_gid ]['name'] | current_group = allgroups[pathstat.st_gid]['name'] | def check_posix_ugid_and_perms(onpath, uid = -1, gid = -1, perms = -1, batch = False, auto_answer = None, allgroups = None, allusers = None): """Check if some path has some desired perms, repair if told to do so.""" if onpath in ("", None): raise exceptions.BadArgumentError("The path you want to check perms on must not be empty !") if allgroups is None: from licorn.core import groups as allgroups if allusers is None: from licorn.core import users as allusers all_went_ok = True logging.progress("Checking posix uid/gid/perms of %s." % styles.stylize(styles.ST_PATH, onpath)) try: pathstat = os.lstat(onpath) except OSError, e: if e.errno == 2: # causes of this error: # - this is a race condition: the dir/file has been deleted between the minifind() # and the check_*() call. Don't blow out on this. # - when we explicitely want to check a path which does not exist because it has not # been created yet (eg: ~/.dmrc on a brand new user account). return True else: raise e # if one or both of the uid or gid are empty, don't check it, use the # current one present in the file meta-data. if uid == -1: uid = pathstat.st_uid try: desired_login = allusers.users[ uid ]['login'] except KeyError: desired_login = str(uid) else: desired_login = allusers.users[ uid ]['login'] if gid == -1: gid = pathstat.st_gid try: desired_group = allgroups.groups[ gid ]['name'] except KeyError: desired_group = str(gid) else: desired_group = allgroups.groups[ gid ]['name'] if pathstat.st_uid != uid or pathstat.st_gid != gid: try: current_login = allusers.users[ pathstat.st_uid ]['login'] except KeyError: current_login = str(pathstat.st_uid) try: current_group = allgroups.groups[ pathstat.st_gid ]['name'] except KeyError: current_group = str(pathstat.st_gid) warn_message = logging.SWKN_DIR_BAD_OWNERSHIP \ % ( styles.stylize(styles.ST_PATH, onpath), styles.stylize(styles.ST_BAD, current_login), styles.stylize(styles.ST_BAD, current_group), styles.stylize(styles.ST_UGID, desired_login), styles.stylize(styles.ST_UGID, desired_group), ) if batch or logging.ask_for_repair(warn_message, auto_answer): os.chown(onpath, uid, gid) logging.info("Changed owner of %s from %s:%s to %s:%s." % (styles.stylize(styles.ST_PATH, onpath), styles.stylize(styles.ST_UGID, current_login), styles.stylize(styles.ST_UGID, current_group), styles.stylize(styles.ST_UGID, desired_login), styles.stylize(styles.ST_UGID, desired_group))) else: all_went_ok = False if perms == -1: # stop here, we just wanted to check uid/gid return all_went_ok if has_extended_acl(onpath): # if an ACL is present, this could be what is borking the Unix mode. # an ACL is present if it has a mask, else it is just standard posix # perms expressed in the ACL grammar. No mask == Not an ACL. #logging.debug2("pathacl = %s, perms = %s (%s)." % (str(pathacl), perms2str(perms, acl_form = True), str(pathacl).find("mask::"))) warn_message = "An ACL is present on %s, but it should not." % styles.stylize(styles.ST_PATH, onpath) if batch or logging.ask_for_repair(warn_message, auto_answer): posix1e.ACL(text="").applyto(str(onpath)) if pathstat.st_mode & 0170000 == S_IFDIR: posix1e.ACL(text="").applyto(str(onpath), posix1e.ACL_TYPE_DEFAULT) logging.info("Deleted ACL from %s." % styles.stylize(styles.ST_PATH, onpath)) # redo the stat, to get the current posix mode. pathstat = os.lstat(onpath) # enter batch mode: if there was an ACL, the std posix perms will be false in 99% # of the cases, because the ACL has modified the group perms with the mask content. # Thus, don't bother the administrator with another question, just correct the posix perms. # # As perms check is the only thing left to do in this function after the present ACL check, # setting batch to True locally here won't accidentally batch other checks. batch = True else: all_went_ok = False # now that we are sure that there isn't any ACLs on the file/dir, continue checking. mode = pathstat.st_mode & 07777 #logging.debug2("Comparing desired %d and current %d on %s." % (perms, mode, onpath)) if perms != mode: mode_txt = perms2str(mode) perms_txt = perms2str(perms) warn_message = logging.SWKN_INVALID_MODE % (styles.stylize(styles.ST_PATH, onpath), styles.stylize(styles.ST_BAD, mode_txt), styles.stylize(styles.ST_ACL, perms_txt)) if batch or logging.ask_for_repair(warn_message, auto_answer): os.chmod(onpath, perms) logging.info("Applyed perms %s on %s." % (styles.stylize(styles.ST_ACL, perms_txt), styles.stylize(styles.ST_PATH, onpath))) else: all_went_ok = False return all_went_ok | 09be11c609797e29cd65819ebd1b1b664074d86b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/09be11c609797e29cd65819ebd1b1b664074d86b/fsapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
24463,
67,
637,
350,
67,
464,
67,
15969,
12,
265,
803,
16,
4555,
273,
300,
21,
16,
11399,
273,
300,
21,
16,
13793,
273,
300,
21,
16,
2581,
273,
1083,
16,
3656,
67,
13490,
273,
599,
16,
777,
4650,
273,
599,
16,
777,
5577,
273,
599,
4672,
3536,
1564,
309,
2690,
589,
711,
2690,
6049,
13793,
16,
20994,
309,
268,
1673,
358,
741,
1427,
12123,
225,
309,
603,
803,
316,
7566,
3113,
599,
4672,
1002,
4798,
18,
6434,
1379,
668,
2932,
1986,
589,
1846,
2545,
358,
866,
13793,
603,
1297,
486,
506,
1008,
401,
7923,
225,
309,
777,
4650,
353,
599,
30,
628,
328,
335,
14245,
18,
3644,
1930,
3252,
487,
777,
4650,
225,
309,
777,
5577,
353,
599,
30,
628,
328,
335,
14245,
18,
3644,
1930,
3677,
487,
777,
5577,
225,
777,
67,
91,
319,
67,
601,
273,
1053,
225,
2907,
18,
8298,
2932,
14294,
16366,
4555,
19,
15780,
19,
15969,
434,
738,
87,
1199,
738,
5687,
18,
334,
93,
80,
554,
12,
10218,
18,
882,
67,
4211,
16,
603,
803,
3719,
225,
775,
30,
589,
5642,
273,
1140,
18,
80,
5642,
12,
265,
803,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
422,
576,
30,
468,
14119,
434,
333,
555,
30,
468,
377,
300,
333,
353,
279,
17996,
2269,
30,
326,
1577,
19,
768,
711,
2118,
4282,
3086,
326,
1131,
430,
728,
1435,
468,
4202,
471,
326,
866,
67,
14,
1435,
745,
18,
7615,
1404,
324,
821,
596,
603,
333,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
24463,
67,
637,
350,
67,
464,
67,
15969,
12,
265,
803,
16,
4555,
273,
300,
21,
16,
11399,
273,
300,
21,
16,
13793,
273,
300,
21,
16,
2581,
273,
1083,
16,
3656,
67,
13490,
273,
599,
16,
777,
4650,
273,
599,
16,
777,
5577,
273,
599,
4672,
3536,
1564,
309,
2690,
589,
711,
2690,
6049,
13793,
16,
20994,
309,
268,
1673,
358,
741,
1427,
12123,
225,
309,
603,
803,
316,
7566,
3113,
599,
4672,
1002,
4798,
18,
6434,
1379,
668,
2932,
1986,
589,
1846,
2545,
358,
866,
13793,
603,
1297,
486,
506,
1008,
401,
7923,
225,
309,
777,
4650,
353,
599,
30,
628,
328,
335,
14245,
18,
3644,
1930,
3252,
487,
777,
4650,
225,
309,
777,
2
] |
Subsets and Splits