rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
smtp = smtplib.SMTP("localhost", 9091)
|
smtp = smtplib.SMTP(HOST, PORT)
|
def testBasic(self): # connects smtp = smtplib.SMTP("localhost", 9091) smtp.sock.close()
|
9847a71715dd728b74739fb8399a4650195f789d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9847a71715dd728b74739fb8399a4650195f789d/test_smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8252,
12,
2890,
4672,
468,
23441,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
13,
17660,
18,
15031,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8252,
12,
2890,
4672,
468,
23441,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
13,
17660,
18,
15031,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
args = []
|
args = ['--no_watchlists']
|
def testNormal(self): change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription', ['aa', 'bb']) self.mox.StubOutWithMock(change_info, 'Save') args = [] change_info.Save() gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True) gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server') gcl.tempfile.mkstemp(text=True).AndReturn((42, 'descfile')) gcl.os.write(42, change_info.description) gcl.os.close(42) gcl.GetCodeReviewSetting('CC_LIST') gcl.os.getcwd().AndReturn('somewhere') gcl.os.chdir(gcl.GetRepositoryRoot().AndReturn(None)) gcl.GenerateDiff(change_info.FileList()) gcl.upload.RealMain(['upload.py', '-y', '--server=my_server', "--description_file=descfile", "--message=deescription"], change_info.patch).AndReturn(("1", "2")) gcl.os.remove('descfile') gcl.SendToRietveld("/lint/issue%s_%s" % ('1', '2'), timeout=0.5) gcl.GetCodeReviewSetting('TRY_ON_UPLOAD').AndReturn('True') gcl.TryChange(change_info, [], swallow_exception=True) gcl.os.chdir('somewhere') self.mox.ReplayAll()
|
1e26e2070bef085c5e515cc0a39c36e737e37038 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/1e26e2070bef085c5e515cc0a39c36e737e37038/gcl_unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5506,
12,
2890,
4672,
2549,
67,
1376,
273,
314,
830,
18,
3043,
966,
2668,
6582,
339,
2187,
374,
16,
374,
16,
296,
323,
1389,
2187,
10228,
7598,
2187,
296,
9897,
19486,
365,
18,
81,
2409,
18,
11974,
1182,
1190,
9865,
12,
3427,
67,
1376,
16,
296,
4755,
6134,
833,
273,
10228,
413,
2135,
67,
7585,
9772,
3546,
2549,
67,
1376,
18,
4755,
1435,
314,
830,
18,
3244,
12236,
373,
1938,
4081,
12,
3427,
67,
1376,
16,
1083,
16,
1053,
2934,
1876,
990,
12,
5510,
13,
314,
830,
18,
967,
1085,
9159,
5568,
2668,
5572,
67,
862,
12145,
67,
4370,
16063,
1876,
990,
2668,
4811,
67,
3567,
6134,
314,
830,
18,
5814,
768,
18,
24816,
19781,
84,
12,
955,
33,
5510,
2934,
1876,
990,
12443,
9452,
16,
296,
5569,
768,
26112,
314,
830,
18,
538,
18,
2626,
12,
9452,
16,
2549,
67,
1376,
18,
3384,
13,
314,
830,
18,
538,
18,
4412,
12,
9452,
13,
314,
830,
18,
967,
1085,
9159,
5568,
2668,
6743,
67,
7085,
6134,
314,
830,
18,
538,
18,
588,
11089,
7675,
1876,
990,
2668,
87,
362,
359,
14852,
6134,
314,
830,
18,
538,
18,
343,
1214,
12,
75,
830,
18,
967,
3305,
2375,
7675,
1876,
990,
12,
7036,
3719,
314,
830,
18,
4625,
5938,
12,
3427,
67,
1376,
18,
26098,
10756,
314,
830,
18,
6327,
18,
6955,
6376,
12,
3292,
6327,
18,
2074,
2187,
2400,
93,
2187,
3534,
3567,
33,
4811,
67,
3567,
2187,
5238,
3384,
67,
768,
33,
5569,
768,
3113,
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,
5506,
12,
2890,
4672,
2549,
67,
1376,
273,
314,
830,
18,
3043,
966,
2668,
6582,
339,
2187,
374,
16,
374,
16,
296,
323,
1389,
2187,
10228,
7598,
2187,
296,
9897,
19486,
365,
18,
81,
2409,
18,
11974,
1182,
1190,
9865,
12,
3427,
67,
1376,
16,
296,
4755,
6134,
833,
273,
10228,
413,
2135,
67,
7585,
9772,
3546,
2549,
67,
1376,
18,
4755,
1435,
314,
830,
18,
3244,
12236,
373,
1938,
4081,
12,
3427,
67,
1376,
16,
1083,
16,
1053,
2934,
1876,
990,
12,
5510,
13,
314,
830,
18,
967,
1085,
9159,
5568,
2668,
5572,
67,
862,
12145,
67,
4370,
16063,
1876,
990,
2668,
4811,
67,
3567,
6134,
314,
830,
18,
5814,
768,
18,
24816,
19781,
84,
12,
2
] |
message = "Login via console: /tell %s !login yourpassword" %client.name else: message = "Login via console: /tell %s !login yourpassword" %client.cid client.message(message)
|
message = "Login via console: /tell %s !login yourpassword" %client.name else: message = "Login via console: /tell %s !login yourpassword" %client.cid client.message(message)
|
def onAuth(self, client): if client.maxLevel > self.threshold and not client.isvar(self, 'loggedin'):
|
f333316dfbf17a78474edc67fc9e79b338b4faac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/f333316dfbf17a78474edc67fc9e79b338b4faac/login.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1730,
12,
2890,
16,
1004,
4672,
309,
1004,
18,
1896,
2355,
405,
365,
18,
8699,
471,
486,
1004,
18,
291,
1401,
12,
2890,
16,
296,
19385,
267,
11,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
603,
1730,
12,
2890,
16,
1004,
4672,
309,
1004,
18,
1896,
2355,
405,
365,
18,
8699,
471,
486,
1004,
18,
291,
1401,
12,
2890,
16,
296,
19385,
267,
11,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pass
|
return
|
def on_char(self, event): key_code = event.GetKeyCode() if key_code == wx.WXK_RETURN: item = self.GetSelection() node = self.GetPyData(item) uri = node.uri if uri.startswith('#'): try: n = int(buffer(uri, 1)) except ValueError: pass # TODO: try to handle non-local URIs parent = wx.GetTopLevelParent(self) parent.page_no = n - 1 else: pass # TODO: try to handle non-local URIs
|
811b0cd95997a7777d4cfabc112ce7e5f7a0e38f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3683/811b0cd95997a7777d4cfabc112ce7e5f7a0e38f/outline_browser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3001,
12,
2890,
16,
871,
4672,
498,
67,
710,
273,
871,
18,
967,
653,
1085,
1435,
309,
498,
67,
710,
422,
7075,
18,
59,
60,
47,
67,
14033,
30,
761,
273,
365,
18,
967,
6233,
1435,
756,
273,
365,
18,
967,
9413,
751,
12,
1726,
13,
2003,
273,
756,
18,
1650,
309,
2003,
18,
17514,
1918,
2668,
10038,
4672,
775,
30,
290,
273,
509,
12,
4106,
12,
1650,
16,
404,
3719,
1335,
2068,
30,
327,
468,
2660,
30,
775,
358,
1640,
1661,
17,
3729,
24565,
982,
273,
7075,
18,
967,
27046,
3054,
12,
2890,
13,
982,
18,
2433,
67,
2135,
273,
290,
300,
404,
469,
30,
327,
468,
2660,
30,
775,
358,
1640,
1661,
17,
3729,
24565,
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,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3001,
12,
2890,
16,
871,
4672,
498,
67,
710,
273,
871,
18,
967,
653,
1085,
1435,
309,
498,
67,
710,
422,
7075,
18,
59,
60,
47,
67,
14033,
30,
761,
273,
365,
18,
967,
6233,
1435,
756,
273,
365,
18,
967,
9413,
751,
12,
1726,
13,
2003,
273,
756,
18,
1650,
309,
2003,
18,
17514,
1918,
2668,
10038,
4672,
775,
30,
290,
273,
509,
12,
4106,
12,
1650,
16,
404,
3719,
1335,
2068,
30,
327,
468,
2660,
30,
775,
358,
1640,
1661,
17,
3729,
24565,
982,
273,
7075,
18,
967,
27046,
3054,
12,
2890,
13,
982,
18,
2433,
67,
2135,
273,
290,
300,
404,
469,
30,
327,
468,
2660,
30,
775,
358,
1640,
1661,
17,
3729,
2
] |
out %= ('<b>' + str(nb_new_mail) + '</b>', create_html_link(weburl + '/yourmessages/', {'ln': ln}, str(total_mail), {},
|
out %= ('<b>' + str(nb_new_mail) + '</b>', create_html_link(weburl + '/yourmessages/', {'ln': ln}, str(total_mail), {},
|
def tmpl_account_new_mail(self, nb_new_mail=0, total_mail=0, ln=cdslang): """ display infos about inbox (used by myaccount.py) @param nb_new_mail: number of new mails @param ln: language return: html output. """ _ = gettext_set_language(ln) out = _("You have %s new messages out of %s messages") out %= ('<b>' + str(nb_new_mail) + '</b>', create_html_link(weburl + '/yourmessages/', {'ln': ln}, str(total_mail), {}, False, False)) return out + '.'
|
a67f9538194b020c4165a3831685fc0dff2673bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2876/a67f9538194b020c4165a3831685fc0dff2673bc/webmessage_templates.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4631,
67,
2704,
67,
4408,
12,
2890,
16,
4264,
67,
2704,
67,
4408,
33,
20,
16,
2078,
67,
4408,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
2562,
10626,
2973,
27271,
261,
3668,
635,
3399,
4631,
18,
2074,
13,
632,
891,
4264,
67,
2704,
67,
4408,
30,
1300,
434,
394,
4791,
87,
632,
891,
7211,
30,
2653,
327,
30,
1729,
876,
18,
3536,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
596,
273,
389,
2932,
6225,
1240,
738,
87,
394,
2743,
596,
434,
738,
87,
2743,
7923,
596,
30582,
7707,
32,
70,
1870,
397,
609,
12,
6423,
67,
2704,
67,
4408,
13,
397,
4357,
70,
1870,
16,
752,
67,
2620,
67,
1232,
12,
4875,
718,
397,
1173,
93,
477,
6833,
19,
2187,
13666,
2370,
4278,
7211,
5779,
609,
12,
4963,
67,
4408,
3631,
10615,
1083,
16,
1083,
3719,
327,
596,
397,
2611,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4631,
67,
2704,
67,
4408,
12,
2890,
16,
4264,
67,
2704,
67,
4408,
33,
20,
16,
2078,
67,
4408,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
2562,
10626,
2973,
27271,
261,
3668,
635,
3399,
4631,
18,
2074,
13,
632,
891,
4264,
67,
2704,
67,
4408,
30,
1300,
434,
394,
4791,
87,
632,
891,
7211,
30,
2653,
327,
30,
1729,
876,
18,
3536,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
596,
273,
389,
2932,
6225,
1240,
738,
87,
394,
2743,
596,
434,
738,
87,
2743,
7923,
596,
30582,
7707,
32,
70,
1870,
397,
609,
12,
6423,
67,
2704,
67,
4408,
13,
397,
4357,
70,
1870,
16,
752,
67,
2620,
67,
1232,
2
] |
filename = options.filename
|
def _array_get_all(a, object_cache): """ Return a 4-tuple containing all the data stored in a given array, in a format that is easy to turn into an actual dictionary. @param a: Array representing a dictionary. @param object_cache: A list of strings referenced by elements in the array. @return: A 4-tuple: (name, shortname, depend, content), in which all members are strings except depend which is a list of strings. """ name = ".".join([object_cache[i] for i in a[a[0]:a[1]]]) shortname = ".".join([object_cache[i] for i in a[a[1]:a[2]]]) content = "".join([object_cache[i] for i in a[a[3]:]]) depend = [] prefix = "" for n, d in zip(a[a[0]:a[1]], a[a[2]:a[3]]): for dep in object_cache[d].split(): depend.append(prefix + dep) prefix += object_cache[n] + "." return name, shortname, depend, content
|
28d72e6d0104eee977ffcbc5eb29a27e101f38c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/28d72e6d0104eee977ffcbc5eb29a27e101f38c7/kvm_config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
588,
67,
454,
12,
69,
16,
733,
67,
2493,
4672,
3536,
2000,
279,
1059,
17,
8052,
4191,
777,
326,
501,
4041,
316,
279,
864,
526,
16,
316,
279,
740,
716,
353,
12779,
358,
7005,
1368,
392,
3214,
3880,
18,
225,
632,
891,
279,
30,
1510,
5123,
279,
3880,
18,
632,
891,
733,
67,
2493,
30,
432,
666,
434,
2064,
8042,
635,
2186,
316,
326,
526,
18,
632,
2463,
30,
432,
1059,
17,
8052,
30,
261,
529,
16,
23879,
16,
2447,
16,
913,
3631,
316,
1492,
777,
4833,
854,
2064,
1335,
2447,
1492,
353,
279,
666,
434,
2064,
18,
3536,
508,
273,
4585,
18,
5701,
3816,
1612,
67,
2493,
63,
77,
65,
364,
277,
316,
279,
63,
69,
63,
20,
14542,
69,
63,
21,
13563,
5717,
23879,
273,
4585,
18,
5701,
3816,
1612,
67,
2493,
63,
77,
65,
364,
277,
316,
279,
63,
69,
63,
21,
14542,
69,
63,
22,
13563,
5717,
913,
273,
1408,
18,
5701,
3816,
1612,
67,
2493,
63,
77,
65,
364,
277,
316,
279,
63,
69,
63,
23,
14542,
65,
5717,
2447,
273,
5378,
1633,
273,
1408,
364,
290,
16,
302,
316,
3144,
12,
69,
63,
69,
63,
20,
14542,
69,
63,
21,
65,
6487,
279,
63,
69,
63,
22,
14542,
69,
63,
23,
13563,
4672,
364,
5993,
316,
733,
67,
2493,
63,
72,
8009,
4939,
13332,
2447,
18,
6923,
12,
3239,
397,
5993,
13,
1633,
1011,
733,
67,
2493,
63,
82,
65,
397,
4585,
327,
508,
16,
23879,
16,
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,
1126,
67,
588,
67,
454,
12,
69,
16,
733,
67,
2493,
4672,
3536,
2000,
279,
1059,
17,
8052,
4191,
777,
326,
501,
4041,
316,
279,
864,
526,
16,
316,
279,
740,
716,
353,
12779,
358,
7005,
1368,
392,
3214,
3880,
18,
225,
632,
891,
279,
30,
1510,
5123,
279,
3880,
18,
632,
891,
733,
67,
2493,
30,
432,
666,
434,
2064,
8042,
635,
2186,
316,
326,
526,
18,
632,
2463,
30,
432,
1059,
17,
8052,
30,
261,
529,
16,
23879,
16,
2447,
16,
913,
3631,
316,
1492,
777,
4833,
854,
2064,
1335,
2447,
1492,
353,
279,
666,
434,
2064,
18,
3536,
508,
273,
4585,
18,
5701,
3816,
1612,
67,
2493,
63,
77,
65,
364,
277,
316,
279,
2
] |
|
self.putcmd("ehlo", name or self.local_hostname)
|
self.putcmd(self.ehlo_msg, name or self.local_hostname)
|
def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ self.esmtp_features = {} self.putcmd("ehlo", name or self.local_hostname) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # MTA's will disconnect on an ehlo. Toss an exception if # that happens -ddm if code == -1 and len(msg) == 0: self.close() raise SMTPServerDisconnected("Server not connected") self.ehlo_resp=msg if code != 250: return (code,msg) self.does_esmtp=1 #parse the ehlo response -ddm resp=self.ehlo_resp.split('\n') del resp[0] for each in resp: # To be able to communicate with as many SMTP servers as possible, # we have to take the old-style auth advertisement into account, # because: # 1) Else our SMTP feature parser gets confused. # 2) There are some servers that only advertise the auth methods we # support using the old style. auth_match = OLDSTYLE_AUTH.match(each) if auth_match: # This doesn't remove duplicates, but that's no problem self.esmtp_features["auth"] = self.esmtp_features.get("auth", "") \ + " " + auth_match.groups(0)[0] continue
|
0ced6049fab7518616e649d3b1a802c684d23823 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0ced6049fab7518616e649d3b1a802c684d23823/smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
3536,
365,
18,
281,
11091,
67,
7139,
273,
2618,
365,
18,
458,
4172,
12,
2890,
18,
73,
76,
383,
67,
3576,
16,
508,
578,
365,
18,
3729,
67,
10358,
13,
261,
710,
16,
3576,
13,
33,
2890,
18,
588,
10629,
1435,
468,
12848,
4643,
358,
8372,
2643,
8148,
2690,
261,
8759,
715,
5941,
13,
468,
490,
9833,
1807,
903,
9479,
603,
392,
20124,
383,
18,
399,
8464,
392,
1520,
309,
468,
716,
10555,
300,
449,
81,
309,
981,
422,
300,
21,
471,
562,
12,
3576,
13,
422,
374,
30,
365,
18,
4412,
1435,
1002,
18102,
2081,
26303,
2932,
2081,
486,
5840,
7923,
365,
18,
73,
76,
383,
67,
12243,
33,
3576,
309,
981,
480,
16927,
30,
327,
261,
710,
16,
3576,
13,
365,
18,
20657,
67,
281,
11091,
33,
21,
468,
2670,
326,
20124,
383,
766,
300,
449,
81,
1718,
33,
2890,
18,
73,
76,
383,
67,
12243,
18,
4939,
2668,
64,
82,
6134,
1464,
1718,
63,
20,
65,
364,
1517,
316,
1718,
30,
468,
2974,
506,
7752,
358,
15541,
598,
487,
4906,
18102,
7084,
487,
3323,
16,
468,
732,
1240,
358,
4862,
326,
1592,
17,
4060,
1357,
16738,
291,
820,
1368,
2236,
16,
468,
2724,
30,
468,
404,
13,
16289,
3134,
18102,
2572,
2082,
5571,
2195,
3668,
18,
468,
576,
13,
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,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
3536,
365,
18,
281,
11091,
67,
7139,
273,
2618,
365,
18,
458,
4172,
12,
2890,
18,
73,
76,
383,
67,
3576,
16,
508,
578,
365,
18,
3729,
67,
10358,
13,
261,
710,
16,
3576,
13,
33,
2890,
18,
588,
10629,
1435,
468,
12848,
4643,
358,
8372,
2643,
8148,
2690,
261,
8759,
715,
5941,
13,
468,
490,
9833,
1807,
903,
9479,
603,
392,
20124,
383,
18,
399,
8464,
392,
1520,
309,
468,
716,
10555,
300,
449,
81,
309,
981,
422,
300,
21,
471,
562,
12,
2
] |
if os.path.exists(p):
|
if os.path.isfile(p):
|
def getRawArticle(self, title): p = os.path.join(self.basedir, title) if os.path.exists(p): return unicode(open(p, 'rb').read(), 'utf-8') return self.db.getRawArticle(title)
|
e468a9d9a80e8724eb11ea22359fc636cf32e684 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/e468a9d9a80e8724eb11ea22359fc636cf32e684/overlay.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
4672,
293,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
31722,
16,
2077,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
84,
4672,
327,
5252,
12,
3190,
12,
84,
16,
296,
6731,
16063,
896,
9334,
296,
3158,
17,
28,
6134,
327,
365,
18,
1966,
18,
588,
4809,
7880,
12,
2649,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
4672,
293,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
31722,
16,
2077,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
84,
4672,
327,
5252,
12,
3190,
12,
84,
16,
296,
6731,
16063,
896,
9334,
296,
3158,
17,
28,
6134,
327,
365,
18,
1966,
18,
588,
4809,
7880,
12,
2649,
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
] |
return lib.EVP_MD_CTX_block_size(byref(self._obj))
|
return { 'md5': 64, 'sha1': 64, 'sha224': 64, 'sha256': 64, 'sha384': 128, 'sha512': 128, }.get(self.name, 0)
|
def block_size(self): return lib.EVP_MD_CTX_block_size(byref(self._obj))
|
1d7aee4ff99ed99addc09e6836b32061f89c17c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/1d7aee4ff99ed99addc09e6836b32061f89c17c3/_hashlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
1467,
12,
2890,
4672,
327,
2561,
18,
24427,
52,
67,
6188,
67,
1268,
60,
67,
2629,
67,
1467,
12,
1637,
1734,
12,
2890,
6315,
2603,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
24427,
52,
67,
6188,
67,
1268,
60,
67,
2629,
67,
1467,
12,
1637,
1734,
12,
2890,
6315,
2603,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
standard_libs = ['mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm', \ 'mwrank', 'gsl', cblas(), 'ntl', 'csage']
|
standard_libs = ['mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm', 'curvesntl', \ 'g0nntl', 'jcntl', 'rankntl', 'gsl', cblas(), 'ntl', 'csage']
|
def cblas(): if os.environ.has_key('SAGE_CBLAS'): return os.environ['SAGE_CBLAS'] elif os.path.exists('/usr/lib/libcblas.dylib') or \ os.path.exists('/usr/lib/libcblas.so'): return 'cblas' elif os.path.exists('/usr/lib/libblas.dll.a'): # untested. return 'blas' else: # This is very slow (?), but *guaranteed* to be available. return 'gslcblas'
|
7063230765a75738e631b5bd157619c287a0d7f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7063230765a75738e631b5bd157619c287a0d7f7/cython.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
9521,
13332,
309,
1140,
18,
28684,
18,
5332,
67,
856,
2668,
55,
2833,
67,
8876,
2534,
55,
11,
4672,
327,
1140,
18,
28684,
3292,
55,
2833,
67,
8876,
2534,
55,
3546,
1327,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
2941,
19,
2941,
71,
3083,
345,
18,
15680,
2941,
6134,
578,
521,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
2941,
19,
2941,
71,
3083,
345,
18,
2048,
11,
4672,
327,
296,
71,
3083,
345,
11,
1327,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
2941,
19,
2941,
3083,
345,
18,
27670,
18,
69,
11,
4672,
282,
468,
640,
88,
3149,
18,
327,
296,
3083,
345,
11,
469,
30,
468,
1220,
353,
8572,
11816,
225,
13590,
3631,
1496,
380,
6891,
30164,
14,
358,
506,
2319,
18,
327,
296,
564,
17704,
3083,
345,
11,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
9521,
13332,
309,
1140,
18,
28684,
18,
5332,
67,
856,
2668,
55,
2833,
67,
8876,
2534,
55,
11,
4672,
327,
1140,
18,
28684,
3292,
55,
2833,
67,
8876,
2534,
55,
3546,
1327,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
2941,
19,
2941,
71,
3083,
345,
18,
15680,
2941,
6134,
578,
521,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
2941,
19,
2941,
71,
3083,
345,
18,
2048,
11,
4672,
327,
296,
71,
3083,
345,
11,
1327,
1140,
18,
803,
18,
1808,
2668,
19,
13640,
19,
2941,
19,
2941,
3083,
345,
18,
27670,
18,
69,
11,
4672,
282,
468,
640,
88,
3149,
18,
327,
296,
3083,
345,
11,
469,
30,
468,
1220,
353,
8572,
11816,
2
] |
return S_OK(version)
|
return S_OK( version )
|
def getCurrentVersion(): """ Get a string corresponding to the current version of the DIRAC package and all the installed extension packages """ import DIRAC version = 'DIRAC '+DIRAC.version extensions = gConfig.getOption('/DIRAC/Extensions',[]) for e in extensions['Value']: try: exec "import %sDIRAC" % e version = "%sDIRAC " % e + eval('%sDIRAC.version' % e) +'; '+ version except ImportError: pass except AttributeError: pass return S_OK(version)
|
c6ede79fb040cacb57bf55f97b259927e3788236 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c6ede79fb040cacb57bf55f97b259927e3788236/Version.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5175,
1444,
13332,
3536,
968,
279,
533,
4656,
358,
326,
783,
1177,
434,
326,
18544,
2226,
2181,
471,
777,
326,
5876,
2710,
5907,
3536,
225,
1930,
18544,
2226,
1177,
273,
296,
4537,
2226,
15126,
4537,
2226,
18,
1589,
225,
4418,
273,
314,
809,
18,
588,
1895,
2668,
19,
4537,
2226,
19,
7513,
2187,
63,
5717,
364,
425,
316,
4418,
3292,
620,
3546,
30,
775,
30,
1196,
315,
5666,
738,
87,
4537,
2226,
6,
738,
425,
1177,
273,
2213,
87,
4537,
2226,
315,
738,
425,
397,
5302,
29909,
87,
4537,
2226,
18,
1589,
11,
738,
425,
13,
397,
13506,
15126,
1177,
1335,
11308,
30,
1342,
1335,
6394,
30,
1342,
225,
327,
348,
67,
3141,
12,
1177,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5175,
1444,
13332,
3536,
968,
279,
533,
4656,
358,
326,
783,
1177,
434,
326,
18544,
2226,
2181,
471,
777,
326,
5876,
2710,
5907,
3536,
225,
1930,
18544,
2226,
1177,
273,
296,
4537,
2226,
15126,
4537,
2226,
18,
1589,
225,
4418,
273,
314,
809,
18,
588,
1895,
2668,
19,
4537,
2226,
19,
7513,
2187,
63,
5717,
364,
425,
316,
4418,
3292,
620,
3546,
30,
775,
30,
1196,
315,
5666,
738,
87,
4537,
2226,
6,
738,
425,
1177,
273,
2213,
87,
4537,
2226,
315,
738,
425,
397,
5302,
29909,
87,
4537,
2226,
18,
1589,
11,
738,
425,
13,
397,
13506,
15126,
1177,
1335,
11308,
30,
1342,
1335,
6394,
30,
1342,
225,
327,
348,
67,
3141,
12,
1177,
262,
225,
2,
-100
] |
self.memory[name]['addresses'] = labels[name]
|
self.memory[name]['addresses'] = p_copy.deepcopy(labels[name])
|
def __init__(self, labels=None): ''' Create an instance of the translator and init with the list of the defined labels and their rules. ''' if labels is None: labels = {} self.recIDs = [] self.recID = 0 self.recID_index = 0 self.record = None self.memory = {} pattern = address_pattern expr = re.compile(pattern) for name in labels.keys(): self.memory[name] = {} self.memory[name]['object'] = None self.memory[name]['parent'] = '' self.memory[name]['children'] = [] self.memory[name]['addresses'] = labels[name] for name in self.memory: for i in range(len(self.memory[name]['addresses'])): address = self.memory[name]['addresses'][i] match = expr.match(address) if not match: print 'Invalid address: ', name, address else: parent_name = match.group('parent') if parent_name: if not self.memory.has_key(parent_name): print CFG_BIBFORMAT_BFX_ERROR_MESSAGES['ERR_BFX_NO_SUCH_FIELD'] % (parent_name) else: self.memory[name]['parent'] = parent_name #now make parent aware of children if not name in self.memory[parent_name]['children']: self.memory[parent_name]['children'].append(name) level = self.determine_level(parent_name) self.memory[name]['addresses'][i] = self.memory[name]['addresses'][i].replace(parent_name, '/'*level) #special case 'record' self.memory['record'] = {} self.memory['record']['object'] = None self.memory['record']['parent'] = '' self.memory['record']['children'] = []
|
ddaac5a9cf2e835494a7d5eeea88801877315930 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2763/ddaac5a9cf2e835494a7d5eeea88801877315930/bibformat_bfx_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3249,
33,
7036,
4672,
9163,
1788,
392,
791,
434,
326,
8333,
471,
1208,
598,
326,
666,
434,
326,
2553,
3249,
471,
3675,
2931,
18,
9163,
309,
3249,
353,
599,
30,
3249,
273,
2618,
365,
18,
3927,
5103,
273,
5378,
365,
18,
3927,
734,
273,
374,
365,
18,
3927,
734,
67,
1615,
273,
374,
365,
18,
3366,
273,
599,
365,
18,
7858,
273,
2618,
1936,
273,
1758,
67,
4951,
3065,
273,
283,
18,
11100,
12,
4951,
13,
364,
508,
316,
3249,
18,
2452,
13332,
365,
18,
7858,
63,
529,
65,
273,
2618,
365,
18,
7858,
63,
529,
23962,
1612,
3546,
273,
599,
365,
18,
7858,
63,
529,
23962,
2938,
3546,
273,
875,
365,
18,
7858,
63,
529,
23962,
5906,
3546,
273,
5378,
365,
18,
7858,
63,
529,
23962,
13277,
3546,
273,
293,
67,
3530,
18,
16589,
3530,
12,
5336,
63,
529,
5717,
364,
508,
316,
365,
18,
7858,
30,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
7858,
63,
529,
23962,
13277,
3546,
3719,
30,
1758,
273,
365,
18,
7858,
63,
529,
23962,
13277,
3546,
63,
77,
65,
845,
273,
3065,
18,
1916,
12,
2867,
13,
309,
486,
845,
30,
1172,
296,
1941,
1758,
30,
2265,
508,
16,
1758,
469,
30,
982,
67,
529,
273,
845,
18,
1655,
2668,
2938,
6134,
309,
982,
67,
529,
30,
309,
486,
365,
18,
7858,
18,
5332,
67,
856,
12,
2938,
67,
529,
4672,
1172,
7577,
67,
38,
13450,
7254,
67,
15259,
60,
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,
16,
3249,
33,
7036,
4672,
9163,
1788,
392,
791,
434,
326,
8333,
471,
1208,
598,
326,
666,
434,
326,
2553,
3249,
471,
3675,
2931,
18,
9163,
309,
3249,
353,
599,
30,
3249,
273,
2618,
365,
18,
3927,
5103,
273,
5378,
365,
18,
3927,
734,
273,
374,
365,
18,
3927,
734,
67,
1615,
273,
374,
365,
18,
3366,
273,
599,
365,
18,
7858,
273,
2618,
1936,
273,
1758,
67,
4951,
3065,
273,
283,
18,
11100,
12,
4951,
13,
364,
508,
316,
3249,
18,
2452,
13332,
365,
18,
7858,
63,
529,
65,
273,
2618,
365,
18,
7858,
63,
529,
23962,
1612,
3546,
273,
599,
365,
18,
7858,
63,
529,
23962,
2938,
3546,
273,
875,
365,
2
] |
call_null_m2m = True operator = 'in'
|
if operator in ['like','ilike','in','=']: call_null_m2m = False self.__exp[i] = ('id','=',0) else: call_null_m2m = True operator = 'in'
|
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
|
915f5b6db79579ac3f3c6a9d35c290b192f01ed3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/915f5b6db79579ac3f3c6a9d35c290b192f01ed3/expression.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
16,
652,
6315,
350,
22,
16,
3258,
16,
3726,
16,
652,
6315,
723,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
16,
652,
6315,
350,
22,
16,
3258,
16,
3726,
16,
652,
6315,
723,
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
] |
if len_nodelist != 2 and isinstance(result, GenExpr):
|
if len_nodelist != 2 and isinstance(result, GenExpr) \ and len(node) == 3 and node[2][0] == symbol.gen_for:
|
def com_call_function(self, primaryNode, nodelist): if nodelist[0] == token.RPAR: return CallFunc(primaryNode, [], lineno=extractLineNo(nodelist)) args = [] kw = 0 len_nodelist = len(nodelist) for i in range(1, len_nodelist, 2): node = nodelist[i] if node[0] == token.STAR or node[0] == token.DOUBLESTAR: break kw, result = self.com_argument(node, kw) if len_nodelist != 2 and isinstance(result, GenExpr): raise SyntaxError, 'generator expression needs parenthesis' args.append(result) else: # No broken by star arg, so skip the last one we processed. i = i + 1 if i < len_nodelist and nodelist[i][0] == token.COMMA: # need to accept an application that looks like "f(a, b,)" i = i + 1 star_node = dstar_node = None while i < len_nodelist: tok = nodelist[i] ch = nodelist[i+1] i = i + 3 if tok[0]==token.STAR: if star_node is not None: raise SyntaxError, 'already have the varargs indentifier' star_node = self.com_node(ch) elif tok[0]==token.DOUBLESTAR: if dstar_node is not None: raise SyntaxError, 'already have the kwargs indentifier' dstar_node = self.com_node(ch) else: raise SyntaxError, 'unknown node type: %s' % tok return CallFunc(primaryNode, args, star_node, dstar_node, lineno=extractLineNo(nodelist))
|
ce412c97336cb098d845d7cc82905e17d5c6f253 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ce412c97336cb098d845d7cc82905e17d5c6f253/transformer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
532,
67,
1991,
67,
915,
12,
2890,
16,
3354,
907,
16,
30068,
4672,
309,
30068,
63,
20,
65,
422,
1147,
18,
54,
2778,
30,
327,
3049,
2622,
12,
8258,
907,
16,
5378,
16,
7586,
33,
8004,
1670,
2279,
12,
82,
24221,
3719,
833,
273,
5378,
5323,
273,
374,
562,
67,
82,
24221,
273,
562,
12,
82,
24221,
13,
364,
277,
316,
1048,
12,
21,
16,
562,
67,
82,
24221,
16,
576,
4672,
756,
273,
30068,
63,
77,
65,
309,
756,
63,
20,
65,
422,
1147,
18,
20943,
578,
756,
63,
20,
65,
422,
1147,
18,
17088,
20943,
30,
898,
5323,
16,
563,
273,
365,
18,
832,
67,
3446,
12,
2159,
16,
5323,
13,
225,
309,
562,
67,
82,
24221,
480,
576,
471,
1549,
12,
2088,
16,
10938,
4742,
13,
521,
471,
562,
12,
2159,
13,
422,
890,
471,
756,
63,
22,
6362,
20,
65,
422,
3273,
18,
4507,
67,
1884,
30,
282,
1002,
18453,
16,
296,
8812,
2652,
4260,
22311,
11,
833,
18,
6923,
12,
2088,
13,
469,
30,
468,
2631,
12933,
635,
10443,
1501,
16,
1427,
2488,
326,
1142,
1245,
732,
5204,
18,
277,
273,
277,
397,
404,
309,
277,
411,
562,
67,
82,
24221,
471,
30068,
63,
77,
6362,
20,
65,
422,
1147,
18,
4208,
5535,
30,
468,
1608,
358,
2791,
392,
2521,
716,
10192,
3007,
315,
74,
12,
69,
16,
324,
16,
2225,
277,
273,
277,
397,
404,
10443,
67,
2159,
273,
3046,
297,
67,
2159,
273,
599,
1323,
277,
411,
562,
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,
532,
67,
1991,
67,
915,
12,
2890,
16,
3354,
907,
16,
30068,
4672,
309,
30068,
63,
20,
65,
422,
1147,
18,
54,
2778,
30,
327,
3049,
2622,
12,
8258,
907,
16,
5378,
16,
7586,
33,
8004,
1670,
2279,
12,
82,
24221,
3719,
833,
273,
5378,
5323,
273,
374,
562,
67,
82,
24221,
273,
562,
12,
82,
24221,
13,
364,
277,
316,
1048,
12,
21,
16,
562,
67,
82,
24221,
16,
576,
4672,
756,
273,
30068,
63,
77,
65,
309,
756,
63,
20,
65,
422,
1147,
18,
20943,
578,
756,
63,
20,
65,
422,
1147,
18,
17088,
20943,
30,
898,
5323,
16,
563,
273,
365,
18,
832,
67,
3446,
12,
2159,
16,
5323,
13,
225,
309,
562,
67,
82,
2
] |
if (connection is not None) and (self._connection is not connection):
|
if (connection is not None) and \ (getattr(self, '_connection', None) is not connection):
|
def _init(self, id, connection=None, selectResults=None): assert id is not None # This function gets called only when the object is # created, unlike __init__ which would be called # anytime the object was returned from cache. self.id = id self._SO_writeLock = threading.Lock()
|
28669aac41fd4760445adab995c702182ae16c6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6718/28669aac41fd4760445adab995c702182ae16c6f/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12,
2890,
16,
612,
16,
1459,
33,
7036,
16,
2027,
3447,
33,
7036,
4672,
1815,
612,
353,
486,
599,
468,
1220,
445,
5571,
2566,
1338,
1347,
326,
733,
353,
468,
2522,
16,
640,
5625,
1001,
2738,
972,
1492,
4102,
506,
2566,
468,
1281,
957,
326,
733,
1703,
2106,
628,
1247,
18,
365,
18,
350,
273,
612,
365,
6315,
3584,
67,
2626,
2531,
273,
17254,
18,
2531,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12,
2890,
16,
612,
16,
1459,
33,
7036,
16,
2027,
3447,
33,
7036,
4672,
1815,
612,
353,
486,
599,
468,
1220,
445,
5571,
2566,
1338,
1347,
326,
733,
353,
468,
2522,
16,
640,
5625,
1001,
2738,
972,
1492,
4102,
506,
2566,
468,
1281,
957,
326,
733,
1703,
2106,
628,
1247,
18,
365,
18,
350,
273,
612,
365,
6315,
3584,
67,
2626,
2531,
273,
17254,
18,
2531,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.set_full_selection(x, y, direction)
|
self._set_full_selection(x, y, direction)
|
def select(x, y, direction): """Select the word at (x, y, direction) in the grid.""" self.tools["clue"].settings["use_scrolling"] = False self.set_full_selection(x, y, direction) self.tools["clue"].settings["use_scrolling"] = True
|
a0e2580f817835eebfb69dab038a155847a764b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6427/a0e2580f817835eebfb69dab038a155847a764b4/editor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
92,
16,
677,
16,
4068,
4672,
3536,
3391,
326,
2076,
622,
261,
92,
16,
677,
16,
4068,
13,
316,
326,
3068,
12123,
365,
18,
6642,
9614,
830,
344,
6,
8009,
4272,
9614,
1202,
67,
1017,
15742,
11929,
273,
1083,
365,
6315,
542,
67,
2854,
67,
10705,
12,
92,
16,
677,
16,
4068,
13,
365,
18,
6642,
9614,
830,
344,
6,
8009,
4272,
9614,
1202,
67,
1017,
15742,
11929,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
542,
67,
2854,
67,
10705,
12,
92,
16,
677,
16,
4068,
13,
365,
18,
6642,
9614,
830,
344,
6,
8009,
4272,
9614,
1202,
67,
1017,
15742,
11929,
273,
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
] |
self.directories[path] = self.DirStore.append(self.directories[parent], [path.split("\\")[-1], path ] )
|
self.directories[path] = self.DirStore.append(self.directories[parent], [self.decode(path.split("\\")[-1]), path ] )
|
def BrowseGetDirs(self): sorted = [] for dirs in self.shares.keys(): sorted.append(dirs) sorted.sort() children = [] directory = "" self.directories = {} if sorted != []: for item in sorted: s = item.split("\\") path = ''
|
e0fa59031b16058b4c91fb570c5318399637c6e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/e0fa59031b16058b4c91fb570c5318399637c6e1/userbrowse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
12481,
967,
9872,
12,
2890,
4672,
3115,
273,
5378,
364,
7717,
316,
365,
18,
30720,
18,
2452,
13332,
3115,
18,
6923,
12,
8291,
13,
3115,
18,
3804,
1435,
2325,
273,
5378,
1867,
273,
1408,
365,
18,
15121,
273,
2618,
309,
3115,
480,
5378,
30,
364,
761,
316,
3115,
30,
272,
273,
761,
18,
4939,
2932,
1695,
7923,
589,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
12481,
967,
9872,
12,
2890,
4672,
3115,
273,
5378,
364,
7717,
316,
365,
18,
30720,
18,
2452,
13332,
3115,
18,
6923,
12,
8291,
13,
3115,
18,
3804,
1435,
2325,
273,
5378,
1867,
273,
1408,
365,
18,
15121,
273,
2618,
309,
3115,
480,
5378,
30,
364,
761,
316,
3115,
30,
272,
273,
761,
18,
4939,
2932,
1695,
7923,
589,
273,
875,
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
] |
ostream.close()
|
os.remove(path)
|
def test_OFS_ObjectManager__importObjectFromFile_xml(self): from OFS.DTMLMethod import DTMLMethod from OFS.Folder import Folder from OFS.XMLExportImport import exportXML
|
4630a5bcfe9d964a5e40a9bb146aabf33974b639 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4630a5bcfe9d964a5e40a9bb146aabf33974b639/test_XMLExportImport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3932,
55,
67,
921,
1318,
972,
5666,
921,
13087,
67,
2902,
12,
2890,
4672,
628,
531,
4931,
18,
40,
2838,
1305,
1930,
463,
2838,
1305,
628,
531,
4931,
18,
3899,
1930,
12623,
628,
531,
4931,
18,
4201,
6144,
5010,
1930,
3359,
4201,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3932,
55,
67,
921,
1318,
972,
5666,
921,
13087,
67,
2902,
12,
2890,
4672,
628,
531,
4931,
18,
40,
2838,
1305,
1930,
463,
2838,
1305,
628,
531,
4931,
18,
3899,
1930,
12623,
628,
531,
4931,
18,
4201,
6144,
5010,
1930,
3359,
4201,
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
] |
repr += 'EXPOSURE_TIME %f' % self._header['exposure_time']
|
repr += 'EXPOSURE TIME %f\n' % self._header['exposure_time']
|
def __repr__(self): if self.get_wavelength(): repr = 'SWEEP %s [WAVELENGTH %s]\n' % \ (self._name, self.get_wavelength().get_name()) else: repr = 'SWEEP %s [WAVELENGTH UNDEFINED]\n' % self._name
|
2f12923c787c18882ca16449592c783d529fc6a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/2f12923c787c18882ca16449592c783d529fc6a4/XSweep.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
309,
365,
18,
588,
67,
91,
16775,
13332,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
738,
87,
13944,
82,
11,
738,
521,
261,
2890,
6315,
529,
16,
365,
18,
588,
67,
91,
16775,
7675,
588,
67,
529,
10756,
469,
30,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
21919,
13944,
82,
11,
738,
365,
6315,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
309,
365,
18,
588,
67,
91,
16775,
13332,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
738,
87,
13944,
82,
11,
738,
521,
261,
2890,
6315,
529,
16,
365,
18,
588,
67,
91,
16775,
7675,
588,
67,
529,
10756,
469,
30,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
21919,
13944,
82,
11,
738,
365,
6315,
529,
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
] |
return self._idType(value)
|
return cls._idType(value)
|
def coerceID(cls, value): if isinstance(value, cls): return value.id else: return self._idType(value)
|
c4a765e7ce8149c0a5fca9adad68beced46bb586 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/c4a765e7ce8149c0a5fca9adad68beced46bb586/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12270,
734,
12,
6429,
16,
460,
4672,
309,
1549,
12,
1132,
16,
2028,
4672,
327,
460,
18,
350,
469,
30,
327,
365,
6315,
350,
559,
12,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12270,
734,
12,
6429,
16,
460,
4672,
309,
1549,
12,
1132,
16,
2028,
4672,
327,
460,
18,
350,
469,
30,
327,
365,
6315,
350,
559,
12,
1132,
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
] |
cty.c_int, [cty.POINTER(FL_IMAGE), cty.POINTER(FLIMAGE_TEXT)],
|
cty.c_int, [cty.POINTER(FL_IMAGE), cty.POINTER(FLIMAGE_TEXT)],
|
def flimage_add_text(pImage, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11): """ flimage_add_text(pImage, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) -> num. """ retval = _flimage_add_text(pImage, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) return retval
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
2499,
4672,
3536,
1183,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
2499,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
2499,
13,
327,
5221,
282,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
2499,
4672,
3536,
1183,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
2499,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
2
] |
elif axisname=='y':
|
elif axisname in 'yr':
|
def addmask(mask,newmask): if mask is None: mask = numpy.empty(U.shape,dtype=numpy.bool) mask.fill(False) return numpy.logical_or(mask,newmask)
|
271de62c2f77df529d6498975d1b72bf9e8c1d34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/271de62c2f77df529d6498975d1b72bf9e8c1d34/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4455,
12,
4455,
16,
2704,
4455,
4672,
309,
3066,
353,
599,
30,
3066,
273,
3972,
18,
5531,
12,
57,
18,
4867,
16,
8972,
33,
15974,
18,
6430,
13,
3066,
18,
5935,
12,
8381,
13,
327,
3972,
18,
20300,
67,
280,
12,
4455,
16,
2704,
4455,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4455,
12,
4455,
16,
2704,
4455,
4672,
309,
3066,
353,
599,
30,
3066,
273,
3972,
18,
5531,
12,
57,
18,
4867,
16,
8972,
33,
15974,
18,
6430,
13,
3066,
18,
5935,
12,
8381,
13,
327,
3972,
18,
20300,
67,
280,
12,
4455,
16,
2704,
4455,
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
] |
p = gst.Pad("blah", gst.PAD_SRC)
|
p = gst.Pad("blah", gst.PAD_SINK)
|
def testStructureChangeMessage(self): if hasattr(gst, 'message_new_structure_change'): p = gst.Pad("blah", gst.PAD_SRC) m = gst.message_new_structure_change(p, gst.STRUCTURE_CHANGE_TYPE_PAD_LINK, self.element, True)
|
b0898556bb1e2cdcfe30202e2fa2a61ce72cda83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1020/b0898556bb1e2cdcfe30202e2fa2a61ce72cda83/test_message.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6999,
3043,
1079,
12,
2890,
4672,
309,
3859,
12,
75,
334,
16,
296,
2150,
67,
2704,
67,
7627,
67,
3427,
11,
4672,
293,
273,
314,
334,
18,
14878,
2932,
3083,
9795,
3113,
314,
334,
18,
17962,
67,
55,
8476,
13,
312,
273,
314,
334,
18,
2150,
67,
2704,
67,
7627,
67,
3427,
12,
84,
16,
314,
334,
18,
13915,
4830,
67,
14473,
67,
2399,
67,
17962,
67,
10554,
16,
365,
18,
2956,
16,
1053,
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,
1842,
6999,
3043,
1079,
12,
2890,
4672,
309,
3859,
12,
75,
334,
16,
296,
2150,
67,
2704,
67,
7627,
67,
3427,
11,
4672,
293,
273,
314,
334,
18,
14878,
2932,
3083,
9795,
3113,
314,
334,
18,
17962,
67,
55,
8476,
13,
312,
273,
314,
334,
18,
2150,
67,
2704,
67,
7627,
67,
3427,
12,
84,
16,
314,
334,
18,
13915,
4830,
67,
14473,
67,
2399,
67,
17962,
67,
10554,
16,
365,
18,
2956,
16,
1053,
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
] |
pgq.SerialConsumer.__init__(self, 'londiste', 'provider_db', 'subscriber_db', args) self.dst_schema = "londiste"
|
pgq.SetConsumer.__init__(self, 'londiste', args)
|
def __init__(self, args): pgq.SerialConsumer.__init__(self, 'londiste', 'provider_db', 'subscriber_db', args)
|
3ddea7228bfafc5a18de736c1f98ba769e1d37af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14597/3ddea7228bfafc5a18de736c1f98ba769e1d37af/playback.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
833,
4672,
7184,
85,
18,
6342,
5869,
16186,
2738,
972,
12,
2890,
16,
296,
80,
1434,
376,
73,
2187,
296,
6778,
67,
1966,
2187,
296,
26410,
67,
1966,
2187,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
833,
4672,
7184,
85,
18,
6342,
5869,
16186,
2738,
972,
12,
2890,
16,
296,
80,
1434,
376,
73,
2187,
296,
6778,
67,
1966,
2187,
296,
26410,
67,
1966,
2187,
833,
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
] |
if self.classTreatment == 3:
|
if self.classTreatment == 3 and self.data.domain.classVar and self.data.domain.classVar.varType == orange.VarTypes.Discrete:
|
def sendData(self): if self.data: conzer = orange.DomainContinuizer() conzer.zeroBased = self.zeroBased conzer.continuousTreatment = self.continuousTreatment conzer.multinomialTreatment = self.multinomialTreats[self.multinomialTreatment][1] if self.classTreatment == 3: domain = conzer(self.data, 0, self.targetValue) else: conzer.classTreatment = self.classTreats[self.classTreatment][1] domain = conzer(self.data) data = orange.ExampleTable(domain, self.data) self.send("Classified Examples", data) self.dataChanged = False
|
04cbf439d12d5d7af73d3d52e1636eb90c5309d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/04cbf439d12d5d7af73d3d52e1636eb90c5309d3/OWContinuize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
751,
12,
2890,
4672,
309,
365,
18,
892,
30,
356,
24355,
273,
578,
726,
18,
3748,
660,
6860,
1824,
1435,
356,
24355,
18,
7124,
9802,
273,
365,
18,
7124,
9802,
356,
24355,
18,
31056,
56,
6150,
475,
273,
365,
18,
31056,
56,
6150,
475,
356,
24355,
18,
5421,
267,
11496,
56,
6150,
475,
273,
365,
18,
5421,
267,
11496,
56,
266,
2323,
63,
2890,
18,
5421,
267,
11496,
56,
6150,
475,
6362,
21,
65,
309,
365,
18,
1106,
56,
6150,
475,
422,
890,
471,
365,
18,
892,
18,
4308,
18,
1106,
1537,
471,
365,
18,
892,
18,
4308,
18,
1106,
1537,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
1669,
6883,
30,
2461,
273,
356,
24355,
12,
2890,
18,
892,
16,
374,
16,
365,
18,
3299,
620,
13,
469,
30,
356,
24355,
18,
1106,
56,
6150,
475,
273,
365,
18,
1106,
56,
266,
2323,
63,
2890,
18,
1106,
56,
6150,
475,
6362,
21,
65,
2461,
273,
356,
24355,
12,
2890,
18,
892,
13,
501,
273,
578,
726,
18,
10908,
1388,
12,
4308,
16,
365,
18,
892,
13,
365,
18,
4661,
2932,
797,
939,
19830,
3113,
501,
13,
365,
18,
892,
5033,
273,
1083,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
751,
12,
2890,
4672,
309,
365,
18,
892,
30,
356,
24355,
273,
578,
726,
18,
3748,
660,
6860,
1824,
1435,
356,
24355,
18,
7124,
9802,
273,
365,
18,
7124,
9802,
356,
24355,
18,
31056,
56,
6150,
475,
273,
365,
18,
31056,
56,
6150,
475,
356,
24355,
18,
5421,
267,
11496,
56,
6150,
475,
273,
365,
18,
5421,
267,
11496,
56,
266,
2323,
63,
2890,
18,
5421,
267,
11496,
56,
6150,
475,
6362,
21,
65,
309,
365,
18,
1106,
56,
6150,
475,
422,
890,
471,
365,
18,
892,
18,
4308,
18,
1106,
1537,
471,
365,
18,
892,
18,
4308,
18,
1106,
1537,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
1669,
6883,
30,
2461,
273,
356,
2
] |
para = paragraph_stream(stream, 'p', {}, parameters.getSampleStyleSheet())
|
para = paragraph_stream(stream, 'p', {}, parameters)
|
def test_formatting(self): parameters = Param() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, parameters.getSampleStyleSheet()) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>')
|
e3c78fc65729ed0a33412c3127995be39d356e50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/e3c78fc65729ed0a33412c3127995be39d356e50/test_rml2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
1472,
273,
3014,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
2678,
12,
892,
13,
1407,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
1472,
273,
3014,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
2678,
12,
892,
13,
1407,
18,
4285,
1435,
12602,
273,
10190,
67,
3256,
12,
3256,
16,
296,
84,
2187,
10615,
1472,
13,
365,
18,
11231,
5812,
12,
25072,
18,
955,
16,
2368,
25072,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
25072,
1870,
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
] |
try: state = self._do_next() except self.CommandMessage:
|
state = iterator.next() if isinstance(state, self.CommandMessage):
|
def _do_control(self, *args, **kargs): with self.running: self.threadid = thread.get_ident()
|
243d70ac3a0626799c7d7ac16a74196bb9551e92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/243d70ac3a0626799c7d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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
7098,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
598,
365,
18,
8704,
30,
365,
18,
5930,
350,
273,
2650,
18,
588,
67,
6392,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tmp_keys = keys.copy()
|
tmp_keys = copy.deepcopy(keys)
|
def check_keybinding_conflicts(keys): """ check for conflicting keybindings. we have to check twice, because keys for setting picks and magnitudes are allowed to interfere... """ for ignored_key_list in [['setMagMin', 'setMagMax', 'delMagMinMax'], ['setPick', 'setPickError', 'delPick']]: tmp_keys = keys.copy() tmp_keys2 = {} for ignored_key in ignored_key_list: tmp_keys.pop(ignored_key) while tmp_keys: key, item = tmp_keys.popitem() if isinstance(item, dict): while item: k, v = item.popitem() tmp_keys2["_".join([key, str(v)])] = k else: tmp_keys2[key] = item if len(set(tmp_keys2.keys())) != len(set(tmp_keys2.values())): err = "Interfering keybindings. Please check variable KEYS" raise Exception(err)
|
b72086f0f933ddd2b1def59c702dcd322b918392 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b72086f0f933ddd2b1def59c702dcd322b918392/obspyck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
856,
7374,
67,
20340,
87,
12,
2452,
4672,
3536,
866,
364,
21462,
498,
15863,
18,
732,
1240,
358,
866,
13605,
16,
2724,
1311,
364,
3637,
6002,
87,
471,
28160,
24751,
854,
2935,
358,
1554,
586,
73,
2777,
3536,
364,
5455,
67,
856,
67,
1098,
316,
306,
3292,
542,
11372,
2930,
2187,
296,
542,
11372,
2747,
2187,
296,
3771,
11372,
17454,
17337,
10228,
542,
17968,
2187,
296,
542,
17968,
668,
2187,
296,
3771,
17968,
3546,
14542,
1853,
67,
2452,
273,
1610,
18,
16589,
3530,
12,
2452,
13,
1853,
67,
2452,
22,
273,
2618,
364,
5455,
67,
856,
316,
5455,
67,
856,
67,
1098,
30,
1853,
67,
2452,
18,
5120,
12,
24055,
67,
856,
13,
1323,
1853,
67,
2452,
30,
498,
16,
761,
273,
1853,
67,
2452,
18,
5120,
1726,
1435,
309,
1549,
12,
1726,
16,
2065,
4672,
1323,
761,
30,
417,
16,
331,
273,
761,
18,
5120,
1726,
1435,
1853,
67,
2452,
22,
9614,
9548,
18,
5701,
3816,
856,
16,
609,
12,
90,
13,
5717,
65,
273,
417,
469,
30,
1853,
67,
2452,
22,
63,
856,
65,
273,
761,
309,
562,
12,
542,
12,
5645,
67,
2452,
22,
18,
2452,
1435,
3719,
480,
562,
12,
542,
12,
5645,
67,
2452,
22,
18,
2372,
1435,
3719,
30,
393,
273,
315,
2465,
586,
310,
498,
15863,
18,
7801,
866,
2190,
24546,
6,
1002,
1185,
12,
370,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
856,
7374,
67,
20340,
87,
12,
2452,
4672,
3536,
866,
364,
21462,
498,
15863,
18,
732,
1240,
358,
866,
13605,
16,
2724,
1311,
364,
3637,
6002,
87,
471,
28160,
24751,
854,
2935,
358,
1554,
586,
73,
2777,
3536,
364,
5455,
67,
856,
67,
1098,
316,
306,
3292,
542,
11372,
2930,
2187,
296,
542,
11372,
2747,
2187,
296,
3771,
11372,
17454,
17337,
10228,
542,
17968,
2187,
296,
542,
17968,
668,
2187,
296,
3771,
17968,
3546,
14542,
1853,
67,
2452,
273,
1610,
18,
16589,
3530,
12,
2452,
13,
1853,
67,
2452,
22,
273,
2618,
364,
5455,
67,
856,
316,
5455,
67,
856,
67,
1098,
30,
1853,
67,
2452,
18,
5120,
12,
24055,
67,
856,
13,
1323,
1853,
67,
2
] |
self.fileList.SetColumnWidth(1, wx.LIST_AUTOSIZE) self.fileList.SetColumnWidth(0, self.fileList.GetClientSize()[0]-self.fileList.GetColumnWidth(1)-15) self.fileList.ScrollList(-100, 0)
|
size = self.fileList.GetClientSize() if size[0] > 50 and size[1] > 50: self.fileList.SetColumnWidth(1, wx.LIST_AUTOSIZE) self.fileList.SetColumnWidth(0, self.fileList.GetClientSize()[0]-self.fileList.GetColumnWidth(1)-15) self.fileList.ScrollList(-100, 0)
|
def onListResize(self, event): self.fileList.SetColumnWidth(1, wx.LIST_AUTOSIZE) self.fileList.SetColumnWidth(0, self.fileList.GetClientSize()[0]-self.fileList.GetColumnWidth(1)-15) self.fileList.ScrollList(-100, 0) # Removes HSCROLLBAR if event: event.Skip()
|
e29f232f8f59fe410716e6d7a09b9fb08d7e8938 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/e29f232f8f59fe410716e6d7a09b9fb08d7e8938/ContentFrontPanel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
682,
12182,
12,
2890,
16,
871,
4672,
963,
273,
365,
18,
768,
682,
18,
967,
1227,
1225,
1435,
309,
963,
63,
20,
65,
405,
6437,
471,
963,
63,
21,
65,
405,
6437,
30,
365,
18,
768,
682,
18,
694,
1494,
2384,
12,
21,
16,
7075,
18,
7085,
67,
18909,
4574,
13,
365,
18,
768,
682,
18,
694,
1494,
2384,
12,
20,
16,
365,
18,
768,
682,
18,
967,
1227,
1225,
1435,
63,
20,
65,
17,
2890,
18,
768,
682,
18,
967,
1494,
2384,
12,
21,
24950,
3600,
13,
365,
18,
768,
682,
18,
6806,
682,
19236,
6625,
16,
374,
13,
468,
20284,
670,
2312,
14555,
21908,
309,
871,
30,
871,
18,
6368,
1435,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
682,
12182,
12,
2890,
16,
871,
4672,
963,
273,
365,
18,
768,
682,
18,
967,
1227,
1225,
1435,
309,
963,
63,
20,
65,
405,
6437,
471,
963,
63,
21,
65,
405,
6437,
30,
365,
18,
768,
682,
18,
694,
1494,
2384,
12,
21,
16,
7075,
18,
7085,
67,
18909,
4574,
13,
365,
18,
768,
682,
18,
694,
1494,
2384,
12,
20,
16,
365,
18,
768,
682,
18,
967,
1227,
1225,
1435,
63,
20,
65,
17,
2890,
18,
768,
682,
18,
967,
1494,
2384,
12,
21,
24950,
3600,
13,
365,
18,
768,
682,
18,
6806,
682,
19236,
6625,
16,
374,
13,
468,
20284,
670,
2312,
14555,
21908,
309,
871,
30,
871,
18,
6368,
1435,
225,
2,
-100,
-100,
-100
] |
self.req.connect("task-added", self.on_task_added) self.req.connect("task-deleted", self.on_task_deleted)
|
def _init_signal_connections(self): SIGNAL_CONNECTIONS_DIC = { "on_add_task": self.on_add_task, "on_edit_active_task": self.on_edit_active_task, "on_edit_done_task": self.on_edit_done_task, "on_delete_task": self.on_delete_tasks, "on_add_new_tag": self.on_add_new_tag, "on_mark_as_done": self.on_mark_as_done, "on_mark_as_started": self.on_mark_as_started, "on_schedule_for_tomorrow": self.on_schedule_for_tomorrow, "on_schedule_for_next_week": self.on_schedule_for_next_week, "on_schedule_for_next_month": self.on_schedule_for_next_month, "on_schedule_for_next_year": self.on_schedule_for_next_year, "on_dismiss_task": self.on_dismiss_task, "on_move": self.on_move, "on_size_allocate": self.on_size_allocate, "gtk_main_quit": self.on_close, "on_addtag_confirm": self.on_addtag_confirm, "on_addtag_cancel": lambda x: x.hide, "on_tag_entry_key_press_event": self.on_tag_entry_key_press_event, "on_add_subtask": self.on_add_subtask, "on_colorchooser_activate": self.on_colorchooser_activate, "on_resetcolor_activate": self.on_resetcolor_activate, "on_tagcontext_deactivate": self.on_tagcontext_deactivate, "on_workview_toggled": self.on_workview_toggled, "on_view_workview_toggled": self.on_workview_toggled, "on_view_closed_toggled": self.on_closed_toggled, "on_view_sidebar_toggled": self.on_sidebar_toggled, "on_bg_color_toggled": self.on_bg_color_toggled, "on_quickadd_field_activate": self.on_quickadd_activate, "on_quickadd_button_activate": self.on_quickadd_activate, "on_view_quickadd_toggled": self.on_toggle_quickadd, "on_view_toolbar_toggled": self.on_toolbar_toggled, "on_about_clicked": self.on_about_clicked, "on_about_delete": self.on_about_close, "on_about_close": self.on_about_close, "on_documentation_clicked": self.on_documentation_clicked, "on_nonworkviewtag_toggled": self.on_nonworkviewtag_toggled, "on_preferences_activate": self.open_preferences, "on_edit_backends_activate": self.open_edit_backends, } self.builder.connect_signals(SIGNAL_CONNECTIONS_DIC)
|
1bfa329f61ae82d2af78d8ff0bc35dc1017cd07d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/1bfa329f61ae82d2af78d8ff0bc35dc1017cd07d/browser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
10420,
67,
13313,
12,
2890,
4672,
12057,
1013,
67,
15461,
55,
67,
2565,
39,
273,
288,
315,
265,
67,
1289,
67,
4146,
6877,
365,
18,
265,
67,
1289,
67,
4146,
16,
315,
265,
67,
4619,
67,
3535,
67,
4146,
6877,
365,
18,
265,
67,
4619,
67,
3535,
67,
4146,
16,
315,
265,
67,
4619,
67,
8734,
67,
4146,
6877,
365,
18,
265,
67,
4619,
67,
8734,
67,
4146,
16,
315,
265,
67,
3733,
67,
4146,
6877,
365,
18,
265,
67,
3733,
67,
9416,
16,
315,
265,
67,
1289,
67,
2704,
67,
2692,
6877,
365,
18,
265,
67,
1289,
67,
2704,
67,
2692,
16,
315,
265,
67,
3355,
67,
345,
67,
8734,
6877,
365,
18,
265,
67,
3355,
67,
345,
67,
8734,
16,
315,
265,
67,
3355,
67,
345,
67,
14561,
6877,
365,
18,
265,
67,
3355,
67,
345,
67,
14561,
16,
315,
265,
67,
10676,
67,
1884,
67,
3599,
15318,
6877,
365,
18,
265,
67,
10676,
67,
1884,
67,
3599,
15318,
16,
315,
265,
67,
10676,
67,
1884,
67,
4285,
67,
10741,
6877,
365,
18,
265,
67,
10676,
67,
1884,
67,
4285,
67,
10741,
16,
315,
265,
67,
10676,
67,
1884,
67,
4285,
67,
7496,
6877,
365,
18,
265,
67,
10676,
67,
1884,
67,
4285,
67,
7496,
16,
315,
265,
67,
10676,
67,
1884,
67,
4285,
67,
6874,
6877,
365,
18,
265,
67,
10676,
67,
1884,
67,
4285,
67,
6874,
16,
315,
265,
67,
2251,
3105,
67,
4146,
6877,
365,
18,
265,
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,
389,
2738,
67,
10420,
67,
13313,
12,
2890,
4672,
12057,
1013,
67,
15461,
55,
67,
2565,
39,
273,
288,
315,
265,
67,
1289,
67,
4146,
6877,
365,
18,
265,
67,
1289,
67,
4146,
16,
315,
265,
67,
4619,
67,
3535,
67,
4146,
6877,
365,
18,
265,
67,
4619,
67,
3535,
67,
4146,
16,
315,
265,
67,
4619,
67,
8734,
67,
4146,
6877,
365,
18,
265,
67,
4619,
67,
8734,
67,
4146,
16,
315,
265,
67,
3733,
67,
4146,
6877,
365,
18,
265,
67,
3733,
67,
9416,
16,
315,
265,
67,
1289,
67,
2704,
67,
2692,
6877,
365,
18,
265,
67,
1289,
67,
2704,
67,
2692,
16,
315,
265,
67,
3355,
67,
345,
67,
8734,
6877,
365,
18,
265,
2
] |
|
return int(commands.getoutput(cmd)) / 2
|
return int(commands.getoutput(cmd))
|
def get_vfs_count(self): """ Get VFs count number according to lspci. """ cmd = "lspci | grep 'Virtual Function' | wc -l" # For each VF we'll see 2 prints of 'Virtual Function', so let's # divide the result per 2 return int(commands.getoutput(cmd)) / 2
|
f48d661c8572856109c36ae8c58b469c150a19a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/f48d661c8572856109c36ae8c58b469c150a19a6/kvm_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
90,
2556,
67,
1883,
12,
2890,
4672,
3536,
968,
776,
12432,
1056,
1300,
4888,
358,
328,
1752,
8450,
18,
3536,
1797,
273,
315,
80,
1752,
8450,
571,
23366,
296,
6466,
4284,
11,
571,
14310,
300,
80,
6,
468,
2457,
1517,
776,
42,
732,
5614,
2621,
576,
14971,
434,
296,
6466,
4284,
2187,
1427,
2231,
1807,
468,
12326,
326,
563,
1534,
576,
327,
509,
12,
7847,
18,
588,
2844,
12,
4172,
3719,
342,
576,
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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776,
42,
732,
5614,
2621,
576,
14971,
434,
296,
6466,
4284,
2187,
1427,
2231,
1807,
468,
12326,
326,
563,
1534,
576,
327,
509,
12,
7847,
18,
588,
2844,
12,
4172,
3719,
342,
576,
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
] |
print "Command: %s" % EscapeCommand(output.command)
|
def HasRun(self, output): if output.UnexpectedOutput(): self.ClearLine(self.last_status_length) self.PrintFailureHeader(output.test) print "Command: %s" % EscapeCommand(output.command) stdout = output.output.stdout.strip() if len(stdout): print self.templates['stdout'] % stdout stderr = output.output.stderr.strip() if len(stderr): print self.templates['stderr'] % stderr
|
839d4f6200ccca94501a3fb96cabfbcd4e29d63a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6651/839d4f6200ccca94501a3fb96cabfbcd4e29d63a/test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4393,
1997,
12,
2890,
16,
876,
4672,
309,
876,
18,
7762,
1447,
13332,
365,
18,
9094,
1670,
12,
2890,
18,
2722,
67,
2327,
67,
2469,
13,
365,
18,
5108,
5247,
1864,
12,
2844,
18,
3813,
13,
3909,
273,
876,
18,
2844,
18,
10283,
18,
6406,
1435,
309,
562,
12,
10283,
4672,
1172,
365,
18,
8502,
3292,
10283,
3546,
738,
3909,
4514,
273,
876,
18,
2844,
18,
11241,
18,
6406,
1435,
309,
562,
12,
11241,
4672,
1172,
365,
18,
8502,
3292,
11241,
3546,
738,
4514,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4393,
1997,
12,
2890,
16,
876,
4672,
309,
876,
18,
7762,
1447,
13332,
365,
18,
9094,
1670,
12,
2890,
18,
2722,
67,
2327,
67,
2469,
13,
365,
18,
5108,
5247,
1864,
12,
2844,
18,
3813,
13,
3909,
273,
876,
18,
2844,
18,
10283,
18,
6406,
1435,
309,
562,
12,
10283,
4672,
1172,
365,
18,
8502,
3292,
10283,
3546,
738,
3909,
4514,
273,
876,
18,
2844,
18,
11241,
18,
6406,
1435,
309,
562,
12,
11241,
4672,
1172,
365,
18,
8502,
3292,
11241,
3546,
738,
4514,
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
] |
|
dstfinfo = dstfss.GetFInfo() dstfinfo.Flags = dstfinfo.Flags|0x8000 dstfss.SetFInfo(dstfinfo) def main(): dir, ok = macfs.GetDirectory() if not ok: sys.exit(0) os.chdir(dir.as_pathname())
|
if __name__ == '__main__': run(1)
|
def mkalias(src, dst): """Create a finder alias""" srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) alias = srcfss.NewAlias() srcfinfo = srcfss.GetFInfo() Res.FSpCreateResFile(dstfss, srcfinfo.Creator, srcfinfo.Type, -1) h = Res.FSpOpenResFile(dstfss, 3) resource = Res.Resource(alias.data) resource.AddResource('alis', 0, '') Res.CloseResFile(h) dstfinfo = dstfss.GetFInfo() dstfinfo.Flags = dstfinfo.Flags|0x8000 # Alias flag dstfss.SetFInfo(dstfinfo)
|
d8eb8a79456555385185782df350c39233104341 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d8eb8a79456555385185782df350c39233104341/fixfiletypes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
4930,
12,
4816,
16,
3046,
4672,
3536,
1684,
279,
7532,
2308,
8395,
1705,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
4816,
13,
3046,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
11057,
13,
2308,
273,
1705,
74,
1049,
18,
1908,
2936,
1435,
1705,
926,
617,
273,
1705,
74,
1049,
18,
967,
42,
966,
1435,
225,
1124,
18,
42,
3389,
1684,
607,
812,
12,
11057,
74,
1049,
16,
1705,
926,
617,
18,
10636,
16,
1705,
926,
617,
18,
559,
16,
300,
21,
13,
366,
273,
1124,
18,
42,
3389,
3678,
607,
812,
12,
11057,
74,
1049,
16,
890,
13,
1058,
273,
1124,
18,
1420,
12,
4930,
18,
892,
13,
1058,
18,
986,
1420,
2668,
287,
291,
2187,
374,
16,
28707,
1124,
18,
4605,
607,
812,
12,
76,
13,
225,
3046,
926,
617,
273,
3046,
74,
1049,
18,
967,
42,
966,
1435,
3046,
926,
617,
18,
5094,
273,
3046,
926,
617,
18,
5094,
96,
20,
92,
26021,
565,
468,
11873,
2982,
3046,
74,
1049,
18,
694,
42,
966,
12,
11057,
926,
617,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
4930,
12,
4816,
16,
3046,
4672,
3536,
1684,
279,
7532,
2308,
8395,
1705,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
4816,
13,
3046,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
11057,
13,
2308,
273,
1705,
74,
1049,
18,
1908,
2936,
1435,
1705,
926,
617,
273,
1705,
74,
1049,
18,
967,
42,
966,
1435,
225,
1124,
18,
42,
3389,
1684,
607,
812,
12,
11057,
74,
1049,
16,
1705,
926,
617,
18,
10636,
16,
1705,
926,
617,
18,
559,
16,
300,
21,
13,
366,
273,
1124,
18,
42,
3389,
3678,
607,
812,
12,
11057,
74,
1049,
16,
890,
13,
1058,
273,
1124,
18,
1420,
12,
4930,
18,
892,
13,
1058,
18,
986,
1420,
2
] |
return None
|
return []
|
def searchIP(text): """ Search if an IP address if directly available and return it. """ match = re.findall("(?:\d{1,3}\.){3}\d{1,3}", text) if match: return match else: return None
|
8312439b4df870685d3e7b1f2c140b8dd54be72e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/8312439b4df870685d3e7b1f2c140b8dd54be72e/dns.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2579,
12,
955,
4672,
3536,
5167,
309,
392,
2971,
1758,
309,
5122,
2319,
471,
327,
518,
18,
3536,
845,
273,
283,
18,
4720,
454,
2932,
15599,
72,
95,
21,
16,
23,
97,
5834,
15329,
23,
6280,
72,
95,
21,
16,
23,
1532,
16,
977,
13,
309,
845,
30,
327,
845,
469,
30,
327,
5378,
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,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2579,
12,
955,
4672,
3536,
5167,
309,
392,
2971,
1758,
309,
5122,
2319,
471,
327,
518,
18,
3536,
845,
273,
283,
18,
4720,
454,
2932,
15599,
72,
95,
21,
16,
23,
97,
5834,
15329,
23,
6280,
72,
95,
21,
16,
23,
1532,
16,
977,
13,
309,
845,
30,
327,
845,
469,
30,
327,
5378,
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
] |
Note: For non-quadratic number fields, this code does return, but it takes a long time.
|
For non-quadratic number fields, this code does return, but it takes a long time.
|
def gens(self,verbose=0, lim1=5, lim3=50, limtriv=10, maxprob=20, limbigprime=30): r""" Returns some generators of this elliptic curve. Check rank or rank_bound to verify the number of generators.
|
48d8e4e8bbeb4502f0f90ffd33c0a8a99a8e320d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/48d8e4e8bbeb4502f0f90ffd33c0a8a99a8e320d/ell_number_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
5082,
4672,
436,
8395,
2860,
2690,
13327,
434,
333,
415,
549,
21507,
8882,
18,
225,
2073,
6171,
578,
6171,
67,
3653,
358,
3929,
326,
1300,
434,
13327,
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,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
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
5082,
4672,
436,
8395,
2860,
2690,
13327,
434,
333,
415,
549,
21507,
8882,
18,
225,
2073,
6171,
578,
6171,
67,
3653,
358,
3929,
326,
1300,
434,
13327,
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
] |
return FieldDescriptions(
|
return self.__class__(
|
def main(self): return FieldDescriptions( [(fn, ft) for fn, ft in self._config if not hasattr(ft, 'store')])
|
fc60ff2f59c9508ad060fb83cedf14dc97ebed09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/fc60ff2f59c9508ad060fb83cedf14dc97ebed09/qFieldTypes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
327,
365,
16186,
1106,
972,
12,
306,
12,
4293,
16,
11038,
13,
364,
2295,
16,
11038,
316,
365,
6315,
1425,
309,
486,
3859,
12,
1222,
16,
296,
2233,
6134,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
327,
365,
16186,
1106,
972,
12,
306,
12,
4293,
16,
11038,
13,
364,
2295,
16,
11038,
316,
365,
6315,
1425,
309,
486,
3859,
12,
1222,
16,
296,
2233,
6134,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((lot.obj_price==0) and (lot.state=='draft')):
|
if ((lot.obj_price==0) and (lot.state=='draft')):
|
def _buyerprice(self, cr, uid, ids, name, args, context): res={} lots=self.pool.get('auction.lots').browse(cr,uid,ids) pt_tax=self.pool.get('account.tax') for lot in lots: amount_total=0.0 if ((lot.obj_price==0) and (lot.state=='draft')): montant=lot.lot_est1 else: montant=lot.obj_price taxes = [] if lot.author_right: taxes.append(lot.author_right) if lot.auction_id: taxes += lot.auction_id.buyer_costs tax=pt_tax.compute(cr,uid,taxes,montant,1) for t in tax: amount_total+=t['amount'] amount_total += montant res[lot.id] = amount_total return res
|
83af9d311c1190113a797464e4f3eac921eb3569 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7339/83af9d311c1190113a797464e4f3eac921eb3569/auction.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
70,
16213,
8694,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
400,
12938,
328,
6968,
33,
2890,
18,
6011,
18,
588,
2668,
69,
4062,
18,
80,
6968,
16063,
25731,
12,
3353,
16,
1911,
16,
2232,
13,
5818,
67,
8066,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
8066,
6134,
364,
17417,
316,
328,
6968,
30,
3844,
67,
4963,
33,
20,
18,
20,
309,
14015,
23372,
18,
2603,
67,
8694,
631,
20,
13,
471,
261,
23372,
18,
2019,
18920,
17153,
26112,
30,
312,
1580,
970,
33,
23372,
18,
23372,
67,
395,
21,
469,
30,
312,
1580,
970,
33,
23372,
18,
2603,
67,
8694,
5320,
281,
273,
5378,
309,
17417,
18,
4161,
67,
4083,
30,
5320,
281,
18,
6923,
12,
23372,
18,
4161,
67,
4083,
13,
309,
17417,
18,
69,
4062,
67,
350,
30,
5320,
281,
1011,
17417,
18,
69,
4062,
67,
350,
18,
70,
16213,
67,
12398,
87,
5320,
33,
337,
67,
8066,
18,
9200,
12,
3353,
16,
1911,
16,
8066,
281,
16,
81,
1580,
970,
16,
21,
13,
364,
268,
316,
5320,
30,
3844,
67,
4963,
15,
33,
88,
3292,
8949,
3546,
3844,
67,
4963,
1011,
312,
1580,
970,
400,
63,
23372,
18,
350,
65,
273,
3844,
67,
4963,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
70,
16213,
8694,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
400,
12938,
328,
6968,
33,
2890,
18,
6011,
18,
588,
2668,
69,
4062,
18,
80,
6968,
16063,
25731,
12,
3353,
16,
1911,
16,
2232,
13,
5818,
67,
8066,
33,
2890,
18,
6011,
18,
588,
2668,
4631,
18,
8066,
6134,
364,
17417,
316,
328,
6968,
30,
3844,
67,
4963,
33,
20,
18,
20,
309,
14015,
23372,
18,
2603,
67,
8694,
631,
20,
13,
471,
261,
23372,
18,
2019,
18920,
17153,
26112,
30,
312,
1580,
970,
33,
23372,
18,
23372,
67,
395,
21,
469,
30,
312,
1580,
970,
33,
23372,
18,
2603,
67,
8694,
5320,
281,
273,
5378,
309,
17417,
18,
2
] |
("Dutch", "Dutch"), ("Englisch English", "English"),
|
("Dutch dut ndl", "Dutch"), ("Englisch English eng", "English"),
|
def updateDemuxSize(el): enigma.setDemuxSize(int(el.value)) print "[SETTING] getDemuxSize=", enigma.getDemuxSize()
|
108f1d657fd403d75206c7a59b02965e4c97e6c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/108f1d657fd403d75206c7a59b02965e4c97e6c2/UsageConfig.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
15058,
2616,
1225,
12,
292,
4672,
570,
17288,
18,
542,
15058,
2616,
1225,
12,
474,
12,
292,
18,
1132,
3719,
1172,
5158,
1090,
12239,
65,
2343,
351,
2616,
1225,
1546,
16,
570,
17288,
18,
588,
15058,
2616,
1225,
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,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
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
runsphinx(src, builder, confoverrides)
|
os.mkdir(_outdir)
|
def test(): src = '\n'.join(l[4:] for l in func.__doc__.splitlines()[2:]) runsphinx(src, builder, confoverrides) try: func() finally: os.unlink(os.path.join(_srcdir, 'index.rst'))
|
4cc8717afa98e403a7e1013a75fafd3253c4787f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9227/4cc8717afa98e403a7e1013a75fafd3253c4787f/test_functional.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1705,
273,
2337,
82,
10332,
5701,
12,
80,
63,
24,
26894,
364,
328,
316,
1326,
16186,
2434,
25648,
4939,
3548,
1435,
63,
22,
30,
5717,
1140,
18,
26686,
24899,
659,
1214,
13,
775,
30,
1326,
1435,
3095,
30,
1140,
18,
318,
1232,
12,
538,
18,
803,
18,
5701,
24899,
4816,
1214,
16,
296,
1615,
18,
16114,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1705,
273,
2337,
82,
10332,
5701,
12,
80,
63,
24,
26894,
364,
328,
316,
1326,
16186,
2434,
25648,
4939,
3548,
1435,
63,
22,
30,
5717,
1140,
18,
26686,
24899,
659,
1214,
13,
775,
30,
1326,
1435,
3095,
30,
1140,
18,
318,
1232,
12,
538,
18,
803,
18,
5701,
24899,
4816,
1214,
16,
296,
1615,
18,
16114,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.append(TOC(href=href, fragment=fragment, text=text, parent=self, base_path=self.base_path))
|
play_order = (self[-1].play_order if len(self) else self.play_order) + 1 self.append(TOC(href=href, fragment=fragment, text=text, parent=self, base_path=self.base_path, play_order=play_order))
|
def add_item(self, href, fragment, text): self.append(TOC(href=href, fragment=fragment, text=text, parent=self, base_path=self.base_path)) return self[-1]
|
6cea84a15f0bd708d0cdd6f3bb4e1dbe754344fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/6cea84a15f0bd708d0cdd6f3bb4e1dbe754344fe/toc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
3897,
16,
5481,
16,
977,
4672,
6599,
67,
1019,
273,
261,
2890,
18919,
21,
8009,
1601,
67,
1019,
309,
562,
12,
2890,
13,
469,
365,
18,
1601,
67,
1019,
13,
397,
404,
365,
18,
6923,
12,
4296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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
3897,
16,
5481,
16,
977,
4672,
6599,
67,
1019,
273,
261,
2890,
18919,
21,
8009,
1601,
67,
1019,
309,
562,
12,
2890,
13,
469,
365,
18,
1601,
67,
1019,
13,
397,
404,
365,
18,
6923,
12,
4296,
39,
12,
7547,
33,
7547,
16,
5481,
33,
11956,
16,
977,
33,
955,
16,
982,
33,
2890,
16,
1026,
67,
803,
33,
2890,
18,
1969,
67,
803,
16,
6599,
67,
1019,
33,
1601,
67,
1019,
3719,
327,
365,
18919,
21,
65,
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
] |
print a, k
|
print a, sortdict(k)
|
def f(*a, **k): print a, k
|
08dabf0a7374540637ee637f1b37b8d3cf96d9bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/08dabf0a7374540637ee637f1b37b8d3cf96d9bf/test_extcall.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
30857,
69,
16,
2826,
79,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
30857,
69,
16,
2826,
79,
4672,
1172,
279,
16,
1524,
1576,
12,
79,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.some_problem == True:
|
if brackets == True and license_found != None: brackets = False return True elif self.some_problem == True:
|
def checkStep(self): # nothing = Defining an empty image description nothing = ['', ' ', ' ', ' ', '\n', '\n ', '\n ', '\n\n', '\n \n', ' \n', ' \n ', ' \n \n'] # something = Minimal requirements for an image description. # If this fits, no tagging will take place (if there aren't other issues) # MIT license is ok on italian wikipedia, let also this here something = ['{{'] # Don't put "}}" here, please. Useless and can give problems. # Unused file extensions. Does not contain PDF. notallowed = ("xcf", "xls", "sxw", "sxi", "sxc", "sxd") brackets = False delete = False extension = self.imageName.split('.')[-1] # get the extension from the image's name # Load the notification messages HiddenTN = wikipedia.translate(self.site, HiddenTemplateNotification) unvertext = wikipedia.translate(self.site, n_txt) di = wikipedia.translate(self.site, delete_immediately) dih = wikipedia.translate(self.site, delete_immediately_head) din = wikipedia.translate(self.site, delete_immediately_notification) nh = wikipedia.translate(self.site, nothing_head) nn = wikipedia.translate(self.site, nothing_notification) dels = wikipedia.translate(self.site, del_comm) smwl = wikipedia.translate(self.site, second_message_without_license)
|
d8ca76ad9193119d7b21ee2d0156002355bc4032 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/d8ca76ad9193119d7b21ee2d0156002355bc4032/checkimages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4160,
12,
2890,
4672,
468,
5083,
273,
18003,
310,
392,
1008,
1316,
2477,
5083,
273,
10228,
2187,
296,
2265,
296,
225,
2265,
296,
282,
2265,
2337,
82,
2187,
2337,
82,
2265,
2337,
82,
225,
2265,
2337,
82,
64,
82,
2187,
2337,
82,
521,
82,
2187,
296,
521,
82,
2187,
296,
521,
82,
2265,
296,
521,
82,
521,
82,
3546,
468,
5943,
273,
5444,
2840,
8433,
364,
392,
1316,
2477,
18,
468,
971,
333,
13351,
16,
1158,
1047,
1998,
903,
4862,
3166,
261,
430,
1915,
11526,
1404,
1308,
8296,
13,
468,
490,
1285,
8630,
353,
1529,
603,
518,
287,
2779,
21137,
16,
2231,
2546,
333,
2674,
5943,
273,
10228,
12187,
3546,
468,
7615,
1404,
1378,
315,
23644,
2674,
16,
9582,
18,
587,
1786,
403,
471,
848,
8492,
9688,
18,
468,
1351,
3668,
585,
4418,
18,
9637,
486,
912,
12667,
18,
486,
8151,
273,
7566,
6511,
74,
3113,
315,
92,
3251,
3113,
315,
30319,
91,
3113,
315,
87,
27005,
3113,
315,
87,
6511,
3113,
315,
87,
7669,
7923,
15597,
273,
1083,
1430,
273,
1083,
2710,
273,
365,
18,
2730,
461,
18,
4939,
2668,
1093,
13,
18919,
21,
65,
468,
336,
326,
2710,
628,
326,
1316,
1807,
508,
468,
4444,
326,
3851,
2743,
22479,
56,
50,
273,
21137,
18,
13929,
12,
2890,
18,
4256,
16,
22479,
2283,
4386,
13,
640,
502,
955,
273,
21137,
18,
13929,
12,
2890,
18,
4256,
16,
290,
67,
5830,
13,
4314,
273,
21137,
18,
13929,
12,
2890,
18,
4256,
16,
1430,
67,
381,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4160,
12,
2890,
4672,
468,
5083,
273,
18003,
310,
392,
1008,
1316,
2477,
5083,
273,
10228,
2187,
296,
2265,
296,
225,
2265,
296,
282,
2265,
2337,
82,
2187,
2337,
82,
2265,
2337,
82,
225,
2265,
2337,
82,
64,
82,
2187,
2337,
82,
521,
82,
2187,
296,
521,
82,
2187,
296,
521,
82,
2265,
296,
521,
82,
521,
82,
3546,
468,
5943,
273,
5444,
2840,
8433,
364,
392,
1316,
2477,
18,
468,
971,
333,
13351,
16,
1158,
1047,
1998,
903,
4862,
3166,
261,
430,
1915,
11526,
1404,
1308,
8296,
13,
468,
490,
1285,
8630,
353,
1529,
603,
518,
287,
2779,
21137,
16,
2231,
2546,
333,
2674,
5943,
273,
10228,
12187,
3546,
468,
7615,
1404,
1378,
315,
23644,
2674,
2
] |
ListStore.__init__(self, str, bool, str, str, str)
|
ListStore.__init__(self, str, str, str, str, str)
|
def __init__(self, packages, repo, node):
|
8d887e6509e2d71a2f13e91bd822bc9a5fc668ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2654/8d887e6509e2d71a2f13e91bd822bc9a5fc668ca/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5907,
16,
3538,
16,
756,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5907,
16,
3538,
16,
756,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
global parser
|
global parser, err
|
def create_records(xmltext, verbose=CFG_BIBRECORD_DEFAULT_VERBOSE_LEVEL, correct=CFG_BIBRECORD_DEFAULT_CORRECT): """ Create list of record from XMLTEXT. Return a list of objects initiated by create_record() function; please see that function's docstring. """ global parser err = [] if parser == -1: err.append((6, "import error")) else: pat = r"<record.*?>.*?</record>" p = re.compile(pat, re.DOTALL) # DOTALL - to ignore whitespaces alist = p.findall(xmltext) listofrec = map((lambda x:create_record(x, verbose, correct)), alist) return listofrec return []
|
2119bd69b614d8b9075462a4ab7baae5364a9144 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/2119bd69b614d8b9075462a4ab7baae5364a9144/bibrecord.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
7094,
12,
2902,
955,
16,
3988,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
21900,
67,
10398,
16,
3434,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
9428,
4512,
4672,
3536,
1788,
666,
434,
1409,
628,
3167,
5151,
18,
225,
2000,
279,
666,
434,
2184,
27183,
635,
752,
67,
3366,
1435,
445,
31,
9582,
2621,
716,
445,
1807,
14525,
18,
3536,
2552,
2082,
16,
393,
393,
273,
5378,
225,
309,
2082,
422,
300,
21,
30,
393,
18,
6923,
12443,
26,
16,
315,
5666,
555,
6,
3719,
469,
30,
9670,
273,
436,
6,
32,
3366,
23498,
34,
23498,
1757,
3366,
2984,
293,
273,
283,
18,
11100,
12,
16330,
16,
283,
18,
17591,
4685,
13,
468,
15772,
4685,
300,
358,
2305,
28186,
524,
376,
273,
293,
18,
4720,
454,
12,
2902,
955,
13,
225,
666,
792,
3927,
273,
852,
12443,
14661,
619,
30,
2640,
67,
3366,
12,
92,
16,
3988,
16,
3434,
13,
3631,
524,
376,
13,
327,
666,
792,
3927,
327,
5378,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
7094,
12,
2902,
955,
16,
3988,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
21900,
67,
10398,
16,
3434,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
9428,
4512,
4672,
3536,
1788,
666,
434,
1409,
628,
3167,
5151,
18,
225,
2000,
279,
666,
434,
2184,
27183,
635,
752,
67,
3366,
1435,
445,
31,
9582,
2621,
716,
445,
1807,
14525,
18,
3536,
2552,
2082,
16,
393,
393,
273,
5378,
225,
309,
2082,
422,
300,
21,
30,
393,
18,
6923,
12443,
26,
16,
315,
5666,
555,
6,
3719,
469,
30,
9670,
273,
436,
6,
32,
3366,
23498,
34,
23498,
1757,
3366,
2984,
293,
273,
283,
18,
11100,
12,
16330,
16,
283,
18,
17591,
4685,
13,
468,
2
] |
tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0]
|
try: tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] except: tp = a[1]
|
def get_ui(self): t = UI.DataTable() t.append(UI.DataTableRow(UI.Label(text='Name'), UI.Label(text='Type'), UI.Label(text='Value'), UI.Label(), header=True)) for a in self.cfg.acls: tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] t.append( UI.DataTableRow( UI.Label(text=a[0]), UI.Label(text=tp), UI.Label(text=a[2]), UI.DataTableCell( UI.HContainer( UI.MiniButton(text='Edit', id='edit_acl/' + a[0]), UI.MiniButton(text='Delete', id='del_acl/' + a[0] + '/' + a[1] + '/' + a[2]) ), hidden=True ) ) ) vc = UI.VContainer(t, UI.HContainer( UI.Button(text='Add', id='add_acl'), UI.Button(text='Shuffle', id='shuffle_acls') ) )
|
011ae0ff7ba797e47166a234b08bfb0ae1501b97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/011ae0ff7ba797e47166a234b08bfb0ae1501b97/ui_acls.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
12,
2890,
4672,
268,
273,
6484,
18,
21237,
1435,
268,
18,
6923,
12,
5370,
18,
21237,
1999,
12,
5370,
18,
2224,
12,
955,
2218,
461,
19899,
6484,
18,
2224,
12,
955,
2218,
559,
19899,
6484,
18,
2224,
12,
955,
2218,
620,
19899,
6484,
18,
2224,
9334,
1446,
33,
5510,
3719,
364,
279,
316,
365,
18,
7066,
18,
69,
6429,
30,
775,
30,
8071,
273,
1034,
12,
14661,
619,
30,
619,
63,
21,
65,
422,
279,
63,
21,
6487,
365,
18,
10150,
67,
2352,
25146,
20,
6362,
20,
65,
1335,
30,
8071,
273,
279,
63,
21,
65,
268,
18,
6923,
12,
6484,
18,
21237,
1999,
12,
6484,
18,
2224,
12,
955,
33,
69,
63,
20,
65,
3631,
6484,
18,
2224,
12,
955,
33,
6834,
3631,
6484,
18,
2224,
12,
955,
33,
69,
63,
22,
65,
3631,
6484,
18,
21237,
4020,
12,
6484,
18,
44,
2170,
12,
6484,
18,
2930,
77,
3616,
12,
955,
2218,
4666,
2187,
612,
2218,
4619,
67,
10150,
2473,
397,
279,
63,
20,
65,
3631,
6484,
18,
2930,
77,
3616,
12,
955,
2218,
2613,
2187,
612,
2218,
3771,
67,
10150,
2473,
397,
279,
63,
20,
65,
397,
2023,
397,
279,
63,
21,
65,
397,
2023,
397,
279,
63,
22,
5717,
262,
16,
5949,
33,
5510,
262,
262,
262,
12802,
273,
6484,
18,
58,
2170,
12,
88,
16,
6484,
18,
44,
2170,
12,
6484,
18,
3616,
12,
955,
2218,
986,
2187,
612,
2218,
1289,
67,
10150,
19899,
6484,
18,
3616,
12,
955,
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,
336,
67,
4881,
12,
2890,
4672,
268,
273,
6484,
18,
21237,
1435,
268,
18,
6923,
12,
5370,
18,
21237,
1999,
12,
5370,
18,
2224,
12,
955,
2218,
461,
19899,
6484,
18,
2224,
12,
955,
2218,
559,
19899,
6484,
18,
2224,
12,
955,
2218,
620,
19899,
6484,
18,
2224,
9334,
1446,
33,
5510,
3719,
364,
279,
316,
365,
18,
7066,
18,
69,
6429,
30,
775,
30,
8071,
273,
1034,
12,
14661,
619,
30,
619,
63,
21,
65,
422,
279,
63,
21,
6487,
365,
18,
10150,
67,
2352,
25146,
20,
6362,
20,
65,
1335,
30,
8071,
273,
279,
63,
21,
65,
268,
18,
6923,
12,
6484,
18,
21237,
1999,
12,
6484,
18,
2224,
12,
955,
33,
69,
63,
20,
65,
2
] |
def __init__(self, title=None, text=None, bulleted_list=None, binary=None, binary_type=None, binary_subtype=None, binary_alttext=None, application=None, formatted_content=None): if binary: assert (binary_type and binary_subtype and binary_alttext), "Type, subtype and alttext are required for binary alements" self.title = title self.text = text self.bulleted_list = bulleted_list self.binary = binary self.binary_type = binary_type self.binary_subtype = binary_subtype self.binary_alttext = binary_alttext self.application = application self.formatted_content = formatted_content def get_title_xml(self): if self.title is None: return '' else: return "<Title>%s</Title>" % self.title def get_text_xml(self): if self.text is None: return '' else: return "<Text>%s</Text>" % self.text def get_bulleted_list_xml(self): if self.bulleted_list is None: return '' elif type(self.bulleted_list) is list: return "<List>%s</List>" % self.get_bulleted_list_items_xml() else: raise ValueError("QuestionContent bulleted_list argument should be a list.") def get_bulleted_list_items_xml(self): ret = "" for item in self.bulleted_list: ret = ret + "<ListItem>%s</ListItem>" % item return ret def get_binary_xml(self): if self.binary is None: return '' else: return """ <Binary> <MimeType> <Type>%s</Type> <SubType>%s</SubType> </MimeType> <DataURL>%s</DataURL> <AltText>%s</AltText> </Binary>""" %(self.binary_type, self.binary_subtype, self.binary, self.binary_alttext ) def get_application_xml(self): if self.application is None: return '' else: raise NotImplementedError("Application question content is not yet supported.") def get_formatted_content_xml(self): if self.formatted_content is None: return '' else: return "<FormattedContent><![CDATA[%s]]></FormattedContent>" % self.formatted_content def get_as_xml(self): children = self.get_title_xml() + self.get_text_xml() + self.get_bulleted_list_xml() + self.get_binary_xml() + self.get_application_xml() + self.get_formatted_content_xml() return "<QuestionContent>%s</QuestionContent>" % children
|
QUESTIONCONTENT_XML_TEMPLATE = """<QuestionContent>%s</QuestionContent>""" def __init__(self): self.ordered_content = OrderedContent() def append(self, field, value): self.ordered_content.append(field,value) def get_as_xml(self): ret = QuestionContent.QUESTIONCONTENT_XML_TEMPLATE % (self.ordered_content.get_as_xml()) return ret
|
#def endElement(self, name, value, connection):
|
b1333c9dddc515d4d95e6ce0bb217398b2d9d127 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/b1333c9dddc515d4d95e6ce0bb217398b2d9d127/question.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
14840,
12,
2890,
16,
508,
16,
460,
16,
1459,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
14840,
12,
2890,
16,
508,
16,
460,
16,
1459,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
game.join("player %i"%i)
|
p = game.join("player %i"%i) players.append ( p ) for p in players: p.set_ready()
|
def game_for(num_players): server = Server() game = server.create_game("the game") for i in range(num_players): game.join("player %i"%i) return game
|
c5f784369099e34d9475c9f21c59de6626e5e1f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4392/c5f784369099e34d9475c9f21c59de6626e5e1f1/model.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7920,
67,
1884,
12,
2107,
67,
1601,
414,
4672,
1438,
273,
3224,
1435,
7920,
273,
1438,
18,
2640,
67,
13957,
2932,
5787,
7920,
7923,
364,
277,
316,
1048,
12,
2107,
67,
1601,
414,
4672,
293,
273,
7920,
18,
5701,
2932,
14872,
738,
77,
28385,
77,
13,
18115,
18,
6923,
261,
293,
262,
225,
364,
293,
316,
18115,
30,
293,
18,
542,
67,
1672,
1435,
327,
7920,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7920,
67,
1884,
12,
2107,
67,
1601,
414,
4672,
1438,
273,
3224,
1435,
7920,
273,
1438,
18,
2640,
67,
13957,
2932,
5787,
7920,
7923,
364,
277,
316,
1048,
12,
2107,
67,
1601,
414,
4672,
293,
273,
7920,
18,
5701,
2932,
14872,
738,
77,
28385,
77,
13,
18115,
18,
6923,
261,
293,
262,
225,
364,
293,
316,
18115,
30,
293,
18,
542,
67,
1672,
1435,
327,
7920,
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
] |
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label.
|
def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label.
|
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- if False, each edge is a tuple (u,v) of vertices. EXAMPLES: sage: graphs.DodecahedralGraph().edges() [(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, None), (2, 3, None), (2, 6, None), (3, 19, None), (3, 4, None), (4, 17, None), (4, 5, None), (5, 6, None), (5, 15, None), (6, 7, None), (7, 8, None), (7, 14, None), (8, 9, None), (9, 10, None), (9, 13, None), (10, 11, None), (11, 12, None), (11, 18, None), (12, 16, None), (12, 13, None), (13, 14, None), (14, 15, None), (15, 16, None), (16, 17, None), (17, 18, None), (18, 19, None)] sage: graphs.DodecahedralGraph().edges(labels=False) [(0, 1), (0, 10), (0, 19), (1, 8), (1, 2), (2, 3), (2, 6), (3, 19), (3, 4), (4, 17), (4, 5), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 16), (12, 13), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)]
|
a93c6f591f8298acfe9c0ed6cb3f79020ee76927 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a93c6f591f8298acfe9c0ed6cb3f79020ee76927/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353,
279,
1433,
18,
225,
12943,
30,
3249,
1493,
309,
1083,
16,
1517,
3591,
353,
279,
3193,
261,
89,
16,
90,
13,
434,
6928,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
19422,
18,
40,
390,
5353,
28351,
4137,
7675,
8746,
1435,
306,
12,
20,
16,
404,
16,
599,
3631,
261,
20,
16,
1728,
16,
599,
3631,
261,
20,
16,
5342,
16,
599,
3631,
261,
21,
16,
1725,
16,
599,
3631,
261,
21,
16,
576,
16,
599,
3631,
261,
22,
16,
890,
16,
599,
3631,
261,
22,
16,
1666,
16,
599,
3631,
261,
23,
16,
5342,
16,
599,
3631,
261,
23,
16,
1059,
16,
599,
3631,
261,
24,
16,
8043,
16,
599,
3631,
261,
24,
16,
1381,
16,
599,
3631,
261,
25,
16,
1666,
16,
599,
3631,
261,
25,
16,
4711,
16,
599,
3631,
261,
26,
16,
2371,
16,
599,
3631,
261,
27,
16,
1725,
16,
599,
3631,
261,
27,
16,
5045,
16,
599,
3631,
261,
28,
16,
2468,
16,
599,
3631,
261,
29,
16,
1728,
16,
599,
3631,
261,
29,
16,
5958,
16,
599,
3631,
261,
2163,
16,
4648,
16,
599,
3631,
261,
2499,
16,
2593,
16,
599,
3631,
261,
2499,
16,
6549,
16,
599,
3631,
261,
2138,
16,
2872,
16,
599,
3631,
261,
2138,
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,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353,
279,
1433,
18,
225,
12943,
30,
3249,
1493,
309,
1083,
16,
1517,
3591,
353,
279,
3193,
261,
89,
16,
90,
13,
434,
6928,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
19422,
18,
40,
390,
5353,
28351,
4137,
7675,
8746,
1435,
306,
12,
20,
16,
404,
16,
599,
3631,
261,
20,
16,
1728,
16,
599,
3631,
261,
20,
16,
5342,
16,
599,
3631,
261,
21,
16,
1725,
16,
599,
3631,
261,
21,
16,
576,
16,
599,
3631,
2
] |
raise ValueError, '%s has no node %s'%(link_class, value)
|
raise IndexError, '%s has no node %s'%(link_class, value)
|
def create(self, **propvalues): """Create a new node of this class and return its id.
|
f585d0fd8b97406c94bbd0235dd528198f965caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f585d0fd8b97406c94bbd0235dd528198f965caf/hyperdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
2826,
5986,
2372,
4672,
3536,
1684,
279,
394,
756,
434,
333,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
2826,
5986,
2372,
4672,
3536,
1684,
279,
394,
756,
434,
333,
667,
471,
327,
2097,
612,
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
] |
result = N.zeros( self.lenResidues(), 'i' )
|
result = N.zeros( self.lenResidues(), N.Int )
|
def atom2resMask( self, atomMask ): """ Mask (0) residues for which all atoms are masked (0) in atomMask.
|
5b8e39f937697f6c28699f4873886fbcfc130583 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/5b8e39f937697f6c28699f4873886fbcfc130583/PDBModel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
22,
455,
5796,
12,
365,
16,
3179,
5796,
262,
30,
3536,
16698,
261,
20,
13,
25435,
364,
1492,
777,
9006,
854,
13196,
261,
20,
13,
316,
3179,
5796,
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,
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,
3179,
22,
455,
5796,
12,
365,
16,
3179,
5796,
262,
30,
3536,
16698,
261,
20,
13,
25435,
364,
1492,
777,
9006,
854,
13196,
261,
20,
13,
316,
3179,
5796,
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
] |
logging.debug(_('OpenID: handle associate continuation'))
|
logging.debug('OpenID: handle associate continuation')
|
def _handle_continuation(self, request): _ = request.getText oidstage = request.values.get('oidstage') if oidstage == '1': logging.debug(_('OpenID: handle verify continuation')) return self._handle_verify_continuation(request) elif oidstage == '2': logging.debug(_('OpenID: handle name continuation')) return self._handle_name_continuation(request) elif oidstage == '3': logging.debug(_('OpenID: handle associate continuation')) return self._handle_associate_continuation(request) logging.debug(_('OpenID: unknown continuation stage')) return CancelLogin(_('OpenID error: unknown continuation stage'))
|
a7f353b82132401fdd2f67ff3b4e5b91e00f6058 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/a7f353b82132401fdd2f67ff3b4e5b91e00f6058/openidrp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
1213,
23946,
12,
2890,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
7764,
12869,
273,
590,
18,
2372,
18,
588,
2668,
839,
12869,
6134,
309,
7764,
12869,
422,
296,
21,
4278,
2907,
18,
4148,
24899,
2668,
22414,
30,
1640,
3929,
17378,
26112,
327,
365,
6315,
4110,
67,
8705,
67,
1213,
23946,
12,
2293,
13,
1327,
7764,
12869,
422,
296,
22,
4278,
2907,
18,
4148,
24899,
2668,
22414,
30,
1640,
508,
17378,
26112,
327,
365,
6315,
4110,
67,
529,
67,
1213,
23946,
12,
2293,
13,
1327,
7764,
12869,
422,
296,
23,
4278,
2907,
18,
4148,
2668,
22414,
30,
1640,
13251,
17378,
6134,
327,
365,
6315,
4110,
67,
11577,
67,
1213,
23946,
12,
2293,
13,
2907,
18,
4148,
24899,
2668,
22414,
30,
5917,
17378,
6009,
26112,
327,
10347,
5358,
24899,
2668,
22414,
555,
30,
5917,
17378,
6009,
26112,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
1213,
23946,
12,
2890,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
7764,
12869,
273,
590,
18,
2372,
18,
588,
2668,
839,
12869,
6134,
309,
7764,
12869,
422,
296,
21,
4278,
2907,
18,
4148,
24899,
2668,
22414,
30,
1640,
3929,
17378,
26112,
327,
365,
6315,
4110,
67,
8705,
67,
1213,
23946,
12,
2293,
13,
1327,
7764,
12869,
422,
296,
22,
4278,
2907,
18,
4148,
24899,
2668,
22414,
30,
1640,
508,
17378,
26112,
327,
365,
6315,
4110,
67,
529,
67,
1213,
23946,
12,
2293,
13,
1327,
7764,
12869,
422,
296,
23,
4278,
2907,
18,
4148,
2668,
22414,
30,
1640,
13251,
17378,
6134,
327,
365,
6315,
4110,
67,
11577,
67,
1213,
23946,
12,
2293,
13,
2907,
2
] |
flattend = content
|
flat = content
|
def _setUpElements(self): """This method ONLY sets up the instance attributes. Dependency instance attribute: mgContent -- expected to be either a complex definition with model group content, a model group, or model group content. TODO: should only support the first two. """
|
5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1211,
3471,
12,
2890,
4672,
3536,
2503,
707,
20747,
1678,
731,
326,
791,
1677,
18,
11993,
791,
1566,
30,
11174,
1350,
1493,
2665,
358,
506,
3344,
279,
7233,
2379,
598,
938,
1041,
913,
16,
279,
938,
1041,
16,
578,
938,
1041,
913,
18,
225,
2660,
30,
1410,
1338,
2865,
326,
1122,
2795,
18,
3536,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1211,
3471,
12,
2890,
4672,
3536,
2503,
707,
20747,
1678,
731,
326,
791,
1677,
18,
11993,
791,
1566,
30,
11174,
1350,
1493,
2665,
358,
506,
3344,
279,
7233,
2379,
598,
938,
1041,
913,
16,
279,
938,
1041,
16,
578,
938,
1041,
913,
18,
225,
2660,
30,
1410,
1338,
2865,
326,
1122,
2795,
18,
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
] |
e.text = str(resource[key])
|
e.text = ustr(resource[key])
|
def parameter(self, dico, resource): """ Convert value to a parameter for SOAP query
|
226dec90a6bed336497acd4a0c8658009675877a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6641/226dec90a6bed336497acd4a0c8658009675877a/report_soap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1569,
12,
2890,
16,
302,
10764,
16,
1058,
4672,
3536,
4037,
460,
358,
279,
1569,
364,
16434,
843,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1569,
12,
2890,
16,
302,
10764,
16,
1058,
4672,
3536,
4037,
460,
358,
279,
1569,
364,
16434,
843,
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
] |
resp = self.shortcmd("XPATH " + id) if resp[:3] != '223':
|
resp = self.shortcmd('XPATH {0}'.format(id)) if not resp.startswith(b'223'):
|
def xpath(self,id): """Process an XPATH command (optional server extension) Arguments: - id: Message id of article Returns: resp: server response if successful path: directory path to article"""
|
9bd2973908ef080e31fd8a2b44c929188a135cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9bd2973908ef080e31fd8a2b44c929188a135cb0/nntplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6748,
12,
2890,
16,
350,
4672,
3536,
2227,
392,
1139,
4211,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
612,
30,
2350,
612,
434,
7559,
2860,
30,
1718,
30,
1438,
766,
309,
6873,
589,
30,
1867,
589,
358,
7559,
8395,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6748,
12,
2890,
16,
350,
4672,
3536,
2227,
392,
1139,
4211,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
612,
30,
2350,
612,
434,
7559,
2860,
30,
1718,
30,
1438,
766,
309,
6873,
589,
30,
1867,
589,
358,
7559,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class AbsenceFrame(wxFrame):
|
class AbsenceFrame(wxDialog):
|
def OnOk(self, event): """Verify that all data is entered before closing the dialog.""" rollcall = [] for (entry, present_btn) in self.items: if entry.presence is Unchanged: present_btn.SetFocus() wxBell() return show_resolved = not entry.item.present and entry.presence == True if show_resolved and entry.resolved is Unchanged: wxBell() self.moreInfoDlg(entry) if not entry.presence: entry.resolved = Unchanged rollcall.append(entry) try: self.client.submitRollCall(self.group_path, rollcall) except SchoolToolError, e: wxMessageBox("Could not submit the roll call: %s" % e, self.title, wxICON_ERROR|wxOK) else: self.EndModal(wxID_OK)
|
8bfcb893526ff90ecb1436418450327bd4196777 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8bfcb893526ff90ecb1436418450327bd4196777/wxclient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
871,
4672,
3536,
8097,
716,
777,
501,
353,
16219,
1865,
7647,
326,
6176,
12123,
5824,
1991,
273,
5378,
364,
261,
4099,
16,
3430,
67,
11898,
13,
316,
365,
18,
3319,
30,
309,
1241,
18,
21731,
353,
1351,
6703,
30,
3430,
67,
11898,
18,
694,
9233,
1435,
7075,
38,
1165,
1435,
327,
2405,
67,
11792,
273,
486,
1241,
18,
1726,
18,
6706,
471,
1241,
18,
21731,
422,
1053,
309,
2405,
67,
11792,
471,
1241,
18,
11792,
353,
1351,
6703,
30,
7075,
38,
1165,
1435,
365,
18,
10161,
966,
40,
23623,
12,
4099,
13,
309,
486,
1241,
18,
21731,
30,
1241,
18,
11792,
273,
1351,
6703,
5824,
1991,
18,
6923,
12,
4099,
13,
775,
30,
365,
18,
2625,
18,
9297,
24194,
1477,
12,
2890,
18,
1655,
67,
803,
16,
5824,
1991,
13,
1335,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
871,
4672,
3536,
8097,
716,
777,
501,
353,
16219,
1865,
7647,
326,
6176,
12123,
5824,
1991,
273,
5378,
364,
261,
4099,
16,
3430,
67,
11898,
13,
316,
365,
18,
3319,
30,
309,
1241,
18,
21731,
353,
1351,
6703,
30,
3430,
67,
11898,
18,
694,
9233,
1435,
7075,
38,
1165,
1435,
327,
2405,
67,
11792,
273,
486,
1241,
18,
1726,
18,
6706,
471,
1241,
18,
21731,
422,
1053,
309,
2405,
67,
11792,
471,
1241,
18,
11792,
353,
1351,
6703,
30,
7075,
38,
1165,
1435,
365,
18,
10161,
966,
40,
23623,
12,
4099,
13,
309,
486,
1241,
18,
21731,
30,
1241,
18,
11792,
273,
1351,
6703,
5824,
1991,
18,
6923,
12,
4099,
13,
775,
30,
2
] |
"""Export actor levels from mod to text file.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('NPC Levels')) menu.AppendItem(menuItem) menuItem.Enable(len(self.data)==1) def Execute(self,event): message = (_("This command will export the level info for NPCs whose level is offset with respect to the PC. The exported file can be edited with most spreadsheet programs and then reimported.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLevels.export.continue',_('Export NPC Levels')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_NPC_Levels.csv') textDir = settings.get('bash.workDir',bosh.dirs['app']) textPath = balt.askSave(self.window,_('Export NPC levels to:'), textDir,textName, '*.csv') if not textPath: return (textDir,textName) = textPath.headTail settings['bash.workDir'] = textDir progress = balt.Progress(_("Export NPC Levels")) try: bosh.ActorLevels.dumpText(fileInfo,textPath,progress) finally: progress = progress.Destroy()
|
"""Export actor levels from mod to text file.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('NPC Levels')) menu.AppendItem(menuItem) menuItem.Enable(len(self.data)==1) def Execute(self,event): message = (_("This command will export the level info for NPCs whose level is offset with respect to the PC. The exported file can be edited with most spreadsheet programs and then reimported.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLevels.export.continue',_('Export NPC Levels')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_NPC_Levels.csv') textDir = settings.get('bash.workDir',bosh.dirs['app']) textPath = balt.askSave(self.window,_('Export NPC levels to:'), textDir,textName, '*.csv') if not textPath: return (textDir,textName) = textPath.headTail settings['bash.workDir'] = textDir progress = balt.Progress(_("Export NPC Levels")) try: bosh.ActorLevels.dumpText(fileInfo,textPath,progress) finally: progress = progress.Destroy()
|
def Execute(self,event): message = (_("Update ArchiveInvalidation.txt? This updates the file that forces the game engine to recognize replaced textures. Note that this feature is experimental and most probably somewhat incomplete. You may prefer to use another program to do AI.txt file updating.")) if not balt.askContinue(self.window,message,'bash.updateAI.continue',_('ArchiveInvalidation.txt')): return bosh.ResourceReplacer.updateInvalidator() balt.showOk(self.window,"ArchiveInvalidation.txt updated.")
|
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
883,
273,
261,
67,
2932,
1891,
13124,
27946,
18,
5830,
35,
1220,
4533,
326,
585,
716,
26376,
326,
7920,
4073,
358,
21431,
8089,
977,
1823,
18,
3609,
716,
333,
2572,
353,
23070,
471,
4486,
8656,
18016,
11304,
14715,
18,
4554,
2026,
13256,
358,
999,
4042,
5402,
358,
741,
432,
45,
18,
5830,
585,
9702,
1199,
3719,
309,
486,
324,
2390,
18,
835,
12378,
12,
2890,
18,
5668,
16,
2150,
11189,
28734,
18,
2725,
18194,
18,
17143,
2187,
67,
2668,
7465,
27946,
18,
5830,
26112,
30,
327,
324,
17636,
18,
1420,
30060,
18,
2725,
1941,
639,
1435,
324,
2390,
18,
4500,
8809,
12,
2890,
18,
5668,
10837,
7465,
27946,
18,
5830,
3526,
1199,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
883,
273,
261,
67,
2932,
1891,
13124,
27946,
18,
5830,
35,
1220,
4533,
326,
585,
716,
26376,
326,
7920,
4073,
358,
21431,
8089,
977,
1823,
18,
3609,
716,
333,
2572,
353,
23070,
471,
4486,
8656,
18016,
11304,
14715,
18,
4554,
2026,
13256,
358,
999,
4042,
5402,
358,
741,
432,
45,
18,
5830,
585,
9702,
1199,
3719,
309,
486,
324,
2390,
18,
835,
12378,
12,
2890,
18,
5668,
16,
2150,
11189,
28734,
18,
2725,
18194,
18,
17143,
2187,
67,
2668,
7465,
27946,
18,
5830,
26112,
30,
327,
324,
17636,
18,
1420,
30060,
18,
2725,
1941,
639,
1435,
324,
2390,
18,
4500,
8809,
12,
2890,
18,
5668,
10837,
7465,
27946,
18,
5830,
3526,
1199,
2
] |
def FirstScan_Button_clicked_cb(self, button, data=None): if self.search_count == 0: self.do_scan() else: self.reset_scan() return True def NextScan_Button_clicked_cb(self, button, data=None):
|
def Scan_Button_clicked_cb(self, button, data=None):
|
def FirstScan_Button_clicked_cb(self, button, data=None): if self.search_count == 0: # first scan self.do_scan() else: # new scan self.reset_scan() return True
|
78440d3152e6d6ffda16bfdc0ae622d790564364 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4850/78440d3152e6d6ffda16bfdc0ae622d790564364/GameConqueror.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5783,
7972,
67,
3616,
67,
7475,
329,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
309,
365,
18,
3072,
67,
1883,
422,
374,
30,
468,
1122,
4135,
365,
18,
2896,
67,
9871,
1435,
469,
30,
468,
394,
4135,
365,
18,
6208,
67,
9871,
1435,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5783,
7972,
67,
3616,
67,
7475,
329,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
309,
365,
18,
3072,
67,
1883,
422,
374,
30,
468,
1122,
4135,
365,
18,
2896,
67,
9871,
1435,
469,
30,
468,
394,
4135,
365,
18,
6208,
67,
9871,
1435,
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
] |
self.cars[-i-1].update(queue_length-(i+1))
|
self.cars[-i-1].update(queue_length - (i+1))
|
def update(self): queue_length = len((self.cars)) for i in range(queue_length): self.cars[-i-1].update(queue_length-(i+1))
|
6e7d5f2b538b57b791a24be47e353bb93f68d00a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4798/6e7d5f2b538b57b791a24be47e353bb93f68d00a/init.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
2389,
67,
2469,
273,
562,
12443,
2890,
18,
71,
5913,
3719,
364,
277,
316,
1048,
12,
4000,
67,
2469,
4672,
365,
18,
71,
5913,
18919,
77,
17,
21,
8009,
2725,
12,
4000,
67,
2469,
17,
12,
77,
15,
21,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1089,
12,
2890,
4672,
2389,
67,
2469,
273,
562,
12443,
2890,
18,
71,
5913,
3719,
364,
277,
316,
1048,
12,
4000,
67,
2469,
4672,
365,
18,
71,
5913,
18919,
77,
17,
21,
8009,
2725,
12,
4000,
67,
2469,
17,
12,
77,
15,
21,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........."
|
print >> sys.stderr, "Insufficient command line arguments " print >> sys.stderr, " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print >> sys.stderr, " Exiting ........."
|
def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: print "Cannot import Config file '",sys.argv[1],"' exiting ...." sys.exit(1) UniqueID = '' # Compute Unique ID Number if(len(sys.argv) >= 3): UniqueID += '_' + sys.argv[2] # Variables Structure/Dictionary Vars = {} # SFT time baseline try: Vars['TSFT'] = config.TSFT except: print "TSFT cannot be read" sys.exit(1) # Strength of signal try: Vars['h0'] = config.h0 except: print "h0 cannot be read" sys.exit(1) # Cosine of iota try: Vars['cosi'] = config.cosi except: try: Vars['cosi'] = random.uniform(config.cosi_min,config.cosi_max) except: print "Cannot read in cosi variable" sys.exit(1) if(math.fabs(Vars['cosi']) > 1): print "abs(cosi) > 1 !!!" sys.exit(1) # Initial Phase try: Vars['phi0'] = config.phi0 except: try: Vars['phi0'] = random.uniform(config.phi0_min,config.phi0_max) except: print "Cannot read in phi0 variable" sys.exit(1) # Polarization Angle try: Vars['psi'] = config.psi except: try: Vars['psi'] = random.uniform(config.psi_min,config.psi_max) except: print "Cannot read in psi variable" sys.exit(1) # Number of Dirichlet terms used. try: Vars['Dterms'] = float(config.Dterms) except: print "Dterms cannot be read" sys.exit(1) # Interferometer try: IFOs = config.IFOs IFOs = IFOs.split(' ') NumofIFOs = len(IFOs) Vars['NumofIFOs'] = NumofIFOs Vars['IFO'] = [] for i in range(NumofIFOs): Vars['IFO'].append(IFOs[i]) except: print "IFO cannot be read" sys.exit(1) # Start Time try: t0 = config.t0 t0 = t0.split(' ') if(len(t0) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['t0'] = [] for i in range(NumofIFOs): Vars['t0'].append(float(t0[i])) except: print "t0 cannot be read" sys.exit(1) # Reference Time in SSB try: Vars['refTime'] = float(config.refTime) refString = ' --refTime ' + str(Vars['refTime']) except: refString = ' ' # Output Directory try: Vars['Out'] = config.Out + UniqueID except: print "Out cannot be read" sys.exit(1) # Ephemeris Directory try: Vars['Ephem'] = config.Ephem except: print "Ephem cannot be read" sys.exit(1) # Ephemeris Year try: Vars['EphemYear'] = config.EphemYear except: print "EphemYear cannot be read" sys.exit(1) # Noise Sh try: Vars['Sh'] = float(config.Sh) except: print "Sh cannot be read" sys.exit(1) # Duration of Analysis try: TSpan = config.TSpan TSpan = TSpan.split(' ') if(len(TSpan) != NumofIFOs): print "Number of TSpans != Number of IFOs" sys.exit(1) Vars['TSpan'] = [] for i in range(NumofIFOs): Vars['TSpan'].append(float(TSpan[i])) except: print "TSpan cannot be read" sys.exit(1) # Number of SFTs to add try: NumSFTs = config.NumSFTs NumSFTs = NumSFTs.split(' ') if(len(NumSFTs) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumSFTs'] = [] for i in range(NumofIFOs): Vars['NumSFTs'].append(int(NumSFTs[i])) except: print "NumSFTs cannot be read" sys.exit(1) # Number of Gaps to add try: NumGaps = config.NumGaps NumGaps = NumGaps.split(' ') if(len(NumGaps) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumGaps'] = [] for i in range(NumofIFOs): Vars['NumGaps'].append(int(NumGaps[i])) except: print "NumGaps cannot be read" sys.exit(1) # Alpha (Right Ascension) try: Vars['Alpha'] = config.Alpha except: try: Vars['Alpha'] = random.uniform(config.Alpha_min,config.Alpha_max) except: print "Cannot read in Alpha variable" sys.exit(1) if(Vars['Alpha'] < 0 or Vars['Alpha'] > 2.0*math.pi): print "Alpha out of bounds !!!" sys.exit(1) # Delta (Declination) try: Vars['Delta'] = config.Delta except: try: Vars['Delta'] = random.uniform(config.Delta_min,config.Delta_max) except: print "Cannot read in Delta variable" sys.exit(1) if(math.fabs(Vars['Delta']) > math.pi/2.0): print "abs(Delta) > pi/2 !!!" sys.exit(1) # Minimum Frequency try: Vars['Fmin'] = config.Fmin except: print "Fmin cannot be read" sys.exit(1) # Band of Analysis try: Vars['Band'] = config.Band except: print "Band cannot be read" sys.exit(1) # Injection Frequency try: Vars['Finj'] = config.Finj except: try: Vars['Finj'] = random.uniform(config.Finj_min,config.Finj_max) except: print "Cannot read in Finj variable" sys.exit(1) if(Vars['Finj'] < 0): print "Finj < 0 !!!" sys.exit(1) # Spindown/ FDOT try: Vars['FDot'] = config.FDot except: try: Vars['FDot'] = random.uniform(config.FDot_min,config.FDot_max) except: print "Cannot read in FDot variable" sys.exit(1) # FDOTBand try: Vars['FDotBand'] = config.FDotBand except: Vars['FDotBand'] = 0 #print "Cannot read in FDot variable" #sys.exit(1) # dFDot try: Vars['dFDot'] = config.dFDot except: Vars['dFDot'] = 10 # Resolution try: Vars['Res'] = config.Res if(Vars['Res'] > 1.0/Vars['TSpan'][0]): print "Resolution too low, set to 1/T" Vars['Res'] = 1.0/Vars['TSpan'][0] if(Vars['Res'] < 0): print "Resolution < 0" sys.exit(1) except: Vars['Res'] = 1.0/Vars['TSpan'][0] current = 0 for i in range(NumofIFOs): if(Vars['TSpan'][i] > Vars['TSpan'][current]): current = i Vars['Res'] = 1.0/Vars['TSpan'][i] # Debug Check try: Vars['debug'] = config.debug except: Vars['debug'] = 1.0 # F Threshold try: Vars['FThres'] = config.FThres except: Vars['FThres'] = 0 # Optional Output Variable from Resamp try: Vars['ResampOutput'] = config.ResampOutput except: Vars['ResampOutput'] = "MyTS" # Optional Use Your Own TimeStampsFile try: Vars['TimeStampsFile'] = config.TimeStampsFile TimeStampsFile_Is_Set = True except: Vars['TimeStampsFile'] = 'TimeStampsFile' + UniqueID TimeStampsFile_Is_Set = False # Print out all the variables (if Debug is on) if(Vars['debug']): print "---------- Configuration Variables --------- " PrintValues(Vars) print "-------------------------------------------- \n \n" # Create the Time Stamp File if(not(TimeStampsFile_Is_Set)): CreateTimeStampFile(Vars,UniqueID) # If running multiple time, delete all the old SFTs if(os.path.exists("./"+Vars['Out'])): try: shutil.rmtree(Vars['Out']) except: print "Could not delete old directory\n" sys.exit(1) try: os.mkdir(Vars['Out']) except: print "Something went wrong creating new directory\n" print "Permission trouble maybe\n" sys.exit(1) # Generate Fake data string for ifo in range(NumofIFOs): FakeDataString = GenFakeDataString(1,Vars,ifo,UniqueID,refString) if(Vars['debug']): print "----------- Makefakedata String ------------" print FakeDataString print "--------------------------------------------\n\n" # Generate the data try: G = commands.getoutput(FakeDataString) os.remove("timestampsFile"+Vars['IFO'][ifo]+UniqueID) except: print "Tried to generate SFTs, failed" sys.exit(1) # Run v2() OutputFileVLoudest = "OutputVLoudest" + UniqueID OutputFileVFstat = "OutputVFstat" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " " endstring = " " + refString V2DataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "----------- V2 String ------------" print V2DataString print "----------------------------------\n\n" print "----------- Running V2 -----------" (status,Voutput) = commands.getstatusoutput(V2DataString) if(status): print "V2 failed, Output was \n\n" print Voutput sys.exit(1) if(Vars['debug']): print "---------- V2 Done ---------------\n\n" # Run Resamp ResampLocation = "/home/ppatel/lalsuite/lalapps/src/pulsar/FDS_isolated/ResamplingFstat/" OutputFileRLoudest = "OutputRLoudest" + UniqueID OutputFileRFstat = "OutputRFstat" + UniqueID startstring = ResampLocation + "lalapps_ComputeFStatistic_resamp --outputFstat " + OutputFileRFstat + " --outputLoudest " + OutputFileRLoudest+ " -F " + str(Vars['FThres']) + " " endstring = " " + refString RDataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "-------- Resamp String -----------" print RDataString print "----------------------------------\n\n" print "--------- Running Resamp ---------" (status,Routput) = commands.getstatusoutput(RDataString) if(status): print "Resamp failed, Output was\n\n" print Routput sys.exit(0) if(Vars['debug']): print "---------- Resamp Done -----------\n\n" if(Vars['debug']): print "---------- Deleting SFT Folder ---------\n\n" try: shutil.rmtree(Vars['Out']) except: print " Could not delete SFT folder \n\n" sys.exit(1) FreqOutput = AnalyzeFreq(OutputFileRFstat,OutputFileVFstat,Vars['Finj'],Vars['Res']) LoudestOutput = AnalyzeLoudest(OutputFileRLoudest,OutputFileVLoudest) os.remove(OutputFileRLoudest) os.remove(OutputFileVLoudest) #os.remove(OutputFileRFstat) #os.remove(OutputFileVFstat) print FreqOutput,LoudestOutput return(0)
|
9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
5048,
11339,
1296,
980,
1775,
315,
1172,
1671,
2589,
18,
11241,
16,
315,
10858,
353,
3104,
9499,
18,
19485,
63,
20,
6487,
6,
411,
13705,
34,
288,
2278,
3588,
97,
315,
1172,
1671,
2589,
18,
11241,
16,
315,
9500,
310,
1372,
6265,
18460,
2589,
18,
8593,
12,
21,
13,
225,
775,
30,
642,
273,
1001,
5666,
972,
12,
9499,
18,
19485,
63,
21,
19226,
1335,
30,
1172,
315,
4515,
1930,
1903,
585,
19197,
9499,
18,
19485,
63,
21,
6487,
5187,
15702,
1372,
1199,
2589,
18,
8593,
12,
21,
13,
225,
14584,
734,
273,
875,
225,
468,
8155,
14584,
1599,
3588,
309,
12,
1897,
12,
9499,
18,
19485,
13,
1545,
890,
4672,
14584,
734,
1011,
4427,
397,
2589,
18,
19485,
63,
22,
65,
225,
468,
23536,
13348,
19,
10905,
27289,
273,
2618,
225,
468,
348,
4464,
813,
14243,
775,
30,
27289,
3292,
8047,
4464,
3546,
273,
642,
18,
8047,
4464,
1335,
30,
1172,
315,
8047,
4464,
2780,
506,
855,
6,
2589,
18,
8593,
12,
21,
13,
225,
468,
934,
13038,
434,
4277,
775,
30,
27289,
3292,
76,
20,
3546,
273,
642,
18,
76,
20,
1335,
30,
1172,
315,
76,
20,
2780,
506,
855,
6,
2589,
18,
8593,
12,
21,
13,
225,
468,
385,
538,
558,
434,
277,
25441,
775,
30,
27289,
3292,
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,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
5048,
11339,
1296,
980,
1775,
315,
1172,
1671,
2589,
18,
11241,
16,
315,
10858,
353,
3104,
9499,
18,
19485,
63,
20,
6487,
6,
411,
13705,
34,
288,
2278,
3588,
97,
315,
1172,
1671,
2589,
18,
11241,
16,
315,
9500,
310,
1372,
6265,
18460,
2589,
18,
8593,
12,
21,
13,
225,
775,
30,
642,
273,
1001,
5666,
972,
12,
9499,
18,
19485,
63,
21,
19226,
1335,
30,
1172,
315,
4515,
1930,
1903,
585,
19197,
9499,
18,
19485,
63,
21,
6487,
5187,
15702,
1372,
1199,
2
] |
self.info("adding device",device.get_usn())
|
self.info("adding device",device.get_id(),device.get_usn(),device.friendly_device_type)
|
def add_device(self, device): self.info("adding device",device.get_usn()) self.devices.append(device)
|
5f18715c13277788822c20ff6207c06ce8c3e650 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/5f18715c13277788822c20ff6207c06ce8c3e650/base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5964,
12,
2890,
16,
2346,
4672,
365,
18,
1376,
2932,
3439,
2346,
3113,
5964,
18,
588,
67,
350,
9334,
5964,
18,
588,
67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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5964,
12,
2890,
16,
2346,
4672,
365,
18,
1376,
2932,
3439,
2346,
3113,
5964,
18,
588,
67,
350,
9334,
5964,
18,
588,
67,
407,
82,
9334,
5964,
18,
29111,
67,
5964,
67,
723,
13,
365,
18,
12506,
18,
6923,
12,
5964,
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
] |
if pvpath not in pv.get_paths(): return False else: return False self.treeview.expand_to_path(path) selection.select_path(path) return True
|
if pvpath in pv.get_paths(): self.treeview.expand_to_path(path) selection.select_path(path) return True return False
|
def check_tree_items(self, model, path, iter, *args): # return True to stop foreach, False to continue if len(args) == 0: return True # don't go any further args_internal = [] for arg in args[0]: args_internal.append(arg) while len(args_internal) < 3: args_internal.append('') vgname = args_internal[0] lvpath = args_internal[1] pvpath = args_internal[2] selection = self.treeview.get_selection() type = model.get_value(iter, TYPE_COL) if type == VG_PHYS_TYPE: if vgname != '' and lvpath == '' and pvpath != '': vg = model.get_value(iter, OBJ_COL) if vgname != vg.get_name(): return False elif type == VG_LOG_TYPE: if vgname != '' and lvpath != '' and pvpath == '': vg = model.get_value(iter, OBJ_COL) if vgname != vg.get_name(): return False elif type == VG_TYPE: if vgname != '' and lvpath == '' and pvpath == '': vg = model.get_value(iter, OBJ_COL) if vgname != vg.get_name(): return False elif type == LOG_TYPE: if vgname == '' and lvpath != '' and pvpath == '': lv = model.get_value(iter, OBJ_COL) if lvpath != lv.get_path(): return False elif type == PHYS_TYPE or type == UNALLOCATED_TYPE or type == UNINITIALIZED_TYPE: if vgname == '' and lvpath == '' and pvpath != '': pv = model.get_value(iter, OBJ_COL) if pvpath not in pv.get_paths(): return False else: return False self.treeview.expand_to_path(path) selection.select_path(path) return True
|
e7d1fe8c3fd2a6e810c95082ec9fd77b841e23e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/e7d1fe8c3fd2a6e810c95082ec9fd77b841e23e1/Volume_Tab_View.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3413,
67,
3319,
12,
2890,
16,
938,
16,
589,
16,
1400,
16,
380,
1968,
4672,
468,
327,
1053,
358,
2132,
936,
16,
1083,
358,
1324,
225,
309,
562,
12,
1968,
13,
422,
374,
30,
327,
1053,
468,
2727,
1404,
1960,
1281,
9271,
833,
67,
7236,
273,
5378,
364,
1501,
316,
833,
63,
20,
14542,
833,
67,
7236,
18,
6923,
12,
3175,
13,
1323,
562,
12,
1968,
67,
7236,
13,
411,
890,
30,
833,
67,
7236,
18,
6923,
2668,
6134,
19524,
529,
273,
833,
67,
7236,
63,
20,
65,
5362,
803,
273,
833,
67,
7236,
63,
21,
65,
9770,
803,
273,
833,
67,
7236,
63,
22,
65,
225,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
618,
273,
938,
18,
588,
67,
1132,
12,
2165,
16,
3463,
67,
4935,
13,
309,
618,
422,
776,
43,
67,
8939,
61,
55,
67,
2399,
30,
309,
19524,
529,
480,
875,
471,
5362,
803,
422,
875,
471,
9770,
803,
480,
875,
30,
19524,
273,
938,
18,
588,
67,
1132,
12,
2165,
16,
9730,
46,
67,
4935,
13,
309,
19524,
529,
480,
19524,
18,
588,
67,
529,
13332,
327,
1083,
1327,
618,
422,
776,
43,
67,
4842,
67,
2399,
30,
309,
19524,
529,
480,
875,
471,
5362,
803,
480,
875,
471,
9770,
803,
422,
875,
30,
19524,
273,
938,
18,
588,
67,
1132,
12,
2165,
16,
9730,
46,
67,
4935,
13,
309,
19524,
529,
480,
19524,
18,
588,
67,
529,
13332,
327,
1083,
1327,
618,
422,
776,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3413,
67,
3319,
12,
2890,
16,
938,
16,
589,
16,
1400,
16,
380,
1968,
4672,
468,
327,
1053,
358,
2132,
936,
16,
1083,
358,
1324,
225,
309,
562,
12,
1968,
13,
422,
374,
30,
327,
1053,
468,
2727,
1404,
1960,
1281,
9271,
833,
67,
7236,
273,
5378,
364,
1501,
316,
833,
63,
20,
14542,
833,
67,
7236,
18,
6923,
12,
3175,
13,
1323,
562,
12,
1968,
67,
7236,
13,
411,
890,
30,
833,
67,
7236,
18,
6923,
2668,
6134,
19524,
529,
273,
833,
67,
7236,
63,
20,
65,
5362,
803,
273,
833,
67,
7236,
63,
21,
65,
9770,
803,
273,
833,
67,
7236,
63,
22,
65,
225,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
2
] |
choice = wikipedia.inputChoice(question, ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N')
|
choice = wikipedia.inputChoice(question, ['Yes', 'No', 'All', 'Quit'], ['y', 'N', 'a', 'q'], 'N')
|
def prompt(self, question): if not self.always: choice = wikipedia.inputChoice(question, ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice == 'n': return False elif choice == 'a': self.always = True return True
|
f97bb8ea050b55944ad5a41bb800341f7674f0a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/f97bb8ea050b55944ad5a41bb800341f7674f0a4/redirect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2890,
16,
5073,
4672,
309,
486,
365,
18,
17737,
30,
6023,
273,
21137,
18,
2630,
10538,
12,
4173,
16,
10228,
22352,
2187,
296,
2279,
2187,
296,
1595,
2187,
296,
25365,
17337,
10228,
93,
2187,
296,
50,
2187,
296,
69,
2187,
296,
85,
17337,
296,
50,
6134,
309,
6023,
422,
296,
82,
4278,
327,
1083,
1327,
6023,
422,
296,
69,
4278,
365,
18,
17737,
273,
1053,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6866,
12,
2890,
16,
5073,
4672,
309,
486,
365,
18,
17737,
30,
6023,
273,
21137,
18,
2630,
10538,
12,
4173,
16,
10228,
22352,
2187,
296,
2279,
2187,
296,
1595,
2187,
296,
25365,
17337,
10228,
93,
2187,
296,
50,
2187,
296,
69,
2187,
296,
85,
17337,
296,
50,
6134,
309,
6023,
422,
296,
82,
4278,
327,
1083,
1327,
6023,
422,
296,
69,
4278,
365,
18,
17737,
273,
1053,
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
] |
assert len(s.c) == 1 and s.c[0][1] == 5 and s.c[0][2] == ['testcode.com']
|
def test_close_remote_of_local_start(): up = DummyTransfer() down = DummyTransfer() s = DummyScheduler() c = Connecter(up, down, s, 5, 6) e = DummyEncrypter() c.set_encrypter(e) c.start_connecting(['testcode.com']) assert s.c == [] assert e.c == ['testcode.com'] del e.c[:] assert s.c == [] dc = DummyConnection('a' * 20, 'testcode.com') c.locally_initiated_connection_completed(dc) assert len(down.cs_made) == 1 and down.cs_made[0].get_id() == 'a' * 20 assert len(up.cs_made) == 0 assert s.c == [] assert e.c == ['testcode.com'] del e.c[:] assert dc.m == ['download'] del dc.m[:] down.cs_made[0].send_message('a') assert dc.m == ['a'] c.got_message(dc, 'b') assert down.m == [(down.cs_made[0], 'b')] assert not dc.closed c.connection_lost(dc) assert down.cs_lost == down.cs_made assert len(s.c) == 1 and s.c[0][1] == 5 and s.c[0][2] == ['testcode.com']
|
e515f2d77bfcdfdf465f07113b3fb94b00f492ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/e515f2d77bfcdfdf465f07113b3fb94b00f492ad/Connecter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4412,
67,
7222,
67,
792,
67,
3729,
67,
1937,
13332,
731,
273,
28622,
5912,
1435,
2588,
273,
28622,
5912,
1435,
272,
273,
28622,
11870,
1435,
276,
273,
8289,
264,
12,
416,
16,
2588,
16,
272,
16,
1381,
16,
1666,
13,
425,
273,
28622,
13129,
264,
1435,
276,
18,
542,
67,
15890,
264,
12,
73,
13,
276,
18,
1937,
67,
3612,
310,
12,
3292,
3813,
710,
18,
832,
19486,
1815,
272,
18,
71,
422,
5378,
1815,
425,
18,
71,
422,
10228,
3813,
710,
18,
832,
3546,
1464,
425,
18,
71,
10531,
65,
1815,
272,
18,
71,
422,
5378,
225,
6744,
273,
28622,
1952,
2668,
69,
11,
380,
4200,
16,
296,
3813,
710,
18,
832,
6134,
276,
18,
1829,
1230,
67,
2738,
10206,
67,
4071,
67,
13615,
12,
7201,
13,
1815,
562,
12,
2378,
18,
2143,
67,
81,
2486,
13,
422,
404,
471,
2588,
18,
2143,
67,
81,
2486,
63,
20,
8009,
588,
67,
350,
1435,
422,
296,
69,
11,
380,
4200,
1815,
562,
12,
416,
18,
2143,
67,
81,
2486,
13,
422,
374,
1815,
272,
18,
71,
422,
5378,
1815,
425,
18,
71,
422,
10228,
3813,
710,
18,
832,
3546,
1464,
425,
18,
71,
10531,
65,
1815,
6744,
18,
81,
422,
10228,
7813,
3546,
1464,
6744,
18,
81,
10531,
65,
225,
2588,
18,
2143,
67,
81,
2486,
63,
20,
8009,
4661,
67,
2150,
2668,
69,
6134,
1815,
6744,
18,
81,
422,
10228,
69,
3546,
225,
276,
18,
13212,
67,
2150,
12,
7201,
16,
296,
70,
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,
4412,
67,
7222,
67,
792,
67,
3729,
67,
1937,
13332,
731,
273,
28622,
5912,
1435,
2588,
273,
28622,
5912,
1435,
272,
273,
28622,
11870,
1435,
276,
273,
8289,
264,
12,
416,
16,
2588,
16,
272,
16,
1381,
16,
1666,
13,
425,
273,
28622,
13129,
264,
1435,
276,
18,
542,
67,
15890,
264,
12,
73,
13,
276,
18,
1937,
67,
3612,
310,
12,
3292,
3813,
710,
18,
832,
19486,
1815,
272,
18,
71,
422,
5378,
1815,
425,
18,
71,
422,
10228,
3813,
710,
18,
832,
3546,
1464,
425,
18,
71,
10531,
65,
1815,
272,
18,
71,
422,
5378,
225,
6744,
273,
28622,
1952,
2668,
69,
11,
380,
4200,
16,
296,
3813,
710,
18,
832,
6134,
276,
18,
2
] |
|
ReduceBlockFormat.labelBlock(cur,self.mode)
|
self.labelBlock(cur,self.mode)
|
def startElement(self,namespaceURI,localName,qName,atts):
|
a5e9c67f628fc6c698aaf406222a3db080933992 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/403/a5e9c67f628fc6c698aaf406222a3db080933992/qrxml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
4937,
3098,
16,
3729,
461,
16,
85,
461,
16,
270,
3428,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
4937,
3098,
16,
3729,
461,
16,
85,
461,
16,
270,
3428,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
text = re.sub(r'(<td nowrap align=right valign=top>template<).*?(>.*?)'+declPattern+r'(.*?</tr>)', r'\1...\2\3\4', text)
|
text = re.sub(r'(<td nowrap align=right valign=top>template<).*?(>.*?)'+declPattern+\ r'(.*?</tr>)', r'\1...\2\3\4', text)
|
def processFile(fileName): print fileName f = open(fileName) text = f.read() f.close() text = convertHeader(text) if not re.search(r'.*source.html', fileName): text = convertPage(text) else: text = convertSource(text) if re.search(r'.*/group__.*html', fileName): text = typedefField.sub(r'<br><b> \1</b><br> ', text) declPattern = findExplicitDeclarations(text) if declPattern: text = re.sub(r'(<td nowrap align=right valign=top>template<).*?(>.*?)'+declPattern+r'(.*?</tr>)', r'\1...\2\3\4', text) functionSignature = re.compile(r'<table cellpadding="0" cellspacing="0" border="0">\s*'+\ r'<tr>\s*<td class="md".*?>(.*?)'+declPattern+r' *</td>.*?</table>', re.S) text = functionSignature.sub(r'<br><b> \1\2 (...)</b><br> ', text) if re.search(r'.*/index.html', fileName): text = re.sub(r'<h3 align="center">\d+\.\d+\.\d+</h3>', '', text) if re.search(r'.*/namespacevigra.html', fileName): text = re.sub(r"template<.*?>", "template<...>", text) if re.search(r'.*/classes.html', fileName): text = re.sub(r'(<div class="ah">)( . )', r'\1<font color="white"><b>\2</b>', text) text = re.sub(r'\(<a class="el" href="namespace[^\)]*\)', '', text) f = open(fileName, 'w+') f.write(text) f.close()
|
88c123fa13334051c00d12e743af5ddd88d74756 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12582/88c123fa13334051c00d12e743af5ddd88d74756/post.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
812,
12,
17812,
4672,
1172,
3968,
284,
273,
1696,
12,
17812,
13,
977,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
225,
977,
273,
1765,
1864,
12,
955,
13,
309,
486,
283,
18,
3072,
12,
86,
11,
4509,
3168,
18,
2620,
2187,
3968,
4672,
977,
273,
1765,
1964,
12,
955,
13,
469,
30,
977,
273,
1765,
1830,
12,
955,
13,
309,
283,
18,
3072,
12,
86,
11,
4509,
19,
1655,
972,
4509,
2620,
2187,
3968,
4672,
977,
273,
618,
536,
974,
18,
1717,
12,
86,
11,
32,
2848,
4438,
70,
22393,
10600,
9747,
21,
1757,
70,
4438,
2848,
22393,
10600,
31,
2187,
977,
13,
3496,
3234,
273,
1104,
17186,
21408,
12,
955,
13,
309,
3496,
3234,
30,
282,
977,
273,
283,
18,
1717,
12,
86,
11,
12,
32,
4465,
2037,
1266,
5689,
33,
4083,
1244,
724,
33,
3669,
34,
3202,
10,
5618,
31,
31376,
35,
12,
10,
4521,
31,
23498,
2506,
15,
8840,
3234,
16971,
436,
11,
7444,
35,
1757,
313,
23429,
2187,
436,
8314,
21,
2777,
64,
22,
64,
23,
64,
24,
2187,
977,
13,
445,
5374,
273,
283,
18,
11100,
12,
86,
11,
32,
2121,
2484,
9598,
1546,
20,
6,
2484,
14080,
1546,
20,
6,
5795,
1546,
20,
6,
5333,
87,
4035,
16971,
436,
11,
32,
313,
5333,
87,
14,
32,
4465,
667,
1546,
1264,
6,
23498,
34,
7444,
28897,
15,
8840,
3234,
15,
86,
11,
380,
1757,
4465,
34,
23498,
1757,
2121,
1870,
16,
283,
18,
55,
13,
977,
273,
445,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
812,
12,
17812,
4672,
1172,
3968,
284,
273,
1696,
12,
17812,
13,
977,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
225,
977,
273,
1765,
1864,
12,
955,
13,
309,
486,
283,
18,
3072,
12,
86,
11,
4509,
3168,
18,
2620,
2187,
3968,
4672,
977,
273,
1765,
1964,
12,
955,
13,
469,
30,
977,
273,
1765,
1830,
12,
955,
13,
309,
283,
18,
3072,
12,
86,
11,
4509,
19,
1655,
972,
4509,
2620,
2187,
3968,
4672,
977,
273,
618,
536,
974,
18,
1717,
12,
86,
11,
32,
2848,
4438,
70,
22393,
10600,
9747,
21,
1757,
70,
4438,
2848,
22393,
10600,
31,
2187,
977,
13,
3496,
3234,
273,
1104,
17186,
21408,
12,
955,
13,
309,
3496,
3234,
2
] |
self.potentials = cmpotentials.__getattribute(self.potential_func)
|
self.potentials = cmpotentials.__getattribute__(self.potential_func)
|
def __init__(self, filename, *args, **kwargs): """Get results from file and instantiate variables. Opens file with handle saved as self._rf. File is closed in __del__""" #Start logging self._log = logging.getLogger('%s.%s' % (__name__, self.__class__.__name__)) #Check file exists if not os.path.isfile(filename): raise IOError("File does not exist!") try: self._log.debug("Opening file " + filename + " to read results.") try: self._rf = tables.openFile(filename, "r") self.yresult = self._rf.root.results.yresult self.tresult = self._rf.root.results.tresult self.fotstart = self._rf.root.results.fotstart self.foystart = self._rf.root.results.foystart params = self._rf.root.results.parameters except tables.NoSuchNodeError: raise ModelError("File does not contain correct model data structure!") #Put params in right slots for ix, val in enumerate(params[0]): self.__setattr__(params.colnames[ix], val) #set correct potential function (only works with cmpotentials currently) self.potentials = cmpotentials.__getattribute(self.potential_func) except IOError: raise
|
fbfb3bd10f1e28b79d13aaa1ffa69f964c6b3160 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/fbfb3bd10f1e28b79d13aaa1ffa69f964c6b3160/cosmomodels.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
967,
1686,
628,
585,
471,
10275,
3152,
18,
6066,
773,
585,
598,
1640,
5198,
487,
365,
6315,
5809,
18,
1387,
353,
4375,
316,
1001,
3771,
972,
8395,
468,
1685,
2907,
365,
6315,
1330,
273,
2907,
18,
588,
3328,
29909,
87,
7866,
87,
11,
738,
261,
972,
529,
972,
16,
365,
16186,
1106,
972,
16186,
529,
972,
3719,
225,
468,
1564,
585,
1704,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
3459,
4672,
1002,
8340,
2932,
812,
1552,
486,
1005,
4442,
13,
775,
30,
365,
6315,
1330,
18,
4148,
2932,
21378,
585,
315,
397,
1544,
397,
315,
358,
855,
1686,
1199,
13,
775,
30,
365,
6315,
5809,
273,
4606,
18,
3190,
812,
12,
3459,
16,
315,
86,
7923,
365,
18,
93,
2088,
273,
365,
6315,
5809,
18,
3085,
18,
4717,
18,
93,
2088,
365,
18,
88,
2088,
273,
365,
6315,
5809,
18,
3085,
18,
4717,
18,
88,
2088,
365,
18,
74,
352,
1937,
273,
365,
6315,
5809,
18,
3085,
18,
4717,
18,
74,
352,
1937,
365,
18,
617,
1094,
485,
273,
365,
6315,
5809,
18,
3085,
18,
4717,
18,
617,
1094,
485,
859,
273,
365,
6315,
5809,
18,
3085,
18,
4717,
18,
3977,
1335,
4606,
18,
28341,
907,
668,
30,
1002,
3164,
668,
2932,
812,
1552,
486,
912,
3434,
938,
501,
3695,
4442,
13,
468,
6426,
859,
316,
2145,
12169,
364,
8288,
16,
1244,
316,
4241,
12,
2010,
63,
20,
65,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
967,
1686,
628,
585,
471,
10275,
3152,
18,
6066,
773,
585,
598,
1640,
5198,
487,
365,
6315,
5809,
18,
1387,
353,
4375,
316,
1001,
3771,
972,
8395,
468,
1685,
2907,
365,
6315,
1330,
273,
2907,
18,
588,
3328,
29909,
87,
7866,
87,
11,
738,
261,
972,
529,
972,
16,
365,
16186,
1106,
972,
16186,
529,
972,
3719,
225,
468,
1564,
585,
1704,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
3459,
4672,
1002,
8340,
2932,
812,
1552,
486,
1005,
4442,
13,
775,
30,
365,
6315,
1330,
18,
4148,
2932,
21378,
585,
315,
397,
1544,
397,
315,
358,
855,
1686,
1199,
13,
775,
2
] |
dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE, full)
|
dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE)
|
def nosave_cancel_save_question(message, details="", line_wrap=True, markup=False): full = apply_template(template, (message, details), not markup) dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE, full) dialog.add_button(gtk.STOCK_NO, gtk.RESPONSE_NO) dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL) dialog.add_button(gtk.STOCK_SAVE, gtk.RESPONSE_OK) return run_dialog(dialog, line_wrap)
|
9d4d18bad052f25a1877233f866f77fec804794d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/9d4d18bad052f25a1877233f866f77fec804794d/simple.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26628,
836,
67,
10996,
67,
5688,
67,
4173,
12,
2150,
16,
3189,
1546,
3113,
980,
67,
4113,
33,
5510,
16,
9813,
33,
8381,
4672,
1983,
273,
2230,
67,
3202,
12,
3202,
16,
261,
2150,
16,
3189,
3631,
486,
9813,
13,
6176,
273,
22718,
18,
1079,
6353,
12,
2472,
18,
2938,
67,
5668,
16,
374,
16,
22718,
18,
8723,
67,
4740,
1146,
16,
22718,
18,
20068,
55,
67,
9826,
13,
6176,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
3417,
16,
22718,
18,
14508,
67,
3417,
13,
6176,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
25268,
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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,
26628,
836,
67,
10996,
67,
5688,
67,
4173,
12,
2150,
16,
3189,
1546,
3113,
980,
67,
4113,
33,
5510,
16,
9813,
33,
8381,
4672,
1983,
273,
2230,
67,
3202,
12,
3202,
16,
261,
2150,
16,
3189,
3631,
486,
9813,
13,
6176,
273,
22718,
18,
1079,
6353,
12,
2472,
18,
2938,
67,
5668,
16,
374,
16,
22718,
18,
8723,
67,
4740,
1146,
16,
22718,
18,
20068,
55,
67,
9826,
13,
6176,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
3417,
16,
22718,
18,
14508,
67,
3417,
13,
6176,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
25268,
16,
22718,
18,
14508,
67,
25268,
13,
6176,
18,
1289,
67,
5391,
12,
4521,
79,
18,
2
] |
dupList.append((trove.getName(), trove.getVersion().branch()))
|
dupList.append((name, version.branch()))
|
def _createBranchOrShadow(self, newLabel, troveList, shadow, sourceTroves): cs = changeset.ChangeSet()
|
c34f51cc2fef73ea21ec47717c92f3e52d53eff7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c34f51cc2fef73ea21ec47717c92f3e52d53eff7/conaryclient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
7108,
1162,
12957,
12,
2890,
16,
394,
2224,
16,
23432,
537,
682,
16,
10510,
16,
1084,
56,
303,
3324,
4672,
2873,
273,
22463,
18,
21565,
1435,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
7108,
1162,
12957,
12,
2890,
16,
394,
2224,
16,
23432,
537,
682,
16,
10510,
16,
1084,
56,
303,
3324,
4672,
2873,
273,
22463,
18,
21565,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this = apply(_quickfix.new_AllocAccountType, args)
|
this = _quickfix.new_AllocAccountType(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_AllocAccountType, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
3032,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
3032,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
logging.info("c=" + str(c))
|
def all_unclaimed(request): flat_changes = models.gql(models.Change, ' WHERE closed = FALSE' ' AND claimed = FALSE' ' ORDER BY dest_project DESC,' ' modified DESC').fetch(1000) changes = [] c_list = [] last_project_key = None for c in flat_changes: logging.info("c=" + str(c)) k = c.dest_project.key() if k != last_project_key: if c_list: _optimize_draft_counts(c_list) _prefetch_names(c_list) changes.append({ 'name': c.dest_project.name, 'changes': c_list, }) last_project_key = k c_list = [] c_list.append(c) if c_list: _optimize_draft_counts(c_list) _prefetch_names(c_list) changes.append({ 'name': c.dest_project.name, 'changes': c_list, }) vars = { 'projects': changes, } return respond(request, 'unclaimed.html', vars)
|
21dde3dea02192abdd07f8449036a6ee2bf52ca0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7193/21dde3dea02192abdd07f8449036a6ee2bf52ca0/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
551,
80,
4581,
329,
12,
2293,
4672,
3569,
67,
6329,
273,
3679,
18,
75,
1217,
12,
7665,
18,
3043,
16,
296,
4852,
4375,
273,
4934,
11,
296,
282,
4116,
7516,
329,
273,
4934,
11,
296,
10205,
6953,
1570,
67,
4406,
14326,
11189,
296,
282,
4358,
14326,
16063,
5754,
12,
18088,
13,
3478,
273,
5378,
276,
67,
1098,
273,
5378,
1142,
67,
4406,
67,
856,
273,
599,
364,
276,
316,
3569,
67,
6329,
30,
417,
273,
276,
18,
10488,
67,
4406,
18,
856,
1435,
309,
417,
480,
1142,
67,
4406,
67,
856,
30,
309,
276,
67,
1098,
30,
389,
29155,
67,
17153,
67,
8008,
12,
71,
67,
1098,
13,
389,
1484,
5754,
67,
1973,
12,
71,
67,
1098,
13,
3478,
18,
6923,
12590,
296,
529,
4278,
276,
18,
10488,
67,
4406,
18,
529,
16,
296,
6329,
4278,
276,
67,
1098,
16,
289,
13,
1142,
67,
4406,
67,
856,
273,
417,
276,
67,
1098,
273,
5378,
276,
67,
1098,
18,
6923,
12,
71,
13,
309,
276,
67,
1098,
30,
389,
29155,
67,
17153,
67,
8008,
12,
71,
67,
1098,
13,
389,
1484,
5754,
67,
1973,
12,
71,
67,
1098,
13,
3478,
18,
6923,
12590,
296,
529,
4278,
276,
18,
10488,
67,
4406,
18,
529,
16,
296,
6329,
4278,
276,
67,
1098,
16,
289,
13,
4153,
273,
288,
296,
13582,
4278,
3478,
16,
289,
225,
327,
6846,
12,
2293,
16,
296,
551,
80,
4581,
329,
18,
2620,
2187,
4153,
13,
225,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
551,
80,
4581,
329,
12,
2293,
4672,
3569,
67,
6329,
273,
3679,
18,
75,
1217,
12,
7665,
18,
3043,
16,
296,
4852,
4375,
273,
4934,
11,
296,
282,
4116,
7516,
329,
273,
4934,
11,
296,
10205,
6953,
1570,
67,
4406,
14326,
11189,
296,
282,
4358,
14326,
16063,
5754,
12,
18088,
13,
3478,
273,
5378,
276,
67,
1098,
273,
5378,
1142,
67,
4406,
67,
856,
273,
599,
364,
276,
316,
3569,
67,
6329,
30,
417,
273,
276,
18,
10488,
67,
4406,
18,
856,
1435,
309,
417,
480,
1142,
67,
4406,
67,
856,
30,
309,
276,
67,
1098,
30,
389,
29155,
67,
17153,
67,
8008,
12,
71,
67,
1098,
13,
389,
1484,
5754,
67,
1973,
12,
71,
67,
2
] |
|
self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8', 'surrogatepass'), b'\xf0\x90\x80\x82'*1000 )
|
if sys.maxunicode == 65535: self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8'), b'\xf0\x90\x80\x82'*1000)
|
def test_codecs_utf8(self): self.assertEqual(''.encode('utf-8'), b'') self.assertEqual('\u20ac'.encode('utf-8'), b'\xe2\x82\xac') self.assertEqual('\ud800\udc02'.encode('utf-8'), b'\xf0\x90\x80\x82') self.assertEqual('\ud84d\udc56'.encode('utf-8'), b'\xf0\xa3\x91\x96') self.assertEqual('\ud800'.encode('utf-8', 'surrogatepass'), b'\xed\xa0\x80') self.assertEqual('\udc00'.encode('utf-8', 'surrogatepass'), b'\xed\xb0\x80') self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8', 'surrogatepass'), b'\xf0\x90\x80\x82'*1000 ) self.assertEqual( '\u6b63\u78ba\u306b\u8a00\u3046\u3068\u7ffb\u8a33\u306f' '\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u4e00' '\u90e8\u306f\u30c9\u30a4\u30c4\u8a9e\u3067\u3059\u304c' '\u3001\u3042\u3068\u306f\u3067\u305f\u3089\u3081\u3067' '\u3059\u3002\u5b9f\u969b\u306b\u306f\u300cWenn ist das' ' Nunstuck git und'.encode('utf-8'), b'\xe6\xad\xa3\xe7\xa2\xba\xe3\x81\xab\xe8\xa8\x80\xe3\x81' b'\x86\xe3\x81\xa8\xe7\xbf\xbb\xe8\xa8\xb3\xe3\x81\xaf\xe3' b'\x81\x95\xe3\x82\x8c\xe3\x81\xa6\xe3\x81\x84\xe3\x81\xbe' b'\xe3\x81\x9b\xe3\x82\x93\xe3\x80\x82\xe4\xb8\x80\xe9\x83' b'\xa8\xe3\x81\xaf\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84\xe8' b'\xaa\x9e\xe3\x81\xa7\xe3\x81\x99\xe3\x81\x8c\xe3\x80\x81' b'\xe3\x81\x82\xe3\x81\xa8\xe3\x81\xaf\xe3\x81\xa7\xe3\x81' b'\x9f\xe3\x82\x89\xe3\x82\x81\xe3\x81\xa7\xe3\x81\x99\xe3' b'\x80\x82\xe5\xae\x9f\xe9\x9a\x9b\xe3\x81\xab\xe3\x81\xaf' b'\xe3\x80\x8cWenn ist das Nunstuck git und' )
|
164d99a48e003fbd6b48257ebb57e00eed1d9117 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/164d99a48e003fbd6b48257ebb57e00eed1d9117/test_unicode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
710,
2143,
67,
3158,
28,
12,
2890,
4672,
365,
18,
11231,
5812,
2668,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
11,
6134,
365,
18,
11231,
5812,
2668,
64,
89,
3462,
1077,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
6554,
22,
64,
92,
11149,
64,
92,
1077,
6134,
365,
18,
11231,
5812,
2668,
64,
1100,
17374,
64,
1100,
71,
3103,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
5841,
20,
64,
92,
9349,
64,
92,
3672,
64,
92,
11149,
6134,
365,
18,
11231,
5812,
2668,
64,
1100,
5193,
72,
64,
1100,
71,
4313,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
5841,
20,
64,
6995,
23,
64,
92,
12416,
64,
92,
10525,
6134,
365,
18,
11231,
5812,
2668,
64,
1100,
17374,
10332,
3015,
2668,
3158,
17,
28,
2187,
296,
10050,
15283,
5466,
19899,
324,
8314,
92,
329,
64,
6995,
20,
64,
92,
3672,
6134,
365,
18,
11231,
5812,
2668,
64,
1100,
71,
713,
10332,
3015,
2668,
3158,
17,
28,
2187,
296,
10050,
15283,
5466,
19899,
324,
8314,
92,
329,
64,
6114,
20,
64,
92,
3672,
6134,
309,
2589,
18,
1896,
9124,
422,
10147,
30,
365,
18,
11231,
5812,
12,
7707,
64,
1100,
17374,
64,
1100,
71,
3103,
11,
14,
18088,
2934,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
5841,
20,
64,
92,
9349,
64,
92,
3672,
64,
92,
11149,
11,
14,
18088,
13,
365,
18,
11231,
5812,
12,
2337,
89,
26,
70,
4449,
64,
89,
8285,
12124,
64,
89,
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,
710,
2143,
67,
3158,
28,
12,
2890,
4672,
365,
18,
11231,
5812,
2668,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
11,
6134,
365,
18,
11231,
5812,
2668,
64,
89,
3462,
1077,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
6554,
22,
64,
92,
11149,
64,
92,
1077,
6134,
365,
18,
11231,
5812,
2668,
64,
1100,
17374,
64,
1100,
71,
3103,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
5841,
20,
64,
92,
9349,
64,
92,
3672,
64,
92,
11149,
6134,
365,
18,
11231,
5812,
2668,
64,
1100,
5193,
72,
64,
1100,
71,
4313,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
8314,
5841,
20,
64,
6995,
23,
64,
92,
12416,
64,
92,
10525,
2
] |
assert len(cols) == 3, "I don't understand RX line %s" \ % line
|
if line[:22] != 'RX MEDLINE; 99132301': assert len(cols) == 3, "I don't understand RX line %s" \ % line
|
def reference_cross_reference(self, line): assert self.data.references, "RX: missing RN" cols = string.split(line) assert len(cols) == 3, "I don't understand RX line %s" \ % line self.data.references[-1].references.append( (self._chomp(cols[1]), self._chomp(cols[2])))
|
97cab9650c77db8e14e2b14bc9d0c8eb9fc29a26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/97cab9650c77db8e14e2b14bc9d0c8eb9fc29a26/SProt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2114,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
1815,
365,
18,
892,
18,
14353,
16,
315,
54,
60,
30,
3315,
534,
50,
6,
5347,
273,
533,
18,
4939,
12,
1369,
13,
309,
980,
10531,
3787,
65,
480,
296,
54,
60,
282,
17226,
5997,
31,
2468,
12416,
1578,
31831,
4278,
282,
1815,
562,
12,
6842,
13,
422,
890,
16,
315,
45,
2727,
1404,
22413,
534,
60,
980,
738,
87,
6,
521,
738,
980,
365,
18,
892,
18,
14353,
18919,
21,
8009,
14353,
18,
6923,
12,
261,
2890,
6315,
343,
20667,
12,
6842,
63,
21,
65,
3631,
365,
6315,
343,
20667,
12,
6842,
63,
22,
65,
20349,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2114,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
1815,
365,
18,
892,
18,
14353,
16,
315,
54,
60,
30,
3315,
534,
50,
6,
5347,
273,
533,
18,
4939,
12,
1369,
13,
309,
980,
10531,
3787,
65,
480,
296,
54,
60,
282,
17226,
5997,
31,
2468,
12416,
1578,
31831,
4278,
282,
1815,
562,
12,
6842,
13,
422,
890,
16,
315,
45,
2727,
1404,
22413,
534,
60,
980,
738,
87,
6,
521,
738,
980,
365,
18,
892,
18,
14353,
18919,
21,
8009,
14353,
18,
6923,
12,
261,
2890,
6315,
343,
20667,
12,
6842,
63,
21,
65,
3631,
365,
6315,
343,
20667,
12,
6842,
63,
22,
65,
20349,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IPATH=['pandaapp/src/indexify'] OPTS=['NSPR', 'FREETYPE'] CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='font-samples_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='fontSamples.cxx', obj='font-samples_fontSamples.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='font-samples.exe', obj=[ 'font-samples_default_font.obj', 'font-samples_fontSamples.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ]) CompileC(ipath=IPATH, opts=OPTS, src='default_index_icons.cxx', obj='indexify_default_index_icons.obj') CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='indexify_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexImage.cxx', obj='indexify_indexImage.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexParameters.cxx', obj='indexify_indexParameters.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexify.cxx', obj='indexify_indexify.obj') CompileC(ipath=IPATH, opts=OPTS, src='photo.cxx', obj='indexify_photo.obj') CompileC(ipath=IPATH, opts=OPTS, src='rollDirectory.cxx', obj='indexify_rollDirectory.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='indexify.exe', obj=[ 'indexify_default_index_icons.obj', 'indexify_default_font.obj', 'indexify_indexImage.obj', 'indexify_indexParameters.obj', 'indexify_indexify.obj', 'indexify_photo.obj', 'indexify_rollDirectory.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ])
|
if OMIT.count("FREETYPE")==0: IPATH=['pandaapp/src/indexify'] OPTS=['NSPR', 'FREETYPE'] CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='font-samples_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='fontSamples.cxx', obj='font-samples_fontSamples.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='font-samples.exe', obj=[ 'font-samples_default_font.obj', 'font-samples_fontSamples.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ]) CompileC(ipath=IPATH, opts=OPTS, src='default_index_icons.cxx', obj='indexify_default_index_icons.obj') CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='indexify_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexImage.cxx', obj='indexify_indexImage.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexParameters.cxx', obj='indexify_indexParameters.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexify.cxx', obj='indexify_indexify.obj') CompileC(ipath=IPATH, opts=OPTS, src='photo.cxx', obj='indexify_photo.obj') CompileC(ipath=IPATH, opts=OPTS, src='rollDirectory.cxx', obj='indexify_rollDirectory.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='indexify.exe', obj=[ 'indexify_default_index_icons.obj', 'indexify_default_font.obj', 'indexify_indexImage.obj', 'indexify_indexParameters.obj', 'indexify_indexify.obj', 'indexify_photo.obj', 'indexify_rollDirectory.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ])
|
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
|
e594b1b5a2c778da65602d37638829ada0570895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e594b1b5a2c778da65602d37638829ada0570895/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 sqlite_setup_debug:
|
if sqlite_setup_debug:
|
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
3dc6bb3c25dd2834b198a4bbcff2f9b760d1a2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3dc6bb3c25dd2834b198a4bbcff2f9b760d1a2d9/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
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
] |
self.logging.info("Your job identifier is: %s" % jOut['parent'])
|
self.logging.debug("Your job identifier is: %s" % jOut['parent'])
|
def submit( self, obj, requirements='', config ='', service='' ): """ submit a jdl to glite ends with a call to retrieve wms and job,gridid asssociation """
|
af73757b0c98ae0e16acafa0aa11965bd06b6805 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/af73757b0c98ae0e16acafa0aa11965bd06b6805/SchedulerGLite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
12,
365,
16,
1081,
16,
8433,
2218,
2187,
642,
273,
11,
2187,
1156,
2218,
11,
262,
30,
3536,
4879,
279,
525,
5761,
358,
5118,
1137,
3930,
598,
279,
745,
358,
4614,
341,
959,
471,
1719,
16,
5222,
350,
487,
1049,
1882,
367,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
11,
2187,
1156,
2218,
11,
262,
30,
3536,
4879,
279,
525,
5761,
358,
5118,
1137,
3930,
598,
279,
745,
358,
4614,
341,
959,
471,
1719,
16,
5222,
350,
487,
1049,
1882,
367,
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
] |
build_nsc() except CommandError: print " config.documentElement.removeChild(nsc_config)
|
try: build_nsc() except CommandError: print " config.documentElement.removeChild(nsc_config)
|
def main(argv): parser = OptionParser() parser.add_option('--disable-nsc', help=("Don't try to build NSC"), action="store_true", default=False, dest='disable_nsc') (options, args) = parser.parse_args() cwd = os.getcwd() try: dot_config = open(".config", "rt") except IOError: print >> sys.stderr, "** ERROR: missing .config file; you probably need to run the download.py script first." sys.exit(2) config = dom.parse(dot_config) dot_config.close() if options.disable_nsc: print "# Skip NSC (by user request)" for node in config.getElementsByTagName("nsc"): config.documentElement.removeChild(node) elif sys.platform in ['darwin', 'win32']: print "# Skip NSC (platform not supported)" else: nsc_config_elems = config.getElementsByTagName("nsc") if nsc_config_elems: nsc_config, = nsc_config_elems nsc_dir = nsc_config.getAttribute("dir") print "# Build NSC" os.chdir(nsc_dir) print "Entering directory `%s'" % nsc_dir try: build_nsc() except CommandError: print "# Build NSC: failure (ignoring NSC)" config.documentElement.removeChild(nsc_config) finally: os.chdir(cwd) print "Leaving directory `%s'" % nsc_dir print "# Build NS-3" ns3_config, = config.getElementsByTagName("ns-3") d = os.path.join(os.path.dirname(__file__), ns3_config.getAttribute("dir")) print "Entering directory `%s'" % d os.chdir(d) try: build_ns3(config) finally: os.chdir(cwd) print "Leaving directory `%s'" % d return 0
|
3c19bc02ed7a52f80f2ae0ee98ac6baa5372585c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9391/3c19bc02ed7a52f80f2ae0ee98ac6baa5372585c/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2668,
413,
8394,
17,
82,
1017,
2187,
2809,
33,
2932,
22293,
1404,
775,
358,
1361,
423,
2312,
6,
3631,
1301,
1546,
2233,
67,
3767,
3113,
805,
33,
8381,
16,
1570,
2218,
8394,
67,
82,
1017,
6134,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
7239,
273,
1140,
18,
588,
11089,
1435,
225,
775,
30,
3928,
67,
1425,
273,
1696,
2932,
18,
1425,
3113,
315,
3797,
7923,
1335,
8340,
30,
1172,
1671,
2589,
18,
11241,
16,
28078,
5475,
30,
3315,
263,
1425,
585,
31,
1846,
8656,
1608,
358,
1086,
326,
4224,
18,
2074,
2728,
1122,
1199,
2589,
18,
8593,
12,
22,
13,
225,
642,
273,
4092,
18,
2670,
12,
9811,
67,
1425,
13,
3928,
67,
1425,
18,
4412,
1435,
225,
309,
702,
18,
8394,
67,
82,
1017,
30,
1172,
6619,
6611,
423,
2312,
261,
1637,
729,
590,
2225,
364,
756,
316,
642,
18,
588,
3471,
10401,
2932,
82,
1017,
6,
4672,
642,
18,
5457,
1046,
18,
4479,
1763,
12,
2159,
13,
1327,
2589,
18,
9898,
316,
10228,
28076,
2187,
296,
8082,
1578,
3546,
30,
1172,
6619,
6611,
423,
2312,
261,
9898,
486,
3260,
2225,
469,
30,
290,
1017,
67,
1425,
67,
292,
7424,
273,
642,
18,
588,
3471,
10401,
2932,
82,
1017,
7923,
309,
290,
1017,
67,
1425,
67,
292,
7424,
30,
290,
1017,
67,
1425,
16,
273,
290,
1017,
67,
1425,
67,
292,
7424,
290,
1017,
67,
1214,
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,
12,
19485,
4672,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2668,
413,
8394,
17,
82,
1017,
2187,
2809,
33,
2932,
22293,
1404,
775,
358,
1361,
423,
2312,
6,
3631,
1301,
1546,
2233,
67,
3767,
3113,
805,
33,
8381,
16,
1570,
2218,
8394,
67,
82,
1017,
6134,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
7239,
273,
1140,
18,
588,
11089,
1435,
225,
775,
30,
3928,
67,
1425,
273,
1696,
2932,
18,
1425,
3113,
315,
3797,
7923,
1335,
8340,
30,
1172,
1671,
2589,
18,
11241,
16,
28078,
5475,
30,
3315,
263,
1425,
585,
31,
1846,
8656,
1608,
358,
1086,
326,
4224,
18,
2074,
2728,
1122,
1199,
2589,
18,
8593,
12,
22,
2
] |
self.enableHandles(['z-post','z-ring','z-disc'])
|
self.enableHandles(['z-post','z-ring','z-disc', 'z-scale'])
|
def enableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.enableHandle(handle) elif handles == 'x': self.enableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.enableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.enableHandles(['z-post','z-ring','z-disc']) elif handles == 'post': self.enableHandles(['x-post','y-post','z-post']) elif handles == 'ring': self.enableHandles(['x-ring','y-ring','z-ring']) elif handles == 'disc': self.enableHandles(['x-disc','y-disc','z-disc']) elif handles == 'all': self.enableHandles(['x-post','x-ring','x-disc', 'y-post','y-ring','y-disc', 'z-post','z-ring','z-disc'])
|
e6d5ec494707be9dddb9b6144cebc352a9bae73c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/e6d5ec494707be9dddb9b6144cebc352a9bae73c/DirectManipulation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
8788,
12,
2890,
16,
7372,
4672,
309,
618,
12,
24111,
13,
422,
1953,
18,
19366,
30,
364,
1640,
316,
7372,
30,
365,
18,
7589,
3259,
12,
4110,
13,
1327,
7372,
422,
296,
92,
4278,
365,
18,
7589,
8788,
12,
3292,
92,
17,
2767,
17023,
92,
17,
8022,
17023,
92,
17,
2251,
71,
19486,
1327,
7372,
422,
296,
93,
4278,
365,
18,
7589,
8788,
12,
3292,
93,
17,
2767,
17023,
93,
17,
8022,
17023,
93,
17,
2251,
71,
19486,
1327,
7372,
422,
296,
94,
4278,
365,
18,
7589,
8788,
12,
3292,
94,
17,
2767,
17023,
94,
17,
8022,
17023,
94,
17,
2251,
71,
2187,
296,
94,
17,
5864,
19486,
1327,
7372,
422,
296,
2767,
4278,
365,
18,
7589,
8788,
12,
3292,
92,
17,
2767,
17023,
93,
17,
2767,
17023,
94,
17,
2767,
19486,
1327,
7372,
422,
296,
8022,
4278,
365,
18,
7589,
8788,
12,
3292,
92,
17,
8022,
17023,
93,
17,
8022,
17023,
94,
17,
8022,
19486,
1327,
7372,
422,
296,
2251,
71,
4278,
365,
18,
7589,
8788,
12,
3292,
92,
17,
2251,
71,
17023,
93,
17,
2251,
71,
17023,
94,
17,
2251,
71,
19486,
1327,
7372,
422,
296,
454,
4278,
365,
18,
7589,
8788,
12,
3292,
92,
17,
2767,
17023,
92,
17,
8022,
17023,
92,
17,
2251,
71,
2187,
296,
93,
17,
2767,
17023,
93,
17,
8022,
17023,
93,
17,
2251,
71,
2187,
296,
94,
17,
2767,
17023,
94,
17,
8022,
17023,
94,
17,
2251,
71,
19486,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
8788,
12,
2890,
16,
7372,
4672,
309,
618,
12,
24111,
13,
422,
1953,
18,
19366,
30,
364,
1640,
316,
7372,
30,
365,
18,
7589,
3259,
12,
4110,
13,
1327,
7372,
422,
296,
92,
4278,
365,
18,
7589,
8788,
12,
3292,
92,
17,
2767,
17023,
92,
17,
8022,
17023,
92,
17,
2251,
71,
19486,
1327,
7372,
422,
296,
93,
4278,
365,
18,
7589,
8788,
12,
3292,
93,
17,
2767,
17023,
93,
17,
8022,
17023,
93,
17,
2251,
71,
19486,
1327,
7372,
422,
296,
94,
4278,
365,
18,
7589,
8788,
12,
3292,
94,
17,
2767,
17023,
94,
17,
8022,
17023,
94,
17,
2251,
71,
2187,
296,
94,
17,
5864,
19486,
1327,
7372,
422,
296,
2767,
4278,
365,
18,
7589,
2
] |
DebugInfo(0, 'ERROR: Unable to match ProbeType ' + ProbeType +
|
DebugPrint(0, 'ERROR: Unable to match ProbeType ' + ProbeType +
|
def readCertInfo(localJobId, probeName) " Look for and read contents of cert info file if present" global Config if localJobId == None: return # No LocalJobId, so no dice matching_files = glob(Config.get_DataFolder() + 'gratia_certinfo_*_' + localJobId + '*') if matching_files == None or len(matching_files == 0): return # No files if len(matching_files) == 1: certinfo = matching_files[0] # simple else: # Need to whittle it down # Need probe type match = re.search(r'^(?P<Type>.*?):', probeName) if match: ProbeType = string.lower(match.group("Type")) else: DebugPrint(0, 'Error: Unable to ascertain ProbeType to match against multiple certinfo entries') return JobManagers = [] for f in matching_files: match = re.search(r'gratia_certinfo_(?P<JobManger>.*?)_', f) if match: JobManager = string.lower(match.group("JobManager")) JobManagers.append(JobManager) if ProbeType == JobManager or \ (ProbeType == "condor" and \ (JobManager == "condor" or \ JobManager == "managedfork" or \ JobManager == "cemon")) or \ (ProbeType == "pbs-lsf" and \ (JobManager == "pbs" or \ JobManager == "lsf")): cert_info = f break if certinfo == None: # Problem: multiple possibilities but no match. DebugInfo(0, 'ERROR: Unable to match ProbeType ' + ProbeType + ' to JobManagers: ' + string.join(JobManagers, ', ')) return try: certinfo_doc = xml.dom.minimdom.parse(certinfo) except e: DebugInfo(0, 'ERROR: Unable to parse XML file ' + certinfo) return # Next, find the correct information and send it back. certinfo_nodes = certinfo_doc.getElementsByTagName('GratiaCertInfo') if certinfo_nodes.length == 1: return { "DN": GetNodeData(certinfo_nodes[0].getElementsByTagName('DN'), 0), "VO": GetNodeData(certinfo_nodes[0].getElementsByTagName('VO'), 0), "FQAN": GetNodeData(certinfo_nodes[0].getElementsByTagName('FQAN'), 0) } else: DebugInfo(0, 'ERROR: certinfo file ' + certinfo + ' does not contain one valid GratiaCertInfo node') return
|
51ede0c708fe8defac686f35f9a8d75038b92238 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/51ede0c708fe8defac686f35f9a8d75038b92238/Gratia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
5461,
966,
12,
3729,
23378,
16,
10695,
461,
13,
315,
10176,
364,
471,
855,
2939,
434,
3320,
1123,
585,
309,
3430,
6,
2552,
1903,
225,
309,
1191,
23378,
422,
599,
30,
327,
468,
2631,
3566,
23378,
16,
1427,
1158,
302,
1812,
225,
3607,
67,
2354,
273,
4715,
12,
809,
18,
588,
67,
751,
3899,
1435,
397,
296,
3197,
270,
1155,
67,
7593,
1376,
67,
14,
4623,
397,
1191,
23378,
397,
5306,
13,
309,
3607,
67,
2354,
422,
599,
578,
562,
12,
16271,
67,
2354,
422,
374,
4672,
327,
468,
2631,
1390,
309,
562,
12,
16271,
67,
2354,
13,
422,
404,
30,
3320,
1376,
273,
3607,
67,
2354,
63,
20,
65,
468,
4143,
469,
30,
468,
12324,
358,
600,
7188,
518,
2588,
468,
12324,
10695,
618,
845,
273,
283,
18,
3072,
12,
86,
19856,
3680,
52,
32,
559,
34,
23498,
4672,
2187,
10695,
461,
13,
309,
845,
30,
25490,
559,
273,
533,
18,
8167,
12,
1916,
18,
1655,
2932,
559,
6,
3719,
469,
30,
4015,
5108,
12,
20,
16,
296,
668,
30,
18640,
358,
6972,
1051,
530,
25490,
559,
358,
845,
5314,
3229,
3320,
1376,
3222,
6134,
327,
225,
3956,
17570,
273,
5378,
364,
284,
316,
3607,
67,
2354,
30,
845,
273,
283,
18,
3072,
12,
86,
11,
3197,
270,
1155,
67,
7593,
1376,
67,
3680,
52,
32,
2278,
49,
11455,
34,
4509,
8535,
67,
2187,
284,
13,
309,
845,
30,
3956,
1318,
273,
533,
18,
8167,
12,
1916,
18,
1655,
2932,
2278,
1318,
6,
3719,
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,
5461,
966,
12,
3729,
23378,
16,
10695,
461,
13,
315,
10176,
364,
471,
855,
2939,
434,
3320,
1123,
585,
309,
3430,
6,
2552,
1903,
225,
309,
1191,
23378,
422,
599,
30,
327,
468,
2631,
3566,
23378,
16,
1427,
1158,
302,
1812,
225,
3607,
67,
2354,
273,
4715,
12,
809,
18,
588,
67,
751,
3899,
1435,
397,
296,
3197,
270,
1155,
67,
7593,
1376,
67,
14,
4623,
397,
1191,
23378,
397,
5306,
13,
309,
3607,
67,
2354,
422,
599,
578,
562,
12,
16271,
67,
2354,
422,
374,
4672,
327,
468,
2631,
1390,
309,
562,
12,
16271,
67,
2354,
13,
422,
404,
30,
3320,
1376,
273,
3607,
67,
2354,
63,
20,
65,
468,
4143,
469,
30,
468,
12324,
358,
2
] |
file_id = inv.path2id(dirname)
|
try: file_id = inv.path2id(dirname) except errors.NoSuchId: raise KeyError
|
def _get_directory_entry(self, inv, dirname): """Get the inventory entry for a directory. Raises KeyError if dirname is not a directory in inv. """ result = self.directory_entries.get(dirname) if result is None: file_id = inv.path2id(dirname) if file_id is None: raise KeyError result = inv[file_id] # dirname must be a directory for us to return it if result.kind == 'directory': self.directory_entries[dirname] = result else: raise KeyError return result
|
bf71ea3dd380bba08a387d703f875d737fc56c48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8703/bf71ea3dd380bba08a387d703f875d737fc56c48/bzr_commit_handler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
4099,
12,
2890,
16,
2198,
16,
4283,
4672,
3536,
967,
326,
13086,
1241,
364,
279,
1867,
18,
225,
20497,
4999,
309,
4283,
353,
486,
279,
1867,
316,
2198,
18,
3536,
563,
273,
365,
18,
5149,
67,
8219,
18,
588,
12,
12287,
13,
309,
563,
353,
599,
30,
775,
30,
585,
67,
350,
273,
2198,
18,
803,
22,
350,
12,
12287,
13,
1335,
1334,
18,
28341,
548,
30,
225,
1002,
4999,
309,
585,
67,
350,
353,
599,
30,
1002,
4999,
563,
273,
2198,
63,
768,
67,
350,
65,
468,
4283,
1297,
506,
279,
1867,
364,
584,
358,
327,
518,
309,
563,
18,
9224,
422,
296,
5149,
4278,
365,
18,
5149,
67,
8219,
63,
12287,
65,
273,
563,
469,
30,
1002,
4999,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
4099,
12,
2890,
16,
2198,
16,
4283,
4672,
3536,
967,
326,
13086,
1241,
364,
279,
1867,
18,
225,
20497,
4999,
309,
4283,
353,
486,
279,
1867,
316,
2198,
18,
3536,
563,
273,
365,
18,
5149,
67,
8219,
18,
588,
12,
12287,
13,
309,
563,
353,
599,
30,
775,
30,
585,
67,
350,
273,
2198,
18,
803,
22,
350,
12,
12287,
13,
1335,
1334,
18,
28341,
548,
30,
225,
1002,
4999,
309,
585,
67,
350,
353,
599,
30,
1002,
4999,
563,
273,
2198,
63,
768,
67,
350,
65,
468,
4283,
1297,
506,
279,
1867,
364,
584,
358,
327,
518,
309,
563,
18,
9224,
422,
296,
5149,
4278,
365,
18,
5149,
67,
8219,
63,
12287,
2
] |
if archDuplicate(pkg["arch"], r["arch"]):
|
if archDuplicate(pkg["arch"], r["arch"]) or \ pkg["arch"] == "noarch" or r["arch"] == "noarch":
|
def _update(self, pkg): key = pkg["name"]
|
d7906f54f6373f535e1c3d6164c3cf9977435487 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d7906f54f6373f535e1c3d6164c3cf9977435487/rpmlist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
2890,
16,
3475,
4672,
498,
273,
3475,
9614,
529,
11929,
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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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
] |
center = NSPoint(x+0.5, y+0.5)
|
center = NSPoint(x, y)
|
def arc(self, x, y, radius, angle1, angle2): angle1 = (angle1 * 360) / (2 * math.pi) angle2 = (angle2 * 360) / (2 * math.pi) center = NSPoint(x+0.5, y+0.5) self.path.appendBezierPathWithArcWithCenter_radius_startAngle_endAngle_(center, radius, angle1, angle2)
|
7af73c640649652e07cd279503aaf09d6ef77de1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/7af73c640649652e07cd279503aaf09d6ef77de1/drawing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8028,
12,
2890,
16,
619,
16,
677,
16,
5725,
16,
5291,
21,
16,
5291,
22,
4672,
5291,
21,
273,
261,
4341,
21,
380,
12360,
13,
342,
261,
22,
380,
4233,
18,
7259,
13,
5291,
22,
273,
261,
4341,
22,
380,
12360,
13,
342,
261,
22,
380,
4233,
18,
7259,
13,
4617,
273,
11472,
2148,
12,
92,
16,
677,
13,
365,
18,
803,
18,
6923,
1919,
18377,
743,
1190,
14598,
1190,
8449,
67,
11282,
67,
1937,
8467,
67,
409,
8467,
67,
12,
5693,
16,
5725,
16,
5291,
21,
16,
5291,
22,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8028,
12,
2890,
16,
619,
16,
677,
16,
5725,
16,
5291,
21,
16,
5291,
22,
4672,
5291,
21,
273,
261,
4341,
21,
380,
12360,
13,
342,
261,
22,
380,
4233,
18,
7259,
13,
5291,
22,
273,
261,
4341,
22,
380,
12360,
13,
342,
261,
22,
380,
4233,
18,
7259,
13,
4617,
273,
11472,
2148,
12,
92,
16,
677,
13,
365,
18,
803,
18,
6923,
1919,
18377,
743,
1190,
14598,
1190,
8449,
67,
11282,
67,
1937,
8467,
67,
409,
8467,
67,
12,
5693,
16,
5725,
16,
5291,
21,
16,
5291,
22,
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
] |
key4 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s\\%s\\%s" % (iid, version, lcid)) for platform, dll in EnumKeys(key4): if platform=="win32": major = string.split(version, '.', 1) if len(major) < 2: major.append('0') try: major, minor = string.atoi(major[0], 16), string.atoi(major[1], 16) lcid = string.atoi(lcid,16) except ValueError: continue spec = TypelibSpec(iid, lcid, major, minor, flags) spec.desc = tlbdesc spec.ver_desc = tlbdesc + " (" + version + ")" spec.dll = dll results.append(spec)
|
try: lcid = int(lcid) except ValueError: continue try: key4 = win32api.RegOpenKey(key3, "%s\win32" % (lcid,)) except win32api.error: continue try: dll = win32api.RegQueryValue(key4, None) except win32api.error: dll = None spec = TypelibSpec(iid, lcid, major, minor, flags) spec.dll = dll spec.desc = tlbdesc spec.ver_desc = tlbdesc + " (" + version + ")" results.append(spec)
|
def EnumTlbs(excludeFlags = 0): """Return a list of TypelibSpec objects, one for each registered library. """ key = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib") iids = EnumKeys(key) results = [] for iid, crap in iids: key2 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s" % (iid)) for version, tlbdesc in EnumKeys(key2): key3 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s\\%s" % (iid, version)) try: # The "FLAGS" are at this point flags = int(win32api.RegQueryValue(key3, "FLAGS")) except (win32api.error, ValueError): flags = 0 if flags & excludeFlags==0: for lcid, crap in EnumKeys(key3): key4 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s\\%s\\%s" % (iid, version, lcid)) for platform, dll in EnumKeys(key4): if platform=="win32": major = string.split(version, '.', 1) if len(major) < 2: major.append('0') try: major, minor = string.atoi(major[0], 16), string.atoi(major[1], 16) lcid = string.atoi(lcid,16) except ValueError: # crap in the registry! continue spec = TypelibSpec(iid, lcid, major, minor, flags) spec.desc = tlbdesc spec.ver_desc = tlbdesc + " (" + version + ")" spec.dll = dll results.append(spec) return results
|
336fc8bcd82801d4ec1c022b31377a954cd7d147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/336fc8bcd82801d4ec1c022b31377a954cd7d147/selecttlb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6057,
56,
80,
2038,
12,
10157,
5094,
273,
374,
4672,
3536,
990,
279,
666,
434,
16973,
30575,
1990,
2184,
16,
1245,
364,
1517,
4104,
5313,
18,
3536,
498,
273,
5657,
1578,
2425,
18,
1617,
3678,
653,
12,
8082,
1578,
591,
18,
44,
3297,
67,
27337,
67,
9185,
16,
315,
18488,
30575,
7923,
277,
2232,
273,
6057,
2396,
12,
856,
13,
1686,
273,
5378,
364,
22819,
16,
276,
1266,
316,
277,
2232,
30,
498,
22,
273,
5657,
1578,
2425,
18,
1617,
3678,
653,
12,
8082,
1578,
591,
18,
44,
3297,
67,
27337,
67,
9185,
16,
315,
18488,
30575,
1695,
9,
87,
6,
738,
261,
77,
350,
3719,
364,
1177,
16,
8332,
70,
5569,
316,
6057,
2396,
12,
856,
22,
4672,
498,
23,
273,
5657,
1578,
2425,
18,
1617,
3678,
653,
12,
8082,
1578,
591,
18,
44,
3297,
67,
27337,
67,
9185,
16,
315,
18488,
30575,
1695,
9,
87,
1695,
9,
87,
6,
738,
261,
77,
350,
16,
1177,
3719,
775,
30,
468,
1021,
315,
17836,
6,
854,
622,
333,
1634,
2943,
273,
509,
12,
8082,
1578,
2425,
18,
1617,
1138,
620,
12,
856,
23,
16,
315,
17836,
6,
3719,
1335,
261,
8082,
1578,
2425,
18,
1636,
16,
2068,
4672,
2943,
273,
374,
309,
2943,
473,
4433,
5094,
631,
20,
30,
364,
9109,
350,
16,
276,
1266,
316,
6057,
2396,
12,
856,
23,
4672,
498,
24,
273,
5657,
1578,
2425,
18,
1617,
3678,
653,
12,
8082,
1578,
591,
18,
44,
3297,
67,
27337,
67,
9185,
16,
315,
18488,
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,
6057,
56,
80,
2038,
12,
10157,
5094,
273,
374,
4672,
3536,
990,
279,
666,
434,
16973,
30575,
1990,
2184,
16,
1245,
364,
1517,
4104,
5313,
18,
3536,
498,
273,
5657,
1578,
2425,
18,
1617,
3678,
653,
12,
8082,
1578,
591,
18,
44,
3297,
67,
27337,
67,
9185,
16,
315,
18488,
30575,
7923,
277,
2232,
273,
6057,
2396,
12,
856,
13,
1686,
273,
5378,
364,
22819,
16,
276,
1266,
316,
277,
2232,
30,
498,
22,
273,
5657,
1578,
2425,
18,
1617,
3678,
653,
12,
8082,
1578,
591,
18,
44,
3297,
67,
27337,
67,
9185,
16,
315,
18488,
30575,
1695,
9,
87,
6,
738,
261,
77,
350,
3719,
364,
1177,
16,
8332,
70,
5569,
316,
6057,
2396,
12,
856,
22,
2
] |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases")))
|
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases")))
|
def kb_edit_mapping(req, kb, key, mapFrom, mapTo, update="", delete="", sortby="to", ln=config.cdslang): """ Edit a mapping to in kb. Edit can be "update old value" or "delete existing value" @param kb the knowledge base id to edit @param key the key of the mapping that will be modified @param mapFrom the new key of the mapping @param mapTo the new value of the mapping @param update contains a value if the mapping is to be updated @param delete contains a value if the mapping is to be deleted @param sortby the sorting criteria ('from' or 'to') """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) (auth_code, auth_msg) = check_user(req, 'cfgbibformat') if not auth_code: kb_id = wash_url_argument(kb, 'int') kb_name = bibformatadminlib.get_kb_name(kb_id) if kb_name is None: return page(title=_("Unknown Knowledge Base"), body = "", language=ln, navtrail = navtrail_previous_links, errors = [("ERR_BIBFORMAT_KB_ID_UNKNOWN", kb)], lastupdated=__lastupdated__, req=req) key = wash_url_argument(key, 'str') if delete != "": #Delete bibformatadminlib.remove_kb_mapping(kb_name, key) else: #Update new_key = wash_url_argument(mapFrom, 'str') new_value = wash_url_argument(mapTo, 'str') bibformatadminlib.update_kb_mapping(kb_name, key, new_key, new_value) redirect_to_url(req, "kb_show?ln=%(ln)s&kb=%(kb)s&sortby=%(sortby)s" % {'ln':ln, 'kb':kb_id, 'sortby':sortby}) else: return page_not_authorized(req=req, text=auth_msg, navtrail=navtrail_previous_links)
|
f08fe81d00d74f462e6a931c4d621a61c821b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f08fe81d00d74f462e6a931c4d621a61c821b5b1/bibformatadmin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4619,
67,
6770,
12,
3658,
16,
9182,
16,
498,
16,
852,
1265,
16,
21178,
16,
1089,
1546,
3113,
1430,
1546,
3113,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
15328,
279,
2874,
358,
316,
9182,
18,
15328,
848,
506,
315,
2725,
1592,
460,
6,
578,
315,
3733,
2062,
460,
6,
225,
632,
891,
9182,
326,
20272,
1026,
612,
358,
3874,
632,
891,
498,
326,
498,
434,
326,
2874,
716,
903,
506,
4358,
632,
891,
852,
1265,
326,
394,
498,
434,
326,
2874,
632,
891,
21178,
326,
394,
460,
434,
326,
2874,
632,
891,
1089,
1914,
279,
460,
309,
326,
2874,
353,
358,
506,
3526,
632,
891,
1430,
1914,
279,
460,
309,
326,
2874,
353,
358,
506,
4282,
632,
891,
1524,
1637,
326,
9602,
3582,
7707,
2080,
11,
578,
296,
869,
6134,
3536,
7211,
273,
341,
961,
67,
4923,
12,
2370,
13,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
8775,
15565,
67,
11515,
67,
7135,
273,
25581,
2139,
3666,
2941,
18,
588,
11589,
15565,
2668,
6309,
473,
4521,
31,
411,
69,
667,
1546,
11589,
15565,
6,
3897,
11613,
87,
19,
3666,
19,
70,
495,
2139,
19,
70,
495,
2139,
3666,
18,
2074,
19,
8899,
67,
12633,
35,
2370,
5095,
87,
24038,
87,
1757,
69,
1870,
6309,
738,
261,
1425,
18,
4875,
718,
16,
7211,
16,
389,
2932,
21258,
1475,
14390,
605,
3304,
6,
20349,
225,
775,
30,
4555,
273,
31652,
12,
3658,
13,
1335,
13485,
1966,
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,
9182,
67,
4619,
67,
6770,
12,
3658,
16,
9182,
16,
498,
16,
852,
1265,
16,
21178,
16,
1089,
1546,
3113,
1430,
1546,
3113,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
15328,
279,
2874,
358,
316,
9182,
18,
15328,
848,
506,
315,
2725,
1592,
460,
6,
578,
315,
3733,
2062,
460,
6,
225,
632,
891,
9182,
326,
20272,
1026,
612,
358,
3874,
632,
891,
498,
326,
498,
434,
326,
2874,
716,
903,
506,
4358,
632,
891,
852,
1265,
326,
394,
498,
434,
326,
2874,
632,
891,
21178,
326,
394,
460,
434,
326,
2874,
632,
891,
1089,
1914,
279,
460,
309,
326,
2874,
353,
358,
506,
3526,
632,
891,
1430,
1914,
279,
460,
2
] |
str = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, str def _IDC_SetAttr(object, map, attroffs, value):
|
errormsg = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, errormsg def _IDC_SetAttr(obj, attrmap, attroffs, value):
|
def _IDC_GetAttr(object, map, attroffs): """ Internal function to generically get object attributes Do not use unless you know what you are doing """ if attroffs in map and hasattr(object, map[attroffs]): return getattr(object, map[attroffs]) else: str = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, str
|
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
734,
39,
67,
967,
3843,
12,
1612,
16,
852,
16,
2403,
303,
1403,
87,
4672,
3536,
3186,
445,
358,
5210,
1230,
336,
733,
1677,
2256,
486,
999,
3308,
1846,
5055,
4121,
1846,
854,
9957,
3536,
309,
2403,
303,
1403,
87,
316,
852,
471,
3859,
12,
1612,
16,
852,
63,
4558,
303,
1403,
87,
65,
4672,
327,
3869,
12,
1612,
16,
852,
63,
4558,
303,
1403,
87,
5717,
469,
30,
609,
273,
315,
4589,
598,
1384,
738,
72,
486,
1392,
16,
866,
326,
1384,
471,
2605,
326,
6199,
6,
738,
2403,
303,
1403,
87,
1002,
4999,
16,
609,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
734,
39,
67,
967,
3843,
12,
1612,
16,
852,
16,
2403,
303,
1403,
87,
4672,
3536,
3186,
445,
358,
5210,
1230,
336,
733,
1677,
2256,
486,
999,
3308,
1846,
5055,
4121,
1846,
854,
9957,
3536,
309,
2403,
303,
1403,
87,
316,
852,
471,
3859,
12,
1612,
16,
852,
63,
4558,
303,
1403,
87,
65,
4672,
327,
3869,
12,
1612,
16,
852,
63,
4558,
303,
1403,
87,
5717,
469,
30,
609,
273,
315,
4589,
598,
1384,
738,
72,
486,
1392,
16,
866,
326,
1384,
471,
2605,
326,
6199,
6,
738,
2403,
303,
1403,
87,
1002,
4999,
16,
609,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
block = models.BooleanField(default=False, help_text="Check to temporarily block this show from iTunes.")
|
block = models.BooleanField(default=False, help_text="Check to block this show from iTunes; show will remain blocked until unchecked.")
|
def __unicode__(self): return u'%s' % (self.name)
|
aaf810b6f7544cd10883ed5d4060d0f32f15fc7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7481/aaf810b6f7544cd10883ed5d4060d0f32f15fc7b/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
11,
9,
87,
11,
738,
261,
2890,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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261,
2890,
18,
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,
-100,
-100,
-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[event] = False
|
result[datas['id']] = False
|
def _get_rulestring(self, cr, uid, ids, name, arg, context=None): """ Get rule string. @param self: The object pointer @param cr: the current row, from the database cursor, @param id: List of calendar event's ids. @param context: A standard dictionary for contextual values @return: dictionary of rrule value. """ result = {} for datas in self.read(cr, uid, ids): if datas.get('rrule_type'): if datas.get('rrule_type') == 'none': result[event] = False elif datas.get('rrule_type') == 'custom': rrule_custom = self.compute_rule_string(cr, uid, datas) result[event] = rrule_custom else: result[event] = self.compute_rule_string(cr, uid, {'freq':\ datas.get('rrule_type').upper(), \ 'interval': 1}, context=context)
|
45256557dc1239459c984a2a994a7cb3fb7c5eb0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/45256557dc1239459c984a2a994a7cb3fb7c5eb0/base_calendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7482,
371,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
3536,
968,
1720,
533,
18,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
612,
30,
987,
434,
5686,
871,
1807,
3258,
18,
632,
891,
819,
30,
432,
4529,
3880,
364,
22724,
924,
632,
2463,
30,
3880,
434,
436,
5345,
460,
18,
3536,
563,
273,
2618,
364,
5386,
316,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
5386,
18,
588,
2668,
523,
725,
67,
723,
11,
4672,
309,
5386,
18,
588,
2668,
523,
725,
67,
723,
6134,
422,
296,
6102,
4278,
563,
63,
13178,
3292,
350,
3546,
65,
273,
1083,
1327,
5386,
18,
588,
2668,
523,
725,
67,
723,
6134,
422,
296,
3662,
4278,
436,
5345,
67,
3662,
273,
365,
18,
9200,
67,
5345,
67,
1080,
12,
3353,
16,
4555,
16,
5386,
13,
563,
63,
2575,
65,
273,
436,
5345,
67,
3662,
469,
30,
563,
63,
2575,
65,
273,
365,
18,
9200,
67,
5345,
67,
1080,
12,
3353,
16,
4555,
16,
13666,
10212,
4278,
64,
5386,
18,
588,
2668,
523,
725,
67,
723,
16063,
5797,
9334,
521,
296,
6624,
4278,
404,
5779,
819,
33,
2472,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7482,
371,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
3536,
968,
1720,
533,
18,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
612,
30,
987,
434,
5686,
871,
1807,
3258,
18,
632,
891,
819,
30,
432,
4529,
3880,
364,
22724,
924,
632,
2463,
30,
3880,
434,
436,
5345,
460,
18,
3536,
563,
273,
2618,
364,
5386,
316,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
5386,
18,
588,
2668,
523,
725,
67,
723,
11,
4672,
309,
5386,
18,
588,
2668,
523,
725,
67,
723,
6134,
422,
296,
6102,
2
] |
rational number times the square root of a rational number (if prec=None), or real number if a precision is given
|
Rational number times the square root of a rational number (if ``prec=None``), or real number if a precision is given.
|
def wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None): r""" Calculate the Wigner 9j symbol `Wigner9j(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)`. INPUT: - ``j_1``, ..., ``j_9`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES: A couple of examples and test cases, note that for speed reasons a precision is given:: sage: wigner_9j(1,1,1, 1,1,1, 1,1,0 ,prec=64) # ==1/18 0.0555555555555555555 sage: wigner_9j(1,1,1, 1,1,1, 1,1,1) 0 sage: wigner_9j(1,1,1, 1,1,1, 1,1,2 ,prec=64) # ==1/18 0.0555555555555555556 sage: wigner_9j(1,2,1, 2,2,2, 1,2,1 ,prec=64) # ==-1/150 -0.00666666666666666667 sage: wigner_9j(3,3,2, 2,2,2, 3,3,2 ,prec=64) # ==157/14700 0.0106802721088435374 sage: wigner_9j(3,3,2, 3,3,2, 3,3,2 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.00944247746651111739 sage: wigner_9j(3,3,1, 3.5,3.5,2, 3.5,3.5,1 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.0110216678544351364 sage: wigner_9j(100,80,50, 50,100,70, 60,50,100 ,prec=1000)*1.0 1.05597798065761e-7 sage: wigner_9j(30,30,10, 30.5,30.5,20, 30.5,30.5,10 ,prec=1000)*1.0 # ==(80944680186359968990/95103769817469)*sqrt(1/682288158959699477295) 0.0000325841699408828 sage: wigner_9j(64,62.5,114.5, 61.5,61,112.5, 113.5,110.5,60, prec=1000)*1.0 -3.41407910055520e-39 sage: wigner_9j(15,15,15, 15,3,15, 15,18,10, prec=1000)*1.0 -0.0000778324615309539 sage: wigner_9j(1.5,1,1.5, 1,1,1, 1.5,1,1.5) 0 It is an error to have arguments that are not integer or half integer values or do not fulfil the triangle relation:: sage: wigner_9j(0.5,0.5,0.5, 0.5,0.5,0.5, 0.5,0.5,0.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation sage: wigner_9j(1,1,1, 0.5,1,1.5, 0.5,1,2.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) """ imin = 0 imax = min(j_1 + j_9, j_2 + j_6, j_4 + j_8) sumres = 0 for kk in range(imin, imax + 1): sumres = sumres + (2 * kk + 1) * \ racah(j_1, j_2, j_9, j_6, j_3, kk, prec) * \ racah(j_4, j_6, j_8, j_2, j_5, kk, prec) * \ racah(j_1, j_4, j_9, j_8, j_7, kk, prec) return sumres
|
7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/wigner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
67,
29,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,
678,
724,
264,
2468,
78,
3273,
1375,
59,
724,
264,
29,
78,
12,
78,
67,
21,
16,
78,
67,
22,
16,
78,
67,
23,
16,
78,
67,
24,
16,
78,
67,
25,
16,
78,
67,
26,
16,
78,
67,
27,
16,
78,
67,
28,
16,
78,
67,
29,
13,
8338,
225,
12943,
30,
225,
300,
225,
12176,
78,
67,
21,
68,
9191,
1372,
16,
12176,
78,
67,
29,
10335,
300,
3571,
578,
8816,
3571,
225,
300,
225,
12176,
4036,
10335,
300,
6039,
16,
805,
30,
599,
18,
1186,
1246,
310,
279,
6039,
848,
302,
354,
334,
6478,
8632,
731,
326,
11096,
18,
225,
11550,
30,
225,
534,
8371,
1300,
4124,
326,
8576,
1365,
434,
279,
436,
8371,
1300,
261,
430,
12176,
4036,
33,
7036,
10335,
3631,
578,
2863,
1300,
309,
279,
6039,
353,
864,
18,
225,
5675,
8900,
11386,
30,
225,
432,
1825,
2268,
434,
10991,
471,
1842,
6088,
16,
4721,
716,
364,
8632,
14000,
279,
6039,
353,
864,
2866,
225,
272,
410,
30,
341,
724,
264,
67,
29,
78,
12,
21,
16,
21,
16,
21,
16,
404,
16,
21,
16,
21,
16,
404,
16,
21,
16,
20,
269,
4036,
33,
1105,
13,
468,
422,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
67,
29,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,
678,
724,
264,
2468,
78,
3273,
1375,
59,
724,
264,
29,
78,
12,
78,
67,
21,
16,
78,
67,
22,
16,
78,
67,
23,
16,
78,
67,
24,
16,
78,
67,
25,
16,
78,
67,
26,
16,
78,
67,
27,
16,
78,
67,
28,
16,
78,
67,
29,
13,
8338,
225,
12943,
30,
225,
300,
225,
12176,
78,
67,
21,
68,
9191,
1372,
16,
12176,
78,
67,
2
] |
if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(remote_filepath) command_output = stdout.readlines() if remove: ssh.exec_command("rm -f %s" % remote_filepath)
|
command = remote_filepath else: command = "ls -l %s" % remote_filepath
|
def attemptConnection(hostname, username, password, timeout=30, command=False, local_filepath=False, remote_filepath='/tmp/', execute=False, remove=False, sudo=False, run_as='root'): """Attempt to login to 'hostname' using 'username'/'password' and execute 'command'. Will excute the command via sudo if 'sudo' is set to True (as root by default) and optionally as a given user (run_as). Returns the connection result as a boolean and the command result as a string.""" debug("attemptConnection(%s, %s, <password>, %s, %s, %s, %s, %s, %s, %s, %s)" % (hostname, username, timeout, command, local_filepath, remote_filepath, execute, remove, sudo, run_as)) connection_result = True # TODO: Add stderr handling if hostname != "": try: ssh = paramikoConnect(hostname, username, password, timeout) if type(ssh) == type(""): # If ssh is a string that means the connection failed and 'ssh' is the detail as to why connection_result = False command_output = ssh return connection_result, command_output if local_filepath: sftpPut(ssh, local_filepath, remote_filepath) if execute: debug("Executing %s on %s" % (filename, hostname)) stdin, stdout, stderr = ssh.exec_command("chmod a+x %s" % remote_filepath) # Make it executable (a+x in case we run as another user via sudo) if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(remote_filepath) command_output = stdout.readlines() if remove: ssh.exec_command("rm -f %s" % remote_filepath) if command: if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(command) command_output = stdout.readlines() elif command is False and execute is False: # If we're not given anything to execute run the uptime command to make sure that we can execute *something* stdin, stdout, stderr = ssh.exec_command('uptime') command_output = stdout.readlines() ssh.close() command_output = "".join(command_output) command_output = normalizeString(command_output) except Exception, detail: # Connection failed #traceback.print_exc() #print "Exception: %s" % detail connection_result = False command_output = detail ssh.close() return connection_result, command_output
|
b986f87456c68f9f6506070171008c62c0cb9aaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/b986f87456c68f9f6506070171008c62c0cb9aaf/sshpt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
1952,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
33,
5082,
16,
1296,
33,
8381,
16,
1191,
67,
10561,
33,
8381,
16,
2632,
67,
10561,
2218,
19,
5645,
19,
2187,
1836,
33,
8381,
16,
1206,
33,
8381,
16,
14669,
33,
8381,
16,
1086,
67,
345,
2218,
3085,
11,
4672,
3536,
7744,
358,
3925,
358,
296,
10358,
11,
1450,
296,
5053,
11,
2473,
3664,
11,
471,
1836,
296,
3076,
10332,
9980,
3533,
624,
326,
1296,
3970,
14669,
309,
296,
20566,
11,
353,
444,
358,
1053,
261,
345,
1365,
635,
805,
13,
471,
8771,
487,
279,
864,
729,
261,
2681,
67,
345,
2934,
2860,
326,
1459,
563,
487,
279,
1250,
471,
326,
1296,
563,
487,
279,
533,
12123,
225,
1198,
2932,
11764,
1952,
9275,
87,
16,
738,
87,
16,
411,
3664,
20401,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
2225,
738,
261,
10358,
16,
2718,
16,
2021,
16,
1296,
16,
1191,
67,
10561,
16,
2632,
67,
10561,
16,
1836,
16,
1206,
16,
14669,
16,
1086,
67,
345,
3719,
1459,
67,
2088,
273,
1053,
225,
468,
2660,
30,
1436,
4514,
5057,
309,
5199,
480,
1408,
30,
775,
30,
7056,
273,
579,
27113,
5215,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
13,
309,
618,
12,
10975,
13,
422,
618,
2932,
6,
4672,
468,
971,
7056,
353,
279,
533,
716,
4696,
326,
1459,
2535,
471,
296,
10975,
11,
353,
326,
7664,
487,
358,
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,
4395,
1952,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
33,
5082,
16,
1296,
33,
8381,
16,
1191,
67,
10561,
33,
8381,
16,
2632,
67,
10561,
2218,
19,
5645,
19,
2187,
1836,
33,
8381,
16,
1206,
33,
8381,
16,
14669,
33,
8381,
16,
1086,
67,
345,
2218,
3085,
11,
4672,
3536,
7744,
358,
3925,
358,
296,
10358,
11,
1450,
296,
5053,
11,
2473,
3664,
11,
471,
1836,
296,
3076,
10332,
9980,
3533,
624,
326,
1296,
3970,
14669,
309,
296,
20566,
11,
353,
444,
358,
1053,
261,
345,
1365,
635,
805,
13,
471,
8771,
487,
279,
864,
729,
261,
2681,
67,
345,
2934,
2860,
326,
1459,
563,
487,
279,
1250,
471,
326,
1296,
563,
487,
279,
533,
12123,
225,
2
] |
def test_anonymous_groups(self): kwargs = {'slug': self.slug} response = self.client.get(reverse('groups'))
|
def test_members(self): response = self.client.get(reverse('groups:members', args=[self.group.slug]))
|
def test_anonymous_groups(self): kwargs = {'slug': self.slug}
|
a327dee58d10a4ec17c9610bb86530b1f8514296 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11830/a327dee58d10a4ec17c9610bb86530b1f8514296/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19070,
67,
4650,
12,
2890,
4672,
1205,
273,
13666,
6436,
4278,
365,
18,
6436,
97,
2,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19070,
67,
4650,
12,
2890,
4672,
1205,
273,
13666,
6436,
4278,
365,
18,
6436,
97,
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
] |
self.wfile.write(cgitb.html()) except: s = StringIO.StringIO() traceback.print_exc(None, s) self.wfile.write("<pre>") self.wfile.write(cgi.escape(s.getvalue())) self.wfile.write("</pre>\n")
|
ts = time.ctime() self.wfile.write('''<p>%s: An error occurred. Please check the server log for more infomation.</p>'''%ts) print 'EXCEPTION AT', ts traceback.print_exc()
|
def run_cgi(self): """ Execute the CGI command. Wrap an innner call in an error handler so all errors can be caught. """ save_stdin = sys.stdin sys.stdin = self.rfile try: self.inner_run_cgi() except client.NotFound: self.send_error(404, self.path) except client.Unauthorised, message: self.send_error(403, '%s (%s)'%(self.path, message)) except: exc, val, tb = sys.exc_info() if hasattr(socket, 'timeout') and isinstance(val, socket.timeout): self.log_error('timeout') else: # it'd be nice to be able to detect if these are going to have # any effect... self.send_response(400) self.send_header('Content-Type', 'text/html') self.end_headers() try: reload(cgitb) self.wfile.write(cgitb.breaker()) self.wfile.write(cgitb.html()) except: s = StringIO.StringIO() traceback.print_exc(None, s) self.wfile.write("<pre>") self.wfile.write(cgi.escape(s.getvalue())) self.wfile.write("</pre>\n") sys.stdin = save_stdin
|
7a2c2ed71918a0eb5ed56803e74e2aa07443850c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7a2c2ed71918a0eb5ed56803e74e2aa07443850c/roundup_server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
7903,
326,
385,
13797,
1296,
18,
4266,
392,
316,
82,
1224,
745,
316,
392,
555,
1838,
1427,
777,
1334,
848,
506,
13537,
18,
3536,
1923,
67,
21772,
273,
2589,
18,
21772,
2589,
18,
21772,
273,
365,
18,
86,
768,
775,
30,
365,
18,
7872,
67,
2681,
67,
19062,
1435,
1335,
1004,
18,
2768,
30,
365,
18,
4661,
67,
1636,
12,
11746,
16,
365,
18,
803,
13,
1335,
1004,
18,
984,
4161,
5918,
16,
883,
30,
365,
18,
4661,
67,
1636,
12,
24,
4630,
16,
1995,
87,
6142,
87,
2506,
17105,
2890,
18,
803,
16,
883,
3719,
1335,
30,
3533,
16,
1244,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
309,
3859,
12,
7814,
16,
296,
4538,
6134,
471,
1549,
12,
1125,
16,
2987,
18,
4538,
4672,
365,
18,
1330,
67,
1636,
2668,
4538,
6134,
469,
30,
468,
518,
14271,
506,
13752,
358,
506,
7752,
358,
5966,
309,
4259,
854,
8554,
358,
1240,
468,
1281,
5426,
2777,
365,
18,
4661,
67,
2740,
12,
16010,
13,
365,
18,
4661,
67,
3374,
2668,
1350,
17,
559,
2187,
296,
955,
19,
2620,
6134,
365,
18,
409,
67,
2485,
1435,
775,
30,
7749,
12,
71,
6845,
70,
13,
365,
18,
91,
768,
18,
2626,
12,
71,
6845,
70,
18,
8820,
264,
10756,
3742,
273,
813,
18,
21261,
1435,
365,
18,
91,
768,
18,
2626,
2668,
6309,
32,
84,
9822,
87,
30,
1922,
555,
7841,
18,
7801,
866,
326,
1438,
613,
364,
1898,
8286,
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,
67,
19062,
12,
2890,
4672,
3536,
7903,
326,
385,
13797,
1296,
18,
4266,
392,
316,
82,
1224,
745,
316,
392,
555,
1838,
1427,
777,
1334,
848,
506,
13537,
18,
3536,
1923,
67,
21772,
273,
2589,
18,
21772,
2589,
18,
21772,
273,
365,
18,
86,
768,
775,
30,
365,
18,
7872,
67,
2681,
67,
19062,
1435,
1335,
1004,
18,
2768,
30,
365,
18,
4661,
67,
1636,
12,
11746,
16,
365,
18,
803,
13,
1335,
1004,
18,
984,
4161,
5918,
16,
883,
30,
365,
18,
4661,
67,
1636,
12,
24,
4630,
16,
1995,
87,
6142,
87,
2506,
17105,
2890,
18,
803,
16,
883,
3719,
1335,
30,
3533,
16,
1244,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
309,
2
] |
event.arguments['Enable'] = doManage == (collection is not None and Sharing.isShared(collection))
|
event.arguments['Enable'] = collection is not None and (doManage == Sharing.isShared(collection))
|
def _onShareOrManageSidebarCollectionEventUpdateUI (self, event, doManage): """ Update the menu to reflect the selected collection name """ collection = self.getSidebarSelectedCollection () verb = (doManage and _('Manage') or _('Share')) if collection is not None: # event.arguments['Enable'] = True menuTitle = _('%s collection "%s"') % (verb, collection.displayName) else: menuTitle = _('%s a collection') % verb event.arguments ['Text'] = menuTitle event.arguments['Enable'] = doManage == (collection is not None and Sharing.isShared(collection))
|
db37d53342d77250ae9380f604f6a3921c19aeb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/db37d53342d77250ae9380f604f6a3921c19aeb1/Main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
9535,
1162,
21258,
8895,
3215,
2532,
1133,
1891,
5370,
261,
2890,
16,
871,
16,
741,
21258,
4672,
3536,
2315,
326,
3824,
358,
3037,
326,
3170,
1849,
508,
3536,
1849,
273,
365,
18,
588,
8895,
3215,
7416,
2532,
1832,
6405,
273,
261,
2896,
21258,
471,
389,
2668,
21258,
6134,
578,
389,
2668,
9535,
26112,
225,
309,
1849,
353,
486,
599,
30,
468,
871,
18,
7099,
3292,
8317,
3546,
273,
1053,
3824,
4247,
273,
389,
29909,
87,
1849,
2213,
87,
5187,
13,
738,
261,
16629,
16,
1849,
18,
5417,
461,
13,
469,
30,
3824,
4247,
273,
389,
29909,
87,
279,
1849,
6134,
738,
6405,
225,
871,
18,
7099,
10228,
1528,
3546,
273,
3824,
4247,
871,
18,
7099,
3292,
8317,
3546,
273,
741,
21258,
422,
261,
5548,
353,
486,
599,
471,
2638,
5968,
18,
291,
7887,
12,
5548,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
9535,
1162,
21258,
8895,
3215,
2532,
1133,
1891,
5370,
261,
2890,
16,
871,
16,
741,
21258,
4672,
3536,
2315,
326,
3824,
358,
3037,
326,
3170,
1849,
508,
3536,
1849,
273,
365,
18,
588,
8895,
3215,
7416,
2532,
1832,
6405,
273,
261,
2896,
21258,
471,
389,
2668,
21258,
6134,
578,
389,
2668,
9535,
26112,
225,
309,
1849,
353,
486,
599,
30,
468,
871,
18,
7099,
3292,
8317,
3546,
273,
1053,
3824,
4247,
273,
389,
29909,
87,
1849,
2213,
87,
5187,
13,
738,
261,
16629,
16,
1849,
18,
5417,
461,
13,
469,
30,
3824,
4247,
273,
389,
29909,
87,
279,
1849,
6134,
738,
6405,
225,
871,
18,
7099,
10228,
1528,
3546,
273,
3824,
4247,
871,
18,
7099,
3292,
2
] |
params += p.serialize()
|
params += p.serialize('utf-8')
|
def startTagForNode(node): if not node: return 0 result = node.name params = '' if node.properties: for p in node.properties: if p.type == 'attribute': # FIXME: This part sucks params += p.serialize() return result+params
|
776600a08f9c3ed6aa65bda163d86ec3cbba209c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/776600a08f9c3ed6aa65bda163d86ec3cbba209c/xml2po.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
31058,
12,
2159,
4672,
309,
486,
756,
30,
327,
374,
225,
563,
273,
756,
18,
529,
859,
273,
875,
309,
756,
18,
4738,
30,
364,
293,
316,
756,
18,
4738,
30,
309,
293,
18,
723,
422,
296,
4589,
4278,
468,
9852,
30,
1220,
1087,
1597,
363,
87,
859,
1011,
293,
18,
6288,
2668,
3158,
17,
28,
6134,
327,
563,
15,
2010,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
31058,
12,
2159,
4672,
309,
486,
756,
30,
327,
374,
225,
563,
273,
756,
18,
529,
859,
273,
875,
309,
756,
18,
4738,
30,
364,
293,
316,
756,
18,
4738,
30,
309,
293,
18,
723,
422,
296,
4589,
4278,
468,
9852,
30,
1220,
1087,
1597,
363,
87,
859,
1011,
293,
18,
6288,
2668,
3158,
17,
28,
6134,
327,
563,
15,
2010,
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
] |
repo = self._getRepo()
|
def _removePathnames(self, names): """Remove a sequence of entries"""
|
17d4767c89d5ca663109b6077b88b94344a2cf34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5981/17d4767c89d5ca663109b6077b88b94344a2cf34/hg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
743,
1973,
12,
2890,
16,
1257,
4672,
3536,
3288,
279,
3102,
434,
3222,
8395,
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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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
] |
|
canvas.setFont('Times-Bold',16) canvas.drawString(108, layout.PAGE_HEIGHT-108, Title) canvas.setFont('Times-Roman',9)
|
def myFirstPage(canvas, doc): canvas.saveState() canvas.setFont('Times-Bold',16) canvas.drawString(108, layout.PAGE_HEIGHT-108, Title) canvas.setFont('Times-Roman',9) canvas.restoreState()
|
a4f41b2bc34b6dbf776d412796f45b7bd6a19152 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a4f41b2bc34b6dbf776d412796f45b7bd6a19152/fodyssey.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
3759,
1964,
12,
15424,
16,
997,
4672,
5953,
18,
5688,
1119,
1435,
5953,
18,
13991,
1119,
1435,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
3759,
1964,
12,
15424,
16,
997,
4672,
5953,
18,
5688,
1119,
1435,
5953,
18,
13991,
1119,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
javaClassPath += classPathSeparator.join(configClassPath)
|
argv.append(classPathSeparator.join(configClassPath))
|
def runSimulation(self): self._console.info("Running Simulation...") javaBin = "java" javaClassPath = "-cp " configClassPath = self._job.get("simulate/java-classpath", []) qxSeleniumPath = self._job.get("simulate/qxselenium-path", False) if qxSeleniumPath: configClassPath.append(qxSeleniumPath) classPathSeparator = ":" if util.getPlatformInfo()[0] == "Windows": classPathSeparator = ";" javaClassPath += classPathSeparator.join(configClassPath) rhinoClass = self._job.get("simulate/rhino-class", "org.mozilla.javascript.tools.shell.Main") runnerScript = self._job.get("simulate/simulator-script") cmd = "%s %s %s %s" %(javaBin, javaClassPath, rhinoClass, runnerScript) self._console.debug("Selenium start command: " + cmd) shell = ShellCmd() shell.execute_logged(cmd, self._console, True)
|
82c34a68fb1137b73023eb3e1232d734011d5489 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/82c34a68fb1137b73023eb3e1232d734011d5489/Generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
18419,
12,
2890,
4672,
365,
6315,
8698,
18,
1376,
2932,
7051,
9587,
6234,
7070,
13,
225,
2252,
9913,
273,
315,
6290,
6,
2252,
22158,
273,
3701,
4057,
315,
642,
22158,
273,
365,
6315,
4688,
18,
588,
2932,
9812,
6243,
19,
6290,
17,
26302,
3113,
5378,
13,
1043,
92,
1877,
17327,
743,
273,
365,
6315,
4688,
18,
588,
2932,
9812,
6243,
19,
85,
92,
1786,
17327,
17,
803,
3113,
1083,
13,
309,
1043,
92,
1877,
17327,
743,
30,
642,
22158,
18,
6923,
12,
85,
92,
1877,
17327,
743,
13,
225,
22503,
6581,
273,
6153,
309,
1709,
18,
588,
8201,
966,
1435,
63,
20,
65,
422,
315,
10399,
6877,
22503,
6581,
273,
11430,
225,
5261,
18,
6923,
12,
1106,
743,
6581,
18,
5701,
12,
1425,
22158,
3719,
225,
6259,
15020,
797,
273,
365,
6315,
4688,
18,
588,
2932,
9812,
6243,
19,
30138,
15020,
17,
1106,
3113,
315,
3341,
18,
8683,
15990,
18,
11242,
18,
6642,
18,
10304,
18,
6376,
7923,
225,
8419,
3651,
273,
365,
6315,
4688,
18,
588,
2932,
9812,
6243,
19,
9812,
11775,
17,
4263,
7923,
225,
1797,
273,
2213,
87,
738,
87,
738,
87,
738,
87,
6,
8975,
6290,
9913,
16,
2252,
22158,
16,
6259,
15020,
797,
16,
8419,
3651,
13,
225,
365,
6315,
8698,
18,
4148,
2932,
1877,
17327,
787,
1296,
30,
315,
397,
1797,
13,
5972,
273,
19433,
5931,
1435,
5972,
18,
8837,
67,
19385,
12,
4172,
16,
365,
6315,
8698,
16,
1053,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
18419,
12,
2890,
4672,
365,
6315,
8698,
18,
1376,
2932,
7051,
9587,
6234,
7070,
13,
225,
2252,
9913,
273,
315,
6290,
6,
2252,
22158,
273,
3701,
4057,
315,
642,
22158,
273,
365,
6315,
4688,
18,
588,
2932,
9812,
6243,
19,
6290,
17,
26302,
3113,
5378,
13,
1043,
92,
1877,
17327,
743,
273,
365,
6315,
4688,
18,
588,
2932,
9812,
6243,
19,
85,
92,
1786,
17327,
17,
803,
3113,
1083,
13,
309,
1043,
92,
1877,
17327,
743,
30,
642,
22158,
18,
6923,
12,
85,
92,
1877,
17327,
743,
13,
225,
22503,
6581,
273,
6153,
309,
1709,
18,
588,
8201,
966,
1435,
63,
20,
65,
422,
315,
10399,
6877,
22503,
6581,
273,
11430,
225,
5261,
18,
6923,
12,
1106,
2
] |
'%(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
|
'if NOT "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' 'if "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n'
|
def copy_scripts(self): """ Create each script listed in 'self.scripts' """ if not self.package_name: raise Exception("You have to inherit build_scripts_create and" " provide a package name") to_module = string.maketrans('-/', '_.')
|
bab22207d8bf6f2408d07596485d247fb14b6071 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/bab22207d8bf6f2408d07596485d247fb14b6071/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
12,
2890,
4672,
3536,
1788,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
11,
3536,
309,
486,
365,
18,
5610,
67,
529,
30,
1002,
1185,
2932,
6225,
1240,
358,
6811,
1361,
67,
12827,
67,
2640,
471,
6,
315,
5615,
279,
2181,
508,
7923,
225,
358,
67,
2978,
273,
533,
18,
81,
581,
16354,
634,
2668,
17,
19,
2187,
2070,
1093,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
12,
2890,
4672,
3536,
1788,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
11,
3536,
309,
486,
365,
18,
5610,
67,
529,
30,
1002,
1185,
2932,
6225,
1240,
358,
6811,
1361,
67,
12827,
67,
2640,
471,
6,
315,
5615,
279,
2181,
508,
7923,
225,
358,
67,
2978,
273,
533,
18,
81,
581,
16354,
634,
2668,
17,
19,
2187,
2070,
1093,
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
] |
def shortest_path_all_pairs(self): """ Uses the Floyd-Warshall algorithm to find a shortest path for each pair of vertices.
|
def shortest_path_all_pairs(self, by_weight=True, default_weight=1): """ Uses the Floyd-Warshall algorithm to find a shortest weighted path for each pair of vertices. The weights (labels) on the vertices can be anything that can be compared and can be summed. INPUT: by_weight -- If False, figure distances by the numbers of edges. default_weight -- (defaults to 1) The default weight to assign edges that don't have a weight (i.e., a label).
|
def shortest_path_all_pairs(self): """ Uses the Floyd-Warshall algorithm to find a shortest path for each pair of vertices. OUTPUT: A tuple (dist, pred). They are both dicts of dicts. The first indicates the length dist[u][v] of the shortest weighted path from u to v. The second is more complicated-- it indicates the predecessor pred[u][v] of v in the shortest path from u to v. EXAMPLE: sage: G = Graph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: G.plot(edge_labels=True).show() sage: dist, pred = G.shortest_path_all_pairs() sage: dist {0: {0: 0, 1: 1, 2: 2, 3: 3, 4: 2}, 1: {0: 1, 1: 0, 2: 1, 3: 2, 4: 3}, 2: {0: 2, 1: 1, 2: 0, 3: 1, 4: 3}, 3: {0: 3, 1: 2, 2: 1, 3: 0, 4: 2}, 4: {0: 2, 1: 3, 2: 3, 3: 2, 4: 0}} sage: pred {0: {0: None, 1: 0, 2: 1, 3: 2, 4: 0}, 1: {0: 1, 1: None, 2: 1, 3: 2, 4: 0}, 2: {0: 1, 1: 2, 2: None, 3: 2, 4: 3}, 3: {0: 1, 1: 2, 2: 3, 3: None, 4: 3}, 4: {0: 4, 1: 0, 2: 3, 3: 4, 4: None}} sage: pred[0] {0: None, 1: 0, 2: 1, 3: 2, 4: 0}
|
9139b4d0c500a44dc0edeab5a2c064186781a7f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9139b4d0c500a44dc0edeab5a2c064186781a7f6/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20579,
67,
803,
67,
454,
67,
11545,
12,
2890,
16,
635,
67,
4865,
33,
5510,
16,
805,
67,
4865,
33,
21,
4672,
3536,
14854,
326,
478,
2466,
72,
17,
59,
1178,
4886,
358,
1104,
279,
20579,
13747,
589,
364,
1517,
3082,
434,
6928,
18,
225,
1021,
5376,
261,
5336,
13,
603,
326,
6928,
848,
506,
6967,
716,
848,
506,
15843,
471,
848,
506,
2142,
2937,
18,
225,
12943,
30,
225,
635,
67,
4865,
1493,
971,
1083,
16,
7837,
12491,
635,
326,
5600,
434,
5231,
18,
225,
805,
67,
4865,
1493,
261,
7606,
358,
404,
13,
1021,
805,
3119,
358,
2683,
5231,
716,
2727,
1404,
1240,
279,
3119,
261,
77,
18,
73,
12990,
279,
1433,
2934,
225,
11550,
30,
432,
3193,
261,
4413,
16,
3479,
2934,
16448,
854,
3937,
15838,
434,
15838,
18,
1021,
1122,
8527,
326,
769,
2411,
63,
89,
6362,
90,
65,
434,
326,
20579,
13747,
589,
628,
582,
358,
331,
18,
1021,
2205,
353,
1898,
31312,
413,
518,
8527,
326,
24282,
3479,
63,
89,
6362,
90,
65,
434,
331,
316,
326,
20579,
589,
628,
582,
358,
331,
18,
225,
5675,
21373,
30,
272,
410,
30,
611,
273,
5601,
12,
288,
374,
30,
288,
21,
30,
404,
5779,
404,
30,
288,
22,
30,
404,
5779,
576,
30,
288,
23,
30,
404,
5779,
890,
30,
288,
24,
30,
576,
5779,
1059,
30,
288,
20,
30,
576,
97,
289,
262,
272,
410,
30,
611,
18,
4032,
12,
7126,
67,
5336,
33,
5510,
2934,
4500,
1435,
272,
410,
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,
20579,
67,
803,
67,
454,
67,
11545,
12,
2890,
16,
635,
67,
4865,
33,
5510,
16,
805,
67,
4865,
33,
21,
4672,
3536,
14854,
326,
478,
2466,
72,
17,
59,
1178,
4886,
358,
1104,
279,
20579,
13747,
589,
364,
1517,
3082,
434,
6928,
18,
225,
1021,
5376,
261,
5336,
13,
603,
326,
6928,
848,
506,
6967,
716,
848,
506,
15843,
471,
848,
506,
2142,
2937,
18,
225,
12943,
30,
225,
635,
67,
4865,
1493,
971,
1083,
16,
7837,
12491,
635,
326,
5600,
434,
5231,
18,
225,
805,
67,
4865,
1493,
261,
7606,
358,
404,
13,
1021,
805,
3119,
358,
2683,
5231,
716,
2727,
1404,
1240,
279,
3119,
261,
77,
18,
73,
12990,
279,
1433,
2934,
225,
11550,
30,
2
] |
sitedirs = [makepath(prefix, "lib", "python" + sys.version[:3], "site-packages"), makepath(prefix, "lib", "site-python")]
|
sitedirs = [os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages"), os.path.join(prefix, "lib", "site-python")]
|
def addpackage(sitedir, name): fullname = os.path.join(sitedir, name) try: f = open(fullname) except IOError: return while 1: dir = f.readline() if not dir: break if dir[0] == '#': continue if dir.startswith("import"): exec dir continue if dir[-1] == '\n': dir = dir[:-1] dir = makepath(sitedir, dir) if dir not in sys.path and os.path.exists(dir): sys.path.append(dir)
|
6e6555e57b217e010de2b7797195ea5d46fe56c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6e6555e57b217e010de2b7797195ea5d46fe56c2/site.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,
404,
30,
1577,
273,
284,
18,
896,
1369,
1435,
309,
486,
1577,
30,
898,
309,
1577,
63,
20,
65,
422,
2946,
4278,
1324,
309,
1577,
18,
17514,
1918,
2932,
5666,
6,
4672,
1196,
1577,
1324,
309,
1577,
18919,
21,
65,
422,
2337,
82,
4278,
1577,
273,
1577,
10531,
17,
21,
65,
1577,
273,
1221,
803,
12,
87,
16261,
481,
16,
1577,
13,
309,
1577,
486,
316,
2589,
18,
803,
471,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
2589,
18,
803,
18,
6923,
12,
1214,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,
404,
30,
1577,
273,
284,
18,
896,
1369,
1435,
309,
486,
1577,
30,
898,
309,
1577,
63,
20,
65,
422,
2946,
4278,
1324,
309,
1577,
18,
17514,
1918,
2932,
5666,
6,
4672,
1196,
1577,
1324,
309,
1577,
18919,
21,
65,
422,
2337,
82,
4278,
1577,
273,
1577,
10531,
17,
21,
65,
1577,
273,
1221,
803,
12,
87,
16261,
481,
16,
1577,
13,
309,
1577,
486,
316,
2589,
18,
803,
471,
1140,
18,
803,
18,
1808,
12,
1214,
4672,
2589,
18,
803,
18,
2
] |
shutil.copy(os.path.join(path, file), dest_dir) except shutil.Error: log.verbose("%s already available in dest_dir. Skipping copy!!!\n" % (file)) return True return False def stripper(item): '''Strips extra characters from "item". Breaks "item" into: url - The URL file - The actual package file size - The file size md5_text - The md5 checksum test and returns them.''' item = item.split(' ') url = string.rstrip(string.lstrip(''.join(item[0]), chars="'"), chars="'") file = string.rstrip(string.lstrip(''.join(item[1]), chars="'"), chars="'") size = int(string.rstrip(string.lstrip(''.join(item[2]), chars = "'"), chars="'")) md5_text = string.rstrip(string.lstrip(''.join(item[3]), chars = "'"), chars = "'") md5_text = string.rstrip(md5_text, chars = "\n") return url, file, size, md5_text def errfunc(errno, errormsg, filename): ''' We use errfunc to handler errors. There are some error codes (-3 and 13 as of now) which are temporary codes, they happen when there is a temporary resolution failure, for example. For such situations, we can't abort because the uri file might have other hosts also, which might be well accessible. This function does the job of behaving accordingly as per the error codes. ''' error_codes = [-3, 13, 504, 404, 10060, 104, 101010] if errno in error_codes: log.err("%s - %s - %s.%s\n" % (filename, errno, errormsg, LINE_OVERWRITE_MID)) log.verbose("Will still try with other package uris\n") pass elif errno == 10054: log.verbose("%s - %s - %s.%s\n" % (filename, errno, errormsg, LINE_OVERWRITE_SMALL) ) pass elif errno == 407 or errno == 2: log.err("%s\n" % (errormsg)) sys.exit(errno) elif errno == 1: log.err(errormsg) log.err("Explicit program termination %s\n" % (errno)) sys.exit(errno) else: log.err("I don't understand this error code %s\n" % (errno)) sys.exit(errno) def get_pager_cmd(pager_cmd = None): if os.name == 'posix': default_pager_cmd = 'less -r' elif os.name in ['nt', 'dos']: default_pager_cmd = 'type' if pager_cmd is None: try: pager_cmd = os.environ['PAGER'] except: pager_cmd = default_pager_cmd return pager_cmd class PagerCmd: """ Tries to automatically detect and set the pager on the running OS""" def __init__(self, pager_cmd = None): if os.name == 'posix': self.default_pager_cmd = 'less -r' elif os.name in ['nt', 'dos']: self.default_pager_cmd = 'type' if pager_cmd is None: try: self.pager_cmd = os.environ['PAGER'] except: self.pager_cmd = self.default_pager_cmd def send_to_pager(self, String = None): """Writes the String to the pager""" if String is None: return False else: try: retval = None pager = os.popen(self.pager_cmd, 'w') pager.write(String) retval = pager.close() except IOError,msg: if msg.args == (32,'Broken pipe'): retval = None else: retval = 1 except OSError: retval = 1 return retval def fetcher(ArgumentOptions, arg_type = None): ''' uri - The uri data whill will contain the information path - The path (if any) where the download needs to be done cache - The cache (if any) where we should check before downloading from the net arg_type - arg_type is basically used to identify wether it's a update download or upgrade download ''' cache_dir = ArgumentOptions.cache_dir if cache_dir is not None: if os.path.isdir(cache_dir) is False: log.verbose("WARNING: cache dir is incorrect. Did you give the full path ?\n") class FetcherClass(DownloadFromWeb, MyPythonLib.Archiver, MyPythonLib.Checksum): def __init__(self, width, lock): DownloadFromWeb.__init__(self, width=width) MyPythonLib.Archiver.__init__(self, lock=lock) FetcherInstance = FetcherClass(width=30, lock=True) if ArgumentOptions.download_dir is None: if os.access("pypt-downloads", os.W_OK) is True: download_path = os.path.abspath("pypt-downloads") else: try: os.umask(0002) os.mkdir("pypt-downloads") download_path = os.path.abspath("pypt-downloads") except: log.err("I couldn't create a directory") errfunc(1, '') else: if os.access(ArgumentOptions.download_dir, os.W_OK) is True: download_path = os.path.abspath(ArgumentOptions.download_dir) else: try: os.umask(0002) os.mkdir(ArgumentOptions.download_dir) download_path = os.path.abspath(ArgumentOptions.download_dir) except: log.err("I couldn't create a directory") errfunc(1, '') zip_update_file = os.path.join(os.path.abspath(download_path), ArgumentOptions.zip_update_file) zip_upgrade_file = os.path.join(os.path.abspath(download_path), ArgumentOptions.zip_upgrade_file) if ArgumentOptions.deb_bugs: if DebianBTS is True: if ArgumentOptions.zip_it: FetchBugReportsDebian = FetchBugReports(pypt_bug_file_format, IgnoredBugTypes, zip_upgrade_file, lock=True) else: FetchBugReportsDebian = FetchBugReports(pypt_bug_file_format, IgnoredBugTypes) else: log.err("Couldn't find debianbts module.\n Cannot fetch Bug Reports.\n") FetchData = {} if ArgumentOptions.fetch_update: try: raw_data_list = open(ArgumentOptions.fetch_update, 'r').readlines() except IOError, (errno, strerror): log.err("%s %s\n" % (errno, strerror)) errfunc(errno, '') FetchData['Update'] = [] for item in raw_data_list: FetchData['Update'].append(item) if os.access(os.path.join(download_path, ArgumentOptions.zip_update_file), os.F_OK): log.err("%s already present.\nRemove it first.\n" % (zip_update_file) ) sys.exit(1) if ArgumentOptions.fetch_upgrade: try: raw_data_list = open(ArgumentOptions.fetch_upgrade, 'r').readlines() except IOError, (errno, strerror): log.err("%s %s\n" % (errno, strerror)) errfunc(errno, '') FetchData['Upgrade'] = [] for item in raw_data_list: FetchData['Upgrade'].append(item) if os.access(os.path.join(download_path, ArgumentOptions.zip_upgrade_file), os.F_OK): log.err("%s already present.\nRemove it first.\n" % (zip_upgrade_file) ) sys.exit(1) del raw_data_list if sys.platform == 'darwin': log.verbose("Running on Mac OS! pypt-offline doesn't have proper support for Threads on Mac OS X.\n") log.verbose("Running in the conventional non-threaded way.\n") for key in FetchData.keys(): for item in FetchData.get(key): (url, file, download_size, checksum) = stripper(each_single_item) if key == 'Update': temp_file = file.split("_") PackageName = temp_file[0] PackageName += " - " + temp_file[len(temp_file) - 1] del temp_file log.msg("Downloading %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetcherInstance.download_from_web(url, file, download_path) != True: errlist.append(file) else: log.success("%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(zip_update_file, file) != True: log.verbose("%s added to archive %s.\n" % (file, zip_update_file) ) os.unlink(os.path.join(download_path, file) ) pass elif key == 'Upgrade': PackageName = file.split("_")[0] if cache_dir is None: log.msg("Downloading %s - %s %s\n" % (file, size/1024, LINE_OVERWRITE_FULL) ) if FetcherInstance.download_from_web(url, file, download_path) != True: errlist.append(PackageName) else: if ArgumentOptions.deb_bugs: bug_fetched = 0 if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.\n" % (PackageName) ) bug_fetched = 1 else: log.verbose("Couldn't fetch bug reports for package %s.\n" % (PackageName) ) if ArgumentOptions.zip_it: log.success("%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) FetcherInstance.compress_the_file(zip_upgrade_file, file) os.unlink(os.path.join(download_path, file)) if bug_fetched: if FetchBugReportsDebian.AddToArchive(zip_upgrade_file): log.verbose("Archived bug reports for package %s to archive %s\n" % (PackageName, zip_upgrade_file) ) else: if find_first_match(cache_dir, file, download_path, checksum) == False: log.msg("Downloading %s - %d KB%s\n" % (PackageName, size/1024, LINE_OVERWRITE_MID) ) if FetcherInstance.download_from_web(url, file, download_path) != True: errlist.append(PackageName) else: log.success("%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if os.access(os.path.join(cache_dir, file), os.F_OK): log.verbose("%s file is already present in cache-dir %s. Skipping copy.\n" % (file, cache_dir) ) else: if os.access(cache_dir, os.W_OK): shutil.copy(file, cache_dir) log.verbose("%s copied to %s\n" % (file, cache_dir)) else: log.verbose("Cannot copy %s to %s. Is %s writeable??\n" % (file, cache_dir)) if ArgumentOptions.deb_bugs: if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.\n" % (PackageName) ) else: log.verbose("Couldn't fetch bug reports for package %s.\n" % (PackageName) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(zip_upgrade_file, file) != True: log.err("Couldn't add %s to archive %s.\n" % (file, zip_upgrade_file) ) sys.exit(1) else: log.verbose("%s added to archive %s.\n" % (file, zip_upgrade_file) ) os.unlink(os.path.join(download_path, file)) elif True: if ArgumentOptions.deb_bugs: bug_fetched = 0 if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.\n" % (PackageName) ) bug_fetched = 1 else: log.err("Couldn't fetch bug reports for package %s.\n" % (PackageName) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(zip_upgrade_file, file) != True: log.err("Couldn't add %s to archive %s.\n" % (file, zip_upgrade_file) ) sys.exit(1) else: log.verbose("%s added to archive %s.\n" % (file, zip_upgrade_file) ) os.unlink(os.path.join(download_path, file)) else: if bug_fetched == 1: for x in os.listdir(os.curdir): if (x.startswith(PackageName) and x.endswith(pypt_bug_file_format) ): shutil.move(x, download_path) log.verbose("Moved %s file to %s folder.\n" % (x, download_path) ) else: raise FetchDataKeyError else:
|
raw_data_list = open( ArgumentOptions.fetch_upgrade, 'r' ).readlines() except IOError, ( errno, strerror ): log.err( "%s %s\n" % ( errno, strerror ) ) errfunc( errno, '' ) FetchData['Upgrade'] = [] for item in raw_data_list: FetchData['Upgrade'].append( item ) if os.access( os.path.join( download_path, ArgumentOptions.zip_upgrade_file ), os.F_OK ): log.err( "%s already present.\nRemove it first.\n" % ( zip_upgrade_file ) ) sys.exit( 1 ) del raw_data_list
|
def copy_first_match(cache_dir, filename, dest_dir, checksum): # aka new_walk_tree_copy() '''Walks into "reposiotry" looking for "filename". If found, copies it to "dest_dir" but first verifies their md5 "checksum".''' # If the repository is not given, we'll return None because the user wants to download # it from the web # There's no need to walk also because the user knows that he doesn't have any cache_dir # Earlier implementation of having a default dir (os.curdir()) hit performance badly because # at times it would start the walk from "C:\" or "/" if cache_dir is None: return False for path, file in files(cache_dir): if file == filename: #INFO: md5check is compulsory here # There's no point in checking for the disable-md5 option because # copying a damaged file is of no use if pypt_md5_check.CheckHashDigest(file, checksum, path) == True: try: shutil.copy(os.path.join(path, file), dest_dir) except shutil.Error: log.verbose("%s already available in dest_dir. Skipping copy!!!\n" % (file)) return True return False
|
633e729fafe639c8598b2bed45f16557d7c7726b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12499/633e729fafe639c8598b2bed45f16557d7c7726b/pypt_core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
3645,
67,
1916,
12,
2493,
67,
1214,
16,
1544,
16,
1570,
67,
1214,
16,
6697,
4672,
468,
28105,
394,
67,
11348,
67,
3413,
67,
3530,
1435,
9163,
9463,
87,
1368,
315,
15564,
1594,
698,
6,
7849,
364,
315,
3459,
9654,
971,
1392,
16,
13200,
518,
358,
315,
10488,
67,
1214,
6,
1496,
1122,
20761,
3675,
3481,
25,
315,
15149,
12013,
6309,
225,
468,
971,
326,
3352,
353,
486,
864,
16,
732,
5614,
327,
599,
2724,
326,
729,
14805,
358,
4224,
468,
518,
628,
326,
3311,
468,
6149,
1807,
1158,
1608,
358,
5442,
2546,
2724,
326,
729,
21739,
716,
3904,
3302,
1404,
1240,
1281,
1247,
67,
1214,
468,
512,
297,
9800,
4471,
434,
7999,
279,
805,
1577,
261,
538,
18,
1397,
1214,
10756,
6800,
9239,
5570,
715,
2724,
468,
622,
4124,
518,
4102,
787,
326,
5442,
628,
315,
39,
30,
2412,
578,
4016,
309,
1247,
67,
1214,
353,
599,
30,
327,
1083,
225,
364,
589,
16,
585,
316,
1390,
12,
2493,
67,
1214,
4672,
309,
585,
422,
1544,
30,
468,
5923,
30,
3481,
25,
1893,
353,
1161,
332,
87,
630,
2674,
468,
6149,
1807,
1158,
1634,
316,
6728,
364,
326,
4056,
17,
1264,
25,
1456,
2724,
468,
8933,
279,
302,
301,
11349,
585,
353,
434,
1158,
999,
309,
2395,
337,
67,
1264,
25,
67,
1893,
18,
1564,
2310,
9568,
12,
768,
16,
6697,
16,
589,
13,
422,
1053,
30,
775,
30,
11060,
18,
3530,
12,
538,
18,
803,
18,
5701,
12,
803,
16,
585,
3631,
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,
1610,
67,
3645,
67,
1916,
12,
2493,
67,
1214,
16,
1544,
16,
1570,
67,
1214,
16,
6697,
4672,
468,
28105,
394,
67,
11348,
67,
3413,
67,
3530,
1435,
9163,
9463,
87,
1368,
315,
15564,
1594,
698,
6,
7849,
364,
315,
3459,
9654,
971,
1392,
16,
13200,
518,
358,
315,
10488,
67,
1214,
6,
1496,
1122,
20761,
3675,
3481,
25,
315,
15149,
12013,
6309,
225,
468,
971,
326,
3352,
353,
486,
864,
16,
732,
5614,
327,
599,
2724,
326,
729,
14805,
358,
4224,
468,
518,
628,
326,
3311,
468,
6149,
1807,
1158,
1608,
358,
5442,
2546,
2724,
326,
729,
21739,
716,
3904,
3302,
1404,
1240,
1281,
1247,
67,
1214,
468,
512,
297,
9800,
4471,
434,
7999,
279,
805,
1577,
2
] |
raise Invalid("Thanks for your keenness, but you've already registered!")
|
raise Invalid("Thanks for your keenness, but you've already registered!", value, state)
|
def validate_python(self, value, state): rego = None if 'signed_in_person_id' in session: rego = Query(model.Registration).get_by(person_id=session['signed_in_person_id']) if rego is not None: raise Invalid("Thanks for your keenness, but you've already registered!")
|
e117640977d5c2ca413c902e00431bd3a2bf1146 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/e117640977d5c2ca413c902e00431bd3a2bf1146/registration.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
8103,
12,
2890,
16,
460,
16,
919,
4672,
960,
83,
273,
599,
309,
296,
5679,
67,
267,
67,
12479,
67,
350,
11,
316,
1339,
30,
960,
83,
273,
2770,
12,
2284,
18,
7843,
2934,
588,
67,
1637,
12,
12479,
67,
350,
33,
3184,
3292,
5679,
67,
267,
67,
12479,
67,
350,
19486,
309,
960,
83,
353,
486,
599,
30,
1002,
1962,
2932,
1315,
19965,
364,
3433,
12519,
275,
4496,
16,
1496,
1846,
8081,
1818,
4104,
4442,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
67,
8103,
12,
2890,
16,
460,
16,
919,
4672,
960,
83,
273,
599,
309,
296,
5679,
67,
267,
67,
12479,
67,
350,
11,
316,
1339,
30,
960,
83,
273,
2770,
12,
2284,
18,
7843,
2934,
588,
67,
1637,
12,
12479,
67,
350,
33,
3184,
3292,
5679,
67,
267,
67,
12479,
67,
350,
19486,
309,
960,
83,
353,
486,
599,
30,
1002,
1962,
2932,
1315,
19965,
364,
3433,
12519,
275,
4496,
16,
1496,
1846,
8081,
1818,
4104,
4442,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.