rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
cur.execute(sqlcmd % (taskid, linenum, cmdid, today))
|
cur.execute(sqlcmd % (taskid, today))
|
def insertTask(self, taskid): """inserts a task into the right tables, returns resultant rownumber for use in other tables""" sqlcmd = """insert into tasks (taskid, date) values ('%s','%s');""" #print >>sys.stderr, sqlcmd import time #today = "%04d%02d%02d" % time.localtime()[:3] # date in yyyy-mm-dd hh:mm format today = "%04d-%02d-%02d %02d:%02d" % time.localtime()[:5] cur = self.cursor()
|
3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/3cd301b01a645d1a52aac27ed91a3a3acfbc9bc7/ssdap_dbutil.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
2174,
12,
2890,
16,
29035,
4672,
3536,
6387,
87,
279,
1562,
1368,
326,
2145,
4606,
16,
1135,
563,
970,
1027,
2696,
364,
999,
316,
1308,
4606,
8395,
1847,
4172,
273,
3536,
6387,
1368,
4592,
261,
4146,
350,
16,
1509,
13,
924,
7707,
9,
87,
17023,
9,
87,
8284,
8395,
468,
1188,
1671,
9499,
18,
11241,
16,
1847,
4172,
1930,
813,
468,
30064,
273,
2213,
3028,
72,
9,
3103,
72,
9,
3103,
72,
6,
738,
813,
18,
3729,
957,
1435,
10531,
23,
65,
468,
1509,
316,
24025,
17,
7020,
17,
449,
18629,
30,
7020,
740,
10074,
273,
2213,
3028,
72,
6456,
3103,
72,
6456,
3103,
72,
738,
3103,
72,
5319,
3103,
72,
6,
738,
813,
18,
3729,
957,
1435,
10531,
25,
65,
662,
273,
365,
18,
9216,
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,
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0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
2174,
12,
2890,
16,
29035,
4672,
3536,
6387,
87,
279,
1562,
1368,
326,
2145,
4606,
16,
1135,
563,
970,
1027,
2696,
364,
999,
316,
1308,
4606,
8395,
1847,
4172,
273,
3536,
6387,
1368,
4592,
261,
4146,
350,
16,
1509,
13,
924,
7707,
9,
87,
17023,
9,
87,
8284,
8395,
468,
1188,
1671,
9499,
18,
11241,
16,
1847,
4172,
1930,
813,
468,
30064,
273,
2213,
3028,
72,
9,
3103,
72,
9,
3103,
72,
6,
738,
813,
18,
3729,
957,
1435,
10531,
23,
65,
468,
1509,
316,
24025,
17,
7020,
17,
449,
18629,
30,
7020,
740,
10074,
273,
2213,
3028,
72,
6456,
3103,
72,
6456,
3103,
72,
738,
3103,
72,
5319,
3103,
72,
6,
738,
813,
18,
3729,
957,
2
] |
"""Extracts the data and validates it.
|
"""Extract the data and validates it.
|
def parseData(self, body): """Extracts the data and validates it.
|
e641081255cdd917b04677229fc0a80870817f29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/e641081255cdd917b04677229fc0a80870817f29/acl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
751,
12,
2890,
16,
1417,
4672,
3536,
12809,
326,
501,
471,
11964,
518,
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,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
751,
12,
2890,
16,
1417,
4672,
3536,
12809,
326,
501,
471,
11964,
518,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for n in ['calc_info','calc_info_debian']: calc_info = getattr(self,n,None) if calc_info is None: continue for p in self.local_prefixes + prefixes: if self.verbose: print ' Looking in',p,'...' calc_info(p) if self.has_info(): break if self.has_info(): break
|
if hasattr(self, 'calc_info'): self.calc_info()
|
def get_info(self): """ Return a dictonary with items that are compatible with scipy_distutils.setup keyword arguments. """ flag = 0 if not self.has_info(): flag = 1 if self.verbose: print self.__class__.__name__ + ':' for n in ['calc_info','calc_info_debian']: calc_info = getattr(self,n,None) if calc_info is None: continue for p in self.local_prefixes + prefixes: if self.verbose: print ' Looking in',p,'...' calc_info(p) if self.has_info(): break if self.has_info(): break if self.verbose: if not self.has_info(): print ' NOT AVAILABLE' self.set_info() else: print ' FOUND:' res = self.saved_results.get(self.__class__.__name__) if self.verbose and flag: for k,v in res.items(): print ' %s = %s'%(k,v) print return res
|
5082215ea3a74cc66a0da9e80094ec503d6ef185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5082215ea3a74cc66a0da9e80094ec503d6ef185/system_info.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
4672,
3536,
2000,
279,
2065,
265,
814,
598,
1516,
716,
854,
7318,
598,
10966,
67,
4413,
5471,
18,
8401,
4932,
1775,
18,
3536,
2982,
273,
374,
309,
486,
365,
18,
5332,
67,
1376,
13332,
2982,
273,
404,
309,
365,
18,
11369,
30,
1172,
365,
16186,
1106,
972,
16186,
529,
972,
397,
3921,
309,
3859,
12,
2890,
16,
296,
12448,
67,
1376,
11,
4672,
365,
18,
12448,
67,
1376,
1435,
309,
365,
18,
11369,
30,
309,
486,
365,
18,
5332,
67,
1376,
13332,
1172,
296,
225,
4269,
15068,
20027,
11,
365,
18,
542,
67,
1376,
1435,
469,
30,
1172,
296,
225,
17634,
5240,
2497,
400,
273,
365,
18,
14077,
67,
4717,
18,
588,
12,
2890,
16186,
1106,
972,
16186,
529,
972,
13,
309,
365,
18,
11369,
471,
2982,
30,
364,
417,
16,
90,
316,
400,
18,
3319,
13332,
1172,
296,
565,
738,
87,
273,
738,
87,
11,
17105,
79,
16,
90,
13,
1172,
327,
400,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
4672,
3536,
2000,
279,
2065,
265,
814,
598,
1516,
716,
854,
7318,
598,
10966,
67,
4413,
5471,
18,
8401,
4932,
1775,
18,
3536,
2982,
273,
374,
309,
486,
365,
18,
5332,
67,
1376,
13332,
2982,
273,
404,
309,
365,
18,
11369,
30,
1172,
365,
16186,
1106,
972,
16186,
529,
972,
397,
3921,
309,
3859,
12,
2890,
16,
296,
12448,
67,
1376,
11,
4672,
365,
18,
12448,
67,
1376,
1435,
309,
365,
18,
11369,
30,
309,
486,
365,
18,
5332,
67,
1376,
13332,
1172,
296,
225,
4269,
15068,
20027,
11,
365,
18,
542,
67,
1376,
1435,
469,
30,
1172,
296,
225,
17634,
5240,
2497,
400,
273,
365,
18,
14077,
67,
4717,
18,
588,
12,
2
] |
minPackageSize = self._config.get("packages/sizes/min-package", 0)
|
minPackageSize = self._job.get("packages/sizes/min-package", 0)
|
def evalPackagesConfig(smartExclude, classList, variants): # Reading configuration partsCfg = self._job.get("packages/parts", {}) collapseCfg = self._job.get("packages/collapse", []) minPackageSize = self._config.get("packages/sizes/min-package", 0) minPackageSizeForUnshared = self._config.get("packages/sizes/min-package-unshared", None) boot = self._job.get("packages/init", "boot")
|
10dc86142ee125b94cbd29fec5c33554c7ac16d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/10dc86142ee125b94cbd29fec5c33554c7ac16d7/Generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
11425,
809,
12,
26416,
12689,
16,
16035,
16,
12935,
4672,
225,
468,
31941,
1664,
2140,
8198,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
6019,
3113,
2618,
13,
13627,
8198,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
21405,
3113,
5378,
13,
1131,
2261,
1225,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
11914,
19,
1154,
17,
5610,
3113,
374,
13,
1131,
2261,
1225,
1290,
984,
11574,
273,
365,
6315,
1425,
18,
588,
2932,
10308,
19,
11914,
19,
1154,
17,
5610,
17,
318,
11574,
3113,
599,
13,
4835,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
2738,
3113,
315,
7137,
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,
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,
326,
22398,
316,
326,
981,
30,
1652,
5302,
11425,
809,
12,
26416,
12689,
16,
16035,
16,
12935,
4672,
225,
468,
31941,
1664,
2140,
8198,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
6019,
3113,
2618,
13,
13627,
8198,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
21405,
3113,
5378,
13,
1131,
2261,
1225,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
11914,
19,
1154,
17,
5610,
3113,
374,
13,
1131,
2261,
1225,
1290,
984,
11574,
273,
365,
6315,
1425,
18,
588,
2932,
10308,
19,
11914,
19,
1154,
17,
5610,
17,
318,
11574,
3113,
599,
13,
4835,
273,
365,
6315,
4688,
18,
588,
2932,
10308,
19,
2738,
3113,
315,
7137,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.arg(len(to_delete)),
|
.arg(len(to_delete)),
|
def _deleteUserSlot(self): try: to_delete = [] for i in self._user_list.getSelection(): to_delete.append(i["name"]) ret = QtGui.QMessageBox.question(self, self.trUtf8("%1 User löschen?") \ .arg(len(to_delete)), self.trUtf8("Sind Sie sicher, dass Sie die " \ "ausgewählten Benutzer löschen möchten?"), QtGui.QMessageBox.Yes , QtGui.QMessageBox.No) if ret == QtGui.QMessageBox.Yes: self._lockWidget(True, self.trUtf8("Benutzer werden gelöscht ...")) self._bscw_interface.deleteUser(to_delete) self._user_list.removeUser(to_delete) self._action(self._bscw_interface.deleteUser, self._unlockWidget, to_delete) except Exception, exception: # Fehlerdialog anzeigen err_dialog = ErrorDialog(exception, self) err_dialog.exec_()
|
264364269a301ec6020404f8aff8dc3b8f01916d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4919/264364269a301ec6020404f8aff8dc3b8f01916d/MainWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3733,
1299,
8764,
12,
2890,
4672,
775,
30,
358,
67,
3733,
273,
5378,
225,
364,
277,
316,
365,
6315,
1355,
67,
1098,
18,
588,
6233,
13332,
358,
67,
3733,
18,
6923,
12,
77,
9614,
529,
6,
5717,
225,
325,
273,
23425,
18,
53,
27647,
18,
4173,
12,
2890,
16,
365,
18,
313,
15230,
28,
27188,
21,
2177,
328,
132,
119,
28204,
275,
7225,
13,
521,
263,
3175,
12,
1897,
12,
869,
67,
3733,
13,
3631,
365,
18,
313,
15230,
28,
2932,
55,
728,
348,
1385,
272,
1354,
264,
16,
302,
428,
348,
1385,
10387,
315,
521,
315,
69,
407,
75,
359,
132,
102,
25356,
2253,
605,
275,
322,
24355,
328,
132,
119,
28204,
275,
312,
132,
119,
343,
2253,
7225,
3631,
23425,
18,
53,
27647,
18,
22352,
269,
23425,
18,
53,
27647,
18,
2279,
13,
225,
309,
325,
422,
23425,
18,
53,
27647,
18,
22352,
30,
365,
6315,
739,
4609,
12,
5510,
16,
365,
18,
313,
15230,
28,
2932,
38,
275,
322,
24355,
22646,
13002,
314,
292,
132,
119,
28204,
88,
18483,
3719,
365,
6315,
70,
1017,
91,
67,
5831,
18,
3733,
1299,
12,
869,
67,
3733,
13,
365,
6315,
1355,
67,
1098,
18,
4479,
1299,
12,
869,
67,
3733,
13,
365,
6315,
1128,
12,
2890,
6315,
70,
1017,
91,
67,
5831,
18,
3733,
1299,
16,
365,
6315,
26226,
4609,
16,
358,
67,
3733,
13,
225,
1335,
1185,
16,
1520,
30,
468,
5782,
76,
749,
12730,
392,
8489,
30577,
393,
67,
12730,
273,
1068,
6353,
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,
3733,
1299,
8764,
12,
2890,
4672,
775,
30,
358,
67,
3733,
273,
5378,
225,
364,
277,
316,
365,
6315,
1355,
67,
1098,
18,
588,
6233,
13332,
358,
67,
3733,
18,
6923,
12,
77,
9614,
529,
6,
5717,
225,
325,
273,
23425,
18,
53,
27647,
18,
4173,
12,
2890,
16,
365,
18,
313,
15230,
28,
27188,
21,
2177,
328,
132,
119,
28204,
275,
7225,
13,
521,
263,
3175,
12,
1897,
12,
869,
67,
3733,
13,
3631,
365,
18,
313,
15230,
28,
2932,
55,
728,
348,
1385,
272,
1354,
264,
16,
302,
428,
348,
1385,
10387,
315,
521,
315,
69,
407,
75,
359,
132,
102,
25356,
2253,
605,
275,
322,
24355,
328,
132,
119,
28204,
275,
312,
132,
119,
2
] |
res[lang] = {'code': lang}
|
res[lang]['code'] = lang
|
def read_string(self, cr, uid, id, langs, fields=None, context=None): if not context: context = {} res = {} res2 = {} self.pool.get('ir.model.access').check(cr, uid, 'ir.translation', 'read') if not fields: fields = self._columns.keys() + self._inherit_fields.keys() for lang in langs: res[lang] = {'code': lang} for f in fields: if f in self._columns: res_trans = self.pool.get('ir.translation')._get_source(cr, uid, self._name+','+f, 'field', lang) if res_trans: res[lang][f] = res_trans else: res[lang][f] = self._columns[f].string for table in self._inherits: cols = intersect(self._inherit_fields.keys(), fields) res2 = self.pool.get(table).read_string(cr, uid, id, langs, cols, context) for lang in res2: if lang in res: res[lang] = {'code': lang} for f in res2[lang]: res[lang][f] = res2[lang][f] return res
|
f25793c8ac7d6e58cb6f74e6e74ac97189169f6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/f25793c8ac7d6e58cb6f74e6e74ac97189169f6f/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1080,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
26467,
16,
1466,
33,
7036,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
400,
273,
2618,
400,
22,
273,
2618,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
3860,
16063,
1893,
12,
3353,
16,
4555,
16,
296,
481,
18,
10173,
2187,
296,
896,
6134,
309,
486,
1466,
30,
1466,
273,
365,
6315,
5112,
18,
2452,
1435,
397,
365,
6315,
6018,
67,
2821,
18,
2452,
1435,
364,
3303,
316,
26467,
30,
400,
63,
4936,
23962,
710,
3546,
273,
3303,
364,
284,
316,
1466,
30,
309,
284,
316,
365,
6315,
5112,
30,
400,
67,
2338,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
10173,
16063,
67,
588,
67,
3168,
12,
3353,
16,
4555,
16,
365,
6315,
529,
15,
17023,
15,
74,
16,
296,
1518,
2187,
3303,
13,
309,
400,
67,
2338,
30,
400,
63,
4936,
6362,
74,
65,
273,
400,
67,
2338,
469,
30,
400,
63,
4936,
6362,
74,
65,
273,
365,
6315,
5112,
63,
74,
8009,
1080,
364,
1014,
316,
365,
6315,
267,
20038,
30,
5347,
273,
9136,
12,
2890,
6315,
6018,
67,
2821,
18,
2452,
9334,
1466,
13,
400,
22,
273,
365,
18,
6011,
18,
588,
12,
2121,
2934,
896,
67,
1080,
12,
3353,
16,
4555,
16,
612,
16,
26467,
16,
5347,
16,
819,
13,
364,
3303,
316,
400,
22,
30,
309,
3303,
316,
400,
30,
400,
63,
4936,
23962,
710,
3546,
273,
3303,
364,
284,
316,
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,
855,
67,
1080,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
26467,
16,
1466,
33,
7036,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
400,
273,
2618,
400,
22,
273,
2618,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
3860,
16063,
1893,
12,
3353,
16,
4555,
16,
296,
481,
18,
10173,
2187,
296,
896,
6134,
309,
486,
1466,
30,
1466,
273,
365,
6315,
5112,
18,
2452,
1435,
397,
365,
6315,
6018,
67,
2821,
18,
2452,
1435,
364,
3303,
316,
26467,
30,
400,
63,
4936,
23962,
710,
3546,
273,
3303,
364,
284,
316,
1466,
30,
309,
284,
316,
365,
6315,
5112,
30,
400,
67,
2338,
273,
365,
18,
6011,
18,
588,
2668,
2
] |
None,
|
[],
|
def build(self, config): if not self.wants_package(): return
|
fb3c47fee9dd51cc20d076b14a9af7c453afdb68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/fb3c47fee9dd51cc20d076b14a9af7c453afdb68/bootstrap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
642,
4672,
309,
486,
365,
18,
91,
4388,
67,
5610,
13332,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
statusbar = Statusbar( scr, main_win, ".:: <C-d> Exit <C-r> Rewind <F2> Save <F8> Pastebin ::.", (cols["g"]) *cols["y"] +1 ) return main_win, statusbar
|
statusbar = Statusbar( scr, main_win, ".:: <C-d> Exit <C-r> Rewind <F2> Save <F8> Pastebin ::.", (cols["g"]) *cols["y"] +1 ) return main_win, statusbar
|
def init_wins( scr, cols ): """Initialise the two windows (the main repl interface and the little status bar at the bottom with some stuff in it)"""
|
c6361de06b71b20ac271f61d115e6c3b39ce82c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/c6361de06b71b20ac271f61d115e6c3b39ce82c6/bpython.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
91,
2679,
12,
11991,
16,
5347,
262,
30,
3536,
4435,
784,
326,
2795,
9965,
261,
5787,
2774,
6831,
1560,
471,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
91,
2679,
12,
11991,
16,
5347,
262,
30,
3536,
4435,
784,
326,
2795,
9965,
261,
5787,
2774,
6831,
1560,
471,
326,
12720,
1267,
4653,
622,
326,
5469,
598,
2690,
10769,
316,
518,
15574,
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
] |
str = string.split(str, '.')[-1] return (str and str[0]=='_' and str[-1]!='_')
|
if str == '...': return 0 for piece in str.split('.'): if piece[0] == '_' and piece[-1] != '_': return 1 return 0
|
def _is_private(self, str): """ @return: true if C{str} is the name of a private Python object. @rtype: C{boolean} """ str = string.split(str, '.')[-1] return (str and str[0]=='_' and str[-1]!='_')
|
dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
1152,
12,
2890,
16,
609,
4672,
3536,
632,
2463,
30,
638,
309,
385,
95,
701,
97,
353,
326,
508,
434,
279,
3238,
6600,
733,
18,
632,
86,
723,
30,
385,
95,
6494,
97,
3536,
309,
609,
422,
20243,
30,
327,
374,
364,
11151,
316,
609,
18,
4939,
2668,
1093,
4672,
309,
11151,
63,
20,
65,
422,
4427,
471,
11151,
18919,
21,
65,
480,
2070,
4278,
327,
404,
327,
374,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
291,
67,
1152,
12,
2890,
16,
609,
4672,
3536,
632,
2463,
30,
638,
309,
385,
95,
701,
97,
353,
326,
508,
434,
279,
3238,
6600,
733,
18,
632,
86,
723,
30,
385,
95,
6494,
97,
3536,
309,
609,
422,
20243,
30,
327,
374,
364,
11151,
316,
609,
18,
4939,
2668,
1093,
4672,
309,
11151,
63,
20,
65,
422,
4427,
471,
11151,
18919,
21,
65,
480,
2070,
4278,
327,
404,
327,
374,
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
] |
int dim[2] = {Nknots[0]-m, m};
|
npy_intp dim[2] = {Nknots[0]-m, m};
|
def setup_bspline_module(): """ Builds an extension module with Bspline basis calculators using weave. """ mod = ext_tools.ext_module('_bspline', compiler='gcc') knots = N.linspace(0,1,11).astype(N.float64) nknots = knots.shape[0] x = N.array([0.4,0.5], N.float64) nx = x.shape[0] m = 4 d = 0 lower = 0 upper = 13 # Bspline code in C eval_code = ''' double *bspline(double **output, double *x, int nx, double *knots, int nknots, int m, int d, int lower, int upper) { int nbasis; int index, i, j, k; double *result, *b, *b0, *b1; double *f0, *f1; double denom; nbasis = upper - lower; result = *((double **) output); f0 = (double *) malloc(sizeof(*f0) * nx); f1 = (double *) malloc(sizeof(*f1) * nx); if (m == 1) { for(i=0; i<nbasis; i++) { index = i + lower; if(index < nknots - 1) { if ((knots[index] != knots[index+1]) && (d <= 0)) { for (k=0; k<nx; k++) { *result = (double) (x[k] >= knots[index]) * (x[k] < knots[index+1]); result++; } } else { for (k=0; k<nx; k++) { *result = 0.; result++; } } } else { for (k=0; k<nx; k++) { *result = 0.; result++; } } } } else { b = (double *) malloc(sizeof(*b) * (nbasis+1) * nx); bspline(&b, x, nx, knots, nknots, m-1, d-1, lower, upper+1); for(i=0; i<nbasis; i++) { b0 = b + nx*i; b1 = b + nx*(i+1); index = i+lower; if ((knots[index] != knots[index+m-1]) && (index+m-1 < nknots)) { denom = knots[index+m-1] - knots[index]; if (d <= 0) { for (k=0; k<nx; k++) { f0[k] = (x[k] - knots[index]) / denom; } } else { for (k=0; k<nx; k++) { f0[k] = (m-1) / (knots[index+m-1] - knots[index]); } } } else { for (k=0; k<nx; k++) { f0[k] = 0.; } } index = i+lower+1; if ((knots[index] != knots[index+m-1]) && (index+m-1 < nknots)) { denom = knots[index+m-1] - knots[index]; if (d <= 0) { for (k=0; k<nx; k++) { f1[k] = (knots[index+m-1] - x[k]) / denom; } } else { for (k=0; k<nx; k++) { f1[k] = -(m-1) / (knots[index+m-1] - knots[index]); } } } else { for (k=0; k<nx; k++) { f1[k] = 0.; } } for (k=0; k<nx; k++) { *result = f0[k]*(*b0) + f1[k]*(*b1); b0++; b1++; result++; } } free(b); } free(f0); free(f1); result = result - nx * nbasis; return(result); } ''' eval_ext_code = ''' int dim[2] = {upper-lower, Nx[0]}; PyArrayObject *basis; double *data; basis = (PyArrayObject *) PyArray_SimpleNew(2, dim, PyArray_DOUBLE); data = (double *) basis->data; bspline(&data, x, Nx[0], knots, Nknots[0], m, d, lower, upper); return_val = (PyObject *) basis; ''' bspline_eval = ext_tools.ext_function('evaluate', eval_ext_code, ['x', 'knots', 'm', 'd', 'lower', 'upper']) mod.add_function(bspline_eval) bspline_eval.customize.add_support_code(eval_code) nq = 18 qx, qw = scipy.special.orthogonal.p_roots(nq) dl = dr = 2 gram_code = ''' double *bspline_prod(double *x, int nx, double *knots, int nknots, int m, int l, int r, int dl, int dr) { double *result, *bl, *br; int k; if (fabs(r - l) <= m) { result = (double *) malloc(sizeof(*result) * nx); bl = (double *) malloc(sizeof(*bl) * nx); br = (double *) malloc(sizeof(*br) * nx); bl = bspline(&bl, x, nx, knots, nknots, m, dl, l, l+1); br = bspline(&br, x, nx, knots, nknots, m, dr, r, r+1); for (k=0; k<nx; k++) { result[k] = bl[k] * br[k]; } free(bl); free(br); } else { for (k=0; k<nx; k++) { result[k] = 0.; } } return(result); } double bspline_quad(double *knots, int nknots, int m, int l, int r, int dl, int dr) /* This is based on scipy.integrate.fixed_quad */ { double *y; double qx[%(nq)d]={%(qx)s}; double qw[%(nq)d]={%(qw)s}; double x[%(nq)d]; int nq=%(nq)d; int k, kk; int lower, upper; double result, a, b, partial; result = 0; /* TO DO: figure out knot span more efficiently */ lower = l - m - 1; if (lower < 0) { lower = 0;} upper = lower + 2 * m + 4; if (upper > nknots - 1) {upper = nknots-1;}
|
b6ac452f1e9fa776dec03294acafc891d6bb3877 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/b6ac452f1e9fa776dec03294acafc891d6bb3877/bspline_module.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2038,
412,
558,
67,
2978,
13332,
3536,
3998,
87,
392,
2710,
1605,
598,
605,
13106,
558,
10853,
3026,
3062,
1450,
732,
836,
18,
3536,
225,
681,
273,
1110,
67,
6642,
18,
408,
67,
2978,
2668,
67,
2038,
412,
558,
2187,
5274,
2218,
75,
952,
6134,
22278,
87,
273,
423,
18,
80,
15738,
12,
20,
16,
21,
16,
2499,
2934,
689,
388,
12,
50,
18,
5659,
1105,
13,
29402,
902,
87,
273,
22278,
87,
18,
4867,
63,
20,
65,
619,
273,
423,
18,
1126,
3816,
20,
18,
24,
16,
20,
18,
25,
6487,
423,
18,
5659,
1105,
13,
9264,
273,
619,
18,
4867,
63,
20,
65,
312,
273,
1059,
302,
273,
374,
2612,
273,
374,
3854,
273,
5958,
225,
468,
605,
13106,
558,
981,
316,
385,
5302,
67,
710,
273,
9163,
1645,
380,
2038,
412,
558,
12,
9056,
2826,
2844,
16,
1645,
380,
92,
16,
509,
9264,
16,
1645,
380,
79,
902,
87,
16,
509,
29402,
902,
87,
16,
509,
312,
16,
509,
302,
16,
509,
2612,
16,
509,
3854,
13,
288,
509,
4264,
17247,
31,
509,
770,
16,
277,
16,
525,
16,
417,
31,
1645,
380,
2088,
16,
380,
70,
16,
380,
70,
20,
16,
380,
70,
21,
31,
1645,
380,
74,
20,
16,
380,
74,
21,
31,
1645,
10716,
31,
225,
4264,
17247,
273,
3854,
300,
2612,
31,
225,
563,
273,
380,
12443,
9056,
2826,
13,
876,
1769,
284,
20,
273,
261,
9056,
380,
13,
312,
9853,
12,
1467,
792,
30857,
74,
20,
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,
3875,
67,
2038,
412,
558,
67,
2978,
13332,
3536,
3998,
87,
392,
2710,
1605,
598,
605,
13106,
558,
10853,
3026,
3062,
1450,
732,
836,
18,
3536,
225,
681,
273,
1110,
67,
6642,
18,
408,
67,
2978,
2668,
67,
2038,
412,
558,
2187,
5274,
2218,
75,
952,
6134,
22278,
87,
273,
423,
18,
80,
15738,
12,
20,
16,
21,
16,
2499,
2934,
689,
388,
12,
50,
18,
5659,
1105,
13,
29402,
902,
87,
273,
22278,
87,
18,
4867,
63,
20,
65,
619,
273,
423,
18,
1126,
3816,
20,
18,
24,
16,
20,
18,
25,
6487,
423,
18,
5659,
1105,
13,
9264,
273,
619,
18,
4867,
63,
20,
65,
312,
273,
1059,
302,
273,
374,
2612,
273,
374,
3854,
273,
2
] |
self._tk.deletecommand(cbname)
|
self._master.deletecommand(cbname)
|
def trace_vdelete(self, mode, cbname): self._tk.call("trace", "vdelete", self._name, mode, cbname) self._tk.deletecommand(cbname)
|
0001a11986a17a94f1bf16df92b57df358d56958 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0001a11986a17a94f1bf16df92b57df358d56958/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
90,
3733,
12,
2890,
16,
1965,
16,
2875,
529,
4672,
365,
6315,
16099,
18,
1991,
2932,
5129,
3113,
315,
90,
3733,
3113,
365,
6315,
529,
16,
1965,
16,
2875,
529,
13,
365,
6315,
16099,
18,
19003,
30433,
889,
12,
7358,
529,
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,
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
529,
16,
1965,
16,
2875,
529,
13,
365,
6315,
16099,
18,
19003,
30433,
889,
12,
7358,
529,
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
] |
WHERE a.id in (' + ','.join([str(x) for x in ids]) + ') \ GROUP BY a.id')
|
WHERE a.id in (" + ",".join([str(x) for x in ids]) + ") \ GROUP BY a.id")
|
def _sheet(self, cursor, user, ids, name, args, context): sheet_obj = self.pool.get('hr_timesheet_sheet.sheet')
|
b563f23652c9dbc74e61cb4facfce4e6c07d4b66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b563f23652c9dbc74e61cb4facfce4e6c07d4b66/hr_timesheet_sheet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8118,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
6202,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
67,
8293,
2963,
67,
8118,
18,
8118,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8118,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
6202,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7256,
67,
8293,
2963,
67,
8118,
18,
8118,
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,
-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 ValueError, "invalid entry"
|
raise ValueError, "index (%d) out of range (0<=index<=%d) "\ "in dimension %d" % (obj, N, axis)
|
def insertinto(arr, obj, values, axis=None): """Return a new array with values inserted along the given axis before the given indices If axis is None, then ravel the array first. The obj argument can be an integer, a slice, or a sequence of integers. Example: >>> a = array([[1,2,3], [4,5,6], [7,8,9]]) >>> insertinto(a, [1,2], [[4],[5]], axis=0) array([[1,2,3], [4,4,4], [4,5,6], [5,5,5], [7,8,9]) """ try: wrap = arr.__array_wrap__ except AttributeError: wrap = None arr = asarray(arr) ndim = arr.ndim if axis is None: if ndim != 1: arr = arr.ravel() ndim = arr.ndim axis = ndim-1 if (ndim == 0): arr = arr.copy() arr[...] = values if wrap: return wrap(arr) else: return arr slobj = [slice(None)]*ndim N = arr.shape[axis] newshape = list(arr.shape) if isinstance(obj, (int, long, integer)): if (obj < 0): obj += N if (obj < 0 or obj >=N): raise ValueError, "invalid entry" newshape[axis] += 1; new = empty(newshape, arr.dtype, arr.flags.fnc) slobj[axis] = slice(None, obj) new[slobj] = arr[slobj] slobj[axis] = obj new[slobj] = values slobj[axis] = slice(obj+1,None) slobj2 = [slice(None)]*ndim slobj2[axis] = slice(obj,None) new[slobj] = arr[slobj2] if wrap: return wrap(new) return new elif isinstance(obj, slice): # turn it into a range object obj = arange(*obj.indices(N),**{'dtype':intp}) # get two sets of indices # one is the indices which will hold the new stuff # two is the indices where arr will be copied over obj = asarray(obj, dtype=intp) numnew = len(obj) index1 = obj + arange(numnew) index2 = setdiff1d(arange(numnew+N),index1) newshape[axis] += numnew new = empty(newshape, arr.dtype, arr.flags.fnc) slobj2 = [slice(None)]*ndim slobj[axis] = index1 slobj2[axis] = index2 new[slobj] = values new[slobj2] = arr if wrap: return wrap(new) return new
|
d42af63df8fbc4c275aa0b7e017dc153b39158ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/d42af63df8fbc4c275aa0b7e017dc153b39158ce/function_base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
16,
1508,
15910,
326,
526,
1122,
18,
225,
1021,
1081,
1237,
848,
506,
392,
3571,
16,
279,
2788,
16,
578,
279,
3102,
434,
12321,
18,
225,
5090,
30,
4080,
279,
273,
526,
3816,
63,
21,
16,
22,
16,
23,
6487,
306,
24,
16,
25,
16,
26,
6487,
306,
27,
16,
28,
16,
29,
65,
5717,
225,
4080,
2243,
18591,
12,
69,
16,
306,
21,
16,
22,
6487,
12167,
24,
6487,
63,
25,
65,
6487,
2654,
33,
20,
13,
526,
3816,
63,
21,
16,
22,
16,
23,
6487,
306,
24,
16,
24,
16,
24,
6487,
306,
24,
16,
25,
16,
26,
6487,
306,
25,
16,
25,
16,
25,
6487,
306,
27,
16,
28,
16,
29,
5717,
3536,
775,
30,
2193,
273,
2454,
16186,
1126,
67,
4113,
972,
1335,
6394,
30,
2193,
273,
599,
225,
2454,
273,
10455,
12,
5399,
13,
9209,
273,
2454,
18,
82,
3509,
309,
2654,
353,
599,
30,
309,
9209,
480,
404,
30,
2454,
273,
2454,
18,
354,
941,
1435,
9209,
273,
2454,
18,
82,
3509,
2654,
273,
9209,
17,
21,
309,
261,
82,
3509,
422,
374,
4672,
2454,
273,
2454,
18,
3530,
1435,
2454,
63,
2777,
65,
273,
924,
309,
2193,
30,
327,
2193,
12,
5399,
13,
469,
30,
327,
2454,
272,
383,
441,
273,
306,
6665,
12,
7036,
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,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
16,
1508,
15910,
326,
526,
1122,
18,
225,
1021,
1081,
1237,
848,
506,
392,
3571,
16,
279,
2788,
16,
578,
279,
3102,
434,
12321,
18,
225,
5090,
30,
4080,
279,
273,
526,
3816,
63,
21,
16,
22,
16,
23,
6487,
306,
24,
16,
25,
16,
26,
6487,
306,
27,
16,
28,
16,
29,
65,
5717,
225,
4080,
2243,
18591,
12,
69,
16,
306,
21,
16,
22,
6487,
12167,
24,
6487,
63,
25,
65,
6487,
2654,
33,
20,
13,
526,
3816,
63,
21,
16,
22,
2
] |
""" c = [[x+1] for x in range(n)] c[n-1] = [] return LatticePoset(c)
|
TESTS: Check that sage: Posets.ChainPoset(0) Finite lattice containing 0 elements sage: C = Posets.ChainPoset(1); C Finite lattice containing 1 elements sage: C.cover_relations() [] sage: C = Posets.ChainPoset(2); C Finite lattice containing 2 elements sage: C.cover_relations() [[0, 1]] """ return LatticePoset((range(n), [[x,x+1] for x in range(n-1)]))
|
def ChainPoset(self, n): """ Returns a chain (a totally ordered poset) containing ``n`` elements.
|
b032b0345bd293a97a5c2d704129f7946f61a4de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b032b0345bd293a97a5c2d704129f7946f61a4de/poset_examples.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7824,
1616,
278,
12,
2890,
16,
290,
4672,
3536,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7824,
1616,
278,
12,
2890,
16,
290,
4672,
3536,
2860,
279,
2687,
261,
69,
9997,
1230,
5901,
949,
278,
13,
4191,
12176,
82,
10335,
2186,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: body = [output, extra] except NameError: body = [output]
|
body = [output]
|
def perform_modifyfieldtags(fldID, ln=cdslang, callback='yes', content='', confirm=-1): """show the sort fields of this collection..""" output = '' fld_dict = dict(get_def_name('', "field")) fld_type = get_fld_nametypes() fldID = int(fldID) subtitle = """<a name="4"></a>3. Modify MARC tags for the logical field '%s'   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) output = """<dl> <dt>Menu</dt> <dd><a href="%s/admin/bibindex/bibindexadmin.py/addtag?fldID=%s&ln=%s#4.1">Add MARC tag</a></dd> <dd><a href="%s/admin/bibindex/bibindexadmin.py/deletetag?fldID=%s&ln=%s#4.1">Delete unused MARC tags</a></dd> </dl> """ % (weburl, fldID, ln, weburl, fldID, ln) header = ['', 'Value', 'Comment', 'Actions'] actions = [] res = get_fld_tags(fldID) if len(res) > 0: i = 0 for (fldID, tagID, tname, tvalue, score) in res: move = "" if i != 0: move += """<a href="%s/admin/bibindex/bibindexadmin.py/switchtagscore?fldID=%s&id_1=%s&id_2=%s&ln=%s&=rand=%s#4"><img border="0" src="%s/img/smallup.gif" title="Move tag up"></a>""" % (weburl, fldID, tagID, res[i - 1][1], ln, random.randint(0, 1000), weburl) else: move += " " i += 1 if i != len(res): move += '<a href="%s/admin/bibindex/bibindexadmin.py/switchtagscore?fldID=%s&id_1=%s&id_2=%s&ln=%s&rand=%s#4"><img border="0" src="%s/img/smalldown.gif" title="Move tag down"></a>' % (weburl, fldID, tagID, res[i][1], ln, random.randint(0, 1000), weburl) actions.append([move, tvalue, tname]) for col in [(('Details','showdetailsfieldtag'), ('Modify','modifytag'),('Remove','removefieldtag'),)]: actions[-1].append('<a href="%s/admin/bibindex/bibindexadmin.py/%s?fldID=%s&tagID=%s&ln=%s#4.1">%s</a>' % (weburl, col[0][1], fldID, tagID, ln, col[0][0])) for (str, function) in col[1:]: actions[-1][-1] += ' / <a href="%s/admin/bibindex/bibindexadmin.py/%s?fldID=%s&tagID=%s&ln=%s#4.1">%s</a>' % (weburl, function, fldID, tagID, ln, str) output += tupletotable(header=header, tuple=actions) else: output += """No fields exists""" output += content try: body = [output, extra] except NameError: body = [output] if callback: return perform_editfield(fldID, ln, "perform_modifyfieldtags", addadminbox(subtitle, body)) else: return addadminbox(subtitle, body)
|
2bfebc745d97514fe63c0e385bb842bede8f697e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2bfebc745d97514fe63c0e385bb842bede8f697e/bibindexadminlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
17042,
1518,
4156,
12,
19794,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1524,
1466,
434,
333,
1849,
838,
8395,
225,
876,
273,
875,
225,
9880,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
1518,
6,
3719,
9880,
67,
723,
273,
336,
67,
19794,
67,
17808,
15180,
1435,
9880,
734,
273,
509,
12,
19794,
734,
13,
225,
20281,
273,
3536,
32,
69,
508,
1546,
24,
13762,
69,
34,
23,
18,
9518,
490,
27206,
2342,
364,
326,
6374,
652,
1995,
87,
11,
10,
10600,
10,
10600,
10,
10600,
32,
12019,
23224,
32,
69,
2077,
1546,
9704,
7343,
6,
3897,
11613,
87,
19,
3666,
19,
70,
495,
1615,
19,
12118,
18,
2620,
6441,
35,
1757,
69,
34,
65,
1757,
12019,
2984,
3660,
738,
261,
19794,
67,
1576,
63,
474,
12,
19794,
734,
13,
6487,
3311,
718,
13,
876,
273,
3536,
32,
5761,
34,
411,
7510,
34,
4599,
1757,
7510,
34,
411,
449,
4438,
69,
3897,
11613,
87,
19,
3666,
19,
70,
495,
1615,
19,
70,
495,
1615,
3666,
18,
2074,
19,
1289,
2692,
35,
19794,
734,
5095,
87,
10,
931,
31,
2370,
5095,
87,
7,
24,
18,
21,
6441,
986,
490,
27206,
1047,
1757,
69,
4695,
449,
34,
411,
449,
4438,
69,
3897,
11613,
87,
19,
3666,
19,
70,
495,
1615,
19,
70,
495,
1615,
3666,
18,
2074,
19,
19003,
20788,
35,
19794,
734,
5095,
87,
10,
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,
3073,
67,
17042,
1518,
4156,
12,
19794,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1524,
1466,
434,
333,
1849,
838,
8395,
225,
876,
273,
875,
225,
9880,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
1518,
6,
3719,
9880,
67,
723,
273,
336,
67,
19794,
67,
17808,
15180,
1435,
9880,
734,
273,
509,
12,
19794,
734,
13,
225,
20281,
273,
3536,
32,
69,
508,
1546,
24,
13762,
69,
34,
23,
18,
9518,
490,
27206,
2342,
364,
326,
6374,
652,
1995,
87,
11,
10,
10600,
10,
10600,
10,
10600,
32,
12019,
23224,
32,
69,
2077,
1546,
9704,
7343,
6,
2
] |
naive = datetime.utcfromtimestamp(float(record.createdOn)) inUTC = naive.replace(tzinfo=utc) createdOn = inUTC.astimezone(ICUtzinfo.default)
|
createdOn = decimalToDatetime(record.createdOn)
|
def resolveConflicts(self, conflicts): for conflict in conflicts:
|
db65a535f563f626d53b426cfed1d330e320961b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/db65a535f563f626d53b426cfed1d330e320961b/translator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
30897,
12,
2890,
16,
14450,
4672,
364,
7546,
316,
14450,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
326,
981,
30,
1652,
2245,
30897,
12,
2890,
16,
14450,
4672,
364,
7546,
316,
14450,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 eID == self.ID_WINDOW_BOTTOM:
|
elif eobj is self.bottomWindow: self.log.write('bottomwin received drag event')
|
def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return
|
6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
55,
961,
11728,
12,
2890,
16,
871,
4672,
309,
871,
18,
967,
11728,
1482,
1435,
422,
7075,
18,
5233,
2664,
67,
8608,
67,
5069,
67,
3932,
67,
15928,
30,
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,
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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,
2755,
55,
961,
11728,
12,
2890,
16,
871,
4672,
309,
871,
18,
967,
11728,
1482,
1435,
422,
7075,
18,
5233,
2664,
67,
8608,
67,
5069,
67,
3932,
67,
15928,
30,
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,
-100
] |
print collections.query
|
def search(self, request, type = None): """Perform a search through collections and items metadata""" collections = MediaCollection.objects.enriched() items = MediaItem.objects.enriched() input = request.REQUEST criteria = {}
|
50d4f5e20af4ae63a6c5b9aa9ec1e66ceb24e5f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12043/50d4f5e20af4ae63a6c5b9aa9ec1e66ceb24e5f6/base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
590,
16,
618,
273,
599,
4672,
3536,
4990,
279,
1623,
3059,
6980,
471,
1516,
1982,
8395,
6980,
273,
6128,
2532,
18,
6911,
18,
275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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
590,
16,
618,
273,
599,
4672,
3536,
4990,
279,
1623,
3059,
6980,
471,
1516,
1982,
8395,
6980,
273,
6128,
2532,
18,
6911,
18,
275,
12761,
329,
1435,
1516,
273,
6128,
1180,
18,
6911,
18,
275,
12761,
329,
1435,
810,
273,
590,
18,
5519,
3582,
273,
2618,
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
] |
|
allResults.extend(res['Value'])
|
allResults.extend( res['Value'] )
|
def __gfalls_wrapper(self,urls,depth): """ This is a function that can be reused everywhere to perform the gfal_ls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['srmv2_lslevels'] = depth
|
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
5014,
273,
2618,
13828,
287,
5014,
3292,
1886,
542,
388,
3546,
273,
296,
87,
8864,
90,
22,
11,
13828,
287,
5014,
3292,
2135,
67,
16410,
2835,
67,
1893,
3546,
273,
404,
13828,
287,
5014,
3292,
87,
8864,
90,
22,
67,
3251,
12095,
3546,
273,
3598,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
5014,
273,
2618,
13828,
287,
5014,
3292,
1886,
542,
388,
3546,
273,
296,
87,
8864,
90,
22,
11,
13828,
287,
5014,
3292,
2135,
67,
16410,
2835,
67,
1893,
3546,
273,
404,
13828,
287,
5014,
3292,
87,
8864,
90,
22,
67,
3251,
12095,
3546,
273,
3598,
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
] |
opts, args = getopt.getopt(sys.argv[1:], 'hn:s:v', ['help'])
|
opts, args = getopt.getopt(sys.argv[1:], 'hgn:s:v', ['help'])
|
def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'hn:s:v', ['help']) except getopt.error, msg: usage(1, msg) n = None verbose = False for opt, arg in opts: if opt in ('-h', '--help'): usage(0) elif opt == '-s': random.seed(int(arg)) elif opt == '-n': n = int(arg) elif opt == '-v': verbose = True if n is None or n <= 1: usage(1, "an -n value > 1 is required") if len(args) < 2: usage(1, "input mbox name and output base path are required") inputpaths, outputbasepath = args[:-1], args[-1] outdirs = [outputbasepath + ("%d" % i) for i in range(1, n+1)] for dir in outdirs: if not os.path.isdir(dir): os.makedirs(dir) counter = 0 for inputpath in inputpaths: mbox = mboxutils.getmbox(inputpath) for msg in mbox: i = random.randrange(n) astext = str(msg) #assert astext.endswith('\n') counter += 1 msgfile = open('%s/%d' % (outdirs[i], counter), 'wb') msgfile.write(astext) msgfile.close() if verbose: if counter % 100 == 0: sys.stdout.write('.') sys.stdout.flush() if verbose: print print counter, "messages split into", n, "directories"
|
d72c975e703e1c9c56cc9bb1267a92f93aaa15ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/d72c975e703e1c9c56cc9bb1267a92f93aaa15ac/splitndirs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
1600,
30,
87,
30,
90,
2187,
10228,
5201,
19486,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
12,
21,
16,
1234,
13,
225,
290,
273,
599,
3988,
273,
1083,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7707,
17,
76,
2187,
3534,
5201,
11,
4672,
4084,
12,
20,
13,
1327,
2153,
422,
2400,
87,
4278,
2744,
18,
12407,
12,
474,
12,
3175,
3719,
1327,
2153,
422,
2400,
82,
4278,
290,
273,
509,
12,
3175,
13,
1327,
2153,
422,
2400,
90,
4278,
3988,
273,
1053,
225,
309,
290,
353,
599,
578,
290,
1648,
404,
30,
4084,
12,
21,
16,
315,
304,
300,
82,
460,
405,
404,
353,
1931,
7923,
225,
309,
562,
12,
1968,
13,
411,
576,
30,
4084,
12,
21,
16,
315,
2630,
312,
2147,
508,
471,
876,
1026,
589,
854,
1931,
7923,
810,
4481,
16,
876,
1969,
803,
273,
833,
10531,
17,
21,
6487,
833,
18919,
21,
65,
225,
596,
8291,
273,
306,
2844,
1969,
803,
397,
7566,
9,
72,
6,
738,
277,
13,
364,
277,
316,
1048,
12,
21,
16,
290,
15,
21,
25887,
364,
1577,
316,
596,
8291,
30,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
1214,
4672,
1140,
18,
81,
9477,
10539,
12,
1214,
13,
225,
3895,
273,
374,
364,
810,
803,
316,
810,
4481,
30,
312,
2147,
273,
312,
2147,
5471,
18,
588,
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,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
1600,
30,
87,
30,
90,
2187,
10228,
5201,
19486,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
12,
21,
16,
1234,
13,
225,
290,
273,
599,
3988,
273,
1083,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
316,
7707,
17,
76,
2187,
3534,
5201,
11,
4672,
4084,
12,
20,
13,
1327,
2153,
422,
2400,
87,
4278,
2744,
18,
12407,
12,
474,
12,
3175,
3719,
1327,
2153,
422,
2400,
82,
4278,
290,
273,
509,
12,
3175,
13,
1327,
2153,
422,
2400,
90,
4278,
3988,
273,
1053,
225,
309,
290,
353,
599,
578,
290,
1648,
2
] |
self.preloadimg_next_pixbuf_original = None
|
self.preloadimg_next_in_list = -1
|
def parse_action_command(self, command, batchmode): self.running_custom_actions = True self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() self.curr_custom_action = 0 if batchmode == True: self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_actions): self.curr_custom_action += 1 self.update_statusbar() while gtk.events_pending(): gtk.main_iteration() imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.num_custom_actions = 1 self.curr_custom_action = 1 self.update_statusbar() while gtk.events_pending(): gtk.main_iteration() self.parse_action_command2(command, self.currimg_name) gc.collect() self.change_cursor(None) # Refresh the current image or any preloaded needed if they have changed: if os.path.exists(self.currimg_name) == False: self.currimg_pixbuf_original = None self.image_load_failed(False) else: animtest = gtk.gdk.PixbufAnimation(self.currimg_name) if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.currimg_pixbuf_original): self.load_new_image(False, False, False, True, False) else: if self.images_are_different(animtest, self.currimg_pixbuf_original): self.load_new_image(False, False, False, True, False) self.running_custom_actions = False self.update_statusbar() while gtk.events_pending(): gtk.main_iteration() if os.path.exists(self.preloadimg_prev_name) == False: self.preloadimg_prev_pixbuf_original = None else: animtest = gtk.gdk.PixbufAnimation(self.preloadimg_prev_name) if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.preloadimg_prev_pixbuf_original): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) else: if self.images_are_different(animtest, self.preloadimg_prev_pixbuf_original): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) if os.path.exists(self.preloadimg_next_name) == False: self.preloadimg_next_pixbuf_original = None else: animtest = gtk.gdk.PixbufAnimation(self.preloadimg_next_name) if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.preloadimg_next_pixbuf_original): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) else: if self.images_are_different(animtest, self.preloadimg_next_pixbuf_original): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False)
|
b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1128,
67,
3076,
12,
2890,
16,
1296,
16,
2581,
3188,
4672,
365,
18,
8704,
67,
3662,
67,
4905,
273,
1053,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
59,
5858,
3719,
1323,
22718,
18,
5989,
67,
9561,
13332,
22718,
18,
5254,
67,
16108,
1435,
365,
18,
17016,
67,
3662,
67,
1128,
273,
374,
309,
2581,
3188,
422,
1053,
30,
365,
18,
2107,
67,
3662,
67,
4905,
273,
562,
12,
2890,
18,
2730,
67,
1098,
13,
364,
277,
316,
1048,
12,
2890,
18,
2107,
67,
3662,
67,
4905,
4672,
365,
18,
17016,
67,
3662,
67,
1128,
1011,
404,
365,
18,
2725,
67,
2327,
3215,
1435,
1323,
22718,
18,
5989,
67,
9561,
13332,
22718,
18,
5254,
67,
16108,
1435,
8902,
1069,
273,
365,
18,
2730,
67,
1098,
63,
77,
65,
365,
18,
2670,
67,
1128,
67,
3076,
22,
12,
3076,
16,
8902,
1069,
13,
469,
30,
365,
18,
2107,
67,
3662,
67,
4905,
273,
404,
365,
18,
17016,
67,
3662,
67,
1128,
273,
404,
365,
18,
2725,
67,
2327,
3215,
1435,
1323,
22718,
18,
5989,
67,
9561,
13332,
22718,
18,
5254,
67,
16108,
1435,
365,
18,
2670,
67,
1128,
67,
3076,
22,
12,
3076,
16,
365,
18,
17016,
6081,
67,
529,
13,
8859,
18,
14676,
1435,
365,
18,
3427,
67,
9216,
12,
7036,
13,
468,
14179,
326,
783,
1316,
578,
1281,
675,
4230,
3577,
309,
2898,
1240,
3550,
30,
309,
1140,
18,
803,
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,
1109,
67,
1128,
67,
3076,
12,
2890,
16,
1296,
16,
2581,
3188,
4672,
365,
18,
8704,
67,
3662,
67,
4905,
273,
1053,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
59,
5858,
3719,
1323,
22718,
18,
5989,
67,
9561,
13332,
22718,
18,
5254,
67,
16108,
1435,
365,
18,
17016,
67,
3662,
67,
1128,
273,
374,
309,
2581,
3188,
422,
1053,
30,
365,
18,
2107,
67,
3662,
67,
4905,
273,
562,
12,
2890,
18,
2730,
67,
1098,
13,
364,
277,
316,
1048,
12,
2890,
18,
2107,
67,
3662,
67,
4905,
4672,
365,
18,
17016,
67,
3662,
67,
1128,
1011,
404,
365,
18,
2725,
67,
2327,
3215,
1435,
2
] |
""" Closes the connection, squelching any exceptions. """
|
""" Closes the (already unwrapped) connection, squelching any exceptions."""
|
def _safe_close(self, conn, quiet = False): """ Closes the connection, squelching any exceptions. """ try: conn.close() except KeyboardInterrupt: raise except AttributeError: pass # conn is None, or junk except: if not quiet: print "Connection.close raised: %s" % (sys.exc_info()[1])
|
198e6052b67f53d9b25c1f08c9f70ded53e9df01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/198e6052b67f53d9b25c1f08c9f70ded53e9df01/db_pool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
4412,
12,
2890,
16,
1487,
16,
10902,
273,
1083,
4672,
3536,
22442,
2420,
326,
261,
17583,
26917,
13,
1459,
16,
17715,
292,
343,
310,
1281,
4798,
12123,
775,
30,
1487,
18,
4412,
1435,
1335,
19424,
30,
1002,
1335,
6394,
30,
1342,
468,
1487,
353,
599,
16,
578,
525,
1683,
1335,
30,
309,
486,
10902,
30,
1172,
315,
1952,
18,
4412,
11531,
30,
738,
87,
6,
738,
261,
9499,
18,
10075,
67,
1376,
1435,
63,
21,
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,
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
1459,
16,
17715,
292,
343,
310,
1281,
4798,
12123,
775,
30,
1487,
18,
4412,
1435,
1335,
19424,
30,
1002,
1335,
6394,
30,
1342,
468,
1487,
353,
599,
16,
578,
525,
1683,
1335,
30,
309,
486,
10902,
30,
1172,
315,
1952,
18,
4412,
11531,
30,
738,
87,
6,
738,
261,
9499,
18,
10075,
67,
1376,
1435,
63,
21,
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
] |
params['limit'] = limit
|
params['limit'] = unicode(limit)
|
def getTopTags(self, limit = None): """Returns the top tags used by this user. * limit: The limit of how many tags to return. """ params = self._getParams() if limit: params['limit'] = limit doc = Request(self, 'user.getTopTags', self.api_key, params).execute() if not doc: return None list = [] names = self._extract_all(doc, 'name') for name in names: list.append(Tag(name, *self.auth_data)) return list
|
8e390ea93e2743714b53aabf1d44d42534ecc6fa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/8e390ea93e2743714b53aabf1d44d42534ecc6fa/pylast.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13729,
3453,
12,
2890,
16,
1800,
273,
599,
4672,
3536,
1356,
326,
1760,
2342,
1399,
635,
333,
729,
18,
380,
1800,
30,
1021,
1800,
434,
3661,
4906,
2342,
358,
327,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
309,
1800,
30,
859,
3292,
3595,
3546,
273,
5252,
12,
3595,
13,
225,
997,
273,
1567,
12,
2890,
16,
296,
1355,
18,
588,
3401,
3453,
2187,
365,
18,
2425,
67,
856,
16,
859,
2934,
8837,
1435,
225,
309,
486,
997,
30,
327,
599,
225,
666,
273,
5378,
1257,
273,
365,
6315,
8004,
67,
454,
12,
2434,
16,
296,
529,
6134,
225,
364,
508,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13729,
3453,
12,
2890,
16,
1800,
273,
599,
4672,
3536,
1356,
326,
1760,
2342,
1399,
635,
333,
729,
18,
380,
1800,
30,
1021,
1800,
434,
3661,
4906,
2342,
358,
327,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
309,
1800,
30,
859,
3292,
3595,
3546,
273,
5252,
12,
3595,
13,
225,
997,
273,
1567,
12,
2890,
16,
296,
1355,
18,
588,
3401,
3453,
2187,
365,
18,
2425,
67,
856,
16,
859,
2934,
8837,
1435,
225,
309,
486,
997,
30,
327,
599,
225,
666,
273,
5378,
1257,
273,
365,
6315,
8004,
67,
454,
12,
2434,
16,
296,
529,
6134,
225,
364,
508,
316,
1257,
30,
666,
18,
6923,
12,
1805,
12,
529,
16,
380,
2890,
18,
1944,
2
] |
:math:`$d(s, t)$` between two clusters :math:`$s$` and :math:`$t$`. The algorithm begins with a forest of clusters that
|
:math:`d(s, t)` between two clusters :math:`s` and :math:`t`. The algorithm begins with a forest of clusters that
|
def linkage(y, method='single', metric='euclidean'): """ Performs hierarchical/agglomerative clustering on the condensed distance matrix y. y must be a {n \choose 2} sized vector where n is the number of original observations paired in the distance matrix. The behavior of this function is very similar to the MATLAB(TM) linkage function. A 4 by :math:`$(n-1)$` matrix ``Z`` is returned. At the :math:`$i$`th iteration, clusters with indices ``Z[i, 0]`` and ``Z[i, 1]`` are combined to form cluster :math:`$n + i$`. A cluster with an index less than :math:`$n$` corresponds to one of the :math:`$n$` original observations. The distance between clusters ``Z[i, 0]`` and ``Z[i, 1]`` is given by ``Z[i, 2]``. The fourth value ``Z[i, 3]`` represents the number of original observations in the newly formed cluster. The following linkage methods are used to compute the distance :math:`$d(s, t)$` between two clusters :math:`$s$` and :math:`$t$`. The algorithm begins with a forest of clusters that have yet to be used in the hierarchy being formed. When two clusters :math:`$s$` and :math:`$t$` from this forest are combined into a single cluster :math:`$u$`, :math:`$s$` and :math:`$t$` are removed from the forest, and :math:`$u$` is added to the forest. When only one cluster remains in the forest, the algorithm stops, and this cluster becomes the root. A distance matrix is maintained at each iteration. The ``d[i,j]`` entry corresponds to the distance between cluster :math:`$i$` and :math:`$j$` in the original forest. At each iteration, the algorithm must update the distance matrix to reflect the distance of the newly formed cluster u with the remaining clusters in the forest. Suppose there are :math:`$|u|$` original observations :math:`$u[0], \ldots, u[|u|-1]$` in cluster :math:`$u$` and :math:`$|v|$` original objects :math:`$v[0], \ldots, v[|v|-1]$` in cluster :math:`$v$`. Recall :math:`$s$` and :math:`$t$` are combined to form cluster :math:`$u$`. Let :math:`$v$` be any remaining cluster in the forest that is not :math:`$u$`. :Parameters: Q : ndarray A condensed or redundant distance matrix. A condensed distance matrix is a flat array containing the upper triangular of the distance matrix. This is the form that ``pdist`` returns. Alternatively, a collection of :math:`$m$` observation vectors in n dimensions may be passed as a :math:`$m$` by :math:`$n$` array. method : string The linkage algorithm to use. See the ``Linkage Methods`` section below for full descriptions. metric : string The distance metric to use. See the ``distance.pdist`` function for a list of valid distance metrics. Linkage Methods --------------- The following are methods for calculating the distance between the newly formed cluster :math:`$u$` and each :math:`$v$`. * method=``single`` assigns .. math: d(u,v) = \min(dist(u[i],v[j])) for all points :math:`$i$` in cluster :math:`$u$` and :math:`$j$` in cluster :math:`$v$`. This is also known as the Nearest Point Algorithm. * method=``complete`` assigns .. math: d(u, v) = \max(dist(u[i],v[j])) for all points :math:`$i$` in cluster u and :math:`$j$` in cluster :math:`$v$`. This is also known by the Farthest Point Algorithm or Voor Hees Algorithm. * method=``average`` assigns .. math: d(u,v) = \sum_{ij} \frac{d(u[i], v[j])} {(|u|*|v|) for all points :math:`$i$` and :math:`$j$` where :math:`$|u|$` and :math:`$|v|$` are the cardinalities of clusters :math:`$u$` and :math:`$v$`, respectively. This is also called the UPGMA algorithm. This is called UPGMA. * method='weighted' assigns .. math: d(u,v) = (dist(s,v) + dist(t,v))/2 where cluster u was formed with cluster s and t and v is a remaining cluster in the forest. (also called WPGMA) * method='centroid' assigns .. math: dist(s,t) = euclid(c_s, c_t) where :math:`$c_s$` and :math:`$c_t$` are the centroids of clusters :math:`$s$` and :math:`$t$`, respectively. When two clusters :math:`$s$` and :math:`$t$` are combined into a new cluster :math:`$u$`, the new centroid is computed over all the original objects in clusters :math:`$s$` and :math:`$t$`. The distance then becomes the Euclidean distance between the centroid of :math:`$u$` and the centroid of a remaining cluster :math:`$v$` in the forest. This is also known as the UPGMC algorithm. * method='median' assigns math:`$d(s,t)$` like the ``centroid`` method. When two clusters s and t are combined into a new cluster :math:`$u$`, the average of centroids s and t give the new centroid :math:`$u$`. This is also known as the WPGMC algorithm. * method='ward' uses the Ward variance minimization algorithm. The new entry :math:`$d(u,v)$` is computed as follows, .. math: d(u,v) = \sqrt{\frac{|v|+|s|} {T}d(v,s)^2 + \frac{|v|+|t|} {T}d(v,t)^2 + \frac{|v|} {T}d(s,t)^2} where :math:`$u$` is the newly joined cluster consisting of clusters :math:`$s$` and :math:`$t$`, :math:`$v$` is an unused cluster in the forest, :math:`$T=|v|+|s|+|t|$`, and :math:`$|*|$` is the cardinality of its argument. This is also known as the incremental algorithm. Warning ------- When the minimum distance pair in the forest is chosen, there may be two or more pairs with the same minimum distance. This implementation may chose a different minimum than the MATLAB(TM) version. """ if not isinstance(method, str): raise TypeError("Argument 'method' must be a string.") y = _convert_to_double(np.asarray(y, order='c')) s = y.shape if len(s) == 1: distance.is_valid_y(y, throw=True, name='y') d = distance.num_obs_y(y) if method not in _cpy_non_euclid_methods.keys(): raise ValueError("Valid methods when the raw observations are omitted are 'single', 'complete', 'weighted', and 'average'.") # Since the C code does not support striding using strides. [y] = _copy_arrays_if_base_present([y]) Z = np.zeros((d - 1, 4)) _hierarchy_wrap.linkage_wrap(y, Z, int(d), \ int(_cpy_non_euclid_methods[method])) elif len(s) == 2: X = y n = s[0] m = s[1] if method not in _cpy_linkage_methods: raise ValueError('Invalid method: %s' % method) if method in _cpy_non_euclid_methods.keys(): dm = distance.pdist(X, metric) Z = np.zeros((n - 1, 4)) _hierarchy_wrap.linkage_wrap(dm, Z, n, \ int(_cpy_non_euclid_methods[method])) elif method in _cpy_euclid_methods.keys(): if metric != 'euclidean': raise ValueError('Method %s requires the distance metric to be euclidean' % s) dm = distance.pdist(X, metric) Z = np.zeros((n - 1, 4)) _hierarchy_wrap.linkage_euclid_wrap(dm, Z, X, m, n, int(_cpy_euclid_methods[method])) return Z
|
8172e9e1737f1f6d84d1b06fa46e587e764a1a0f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/8172e9e1737f1f6d84d1b06fa46e587e764a1a0f/hierarchy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
410,
12,
93,
16,
707,
2218,
7526,
2187,
3999,
2218,
73,
22392,
11,
4672,
3536,
27391,
26633,
19,
346,
7043,
362,
264,
1535,
18743,
603,
326,
6941,
28003,
3888,
3148,
677,
18,
677,
1297,
506,
279,
288,
82,
521,
25777,
576,
97,
26046,
3806,
1625,
290,
353,
326,
1300,
434,
2282,
16477,
18066,
316,
326,
3888,
3148,
18,
1021,
6885,
434,
333,
445,
353,
8572,
7281,
358,
326,
490,
789,
48,
2090,
12,
22903,
13,
1692,
410,
445,
18,
225,
432,
1059,
635,
294,
15949,
28288,
8,
12,
82,
17,
21,
21877,
68,
3148,
12176,
62,
10335,
353,
2106,
18,
2380,
326,
294,
15949,
28288,
8,
77,
8,
68,
451,
6532,
16,
9566,
598,
4295,
12176,
62,
63,
77,
16,
374,
65,
10335,
471,
12176,
62,
63,
77,
16,
404,
65,
10335,
854,
8224,
358,
646,
2855,
294,
15949,
28288,
8,
82,
397,
277,
8,
8338,
432,
2855,
598,
392,
770,
5242,
2353,
294,
15949,
28288,
8,
82,
8,
68,
13955,
358,
1245,
434,
326,
294,
15949,
28288,
8,
82,
8,
68,
2282,
16477,
18,
1021,
3888,
3086,
9566,
12176,
62,
63,
77,
16,
374,
65,
10335,
471,
12176,
62,
63,
77,
16,
404,
65,
10335,
353,
864,
635,
12176,
62,
63,
77,
16,
576,
65,
68,
8338,
1021,
12792,
451,
460,
12176,
62,
63,
77,
16,
890,
65,
10335,
8686,
326,
1300,
434,
2282,
16477,
316,
326,
10894,
20010,
2855,
18,
225,
1021,
3751,
1692,
410,
2590,
854,
1399,
358,
3671,
326,
3888,
294,
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,
1692,
410,
12,
93,
16,
707,
2218,
7526,
2187,
3999,
2218,
73,
22392,
11,
4672,
3536,
27391,
26633,
19,
346,
7043,
362,
264,
1535,
18743,
603,
326,
6941,
28003,
3888,
3148,
677,
18,
677,
1297,
506,
279,
288,
82,
521,
25777,
576,
97,
26046,
3806,
1625,
290,
353,
326,
1300,
434,
2282,
16477,
18066,
316,
326,
3888,
3148,
18,
1021,
6885,
434,
333,
445,
353,
8572,
7281,
358,
326,
490,
789,
48,
2090,
12,
22903,
13,
1692,
410,
445,
18,
225,
432,
1059,
635,
294,
15949,
28288,
8,
12,
82,
17,
21,
21877,
68,
3148,
12176,
62,
10335,
353,
2106,
18,
2380,
326,
294,
15949,
28288,
8,
77,
8,
68,
451,
6532,
16,
9566,
598,
4295,
12176,
62,
2
] |
'typeFields' : [], 'bucketFields' : [], dataTimespan : 0 }
|
'typeFields' : [], 'bucketFields' : [], 'dataTimespan' : 0 }
|
def __addToCatalog( self, typeName, keyFields, valueFields, bucketsLength ): """ Add type to catalog """ self.log.verbose( "Adding to catalog type %s" % typeName, "with length %s" % str( bucketsLength ) ) self.dbCatalog[ typeName ] = { 'keys' : keyFields , 'values' : valueFields, 'typeFields' : [], 'bucketFields' : [], dataTimespan : 0 } self.dbCatalog[ typeName ][ 'typeFields' ].extend( keyFields ) self.dbCatalog[ typeName ][ 'typeFields' ].extend( valueFields ) self.dbCatalog[ typeName ][ 'bucketFields' ] = list( self.dbCatalog[ typeName ][ 'typeFields' ] ) self.dbCatalog[ typeName ][ 'typeFields' ].extend( [ 'startTime', 'endTime' ] ) self.dbCatalog[ typeName ][ 'bucketFields' ].extend( [ 'entriesInBucket', 'startTime', 'bucketLength' ] ) self.dbBucketsLength[ typeName ] = bucketsLength #ADRI: TEST COMPACT BUCKETS #self.dbBucketsLength[ typeName ] = [ ( 31104000, 3600 ) ]
|
9a7687a8896daf7e32c6c341dd9be68bf12c3180 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a7687a8896daf7e32c6c341dd9be68bf12c3180/AccountingDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
774,
9769,
12,
365,
16,
8173,
16,
498,
2314,
16,
460,
2314,
16,
9169,
1782,
262,
30,
3536,
1436,
618,
358,
6222,
3536,
365,
18,
1330,
18,
11369,
12,
315,
13962,
358,
6222,
618,
738,
87,
6,
738,
8173,
16,
315,
1918,
769,
738,
87,
6,
738,
609,
12,
9169,
1782,
262,
262,
365,
18,
1966,
9769,
63,
8173,
308,
273,
288,
296,
2452,
11,
294,
498,
2314,
269,
296,
2372,
11,
294,
460,
2314,
16,
296,
723,
2314,
11,
294,
5378,
16,
296,
7242,
2314,
11,
294,
5378,
16,
296,
892,
10694,
7355,
11,
294,
374,
289,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
723,
2314,
11,
308,
18,
14313,
12,
498,
2314,
262,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
723,
2314,
11,
308,
18,
14313,
12,
460,
2314,
262,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
7242,
2314,
11,
308,
273,
666,
12,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
723,
2314,
11,
308,
262,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
723,
2314,
11,
308,
18,
14313,
12,
306,
296,
1937,
950,
2187,
296,
409,
950,
11,
308,
262,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
7242,
2314,
11,
308,
18,
14313,
12,
306,
225,
296,
8219,
382,
4103,
2187,
296,
1937,
950,
2187,
296,
7242,
1782,
11,
308,
262,
365,
18,
1966,
14517,
1782,
63,
8173,
308,
273,
9169,
1782,
468,
1880,
2259,
30,
22130,
5423,
4066,
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,
1289,
774,
9769,
12,
365,
16,
8173,
16,
498,
2314,
16,
460,
2314,
16,
9169,
1782,
262,
30,
3536,
1436,
618,
358,
6222,
3536,
365,
18,
1330,
18,
11369,
12,
315,
13962,
358,
6222,
618,
738,
87,
6,
738,
8173,
16,
315,
1918,
769,
738,
87,
6,
738,
609,
12,
9169,
1782,
262,
262,
365,
18,
1966,
9769,
63,
8173,
308,
273,
288,
296,
2452,
11,
294,
498,
2314,
269,
296,
2372,
11,
294,
460,
2314,
16,
296,
723,
2314,
11,
294,
5378,
16,
296,
7242,
2314,
11,
294,
5378,
16,
296,
892,
10694,
7355,
11,
294,
374,
289,
365,
18,
1966,
9769,
63,
8173,
308,
63,
296,
723,
2314,
11,
308,
18,
14313,
12,
498,
2314,
2
] |
print "calling new game for the first time"
|
def __init__(self, handle): super(VisualMatchActivity,self).__init__(handle)
|
6d30ffa6fd1261c24a17788187b8a5c2580ff573 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/6d30ffa6fd1261c24a17788187b8a5c2580ff573/VisualMatchActivity.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1640,
4672,
2240,
12,
25780,
2060,
6193,
16,
2890,
2934,
972,
2738,
972,
12,
4110,
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,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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,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.client.next() if self.client.status()['state']!="play": self.error(1)
|
self.give5tries(self.client.next) if self.give5tries(self.client.status)['state']!="play": self.error(1) def give5tries(self,func): i=0 value=None while i<5: try: value=func() i=5 except: i+=1 return value
|
def next(self): self.client.next() if self.client.status()['state']!="play": self.error(1)
|
5ff265d98bee10d670b78139e7fc4c73d64683b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14596/5ff265d98bee10d670b78139e7fc4c73d64683b7/connection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
365,
18,
2625,
18,
4285,
1435,
309,
365,
18,
2625,
18,
2327,
1435,
3292,
2019,
3546,
5,
1546,
1601,
6877,
365,
18,
1636,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
365,
18,
2625,
18,
4285,
1435,
309,
365,
18,
2625,
18,
2327,
1435,
3292,
2019,
3546,
5,
1546,
1601,
6877,
365,
18,
1636,
12,
21,
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
] |
mro_err_msg = """Cannot create class.The superclasses have conflicting inheritance trees which leave the method resolution order (MRO) undefined for bases """
|
mro_err_msg = """Cannot create a consistent method resolution order (MRO) for bases """
|
def consistency_with_epg(): if verbose: print "Testing consistentcy with EPG..." class Pane(object): pass class ScrollingMixin(object): pass class EditingMixin(object): pass class ScrollablePane(Pane,ScrollingMixin): pass class EditablePane(Pane,EditingMixin): pass class EditableScrollablePane(ScrollablePane,EditablePane): pass vereq(EditableScrollablePane.__mro__, (EditableScrollablePane, ScrollablePane, EditablePane, Pane, ScrollingMixin, EditingMixin, object))
|
f394df47fd943d7067b5c3bedbf2c359d864923c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f394df47fd943d7067b5c3bedbf2c359d864923c/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14297,
67,
1918,
67,
881,
75,
13332,
309,
3988,
30,
1172,
315,
22218,
11071,
2431,
598,
512,
18679,
7070,
667,
453,
8806,
12,
1612,
4672,
1342,
667,
2850,
15742,
14439,
12,
1612,
4672,
1342,
667,
15328,
310,
14439,
12,
1612,
4672,
1342,
667,
23134,
429,
8485,
12,
8485,
16,
1541,
15742,
14439,
4672,
1342,
667,
6651,
9085,
8485,
12,
8485,
16,
28029,
14439,
4672,
1342,
667,
6651,
9085,
6806,
429,
8485,
12,
6806,
429,
8485,
16,
15470,
8485,
4672,
1342,
225,
331,
822,
85,
12,
15470,
6806,
429,
8485,
16186,
81,
303,
972,
16,
261,
15470,
6806,
429,
8485,
16,
23134,
429,
8485,
16,
6651,
9085,
8485,
16,
453,
8806,
16,
2850,
15742,
14439,
16,
15328,
310,
14439,
16,
733,
3719,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14297,
67,
1918,
67,
881,
75,
13332,
309,
3988,
30,
1172,
315,
22218,
11071,
2431,
598,
512,
18679,
7070,
667,
453,
8806,
12,
1612,
4672,
1342,
667,
2850,
15742,
14439,
12,
1612,
4672,
1342,
667,
15328,
310,
14439,
12,
1612,
4672,
1342,
667,
23134,
429,
8485,
12,
8485,
16,
1541,
15742,
14439,
4672,
1342,
667,
6651,
9085,
8485,
12,
8485,
16,
28029,
14439,
4672,
1342,
667,
6651,
9085,
6806,
429,
8485,
12,
6806,
429,
8485,
16,
15470,
8485,
4672,
1342,
225,
331,
822,
85,
12,
15470,
6806,
429,
8485,
16186,
81,
303,
972,
16,
261,
15470,
6806,
429,
8485,
16,
23134,
429,
8485,
16,
6651,
9085,
8485,
16,
453,
8806,
16,
2850,
15742,
14439,
16,
15328,
310,
14439,
2
] |
sys.exit(0)
|
exit_status = 0 return
|
def _main(args, parser): # Here's where everything really happens. # First order of business: set up default warnings and and then # handle the user's warning options, so we can warn about anything # that happens appropriately. default_warnings = [ SCons.Warnings.CorruptSConsignWarning, SCons.Warnings.DeprecatedWarning, SCons.Warnings.DuplicateEnvironmentWarning, SCons.Warnings.MissingSConscriptWarning, SCons.Warnings.NoMetaclassSupportWarning, SCons.Warnings.NoParallelSupportWarning, SCons.Warnings.MisleadingKeywordsWarning, ] for warning in default_warnings: SCons.Warnings.enableWarningClass(warning) SCons.Warnings._warningOut = _scons_internal_warning if options.warn: _setup_warn(options.warn) for warning_type, message in delayed_warnings: SCons.Warnings.warn(warning_type, message) # Next, we want to create the FS object that represents the outside # world's file system, as that's central to a lot of initialization. # To do this, however, we need to be in the directory from which we # want to start everything, which means first handling any relevant # options that might cause us to chdir somewhere (-C, -D, -U, -u). if options.directory: cdir = _create_path(options.directory) try: os.chdir(cdir) except OSError: sys.stderr.write("Could not change directory to %s\n" % cdir) # The SConstruct file may be in a repository, so initialize those # before we start the search up our path for one. global repositories if options.repository: repositories.extend(options.repository) target_top = None if options.climb_up: target_top = '.' # directory to prepend to targets script_dir = os.getcwd() # location of script while script_dir and not _SConstruct_exists(script_dir): script_dir, last_part = os.path.split(script_dir) if last_part: target_top = os.path.join(last_part, target_top) else: script_dir = '' if script_dir: display("scons: Entering directory `%s'" % script_dir) os.chdir(script_dir) # Now that we're in the top-level SConstruct directory, go ahead # and initialize the FS object that represents the file system, # and make it the build engine default. fs = SCons.Node.FS.default_fs = SCons.Node.FS.FS() for rep in repositories: fs.Repository(rep) # Now that we have the FS object, the next order of business is to # check for an SConstruct file (or other specified config file). # If there isn't one, we can bail before doing any more work. scripts = [] if options.file: scripts.extend(options.file) if not scripts: sfile = _SConstruct_exists() if sfile: scripts.append(sfile) if not scripts: if options.help_msg: # There's no SConstruct, but they specified -h. # Give them the options usage now, before we fail # trying to read a non-existent SConstruct file. parser.print_help() sys.exit(0) raise SCons.Errors.UserError, "No SConstruct file found." if scripts[0] == "-": d = fs.getcwd() else: d = fs.File(scripts[0]).dir fs.set_SConstruct_dir(d) # Now that we have the FS object and it's intialized, set up (most # of) the rest of the options. global ssoptions ssoptions = SConscriptSettableOptions(options) _set_globals(options) SCons.Node.implicit_cache = options.implicit_cache SCons.Node.implicit_deps_changed = options.implicit_deps_changed SCons.Node.implicit_deps_unchanged = options.implicit_deps_unchanged if options.noexec: SCons.SConf.dryrun = 1 SCons.Action.execute_actions = None CleanTask.execute = CleanTask.show if options.question: SCons.SConf.dryrun = 1 SCons.SConf.SetCacheMode(options.config) SCons.SConf.SetProgressDisplay(progress_display) if options.no_progress or options.silent: progress_display.set_mode(0) if options.silent: display.set_mode(0) if options.silent: SCons.Action.print_actions = None if options.cache_debug: fs.CacheDebugEnable(options.cache_debug) if options.cache_disable: def disable(self): pass fs.CacheDir = disable if options.cache_force: fs.cache_force = 1 if options.cache_show: fs.cache_show = 1 if options.include_dir: sys.path = options.include_dir + sys.path # That should cover (most of) the options. Next, set up the variables # that hold command-line arguments, so the SConscript files that we # read and execute have access to them. targets = [] xmit_args = [] for a in args: if '=' in a: xmit_args.append(a) else: targets.append(a) SCons.Script._Add_Targets(targets) SCons.Script._Add_Arguments(xmit_args) class Unbuffered: def __init__(self, file): self.file = file def write(self, arg): self.file.write(arg) self.file.flush() def __getattr__(self, attr): return getattr(self.file, attr) sys.stdout = Unbuffered(sys.stdout) memory_stats.append('before reading SConscript files:') count_stats.append(('pre-', 'read')) progress_display("scons: Reading SConscript files ...") start_time = time.time() try: for script in scripts: SCons.Script._SConscript._SConscript(fs, script) except SCons.Errors.StopError, e: # We had problems reading an SConscript file, such as it # couldn't be copied in to the BuildDir. Since we're just # reading SConscript files and haven't started building # things yet, stop regardless of whether they used -i or -k # or anything else. global exit_status sys.stderr.write("scons: *** %s Stop.\n" % e) exit_status = 2 sys.exit(exit_status) global sconscript_time sconscript_time = time.time() - start_time SCons.SConf.CreateConfigHBuilder(SCons.Defaults.DefaultEnvironment()) progress_display("scons: done reading SConscript files.") # Tell the Node.FS subsystem that we're all done reading the # SConscript files and calling Repository() and BuildDir() and the # like, so it can go ahead and start memoizing the string values of # file system nodes. SCons.Node.FS.save_strings(1) memory_stats.append('after reading SConscript files:') count_stats.append(('post-', 'read')) fs.chdir(fs.Top) if options.help_msg: help_text = SCons.Script.help_text if help_text is None: # They specified -h, but there was no Help() inside the # SConscript files. Give them the options usage. parser.print_help(sys.stdout) else: print help_text print "Use scons -H for help about command-line options." sys.exit(0) # Now that we've read the SConscripts we can set the options # that are SConscript settable: SCons.Node.implicit_cache = ssoptions.get('implicit_cache') SCons.Node.FS.set_duplicate(ssoptions.get('duplicate')) fs.set_max_drift(ssoptions.get('max_drift')) lookup_top = None if targets or SCons.Script.BUILD_TARGETS != SCons.Script._build_plus_default: # They specified targets on the command line or modified # BUILD_TARGETS in the SConscript file(s), so if they used -u, # -U or -D, we have to look up targets relative to the top, # but we build whatever they specified. if target_top: lookup_top = fs.Dir(target_top) target_top = None targets = SCons.Script.BUILD_TARGETS else: # There are no targets specified on the command line, # so if they used -u, -U or -D, we may have to restrict # what actually gets built. d = None if target_top: if options.climb_up == 1: # -u, local directory and below target_top = fs.Dir(target_top) lookup_top = target_top elif options.climb_up == 2: # -D, all Default() targets target_top = None lookup_top = None elif options.climb_up == 3: # -U, local SConscript Default() targets target_top = fs.Dir(target_top) def check_dir(x, target_top=target_top): if hasattr(x, 'cwd') and not x.cwd is None: cwd = x.cwd.srcnode() return cwd == target_top else: # x doesn't have a cwd, so it's either not a target, # or not a file, so go ahead and keep it as a default # target and let the engine sort it out: return 1 d = filter(check_dir, SCons.Script.DEFAULT_TARGETS) SCons.Script.DEFAULT_TARGETS[:] = d target_top = None lookup_top = None targets = SCons.Script._Get_Default_Targets(d, fs) if not targets: sys.stderr.write("scons: *** No targets specified and no Default() targets found. Stop.\n") sys.exit(2) def Entry(x, ltop=lookup_top, ttop=target_top, fs=fs): if isinstance(x, SCons.Node.Node): node = x else: node = None # Why would ltop be None? Unfortunately this happens. if ltop == None: ltop = '' # Curdir becomes important when SCons is called with -u, -C, # or similar option that changes directory, and so the paths # of targets given on the command line need to be adjusted. curdir = os.path.join(os.getcwd(), str(ltop)) for lookup in SCons.Node.arg2nodes_lookups: node = lookup(x, curdir=curdir) if node != None: break if node is None: node = fs.Entry(x, directory=ltop, create=1) if ttop and not node.is_under(ttop): if isinstance(node, SCons.Node.FS.Dir) and ttop.is_under(node): node = ttop else: node = None return node nodes = filter(None, map(Entry, targets)) task_class = BuildTask # default action is to build targets opening_message = "Building targets ..." closing_message = "done building targets." if keep_going_on_error: failure_message = "done building targets (errors occurred during build)." else: failure_message = "building terminated because of errors." if options.question: task_class = QuestionTask try: if ssoptions.get('clean'): task_class = CleanTask opening_message = "Cleaning targets ..." closing_message = "done cleaning targets." if keep_going_on_error: closing_message = "done cleaning targets (errors occurred during clean)." else: failure_message = "cleaning terminated because of errors." except AttributeError: pass if options.random: def order(dependencies): """Randomize the dependencies.""" # This is cribbed from the implementation of # random.shuffle() in Python 2.X. d = dependencies for i in xrange(len(d)-1, 0, -1): j = int(random.random() * (i+1)) d[i], d[j] = d[j], d[i] return d else: def order(dependencies): """Leave the order of dependencies alone.""" return dependencies progress_display("scons: " + opening_message) if options.taskmastertrace_file == '-': tmtrace = sys.stdout elif options.taskmastertrace_file: tmtrace = open(options.taskmastertrace_file, 'wb') else: tmtrace = None taskmaster = SCons.Taskmaster.Taskmaster(nodes, task_class, order, tmtrace) nj = ssoptions.get('num_jobs') jobs = SCons.Job.Jobs(nj, taskmaster) if nj > 1 and jobs.num_jobs == 1: msg = "parallel builds are unsupported by this version of Python;\n" + \ "\tignoring -j or num_jobs option.\n" SCons.Warnings.warn(SCons.Warnings.NoParallelSupportWarning, msg) memory_stats.append('before building targets:') count_stats.append(('pre-', 'build')) try: jobs.run() finally: if exit_status: progress_display("scons: " + failure_message) else: progress_display("scons: " + closing_message) if not options.noexec: SCons.SConsign.write() memory_stats.append('after building targets:') count_stats.append(('post-', 'build'))
|
77a4a0b62f82e4ceaaaffa12224fa6d22e6e2873 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/77a4a0b62f82e4ceaaaffa12224fa6d22e6e2873/Main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
1968,
16,
2082,
4672,
468,
13743,
1807,
1625,
7756,
8654,
10555,
18,
225,
468,
5783,
1353,
434,
13160,
30,
225,
444,
731,
805,
5599,
471,
471,
1508,
468,
1640,
326,
729,
1807,
3436,
702,
16,
1427,
732,
848,
1894,
2973,
6967,
468,
716,
10555,
21419,
18,
805,
67,
12103,
273,
306,
20487,
18,
4312,
18,
22701,
55,
442,
2977,
6210,
16,
20487,
18,
4312,
18,
13534,
6210,
16,
20487,
18,
4312,
18,
11826,
5494,
6210,
16,
20487,
18,
4312,
18,
4841,
55,
442,
4263,
6210,
16,
20487,
18,
4312,
18,
2279,
2781,
1106,
6289,
6210,
16,
20487,
18,
4312,
18,
2279,
13056,
6289,
6210,
16,
20487,
18,
4312,
18,
11729,
27200,
14149,
6210,
16,
308,
364,
3436,
316,
805,
67,
12103,
30,
20487,
18,
4312,
18,
7589,
6210,
797,
12,
8551,
13,
20487,
18,
4312,
6315,
8551,
1182,
273,
389,
87,
8559,
67,
7236,
67,
8551,
309,
702,
18,
8935,
30,
389,
8401,
67,
8935,
12,
2116,
18,
8935,
13,
225,
364,
3436,
67,
723,
16,
883,
316,
15278,
67,
12103,
30,
20487,
18,
4312,
18,
8935,
12,
8551,
67,
723,
16,
883,
13,
225,
468,
4804,
16,
732,
2545,
358,
752,
326,
9247,
733,
716,
8686,
326,
8220,
468,
9117,
1807,
585,
2619,
16,
487,
716,
1807,
18291,
358,
279,
17417,
434,
10313,
18,
468,
2974,
741,
333,
16,
14025,
16,
732,
1608,
358,
506,
316,
326,
1867,
628,
1492,
732,
468,
2545,
358,
787,
7756,
16,
1492,
4696,
1122,
5057,
1281,
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,
5254,
12,
1968,
16,
2082,
4672,
468,
13743,
1807,
1625,
7756,
8654,
10555,
18,
225,
468,
5783,
1353,
434,
13160,
30,
225,
444,
731,
805,
5599,
471,
471,
1508,
468,
1640,
326,
729,
1807,
3436,
702,
16,
1427,
732,
848,
1894,
2973,
6967,
468,
716,
10555,
21419,
18,
805,
67,
12103,
273,
306,
20487,
18,
4312,
18,
22701,
55,
442,
2977,
6210,
16,
20487,
18,
4312,
18,
13534,
6210,
16,
20487,
18,
4312,
18,
11826,
5494,
6210,
16,
20487,
18,
4312,
18,
4841,
55,
442,
4263,
6210,
16,
20487,
18,
4312,
18,
2279,
2781,
1106,
6289,
6210,
16,
20487,
18,
4312,
18,
2279,
13056,
6289,
6210,
16,
20487,
18,
4312,
18,
11729,
27200,
14149,
6210,
16,
308,
2
] |
_string = p.sub(r"\\alert{\1}", _string)
|
string = p.sub(r"\\alert{\1}", string) return string def transform_colors(string): """ colors """
|
def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) if (m == None): my_enum_item_level = "" else: my_enum_item_level = m.group(1) # trivial: old level = new level if (my_enum_item_level == enum_item_level): pass else: # find common part common = -1 while (len(enum_item_level) > common + 1) and \ (len(my_enum_item_level) > common + 1) and \ (enum_item_level[common+1] == my_enum_item_level[common+1]): common = common + 1 # close enum_item_level environments from back to front for i in range(len(enum_item_level)-1, common, -1): if (enum_item_level[i] == "*"): preamble = preamble + "\\end{itemize}\n" elif (enum_item_level[i] == "#"): preamble = preamble + "\\end{enumerate}\n" # open my_enum_item_level environments from front to back for i in range(common+1, len(my_enum_item_level)): if (my_enum_item_level[i] == "*"): preamble = preamble + "\\begin{itemize}\n" elif (my_enum_item_level[i] == "#"): preamble = preamble + "\\begin{enumerate}\n" enum_item_level = my_enum_item_level # now, substitute item markers p = re.compile("^([\*\#]+)(.*)$") _string = p.sub(r" \\item\2", string) string = _string # header and footer definitions p = re.compile("^@FRAMEHEADER=(.*)$", re.VERBOSE) m = p.match(string) if (m != None): #print m.group(1) frame_header = m.group(1) string = "" p = re.compile("^@FRAMEFOOTER=(.*)$", re.VERBOSE) m = p.match(string) if (m != None): #print m.group(1) next_frame_footer = m.group(1) string = "" # detect manual closing of frames p = re.compile(r"(?:^\s*\\end{\s*frame\s*})|(?:^\[\s*frame\s*\]>)") if (frame_opened == 1): if (len(p.findall(string)) > 0): frame_opened = 0 # headings (3) to frames p = re.compile("^====\s*(.*?)\s*====(.*)", re.VERBOSE) if (frame_opened == 0): _string = p.sub(r"\\begin{frame}\2\n \\frametitle{\1}\n <---FRAMEHEADER---> \n", string) else: _string = p.sub(r" <---FRAMEFOOTER---> \n \\end{frame}\n\n\\begin{frame}\2\n \\frametitle{\1}\n <---FRAMEHEADER---> \n", string) if (string != _string): frame_opened = 1 # headings (2) to subsections string = _string p = re.compile("^===\s*(.*?)\s*===(.*)", re.VERBOSE) if (frame_opened == 1): _string = p.sub(r" <---FRAMEFOOTER---> \n \\end{frame}\n\\subsection\2{\1}\n\n", string) else: _string = p.sub(r"\n\\subsection\2{\1}\n\n", string) if (string != _string): frame_opened = 0 # headings (1) to sections string = _string p = re.compile("^==\s*(.*?)\s*==(.*)", re.VERBOSE) if (frame_opened == 1): _string = p.sub(r" <---FRAMEFOOTER---> \n \\end{frame}\n\n\\section\2{\1}\n\n", string) else: _string = p.sub(r"\n\n\\section\2{\1}\n\n", string) if (string != _string): frame_opened = 0 _string = _string.replace("<---FRAMEHEADER--->", frame_header) _string = _string.replace("<---FRAMEFOOTER--->", frame_footer) if (_string.find("\\end{frame}") != -1): frame_footer = next_frame_footer # latex environments, the users takes full responsibility # for closing ALL opened environments # exampe: # <[block]{block title} # message # [block]> # -> open p = re.compile("^<\[([^{}]*?)\]", re.VERBOSE) _string = p.sub(r"\\begin{\1}", _string) # -> close p = re.compile("^\[([^{}]*?)\]>", re.VERBOSE) _string = p.sub(r"\\end{\1}", _string) # columns p = re.compile("^\[\[\[(.*?)\]\]\]", re.VERBOSE) _string = p.sub(r"\\column{\1}", _string) # bold font p = re.compile("'''(.*?)'''", re.VERBOSE) _string = p.sub(r"\\textbf{\1}", _string) # italic font p = re.compile("''(.*?)''", re.VERBOSE) _string = p.sub(r"\\emph{\1}", _string) # typewriter font p = re.compile("@(.*?)@", re.VERBOSE) _string = p.sub(r"\\texttt{\1}", _string) # alerts p = re.compile("!(.*?)!", re.VERBOSE) _string = p.sub(r"\\alert{\1}", _string) # colors p = re.compile("_([^_\\\\]*?)_([^_]*?[^_\\\\])_", re.VERBOSE) _string = p.sub(r"\\textcolor{\1}{\2}", _string) # footnotes p = re.compile("\(\(\((.*?)\)\)\)", re.VERBOSE) _string = p.sub(r"\\footnote{\1}", _string) # figures/images p = re.compile("\<\<\<(.*?),(.*?)\>\>\>", re.VERBOSE) _string = p.sub(r"\\includegraphics[\2]{\1}", _string) p = re.compile("\<\<\<(.*?)\>\>\>", re.VERBOSE) _string = p.sub(r"\\includegraphics{\1}", _string) # substitutions p = re.compile("(\s)-->(\s)", re.VERBOSE) _string = p.sub(r"\1$\\rightarrow$\2", _string) p = re.compile("(\s)<--(\s)", re.VERBOSE) _string = p.sub(r"\1$\\leftarrow$\2", _string) p = re.compile("(\s)==>(\s)", re.VERBOSE) _string = p.sub(r"\1$\\Rightarrow$\2", _string) p = re.compile("(\s)<==(\s)", re.VERBOSE) _string = p.sub(r"\1$\\Leftarrow$\2", _string) p = re.compile("(\s):-\)(\s)", re.VERBOSE) _string = p.sub(r"\1\\smiley\2", _string) p = re.compile("(\s):-\((\s)", re.VERBOSE) _string = p.sub(r"\1\\frownie\2", _string) # to be continued ... return preamble + _string
|
1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623,
67,
14723,
16,
1024,
67,
3789,
67,
14723,
225,
27841,
273,
1408,
282,
468,
364,
16836,
19,
1726,
554,
3330,
4364,
225,
468,
1640,
761,
6894,
19,
7924,
264,
1012,
293,
273,
283,
18,
11100,
2932,
66,
14026,
12174,
7,
3737,
2934,
26788,
7923,
312,
273,
293,
18,
1916,
12,
1080,
13,
309,
261,
81,
422,
599,
4672,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
1408,
469,
30,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
312,
18,
1655,
12,
21,
13,
225,
468,
433,
20109,
30,
1592,
1801,
273,
394,
1801,
309,
261,
4811,
67,
7924,
67,
1726,
67,
2815,
422,
2792,
67,
1726,
67,
2815,
4672,
1342,
469,
30,
468,
1104,
2975,
1087,
2975,
273,
300,
21,
1323,
261,
1897,
12,
7924,
67,
1726,
67,
2815,
13,
405,
2975,
397,
404,
13,
471,
521,
261,
1897,
12,
4811,
67,
7924,
67,
1726,
67,
2815,
13,
405,
2975,
397,
404,
13,
471,
521,
261,
7924,
67,
1726,
67,
2815,
63,
6054,
15,
21,
65,
422,
3399,
67,
7924,
67,
1726,
67,
2815,
63,
6054,
15,
21,
65,
4672,
2975,
273,
2975,
397,
404,
225,
468,
1746,
2792,
67,
1726,
67,
2815,
15900,
628,
1473,
358,
6641,
364,
277,
316,
1048,
12,
1897,
12,
7924,
67,
1726,
67,
2815,
24950,
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,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623,
67,
14723,
16,
1024,
67,
3789,
67,
14723,
225,
27841,
273,
1408,
282,
468,
364,
16836,
19,
1726,
554,
3330,
4364,
225,
468,
1640,
761,
6894,
19,
7924,
264,
1012,
293,
273,
283,
18,
11100,
2932,
66,
14026,
12174,
7,
3737,
2934,
26788,
7923,
312,
273,
293,
18,
1916,
12,
1080,
13,
309,
261,
81,
422,
599,
4672,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
1408,
469,
30,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
312,
18,
1655,
12,
21,
13,
2
] |
print _('''
|
print _("""
|
def do_install(self, tracker_home, args): ""'''Usage: install [template [backend [admin password]]] Install a new Roundup tracker.
|
640e7c498f550e19964fb6a7d43b73e704c0b5f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/640e7c498f550e19964fb6a7d43b73e704c0b5f6/admin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5425,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5425,
12,
2890,
16,
9745,
67,
8712,
16,
833,
4672,
1408,
26418,
5357,
30,
3799,
306,
3202,
306,
9993,
306,
3666,
2201,
13563,
65,
10284,
279,
394,
11370,
416,
9745,
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,
-100,
-100,
-100,
-100,
-100
] |
this is just the normal hook length. The upper hook length of a box (i,j) is defined by
|
this is just the normal hook length. As usual, indices are 0 based. The upper hook length of a box (i,j) in a partition $\kappa$ is defined by
|
def upper_hook(self, i, j, alpha): r""" Returns the upper hook length of the box (i,j) in self. When alpha == 1, this is just the normal hook length.
|
7896fee27ebd1c280842dcd38fb5539dd2c77a15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7896fee27ebd1c280842dcd38fb5539dd2c77a15/partition.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3854,
67,
4476,
12,
2890,
16,
277,
16,
525,
16,
4190,
4672,
436,
8395,
2860,
326,
3854,
3953,
769,
434,
326,
3919,
261,
77,
16,
78,
13,
316,
365,
18,
225,
5203,
4190,
422,
404,
16,
333,
353,
2537,
326,
2212,
3953,
769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3854,
67,
4476,
12,
2890,
16,
277,
16,
525,
16,
4190,
4672,
436,
8395,
2860,
326,
3854,
3953,
769,
434,
326,
3919,
261,
77,
16,
78,
13,
316,
365,
18,
225,
5203,
4190,
422,
404,
16,
333,
353,
2537,
326,
2212,
3953,
769,
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
] |
self.cursonglabel1.set_markup('<big><b>' + _('Stopped') + '</b></big>')
|
def update_cursong(self): if self.conn and self.status and self.status.state in ['play', 'pause']: # We must show the trayprogressbar and trayalbumeventbox # before changing self.cursonglabel (and consequently calling # self.labelnotify()) in order to ensure that the notification # popup will have the correct height when being displayed for # the first time after a stopped state. self.trayprogressbar.show() self.traycursonglabel2.show() if self.show_covers: self.trayalbumeventbox.show() self.trayalbumimage2.show()
|
cad1f6554cb6bfd616e40cce7256f8509fd80381 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/cad1f6554cb6bfd616e40cce7256f8509fd80381/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1397,
816,
75,
12,
2890,
4672,
309,
365,
18,
4646,
471,
365,
18,
2327,
471,
365,
18,
2327,
18,
2019,
316,
10228,
1601,
2187,
296,
19476,
3546,
30,
468,
1660,
1297,
2405,
326,
268,
435,
8298,
3215,
471,
268,
435,
287,
70,
2066,
616,
2147,
468,
1865,
12770,
365,
18,
1397,
816,
75,
1925,
261,
464,
356,
9116,
715,
4440,
468,
365,
18,
1925,
12336,
10756,
316,
1353,
358,
3387,
716,
326,
3851,
468,
10431,
903,
1240,
326,
3434,
2072,
1347,
3832,
10453,
364,
468,
326,
1122,
813,
1839,
279,
9627,
919,
18,
365,
18,
313,
528,
8298,
3215,
18,
4500,
1435,
365,
18,
313,
528,
1397,
816,
75,
1925,
22,
18,
4500,
1435,
309,
365,
18,
4500,
67,
14014,
414,
30,
365,
18,
313,
528,
287,
70,
2066,
616,
2147,
18,
4500,
1435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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1397,
816,
75,
12,
2890,
4672,
309,
365,
18,
4646,
471,
365,
18,
2327,
471,
365,
18,
2327,
18,
2019,
316,
10228,
1601,
2187,
296,
19476,
3546,
30,
468,
1660,
1297,
2405,
326,
268,
435,
8298,
3215,
471,
268,
435,
287,
70,
2066,
616,
2147,
468,
1865,
12770,
365,
18,
1397,
816,
75,
1925,
261,
464,
356,
9116,
715,
4440,
468,
365,
18,
1925,
12336,
10756,
316,
1353,
358,
3387,
716,
326,
3851,
468,
10431,
903,
1240,
326,
3434,
2072,
1347,
3832,
10453,
364,
468,
326,
1122,
813,
1839,
279,
9627,
919,
18,
365,
18,
313,
528,
8298,
3215,
18,
4500,
1435,
365,
18,
313,
528,
1397,
816,
75,
1925,
22,
18,
4500,
1435,
309,
365,
2
] |
|
path = functest.registry.get('path', '/')
|
path = PATH
|
def setup_module(module, server_url=SERVER_URL, admin_user=ADMIN_USER, admin_pass=ADMIN_PASS, user_prefix=TEST_USER_PREFIX): # Set module vars module.SERVER_URL = server_url module.ADMIN_USER = admin_user module.ADMIN_PASS = admin_pass module.TEST_USER = str(uuid.uuid1()).replace('-', '') module.TEST_PASS = 'test_pass' module.TEST_FIRST_NAME = 'Test' module.TEST_LAST_NAME = 'User' module.TEST_EMAIL = module.TEST_USER+'@osafoundation.org' module.PRINCIPAL_ROOT = PRINCIPAL_ROOT module.PRINCIPAL_DAV_PATH = '%s/%s' % (PRINCIPAL_ROOT, module.TEST_USER) module.PRINCIPAL_MS_PATH = PRINCIPAL_ROOT.replace('/dav', '/mc/collection') module.FILES_DIR = FILES_DIR #Setup client and users path = functest.registry.get('path', '/') cosmoclient.CosmoClient._cosmo_path = path cosmoclient.CosmoClient._cmp_path = path+'cmp' client = cosmoclient.CosmoClient(module.SERVER_URL) client.set_basic_auth(module.ADMIN_USER, module.ADMIN_PASS) module.client = client client.add_user(module.TEST_USER, module.TEST_PASS, module.TEST_FIRST_NAME, module.TEST_LAST_NAME, module.TEST_EMAIL) client.set_basic_auth(module.TEST_USER, module.TEST_PASS) if hasattr(module, 'CALENDAR'): client._request('MKCALENDAR', '%s/%s' % (module.PRINCIPAL_DAV_PATH, module.CALENDAR)) assert client.response.status == 201 for i in range(1, 8): ics_name = str(i)+'.ics' body = open(module.FILES_DIR+'/reports/put/'+ics_name).read() client.put('%s/%s/%s' % (module.PRINCIPAL_DAV_PATH, module.CALENDAR, ics_name), body=body, headers={'content-type':'text/calendar'}) assert client.response.status == 201
|
ba41356b02dcef9f77c19b16ed6ea0a3e085f1ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9939/ba41356b02dcef9f77c19b16ed6ea0a3e085f1ae/cosmo_test_lib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2978,
12,
2978,
16,
1438,
67,
718,
33,
4370,
67,
1785,
16,
3981,
67,
1355,
33,
15468,
67,
4714,
16,
3981,
67,
5466,
33,
15468,
67,
10884,
16,
729,
67,
3239,
33,
16961,
67,
4714,
67,
6307,
4672,
468,
1000,
1605,
4153,
1605,
18,
4370,
67,
1785,
273,
1438,
67,
718,
1605,
18,
15468,
67,
4714,
273,
3981,
67,
1355,
1605,
18,
15468,
67,
10884,
273,
3981,
67,
5466,
1605,
18,
16961,
67,
4714,
273,
609,
12,
7080,
18,
7080,
21,
1435,
2934,
2079,
2668,
17,
2187,
28707,
1605,
18,
16961,
67,
10884,
273,
296,
3813,
67,
5466,
11,
1605,
18,
16961,
67,
15354,
67,
1985,
273,
296,
4709,
11,
1605,
18,
16961,
67,
14378,
67,
1985,
273,
296,
1299,
11,
1605,
18,
16961,
67,
14686,
273,
1605,
18,
16961,
67,
4714,
6797,
36,
538,
1727,
772,
367,
18,
3341,
11,
1605,
18,
8025,
23213,
2579,
1013,
67,
9185,
273,
11770,
23213,
2579,
1013,
67,
9185,
1605,
18,
8025,
23213,
2579,
1013,
67,
17735,
67,
4211,
273,
1995,
87,
5258,
87,
11,
738,
261,
8025,
23213,
2579,
1013,
67,
9185,
16,
1605,
18,
16961,
67,
4714,
13,
1605,
18,
8025,
23213,
2579,
1013,
67,
3537,
67,
4211,
273,
11770,
23213,
2579,
1013,
67,
9185,
18,
2079,
2668,
19,
20752,
2187,
1173,
13952,
19,
5548,
6134,
1605,
18,
12669,
67,
4537,
273,
7527,
55,
67,
4537,
225,
468,
7365,
1004,
471,
3677,
589,
273,
7767,
4987,
81,
504,
676,
18,
39,
538,
8683,
1227,
6315,
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,
3875,
67,
2978,
12,
2978,
16,
1438,
67,
718,
33,
4370,
67,
1785,
16,
3981,
67,
1355,
33,
15468,
67,
4714,
16,
3981,
67,
5466,
33,
15468,
67,
10884,
16,
729,
67,
3239,
33,
16961,
67,
4714,
67,
6307,
4672,
468,
1000,
1605,
4153,
1605,
18,
4370,
67,
1785,
273,
1438,
67,
718,
1605,
18,
15468,
67,
4714,
273,
3981,
67,
1355,
1605,
18,
15468,
67,
10884,
273,
3981,
67,
5466,
1605,
18,
16961,
67,
4714,
273,
609,
12,
7080,
18,
7080,
21,
1435,
2934,
2079,
2668,
17,
2187,
28707,
1605,
18,
16961,
67,
10884,
273,
296,
3813,
67,
5466,
11,
1605,
18,
16961,
67,
15354,
67,
1985,
273,
296,
4709,
11,
1605,
18,
16961,
67,
14378,
67,
2
] |
self.item = item
|
""" Return possible actions for the item. """
|
def actions(self, item): self.item = item # don't allow this for items on an audio cd, only on the disc itself if item.type == 'audio' and item.parent.type == 'audiocd': return []
|
6d9f53994b120f152cf01dbb5f9d46eae2739b7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6d9f53994b120f152cf01dbb5f9d46eae2739b7d/coversearch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4209,
12,
2890,
16,
761,
4672,
3536,
2000,
3323,
4209,
364,
326,
761,
18,
3536,
468,
2727,
1404,
1699,
333,
364,
1516,
603,
392,
7447,
7976,
16,
1338,
603,
326,
19169,
6174,
309,
761,
18,
723,
422,
296,
11509,
11,
471,
761,
18,
2938,
18,
723,
422,
296,
24901,
77,
504,
72,
4278,
327,
5378,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4209,
12,
2890,
16,
761,
4672,
3536,
2000,
3323,
4209,
364,
326,
761,
18,
3536,
468,
2727,
1404,
1699,
333,
364,
1516,
603,
392,
7447,
7976,
16,
1338,
603,
326,
19169,
6174,
309,
761,
18,
723,
422,
296,
11509,
11,
471,
761,
18,
2938,
18,
723,
422,
296,
24901,
77,
504,
72,
4278,
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
] |
if not self.connecting and self.update_cb: gobject.source_remove(self.update_cb)
|
if not self.connecting: if self.update_cb: gobject.source_remove(self.update_cb)
|
def set_connecting_state(self, info): if not self.connecting and self.update_cb: gobject.source_remove(self.update_cb) self.update_cb = misc.timeout_add(500, self.update_statusbar, milli=True) self.connecting = True if not self.pulse_active: self.pulse_active = True misc.timeout_add(100, self.pulse_progress_bar, milli=True) gobject.idle_add(self.network_list.set_sensitive, False) gobject.idle_add(self.status_area.show_all) if self.statusID: gobject.idle_add(self.status_bar.remove, 1, self.statusID) if info[0] == "wireless": gobject.idle_add(self.set_status, str(info[1]) + ': ' + language[str(wireless.CheckWirelessConnectingMessage())]) elif info[0] == "wired": gobject.idle_add(self.set_status, language['wired_network'] + ': ' + language[str(wired.CheckWiredConnectingMessage())]) return True
|
6e2cf3cfe0649b7351bbd23768d750864d4cd475 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/6e2cf3cfe0649b7351bbd23768d750864d4cd475/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3612,
310,
67,
2019,
12,
2890,
16,
1123,
4672,
309,
486,
365,
18,
3612,
310,
30,
309,
365,
18,
2725,
67,
7358,
30,
314,
1612,
18,
3168,
67,
4479,
12,
2890,
18,
2725,
67,
7358,
13,
365,
18,
2725,
67,
7358,
273,
20448,
18,
4538,
67,
1289,
12,
12483,
16,
365,
18,
2725,
67,
2327,
3215,
16,
312,
16607,
33,
5510,
13,
365,
18,
3612,
310,
273,
1053,
309,
486,
365,
18,
84,
24667,
67,
3535,
30,
365,
18,
84,
24667,
67,
3535,
273,
1053,
20448,
18,
4538,
67,
1289,
12,
6625,
16,
365,
18,
84,
24667,
67,
8298,
67,
3215,
16,
312,
16607,
33,
5510,
13,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
5185,
67,
1098,
18,
542,
67,
23481,
16,
1083,
13,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
2327,
67,
5036,
18,
4500,
67,
454,
13,
309,
365,
18,
2327,
734,
30,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
2327,
67,
3215,
18,
4479,
16,
404,
16,
365,
18,
2327,
734,
13,
309,
1123,
63,
20,
65,
422,
315,
14538,
2656,
6877,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
542,
67,
2327,
16,
609,
12,
1376,
63,
21,
5717,
397,
4290,
296,
397,
2653,
63,
701,
12,
14538,
2656,
18,
1564,
15249,
2656,
30049,
1079,
10756,
5717,
1327,
1123,
63,
20,
65,
422,
315,
91,
2921,
6877,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
542,
67,
2327,
16,
2653,
3292,
91,
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,
444,
67,
3612,
310,
67,
2019,
12,
2890,
16,
1123,
4672,
309,
486,
365,
18,
3612,
310,
30,
309,
365,
18,
2725,
67,
7358,
30,
314,
1612,
18,
3168,
67,
4479,
12,
2890,
18,
2725,
67,
7358,
13,
365,
18,
2725,
67,
7358,
273,
20448,
18,
4538,
67,
1289,
12,
12483,
16,
365,
18,
2725,
67,
2327,
3215,
16,
312,
16607,
33,
5510,
13,
365,
18,
3612,
310,
273,
1053,
309,
486,
365,
18,
84,
24667,
67,
3535,
30,
365,
18,
84,
24667,
67,
3535,
273,
1053,
20448,
18,
4538,
67,
1289,
12,
6625,
16,
365,
18,
84,
24667,
67,
8298,
67,
3215,
16,
312,
16607,
33,
5510,
13,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
2
] |
for seed in data["remove"]:
|
for seed in process_seeds(data["remove"]):
|
def POST(self, key): site = web.ctx.site list = site.get(key) if not list: raise web.notfound() if not site.can_write(key): raise self.forbidden() data = formats.load(web.data(), self.encoding) data.setdefault("add", []) data.setdefault("remove", []) for seed in data["add"]: list.add_seed(seed) for seed in data["remove"]: list.remove_seed(seed) seeds = [] for seed in data["add"] + data["remove"]: if isinstance(seed, dict): seeds.append(seed['key']) else: seeds.append(seed) changeset_data = { "list": {"key": key}, "seeds": seeds, "add": data.get("add", []), "remove": data.get("remove", []) } d = list._save(comment="updated list seeds.", action="lists", data=changeset_data) web.header("Content-Type", self.content_type) return delegate.RawText(formats.dump(d, self.encoding))
|
4c49f8481985e3791ae3c55558b09b48f2ba1ec0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/4c49f8481985e3791ae3c55558b09b48f2ba1ec0/lists.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
498,
4672,
2834,
273,
3311,
18,
5900,
18,
4256,
225,
666,
273,
2834,
18,
588,
12,
856,
13,
309,
486,
666,
30,
1002,
3311,
18,
902,
7015,
1435,
225,
309,
486,
2834,
18,
4169,
67,
2626,
12,
856,
4672,
1002,
365,
18,
1884,
9215,
1435,
225,
501,
273,
6449,
18,
945,
12,
4875,
18,
892,
9334,
365,
18,
5999,
13,
225,
501,
18,
542,
1886,
2932,
1289,
3113,
5378,
13,
501,
18,
542,
1886,
2932,
4479,
3113,
5378,
13,
225,
364,
5009,
316,
501,
9614,
1289,
11929,
30,
666,
18,
1289,
67,
12407,
12,
12407,
13,
225,
364,
5009,
316,
1207,
67,
307,
9765,
12,
892,
9614,
4479,
11929,
4672,
666,
18,
4479,
67,
12407,
12,
12407,
13,
225,
19076,
273,
5378,
364,
5009,
316,
501,
9614,
1289,
11929,
397,
501,
9614,
4479,
11929,
30,
309,
1549,
12,
12407,
16,
2065,
4672,
19076,
18,
6923,
12,
12407,
3292,
856,
19486,
469,
30,
19076,
18,
6923,
12,
12407,
13,
225,
22463,
67,
892,
273,
288,
315,
1098,
6877,
12528,
856,
6877,
498,
5779,
315,
307,
9765,
6877,
19076,
16,
315,
1289,
6877,
501,
18,
588,
2932,
1289,
3113,
5378,
3631,
315,
4479,
6877,
501,
18,
588,
2932,
4479,
3113,
5378,
13,
289,
225,
302,
273,
666,
6315,
5688,
12,
3469,
1546,
7007,
666,
19076,
1199,
16,
1301,
1546,
9772,
3113,
501,
33,
6329,
278,
67,
892,
13,
3311,
18,
3374,
2932,
1350,
17,
559,
3113,
365,
18,
1745,
67,
723,
13,
327,
7152,
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,
5485,
12,
2890,
16,
498,
4672,
2834,
273,
3311,
18,
5900,
18,
4256,
225,
666,
273,
2834,
18,
588,
12,
856,
13,
309,
486,
666,
30,
1002,
3311,
18,
902,
7015,
1435,
225,
309,
486,
2834,
18,
4169,
67,
2626,
12,
856,
4672,
1002,
365,
18,
1884,
9215,
1435,
225,
501,
273,
6449,
18,
945,
12,
4875,
18,
892,
9334,
365,
18,
5999,
13,
225,
501,
18,
542,
1886,
2932,
1289,
3113,
5378,
13,
501,
18,
542,
1886,
2932,
4479,
3113,
5378,
13,
225,
364,
5009,
316,
501,
9614,
1289,
11929,
30,
666,
18,
1289,
67,
12407,
12,
12407,
13,
225,
364,
5009,
316,
1207,
67,
307,
9765,
12,
892,
9614,
4479,
11929,
4672,
666,
18,
4479,
67,
2
] |
if 0 == len(p.namespaces): self.ns = self.file else: self.ns = Namespace(p.namespaces[-1].name) outerns = _putInNamespaces(self.ns, p.namespaces[:-1]) self.file.addthing(outerns) self.ns.addstmts([ Whitespace.NL, Whitespace.NL ])
|
def visitProtocol(self, p): self.file.addthings([ CppDirective('ifdef', 'DEBUG'), CppDirective('include', '"prenv.h"'), CppDirective('endif', '// DEBUG') ])
|
e50bc63c9fe99351b663726aa8a8c4d6e0a138c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/e50bc63c9fe99351b663726aa8a8c4d6e0a138c3/lower.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
5752,
12,
2890,
16,
293,
4672,
365,
18,
768,
18,
1289,
451,
899,
3816,
385,
11858,
13307,
2668,
430,
536,
2187,
296,
9394,
19899,
385,
11858,
13307,
2668,
6702,
2187,
2119,
84,
1187,
90,
18,
76,
5187,
3631,
385,
11858,
13307,
2668,
409,
430,
2187,
12084,
6369,
6134,
308,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
5752,
12,
2890,
16,
293,
4672,
365,
18,
768,
18,
1289,
451,
899,
3816,
385,
11858,
13307,
2668,
430,
536,
2187,
296,
9394,
19899,
385,
11858,
13307,
2668,
6702,
2187,
2119,
84,
1187,
90,
18,
76,
5187,
3631,
385,
11858,
13307,
2668,
409,
430,
2187,
12084,
6369,
6134,
308,
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
] |
|
verify(s.translate(identitytab, "x").__class__ is str) vereq(s.translate(identitytab, "x"), base) vereq(s.translate(identitytab, "\x00"), "")
|
def rev(self): if self._rev is not None: return self._rev L = list(self) L.reverse() self._rev = self.__class__("".join(L)) return self._rev
|
2a23ce2dfe8fd81cb39612d526b5e7e2e38b2f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/2a23ce2dfe8fd81cb39612d526b5e7e2e38b2f2d/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5588,
12,
2890,
4672,
309,
365,
6315,
9083,
353,
486,
599,
30,
327,
365,
6315,
9083,
511,
273,
666,
12,
2890,
13,
511,
18,
9845,
1435,
365,
6315,
9083,
273,
365,
16186,
1106,
972,
2932,
9654,
5701,
12,
48,
3719,
327,
365,
6315,
9083,
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,
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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
] |
|
if not path.startswith('/_i_'):
|
if '/_i_' not in path:
|
def flush(self): """Flush all the alive nodes and HDF5 buffers."""
|
3273aabf59d7253acb38d00220a0e7bb1d151ec0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12687/3273aabf59d7253acb38d00220a0e7bb1d151ec0/File.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
8207,
777,
326,
13714,
2199,
471,
21673,
25,
9664,
12123,
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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
3663,
12,
2890,
4672,
3536,
8207,
777,
326,
13714,
2199,
471,
21673,
25,
9664,
12123,
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
] |
size = stats[stat.ST_SIZE] modified = rfc822.formatdate(stats[stat.ST_MTIME])
|
size = stats.st_size modified = rfc822.formatdate(stats.st_mtime)
|
def open_local_file(self, req): host = req.get_host() file = req.get_selector() localfile = url2pathname(file) stats = os.stat(localfile) size = stats[stat.ST_SIZE] modified = rfc822.formatdate(stats[stat.ST_MTIME]) mtype = mimetypes.guess_type(file)[0] stats = os.stat(localfile) headers = mimetools.Message(StringIO( 'Content-Type: %s\nContent-Length: %d\nLast-modified: %s\n' % (mtype or 'text/plain', size, modified))) if host: host, port = splitport(host) if not host or \ (not port and socket.gethostbyname(host) in self.get_names()): return addinfourl(open(localfile, 'rb'), headers, 'file:'+file) raise URLError('file not on local host')
|
44287135c63c9dd2fd475f5bb1b69c2cd4ae4297 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/44287135c63c9dd2fd475f5bb1b69c2cd4ae4297/urllib2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
585,
273,
1111,
18,
588,
67,
9663,
1435,
1191,
768,
273,
880,
22,
28336,
12,
768,
13,
3177,
273,
1140,
18,
5642,
12,
3729,
768,
13,
963,
273,
3177,
18,
334,
67,
1467,
4358,
273,
16590,
24532,
18,
2139,
712,
12,
5296,
18,
334,
67,
10838,
13,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
768,
25146,
20,
65,
3177,
273,
1140,
18,
5642,
12,
3729,
768,
13,
1607,
273,
20369,
278,
8192,
18,
1079,
12,
780,
4294,
12,
296,
1350,
17,
559,
30,
738,
87,
64,
82,
1350,
17,
1782,
30,
738,
72,
64,
82,
3024,
17,
7342,
30,
738,
87,
64,
82,
11,
738,
261,
81,
723,
578,
296,
955,
19,
7446,
2187,
963,
16,
4358,
20349,
309,
1479,
30,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
309,
486,
1479,
578,
521,
261,
902,
1756,
471,
2987,
18,
75,
546,
669,
1637,
529,
12,
2564,
13,
316,
365,
18,
588,
67,
1973,
1435,
4672,
327,
527,
10625,
477,
80,
12,
3190,
12,
3729,
768,
16,
296,
6731,
19899,
1607,
16,
296,
768,
2497,
15,
768,
13,
1002,
1976,
668,
2668,
768,
486,
603,
1191,
1479,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
585,
273,
1111,
18,
588,
67,
9663,
1435,
1191,
768,
273,
880,
22,
28336,
12,
768,
13,
3177,
273,
1140,
18,
5642,
12,
3729,
768,
13,
963,
273,
3177,
18,
334,
67,
1467,
4358,
273,
16590,
24532,
18,
2139,
712,
12,
5296,
18,
334,
67,
10838,
13,
22189,
273,
20369,
15180,
18,
20885,
67,
723,
12,
768,
25146,
20,
65,
3177,
273,
1140,
18,
5642,
12,
3729,
768,
13,
1607,
273,
20369,
278,
8192,
18,
1079,
12,
780,
4294,
12,
296,
1350,
17,
559,
30,
738,
87,
64,
82,
1350,
17,
1782,
30,
738,
72,
64,
82,
3024,
17,
7342,
2
] |
@unittest.skipIf(c_int is None, "requires _ctypes")
|
def _test(self, values): for sv, cv in zip(values, self.codes_values): sv.value = cv[2]
|
fd8326704a001f539cb22d3f1c0abda08bf99805 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/fd8326704a001f539cb22d3f1c0abda08bf99805/test_multiprocessing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
12,
2890,
16,
924,
4672,
364,
5893,
16,
8951,
316,
3144,
12,
2372,
16,
365,
18,
7000,
67,
2372,
4672,
5893,
18,
1132,
273,
8951,
63,
22,
65,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
12,
2890,
16,
924,
4672,
364,
5893,
16,
8951,
316,
3144,
12,
2372,
16,
365,
18,
7000,
67,
2372,
4672,
5893,
18,
1132,
273,
8951,
63,
22,
65,
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._writeBody(msg) else: specific = UNDERSCORE.join(ctype.split('/')).replace('-', '_') meth = getattr(self, '_handle_' + specific, None)
|
ctype = msg.get_default_type() assert ctype in ('text/plain', 'message/rfc822') main, sub = ctype.split('/') specific = UNDERSCORE.join((main, sub)).replace('-', '_') meth = getattr(self, '_handle_' + specific, None) if meth is None: generic = main.replace('-', '_') meth = getattr(self, '_handle_' + generic, None)
|
def _dispatch(self, msg): # Get the Content-Type: for the message, then try to dispatch to # self._handle_maintype_subtype(). If there's no handler for the full # MIME type, then dispatch to self._handle_maintype(). If that's # missing too, then dispatch to self._writeBody(). ctype = msg.get_type() if ctype is None: # No Content-Type: header so try the default handler self._writeBody(msg) else: # We do have a Content-Type: header. specific = UNDERSCORE.join(ctype.split('/')).replace('-', '_') meth = getattr(self, '_handle_' + specific, None) if meth is None: generic = msg.get_main_type().replace('-', '_') meth = getattr(self, '_handle_' + generic, None) if meth is None: meth = self._writeBody meth(msg)
|
93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
1234,
4672,
468,
968,
326,
3697,
17,
559,
30,
364,
326,
883,
16,
1508,
775,
358,
3435,
358,
468,
365,
6315,
4110,
67,
81,
1598,
388,
67,
21974,
7675,
225,
971,
1915,
1807,
1158,
1838,
364,
326,
1983,
468,
13195,
618,
16,
1508,
3435,
358,
365,
6315,
4110,
67,
81,
1598,
388,
7675,
225,
971,
716,
1807,
468,
3315,
4885,
16,
1508,
3435,
358,
365,
6315,
2626,
2250,
7675,
11920,
273,
1234,
18,
588,
67,
723,
1435,
309,
11920,
353,
599,
30,
468,
2631,
3697,
17,
559,
30,
1446,
1427,
775,
326,
805,
1838,
365,
6315,
2626,
2250,
12,
3576,
13,
469,
30,
468,
1660,
741,
1240,
279,
3697,
17,
559,
30,
1446,
18,
2923,
273,
587,
18556,
28520,
18,
5701,
12,
12387,
18,
4939,
2668,
2473,
13,
2934,
2079,
2668,
17,
2187,
4427,
13,
7917,
273,
3869,
12,
2890,
16,
2070,
4110,
4623,
397,
2923,
16,
599,
13,
309,
7917,
353,
599,
30,
5210,
273,
1234,
18,
588,
67,
5254,
67,
723,
7675,
2079,
2668,
17,
2187,
4427,
13,
7917,
273,
3869,
12,
2890,
16,
2070,
4110,
4623,
397,
5210,
16,
599,
13,
309,
7917,
353,
599,
30,
7917,
273,
365,
6315,
2626,
2250,
7917,
12,
3576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10739,
12,
2890,
16,
1234,
4672,
468,
968,
326,
3697,
17,
559,
30,
364,
326,
883,
16,
1508,
775,
358,
3435,
358,
468,
365,
6315,
4110,
67,
81,
1598,
388,
67,
21974,
7675,
225,
971,
1915,
1807,
1158,
1838,
364,
326,
1983,
468,
13195,
618,
16,
1508,
3435,
358,
365,
6315,
4110,
67,
81,
1598,
388,
7675,
225,
971,
716,
1807,
468,
3315,
4885,
16,
1508,
3435,
358,
365,
6315,
2626,
2250,
7675,
11920,
273,
1234,
18,
588,
67,
723,
1435,
309,
11920,
353,
599,
30,
468,
2631,
3697,
17,
559,
30,
1446,
1427,
775,
326,
805,
1838,
365,
6315,
2626,
2250,
12,
3576,
13,
469,
30,
468,
1660,
741,
1240,
279,
3697,
17,
559,
30,
1446,
2
] |
if isinstance(value, (datetime.date, datetime.datetime)):
|
if isinstance(value, (datetime.date, datetime.datetime, sqlbuilder.SQLExpression)):
|
def fromPython(self, value, state): if value is None: return None if isinstance(value, (datetime.date, datetime.datetime)): return value if hasattr(value, "strftime"): return value.strftime(self.format) raise validators.InvalidField("expected a datetime in the DateTimeCol '%s', got %s instead" % \ (self.name, type(value)), value, state)
|
20457ded051a2aeae347927d142fef07f36c7688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/20457ded051a2aeae347927d142fef07f36c7688/col.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
15774,
12,
2890,
16,
460,
16,
919,
4672,
309,
460,
353,
599,
30,
327,
599,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3314,
18,
6585,
16,
1847,
9574,
18,
3997,
2300,
3719,
30,
327,
460,
309,
3859,
12,
1132,
16,
315,
701,
9982,
6,
4672,
327,
460,
18,
701,
9982,
12,
2890,
18,
2139,
13,
1002,
11632,
18,
1941,
974,
2932,
3825,
279,
3314,
316,
326,
3716,
914,
1995,
87,
2187,
2363,
738,
87,
3560,
6,
738,
521,
261,
2890,
18,
529,
16,
618,
12,
1132,
13,
3631,
460,
16,
919,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
15774,
12,
2890,
16,
460,
16,
919,
4672,
309,
460,
353,
599,
30,
327,
599,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3314,
18,
6585,
16,
1847,
9574,
18,
3997,
2300,
3719,
30,
327,
460,
309,
3859,
12,
1132,
16,
315,
701,
9982,
6,
4672,
327,
460,
18,
701,
9982,
12,
2890,
18,
2139,
13,
1002,
11632,
18,
1941,
974,
2932,
3825,
279,
3314,
316,
326,
3716,
914,
1995,
87,
2187,
2363,
738,
87,
3560,
6,
738,
521,
261,
2890,
18,
529,
16,
618,
12,
1132,
13,
3631,
460,
16,
919,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cal_path = string.strip(self.__cp.get('calibration','path'))
|
cal_path = self.job().get_config('calibration','path')
|
def calibration(self): """ Set the path to the calibration cache file for the given IFO. During S2 the Hanford 2km IFO had two calibration epochs, so if the start time is during S2, we use the correct cache file. """ cal_path = string.strip(self.__cp.get('calibration','path'))
|
243cce9ec378a43e681624907856e03a7b823a1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/243cce9ec378a43e681624907856e03a7b823a1a/pipeline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15344,
12,
2890,
4672,
3536,
1000,
326,
589,
358,
326,
15344,
1247,
585,
364,
326,
864,
467,
3313,
18,
463,
4017,
348,
22,
326,
670,
304,
31836,
576,
18353,
467,
3313,
9323,
2795,
15344,
25480,
16,
1427,
309,
326,
787,
813,
353,
4982,
348,
22,
16,
732,
999,
326,
3434,
1247,
585,
18,
3536,
1443,
67,
803,
273,
533,
18,
6406,
12,
2890,
16186,
4057,
18,
588,
2668,
31573,
17023,
803,
26112,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15344,
12,
2890,
4672,
3536,
1000,
326,
589,
358,
326,
15344,
1247,
585,
364,
326,
864,
467,
3313,
18,
463,
4017,
348,
22,
326,
670,
304,
31836,
576,
18353,
467,
3313,
9323,
2795,
15344,
25480,
16,
1427,
309,
326,
787,
813,
353,
4982,
348,
22,
16,
732,
999,
326,
3434,
1247,
585,
18,
3536,
1443,
67,
803,
273,
533,
18,
6406,
12,
2890,
16186,
4057,
18,
588,
2668,
31573,
17023,
803,
26112,
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
] |
i = end + len(subst)
|
i += len(subst)
|
def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return end = find_end_of_inset(document.body, i) if end == -1: document.warning("Can't find end of inset at line " + str(i)) i = j continue fline = find_token(document.body, "<features", i, end) if fline == -1: document.warning("Can't find features for inset at line " + str(i)) i = end continue p = document.body[fline].find("islongtable") if p != -1: q = document.body[fline].find("tabularvalignment") if q != -1: # FIXME # This seems wrong: It removes everything after # tabularvalignment, too. document.body[fline] = document.body[fline][:q - 1] + '>' i = end continue # no longtable tabularvalignment = 'c' # which valignment is specified? m = document.body[fline].find('tabularvalignment="top"') if m != -1: tabularvalignment = 't' m = document.body[fline].find('tabularvalignment="bottom"') if m != -1: tabularvalignment = 'b' # delete tabularvalignment q = document.body[fline].find("tabularvalignment") if q != -1: # FIXME # This seems wrong: It removes everything after # tabularvalignment, too. document.body[fline] = document.body[fline][:q - 1] + '>' # don't add a box when centered if tabularvalignment == 'c': i = end continue subst = ['\\end_layout', '\\end_inset'] document.body[end:end] = subst # just inserts those lines subst = ['\\begin_inset Box Frameless', 'position "' + tabularvalignment +'"', 'hor_pos "c"', 'has_inner_box 1', 'inner_pos "c"', 'use_parbox 0', # we don't know the width, assume 50% 'width "50col%"', 'special "none"', 'height "1in"', 'height_special "totalheight"', 'status open', '', '\\begin_layout Plain Layout'] document.body[i:i] = subst # this just inserts the array at i i = end + len(subst) # adjust i to save a few cycles
|
bd11f5a78cd5ec5cd10f3d4c195d4249710b4c00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bd11f5a78cd5ec5cd10f3d4c195d4249710b4c00/lyx_2_0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
10086,
67,
267,
542,
9483,
2490,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
679,
273,
1104,
67,
409,
67,
792,
67,
267,
542,
12,
5457,
18,
3432,
16,
277,
13,
309,
679,
422,
300,
21,
30,
1668,
18,
8551,
2932,
2568,
1404,
1104,
679,
434,
316,
542,
622,
980,
315,
397,
609,
12,
77,
3719,
277,
273,
525,
1324,
1183,
558,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3532,
7139,
3113,
277,
16,
679,
13,
309,
1183,
558,
422,
300,
21,
30,
1668,
18,
8551,
2932,
2568,
1404,
1104,
4467,
364,
316,
542,
622,
980,
315,
397,
609,
12,
77,
3719,
277,
273,
679,
1324,
293,
273,
1668,
18,
3432,
63,
74,
1369,
8009,
4720,
2932,
291,
5748,
2121,
7923,
309,
293,
480,
300,
21,
30,
1043,
273,
1668,
18,
3432,
63,
74,
1369,
8009,
4720,
2932,
7032,
2490,
1125,
3515,
7923,
309,
1043,
480,
300,
21,
30,
468,
9852,
468,
1220,
12001,
7194,
30,
2597,
7157,
7756,
1839,
468,
28342,
1125,
3515,
16,
4885,
18,
1668,
18,
3432,
63,
74,
1369,
65,
273,
1668,
18,
3432,
63,
74,
1369,
6362,
30,
85,
300,
404,
65,
397,
7481,
277,
273,
679,
1324,
225,
468,
1158,
1525,
2121,
28342,
1125,
3515,
273,
296,
71,
11,
468,
1492,
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,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
10086,
67,
267,
542,
9483,
2490,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
679,
273,
1104,
67,
409,
67,
792,
67,
267,
542,
12,
5457,
18,
3432,
16,
277,
13,
309,
679,
422,
300,
21,
30,
1668,
18,
8551,
2932,
2568,
1404,
1104,
679,
434,
316,
542,
622,
980,
315,
397,
609,
12,
77,
3719,
277,
273,
525,
1324,
1183,
558,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3532,
7139,
3113,
277,
16,
679,
13,
309,
1183,
558,
2
] |
self.dispGridAction.setIconSet(QIconSet(self.image42))
|
self.dispGridAction.setIconSet(QIconSet(self.image36))
|
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
|
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
2327,
5190,
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,
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
] |
navigationRow.Add(self.monthButton, 0, wx.ALIGN_CENTER)
|
monthSizer = wx.BoxSizer(wx.VERTICAL) monthSizer.Add((7,7),0) monthSizer.Add(self.monthButton, 0) monthSizer.Add((5,5), 0) navigationRow.Add(monthSizer, 0, wx.ALIGN_CENTER)
|
def OnInit(self): self.SetBackgroundColour(self.parent.bgColor)
|
291c5c35ee191ec2876d6a324e0406baa8a015fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/291c5c35ee191ec2876d6a324e0406baa8a015fc/CalendarCanvas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
365,
18,
694,
8199,
26404,
12,
2890,
18,
2938,
18,
12370,
2957,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
365,
18,
694,
8199,
26404,
12,
2890,
18,
2938,
18,
12370,
2957,
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,
-100
] |
print "P Pick weight deleted"
|
msg = "P Pick weight deleted" appendTextview(self.textviewStdOut, msg)
|
def delPWeight(self): try: del self.dicts[self.stPt]['PWeight'] print "P Pick weight deleted" except: pass
|
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
52,
6544,
12,
2890,
4672,
775,
30,
1464,
365,
18,
16287,
63,
2890,
18,
334,
16484,
23962,
52,
6544,
3546,
1234,
273,
315,
52,
23038,
3119,
4282,
6,
714,
1528,
1945,
12,
2890,
18,
955,
1945,
10436,
1182,
16,
1234,
13,
1335,
30,
1342,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
52,
6544,
12,
2890,
4672,
775,
30,
1464,
365,
18,
16287,
63,
2890,
18,
334,
16484,
23962,
52,
6544,
3546,
1234,
273,
315,
52,
23038,
3119,
4282,
6,
714,
1528,
1945,
12,
2890,
18,
955,
1945,
10436,
1182,
16,
1234,
13,
1335,
30,
1342,
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
] |
return db.query_parse(subq[1])
|
if spell: spell_corrected = db.spell_correct(subq[1]) return db.query_parse(spell_corrected), spell_corrected return db.query_parse(subq[1]), None
|
def parse_query_spec(db, subq): if subq is None: return db.query_all() if not isinstance(subq, (list, tuple)): raise ValidationError("Invalid query specification - expected [query_type, parameters], didn't get a list (got %r)" % subq) if len(subq) != 2: raise ValidationError("Invalid query specification - expected [query_type, parameters], got a list of length %d" % len(subq)) # Handle the different types of subq. Convert this to a dict lookup if we # end up with lots. if subq[0] == 'freetext': return db.query_parse(subq[1]) raise ValidationError("Invalid query specification - unknown query type '%s'" % subq[0])
|
ac59c488d1d167561bc9b7d8284f56c05d11242e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/ac59c488d1d167561bc9b7d8284f56c05d11242e/search.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2271,
67,
2793,
12,
1966,
16,
720,
85,
4672,
309,
720,
85,
353,
599,
30,
327,
1319,
18,
2271,
67,
454,
1435,
309,
486,
1549,
12,
1717,
85,
16,
261,
1098,
16,
3193,
3719,
30,
1002,
13167,
2932,
1941,
843,
7490,
300,
2665,
306,
2271,
67,
723,
16,
1472,
6487,
10242,
1404,
336,
279,
666,
261,
13212,
738,
86,
2225,
738,
720,
85,
13,
309,
562,
12,
1717,
85,
13,
480,
576,
30,
1002,
13167,
2932,
1941,
843,
7490,
300,
2665,
306,
2271,
67,
723,
16,
1472,
6487,
2363,
279,
666,
434,
769,
738,
72,
6,
738,
562,
12,
1717,
85,
3719,
225,
468,
5004,
326,
3775,
1953,
434,
720,
85,
18,
225,
4037,
333,
358,
279,
2065,
3689,
309,
732,
468,
679,
731,
598,
328,
6968,
18,
309,
720,
85,
63,
20,
65,
422,
296,
74,
9015,
408,
4278,
309,
22377,
30,
22377,
67,
6746,
329,
273,
1319,
18,
1752,
1165,
67,
6746,
12,
1717,
85,
63,
21,
5717,
327,
1319,
18,
2271,
67,
2670,
12,
1752,
1165,
67,
6746,
329,
3631,
22377,
67,
6746,
329,
327,
1319,
18,
2271,
67,
2670,
12,
1717,
85,
63,
21,
65,
3631,
599,
225,
1002,
13167,
2932,
1941,
843,
7490,
300,
5917,
843,
618,
1995,
87,
4970,
738,
720,
85,
63,
20,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2271,
67,
2793,
12,
1966,
16,
720,
85,
4672,
309,
720,
85,
353,
599,
30,
327,
1319,
18,
2271,
67,
454,
1435,
309,
486,
1549,
12,
1717,
85,
16,
261,
1098,
16,
3193,
3719,
30,
1002,
13167,
2932,
1941,
843,
7490,
300,
2665,
306,
2271,
67,
723,
16,
1472,
6487,
10242,
1404,
336,
279,
666,
261,
13212,
738,
86,
2225,
738,
720,
85,
13,
309,
562,
12,
1717,
85,
13,
480,
576,
30,
1002,
13167,
2932,
1941,
843,
7490,
300,
2665,
306,
2271,
67,
723,
16,
1472,
6487,
2363,
279,
666,
434,
769,
738,
72,
6,
738,
562,
12,
1717,
85,
3719,
225,
468,
5004,
326,
3775,
1953,
434,
720,
85,
18,
225,
4037,
333,
358,
2
] |
log.warn("Could not find product: %s", productname)
|
log.warn("Could not find product: %s", productslug)
|
def add_ajax(request, id=0, template="json.html"): data = {'errors': []} product = None formdata = request.POST.copy() if not formdata.has_key('productname'): data['errors'].append(('product', _('No product requested'))) else: productslug = formdata['productname'] log.debug('CART_AJAX: slug=%s', productslug) try: product, details = product_from_post(productslug, formdata) except Product.DoesNotExist: log.warn("Could not find product: %s", productname) product = None if not product: data['errors'].append(('product', _('The product you have requested does not exist.'))) else: data['id'] = product.id data['name'] = product.translated_name() if not formdata.has_key('quantity'): quantity = -1 else: quantity = formdata['quantity'] try: quantity = int(quantity) if quantity < 0: data['errors'].append(('quantity', _('Choose a quantity.'))) except (TypeError, ValueError): data['errors'].append(('quantity', _('Choose a whole number.'))) tempCart = Cart.objects.from_request(request, create=True) if not data['errors']: if tempCart.add_item(product, number_added=quantity): request.session['cart'] = tempCart.id data['results'] = _('Success') else: data['results'] = _('Error') data['errors'].append(('quantity', _("Not enough items of '%s' in stock.") % product.translated_name())) else: data['results'] = _('Error') data['cart_count'] = tempCart.numItems encoded = JSONEncoder().encode(data) encoded = mark_safe(encoded) log.debug('CART AJAX: %s', data) dispatcher.send(signal=satchmo_cart_changed, cart=tempCart, request=request) return render_to_response(template, {'json' : encoded})
|
adbf8fc31f152b5c3dd5bf7dad7c19f6ac9a01b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/adbf8fc31f152b5c3dd5bf7dad7c19f6ac9a01b5/cart.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12813,
12,
2293,
16,
612,
33,
20,
16,
1542,
1546,
1977,
18,
2620,
6,
4672,
501,
273,
13666,
4324,
4278,
5378,
97,
3017,
273,
599,
30642,
273,
590,
18,
3798,
18,
3530,
1435,
309,
486,
30642,
18,
5332,
67,
856,
2668,
5896,
529,
11,
4672,
501,
3292,
4324,
29489,
6923,
12,
2668,
5896,
2187,
389,
2668,
2279,
3017,
3764,
11,
20349,
469,
30,
3017,
6436,
273,
30642,
3292,
5896,
529,
3546,
613,
18,
4148,
2668,
39,
4928,
67,
37,
17368,
30,
4959,
5095,
87,
2187,
3017,
6436,
13,
775,
30,
3017,
16,
3189,
273,
3017,
67,
2080,
67,
2767,
12,
5896,
6436,
16,
30642,
13,
225,
1335,
8094,
18,
15264,
30,
613,
18,
8935,
2932,
4445,
486,
1104,
3017,
30,
738,
87,
3113,
3017,
6436,
13,
3017,
273,
599,
225,
309,
486,
3017,
30,
501,
3292,
4324,
29489,
6923,
12,
2668,
5896,
2187,
389,
2668,
1986,
3017,
1846,
1240,
3764,
1552,
486,
1005,
1093,
20349,
225,
469,
30,
501,
3292,
350,
3546,
273,
3017,
18,
350,
501,
3292,
529,
3546,
273,
3017,
18,
22899,
67,
529,
1435,
225,
309,
486,
30642,
18,
5332,
67,
856,
2668,
16172,
11,
4672,
10457,
273,
300,
21,
469,
30,
10457,
273,
30642,
3292,
16172,
3546,
225,
775,
30,
10457,
273,
509,
12,
16172,
13,
309,
10457,
411,
374,
30,
501,
3292,
4324,
29489,
6923,
12,
2668,
16172,
2187,
389,
2668,
24529,
279,
10457,
1093,
20349,
225,
1335,
261,
19030,
16,
2068,
4672,
501,
3292,
4324,
29489,
6923,
12,
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,
527,
67,
12813,
12,
2293,
16,
612,
33,
20,
16,
1542,
1546,
1977,
18,
2620,
6,
4672,
501,
273,
13666,
4324,
4278,
5378,
97,
3017,
273,
599,
30642,
273,
590,
18,
3798,
18,
3530,
1435,
309,
486,
30642,
18,
5332,
67,
856,
2668,
5896,
529,
11,
4672,
501,
3292,
4324,
29489,
6923,
12,
2668,
5896,
2187,
389,
2668,
2279,
3017,
3764,
11,
20349,
469,
30,
3017,
6436,
273,
30642,
3292,
5896,
529,
3546,
613,
18,
4148,
2668,
39,
4928,
67,
37,
17368,
30,
4959,
5095,
87,
2187,
3017,
6436,
13,
775,
30,
3017,
16,
3189,
273,
3017,
67,
2080,
67,
2767,
12,
5896,
6436,
16,
30642,
13,
225,
1335,
8094,
18,
15264,
30,
613,
18,
8935,
2932,
4445,
2
] |
ReleaseToBuildDir(SHADOW_CENTRAL_DIR, SHADOW_CENTRAL_URL_PATH, options, upload_dir, files, dated)
|
options.product = "shadow-central" ReleaseToBuildDir(PVT_BUILD_DIR, PVT_BUILD_URL_PATH, options, upload_dir, files, dated)
|
def ReleaseToShadowCentralBuilds(options, upload_dir, files, dated=True): ReleaseToBuildDir(SHADOW_CENTRAL_DIR, SHADOW_CENTRAL_URL_PATH, options, upload_dir, files, dated)
|
b140bf3495d643e2e4b6539251b28066afabd5a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/b140bf3495d643e2e4b6539251b28066afabd5a1/post_upload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10819,
774,
12957,
39,
12839,
7746,
12,
2116,
16,
3617,
67,
1214,
16,
1390,
16,
302,
690,
33,
5510,
4672,
702,
18,
5896,
273,
315,
19119,
17,
71,
12839,
6,
10819,
774,
3116,
1621,
12,
30201,
56,
67,
20215,
67,
4537,
16,
27102,
56,
67,
20215,
67,
1785,
67,
4211,
16,
702,
16,
3617,
67,
1214,
16,
1390,
16,
302,
690,
13,
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,
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819,
774,
3116,
1621,
12,
30201,
56,
67,
20215,
67,
4537,
16,
27102,
56,
67,
20215,
67,
1785,
67,
4211,
16,
702,
16,
3617,
67,
1214,
16,
1390,
16,
302,
690,
13,
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
] |
sourceImagePage.put(original_description + '\n\n' + nowCommonsTemplate[sourceSite.lang][0] % targetFilename, comment = nowCommonsMessage[sourceSite.lang][1])
|
sourceImagePage.put(original_description + '\n\n' + nowCommonsTemplate[sourceSite.lang] % targetFilename, comment = nowCommonsMessage[sourceSite.lang])
|
def transferImage(self, sourceImagePage, debug=False): """Gets a wikilink to an image, downloads it and its description, and uploads it to another wikipedia. Returns the filename which was used to upload the image This function is used by imagetransfer.py and by copy_table.py """ sourceSite = sourceImagePage.site() if debug: print "--------------------------------------------------" if debug: print "Found image: %s"% imageTitle # need to strip off "Afbeelding:", "Image:" etc. # we only need the substring following the first colon filename = sourceImagePage.title().split(":", 1)[1] # Spaces might occur, but internally they are represented by underscores. # Change the name now, because otherwise we get the wrong MD5 hash. filename = filename.replace(' ', '_') # Also, the first letter should be capitalized # TODO: Don't capitalize on non-capitalizing wikis filename = filename[0].upper()+filename[1:] if debug: print "Image filename is: %s " % filename encodedFilename = filename.encode(sourceSite.encoding()) md5sum = md5.new(encodedFilename).hexdigest() if debug: print "MD5 hash is: %s" % md5sum # TODO: This probably doesn't work on all wiki families url = 'http://%s/upload/%s/%s/%s' % (sourceSite.hostname(), md5sum[0], md5sum[:2], filename) if debug: print "URL should be: %s" % url # localize the text that should be printed on the image description page try: original_description = sourceImagePage.get() description = wikipedia.translate(self.targetSite, copy_message) % (sourceSite, original_description) # TODO: Only the page's version history is shown, but the file's # version history would be more helpful description += '\n\n' + sourceImagePage.getVersionHistoryTable() # add interwiki link if sourceImagePage.site().family == self.targetSite.family: description += "\r\n\r\n" + sourceImagePage.aslink(forceInterwiki = True) except wikipedia.NoPage: description='' print "Image does not exist or description page is empty." except wikipedia.IsRedirectPage: description='' print "Image description page is redirect." else: bot = upload.UploadRobot(url = url, description = description, targetSite = self.targetSite, urlEncoding = sourceSite.encoding()) # try to upload targetFilename = bot.run() if targetFilename and self.targetSite.family.name == 'commons' and self.targetSite.lang == 'commons': # upload to Commons was successful reason = wikipedia.translate(sourceSite, nowCommonsMessage) # try to delete the original image if we have a sysop account if config.sysopnames.has_key(sourceSite.family.name) and config.sysopnames[sourceSite.family.name].has_key(sourceSite.lang): if sourceImagePage.delete(reason): return if nowCommonsTemplate.has_key(sourceSite.lang) and config.usernames.has_key(sourceSite.family.name) and config.usernames[sourceSite.family.name].has_key(sourceSite.lang): # add the nowCommons template. wikipedia.output(u'Adding nowCommons template to %s' % sourceImagePage.title()) sourceImagePage.put(original_description + '\n\n' + nowCommonsTemplate[sourceSite.lang][0] % targetFilename, comment = nowCommonsMessage[sourceSite.lang][1])
|
9580a8e56dd07ed9c82f5e3ab3559a4af5dfe832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/9580a8e56dd07ed9c82f5e3ab3559a4af5dfe832/imagetransfer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
2040,
12,
2890,
16,
1084,
2040,
1964,
16,
1198,
33,
8381,
4672,
3536,
3002,
279,
341,
1766,
330,
754,
358,
392,
1316,
16,
23011,
518,
471,
2097,
2477,
16,
471,
18427,
518,
358,
4042,
21137,
18,
2860,
326,
1544,
1492,
1703,
1399,
358,
3617,
326,
1316,
1220,
445,
353,
1399,
635,
8902,
16354,
634,
586,
18,
2074,
471,
635,
1610,
67,
2121,
18,
2074,
3536,
1084,
4956,
273,
1084,
2040,
1964,
18,
4256,
1435,
309,
1198,
30,
1172,
315,
9634,
413,
6,
309,
1198,
30,
1172,
315,
2043,
1316,
30,
738,
87,
28385,
1316,
4247,
468,
1608,
358,
2569,
3397,
315,
12664,
2196,
488,
310,
2773,
16,
315,
2040,
2773,
5527,
18,
468,
732,
1338,
1608,
326,
3019,
3751,
326,
1122,
13336,
1544,
273,
1084,
2040,
1964,
18,
2649,
7675,
4939,
2932,
2773,
16,
404,
25146,
21,
65,
468,
348,
4996,
4825,
3334,
16,
1496,
12963,
2898,
854,
10584,
635,
24714,
18,
468,
7576,
326,
508,
2037,
16,
2724,
3541,
732,
336,
326,
7194,
10852,
25,
1651,
18,
1544,
273,
1544,
18,
2079,
2668,
2265,
4427,
13,
468,
8080,
16,
326,
1122,
9471,
1410,
506,
12872,
1235,
468,
2660,
30,
7615,
1404,
17451,
603,
1661,
17,
5909,
7053,
6894,
341,
1766,
291,
1544,
273,
1544,
63,
20,
8009,
5797,
1435,
15,
3459,
63,
21,
26894,
309,
1198,
30,
1172,
315,
2040,
1544,
353,
30,
738,
87,
315,
738,
1544,
3749,
5359,
273,
1544,
18,
3015,
12,
3168,
4956,
18,
5999,
10756,
3481,
25,
1364,
273,
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,
7412,
2040,
12,
2890,
16,
1084,
2040,
1964,
16,
1198,
33,
8381,
4672,
3536,
3002,
279,
341,
1766,
330,
754,
358,
392,
1316,
16,
23011,
518,
471,
2097,
2477,
16,
471,
18427,
518,
358,
4042,
21137,
18,
2860,
326,
1544,
1492,
1703,
1399,
358,
3617,
326,
1316,
1220,
445,
353,
1399,
635,
8902,
16354,
634,
586,
18,
2074,
471,
635,
1610,
67,
2121,
18,
2074,
3536,
1084,
4956,
273,
1084,
2040,
1964,
18,
4256,
1435,
309,
1198,
30,
1172,
315,
9634,
413,
6,
309,
1198,
30,
1172,
315,
2043,
1316,
30,
738,
87,
28385,
1316,
4247,
468,
1608,
358,
2569,
3397,
315,
12664,
2196,
488,
310,
2773,
16,
315,
2040,
2773,
5527,
18,
468,
732,
1338,
1608,
326,
2
] |
self.limit = self.__class__.limit or limit
|
kwargs.update({'limit': limit})
|
def __init__(self, title=None, limit=None, include_list=None, exclude_list=None, **kwargs): self.include_list = include_list or [] self.exclude_list = exclude_list or [] self.limit = self.__class__.limit or limit super(RecentActions, self).__init__(title, **kwargs)
|
281e552acc2a80d145d9c66ad2d98626f0d7a40b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3482/281e552acc2a80d145d9c66ad2d98626f0d7a40b/modules.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
33,
7036,
16,
1800,
33,
7036,
16,
2341,
67,
1098,
33,
7036,
16,
4433,
67,
1098,
33,
7036,
16,
2826,
4333,
4672,
365,
18,
6702,
67,
1098,
273,
2341,
67,
1098,
578,
5378,
365,
18,
10157,
67,
1098,
273,
4433,
67,
1098,
578,
5378,
1205,
18,
2725,
12590,
11,
3595,
4278,
1800,
6792,
2240,
12,
17076,
6100,
16,
365,
2934,
972,
2738,
972,
12,
2649,
16,
2826,
4333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
33,
7036,
16,
1800,
33,
7036,
16,
2341,
67,
1098,
33,
7036,
16,
4433,
67,
1098,
33,
7036,
16,
2826,
4333,
4672,
365,
18,
6702,
67,
1098,
273,
2341,
67,
1098,
578,
5378,
365,
18,
10157,
67,
1098,
273,
4433,
67,
1098,
578,
5378,
1205,
18,
2725,
12590,
11,
3595,
4278,
1800,
6792,
2240,
12,
17076,
6100,
16,
365,
2934,
972,
2738,
972,
12,
2649,
16,
2826,
4333,
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
] |
sub_name = video_filename + extension
|
sub_name = video_name + extension
|
def subtitle_name_gen(video_filename, extension=".srt"): """Generates a subtitle file name given the video file name """ video_name = "" sub_name = "" if isinstance(video_filename, str): if get_extension(video_filename) in videofile.VIDEOS_EXT: video_name = without_extension(video_filename) elif isinstance(video_filename, videofile): if get_extension(video_filename.getFileName()) in videofile.VIDEOS_EXT: video_name = without_extension(video_filename.getFileName()) if video_name: sub_name = video_filename + extension return sub_name else: log.debug("No video name to generate subtitle file name") return ""
|
79fe17f27332dee7d54580cd61008725af6eabb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/79fe17f27332dee7d54580cd61008725af6eabb0/Subtitle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20281,
67,
529,
67,
4507,
12,
9115,
67,
3459,
16,
2710,
1546,
18,
87,
3797,
6,
4672,
3536,
6653,
279,
20281,
585,
508,
864,
326,
6191,
585,
508,
3536,
6191,
67,
529,
273,
1408,
720,
67,
529,
273,
1408,
309,
1549,
12,
9115,
67,
3459,
16,
609,
4672,
309,
336,
67,
6447,
12,
9115,
67,
3459,
13,
316,
6191,
768,
18,
58,
10385,
4618,
67,
4142,
30,
6191,
67,
529,
273,
2887,
67,
6447,
12,
9115,
67,
3459,
13,
1327,
1549,
12,
9115,
67,
3459,
16,
6191,
768,
4672,
309,
336,
67,
6447,
12,
9115,
67,
3459,
18,
588,
4771,
10756,
316,
6191,
768,
18,
58,
10385,
4618,
67,
4142,
30,
6191,
67,
529,
273,
2887,
67,
6447,
12,
9115,
67,
3459,
18,
588,
4771,
10756,
225,
309,
6191,
67,
529,
30,
720,
67,
529,
273,
6191,
67,
529,
397,
2710,
327,
720,
67,
529,
469,
30,
613,
18,
4148,
2932,
2279,
6191,
508,
358,
2103,
20281,
585,
508,
7923,
327,
1408,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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1652,
20281,
67,
529,
67,
4507,
12,
9115,
67,
3459,
16,
2710,
1546,
18,
87,
3797,
6,
4672,
3536,
6653,
279,
20281,
585,
508,
864,
326,
6191,
585,
508,
3536,
6191,
67,
529,
273,
1408,
720,
67,
529,
273,
1408,
309,
1549,
12,
9115,
67,
3459,
16,
609,
4672,
309,
336,
67,
6447,
12,
9115,
67,
3459,
13,
316,
6191,
768,
18,
58,
10385,
4618,
67,
4142,
30,
6191,
67,
529,
273,
2887,
67,
6447,
12,
9115,
67,
3459,
13,
1327,
1549,
12,
9115,
67,
3459,
16,
6191,
768,
4672,
309,
336,
67,
6447,
12,
9115,
67,
3459,
18,
588,
4771,
10756,
316,
6191,
768,
18,
58,
10385,
4618,
67,
4142,
30,
6191,
67,
529,
273,
2887,
67,
6447,
2
] |
cr.close()
|
def get_id(self, cr, uid, sequence_id, test='id=%s', context=None): # as we have to commit, we must create a fresh new cursor cr = pooler.get_db(cr.dbname).cursor() try: cr.execute('SELECT id, number_next, prefix, suffix, padding FROM ir_sequence WHERE '+test+' AND active=%s FOR UPDATE', (sequence_id, True)) res = cr.dictfetchone() if res: cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True)) if res['number_next']: return self._process(res['prefix']) + '%%0%sd' % res['padding'] % res['number_next'] + self._process(res['suffix']) else: return self._process(res['prefix']) + self._process(res['suffix']) finally: cr.commit() cr.close() return False
|
58fd28a3530cb612b8eab7f29a94ff3a21cd2fd8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/58fd28a3530cb612b8eab7f29a94ff3a21cd2fd8/ir_sequence.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
33,
7036,
4672,
468,
487,
732,
1240,
358,
3294,
16,
732,
1297,
752,
279,
12186,
394,
3347,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
3353,
18,
20979,
2934,
9216,
1435,
775,
30,
4422,
18,
8837,
2668,
4803,
612,
16,
1300,
67,
4285,
16,
1633,
16,
3758,
16,
4992,
4571,
9482,
67,
6178,
4852,
15126,
3813,
6797,
4116,
2695,
5095,
87,
12108,
11028,
2187,
261,
6178,
67,
350,
16,
1053,
3719,
400,
273,
4422,
18,
1576,
5754,
476,
1435,
309,
400,
30,
4422,
18,
8837,
2668,
8217,
9482,
67,
6178,
7855,
1300,
67,
4285,
33,
2696,
67,
4285,
15,
2696,
67,
15016,
4852,
612,
5095,
87,
4116,
2695,
5095,
87,
2187,
261,
455,
3292,
350,
17337,
1053,
3719,
309,
400,
3292,
2696,
67,
4285,
3546,
30,
327,
365,
6315,
2567,
12,
455,
3292,
3239,
19486,
397,
1995,
9,
20,
9,
6427,
11,
738,
400,
3292,
9598,
3546,
738,
400,
3292,
2696,
67,
4285,
3546,
397,
365,
6315,
2567,
12,
455,
3292,
8477,
19486,
469,
30,
327,
365,
6315,
2567,
12,
455,
3292,
3239,
19486,
397,
365,
6315,
2567,
12,
455,
3292,
8477,
19486,
3095,
30,
4422,
18,
7371,
1435,
327,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3102,
67,
350,
16,
1842,
2218,
350,
5095,
87,
2187,
819,
33,
7036,
4672,
468,
487,
732,
1240,
358,
3294,
16,
732,
1297,
752,
279,
12186,
394,
3347,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
3353,
18,
20979,
2934,
9216,
1435,
775,
30,
4422,
18,
8837,
2668,
4803,
612,
16,
1300,
67,
4285,
16,
1633,
16,
3758,
16,
4992,
4571,
9482,
67,
6178,
4852,
15126,
3813,
6797,
4116,
2695,
5095,
87,
12108,
11028,
2187,
261,
6178,
67,
350,
16,
1053,
3719,
400,
273,
4422,
18,
1576,
5754,
476,
1435,
309,
400,
30,
4422,
18,
8837,
2668,
8217,
9482,
67,
6178,
7855,
1300,
67,
4285,
33,
2696,
2
] |
|
int(m.groups(1)), int(m.groups(2)))
|
int(m.group(1)), int(m.group(2)))
|
def extract_ampId(self, dataId): m = re.match(r'(\d)(\d)', dataId['channel']) return (self.extract_detectorName(dataId), int(m.groups(1)), int(m.groups(2)))
|
6adea68f91efb1e55fc37c9f593da9c7d41a12bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6517/6adea68f91efb1e55fc37c9f593da9c7d41a12bb/lsstSimMapper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
931,
548,
12,
2890,
16,
501,
548,
4672,
312,
273,
283,
18,
1916,
12,
86,
11,
4713,
72,
13,
4713,
72,
13,
2187,
501,
548,
3292,
4327,
19486,
327,
261,
2890,
18,
8004,
67,
8238,
1229,
461,
12,
892,
548,
3631,
509,
12,
81,
18,
4650,
12,
21,
13,
3631,
509,
12,
81,
18,
4650,
12,
22,
20349,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
931,
548,
12,
2890,
16,
501,
548,
4672,
312,
273,
283,
18,
1916,
12,
86,
11,
4713,
72,
13,
4713,
72,
13,
2187,
501,
548,
3292,
4327,
19486,
327,
261,
2890,
18,
8004,
67,
8238,
1229,
461,
12,
892,
548,
3631,
509,
12,
81,
18,
4650,
12,
21,
13,
3631,
509,
12,
81,
18,
4650,
12,
22,
20349,
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
] |
partLod = self.find("**/" + lodName) if (partLod == None):
|
if lodName == 'lodRoot': partLod = self else: partLod = self.find("**/" + lodName) if partLod.isEmpty():
|
def __copyPartBundles(self, other): """__copyPartBundles(self, Actor) Copy the part bundle dictionary from another actor as this instance's own. NOTE: this method does not actually copy geometry """ for lodName in other.__partBundleDict.keys(): self.__partBundleDict[lodName] = {} self.__updateSortedLODNames() # find the lod :Asad: partLod = self.find("**/" + lodName) if (partLod == None): Actor.notify.warning("no lod named: %s" % (lodName)) return None for partName in other.__partBundleDict[lodName].keys(): # find the part in our tree #partBundle = self.find("**/" + Actor.partPrefix + partName) # Asad: changed above line to below partBundle = partLod.find("**/" + Actor.partPrefix + partName) if (partBundle != None): # store the part bundle self.__partBundleDict[lodName][partName] = partBundle else: Actor.notify.error("lod: %s has no matching part: %s" % (lodName, partName))
|
a2940a7d11d2407a6796a102b3df3d3ebf3f7fca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a2940a7d11d2407a6796a102b3df3d3ebf3f7fca/Actor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3530,
1988,
16151,
12,
2890,
16,
1308,
4672,
3536,
972,
3530,
1988,
16151,
12,
2890,
16,
21142,
13,
5631,
326,
1087,
3440,
3880,
628,
4042,
8327,
487,
333,
791,
1807,
4953,
18,
5219,
30,
333,
707,
1552,
486,
6013,
1610,
5316,
3536,
364,
328,
369,
461,
316,
1308,
16186,
2680,
3405,
5014,
18,
2452,
13332,
365,
16186,
2680,
3405,
5014,
63,
80,
369,
461,
65,
273,
2618,
365,
16186,
2725,
11739,
48,
1212,
1557,
1435,
468,
1104,
326,
328,
369,
294,
1463,
361,
30,
309,
328,
369,
461,
422,
296,
80,
369,
2375,
4278,
1087,
48,
369,
273,
365,
469,
30,
1087,
48,
369,
273,
365,
18,
4720,
2932,
636,
4898,
397,
328,
369,
461,
13,
309,
1087,
48,
369,
18,
291,
1921,
13332,
21142,
18,
12336,
18,
8551,
2932,
2135,
328,
369,
4141,
30,
738,
87,
6,
738,
261,
80,
369,
461,
3719,
327,
599,
364,
1087,
461,
316,
1308,
16186,
2680,
3405,
5014,
63,
80,
369,
461,
8009,
2452,
13332,
468,
1104,
326,
1087,
316,
3134,
2151,
468,
2680,
3405,
273,
365,
18,
4720,
2932,
636,
4898,
397,
21142,
18,
2680,
2244,
397,
1087,
461,
13,
468,
2970,
361,
30,
3550,
5721,
980,
358,
5712,
1087,
3405,
273,
1087,
48,
369,
18,
4720,
2932,
636,
4898,
397,
21142,
18,
2680,
2244,
397,
1087,
461,
13,
309,
261,
2680,
3405,
480,
599,
4672,
468,
1707,
326,
1087,
3440,
365,
16186,
2680,
3405,
5014,
63,
80,
369,
461,
6362,
2680,
461,
65,
273,
1087,
3405,
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,
3530,
1988,
16151,
12,
2890,
16,
1308,
4672,
3536,
972,
3530,
1988,
16151,
12,
2890,
16,
21142,
13,
5631,
326,
1087,
3440,
3880,
628,
4042,
8327,
487,
333,
791,
1807,
4953,
18,
5219,
30,
333,
707,
1552,
486,
6013,
1610,
5316,
3536,
364,
328,
369,
461,
316,
1308,
16186,
2680,
3405,
5014,
18,
2452,
13332,
365,
16186,
2680,
3405,
5014,
63,
80,
369,
461,
65,
273,
2618,
365,
16186,
2725,
11739,
48,
1212,
1557,
1435,
468,
1104,
326,
328,
369,
294,
1463,
361,
30,
309,
328,
369,
461,
422,
296,
80,
369,
2375,
4278,
1087,
48,
369,
273,
365,
469,
30,
1087,
48,
369,
273,
365,
18,
4720,
2932,
636,
4898,
397,
328,
369,
461,
13,
309,
2
] |
if self.settings["target"] not in ["grp","tinderbox"]:
|
if self.settings["target"] in ["stage1","stage2","stage3"]:
|
def run(self): self.dir_setup() self.unpack_and_bind() try: self.chroot_setup() except: self.unbind() raise #modify the current environment. This is an ugly hack that should be fixed. We need this #to use the os.system() call since we can't specify our own environ: for x in self.settings.keys(): if type(self.settings[x])==types.StringType: #prefix to prevent namespace clashes: os.environ["clst_"+x]=self.settings[x] elif type(self.settings[x])==types.ListType: os.environ["clst_"+x]=string.join(self.settings[x]) if self.settings["target"] not in ["grp","tinderbox"]: try: cmd(self.settings["sharedir"]+"/targets/"+self.settings["target"]+"/"+self.settings["target"]+".sh run","build script failed") except CatalystError: self.unbind() raise CatalystError,"Stage build aborting due to error." elif self.settings["target"]=="grp": for pkgset in self.settings["grp"]: #example call: "grp.sh run pkgset cd1 xmms vim sys-apps/gleep" try: cmd(self.settings["sharedir"]+"/targets/grp/grp.sh run "+self.settings["grp/"+pkgset+"/type"]+" "+pkgset+" "+string.join(self.settings["grp/"+pkgset+"/packages"])) except CatalystError: self.unbind() raise CatalystError,"GRP build aborting due to error." elif self.settings["target"]=="livecd-stage1": try: cmd(self.settings["sharedir"]+"/targets/livecd-stage1/livecd-stage1.sh run "+string.join(self.settings["livecd-stage1/packages"])) except CatalystError: self.unbind() raise CatalystError,"GRP build aborting due to error." elif self.settings["target"]=="livecd-stage2": mynames=self.settings["boot/kernel"] if type(mynames)==types.StringType: mynames=[mynames] args=`len(mynames)` for x in mynames: args=args+" "+x+" "+self.settings["boot/kernel/"+x+"/sources"] if not os.path.exists(self.settings["boot/kernel/"+x+"/config"]): raise CatalystError, "Can't find kernel config: "+self.settings["boot/kernel/"+x+"/config"] retval=os.system("cp "+self.settings["boot/kernel/"+x+"/config"]+" "+self.settings["chroot_dir"]+"/var/tmp/"+x+".config") if retval!=0: raise CatalystError, "Couldn't copy kernel config: "+self.settings["boot/kernel/"+x+"/config"] try: cmd(self.settings["sharedir"]+"/targets/livecd-stage2/livecd-stage2.sh run "+args) except CatalystError: self.unbind() raise CatalystError,"GRP build aborting due to error." else: #tinderbox #example call: "grp.sh run xmms vim sys-apps/gleep" try: cmd(self.settings["sharedir"]+"/targets/tinderbox/tinderbox.sh run "+string.join(self.settings["tinderbox/packages"])) except CatalystError: self.unbind() raise CatalystError,"Tinderbox aborting due to error." if self.settings["target"] not in ["grp","tinderbox"]: self.preclean() self.unbind() if self.settings["target"] not in ["grp","tinderbox"]: #clean is for removing things after bind-mounts are unmounted (general file removal and cleanup) self.clean() self.capture()
|
b5e4984613eaedce63a30d41538acb40e915690b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/b5e4984613eaedce63a30d41538acb40e915690b/targets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
1214,
67,
8401,
1435,
365,
18,
17309,
67,
464,
67,
4376,
1435,
775,
30,
365,
18,
343,
3085,
67,
8401,
1435,
1335,
30,
365,
18,
318,
4376,
1435,
1002,
468,
17042,
326,
783,
3330,
18,
1220,
353,
392,
26920,
11769,
716,
1410,
506,
5499,
18,
1660,
1608,
333,
468,
869,
999,
326,
1140,
18,
4299,
1435,
745,
3241,
732,
848,
1404,
4800,
3134,
4953,
5473,
30,
364,
619,
316,
365,
18,
4272,
18,
2452,
13332,
309,
618,
12,
2890,
18,
4272,
63,
92,
5717,
631,
2352,
18,
780,
559,
30,
468,
3239,
358,
5309,
1981,
927,
7690,
30,
1140,
18,
28684,
9614,
830,
334,
9548,
15,
92,
65,
33,
2890,
18,
4272,
63,
92,
65,
1327,
618,
12,
2890,
18,
4272,
63,
92,
5717,
631,
2352,
18,
19366,
30,
1140,
18,
28684,
9614,
830,
334,
9548,
15,
92,
65,
33,
1080,
18,
5701,
12,
2890,
18,
4272,
63,
92,
5717,
225,
309,
365,
18,
4272,
9614,
3299,
11929,
316,
8247,
12869,
21,
15937,
12869,
22,
15937,
12869,
23,
11929,
30,
775,
30,
1797,
12,
2890,
18,
4272,
9614,
14419,
1214,
6,
3737,
6,
19,
11358,
4898,
15,
2890,
18,
4272,
9614,
3299,
6,
3737,
6,
4898,
15,
2890,
18,
4272,
9614,
3299,
6,
3737,
9654,
674,
1086,
15937,
3510,
2728,
2535,
7923,
1335,
385,
3145,
1094,
668,
30,
365,
18,
318,
4376,
1435,
1002,
385,
3145,
1094,
668,
10837,
8755,
1361,
6263,
310,
6541,
358,
555,
1199,
1327,
365,
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,
1086,
12,
2890,
4672,
365,
18,
1214,
67,
8401,
1435,
365,
18,
17309,
67,
464,
67,
4376,
1435,
775,
30,
365,
18,
343,
3085,
67,
8401,
1435,
1335,
30,
365,
18,
318,
4376,
1435,
1002,
468,
17042,
326,
783,
3330,
18,
1220,
353,
392,
26920,
11769,
716,
1410,
506,
5499,
18,
1660,
1608,
333,
468,
869,
999,
326,
1140,
18,
4299,
1435,
745,
3241,
732,
848,
1404,
4800,
3134,
4953,
5473,
30,
364,
619,
316,
365,
18,
4272,
18,
2452,
13332,
309,
618,
12,
2890,
18,
4272,
63,
92,
5717,
631,
2352,
18,
780,
559,
30,
468,
3239,
358,
5309,
1981,
927,
7690,
30,
1140,
18,
28684,
9614,
830,
334,
9548,
15,
92,
65,
33,
2890,
18,
4272,
2
] |
step %= len(self) for i in range(step):
|
halflen = (length+1) >> 1 if n > halflen or n < -halflen: n %= length if n > halflen: n -= length elif n < -halflen: n += length while n > 0:
|
def rotate(self, step=1): if len(self) == 0: return step %= len(self) for i in range(step): self.appendleft(self.pop())
|
98d77cf1aef09187f66c5d480f696aed0614be1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/98d77cf1aef09187f66c5d480f696aed0614be1e/collections.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
12,
2890,
16,
2235,
33,
21,
4672,
309,
562,
12,
2890,
13,
422,
374,
30,
327,
8816,
1897,
273,
261,
2469,
15,
21,
13,
1671,
404,
309,
290,
405,
8816,
1897,
578,
290,
411,
300,
20222,
1897,
30,
290,
30582,
769,
309,
290,
405,
8816,
1897,
30,
290,
3947,
769,
1327,
290,
411,
300,
20222,
1897,
30,
290,
1011,
769,
1323,
290,
405,
374,
30,
365,
18,
6923,
4482,
12,
2890,
18,
5120,
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,
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769,
309,
290,
405,
8816,
1897,
30,
290,
3947,
769,
1327,
290,
411,
300,
20222,
1897,
30,
290,
1011,
769,
1323,
290,
405,
374,
30,
365,
18,
6923,
4482,
12,
2890,
18,
5120,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._open(location)
|
return self._open(location)
|
def _open(self, url, data=None): self.url = url opener = URLOpener() for name, value in self._cookies.items(): # Quick and dirty hack opener.addheader('Cookie', '%s=%s' % (name, value)) fp = opener.open(url, data=data) self.content = fp.read() self.headers = fp.info() self.status = fp.status self.message = fp.message fp.close() for cookie in self.headers.getheaders('Set-Cookie'): # Quick and dirty hack args = cookie.split(';') name, value = args[0].split('=') self._cookies[name] = value if self.status == 302: # Process HTTP redirects. location = self.headers.get('Location') # This might loop. Let's hope it doesn't self._open(location)
|
1615f80a1ab77bee0fc80ea4a6a342793dfb6fc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/1615f80a1ab77bee0fc80ea4a6a342793dfb6fc1/test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
365,
18,
718,
273,
880,
20532,
273,
1618,
1502,
84,
708,
1435,
364,
508,
16,
460,
316,
365,
6315,
16240,
18,
3319,
13332,
468,
19884,
471,
9603,
11769,
20532,
18,
1289,
3374,
2668,
6151,
2187,
1995,
87,
5095,
87,
11,
738,
261,
529,
16,
460,
3719,
4253,
273,
20532,
18,
3190,
12,
718,
16,
501,
33,
892,
13,
365,
18,
1745,
273,
4253,
18,
896,
1435,
365,
18,
2485,
273,
4253,
18,
1376,
1435,
365,
18,
2327,
273,
4253,
18,
2327,
365,
18,
2150,
273,
4253,
18,
2150,
4253,
18,
4412,
1435,
364,
3878,
316,
365,
18,
2485,
18,
75,
546,
684,
414,
2668,
694,
17,
6151,
11,
4672,
468,
19884,
471,
9603,
11769,
833,
273,
3878,
18,
4939,
2668,
4359,
13,
508,
16,
460,
273,
833,
63,
20,
8009,
4939,
2668,
2218,
13,
365,
6315,
16240,
63,
529,
65,
273,
460,
309,
365,
18,
2327,
422,
22072,
30,
468,
4389,
2239,
18064,
18,
2117,
273,
365,
18,
2485,
18,
588,
2668,
2735,
6134,
468,
1220,
4825,
2798,
18,
225,
10559,
1807,
27370,
518,
3302,
1404,
365,
6315,
3190,
12,
3562,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
365,
18,
718,
273,
880,
20532,
273,
1618,
1502,
84,
708,
1435,
364,
508,
16,
460,
316,
365,
6315,
16240,
18,
3319,
13332,
468,
19884,
471,
9603,
11769,
20532,
18,
1289,
3374,
2668,
6151,
2187,
1995,
87,
5095,
87,
11,
738,
261,
529,
16,
460,
3719,
4253,
273,
20532,
18,
3190,
12,
718,
16,
501,
33,
892,
13,
365,
18,
1745,
273,
4253,
18,
896,
1435,
365,
18,
2485,
273,
4253,
18,
1376,
1435,
365,
18,
2327,
273,
4253,
18,
2327,
365,
18,
2150,
273,
4253,
18,
2150,
4253,
18,
4412,
1435,
364,
3878,
316,
365,
18,
2485,
18,
75,
546,
684,
414,
2668,
694,
17,
6151,
2
] |
batchIDList.append(pilotJobReference)
|
batchIDList.append( pilotJobReference )
|
def submitJob( self, executableFile, proxy, numberOfJobs=1 ): """ Method to submit job """
|
45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
365,
16,
9070,
812,
16,
2889,
16,
7922,
7276,
33,
21,
262,
30,
3536,
2985,
358,
4879,
1719,
3536,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
365,
16,
9070,
812,
16,
2889,
16,
7922,
7276,
33,
21,
262,
30,
3536,
2985,
358,
4879,
1719,
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,
-100,
-100,
-100,
-100,
-100
] |
if diff < 0:
|
if op1.int < op2.int:
|
def __add__(self, other, context=None): """Returns self + other.
|
2987962c266a487e19674e69ca08f8ac738322b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2987962c266a487e19674e69ca08f8ac738322b8/decimal.py
|
[
1,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
values[category.name] = {}
|
def _reset_values (): for category in categories: values[category.name] = {} if category.iterable: for value in category.values: values[category.name][value] = False else: values[category.name] = None rating_modified.clear()
|
e57320a5f66cd1bb8ce168580daf9cf533104b48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/e57320a5f66cd1bb8ce168580daf9cf533104b48/rating_html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6208,
67,
2372,
1832,
30,
364,
3150,
316,
6477,
30,
309,
3150,
18,
15364,
30,
364,
460,
316,
3150,
18,
2372,
30,
924,
63,
4743,
18,
529,
6362,
1132,
65,
273,
1083,
469,
30,
924,
63,
4743,
18,
529,
65,
273,
599,
13953,
67,
7342,
18,
8507,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6208,
67,
2372,
1832,
30,
364,
3150,
316,
6477,
30,
309,
3150,
18,
15364,
30,
364,
460,
316,
3150,
18,
2372,
30,
924,
63,
4743,
18,
529,
6362,
1132,
65,
273,
1083,
469,
30,
924,
63,
4743,
18,
529,
65,
273,
599,
13953,
67,
7342,
18,
8507,
1435,
282,
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
] |
|
for j in range(seg_data.ele_len('%02i' % (i))):
|
for j in range(1, seg_data.ele_len('%02i' % (i))+1):
|
def gen_seg(self, seg_data, src, err_node_list): """ Find error seg for this segment. Find any skipped error values. ID pos of bad value. @param seg_data: data segment instance """ cur_line = src.cur_line
|
4cc131951b2f2d09daaa4f066d42f77d82b8ee10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/4cc131951b2f2d09daaa4f066d42f77d82b8ee10/error_html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
5680,
12,
2890,
16,
2291,
67,
892,
16,
1705,
16,
393,
67,
2159,
67,
1098,
4672,
3536,
4163,
555,
2291,
364,
333,
3267,
18,
4163,
1281,
9700,
555,
924,
18,
1599,
949,
434,
5570,
460,
18,
632,
891,
2291,
67,
892,
30,
501,
3267,
791,
3536,
662,
67,
1369,
273,
1705,
18,
1397,
67,
1369,
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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67,
892,
16,
1705,
16,
393,
67,
2159,
67,
1098,
4672,
3536,
4163,
555,
2291,
364,
333,
3267,
18,
4163,
1281,
9700,
555,
924,
18,
1599,
949,
434,
5570,
460,
18,
632,
891,
2291,
67,
892,
30,
501,
3267,
791,
3536,
662,
67,
1369,
273,
1705,
18,
1397,
67,
1369,
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
] |
"""Return the main documentation string of the interface."""
|
"""Return the main documentation string of the interface. Example:: >>> from tests import getInterfaceDetails >>> details = getInterfaceDetails() >>> details.getDoc()[:34] '<h1>This is the Foo interface</h1>' """
|
def getDoc(self): """Return the main documentation string of the interface.""" return stx2html(self.context.getDoc())
|
8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17999,
12,
2890,
4672,
3536,
990,
326,
2774,
7323,
533,
434,
326,
1560,
18,
225,
5090,
2866,
225,
4080,
628,
7434,
1930,
336,
1358,
3790,
4080,
3189,
273,
336,
1358,
3790,
1435,
4080,
3189,
18,
588,
1759,
1435,
10531,
5026,
65,
2368,
76,
21,
34,
2503,
353,
326,
23077,
1560,
1757,
76,
21,
1870,
3536,
327,
384,
92,
22,
2620,
12,
2890,
18,
2472,
18,
588,
1759,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17999,
12,
2890,
4672,
3536,
990,
326,
2774,
7323,
533,
434,
326,
1560,
18,
225,
5090,
2866,
225,
4080,
628,
7434,
1930,
336,
1358,
3790,
4080,
3189,
273,
336,
1358,
3790,
1435,
4080,
3189,
18,
588,
1759,
1435,
10531,
5026,
65,
2368,
76,
21,
34,
2503,
353,
326,
23077,
1560,
1757,
76,
21,
1870,
3536,
327,
384,
92,
22,
2620,
12,
2890,
18,
2472,
18,
588,
1759,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.input('mosaic estimate') self.input('go')
|
for i in _images: self.input('mosaic estimate %d' % i) self.input('go')
|
def _index(self): '''Implement the indexer interface.'''
|
18979c3273b7035ec88d3f13b963de27bad1113f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3290/18979c3273b7035ec88d3f13b963de27bad1113f/Mosflm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
12,
2890,
4672,
9163,
5726,
326,
12635,
1560,
1093,
6309,
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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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,
389,
1615,
12,
2890,
4672,
9163,
5726,
326,
12635,
1560,
1093,
6309,
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
] |
"""This shouldn't ever be called in any release of bpython, so beat me up if you find anything calling it.""" open('/home/bob/tmp/plonker','a').write( "%s\n" % str( s ) )
|
"""This shouldn't ever be called in any release of bpython, so beat me up if you find anything calling it.""" open('/home/bob/tmp/plonker','a').write( "%s\n" % str( s ) )
|
def DEBUG(s): """This shouldn't ever be called in any release of bpython, so beat me up if you find anything calling it.""" open('/home/bob/tmp/plonker','a').write( "%s\n" % str( s ) )
|
c6361de06b71b20ac271f61d115e6c3b39ce82c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/c6361de06b71b20ac271f61d115e6c3b39ce82c6/bpython.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6369,
12,
87,
4672,
3536,
2503,
12044,
1404,
14103,
506,
2566,
316,
1281,
3992,
434,
324,
8103,
16,
1427,
23795,
1791,
731,
309,
1846,
1104,
6967,
4440,
518,
12123,
1696,
2668,
19,
8712,
19,
70,
947,
19,
5645,
19,
412,
265,
25293,
17023,
69,
16063,
2626,
12,
2213,
87,
64,
82,
6,
738,
609,
12,
272,
262,
225,
262,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6369,
12,
87,
4672,
3536,
2503,
12044,
1404,
14103,
506,
2566,
316,
1281,
3992,
434,
324,
8103,
16,
1427,
23795,
1791,
731,
309,
1846,
1104,
6967,
4440,
518,
12123,
1696,
2668,
19,
8712,
19,
70,
947,
19,
5645,
19,
412,
265,
25293,
17023,
69,
16063,
2626,
12,
2213,
87,
64,
82,
6,
738,
609,
12,
272,
262,
225,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
code =_fixescape(this)
|
code = _escape(source, this, state)
|
def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: subpattern.append((LITERAL, this)) elif this == "[": # character set set = []
|
842e911e887411eb043a164240fdb6b694895e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/842e911e887411eb043a164240fdb6b694895e87/sre_parse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
225,
1323,
404,
30,
225,
309,
609,
12,
3168,
18,
4285,
13,
316,
7566,
96,
3113,
7310,
4672,
898,
468,
679,
434,
720,
4951,
333,
273,
1084,
18,
588,
1435,
309,
333,
353,
599,
30,
898,
468,
679,
434,
1936,
225,
309,
333,
471,
333,
63,
20,
65,
486,
316,
22872,
6365,
67,
21666,
30,
720,
4951,
18,
6923,
12443,
23225,
16,
333,
3719,
225,
1327,
333,
422,
5158,
6877,
468,
3351,
444,
444,
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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,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
225,
1323,
404,
30,
225,
309,
609,
12,
3168,
18,
4285,
13,
316,
7566,
96,
3113,
7310,
4672,
898,
468,
679,
434,
720,
4951,
333,
273,
1084,
18,
588,
1435,
309,
333,
353,
599,
30,
898,
468,
679,
434,
1936,
225,
309,
333,
471,
333,
63,
20,
65,
486,
316,
22872,
6365,
67,
21666,
30,
720,
4951,
18,
6923,
12443,
23225,
16,
333,
3719,
225,
1327,
333,
422,
5158,
6877,
468,
3351,
444,
444,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert(self.debugPrint("setWalkSpeed()"))
|
assert self.notify.debugStateCall(self)
|
def setWalkSpeed(self, forward, jump, reverse, rotate): assert(self.debugPrint("setWalkSpeed()")) self.avatarControlForwardSpeed=forward self.avatarControlJumpForce=jump self.avatarControlReverseSpeed=reverse self.avatarControlRotateSpeed=rotate
|
abc151a082286523619150b15b5dc30864de5bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/abc151a082286523619150b15b5dc30864de5bde/GravityWalker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
9463,
16562,
12,
2890,
16,
5104,
16,
11833,
16,
4219,
16,
8534,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
365,
18,
19660,
3367,
8514,
16562,
33,
11565,
365,
18,
19660,
3367,
26743,
10997,
33,
24574,
365,
18,
19660,
3367,
12650,
16562,
33,
9845,
365,
18,
19660,
3367,
16357,
16562,
33,
20342,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
9463,
16562,
12,
2890,
16,
5104,
16,
11833,
16,
4219,
16,
8534,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
365,
18,
19660,
3367,
8514,
16562,
33,
11565,
365,
18,
19660,
3367,
26743,
10997,
33,
24574,
365,
18,
19660,
3367,
12650,
16562,
33,
9845,
365,
18,
19660,
3367,
16357,
16562,
33,
20342,
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
] |
assert guard_op.storage_info.setfields == [(0, E.ofs_value, -2)]
|
assert guard_op.storage_info.setfields == [(0, E.ofs_value, 7)]
|
def test_E_optimize_loop(): spec = PerfectSpecializer(Loop(E.ops)) spec.find_nodes() spec.intersect_input_and_output() spec.optimize_loop() equaloplists(spec.loop.operations, [ ResOperation('merge_point', [E.sum, E.v], None), # guard_class is gone ResOperation('int_sub', [E.v, ConstInt(1)], E.v2), ResOperation('int_add', [E.sum, E.v], E.sum2), ResOperation('guard_true', [E.v2], None), ResOperation('jump', [E.sum2, E.v2], None), ]) guard_op = spec.loop.operations[-2] assert guard_op.getopname() == 'guard_true' assert guard_op.liveboxes == [E.sum2, E.v2] vt = cpu.cast_adr_to_int(node_vtable_adr) assert guard_op.storage_info.allocations == [vt] assert guard_op.storage_info.setfields == [(0, E.ofs_value, -2)]
|
b34ea2699f3e305ecec63bf9d40d53141e8e8bd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/b34ea2699f3e305ecec63bf9d40d53141e8e8bd9/test_optimize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
41,
67,
29155,
67,
6498,
13332,
857,
273,
5722,
74,
386,
1990,
3926,
12,
6452,
12,
41,
18,
4473,
3719,
857,
18,
4720,
67,
4690,
1435,
857,
18,
12288,
67,
2630,
67,
464,
67,
2844,
1435,
857,
18,
29155,
67,
6498,
1435,
3959,
83,
412,
1486,
12,
2793,
18,
6498,
18,
17542,
16,
306,
1124,
2988,
2668,
2702,
67,
1153,
2187,
306,
41,
18,
1364,
16,
512,
18,
90,
6487,
599,
3631,
468,
11026,
67,
1106,
353,
22296,
1124,
2988,
2668,
474,
67,
1717,
2187,
306,
41,
18,
90,
16,
9333,
1702,
12,
21,
13,
6487,
512,
18,
90,
22,
3631,
1124,
2988,
2668,
474,
67,
1289,
2187,
306,
41,
18,
1364,
16,
512,
18,
90,
6487,
512,
18,
1364,
22,
3631,
1124,
2988,
2668,
24594,
67,
3767,
2187,
306,
41,
18,
90,
22,
6487,
599,
3631,
1124,
2988,
2668,
24574,
2187,
306,
41,
18,
1364,
22,
16,
512,
18,
90,
22,
6487,
599,
3631,
308,
13,
11026,
67,
556,
273,
857,
18,
6498,
18,
17542,
18919,
22,
65,
1815,
11026,
67,
556,
18,
588,
556,
529,
1435,
422,
296,
24594,
67,
3767,
11,
1815,
11026,
67,
556,
18,
16472,
15918,
422,
306,
41,
18,
1364,
22,
16,
512,
18,
90,
22,
65,
7966,
273,
8326,
18,
4155,
67,
361,
86,
67,
869,
67,
474,
12,
2159,
67,
90,
2121,
67,
361,
86,
13,
1815,
11026,
67,
556,
18,
5697,
67,
1376,
18,
9853,
1012,
422,
306,
11734,
65,
1815,
11026,
67,
556,
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,
1842,
67,
41,
67,
29155,
67,
6498,
13332,
857,
273,
5722,
74,
386,
1990,
3926,
12,
6452,
12,
41,
18,
4473,
3719,
857,
18,
4720,
67,
4690,
1435,
857,
18,
12288,
67,
2630,
67,
464,
67,
2844,
1435,
857,
18,
29155,
67,
6498,
1435,
3959,
83,
412,
1486,
12,
2793,
18,
6498,
18,
17542,
16,
306,
1124,
2988,
2668,
2702,
67,
1153,
2187,
306,
41,
18,
1364,
16,
512,
18,
90,
6487,
599,
3631,
468,
11026,
67,
1106,
353,
22296,
1124,
2988,
2668,
474,
67,
1717,
2187,
306,
41,
18,
90,
16,
9333,
1702,
12,
21,
13,
6487,
512,
18,
90,
22,
3631,
1124,
2988,
2668,
474,
67,
1289,
2187,
306,
41,
18,
1364,
16,
512,
18,
90,
2
] |
class MainWin(kdeui.KMainWindow, Ui_Form):
|
class MainWin(kdeui.KMainWindow, """ + winfo['uiclass'] + """):
|
def processUI(uifile, output_filename=None, exe=False, indent=4): if output_filename is not None: output = open(output_filename,'w') else: output = sys.stdout # Write out the header. output.write(header % (uifile,time.ctime())) indenter.indentwidth = indent winfo = compiler.UICompiler().compileUi(uifile, output) if exe: output.write("""
|
3b37a7faeaa3588ef725b94f2794040cd180b58a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1715/3b37a7faeaa3588ef725b94f2794040cd180b58a/pykdeuic4.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
5370,
12,
89,
430,
398,
16,
876,
67,
3459,
33,
7036,
16,
15073,
33,
8381,
16,
3504,
33,
24,
4672,
225,
309,
876,
67,
3459,
353,
486,
599,
30,
876,
273,
1696,
12,
2844,
67,
3459,
11189,
91,
6134,
469,
30,
876,
273,
2589,
18,
10283,
225,
468,
2598,
596,
326,
1446,
18,
876,
18,
2626,
12,
3374,
738,
261,
89,
430,
398,
16,
957,
18,
21261,
1435,
3719,
1547,
2328,
18,
9355,
2819,
273,
3504,
341,
1376,
273,
5274,
18,
5370,
9213,
7675,
11100,
13943,
12,
89,
430,
398,
16,
876,
13,
225,
309,
15073,
30,
876,
18,
2626,
2932,
3660,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
5370,
12,
89,
430,
398,
16,
876,
67,
3459,
33,
7036,
16,
15073,
33,
8381,
16,
3504,
33,
24,
4672,
225,
309,
876,
67,
3459,
353,
486,
599,
30,
876,
273,
1696,
12,
2844,
67,
3459,
11189,
91,
6134,
469,
30,
876,
273,
2589,
18,
10283,
225,
468,
2598,
596,
326,
1446,
18,
876,
18,
2626,
12,
3374,
738,
261,
89,
430,
398,
16,
957,
18,
21261,
1435,
3719,
1547,
2328,
18,
9355,
2819,
273,
3504,
341,
1376,
273,
5274,
18,
5370,
9213,
7675,
11100,
13943,
12,
89,
430,
398,
16,
876,
13,
225,
309,
15073,
30,
876,
18,
2626,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Fdf(Filename, True, EccGlobalData.gWorkspace, EccGlobalData.gDb)
|
Fdf(Filename, True, EccGlobalData.gWorkspace, EccGlobalData.gDb)
|
def BuildMetaDataFileDatabase(self): EdkLogger.quiet("Building database for meta data files ...") Op = open(EccGlobalData.gConfig.MetaDataFileCheckPathOfGenerateFileList, 'w+') #SkipDirs = Read from config file SkipDirs = EccGlobalData.gConfig.SkipDirList for Root, Dirs, Files in os.walk(EccGlobalData.gTarget): for Dir in Dirs: if Dir.upper() in SkipDirs: Dirs.remove(Dir)
|
1e406c9fd9a4f86172ad059c4d2478ab7cf6adec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/1e406c9fd9a4f86172ad059c4d2478ab7cf6adec/Ecc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
6998,
812,
4254,
12,
2890,
4672,
512,
2883,
3328,
18,
20380,
2932,
16713,
2063,
364,
2191,
501,
1390,
1372,
7923,
6066,
273,
1696,
12,
41,
952,
5160,
751,
18,
75,
809,
18,
6998,
812,
1564,
743,
951,
4625,
26098,
16,
296,
91,
15,
6134,
468,
6368,
9872,
273,
2720,
628,
642,
585,
6611,
9872,
273,
512,
952,
5160,
751,
18,
75,
809,
18,
6368,
1621,
682,
364,
7450,
16,
8446,
87,
16,
6471,
316,
1140,
18,
11348,
12,
41,
952,
5160,
751,
18,
75,
2326,
4672,
364,
8446,
316,
8446,
87,
30,
309,
8446,
18,
5797,
1435,
316,
6611,
9872,
30,
8446,
87,
18,
4479,
12,
1621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
6998,
812,
4254,
12,
2890,
4672,
512,
2883,
3328,
18,
20380,
2932,
16713,
2063,
364,
2191,
501,
1390,
1372,
7923,
6066,
273,
1696,
12,
41,
952,
5160,
751,
18,
75,
809,
18,
6998,
812,
1564,
743,
951,
4625,
26098,
16,
296,
91,
15,
6134,
468,
6368,
9872,
273,
2720,
628,
642,
585,
6611,
9872,
273,
512,
952,
5160,
751,
18,
75,
809,
18,
6368,
1621,
682,
364,
7450,
16,
8446,
87,
16,
6471,
316,
1140,
18,
11348,
12,
41,
952,
5160,
751,
18,
75,
2326,
4672,
364,
8446,
316,
8446,
87,
30,
309,
8446,
18,
5797,
1435,
316,
6611,
9872,
30,
8446,
87,
18,
4479,
12,
1621,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif isinstance( period, datetime.timedelta ):
|
elif isinstance(period, datetime.timedelta):
|
def getPeriodSeconds( period ): """ return the number of seconds in the specified period """ if isinstance( period, basestring ): try: result = eval( 'seconds_per_%s' % period.lower() ) except NameError: raise ValueError, "period not in ( minute, hour, day, year )" elif isinstance( period, ( int, long ) ): result = period elif isinstance( period, datetime.timedelta ): result = period.days * getPeriodSeconds('day') + period.seconds else: raise TypeError, 'period must be a string or integer' return result
|
ccdd4176bbf664bc1e8b113fff77933c61ec889b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/865/ccdd4176bbf664bc1e8b113fff77933c61ec889b/datetools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22612,
2386,
6762,
12,
3879,
262,
30,
3536,
327,
326,
1300,
434,
3974,
316,
326,
1269,
3879,
3536,
309,
1549,
12,
3879,
16,
10699,
262,
30,
775,
30,
563,
273,
5302,
12,
296,
7572,
67,
457,
10185,
87,
11,
738,
3879,
18,
8167,
1435,
262,
1335,
25473,
30,
1002,
2068,
16,
315,
6908,
486,
316,
261,
8044,
16,
6126,
16,
2548,
16,
3286,
28796,
1327,
1549,
12,
3879,
16,
261,
509,
16,
1525,
262,
262,
30,
563,
273,
3879,
1327,
1549,
12,
6908,
16,
3314,
18,
31295,
4672,
563,
273,
3879,
18,
9810,
380,
22612,
2386,
6762,
2668,
2881,
6134,
397,
3879,
18,
7572,
469,
30,
1002,
3580,
16,
296,
6908,
1297,
506,
279,
533,
578,
3571,
11,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22612,
2386,
6762,
12,
3879,
262,
30,
3536,
327,
326,
1300,
434,
3974,
316,
326,
1269,
3879,
3536,
309,
1549,
12,
3879,
16,
10699,
262,
30,
775,
30,
563,
273,
5302,
12,
296,
7572,
67,
457,
10185,
87,
11,
738,
3879,
18,
8167,
1435,
262,
1335,
25473,
30,
1002,
2068,
16,
315,
6908,
486,
316,
261,
8044,
16,
6126,
16,
2548,
16,
3286,
28796,
1327,
1549,
12,
3879,
16,
261,
509,
16,
1525,
262,
262,
30,
563,
273,
3879,
1327,
1549,
12,
6908,
16,
3314,
18,
31295,
4672,
563,
273,
3879,
18,
9810,
380,
22612,
2386,
6762,
2668,
2881,
6134,
397,
3879,
18,
7572,
469,
30,
1002,
3580,
16,
296,
6908,
1297,
506,
279,
533,
578,
3571,
11,
2
] |
["perftest", "--count", 50000,
|
["qpid-perftest", "--count", 50000,
|
def start_clients(broker, i): """Start ordinary clients for a broker. Start one client per broker. Round-robin on a colllection of different clients.""" cmds=[ ["perftest", "--count", 50000, "--base-name", str(qpid.datatypes.uuid4()), "--port", broker.port()], ["qpid-queue-stats", "-a", "localhost:%s" %(broker.port())], ["testagent", "localhost", str(broker.port())] ] clients.append([ClientLoop(broker, cmds[i%len(cmds)])])
|
ff52471a8f666059c8907ebbb80a158c2ec2ce10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/198/ff52471a8f666059c8907ebbb80a158c2ec2ce10/cluster_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
16931,
12,
21722,
16,
277,
4672,
3536,
1685,
4642,
2101,
7712,
364,
279,
8625,
18,
3603,
1245,
1004,
1534,
8625,
18,
11370,
17,
303,
4757,
603,
279,
4508,
942,
434,
3775,
7712,
12123,
13446,
22850,
8247,
85,
6610,
17,
457,
1222,
395,
3113,
5238,
1883,
3113,
1381,
2787,
16,
5238,
1969,
17,
529,
3113,
609,
12,
85,
6610,
18,
3404,
13373,
18,
7080,
24,
1435,
3631,
5238,
655,
3113,
8625,
18,
655,
1435,
6487,
8247,
85,
6610,
17,
4000,
17,
5296,
3113,
3701,
69,
3113,
315,
13014,
5319,
87,
6,
8975,
21722,
18,
655,
10756,
6487,
8247,
3813,
5629,
3113,
315,
13014,
3113,
609,
12,
21722,
18,
655,
10756,
65,
308,
7712,
18,
6923,
3816,
1227,
6452,
12,
21722,
16,
13446,
63,
77,
9,
1897,
12,
24680,
13,
5717,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
16931,
12,
21722,
16,
277,
4672,
3536,
1685,
4642,
2101,
7712,
364,
279,
8625,
18,
3603,
1245,
1004,
1534,
8625,
18,
11370,
17,
303,
4757,
603,
279,
4508,
942,
434,
3775,
7712,
12123,
13446,
22850,
8247,
85,
6610,
17,
457,
1222,
395,
3113,
5238,
1883,
3113,
1381,
2787,
16,
5238,
1969,
17,
529,
3113,
609,
12,
85,
6610,
18,
3404,
13373,
18,
7080,
24,
1435,
3631,
5238,
655,
3113,
8625,
18,
655,
1435,
6487,
8247,
85,
6610,
17,
4000,
17,
5296,
3113,
3701,
69,
3113,
315,
13014,
5319,
87,
6,
8975,
21722,
18,
655,
10756,
6487,
8247,
3813,
5629,
3113,
315,
13014,
3113,
609,
12,
21722,
18,
655,
10756,
65,
308,
7712,
18,
6923,
3816,
1227,
2
] |
is_open = FileUtilities.openfiles.is_open(file) ok = not is_open and os.path.isfile(file) and not os.path.islink(file) and FileUtilities.ego_owner(file) if ok: yield file
|
is_open = FileUtilities.openfiles.is_open(file) ok = not is_open and os.path.isfile(file) and not os.path.islink(file) and FileUtilities.ego_owner(file) if ok: yield file
|
def list_files(self): for file in FileUtilities.children_in_directory("/tmp/", True): is_open = FileUtilities.openfiles.is_open(file) ok = not is_open and os.path.isfile(file) and not os.path.islink(file) and FileUtilities.ego_owner(file) # fixme whitelist # Pulseaudio /tmp/pulse-${USER}/pid # whitelist? # /tmp/gconfd-${USER}/lock/ior # /tmp/orbit-${USER}/bonobo-activation-register.lock # /tmp/orbit-${USER}/bonobo-activation-server-ior # /tmp/.X0-lock #print "debug: Tmp: ok=%s file = '%s'" % (ok, file) if ok: yield file
|
ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
2932,
19,
5645,
19,
3113,
1053,
4672,
353,
67,
3190,
273,
1387,
11864,
18,
3190,
2354,
18,
291,
67,
3190,
12,
768,
13,
1529,
273,
486,
353,
67,
3190,
471,
1140,
18,
803,
18,
291,
768,
12,
768,
13,
471,
486,
1140,
18,
803,
18,
291,
1232,
12,
768,
13,
471,
1387,
11864,
18,
1332,
83,
67,
8443,
12,
768,
13,
468,
2917,
3501,
10734,
468,
225,
453,
24667,
11509,
342,
5645,
19,
84,
24667,
17,
18498,
4714,
4004,
6610,
468,
10734,
35,
468,
225,
342,
5645,
19,
75,
3923,
72,
17,
18498,
4714,
4004,
739,
19,
9659,
468,
225,
342,
5645,
19,
280,
3682,
17,
18498,
4714,
4004,
18688,
947,
83,
17,
16908,
17,
4861,
18,
739,
468,
225,
342,
5645,
19,
280,
3682,
17,
18498,
4714,
4004,
18688,
947,
83,
17,
16908,
17,
3567,
17,
9659,
468,
225,
342,
5645,
15865,
60,
20,
17,
739,
468,
1188,
315,
4148,
30,
399,
1291,
30,
1529,
5095,
87,
585,
273,
1995,
87,
4970,
738,
261,
601,
16,
585,
13,
309,
1529,
30,
2824,
585,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
364,
585,
316,
1387,
11864,
18,
5906,
67,
267,
67,
5149,
2932,
19,
5645,
19,
3113,
1053,
4672,
353,
67,
3190,
273,
1387,
11864,
18,
3190,
2354,
18,
291,
67,
3190,
12,
768,
13,
1529,
273,
486,
353,
67,
3190,
471,
1140,
18,
803,
18,
291,
768,
12,
768,
13,
471,
486,
1140,
18,
803,
18,
291,
1232,
12,
768,
13,
471,
1387,
11864,
18,
1332,
83,
67,
8443,
12,
768,
13,
468,
2917,
3501,
10734,
468,
225,
453,
24667,
11509,
342,
5645,
19,
84,
24667,
17,
18498,
4714,
4004,
6610,
468,
10734,
35,
468,
225,
342,
5645,
19,
75,
3923,
72,
17,
18498,
4714,
4004,
739,
19,
9659,
468,
225,
342,
2
] |
print "Launch the futil server ( futil.ws.wsServer ) and reboot web.py script"
|
print "Launch the futil server ( futil.ws.wsServer ) and reboot web client"
|
def GET(self, query): try: results = remote.search(query) for result in results: print result except socket.error, e: print "Launch the futil server ( futil.ws.wsServer ) and reboot web.py script"
|
299fdb146db31f0b4854ed5a0b0757f0bc39a5ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2682/299fdb146db31f0b4854ed5a0b0757f0bc39a5ec/futil-web.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
843,
4672,
775,
30,
1686,
273,
2632,
18,
3072,
12,
2271,
13,
364,
563,
316,
1686,
30,
1172,
563,
1335,
2987,
18,
1636,
16,
425,
30,
1172,
315,
9569,
326,
284,
1367,
1438,
261,
284,
1367,
18,
4749,
18,
4749,
2081,
262,
471,
22852,
3311,
18,
2074,
2728,
6,
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,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
4749,
18,
4749,
2081,
262,
471,
22852,
3311,
18,
2074,
2728,
6,
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
] |
(pkg, (float(total_idle)*100/total))
|
(pkg, (float(total_idle)*100/total))
|
def generate_report(): ''' Generate report of CPU utilization ''' cpu_labels = ('cpu', 'user', 'nice', 'system', 'idle', 'iowait', 'irq', 'softirq', 'x', 'y') if (not os.path.exists('/procstat')): os.mkdir('/procstat') reportfile = open('/procstat/cpu-utilisation', 'a') debugfile = open('/procstat/cpu-utilisation.debug', 'a') for l in stats_stop: percentage_list = [] total = 0 for i in range(1, len(stats_stop[l])): stats_stop[l][i] = int(stats_stop[l][i]) - int(stats_start[l][i]) total += stats_stop[l][i] percentage_list.append(l) for i in range(1, len(stats_stop[l])): percentage_list.append(float(stats_stop[l][i])*100/total) stats_percentage[l] = percentage_list for i in range(0, len(cpu_labels)): print >> debugfile, cpu_labels[i], '\t', print >> debugfile for l in sorted(stats_stop.keys()): print >> debugfile, l, '\t', for i in range(1, len(stats_stop[l])): print >> debugfile, stats_stop[l][i], '\t', print >> debugfile for i in range(0, len(cpu_labels)): print >> reportfile, cpu_labels[i], '\t', print >> reportfile for l in sorted(stats_percentage.keys()): print >> reportfile, l, '\t', for i in range(1, len(stats_percentage[l])): print >> reportfile, " %3.4f" % stats_percentage[l][i], print >> reportfile #Now get the package ID information print >> debugfile, "cpu_map: ", cpu_map keyvalfile = open('/procstat/keyval', 'a') print >> keyvalfile, "nr_packages=%d" % len(cpu_map) print >> keyvalfile, "system-idle=%3.4f" % stats_percentage['cpu'][4]) for pkg in sorted(cpu_map.keys()): total_idle = 0 total = 0 for cpu in cpu_map[pkg]: total_idle += stats_stop["cpu%d" % cpu][4] for i in range(1, len(stats_stop["cpu%d" % cpu])): total += stats_stop["cpu%d" % cpu][i] print >> reportfile, "Package: ", pkg, "Idle %3.4f%%" \ % (float(total_idle)*100/total) print >> keyvalfile, "package-%s=%3.4f" % \ (pkg, (float(total_idle)*100/total)) #Add record delimiter '\n' before closing these files print >> debugfile debugfile.close() print >> reportfile reportfile.close() print >> keyvalfile keyvalfile.close()
|
8df8484c51591f3064cbb520dc7cca26f2ba5932 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/8df8484c51591f3064cbb520dc7cca26f2ba5932/sched_mc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
6006,
13332,
9163,
6654,
2605,
434,
12154,
1709,
1588,
9163,
8326,
67,
5336,
273,
7707,
11447,
2187,
296,
1355,
2187,
296,
82,
1812,
2187,
296,
4299,
2187,
296,
20390,
2187,
296,
77,
543,
1540,
2187,
296,
481,
85,
2187,
296,
9269,
481,
85,
2187,
296,
92,
2187,
296,
93,
6134,
309,
261,
902,
1140,
18,
803,
18,
1808,
2668,
19,
9381,
5642,
26112,
30,
1140,
18,
26686,
2668,
19,
9381,
5642,
6134,
225,
2605,
768,
273,
1696,
2668,
19,
9381,
5642,
19,
11447,
17,
1367,
10742,
2187,
296,
69,
6134,
1198,
768,
273,
1696,
2668,
19,
9381,
5642,
19,
11447,
17,
1367,
10742,
18,
4148,
2187,
296,
69,
6134,
364,
328,
316,
3177,
67,
5681,
30,
11622,
67,
1098,
273,
5378,
2078,
273,
374,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
5296,
67,
5681,
63,
80,
22643,
30,
3177,
67,
5681,
63,
80,
6362,
77,
65,
273,
225,
509,
12,
5296,
67,
5681,
63,
80,
6362,
77,
5717,
300,
509,
12,
5296,
67,
1937,
63,
80,
6362,
77,
5717,
2078,
1011,
3177,
67,
5681,
63,
80,
6362,
77,
65,
11622,
67,
1098,
18,
6923,
12,
80,
13,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
5296,
67,
5681,
63,
80,
22643,
30,
11622,
67,
1098,
18,
6923,
12,
5659,
12,
5296,
67,
5681,
63,
80,
6362,
77,
5717,
14,
6625,
19,
4963,
13,
225,
3177,
67,
18687,
63,
80,
65,
273,
11622,
67,
1098,
225,
364,
277,
316,
1048,
12,
20,
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,
2103,
67,
6006,
13332,
9163,
6654,
2605,
434,
12154,
1709,
1588,
9163,
8326,
67,
5336,
273,
7707,
11447,
2187,
296,
1355,
2187,
296,
82,
1812,
2187,
296,
4299,
2187,
296,
20390,
2187,
296,
77,
543,
1540,
2187,
296,
481,
85,
2187,
296,
9269,
481,
85,
2187,
296,
92,
2187,
296,
93,
6134,
309,
261,
902,
1140,
18,
803,
18,
1808,
2668,
19,
9381,
5642,
26112,
30,
1140,
18,
26686,
2668,
19,
9381,
5642,
6134,
225,
2605,
768,
273,
1696,
2668,
19,
9381,
5642,
19,
11447,
17,
1367,
10742,
2187,
296,
69,
6134,
1198,
768,
273,
1696,
2668,
19,
9381,
5642,
19,
11447,
17,
1367,
10742,
18,
4148,
2187,
296,
69,
6134,
364,
328,
316,
3177,
67,
5681,
30,
2
] |
r'temp_scaffolding_stubs\.h$',
|
# Bogus ifdef tricks
|
e06131db8c610bca50a025fc876755d0aa42e53c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e06131db8c610bca50a025fc876755d0aa42e53c/PRESUBMIT.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
605,
28774,
309,
536,
433,
20642,
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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0,
0,
0,
0,
0,
0,
0,
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,
468,
605,
28774,
309,
536,
433,
20642,
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,
-100
] |
|
else : tmp_unpack_dir = tempfile.mkdtemp( prefix="enstaller-" ) egg_dir = path.join( tmp_unpack_dir, path.basename( installed_egg_path ) ) unpack_archive( installed_egg_path, egg_dir ) pi_script = path.join( egg_dir, "EGG-INFO", "post_install.py" ) if( path.exists( pi_script ) ) : try : execfile( pi_script, {"__file__" : pi_script} ) except Exception, err : self.log( "Error: problem running post-install script %s: %s\n" \ % (pi_script, err) ) if( tmp_unpack_dir != "" ) : self._rm_rf( tmp_unpack_dir )
|
pi_script = path.join( egg_dir, "EGG-INFO", "post_install.py" ) if( path.exists( pi_script ) ) : try : execfile( pi_script, {"__file__" : pi_script} ) except Exception, err : self.log( "Error: problem running post-install " + \ "script %s: %s\n" % (pi_script, err) )
|
def _run_post_install( self, installed_egg_path ) : """ Run any post-install scripts in the newly-installed egg. """ tmp_unpack_dir = "" # # if the egg installed is a dir, simply check the EGG-INFO subdir # for a post_install.py script and run it, otherwise, unzip it to # a temp location and do the same thing # if( path.isdir( installed_egg_path ) ) : egg_dir = installed_egg_path
|
603e4f7f8194bf706b8e1efbbb1ab1b9b3c9e64f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7707/603e4f7f8194bf706b8e1efbbb1ab1b9b3c9e64f/bootstrapper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
2767,
67,
5425,
12,
365,
16,
5876,
67,
23171,
67,
803,
262,
294,
3536,
1939,
1281,
1603,
17,
5425,
8873,
316,
326,
10894,
17,
13435,
25144,
18,
3536,
1853,
67,
17309,
67,
1214,
273,
1408,
468,
468,
309,
326,
25144,
5876,
353,
279,
1577,
16,
8616,
866,
326,
512,
19491,
17,
5923,
16921,
468,
364,
279,
1603,
67,
5425,
18,
2074,
2728,
471,
1086,
518,
16,
3541,
16,
20259,
518,
358,
468,
279,
1906,
2117,
471,
741,
326,
1967,
7757,
468,
309,
12,
589,
18,
291,
1214,
12,
5876,
67,
23171,
67,
803,
262,
262,
294,
25144,
67,
1214,
273,
5876,
67,
23171,
67,
803,
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,
389,
2681,
67,
2767,
67,
5425,
12,
365,
16,
5876,
67,
23171,
67,
803,
262,
294,
3536,
1939,
1281,
1603,
17,
5425,
8873,
316,
326,
10894,
17,
13435,
25144,
18,
3536,
1853,
67,
17309,
67,
1214,
273,
1408,
468,
468,
309,
326,
25144,
5876,
353,
279,
1577,
16,
8616,
866,
326,
512,
19491,
17,
5923,
16921,
468,
364,
279,
1603,
67,
5425,
18,
2074,
2728,
471,
1086,
518,
16,
3541,
16,
20259,
518,
358,
468,
279,
1906,
2117,
471,
741,
326,
1967,
7757,
468,
309,
12,
589,
18,
291,
1214,
12,
5876,
67,
23171,
67,
803,
262,
262,
294,
25144,
67,
1214,
273,
5876,
67,
23171,
67,
803,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'icon': fields.function(_icon_get, method=True, string='Icon', type='string'),
|
'icon': fields.function(_icon_get, method=True, string='Icon', type='char', size=32),
|
def _icon_get(self, cr, uid, ids, field_name, arg=None, context={}): result = {}.fromkeys(ids, 'STOCK_NEW') for r in self.read(cr, uid, ids, ['state']): result[r['id']] = { 'draft': 'STOCK_NEW', 'printed': 'STOCK_PRINT_PREVIEW', 'done': 'STOCK_DIALOG_AUTHENTICATION', }.get(r['state'], 'STOCK_NEW') return result
|
e8a2ddf964fa61a67ee56e68d91a8c60ed6c5c38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e8a2ddf964fa61a67ee56e68d91a8c60ed6c5c38/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3950,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
33,
7036,
16,
819,
12938,
4672,
563,
273,
20151,
2080,
2452,
12,
2232,
16,
296,
31487,
3507,
67,
12917,
6134,
364,
436,
316,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
10228,
2019,
3546,
4672,
563,
63,
86,
3292,
350,
3546,
65,
273,
288,
296,
17153,
4278,
296,
31487,
3507,
67,
12917,
2187,
296,
1188,
329,
4278,
296,
31487,
3507,
67,
19350,
67,
3670,
12145,
2187,
296,
8734,
4278,
296,
31487,
3507,
67,
2565,
18683,
67,
25114,
2689,
2187,
289,
18,
588,
12,
86,
3292,
2019,
17337,
296,
31487,
3507,
67,
12917,
6134,
327,
563,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3950,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
33,
7036,
16,
819,
12938,
4672,
563,
273,
20151,
2080,
2452,
12,
2232,
16,
296,
31487,
3507,
67,
12917,
6134,
364,
436,
316,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
10228,
2019,
3546,
4672,
563,
63,
86,
3292,
350,
3546,
65,
273,
288,
296,
17153,
4278,
296,
31487,
3507,
67,
12917,
2187,
296,
1188,
329,
4278,
296,
31487,
3507,
67,
19350,
67,
3670,
12145,
2187,
296,
8734,
4278,
296,
31487,
3507,
67,
2565,
18683,
67,
25114,
2689,
2187,
289,
18,
588,
12,
86,
3292,
2019,
17337,
296,
31487,
3507,
67,
12917,
6134,
327,
563,
2,
-100,
-100,
-100
] |
return self(self.hecke_operator(f.qexp(), m))
|
return self(self.hecke_operator(f.q_expansion(), m))
|
def hecke_operator(self, f, m): r""" Given an element `f` and an integer `m`, calculates the Hecke operator `T_m` acting on `f`.
|
c8cd75e98ec3124979cc2d0934a36c3cec53656f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/c8cd75e98ec3124979cc2d0934a36c3cec53656f/genus0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
9497,
12,
2890,
16,
284,
16,
312,
4672,
436,
8395,
16803,
392,
930,
1375,
74,
68,
471,
392,
3571,
1375,
81,
9191,
17264,
326,
670,
762,
73,
3726,
1375,
56,
67,
81,
68,
1328,
310,
603,
1375,
74,
8338,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
9497,
12,
2890,
16,
284,
16,
312,
4672,
436,
8395,
16803,
392,
930,
1375,
74,
68,
471,
392,
3571,
1375,
81,
9191,
17264,
326,
670,
762,
73,
3726,
1375,
56,
67,
81,
68,
1328,
310,
603,
1375,
74,
8338,
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
] |
if self.classifiers: return target == self.classifiers.values()[0]
|
if self.predictors: return target == self.predictors.values()[0]
|
def consistenttarget(self, target): """returns TRUE if target is consistent with current predictiors and data""" if self.classifiers: return target == self.classifiers.values()[0] return True
|
63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11071,
3299,
12,
2890,
16,
1018,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11071,
3299,
12,
2890,
16,
1018,
4672,
3536,
6154,
5383,
309,
1018,
353,
11071,
598,
783,
7810,
77,
1383,
471,
501,
8395,
309,
365,
18,
14491,
1383,
30,
327,
1018,
422,
365,
18,
14491,
1383,
18,
2372,
1435,
63,
20,
65,
327,
1053,
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
] |
return zope.component.getMultiAdaptera((ob, request), name=name[6:])
|
return zope.component.getMultiAdapter((ob, request), name=name[6:])
|
def publishTraverse(self, request, name): ob = self.context if name.startswith('@@'): return zope.component.getMultiAdaptera((ob, request), name=name[6:])
|
b4863a4bb68292eb7c6d469f0714d7b788ca8541 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9689/b4863a4bb68292eb7c6d469f0714d7b788ca8541/traversers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
29654,
12,
2890,
16,
590,
16,
508,
4672,
3768,
273,
365,
18,
2472,
309,
508,
18,
17514,
1918,
2668,
36,
20887,
4672,
327,
998,
1306,
18,
4652,
18,
588,
5002,
4216,
69,
12443,
947,
16,
590,
3631,
508,
33,
529,
63,
26,
30,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3808,
29654,
12,
2890,
16,
590,
16,
508,
4672,
3768,
273,
365,
18,
2472,
309,
508,
18,
17514,
1918,
2668,
36,
20887,
4672,
327,
998,
1306,
18,
4652,
18,
588,
5002,
4216,
69,
12443,
947,
16,
590,
3631,
508,
33,
529,
63,
26,
30,
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
] |
result += decoder.decode(self.buffer.read(), True) self._decoded_text = "" self._snapshot = None
|
result = (self._emit_decoded_text() + decoder.decode(self.buffer.read(), final=True)) self._clear_decoded_text()
|
def read(self, n=None): if n is None: n = -1 decoder = self._decoder or self._get_decoder() result = self._decoded_text if n < 0: result += decoder.decode(self.buffer.read(), True) self._decoded_text = "" self._snapshot = None return result else: while len(result) < n: input_chunk, decoded = self._read_chunk() result += decoded if not input_chunk: break self._decoded_text = result[n:] return result[:n]
|
1e18b9ecf014bdc7f0b206c49c140c4f21edcb70 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1e18b9ecf014bdc7f0b206c49c140c4f21edcb70/io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
290,
33,
7036,
4672,
309,
290,
353,
599,
30,
290,
273,
300,
21,
8320,
273,
365,
6315,
21070,
578,
365,
6315,
588,
67,
21070,
1435,
563,
273,
365,
6315,
26646,
67,
955,
309,
290,
411,
374,
30,
225,
563,
273,
261,
2890,
6315,
18356,
67,
26646,
67,
955,
1435,
397,
8320,
18,
3922,
12,
2890,
18,
4106,
18,
896,
9334,
727,
33,
5510,
3719,
365,
6315,
8507,
67,
26646,
67,
955,
1435,
327,
563,
469,
30,
1323,
562,
12,
2088,
13,
411,
290,
30,
810,
67,
6551,
16,
6383,
273,
365,
6315,
896,
67,
6551,
1435,
563,
1011,
6383,
309,
486,
810,
67,
6551,
30,
898,
365,
6315,
26646,
67,
955,
273,
563,
63,
82,
26894,
327,
563,
10531,
82,
65,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
290,
33,
7036,
4672,
309,
290,
353,
599,
30,
290,
273,
300,
21,
8320,
273,
365,
6315,
21070,
578,
365,
6315,
588,
67,
21070,
1435,
563,
273,
365,
6315,
26646,
67,
955,
309,
290,
411,
374,
30,
225,
563,
273,
261,
2890,
6315,
18356,
67,
26646,
67,
955,
1435,
397,
8320,
18,
3922,
12,
2890,
18,
4106,
18,
896,
9334,
727,
33,
5510,
3719,
365,
6315,
8507,
67,
26646,
67,
955,
1435,
327,
563,
469,
30,
1323,
562,
12,
2088,
13,
411,
290,
30,
810,
67,
6551,
16,
6383,
273,
365,
6315,
896,
67,
6551,
1435,
563,
1011,
6383,
309,
486,
810,
67,
6551,
30,
898,
365,
6315,
26646,
67,
955,
273,
563,
63,
2
] |
def onStartup(self): self.registerEvent(b3.events.EVT_CLIENT_AUTH) self._adminPlugin = self.console.getPlugin('admin') if self._adminPlugin: self._adminPlugin.registerCommand(self, 'login', 2, self.cmd_login, secretLevel=1) self._adminPlugin.registerCommand(self, 'setpassword', self.passwdlevel, self.cmd_setpassword)
|
def onStartup(self): self.registerEvent(b3.events.EVT_CLIENT_AUTH) self._adminPlugin = self.console.getPlugin('admin') if self._adminPlugin: self._adminPlugin.registerCommand(self, 'login', 2, self.cmd_login, secretLevel=1) self._adminPlugin.registerCommand(self, 'setpassword', self.passwdlevel, self.cmd_setpassword)
|
def onStartup(self): self.registerEvent(b3.events.EVT_CLIENT_AUTH) self._adminPlugin = self.console.getPlugin('admin') if self._adminPlugin: self._adminPlugin.registerCommand(self, 'login', 2, self.cmd_login, secretLevel=1) self._adminPlugin.registerCommand(self, 'setpassword', self.passwdlevel, self.cmd_setpassword)
|
758fe31cbd216b7c19d07f9e14aa5e6f27060960 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/758fe31cbd216b7c19d07f9e14aa5e6f27060960/login.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22178,
12,
2890,
4672,
365,
18,
4861,
1133,
12,
70,
23,
18,
5989,
18,
24427,
56,
67,
11935,
67,
7131,
13,
365,
6315,
3666,
3773,
273,
365,
18,
8698,
18,
588,
3773,
2668,
3666,
6134,
309,
365,
6315,
3666,
3773,
30,
365,
6315,
3666,
3773,
18,
4861,
2189,
12,
2890,
16,
296,
5819,
2187,
576,
16,
365,
18,
4172,
67,
5819,
16,
4001,
2355,
33,
21,
13,
365,
6315,
3666,
3773,
18,
4861,
2189,
12,
2890,
16,
296,
542,
3664,
2187,
365,
18,
24002,
2815,
16,
365,
18,
4172,
67,
542,
3664,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22178,
12,
2890,
4672,
365,
18,
4861,
1133,
12,
70,
23,
18,
5989,
18,
24427,
56,
67,
11935,
67,
7131,
13,
365,
6315,
3666,
3773,
273,
365,
18,
8698,
18,
588,
3773,
2668,
3666,
6134,
309,
365,
6315,
3666,
3773,
30,
365,
6315,
3666,
3773,
18,
4861,
2189,
12,
2890,
16,
296,
5819,
2187,
576,
16,
365,
18,
4172,
67,
5819,
16,
4001,
2355,
33,
21,
13,
365,
6315,
3666,
3773,
18,
4861,
2189,
12,
2890,
16,
296,
542,
3664,
2187,
365,
18,
24002,
2815,
16,
365,
18,
4172,
67,
542,
3664,
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
] |
mock = PyLoaderMock({name: 'path/to/mod'})
|
mock = PyLoaderMock({name: os.path.join('path', 'to', 'mod')})
|
def test_default_encoding(self): # Should have no problems with UTF-8 text. name = 'mod' mock = PyLoaderMock({name: 'path/to/mod'}) source = 'x = "ü"' mock.source = source.encode('utf-8') returned_source = mock.get_source(name) self.assertEqual(returned_source, source)
|
1f5dd752f4d6cb8dff4cf083a6e7c9587747a2d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/1f5dd752f4d6cb8dff4cf083a6e7c9587747a2d7/test_abc_loader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1886,
67,
5999,
12,
2890,
4672,
468,
9363,
1240,
1158,
9688,
598,
6380,
17,
28,
977,
18,
508,
273,
296,
1711,
11,
5416,
273,
4707,
2886,
9865,
12590,
529,
30,
1140,
18,
803,
18,
5701,
2668,
803,
2187,
296,
869,
2187,
296,
1711,
6134,
6792,
1084,
273,
296,
92,
273,
315,
132,
125,
5187,
5416,
18,
3168,
273,
1084,
18,
3015,
2668,
3158,
17,
28,
6134,
2106,
67,
3168,
273,
5416,
18,
588,
67,
3168,
12,
529,
13,
365,
18,
11231,
5812,
12,
2463,
329,
67,
3168,
16,
1084,
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,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,
12590,
529,
30,
1140,
18,
803,
18,
5701,
2668,
803,
2187,
296,
869,
2187,
296,
1711,
6134,
6792,
1084,
273,
296,
92,
273,
315,
132,
125,
5187,
5416,
18,
3168,
273,
1084,
18,
3015,
2668,
3158,
17,
28,
6134,
2106,
67,
3168,
273,
5416,
18,
588,
67,
3168,
12,
529,
13,
365,
18,
11231,
5812,
12,
2463,
329,
67,
3168,
16,
1084,
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
] |
print 'Number of retries:',config.retries
|
def getPeople(self): return self.people
|
e41aa05f1df14bca602ed203d29c268d164a7456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2336/e41aa05f1df14bca602ed203d29c268d164a7456/TrustServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
73,
11763,
12,
2890,
4672,
327,
365,
18,
28035,
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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,
12,
2890,
4672,
327,
365,
18,
28035,
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
] |
|
file.write(' file.write('
|
file.write(' file.write('
|
file.write('#ifndef APP_GFX_GL_GL_BINDINGS_AUTOGEN_%s_H_\n' % setName.upper())
|
41b13474f628e124e24db208e67a4b0ebf16f001 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/41b13474f628e124e24db208e67a4b0ebf16f001/generate_bindings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
585,
18,
2626,
2668,
7,
430,
82,
536,
9146,
67,
43,
25172,
67,
11261,
67,
11261,
67,
2739,
55,
67,
18909,
16652,
10185,
87,
67,
44,
22202,
82,
11,
738,
6788,
18,
5797,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
585,
18,
2626,
2668,
7,
430,
82,
536,
9146,
67,
43,
25172,
67,
11261,
67,
11261,
67,
2739,
55,
67,
18909,
16652,
10185,
87,
67,
44,
22202,
82,
11,
738,
6788,
18,
5797,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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['threads'][thread]['checkTime'][-1][1] = int(optionCheck) if self['threads'][thread]['checkTime'][-1][1] > 23: self['threads'][thread]['checkTime'][-1][1] = 23 elif self['threads'][thread]['checkTime'][-1][1] < 0: self['threads'][thread]['checkTime'][-1][1] = 0
|
self['threads'][thread]['checkTime'][-1][1]=int(optionCheck) if self['threads'][thread]['checkTime'][-1][1] > 23: self['threads'][thread]['checkTime'][-1][1] = 23 elif self['threads'][thread]['checkTime'][-1][1] < 0: self['threads'][thread]['checkTime'][-1][1] = 0
|
def parse(self): for option in self.boolOptionsGlobal: try: if option.lower() in self.options('global'): try: self['global'][option] = self.getboolean('global', option) except ValueError: print >> sys.stderr, u'failed to parse option %s in global' % option except ConfigParser.NoSectionError, m: raise SystemExit(unicodeC(m)) for option in self.stringOptionsGlobal: if option.lower() in self.options('global'): self['global'][option] = self._ifnone( self.get('global', option) ) for option in self.intOptionsGlobal: if option.lower() in self.options('global'): try: self['global'][option] = self.getint('global', option) except ValueError: print >> sys.stderr, u'failed to parse option %s in global' % option threads = self.sections() del threads[threads.index('global')] for thread in threads: self['threads'][thread] = ThreadLink() for option in self.boolOptionsThread: if option.lower() in self.options(thread): try: self['threads'][thread][option] = self.getboolean(thread, option) except ValueError: print >> sys.stderr, u'failed to parse option %s in thread %s' % (option, thread) for option in self.stringOptionsThread: if option.lower() in self.options(thread): self['threads'][thread][option] = self._ifnone( self.get(thread, option) ) for option in self.intOptionsThread: if option.lower() in self.options(thread): try: self['threads'][thread][option] = self.getint(thread, option) except ValueError: print >> sys.stderr, u'failed to parse option %s in thread %s' % (option, thread) #populate thread.downloads downList = [ x for x in self.options(thread) if x.lower().startswith('download') ] checkList = [ x for x in self.options(thread) if x.lower().startswith('checktime') ] downList.sort() for i in downList: if i.lower().endswith('false'): try: self['threads'][thread]['downloads'][-1]['False'] = self.getboolean(thread, i) # either boolean except ValueError: self['threads'][thread]['downloads'][-1]['False'] = self._ifnone( self.get(thread, i) ) # or a string elif i.lower().endswith('true'): try: self['threads'][thread]['downloads'][-1]['True'] = self.getboolean(thread, i) except ValueError: pass # let default holder elif i.lower().endswith('dir'): self['threads'][thread]['downloads'][-1]['Dir'] = self._ifnone( self.get(thread, i) ) elif i.lower().endswith('maxsize'): try: self['threads'][thread]['downloads'][-1]['maxSize'] = self.getint(thread, i) except ValueError: pass elif i.lower().endswith('minsize'): try: self['threads'][thread]['downloads'][-1]['minSize'] = self.getint(thread, i) except ValueError: pass elif i.lower().endswith('function'): self['threads'][thread]['downloads'][-1]['Function'] = self._ifnone( self.get(thread, i) ) else: self['threads'][thread]['downloads'].append( DownloadItemConfig( self.get(thread, i) ) ) # regex'd, would fail with None checkList.sort() for j in checkList: optionCheck = self.get(thread, j) if j.endswith('day'): if self.dayList.count(optionCheck.capitalize()): self['threads'][thread]['checkTime'].append( [self.dayList.index(optionCheck.capitalize()) % 7 , 0, 23] ) else: raise Exception, u"Could not identify valid day of the week for %s" % optionCheck elif j.endswith('start'): self['threads'][thread]['checkTime'][-1][1] = int(optionCheck) if self['threads'][thread]['checkTime'][-1][1] > 23: self['threads'][thread]['checkTime'][-1][1] = 23 elif self['threads'][thread]['checkTime'][-1][1] < 0: self['threads'][thread]['checkTime'][-1][1] = 0 elif j.endswith('stop'): self['threads'][thread]['checkTime'][-1][2] = int(optionCheck) if self['threads'][thread]['checkTime'][-1][2] > 23: self['threads'][thread]['checkTime'][-1][2] = 23 elif self['threads'][thread]['checkTime'][-1][2] < 0: self['threads'][thread]['checkTime'][-1][2] = 0
|
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
364,
1456,
316,
365,
18,
6430,
1320,
5160,
30,
775,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
775,
30,
365,
3292,
6347,
3546,
63,
3482,
65,
273,
365,
18,
588,
6494,
2668,
6347,
2187,
1456,
13,
1335,
2068,
30,
1172,
1671,
2589,
18,
11241,
16,
582,
11,
7307,
358,
1109,
1456,
738,
87,
316,
2552,
11,
738,
1456,
1335,
25076,
18,
2279,
5285,
668,
16,
312,
30,
1002,
25454,
12,
9124,
39,
12,
81,
3719,
364,
1456,
316,
365,
18,
1080,
1320,
5160,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
365,
3292,
6347,
3546,
63,
3482,
65,
273,
365,
6315,
430,
6102,
12,
365,
18,
588,
2668,
6347,
2187,
1456,
13,
262,
364,
1456,
316,
365,
18,
474,
1320,
5160,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
775,
30,
365,
3292,
6347,
3546,
63,
3482,
65,
273,
365,
18,
588,
474,
2668,
6347,
2187,
1456,
13,
1335,
2068,
30,
1172,
1671,
2589,
18,
11241,
16,
582,
11,
7307,
358,
1109,
1456,
738,
87,
316,
2552,
11,
738,
1456,
7403,
273,
365,
18,
11657,
1435,
1464,
7403,
63,
12495,
18,
1615,
2668,
6347,
6134,
65,
364,
2650,
316,
7403,
30,
365,
3292,
12495,
3546,
63,
5930,
65,
273,
4884,
2098,
1435,
364,
1456,
316,
365,
18,
6430,
1320,
3830,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
12,
5930,
4672,
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,
12,
2890,
4672,
364,
1456,
316,
365,
18,
6430,
1320,
5160,
30,
775,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
775,
30,
365,
3292,
6347,
3546,
63,
3482,
65,
273,
365,
18,
588,
6494,
2668,
6347,
2187,
1456,
13,
1335,
2068,
30,
1172,
1671,
2589,
18,
11241,
16,
582,
11,
7307,
358,
1109,
1456,
738,
87,
316,
2552,
11,
738,
1456,
1335,
25076,
18,
2279,
5285,
668,
16,
312,
30,
1002,
25454,
12,
9124,
39,
12,
81,
3719,
364,
1456,
316,
365,
18,
1080,
1320,
5160,
30,
309,
1456,
18,
8167,
1435,
316,
365,
18,
2116,
2668,
6347,
11,
4672,
365,
3292,
6347,
3546,
63,
3482,
65,
273,
365,
6315,
2
] |
style = win32con.WS_OVERLAPPED | win32con.WS_SYSMENU self.hwnd = CreateWindow(classAtom, "SpamBayes", style, 0, 0, win32con.CW_USEDEFAULT, win32con.CW_USEDEFAULT, 0, 0, hinst, None) UpdateWindow(self.hwnd)
|
hinst = GetModuleHandle(None) dialogTemplate = [['SpamBayes', (14, 10, 246, 187), -1865809852 & ~win32con.WS_VISIBLE, None, (8, 'Tahoma')],] self.hwnd = CreateDialogIndirect(hinst, dialogTemplate, 0, message_map)
|
def __init__(self): # The ordering here is important - it is the order that they will # appear in the menu. As dicts don't have an order, this means # that the order is controlled by the id. Any items were the # function is None will appear as separators. self.control_functions = {1024 : ("Start SpamBayes", self.StartStop), 1025 : ("-", None), 1026 : ("View information ...", self.OpenInterface), 1027 : ("Configure ...", self.OpenConfig), 1028 : ("-", None), 1029 : ("Exit SpamBayes", self.OnExit), } message_map = { win32con.WM_DESTROY: self.OnDestroy, win32con.WM_COMMAND: self.OnCommand, win32con.WM_USER+20 : self.OnTaskbarNotify, }
|
0254a2f4a8a68361bc59fecaadbe2435c61fa306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0254a2f4a8a68361bc59fecaadbe2435c61fa306/pop3proxy_tray.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
1021,
9543,
2674,
353,
10802,
300,
518,
353,
326,
1353,
716,
2898,
903,
468,
9788,
316,
326,
3824,
18,
225,
2970,
15838,
2727,
1404,
1240,
392,
1353,
16,
333,
4696,
468,
716,
326,
1353,
353,
25934,
635,
326,
612,
18,
225,
5502,
1516,
4591,
326,
468,
445,
353,
599,
903,
9788,
487,
14815,
18,
365,
18,
7098,
67,
10722,
273,
288,
2163,
3247,
294,
7566,
1685,
5878,
301,
38,
528,
281,
3113,
365,
18,
1685,
4947,
3631,
1728,
2947,
294,
7566,
17,
3113,
599,
3631,
1728,
5558,
294,
7566,
1767,
1779,
1372,
3113,
365,
18,
3678,
1358,
3631,
1728,
5324,
294,
7566,
11207,
1372,
3113,
365,
18,
3678,
809,
3631,
1728,
6030,
294,
7566,
17,
3113,
599,
3631,
1728,
5540,
294,
7566,
6767,
5878,
301,
38,
528,
281,
3113,
365,
18,
1398,
6767,
3631,
289,
883,
67,
1458,
273,
288,
5657,
1578,
591,
18,
25173,
67,
1639,
25870,
61,
30,
365,
18,
1398,
10740,
16,
5657,
1578,
591,
18,
25173,
67,
19104,
30,
365,
18,
1398,
2189,
16,
5657,
1578,
591,
18,
25173,
67,
4714,
15,
3462,
294,
365,
18,
1398,
2174,
3215,
9168,
16,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
1021,
9543,
2674,
353,
10802,
300,
518,
353,
326,
1353,
716,
2898,
903,
468,
9788,
316,
326,
3824,
18,
225,
2970,
15838,
2727,
1404,
1240,
392,
1353,
16,
333,
4696,
468,
716,
326,
1353,
353,
25934,
635,
326,
612,
18,
225,
5502,
1516,
4591,
326,
468,
445,
353,
599,
903,
9788,
487,
14815,
18,
365,
18,
7098,
67,
10722,
273,
288,
2163,
3247,
294,
7566,
1685,
5878,
301,
38,
528,
281,
3113,
365,
18,
1685,
4947,
3631,
1728,
2947,
294,
7566,
17,
3113,
599,
3631,
1728,
5558,
294,
7566,
1767,
1779,
1372,
3113,
365,
18,
3678,
1358,
3631,
1728,
5324,
294,
7566,
11207,
1372,
3113,
365,
18,
3678,
809,
3631,
1728,
2
] |
traceback_count = output.lower().count('traceback')
|
traceback_count = output.lower().count('Traceback (most recent call last)')
|
def get_traceback_stats(output): counter = {} traceback_count = output.lower().count('traceback') for warning in get_exceptions(output): counter.setdefault(warning, 0) counter[warning] += 1 traceback_count -= 1 items = counter.items() items.sort(key=lambda (a, b): -b) if traceback_count: items.append(('other traceback', traceback_count)) result = [] for name, count in items: if count == 1: result.append('1 %s' % name) else: result.append('%s %ss' % (count, name)) return result
|
ebed92695d5de41960526f5818d849f27636e72f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/ebed92695d5de41960526f5818d849f27636e72f/testrunner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21696,
67,
5296,
12,
2844,
4672,
3895,
273,
2618,
10820,
67,
1883,
273,
876,
18,
8167,
7675,
1883,
2668,
3448,
823,
261,
10329,
8399,
745,
1142,
2506,
13,
364,
3436,
316,
336,
67,
11855,
12,
2844,
4672,
3895,
18,
542,
1886,
12,
8551,
16,
374,
13,
3895,
63,
8551,
65,
1011,
404,
10820,
67,
1883,
3947,
404,
1516,
273,
3895,
18,
3319,
1435,
1516,
18,
3804,
12,
856,
33,
14661,
261,
69,
16,
324,
4672,
300,
70,
13,
309,
10820,
67,
1883,
30,
1516,
18,
6923,
12,
2668,
3011,
10820,
2187,
10820,
67,
1883,
3719,
563,
273,
5378,
364,
508,
16,
1056,
316,
1516,
30,
309,
1056,
422,
404,
30,
563,
18,
6923,
2668,
21,
738,
87,
11,
738,
508,
13,
469,
30,
563,
18,
6923,
29909,
87,
738,
1049,
11,
738,
261,
1883,
16,
508,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21696,
67,
5296,
12,
2844,
4672,
3895,
273,
2618,
10820,
67,
1883,
273,
876,
18,
8167,
7675,
1883,
2668,
3448,
823,
261,
10329,
8399,
745,
1142,
2506,
13,
364,
3436,
316,
336,
67,
11855,
12,
2844,
4672,
3895,
18,
542,
1886,
12,
8551,
16,
374,
13,
3895,
63,
8551,
65,
1011,
404,
10820,
67,
1883,
3947,
404,
1516,
273,
3895,
18,
3319,
1435,
1516,
18,
3804,
12,
856,
33,
14661,
261,
69,
16,
324,
4672,
300,
70,
13,
309,
10820,
67,
1883,
30,
1516,
18,
6923,
12,
2668,
3011,
10820,
2187,
10820,
67,
1883,
3719,
563,
273,
5378,
364,
508,
16,
1056,
316,
1516,
30,
309,
1056,
422,
404,
30,
563,
18,
6923,
2668,
21,
738,
2
] |
In case you want only log the length, use keyword `Get Length` from BuiltIn library.
|
If you only want to the length, use keyword `Get Length` from the BuiltIn library.
|
def log_list(self, list_, level='INFO'): """Logs given `list's` length and content with given `level` Valid levels are TRACE, DEBUG, INFO (default), and WARN. In case you want only log the length, use keyword `Get Length` from BuiltIn library. """ print '*%s* ' % (_validate_log_level(level)), if len(list_) == 0: print 'List is empty' elif len(list_) == 1: print "List has one item '%s'" % (list_[0]) else: print "List length is '%s'" % (len(list_)) for i in range(0, len(list_)): print '%s: %s' % (i, list_[i])
|
1a30ca3f7347244c59d0f784ad3f1162492374e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/1a30ca3f7347244c59d0f784ad3f1162492374e1/Collections.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
1098,
12,
2890,
16,
666,
67,
16,
1801,
2218,
5923,
11,
4672,
3536,
7777,
864,
1375,
1098,
1807,
68,
769,
471,
913,
598,
864,
1375,
2815,
68,
225,
2364,
7575,
854,
12734,
16,
6369,
16,
9286,
261,
1886,
3631,
471,
20440,
18,
225,
971,
1846,
1338,
2545,
358,
326,
769,
16,
999,
4932,
1375,
967,
11311,
68,
628,
326,
27376,
382,
5313,
18,
3536,
1172,
14609,
9,
87,
14,
296,
738,
261,
67,
5662,
67,
1330,
67,
2815,
12,
2815,
13,
3631,
309,
562,
12,
1098,
67,
13,
422,
374,
30,
1172,
296,
682,
353,
1008,
11,
1327,
562,
12,
1098,
67,
13,
422,
404,
30,
1172,
315,
682,
711,
1245,
761,
1995,
87,
4970,
738,
261,
1098,
67,
63,
20,
5717,
469,
30,
1172,
315,
682,
769,
353,
1995,
87,
4970,
738,
261,
1897,
12,
1098,
67,
3719,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
1098,
67,
3719,
30,
1172,
1995,
87,
30,
738,
87,
11,
738,
261,
77,
16,
666,
67,
63,
77,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
1098,
12,
2890,
16,
666,
67,
16,
1801,
2218,
5923,
11,
4672,
3536,
7777,
864,
1375,
1098,
1807,
68,
769,
471,
913,
598,
864,
1375,
2815,
68,
225,
2364,
7575,
854,
12734,
16,
6369,
16,
9286,
261,
1886,
3631,
471,
20440,
18,
225,
971,
1846,
1338,
2545,
358,
326,
769,
16,
999,
4932,
1375,
967,
11311,
68,
628,
326,
27376,
382,
5313,
18,
3536,
1172,
14609,
9,
87,
14,
296,
738,
261,
67,
5662,
67,
1330,
67,
2815,
12,
2815,
13,
3631,
309,
562,
12,
1098,
67,
13,
422,
374,
30,
1172,
296,
682,
353,
1008,
11,
1327,
562,
12,
1098,
67,
13,
422,
404,
30,
1172,
315,
682,
711,
1245,
761,
1995,
87,
4970,
738,
2
] |
self.PHOTO_TBL = config.get(section,'photo_tbl') self.PHOTO_TBLSQ = config.get(section,'photo_tblsq') self.NEWS_TBL = config.get(section,'news_tbl') self.NEWS_TBLSQ = config.get(section,'news_tblsq') self.SITE = config.get(section,'site')
|
self.PHOTO_TBL = ConfObj.get(section,'photo_tbl') self.PHOTO_TBLSQ = ConfObj.get(section,'photo_tblsq') self.NEWS_TBL = ConfObj.get(section,'news_tbl') self.NEWS_TBLSQ = ConfObj.get(section,'news_tblsq') self.SITE = ConfObj.get(section,'site')
|
def read_conf(self, ConfObj): ''' Getting config options for this handler '''
|
2bff5b59384628f80eb001f7fd095ec79b13d2c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3144/2bff5b59384628f80eb001f7fd095ec79b13d2c4/NewsHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3923,
12,
2890,
16,
9675,
2675,
4672,
9163,
26602,
642,
702,
364,
333,
1838,
9163,
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
] |
[
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3923,
12,
2890,
16,
9675,
2675,
4672,
9163,
26602,
642,
702,
364,
333,
1838,
9163,
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
] |
elif Key == TAB_TAT_DEFINES_MULTIPLE_THREAD and self.Opt.Num != None:
|
elif Key == TAB_TAT_DEFINES_MULTIPLE_THREAD and self.Opt.NUM != None:
|
def RWFile(self, CommentCharacter, KeySplitCharacter, Num): try: fr = open(self.FileName, 'r') fw = open(os.path.normpath(os.path.join(self.WorkSpace, 'Conf\\targetnew.txt')), 'w')
|
b1490d09e20dd70b001e612731692dd025712191 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/b1490d09e20dd70b001e612731692dd025712191/TargetTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25920,
812,
12,
2890,
16,
9821,
7069,
16,
1929,
5521,
7069,
16,
6805,
4672,
775,
30,
3812,
273,
1696,
12,
2890,
18,
4771,
16,
296,
86,
6134,
7600,
273,
1696,
12,
538,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
2421,
3819,
16,
296,
3976,
1695,
3299,
2704,
18,
5830,
6134,
3631,
296,
91,
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,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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,
25920,
812,
12,
2890,
16,
9821,
7069,
16,
1929,
5521,
7069,
16,
6805,
4672,
775,
30,
3812,
273,
1696,
12,
2890,
18,
4771,
16,
296,
86,
6134,
7600,
273,
1696,
12,
538,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
2421,
3819,
16,
296,
3976,
1695,
3299,
2704,
18,
5830,
6134,
3631,
296,
91,
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
] |
print "adding scraped thumb at %s" % desc.expand("\\1")
|
def addScrapedThumbnail(self,entry): if (len(entry['enclosures'])>0 and entry.has_key('description') and not entry['enclosures'][0].has_key('thumbnail')): print "I could scrape "+entry['title'] desc = RSSFeed.firstImageRE.search(unescape(entry['description'])) if not desc is None: print "adding scraped thumb at %s" % desc.expand("\\1") entry['enclosures'][0]['thumbnail'] = FeedParserDict({'url': desc.expand("\\1")}) return entry
|
78e2f9a7758c69397ec02fc5f57f5c3710fc5d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/78e2f9a7758c69397ec02fc5f57f5c3710fc5d32/feed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1541,
1266,
329,
16270,
12,
2890,
16,
4099,
4672,
309,
261,
1897,
12,
4099,
3292,
1331,
383,
8421,
19486,
34,
20,
471,
1241,
18,
5332,
67,
856,
2668,
3384,
6134,
471,
486,
1241,
3292,
1331,
383,
8421,
3546,
63,
20,
8009,
5332,
67,
856,
2668,
14904,
26112,
30,
1172,
315,
45,
3377,
888,
25360,
13773,
4099,
3292,
2649,
3546,
3044,
273,
31481,
8141,
18,
3645,
2040,
862,
18,
3072,
12,
318,
6939,
12,
4099,
3292,
3384,
3546,
3719,
309,
486,
3044,
353,
599,
30,
1241,
3292,
1331,
383,
8421,
3546,
63,
20,
23962,
14904,
3546,
273,
14013,
2678,
5014,
12590,
11,
718,
4278,
3044,
18,
12320,
2932,
1695,
21,
7923,
6792,
327,
1241,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1541,
1266,
329,
16270,
12,
2890,
16,
4099,
4672,
309,
261,
1897,
12,
4099,
3292,
1331,
383,
8421,
19486,
34,
20,
471,
1241,
18,
5332,
67,
856,
2668,
3384,
6134,
471,
486,
1241,
3292,
1331,
383,
8421,
3546,
63,
20,
8009,
5332,
67,
856,
2668,
14904,
26112,
30,
1172,
315,
45,
3377,
888,
25360,
13773,
4099,
3292,
2649,
3546,
3044,
273,
31481,
8141,
18,
3645,
2040,
862,
18,
3072,
12,
318,
6939,
12,
4099,
3292,
3384,
3546,
3719,
309,
486,
3044,
353,
599,
30,
1241,
3292,
1331,
383,
8421,
3546,
63,
20,
23962,
14904,
3546,
273,
14013,
2678,
5014,
12590,
11,
718,
4278,
3044,
18,
12320,
2932,
1695,
21,
7923,
6792,
327,
1241,
2,
-100,
-100,
-100,
-100
] |
|
'install_data': MyInstallData,
|
'install_man': install_man, 'install': install, 'build_man': BuildDoc, }, 'options': { 'build_man': { 'builder': 'man' },
|
def run(self): if not self.scripts: return saved_scripts = self.scripts self.scripts = [] for script in saved_scripts: script = convert_path(script) script_copy, script_ext = os.path.splitext(script)
|
3969435fb46344d714d7a63b3e389def48dd45dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1984/3969435fb46344d714d7a63b3e389def48dd45dc/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
12827,
30,
327,
5198,
67,
12827,
273,
365,
18,
12827,
365,
18,
12827,
273,
5378,
364,
2728,
316,
5198,
67,
12827,
30,
2728,
273,
1765,
67,
803,
12,
4263,
13,
2728,
67,
3530,
16,
2728,
67,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
4263,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
2890,
4672,
309,
486,
365,
18,
12827,
30,
327,
5198,
67,
12827,
273,
365,
18,
12827,
365,
18,
12827,
273,
5378,
364,
2728,
316,
5198,
67,
12827,
30,
2728,
273,
1765,
67,
803,
12,
4263,
13,
2728,
67,
3530,
16,
2728,
67,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
4263,
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
] |
gLogger.debug("SRM2Storage.removeDirectory: Attempting to remove %s" % directory) res = self.__getDirectoryContents(directory) resDict = {'FilesRemoved':0,'SizeRemoved':0}
|
gLogger.debug( "SRM2Storage.removeDirectory: Attempting to remove %s" % directory ) res = self.__getDirectoryContents( directory ) resDict = {'FilesRemoved':0, 'SizeRemoved':0}
|
def __removeDirectoryRecursive(self,directory): """ Recursively removes the directory and sub dirs. Repeatedly calls itself to delete recursively. """ res = self.checkArgumentFormat(directory) if not res['OK']: return res urls = res['Value']
|
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4479,
2853,
10483,
12,
2890,
16,
5149,
4672,
3536,
31362,
7157,
326,
1867,
471,
720,
7717,
18,
868,
9061,
715,
4097,
6174,
358,
1430,
8536,
18,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
5149,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
6903,
273,
400,
3292,
620,
3546,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4479,
2853,
10483,
12,
2890,
16,
5149,
4672,
3536,
31362,
7157,
326,
1867,
471,
720,
7717,
18,
868,
9061,
715,
4097,
6174,
358,
1430,
8536,
18,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
5149,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
6903,
273,
400,
3292,
620,
3546,
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
] |
CallerIDName = self.calls[call]['CallerIDName'] CallerID = self.calls[call]['CallerID']
|
def handlerRename(self, lines): log.info('MonAst.handlerRename :: Running...') dic = self.list2Dict(lines) Oldname = dic.get('Channel', dic.get('Oldname')) Newname = dic['Newname'] Uniqueid = dic['Uniqueid'] CallerIDName = '' CallerID = '' try: self.channelsLock.acquire() self.channels[Uniqueid]['Channel'] = Newname self.channelsLock.release() self.callsLock.acquire() for call in self.calls: SrcUniqueID, DestUniqueID = call.split('-') key = None if (SrcUniqueID == Uniqueid): key = 'Source' if (DestUniqueID == Uniqueid): key = 'Destination' if key: self.calls[call][key] = Newname CallerIDName = self.calls[call]['CallerIDName'] CallerID = self.calls[call]['CallerID'] break self.callsLock.release() self.enqueue('Rename: %s:::%s:::%s:::%s:::%s' % (Oldname, Newname, Uniqueid, CallerIDName, CallerID)) except: log.warn('MonAst.handlerRename :: Channel %s not found in self.channels, ignored.' % Oldname)
|
813c458b6b9d6ad69d56f03bf10cade3d4e1bc36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12004/813c458b6b9d6ad69d56f03bf10cade3d4e1bc36/monast.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
16019,
12,
2890,
16,
2362,
4672,
225,
613,
18,
1376,
2668,
11415,
21385,
18,
4176,
16019,
493,
20480,
7821,
13,
11681,
273,
365,
18,
1098,
22,
5014,
12,
3548,
13,
225,
18613,
529,
1377,
273,
11681,
18,
588,
2668,
2909,
2187,
11681,
18,
588,
2668,
7617,
529,
26112,
1166,
529,
1377,
273,
11681,
3292,
1908,
529,
3546,
14584,
350,
377,
273,
11681,
3292,
6303,
350,
3546,
20646,
734,
461,
273,
875,
20646,
734,
377,
273,
875,
225,
775,
30,
365,
18,
9114,
2531,
18,
1077,
1039,
1435,
365,
18,
9114,
63,
6303,
350,
23962,
2909,
3546,
273,
1166,
529,
365,
18,
9114,
2531,
18,
9340,
1435,
225,
365,
18,
12550,
2531,
18,
1077,
1039,
1435,
364,
745,
316,
365,
18,
12550,
30,
26632,
31118,
16,
28510,
31118,
273,
745,
18,
4939,
2668,
17,
6134,
498,
273,
599,
309,
261,
7740,
31118,
422,
14584,
350,
4672,
498,
273,
296,
1830,
11,
309,
261,
9378,
31118,
422,
14584,
350,
4672,
498,
273,
296,
5683,
11,
309,
498,
30,
365,
18,
12550,
63,
1991,
6362,
856,
65,
273,
1166,
529,
898,
365,
18,
12550,
2531,
18,
9340,
1435,
225,
365,
18,
21798,
2668,
16019,
30,
738,
87,
2866,
5319,
87,
2866,
5319,
87,
2866,
5319,
87,
2866,
5319,
87,
11,
738,
261,
7617,
529,
16,
1166,
529,
16,
14584,
350,
16,
20646,
734,
461,
16,
20646,
734,
3719,
1335,
30,
613,
18,
8935,
2668,
11415,
21385,
18,
4176,
16019,
493,
5307,
738,
87,
486,
1392,
316,
365,
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,
1838,
16019,
12,
2890,
16,
2362,
4672,
225,
613,
18,
1376,
2668,
11415,
21385,
18,
4176,
16019,
493,
20480,
7821,
13,
11681,
273,
365,
18,
1098,
22,
5014,
12,
3548,
13,
225,
18613,
529,
1377,
273,
11681,
18,
588,
2668,
2909,
2187,
11681,
18,
588,
2668,
7617,
529,
26112,
1166,
529,
1377,
273,
11681,
3292,
1908,
529,
3546,
14584,
350,
377,
273,
11681,
3292,
6303,
350,
3546,
20646,
734,
461,
273,
875,
20646,
734,
377,
273,
875,
225,
775,
30,
365,
18,
9114,
2531,
18,
1077,
1039,
1435,
365,
18,
9114,
63,
6303,
350,
23962,
2909,
3546,
273,
1166,
529,
365,
18,
9114,
2531,
18,
9340,
1435,
225,
365,
18,
12550,
2531,
18,
1077,
1039,
1435,
364,
745,
2
] |
|
self.search.connect('changed',self.on_search_changed)
|
self.search.connect('changed',self.on_search_changed)
|
def __init__(self): self.builder = gtk.Builder() self.builder.add_from_file("wordgroupz.glade") self.window = self.builder.get_object("MainWindow") self.window.set_icon_from_file("/usr/share/pixmaps/wordgroupz.png") self.window.set_title("wordGroupz") self.builder.connect_signals(self) self.get_word = self.builder.get_object("get_word") self.get_group = gtk.combo_box_entry_new_text() self.details = self.builder.get_object("textview1") self.get_group.child.connect('key-press-event',self.item_list_changed) self.vpan = self.builder.get_object("vpaned1") self.output_txtview = self.builder.get_object("textview2") for x in list_groups(): self.get_group.append_text(x) self.table1 = self.builder.get_object("table1") self.get_group.show() self.table1.attach(self.get_group, 1,2,1,2)
|
e940197cbd5bd83a44f5fd387df2bfd0ff7d8037 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10994/e940197cbd5bd83a44f5fd387df2bfd0ff7d8037/wordgroupz.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9574,
273,
22718,
18,
1263,
1435,
365,
18,
9574,
18,
1289,
67,
2080,
67,
768,
2932,
1095,
1655,
94,
18,
7043,
2486,
7923,
365,
18,
5668,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
6376,
3829,
7923,
365,
18,
5668,
18,
542,
67,
3950,
67,
2080,
67,
768,
2932,
19,
13640,
19,
14419,
19,
14861,
10711,
19,
1095,
1655,
94,
18,
6446,
7923,
365,
18,
5668,
18,
542,
67,
2649,
2932,
1095,
1114,
94,
7923,
365,
18,
9574,
18,
3612,
67,
29659,
12,
2890,
13,
365,
18,
588,
67,
1095,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
588,
67,
1095,
7923,
365,
18,
588,
67,
1655,
273,
22718,
18,
25053,
67,
2147,
67,
4099,
67,
2704,
67,
955,
1435,
365,
18,
6395,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
955,
1945,
21,
7923,
365,
18,
588,
67,
1655,
18,
3624,
18,
3612,
2668,
856,
17,
1028,
17,
2575,
2187,
2890,
18,
1726,
67,
1098,
67,
6703,
13,
365,
18,
90,
7355,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
90,
7355,
329,
21,
7923,
365,
18,
2844,
67,
5830,
1945,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
955,
1945,
22,
7923,
364,
619,
316,
666,
67,
4650,
13332,
365,
18,
588,
67,
1655,
18,
6923,
67,
955,
12,
92,
13,
365,
18,
2121,
21,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
2121,
21,
7923,
365,
18,
588,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
9574,
273,
22718,
18,
1263,
1435,
365,
18,
9574,
18,
1289,
67,
2080,
67,
768,
2932,
1095,
1655,
94,
18,
7043,
2486,
7923,
365,
18,
5668,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
6376,
3829,
7923,
365,
18,
5668,
18,
542,
67,
3950,
67,
2080,
67,
768,
2932,
19,
13640,
19,
14419,
19,
14861,
10711,
19,
1095,
1655,
94,
18,
6446,
7923,
365,
18,
5668,
18,
542,
67,
2649,
2932,
1095,
1114,
94,
7923,
365,
18,
9574,
18,
3612,
67,
29659,
12,
2890,
13,
365,
18,
588,
67,
1095,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
588,
67,
1095,
7923,
365,
18,
588,
67,
1655,
273,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.