rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
output.add_option("-v", "--verbose", action="store_true", default=True, | output.add_option("-v", "--verbose", action="store_true", dest="verbose", | def parse_cmdline(argv): 'Parse the command line.' # Help message and version string version = ( "Crash dumper using Win32DBG\n" "by Mario Vilas (mvilas at gmail.com)\n" "Version 1.0" ) usage = ( "\n" "\n" " Create a new process (parameters for the target must be escaped):\n" " %prog [options] -c <executable> [escaped parameters for the target]\n" " %prog [options] -e <executable> [escaped parameters for the target]\n" "\n" " Attach to a running process (by filename):\n" " %prog [options] -a <executable>\n" "\n" " Attach to a running process (by ID):\n" " %prog [options] -a <process id>" ) | a602c666dccb773a61405d800e4b0f940598f5ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/a602c666dccb773a61405d800e4b0f940598f5ef/crash_logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4172,
1369,
12,
19485,
4672,
296,
3201,
326,
1296,
980,
1093,
225,
468,
11288,
883,
471,
1177,
533,
1177,
273,
261,
315,
12893,
961,
24826,
1450,
21628,
1578,
2290,
43,
64,
82,
6,
315,
1637,
490,
25124,
776,
330,
345,
261,
17509,
330,
345,
622,
314,
4408,
18,
832,
5153,
82,
6,
315,
1444,
404,
18,
20,
6,
262,
4084,
273,
261,
1548,
82,
6,
1548,
82,
6,
315,
225,
1788,
279,
394,
1207,
261,
3977,
364,
326,
1018,
1297,
506,
8345,
4672,
64,
82,
6,
315,
565,
738,
14654,
306,
2116,
65,
300,
71,
411,
17751,
34,
306,
16502,
1472,
364,
326,
1018,
13944,
82,
6,
315,
565,
738,
14654,
306,
2116,
65,
300,
73,
411,
17751,
34,
306,
16502,
1472,
364,
326,
1018,
13944,
82,
6,
1548,
82,
6,
315,
225,
8659,
358,
279,
3549,
1207,
261,
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4172,
1369,
12,
19485,
4672,
296,
3201,
326,
1296,
980,
1093,
225,
468,
11288,
883,
471,
1177,
533,
1177,
273,
261,
315,
12893,
961,
24826,
1450,
21628,
1578,
2290,
43,
64,
82,
6,
315,
1637,
490,
25124,
776,
330,
345,
261,
17509,
330,
345,
622,
314,
4408,
18,
832,
5153,
82,
6,
315,
1444,
404,
18,
20,
6,
262,
4084,
273,
261,
1548,
82,
6,
1548,
82,
6,
315,
225,
1788,
279,
394,
1207,
261,
3977,
364,
326,
1018,
1297,
506,
8345,
4672,
64,
82,
6,
315,
565,
738,
14654,
306,
2116,
65,
300,
71,
411,
17751,
34,
306,
16502,
1472,
364,
326,
1018,
13944,
82,
6,
315,
565,
738,
14654,
306,
2116,
65,
300,
73,
2
] |
NextURI = self.server.av_transport_server.get_variable(InstanceID, 'NextAVTransportURI').value | NextURI = self.server.av_transport_server.get_variable('NextAVTransportURI',InstanceID).value | def upnp_Seek(self, *args, **kwargs): InstanceID = int(kwargs['InstanceID']) Unit = kwargs['Unit'] Target = kwargs['Target'] if InstanceID != 0: return failure.Failure(errorCode(718)) if Unit in ['ABS_TIME','REL_TIME']: old_state = self.server.av_transport_server.get_variable('TransportState').value self.server.av_transport_server.set_variable(InstanceID, 'TransportState', 'TRANSITIONING') | 729fee3caa13a823d0e2315826959fb6b1c42d05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/729fee3caa13a823d0e2315826959fb6b1c42d05/gstreamer_renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
731,
6782,
67,
16134,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
29390,
273,
509,
12,
4333,
3292,
1442,
734,
19486,
8380,
273,
1205,
3292,
2802,
3546,
5916,
273,
1205,
3292,
2326,
3546,
309,
29390,
480,
374,
30,
327,
5166,
18,
5247,
12,
27754,
12,
27,
2643,
3719,
309,
8380,
316,
10228,
2090,
55,
67,
4684,
17023,
15868,
67,
4684,
3546,
30,
1592,
67,
2019,
273,
365,
18,
3567,
18,
842,
67,
13049,
67,
3567,
18,
588,
67,
6105,
2668,
6568,
1119,
16063,
1132,
365,
18,
3567,
18,
842,
67,
13049,
67,
3567,
18,
542,
67,
6105,
12,
1442,
734,
16,
296,
6568,
1119,
2187,
296,
16596,
7022,
1360,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
731,
6782,
67,
16134,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
29390,
273,
509,
12,
4333,
3292,
1442,
734,
19486,
8380,
273,
1205,
3292,
2802,
3546,
5916,
273,
1205,
3292,
2326,
3546,
309,
29390,
480,
374,
30,
327,
5166,
18,
5247,
12,
27754,
12,
27,
2643,
3719,
309,
8380,
316,
10228,
2090,
55,
67,
4684,
17023,
15868,
67,
4684,
3546,
30,
1592,
67,
2019,
273,
365,
18,
3567,
18,
842,
67,
13049,
67,
3567,
18,
588,
67,
6105,
2668,
6568,
1119,
16063,
1132,
365,
18,
3567,
18,
842,
67,
13049,
67,
3567,
18,
542,
67,
6105,
12,
1442,
734,
16,
296,
6568,
1119,
2187,
296,
16596,
7022,
1360,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
win32file.SetCommTimeouts(self.hComPort, self._orgTimeouts) | try: win32file.SetCommTimeouts(self.hComPort, self._orgTimeouts) except win32file.error: pass | def close(self): """Close port""" if self._isOpen: if self.hComPort: #Restore original timeout values: win32file.SetCommTimeouts(self.hComPort, self._orgTimeouts) #Close COM-Port: win32file.CloseHandle(self.hComPort) win32file.CloseHandle(self._overlappedRead.hEvent) win32file.CloseHandle(self._overlappedWrite.hEvent) self.hComPort = None self._isOpen = False | b61320866cbbfc8a01c410c66a9d6c4484f1cc14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2937/b61320866cbbfc8a01c410c66a9d6c4484f1cc14/serialwin32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
1756,
8395,
309,
365,
6315,
291,
3678,
30,
309,
365,
18,
76,
799,
2617,
30,
468,
10874,
2282,
2021,
924,
30,
5657,
1578,
768,
18,
694,
12136,
2694,
87,
12,
2890,
18,
76,
799,
2617,
16,
365,
6315,
3341,
2694,
87,
13,
468,
4605,
5423,
17,
2617,
30,
5657,
1578,
768,
18,
4605,
3259,
12,
2890,
18,
76,
799,
2617,
13,
5657,
1578,
768,
18,
4605,
3259,
12,
2890,
6315,
17946,
1845,
1994,
18,
76,
1133,
13,
5657,
1578,
768,
18,
4605,
3259,
12,
2890,
6315,
17946,
1845,
3067,
18,
76,
1133,
13,
365,
18,
76,
799,
2617,
273,
599,
365,
6315,
291,
3678,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
1756,
8395,
309,
365,
6315,
291,
3678,
30,
309,
365,
18,
76,
799,
2617,
30,
468,
10874,
2282,
2021,
924,
30,
5657,
1578,
768,
18,
694,
12136,
2694,
87,
12,
2890,
18,
76,
799,
2617,
16,
365,
6315,
3341,
2694,
87,
13,
468,
4605,
5423,
17,
2617,
30,
5657,
1578,
768,
18,
4605,
3259,
12,
2890,
18,
76,
799,
2617,
13,
5657,
1578,
768,
18,
4605,
3259,
12,
2890,
6315,
17946,
1845,
1994,
18,
76,
1133,
13,
5657,
1578,
768,
18,
4605,
3259,
12,
2890,
6315,
17946,
1845,
3067,
18,
76,
1133,
13,
365,
18,
76,
799,
2617,
273,
599,
365,
6315,
291,
3678,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement) | def __init__(self, prepoly, poly, prec, halt, print_mode, shift_seed, names): unram_prec = (prec + poly.degree() - 1) // poly.degree() ntl_poly = ntl_ZZ_pX([a.lift() for a in poly.list()], poly.base_ring().prime()**unram_prec) shift_poly = ntl_ZZ_pX([a.lift() for a in shift_seed.list()], shift_seed.base_ring().prime()**unram_prec) if unram_prec <= 30: self.prime_pow = PowComputer_ext_maker(poly.base_ring().prime(), unram_prec, unram_prec, prec, True, ntl_poly, "small", "e", shift_poly) else: self.prime_pow = PowComputer_ext_maker(poly.base_ring().prime(), 30, unram_prec, prec, True, ntl_poly, "big", "e", shift_poly) self._shift_seed = shift_seed self._pre_poly = prepoly EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, pAdicZZpXCRElement) | def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement) | 0f057e2127f2ea6d70a9e20884218a7ef6dea886 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0f057e2127f2ea6d70a9e20884218a7ef6dea886/padic_extension_leaves.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7573,
16,
13382,
16,
18389,
16,
1172,
67,
3188,
16,
1257,
4672,
512,
291,
275,
334,
13685,
3625,
7014,
16186,
2738,
972,
12,
2890,
16,
7573,
16,
13382,
16,
1172,
67,
3188,
16,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7573,
16,
13382,
16,
18389,
16,
1172,
67,
3188,
16,
1257,
4672,
512,
291,
275,
334,
13685,
3625,
7014,
16186,
2738,
972,
12,
2890,
16,
7573,
16,
13382,
16,
1172,
67,
3188,
16,
1257,
16,
512,
291,
275,
334,
13685,
3625,
4664,
1845,
8574,
1046,
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
] |
for c in h.categories: if not c.publiclist: | for hc in h.categories: if not hc.category.publiclist: | def _trim_hosts(hosts): '''remove hosts who have no public categories or hcurls''' orig_hosts = copy(hosts) i=0 for h in orig_hosts: i=i+1 found=False for c in h.categories: if not c.publiclist: continue if len(h.category_urls(c)) > 0: if _has_up2date_dirs(h, c): found=True break if not found: del hosts[i-1] return hosts | aa10d64835c32a13e295e59df8ee8c318d72da0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13031/aa10d64835c32a13e295e59df8ee8c318d72da0e/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5290,
67,
11588,
12,
11588,
4672,
9163,
4479,
7206,
10354,
1240,
1158,
1071,
6477,
578,
11684,
10518,
26418,
1647,
67,
11588,
273,
1610,
12,
11588,
13,
277,
33,
20,
364,
366,
316,
1647,
67,
11588,
30,
277,
33,
77,
15,
21,
1392,
33,
8381,
364,
11684,
316,
366,
18,
8995,
30,
309,
486,
11684,
18,
4743,
18,
482,
1098,
30,
1324,
309,
562,
12,
76,
18,
4743,
67,
10518,
12,
71,
3719,
405,
374,
30,
309,
389,
5332,
67,
416,
22,
712,
67,
8291,
12,
76,
16,
276,
4672,
1392,
33,
5510,
898,
309,
486,
1392,
30,
1464,
7206,
63,
77,
17,
21,
65,
327,
7206,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5290,
67,
11588,
12,
11588,
4672,
9163,
4479,
7206,
10354,
1240,
1158,
1071,
6477,
578,
11684,
10518,
26418,
1647,
67,
11588,
273,
1610,
12,
11588,
13,
277,
33,
20,
364,
366,
316,
1647,
67,
11588,
30,
277,
33,
77,
15,
21,
1392,
33,
8381,
364,
11684,
316,
366,
18,
8995,
30,
309,
486,
11684,
18,
4743,
18,
482,
1098,
30,
1324,
309,
562,
12,
76,
18,
4743,
67,
10518,
12,
71,
3719,
405,
374,
30,
309,
389,
5332,
67,
416,
22,
712,
67,
8291,
12,
76,
16,
276,
4672,
1392,
33,
5510,
898,
309,
486,
1392,
30,
1464,
7206,
63,
77,
17,
21,
65,
327,
7206,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
>>> booking = context.items[-1] | >>> booking = context.get('4') | ... def objectIds(self): | 11b478972152a15fce1de03ba52e6a7774bb2569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10444/11b478972152a15fce1de03ba52e6a7774bb2569/add.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
733,
2673,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1372,
377,
1652,
733,
2673,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.info(path)['size'] | return self.getinfo(path)['size'] | def getsize(self, path): | 11e0fa8a946fb3ce991ba0e46977d1175b48805a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5578/11e0fa8a946fb3ce991ba0e46977d1175b48805a/fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30208,
12,
2890,
16,
589,
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,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME])) os.chmod(dst, mode) | if hasattr(os, 'utime'): os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME])) if hasattr(os, 'chmod'): os.chmod(dst, mode) | def copystat(src, dst): """Copy all stat info (mode bits, atime and mtime) from src to dst""" st = os.stat(src) mode = stat.S_IMODE(st[stat.ST_MODE]) os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME])) os.chmod(dst, mode) | 27f410fe7fc3510002f55d8f913a5013585914a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/27f410fe7fc3510002f55d8f913a5013585914a9/shutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6529,
1094,
270,
12,
4816,
16,
3046,
4672,
3536,
2951,
777,
610,
1123,
261,
3188,
4125,
16,
622,
494,
471,
13158,
13,
628,
1705,
358,
3046,
8395,
384,
273,
1140,
18,
5642,
12,
4816,
13,
1965,
273,
610,
18,
55,
67,
3445,
2712,
12,
334,
63,
5642,
18,
882,
67,
7038,
5717,
309,
3859,
12,
538,
16,
296,
322,
494,
11,
4672,
1140,
18,
322,
494,
12,
11057,
16,
261,
334,
63,
5642,
18,
882,
67,
789,
3114,
6487,
384,
63,
5642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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,
6529,
1094,
270,
12,
4816,
16,
3046,
4672,
3536,
2951,
777,
610,
1123,
261,
3188,
4125,
16,
622,
494,
471,
13158,
13,
628,
1705,
358,
3046,
8395,
384,
273,
1140,
18,
5642,
12,
4816,
13,
1965,
273,
610,
18,
55,
67,
3445,
2712,
12,
334,
63,
5642,
18,
882,
67,
7038,
5717,
309,
3859,
12,
538,
16,
296,
322,
494,
11,
4672,
1140,
18,
322,
494,
12,
11057,
16,
261,
334,
63,
5642,
18,
882,
67,
789,
3114,
6487,
384,
63,
5642,
18,
882,
67,
49,
4684,
22643,
309,
3859,
12,
538,
16,
296,
343,
1711,
11,
4672,
1140,
18,
343,
1711,
12,
11057,
16,
1965,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if workspace_id: workspace = Workspace.objects.get(pk = workspace_id) else: workspace = request.session['workspace'] | workspace = request.session['workspace'] | def load_items(request, view_type=None, unlimited=False, ): from datetime import datetime try: user = User.objects.get(pk=request.session['_auth_user_id']) workspace_id = request.POST.get('workspace_id') if workspace_id: workspace = Workspace.objects.get(pk = workspace_id) else: workspace = request.session['workspace'] media_type = request.POST.getlist('media_type') | 83623b0cd87593f0127f08622b9169901fd01de0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/83623b0cd87593f0127f08622b9169901fd01de0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3319,
12,
2293,
16,
1476,
67,
723,
33,
7036,
16,
640,
21325,
33,
8381,
16,
262,
30,
628,
3314,
1930,
3314,
775,
30,
729,
273,
2177,
18,
6911,
18,
588,
12,
5465,
33,
2293,
18,
3184,
3292,
67,
1944,
67,
1355,
67,
350,
19486,
6003,
67,
350,
273,
590,
18,
3798,
18,
588,
2668,
14915,
67,
350,
6134,
377,
6003,
273,
590,
18,
3184,
3292,
14915,
3546,
225,
3539,
67,
723,
273,
590,
18,
3798,
18,
588,
1098,
2668,
5829,
67,
723,
6134,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3319,
12,
2293,
16,
1476,
67,
723,
33,
7036,
16,
640,
21325,
33,
8381,
16,
262,
30,
628,
3314,
1930,
3314,
775,
30,
729,
273,
2177,
18,
6911,
18,
588,
12,
5465,
33,
2293,
18,
3184,
3292,
67,
1944,
67,
1355,
67,
350,
19486,
6003,
67,
350,
273,
590,
18,
3798,
18,
588,
2668,
14915,
67,
350,
6134,
377,
6003,
273,
590,
18,
3184,
3292,
14915,
3546,
225,
3539,
67,
723,
273,
590,
18,
3798,
18,
588,
1098,
2668,
5829,
67,
723,
6134,
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
] |
print >> sys.stderr, "REPLACING SOMETHING", replacement, shape_feature.shape_of[replacement] | def local_track_shape_i(node): try: shape_feature = node.env.shape_feature except: return if node in shape_feature.scheduled: assert isinstance(node.op, Shape_i) replacement = shape_feature.scheduled[node] #if len(shape_feature.shape_of[replacement])!=1: #import pdb;pdb.set_trace() print >> sys.stderr, "REPLACING SOMETHING", replacement, shape_feature.shape_of[replacement] return [shape_feature.shape_of[replacement][node.op.i]] | f11ce936e1a3a07373542b1852bf0b60de28fb9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/f11ce936e1a3a07373542b1852bf0b60de28fb9f/opt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
4101,
67,
4867,
67,
77,
12,
2159,
4672,
775,
30,
2179,
67,
7238,
273,
756,
18,
3074,
18,
4867,
67,
7238,
1335,
30,
327,
309,
756,
316,
2179,
67,
7238,
18,
23307,
30,
1815,
1549,
12,
2159,
18,
556,
16,
12383,
67,
77,
13,
6060,
273,
2179,
67,
7238,
18,
23307,
63,
2159,
65,
468,
430,
562,
12,
4867,
67,
7238,
18,
4867,
67,
792,
63,
24394,
5717,
5,
33,
21,
30,
468,
5666,
10892,
31,
17414,
18,
542,
67,
5129,
1435,
1172,
1671,
2589,
18,
11241,
16,
315,
862,
6253,
2226,
1360,
7460,
5277,
1360,
3113,
6060,
16,
2179,
67,
7238,
18,
4867,
67,
792,
63,
24394,
65,
327,
306,
4867,
67,
7238,
18,
4867,
67,
792,
63,
24394,
6362,
2159,
18,
556,
18,
77,
13563,
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,
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
12383,
67,
77,
13,
6060,
273,
2179,
67,
7238,
18,
23307,
63,
2159,
65,
468,
430,
562,
12,
4867,
67,
7238,
18,
4867,
67,
792,
63,
24394,
5717,
5,
33,
21,
30,
468,
5666,
10892,
31,
17414,
18,
542,
67,
5129,
1435,
1172,
1671,
2589,
18,
11241,
16,
315,
862,
6253,
2226,
1360,
7460,
5277,
1360,
3113,
6060,
16,
2179,
67,
7238,
18,
4867,
67,
792,
63,
24394,
65,
327,
306,
4867,
67,
7238,
18,
4867,
2
] |
|
name = self._read_string() length = self._unpack_int() if length == 0: length = None | name = self._unpack_string() length = self._unpack_int() or None | def _dim_array(self): """Read a dict with dimensions names and sizes.""" assert self.read(4) in [ZERO, NC_DIMENSION] count = self._unpack_int() | 10f173ae17d920e2e13f35ad760832641e6b4a35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/10f173ae17d920e2e13f35ad760832641e6b4a35/pupynere.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3509,
67,
1126,
12,
2890,
4672,
3536,
1994,
279,
2065,
598,
5769,
1257,
471,
8453,
12123,
1815,
365,
18,
896,
12,
24,
13,
316,
306,
24968,
16,
423,
39,
67,
2565,
958,
3156,
1146,
65,
1056,
273,
365,
6315,
17309,
67,
474,
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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
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3509,
67,
1126,
12,
2890,
4672,
3536,
1994,
279,
2065,
598,
5769,
1257,
471,
8453,
12123,
1815,
365,
18,
896,
12,
24,
13,
316,
306,
24968,
16,
423,
39,
67,
2565,
958,
3156,
1146,
65,
1056,
273,
365,
6315,
17309,
67,
474,
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
] |
if self.offset == 0: gl.color(0x800) | if gl.getdisplaymode() in (DMRGB, DMRGBDOUBLE): gl.RGBcolor(200, 200, 200) | def clear(self): if not self.colormapinited: raise CallError if self.offset == 0: gl.color(0x800) gl.clear() else: gl.clear() | 4526f379bca5695b2144f1142f6a524d77bb7fe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4526f379bca5695b2144f1142f6a524d77bb7fe4/VFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
309,
486,
365,
18,
1293,
18804,
2738,
329,
30,
1002,
3049,
668,
309,
5118,
18,
588,
5417,
3188,
1435,
316,
261,
16125,
11343,
16,
30072,
11343,
17088,
4672,
5118,
18,
11343,
3266,
12,
6976,
16,
4044,
16,
4044,
13,
5118,
18,
8507,
1435,
469,
30,
5118,
18,
8507,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
309,
486,
365,
18,
1293,
18804,
2738,
329,
30,
1002,
3049,
668,
309,
5118,
18,
588,
5417,
3188,
1435,
316,
261,
16125,
11343,
16,
30072,
11343,
17088,
4672,
5118,
18,
11343,
3266,
12,
6976,
16,
4044,
16,
4044,
13,
5118,
18,
8507,
1435,
469,
30,
5118,
18,
8507,
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
] |
def _domain_force_get(self, cr, uid, ids, field_name, arg, context={}): res = {} for rule in self.browse(cr, uid, ids, context): eval_user_data = {'user': self.pool.get('res.users').browse(cr, 1, uid), 'time':time} | def __domain_calc(self, rule_dic, eval_data): """ Calculate the domain expression for some rule. @rule_dic is a dictionary with rule{'domain_force', 'operand', 'operator', 'field_name'} @eval_data a dictionary with context for eval() """ | def _domain_force_get(self, cr, uid, ids, field_name, arg, context={}): res = {} for rule in self.browse(cr, uid, ids, context): eval_user_data = {'user': self.pool.get('res.users').browse(cr, 1, uid), 'time':time} res[rule.id] = eval(rule.domain_force, eval_user_data) return res | 65b0532819da3241475c4413dd488cdff4c0736e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/65b0532819da3241475c4413dd488cdff4c0736e/ir_rule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4308,
67,
12448,
12,
2890,
16,
1720,
67,
15859,
16,
5302,
67,
892,
4672,
3536,
9029,
326,
2461,
2652,
364,
2690,
1720,
18,
632,
5345,
67,
15859,
353,
279,
3880,
598,
1720,
27828,
4308,
67,
5734,
2187,
296,
4063,
464,
2187,
296,
9497,
2187,
296,
1518,
67,
529,
11,
97,
632,
8622,
67,
892,
279,
3880,
598,
819,
364,
5302,
1435,
3536,
400,
63,
5345,
18,
350,
65,
273,
5302,
12,
5345,
18,
4308,
67,
5734,
16,
5302,
67,
1355,
67,
892,
13,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4308,
67,
12448,
12,
2890,
16,
1720,
67,
15859,
16,
5302,
67,
892,
4672,
3536,
9029,
326,
2461,
2652,
364,
2690,
1720,
18,
632,
5345,
67,
15859,
353,
279,
3880,
598,
1720,
27828,
4308,
67,
5734,
2187,
296,
4063,
464,
2187,
296,
9497,
2187,
296,
1518,
67,
529,
11,
97,
632,
8622,
67,
892,
279,
3880,
598,
819,
364,
5302,
1435,
3536,
400,
63,
5345,
18,
350,
65,
273,
5302,
12,
5345,
18,
4308,
67,
5734,
16,
5302,
67,
1355,
67,
892,
13,
327,
400,
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
] |
self.ufeed.invalidate_counts() | self.ufeed.recalc_counts() | def update_finished(self): """ Called by subclasses to finish the update. """ if self.initialUpdate: self.initialUpdate = False startfrom = None itemToUpdate = None for latest in models.Item.latest_in_feed_view(self.ufeed_id): latest.eligibleForAutoDownload = True latest.signal_change() if self.ufeed.is_autodownloadable(): self.ufeed.mark_as_viewed() self.ufeed.signal_change() | c943da495a9f2a51d33403b0d27161b4e4dbd0e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/c943da495a9f2a51d33403b0d27161b4e4dbd0e2/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
13527,
12,
2890,
4672,
3536,
11782,
635,
15320,
358,
4076,
326,
1089,
18,
3536,
309,
365,
18,
6769,
1891,
30,
365,
18,
6769,
1891,
273,
1083,
787,
2080,
273,
599,
761,
21267,
273,
599,
364,
4891,
316,
3679,
18,
1180,
18,
13550,
67,
267,
67,
7848,
67,
1945,
12,
2890,
18,
696,
73,
329,
67,
350,
4672,
4891,
18,
292,
16057,
1290,
4965,
7109,
273,
1053,
4891,
18,
10420,
67,
3427,
1435,
309,
365,
18,
696,
73,
329,
18,
291,
67,
5854,
369,
995,
945,
429,
13332,
365,
18,
696,
73,
329,
18,
3355,
67,
345,
67,
1945,
329,
1435,
365,
18,
696,
73,
329,
18,
10420,
67,
3427,
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,
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4076,
326,
1089,
18,
3536,
309,
365,
18,
6769,
1891,
30,
365,
18,
6769,
1891,
273,
1083,
787,
2080,
273,
599,
761,
21267,
273,
599,
364,
4891,
316,
3679,
18,
1180,
18,
13550,
67,
267,
67,
7848,
67,
1945,
12,
2890,
18,
696,
73,
329,
67,
350,
4672,
4891,
18,
292,
16057,
1290,
4965,
7109,
273,
1053,
4891,
18,
10420,
67,
3427,
1435,
309,
365,
18,
696,
73,
329,
18,
291,
67,
5854,
369,
995,
945,
429,
13332,
365,
18,
696,
73,
329,
18,
3355,
67,
345,
67,
1945,
329,
1435,
365,
18,
696,
73,
329,
18,
10420,
67,
3427,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
found = self.investigateInspiral( trigCache.pfnlist(), inj, ifo, stage, self.number ) | found = self.investigateInspiral( trigCache.pfnlist(), inj, ifo, \ stage, self.number ) | def fillTable(page, contents ): """ Making life easier... """ | 97e32f7f2ca5cb3d7f0c99dedfdf52cb1afe6f09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/97e32f7f2ca5cb3d7f0c99dedfdf52cb1afe6f09/followup_missed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
1388,
12,
2433,
16,
2939,
262,
30,
3536,
490,
6159,
17140,
15857,
2777,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
1388,
12,
2433,
16,
2939,
262,
30,
3536,
490,
6159,
17140,
15857,
2777,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.values = {} self.config = SafeConfigParser() | self.values = OrderedDict() self.config = RawConfigParser() | def __init__(self, path): self.path = path self.values = {} self.config = SafeConfigParser() | 9a5b7260133c8c2517b2a381c513412b1a9969b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/9a5b7260133c8c2517b2a381c513412b1a9969b8/iniconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
4672,
365,
18,
803,
273,
589,
365,
18,
2372,
273,
2618,
365,
18,
1425,
273,
14060,
809,
2678,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
4672,
365,
18,
803,
273,
589,
365,
18,
2372,
273,
2618,
365,
18,
1425,
273,
14060,
809,
2678,
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
] |
"""SMTP 'mail' command. Begins mail xfer session.""" | """SMTP 'mail' command -- begins mail xfer session.""" | def mail(self,sender,options=[]): """SMTP 'mail' command. Begins mail xfer session.""" optionlist = '' if options and self.does_esmtp: optionlist = string.join(options, ' ') self.putcmd("mail", "FROM:%s %s" % (quoteaddr(sender) ,optionlist)) return self.getreply() | 33277df4d8ce335176270f2501de2933739ddd3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33277df4d8ce335176270f2501de2933739ddd3c/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4791,
12,
2890,
16,
15330,
16,
2116,
33,
8526,
4672,
3536,
55,
14636,
296,
4408,
11,
1296,
1493,
17874,
4791,
619,
586,
1339,
12123,
1456,
1098,
273,
875,
309,
702,
471,
365,
18,
20657,
67,
281,
11091,
30,
1456,
1098,
273,
533,
18,
5701,
12,
2116,
16,
296,
8624,
365,
18,
458,
4172,
2932,
4408,
3113,
315,
11249,
5319,
87,
738,
87,
6,
738,
261,
9270,
684,
3069,
12,
15330,
13,
269,
3482,
1098,
3719,
327,
365,
18,
588,
10629,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4791,
12,
2890,
16,
15330,
16,
2116,
33,
8526,
4672,
3536,
55,
14636,
296,
4408,
11,
1296,
1493,
17874,
4791,
619,
586,
1339,
12123,
1456,
1098,
273,
875,
309,
702,
471,
365,
18,
20657,
67,
281,
11091,
30,
1456,
1098,
273,
533,
18,
5701,
12,
2116,
16,
296,
8624,
365,
18,
458,
4172,
2932,
4408,
3113,
315,
11249,
5319,
87,
738,
87,
6,
738,
261,
9270,
684,
3069,
12,
15330,
13,
269,
3482,
1098,
3719,
327,
365,
18,
588,
10629,
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
] |
sage: print t1.to_cycles() | sage: t1.to_cycles() | def tau1(T1, T2, cells_map): r""" The definition of tau1 is: tau1 : T1 -> T1 tau1 = beta\^(-1)_2 beta_3 (composing left to right 000) where beta_i : T2 -> T1 changes just the i-th coordinate of a triple. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2,3,4) ) sage: y = isotopism(5) # identity sage: z = isotopism(5) # identity sage: T2 = T1.apply_isotopism(x, y, z) sage: print is_bitrade(T1, T2) True sage: (cells_map, t1, t2, t3) = tau123(T1, T2) sage: t1 = tau1(T1, T2, cells_map) sage: print t1 [2, 3, 4, 5, 1, 7, 8, 9, 10, 6, 12, 13, 14, 15, 11, 17, 18, 19, 20, 16, 22, 23, 24, 25, 21] sage: print t1.to_cycles() [(1, 2, 3, 4, 5), (6, 7, 8, 9, 10), (11, 12, 13, 14, 15), (16, 17, 18, 19, 20), (21, 22, 23, 24, 25)] """ # The cells_map has both directions, i.e. integer to # cell and cell to integer, so the size of T1 is # just half of len(cells_map). x = (int(len(cells_map)/2) + 1) * [-1] for r in range(T1.nrows()): for c in range(T1.ncols()): e = T1[r, c] if e < 0: continue (r2, c2, e2) = beta2( (r,c,e), T1, T2) (r3, c3, e3) = beta3( (r2,c2,e2), T2, T1) x[ cells_map[(r,c)] ] = cells_map[ (r3,c3) ] x.pop(0) # remove the head of the list since we # have permutations on 1..(something). return Permutation(x) | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
21,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
436,
8395,
1021,
2379,
434,
12284,
21,
353,
30,
225,
12284,
21,
294,
399,
21,
317,
399,
21,
12284,
21,
273,
6796,
64,
66,
19236,
21,
13,
67,
22,
6796,
67,
23,
282,
261,
832,
24014,
2002,
358,
2145,
20546,
13,
225,
1625,
225,
6796,
67,
77,
294,
399,
22,
317,
399,
21,
225,
3478,
2537,
326,
277,
17,
451,
7799,
434,
279,
14543,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
7373,
12660,
18,
26578,
1930,
380,
272,
410,
30,
399,
21,
273,
1473,
67,
11614,
1934,
970,
12,
25,
13,
272,
410,
30,
619,
273,
29677,
556,
6228,
12,
261,
20,
16,
21,
16,
22,
16,
23,
16,
24,
13,
262,
272,
410,
30,
677,
273,
29677,
556,
6228,
12,
25,
13,
468,
4215,
272,
410,
30,
998,
273,
29677,
556,
6228,
12,
25,
13,
468,
4215,
272,
410,
30,
399,
22,
273,
399,
21,
18,
9010,
67,
17693,
556,
6228,
12,
92,
16,
677,
16,
998,
13,
272,
410,
30,
1172,
353,
67,
3682,
354,
323,
12,
56,
21,
16,
399,
22,
13,
1053,
272,
410,
30,
261,
14741,
67,
1458,
16,
268,
21,
16,
268,
22,
16,
268,
23,
13,
273,
12284,
12936,
12,
56,
21,
16,
399,
22,
13,
272,
410,
30,
268,
21,
273,
12284,
21,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
13,
272,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
21,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
436,
8395,
1021,
2379,
434,
12284,
21,
353,
30,
225,
12284,
21,
294,
399,
21,
317,
399,
21,
12284,
21,
273,
6796,
64,
66,
19236,
21,
13,
67,
22,
6796,
67,
23,
282,
261,
832,
24014,
2002,
358,
2145,
20546,
13,
225,
1625,
225,
6796,
67,
77,
294,
399,
22,
317,
399,
21,
225,
3478,
2537,
326,
277,
17,
451,
7799,
434,
279,
14543,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
7373,
12660,
18,
26578,
1930,
380,
272,
410,
30,
399,
21,
273,
1473,
67,
11614,
1934,
970,
12,
25,
13,
272,
410,
30,
619,
2
] |
date_planned = (date_planned - relativedelta(company.security_lead)).strftime('%Y-%m-%d %H:%M:%S') | date_planned = (date_planned - timedelta(days=company.security_lead)).strftime('%Y-%m-%d %H:%M:%S') | def action_ship_create(self, cr, uid, ids, *args): picking_id = False company = self.pool.get('res.users').browse(cr, uid, uid).company_id for order in self.browse(cr, uid, ids, context={}): proc_ids = [] output_id = order.shop_id.warehouse_id.lot_output_id.id picking_id = False for line in order.order_line: proc_id = False date_planned = datetime.now() + relativedelta(days=line.delay or 0.0) date_planned = (date_planned - relativedelta(company.security_lead)).strftime('%Y-%m-%d %H:%M:%S') if line.state == 'done': continue move_id = False if line.product_id and line.product_id.product_tmpl_id.type in ('product', 'consu'): location_id = order.shop_id.warehouse_id.lot_stock_id.id if not picking_id: loc_dest_id = order.partner_id.property_stock_customer.id pick_name = self.pool.get('ir.sequence').get(cr, uid, 'stock.picking.out') picking_id = self.pool.get('stock.picking').create(cr, uid, { 'name': pick_name, 'origin': order.name, 'type': 'out', 'state': 'auto', 'move_type': order.picking_policy, 'sale_id': order.id, 'address_id': order.partner_shipping_id.id, 'note': order.note, 'invoice_state': (order.order_policy=='picking' and '2binvoiced') or 'none', 'company_id': order.company_id.id, }) move_id = self.pool.get('stock.move').create(cr, uid, { 'name': line.name[:64], 'picking_id': picking_id, 'product_id': line.product_id.id, 'date_planned': date_planned, 'date_expected': date_planned, 'product_qty': line.product_uom_qty, 'product_uom': line.product_uom.id, 'product_uos_qty': line.product_uos_qty, 'product_uos': (line.product_uos and line.product_uos.id)\ or line.product_uom.id, 'product_packaging': line.product_packaging.id, 'address_id': line.address_allotment_id.id or order.partner_shipping_id.id, 'location_id': location_id, 'location_dest_id': output_id, 'sale_line_id': line.id, 'tracking_id': False, 'state': 'draft', #'state': 'waiting', 'note': line.notes, 'company_id': order.company_id.id, }) if line.product_id: proc_id = self.pool.get('procurement.order').create(cr, uid, { 'name': line.name, 'origin': order.name, 'date_planned': date_planned, 'product_id': line.product_id.id, 'product_qty': line.product_uom_qty, 'product_uom': line.product_uom.id, 'product_uos_qty': (line.product_uos and line.product_uos_qty)\ or line.product_uom_qty, 'product_uos': (line.product_uos and line.product_uos.id)\ or line.product_uom.id, 'location_id': order.shop_id.warehouse_id.lot_stock_id.id, 'procure_method': line.type, 'move_id': move_id, 'property_ids': [(6, 0, [x.id for x in line.property_ids])], 'company_id': order.company_id.id, }) proc_ids.append(proc_id) self.pool.get('sale.order.line').write(cr, uid, [line.id], {'procurement_id': proc_id}) | d37ef0a57183ba5ed91064c8bbe32aea90f4a1d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d37ef0a57183ba5ed91064c8bbe32aea90f4a1d1/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
3261,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
6002,
310,
67,
350,
273,
1083,
9395,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
16840,
67,
350,
364,
1353,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
5418,
67,
2232,
273,
5378,
876,
67,
350,
273,
1353,
18,
5020,
67,
350,
18,
2726,
13028,
67,
350,
18,
23372,
67,
2844,
67,
350,
18,
350,
6002,
310,
67,
350,
273,
1083,
364,
980,
316,
1353,
18,
1019,
67,
1369,
30,
5418,
67,
350,
273,
1083,
1509,
67,
412,
10041,
273,
3314,
18,
3338,
1435,
397,
26513,
2950,
8967,
12,
9810,
33,
1369,
18,
10790,
578,
374,
18,
20,
13,
1509,
67,
412,
10041,
273,
261,
712,
67,
412,
10041,
300,
10661,
12,
9810,
33,
16840,
18,
7462,
67,
24429,
13,
2934,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
225,
309,
980,
18,
2019,
422,
296,
8734,
4278,
1324,
3635,
67,
350,
273,
1083,
309,
980,
18,
5896,
67,
350,
471,
980,
18,
5896,
67,
350,
18,
5896,
67,
24717,
67,
350,
18,
723,
316,
7707,
5896,
2187,
296,
8559,
89,
11,
4672,
2117,
67,
350,
273,
1353,
18,
5020,
67,
350,
18,
2726,
13028,
67,
350,
18,
23372,
67,
15381,
67,
350,
18,
350,
309,
486,
6002,
310,
67,
350,
30,
1515,
67,
10488,
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,
1301,
67,
3261,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
6002,
310,
67,
350,
273,
1083,
9395,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
16,
4555,
16,
4555,
2934,
16840,
67,
350,
364,
1353,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
5418,
67,
2232,
273,
5378,
876,
67,
350,
273,
1353,
18,
5020,
67,
350,
18,
2726,
13028,
67,
350,
18,
23372,
67,
2844,
67,
350,
18,
350,
6002,
310,
67,
350,
273,
1083,
364,
980,
316,
1353,
18,
1019,
67,
1369,
30,
5418,
67,
350,
273,
1083,
1509,
67,
412,
10041,
273,
3314,
18,
3338,
1435,
2
] |
if key != IHREAL: | if key != "IHREAL": | def setwarp(): "Change the warp factor." while True: key=scanner.next() if key != IHEOL: break scanner.chew() proutn(_("Warp factor- ")) scanner.chew() if key != IHREAL: huh() return if game.damage[DWARPEN] > 10.0: prout(_("Warp engines inoperative.")) return if damaged(DWARPEN) and scanner.real > 4.0: prout(_("Engineer Scott- \"I'm doing my best, Captain,")) prout(_(" but right now we can only go warp 4.\"")) return if scanner.real > 10.0: prout(_("Helmsman Sulu- \"Our top speed is warp 10, Captain.\"")) return if scanner.real < 1.0: prout(_("Helmsman Sulu- \"We can't go below warp 1, Captain.\"")) return oldfac = game.warpfac game.warpfac = scanner.real game.wfacsq=game.warpfac*game.warpfac if game.warpfac <= oldfac or game.warpfac <= 6.0: prout(_("Helmsman Sulu- \"Warp factor %d, Captain.\"") % int(game.warpfac)) return if game.warpfac < 8.00: prout(_("Engineer Scott- \"Aye, but our maximum safe speed is warp 6.\"")) return if game.warpfac == 10.0: prout(_("Engineer Scott- \"Aye, Captain, we'll try it.\"")) return prout(_("Engineer Scott- \"Aye, Captain, but our engines may not take it.\"")) return | af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
905,
84,
13332,
315,
3043,
326,
341,
11441,
5578,
1199,
1323,
1053,
30,
498,
33,
26842,
18,
4285,
1435,
309,
498,
480,
467,
3900,
1741,
30,
898,
7683,
18,
343,
359,
1435,
450,
322,
82,
24899,
2932,
59,
11441,
5578,
17,
315,
3719,
7683,
18,
343,
359,
1435,
309,
498,
480,
315,
45,
44,
31052,
6877,
366,
89,
76,
1435,
327,
309,
7920,
18,
72,
301,
410,
63,
40,
16777,
52,
1157,
65,
405,
1728,
18,
20,
30,
450,
322,
24899,
2932,
59,
11441,
20504,
316,
4063,
1535,
1199,
3719,
327,
309,
302,
301,
11349,
12,
40,
16777,
52,
1157,
13,
471,
7683,
18,
7688,
405,
1059,
18,
20,
30,
450,
322,
24899,
2932,
4410,
264,
2850,
352,
88,
17,
1239,
45,
17784,
9957,
3399,
3796,
16,
385,
1657,
530,
10837,
3719,
450,
322,
24899,
2932,
225,
1496,
2145,
2037,
732,
848,
1338,
1960,
341,
11441,
1059,
18,
8530,
3719,
327,
309,
7683,
18,
7688,
405,
1728,
18,
20,
30,
450,
322,
24899,
2932,
44,
292,
959,
4728,
348,
18160,
17,
1239,
51,
295,
1760,
8632,
353,
341,
11441,
1728,
16,
385,
1657,
530,
18,
8530,
3719,
327,
309,
7683,
18,
7688,
411,
404,
18,
20,
30,
450,
322,
24899,
2932,
44,
292,
959,
4728,
348,
18160,
17,
1239,
3218,
848,
1404,
1960,
5712,
341,
11441,
404,
16,
385,
1657,
530,
18,
8530,
3719,
327,
1592,
11639,
273,
7920,
18,
905,
84,
11639,
7920,
18,
905,
84,
11639,
273,
7683,
18,
7688,
7920,
18,
91,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
905,
84,
13332,
315,
3043,
326,
341,
11441,
5578,
1199,
1323,
1053,
30,
498,
33,
26842,
18,
4285,
1435,
309,
498,
480,
467,
3900,
1741,
30,
898,
7683,
18,
343,
359,
1435,
450,
322,
82,
24899,
2932,
59,
11441,
5578,
17,
315,
3719,
7683,
18,
343,
359,
1435,
309,
498,
480,
315,
45,
44,
31052,
6877,
366,
89,
76,
1435,
327,
309,
7920,
18,
72,
301,
410,
63,
40,
16777,
52,
1157,
65,
405,
1728,
18,
20,
30,
450,
322,
24899,
2932,
59,
11441,
20504,
316,
4063,
1535,
1199,
3719,
327,
309,
302,
301,
11349,
12,
40,
16777,
52,
1157,
13,
471,
7683,
18,
7688,
405,
1059,
18,
20,
30,
450,
322,
24899,
2932,
4410,
264,
2850,
2
] |
pricetype_id = self.pool.get('product.pricelist').browse(cr, uid, pricelist_id).version_id[0].items_id[0].base field_name = self.pool.get('product.price.type').browse(cr, uid, pricetype_id).field | def get_real_price(pricelist_id, product_id): product_tmpl_id = self.pool.get('product.product').browse(cr, uid, product_id, context).product_tmpl_id.id pricetype_id = self.pool.get('product.pricelist').browse(cr, uid, pricelist_id).version_id[0].items_id[0].base field_name = self.pool.get('product.price.type').browse(cr, uid, pricetype_id).field product_read = self.pool.get('product.template').read(cr, uid, product_tmpl_id, [field_name], context) return product_read[field_name] | 09263c29730891dba703fcb1a2bfb60b2db55bf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/09263c29730891dba703fcb1a2bfb60b2db55bf7/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7688,
67,
8694,
12,
683,
335,
5449,
67,
350,
16,
3017,
67,
350,
4672,
3017,
67,
24717,
67,
350,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
16063,
25731,
12,
3353,
16,
4555,
16,
3017,
67,
350,
16,
819,
2934,
5896,
67,
24717,
67,
350,
18,
350,
225,
3017,
67,
896,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
3202,
16063,
896,
12,
3353,
16,
4555,
16,
3017,
67,
24717,
67,
350,
16,
306,
1518,
67,
529,
6487,
819,
13,
327,
3017,
67,
896,
63,
1518,
67,
529,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7688,
67,
8694,
12,
683,
335,
5449,
67,
350,
16,
3017,
67,
350,
4672,
3017,
67,
24717,
67,
350,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
16063,
25731,
12,
3353,
16,
4555,
16,
3017,
67,
350,
16,
819,
2934,
5896,
67,
24717,
67,
350,
18,
350,
225,
3017,
67,
896,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
3202,
16063,
896,
12,
3353,
16,
4555,
16,
3017,
67,
24717,
67,
350,
16,
306,
1518,
67,
529,
6487,
819,
13,
327,
3017,
67,
896,
63,
1518,
67,
529,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def kmeans(self, pts, num_clusters, centers_init = "random", max_iterations = None, | def kmeans(self, pts, num_clusters, max_iterations = None, | def kmeans(self, pts, num_clusters, centers_init = "random", max_iterations = None, dtype = None, **kwargs): """ Runs kmeans on pts with num_clusters centroids. Returns a numpy array of size num_clusters x dim. | 149ee94c322d8ffa93c01ab6dfa79f4c06d4755d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12913/149ee94c322d8ffa93c01ab6dfa79f4c06d4755d/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
18408,
12,
2890,
16,
13397,
16,
818,
67,
16806,
16,
943,
67,
19330,
273,
599,
16,
3182,
273,
599,
16,
2826,
4333,
4672,
3536,
1939,
87,
417,
18408,
603,
13397,
598,
818,
67,
16806,
25040,
18,
225,
2860,
279,
3972,
526,
434,
963,
818,
67,
16806,
619,
2464,
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,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18408,
12,
2890,
16,
13397,
16,
818,
67,
16806,
16,
943,
67,
19330,
273,
599,
16,
3182,
273,
599,
16,
2826,
4333,
4672,
3536,
1939,
87,
417,
18408,
603,
13397,
598,
818,
67,
16806,
25040,
18,
225,
2860,
279,
3972,
526,
434,
963,
818,
67,
16806,
619,
2464,
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
] |
w = [1] | w = [0] * N_over_d | def _coset_reduction_data_first_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate). | 7a1f047b64336e2196553d74196aafe4f02190df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7a1f047b64336e2196553d74196aafe4f02190df/congroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
3645,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
62,
13,
26109,
611,
18,
225,
1220,
445,
857,
74,
6478,
1135,
501,
3577,
364,
326,
1122,
1087,
434,
326,
20176,
2235,
261,
5787,
1122,
7799,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
278,
67,
1118,
4062,
67,
892,
67,
3645,
67,
5732,
12,
43,
4672,
3536,
8155,
501,
1399,
364,
23789,
326,
7378,
4987,
278,
23174,
434,
392,
930,
434,
348,
48,
67,
22,
12,
62,
13,
26109,
611,
18,
225,
1220,
445,
857,
74,
6478,
1135,
501,
3577,
364,
326,
1122,
1087,
434,
326,
20176,
2235,
261,
5787,
1122,
7799,
2934,
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
] |
decl_snippet = """ | if hasattr(os, 'WCOREDUMP'): decl_snippet = """ | def __init__(self): self.configure(CConfig) | 88afe5583ccd4d0ab380c1124703143aa1d99f22 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/88afe5583ccd4d0ab380c1124703143aa1d99f22/ll_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
14895,
12,
39,
809,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
14895,
12,
39,
809,
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,
-100,
-100,
-100,
-100,
-100
] |
if value : self.DottedUnderline = True return self def SetDoubleUnderline( self, value ) : | if value: self.DottedUnderline = True return self def SetDoubleUnderline(self, value): | def SetDottedUnderline( self, value ) : self.DottedUnderline = False if value : self.DottedUnderline = True return self | 13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
10412,
2344,
14655,
1369,
12,
365,
16,
460,
262,
294,
365,
18,
10412,
2344,
14655,
1369,
273,
1083,
309,
460,
294,
365,
18,
10412,
2344,
14655,
1369,
273,
1053,
327,
365,
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
] |
>>> dump_tokens("x = 1 - y + 15 - 01 + 0x124 + z + a[5]") | >>> dump_tokens("x = 1 - y + 15 - 1 + 0x124 + z + a[5]") | >>> dump_tokens("def d01v_(a=1, *k, **w): pass") | 06160749de86348e8e0743d0ff468f96f0c89d4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/06160749de86348e8e0743d0ff468f96f0c89d4c/test_tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
4657,
67,
7860,
2932,
536,
302,
1611,
90,
67,
12,
69,
33,
21,
16,
380,
79,
16,
2826,
91,
4672,
1342,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
4657,
67,
7860,
2932,
536,
302,
1611,
90,
67,
12,
69,
33,
21,
16,
380,
79,
16,
2826,
91,
4672,
1342,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
new_password = forms.CharField(widget = forms.PasswordInput(), | new_password = forms.CharField(widget = forms.PasswordInput(), | def is_separator(self): return True | 5ce365bd98826a8f4bb5c26c201e1750fca7e24f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11563/5ce365bd98826a8f4bb5c26c201e1750fca7e24f/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11287,
12,
2890,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return C(log_pari) | r, i = C(log_pari) wR, wI = E.period_lattice(emb).basis(prec=precision) k = (r/wR).floor() if k: r -= k*wR if self.is_on_identity_component(emb): return C(r) return C(r)+C(wI/2) | def elliptic_logarithm(self, embedding=None, precision=100, algorithm='pari'): """ Returns the elliptic logarithm of this elliptic curve point. | 4af7cab0ea14839a0f0075ec0490074db7cd7fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/4af7cab0ea14839a0f0075ec0490074db7cd7fb4/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
415,
549,
21507,
67,
1330,
31249,
12,
2890,
16,
15853,
33,
7036,
16,
6039,
33,
6625,
16,
4886,
2218,
1065,
77,
11,
4672,
3536,
2860,
326,
415,
549,
21507,
613,
31249,
434,
333,
415,
549,
21507,
8882,
1634,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
415,
549,
21507,
67,
1330,
31249,
12,
2890,
16,
15853,
33,
7036,
16,
6039,
33,
6625,
16,
4886,
2218,
1065,
77,
11,
4672,
3536,
2860,
326,
415,
549,
21507,
613,
31249,
434,
333,
415,
549,
21507,
8882,
1634,
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
] |
version="0.3.3", | version="0.3.4", | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 9b8326fdd3862a430219855b300a0e886272361b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4360/9b8326fdd3862a430219855b300a0e886272361b/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
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
] |
opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", | opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:l", | def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir=", "coverdir="]) except getopt.error, msg: print >> sys.stderr, "%s: %s" % (sys.argv[0], msg) print >> sys.stderr, "Try `%s --help' for more information" \ % sys.argv[0] sys.exit(1) trace = 0 count = 0 report = 0 no_report = 0 counts_file = None logdir = "." missing = 0 ignore_modules = [] ignore_dirs = [] coverdir = None summary = 0 for opt, val in opts: if opt == "--help": usage(sys.stdout) sys.exit(0) if opt == "--version": sys.stdout.write("trace 2.0\n") sys.exit(0) if opt == "-t" or opt == "--trace": trace = 1 continue if opt == "-c" or opt == "--count": count = 1 continue if opt == "-r" or opt == "--report": report = 1 continue if opt == "-R" or opt == "--no-report": no_report = 1 continue if opt == "-f" or opt == "--file": counts_file = val continue if opt == "-d" or opt == "--logdir": logdir = val continue if opt == "-m" or opt == "--missing": missing = 1 continue if opt == "-C" or opt == "--coverdir": coverdir = val continue if opt == "-s" or opt == "--summary": summary = 1 continue if opt == "--ignore-module": ignore_modules.append(val) continue if opt == "--ignore-dir": for s in string.split(val, os.pathsep): s = os.path.expandvars(s) # should I also call expanduser? (after all, could use $HOME) s = string.replace(s, "$prefix", os.path.join(sys.prefix, "lib", "python" + sys.version[:3])) s = string.replace(s, "$exec_prefix", os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3])) s = os.path.normpath(s) ignore_dirs.append(s) continue assert 0, "Should never get here" if len(prog_argv) == 0: _err_exit("missing name of file to run") if count + trace + report > 1: _err_exit("can only specify one of --trace, --count or --report") if count + trace + report == 0: _err_exit("must specify one of --trace, --count or --report") if report and counts_file is None: _err_exit("--report requires a --file") if report and no_report: _err_exit("cannot specify both --report and --no-report") if logdir is not None: # warn if the directory doesn't exist, but keep on going # (is this the correct behaviour?) if not os.path.isdir(logdir): sys.stderr.write( "trace: WARNING, --logdir directory %s is not available\n" % `logdir`) sys.argv = prog_argv progname = prog_argv[0] if eval(sys.version[:3])>1.3: sys.path[0] = os.path.split(progname)[0] # ??? # everything is ready ignore = Ignore(ignore_modules, ignore_dirs) if trace: t = Trace(ignore) try: run(t.trace, 'execfile(' + `progname` + ')') except IOError, err: _err_exit("Cannot run file %s because: %s" % \ (`sys.argv[0]`, err)) elif count: t = Coverage(ignore) try: run(t.trace, 'execfile(' + `progname` + ')') except IOError, err: _err_exit("Cannot run file %s because: %s" % \ (`sys.argv[0]`, err)) except SystemExit: pass results = t.results() # Add another lookup from the program's file name to its import name # This give the right results, but I'm not sure why ... results.modules[progname] = os.path.splitext(progname)[0] if counts_file: # add in archived data, if available try: old_counts, old_modules = marshal.load(open(counts_file, 'rb')) except IOError: pass else: results.update(CoverageResults(old_counts, old_modules)) if not no_report: create_results_log(results, logdir, missing, summary=summary, coverdir=coverdir) if counts_file: try: marshal.dump( (results.counts, results.modules), open(counts_file, 'wb')) except IOError, err: _err_exit("Cannot save counts file %s because: %s" % \ (`counts_file`, err)) elif report: old_counts, old_modules = marshal.load(open(counts_file, 'rb')) results = CoverageResults(old_counts, old_modules) create_results_log(results, logdir, missing, summary=summary, coverdir=coverdir) else: assert 0, "Should never get here" | c477681c3a8034551a1e2f52cb1b8688b955b46f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c477681c3a8034551a1e2f52cb1b8688b955b46f/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
19485,
63,
21,
30,
6487,
315,
88,
3353,
54,
74,
30,
72,
30,
959,
39,
30,
80,
3113,
8247,
5201,
3113,
315,
1589,
3113,
315,
5129,
3113,
315,
1883,
3113,
315,
6006,
3113,
315,
2135,
17,
6006,
3113,
315,
768,
1546,
16,
315,
1330,
1214,
1546,
16,
315,
7337,
3113,
315,
6185,
17,
2978,
1546,
16,
315,
6185,
17,
1214,
1546,
16,
315,
3165,
1214,
1546,
5717,
225,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
1172,
1671,
2589,
18,
11241,
16,
2213,
87,
30,
738,
87,
6,
738,
261,
9499,
18,
19485,
63,
20,
6487,
1234,
13,
1172,
1671,
2589,
18,
11241,
16,
315,
7833,
12430,
87,
1493,
5201,
11,
364,
1898,
1779,
6,
521,
738,
2589,
18,
19485,
63,
20,
65,
2589,
18,
8593,
12,
21,
13,
225,
2606,
273,
374,
1056,
273,
374,
2605,
273,
374,
1158,
67,
6006,
273,
374,
6880,
67,
768,
273,
599,
613,
1214,
273,
4585,
3315,
273,
374,
2305,
67,
6400,
273,
5378,
2305,
67,
8291,
273,
5378,
5590,
1214,
273,
599,
4916,
273,
374,
225,
364,
2153,
16,
1244,
316,
1500,
30,
309,
2153,
422,
5238,
5201,
6877,
4084,
12,
9499,
18,
10283,
13,
2589,
18,
8593,
12,
20,
13,
225,
309,
2153,
422,
5238,
1589,
6877,
2589,
18,
10283,
18,
2626,
2932,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
19485,
63,
21,
30,
6487,
315,
88,
3353,
54,
74,
30,
72,
30,
959,
39,
30,
80,
3113,
8247,
5201,
3113,
315,
1589,
3113,
315,
5129,
3113,
315,
1883,
3113,
315,
6006,
3113,
315,
2135,
17,
6006,
3113,
315,
768,
1546,
16,
315,
1330,
1214,
1546,
16,
315,
7337,
3113,
315,
6185,
17,
2978,
1546,
16,
315,
6185,
17,
1214,
1546,
16,
315,
3165,
1214,
1546,
5717,
225,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
1172,
1671,
2589,
18,
11241,
16,
2213,
87,
2
] |
self._update_keymap(evt.first_keycode, evt.count) | if evt.request == X.MappingKeyboard: self._update_keymap(evt.first_keycode, evt.count) | def refresh_keyboard_mapping(self, evt): """This method should be called once when a MappingNotify event is received, to update the keymap cache. evt should be the event object.""" | 435ffe862c8b107003d1a52c49c6728e8d41c424 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8084/435ffe862c8b107003d1a52c49c6728e8d41c424/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
31486,
67,
6770,
12,
2890,
16,
6324,
4672,
3536,
2503,
707,
1410,
506,
2566,
3647,
1347,
279,
9408,
9168,
871,
353,
5079,
16,
358,
1089,
326,
498,
1458,
1247,
18,
6324,
1410,
506,
326,
871,
733,
12123,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4460,
67,
31486,
67,
6770,
12,
2890,
16,
6324,
4672,
3536,
2503,
707,
1410,
506,
2566,
3647,
1347,
279,
9408,
9168,
871,
353,
5079,
16,
358,
1089,
326,
498,
1458,
1247,
18,
6324,
1410,
506,
326,
871,
733,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(opt.timeout, opt.health_timeout)) | (self.timeout, self.health_timeout)) | def ApplyCongestionFactor(self, multiplier): self.timeout *= multiplier self.health_timeout *= multiplier print ('* General timeout is now %.1fs, Health timeout is now %.1fs' % (opt.timeout, opt.health_timeout)) | ea61463e8a6101d228fb573b57f461ccfed2f48d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/ea61463e8a6101d228fb573b57f461ccfed2f48d/nameserver_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
442,
75,
6868,
6837,
12,
2890,
16,
15027,
4672,
365,
18,
4538,
6413,
15027,
365,
18,
13267,
67,
4538,
6413,
15027,
1172,
7707,
14,
9544,
2021,
353,
2037,
12639,
21,
2556,
16,
11745,
2021,
353,
2037,
12639,
21,
2556,
11,
738,
261,
3838,
18,
4538,
16,
2153,
18,
13267,
67,
4538,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
442,
75,
6868,
6837,
12,
2890,
16,
15027,
4672,
365,
18,
4538,
6413,
15027,
365,
18,
13267,
67,
4538,
6413,
15027,
1172,
7707,
14,
9544,
2021,
353,
2037,
12639,
21,
2556,
16,
11745,
2021,
353,
2037,
12639,
21,
2556,
11,
738,
261,
3838,
18,
4538,
16,
2153,
18,
13267,
67,
4538,
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
] |
textcolor(DEFAULT) | textcolor(None) | def mayday(): # yell for help from nearest starbase # There's more than one way to move in this game! line = 0 chew() # Test for conditions which prevent calling for help if game.condition == "docked": prout(_("Lt. Uhura- \"But Captain, we're already docked.\"")) return if damaged(DRADIO): prout(_("Subspace radio damaged.")) return if game.state.rembase==0: prout(_("Lt. Uhura- \"Captain, I'm not getting any response from Starbase.\"")) return if game.landed: proutn(_("You must be aboard the ")) crmshp() prout(".") return # OK -- call for help from nearest starbase game.nhelp += 1 if game.base.x!=0: # There's one in this quadrant ddist = distance(game.base, game.sector) else: ddist = FOREVER for m in range(game.state.rembase): xdist = QUADSIZE * distance(game.state.baseq[m], game.quadrant) if xdist < ddist: ddist = xdist line = m # Since starbase not in quadrant, set up new quadrant game.quadrant = game.state.baseq[line] newqad(True) # dematerialize starship game.quad[game.sector.x][game.sector.y]=IHDOT proutn(_("Starbase in Quadrant %s responds--") % game.quadrant) crmshp() prout(_(" dematerializes.")) game.sector.x=0 for m in range(1, 5+1): w = game.base.scatter() if VALID_SECTOR(ix,iy) and game.quad[ix][iy]==IHDOT: # found one -- finish up game.sector = w break if not is_valid(game.sector): prout(_("You have been lost in space...")) finish(FMATERIALIZE) return # Give starbase three chances to rematerialize starship probf = math.pow((1.0 - math.pow(0.98,ddist)), 0.33333333) for m in range(1, 3+1): if m == 1: proutn(_("1st")) elif m == 2: proutn(_("2nd")) elif m == 3: proutn(_("3rd")) proutn(_(" attempt to re-materialize ")) crmshp() game.quad[ix][iy]=(IHMATER0,IHMATER1,IHMATER2)[m-1] textcolor(RED) warble() if randreal() > probf: break prout(_("fails.")) curses.delay_output(500) textcolor(DEFAULT) if m > 3: game.quad[ix][iy]=IHQUEST game.alive = False drawmaps(1) setwnd(message_window) finish(FMATERIALIZE) return game.quad[ix][iy]=game.ship textcolor(GREEN) prout(_("succeeds.")) textcolor(DEFAULT) dock(False) skip(1) prout(_("Lt. Uhura- \"Captain, we made it!\"")) | f193d8f46652803cac87ddebc7593774a27b552c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/f193d8f46652803cac87ddebc7593774a27b552c/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2026,
2881,
13332,
468,
677,
1165,
364,
2809,
628,
11431,
10443,
1969,
468,
6149,
1807,
1898,
2353,
1245,
4031,
358,
3635,
316,
333,
7920,
5,
980,
273,
374,
462,
359,
1435,
468,
7766,
364,
4636,
1492,
5309,
4440,
364,
2809,
309,
7920,
18,
4175,
422,
315,
72,
975,
329,
6877,
450,
322,
24899,
2932,
30247,
18,
587,
76,
21401,
17,
225,
1239,
31167,
385,
1657,
530,
16,
732,
4565,
1818,
5822,
329,
18,
8530,
3719,
327,
309,
302,
301,
11349,
12,
6331,
1880,
4294,
4672,
450,
322,
24899,
2932,
1676,
2981,
13512,
302,
301,
11349,
1199,
3719,
327,
309,
7920,
18,
2019,
18,
266,
1627,
448,
631,
20,
30,
450,
322,
24899,
2932,
30247,
18,
587,
76,
21401,
17,
225,
1239,
26294,
530,
16,
467,
17784,
486,
8742,
1281,
766,
628,
934,
297,
1969,
18,
8530,
3719,
327,
309,
7920,
18,
80,
5860,
30,
450,
322,
82,
24899,
2932,
6225,
1297,
506,
279,
3752,
326,
315,
3719,
4422,
81,
674,
84,
1435,
450,
322,
2932,
1199,
13,
327,
468,
7791,
1493,
745,
364,
2809,
628,
11431,
10443,
1969,
7920,
18,
82,
5201,
1011,
404,
309,
7920,
18,
1969,
18,
92,
5,
33,
20,
30,
468,
6149,
1807,
1245,
316,
333,
9474,
6890,
302,
4413,
273,
3888,
12,
13957,
18,
1969,
16,
7920,
18,
5709,
280,
13,
469,
30,
302,
4413,
273,
478,
8607,
2204,
364,
312,
316,
1048,
12,
13957,
18,
2019,
18,
266,
1627,
448,
4672,
619,
4413,
273,
10110,
1880,
4574,
380,
3888,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2026,
2881,
13332,
468,
677,
1165,
364,
2809,
628,
11431,
10443,
1969,
468,
6149,
1807,
1898,
2353,
1245,
4031,
358,
3635,
316,
333,
7920,
5,
980,
273,
374,
462,
359,
1435,
468,
7766,
364,
4636,
1492,
5309,
4440,
364,
2809,
309,
7920,
18,
4175,
422,
315,
72,
975,
329,
6877,
450,
322,
24899,
2932,
30247,
18,
587,
76,
21401,
17,
225,
1239,
31167,
385,
1657,
530,
16,
732,
4565,
1818,
5822,
329,
18,
8530,
3719,
327,
309,
302,
301,
11349,
12,
6331,
1880,
4294,
4672,
450,
322,
24899,
2932,
1676,
2981,
13512,
302,
301,
11349,
1199,
3719,
327,
309,
7920,
18,
2019,
18,
266,
1627,
448,
631,
20,
30,
450,
322,
24899,
2932,
30247,
18,
587,
76,
21401,
2
] |
def __init__(self, name, series_dir, refs_dir): self.__series_dir = series_dir self.__name = name self.__dir = os.path.join(self.__series_dir, self.__name) self.__refs_dir = refs_dir self.__top_ref_file = os.path.join(self.__refs_dir, self.__name) self.__log_ref_file = os.path.join(self.__refs_dir, self.__name + '.log') def create(self): os.mkdir(self.__dir) create_empty_file(os.path.join(self.__dir, 'bottom')) create_empty_file(os.path.join(self.__dir, 'top')) def delete(self): for f in os.listdir(self.__dir): os.remove(os.path.join(self.__dir, f)) os.rmdir(self.__dir) os.remove(self.__top_ref_file) if os.path.exists(self.__log_ref_file): os.remove(self.__log_ref_file) def get_name(self): return self.__name def rename(self, newname): olddir = self.__dir old_top_ref_file = self.__top_ref_file old_log_ref_file = self.__log_ref_file self.__name = newname self.__dir = os.path.join(self.__series_dir, self.__name) self.__top_ref_file = os.path.join(self.__refs_dir, self.__name) self.__log_ref_file = os.path.join(self.__refs_dir, self.__name + '.log') os.rename(olddir, self.__dir) os.rename(old_top_ref_file, self.__top_ref_file) if os.path.exists(old_log_ref_file): os.rename(old_log_ref_file, self.__log_ref_file) def __update_top_ref(self, ref): write_string(self.__top_ref_file, ref) def __update_log_ref(self, ref): write_string(self.__log_ref_file, ref) def update_top_ref(self): top = self.get_top() if top: self.__update_top_ref(top) def __get_field(self, name, multiline = False): | def _set_dir(self, dir): self.__dir = dir def _dir(self): return self.__dir def create_empty_field(self, name): create_empty_file(os.path.join(self.__dir, name)) def _get_field(self, name, multiline = False): | def __init__(self, name, series_dir, refs_dir): self.__series_dir = series_dir self.__name = name self.__dir = os.path.join(self.__series_dir, self.__name) self.__refs_dir = refs_dir self.__top_ref_file = os.path.join(self.__refs_dir, self.__name) self.__log_ref_file = os.path.join(self.__refs_dir, self.__name + '.log') | 8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
4166,
67,
1214,
16,
9047,
67,
1214,
4672,
365,
16186,
10222,
67,
1214,
273,
4166,
67,
1214,
365,
16186,
529,
273,
508,
365,
16186,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
16186,
10222,
67,
1214,
16,
365,
16186,
529,
13,
365,
16186,
9316,
67,
1214,
273,
9047,
67,
1214,
365,
16186,
3669,
67,
1734,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2890,
16186,
9316,
67,
1214,
16,
365,
16186,
529,
13,
365,
16186,
1330,
67,
1734,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2890,
16186,
9316,
67,
1214,
16,
365,
16186,
529,
397,
2418,
1330,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
4166,
67,
1214,
16,
9047,
67,
1214,
4672,
365,
16186,
10222,
67,
1214,
273,
4166,
67,
1214,
365,
16186,
529,
273,
508,
365,
16186,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
16186,
10222,
67,
1214,
16,
365,
16186,
529,
13,
365,
16186,
9316,
67,
1214,
273,
9047,
67,
1214,
365,
16186,
3669,
67,
1734,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2890,
16186,
9316,
67,
1214,
16,
365,
16186,
529,
13,
365,
16186,
1330,
67,
1734,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2890,
16186,
9316,
67,
1214,
16,
365,
16186,
529,
397,
2418,
1330,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise Error('cannot upack tarball with InputSandbox') | raise Exception('cannot upack tarball %s with InputSandbox'%tgzfile) | def getPackedInputSandbox(tarpath,dest_dir='.'): """Get all sandbox_files from tarball and write them to the workdir. This function is called by wrapper script at the run time. Arguments: 'tarpath': a path to the tarball 'dest_dir': a destination directory """ #tgzfile = os.path.join(src_dir,INPUT_TARBALL_NAME) tgzfile = tarpath | 87003da009f3dbe1629e2fd2971d80aaad71ee07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/87003da009f3dbe1629e2fd2971d80aaad71ee07/WNSandbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
329,
1210,
17881,
12,
11718,
803,
16,
10488,
67,
1214,
2218,
1093,
4672,
3536,
967,
777,
15202,
67,
2354,
628,
29441,
471,
1045,
2182,
358,
326,
22231,
18,
1220,
445,
353,
2566,
635,
4053,
2728,
622,
326,
1086,
813,
18,
13599,
30,
296,
11718,
803,
4278,
279,
589,
358,
326,
29441,
296,
10488,
67,
1214,
4278,
279,
2929,
1867,
3536,
225,
468,
88,
9764,
768,
273,
1140,
18,
803,
18,
5701,
12,
4816,
67,
1214,
16,
15934,
67,
56,
20926,
4685,
67,
1985,
13,
268,
9764,
768,
273,
8232,
803,
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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
12,
11718,
803,
16,
10488,
67,
1214,
2218,
1093,
4672,
3536,
967,
777,
15202,
67,
2354,
628,
29441,
471,
1045,
2182,
358,
326,
22231,
18,
1220,
445,
353,
2566,
635,
4053,
2728,
622,
326,
1086,
813,
18,
13599,
30,
296,
11718,
803,
4278,
279,
589,
358,
326,
29441,
296,
10488,
67,
1214,
4278,
279,
2929,
1867,
3536,
225,
468,
88,
9764,
768,
273,
1140,
18,
803,
18,
5701,
12,
4816,
67,
1214,
16,
15934,
67,
56,
20926,
4685,
67,
1985,
13,
268,
9764,
768,
273,
8232,
803,
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
] |
time.sleep(1) | sleep(1) | def reconnect(self): self.parent.logger.info(_("Starting reconnect")) ip = re.match(".*Current IP Address: (.*)</body>.*", getURL("http://checkip.dyndns.org/")).group(1) self.parent.hookManager.beforeReconnecting(ip) reconn = subprocess.Popen(self.parent.config['reconnect']['method'])#, stdout=subprocess.PIPE) reconn.wait() time.sleep(1) ip = "" while ip == "": try: ip = re.match(".*Current IP Address: (.*)</body>.*", getURL("http://checkip.dyndns.org/")).group(1) #versuchen neue ip aus zu lesen except: ip = "" time.sleep(1) self.parent.hookManager.afterReconnecting(ip) self.parent.logger.info(_("Reconnected, new IP: %s") % ip) | 2bced4f3d36304a614392dc703d32eb372e73e68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/2bced4f3d36304a614392dc703d32eb372e73e68/ThreadManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11812,
12,
2890,
4672,
365,
18,
2938,
18,
4901,
18,
1376,
24899,
2932,
11715,
11812,
6,
3719,
2359,
273,
283,
18,
1916,
2932,
4509,
3935,
2971,
5267,
30,
29049,
13,
1757,
3432,
34,
4509,
3113,
19341,
2932,
2505,
2207,
1893,
625,
18,
28595,
14926,
18,
3341,
4898,
13,
2934,
1655,
12,
21,
13,
365,
18,
2938,
18,
4476,
1318,
18,
5771,
20427,
310,
12,
625,
13,
283,
4646,
273,
6652,
18,
52,
3190,
12,
2890,
18,
2938,
18,
1425,
3292,
25913,
21712,
2039,
19486,
7,
16,
3909,
33,
1717,
2567,
18,
27602,
13,
283,
4646,
18,
7048,
1435,
5329,
12,
21,
13,
2359,
273,
1408,
1323,
2359,
422,
1408,
30,
775,
30,
2359,
273,
283,
18,
1916,
2932,
4509,
3935,
2971,
5267,
30,
29049,
13,
1757,
3432,
34,
4509,
3113,
19341,
2932,
2505,
2207,
1893,
625,
18,
28595,
14926,
18,
3341,
4898,
13,
2934,
1655,
12,
21,
13,
468,
2496,
2648,
275,
1073,
344,
2359,
279,
407,
998,
89,
18022,
275,
1335,
30,
2359,
273,
1408,
5329,
12,
21,
13,
365,
18,
2938,
18,
4476,
1318,
18,
5205,
20427,
310,
12,
625,
13,
365,
18,
2938,
18,
4901,
18,
1376,
24899,
2932,
426,
8537,
16,
394,
2971,
30,
738,
87,
7923,
738,
2359,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11812,
12,
2890,
4672,
365,
18,
2938,
18,
4901,
18,
1376,
24899,
2932,
11715,
11812,
6,
3719,
2359,
273,
283,
18,
1916,
2932,
4509,
3935,
2971,
5267,
30,
29049,
13,
1757,
3432,
34,
4509,
3113,
19341,
2932,
2505,
2207,
1893,
625,
18,
28595,
14926,
18,
3341,
4898,
13,
2934,
1655,
12,
21,
13,
365,
18,
2938,
18,
4476,
1318,
18,
5771,
20427,
310,
12,
625,
13,
283,
4646,
273,
6652,
18,
52,
3190,
12,
2890,
18,
2938,
18,
1425,
3292,
25913,
21712,
2039,
19486,
7,
16,
3909,
33,
1717,
2567,
18,
27602,
13,
283,
4646,
18,
7048,
1435,
5329,
12,
21,
13,
2359,
273,
1408,
1323,
2359,
422,
1408,
30,
775,
30,
2359,
273,
283,
18,
1916,
2932,
2
] |
if key not in exclude: form[key] = value | if key[0] == ';': continue if isinstance(value, tuple) and len(value) == 3: continue if key in exclude: continue form[key] = value | def come_back(self, message, goto=None, exclude=[], **kw): """ This is a handy method that builds a URI object from some parameters. It exists to make short some common patterns. """ # By default we come back to the referrer if goto is None: goto = self.request.referrer elif isinstance(goto, str): goto = uri.get_reference(goto) # Preserve some form values form = {} for key, value in self.request.form.items(): if key not in exclude: form[key] = value if form: goto = goto.replace(**form) # Translate the source message if message: message = self.handler.gettext(message) message = Template(message).substitute(kw) return goto.replace(message=message) return goto | 2675eeb822179959107ebd6923d92a9650cbf240 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/2675eeb822179959107ebd6923d92a9650cbf240/context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12404,
67,
823,
12,
2890,
16,
883,
16,
2897,
33,
7036,
16,
4433,
22850,
6487,
2826,
9987,
4672,
3536,
1220,
353,
279,
948,
93,
707,
716,
10736,
279,
3699,
733,
628,
2690,
1472,
18,
2597,
1704,
358,
1221,
3025,
2690,
2975,
6884,
18,
3536,
468,
2525,
805,
732,
12404,
1473,
358,
326,
14502,
309,
2897,
353,
599,
30,
2897,
273,
365,
18,
2293,
18,
1734,
11110,
1327,
1549,
12,
75,
6302,
16,
609,
4672,
2897,
273,
2003,
18,
588,
67,
6180,
12,
75,
6302,
13,
468,
18346,
6527,
2690,
646,
924,
646,
273,
2618,
364,
498,
16,
460,
316,
365,
18,
2293,
18,
687,
18,
3319,
13332,
225,
309,
498,
63,
20,
65,
422,
12386,
4278,
1324,
225,
309,
1549,
12,
1132,
16,
3193,
13,
471,
562,
12,
1132,
13,
422,
890,
30,
1324,
225,
309,
498,
316,
4433,
30,
1324,
225,
646,
63,
856,
65,
273,
460,
309,
646,
30,
2897,
273,
2897,
18,
2079,
12,
636,
687,
13,
468,
16820,
326,
1084,
883,
309,
883,
30,
883,
273,
365,
18,
4176,
18,
29967,
12,
2150,
13,
883,
273,
5035,
12,
2150,
2934,
1717,
17207,
12,
9987,
13,
327,
2897,
18,
2079,
12,
2150,
33,
2150,
13,
327,
2897,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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536,
468,
2525,
805,
732,
12404,
1473,
358,
326,
14502,
309,
2897,
353,
599,
30,
2897,
273,
365,
18,
2293,
18,
1734,
11110,
1327,
1549,
12,
75,
6302,
16,
609,
4672,
2897,
273,
2003,
18,
588,
67,
6180,
12,
75,
6302,
13,
468,
18346,
6527,
2690,
646,
924,
646,
273,
2618,
364,
498,
16,
460,
316,
365,
18,
2293,
18,
687,
18,
3319,
13332,
225,
309,
498,
63,
20,
65,
422,
12386,
4278,
1324,
225,
2
] |
raise IOError("Unable to modify Virtual Filesystem") | raise FuseError("Unable to modify Virtual Filesystem") | def mknod(self, path, mode, dev): raise IOError("Unable to modify Virtual Filesystem") | 7d65d651f8f8c6336ef360445855945acade1ccb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/7d65d651f8f8c6336ef360445855945acade1ccb/pyflag_fuse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
19888,
12,
2890,
16,
589,
16,
1965,
16,
4461,
4672,
1002,
478,
1202,
668,
2932,
3370,
358,
5612,
7269,
11205,
7923,
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,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589,
16,
1965,
16,
4461,
4672,
1002,
478,
1202,
668,
2932,
3370,
358,
5612,
7269,
11205,
7923,
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
] |
p = Parser(Message.Message) msg = p.parse(fp) | msg = readMessage(path) | def __handlepost(self, record, value, comment, preserve, forward, addr): # For backwards compatibility with pre 2.0beta3 ptime, sender, subject, reason, filename, msgdata = record path = os.path.join(mm_cfg.DATA_DIR, filename) # Handle message preservation if preserve: parts = os.path.split(path)[1].split(DASH) parts[0] = 'spam' spamfile = DASH.join(parts) import shutil try: shutil.copy(path, os.path.join(mm_cfg.SPAM_DIR, spamfile)) except IOError, e: if e.errno <> errno.ENOENT: raise return LOST # Now handle updates to the database rejection = None fp = None msg = None status = REMOVE if value == mm_cfg.DEFER: # Defer status = DEFER elif value == mm_cfg.APPROVE: # Approved try: fp = open(path) except IOError, e: if e.errno <> errno.ENOENT: raise return LOST p = Parser(Message.Message) msg = p.parse(fp) msgdata['approved'] = 1 # Calculate a new filebase for the approved message, otherwise # delivery errors will cause duplicates. try: del msgdata['filebase'] except KeyError: pass # Queue the file for delivery by qrunner. Trying to deliver the # message directly here can lead to a huge delay in web # turnaround. Log the moderation and add a header. msg['X-Moderated'] = '<%s> %s' % (self.GetOwnerEmail(), formatdate()) syslog('vette', 'held message approved, message-id: %s', msg.get('message-id', 'n/a')) # Stick the message back in the incoming queue for further # processing. inq = get_switchboard(mm_cfg.INQUEUE_DIR) inq.enqueue(msg, _metadata=msgdata) elif value == mm_cfg.REJECT: # Rejected rejection = 'Refused' self.__refuse(_('Posting of your message titled "%(subject)s"'), sender, comment or _('[No reason given]'), lang=self.getMemberLanguage(sender)) else: assert value == mm_cfg.DISCARD # Discarded rejection = 'Discarded' # # Forward the message if forward and addr: # If we've approved the message, we need to be sure to craft a # completely unique second message for the forwarding operation, # since we don't want to share any state or information with the # normal delivery. p = Parser(Message.Message) if msg: fp.seek(0) else: try: fp = open(path) except IOError, e: if e.errno <> errno.ENOENT: raise raise Errors.LostHeldMessage(path) msg = p.parse(fp) if fp: fp.close() # We don't want this message getting delivered to the list twice. # This should also uniquify the message enough for the hash-based # file naming (not foolproof though). del msg['resent-to'] msg['Resent-To'] = addr virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR) virginq.enqueue(msg, listname=self.internal_name(), recips=[addr]) # # Log the rejection | bf085df4303c04c3c6e04d0192ad0fff5f9fb230 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/bf085df4303c04c3c6e04d0192ad0fff5f9fb230/ListAdmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4110,
2767,
12,
2890,
16,
1409,
16,
460,
16,
2879,
16,
9420,
16,
5104,
16,
3091,
4672,
468,
2457,
12727,
8926,
598,
675,
576,
18,
20,
5758,
23,
293,
957,
16,
5793,
16,
3221,
16,
3971,
16,
1544,
16,
1234,
892,
273,
1409,
589,
273,
1140,
18,
803,
18,
5701,
12,
7020,
67,
7066,
18,
4883,
67,
4537,
16,
1544,
13,
468,
5004,
883,
4075,
10298,
309,
9420,
30,
2140,
273,
1140,
18,
803,
18,
4939,
12,
803,
25146,
21,
8009,
4939,
12,
9793,
2664,
13,
2140,
63,
20,
65,
273,
296,
1752,
301,
11,
24824,
768,
273,
463,
10793,
18,
5701,
12,
6019,
13,
1930,
11060,
775,
30,
11060,
18,
3530,
12,
803,
16,
1140,
18,
803,
18,
5701,
12,
7020,
67,
7066,
18,
3118,
2192,
67,
4537,
16,
24824,
768,
3719,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
2813,
8402,
18,
1157,
51,
2222,
30,
1002,
327,
1806,
882,
468,
4494,
1640,
4533,
358,
326,
2063,
283,
3710,
273,
599,
4253,
273,
599,
1234,
273,
599,
1267,
273,
26056,
309,
460,
422,
9740,
67,
7066,
18,
1639,
6553,
30,
468,
1505,
586,
1267,
273,
2030,
6553,
1327,
460,
422,
9740,
67,
7066,
18,
2203,
3373,
3412,
30,
468,
1716,
685,
2155,
775,
30,
4253,
273,
1696,
12,
803,
13,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
2813,
8402,
18,
1157,
51,
2222,
30,
1002,
327,
1806,
882,
1234,
273,
855,
1079,
12,
803,
13,
1234,
892,
3292,
25990,
3546,
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,
4110,
2767,
12,
2890,
16,
1409,
16,
460,
16,
2879,
16,
9420,
16,
5104,
16,
3091,
4672,
468,
2457,
12727,
8926,
598,
675,
576,
18,
20,
5758,
23,
293,
957,
16,
5793,
16,
3221,
16,
3971,
16,
1544,
16,
1234,
892,
273,
1409,
589,
273,
1140,
18,
803,
18,
5701,
12,
7020,
67,
7066,
18,
4883,
67,
4537,
16,
1544,
13,
468,
5004,
883,
4075,
10298,
309,
9420,
30,
2140,
273,
1140,
18,
803,
18,
4939,
12,
803,
25146,
21,
8009,
4939,
12,
9793,
2664,
13,
2140,
63,
20,
65,
273,
296,
1752,
301,
11,
24824,
768,
273,
463,
10793,
18,
5701,
12,
6019,
13,
1930,
11060,
775,
30,
11060,
18,
3530,
12,
803,
16,
1140,
18,
2
] |
another. `other' must have an .iterator() method. | another. `other` must have an .iterator() method. | def copyTransactionsFrom(self, other, verbose=0): """Copy transactions from another storage. | 65df37866a84d3f5048116931d5872c773f2956a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/65df37866a84d3f5048116931d5872c773f2956a/BaseStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
14186,
1265,
12,
2890,
16,
1308,
16,
3988,
33,
20,
4672,
3536,
2951,
8938,
628,
4042,
2502,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
14186,
1265,
12,
2890,
16,
1308,
16,
3988,
33,
20,
4672,
3536,
2951,
8938,
628,
4042,
2502,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""Copies list of mod files to clipboard.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("List Mods...")) menu.AppendItem(menuItem) def Execute(self,event): text = bosh.modInfos.getModList() if (wx.TheClipboard.Open()): wx.TheClipboard.SetData(wx.TextDataObject(text)) wx.TheClipboard.Close() balt.showLog(self.window,text,_("Active Mod Files"),asDialog=False,fixedFont=False,icons=bashBlue) | """Copies list of mod files to clipboard.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("List Mods...")) menu.AppendItem(menuItem) def Execute(self,event): text = bosh.modInfos.getModList() if (wx.TheClipboard.Open()): wx.TheClipboard.SetData(wx.TextDataObject(text)) wx.TheClipboard.Close() balt.showLog(self.window,text,_("Active Mod Files"),asDialog=False,fixedFont=False,icons=bashBlue) | def Execute(self,event): """Handle menu selection.""" window = getattr(self,'gTank',None) or self.window #--Continue Query message = _("Apply an ini tweak to Fallout3.ini?\n\nWARNING: Incorrect tweaks can result in CTDs and even damage to you computer!") if not balt.askContinue(window,message,'bash.iniTweaks.continue',_("INI Tweaks")): return #--File dialog tweakDir = bosh.modInfos.dir.join("INI Tweaks") tweakDir.makedirs() tweakPath = balt.askOpen(window,_('INI Tweaks'),tweakDir,'', '*.ini') if not tweakPath: return bosh.fallout3Ini.applyTweakFile(tweakPath) balt.showInfo(window,tweakPath.stail+_(' applied.'),_('INI Tweaks')) | 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,
3536,
3259,
3824,
4421,
12123,
2742,
273,
3869,
12,
2890,
11189,
75,
56,
2304,
2187,
7036,
13,
578,
365,
18,
5668,
468,
413,
12378,
2770,
883,
273,
389,
2932,
7001,
392,
6896,
21279,
358,
478,
287,
14533,
23,
18,
8767,
10936,
82,
64,
82,
9511,
30,
657,
6746,
21279,
87,
848,
563,
316,
21088,
22831,
471,
5456,
302,
301,
410,
358,
1846,
26579,
4442,
13,
309,
486,
324,
2390,
18,
835,
12378,
12,
5668,
16,
2150,
11189,
28734,
18,
8767,
56,
26008,
87,
18,
17143,
2187,
67,
2932,
12772,
399,
26008,
87,
6,
3719,
30,
327,
468,
413,
812,
6176,
21279,
1621,
273,
324,
17636,
18,
1711,
7655,
18,
1214,
18,
5701,
2932,
12772,
399,
26008,
87,
7923,
21279,
1621,
18,
81,
9477,
10539,
1435,
21279,
743,
273,
324,
2390,
18,
835,
3678,
12,
5668,
16,
67,
2668,
12772,
399,
26008,
87,
19899,
88,
26008,
1621,
11189,
2187,
19962,
8767,
6134,
309,
486,
21279,
743,
30,
327,
324,
17636,
18,
74,
287,
14533,
23,
22129,
18,
9010,
56,
26008,
812,
12,
88,
26008,
743,
13,
324,
2390,
18,
4500,
966,
12,
5668,
16,
88,
26008,
743,
18,
334,
671,
15,
67,
2668,
6754,
1093,
3631,
67,
2668,
12772,
399,
26008,
87,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3536,
3259,
3824,
4421,
12123,
2742,
273,
3869,
12,
2890,
11189,
75,
56,
2304,
2187,
7036,
13,
578,
365,
18,
5668,
468,
413,
12378,
2770,
883,
273,
389,
2932,
7001,
392,
6896,
21279,
358,
478,
287,
14533,
23,
18,
8767,
10936,
82,
64,
82,
9511,
30,
657,
6746,
21279,
87,
848,
563,
316,
21088,
22831,
471,
5456,
302,
301,
410,
358,
1846,
26579,
4442,
13,
309,
486,
324,
2390,
18,
835,
12378,
12,
5668,
16,
2150,
11189,
28734,
18,
8767,
56,
26008,
87,
18,
17143,
2187,
67,
2932,
12772,
399,
26008,
87,
6,
3719,
30,
327,
468,
413,
812,
6176,
21279,
1621,
273,
324,
17636,
18,
1711,
7655,
18,
1214,
18,
5701,
2
] |
if url == 'extra' and self.extra is not None: | if url == 'xdv:extra' and self.extra is not None: | def resolve(self, url, pubid, context): if url == 'rules': return self.resolve_string(self.rules, context) if url == 'extra' and self.extra is not None: return self.resolve_string(self.extra, context) | 7cba8be7ac9eecc31e6d809c3c3a2b151d9ac280 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12188/7cba8be7ac9eecc31e6d809c3c3a2b151d9ac280/compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
880,
16,
5634,
350,
16,
819,
4672,
309,
880,
422,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
880,
16,
5634,
350,
16,
819,
4672,
309,
880,
422,
296,
7482,
4278,
327,
365,
18,
10828,
67,
1080,
12,
2890,
18,
7482,
16,
819,
13,
309,
880,
422,
296,
7669,
90,
30,
7763,
11,
471,
365,
18,
7763,
353,
486,
599,
30,
327,
365,
18,
10828,
67,
1080,
12,
2890,
18,
7763,
16,
819,
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
] |
else: wx.CallAfter(self.findDefinitionFinished, match, sel, defs) | def findDefinitionThread(self, ctx, filename, lineno, column, sel): try: defs = ctx.findDefinitionByCoordinates(filename, lineno, column) try: match = defs.next() except StopIteration: wx.CallAfter(wx.LogError, _("Couldn't find definition")) wx.CallAfter(self.model.editor.setStatus, _('BRM - Could not find definition'), 'Error') else: wx.CallAfter(self.findDefinitionFinished, match, sel, defs) except Exception, err: wx.CallAfter(wx.LogError, ''.join(traceback.format_exception(*sys.exc_info()))) wx.CallAfter(self.model.editor.setStatus, _('BRM - Error %s')%str(err), 'Error') | a283eca72df1693fa0cb4bce246fb7fb9e40dfe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4325/a283eca72df1693fa0cb4bce246fb7fb9e40dfe5/BicycleRepairMan.plug-in.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
1852,
3830,
12,
2890,
16,
1103,
16,
1544,
16,
7586,
16,
1057,
16,
357,
4672,
775,
30,
17588,
273,
1103,
18,
4720,
1852,
858,
13431,
12,
3459,
16,
7586,
16,
1057,
13,
775,
30,
845,
273,
17588,
18,
4285,
1435,
1335,
16179,
30,
7075,
18,
1477,
4436,
12,
27226,
18,
1343,
668,
16,
389,
2932,
16342,
1404,
1104,
2379,
6,
3719,
7075,
18,
1477,
4436,
12,
2890,
18,
2284,
18,
9177,
18,
542,
1482,
16,
389,
2668,
7192,
49,
300,
14312,
486,
1104,
2379,
19899,
296,
668,
6134,
225,
1335,
1185,
16,
393,
30,
7075,
18,
1477,
4436,
12,
27226,
18,
1343,
668,
16,
875,
18,
5701,
12,
21696,
18,
2139,
67,
4064,
30857,
9499,
18,
10075,
67,
1376,
1435,
20349,
7075,
18,
1477,
4436,
12,
2890,
18,
2284,
18,
9177,
18,
542,
1482,
16,
389,
2668,
7192,
49,
300,
1068,
738,
87,
6134,
9,
701,
12,
370,
3631,
296,
668,
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,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1852,
858,
13431,
12,
3459,
16,
7586,
16,
1057,
13,
775,
30,
845,
273,
17588,
18,
4285,
1435,
1335,
16179,
30,
7075,
18,
1477,
4436,
12,
27226,
18,
1343,
668,
16,
389,
2932,
16342,
1404,
1104,
2379,
6,
3719,
7075,
18,
1477,
4436,
12,
2890,
18,
2284,
18,
9177,
18,
542,
1482,
16,
389,
2668,
7192,
49,
300,
14312,
486,
1104,
2379,
19899,
296,
668,
6134,
225,
1335,
1185,
16,
393,
30,
7075,
18,
1477,
4436,
12,
27226,
18,
1343,
668,
16,
875,
18,
5701,
12,
21696,
18,
2139,
67,
4064,
30857,
9499,
18,
10075,
2
] |
|
find_file(['/usr/include', '/usr/local/include'] + self.include_dirs, 'db_185.h') ): | find_file(inc_dirs, 'db_185.h') ): | def detect_modules(self): # XXX this always gets an empty list -- hardwiring to # a fixed list lib_dirs = self.compiler.library_dirs[:] lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib'] exts = [] | 158a3d315561e40124b1fe947d545ed978d9fe78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/158a3d315561e40124b1fe947d545ed978d9fe78/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
11329,
333,
3712,
5571,
392,
1008,
666,
1493,
7877,
91,
11256,
358,
468,
279,
5499,
666,
2561,
67,
8291,
273,
365,
18,
9576,
18,
12083,
67,
8291,
10531,
65,
2561,
67,
8291,
1011,
10228,
19,
2941,
2187,
1173,
13640,
19,
2941,
2187,
1173,
13640,
19,
3729,
19,
2941,
3546,
20793,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
11329,
333,
3712,
5571,
392,
1008,
666,
1493,
7877,
91,
11256,
358,
468,
279,
5499,
666,
2561,
67,
8291,
273,
365,
18,
9576,
18,
12083,
67,
8291,
10531,
65,
2561,
67,
8291,
1011,
10228,
19,
2941,
2187,
1173,
13640,
19,
2941,
2187,
1173,
13640,
19,
3729,
19,
2941,
3546,
20793,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while self.__reading_thread and self.__reading_thread.is_alive(): | while self.__reading_thread and self.__reading_thread.is_active(): | def close(self): # free parsed data if not self.is_opened(): return self.__open_status = False | 99c31ae5bbd5f607698f28c5685c2eaf6283802b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11669/99c31ae5bbd5f607698f28c5685c2eaf6283802b/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
468,
4843,
2707,
501,
309,
486,
365,
18,
291,
67,
25304,
13332,
327,
365,
16186,
3190,
67,
2327,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
468,
4843,
2707,
501,
309,
486,
365,
18,
291,
67,
25304,
13332,
327,
365,
16186,
3190,
67,
2327,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
substitute_var = getSubstitute(v.value) | substitute_vars = getSubstitute(v.value,skip_list) if not substitute_vars: break | def resolveGlobalVars(self, wf_parameters=None, step_parameters=None): """This function resolves global parameters of type @{value} within the ParameterCollection """ | 57c65312adb66a59a7366d76a3182a3b9364f020 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/57c65312adb66a59a7366d76a3182a3b9364f020/Parameter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
5160,
5555,
12,
2890,
16,
11578,
67,
3977,
33,
7036,
16,
2235,
67,
3977,
33,
7036,
4672,
3536,
2503,
445,
17385,
2552,
1472,
434,
618,
632,
95,
1132,
97,
3470,
326,
5498,
2532,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise self.failureException, \ (msg or '%r != %r' % (first, second)) | raise self.failureException(msg or '%r != %r' % (first, second)) | def failUnlessEqual(self, first, second, msg=None): """Fail if the two objects are unequal as determined by the '==' operator. """ if not first == second: raise self.failureException, \ (msg or '%r != %r' % (first, second)) | dae1a6a4889a67d29c7e1638472625cc4ca3cdf3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dae1a6a4889a67d29c7e1638472625cc4ca3cdf3/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
984,
2656,
5812,
12,
2890,
16,
1122,
16,
2205,
16,
1234,
33,
7036,
4672,
3536,
3754,
309,
326,
2795,
2184,
854,
640,
9729,
487,
11383,
635,
326,
22853,
3726,
18,
3536,
309,
486,
1122,
422,
2205,
30,
1002,
365,
18,
12251,
503,
16,
521,
261,
3576,
578,
1995,
86,
480,
738,
86,
11,
738,
261,
3645,
16,
2205,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
984,
2656,
5812,
12,
2890,
16,
1122,
16,
2205,
16,
1234,
33,
7036,
4672,
3536,
3754,
309,
326,
2795,
2184,
854,
640,
9729,
487,
11383,
635,
326,
22853,
3726,
18,
3536,
309,
486,
1122,
422,
2205,
30,
1002,
365,
18,
12251,
503,
16,
521,
261,
3576,
578,
1995,
86,
480,
738,
86,
11,
738,
261,
3645,
16,
2205,
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
] |
self.win.vRTotal.text = res.formatTime(total) | if total == 0: self.win.vRTotal.text = _("N/A") else: self.win.vRTotal.text = res.formatTime(total) | def show(self): player = client.getPlayer() # title self.win.vRQueueTitle.text = _('Research queue [%d pts/turn]') % ( player.effSciPoints, ) self.win.title = _("Research [TL%d]") % player.techLevel # Known techs items = [] #~researchable = {} disabled = [] taskIDs = {} for task in player.rsrchQueue: taskIDs[task.techID] = None for techID in player.techs.keys(): tech = client.getTechInfo(techID) improvement = player.techs[techID] item = ui.Item(tech.name, techID = techID, tLevel = '%d-%d' % (tech.level, improvement), tStruct = (' ', '*')[tech.isStructure], tShip = (' ', '*')[tech.isShipEquip], ) if improvement < Rules.techMaxImprovement and improvement < tech.maxImprovement: neededSci = Utils.getTechRCost(player, techID) if player.effSciPoints > 0: item.tETC = res.formatTime(float(neededSci) / player.effSciPoints) else: item.tETC = _("N/A") found = 0 if taskIDs.has_key(techID): item.foreground = (0xd0, 0xd0, 0xd0) else: item.foreground = None else: item.tETC = res.getNA() item.foreground = (0x80, 0x80, 0x80) if not self.showCompleted: # skip this item continue items.append(item) disabled.extend(tech.researchDisables) #~for improvement in range(1, improvement + 1): #~ for techID in tech.researchEnables[improvement]: #~ researchable[techID] = 1 self.win.vKTechs.items = items self.win.vKTechs.itemsChanged() # Research queue items = [] index = 0 queueTechs = [] total = 0 for task in player.rsrchQueue: tech = client.getTechInfo(task.techID) fulltech = client.getFullTechInfo(task.techID) queueTechs.append(task.techID) item = ui.Item(tech.name, techID = task.techID, index = index) researchSci = Utils.getTechRCost(player, task.techID, task.improvement) maxImprovement = min(Rules.techMaxImprovement,fulltech.maxImprovement) maxImpTotalSci = 0 if task.improveToMax and task.improvement < maxImprovement: for impr in range(task.improvement+1,maxImprovement+1): maxImpTotalSci += Utils.getTechRCost(player, task.techID, impr) item.tooltip = _("Research points %d/%d, change %d pts/turn.") % (task.currSci, researchSci, task.changeSci) item.statustip = item.tooltip item.tImpToMax = ["", "*"][task.improveToMax] item.tImproveToMax = task.improveToMax if task.currSci > 0: item.tProgress = _("%d %%") % int(task.currSci * 100 / researchSci) else: item.tProgress = _("-") if task.changeSci > 0: value = float(researchSci - task.currSci) / max(task.changeSci, player.effSciPoints) total += int(value + 1) total += float(maxImpTotalSci) / player.effSciPoints item.tETC = res.formatTime(value) elif task.changeSci < 0: value = - float(task.currSci) / min(task.changeSci, player.effSciPoints) item.tETC = _("[%s]") % res.formatTime(value) elif player.effSciPoints > 0: value = float(researchSci) / player.effSciPoints total += int(value + 1) total += float(maxImpTotalSci) / player.effSciPoints item.tETC = res.formatTime(value) else: item.tETC = res.getNA() item.tLevel = _("%d-%d") % (tech.level, task.improvement) items.append(item) index += 1 self.win.vRQueue.items = items self.win.vRQueue.itemsChanged() self.win.vRQueueTop.enabled = 0 self.win.vRQueueUp.enabled = 0 self.win.vRQueueDown.enabled = 0 self.win.vRQueueAbort.enabled = 0 self.win.vRQueueRepat.enabled = 0 self.win.vRQueueRepat.pressed = 0 self.win.vRQueueInfo.enabled = 0 self.win.vRTotal.text = res.formatTime(total) # Researchable techs items = [] for techID in client.getAllTechIDs(): if player.techs.has_key(techID) or techID in queueTechs \ or techID in disabled: continue # can check requirements tech = client.getTechInfo(techID) if not hasattr(tech, "partialData"): continue item = ui.Item(tech.name, tLevel = tech.level, techID = techID) if hasattr(tech, 'isStructure'): item.tStruct = ('', '*')[tech.isStructure] else: item.tStruct = '' if hasattr(tech, 'isShipEquip'): item.tShip = ('', '*')[tech.isShipEquip] else: item.tShip = '' if hasattr(tech, 'researchMod'): neededSci = Utils.getTechRCost(player, techID) if player.effSciPoints > 0: item.tETC = res.formatTime(float(neededSci) / player.effSciPoints) else: item.tETC = _("N/A") item.foreground = None else: item.tSci = res.getNA() item.foreground = (0xc0, 0xc0, 0xc0) # skip this item continue if hasattr(tech, "researchDisables") and tech.researchDisables: item.foreground = (0xff, 0xff, 0x00) if client.getFullTechInfo(techID).finishResearchHandler == TechHandlers.finishResTLAdvance: item.foreground = gdata.sevColors[gdata.CRI] items.append(item) self.win.vRTechs.items = items self.win.vRTechs.itemsChanged() | 00d22e77ca9bec3f2597fad4e769647907a7f3b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/503/00d22e77ca9bec3f2597fad4e769647907a7f3b8/ResearchDlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
7291,
273,
1004,
18,
588,
12148,
1435,
468,
2077,
365,
18,
8082,
18,
90,
54,
3183,
4247,
18,
955,
273,
389,
2668,
607,
73,
991,
2389,
9799,
72,
13397,
19,
20922,
3864,
13,
738,
261,
7291,
18,
17098,
1541,
77,
5636,
16,
262,
365,
18,
8082,
18,
2649,
273,
389,
2932,
607,
73,
991,
306,
5967,
9,
72,
4279,
13,
738,
7291,
18,
28012,
2355,
468,
30036,
13878,
87,
1516,
273,
5378,
468,
98,
266,
3072,
429,
273,
2618,
5673,
273,
5378,
1562,
5103,
273,
2618,
364,
1562,
316,
7291,
18,
5453,
86,
343,
3183,
30,
1562,
5103,
63,
4146,
18,
28012,
734,
65,
273,
599,
364,
13878,
734,
316,
7291,
18,
28012,
87,
18,
2452,
13332,
13878,
273,
1004,
18,
588,
56,
8987,
966,
12,
28012,
734,
13,
13069,
22627,
273,
7291,
18,
28012,
87,
63,
28012,
734,
65,
761,
273,
5915,
18,
1180,
12,
28012,
18,
529,
16,
13878,
734,
273,
13878,
734,
16,
268,
2355,
273,
1995,
72,
6456,
72,
11,
738,
261,
28012,
18,
2815,
16,
13069,
22627,
3631,
268,
3823,
273,
7707,
2265,
5306,
25146,
28012,
18,
291,
6999,
6487,
268,
26358,
273,
7707,
2265,
5306,
25146,
28012,
18,
291,
26358,
13142,
625,
6487,
262,
309,
13069,
22627,
411,
15718,
18,
28012,
2747,
1170,
685,
22627,
471,
13069,
22627,
411,
13878,
18,
1896,
1170,
685,
22627,
30,
3577,
1541,
77,
273,
6091,
18,
588,
56,
8987,
54,
8018,
12,
14872,
16,
13878,
734,
13,
309,
7291,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
7291,
273,
1004,
18,
588,
12148,
1435,
468,
2077,
365,
18,
8082,
18,
90,
54,
3183,
4247,
18,
955,
273,
389,
2668,
607,
73,
991,
2389,
9799,
72,
13397,
19,
20922,
3864,
13,
738,
261,
7291,
18,
17098,
1541,
77,
5636,
16,
262,
365,
18,
8082,
18,
2649,
273,
389,
2932,
607,
73,
991,
306,
5967,
9,
72,
4279,
13,
738,
7291,
18,
28012,
2355,
468,
30036,
13878,
87,
1516,
273,
5378,
468,
98,
266,
3072,
429,
273,
2618,
5673,
273,
5378,
1562,
5103,
273,
2618,
364,
1562,
316,
7291,
18,
5453,
86,
343,
3183,
30,
1562,
5103,
63,
4146,
18,
28012,
734,
65,
273,
599,
364,
13878,
734,
316,
7291,
18,
28012,
87,
2
] |
return 0 | return False | def _do_cmp(f1, f2): bufsize = BUFSIZE fp1 = open(f1, 'rb') fp2 = open(f2, 'rb') while 1: b1 = fp1.read(bufsize) b2 = fp2.read(bufsize) if b1 != b2: return 0 if not b1: return 1 | 05595e9d73b2c05fcd9492cf8f5d126282b82053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/05595e9d73b2c05fcd9492cf8f5d126282b82053/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
9625,
12,
74,
21,
16,
284,
22,
4672,
1681,
1467,
273,
10937,
42,
4574,
4253,
21,
273,
1696,
12,
74,
21,
16,
296,
6731,
6134,
4253,
22,
273,
1696,
12,
74,
22,
16,
296,
6731,
6134,
1323,
404,
30,
324,
21,
273,
4253,
21,
18,
896,
12,
4385,
1467,
13,
324,
22,
273,
4253,
22,
18,
896,
12,
4385,
1467,
13,
309,
324,
21,
480,
324,
22,
30,
327,
1083,
309,
486,
324,
21,
30,
327,
404,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
9625,
12,
74,
21,
16,
284,
22,
4672,
1681,
1467,
273,
10937,
42,
4574,
4253,
21,
273,
1696,
12,
74,
21,
16,
296,
6731,
6134,
4253,
22,
273,
1696,
12,
74,
22,
16,
296,
6731,
6134,
1323,
404,
30,
324,
21,
273,
4253,
21,
18,
896,
12,
4385,
1467,
13,
324,
22,
273,
4253,
22,
18,
896,
12,
4385,
1467,
13,
309,
324,
21,
480,
324,
22,
30,
327,
1083,
309,
486,
324,
21,
30,
327,
404,
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
] |
def read(self, size=1024): if not self.readable(): raise m2.Error("write-only") if self.closed or size<=0: return '' try: return m2.bio_read(self.bio, size) except RuntimeError: return '' | def read(self, size=4096): if not self.readable(): raise m2.Error("write-only") if self.closed or size<=0: return '' try: return m2.bio_read(self.bio, size) except RuntimeError: return '' | def read(self, size=1024): if not self.readable(): raise m2.Error("write-only") if self.closed or size<=0: return '' try: return m2.bio_read(self.bio, size) except RuntimeError: # XXX better error handling return '' | 52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
33,
2163,
3247,
4672,
309,
486,
365,
18,
11018,
13332,
1002,
312,
22,
18,
668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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
963,
33,
2163,
3247,
4672,
309,
486,
365,
18,
11018,
13332,
1002,
312,
22,
18,
668,
2932,
2626,
17,
3700,
7923,
309,
365,
18,
12204,
578,
963,
32,
33,
20,
30,
327,
875,
775,
30,
327,
312,
22,
18,
21010,
67,
896,
12,
2890,
18,
21010,
16,
963,
13,
1335,
7265,
30,
468,
11329,
7844,
555,
5057,
327,
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
] |
'number_IBZ_kpoints']) | 'number_IBZ_kpoints'], ncvars=[]) | def set_kpts(self, kpts): ''' set the kpt grid. | 28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
79,
1092,
12,
2890,
16,
417,
1092,
4672,
9163,
444,
326,
417,
337,
3068,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
installer = path.joinpath(source_path,path('installer')) if not installer.exists(): os.mkdir(installer) | os.mkdir(path.joinpath(source_path,path('installer'))) | def installer(): ''' Right now this only makes a installer folder in the source dir ''' installer = path.joinpath(source_path,path('installer')) if not installer.exists(): os.mkdir(installer) | 4452954ce1587acd9e2eec6bbf99e921c8594509 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3279/4452954ce1587acd9e2eec6bbf99e921c8594509/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16050,
13332,
9163,
13009,
2037,
333,
1338,
7297,
279,
16050,
3009,
316,
326,
1084,
1577,
9163,
1140,
18,
26686,
12,
803,
18,
5701,
803,
12,
3168,
67,
803,
16,
803,
2668,
20163,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16050,
13332,
9163,
13009,
2037,
333,
1338,
7297,
279,
16050,
3009,
316,
326,
1084,
1577,
9163,
1140,
18,
26686,
12,
803,
18,
5701,
803,
12,
3168,
67,
803,
16,
803,
2668,
20163,
11,
20349,
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
] |
_write_data(writer, "<![CDATA[%s]]>" % self.data) | writer.write("<![CDATA[%s]]>" % self.data) | def writexml(self, writer, indent="", addindent="", newl=""): _write_data(writer, "<![CDATA[%s]]>" % self.data) | f5189e97178b0c77d23ec419bbcecbb5600b18e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f5189e97178b0c77d23ec419bbcecbb5600b18e7/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
16,
3504,
1546,
3113,
527,
9355,
1546,
3113,
394,
80,
1546,
6,
4672,
389,
2626,
67,
892,
12,
6299,
16,
3532,
5,
63,
18375,
14451,
87,
13563,
2984,
738,
365,
18,
892,
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,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0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
16,
3504,
1546,
3113,
527,
9355,
1546,
3113,
394,
80,
1546,
6,
4672,
389,
2626,
67,
892,
12,
6299,
16,
3532,
5,
63,
18375,
14451,
87,
13563,
2984,
738,
365,
18,
892,
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
] |
logger.Error(errorstring) | logging.error(errorstring) | def CreateBlockDevice(disk, size, owner, on_primary, info): """Creates a block device for an instance. Args: disk: a ganeti.objects.Disk object size: the size of the physical underlying device owner: a string with the name of the instance on_primary: a boolean indicating if it is the primary node or not info: string that will be sent to the physical device creation Returns: the new unique_id of the device (this can sometime be computed only after creation), or None. On secondary nodes, it's not required to return anything. """ clist = [] if disk.children: for child in disk.children: crdev = _RecursiveAssembleBD(child, owner, on_primary) if on_primary or disk.AssembleOnSecondary(): # we need the children open in case the device itself has to # be assembled crdev.Open() clist.append(crdev) try: device = bdev.FindDevice(disk.dev_type, disk.physical_id, clist) if device is not None: logger.Info("removing existing device %s" % disk) device.Remove() except errors.BlockDeviceError, err: pass device = bdev.Create(disk.dev_type, disk.physical_id, clist, size) if device is None: raise ValueError("Can't create child device for %s, %s" % (disk, size)) if on_primary or disk.AssembleOnSecondary(): if not device.Assemble(): errorstring = "Can't assemble device after creation" logger.Error(errorstring) raise errors.BlockDeviceError("%s, very unusual event - check the node" " daemon logs" % errorstring) device.SetSyncSpeed(constants.SYNC_SPEED) if on_primary or disk.OpenOnSecondary(): device.Open(force=True) DevCacheManager.UpdateCache(device.dev_path, owner, on_primary, disk.iv_name) device.SetInfo(info) physical_id = device.unique_id return physical_id | 18682bca5711b7b492aeb3cd3a550087f1413e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/18682bca5711b7b492aeb3cd3a550087f1413e0b/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1768,
3654,
12,
10863,
16,
963,
16,
3410,
16,
603,
67,
8258,
16,
1123,
4672,
3536,
2729,
279,
1203,
2346,
364,
392,
791,
18,
225,
6634,
30,
4234,
30,
279,
314,
304,
278,
77,
18,
6911,
18,
6247,
733,
963,
30,
326,
963,
434,
326,
11640,
6808,
2346,
3410,
30,
279,
533,
598,
326,
508,
434,
326,
791,
603,
67,
8258,
30,
279,
1250,
11193,
309,
518,
353,
326,
3354,
756,
578,
486,
1123,
30,
533,
716,
903,
506,
3271,
358,
326,
11640,
2346,
6710,
225,
2860,
30,
326,
394,
3089,
67,
350,
434,
326,
2346,
261,
2211,
848,
4737,
2374,
506,
8470,
1338,
1839,
6710,
3631,
578,
599,
18,
2755,
9946,
2199,
16,
518,
1807,
486,
1931,
358,
327,
6967,
18,
225,
3536,
927,
376,
273,
5378,
309,
4234,
18,
5906,
30,
364,
1151,
316,
4234,
18,
5906,
30,
4422,
5206,
273,
389,
10483,
1463,
10045,
18096,
12,
3624,
16,
3410,
16,
603,
67,
8258,
13,
309,
603,
67,
8258,
578,
4234,
18,
1463,
10045,
1398,
14893,
13332,
468,
732,
1608,
326,
2325,
1696,
316,
648,
326,
2346,
6174,
711,
358,
468,
506,
20489,
1259,
4422,
5206,
18,
3678,
1435,
927,
376,
18,
6923,
12,
3353,
5206,
13,
775,
30,
2346,
273,
324,
5206,
18,
3125,
3654,
12,
10863,
18,
5206,
67,
723,
16,
4234,
18,
20441,
67,
350,
16,
927,
376,
13,
309,
2346,
353,
486,
599,
30,
1194,
18,
966,
2932,
2764,
13767,
2062,
2346,
738,
87,
6,
738,
4234,
13,
2346,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1768,
3654,
12,
10863,
16,
963,
16,
3410,
16,
603,
67,
8258,
16,
1123,
4672,
3536,
2729,
279,
1203,
2346,
364,
392,
791,
18,
225,
6634,
30,
4234,
30,
279,
314,
304,
278,
77,
18,
6911,
18,
6247,
733,
963,
30,
326,
963,
434,
326,
11640,
6808,
2346,
3410,
30,
279,
533,
598,
326,
508,
434,
326,
791,
603,
67,
8258,
30,
279,
1250,
11193,
309,
518,
353,
326,
3354,
756,
578,
486,
1123,
30,
533,
716,
903,
506,
3271,
358,
326,
11640,
2346,
6710,
225,
2860,
30,
326,
394,
3089,
67,
350,
434,
326,
2346,
261,
2211,
848,
4737,
2374,
506,
8470,
1338,
1839,
6710,
3631,
578,
599,
18,
2755,
9946,
2199,
16,
518,
1807,
486,
2
] |
labelList=string.splitfields(labelline) | labelList=labelline.split() | def _data_map(labelline): | b6f4304a9e1c98ac4ed81730027b28d8219fd7b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/b6f4304a9e1c98ac4ed81730027b28d8219fd7b6/NOEtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
892,
67,
1458,
12,
1925,
1369,
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,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
customMsgBox(self, '%s:\n%s\n%s' % sys.exc_info(), 'error') | customMsgBox(self, '%s:\n%s\n%s' % sys.exc_info(), 'error') | def on_file_remove(self, event): if self.project <> None: item = self.tree.GetSelection() file = self.tree.GetItemText(item) if item != self.root and self.activeitem != self.root: self.tree.Delete(item) self.project.remove(file) self.projectSave() self.nb.SetPageText(0, 'Editor') self.editor.Clear() self.editor.Enable(0) dlg=wxMessageDialog(self, 'Delete file %s from disk?' % file, NAME, wxYES_NO | wxNO_DEFAULT | wxICON_QUESTION) result = dlg.ShowModal() if result == wxID_YES: try: self.activateMenuItemsFileSelected(FALSE) os.remove(file) except: customMsgBox(self, '%s:\n%s\n%s' % sys.exc_info(), 'error') dlg.Destroy() else: customMsgBox(self, 'No file selected.', 'wakeup') | 0386dacaa4983ab8619dec87afda0aae584bc1ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/0386dacaa4983ab8619dec87afda0aae584bc1ad/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
768,
67,
4479,
12,
2890,
16,
871,
4672,
309,
365,
18,
4406,
2813,
599,
30,
761,
273,
365,
18,
3413,
18,
967,
6233,
1435,
585,
273,
365,
18,
3413,
18,
967,
1180,
1528,
12,
1726,
13,
309,
761,
480,
365,
18,
3085,
471,
365,
18,
3535,
1726,
480,
365,
18,
3085,
30,
365,
18,
3413,
18,
2613,
12,
1726,
13,
365,
18,
4406,
18,
4479,
12,
768,
13,
365,
18,
4406,
4755,
1435,
365,
18,
6423,
18,
694,
1964,
1528,
12,
20,
16,
296,
6946,
6134,
365,
18,
9177,
18,
9094,
1435,
365,
18,
9177,
18,
8317,
12,
20,
13,
25840,
33,
27226,
1079,
6353,
12,
2890,
16,
296,
2613,
585,
738,
87,
628,
4234,
4899,
738,
585,
16,
6048,
16,
7075,
29081,
67,
3417,
571,
7075,
3417,
67,
5280,
571,
7075,
21745,
67,
4740,
1146,
13,
563,
273,
25840,
18,
5706,
20191,
1435,
309,
563,
422,
7075,
734,
67,
29081,
30,
775,
30,
365,
18,
10014,
4599,
3126,
812,
7416,
12,
21053,
13,
1140,
18,
4479,
12,
768,
13,
1335,
30,
1679,
3332,
3514,
12,
2890,
16,
1995,
87,
5581,
82,
9,
87,
64,
82,
9,
87,
11,
738,
2589,
18,
10075,
67,
1376,
9334,
296,
1636,
6134,
25840,
18,
10740,
1435,
469,
30,
1679,
3332,
3514,
12,
2890,
16,
296,
2279,
585,
3170,
1093,
16,
296,
91,
911,
416,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
768,
67,
4479,
12,
2890,
16,
871,
4672,
309,
365,
18,
4406,
2813,
599,
30,
761,
273,
365,
18,
3413,
18,
967,
6233,
1435,
585,
273,
365,
18,
3413,
18,
967,
1180,
1528,
12,
1726,
13,
309,
761,
480,
365,
18,
3085,
471,
365,
18,
3535,
1726,
480,
365,
18,
3085,
30,
365,
18,
3413,
18,
2613,
12,
1726,
13,
365,
18,
4406,
18,
4479,
12,
768,
13,
365,
18,
4406,
4755,
1435,
365,
18,
6423,
18,
694,
1964,
1528,
12,
20,
16,
296,
6946,
6134,
365,
18,
9177,
18,
9094,
1435,
365,
18,
9177,
18,
8317,
12,
20,
13,
25840,
33,
27226,
1079,
6353,
12,
2890,
16,
296,
2613,
585,
738,
87,
628,
4234,
4899,
2
] |
for badarg in badargs: | def test_compare(self): t1 = timedelta(2, 3, 4) t2 = timedelta(2, 3, 4) self.failUnless(t1 == t2) self.failUnless(t1 <= t2) self.failUnless(t1 >= t2) self.failUnless(not t1 != t2) self.failUnless(not t1 < t2) self.failUnless(not t1 > t2) self.assertEqual(cmp(t1, t2), 0) self.assertEqual(cmp(t2, t1), 0) | d43d9d9fe8e29351c56a4519805cd0d96749e872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d43d9d9fe8e29351c56a4519805cd0d96749e872/test_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9877,
12,
2890,
4672,
268,
21,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
268,
22,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
422,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
1648,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
1545,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
902,
268,
21,
480,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
902,
268,
21,
411,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
902,
268,
21,
405,
268,
22,
13,
365,
18,
11231,
5812,
12,
9625,
12,
88,
21,
16,
268,
22,
3631,
374,
13,
365,
18,
11231,
5812,
12,
9625,
12,
88,
22,
16,
268,
21,
3631,
374,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9877,
12,
2890,
4672,
268,
21,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
268,
22,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
422,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
1648,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
1545,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
902,
268,
21,
480,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
902,
268,
21,
411,
268,
22,
13,
365,
18,
6870,
984,
2656,
12,
902,
268,
21,
405,
268,
22,
13,
365,
18,
11231,
5812,
12,
9625,
12,
88,
21,
16,
268,
22,
3631,
374,
13,
2
] |
|
sess.save_or_update(newvalue) | sess.add(newvalue) | def set(self, state, newvalue, oldvalue, initiator): # process "save_update" cascade rules for when an instance is attached to another instance if oldvalue is newvalue: return newvalue sess = _state_session(state) if sess: prop = _state_mapper(state).get_property(self.key) if newvalue is not None and prop.cascade.save_update and newvalue not in sess: sess.save_or_update(newvalue) if prop.cascade.delete_orphan and oldvalue in sess.new: sess.expunge(oldvalue) return newvalue | 0fc32d7825e9d9bf1dbcf3bbcd4cbf153e68fea5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/0fc32d7825e9d9bf1dbcf3bbcd4cbf153e68fea5/unitofwork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
919,
16,
394,
1132,
16,
1592,
1132,
16,
26030,
4672,
468,
1207,
315,
5688,
67,
2725,
6,
17599,
2931,
364,
1347,
392,
791,
353,
7495,
358,
4042,
791,
309,
1592,
1132,
353,
394,
1132,
30,
327,
394,
1132,
8451,
273,
389,
2019,
67,
3184,
12,
2019,
13,
309,
8451,
30,
2270,
273,
389,
2019,
67,
13919,
12,
2019,
2934,
588,
67,
4468,
12,
2890,
18,
856,
13,
309,
394,
1132,
353,
486,
599,
471,
2270,
18,
22277,
18,
5688,
67,
2725,
471,
394,
1132,
486,
316,
8451,
30,
8451,
18,
1289,
12,
2704,
1132,
13,
309,
2270,
18,
22277,
18,
3733,
67,
7657,
304,
471,
1592,
1132,
316,
8451,
18,
2704,
30,
8451,
18,
2749,
25561,
12,
1673,
1132,
13,
327,
394,
1132,
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,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
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
919,
16,
394,
1132,
16,
1592,
1132,
16,
26030,
4672,
468,
1207,
315,
5688,
67,
2725,
6,
17599,
2931,
364,
1347,
392,
791,
353,
7495,
358,
4042,
791,
309,
1592,
1132,
353,
394,
1132,
30,
327,
394,
1132,
8451,
273,
389,
2019,
67,
3184,
12,
2019,
13,
309,
8451,
30,
2270,
273,
389,
2019,
67,
13919,
12,
2019,
2934,
588,
67,
4468,
12,
2890,
18,
856,
13,
309,
394,
1132,
353,
486,
599,
471,
2270,
18,
22277,
18,
5688,
67,
2725,
471,
394,
1132,
486,
316,
8451,
30,
8451,
18,
1289,
12,
2704,
1132,
13,
309,
2270,
18,
22277,
18,
3733,
67,
7657,
304,
471,
1592,
1132,
316,
8451,
18,
2704,
30,
8451,
18,
2
] |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 641) else quickfix.DoubleField.__init__(self, 641, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
5178,
21,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
5178,
21,
16,
501,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
5178,
21,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
5178,
21,
16,
501,
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
] |
(rc,exists) = semanage_node_exists(self.sh, k) | (rc, exists) = semanage_node_exists(self.sh, k) | def __add(self, addr, mask, proto, serange, ctype): if addr == "": raise ValueError(_("Node Address is required")) | 8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
12,
2890,
16,
3091,
16,
3066,
16,
3760,
16,
703,
726,
16,
11920,
4672,
309,
3091,
422,
1408,
30,
1002,
2068,
24899,
2932,
907,
5267,
353,
1931,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
1001,
1289,
12,
2890,
16,
3091,
16,
3066,
16,
3760,
16,
703,
726,
16,
11920,
4672,
309,
3091,
422,
1408,
30,
1002,
2068,
24899,
2932,
907,
5267,
353,
1931,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
import struct cfgdata = open (self.create_inifile()).read() | import struct self.mkpath(self.dist_dir) cfgdata = self.get_inidata() | def create_exe (self, arcname, fullname): import struct#, zlib | 1ac9802748c26e716685f8ba19277d1a4dc0bcf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1ac9802748c26e716685f8ba19277d1a4dc0bcf1/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
14880,
261,
2890,
16,
8028,
529,
16,
13321,
4672,
1930,
1958,
7,
16,
24220,
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
] |
f.write(src.replace('from libprs500', 'from calibre')) | f.write(src.replace('from libprs500', 'from calibre').encode('utf-8')) | def compile_recipe(src): ''' Compile the code in src and return the first object that is a recipe or profile. @param src: Python source code @type src: string @return: Recipe/Profile class or None, if no such class was found in C{src} ''' global _tdir, _crep if _tdir is None: _tdir = path(PersistentTemporaryDirectory('_recipes')) temp = _tdir/('recipe%d.py'%_crep) _crep += 1 f = open(temp, 'wb') src = 'from %s.web.feeds.news import BasicNewsRecipe, AutomaticNewsRecipe\n'%__appname__ + src src = 'from %s.ebooks.lrf.web.profiles import DefaultProfile, FullContentProfile\n'%__appname__ + src f.write(src.replace('from libprs500', 'from calibre')) f.close() module = imp.find_module(temp.namebase, [temp.dirname()]) module = imp.load_module(temp.namebase, *module) classes = inspect.getmembers(module, lambda x : inspect.isclass(x) and \ issubclass(x, (DefaultProfile, BasicNewsRecipe)) and \ x not in basic_recipes) if not classes: return None return classes[0][1] | 857455241a89f54a93ba7e8750411c54834622e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/857455241a89f54a93ba7e8750411c54834622e9/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3927,
3151,
12,
4816,
4672,
9163,
16143,
326,
981,
316,
1705,
471,
327,
326,
1122,
733,
716,
353,
279,
16100,
578,
3042,
18,
632,
891,
1705,
30,
6600,
1084,
981,
632,
723,
1705,
30,
533,
632,
2463,
30,
7776,
3151,
19,
4029,
667,
578,
599,
16,
309,
1158,
4123,
667,
1703,
1392,
316,
385,
95,
4816,
97,
9163,
2552,
389,
88,
1214,
16,
389,
1793,
84,
309,
389,
88,
1214,
353,
599,
30,
389,
88,
1214,
273,
589,
12,
11906,
11685,
2853,
2668,
67,
266,
3449,
281,
26112,
1906,
273,
389,
88,
1214,
19,
2668,
3927,
3151,
9,
72,
18,
2074,
11,
9,
67,
1793,
84,
13,
389,
1793,
84,
1011,
404,
284,
273,
1696,
12,
5814,
16,
296,
9464,
6134,
1705,
273,
296,
2080,
738,
87,
18,
4875,
18,
7848,
87,
18,
18443,
1930,
7651,
17948,
5650,
3151,
16,
11809,
4941,
17948,
5650,
3151,
64,
82,
11,
9,
972,
2910,
529,
972,
397,
1705,
1705,
273,
296,
2080,
738,
87,
18,
73,
12567,
18,
80,
5809,
18,
4875,
18,
18314,
1930,
2989,
4029,
16,
11692,
1350,
4029,
64,
82,
11,
9,
972,
2910,
529,
972,
397,
1705,
284,
18,
2626,
12,
4816,
18,
2079,
2668,
2080,
2561,
683,
87,
12483,
2187,
296,
2080,
26139,
266,
16063,
3015,
2668,
3158,
17,
28,
26112,
284,
18,
4412,
1435,
1605,
273,
1646,
18,
4720,
67,
2978,
12,
5814,
18,
529,
1969,
16,
306,
5814,
18,
12287,
1435,
5717,
1605,
273,
1646,
18,
945,
67,
2978,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3927,
3151,
12,
4816,
4672,
9163,
16143,
326,
981,
316,
1705,
471,
327,
326,
1122,
733,
716,
353,
279,
16100,
578,
3042,
18,
632,
891,
1705,
30,
6600,
1084,
981,
632,
723,
1705,
30,
533,
632,
2463,
30,
7776,
3151,
19,
4029,
667,
578,
599,
16,
309,
1158,
4123,
667,
1703,
1392,
316,
385,
95,
4816,
97,
9163,
2552,
389,
88,
1214,
16,
389,
1793,
84,
309,
389,
88,
1214,
353,
599,
30,
389,
88,
1214,
273,
589,
12,
11906,
11685,
2853,
2668,
67,
266,
3449,
281,
26112,
1906,
273,
389,
88,
1214,
19,
2668,
3927,
3151,
9,
72,
18,
2074,
11,
9,
67,
1793,
84,
13,
389,
1793,
84,
1011,
404,
284,
273,
1696,
12,
2
] |
If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. The manifest is the list of files being version controlled. If no revision is given then the first parent of the working directory is used. | If no revision is given, the first parent of the working directory is used, or the null revision if none is checked out. | def manifest(ui, repo, node=None, rev=None): """output the current or given revision of the project manifest Print a list of version controlled files for the given revision. If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. The manifest is the list of files being version controlled. If no revision is given then the first parent of the working directory is used. With -v flag, print file permissions, symlink and executable bits. With --debug flag, print file revision hashes. """ if rev and node: raise util.Abort(_("please specify just one revision")) if not node: node = rev decor = {'l':'644 @ ', 'x':'755 * ', '':'644 '} ctx = repo[node] for f in ctx: if ui.debugflag: ui.write("%40s " % hex(ctx.manifest()[f])) if ui.verbose: ui.write(decor[ctx.flags(f)]) ui.write("%s\n" % f) | f3d079e63bd844edb8e77c7460b84c7cd6b5e2cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/f3d079e63bd844edb8e77c7460b84c7cd6b5e2cd/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5643,
12,
4881,
16,
3538,
16,
756,
33,
7036,
16,
5588,
33,
7036,
4672,
3536,
2844,
326,
783,
578,
864,
6350,
434,
326,
1984,
5643,
225,
3038,
279,
666,
434,
1177,
25934,
1390,
364,
326,
864,
6350,
18,
971,
1158,
6350,
353,
864,
16,
326,
1122,
982,
434,
326,
5960,
1867,
353,
1399,
16,
578,
326,
446,
6350,
309,
6555,
353,
5950,
596,
18,
225,
3423,
300,
90,
2982,
16,
1172,
585,
4371,
16,
10563,
471,
9070,
4125,
18,
3423,
1493,
4148,
2982,
16,
1172,
585,
6350,
9869,
18,
3536,
225,
309,
5588,
471,
756,
30,
1002,
1709,
18,
13572,
24899,
2932,
1802,
448,
4800,
2537,
1245,
6350,
6,
3719,
225,
309,
486,
756,
30,
756,
273,
5588,
225,
4839,
273,
13666,
80,
11,
2497,
22087,
632,
2265,
296,
92,
11,
2497,
21761,
380,
2265,
875,
2497,
22087,
282,
23886,
1103,
273,
3538,
63,
2159,
65,
364,
284,
316,
1103,
30,
309,
5915,
18,
4148,
6420,
30,
5915,
18,
2626,
27188,
7132,
87,
315,
738,
3827,
12,
5900,
18,
14357,
1435,
63,
74,
22643,
309,
5915,
18,
11369,
30,
5915,
18,
2626,
12,
11880,
63,
5900,
18,
7133,
12,
74,
13,
5717,
5915,
18,
2626,
27188,
87,
64,
82,
6,
738,
284,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5643,
12,
4881,
16,
3538,
16,
756,
33,
7036,
16,
5588,
33,
7036,
4672,
3536,
2844,
326,
783,
578,
864,
6350,
434,
326,
1984,
5643,
225,
3038,
279,
666,
434,
1177,
25934,
1390,
364,
326,
864,
6350,
18,
971,
1158,
6350,
353,
864,
16,
326,
1122,
982,
434,
326,
5960,
1867,
353,
1399,
16,
578,
326,
446,
6350,
309,
6555,
353,
5950,
596,
18,
225,
3423,
300,
90,
2982,
16,
1172,
585,
4371,
16,
10563,
471,
9070,
4125,
18,
3423,
1493,
4148,
2982,
16,
1172,
585,
6350,
9869,
18,
3536,
225,
309,
5588,
471,
756,
30,
1002,
1709,
18,
13572,
24899,
2932,
1802,
448,
4800,
2537,
1245,
6350,
6,
3719,
225,
309,
486,
756,
30,
756,
273,
5588,
2
] |
def run_program(program_string, command_template=None): | def get_run_program(program_string, command_template=None): | def run_program(program_string, command_template=None): """ if command_template is not None, then program_string == program name and argv is given by command_template with %s replaced by the full path to the program. Else, program_string is interpreted as a shell command with first name being the program name. """ env = Params.g_build.env_of_name('default') if command_template in (None, '%s'): argv = shlex.split(program_string) program_name = argv[0] try: program_obj = find_program(program_name, env) except ValueError, ex: Params.fatal(str(ex)) try: program_node = program_obj.path.find_build(ccroot.get_target_name(program_obj)) except AttributeError: Params.fatal("%s does not appear to be a program" % (program_name,)) execvec = [program_node.abspath(env)] + argv[1:] else: program_name = program_string try: program_obj = find_program(program_name, env) except ValueError, ex: Params.fatal(str(ex)) try: program_node = program_obj.path.find_build(ccroot.get_target_name(program_obj)) except AttributeError: Params.fatal("%s does not appear to be a program" % (program_name,)) execvec = shlex.split(command_template % (program_node.abspath(env),)) former_cwd = os.getcwd() if (Params.g_options.cwd_launch): os.chdir(Params.g_options.cwd_launch) else: os.chdir(Params.g_cwd_launch) try: retval = run_argv(execvec) finally: os.chdir(former_cwd) return retval | 9ba4309248f9b5a9d0f46ed2265fcbccb696b54b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7746/9ba4309248f9b5a9d0f46ed2265fcbccb696b54b/wutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2681,
67,
12890,
12,
12890,
67,
1080,
16,
1296,
67,
3202,
33,
7036,
4672,
3536,
309,
1296,
67,
3202,
353,
486,
599,
16,
1508,
5402,
67,
1080,
422,
5402,
508,
471,
5261,
353,
864,
635,
1296,
67,
3202,
598,
738,
87,
8089,
635,
326,
1983,
589,
358,
326,
5402,
18,
225,
16289,
16,
5402,
67,
1080,
353,
19898,
487,
279,
5972,
1296,
598,
1122,
508,
3832,
326,
5402,
508,
18,
3536,
1550,
273,
8861,
18,
75,
67,
3510,
18,
3074,
67,
792,
67,
529,
2668,
1886,
6134,
225,
309,
1296,
67,
3202,
316,
261,
7036,
16,
1995,
87,
11,
4672,
5261,
273,
27180,
18,
4939,
12,
12890,
67,
1080,
13,
5402,
67,
529,
273,
5261,
63,
20,
65,
225,
775,
30,
5402,
67,
2603,
273,
1104,
67,
12890,
12,
12890,
67,
529,
16,
1550,
13,
1335,
2068,
16,
431,
30,
8861,
18,
30709,
12,
701,
12,
338,
3719,
225,
775,
30,
5402,
67,
2159,
273,
5402,
67,
2603,
18,
803,
18,
4720,
67,
3510,
12,
952,
3085,
18,
588,
67,
3299,
67,
529,
12,
12890,
67,
2603,
3719,
1335,
6394,
30,
8861,
18,
30709,
27188,
87,
1552,
486,
9788,
358,
506,
279,
5402,
6,
738,
261,
12890,
67,
529,
16,
3719,
225,
1196,
8799,
273,
306,
12890,
67,
2159,
18,
5113,
803,
12,
3074,
25887,
397,
5261,
63,
21,
26894,
225,
469,
30,
225,
5402,
67,
529,
273,
5402,
67,
1080,
775,
30,
5402,
67,
2603,
273,
1104,
67,
12890,
12,
12890,
67,
529,
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,
2681,
67,
12890,
12,
12890,
67,
1080,
16,
1296,
67,
3202,
33,
7036,
4672,
3536,
309,
1296,
67,
3202,
353,
486,
599,
16,
1508,
5402,
67,
1080,
422,
5402,
508,
471,
5261,
353,
864,
635,
1296,
67,
3202,
598,
738,
87,
8089,
635,
326,
1983,
589,
358,
326,
5402,
18,
225,
16289,
16,
5402,
67,
1080,
353,
19898,
487,
279,
5972,
1296,
598,
1122,
508,
3832,
326,
5402,
508,
18,
3536,
1550,
273,
8861,
18,
75,
67,
3510,
18,
3074,
67,
792,
67,
529,
2668,
1886,
6134,
225,
309,
1296,
67,
3202,
316,
261,
7036,
16,
1995,
87,
11,
4672,
5261,
273,
27180,
18,
4939,
12,
12890,
67,
1080,
13,
5402,
67,
529,
273,
5261,
63,
2
] |
debug(" non-local domain %s contains no embedded dot", domain) | _debug(" non-local domain %s contains no embedded dot", domain) | def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request_host(request) domain = cookie.domain if self.strict_domain and (domain.count(".") >= 2): # XXX This should probably be compared with the Konqueror # (kcookiejar.cpp) and Mozilla implementations, but it's a # losing battle. i = domain.rfind(".") j = domain.rfind(".", 0, i) if j == 0: # domain like .foo.bar tld = domain[i+1:] sld = domain[j+1:i] if sld.lower() in ("co", "ac", "com", "edu", "org", "net", "gov", "mil", "int", "aero", "biz", "cat", "coop", "info", "jobs", "mobi", "museum", "name", "pro", "travel", "eu") and len(tld) == 2: # domain like .co.uk debug(" country-code second level domain %s", domain) return False if domain.startswith("."): undotted_domain = domain[1:] else: undotted_domain = domain embedded_dots = (undotted_domain.find(".") >= 0) if not embedded_dots and domain != ".local": debug(" non-local domain %s contains no embedded dot", domain) return False if cookie.version == 0: if (not erhn.endswith(domain) and (not erhn.startswith(".") and not ("."+erhn).endswith(domain))): debug(" effective request-host %s (even with added " "initial dot) does not end end with %s", erhn, domain) return False if (cookie.version > 0 or (self.strict_ns_domain & self.DomainRFC2965Match)): if not domain_match(erhn, domain): debug(" effective request-host %s does not domain-match " "%s", erhn, domain) return False if (cookie.version > 0 or (self.strict_ns_domain & self.DomainStrictNoDots)): host_prefix = req_host[:-len(domain)] if (host_prefix.find(".") >= 0 and not IPV4_RE.search(req_host)): debug(" host prefix %s for domain %s contains a dot", host_prefix, domain) return False return True | e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
365,
18,
291,
67,
902,
67,
8151,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
486,
316,
729,
1699,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
3878,
18,
4308,
67,
13827,
30,
1111,
67,
2564,
16,
6445,
76,
82,
273,
16419,
67,
2293,
67,
2564,
12,
2293,
13,
2461,
273,
3878,
18,
4308,
309,
365,
18,
13948,
67,
4308,
471,
261,
4308,
18,
1883,
2932,
1199,
13,
1545,
576,
4672,
468,
11329,
1220,
1410,
8656,
506,
15843,
598,
326,
1475,
265,
25734,
280,
468,
261,
79,
8417,
11930,
18,
4057,
84,
13,
471,
19058,
10745,
16164,
16,
1496,
518,
1807,
279,
468,
437,
2470,
324,
4558,
298,
18,
277,
273,
2461,
18,
86,
4720,
2932,
1199,
13,
525,
273,
2461,
18,
86,
4720,
2932,
1199,
16,
374,
16,
277,
13,
309,
525,
422,
374,
30,
225,
468,
2461,
3007,
263,
11351,
18,
3215,
23373,
273,
2461,
63,
77,
15,
21,
26894,
272,
1236,
273,
2461,
63,
78,
15,
21,
30,
77,
65,
309,
272,
1236,
18,
8167,
1435,
316,
7566,
2894,
3113,
315,
1077,
3113,
315,
832,
3113,
315,
28049,
3113,
315,
3341,
3113,
315,
2758,
3113,
315,
75,
1527,
3113,
315,
81,
330,
3113,
315,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
365,
18,
291,
67,
902,
67,
8151,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
486,
316,
729,
1699,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
3878,
18,
4308,
67,
13827,
30,
1111,
67,
2564,
16,
6445,
76,
82,
273,
16419,
67,
2293,
67,
2564,
12,
2293,
13,
2461,
273,
3878,
18,
4308,
309,
365,
18,
13948,
67,
4308,
471,
261,
4308,
18,
1883,
2932,
1199,
13,
1545,
2
] |
:rtype: datetime | :rtype: tuple :return: a tuple containing the new date, and the number of the field that was actually incremented | def _increment_field_value(self, dateval, fieldnum): """ Increments the designated field and resets all less significant fields to their minimum values. | 49bd5938997d6eb2914bfb11baca4c0ee05911a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/49bd5938997d6eb2914bfb11baca4c0ee05911a7/triggers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15016,
67,
1518,
67,
1132,
12,
2890,
16,
1509,
1125,
16,
652,
2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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15016,
67,
1518,
67,
1132,
12,
2890,
16,
1509,
1125,
16,
652,
2107,
4672,
3536,
657,
1793,
1346,
326,
25264,
652,
471,
20063,
777,
5242,
14177,
1466,
358,
3675,
5224,
924,
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
] |
ServerClass = SocketServer.TCPServer): | ServerClass = BaseHTTPServer.HTTPServer): | def test(HandlerClass = SimpleHTTPRequestHandler, ServerClass = SocketServer.TCPServer): BaseHTTPServer.test(HandlerClass, ServerClass) | 5c3b384a851b5f8f9a4f9a39a6869528d4444658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5c3b384a851b5f8f9a4f9a39a6869528d4444658/SimpleHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
1503,
797,
273,
4477,
23891,
1503,
16,
3224,
797,
273,
3360,
3693,
2081,
18,
3693,
2081,
4672,
3360,
3693,
2081,
18,
3813,
12,
1503,
797,
16,
3224,
797,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
1503,
797,
273,
4477,
23891,
1503,
16,
3224,
797,
273,
3360,
3693,
2081,
18,
3693,
2081,
4672,
3360,
3693,
2081,
18,
3813,
12,
1503,
797,
16,
3224,
797,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _all_the_same_control(self, matches): | def _all_the_same_checkbox(self, matches): """ Check whether all these controls are actually the the same checkbox. Hidden controls can combine with checkboxes, to allow form processors to ensure a False value is returned even if user does not check the checkbox. Without the hidden control, no value would be returned. """ name = None for match in matches: if match.type not in ['checkbox', 'hidden']: return False if name is None: name = match.name else: if match.name != name: return False return True def _all_the_same_submit(self, matches): """ Utility function to check to see if a list of controls all really belong to the same control: for use with checkboxes, hidden, and submit buttons. """ | def _all_the_same_control(self, matches): name = None value = None for match in matches: if match.type not in ['submit', 'hidden']: return False if name is None: name = match.name value = match.value else: if match.name != name or match.value!= value: return False return True | 707da8c1dada39d58a5a01be7a62abdab594b9f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/707da8c1dada39d58a5a01be7a62abdab594b9f5/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
454,
67,
5787,
67,
14307,
67,
12017,
12,
2890,
16,
1885,
4672,
3536,
2073,
2856,
777,
4259,
11022,
854,
6013,
326,
326,
1967,
11832,
18,
225,
22479,
11022,
848,
8661,
598,
11832,
281,
16,
358,
1699,
646,
13399,
358,
3387,
279,
1083,
460,
353,
2106,
5456,
309,
729,
1552,
486,
866,
326,
11832,
18,
27287,
326,
5949,
3325,
16,
1158,
460,
4102,
506,
2106,
18,
3536,
508,
273,
599,
364,
845,
316,
1885,
30,
309,
845,
18,
723,
486,
316,
10228,
12017,
2187,
296,
6345,
3546,
30,
327,
1083,
309,
508,
353,
599,
30,
508,
273,
845,
18,
529,
469,
30,
309,
845,
18,
529,
480,
508,
30,
327,
1083,
327,
1053,
225,
1652,
389,
454,
67,
5787,
67,
14307,
67,
9297,
12,
2890,
16,
1885,
4672,
3536,
13134,
445,
358,
866,
358,
2621,
309,
279,
666,
434,
11022,
777,
8654,
10957,
358,
326,
1967,
3325,
30,
364,
999,
598,
11832,
281,
16,
5949,
16,
471,
4879,
9502,
18,
3536,
508,
273,
599,
460,
273,
599,
364,
845,
316,
1885,
30,
309,
845,
18,
723,
486,
316,
10228,
9297,
2187,
296,
6345,
3546,
30,
327,
1083,
309,
508,
353,
599,
30,
508,
273,
845,
18,
529,
460,
273,
845,
18,
1132,
469,
30,
309,
845,
18,
529,
480,
508,
578,
845,
18,
1132,
5,
33,
460,
30,
327,
1083,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
454,
67,
5787,
67,
14307,
67,
12017,
12,
2890,
16,
1885,
4672,
3536,
2073,
2856,
777,
4259,
11022,
854,
6013,
326,
326,
1967,
11832,
18,
225,
22479,
11022,
848,
8661,
598,
11832,
281,
16,
358,
1699,
646,
13399,
358,
3387,
279,
1083,
460,
353,
2106,
5456,
309,
729,
1552,
486,
866,
326,
11832,
18,
27287,
326,
5949,
3325,
16,
1158,
460,
4102,
506,
2106,
18,
3536,
508,
273,
599,
364,
845,
316,
1885,
30,
309,
845,
18,
723,
486,
316,
10228,
12017,
2187,
296,
6345,
3546,
30,
327,
1083,
309,
508,
353,
599,
30,
508,
273,
845,
18,
529,
469,
30,
309,
845,
18,
529,
480,
508,
30,
327,
1083,
327,
1053,
225,
1652,
389,
454,
67,
2
] |
raise VLCError(msg) | raise VLCError(repr(self.code) + " " + repr(msg)) | def check(self): if self.code: msg = self.message libvlc.libvlc_exception_clear(self.ref()) raise VLCError(msg) | 9923c18bcdafd5bacdb5765ffd7f11d3d21318b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/9923c18bcdafd5bacdb5765ffd7f11d3d21318b1/vlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
309,
365,
18,
710,
30,
1234,
273,
365,
18,
2150,
2561,
27362,
18,
2941,
27362,
67,
4064,
67,
8507,
12,
2890,
18,
1734,
10756,
1002,
776,
13394,
668,
12,
3576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
309,
365,
18,
710,
30,
1234,
273,
365,
18,
2150,
2561,
27362,
18,
2941,
27362,
67,
4064,
67,
8507,
12,
2890,
18,
1734,
10756,
1002,
776,
13394,
668,
12,
3576,
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
] |
srcmtime = max(path.getmtime(self.env.doc2path(docname)), template_mtime) if srcmtime > targetmtime: yield docname | try: srcmtime = max(path.getmtime(self.env.doc2path(docname)), template_mtime) if srcmtime > targetmtime: yield docname except EnvironmentError: pass | def get_outdated_docs(self): if self.templates_path: template_mtime = max(mtimes_of_files(self.templates_path, '.html')) else: template_mtime = 0 for docname in self.env.found_docs: if docname not in self.env.all_docs: yield docname continue targetname = self.env.doc2path(docname, self.outdir, self.out_suffix) try: targetmtime = path.getmtime(targetname) except Exception: targetmtime = 0 srcmtime = max(path.getmtime(self.env.doc2path(docname)), template_mtime) if srcmtime > targetmtime: yield docname | 30b17cb1e57b7154071a09c5603a05b3a79dc5c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/30b17cb1e57b7154071a09c5603a05b3a79dc5c5/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
659,
12563,
67,
8532,
12,
2890,
4672,
309,
365,
18,
8502,
67,
803,
30,
1542,
67,
10838,
273,
943,
12,
1010,
4485,
67,
792,
67,
2354,
12,
2890,
18,
8502,
67,
803,
16,
2418,
2620,
26112,
469,
30,
1542,
67,
10838,
273,
374,
364,
997,
529,
316,
365,
18,
3074,
18,
7015,
67,
8532,
30,
309,
997,
529,
486,
316,
365,
18,
3074,
18,
454,
67,
8532,
30,
2824,
997,
529,
1324,
1018,
529,
273,
365,
18,
3074,
18,
2434,
22,
803,
12,
2434,
529,
16,
365,
18,
659,
1214,
16,
365,
18,
659,
67,
8477,
13,
775,
30,
1018,
10838,
273,
589,
18,
588,
10838,
12,
3299,
529,
13,
1335,
1185,
30,
1018,
10838,
273,
374,
1705,
10838,
273,
943,
12,
803,
18,
588,
10838,
12,
2890,
18,
3074,
18,
2434,
22,
803,
12,
2434,
529,
13,
3631,
1542,
67,
10838,
13,
309,
1705,
10838,
405,
1018,
10838,
30,
2824,
997,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
659,
12563,
67,
8532,
12,
2890,
4672,
309,
365,
18,
8502,
67,
803,
30,
1542,
67,
10838,
273,
943,
12,
1010,
4485,
67,
792,
67,
2354,
12,
2890,
18,
8502,
67,
803,
16,
2418,
2620,
26112,
469,
30,
1542,
67,
10838,
273,
374,
364,
997,
529,
316,
365,
18,
3074,
18,
7015,
67,
8532,
30,
309,
997,
529,
486,
316,
365,
18,
3074,
18,
454,
67,
8532,
30,
2824,
997,
529,
1324,
1018,
529,
273,
365,
18,
3074,
18,
2434,
22,
803,
12,
2434,
529,
16,
365,
18,
659,
1214,
16,
365,
18,
659,
67,
8477,
13,
775,
30,
1018,
10838,
273,
589,
18,
588,
10838,
12,
3299,
529,
13,
1335,
1185,
30,
1018,
10838,
273,
2
] |
The inverse of fft2d. This is really just inverse_fftnd with different | The inverse of fft2d. This is really just ifftn with different | def ifft2(a, s=None, axes=(-2,-1)): """ifft2(a, s=None, axes=(-2, -1)) The inverse of fft2d. This is really just inverse_fftnd with different default behavior.""" return _raw_fftnd(a, s, axes, ifft) | da320f43a5e3e34d7c12e138f3cd40c0a81dfc28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/da320f43a5e3e34d7c12e138f3cd40c0a81dfc28/fftpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
1222,
22,
12,
69,
16,
272,
33,
7036,
16,
6515,
33,
19236,
22,
16,
17,
21,
3719,
30,
3536,
430,
1222,
22,
12,
69,
16,
272,
33,
7036,
16,
6515,
33,
19236,
22,
16,
300,
21,
3719,
225,
1021,
8322,
434,
15741,
22,
72,
18,
1220,
353,
8654,
2537,
309,
1222,
82,
598,
3775,
805,
6885,
12123,
225,
327,
389,
1899,
67,
25174,
4880,
12,
69,
16,
272,
16,
6515,
16,
309,
1222,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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17,
21,
3719,
30,
3536,
430,
1222,
22,
12,
69,
16,
272,
33,
7036,
16,
6515,
33,
19236,
22,
16,
300,
21,
3719,
225,
1021,
8322,
434,
15741,
22,
72,
18,
1220,
353,
8654,
2537,
309,
1222,
82,
598,
3775,
805,
6885,
12123,
225,
327,
389,
1899,
67,
25174,
4880,
12,
69,
16,
272,
16,
6515,
16,
309,
1222,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
top_text = "Check online commits :: [%s/show.php?key=%s] :: [%s]\n%s" % (self.abs_appurl, a_user, a_logskey, a_logskey, top_text) | top_text = "Check online commits :: [%s/show.php?key=%s] :: [%s]\n%s" % (self.abs_appurl, a_logskey, a_logskey, top_text) | def processUser (self, a_user, a_filter, a_filter_fn, a_logskey): if self.use_basetag: basetag_url = "%s" % (self.config.SCMlogs_appurl) rel_appurl = "" else: basetag_url = "" rel_appurl = "%s/" % (self.config.SCMlogs_appurl) | 127aee76e5627cd9eb09e160294dba9f89ac2674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2574/127aee76e5627cd9eb09e160294dba9f89ac2674/SCMengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1299,
261,
2890,
16,
279,
67,
1355,
16,
279,
67,
2188,
16,
279,
67,
2188,
67,
4293,
16,
279,
67,
10011,
856,
4672,
309,
365,
18,
1202,
67,
70,
2759,
346,
30,
2580,
20788,
67,
718,
273,
2213,
87,
6,
738,
261,
2890,
18,
1425,
18,
2312,
49,
10011,
67,
2910,
718,
13,
1279,
67,
2910,
718,
273,
1408,
469,
30,
2580,
20788,
67,
718,
273,
1408,
1279,
67,
2910,
718,
273,
2213,
87,
4898,
738,
261,
2890,
18,
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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,
1207,
1299,
261,
2890,
16,
279,
67,
1355,
16,
279,
67,
2188,
16,
279,
67,
2188,
67,
4293,
16,
279,
67,
10011,
856,
4672,
309,
365,
18,
1202,
67,
70,
2759,
346,
30,
2580,
20788,
67,
718,
273,
2213,
87,
6,
738,
261,
2890,
18,
1425,
18,
2312,
49,
10011,
67,
2910,
718,
13,
1279,
67,
2910,
718,
273,
1408,
469,
30,
2580,
20788,
67,
718,
273,
1408,
1279,
67,
2910,
718,
273,
2213,
87,
4898,
738,
261,
2890,
18,
1425,
18,
2312,
49,
10011,
67,
2910,
718,
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
] |
NAME = 'get_akismet_blocked_comments' TEMPLATE = 'akismet_widget.html' | name = 'akismet_blocked_comments' template = 'akismet_widget.html' | def show_akismet_stats(req): """Show the akismet control panel.""" api_key = req.app.cfg['akismet_spam_filter/apikey'] blog_url = req.app.cfg['zine/blog_url'] if req.app.cfg['maintenance_mode']: js_file = 'jquery.uicore.plus.tabs.js' else: js_file = 'jquery.uicore.plus.tabs.packed.js' add_script(url_for('akismet/shared', filename=js_file)) return render_admin_response('admin/akismet_spam_filter_stats.html', 'comments.akismet_spam_filter', api_key=api_key, blog_url=blog_url) | 72c674b42203f2bba2b34f2b0cb16037f3e6845b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/72c674b42203f2bba2b34f2b0cb16037f3e6845b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
581,
6228,
278,
67,
5296,
12,
3658,
4672,
3536,
5706,
326,
20952,
6228,
278,
3325,
6594,
12123,
1536,
67,
856,
273,
1111,
18,
2910,
18,
7066,
3292,
581,
6228,
278,
67,
1752,
301,
67,
2188,
19,
29879,
3546,
10700,
67,
718,
273,
1111,
18,
2910,
18,
7066,
3292,
94,
558,
19,
11439,
67,
718,
3546,
225,
309,
1111,
18,
2910,
18,
7066,
3292,
29715,
67,
3188,
3546,
30,
3828,
67,
768,
273,
296,
15841,
18,
89,
335,
479,
18,
10103,
18,
16056,
18,
2924,
11,
469,
30,
3828,
67,
768,
273,
296,
15841,
18,
89,
335,
479,
18,
10103,
18,
16056,
18,
2920,
329,
18,
2924,
11,
527,
67,
4263,
12,
718,
67,
1884,
2668,
581,
6228,
278,
19,
11574,
2187,
1544,
33,
2924,
67,
768,
3719,
225,
327,
1743,
67,
3666,
67,
2740,
2668,
3666,
19,
581,
6228,
278,
67,
1752,
301,
67,
2188,
67,
5296,
18,
2620,
2187,
296,
9231,
18,
581,
6228,
278,
67,
1752,
301,
67,
2188,
2187,
1536,
67,
856,
33,
2425,
67,
856,
16,
10700,
67,
718,
33,
11439,
67,
718,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
581,
6228,
278,
67,
5296,
12,
3658,
4672,
3536,
5706,
326,
20952,
6228,
278,
3325,
6594,
12123,
1536,
67,
856,
273,
1111,
18,
2910,
18,
7066,
3292,
581,
6228,
278,
67,
1752,
301,
67,
2188,
19,
29879,
3546,
10700,
67,
718,
273,
1111,
18,
2910,
18,
7066,
3292,
94,
558,
19,
11439,
67,
718,
3546,
225,
309,
1111,
18,
2910,
18,
7066,
3292,
29715,
67,
3188,
3546,
30,
3828,
67,
768,
273,
296,
15841,
18,
89,
335,
479,
18,
10103,
18,
16056,
18,
2924,
11,
469,
30,
3828,
67,
768,
273,
296,
15841,
18,
89,
335,
479,
18,
10103,
18,
16056,
18,
2920,
329,
18,
2924,
11,
527,
67,
4263,
12,
718,
67,
1884,
2668,
581,
2
] |
file.write('<h3 id="subsection'+str(self.secNumber)+'.'+str(self.subNumber)+'">'+str(self.secNumber)+'.'+str(self.subNumber)+'. '+self.heading+'\n') | file.write('<h3 id="subsection'+str(self.secNumber)+'.'+str(self.subNumber+1)+'">'+str(self.secNumber)+'.'+str(self.subNumber)+'. '+self.heading+'\n') | def writeSubSectionHeader(self,file,type): if type == 'IUL': file.write('<h3 id="subsection'+str(self.secNumber)+'.'+str(self.subNumber)+'">'+str(self.secNumber)+'.'+str(self.subNumber)+'. '+self.heading+'\n') file.write('<a href="'+self.root+'/'+file.name.split('/')[-1]+'#fuwebtoc">[Back to TOC]</a></h3>\n') | 3e08debc7e5adc6dfa187a8aaf89f858d8d82fb1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/3e08debc7e5adc6dfa187a8aaf89f858d8d82fb1/webUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1676,
5285,
1864,
12,
2890,
16,
768,
16,
723,
4672,
309,
618,
422,
296,
45,
1506,
4278,
585,
18,
2626,
2668,
32,
76,
23,
612,
1546,
1717,
3464,
11,
15,
701,
12,
2890,
18,
3321,
1854,
13,
6797,
1093,
15,
701,
12,
2890,
18,
1717,
1854,
15,
21,
27921,
4970,
1870,
15,
701,
12,
2890,
18,
3321,
1854,
13,
6797,
1093,
15,
701,
12,
2890,
18,
1717,
1854,
13,
6797,
18,
225,
15126,
2890,
18,
19948,
6797,
64,
82,
6134,
585,
18,
2626,
2668,
32,
69,
3897,
5300,
15,
2890,
18,
3085,
6797,
2473,
15,
768,
18,
529,
18,
4939,
2668,
2473,
13,
18919,
21,
30658,
7,
27074,
4875,
1391,
6441,
63,
2711,
358,
8493,
39,
65,
1757,
69,
4695,
76,
23,
5333,
82,
6134,
2,
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,
1045,
1676,
5285,
1864,
12,
2890,
16,
768,
16,
723,
4672,
309,
618,
422,
296,
45,
1506,
4278,
585,
18,
2626,
2668,
32,
76,
23,
612,
1546,
1717,
3464,
11,
15,
701,
12,
2890,
18,
3321,
1854,
13,
6797,
1093,
15,
701,
12,
2890,
18,
1717,
1854,
15,
21,
27921,
4970,
1870,
15,
701,
12,
2890,
18,
3321,
1854,
13,
6797,
1093,
15,
701,
12,
2890,
18,
1717,
1854,
13,
6797,
18,
225,
15126,
2890,
18,
19948,
6797,
64,
82,
6134,
585,
18,
2626,
2668,
32,
69,
3897,
5300,
15,
2890,
18,
3085,
6797,
2473,
15,
768,
18,
529,
18,
4939,
2668,
2473,
13,
18919,
21,
30658,
7,
27074,
4875,
1391,
6441,
63,
2711,
358,
8493,
39,
65,
2
] |
self.add_line("\n") | def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE) | 283f84a599e91b44ddef3cd069338c91e25bcb65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/283f84a599e91b44ddef3cd069338c91e25bcb65/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
365,
18,
1289,
67,
1369,
2932,
2279,
8403,
88,
7295,
64,
88,
2148,
3113,
5563,
18,
52,
1099,
30099,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
2890,
4672,
365,
18,
1289,
67,
1369,
2932,
2279,
8403,
88,
7295,
64,
88,
2148,
3113,
5563,
18,
52,
1099,
30099,
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
] |
|
cmds = "" | def delete_mozilla_url_history(path): """Delete URL history in Mozilla places.sqlite (Firefox 3 and family)""" # delete the URLs in moz_places places_suffix = "where id in (select " \ "moz_places.id from moz_places " \ "left join moz_inputhistory on moz_inputhistory.place_id = moz_places.id " \ "left join moz_bookmarks on moz_bookmarks.fk = moz_places.id " \ "where moz_inputhistory.input is null " \ "and moz_bookmarks.id is null); " cmds = "" if options.get('shred'): cols = ('set_url', 'rev_host', 'title') cmds += __shred_sqlite_char_columns('moz_places', cols) delete_places_cmd = "delete from moz_places " + places_suffix cmds += delete_places_cmd # delete any orphaned annotations in moz_annos annos_suffix = "where id in (select moz_annos.id " \ "from moz_annos " \ "left join moz_places " \ "on moz_annos.place_id = moz_places.id " \ "where moz_places.id is null); " if options.get('shred'): cmds += __shred_sqlite_char_columns('moz_annos', ('content', ), annos_suffix) delete_annos_cmd = "delete from moz_annos " + annos_suffix cmds += delete_annos_cmd # delete any orphaned favicons fav_suffix = "where id not in (select favicon_id " \ "from moz_places ); " if options.get('shred'): cols = ('set_url', 'data') cmds += __shred_sqlite_char_columns('moz_favicons', cols, fav_suffix) delete_fav_cmd = "delete from moz_favicons " + fav_suffix cmds += delete_fav_cmd # delete any orphaned history visits cmds += "delete from moz_historyvisits where place_id not " \ "in (select id from moz_places); " # execute the commands FileUtilities.execute_sqlite3(path, cmds) | 04852388c62becdd034a5de773e3dc3b7a93d36d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/04852388c62becdd034a5de773e3dc3b7a93d36d/Special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
8683,
15990,
67,
718,
67,
8189,
12,
803,
4672,
3536,
2613,
1976,
4927,
316,
19058,
10745,
12576,
18,
19460,
261,
9723,
13873,
890,
471,
6755,
15574,
225,
468,
1430,
326,
10414,
316,
7344,
94,
67,
11350,
12576,
67,
8477,
273,
315,
6051,
612,
316,
261,
4025,
315,
521,
315,
8683,
94,
67,
11350,
18,
350,
628,
7344,
94,
67,
11350,
315,
521,
315,
4482,
1233,
7344,
94,
67,
2630,
8189,
603,
7344,
94,
67,
2630,
8189,
18,
964,
67,
350,
273,
7344,
94,
67,
11350,
18,
350,
315,
521,
315,
4482,
1233,
7344,
94,
67,
3618,
17439,
603,
7344,
94,
67,
3618,
17439,
18,
23120,
273,
7344,
94,
67,
11350,
18,
350,
315,
521,
315,
6051,
7344,
94,
67,
2630,
8189,
18,
2630,
353,
446,
315,
521,
315,
464,
7344,
94,
67,
3618,
17439,
18,
350,
353,
446,
1769,
315,
225,
309,
702,
18,
588,
2668,
674,
1118,
11,
4672,
5347,
273,
7707,
542,
67,
718,
2187,
296,
9083,
67,
2564,
2187,
296,
2649,
6134,
13446,
1011,
1001,
674,
1118,
67,
19460,
67,
3001,
67,
5112,
2668,
8683,
94,
67,
11350,
2187,
5347,
13,
225,
1430,
67,
11350,
67,
4172,
273,
315,
3733,
628,
7344,
94,
67,
11350,
315,
397,
12576,
67,
8477,
13446,
1011,
1430,
67,
11350,
67,
4172,
225,
468,
1430,
1281,
31124,
5617,
316,
7344,
94,
67,
1072,
538,
8226,
538,
67,
8477,
273,
225,
315,
6051,
612,
316,
261,
4025,
7344,
94,
67,
1072,
538,
18,
350,
315,
521,
315,
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,
1430,
67,
8683,
15990,
67,
718,
67,
8189,
12,
803,
4672,
3536,
2613,
1976,
4927,
316,
19058,
10745,
12576,
18,
19460,
261,
9723,
13873,
890,
471,
6755,
15574,
225,
468,
1430,
326,
10414,
316,
7344,
94,
67,
11350,
12576,
67,
8477,
273,
315,
6051,
612,
316,
261,
4025,
315,
521,
315,
8683,
94,
67,
11350,
18,
350,
628,
7344,
94,
67,
11350,
315,
521,
315,
4482,
1233,
7344,
94,
67,
2630,
8189,
603,
7344,
94,
67,
2630,
8189,
18,
964,
67,
350,
273,
7344,
94,
67,
11350,
18,
350,
315,
521,
315,
4482,
1233,
7344,
94,
67,
3618,
17439,
603,
7344,
94,
67,
3618,
17439,
18,
23120,
273,
7344,
94,
67,
11350,
18,
350,
315,
521,
315,
6051,
2
] |
|
self.window.connect("destroy",self.quit) | self.window.connect("destroy", self.quit) | def __init__(self, *args): self.param = args[0] self.version = args[1] self.datarootpath = args[2] | 64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
365,
18,
891,
273,
833,
63,
20,
65,
365,
18,
1589,
273,
833,
63,
21,
65,
365,
18,
3404,
297,
1632,
803,
273,
833,
63,
22,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
365,
18,
891,
273,
833,
63,
20,
65,
365,
18,
1589,
273,
833,
63,
21,
65,
365,
18,
3404,
297,
1632,
803,
273,
833,
63,
22,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super(SSLConnection, self).close() | if not ssl_want_read_or_write: super(SSLConnection, self).close() | def close(self): try: if isinstance(self.socket, ssl.SSLSocket): if self.socket._sslobj is not None: self.socket.unwrap() finally: super(SSLConnection, self).close() | 042b47a5760db6ac99100e7b96df8e3cb7af713e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/042b47a5760db6ac99100e7b96df8e3cb7af713e/test_ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
775,
30,
309,
1549,
12,
2890,
18,
7814,
16,
5832,
18,
1260,
25831,
4672,
309,
365,
18,
7814,
6315,
1049,
383,
441,
353,
486,
599,
30,
365,
18,
7814,
18,
318,
4113,
1435,
3095,
30,
2240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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,
1746,
12,
2890,
4672,
775,
30,
309,
1549,
12,
2890,
18,
7814,
16,
5832,
18,
1260,
25831,
4672,
309,
365,
18,
7814,
6315,
1049,
383,
441,
353,
486,
599,
30,
365,
18,
7814,
18,
318,
4113,
1435,
3095,
30,
2240,
12,
6745,
1952,
16,
365,
2934,
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
] |
if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN): | if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN, ssl.SSL_ERROR_WANT_READ, ssl.SSL_ERROR_WANT_WRITE): | def send(self, data): try: return super(SSLConnection, self).send(data) except ssl.SSLError, err: if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN): return 0 raise | 904da5e06ee1994e287b4511b8e2e647f3d98d27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/904da5e06ee1994e287b4511b8e2e647f3d98d27/test_ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
775,
30,
327,
2240,
12,
6745,
1952,
16,
365,
2934,
4661,
12,
892,
13,
1335,
5832,
18,
6745,
668,
16,
393,
30,
309,
393,
18,
1968,
63,
20,
65,
316,
261,
8157,
18,
6745,
67,
3589,
67,
12706,
16,
5832,
18,
6745,
67,
3589,
67,
24968,
67,
14033,
16,
5832,
18,
6745,
67,
3589,
67,
59,
6856,
67,
6949,
16,
5832,
18,
6745,
67,
3589,
67,
59,
6856,
67,
11677,
4672,
327,
374,
1002,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
775,
30,
327,
2240,
12,
6745,
1952,
16,
365,
2934,
4661,
12,
892,
13,
1335,
5832,
18,
6745,
668,
16,
393,
30,
309,
393,
18,
1968,
63,
20,
65,
316,
261,
8157,
18,
6745,
67,
3589,
67,
12706,
16,
5832,
18,
6745,
67,
3589,
67,
24968,
67,
14033,
16,
5832,
18,
6745,
67,
3589,
67,
59,
6856,
67,
6949,
16,
5832,
18,
6745,
67,
3589,
67,
59,
6856,
67,
11677,
4672,
327,
374,
1002,
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
] |
progressInfo = commands.getoutput('pgrep -fl tribler.py | grep -v pgrep') | progressInfo = commands.getoutput('pgrep -fl "tribler\.py" | grep -v pgrep') | def IsAnotherRunning(self): "Uses pgrep to find other tribler.py processes" # If no pgrep available, it will always start tribler progressInfo = commands.getoutput('pgrep -fl tribler.py | grep -v pgrep') numProcesses = len(progressInfo.split('\n')) if DEBUG: print 'ProgressInfo: %s, num: %d' % (progressInfo, numProcesses) return numProcesses > 1 | 2e240241d8b3656a82b60149a766025bb145a655 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/2e240241d8b3656a82b60149a766025bb145a655/tribler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
37,
24413,
7051,
12,
2890,
4672,
315,
15128,
7184,
14462,
358,
1104,
1308,
433,
495,
749,
18,
2074,
8488,
6,
468,
971,
1158,
7184,
14462,
2319,
16,
518,
903,
3712,
787,
433,
495,
749,
4007,
966,
273,
4364,
18,
588,
2844,
2668,
8365,
14462,
300,
2242,
315,
665,
749,
5834,
2074,
6,
571,
23366,
300,
90,
7184,
14462,
6134,
818,
10599,
273,
562,
12,
8298,
966,
18,
4939,
2668,
64,
82,
26112,
309,
6369,
30,
1172,
296,
5491,
966,
30,
738,
87,
16,
818,
30,
738,
72,
11,
738,
261,
8298,
966,
16,
818,
10599,
13,
327,
818,
10599,
405,
404,
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,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0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
37,
24413,
7051,
12,
2890,
4672,
315,
15128,
7184,
14462,
358,
1104,
1308,
433,
495,
749,
18,
2074,
8488,
6,
468,
971,
1158,
7184,
14462,
2319,
16,
518,
903,
3712,
787,
433,
495,
749,
4007,
966,
273,
4364,
18,
588,
2844,
2668,
8365,
14462,
300,
2242,
315,
665,
749,
5834,
2074,
6,
571,
23366,
300,
90,
7184,
14462,
6134,
818,
10599,
273,
562,
12,
8298,
966,
18,
4939,
2668,
64,
82,
26112,
309,
6369,
30,
1172,
296,
5491,
966,
30,
738,
87,
16,
818,
30,
738,
72,
11,
738,
261,
8298,
966,
16,
818,
10599,
13,
327,
818,
10599,
405,
404,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
g = self.subgraph( vertices = (v for v in self if vertex_used[v] >= .5), edges = ( (u,v,l) for u,v,l in self.edges() if f_edge_used(u,v) >= .5 )) | g = self.subgraph( vertices=(v for v in self if vertex_used[v] >= 0.5), edges=((u,v,l) for u, v, l in self.edges() if f_edge_used(u,v) >= 0.5)) | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
2860,
279,
12163,
589,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.posts.select_related().order_by('created')[0] | try: return self.posts.select_related().order_by('created')[0] except IndexError: return None | def head(self): return self.posts.select_related().order_by('created')[0] | dd477a0a46126b0674476e7ecefee868304f1531 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/dd477a0a46126b0674476e7ecefee868304f1531/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
910,
12,
2890,
4672,
327,
365,
18,
11660,
18,
4025,
67,
9243,
7675,
1019,
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,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
910,
12,
2890,
4672,
327,
365,
18,
11660,
18,
4025,
67,
9243,
7675,
1019,
67,
1637,
2668,
4824,
6134,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if protocol and not proxy_username: proxy_info = os.environ.get('%s_proxy' % protocol) if proxy_info and '@' in proxy_info: protocol_and_proxy_auth = proxy_info.split('@')[0].split(':') | if not proxy_username: if '@' in proxy_settings: protocol_and_proxy_auth = proxy_settings.split('@')[0].split(':') | def _get_proxy_auth(protocol=None): """Returns proxy authentication string for header. Will check environment variables for proxy authentiation info, starting with proxy(_/-)username and proxy(_/-)password before checking PROTOCOL_proxy for a [protocol://]username:password@host[:port] string. Args: protocol: String representation of protocol. Returns: Authentication string for proxy, or empty string if no proxy username was found. """ proxy_username = None proxy_password = None proxy_username = os.environ.get('proxy-username') if not proxy_username: proxy_username = os.environ.get('proxy_username') proxy_password = os.environ.get('proxy-password') if not proxy_password: proxy_password = os.environ.get('proxy_password') if protocol and not proxy_username: proxy_info = os.environ.get('%s_proxy' % protocol) if proxy_info and '@' in proxy_info: protocol_and_proxy_auth = proxy_info.split('@')[0].split(':') if len(protocol_and_proxy_auth) == 3: # 3 elements means we have [<protocol>, //<user>, <password>] proxy_username = protocol_and_proxy_auth[1].lstrip('/') proxy_password = protocol_and_proxy_auth[2] elif len(protocol_and_proxy_auth) == 2: # 2 elements means we have [<user>, <password>] proxy_username = protocol_and_proxy_auth[0] proxy_password = protocol_and_proxy_auth[1] if proxy_username: user_auth = base64.encodestring('%s:%s' % (proxy_username, proxy_password)) return 'Basic %s\r\n' % (user_auth.strip()) else: return '' | fd7144c02bd0a385dbf6cd8b54d685ceef911565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/fd7144c02bd0a385dbf6cd8b54d685ceef911565/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5656,
67,
1944,
12,
8373,
33,
7036,
4672,
3536,
1356,
2889,
5107,
533,
364,
1446,
18,
225,
9980,
866,
3330,
3152,
364,
2889,
1357,
319,
7072,
1123,
16,
5023,
598,
2889,
24899,
19,
17,
13,
5053,
471,
2889,
24899,
19,
17,
13,
3664,
1865,
6728,
24245,
67,
5656,
364,
279,
306,
8373,
2207,
65,
5053,
30,
3664,
36,
2564,
10531,
655,
65,
533,
18,
225,
6634,
30,
1771,
30,
514,
4335,
434,
1771,
18,
225,
2860,
30,
8665,
533,
364,
2889,
16,
578,
1008,
533,
309,
1158,
2889,
2718,
1703,
1392,
18,
3536,
2889,
67,
5053,
273,
599,
2889,
67,
3664,
273,
599,
225,
2889,
67,
5053,
273,
1140,
18,
28684,
18,
588,
2668,
5656,
17,
5053,
6134,
309,
486,
2889,
67,
5053,
30,
2889,
67,
5053,
273,
1140,
18,
28684,
18,
588,
2668,
5656,
67,
5053,
6134,
2889,
67,
3664,
273,
1140,
18,
28684,
18,
588,
2668,
5656,
17,
3664,
6134,
309,
486,
2889,
67,
3664,
30,
2889,
67,
3664,
273,
1140,
18,
28684,
18,
588,
2668,
5656,
67,
3664,
6134,
225,
309,
486,
2889,
67,
5053,
30,
309,
9175,
316,
2889,
67,
4272,
30,
1771,
67,
464,
67,
5656,
67,
1944,
273,
2889,
67,
4272,
18,
4939,
2668,
36,
6134,
63,
20,
8009,
4939,
2668,
2497,
13,
309,
562,
12,
8373,
67,
464,
67,
5656,
67,
1944,
13,
422,
890,
30,
468,
890,
2186,
4696,
732,
1240,
306,
32,
8373,
20401,
368,
32,
1355,
20401,
411,
3664,
34,
65,
2889,
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,
588,
67,
5656,
67,
1944,
12,
8373,
33,
7036,
4672,
3536,
1356,
2889,
5107,
533,
364,
1446,
18,
225,
9980,
866,
3330,
3152,
364,
2889,
1357,
319,
7072,
1123,
16,
5023,
598,
2889,
24899,
19,
17,
13,
5053,
471,
2889,
24899,
19,
17,
13,
3664,
1865,
6728,
24245,
67,
5656,
364,
279,
306,
8373,
2207,
65,
5053,
30,
3664,
36,
2564,
10531,
655,
65,
533,
18,
225,
6634,
30,
1771,
30,
514,
4335,
434,
1771,
18,
225,
2860,
30,
8665,
533,
364,
2889,
16,
578,
1008,
533,
309,
1158,
2889,
2718,
1703,
1392,
18,
3536,
2889,
67,
5053,
273,
599,
2889,
67,
3664,
273,
599,
225,
2889,
67,
5053,
273,
1140,
18,
28684,
18,
588,
2668,
5656,
2
] |
a(formatstring((header for k in months), colwidth, c).rstrip()) | headers = (header for k in months) a(formatstring(headers, colwidth, c).rstrip()) | def formatyear(self, theyear, w=2, l=1, c=6, m=3): """ Returns a year's calendar as a multi-line string. """ w = max(2, w) l = max(1, l) c = max(2, c) colwidth = (w + 1) * 7 - 1 v = [] a = v.append a(repr(theyear).center(colwidth*m+c*(m-1)).rstrip()) a('\n'*l) header = self.formatweekheader(w) for (i, row) in enumerate(self.yeardays2calendar(theyear, m)): # months in this row months = xrange(m*i+1, min(m*(i+1)+1, 13)) a('\n'*l) a(formatstring((month_name[k] for k in months), colwidth, c).rstrip()) a('\n'*l) a(formatstring((header for k in months), colwidth, c).rstrip()) a('\n'*l) # max number of weeks for this row height = max(len(cal) for cal in row) for j in xrange(height): weeks = [] for cal in row: if j >= len(cal): weeks.append('') else: weeks.append(self.formatweek(cal[j], w)) a(formatstring(weeks, colwidth, c).rstrip()) a('\n' * l) return ''.join(v) | 48d5e508ebc136f8f67a2cb2bdd29e55324f5a95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/48d5e508ebc136f8f67a2cb2bdd29e55324f5a95/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
6874,
12,
2890,
16,
2898,
2091,
16,
341,
33,
22,
16,
328,
33,
21,
16,
276,
33,
26,
16,
312,
33,
23,
4672,
3536,
2860,
279,
3286,
1807,
5686,
487,
279,
3309,
17,
1369,
533,
18,
3536,
341,
273,
943,
12,
22,
16,
341,
13,
328,
273,
943,
12,
21,
16,
328,
13,
276,
273,
943,
12,
22,
16,
276,
13,
645,
2819,
273,
261,
91,
397,
404,
13,
380,
2371,
300,
404,
331,
273,
5378,
279,
273,
331,
18,
6923,
279,
12,
12715,
12,
451,
402,
2091,
2934,
5693,
12,
1293,
2819,
14,
81,
15,
71,
21556,
81,
17,
21,
13,
2934,
86,
6406,
10756,
279,
2668,
64,
82,
11,
14,
80,
13,
1446,
273,
365,
18,
2139,
10741,
3374,
12,
91,
13,
364,
261,
77,
16,
1027,
13,
316,
4241,
12,
2890,
18,
20513,
1060,
8271,
22,
11650,
12,
451,
402,
2091,
16,
312,
3719,
30,
468,
8846,
316,
333,
1027,
8846,
273,
12314,
12,
81,
14,
77,
15,
21,
16,
1131,
12,
81,
21556,
77,
15,
21,
27921,
21,
16,
5958,
3719,
279,
2668,
64,
82,
11,
14,
80,
13,
279,
12,
2139,
1080,
12443,
7496,
67,
529,
63,
79,
65,
364,
417,
316,
8846,
3631,
645,
2819,
16,
276,
2934,
86,
6406,
10756,
279,
2668,
64,
82,
11,
14,
80,
13,
1607,
273,
261,
3374,
364,
417,
316,
8846,
13,
279,
12,
2139,
1080,
12,
2485,
16,
645,
2819,
16,
276,
2934,
86,
6406,
10756,
279,
2668,
64,
82,
11,
14,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
6874,
12,
2890,
16,
2898,
2091,
16,
341,
33,
22,
16,
328,
33,
21,
16,
276,
33,
26,
16,
312,
33,
23,
4672,
3536,
2860,
279,
3286,
1807,
5686,
487,
279,
3309,
17,
1369,
533,
18,
3536,
341,
273,
943,
12,
22,
16,
341,
13,
328,
273,
943,
12,
21,
16,
328,
13,
276,
273,
943,
12,
22,
16,
276,
13,
645,
2819,
273,
261,
91,
397,
404,
13,
380,
2371,
300,
404,
331,
273,
5378,
279,
273,
331,
18,
6923,
279,
12,
12715,
12,
451,
402,
2091,
2934,
5693,
12,
1293,
2819,
14,
81,
15,
71,
21556,
81,
17,
21,
13,
2934,
86,
6406,
10756,
279,
2668,
64,
82,
11,
14,
80,
13,
1446,
273,
365,
2
] |
for oldItem in oldMenuList: | for oldItem in menuList: | def synchronizeItems(self): """ Install the menus into supplied menu list, and submenus into their menu items. """ oldMenuList = self.widget.getMenuItems () index = 0 for menuItem in self.dynamicChildren: # ensure that the menuItem has been instantiated if not hasattr (menuItem, "widget"): menuItem.widget = menuItem.instantiateWidget() menuItem.widget.blockItem = menuItem menuItem.widget.wxSynchronizeWidget() | e3beff8bc3ce2e759a8bb84be125cb87ca4c7260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e3beff8bc3ce2e759a8bb84be125cb87ca4c7260/DynamicContainerBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
3126,
12,
2890,
4672,
3536,
10284,
326,
21374,
1368,
4580,
3824,
666,
16,
471,
720,
26065,
1368,
3675,
3824,
1516,
18,
3536,
1592,
4599,
682,
273,
365,
18,
6587,
18,
588,
4599,
3126,
1832,
225,
770,
273,
374,
364,
19711,
316,
365,
18,
14507,
4212,
30,
468,
3387,
716,
326,
19711,
711,
2118,
17651,
309,
486,
3859,
261,
5414,
1180,
16,
315,
6587,
6,
4672,
19711,
18,
6587,
273,
19711,
18,
24628,
3840,
4609,
1435,
19711,
18,
6587,
18,
2629,
1180,
273,
19711,
19711,
18,
6587,
18,
27226,
19298,
554,
4609,
1435,
2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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
3126,
12,
2890,
4672,
3536,
10284,
326,
21374,
1368,
4580,
3824,
666,
16,
471,
720,
26065,
1368,
3675,
3824,
1516,
18,
3536,
1592,
4599,
682,
273,
365,
18,
6587,
18,
588,
4599,
3126,
1832,
225,
770,
273,
374,
364,
19711,
316,
365,
18,
14507,
4212,
30,
468,
3387,
716,
326,
19711,
711,
2118,
17651,
309,
486,
3859,
261,
5414,
1180,
16,
315,
6587,
6,
4672,
19711,
18,
6587,
273,
19711,
18,
24628,
3840,
4609,
1435,
19711,
18,
6587,
18,
2629,
1180,
273,
19711,
19711,
18,
6587,
18,
27226,
19298,
554,
4609,
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
] |
if edge1.flags() & CONTOUR_PROTECTION: | if edge1.flag(CONTOUR_SEGMENT): | def catMap(delaunayMap, includeTerminalPositions = False, joinMiddleThreshold = 1.61): """Extract a CAT (chordal axis transform) from a GeoMap object containing a Delaunay Triangulation. Assumes that all edges have only two points and that all finite regions are triangles (such a GeoMap is returned by delaunayMap()).""" nodePositions = [None] sigmaOrbits = [None] originalDarts = [None] triangleType = [None] * delaunayMap.maxFaceLabel() innerDarts = [None] * delaunayMap.maxFaceLabel() nodeLabel = [None] * delaunayMap.maxFaceLabel() for triangle in delaunayMap.faceIter(skipInfinite = True): if hasattr(triangle, "isOutside"): continue assert triangle.holeCount() == 0 assert len(list(triangle.contour().phiOrbit())) == 3 dart1 = triangle.contour() dart2 = dart1.clone().nextPhi() dart3 = dart2.clone().nextPhi() edge1 = dart1.edge() edge2 = dart2.edge() edge3 = dart3.edge() # count number of edges in common with polygon contour: contourCount = 0 innerDarts[triangle.label()] = [] if edge1.flags() & CONTOUR_PROTECTION: contourCount += 1 else: innerDarts[triangle.label()].append(dart1) if edge2.flags() & CONTOUR_PROTECTION: contourCount += 1 else: innerDarts[triangle.label()].append(dart2) if edge3.flags() & CONTOUR_PROTECTION: contourCount += 1 else: innerDarts[triangle.label()].append(dart3) # classify into sleeve, joint, and terminal triangles: if contourCount == 1: triangleType[triangle.label()] = "S" elif contourCount == 0: triangleType[triangle.label()] = "J" elif contourCount == 2: triangleType[triangle.label()] = "T" else: triangleType[triangle.label()] = "T?" if triangleType[triangle.label()] != "S": nodeLabel[triangle.label()] = len(nodePositions) nodePos = (dart1[0]+dart2[0]+dart3[0])/3 if triangleType[triangle.label()] == "J": a = (dart2[0]-dart1[0]).magnitude() b = (dart3[0]-dart2[0]).magnitude() c = (dart1[0]-dart3[0]).magnitude() sv = Vector(a, b, c) sv /= sv.magnitude() if dot(sv, Vector(1, 1, 1)) < joinMiddleThreshold: s = [a,b,c] s.sort() if s[2] == a: nodePos = (dart2[0]+dart1[0])/2 elif s[2] == b: nodePos = (dart3[0]+dart2[0])/2 else: nodePos = (dart1[0]+dart3[0])/2 nodePositions.append(nodePos) originalDarts.append([d.label() for d in innerDarts[triangle.label()]]) sigmaOrbits.append([None]*len(innerDarts[triangle.label()])) edgeTriples = [None] for triangle in delaunayMap.faceIter(skipInfinite = True): if hasattr(triangle, "isOutside"): continue if triangleType[triangle.label()] != "S": #print triangleType[triangle.label()] + "-triangle", triangle.label(), originalDarts[nodeLabel[triangle.label()]] for dart in innerDarts[triangle.label()]: #print "following limb starting with", dart # remember triangle side we started from for later # pruning by "morphological ratio": startSide = dart[0], dart[1] edgeLabel = len(edgeTriples) sigmaOrbits[nodeLabel[triangle.label()]][ originalDarts[nodeLabel[triangle.label()]].index(dart.label())] \ = edgeLabel edgePoints = [] if triangleType[triangle.label()] == "T": if not includeTerminalPositions: # correct node position onto this triangle side: nodePositions[nodeLabel[triangle.label()]] = middlePoint(dart) else: # include opposite position nodePositions[nodeLabel[triangle.label()]] = ( dart.clone().nextPhi())[-1] edgePoints.append(nodePositions[nodeLabel[triangle.label()]]) else: # node position != side -> include in edge geometry edgePoints.append(nodePositions[nodeLabel[triangle.label()]]) while True: edgePoints.append(middlePoint(dart)) dart.nextAlpha() nextTriangle = dart.leftFace() if triangleType[nextTriangle.label()] == "S": if dart == innerDarts[nextTriangle.label()][0]: dart = innerDarts[nextTriangle.label()][1] else: dart = innerDarts[nextTriangle.label()][0] else: innerDarts[nextTriangle.label()].remove(dart) break if triangleType[nextTriangle.label()] == "T": if not includeTerminalPositions: # correct node position onto this triangle side: nodePositions[nodeLabel[nextTriangle.label()]] = middlePoint(dart) else: # include opposite position nodePositions[nodeLabel[nextTriangle.label()]] = ( dart.clone().nextPhi())[-1] edgePoints.append(nodePositions[nodeLabel[nextTriangle.label()]]) else: edgePoints.append(nodePositions[nodeLabel[nextTriangle.label()]]) sigmaOrbits[nodeLabel[nextTriangle.label()]][ originalDarts[nodeLabel[nextTriangle.label()]].index(dart.label())] \ = -edgeLabel # see above, for later pruning: endSide = dart[0], dart[1] edgeTriples.append(( nodeLabel[triangle.label()], nodeLabel[nextTriangle.label()], edgePoints, startSide, endSide)) result = GeoMap(nodePositions, edgeTriples, delaunayMap.imageSize()) result.initializeMap(initLabelImage = False) # FIXME: re-use above sigmaOrbits for edge in result.edgeIter(): edge.startSide = edgeTriples[edge.label()][3] edge.endSide = edgeTriples[edge.label()][4] return result | 9780fdb920d074c0946e5e96a8fed5fb752733ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/9780fdb920d074c0946e5e96a8fed5fb752733ff/delaunay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
863,
12,
3771,
69,
318,
528,
863,
16,
2341,
11336,
11024,
273,
1083,
16,
1233,
21924,
7614,
273,
404,
18,
9498,
4672,
3536,
4976,
279,
30210,
261,
343,
517,
287,
2654,
2510,
13,
628,
279,
9385,
863,
733,
4191,
279,
6603,
69,
318,
528,
10000,
539,
6234,
18,
25374,
716,
777,
5231,
1240,
1338,
2795,
3143,
471,
716,
777,
25922,
10085,
854,
19959,
261,
87,
2648,
279,
9385,
863,
353,
2106,
635,
1464,
69,
318,
528,
863,
10756,
12123,
225,
756,
11024,
273,
306,
7036,
65,
7299,
1162,
6789,
273,
306,
7036,
65,
2282,
40,
485,
87,
273,
306,
7036,
65,
225,
15002,
559,
273,
306,
7036,
65,
380,
1464,
69,
318,
528,
863,
18,
1896,
11824,
2224,
1435,
3443,
40,
485,
87,
273,
306,
7036,
65,
380,
1464,
69,
318,
528,
863,
18,
1896,
11824,
2224,
1435,
756,
2224,
273,
306,
7036,
65,
380,
1464,
69,
318,
528,
863,
18,
1896,
11824,
2224,
1435,
225,
364,
15002,
316,
1464,
69,
318,
528,
863,
18,
865,
2360,
12,
7457,
382,
9551,
273,
1053,
4672,
309,
3859,
12,
16857,
4341,
16,
315,
291,
28018,
6,
4672,
1324,
225,
1815,
15002,
18,
27167,
1380,
1435,
422,
374,
1815,
562,
12,
1098,
12,
16857,
4341,
18,
1213,
477,
7675,
9973,
1162,
3682,
1435,
3719,
422,
890,
225,
302,
485,
21,
273,
15002,
18,
1213,
477,
1435,
302,
485,
22,
273,
302,
485,
21,
18,
14056,
7675,
4285,
31905,
1435,
302,
485,
23,
273,
302,
485,
22,
18,
14056,
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,
6573,
863,
12,
3771,
69,
318,
528,
863,
16,
2341,
11336,
11024,
273,
1083,
16,
1233,
21924,
7614,
273,
404,
18,
9498,
4672,
3536,
4976,
279,
30210,
261,
343,
517,
287,
2654,
2510,
13,
628,
279,
9385,
863,
733,
4191,
279,
6603,
69,
318,
528,
10000,
539,
6234,
18,
25374,
716,
777,
5231,
1240,
1338,
2795,
3143,
471,
716,
777,
25922,
10085,
854,
19959,
261,
87,
2648,
279,
9385,
863,
353,
2106,
635,
1464,
69,
318,
528,
863,
10756,
12123,
225,
756,
11024,
273,
306,
7036,
65,
7299,
1162,
6789,
273,
306,
7036,
65,
2282,
40,
485,
87,
273,
306,
7036,
65,
225,
15002,
559,
273,
306,
7036,
65,
380,
1464,
69,
318,
528,
863,
18,
1896,
11824,
2
] |
>>> print system(zc.buildout.easy_install._safe_arg(sys.executable)+' '+ ... 'bootstrap.py'), *... | >>> print 'X'; print system( ... zc.buildout.easy_install._safe_arg(sys.executable)+' '+ ... 'bootstrap.py'), X... | def test_bootstrap_py(): """Make sure the bootstrap script actually works | b48f820aab691ca86f1aef273b364849f6a379b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11359/b48f820aab691ca86f1aef273b364849f6a379b2/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12722,
67,
2074,
13332,
3536,
6464,
3071,
326,
7065,
2728,
6013,
6330,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12722,
67,
2074,
13332,
3536,
6464,
3071,
326,
7065,
2728,
6013,
6330,
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
] |
data = cPickle.dumps(value, self.binary) | data = _dumps(value, self.protocol) | def __setitem__(self, key, value): data = cPickle.dumps(value, self.binary) self.db[key] = data | f9c4a8b0d48c7569ef7f49ce143062df7be08a95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f9c4a8b0d48c7569ef7f49ce143062df7be08a95/dbshelve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
501,
273,
389,
13302,
1121,
12,
1132,
16,
365,
18,
8373,
13,
365,
18,
1966,
63,
856,
65,
273,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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121,
12,
1132,
16,
365,
18,
8373,
13,
365,
18,
1966,
63,
856,
65,
273,
501,
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
] |
'invoice_ids': fields.many2many('account.invoice', 'purchase_invoice_rel', 'purchase_id', 'invoice_id', 'Taxes', help="Invoices generated for a purchase order"), | 'invoice_ids': fields.many2many('account.invoice', 'purchase_invoice_rel', 'purchase_id', 'invoice_id', 'Invoices', help="Invoices generated for a purchase order"), | def _invoiced(self, cursor, user, ids, name, arg, context=None): res = {} for purchase in self.browse(cursor, user, ids, context=context): invoiced = False if purchase.invoiced_rate == 100.00: invoiced = True res[purchase.id] = invoiced return res | 7ff1ae996ef02185b73fdfbecd656ef212d5bd85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7ff1ae996ef02185b73fdfbecd656ef212d5bd85/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16119,
72,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
364,
23701,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
9179,
72,
273,
1083,
309,
23701,
18,
16119,
72,
67,
5141,
422,
2130,
18,
713,
30,
9179,
72,
273,
1053,
400,
63,
12688,
12104,
18,
350,
65,
273,
9179,
72,
327,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16119,
72,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
364,
23701,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
16,
819,
33,
2472,
4672,
9179,
72,
273,
1083,
309,
23701,
18,
16119,
72,
67,
5141,
422,
2130,
18,
713,
30,
9179,
72,
273,
1053,
400,
63,
12688,
12104,
18,
350,
65,
273,
9179,
72,
327,
400,
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
] |
docs_single(completeVersion) | docs_single(complete_version) | def create_pydocs(): sys.path.append(os.getcwd() + "/src") import springpython if not os.path.exists("target/docs/pydoc"): os.mkdir("target/docs/pydoc") os.chdir("target/docs/pydoc") pydoc.writedoc("springpython") pydoc.writedoc("springpython.aop") pydoc.writedoc("springpython.aop.utils") pydoc.writedoc("springpython.config") pydoc.writedoc("springpython.config.decorator") pydoc.writedoc("springpython.container") pydoc.writedoc("springpython.context") pydoc.writedoc("springpython.context.scope") pydoc.writedoc("springpython.database") pydoc.writedoc("springpython.database.core") pydoc.writedoc("springpython.database.factory") pydoc.writedoc("springpython.database.transaction") pydoc.writedoc("springpython.factory") pydoc.writedoc("springpython.remoting") pydoc.writedoc("springpython.remoting.hessian") pydoc.writedoc("springpython.remoting.hessian.hessianlib") pydoc.writedoc("springpython.remoting.pyro") pydoc.writedoc("springpython.remoting.pyro.PyroDaemonHolder") pydoc.writedoc("springpython.security") pydoc.writedoc("springpython.security.cherrypy31") pydoc.writedoc("springpython.security.intercept") pydoc.writedoc("springpython.security.context") pydoc.writedoc("springpython.security.context.SecurityContextHolder") pydoc.writedoc("springpython.security.providers") pydoc.writedoc("springpython.security.providers.dao") pydoc.writedoc("springpython.security.providers.encoding") pydoc.writedoc("springpython.security.userdetails") pydoc.writedoc("springpython.security.userdetails.dao") pydoc.writedoc("springpython.security.web") top_color = "#7799ee" pkg_color = "#aa55cc" class_color = "#ee77aa" class_highlight = "#ffc8d8" function_color = "#eeaa77" data_color = "#55aa55" for file in os.listdir("."): print "Altering appearance of %s" % file file_input = open(file).read() file_input = re.compile(top_color).sub("GREEN", file_input) file_input = re.compile(pkg_color).sub("GREEN", file_input) file_input = re.compile(class_color).sub("GREEN", file_input) file_input = re.compile(class_highlight).sub("LIGHTGREEN", file_input) file_input = re.compile(function_color).sub("LIGHTGREEN", file_input) file_input = re.compile(data_color).sub("LIGHTGREEN", file_input) file_output = open(file, "w") file_output.write(file_input) file_output.close() | 8a405e7fd321a7d68e58ef7e892ad80717a33322 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/8a405e7fd321a7d68e58ef7e892ad80717a33322/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2074,
8532,
13332,
2589,
18,
803,
18,
6923,
12,
538,
18,
588,
11089,
1435,
397,
2206,
4816,
7923,
1930,
25974,
8103,
225,
309,
486,
1140,
18,
803,
18,
1808,
2932,
3299,
19,
8532,
19,
2074,
2434,
6,
4672,
1140,
18,
26686,
2932,
3299,
19,
8532,
19,
2074,
2434,
7923,
225,
1140,
18,
343,
1214,
2932,
3299,
19,
8532,
19,
2074,
2434,
7923,
225,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
69,
556,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
69,
556,
18,
5471,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
1425,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
1425,
18,
19142,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
3782,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
2472,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
2472,
18,
4887,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
6231,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
6231,
18,
3644,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
6231,
18,
6848,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
6231,
18,
7958,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
6848,
7923,
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,
752,
67,
2074,
8532,
13332,
2589,
18,
803,
18,
6923,
12,
538,
18,
588,
11089,
1435,
397,
2206,
4816,
7923,
1930,
25974,
8103,
225,
309,
486,
1140,
18,
803,
18,
1808,
2932,
3299,
19,
8532,
19,
2074,
2434,
6,
4672,
1140,
18,
26686,
2932,
3299,
19,
8532,
19,
2074,
2434,
7923,
225,
1140,
18,
343,
1214,
2932,
3299,
19,
8532,
19,
2074,
2434,
7923,
225,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
69,
556,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
69,
556,
18,
5471,
7923,
2395,
2434,
18,
5363,
329,
504,
2932,
87,
11638,
8103,
18,
1425,
2
] |
return _('just now') | return self._('just now') | def pretty(self): ''' print up the date date using one of these nice formats.. ''' if self.year: if self.year == 1: s = _('1 year') else: s = _('%(number)s years')%{'number': self.year} elif self.month or self.day > 13: days = (self.month * 30) + self.day if days > 28: if int(days/30) > 1: s = _('%(number)s months')%{'number': int(days/30)} else: s = _('1 month') else: s = _('%(number)s weeks')%{'number': int(days/7)} elif self.day > 7: s = _('1 week') elif self.day > 1: s = _('%(number)s days')%{'number': self.day} elif self.day == 1 or self.hour > 12: if self.sign > 0: return _('tomorrow') else: return _('yesterday') elif self.hour > 1: s = _('%(number)s hours')%{'number': self.hour} elif self.hour == 1: if self.minute < 15: s = _('an hour') elif self.minute/15 == 2: s = _('1 1/2 hours') else: s = _('1 %(number)s/4 hours')%{'number': self.minute/15} elif self.minute < 1: if self.sign > 0: return _('in a moment') else: return _('just now') elif self.minute == 1: s = _('1 minute') elif self.minute < 15: s = _('%(number)s minutes')%{'number': self.minute} elif int(self.minute/15) == 2: s = _('1/2 an hour') else: s = _('%(number)s/4 hour')%{'number': int(self.minute/15)} if self.sign < 0: s = s + _(' ago') else: s = _('in ') + s return s | 57c5533dd07b22f90fb954d2494eab65061eef34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/57c5533dd07b22f90fb954d2494eab65061eef34/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
12,
2890,
4672,
9163,
1172,
731,
326,
1509,
1509,
1450,
1245,
434,
4259,
13752,
6449,
838,
9163,
309,
365,
18,
6874,
30,
309,
365,
18,
6874,
422,
404,
30,
272,
273,
389,
2668,
21,
3286,
6134,
469,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
11387,
6134,
9,
27828,
2696,
4278,
365,
18,
6874,
97,
1327,
365,
18,
7496,
578,
365,
18,
2881,
405,
5958,
30,
4681,
273,
261,
2890,
18,
7496,
380,
5196,
13,
397,
365,
18,
2881,
309,
4681,
405,
9131,
30,
309,
509,
12,
9810,
19,
5082,
13,
405,
404,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
8846,
6134,
9,
27828,
2696,
4278,
509,
12,
9810,
19,
5082,
16869,
469,
30,
272,
273,
389,
2668,
21,
3138,
6134,
469,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
17314,
6134,
9,
27828,
2696,
4278,
509,
12,
9810,
19,
27,
16869,
1327,
365,
18,
2881,
405,
2371,
30,
272,
273,
389,
2668,
21,
4860,
6134,
1327,
365,
18,
2881,
405,
404,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
4681,
6134,
9,
27828,
2696,
4278,
365,
18,
2881,
97,
1327,
365,
18,
2881,
422,
404,
578,
365,
18,
12091,
405,
2593,
30,
309,
365,
18,
2977,
405,
374,
30,
327,
389,
2668,
3599,
15318,
6134,
469,
30,
327,
389,
2668,
93,
26309,
6134,
1327,
365,
18,
12091,
405,
404,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
7507,
6134,
9,
27828,
2696,
4278,
365,
18,
12091,
97,
1327,
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,
7517,
12,
2890,
4672,
9163,
1172,
731,
326,
1509,
1509,
1450,
1245,
434,
4259,
13752,
6449,
838,
9163,
309,
365,
18,
6874,
30,
309,
365,
18,
6874,
422,
404,
30,
272,
273,
389,
2668,
21,
3286,
6134,
469,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
11387,
6134,
9,
27828,
2696,
4278,
365,
18,
6874,
97,
1327,
365,
18,
7496,
578,
365,
18,
2881,
405,
5958,
30,
4681,
273,
261,
2890,
18,
7496,
380,
5196,
13,
397,
365,
18,
2881,
309,
4681,
405,
9131,
30,
309,
509,
12,
9810,
19,
5082,
13,
405,
404,
30,
272,
273,
389,
2668,
17105,
2696,
13,
87,
8846,
6134,
9,
27828,
2696,
4278,
509,
12,
9810,
19,
5082,
16869,
469,
30,
2
] |
fieldsz = len(listname) + len('request') | fieldsz = len(listname) + len('-unsubscribe') | def _addvirtual(mlist, fp): listname = mlist.internal_name() fieldsz = len(listname) + len('request') hostname = mlist.host_name # Set up the mailman-loop address loopaddr = Utils.get_site_email(mlist.host_name, extra='loop') loopdest = Utils.ParseEmail(loopaddr)[0] # Seek to the end of the text file, but if it's empty write the standard # disclaimer, and the loop catch address. fp.seek(0, 2) if not fp.tell(): print >> fp, """\ | 70b967f500b30ec9349a65aaa6a8be4b3183c3dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/70b967f500b30ec9349a65aaa6a8be4b3183c3dd/Postfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
12384,
12,
781,
376,
16,
4253,
4672,
666,
529,
273,
312,
1098,
18,
7236,
67,
529,
1435,
1466,
94,
273,
562,
12,
1098,
529,
13,
397,
562,
2668,
17,
318,
9174,
6134,
5199,
273,
312,
1098,
18,
2564,
67,
529,
468,
1000,
731,
326,
4791,
4728,
17,
6498,
1758,
2798,
4793,
273,
6091,
18,
588,
67,
4256,
67,
3652,
12,
781,
376,
18,
2564,
67,
529,
16,
2870,
2218,
6498,
6134,
2798,
10488,
273,
6091,
18,
3201,
4134,
12,
6498,
4793,
25146,
20,
65,
468,
15363,
358,
326,
679,
434,
326,
977,
585,
16,
1496,
309,
518,
1807,
1008,
1045,
326,
4529,
468,
1015,
830,
69,
4417,
16,
471,
326,
2798,
1044,
1758,
18,
4253,
18,
16508,
12,
20,
16,
576,
13,
309,
486,
4253,
18,
88,
1165,
13332,
1172,
1671,
4253,
16,
3536,
64,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
12384,
12,
781,
376,
16,
4253,
4672,
666,
529,
273,
312,
1098,
18,
7236,
67,
529,
1435,
1466,
94,
273,
562,
12,
1098,
529,
13,
397,
562,
2668,
17,
318,
9174,
6134,
5199,
273,
312,
1098,
18,
2564,
67,
529,
468,
1000,
731,
326,
4791,
4728,
17,
6498,
1758,
2798,
4793,
273,
6091,
18,
588,
67,
4256,
67,
3652,
12,
781,
376,
18,
2564,
67,
529,
16,
2870,
2218,
6498,
6134,
2798,
10488,
273,
6091,
18,
3201,
4134,
12,
6498,
4793,
25146,
20,
65,
468,
15363,
358,
326,
679,
434,
326,
977,
585,
16,
1496,
309,
518,
1807,
1008,
1045,
326,
4529,
468,
1015,
830,
69,
4417,
16,
471,
326,
2798,
1044,
1758,
18,
4253,
18,
2
] |
if self.should_save_image.value: | if object.should_save_image.value: | def run(self, workspace): objects = workspace.get_objects(self.object_name.value) if objects.has_parent_image: area_occupied = np.sum(objects.segmented[objects.parent_image.mask]>0) total_area = np.sum(objects.parent_image.mask) else: area_occupied = np.sum(objects.segmented > 0) total_area = np.product(objects.segmented.shape) if workspace.frame != None: figure = workspace.create_or_find_figure(subplots=(2,1)) statistics = (("Area occupied","%d pixels"%(area_occupied)), ("Total area", "%d pixels"%(total_area))) figure.subplot_imshow_labels(0,0,objects.segmented, title="Object labels: %s"%(self.object_name.value)) figure.subplot_table(1,0,statistics) m = workspace.measurements m.add_image_measurement(F_AREA_OCCUPIED%(self.object_name.value), np.array([area_occupied], dtype=float )) m.add_image_measurement(F_TOTAL_AREA%(self.object_name.value), np.array([total_area], dtype=float)) if self.should_save_image.value: binary_pixels = objects.segmented > 0 output_image = cpi.Image(binary_pixels, parent_image = objects.parent_image) workspace.image_set.add(self.image_name.value, output_image) | a0bb548da9fde1e6fd3c949608fd007fd37a3ee9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/a0bb548da9fde1e6fd3c949608fd007fd37a3ee9/measureimageareaoccupied.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
6003,
4672,
2184,
273,
6003,
18,
588,
67,
6911,
12,
2890,
18,
1612,
67,
529,
18,
1132,
13,
309,
2184,
18,
5332,
67,
2938,
67,
2730,
30,
5091,
67,
25049,
416,
2092,
273,
1130,
18,
1364,
12,
6911,
18,
9273,
329,
63,
6911,
18,
2938,
67,
2730,
18,
4455,
65,
34,
20,
13,
2078,
67,
5036,
273,
1130,
18,
1364,
12,
6911,
18,
2938,
67,
2730,
18,
4455,
13,
469,
30,
5091,
67,
25049,
416,
2092,
273,
1130,
18,
1364,
12,
6911,
18,
9273,
329,
405,
374,
13,
2078,
67,
5036,
273,
1130,
18,
5896,
12,
6911,
18,
9273,
329,
18,
4867,
13,
309,
6003,
18,
3789,
480,
599,
30,
7837,
273,
6003,
18,
2640,
67,
280,
67,
4720,
67,
19675,
12,
1717,
13214,
28657,
22,
16,
21,
3719,
7691,
273,
261,
2932,
5484,
18928,
2092,
15937,
9,
72,
8948,
6,
17105,
5036,
67,
25049,
416,
2092,
13,
3631,
7566,
5269,
5091,
3113,
2213,
72,
8948,
6,
17105,
4963,
67,
5036,
20349,
7837,
18,
24523,
67,
381,
4500,
67,
5336,
12,
20,
16,
20,
16,
6911,
18,
9273,
329,
16,
2077,
1546,
921,
3249,
30,
738,
87,
6,
17105,
2890,
18,
1612,
67,
529,
18,
1132,
3719,
7837,
18,
24523,
67,
2121,
12,
21,
16,
20,
16,
14438,
13,
225,
312,
273,
6003,
18,
26550,
312,
18,
1289,
67,
2730,
67,
16944,
12,
42,
67,
20933,
67,
51,
6743,
57,
1102,
2056,
17105,
2890,
18,
1612,
67,
529,
18,
1132,
3631,
1130,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
6003,
4672,
2184,
273,
6003,
18,
588,
67,
6911,
12,
2890,
18,
1612,
67,
529,
18,
1132,
13,
309,
2184,
18,
5332,
67,
2938,
67,
2730,
30,
5091,
67,
25049,
416,
2092,
273,
1130,
18,
1364,
12,
6911,
18,
9273,
329,
63,
6911,
18,
2938,
67,
2730,
18,
4455,
65,
34,
20,
13,
2078,
67,
5036,
273,
1130,
18,
1364,
12,
6911,
18,
2938,
67,
2730,
18,
4455,
13,
469,
30,
5091,
67,
25049,
416,
2092,
273,
1130,
18,
1364,
12,
6911,
18,
9273,
329,
405,
374,
13,
2078,
67,
5036,
273,
1130,
18,
5896,
12,
6911,
18,
9273,
329,
18,
4867,
13,
309,
6003,
18,
3789,
480,
599,
30,
7837,
273,
6003,
18,
2
] |
if string.lower(self.infile[-4:]) == ".pdf": | if string.lower(self.infile[-4:]) == ".pdf" or \ string.lower(self.infile[-3:]) == ".ai": | def process(self): bandsize = 30000000 if (self.band): bandsize = 10000 cmd = self.command cmd = cmd + ' -dQUIET -dNOPAUSE -dBATCH -K1000000 ' if self.dpi: cmd = cmd + '-r%d ' % (self.dpi,) cmd = cmd + '-dMaxBitmap=%d ' % (bandsize,) cmd = cmd + '-sDEVICE=%s ' % (self.device,) cmd = cmd + '-sOutputFile=%s ' % (self.outfile,) | 36d78db1aec25ddd2ec6eccf1359154328e21926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/36d78db1aec25ddd2ec6eccf1359154328e21926/gstestgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
8937,
1467,
273,
890,
17877,
309,
261,
2890,
18,
12752,
4672,
8937,
1467,
273,
12619,
225,
1797,
273,
365,
18,
3076,
1797,
273,
1797,
397,
296,
300,
72,
8627,
1584,
300,
72,
3417,
4066,
8001,
300,
72,
25147,
300,
47,
21,
9449,
296,
309,
365,
18,
72,
7259,
30,
1797,
273,
1797,
397,
2400,
86,
9,
72,
296,
738,
261,
2890,
18,
72,
7259,
16,
13,
1797,
273,
1797,
397,
2400,
72,
2747,
12224,
5095,
72,
296,
738,
261,
12752,
1467,
16,
13,
1797,
273,
1797,
397,
2400,
87,
18953,
5095,
87,
296,
738,
261,
2890,
18,
5964,
16,
13,
1797,
273,
1797,
397,
2400,
87,
1447,
812,
5095,
87,
296,
738,
261,
2890,
18,
26050,
16,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
8937,
1467,
273,
890,
17877,
309,
261,
2890,
18,
12752,
4672,
8937,
1467,
273,
12619,
225,
1797,
273,
365,
18,
3076,
1797,
273,
1797,
397,
296,
300,
72,
8627,
1584,
300,
72,
3417,
4066,
8001,
300,
72,
25147,
300,
47,
21,
9449,
296,
309,
365,
18,
72,
7259,
30,
1797,
273,
1797,
397,
2400,
86,
9,
72,
296,
738,
261,
2890,
18,
72,
7259,
16,
13,
1797,
273,
1797,
397,
2400,
72,
2747,
12224,
5095,
72,
296,
738,
261,
12752,
1467,
16,
13,
1797,
273,
1797,
397,
2400,
87,
18953,
5095,
87,
296,
738,
261,
2890,
18,
5964,
16,
13,
1797,
273,
1797,
397,
2400,
87,
1447,
812,
5095,
87,
296,
738,
261,
2890,
2
] |
cmd = "xm migrate -l %i %s"%(vmId, target) | cmd = "/usr/sbin/xm migrate -l %i %s"%(vmId, target) | def migrateVm(self, vmId, target, transportCookie): cmd = "xm migrate -l %i %s"%(vmId, target) r = os.system(cmd) if r != 0: # FIXME: throw exception print "migrate failed for VM %i"%vmId raise Exception, "migrate failed for VM %i"%vmId self.newvms.pop(vmId) return vmId | 787afd97a19dbc056f066117a0e80a968ac780eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5161/787afd97a19dbc056f066117a0e80a968ac780eb/xenpv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
22143,
12,
2890,
16,
4268,
548,
16,
1018,
16,
4736,
6151,
4672,
1797,
273,
2206,
13640,
19,
87,
4757,
19,
92,
81,
13187,
300,
80,
738,
77,
738,
87,
6,
17105,
3489,
548,
16,
1018,
13,
436,
273,
1140,
18,
4299,
12,
4172,
13,
309,
436,
480,
374,
30,
468,
9852,
30,
604,
1520,
1172,
315,
22083,
2535,
364,
8251,
738,
77,
28385,
3489,
548,
1002,
1185,
16,
225,
315,
22083,
2535,
364,
8251,
738,
77,
28385,
3489,
548,
365,
18,
2704,
31032,
18,
5120,
12,
3489,
548,
13,
327,
4268,
548,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
22143,
12,
2890,
16,
4268,
548,
16,
1018,
16,
4736,
6151,
4672,
1797,
273,
2206,
13640,
19,
87,
4757,
19,
92,
81,
13187,
300,
80,
738,
77,
738,
87,
6,
17105,
3489,
548,
16,
1018,
13,
436,
273,
1140,
18,
4299,
12,
4172,
13,
309,
436,
480,
374,
30,
468,
9852,
30,
604,
1520,
1172,
315,
22083,
2535,
364,
8251,
738,
77,
28385,
3489,
548,
1002,
1185,
16,
225,
315,
22083,
2535,
364,
8251,
738,
77,
28385,
3489,
548,
365,
18,
2704,
31032,
18,
5120,
12,
3489,
548,
13,
327,
4268,
548,
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
] |
self.mpav.stop = True while self.isAlive(): time.sleep(0.1) | self.mpav.stop = True while self.isAlive(): time.sleep(0.1) | def waitForCompletion(self): self.stop = True | a60082c2d4bcc60e0b690263f5d7b207dcafc3fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/a60082c2d4bcc60e0b690263f5d7b207dcafc3fe/rasterwand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10712,
11238,
12,
2890,
4672,
365,
18,
5681,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); | if name: self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); | def visit_admonition(self, node, name): self.body.append('\\begin{center}\\begin{sffamily}\n') self.body.append('\\fbox{\\parbox{\\admonitionwidth}{\n') self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); self.body.append('\\vspace{2mm}\n') | 0bc6157d426de8f760c23eea72ff3aae020a5954 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/0bc6157d426de8f760c23eea72ff3aae020a5954/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
4672,
365,
18,
3432,
18,
6923,
2668,
1695,
10086,
95,
5693,
97,
1695,
10086,
95,
87,
1403,
3954,
6280,
82,
6134,
365,
18,
3432,
18,
6923,
2668,
1695,
74,
2147,
95,
1695,
1065,
2147,
95,
1695,
361,
2586,
608,
2819,
8637,
64,
82,
6134,
309,
508,
30,
365,
18,
3432,
18,
6923,
2668,
1695,
955,
17156,
95,
1695,
14095,
15126,
365,
18,
4923,
18,
5336,
63,
529,
65,
397,
296,
6280,
82,
8284,
365,
18,
3432,
18,
6923,
2668,
1695,
90,
2981,
95,
22,
7020,
6280,
82,
6134,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
4672,
365,
18,
3432,
18,
6923,
2668,
1695,
10086,
95,
5693,
97,
1695,
10086,
95,
87,
1403,
3954,
6280,
82,
6134,
365,
18,
3432,
18,
6923,
2668,
1695,
74,
2147,
95,
1695,
1065,
2147,
95,
1695,
361,
2586,
608,
2819,
8637,
64,
82,
6134,
309,
508,
30,
365,
18,
3432,
18,
6923,
2668,
1695,
955,
17156,
95,
1695,
14095,
15126,
365,
18,
4923,
18,
5336,
63,
529,
65,
397,
296,
6280,
82,
8284,
365,
18,
3432,
18,
6923,
2668,
1695,
90,
2981,
95,
22,
7020,
6280,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ext == 'ps': | if ext == '.ps': | def save(self, filename='sage.png', xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, fig=None, sub=None, savenow=True, dpi=None): """ | 467e7b1f07811a5059c03b1971887ba802fa8a90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/467e7b1f07811a5059c03b1971887ba802fa8a90/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
2218,
87,
410,
18,
6446,
2187,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
15763,
33,
7036,
16,
15275,
33,
7036,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
4291,
33,
7036,
16,
720,
33,
7036,
16,
4087,
275,
543,
33,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
2218,
87,
410,
18,
6446,
2187,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
15763,
33,
7036,
16,
15275,
33,
7036,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
4291,
33,
7036,
16,
720,
33,
7036,
16,
4087,
275,
543,
33,
5510,
16,
16361,
33,
7036,
4672,
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
] |
points.append(self.point([one,zero,zero])) except TypeError: | t = self.point([one,zero,zero]) yield(t) except TypeError: | def rational_points(self, algorithm="enum", sort=True): r""" Return the rational points on this curve computed via enumeration. | 98b600e283b76d988294a386cfe037b70de67ee1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/98b600e283b76d988294a386cfe037b70de67ee1/projective_curve.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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
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
] |
if self.args.has_key('updatetickets'): self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id) | self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id) | def update_milestone(self, id, name, date, descr): self.perm.assert_permission(perm.MILESTONE_MODIFY) cursor = self.db.cursor() self.env.log.debug("Updating milestone '%s'" % id) if self.args.has_key('save'): if self.args.has_key('updatetickets'): self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id) cursor.execute("UPDATE milestone SET name = %s, time = %d, " "descr = %s WHERE name = %s", name, date, descr, id) self.db.commit() self.req.redirect(self.env.href.milestone(name)) else: self.req.redirect(self.env.href.milestone(id)) | 87c6b0626e61efd91f6187612c331c1bab7c33cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/87c6b0626e61efd91f6187612c331c1bab7c33cf/Milestone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
81,
18270,
12,
2890,
16,
612,
16,
508,
16,
1509,
16,
18426,
4672,
365,
18,
12160,
18,
11231,
67,
9827,
12,
12160,
18,
7492,
900,
882,
5998,
67,
6720,
12096,
13,
3347,
273,
365,
18,
1966,
18,
9216,
1435,
365,
18,
3074,
18,
1330,
18,
4148,
2932,
17858,
28664,
1995,
87,
4970,
738,
612,
13,
309,
365,
18,
1968,
18,
5332,
67,
856,
2668,
5688,
11,
4672,
365,
18,
3074,
18,
1330,
18,
1376,
2668,
17858,
28664,
652,
434,
777,
24475,
296,
296,
28441,
598,
28664,
738,
87,
11,
738,
612,
13,
3347,
18,
8837,
7707,
8217,
9322,
7855,
28664,
273,
738,
87,
296,
296,
12299,
28664,
273,
738,
87,
2187,
508,
16,
612,
13,
3347,
18,
8837,
2932,
8217,
28664,
7855,
508,
273,
738,
87,
16,
813,
273,
738,
72,
16,
315,
315,
28313,
273,
738,
87,
4852,
508,
273,
738,
87,
3113,
508,
16,
1509,
16,
18426,
16,
612,
13,
365,
18,
1966,
18,
7371,
1435,
365,
18,
3658,
18,
7590,
12,
2890,
18,
3074,
18,
7547,
18,
81,
18270,
12,
529,
3719,
469,
30,
365,
18,
3658,
18,
7590,
12,
2890,
18,
3074,
18,
7547,
18,
81,
18270,
12,
350,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
81,
18270,
12,
2890,
16,
612,
16,
508,
16,
1509,
16,
18426,
4672,
365,
18,
12160,
18,
11231,
67,
9827,
12,
12160,
18,
7492,
900,
882,
5998,
67,
6720,
12096,
13,
3347,
273,
365,
18,
1966,
18,
9216,
1435,
365,
18,
3074,
18,
1330,
18,
4148,
2932,
17858,
28664,
1995,
87,
4970,
738,
612,
13,
309,
365,
18,
1968,
18,
5332,
67,
856,
2668,
5688,
11,
4672,
365,
18,
3074,
18,
1330,
18,
1376,
2668,
17858,
28664,
652,
434,
777,
24475,
296,
296,
28441,
598,
28664,
738,
87,
11,
738,
612,
13,
3347,
18,
8837,
7707,
8217,
9322,
7855,
28664,
273,
738,
87,
296,
296,
12299,
28664,
273,
738,
87,
2187,
508,
16,
612,
13,
3347,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.