rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
os.spawnlp(os.P_NOWAIT, "nautilus", "nautilus", "file://" + filename)
|
os.spawnlp(os.P_NOWAIT, "gnome-open", "gnome-open", "file://" + filename)
|
def open_file(self, filename): if resources.check_kde(): os.spawnlp(os.P_NOWAIT, "kfmclient", "kfmclient", "exec", "file://" + filename) else: os.spawnlp(os.P_NOWAIT, "nautilus", "nautilus", "file://" + filename)
|
cb6177a197f0a29bc74a610ce024ff122bb9309e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/cb6177a197f0a29bc74a610ce024ff122bb9309e/application.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
768,
12,
2890,
16,
1544,
4672,
309,
2703,
18,
1893,
67,
79,
323,
13332,
1140,
18,
1752,
9533,
9953,
12,
538,
18,
52,
67,
3417,
19046,
16,
315,
79,
25089,
2625,
3113,
315,
79,
25089,
2625,
3113,
315,
4177,
3113,
315,
768,
14334,
397,
1544,
13,
469,
30,
1140,
18,
1752,
9533,
9953,
12,
538,
18,
52,
67,
3417,
19046,
16,
315,
6582,
1367,
407,
3113,
315,
6582,
1367,
407,
3113,
315,
768,
14334,
397,
1544,
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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323,
13332,
1140,
18,
1752,
9533,
9953,
12,
538,
18,
52,
67,
3417,
19046,
16,
315,
79,
25089,
2625,
3113,
315,
79,
25089,
2625,
3113,
315,
4177,
3113,
315,
768,
14334,
397,
1544,
13,
469,
30,
1140,
18,
1752,
9533,
9953,
12,
538,
18,
52,
67,
3417,
19046,
16,
315,
6582,
1367,
407,
3113,
315,
6582,
1367,
407,
3113,
315,
768,
14334,
397,
1544,
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
] |
c.ConnectNode(c, node)
|
c.ConnectNode(node)
|
def _StaticSingleNodeCall(cls, node, procedure, args): """Helper for making a single-node static call
|
3097c8588ea94b5263e78025a19949c293975218 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/3097c8588ea94b5263e78025a19949c293975218/rpc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5788,
5281,
907,
1477,
12,
6429,
16,
756,
16,
12131,
16,
833,
4672,
3536,
2276,
364,
10480,
279,
2202,
17,
2159,
760,
745,
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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,
0,
0,
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,
5788,
5281,
907,
1477,
12,
6429,
16,
756,
16,
12131,
16,
833,
4672,
3536,
2276,
364,
10480,
279,
2202,
17,
2159,
760,
745,
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
] |
print '
|
def _parseTags(self): wlib = weblib.getMainBm()
|
e49b534e611c5a0c38bfe6d7f08d0ecc27a3cf96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2355/e49b534e611c5a0c38bfe6d7f08d0ecc27a3cf96/weblib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
3453,
12,
2890,
4672,
341,
2941,
273,
3311,
2941,
18,
588,
6376,
38,
81,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
3453,
12,
2890,
4672,
341,
2941,
273,
3311,
2941,
18,
588,
6376,
38,
81,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
tlsout_path = self.write_tlsout_file(chain, cpartition) phenixout_path = self.write_phenixout_file(chain, cpartition)
|
if conf.RENDER_SKIP: png_file = "" pml_file = "" else: try: basename = "%s_CHAIN%s_NTLS%d" % (self.struct_id, chain.chain_id, cpartition.num_tls_segments()) png_file = "%s.png" % (basename) pml_file = "" gen_r3d_body_cmd = "%s < %s > %s 2> /dev/null" % (conf.TLSANIM2R3D, raw_r3d_file, r3d_body_file) os.system(gen_r3d_body_cmd) if os.path.isfile("../bases.r3d"): render_cmd = "cat %s ../struct.r3d %s %s ../bases.r3d ../sugars.r3d | %s > %s 2> /dev/null" % ( self.r3d_header_file, r3d_body_file, conf.GREY_R3D_FILE, conf.RENDER, png_file) else: render_cmd = "cat %s ../struct.r3d %s | %s > %s 2> /dev/null" % ( self.r3d_header_file, r3d_body_file, conf.RENDER, png_file) os.system(render_cmd) except: console.stdoutln(" Warning: failure to render PNG image") console.stdoutln("ERROR: Unexpected error:", sys.exc_info()[0]) raw_r3d_file = "" r3d_body_file = "" png_file = "" pass if conf.REFMAC_SKIP: tlsout_file = "" phenixout_file = "" console.stdoutln("NOTE: Skipping Refmac/Phenix section") else: try: tlsout_file = self.write_tlsout_file(chain, cpartition) phenixout_file = self.write_phenixout_file(chain, cpartition) except: console.stdoutln(" Warning: failed to create Refmac/Phenix files") console.stdoutln("ERROR: Unexpected error:", sys.exc_info()[0]) tlsout_file = "" phenixout_file = "" pass
|
def html_tls_graph_path(self, chain, ntls): """Generates the HTML table describing the path (set of tls groups) for the given number of segments(h, or ntls) """ cpartition = chain.partition_collection.get_chain_partition(ntls) if cpartition == None: return None
|
81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
17116,
67,
4660,
67,
803,
12,
2890,
16,
2687,
16,
9513,
3251,
4672,
3536,
6653,
326,
3982,
1014,
16868,
326,
589,
261,
542,
434,
6871,
3252,
13,
364,
326,
864,
1300,
434,
5155,
12,
76,
16,
578,
9513,
3251,
13,
3536,
276,
10534,
273,
2687,
18,
10534,
67,
5548,
18,
588,
67,
5639,
67,
10534,
12,
496,
3251,
13,
309,
276,
10534,
422,
599,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
17116,
67,
4660,
67,
803,
12,
2890,
16,
2687,
16,
9513,
3251,
4672,
3536,
6653,
326,
3982,
1014,
16868,
326,
589,
261,
542,
434,
6871,
3252,
13,
364,
326,
864,
1300,
434,
5155,
12,
76,
16,
578,
9513,
3251,
13,
3536,
276,
10534,
273,
2687,
18,
10534,
67,
5548,
18,
588,
67,
5639,
67,
10534,
12,
496,
3251,
13,
309,
276,
10534,
422,
599,
30,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if gc.collect() != 2: raise TestFailed
|
expect(gc.collect(), 2, "function")
|
exec("def f(): pass\n") in d
|
eb8bf3f036b5b5fcb801af1133b74458aef5a195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/eb8bf3f036b5b5fcb801af1133b74458aef5a195/test_gc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1196,
2932,
536,
284,
13332,
1342,
64,
82,
7923,
316,
302,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1196,
2932,
536,
284,
13332,
1342,
64,
82,
7923,
316,
302,
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
] |
strip_dir=python_build,
|
strip_dir=0,
|
def _setup_compile(self, outdir, macros, incdirs, sources, depends, extra): """Process arguments and decide which source files to compile.
|
64ee342fce31c098d6ed67a33bd99f187ca55715 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/64ee342fce31c098d6ed67a33bd99f187ca55715/ccompiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
11100,
12,
2890,
16,
15398,
16,
24302,
16,
7290,
8291,
16,
5550,
16,
10935,
16,
2870,
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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,
389,
8401,
67,
11100,
12,
2890,
16,
15398,
16,
24302,
16,
7290,
8291,
16,
5550,
16,
10935,
16,
2870,
4672,
3536,
2227,
1775,
471,
16288,
1492,
1084,
1390,
358,
4074,
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
] |
op.add_option('--jitflags', dest='jitflags', default='j,m,mj',
|
op.add_option('--jitflags', dest='jitflags', default='j',
|
def parse_jitflags(): jitflags = [ [ '-' + flag for flag in flags ] for flags in OPTIONS.jitflags.split(',') ] for flags in jitflags: for flag in flags: if flag not in ('-j', '-m'): print('Invalid jit flag: "%s"'%flag) sys.exit(1) return jitflags
|
68b2131f4fc9c980c70951702b6aeab6b7fc95bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/68b2131f4fc9c980c70951702b6aeab6b7fc95bb/trace-test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
78,
305,
7133,
13332,
525,
305,
7133,
273,
306,
306,
4014,
397,
2982,
364,
2982,
316,
2943,
308,
364,
2943,
316,
16726,
18,
78,
305,
7133,
18,
4939,
12,
2187,
6134,
308,
364,
2943,
316,
525,
305,
7133,
30,
364,
2982,
316,
2943,
30,
309,
2982,
486,
316,
7707,
17,
78,
2187,
2400,
81,
11,
4672,
1172,
2668,
1941,
525,
305,
2982,
30,
2213,
87,
5187,
9,
6420,
13,
2589,
18,
8593,
12,
21,
13,
327,
525,
305,
7133,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
78,
305,
7133,
13332,
525,
305,
7133,
273,
306,
306,
4014,
397,
2982,
364,
2982,
316,
2943,
308,
364,
2943,
316,
16726,
18,
78,
305,
7133,
18,
4939,
12,
2187,
6134,
308,
364,
2943,
316,
525,
305,
7133,
30,
364,
2982,
316,
2943,
30,
309,
2982,
486,
316,
7707,
17,
78,
2187,
2400,
81,
11,
4672,
1172,
2668,
1941,
525,
305,
2982,
30,
2213,
87,
5187,
9,
6420,
13,
2589,
18,
8593,
12,
21,
13,
327,
525,
305,
7133,
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
] |
for bit in user.userbit_set.all().filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(enddate__isnull=True) | Q(enddate__lt=now)): if bit.qsc.is_descendant(qsc) & bit.verb.is_antecedent(verb):
|
for bit in user.userbit_set.all().filter(Q(startdate__isnull=True) | Q(startdate__lte=now), Q(enddate__isnull=True) | Q(enddate__gt=now)): if bit.qsc.is_descendant(qsc) and bit.verb.is_antecedent(verb):
|
def UserHasPerms(user, qsc, verb, now = datetime.now()): """ Given a user, a permission, and a subject, return True if the user, or all users, has been Granted [subject] on [permission]; False otherwise """ if user != None: for bit in user.userbit_set.all().filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(enddate__isnull=True) | Q(enddate__lt=now)): if bit.qsc.is_descendant(qsc) & bit.verb.is_antecedent(verb): return True
|
5f31212f51cbb6dd33692b91926447d101850f1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/5f31212f51cbb6dd33692b91926447d101850f1d/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2177,
5582,
27256,
12,
1355,
16,
1043,
1017,
16,
6405,
16,
2037,
273,
3314,
18,
3338,
1435,
4672,
3536,
16803,
279,
729,
16,
279,
4132,
16,
471,
279,
3221,
16,
327,
1053,
309,
326,
729,
16,
578,
777,
3677,
16,
711,
2118,
19689,
329,
306,
7857,
65,
603,
306,
9827,
15533,
1083,
3541,
3536,
309,
729,
480,
599,
30,
364,
2831,
316,
729,
18,
1355,
3682,
67,
542,
18,
454,
7675,
2188,
12,
53,
12,
1937,
712,
972,
291,
2011,
33,
5510,
13,
571,
2238,
12,
1937,
712,
972,
28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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2177,
5582,
27256,
12,
1355,
16,
1043,
1017,
16,
6405,
16,
2037,
273,
3314,
18,
3338,
1435,
4672,
3536,
16803,
279,
729,
16,
279,
4132,
16,
471,
279,
3221,
16,
327,
1053,
309,
326,
729,
16,
578,
777,
3677,
16,
711,
2118,
19689,
329,
306,
7857,
65,
603,
306,
9827,
15533,
1083,
3541,
3536,
309,
729,
480,
599,
30,
364,
2831,
316,
729,
18,
1355,
3682,
67,
542,
18,
454,
7675,
2188,
12,
53,
12,
1937,
712,
972,
291,
2011,
33,
5510,
13,
571,
2238,
12,
1937,
712,
972,
28231,
33,
3338,
3631,
2238,
12,
409,
712,
972,
291,
2011,
33,
5510,
13,
571,
2238,
12,
409,
712,
972,
4521,
33,
3338,
3719,
30,
309,
2831,
18,
85,
2
] |
self.pwmfile=open(path.format(*pins[number])) def setwidth(self,width):
|
if not os.path.exists(pwmpath.format(*pins[number])): os.system('echo MULTC > /sys/devices/bone_capemgr.8/slots') self.pwmfile=open(pwmpath.format(*pins[number])) def set_width(self,width):
|
def __init__(self,number): self.pwmfile=open(path.format(*pins[number]))
|
921662d85b3dc3a424dac2567619f9ebe5fcaa2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8751/921662d85b3dc3a424dac2567619f9ebe5fcaa2e/pwm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2696,
4672,
365,
18,
14921,
81,
768,
33,
3190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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2696,
4672,
365,
18,
14921,
81,
768,
33,
3190,
12,
803,
18,
2139,
30857,
84,
2679,
63,
2696,
22643,
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
] |
self.current = self.connections[index-1]
|
self.current = self._connections[index-1] self.current_index = index
|
def switch(self, index_or_alias): """Switches to the connection specified by given index or alias. If alias is given it must be a string. Indexes can be either integers or strings that can be converted into integer. Raises a DataError if no connection with given index or alias found. """ try: index = self._get_index(index_or_alias) except ValueError: raise DataError("Non-existing index or alias '%s'" % index_or_alias) self.current = self.connections[index-1] return self.current
|
af959cb080815162dfaa581798ee4a3fd27510e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/af959cb080815162dfaa581798ee4a3fd27510e9/connectioncache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
12,
2890,
16,
770,
67,
280,
67,
4930,
4672,
3536,
10200,
281,
358,
326,
1459,
1269,
635,
864,
770,
578,
2308,
18,
225,
971,
2308,
353,
864,
518,
1297,
506,
279,
533,
18,
3340,
281,
848,
506,
3344,
12321,
578,
2064,
716,
848,
506,
5970,
1368,
3571,
18,
20497,
279,
1910,
668,
309,
1158,
1459,
598,
864,
770,
578,
2308,
1392,
18,
3536,
775,
30,
770,
273,
365,
6315,
588,
67,
1615,
12,
1615,
67,
280,
67,
4930,
13,
1335,
2068,
30,
1002,
1910,
668,
2932,
3989,
17,
11711,
770,
578,
2308,
1995,
87,
4970,
738,
770,
67,
280,
67,
4930,
13,
365,
18,
2972,
273,
365,
6315,
13313,
63,
1615,
17,
21,
65,
365,
18,
2972,
67,
1615,
273,
770,
327,
365,
18,
2972,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
12,
2890,
16,
770,
67,
280,
67,
4930,
4672,
3536,
10200,
281,
358,
326,
1459,
1269,
635,
864,
770,
578,
2308,
18,
225,
971,
2308,
353,
864,
518,
1297,
506,
279,
533,
18,
3340,
281,
848,
506,
3344,
12321,
578,
2064,
716,
848,
506,
5970,
1368,
3571,
18,
20497,
279,
1910,
668,
309,
1158,
1459,
598,
864,
770,
578,
2308,
1392,
18,
3536,
775,
30,
770,
273,
365,
6315,
588,
67,
1615,
12,
1615,
67,
280,
67,
4930,
13,
1335,
2068,
30,
1002,
1910,
668,
2932,
3989,
17,
11711,
770,
578,
2308,
1995,
87,
4970,
738,
770,
67,
280,
67,
4930,
13,
365,
18,
2972,
273,
365,
6315,
13313,
63,
1615,
17,
21,
65,
365,
18,
2972,
2
] |
session.push("\033[8m\xff\373\001")
|
session.push("\xff\373\001")
|
def echo_off(self, session): session.push("\033[8m\xff\373\001") # ECHO OFF
|
8db77f47bb977612d7cbbebde2b51ca82b4297f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5020/8db77f47bb977612d7cbbebde2b51ca82b4297f3/login.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3376,
67,
3674,
12,
2890,
16,
1339,
4672,
225,
1339,
18,
6206,
31458,
5297,
64,
6418,
23,
64,
11664,
7923,
468,
512,
22213,
17511,
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,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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
] |
import re
|
def __init__(self, err, position=(None, None)): if isinstance(err, Exception): self.type = err.__class__ self.value = err else: self.type = err self.value = None self.lineno = position[0] self.offset = position[1]
|
cf225d2ddb707c3444af0be9f145190fa89df258 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9834/cf225d2ddb707c3444af0be9f145190fa89df258/taldefs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
393,
16,
1754,
28657,
7036,
16,
599,
3719,
30,
309,
1549,
12,
370,
16,
1185,
4672,
365,
18,
723,
273,
393,
16186,
1106,
972,
365,
18,
1132,
273,
393,
469,
30,
365,
18,
723,
273,
393,
365,
18,
1132,
273,
599,
365,
18,
17782,
273,
1754,
63,
20,
65,
365,
18,
3348,
273,
1754,
63,
21,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
393,
16,
1754,
28657,
7036,
16,
599,
3719,
30,
309,
1549,
12,
370,
16,
1185,
4672,
365,
18,
723,
273,
393,
16186,
1106,
972,
365,
18,
1132,
273,
393,
469,
30,
365,
18,
723,
273,
393,
365,
18,
1132,
273,
599,
365,
18,
17782,
273,
1754,
63,
20,
65,
365,
18,
3348,
273,
1754,
63,
21,
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
] |
|
warning={ 'title':'No Pricelist !',
|
warning = { 'title': 'No Pricelist !',
|
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False): if not partner_id: raise osv.except_osv(_('No Customer Defined !'), _('You have to select a customer in the sale form !\nPlease set one customer before choosing a product.')) warning={} product_uom_obj = self.pool.get('product.uom') partner_obj = self.pool.get('res.partner') product_obj = self.pool.get('product.product') if partner_id: lang = partner_obj.browse(cr, uid, partner_id).lang context = {'lang': lang, 'partner_id': partner_id}
|
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
538,
33,
8381,
16,
508,
2218,
2187,
19170,
67,
350,
33,
8381,
16,
3303,
33,
8381,
16,
1089,
67,
8066,
33,
5510,
16,
1509,
67,
1019,
33,
8381,
16,
2298,
5755,
33,
8381,
16,
15324,
771,
67,
3276,
33,
8381,
16,
2982,
33,
8381,
4672,
309,
486,
225,
19170,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
2279,
13702,
18003,
329,
401,
19899,
389,
2668,
6225,
1240,
358,
2027,
279,
6666,
316,
326,
272,
5349,
646,
401,
64,
82,
8496,
444,
1245,
6666,
1865,
24784,
310,
279,
3017,
1093,
3719,
3436,
12938,
3017,
67,
89,
362,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
89,
362,
6134,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
6134,
3017,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
6134,
309,
19170,
67,
350,
30,
3303,
273,
19170,
67,
2603,
18,
25731,
12,
3353,
16,
4555,
16,
19170,
67,
350,
2934,
4936,
819,
273,
13666,
4936,
4278,
3303,
16,
296,
31993,
67,
350,
4278,
19170,
67,
350,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
538,
33,
8381,
16,
508,
2218,
2187,
19170,
67,
350,
33,
8381,
16,
3303,
33,
8381,
16,
1089,
67,
8066,
33,
5510,
16,
1509,
67,
1019,
33,
8381,
16,
2298,
5755,
33,
8381,
16,
15324,
771,
67,
3276,
33,
8381,
16,
2982,
33,
8381,
4672,
309,
486,
225,
19170,
67,
350,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
2279,
13702,
18003,
329,
401,
19899,
389,
2668,
6225,
1240,
358,
2027,
279,
6666,
316,
326,
272,
5349,
646,
2
] |
self.compare_lists_of_dicts(
|
self.assertEqual(
|
def test_languages_facet(self): # What options do we expect? languages_option_python = {u'name': u'Python', u'count': 2, u'is_active': True, u'query_string': u'q=&language=Python'} languages_option_perl = {u'name': u'Perl', u'count': 1, u'is_active': False, u'query_string': u'q=&language=Perl'} languages_option_c = {u'name': u'C', u'count': 1, u'is_active': False, u'query_string': u'q=&language=C'} languages_option_any = {u'name': u'any', u'count': 4, u'is_active': False, u'query_string': u'q=&language='} expected_languages_facet_options = [ languages_option_python, languages_option_perl, languages_option_c, ]
|
b04ebcb789062a0e99b68d94e74dc093b600661c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/b04ebcb789062a0e99b68d94e74dc093b600661c/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
14045,
67,
21568,
12,
2890,
4672,
468,
18734,
702,
741,
732,
4489,
35,
8191,
67,
3482,
67,
8103,
273,
288,
89,
11,
529,
4278,
582,
11,
15774,
2187,
582,
11,
1883,
4278,
576,
16,
582,
11,
291,
67,
3535,
4278,
1053,
16,
582,
11,
2271,
67,
1080,
4278,
582,
11,
85,
33,
10,
4923,
33,
15774,
11,
97,
8191,
67,
3482,
67,
457,
80,
273,
288,
89,
11,
529,
4278,
582,
11,
2173,
80,
2187,
582,
11,
1883,
4278,
404,
16,
582,
11,
291,
67,
3535,
4278,
1083,
16,
582,
11,
2271,
67,
1080,
4278,
582,
11,
85,
33,
10,
4923,
33,
2173,
80,
11,
97,
8191,
67,
3482,
67,
71,
273,
288,
89,
11,
529,
4278,
582,
11,
39,
2187,
582,
11,
1883,
4278,
404,
16,
582,
11,
291,
67,
3535,
4278,
1083,
16,
582,
11,
2271,
67,
1080,
4278,
582,
11,
85,
33,
10,
4923,
33,
39,
11,
97,
8191,
67,
3482,
67,
2273,
273,
288,
89,
11,
529,
4278,
582,
11,
2273,
2187,
582,
11,
1883,
4278,
1059,
16,
582,
11,
291,
67,
3535,
4278,
1083,
16,
582,
11,
2271,
67,
1080,
4278,
582,
11,
85,
33,
10,
4923,
2218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35,
8191,
67,
3482,
67,
8103,
273,
288,
89,
11,
529,
4278,
582,
11,
15774,
2187,
582,
11,
1883,
4278,
576,
16,
582,
11,
291,
67,
3535,
4278,
1053,
16,
582,
11,
2271,
67,
1080,
4278,
582,
11,
85,
33,
10,
4923,
33,
15774,
11,
97,
8191,
67,
3482,
67,
457,
80,
273,
288,
89,
11,
529,
4278,
582,
11,
2173,
80,
2187,
582,
11,
1883,
4278,
404,
16,
582,
11,
291,
67,
3535,
4278,
1083,
16,
582,
11,
2271,
67,
1080,
4278,
582,
11,
85,
33,
10,
4923,
33,
2173,
80,
11,
97,
8191,
67,
3482,
67,
71,
273,
288,
89,
11,
529,
2
] |
sess.query(User).select_from(select([users]).offset(2).alias()).join(
|
sess.query(User).select_from(select([users]).order_by(User.id).offset(2).alias()).join(
|
def test_clause_onclause(self): sess = create_session()
|
1227a7674f915cc2080104fa769e3e71254316b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/1227a7674f915cc2080104fa769e3e71254316b9/query.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18128,
67,
265,
18128,
12,
2890,
4672,
8451,
273,
752,
67,
3184,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18128,
67,
265,
18128,
12,
2890,
4672,
8451,
273,
752,
67,
3184,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
P=pyRXP.Parser(**kw)
|
P=_pyRXP.Parser(**kw)
|
def goodTest(x,t,tb=0,**kw): try: P=pyRXP.Parser(**kw) r = P(x) rb = 0 except: et, ev, None = sys.exc_info() r = '%s %s' % (et.__name__, str(ev)) rb = 1 s = '' for k,v in kw.items(): s = s+', %s=%s' % (k,str(v)) if type(t) is type(''): t = t.replace('\r','\\r') t = t.replace('\n','\\n') if type(r) is type(''): r = r.replace('\r','\\r') r = r.replace('\n','\\n') print 'Parser(%s)(%s)-->'%(s[2:],repr(x)),r, if r==t and rb==tb: print 'OK' else: print '!!!!!BAD!!!!! should --> ', t
|
5968710b4c84f6d8e4d6f53f0baa2916c7342c36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/5968710b4c84f6d8e4d6f53f0baa2916c7342c36/t.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7494,
4709,
12,
92,
16,
88,
16,
18587,
33,
20,
16,
636,
9987,
4672,
775,
30,
453,
33,
67,
2074,
54,
60,
52,
18,
2678,
12,
636,
9987,
13,
436,
273,
453,
12,
92,
13,
7138,
273,
374,
1335,
30,
3393,
16,
2113,
16,
599,
273,
2589,
18,
10075,
67,
1376,
1435,
436,
273,
1995,
87,
738,
87,
11,
738,
261,
278,
16186,
529,
972,
16,
609,
12,
14965,
3719,
7138,
273,
404,
225,
272,
273,
875,
364,
417,
16,
90,
316,
5323,
18,
3319,
13332,
272,
273,
272,
15,
2187,
738,
87,
5095,
87,
11,
738,
261,
79,
16,
701,
12,
90,
3719,
309,
618,
12,
88,
13,
353,
618,
2668,
11,
4672,
268,
273,
268,
18,
2079,
2668,
64,
86,
17023,
1695,
86,
6134,
268,
273,
268,
18,
2079,
2668,
64,
82,
17023,
1695,
82,
6134,
309,
618,
12,
86,
13,
353,
618,
2668,
11,
4672,
436,
273,
436,
18,
2079,
2668,
64,
86,
17023,
1695,
86,
6134,
436,
273,
436,
18,
2079,
2668,
64,
82,
17023,
1695,
82,
6134,
1172,
296,
2678,
9275,
87,
13,
9275,
87,
13,
413,
1870,
17105,
87,
63,
22,
30,
6487,
12715,
12,
92,
13,
3631,
86,
16,
309,
436,
631,
88,
471,
7138,
631,
18587,
30,
1172,
296,
3141,
11,
469,
30,
1172,
296,
23045,
5,
16234,
23045,
5,
1410,
15431,
2265,
268,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7494,
4709,
12,
92,
16,
88,
16,
18587,
33,
20,
16,
636,
9987,
4672,
775,
30,
453,
33,
67,
2074,
54,
60,
52,
18,
2678,
12,
636,
9987,
13,
436,
273,
453,
12,
92,
13,
7138,
273,
374,
1335,
30,
3393,
16,
2113,
16,
599,
273,
2589,
18,
10075,
67,
1376,
1435,
436,
273,
1995,
87,
738,
87,
11,
738,
261,
278,
16186,
529,
972,
16,
609,
12,
14965,
3719,
7138,
273,
404,
225,
272,
273,
875,
364,
417,
16,
90,
316,
5323,
18,
3319,
13332,
272,
273,
272,
15,
2187,
738,
87,
5095,
87,
11,
738,
261,
79,
16,
701,
12,
90,
3719,
309,
618,
12,
88,
13,
353,
618,
2668,
11,
4672,
268,
273,
268,
18,
2
] |
for time, note in self.guitar.playedNotes: if not note.tappable: break else: if not self.guitar.getRequiredNotes(self.song, pos): return
|
def doPick(self): if not self.song: return
|
456186de788401ed6519229b509c223799653eaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7946/456186de788401ed6519229b509c223799653eaa/GuitarScene.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
17968,
12,
2890,
4672,
309,
486,
365,
18,
816,
75,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
17968,
12,
2890,
4672,
309,
486,
365,
18,
816,
75,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
""" Compute a canonical form for the cusp $uu/vv$. INPUT: cusp OUTPUT: cusp OUTPUT: bool -- True if self and other are equivalent int -- $1$, $0$, or $-1$, If the two cusps are $u1/v1$ and $u2/v2$, then they are equivalent modulo Gamma_H(N) if and only if $v1 = h*v2 (mod N)$ and $u1 = h^(-1)*u2 (mod gcd(v1,N))$ or $v1 = -h*v2 (mod N)$ and $u1 = -h^(-1)*u2 (mod gcd(v1,N))$ where $h \in H$. In the first case we return $1$, and in the second we return $-1$. We return $0$ if the two cusps are not equivalent.
|
r""" Compute a canonical form for the given cusp c. Returns a pair (c', t), where c' is the canonical form for the given cusp, and t is either 1 or -1, as explained below. Two cusps $u1/v1$ and $u2/v2$ are equivalent modulo Gamma_H(N) if and only if $v1 = h*v2 (mod N)$ and $u1 = h^(-1)*u2 (mod gcd(v1,N))$ or $v1 = -h*v2 (mod N)$ and $u1 = -h^(-1)*u2 (mod gcd(v1,N))$ for some $h \in H$. Then t is 1 or -1 as c and c' fall into the first or second case, respectively.
|
def _reduce_cusp(self, c): """ Compute a canonical form for the cusp $uu/vv$. INPUT: cusp OUTPUT: cusp
|
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,
12498,
67,
71,
407,
84,
12,
2890,
16,
276,
4672,
3536,
8155,
279,
7378,
646,
364,
326,
27964,
84,
271,
24286,
19,
15530,
8,
18,
225,
12943,
30,
27964,
84,
11550,
30,
27964,
84,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12498,
67,
71,
407,
84,
12,
2890,
16,
276,
4672,
3536,
8155,
279,
7378,
646,
364,
326,
27964,
84,
271,
24286,
19,
15530,
8,
18,
225,
12943,
30,
27964,
84,
11550,
30,
27964,
84,
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
] |
d_som6.attr_list["config"] = config hlr_utils.write_file(config.output, "text/rmd", d_som6,
|
d_som5.attr_list["config"] = config hlr_utils.write_file(config.output, "text/rmd", d_som5,
|
def run(config, tim): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.DiffTime} """ import common_lib import dr_lib import DST import SOM import math if tim is not None: tim.getTime(False) old_time = tim.getOldTime() if config.data is None: raise RuntimeError("Need to pass a data filename to the driver "\ +"script.") # Read in sample data geometry if one is provided if config.data_inst_geom is not None: if config.verbose: print "Reading in sample data instrument geometry file" data_inst_geom_dst = DST.getInstance("application/x-NxsGeom", config.data_inst_geom) else: data_inst_geom_dst = None # Perform Steps 1-2 on sample data d_som1 = dr_lib.process_reflp_data(config.data, config, None, timer=tim) # Perform Steps 1-3 on normalization data if config.norm is not None: n_som1 = dr_lib.process_reflp_data(config.norm, config, config.norm_roi_file, timer=tim) else: n_som1 = None # Step 4: Divide data by normalization if config.verbose and config.norm is not None: print "Scale data by normalization" if tim is not None: tim.getTime(False) if config.norm is not None: d_som2 = common_lib.div_ncerr(d_som1, n_som1, length_one_som=True) else: d_som2 = d_som1 if tim is not None and config.norm is not None: tim.getTime(msg="After normalizing signal spectra") del d_som1, n_som1 if config.dump_rtof_comb: d_som2_1 = dr_lib.sum_all_spectra(d_som2) d_som2_2 = dr_lib.data_filter(d_som2_1) del d_som2_1 hlr_utils.write_file(config.output, "text/Spec", d_som2_2, output_ext="crtof", verbose=config.verbose, data_ext=config.ext_replacement, path_replacement=config.path_replacement, message="combined R(TOF) information") del d_som2_2 if config.dump_rtof: d_som2_1 = dr_lib.filter_ref_data(d_som2) hlr_utils.write_file(config.output, "text/Spec", d_som2_1, output_ext="rtof", verbose=config.verbose, data_ext=config.ext_replacement, path_replacement=config.path_replacement, message="R(TOF) information") del d_som2_1 # Override geometry if necessary if data_inst_geom_dst is not None: data_inst_geom_dst.setGeometry(config.data_paths.toPath(), d_som2) data_inst_geom_dst.release_resource() # Step 5: Convert TOF to Wavelength if config.verbose: print "Converting TOF to wavelength" if tim is not None: tim.getTime(False) d_som3 = common_lib.tof_to_wavelength(d_som2) if tim is not None: tim.getTime(msg="After converting TOF to wavelength ") del d_som2 # Step 6: Scale wavelength axis by sin(theta) to make lambda_T if config.verbose: print "Scaling wavelength axis by sin(theta)" # Make a fake SO so = SOM.SO() # Get the detector angle try: theta = hlr_utils.get_special(d_som3.attr_list["Theta"], so) except KeyError: theta = no_info if theta[0] is not None: if theta[2] == "degrees" or theta[2] == "degree": theta_rads = (theta[0] * (math.pi / 180.0), 0.0) else: theta_rads = (theta[0], 0.0) else: theta_rads = (float('nan'), float('nan')) print "A:", theta_rads if tim is not None: tim.getTime(False) d_som4 = common_lib.div_ncerr(d_som3, theta_rads, axis="x") if tim is not None: tim.getTime(msg="After scaling wavelength axis ") del d_som3 # Step 7: Rebin to lambda_T axis if config.verbose: print "Rebinning spectra" if config.lambdap_bins is None: # Create a binning scheme delta_TOF = d_som4[0].axis[0].val[1] - d_som4[0].axis[0].val[0] try: pathlength = d_som4.attr_list["det_pathlength"] except KeyError: if config.inst == "REF_L": pathlength = (14.85, 0.0) elif config.inst == "REF_M": pathlength = (21.0353, 0.0) else: raise RuntimeError("Do not know how to handle pathlength for "\ +"%s" % config.inst) delta_lambda = common_lib.tof_to_wavelength((delta_TOF, 0.0), pathlength=pathlength) print "B:", delta_lambda delta_lambdap = common_lib.div_ncerr(delta_lambda, (math.sin(theta_rads[0]), 0.0)) print "C:", delta_lambdap config.lambdap_bins = dr_lib.create_axis_from_data(d_som4, width=delta_lambdap[0]) print "D:", config.lambdap_bins else: # Do nothing, got the binning scheme pass if tim is not None: tim.getTime(False) d_som5 = common_lib.rebin_axis_1D_frac(d_som4, config.lambdap_bins.toNessiList()) if tim is not None: tim.getTime(msg="After rebinning spectra ") del d_som4 # Step 8: Write out all spectra to a file hlr_utils.write_file(config.output, "text/Spec", d_som6, replace_ext=False, replace_path=False, verbose=config.verbose, message="Reflectivity information") d_som6.attr_list["config"] = config hlr_utils.write_file(config.output, "text/rmd", d_som6, output_ext="rmd", verbose=config.verbose, data_ext=config.ext_replacement, path_replacement=config.path_replacement, message="metadata") if tim is not None: tim.setOldTime(old_time) tim.getTime(msg="Total Running Time")
|
f0ea5d41832fc9f0a684d3f226f806ee86a4e0bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/f0ea5d41832fc9f0a684d3f226f806ee86a4e0bc/refred_lp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
723,
642,
30,
511,
95,
76,
10826,
67,
5471,
18,
11207,
97,
225,
632,
891,
1658,
30,
1033,
716,
903,
1699,
326,
707,
358,
3073,
15538,
3765,
1012,
18,
632,
723,
1658,
30,
385,
95,
87,
2387,
67,
957,
18,
5938,
950,
97,
3536,
1930,
2975,
67,
2941,
1930,
5081,
67,
2941,
1930,
463,
882,
1930,
348,
1872,
225,
1930,
4233,
225,
309,
1658,
353,
486,
599,
30,
1658,
18,
588,
950,
12,
8381,
13,
1592,
67,
957,
273,
1658,
18,
588,
7617,
950,
1435,
225,
309,
642,
18,
892,
353,
599,
30,
1002,
7265,
2932,
14112,
358,
1342,
279,
501,
1544,
358,
326,
3419,
1548,
397,
6,
4263,
1199,
13,
225,
468,
2720,
316,
3296,
501,
5316,
309,
1245,
353,
2112,
309,
642,
18,
892,
67,
8591,
67,
10049,
353,
486,
599,
30,
309,
642,
18,
11369,
30,
1172,
315,
15714,
316,
3296,
501,
10353,
5316,
585,
6,
225,
501,
67,
8591,
67,
10049,
67,
11057,
273,
463,
882,
18,
588,
1442,
2932,
3685,
19,
92,
17,
50,
13713,
16972,
3113,
642,
18,
892,
67,
8591,
67,
10049,
13,
469,
30,
501,
67,
8591,
67,
10049,
67,
11057,
273,
599,
225,
468,
11217,
7780,
1121,
404,
17,
22,
603,
3296,
501,
302,
67,
87,
362,
21,
273,
5081,
67,
2941,
18,
2567,
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,
1086,
12,
1425,
16,
1658,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
723,
642,
30,
511,
95,
76,
10826,
67,
5471,
18,
11207,
97,
225,
632,
891,
1658,
30,
1033,
716,
903,
1699,
326,
707,
358,
3073,
15538,
3765,
1012,
18,
632,
723,
1658,
30,
385,
95,
87,
2387,
67,
957,
18,
5938,
950,
97,
3536,
1930,
2975,
67,
2941,
1930,
5081,
67,
2941,
1930,
463,
882,
1930,
348,
1872,
225,
1930,
4233,
225,
309,
1658,
353,
486,
599,
30,
1658,
18,
588,
950,
12,
8381,
13,
1592,
67,
957,
273,
1658,
18,
588,
7617,
950,
1435,
225,
2
] |
if top_r >= bottom_r: top_r = top_r - tool_r bottom_r = bottom_r - tool_r if top_r < bottom_r: top_r = top_r + tool_r bottom_r = bottom_r + tool_r
|
bottom_r = top_r - (math.tan(angle * math.pi / 180) * depth)
|
def cone(x_cen, y_cen, z_cen, tool_id, tooldiameter, spindle_speed, horizontal_feedrate, vertical_feedrate, depth, diameter, angle, z_safe, step_over, step_down):
|
7b1f7adcc50a8d0dbd3214cd964d89735652e76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12576/7b1f7adcc50a8d0dbd3214cd964d89735652e76a/cut-cone.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
356,
73,
12,
92,
67,
71,
275,
16,
677,
67,
71,
275,
16,
998,
67,
71,
275,
16,
5226,
67,
350,
16,
358,
1673,
77,
16986,
16,
1694,
728,
298,
67,
13871,
16,
10300,
67,
7848,
5141,
16,
9768,
67,
7848,
5141,
16,
3598,
16,
26386,
16,
5291,
16,
998,
67,
4626,
16,
2235,
67,
1643,
16,
2235,
67,
2378,
4672,
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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,
9768,
67,
7848,
5141,
16,
3598,
16,
26386,
16,
5291,
16,
998,
67,
4626,
16,
2235,
67,
1643,
16,
2235,
67,
2378,
4672,
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
] |
coords = self.renderer.get3DCoordinates(hitStack[0], hits[0], hits[1], hits[2], hits[3], hits[4])
|
coords = self.renderer.get3DCoordinates(int(hitStack[0]), hits[0], hits[1], hits[2], hits[3], hits[4])
|
def getClickCoordinates(self, hitStack): hits = [-1,-1,-1,-1,-1] for i in range(5): if(len(hitStack) > i+1): hits[i] = hitStack[i+1]
|
a2490655497f377b1d3fc8bdd99ef1bd8dfdd01d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/a2490655497f377b1d3fc8bdd99ef1bd8dfdd01d/base_viewer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13674,
1200,
13431,
12,
2890,
16,
6800,
2624,
4672,
11076,
273,
23059,
21,
16,
17,
21,
16,
17,
21,
16,
17,
21,
16,
17,
21,
65,
364,
277,
316,
1048,
12,
25,
4672,
309,
12,
1897,
12,
15989,
2624,
13,
405,
277,
15,
21,
4672,
11076,
63,
77,
65,
273,
6800,
2624,
63,
77,
15,
21,
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,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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,
13674,
1200,
13431,
12,
2890,
16,
6800,
2624,
4672,
11076,
273,
23059,
21,
16,
17,
21,
16,
17,
21,
16,
17,
21,
16,
17,
21,
65,
364,
277,
316,
1048,
12,
25,
4672,
309,
12,
1897,
12,
15989,
2624,
13,
405,
277,
15,
21,
4672,
11076,
63,
77,
65,
273,
6800,
2624,
63,
77,
15,
21,
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
] |
set.append_rrule(self._parse_rfc_rrule(value,
|
set.rrule(self._parse_rfc_rrule(value,
|
def _parse_rfc(self, s, dtstart=None, cache=False, unfold=False, forceset=False, compatible=False, ignoretz=False): global parser if compatible: forceset = True s = s.upper() lines = s.splitlines() if not lines: raise ValueError, "empty string" if unfold: i = 0 while i < len(lines): line = lines[i].rstrip() if not line: del lines[i] elif i > 0 and line[0] == " ": lines[i-1] += line[1:] del lines[i] else: i += 1 else: i = 0 while i < len(lines): line = lines[i].strip() if not line: del lines[i] else: lines[i] = line i += 1 if (not forceset and len(lines) == 1 and (not s.find(':') or s.startswith('RRULE:'))): return self._parse_rfc_rrule(s, cache=cache) else: rrulevals = [] rdatevals = [] exrulevals = [] exdatevals = [] for line in lines: if not line: continue name, value = line.split(':', 1) parms = name.split(';') if not parms: raise ValueError, "empty property name" name = parms[0] parms = parms[1:] if name == "RRULE": for parm in parms: raise ValueError, "unsupported RRULE parm: "+parm rrulevals.append(value) elif name == "RDATE": for parm in parms: if parm != "VALUE=DATE-TIME": raise ValueError, "unsupported RDATE parm: "+parm rdatevals.append(value) elif name == "EXRULE": for parm in parms: raise ValueError, "unsupported EXRULE parm: "+parm exrulevals.append(value) elif name == "EXDATE": for parm in parms: if parm != "VALUE=DATE-TIME": raise ValueError, "unsupported RDATE parm: "+parm exdatevals.append(value) elif name == "DTSTART": for parm in parms: raise ValueError, "unsupported DTSTART parm: "+parm if not parser: from dateutil import parser dtstart = parser.parse(value, ignoretz=ignoretz) else: raise ValueError, "unsupported property: "+name if (forceset or len(rrulevals) > 1 or rdatevals or exrulevals or exdatevals): if not parser and (rdatevals or exdatevals): from dateutil import parser set = rruleset(cache=cache) for value in rrulevals: set.append_rrule(self._parse_rfc_rrule(value, dtstart=dtstart)) for value in rdatevals: for datestr in value.split(','): set.append_rdate(parser.parse(datestr, ignoretz=ignoretz)) for value in exrulevals: set.append_exrule(self._parse_rfc_rrule(value, dtstart=dtstart)) for value in exdatevals: for datestr in value.split(','): set.append_exdate(parser.parse(datestr, ignoretz=ignoretz)) if compatible and dtstart: set.append_rdate(dtstart) return set else: return self._parse_rfc_rrule(rrulevals[0], dtstart=dtstart, cache=cache)
|
b3c88411265904f5f13de2fe4210eefdaea843f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/b3c88411265904f5f13de2fe4210eefdaea843f5/rrule.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
16784,
12,
2890,
16,
272,
16,
3681,
1937,
33,
7036,
16,
1247,
33,
8381,
16,
640,
16007,
33,
8381,
16,
26376,
278,
33,
8381,
16,
7318,
33,
8381,
16,
2305,
12994,
33,
8381,
4672,
2552,
2082,
309,
7318,
30,
26376,
278,
273,
1053,
272,
273,
272,
18,
5797,
1435,
2362,
273,
272,
18,
4939,
3548,
1435,
309,
486,
2362,
30,
1002,
2068,
16,
315,
5531,
533,
6,
309,
640,
16007,
30,
277,
273,
374,
1323,
277,
411,
562,
12,
3548,
4672,
980,
273,
2362,
63,
77,
8009,
86,
6406,
1435,
309,
486,
980,
30,
1464,
2362,
63,
77,
65,
1327,
277,
405,
374,
471,
980,
63,
20,
65,
422,
315,
6398,
2362,
63,
77,
17,
21,
65,
1011,
980,
63,
21,
26894,
1464,
2362,
63,
77,
65,
469,
30,
277,
1011,
404,
469,
30,
277,
273,
374,
1323,
277,
411,
562,
12,
3548,
4672,
980,
273,
2362,
63,
77,
8009,
6406,
1435,
309,
486,
980,
30,
1464,
2362,
63,
77,
65,
469,
30,
2362,
63,
77,
65,
273,
980,
277,
1011,
404,
309,
261,
902,
26376,
278,
471,
562,
12,
3548,
13,
422,
404,
471,
261,
902,
272,
18,
4720,
2668,
2497,
13,
578,
272,
18,
17514,
1918,
2668,
54,
14920,
2497,
3719,
4672,
327,
365,
6315,
2670,
67,
16784,
67,
523,
725,
12,
87,
16,
1247,
33,
2493,
13,
469,
30,
436,
5345,
4524,
273,
5378,
436,
712,
4524,
273,
5378,
431,
5345,
4524,
273,
5378,
431,
712,
4524,
273,
5378,
364,
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,
2670,
67,
16784,
12,
2890,
16,
272,
16,
3681,
1937,
33,
7036,
16,
1247,
33,
8381,
16,
640,
16007,
33,
8381,
16,
26376,
278,
33,
8381,
16,
7318,
33,
8381,
16,
2305,
12994,
33,
8381,
4672,
2552,
2082,
309,
7318,
30,
26376,
278,
273,
1053,
272,
273,
272,
18,
5797,
1435,
2362,
273,
272,
18,
4939,
3548,
1435,
309,
486,
2362,
30,
1002,
2068,
16,
315,
5531,
533,
6,
309,
640,
16007,
30,
277,
273,
374,
1323,
277,
411,
562,
12,
3548,
4672,
980,
273,
2362,
63,
77,
8009,
86,
6406,
1435,
309,
486,
980,
30,
1464,
2362,
63,
77,
65,
1327,
277,
405,
374,
471,
980,
63,
20,
65,
422,
315,
6398,
2362,
63,
77,
17,
2
] |
return output.strip()
|
return output.strip(), loc
|
def get_pydoc_text(module): "Returns pydoc generated output as text" output = pydoc.TextDoc().docmodule(module) # cleanup the extra text formatting that pydoc preforms patt = re.compile('\b.') output = patt.sub('', output) return output.strip()
|
d73fc87a2bd8c29397cb8e8be32193ff2e74ac95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/d73fc87a2bd8c29397cb8e8be32193ff2e74ac95/test_pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2074,
2434,
67,
955,
12,
2978,
4672,
315,
1356,
2395,
2434,
4374,
876,
487,
977,
6,
876,
273,
2395,
2434,
18,
1528,
1759,
7675,
2434,
2978,
12,
2978,
13,
225,
468,
6686,
326,
2870,
977,
10407,
716,
2395,
2434,
675,
9741,
28560,
273,
283,
18,
11100,
2668,
64,
70,
1093,
13,
876,
273,
28560,
18,
1717,
2668,
2187,
876,
13,
327,
876,
18,
6406,
9334,
1515,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2074,
2434,
67,
955,
12,
2978,
4672,
315,
1356,
2395,
2434,
4374,
876,
487,
977,
6,
876,
273,
2395,
2434,
18,
1528,
1759,
7675,
2434,
2978,
12,
2978,
13,
225,
468,
6686,
326,
2870,
977,
10407,
716,
2395,
2434,
675,
9741,
28560,
273,
283,
18,
11100,
2668,
64,
70,
1093,
13,
876,
273,
28560,
18,
1717,
2668,
2187,
876,
13,
327,
876,
18,
6406,
9334,
1515,
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
] |
if self.dnaStyleStrandsShape>0 or \ self.dnaStyleBasesShape>0 or \ self.dnaStyleStrutsShape>0: n_bases = chunk.ladder.baselength() if chunk==chunk.ladder.strand_rails[0].baseatoms[0].molecule: chunk_strand = 0 else: chunk_strand = 1 for pos in range(0,n_bases): atom1 = chunk.ladder.strand_rails[chunk_strand].baseatoms[pos] atom2 = chunk.ladder.axis_rail.baseatoms[pos] vz = glpane.out v2 = norm(atom1.posn()-atom2.posn()) a = angleBetween(vz,v2) if abs(a)<dnaBaseOrientationThreshold: drawer.drawsphere( lightgreen,atom1.posn()-chunk.center,1.5,2)
|
if chunk.ladder.axis_rail: if self.dnaStyleStrandsShape>0 or \ self.dnaStyleBasesShape>0 or \ self.dnaStyleStrutsShape>0: n_bases = chunk.ladder.baselength() if chunk==chunk.ladder.strand_rails[0].baseatoms[0].molecule: chunk_strand = 0 else: chunk_strand = 1 for pos in range(0,n_bases): atom1 = chunk.ladder.strand_rails[chunk_strand].baseatoms[pos] atom2 = chunk.ladder.axis_rail.baseatoms[pos] vz = glpane.out v2 = norm(atom1.posn()-atom2.posn()) a = angleBetween(vz,v2) if abs(a)<dnaBaseOrientationThreshold: drawer.drawsphere( lightgreen,atom1.posn()-chunk.center,1.5,2)
|
def drawchunk_realtime(self, glpane, chunk): """ Draws the chunk style that may depend on a current view. These are experimental features, work in progress as of 080319. For the DNA style, draws base orientation indicators and strand labels. 080321 piotr: added better label positioning and """ from utilities.constants import lightgreen from PyQt4.Qt import QFont, QString, QColor, QFontMetrics from widgets.widget_helpers import RGBf_to_QColor from dna.model.DnaLadderRailChunk import DnaStrandChunk
|
7e0c1c9be14d055be856b2130bc5ab5ecdb8c235 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/7e0c1c9be14d055be856b2130bc5ab5ecdb8c235/DnaCylinderChunks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
6551,
67,
7688,
957,
12,
2890,
16,
5118,
29009,
16,
2441,
4672,
3536,
10184,
87,
326,
2441,
2154,
716,
2026,
2447,
603,
279,
783,
1476,
18,
8646,
854,
23070,
4467,
16,
1440,
316,
4007,
487,
434,
374,
3672,
23,
3657,
18,
2457,
326,
463,
11277,
2154,
16,
30013,
1026,
9820,
27121,
471,
16706,
3249,
18,
374,
3672,
1578,
21,
293,
1594,
313,
30,
3096,
7844,
1433,
1754,
310,
471,
3536,
628,
22538,
18,
13358,
1930,
9052,
11571,
628,
4707,
23310,
24,
18,
23310,
1930,
2238,
5711,
16,
2238,
780,
16,
2238,
2957,
16,
2238,
5711,
5653,
628,
10965,
18,
6587,
67,
11397,
1930,
11510,
74,
67,
869,
67,
53,
2957,
628,
31702,
18,
2284,
18,
40,
6582,
48,
361,
765,
54,
671,
5579,
1930,
463,
6582,
1585,
464,
5579,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
6551,
67,
7688,
957,
12,
2890,
16,
5118,
29009,
16,
2441,
4672,
3536,
10184,
87,
326,
2441,
2154,
716,
2026,
2447,
603,
279,
783,
1476,
18,
8646,
854,
23070,
4467,
16,
1440,
316,
4007,
487,
434,
374,
3672,
23,
3657,
18,
2457,
326,
463,
11277,
2154,
16,
30013,
1026,
9820,
27121,
471,
16706,
3249,
18,
374,
3672,
1578,
21,
293,
1594,
313,
30,
3096,
7844,
1433,
1754,
310,
471,
3536,
628,
22538,
18,
13358,
1930,
9052,
11571,
628,
4707,
23310,
24,
18,
23310,
1930,
2238,
5711,
16,
2238,
780,
16,
2238,
2957,
16,
2238,
5711,
5653,
628,
10965,
18,
6587,
67,
11397,
1930,
11510,
74,
67,
869,
67,
53,
2957,
628,
31702,
18,
2284,
18,
40,
6582,
2
] |
res = self.timeshift(f, [4, 5], [0, 1], policy=P_NOVIRTUAL)
|
res = self.timeshift(f, [4, 5], [0, 1], policy=P_NOVIRTUAL, backendoptimize=True)
|
def f(a, b): d1 = hint(d, deepfreeze=True) return d1[a, b]
|
52a7c539d2f08b4c46d8d29e2af8987a0930bf21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/52a7c539d2f08b4c46d8d29e2af8987a0930bf21/test_timeshift.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
69,
16,
324,
4672,
302,
21,
273,
7380,
12,
72,
16,
4608,
29631,
33,
5510,
13,
327,
302,
21,
63,
69,
16,
324,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
69,
16,
324,
4672,
302,
21,
273,
7380,
12,
72,
16,
4608,
29631,
33,
5510,
13,
327,
302,
21,
63,
69,
16,
324,
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
] |
test = triangulation_test_case(elliptic(), grid_size, lazzy_normals=False)
|
test = triangulation_test_case(elliptic(), grid_size, lazy_normals=False)
|
def run(args): verbose = "--verbose" in args grid_size = (50, 40, 30) """ For this one, the iso-surface passes through points at corners of the map, e.g. (1, 1, 0). That makes it interesting for that corner vertex ends up being part of only one triangle which is degenerate and the normal associated to that vertex is therefore undefined """ test = triangulation_test_case(elliptic(), grid_size, lazzy_normals=False) test.run(iso_level=3, verbose=verbose) assert test.degenerate_edges == [(2973, 2912)] test = triangulation_test_case(elliptic(), grid_size, lazzy_normals=True) test.run(iso_level=2.9, verbose=verbose) assert test.degenerate_edges == [] test = triangulation_test_case(hyperbolic(), grid_size, lazzy_normals=True) test.run(iso_level=3, verbose=verbose) assert test.degenerate_edges == [] test = triangulation_test_case(sinusoidal(), grid_size, lazzy_normals=False) test.run(iso_level=3, verbose=verbose) assert test.degenerate_edges == [] print format_cpu_times()
|
a856525aec7b6ad926456049bd8ac6baa89f0a53 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/a856525aec7b6ad926456049bd8ac6baa89f0a53/tst_iso_surface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1968,
4672,
3988,
273,
5238,
11369,
6,
316,
833,
3068,
67,
1467,
273,
261,
3361,
16,
8063,
16,
5196,
13,
225,
3536,
2457,
333,
1245,
16,
326,
8702,
17,
18266,
11656,
3059,
3143,
622,
18398,
434,
326,
852,
16,
425,
18,
75,
18,
261,
21,
16,
404,
16,
374,
2934,
12466,
7297,
518,
26122,
364,
716,
11055,
5253,
3930,
731,
3832,
1087,
434,
1338,
1245,
15002,
1492,
353,
443,
7163,
471,
326,
2212,
3627,
358,
716,
5253,
353,
13526,
3109,
3536,
1842,
273,
6882,
539,
6234,
67,
3813,
67,
3593,
12,
292,
549,
21507,
9334,
3068,
67,
1467,
16,
7962,
67,
7959,
1031,
33,
8381,
13,
1842,
18,
2681,
12,
9699,
67,
2815,
33,
23,
16,
3988,
33,
11369,
13,
1815,
1842,
18,
323,
7163,
67,
8746,
422,
306,
12,
5540,
9036,
16,
12899,
2138,
25887,
225,
1842,
273,
6882,
539,
6234,
67,
3813,
67,
3593,
12,
292,
549,
21507,
9334,
3068,
67,
1467,
16,
328,
3638,
93,
67,
7959,
1031,
33,
5510,
13,
1842,
18,
2681,
12,
9699,
67,
2815,
33,
22,
18,
29,
16,
3988,
33,
11369,
13,
1815,
1842,
18,
323,
7163,
67,
8746,
422,
5378,
225,
1842,
273,
6882,
539,
6234,
67,
3813,
67,
3593,
12,
17203,
70,
1415,
9334,
3068,
67,
1467,
16,
328,
3638,
93,
67,
7959,
1031,
33,
5510,
13,
1842,
18,
2681,
12,
9699,
67,
2815,
33,
23,
16,
3988,
33,
11369,
13,
1815,
1842,
18,
323,
7163,
67,
8746,
422,
5378,
225,
1842,
273,
6882,
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,
1968,
4672,
3988,
273,
5238,
11369,
6,
316,
833,
3068,
67,
1467,
273,
261,
3361,
16,
8063,
16,
5196,
13,
225,
3536,
2457,
333,
1245,
16,
326,
8702,
17,
18266,
11656,
3059,
3143,
622,
18398,
434,
326,
852,
16,
425,
18,
75,
18,
261,
21,
16,
404,
16,
374,
2934,
12466,
7297,
518,
26122,
364,
716,
11055,
5253,
3930,
731,
3832,
1087,
434,
1338,
1245,
15002,
1492,
353,
443,
7163,
471,
326,
2212,
3627,
358,
716,
5253,
353,
13526,
3109,
3536,
1842,
273,
6882,
539,
6234,
67,
3813,
67,
3593,
12,
292,
549,
21507,
9334,
3068,
67,
1467,
16,
7962,
67,
7959,
1031,
33,
8381,
13,
1842,
18,
2681,
12,
9699,
67,
2815,
33,
23,
16,
2
] |
print("{0} Shownotes scaned. {1} Trackback links discovered. {2} skipped. {3} failed to use. {4} ignored".\
|
print("{0} Shownotes scaned. {4} ignored. {1} Trackback links discovered. {2} skipped. {3} failed to use.".\
|
def main(): log = "" links_count, tb_count, skip_count, error_count, ign_count = 0, 0, 0, 0, 0 git_test = getoutput("git log --format=%n") if "fatal" in git_test or "--format" in git_test: print("ERROR: your git version is to old.") os.system("git --version") exit(1) if not os.path.exists("cweb.git"): print("* no c3d2-web git repository found") os.mkdir("cweb.git") git("init") git("remote add web git://194.77.75.60/c3d2-web/git.git") if git("fetch web master") == 0: git("branch --track master FETCH_HEAD") print("* get filenames from log") log = git("log --name-only --format=%n",1) else: print("* an error occured during fetch") exit(1) else: print("* fetching updates") createbranch = "master" not in git("branch",1) if createbranch: print("* guessing error at initial fetch") fulllog, old = False, "" else: fulllog, old = git("log -1 --format=%h",2) fulllog = fulllog != 0 if not fulllog: print("* current revision is",old) else: print("* no revisions available") if git("fetch web master") != 0: print("* an error occured during fetch") exit(1) if createbranch: git("branch --track master FETCH_HEAD") git("update-ref HEAD FETCH_HEAD") new = git("log -1 --format=%h",1) if not fulllog: print("* fetched revision is",new) if old != new or fulllog: print("* get filenames from log") if fulllog:log = git("log --name-only --format=%n",1) else: log = git("log --name-only --format=%n {0}..{1}".\ format(old,new),1) else: print("* no new updates") if not update_all: exit() while "\n\n" in log: log = log.replace("\n\n","\n").split("\n") files = [] for line in log: m = re_news.match(line) if m is not None: filename = m.group('file') if filename not in files: files.append(filename) if files: print("* load files from git") git("checkout --merge master -- "+" ".join(files)) else: files = list(map(lambda fn:"content/news/"+fn, os.listdir("content/news/"))) for filename in files: if debug: print("* try to add to db: ",filename) data = load_file(filename) else: try: data = load_file(filename) except: data = None print("\033[31m* errör during parsing: ",filename,"\033[m") if data: olds = Episode.find().filter_by(filename = filename).all() for old in olds: try: File.find().filter_by(episode = old.id).delete() Link.find().filter_by(episode = old.id).delete() except Exception as e: print("\033[31merrör 1:\033[m",e) episode = Episode(filename=filename, **data['episode']) episode.save() if olds: for old in olds: try: Comment.find().filter_by(episode=old.id).update({'episode':episode.id}) Episode.find().filter_by(id = old.id).delete() except Exception as e: print("\033[31merrör 2:\033[m",e) print("\033[32m* update db: ",filename,"\033[m") else: print("\033[32m* add to db: ",filename,"\033[m") list(map(lambda kwargs: File(episode=episode.id, **kwargs).add(), data['files'])) list(map(lambda kwargs: Link(episode=episode.id, **kwargs).add(), data['links'])) if trackback: links_count += len(data['links']) pb = Progressbar(0, len(data['links']), 42, True) for n, linkdata in enumerate(data['links']): link = linkdata['url'] blacklisted = False for site in blacklist: if site in link: blacklisted = True break if not blacklisted: pb.update(n, link) used = ShownoteTrackback.find().filter_by(url = link).count() if not blacklisted and not used: response = trackback_client(link, pentamediaportal+"/{0}/{1}".\ format(episode.category, episode.link), title = episode.name, excerpt = episode.short ) if response: response = response.replace(" ","") response = response.replace("\n","") response = response.lower() print(link, response) tb_count += 1 if "<error>0</error>" in response: ShownoteTrackback( filename = filename, url = link).add() else: error_count += 1 else: tb_count += 1 if blacklisted: ign_count += 1 else: skip_count += 1 if not blacklisted: pb.draw() pb.clear() session().commit() if trackback: print("{0} Shownotes scaned. {1} Trackback links discovered. {2} skipped. {3} failed to use. {4} ignored".\ format(links_count, tb_count, skip_count, error_count, ign_count)) print("done.")
|
619b6c6a979803fe95d24700dc33536569665d8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11349/619b6c6a979803fe95d24700dc33536569665d8b/cwebfetcher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
613,
273,
1408,
4716,
67,
1883,
16,
8739,
67,
1883,
16,
2488,
67,
1883,
16,
555,
67,
1883,
16,
9750,
67,
1883,
273,
374,
16,
374,
16,
374,
16,
374,
16,
374,
225,
5071,
67,
3813,
273,
336,
2844,
2932,
6845,
613,
1493,
2139,
5095,
82,
7923,
309,
315,
30709,
6,
316,
5071,
67,
3813,
578,
5238,
2139,
6,
316,
5071,
67,
3813,
30,
1172,
2932,
3589,
30,
3433,
5071,
1177,
353,
358,
1592,
1199,
13,
1140,
18,
4299,
2932,
6845,
1493,
1589,
7923,
2427,
12,
21,
13,
225,
309,
486,
1140,
18,
803,
18,
1808,
2932,
71,
4875,
18,
6845,
6,
4672,
1172,
2932,
14,
1158,
276,
23,
72,
22,
17,
4875,
5071,
3352,
1392,
7923,
1140,
18,
26686,
2932,
71,
4875,
18,
6845,
7923,
5071,
2932,
2738,
7923,
5071,
2932,
7222,
527,
3311,
5071,
2207,
15613,
18,
4700,
18,
5877,
18,
4848,
19,
71,
23,
72,
22,
17,
4875,
19,
6845,
18,
6845,
7923,
309,
5071,
2932,
5754,
3311,
4171,
7923,
422,
374,
30,
5071,
2932,
7500,
1493,
4101,
4171,
10994,
67,
12458,
7923,
1172,
2932,
14,
336,
9066,
628,
613,
7923,
613,
273,
5071,
2932,
1330,
1493,
529,
17,
3700,
1493,
2139,
5095,
82,
3113,
21,
13,
469,
30,
1172,
2932,
14,
392,
555,
16206,
4982,
2158,
7923,
2427,
12,
21,
13,
469,
30,
1172,
2932,
14,
16191,
4533,
7923,
752,
7500,
273,
315,
7525,
6,
486,
316,
5071,
2932,
7500,
3113,
21,
13,
309,
752,
7500,
30,
1172,
2932,
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,
2774,
13332,
613,
273,
1408,
4716,
67,
1883,
16,
8739,
67,
1883,
16,
2488,
67,
1883,
16,
555,
67,
1883,
16,
9750,
67,
1883,
273,
374,
16,
374,
16,
374,
16,
374,
16,
374,
225,
5071,
67,
3813,
273,
336,
2844,
2932,
6845,
613,
1493,
2139,
5095,
82,
7923,
309,
315,
30709,
6,
316,
5071,
67,
3813,
578,
5238,
2139,
6,
316,
5071,
67,
3813,
30,
1172,
2932,
3589,
30,
3433,
5071,
1177,
353,
358,
1592,
1199,
13,
1140,
18,
4299,
2932,
6845,
1493,
1589,
7923,
2427,
12,
21,
13,
225,
309,
486,
1140,
18,
803,
18,
1808,
2932,
71,
4875,
18,
6845,
6,
4672,
1172,
2932,
14,
1158,
276,
23,
72,
22,
17,
4875,
5071,
3352,
1392,
2
] |
raise IOError, "link could not be created"
|
raise IOError("link could not be created")
|
def makelink(self, tarinfo, targetpath): """Make a (symbolic) link called targetpath. If it cannot be created (platform limitation), we try to make a copy of the referenced file instead of a link. """ linkpath = tarinfo.linkname try: if tarinfo.issym(): os.symlink(linkpath, targetpath) else: # See extract(). os.link(tarinfo._link_target, targetpath) except AttributeError: if tarinfo.issym(): linkpath = os.path.join(os.path.dirname(tarinfo.name), linkpath) linkpath = normpath(linkpath)
|
b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
27269,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
6464,
279,
261,
9009,
12164,
13,
1692,
2566,
1018,
803,
18,
971,
518,
2780,
506,
2522,
261,
9898,
17732,
3631,
732,
775,
358,
1221,
279,
1610,
434,
326,
8042,
585,
3560,
434,
279,
1692,
18,
3536,
1692,
803,
273,
8232,
1376,
18,
1232,
529,
775,
30,
309,
8232,
1376,
18,
1054,
2942,
13332,
1140,
18,
21278,
12,
1232,
803,
16,
1018,
803,
13,
469,
30,
468,
2164,
2608,
7675,
1140,
18,
1232,
12,
11718,
1376,
6315,
1232,
67,
3299,
16,
1018,
803,
13,
1335,
6394,
30,
309,
8232,
1376,
18,
1054,
2942,
13332,
1692,
803,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
11718,
1376,
18,
529,
3631,
1692,
803,
13,
1692,
803,
273,
20446,
12,
1232,
803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
27269,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
6464,
279,
261,
9009,
12164,
13,
1692,
2566,
1018,
803,
18,
971,
518,
2780,
506,
2522,
261,
9898,
17732,
3631,
732,
775,
358,
1221,
279,
1610,
434,
326,
8042,
585,
3560,
434,
279,
1692,
18,
3536,
1692,
803,
273,
8232,
1376,
18,
1232,
529,
775,
30,
309,
8232,
1376,
18,
1054,
2942,
13332,
1140,
18,
21278,
12,
1232,
803,
16,
1018,
803,
13,
469,
30,
468,
2164,
2608,
7675,
1140,
18,
1232,
12,
11718,
1376,
6315,
1232,
67,
3299,
16,
1018,
803,
13,
1335,
6394,
30,
309,
8232,
1376,
18,
1054,
2942,
13332,
1692,
803,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
2
] |
orderer.RpmRelations relations to start of list.
|
orderer.RpmRelations relations to start of list2.
|
def separatePostLeafNodes(self, list): """Move topologically sorted "trailing" packages from orderer.RpmRelations relations to start of list.
|
e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9004,
3349,
9858,
3205,
12,
2890,
16,
666,
4672,
3536,
7607,
1760,
3966,
6478,
3115,
315,
26453,
6,
5907,
628,
29843,
18,
54,
7755,
10666,
7467,
358,
787,
434,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9004,
3349,
9858,
3205,
12,
2890,
16,
666,
4672,
3536,
7607,
1760,
3966,
6478,
3115,
315,
26453,
6,
5907,
628,
29843,
18,
54,
7755,
10666,
7467,
358,
787,
434,
666,
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
] |
if pos >= len(record.list): loops+=1 pos = 0
|
def getNextRecordedData(self, record): if len(record.list) == 0: return (None, 0.1) notfound = True pos = record.playbackposition loops=0 pos += 1 while True: if record.list[pos].command in [MSG2_VEHICLE_DATA]: # , MSG2_CHAT break else: self.logger.debug("command not suitable, left out: %s" % commandNames[record.list[pos].command]) pos += 1 if pos >= len(record.list): loops+=1 pos = 0 if loops > 2: # would loop forever otherwise self.runCond=False return record.playbackposition = pos #self.logger.debug("played back position %d" % pos) packet = record.list[pos] nextpos = pos+1 t = 0.2 if nextpos >= len(record.list): nextpos = 0 t = 2 nextpacket = record.list[nextpos] if nextpos < len(record.list): t = nextpacket.time - packet.time if t > 1: t = 0.2 if t < 0: t = 1
|
0820ccc07825ea805377bac81051b53ca9fce439 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5557/0820ccc07825ea805377bac81051b53ca9fce439/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6927,
426,
3850,
785,
751,
12,
2890,
16,
1409,
4672,
309,
562,
12,
3366,
18,
1098,
13,
422,
374,
30,
327,
261,
7036,
16,
374,
18,
21,
13,
486,
7015,
273,
1053,
949,
273,
1409,
18,
1601,
823,
3276,
14075,
33,
20,
949,
1011,
404,
1323,
1053,
30,
309,
1409,
18,
1098,
63,
917,
8009,
3076,
316,
306,
11210,
22,
67,
3412,
44,
2871,
900,
67,
4883,
14542,
468,
269,
13771,
22,
67,
1792,
789,
898,
469,
30,
365,
18,
4901,
18,
4148,
2932,
3076,
486,
10631,
16,
2002,
596,
30,
738,
87,
6,
225,
738,
1296,
1557,
63,
3366,
18,
1098,
63,
917,
8009,
3076,
5717,
949,
1011,
404,
309,
14075,
405,
576,
30,
468,
4102,
2798,
21238,
3541,
365,
18,
2681,
12441,
33,
8381,
327,
1409,
18,
1601,
823,
3276,
273,
949,
468,
2890,
18,
4901,
18,
4148,
2932,
1601,
329,
1473,
1754,
738,
72,
6,
738,
949,
13,
4414,
273,
1409,
18,
1098,
63,
917,
65,
225,
1024,
917,
273,
949,
15,
21,
268,
273,
374,
18,
22,
309,
1024,
917,
1545,
562,
12,
3366,
18,
1098,
4672,
1024,
917,
273,
374,
268,
273,
576,
225,
1024,
11482,
273,
1409,
18,
1098,
63,
4285,
917,
65,
309,
1024,
917,
411,
562,
12,
3366,
18,
1098,
4672,
268,
273,
1024,
11482,
18,
957,
300,
4414,
18,
957,
225,
309,
268,
405,
404,
30,
268,
273,
374,
18,
22,
309,
268,
411,
374,
30,
268,
273,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6927,
426,
3850,
785,
751,
12,
2890,
16,
1409,
4672,
309,
562,
12,
3366,
18,
1098,
13,
422,
374,
30,
327,
261,
7036,
16,
374,
18,
21,
13,
486,
7015,
273,
1053,
949,
273,
1409,
18,
1601,
823,
3276,
14075,
33,
20,
949,
1011,
404,
1323,
1053,
30,
309,
1409,
18,
1098,
63,
917,
8009,
3076,
316,
306,
11210,
22,
67,
3412,
44,
2871,
900,
67,
4883,
14542,
468,
269,
13771,
22,
67,
1792,
789,
898,
469,
30,
365,
18,
4901,
18,
4148,
2932,
3076,
486,
10631,
16,
2002,
596,
30,
738,
87,
6,
225,
738,
1296,
1557,
63,
3366,
18,
1098,
63,
917,
8009,
3076,
5717,
949,
1011,
404,
309,
14075,
405,
576,
30,
468,
4102,
2798,
2
] |
|
print"<!-- $Revision: 1.29 $ -->" print"<!-- $Date: 2004/11/28 17:31:34 $ -->"
|
print"<!-- $Revision: 1.30 $ -->" print"<!-- $Date: 2004/12/02 01:02:48 $ -->"
|
def printHeader(linein): global styleSheet, inlineStyle print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">" print "<html><head><title>" + linein + "</title>" print"<!-- $Revision: 1.29 $ -->" print"<!-- $Date: 2004/11/28 17:31:34 $ -->" print"<!-- $Author: noel $ -->" file = open(styleSheet,"r") if (styleSheet != "" and inlineStyle == 0): print "<link href=\"" + styleSheet + "\" rel=\"stylesheet\" type=\"text/css\">" if (styleSheet != "" and inlineStyle == 1): print "<style type=\"text/css\">" csslinein = file.readline() while csslinein != "": print csslinein, csslinein = file.readline() file.close() print "</style></head>" print "<body>" print "<div class=\"DocTitle\">" print "<h1>" + rstrip(lstrip(linein)) +"</h1>" print "</div>" print "<div class=\"MainPage\">"
|
fc16136abe0e486a37c93cf3944efd4ef14901d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/fc16136abe0e486a37c93cf3944efd4ef14901d9/otl2html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1864,
12,
1369,
267,
4672,
2552,
2154,
8229,
16,
6370,
2885,
1172,
3532,
5,
29824,
3982,
17187,
1239,
17,
759,
59,
23,
39,
759,
25728,
3982,
1059,
18,
1611,
759,
1157,
2412,
1239,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
2620,
24,
19,
13948,
18,
31834,
21121,
1172,
3532,
2620,
4438,
1978,
4438,
2649,
2984,
397,
980,
267,
397,
6823,
2649,
2984,
1172,
6,
5586,
413,
225,
271,
7939,
30,
404,
18,
5082,
271,
1493,
2984,
1172,
6,
5586,
413,
225,
271,
1626,
30,
4044,
24,
19,
2138,
19,
3103,
8743,
30,
3103,
30,
8875,
271,
1493,
2984,
1172,
6,
5586,
413,
225,
271,
3594,
30,
1158,
292,
271,
1493,
2984,
585,
273,
1696,
12,
4060,
8229,
10837,
86,
7923,
309,
261,
4060,
8229,
480,
1408,
471,
6370,
2885,
422,
374,
4672,
1172,
3532,
1232,
3897,
13186,
397,
2154,
8229,
397,
7023,
1279,
5189,
19403,
2412,
618,
5189,
955,
19,
5212,
21121,
309,
261,
4060,
8229,
480,
1408,
471,
6370,
2885,
422,
404,
4672,
1172,
3532,
4060,
618,
5189,
955,
19,
5212,
21121,
3747,
1369,
267,
273,
585,
18,
896,
1369,
1435,
1323,
3747,
1369,
267,
480,
1408,
30,
1172,
3747,
1369,
267,
16,
3747,
1369,
267,
273,
585,
18,
896,
1369,
1435,
585,
18,
4412,
1435,
1172,
6823,
4060,
4695,
1978,
2984,
1172,
3532,
3432,
2984,
1172,
3532,
2892,
667,
5189,
1759,
4247,
21121,
1172,
3532,
76,
21,
2984,
397,
10947,
12,
80,
6406,
12,
1369,
267,
3719,
397,
6,
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,
1172,
1864,
12,
1369,
267,
4672,
2552,
2154,
8229,
16,
6370,
2885,
1172,
3532,
5,
29824,
3982,
17187,
1239,
17,
759,
59,
23,
39,
759,
25728,
3982,
1059,
18,
1611,
759,
1157,
2412,
1239,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
2620,
24,
19,
13948,
18,
31834,
21121,
1172,
3532,
2620,
4438,
1978,
4438,
2649,
2984,
397,
980,
267,
397,
6823,
2649,
2984,
1172,
6,
5586,
413,
225,
271,
7939,
30,
404,
18,
5082,
271,
1493,
2984,
1172,
6,
5586,
413,
225,
271,
1626,
30,
4044,
24,
19,
2138,
19,
3103,
8743,
30,
3103,
30,
8875,
271,
1493,
2984,
1172,
6,
5586,
413,
225,
271,
3594,
30,
1158,
292,
271,
1493,
2984,
585,
273,
2
] |
EXECVE_WRAPPER = """\ import os from sys import argv, executable resources = os.path.join(os.path.dirname(os.path.dirname(argv[0])), "Resources") mainprogram = os.path.join(resources, "%(mainprogram)s") assert os.path.exists(mainprogram) argv.insert(1, mainprogram) os.environ["PYTHONPATH"] = resources %(setexecutable)s os.execve(executable, argv, os.environ)
|
BOOTSTRAP_SCRIPT = """\ execdir=$(dirname ${0}) executable=${execdir}/%(executable)s resdir=$(dirname ${execdir})/Resources main=${resdir}/%(mainprogram)s PYTHONPATH=$resdir export PYTHONPATH exec ${executable} ${main} ${1}
|
def report(self): # XXX something decent import pprint pprint.pprint(self.__dict__)
|
16e4a168d924c411e3864ddc6a8fc757a465a6a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/16e4a168d924c411e3864ddc6a8fc757a465a6a6/bundlebuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2890,
4672,
468,
11329,
5943,
2109,
319,
1930,
18771,
18771,
18,
84,
1188,
12,
2890,
16186,
1576,
972,
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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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,
2605,
12,
2890,
4672,
468,
11329,
5943,
2109,
319,
1930,
18771,
18771,
18,
84,
1188,
12,
2890,
16186,
1576,
972,
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
] |
x |--> x^2 - 2
|
x^2 - 2
|
def equify(f, variables = None): """ Returns the equation rewritten as a symbolic function to give negative values when True, positive when False. EXAMPLES:: sage: from sage.plot.contour_plot import equify sage: var('x, y') (x, y) sage: equify(x^2 < 2) x |--> x^2 - 2 sage: equify(x^2 > 2) x |--> -x^2 + 2 sage: equify(x*y > 1) (x, y) |--> -x*y + 1 sage: equify(y > 0, (x,y)) (x, y) |--> -y """ import operator from sage.calculus.all import symbolic_expression op = f.operator() if variables == None: variables = f.variables() if op is operator.gt or op is operator.ge: s = symbolic_expression(f.rhs() - f.lhs()).function(*variables) return s else: s = symbolic_expression(f.lhs() - f.rhs()).function(*variables) return s
|
d4235734e2435a6828f66583a85001debae436ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d4235734e2435a6828f66583a85001debae436ae/contour_plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1298,
1164,
12,
74,
16,
3152,
273,
599,
4672,
3536,
2860,
326,
15778,
26768,
487,
279,
16754,
445,
358,
8492,
6092,
924,
1347,
1053,
16,
6895,
1347,
1083,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4032,
18,
1213,
477,
67,
4032,
1930,
1298,
1164,
272,
410,
30,
569,
2668,
92,
16,
677,
6134,
261,
92,
16,
677,
13,
272,
410,
30,
1298,
1164,
12,
92,
66,
22,
411,
576,
13,
619,
66,
22,
300,
576,
272,
410,
30,
1298,
1164,
12,
92,
66,
22,
405,
576,
13,
619,
571,
413,
34,
300,
92,
66,
22,
397,
576,
272,
410,
30,
1298,
1164,
12,
92,
14,
93,
405,
404,
13,
261,
92,
16,
677,
13,
571,
413,
34,
300,
92,
14,
93,
397,
404,
272,
410,
30,
1298,
1164,
12,
93,
405,
374,
16,
261,
92,
16,
93,
3719,
261,
92,
16,
677,
13,
571,
413,
34,
300,
93,
3536,
1930,
3726,
628,
272,
410,
18,
12780,
407,
18,
454,
1930,
16754,
67,
8692,
1061,
273,
284,
18,
9497,
1435,
309,
3152,
422,
599,
30,
3152,
273,
284,
18,
7528,
1435,
225,
309,
1061,
353,
3726,
18,
4521,
578,
1061,
353,
3726,
18,
908,
30,
272,
273,
16754,
67,
8692,
12,
74,
18,
86,
4487,
1435,
300,
284,
18,
80,
4487,
1435,
2934,
915,
30857,
7528,
13,
327,
272,
469,
30,
272,
273,
16754,
67,
8692,
12,
74,
18,
80,
4487,
1435,
300,
284,
18,
86,
4487,
1435,
2934,
915,
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,
1298,
1164,
12,
74,
16,
3152,
273,
599,
4672,
3536,
2860,
326,
15778,
26768,
487,
279,
16754,
445,
358,
8492,
6092,
924,
1347,
1053,
16,
6895,
1347,
1083,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4032,
18,
1213,
477,
67,
4032,
1930,
1298,
1164,
272,
410,
30,
569,
2668,
92,
16,
677,
6134,
261,
92,
16,
677,
13,
272,
410,
30,
1298,
1164,
12,
92,
66,
22,
411,
576,
13,
619,
66,
22,
300,
576,
272,
410,
30,
1298,
1164,
12,
92,
66,
22,
405,
576,
13,
619,
571,
413,
34,
300,
92,
66,
22,
397,
576,
272,
410,
30,
1298,
1164,
12,
92,
14,
93,
405,
404,
13,
261,
92,
2
] |
return "Linear 2nd order recurrence, a(n) = 4 a(n-1) + 3 a(n-2)." def _precompute(self, how_many=50): try: f = self._f except AttributeError: self._f = recur_gen2(0,1,4,3) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) return self._b[n] def list(self, n): self._eval(n) return self._b[:n] class A015531(SloaneSequence): r""" Linear 2nd order recurrence, $a(0)=0$, $a(1)=1$ and $a(n) = 4 a(n-1) + 5 a(n-2)$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A015531;a Linear 2nd order recurrence, a(n) = 4 a(n-1) + 5 a(n-2). sage: a(0) 0 sage: a(1) 1 sage: a(2) 4 sage: a.offset 0 sage: a(8) 65104 sage: a(60) 144560289664733924534327040115992228190104 sage: a.list(9) [0, 1, 4, 21, 104, 521, 2604, 13021, 65104] AUTHOR: -- Jaap Spies (2007-01-19) """ def __init__(self):
|
""" EXAMPLES: sage: sloane.A015531._repr_() 'Linear 2nd order recurrence, a(n) = 4 a(n-1) + 5 a(n-2).' """ return "Linear 2nd order recurrence, a(n) = 4 a(n-1) + 5 a(n-2)." class A015551(RecurrenceSequence2): def __init__(self): r""" Linear 2nd order recurrence, $a(0)=0$, $a(1)=1$ and $a(n) = 6 a(n-1) + 5 a(n-2)$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A015551;a Linear 2nd order recurrence, a(n) = 6 a(n-1) + 5 a(n-2). sage: a(0) 0 sage: a(1) 1 sage: a(2) 6 sage: a.offset 0 sage: a(8) 570216 sage: a(60) 7110606606530059736761484557155863822531970573036 sage: a.list(9) [0, 1, 6, 41, 276, 1861, 12546, 84581, 570216] AUTHOR: -- Jaap Spies (2007-01-19) """
|
def _repr_(self): return "Linear 2nd order recurrence, a(n) = 4 a(n-1) + 3 a(n-2)."
|
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
15982,
576,
4880,
1353,
25939,
16,
279,
12,
82,
13,
273,
1059,
279,
12,
82,
17,
21,
13,
397,
890,
279,
12,
82,
17,
22,
14944,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
15982,
576,
4880,
1353,
25939,
16,
279,
12,
82,
13,
273,
1059,
279,
12,
82,
17,
21,
13,
397,
890,
279,
12,
82,
17,
22,
14944,
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
] |
client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, CALENDAR), body=body, headers={ 'Depth': '1' })
|
client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, CALENDAR), body=body, headers={ 'Content-Type':'text/xml', 'Depth': '1' })
|
def test_timerangequery_invalid_not_utc_5(): body = open(FILES_DIR+'reports/timerangequery/invalid_nonUTC5.xml').read() client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, CALENDAR), body=body, headers={ 'Depth': '1' }) assert client.response.status == 400
|
0eb233b34e19f3cc4572957bdd4dfc9d1e2048e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9939/0eb233b34e19f3cc4572957bdd4dfc9d1e2048e1/test_reports_with_float.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12542,
726,
2271,
67,
5387,
67,
902,
67,
17892,
67,
25,
13332,
1417,
273,
1696,
12,
12669,
67,
4537,
6797,
20195,
19,
12542,
726,
2271,
19,
5387,
67,
5836,
11471,
25,
18,
2902,
16063,
896,
1435,
1004,
6315,
2293,
2668,
22710,
2187,
1995,
87,
5258,
87,
11,
738,
261,
8025,
23213,
2579,
1013,
67,
17735,
67,
4211,
16,
6425,
900,
29154,
3631,
1417,
33,
3432,
16,
1607,
5899,
296,
1350,
17,
559,
11,
2497,
955,
19,
2902,
2187,
296,
6148,
4278,
296,
21,
11,
289,
13,
1815,
1004,
18,
2740,
18,
2327,
422,
7409,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12542,
726,
2271,
67,
5387,
67,
902,
67,
17892,
67,
25,
13332,
1417,
273,
1696,
12,
12669,
67,
4537,
6797,
20195,
19,
12542,
726,
2271,
19,
5387,
67,
5836,
11471,
25,
18,
2902,
16063,
896,
1435,
1004,
6315,
2293,
2668,
22710,
2187,
1995,
87,
5258,
87,
11,
738,
261,
8025,
23213,
2579,
1013,
67,
17735,
67,
4211,
16,
6425,
900,
29154,
3631,
1417,
33,
3432,
16,
1607,
5899,
296,
1350,
17,
559,
11,
2497,
955,
19,
2902,
2187,
296,
6148,
4278,
296,
21,
11,
289,
13,
1815,
1004,
18,
2740,
18,
2327,
422,
7409,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._conn[CONN_INTERFACE_PRESENCE].RequestPresence(subscribe_handles)
|
if CONN_INTERFACE_PRESENCE in self._conn: m = self._conn[CONN_INTERFACE_PRESENCE].connect_to_signal( 'PresenceUpdate', self._presence_update_cb) self._matches.append(m) self._conn[CONN_INTERFACE_PRESENCE].RequestPresence( subscribe_handles) else: _logger.warning('%s does not support Connection.Interface.' 'Presence', self._conn.object_path)
|
def _connected_cb(self): """Callback on successful connection to a server """ # FIXME: cope with CMs that lack some of the interfaces # FIXME: cope with CMs with no 'publish' or 'subscribe'
|
8afd4a76072c953759af1010f27c239eba3da0cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3113/8afd4a76072c953759af1010f27c239eba3da0cd/telepathy_plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389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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,
389,
8537,
67,
7358,
12,
2890,
4672,
3536,
2428,
603,
6873,
1459,
358,
279,
1438,
3536,
468,
9852,
30,
276,
1306,
598,
385,
6947,
716,
30679,
2690,
434,
326,
7349,
468,
9852,
30,
276,
1306,
598,
385,
6947,
598,
1158,
296,
6543,
11,
578,
296,
9174,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"--title='Cumulative C-H bond length distribution'", "--xlabel='C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency",
|
"--title=Cumulative C-H bond length distribution", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency",
|
def test_df(self): self.from_xyz("thf01", "pos") self.from_cp2k_ener("thf01") self.execute("tr-ic-psf", ['tracks/atom.pos', 'bond', '1,2,3,4', '5,6,7,8,9,10,11,12', os.path.join(input_dir, "thf01/init.psf")]) # ordinary df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.df"]) df_hist = load_track("tracks/atom.pos.bond.df.hist") self.assertAlmostEqual(df_hist.sum(), 1.0, 2) self.execute("tr-plot", [ "--title='C-H bond length distribution'", "--xlabel='C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.hist", os.path.join(output_dir, "df_noerror.png"), ]) # cumulative df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["-c", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.cdf"]) cdf_hist = load_track("tracks/atom.pos.bond.cdf.hist") self.assertAlmostEqual(cdf_hist[-1], 1.0, 2) self.execute("tr-plot", [ "--title='Cumulative C-H bond length distribution'", "--xlabel='C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.cdf.bins", "tracks/atom.pos.bond.cdf.hist", os.path.join(output_dir, "df_cumul_noerror.png"), ]) # ordinary df, with error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.df"]) lines = [] for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.df.bin.???????")): output = self.execute("tr-blav", [bin_filename, "tracks/time", "-b10"]) lines.append(output[0]) self.execute("tr-write", ["tracks/atom.pos.bond.df.hist", "tracks/atom.pos.bond.df.hist.error"], stdin=lines) df_hist_bis = load_track("tracks/atom.pos.bond.df.hist") self.assertAlmostEqual(df_hist_bis.sum(), 1.0, 2) self.assertArraysAlmostEqual(df_hist, df_hist_bis, 1e-5) self.execute("tr-plot", [ "--title='C-H bond length distribution'", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.hist", "tracks/atom.pos.bond.df.hist.error", os.path.join(output_dir, "df_error.png"), ]) # cumulative df, with error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["-c", "--bin-tracks", "1.0*A", "1.2*A", "20", "tracks/atom.pos.bond.cdf"]) lines = [] for bin_filename in sorted(glob.glob("tracks/atom.pos.bond.cdf.bin.???????")): output = self.execute("tr-blav", [bin_filename, "tracks/time", "-b10"]) lines.append(output[0]) self.execute("tr-write", ["tracks/atom.pos.bond.cdf.hist", "tracks/atom.pos.bond.cdf.hist.error"], stdin=lines) cdf_hist_bis = load_track("tracks/atom.pos.bond.cdf.hist") self.assertAlmostEqual(cdf_hist_bis[-1], 1.0, 2) self.assertArraysAlmostEqual(cdf_hist, cdf_hist_bis, 1e-5) self.execute("tr-plot", [ "--title='C-H bond length distribution'", "--xlabel=C-H Distance", "--xunit=A", "--yunit=1", "--ylabel=Frequency", ":bar", "tracks/atom.pos.bond.cdf.bins", "tracks/atom.pos.bond.cdf.hist", "tracks/atom.pos.bond.cdf.hist.error", os.path.join(output_dir, "df_cumul_error.png"), ])
|
d5a077734d4b0c5a3fbddf6c66de01cad46658ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11050/d5a077734d4b0c5a3fbddf6c66de01cad46658ff/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
8837,
2932,
313,
17,
335,
17,
1121,
74,
3113,
10228,
21499,
19,
7466,
18,
917,
2187,
296,
26425,
2187,
296,
21,
16,
22,
16,
23,
16,
24,
2187,
296,
25,
16,
26,
16,
27,
16,
28,
16,
29,
16,
2163,
16,
2499,
16,
2138,
2187,
1140,
18,
803,
18,
5701,
12,
2630,
67,
1214,
16,
315,
451,
74,
1611,
19,
2738,
18,
1121,
74,
7923,
5717,
468,
4642,
2101,
3013,
16,
1158,
555,
22252,
365,
18,
8837,
2932,
313,
17,
2180,
3113,
4715,
18,
10581,
2932,
21499,
19,
7466,
18,
917,
18,
26425,
18,
14646,
14646,
14646,
35,
18,
14646,
14646,
14646,
7225,
13,
397,
8247,
21,
18,
20,
14,
37,
3113,
315,
21,
18,
22,
14,
37,
3113,
315,
3462,
3113,
315,
21499,
19,
7466,
18,
917,
18,
26425,
18,
2180,
6,
5717,
3013,
67,
11488,
273,
1262,
67,
4101,
2932,
21499,
19,
7466,
18,
917,
18,
26425,
18,
2180,
18,
11488,
7923,
365,
18,
11231,
1067,
10329,
5812,
12,
2180,
67,
11488,
18,
1364,
9334,
404,
18,
20,
16,
576,
13,
365,
18,
8837,
2932,
313,
17,
4032,
3113,
306,
5238,
2649,
2218,
39,
17,
44,
8427,
769,
7006,
11,
3113,
5238,
19909,
2218,
39,
17,
44,
20335,
3113,
5238,
92,
4873,
33,
37,
3113,
5238,
93,
4873,
33,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
8837,
2932,
313,
17,
335,
17,
1121,
74,
3113,
10228,
21499,
19,
7466,
18,
917,
2187,
296,
26425,
2187,
296,
21,
16,
22,
16,
23,
16,
24,
2187,
296,
25,
16,
26,
16,
27,
16,
28,
16,
29,
16,
2163,
16,
2499,
16,
2138,
2187,
1140,
18,
803,
18,
5701,
12,
2630,
67,
1214,
16,
315,
451,
74,
1611,
19,
2738,
18,
1121,
74,
7923,
5717,
468,
4642,
2101,
3013,
16,
1158,
555,
22252,
365,
18,
8837,
2932,
313,
17,
2180,
3113,
4715,
2
] |
indx = self.learners.index(learner)
|
indx = [l.id for l in self.learners].index(learner.id)
|
def test(self, learner=None): # testing if self.results and learner: learners = [learner] else: learners = self.learnDict.values() if not learners: return
|
4a5d0b6408fb255b8754ad2849a498c83b9e6cc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/4a5d0b6408fb255b8754ad2849a498c83b9e6cc3/OWTestLearners.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
16,
884,
24834,
33,
7036,
4672,
468,
7769,
309,
365,
18,
4717,
471,
884,
24834,
30,
16094,
414,
273,
306,
298,
24834,
65,
469,
30,
16094,
414,
273,
365,
18,
21346,
5014,
18,
2372,
1435,
309,
486,
16094,
414,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
16,
884,
24834,
33,
7036,
4672,
468,
7769,
309,
365,
18,
4717,
471,
884,
24834,
30,
16094,
414,
273,
306,
298,
24834,
65,
469,
30,
16094,
414,
273,
365,
18,
21346,
5014,
18,
2372,
1435,
309,
486,
16094,
414,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
- a pair (p, q) of tableaux of the same shape and where q is standard.
|
- ``p``, ``q``: two tableaux of the same shape and where ``q`` is standard.
|
def robinson_schensted_inverse(p, q): r""" Returns the permutation corresponding to the pair of tableaux (p,q) using the inverse of Robinson-Schensted algorithm. INPUT: - a pair (p, q) of tableaux of the same shape and where q is standard. EXAMPLES:: sage: from sage.combinat.permutation import robinson_schensted_inverse sage: t1 = Tableau([[1, 2, 5], [3], [4]]) sage: t2 = Tableau([[1, 2, 3], [4], [5]]) sage: robinson_schensted_inverse(t1, t2) [1, 4, 5, 3, 2] sage: robinson_schensted_inverse(t1, t1) [1, 4, 3, 2, 5] sage: robinson_schensted_inverse(t2, t2) [1, 2, 5, 4, 3] sage: robinson_schensted_inverse(t2, t1) [1, 5, 4, 2, 3] If the first tableau is not standard, then it is not a bijection:: sage: p = Tableau([[1,3,2]]); q = Tableau([[1,2,3]]) sage: robinson_schensted_inverse(p, q) [1, 3, 2] sage: _.robinson_schensted() [[[1, 2], [3]], [[1, 2], [3]]] sage: robinson_schensted_inverse(*_) [1, 3, 2] If the first tableau is semistandard:: sage: p = Tableau([[1,2,2]]); q = Tableau([[1,2,3]]) sage: robinson_schensted_inverse(p, q) [1, 2, 2] sage: _.robinson_schensted() [[[1, 2, 2]], [[1, 2, 3]]] TESTS:: From empty tableaux:: sage: robinson_schensted_inverse(Tableau([]), Tableau([])) [] This function is the inverse of robinson_shensted:: sage: f = lambda p: robinson_schensted_inverse(*p.robinson_schensted()) sage: all(p == f(p) for n in range(7) for p in Permutations(n)) True sage: n = ZZ.random_element(200) sage: p = Permutations(n).random_element() sage: is_fine = True if p == f(p) else p ; is_fine True Both tableaux must be of the same shape:: sage: robinson_schensted_inverse(Tableau([[1,2,3]]), Tableau([[1,2]])) Traceback (most recent call last): ... ValueError: p(=[[1, 2, 3]]) and q(=[[1, 2]]) must have the same shape The second tableau must be standard:: sage: robinson_schensted_inverse(Tableau([[1,2,3]]), Tableau([[1,3,2]])) Traceback (most recent call last): ... ValueError: q(=[[1, 3, 2]]) must be standard """ if p.shape() != q.shape(): raise ValueError, "p(=%s) and q(=%s) must have the same shape"%(p, q) if not q.is_standard(): raise ValueError, "q(=%s) must be standard"%q size = p.size() permutation = [] d = dict((q[i][j],(i,j)) for i in range(len(q)) for j in range(len(q[i]))) p = map(list, p) for n in range(size, 0, -1): i,j = d[n] x = p[i][j] del p[i][j] if len(p[i]) == 0: del p[i] while i > 0: row = p[i-1] y = max(filter(lambda z: z<x, row )) row[row.index(y)] = x x = y i = i-1 permutation.insert(0, x) return Permutation(permutation)
|
149fc1ff9917de1b892ecdfb86903ef66b09974d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/149fc1ff9917de1b892ecdfb86903ef66b09974d/permutation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
12,
84,
16,
1043,
4672,
436,
8395,
2860,
326,
17440,
4656,
358,
326,
3082,
434,
1014,
18196,
261,
84,
16,
85,
13,
1450,
326,
8322,
434,
19686,
267,
816,
17,
55,
343,
275,
334,
329,
4886,
18,
225,
12943,
30,
225,
300,
12176,
84,
68,
9191,
12176,
85,
10335,
30,
2795,
1014,
18196,
434,
326,
1967,
2179,
471,
1625,
12176,
85,
10335,
353,
4529,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
12160,
9245,
1930,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
272,
410,
30,
268,
21,
273,
3555,
8377,
3816,
63,
21,
16,
576,
16,
1381,
6487,
306,
23,
6487,
306,
24,
65,
5717,
272,
410,
30,
268,
22,
273,
3555,
8377,
3816,
63,
21,
16,
576,
16,
890,
6487,
306,
24,
6487,
306,
25,
65,
5717,
272,
410,
30,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
12,
88,
21,
16,
268,
22,
13,
306,
21,
16,
1059,
16,
1381,
16,
890,
16,
576,
65,
272,
410,
30,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
12,
88,
21,
16,
268,
21,
13,
306,
21,
16,
1059,
16,
890,
16,
576,
16,
1381,
65,
272,
410,
30,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
12,
88,
22,
16,
268,
22,
13,
306,
21,
16,
576,
16,
1381,
16,
1059,
16,
890,
65,
272,
410,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
12,
84,
16,
1043,
4672,
436,
8395,
2860,
326,
17440,
4656,
358,
326,
3082,
434,
1014,
18196,
261,
84,
16,
85,
13,
1450,
326,
8322,
434,
19686,
267,
816,
17,
55,
343,
275,
334,
329,
4886,
18,
225,
12943,
30,
225,
300,
12176,
84,
68,
9191,
12176,
85,
10335,
30,
2795,
1014,
18196,
434,
326,
1967,
2179,
471,
1625,
12176,
85,
10335,
353,
4529,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
12160,
9245,
1930,
721,
4757,
816,
67,
28204,
275,
334,
329,
67,
22552,
272,
410,
30,
268,
21,
273,
3555,
8377,
3816,
63,
21,
16,
576,
2
] |
f = open("foobar", "w+")
|
f = open("a", "w+")
|
def test_conv_descriptor(self): import fcntl f = open("foobar", "w+") raises(TypeError, fcntl._conv_descriptor, "foo") raises(TypeError, fcntl._conv_descriptor, 2.0) import cStringIO raises(TypeError, fcntl._conv_descriptor, cStringIO.StringIO()) res = fcntl._conv_descriptor(10) res_1 = fcntl._conv_descriptor(f) assert res == 10 assert res_1 == f.fileno() f.close()
|
ffa8287d97ec378336d0da055cd3dd77ba65ce9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ffa8287d97ec378336d0da055cd3dd77ba65ce9e/test_fcntl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4896,
67,
12628,
12,
2890,
4672,
1930,
30894,
225,
284,
273,
1696,
2932,
69,
3113,
315,
91,
15,
7923,
225,
14183,
12,
19030,
16,
30894,
6315,
4896,
67,
12628,
16,
315,
11351,
7923,
14183,
12,
19030,
16,
30894,
6315,
4896,
67,
12628,
16,
576,
18,
20,
13,
1930,
276,
780,
4294,
14183,
12,
19030,
16,
30894,
6315,
4896,
67,
12628,
16,
276,
780,
4294,
18,
780,
4294,
10756,
400,
273,
30894,
6315,
4896,
67,
12628,
12,
2163,
13,
400,
67,
21,
273,
30894,
6315,
4896,
67,
12628,
12,
74,
13,
1815,
400,
422,
1728,
1815,
400,
67,
21,
422,
284,
18,
7540,
5764,
1435,
225,
284,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
4896,
67,
12628,
12,
2890,
4672,
1930,
30894,
225,
284,
273,
1696,
2932,
69,
3113,
315,
91,
15,
7923,
225,
14183,
12,
19030,
16,
30894,
6315,
4896,
67,
12628,
16,
315,
11351,
7923,
14183,
12,
19030,
16,
30894,
6315,
4896,
67,
12628,
16,
576,
18,
20,
13,
1930,
276,
780,
4294,
14183,
12,
19030,
16,
30894,
6315,
4896,
67,
12628,
16,
276,
780,
4294,
18,
780,
4294,
10756,
400,
273,
30894,
6315,
4896,
67,
12628,
12,
2163,
13,
400,
67,
21,
273,
30894,
6315,
4896,
67,
12628,
12,
74,
13,
1815,
400,
422,
1728,
1815,
400,
67,
21,
422,
284,
18,
7540,
5764,
1435,
225,
284,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""operator.mul(%s)"""
|
def _repeat(self, node, results): """operator.mul(%s)""" return self._handle_rename(node, results, "mul")
|
9296c21e78ed50e8864f9f54d4e772a329a36240 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/9296c21e78ed50e8864f9f54d4e772a329a36240/fix_operator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9374,
12,
2890,
16,
756,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9374,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
18539,
12,
2159,
16,
1686,
16,
315,
16411,
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
] |
|
def __init__(self, request, id=None, name="", password=None, auth_username=""): """ Initialize user object
|
def __init__(self, request, id=None, name="", password=None, auth_username=""): """ Initialize User object
|
def __init__(self, request, id=None, name="", password=None, auth_username=""): """ Initialize user object @param request: the request object @param id: (optional) user ID @param name: (optional) user name @param password: (optional) user password @param auth_username: (optional) already authenticated user name (e.g. apache basic auth) """ self._cfg = request.cfg self.valid = 0 self.trusted = 0 self.id = id self.auth_username = auth_username
|
3459697b85907bfd97b15aecf78ffd9a02beac53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/3459697b85907bfd97b15aecf78ffd9a02beac53/user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
16,
612,
33,
7036,
16,
508,
1546,
3113,
2201,
33,
7036,
16,
1357,
67,
5053,
1546,
6,
4672,
3536,
9190,
2177,
733,
225,
632,
891,
590,
30,
326,
590,
733,
632,
891,
612,
30,
261,
10444,
13,
729,
1599,
632,
891,
508,
30,
261,
10444,
13,
729,
508,
632,
891,
2201,
30,
261,
10444,
13,
729,
2201,
632,
891,
1357,
67,
5053,
30,
261,
10444,
13,
1818,
9370,
729,
508,
261,
73,
18,
75,
18,
12291,
5337,
1357,
13,
3536,
365,
6315,
7066,
273,
590,
18,
7066,
365,
18,
877,
273,
374,
365,
18,
25247,
273,
374,
365,
18,
350,
273,
612,
365,
18,
1944,
67,
5053,
273,
1357,
67,
5053,
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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,
632,
891,
508,
30,
261,
10444,
13,
729,
508,
632,
891,
2201,
30,
261,
10444,
13,
729,
2201,
632,
891,
1357,
67,
5053,
30,
261,
10444,
13,
1818,
9370,
729,
508,
261,
73,
18,
75,
18,
12291,
5337,
1357,
13,
3536,
365,
6315,
7066,
273,
590,
18,
7066,
365,
18,
877,
273,
374,
365,
18,
25247,
273,
374,
365,
18,
350,
273,
612,
365,
18,
1944,
67,
5053,
273,
1357,
67,
5053,
2
] |
else: if is_quad_core() and sched_mc_level == 0: return(0) print "INFO: CPUs utilized is not in same package" sys.exit(1)
|
return(1)
|
def validate_cpugrp_map(cpu_group, sched_mc_level, sched_smt_level): ''' Verify if cpugrp belong to same package ''' modi_cpu_grp = cpu_group[:] try: if is_hyper_threaded(): for pkg in sorted(cpu_map.keys()): # if CPU utilized is across package this condition will be true if len(modi_cpu_grp) != len(cpu_group): break for core in sorted(cpu_map[pkg].keys()): core_cpus = cpu_map[pkg][core] if core_cpus == modi_cpu_grp: return 0 else: #if CPUs used across the cores for i in range(0, len(core_cpus)): if core_cpus[i] in modi_cpu_grp: modi_cpu_grp.remove(core_cpus[i]) else: # If sched_smt == 0 then its oky if threads run # in different cores of same package if sched_smt_level == 1: sys.exit(1) else: if len(cpu_group) == 2 and \ len(modi_cpu_grp) < len(cpu_group): print "INFO:CPUs utilized not in a core" return 0 print "INFO: CPUs utilized is not in same package or core" sys.exit(1) else: for pkg in sorted(cpu_map.keys()): pkg_cpus = cpu_map[pkg] if pkg_cpus == cpu_group: return(0) else: if is_quad_core() and sched_mc_level == 0: return(0) print "INFO: CPUs utilized is not in same package" sys.exit(1) except Exception, details: print "Exception in validate_cpugrp_map: ", details sys.exit(1)
|
b2c7cd73607f781c03a9475f07333b594ed7d1a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/b2c7cd73607f781c03a9475f07333b594ed7d1a5/sched_mc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4057,
637,
13832,
67,
1458,
12,
11447,
67,
1655,
16,
23964,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
4672,
9163,
8553,
309,
3283,
637,
13832,
10957,
358,
1967,
2181,
9163,
681,
77,
67,
11447,
67,
17532,
273,
8326,
67,
1655,
10531,
65,
775,
30,
309,
353,
67,
17203,
67,
451,
20528,
13332,
364,
3475,
316,
3115,
12,
11447,
67,
1458,
18,
2452,
1435,
4672,
468,
309,
12154,
1709,
1235,
353,
10279,
2181,
333,
2269,
903,
506,
638,
309,
562,
12,
1711,
77,
67,
11447,
67,
17532,
13,
480,
562,
12,
11447,
67,
1655,
4672,
898,
364,
2922,
316,
3115,
12,
11447,
67,
1458,
63,
10657,
8009,
2452,
1435,
4672,
2922,
67,
20696,
273,
8326,
67,
1458,
63,
10657,
6362,
3644,
65,
309,
2922,
67,
20696,
422,
681,
77,
67,
11447,
67,
17532,
30,
327,
374,
469,
30,
468,
430,
5181,
3477,
1399,
10279,
326,
15355,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
3644,
67,
20696,
3719,
30,
309,
2922,
67,
20696,
63,
77,
65,
316,
681,
77,
67,
11447,
67,
17532,
30,
681,
77,
67,
11447,
67,
17532,
18,
4479,
12,
3644,
67,
20696,
63,
77,
5717,
469,
30,
468,
971,
23964,
67,
87,
1010,
422,
374,
1508,
2097,
1529,
93,
309,
7403,
1086,
468,
316,
3775,
15355,
434,
1967,
2181,
309,
23964,
67,
87,
1010,
67,
2815,
422,
404,
30,
2589,
18,
8593,
12,
21,
13,
469,
30,
309,
562,
12,
11447,
67,
1655,
13,
422,
576,
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,
1954,
67,
4057,
637,
13832,
67,
1458,
12,
11447,
67,
1655,
16,
23964,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
4672,
9163,
8553,
309,
3283,
637,
13832,
10957,
358,
1967,
2181,
9163,
681,
77,
67,
11447,
67,
17532,
273,
8326,
67,
1655,
10531,
65,
775,
30,
309,
353,
67,
17203,
67,
451,
20528,
13332,
364,
3475,
316,
3115,
12,
11447,
67,
1458,
18,
2452,
1435,
4672,
468,
309,
12154,
1709,
1235,
353,
10279,
2181,
333,
2269,
903,
506,
638,
309,
562,
12,
1711,
77,
67,
11447,
67,
17532,
13,
480,
562,
12,
11447,
67,
1655,
4672,
898,
364,
2922,
316,
3115,
12,
11447,
67,
1458,
63,
10657,
8009,
2452,
1435,
4672,
2922,
67,
20696,
2
] |
def __neq__(self, other):
|
def __ne__(self, other):
|
def __neq__(self, other): return not self.__eq__(other)
|
b50a3054f4a2d32047f6139fb1f61a1331cac274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12664/b50a3054f4a2d32047f6139fb1f61a1331cac274/euclid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4644,
972,
12,
2890,
16,
1308,
4672,
327,
486,
365,
16186,
11253,
972,
12,
3011,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4644,
972,
12,
2890,
16,
1308,
4672,
327,
486,
365,
16186,
11253,
972,
12,
3011,
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
] |
self.docstring_parser.parse_docstring(val_doc)
|
self.docstring_parser.parse_docstring(val_doc, docindex)
|
def build_doc_index(self, *items): """ Build API documentation for the given list of items, and return it in the form of a L{DocIndex}. Each item can be any of the following (tried in order): - A string naming a python package directory (e.g., C{'epydoc/markup'}) - A string naming a python file (e.g., C{'epydoc/docparser.py'}) - A string naming a python object (e.g., C{'epydoc.docparser.DocParser'}) - A (non-string) python object (e.g., C{list.append}) """ # Get the basic docs for each item. doc_pairs = self._get_docs_from_items(items)
|
871395d07f0ba523b13287e6513bcc58d255a1d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/871395d07f0ba523b13287e6513bcc58d255a1d7/driver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
2434,
67,
1615,
12,
2890,
16,
380,
3319,
4672,
3536,
3998,
1491,
7323,
364,
326,
864,
666,
434,
1516,
16,
471,
327,
518,
316,
326,
646,
434,
279,
511,
95,
1759,
1016,
5496,
225,
8315,
761,
848,
506,
1281,
434,
326,
3751,
261,
313,
2092,
316,
1353,
4672,
300,
432,
533,
14634,
279,
5790,
2181,
1867,
261,
73,
18,
75,
12990,
385,
27828,
881,
93,
2434,
19,
15056,
11,
6792,
300,
432,
533,
14634,
279,
5790,
585,
261,
73,
18,
75,
12990,
385,
27828,
881,
93,
2434,
19,
2434,
4288,
18,
2074,
11,
6792,
300,
432,
533,
14634,
279,
5790,
733,
261,
73,
18,
75,
12990,
385,
27828,
881,
93,
2434,
18,
2434,
4288,
18,
1759,
2678,
11,
6792,
300,
432,
261,
5836,
17,
1080,
13,
5790,
733,
261,
73,
18,
75,
12990,
385,
95,
1098,
18,
6923,
6792,
3536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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
2434,
67,
1615,
12,
2890,
16,
380,
3319,
4672,
3536,
3998,
1491,
7323,
364,
326,
864,
666,
434,
1516,
16,
471,
327,
518,
316,
326,
646,
434,
279,
511,
95,
1759,
1016,
5496,
225,
8315,
761,
848,
506,
1281,
434,
326,
3751,
261,
313,
2092,
316,
1353,
4672,
300,
432,
533,
14634,
279,
5790,
2181,
1867,
261,
73,
18,
75,
12990,
385,
27828,
881,
93,
2434,
19,
15056,
11,
6792,
300,
432,
533,
14634,
279,
5790,
585,
261,
73,
18,
75,
12990,
385,
27828,
881,
93,
2434,
19,
2434,
4288,
18,
2074,
11,
6792,
300,
432,
533,
14634,
279,
5790,
733,
261,
73,
18,
75,
12990,
385,
27828,
881,
93,
2434,
18,
2434,
4288,
18,
1759,
2
] |
def bench_cache(import_, repeat, number): """Measure the time it takes to pull from sys.modules."""
|
def bench(name, cleanup=lambda: None, *, seconds=1, repeat=3): """Bench the given statement as many times as necessary until total executions take one second.""" stmt = "__import__({!r})".format(name) timer = timeit.Timer(stmt) for x in range(repeat): total_time = 0 count = 0 while total_time < seconds: try: total_time += timer.timeit(1) finally: cleanup() count += 1 else: if total_time > seconds: count -= 1 yield count def from_cache(repeat): """sys.modules"""
|
def bench_cache(import_, repeat, number): """Measure the time it takes to pull from sys.modules.""" name = '<benchmark import>' with util.uncache(name): module = imp.new_module(name) sys.modules[name] = module runs = [] for x in range(repeat): start_time = timeit.default_timer() for y in range(number): import_(name) end_time = timeit.default_timer() runs.append(end_time - start_time) return min(runs)
|
23cf5743aef2b8c2baa023ec3f7493c7e139027a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/23cf5743aef2b8c2baa023ec3f7493c7e139027a/benchmark.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22499,
12,
529,
16,
6686,
33,
14661,
30,
599,
16,
380,
16,
3974,
33,
21,
16,
7666,
33,
23,
4672,
3536,
38,
7382,
326,
864,
3021,
487,
4906,
4124,
487,
4573,
3180,
2078,
26845,
4862,
1245,
2205,
12123,
3480,
273,
10425,
5666,
972,
12590,
5,
86,
12646,
18,
2139,
12,
529,
13,
5441,
273,
813,
305,
18,
6777,
12,
10589,
13,
364,
619,
316,
1048,
12,
9374,
4672,
2078,
67,
957,
273,
374,
1056,
273,
374,
1323,
2078,
67,
957,
411,
3974,
30,
775,
30,
2078,
67,
957,
1011,
5441,
18,
957,
305,
12,
21,
13,
3095,
30,
6686,
1435,
1056,
1011,
404,
469,
30,
225,
309,
2078,
67,
957,
405,
3974,
30,
1056,
3947,
404,
2824,
1056,
225,
1652,
628,
67,
2493,
12,
9374,
4672,
3536,
9499,
18,
6400,
8395,
508,
273,
2368,
70,
9737,
1930,
1870,
598,
1709,
18,
551,
807,
12,
529,
4672,
1605,
273,
1646,
18,
2704,
67,
2978,
12,
529,
13,
2589,
18,
6400,
63,
529,
65,
273,
1605,
7597,
273,
5378,
364,
619,
316,
1048,
12,
9374,
4672,
787,
67,
957,
273,
813,
305,
18,
1886,
67,
12542,
1435,
364,
677,
316,
1048,
12,
2696,
4672,
1930,
67,
12,
529,
13,
679,
67,
957,
273,
813,
305,
18,
1886,
67,
12542,
1435,
7597,
18,
6923,
12,
409,
67,
957,
300,
787,
67,
957,
13,
327,
1131,
12,
20152,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22499,
12,
529,
16,
6686,
33,
14661,
30,
599,
16,
380,
16,
3974,
33,
21,
16,
7666,
33,
23,
4672,
3536,
38,
7382,
326,
864,
3021,
487,
4906,
4124,
487,
4573,
3180,
2078,
26845,
4862,
1245,
2205,
12123,
3480,
273,
10425,
5666,
972,
12590,
5,
86,
12646,
18,
2139,
12,
529,
13,
5441,
273,
813,
305,
18,
6777,
12,
10589,
13,
364,
619,
316,
1048,
12,
9374,
4672,
2078,
67,
957,
273,
374,
1056,
273,
374,
1323,
2078,
67,
957,
411,
3974,
30,
775,
30,
2078,
67,
957,
1011,
5441,
18,
957,
305,
12,
21,
13,
3095,
30,
6686,
1435,
1056,
1011,
404,
469,
30,
225,
309,
2078,
67,
957,
405,
3974,
30,
1056,
3947,
404,
2824,
1056,
2
] |
repos_path = get_hg_ui_settings()['paths_root_path']
|
repos_path = HgModel().repos_path
|
def get_commits_stats(repo_name, ts_min_y, ts_max_y): from rhodecode.model.db import Statistics, Repository log = get_commits_stats.get_logger() author_key_cleaner = lambda k: person(k).replace('"', "") #for js data compatibilty commits_by_day_author_aggregate = {} commits_by_day_aggregate = {} repos_path = get_hg_ui_settings()['paths_root_path'] p = os.path.join(repos_path, repo_name) repo = get_repo(p) skip_date_limit = True parse_limit = 250 #limit for single task changeset parsing optimal for last_rev = 0 last_cs = None timegetter = itemgetter('time') sa = get_session() dbrepo = sa.query(Repository)\ .filter(Repository.repo_name == repo_name).scalar() cur_stats = sa.query(Statistics)\ .filter(Statistics.repository == dbrepo).scalar() if cur_stats: last_rev = cur_stats.stat_on_revision if not repo.revisions: return True if last_rev == repo.revisions[-1] and len(repo.revisions) > 1: #pass silently without any work if we're not on first revision or current #state of parsing revision(from db marker) is the last revision return True if cur_stats: commits_by_day_aggregate = OrderedDict( json.loads( cur_stats.commit_activity_combined)) commits_by_day_author_aggregate = json.loads(cur_stats.commit_activity) log.debug('starting parsing %s', parse_limit) lmktime = mktime for cnt, rev in enumerate(repo.revisions[last_rev:]): last_cs = cs = repo.get_changeset(rev) k = '%s-%s-%s' % (cs.date.timetuple()[0], cs.date.timetuple()[1], cs.date.timetuple()[2]) timetupple = [int(x) for x in k.split('-')] timetupple.extend([0 for _ in xrange(6)]) k = lmktime(timetupple) if commits_by_day_author_aggregate.has_key(author_key_cleaner(cs.author)): try: l = [timegetter(x) for x in commits_by_day_author_aggregate\ [author_key_cleaner(cs.author)]['data']] time_pos = l.index(k) except ValueError: time_pos = False if time_pos >= 0 and time_pos is not False: datadict = commits_by_day_author_aggregate\ [author_key_cleaner(cs.author)]['data'][time_pos] datadict["commits"] += 1 datadict["added"] += len(cs.added) datadict["changed"] += len(cs.changed) datadict["removed"] += len(cs.removed) else: if k >= ts_min_y and k <= ts_max_y or skip_date_limit: datadict = {"time":k, "commits":1, "added":len(cs.added), "changed":len(cs.changed), "removed":len(cs.removed), } commits_by_day_author_aggregate\ [author_key_cleaner(cs.author)]['data'].append(datadict) else: if k >= ts_min_y and k <= ts_max_y or skip_date_limit: commits_by_day_author_aggregate[author_key_cleaner(cs.author)] = { "label":author_key_cleaner(cs.author), "data":[{"time":k, "commits":1, "added":len(cs.added), "changed":len(cs.changed), "removed":len(cs.removed), }], "schema":["commits"], } #gather all data by day if commits_by_day_aggregate.has_key(k): commits_by_day_aggregate[k] += 1 else: commits_by_day_aggregate[k] = 1 if cnt >= parse_limit: #don't fetch to much data since we can freeze application break overview_data = [] for k, v in commits_by_day_aggregate.items(): overview_data.append([k, v]) overview_data = sorted(overview_data, key=itemgetter(0)) if not commits_by_day_author_aggregate: commits_by_day_author_aggregate[author_key_cleaner(repo.contact)] = { "label":author_key_cleaner(repo.contact), "data":[0, 1], "schema":["commits"], } stats = cur_stats if cur_stats else Statistics() stats.commit_activity = json.dumps(commits_by_day_author_aggregate) stats.commit_activity_combined = json.dumps(overview_data) log.debug('last revison %s', last_rev) leftovers = len(repo.revisions[last_rev:]) log.debug('revisions to parse %s', leftovers) if last_rev == 0 or leftovers < parse_limit: stats.languages = json.dumps(__get_codes_stats(repo_name)) stats.repository = dbrepo stats.stat_on_revision = last_cs.revision try: sa.add(stats) sa.commit() except: log.error(traceback.format_exc()) sa.rollback() return False if len(repo.revisions) > 1: run_task(get_commits_stats, repo_name, ts_min_y, ts_max_y) return True
|
1cdc1a088ab95d4ce5cdc5fc9a19a3555e58f791 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/1cdc1a088ab95d4ce5cdc5fc9a19a3555e58f791/tasks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
27000,
67,
5296,
12,
7422,
67,
529,
16,
3742,
67,
1154,
67,
93,
16,
3742,
67,
1896,
67,
93,
4672,
628,
6259,
390,
710,
18,
2284,
18,
1966,
1930,
22964,
16,
6281,
613,
273,
336,
67,
27000,
67,
5296,
18,
588,
67,
4901,
1435,
2869,
67,
856,
67,
6200,
264,
273,
3195,
417,
30,
6175,
12,
79,
2934,
2079,
22076,
2187,
1408,
13,
468,
1884,
3828,
501,
4796,
495,
330,
4098,
225,
14335,
67,
1637,
67,
2881,
67,
4161,
67,
18573,
273,
2618,
14335,
67,
1637,
67,
2881,
67,
18573,
273,
2618,
13686,
67,
803,
273,
670,
75,
1488,
7675,
15564,
67,
803,
293,
273,
1140,
18,
803,
18,
5701,
12,
15564,
67,
803,
16,
3538,
67,
529,
13,
3538,
273,
336,
67,
7422,
12,
84,
13,
225,
2488,
67,
712,
67,
3595,
273,
1053,
1109,
67,
3595,
273,
16927,
468,
3595,
364,
2202,
1562,
22463,
5811,
16413,
364,
1142,
67,
9083,
273,
374,
1142,
67,
2143,
273,
599,
813,
11990,
273,
29575,
2668,
957,
6134,
225,
7864,
273,
336,
67,
3184,
1435,
225,
1319,
7422,
273,
7864,
18,
2271,
12,
3305,
5153,
263,
2188,
12,
3305,
18,
7422,
67,
529,
422,
3538,
67,
529,
2934,
8748,
1435,
662,
67,
5296,
273,
7864,
18,
2271,
12,
8569,
5153,
263,
2188,
12,
8569,
18,
9071,
422,
1319,
7422,
2934,
8748,
1435,
309,
662,
67,
5296,
30,
1142,
67,
9083,
273,
662,
67,
5296,
18,
5642,
67,
265,
67,
13057,
309,
486,
3538,
18,
29892,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
27000,
67,
5296,
12,
7422,
67,
529,
16,
3742,
67,
1154,
67,
93,
16,
3742,
67,
1896,
67,
93,
4672,
628,
6259,
390,
710,
18,
2284,
18,
1966,
1930,
22964,
16,
6281,
613,
273,
336,
67,
27000,
67,
5296,
18,
588,
67,
4901,
1435,
2869,
67,
856,
67,
6200,
264,
273,
3195,
417,
30,
6175,
12,
79,
2934,
2079,
22076,
2187,
1408,
13,
468,
1884,
3828,
501,
4796,
495,
330,
4098,
225,
14335,
67,
1637,
67,
2881,
67,
4161,
67,
18573,
273,
2618,
14335,
67,
1637,
67,
2881,
67,
18573,
273,
2618,
13686,
67,
803,
273,
670,
75,
1488,
7675,
15564,
67,
803,
293,
273,
1140,
18,
803,
18,
5701,
12,
15564,
67,
803,
16,
3538,
2
] |
'zope.ucol >= 1.0', 'zope.html >= 0.0.1'],
|
'zope.ucol >= 1.0', 'zope.html >= 0.0.1', 'zope.file', 'zope.mimetype'],
|
def get_version(): version_file = os.path.join('src', 'schooltool', 'version.txt') f = open(version_file, 'r') result = f.read() f.close() return result
|
f961914970c9f5d28c6b0601c3dd7bae515bbfe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/f961914970c9f5d28c6b0601c3dd7bae515bbfe5/setup.eggs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
13332,
1177,
67,
768,
273,
1140,
18,
803,
18,
5701,
2668,
4816,
2187,
296,
28204,
1371,
6738,
2187,
296,
1589,
18,
5830,
6134,
284,
273,
1696,
12,
1589,
67,
768,
16,
296,
86,
6134,
563,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
327,
563,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
13332,
1177,
67,
768,
273,
1140,
18,
803,
18,
5701,
2668,
4816,
2187,
296,
28204,
1371,
6738,
2187,
296,
1589,
18,
5830,
6134,
284,
273,
1696,
12,
1589,
67,
768,
16,
296,
86,
6134,
563,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
327,
563,
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
] |
compositions = IntegerListsLex(range(*l),
|
compositions = IntegerListsLex(range(*arg),
|
def iter_morphisms(self, l=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain.
|
271befb9ab8e7c2467a8b9cdc30e56ff251f7c7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/271befb9ab8e7c2467a8b9cdc30e56ff251f7c7e/words.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
81,
7657,
23749,
12,
2890,
16,
328,
33,
7036,
16,
11012,
1530,
33,
7036,
16,
1131,
67,
2469,
33,
21,
4672,
436,
8395,
11436,
1879,
777,
14354,
23749,
598,
2461,
12176,
2890,
10335,
471,
326,
864,
11012,
5254,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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335,
471,
326,
864,
11012,
5254,
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
] |
undo['virtual'][key] = binaries[arch][1][j][:] binaries[arch][1][j].remove(binary) if len(binaries[arch][1][j]) == 0: del binaries[arch][1][j]
|
undo['virtual'][key] = binaries[parch][1][j][:] binaries[parch][1][j].remove(binary) if len(binaries[parch][1][j]) == 0: del binaries[parch][1][j]
|
def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg`
|
b0ef0af3487c34142dce19457921f7cceb8b113e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b0ef0af3487c34142dce19457921f7cceb8b113e/britney.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
556,
67,
3168,
12,
2890,
16,
3475,
4672,
3536,
7001,
279,
2549,
358,
326,
7769,
7006,
487,
3764,
635,
1375,
10657,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
556,
67,
3168,
12,
2890,
16,
3475,
4672,
3536,
7001,
279,
2549,
358,
326,
7769,
7006,
487,
3764,
635,
1375,
10657,
68,
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
] |
if ext == '.cc':
|
if ext in ('.cc', '.mm', '.c', '.m'):
|
def WalkDirectory(root_path, actions): for path, dirs, files in os.walk(root_path): if '.svn' in dirs: dirs.remove('.svn') for file in files: ext = os.path.splitext(file)[1] if ext == '.cc': GrepForActions(os.path.join(path, file), actions)
|
53d51d208e5e097ceae9eebdc8be7f377edb4476 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/53d51d208e5e097ceae9eebdc8be7f377edb4476/extract_actions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7564,
2853,
12,
3085,
67,
803,
16,
4209,
4672,
364,
589,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3085,
67,
803,
4672,
309,
2418,
31505,
11,
316,
7717,
30,
7717,
18,
4479,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7564,
2853,
12,
3085,
67,
803,
16,
4209,
4672,
364,
589,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
3085,
67,
803,
4672,
309,
2418,
31505,
11,
316,
7717,
30,
7717,
18,
4479,
2668,
18,
31505,
6134,
364,
585,
316,
1390,
30,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
768,
25146,
21,
65,
309,
1110,
316,
7707,
18,
952,
2187,
2418,
7020,
2187,
2418,
71,
2187,
2418,
81,
11,
4672,
611,
14462,
1290,
6100,
12,
538,
18,
803,
18,
5701,
12,
803,
16,
585,
3631,
4209,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bv = value
|
bv = value if not BACKWARDS_COMPATIBLE: bv += 1
|
def set(self, nodeid, **propvalues): isnew = 0 if propvalues.has_key('#ISNEW'): isnew = 1 del propvalues['#ISNEW'] if not isnew: self.fireAuditors('set', nodeid, propvalues) if not propvalues: return propvalues if propvalues.has_key('id'): raise KeyError, '"id" is reserved' if self.db.journaltag is None: raise hyperdb.DatabaseError, 'Database open read-only' view = self.getview(1)
|
8a26f1933d2876e464fe11a666ad363c83f287dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8a26f1933d2876e464fe11a666ad363c83f287dd/back_metakit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
756,
350,
16,
2826,
5986,
2372,
4672,
353,
2704,
273,
374,
309,
2270,
2372,
18,
5332,
67,
856,
2668,
7,
5127,
12917,
11,
4672,
353,
2704,
273,
404,
1464,
2270,
2372,
3292,
7,
5127,
12917,
3546,
309,
486,
353,
2704,
30,
365,
18,
12179,
10832,
1383,
2668,
542,
2187,
756,
350,
16,
2270,
2372,
13,
309,
486,
2270,
2372,
30,
327,
2270,
2372,
309,
2270,
2372,
18,
5332,
67,
856,
2668,
350,
11,
4672,
1002,
4999,
16,
2119,
350,
6,
353,
8735,
11,
309,
365,
18,
1966,
18,
78,
6561,
2390,
346,
353,
599,
30,
1002,
9512,
1966,
18,
4254,
668,
16,
296,
4254,
1696,
855,
17,
3700,
11,
1476,
273,
365,
18,
588,
1945,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
12,
2890,
16,
756,
350,
16,
2826,
5986,
2372,
4672,
353,
2704,
273,
374,
309,
2270,
2372,
18,
5332,
67,
856,
2668,
7,
5127,
12917,
11,
4672,
353,
2704,
273,
404,
1464,
2270,
2372,
3292,
7,
5127,
12917,
3546,
309,
486,
353,
2704,
30,
365,
18,
12179,
10832,
1383,
2668,
542,
2187,
756,
350,
16,
2270,
2372,
13,
309,
486,
2270,
2372,
30,
327,
2270,
2372,
309,
2270,
2372,
18,
5332,
67,
856,
2668,
350,
11,
4672,
1002,
4999,
16,
2119,
350,
6,
353,
8735,
11,
309,
365,
18,
1966,
18,
78,
6561,
2390,
346,
353,
599,
30,
1002,
9512,
1966,
18,
4254,
668,
16,
296,
4254,
1696,
855,
17,
3700,
11,
1476,
273,
365,
18,
588,
2
] |
m = Chem.MolFromSmiles('C1CCN1CCCC')
|
m = Chem.MolFromSmiles('C1CCCCN1CCCC')
|
def testSFNetIssue1804418(self): m = Chem.MolFromSmiles('C1CCN1CCCC') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==2) ks = res.GetLeaves().keys() self.failUnless('[Du]N1CCC1' in ks) self.failUnless('[Du]CCCC' in ks)
|
3023fb9be32736c17107514a20cac7c65f47a49f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9195/3023fb9be32736c17107514a20cac7c65f47a49f/Recap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
22395,
7308,
12956,
2643,
3028,
24,
2643,
12,
2890,
4672,
312,
273,
26542,
18,
49,
355,
1265,
9552,
1449,
2668,
39,
21,
6743,
6743,
50,
21,
6743,
6743,
6134,
400,
273,
868,
5909,
17731,
4150,
12,
81,
13,
365,
18,
6870,
984,
2656,
12,
455,
13,
365,
18,
6870,
984,
2656,
12,
1897,
12,
455,
18,
967,
1682,
6606,
10756,
631,
22,
13,
11654,
273,
400,
18,
967,
1682,
6606,
7675,
2452,
1435,
365,
18,
6870,
984,
2656,
2668,
63,
40,
89,
65,
50,
21,
6743,
39,
21,
11,
316,
11654,
13,
365,
18,
6870,
984,
2656,
2668,
63,
40,
89,
65,
6743,
6743,
11,
316,
11654,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
22395,
7308,
12956,
2643,
3028,
24,
2643,
12,
2890,
4672,
312,
273,
26542,
18,
49,
355,
1265,
9552,
1449,
2668,
39,
21,
6743,
6743,
50,
21,
6743,
6743,
6134,
400,
273,
868,
5909,
17731,
4150,
12,
81,
13,
365,
18,
6870,
984,
2656,
12,
455,
13,
365,
18,
6870,
984,
2656,
12,
1897,
12,
455,
18,
967,
1682,
6606,
10756,
631,
22,
13,
11654,
273,
400,
18,
967,
1682,
6606,
7675,
2452,
1435,
365,
18,
6870,
984,
2656,
2668,
63,
40,
89,
65,
50,
21,
6743,
39,
21,
11,
316,
11654,
13,
365,
18,
6870,
984,
2656,
2668,
63,
40,
89,
65,
6743,
6743,
11,
316,
11654,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dest = l[1:] or ''
|
dest = l and getstring(l[0], _("outgoing wants a repository path")) or ''
|
def outgoing(repo, subset, x): import hg # avoid start-up nasties l = getargs(x, 0, 1, _("outgoing wants a repository path")) dest = l[1:] or '' dest = repo.ui.expandpath(dest or 'default-push', dest or 'default') dest, branches = hg.parseurl(dest) other = hg.repository(hg.remoteui(repo, {}), dest) repo.ui.pushbuffer() o = discovery.findoutgoing(repo, other) repo.ui.popbuffer() cl = repo.changelog o = set([cl.rev(r) for r in repo.changelog.nodesbetween(o, None)[0]]) return [r for r in subset if r in o]
|
4553a5962e83ff67e4f0c64d8933da38a8f66c67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/4553a5962e83ff67e4f0c64d8933da38a8f66c67/revset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12902,
12,
7422,
16,
7931,
16,
619,
4672,
1930,
22576,
468,
4543,
787,
17,
416,
290,
689,
606,
328,
273,
336,
1968,
12,
92,
16,
374,
16,
404,
16,
389,
2932,
31891,
14805,
279,
3352,
589,
6,
3719,
1570,
273,
328,
471,
336,
1080,
12,
80,
63,
20,
6487,
389,
2932,
31891,
14805,
279,
3352,
589,
6,
3719,
578,
875,
1570,
273,
3538,
18,
4881,
18,
12320,
803,
12,
10488,
578,
296,
1886,
17,
6206,
2187,
1570,
578,
296,
1886,
6134,
1570,
16,
11483,
273,
22576,
18,
2670,
718,
12,
10488,
13,
1308,
273,
22576,
18,
9071,
12,
26981,
18,
7222,
4881,
12,
7422,
16,
2618,
3631,
1570,
13,
3538,
18,
4881,
18,
6206,
4106,
1435,
320,
273,
11030,
18,
4720,
31891,
12,
7422,
16,
1308,
13,
3538,
18,
4881,
18,
5120,
4106,
1435,
927,
273,
3538,
18,
24083,
12970,
320,
273,
444,
3816,
830,
18,
9083,
12,
86,
13,
364,
436,
316,
3538,
18,
24083,
12970,
18,
4690,
15019,
12,
83,
16,
599,
25146,
20,
65,
5717,
327,
306,
86,
364,
436,
316,
7931,
309,
436,
316,
320,
65,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12902,
12,
7422,
16,
7931,
16,
619,
4672,
1930,
22576,
468,
4543,
787,
17,
416,
290,
689,
606,
328,
273,
336,
1968,
12,
92,
16,
374,
16,
404,
16,
389,
2932,
31891,
14805,
279,
3352,
589,
6,
3719,
1570,
273,
328,
471,
336,
1080,
12,
80,
63,
20,
6487,
389,
2932,
31891,
14805,
279,
3352,
589,
6,
3719,
578,
875,
1570,
273,
3538,
18,
4881,
18,
12320,
803,
12,
10488,
578,
296,
1886,
17,
6206,
2187,
1570,
578,
296,
1886,
6134,
1570,
16,
11483,
273,
22576,
18,
2670,
718,
12,
10488,
13,
1308,
273,
22576,
18,
9071,
12,
26981,
18,
7222,
4881,
12,
7422,
16,
2618,
3631,
1570,
13,
3538,
18,
4881,
18,
6206,
4106,
1435,
320,
273,
2
] |
if traceVerbosity>=7: trace(7, 0, "getNecessary(%s) -> %s", (pkg, sorted(necdct.keys())))
|
if traceVerbosity>=7: print "
|
def getNecessary(self, pkg, ignorepkgs={}): """ Return the set of packages for which pkg is necessary (i.e., a chain of requires with no alternatives). """
|
b26ec53d5174d18eebf24ded272ad218fb19d0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/b26ec53d5174d18eebf24ded272ad218fb19d0b4/transaction.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11069,
4128,
12,
2890,
16,
3475,
16,
2305,
25376,
12938,
4672,
3536,
2000,
326,
444,
434,
5907,
364,
1492,
3475,
353,
4573,
261,
77,
18,
73,
12990,
279,
2687,
434,
4991,
598,
1158,
20699,
2934,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11069,
4128,
12,
2890,
16,
3475,
16,
2305,
25376,
12938,
4672,
3536,
2000,
326,
444,
434,
5907,
364,
1492,
3475,
353,
4573,
261,
77,
18,
73,
12990,
279,
2687,
434,
4991,
598,
1158,
20699,
2934,
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
] |
width = 0 self._colpositions = [0] for w in W: width = width + w self._colpositions.append(width) self._width = width
|
def _calc(self): if hasattr(self,'_width'): return self._calc_height() if hasattr(self,'_width_calculated_once'): return self._width_calculated_once = 1 self._calc_width()
|
def _calc(self): if hasattr(self,'_width'): return
|
4467fe581b408009f671962abdf5ff948d9427d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/4467fe581b408009f671962abdf5ff948d9427d3/tables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
12,
2890,
4672,
309,
3859,
12,
2890,
11189,
67,
2819,
11,
4672,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
cur_list = skel_to_col_attr_list(self.__skeleton__[table])
|
cur_list = skel_to_col_attr_list(self.__skeleton__[table_name])
|
def add_column(self, table, col_name, attr_dict, default='NULL'): """ Takes a while, thanks to SQLite... """ # Check input: if not self.__skeleton__.has_key(table): raise ValueError("Database has no table %s."%table) if self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s already has column %s."%(table,col_name)) attr_dict = verify_column(attr_dict) # Get an ordered list: cur_list = skel_to_col_attr_list(self.__skeleton__[table]) # Update the skeleton: self.__skeleton__[table][col_name] = attr_dict original = '' for col in cur_list: original += col[0] +', ' original = original.rstrip(', ') more = original + ', ' + col_name more_attr = '' for col in cur_list: if col[2]: # If primary key: more_attr += col[0] + ' ' + col[1] + ' primary key, ' else: more_attr += col[0] + ' ' + col[1] + ', ' more_attr += col_name + ' ' + attr_dict['sql'] # ROBERT: Look at the new fun way to do this... # executescript runs a begin transaction and commit so this # should speed things up for even large amounts of data # Silly SQLite -- we have to make a temp table to hold info... self.__connection__.executescript(""" create temporary table spam(%s); insert into spam select %s, %s from %s; drop table %s; create table %s (%s); """%(more_attr, original, default, table, table, table, more_attr)) # Update indices in new table new_table_set_col_attr(self.__connection__, table, self.__skeleton__[table]) # Now we can plop our data into the *new* table: self.__connection__.executescript(""" insert into %s select %s from spam; drop table spam; """%(table, more)) self.vacuum()
|
5ddf79d83938a9c0191ec3af2f60e264a74ecef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5ddf79d83938a9c0191ec3af2f60e264a74ecef9/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2827,
12,
2890,
16,
1014,
16,
645,
67,
529,
16,
1604,
67,
1576,
16,
805,
2218,
8560,
11,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
225,
3536,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
12,
2121,
4672,
1002,
2068,
2932,
4254,
711,
1158,
1014,
738,
87,
1199,
9,
2121,
13,
309,
365,
16186,
7771,
12143,
972,
63,
2121,
8009,
5332,
67,
856,
12,
1293,
67,
529,
4672,
1002,
2068,
2932,
1388,
738,
87,
1818,
711,
1057,
738,
87,
1199,
17105,
2121,
16,
1293,
67,
529,
3719,
1604,
67,
1576,
273,
3929,
67,
2827,
12,
1747,
67,
1576,
13,
225,
468,
968,
392,
5901,
666,
30,
662,
67,
1098,
273,
4343,
292,
67,
869,
67,
1293,
67,
1747,
67,
1098,
12,
2890,
16186,
7771,
12143,
972,
63,
2121,
67,
529,
5717,
468,
2315,
326,
17761,
30,
365,
16186,
7771,
12143,
972,
63,
2121,
6362,
1293,
67,
529,
65,
273,
1604,
67,
1576,
225,
2282,
273,
875,
364,
645,
316,
662,
67,
1098,
30,
2282,
1011,
645,
63,
20,
65,
397,
2187,
296,
2282,
273,
2282,
18,
86,
6406,
12,
2187,
8624,
225,
1898,
273,
2282,
397,
2265,
296,
397,
645,
67,
529,
1898,
67,
1747,
273,
875,
364,
645,
316,
662,
67,
1098,
30,
309,
645,
63,
22,
14542,
468,
971,
3354,
498,
30,
1898,
67,
1747,
1011,
645,
63,
20,
65,
397,
296,
296,
397,
645,
63,
21,
65,
397,
296,
3354,
498,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2827,
12,
2890,
16,
1014,
16,
645,
67,
529,
16,
1604,
67,
1576,
16,
805,
2218,
8560,
11,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
225,
3536,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
12,
2121,
4672,
1002,
2068,
2932,
4254,
711,
1158,
1014,
738,
87,
1199,
9,
2121,
13,
309,
365,
16186,
7771,
12143,
972,
63,
2121,
8009,
5332,
67,
856,
12,
1293,
67,
529,
4672,
1002,
2068,
2932,
1388,
738,
87,
1818,
711,
1057,
738,
87,
1199,
17105,
2121,
16,
1293,
67,
529,
3719,
1604,
67,
1576,
273,
3929,
67,
2827,
12,
1747,
67,
1576,
13,
225,
468,
968,
392,
5901,
666,
30,
2
] |
"..TD": "Default tempo", ".BPR": "Rows per beat", ".MPR": "Rows per measure", "..MT": "Tempo mode", ".MMP": "Plugin Mix mode", ".VWC": "CreatedWith version", "VWSL": "LastSavedWith version", ".APS": "Song Pre-amplification", "VTSV": "VSTi volume", ".VGD": "Default global volume", "...C": "?"
|
"...C": (UInt32, 1, "Channels"), ".VWC": (None, 0, "CreatedWith version"), ".VGD": (None, 0, "Default global volume"), "..TD": (None, 0, "Default tempo"), "HIBE": (None, 0, "Embedded instrument header"), "VWSL": (None, 0, "LastSavedWith version"), ".MMP": (None, 0, "Plugin Mix mode"), ".BPR": (None, 0, "Rows per beat"), ".MPR": (None, 0, "Rows per measure"), "@PES": (None, 0, "Chunk separaror"), ".APS": (None, 0, "Song Pre-amplification"), "..MT": (None, 0, "Tempo mode"), "VTSV": (None, 0, "VSTi volume"),
|
def parsePlugin(s): yield SoundMixPluginInfo(s, "info") # Check if VST setchunk present size = s.stream.readBits(s.absolute_address+s.current_size, 32, LITTLE_ENDIAN) if size > 0 and size < s.current_size + s._size: yield ExtraData(s, "extra_data") # Check if XPlugData is present size = s.stream.readBits(s.absolute_address+s.current_size, 32, LITTLE_ENDIAN) if size > 0 and size < s.current_size + s._size: yield XPlugData(s, "xplug_data")
|
75d0930d61b2b98bfd5cdaf0ec5487c36bb81181 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/75d0930d61b2b98bfd5cdaf0ec5487c36bb81181/xm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3773,
12,
87,
4672,
2824,
348,
772,
21294,
3773,
966,
12,
87,
16,
315,
1376,
7923,
225,
468,
2073,
309,
776,
882,
444,
6551,
3430,
963,
273,
272,
18,
3256,
18,
896,
6495,
12,
87,
18,
12547,
67,
2867,
15,
87,
18,
2972,
67,
1467,
16,
3847,
16,
511,
30972,
900,
67,
30597,
13,
309,
963,
405,
374,
471,
963,
411,
272,
18,
2972,
67,
1467,
397,
272,
6315,
1467,
30,
2824,
13592,
751,
12,
87,
16,
315,
7763,
67,
892,
7923,
225,
468,
2073,
309,
1139,
1749,
637,
751,
353,
3430,
963,
273,
272,
18,
3256,
18,
896,
6495,
12,
87,
18,
12547,
67,
2867,
15,
87,
18,
2972,
67,
1467,
16,
3847,
16,
511,
30972,
900,
67,
30597,
13,
309,
963,
405,
374,
471,
963,
411,
272,
18,
2972,
67,
1467,
397,
272,
6315,
1467,
30,
2824,
1139,
1749,
637,
751,
12,
87,
16,
315,
92,
22045,
67,
892,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3773,
12,
87,
4672,
2824,
348,
772,
21294,
3773,
966,
12,
87,
16,
315,
1376,
7923,
225,
468,
2073,
309,
776,
882,
444,
6551,
3430,
963,
273,
272,
18,
3256,
18,
896,
6495,
12,
87,
18,
12547,
67,
2867,
15,
87,
18,
2972,
67,
1467,
16,
3847,
16,
511,
30972,
900,
67,
30597,
13,
309,
963,
405,
374,
471,
963,
411,
272,
18,
2972,
67,
1467,
397,
272,
6315,
1467,
30,
2824,
13592,
751,
12,
87,
16,
315,
7763,
67,
892,
7923,
225,
468,
2073,
309,
1139,
1749,
637,
751,
353,
3430,
963,
273,
272,
18,
3256,
18,
896,
6495,
12,
87,
18,
12547,
67,
2867,
15,
87,
18,
2972,
67,
1467,
16,
3847,
16,
511,
30972,
2
] |
if self.core.GetCanSave(): self.core.Save()
|
self.core.Save()
|
def on_MainWindow_delete_event(self,widget,data=None): if not self.config.Get("autosave"): if not self.core.GetCanSave(): gtk.main_quit() return False
|
bf045f2c8d98a9e6ff4da3ca65a805a01e54f5e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/bf045f2c8d98a9e6ff4da3ca65a805a01e54f5e6/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
6376,
3829,
67,
3733,
67,
2575,
12,
2890,
16,
6587,
16,
892,
33,
7036,
4672,
309,
486,
365,
18,
1425,
18,
967,
2932,
21996,
836,
6,
4672,
309,
486,
365,
18,
3644,
18,
967,
2568,
4755,
13332,
22718,
18,
5254,
67,
27176,
1435,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
6376,
3829,
67,
3733,
67,
2575,
12,
2890,
16,
6587,
16,
892,
33,
7036,
4672,
309,
486,
365,
18,
1425,
18,
967,
2932,
21996,
836,
6,
4672,
309,
486,
365,
18,
3644,
18,
967,
2568,
4755,
13332,
22718,
18,
5254,
67,
27176,
1435,
327,
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
] |
message = '%s CE: SubmittedJobs=%s' %(self.ceName,submittedJobs) message += ', WaitingJobs=%s, RunningJobs=%s' %(waitingJobs,runningJobs)
|
message = '%s CE: SubmittedJobs=%s' % ( self.ceName, submittedJobs ) message += ', WaitingJobs=%s, RunningJobs=%s' % ( waitingJobs, runningJobs )
|
def available(self, requirements = {} ): """This method returns True if CE is available and false if not. The CE instance polls for waiting and running jobs and compares to the limits in the CE parameters. """ # FIXME: need to take into account the possible requirements from the pilots, # so far the cputime result = self.getDynamicInfo() if not result['OK']: self.log.warn('Could not obtain CE dynamic information') self.log.warn(result['Message']) return result else: runningJobs = result['RunningJobs'] waitingJobs = result['WaitingJobs'] submittedJobs = result['SubmittedJobs']
|
3d103a1ec7530dcfac38e6ccc642be862e663b73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3d103a1ec7530dcfac38e6ccc642be862e663b73/ComputingElement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
12,
2890,
16,
8433,
273,
2618,
262,
30,
3536,
2503,
707,
1135,
1053,
309,
29538,
353,
2319,
471,
629,
309,
486,
18,
225,
1021,
29538,
791,
2952,
3251,
364,
7336,
471,
3549,
6550,
471,
20670,
358,
326,
8181,
316,
326,
29538,
1472,
18,
3536,
468,
9852,
30,
1608,
358,
4862,
1368,
2236,
326,
3323,
8433,
628,
326,
24970,
6968,
16,
468,
3639,
1427,
10247,
326,
276,
458,
494,
563,
273,
365,
18,
588,
9791,
966,
1435,
309,
486,
563,
3292,
3141,
3546,
30,
365,
18,
1330,
18,
8935,
2668,
4445,
486,
7161,
29538,
5976,
1779,
6134,
365,
18,
1330,
18,
8935,
12,
2088,
3292,
1079,
19486,
327,
563,
469,
30,
3549,
7276,
273,
563,
3292,
7051,
7276,
3546,
7336,
7276,
273,
563,
3292,
15946,
7276,
3546,
9638,
7276,
273,
563,
3292,
28882,
7276,
3546,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
12,
2890,
16,
8433,
273,
2618,
262,
30,
3536,
2503,
707,
1135,
1053,
309,
29538,
353,
2319,
471,
629,
309,
486,
18,
225,
1021,
29538,
791,
2952,
3251,
364,
7336,
471,
3549,
6550,
471,
20670,
358,
326,
8181,
316,
326,
29538,
1472,
18,
3536,
468,
9852,
30,
1608,
358,
4862,
1368,
2236,
326,
3323,
8433,
628,
326,
24970,
6968,
16,
468,
3639,
1427,
10247,
326,
276,
458,
494,
563,
273,
365,
18,
588,
9791,
966,
1435,
309,
486,
563,
3292,
3141,
3546,
30,
365,
18,
1330,
18,
8935,
2668,
4445,
486,
7161,
29538,
5976,
1779,
6134,
365,
18,
1330,
18,
8935,
12,
2088,
3292,
1079,
19486,
327,
563,
469,
30,
3549,
7276,
273,
563,
3292,
7051,
7276,
2
] |
char.socket.clilocmessage(501679) return
|
char.socket.clilocmessage(501679) return
|
def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return # Also a blank key? if not target.item.hastag('lock'): char.socket.clilocmessage(501675) return # Check if the player can reach the item if not char.canreach(target.item,5): char.socket.clilocmessage(501661) return # Tinkering check (15%-30%, 25% chance of loosing the key on failure) if char.checkskill(TINKERING, 150, 300): key.settag('lock',target.item.gettag('lock')) key.resendtooltip() char.socket.clilocmessage(501676) else: char.socket.clilocmessage(501677) # 25% chance of destroying the blank key if random.randint(1,4) == 1: char.socket.clilocmessage(501678) key.remove()
|
516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
2740,
12,
3001,
16,
833,
16,
1018,
4672,
309,
562,
12,
1968,
13,
480,
404,
30,
327,
225,
498,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1968,
63,
20,
5717,
309,
486,
498,
578,
486,
1149,
18,
4169,
12974,
12,
856,
16,
25,
4672,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
9172,
6028,
21,
13,
327,
225,
468,
2073,
309,
326,
1018,
2344,
761,
353,
279,
498,
309,
486,
1018,
18,
1726,
578,
486,
1018,
18,
1726,
18,
76,
428,
9118,
12,
296,
856,
11,
262,
30,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
9172,
26,
7235,
13,
327,
225,
468,
8080,
279,
7052,
498,
35,
309,
486,
1018,
18,
1726,
18,
76,
689,
346,
2668,
739,
11,
4672,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
9172,
26,
5877,
13,
327,
225,
468,
2073,
309,
326,
7291,
848,
9287,
326,
761,
309,
486,
1149,
18,
4169,
12974,
12,
3299,
18,
1726,
16,
25,
4672,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
9172,
6028,
21,
13,
327,
225,
468,
399,
754,
264,
310,
866,
261,
3600,
9,
17,
5082,
9,
16,
6969,
9,
17920,
434,
437,
538,
310,
326,
498,
603,
5166,
13,
309,
1149,
18,
1893,
7771,
737,
12,
56,
8476,
654,
1360,
16,
18478,
16,
11631,
4672,
498,
18,
542,
2692,
2668,
739,
2187,
3299,
18,
1726,
18,
588,
2692,
2668,
739,
26112,
498,
18,
455,
409,
19798,
1435,
1149,
18,
7814,
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,
1610,
67,
2740,
12,
3001,
16,
833,
16,
1018,
4672,
309,
562,
12,
1968,
13,
480,
404,
30,
327,
225,
498,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1968,
63,
20,
5717,
309,
486,
498,
578,
486,
1149,
18,
4169,
12974,
12,
856,
16,
25,
4672,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
9172,
6028,
21,
13,
327,
225,
468,
2073,
309,
326,
1018,
2344,
761,
353,
279,
498,
309,
486,
1018,
18,
1726,
578,
486,
1018,
18,
1726,
18,
76,
428,
9118,
12,
296,
856,
11,
262,
30,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
9172,
26,
7235,
13,
327,
225,
468,
8080,
279,
7052,
498,
35,
309,
486,
1018,
18,
2
] |
retVal = currVal[ind]
|
retVal = keyVar[ind]
|
def getKeyVar(self, keyVar, ind=0, defVal=Exception,
|
03af8e03b5d1c35c781517d0d00adb5dbfa952e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/425/03af8e03b5d1c35c781517d0d00adb5dbfa952e6/scriptrunner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3579,
1537,
12,
2890,
16,
498,
1537,
16,
1547,
33,
20,
16,
1652,
3053,
33,
503,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3579,
1537,
12,
2890,
16,
498,
1537,
16,
1547,
33,
20,
16,
1652,
3053,
33,
503,
16,
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
] |
if self.request.strip().upper() == 'KILL': self.serverSocket.sendall('QUIT\r\n') self.send("+OK, dying.\r\n") self.serverSocket.shutdown(2) self.serverSocket.close()
|
verb = self.request.strip().upper() if verb == 'KILL':
|
def found_terminator(self): """Asynchat override.""" if self.request.strip().upper() == 'KILL': self.serverSocket.sendall('QUIT\r\n') self.send("+OK, dying.\r\n") self.serverSocket.shutdown(2) self.serverSocket.close() self.shutdown(2) self.close() raise SystemExit
|
bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
6405,
273,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
309,
6405,
422,
296,
47,
15125,
4278,
365,
18,
15132,
12,
22,
13,
365,
18,
4412,
1435,
1002,
25454,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
6405,
273,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
309,
6405,
422,
296,
47,
15125,
4278,
365,
18,
15132,
12,
22,
13,
365,
18,
4412,
1435,
1002,
25454,
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
] |
return command
|
return cmd
|
def complete(self, text, state): idx = 0 for command in self.commands: if command.startswith(text): idx += 1 if idx > state: return command #print "text: '%s', state '%d'" % (text, state)
|
4fa40d0fa53f566e2da9a25725626441b833727b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8501/4fa40d0fa53f566e2da9a25725626441b833727b/hatari-console.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3912,
12,
2890,
16,
977,
16,
919,
4672,
2067,
273,
374,
364,
1296,
316,
365,
18,
7847,
30,
309,
1296,
18,
17514,
1918,
12,
955,
4672,
2067,
1011,
404,
309,
2067,
405,
919,
30,
327,
1797,
468,
1188,
315,
955,
30,
1995,
87,
2187,
919,
1995,
72,
4970,
738,
261,
955,
16,
919,
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,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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,
3912,
12,
2890,
16,
977,
16,
919,
4672,
2067,
273,
374,
364,
1296,
316,
365,
18,
7847,
30,
309,
1296,
18,
17514,
1918,
12,
955,
4672,
2067,
1011,
404,
309,
2067,
405,
919,
30,
327,
1797,
468,
1188,
315,
955,
30,
1995,
87,
2187,
919,
1995,
72,
4970,
738,
261,
955,
16,
919,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r""" Sequence of Fibonacci numbers, offset 0,4. REFERENCES: S. Plouffe, Project Gutenberg, The First 1001 Fibonacci Numbers, \url{http://ibiblio.org/pub/docs/books/gutenberg/etext01/fbncc10.txt} We have one more. Our first Fibonacci number is 0. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000045; a Fibonacci numbers with index n >= 0 sage: a(0) 0 sage: a(1) 1 sage: a.list(12) [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] sage: a(1/3) Traceback (most recent call last): ... TypeError: input must be an int, long, or Integer AUTHOR: -- Jaap Spies (2007-01-13) """ def __init__(self):
|
def __init__(self): r""" Sequence of Fibonacci numbers, offset 0,4. REFERENCES: S. Plouffe, Project Gutenberg, The First 1001 Fibonacci Numbers, \url{http://ibiblio.org/pub/docs/books/gutenberg/etext01/fbncc10.txt} We have one more. Our first Fibonacci number is 0. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000045; a Fibonacci numbers with index n >= 0 sage: a(0) 0 sage: a(1) 1 sage: a.list(12) [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] sage: a(1/3) Traceback (most recent call last): ... TypeError: input must be an int, long, or Integer AUTHOR: -- Jaap Spies (2007-01-13) """
|
def _eval(self, n): return partition.Partitions(n).count()
|
d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
3590,
18,
13738,
12,
82,
2934,
1883,
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,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
290,
4672,
327,
3590,
18,
13738,
12,
82,
2934,
1883,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.fileobj.write(struct.pack("<L", self.pos))
|
self.fileobj.write(struct.pack("<L", self.pos & 0xffffFFFFL))
|
def close(self): """Close the _Stream object. No operation should be done on it afterwards. """ if self.closed: return
|
d27bbf0a8d82702edfcccfd0de73e7f6df191a5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d27bbf0a8d82702edfcccfd0de73e7f6df191a5d/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
389,
1228,
733,
18,
2631,
1674,
1410,
506,
2731,
603,
518,
23838,
18,
3536,
309,
365,
18,
12204,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
389,
1228,
733,
18,
2631,
1674,
1410,
506,
2731,
603,
518,
23838,
18,
3536,
309,
365,
18,
12204,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
title = u"I&nstall", helpString = u'Install plugins'),
|
title = _(u"I&nstall"), helpString = _(u'Install plugins')),
|
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
|
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
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
] |
for d in dirp:
|
for d in dirs:
|
def dirfilt(root, dirs): """ Platform hook to filter out any directories that should not be descended into, root and dirs corresponds as per os.dirwalk() and same semantics for these objects apply. """ removelist = [] ws = NSWorkspace.sharedWorkspace() for d in dirp: if ws.isFilePackageAtPath_(os.path.join(root, d)): removelist.append(d) for x in removelist: dirs.remove(x) return dirs
|
a90ef12db7a34753fc40cd7b9cfeeac77611f830 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/a90ef12db7a34753fc40cd7b9cfeeac77611f830/utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1577,
30991,
12,
3085,
16,
7717,
4672,
3536,
11810,
3953,
358,
1034,
596,
1281,
6402,
716,
1410,
486,
506,
3044,
3934,
1368,
16,
1365,
471,
7717,
13955,
487,
1534,
1140,
18,
1214,
11348,
1435,
471,
1967,
17267,
364,
4259,
2184,
2230,
18,
3536,
849,
83,
941,
376,
273,
5378,
4945,
273,
11472,
8241,
18,
11574,
8241,
1435,
364,
302,
316,
7717,
30,
309,
4945,
18,
291,
812,
2261,
861,
743,
67,
12,
538,
18,
803,
18,
5701,
12,
3085,
16,
302,
3719,
30,
849,
83,
941,
376,
18,
6923,
12,
72,
13,
364,
619,
316,
849,
83,
941,
376,
30,
7717,
18,
4479,
12,
92,
13,
327,
7717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1577,
30991,
12,
3085,
16,
7717,
4672,
3536,
11810,
3953,
358,
1034,
596,
1281,
6402,
716,
1410,
486,
506,
3044,
3934,
1368,
16,
1365,
471,
7717,
13955,
487,
1534,
1140,
18,
1214,
11348,
1435,
471,
1967,
17267,
364,
4259,
2184,
2230,
18,
3536,
849,
83,
941,
376,
273,
5378,
4945,
273,
11472,
8241,
18,
11574,
8241,
1435,
364,
302,
316,
7717,
30,
309,
4945,
18,
291,
812,
2261,
861,
743,
67,
12,
538,
18,
803,
18,
5701,
12,
3085,
16,
302,
3719,
30,
849,
83,
941,
376,
18,
6923,
12,
72,
13,
364,
619,
316,
849,
83,
941,
376,
30,
7717,
18,
4479,
12,
92,
13,
327,
7717,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.PE_TYPE == OPTIONAL_HEADER_MAGIC_PE: format = self.__IMAGE_THUNK_DATA_format__ elif self.PE_TYPE == OPTIONAL_HEADER_MAGIC_PE_PLUS: format = self.__IMAGE_THUNK_DATA64_format__
|
def get_import_table(self, rva): table = [] while True and rva: try: data = self.get_data(rva) except PEFormatError, e: self.__warnings.append( 'Error parsing the import table. ' + 'Invalid data at RVA: 0x%x' % ( rva ) ) return None if self.PE_TYPE == OPTIONAL_HEADER_MAGIC_PE: format = self.__IMAGE_THUNK_DATA_format__ elif self.PE_TYPE == OPTIONAL_HEADER_MAGIC_PE_PLUS: format = self.__IMAGE_THUNK_DATA64_format__ thunk_data = self.__unpack_data__( format, data, file_offset=self.get_offset_from_rva(rva) ) if not thunk_data or thunk_data.all_zeroes(): break rva += thunk_data.sizeof() table.append(thunk_data) return table
|
1d5b4f161f415406d1d384dc2319874979bcdef8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/1d5b4f161f415406d1d384dc2319874979bcdef8/pefile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5666,
67,
2121,
12,
2890,
16,
5633,
69,
4672,
225,
1014,
273,
5378,
225,
1323,
1053,
471,
5633,
69,
30,
775,
30,
501,
273,
365,
18,
588,
67,
892,
12,
4962,
69,
13,
1335,
16628,
29874,
16,
425,
30,
365,
16186,
12103,
18,
6923,
12,
296,
668,
5811,
326,
1930,
1014,
18,
296,
397,
296,
1941,
501,
622,
534,
27722,
30,
374,
92,
9,
92,
11,
738,
261,
5633,
69,
262,
262,
327,
599,
225,
286,
1683,
67,
892,
273,
365,
16186,
17309,
67,
892,
972,
12,
740,
16,
501,
16,
585,
67,
3348,
33,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5666,
67,
2121,
12,
2890,
16,
5633,
69,
4672,
225,
1014,
273,
5378,
225,
1323,
1053,
471,
5633,
69,
30,
775,
30,
501,
273,
365,
18,
588,
67,
892,
12,
4962,
69,
13,
1335,
16628,
29874,
16,
425,
30,
365,
16186,
12103,
18,
6923,
12,
296,
668,
5811,
326,
1930,
1014,
18,
296,
397,
296,
1941,
501,
622,
534,
27722,
30,
374,
92,
9,
92,
11,
738,
261,
5633,
69,
262,
262,
327,
599,
225,
286,
1683,
67,
892,
273,
365,
16186,
17309,
67,
892,
972,
12,
740,
16,
501,
16,
585,
67,
3348,
33,
2890,
18,
588,
67,
3348,
67,
2080,
67,
4962,
69,
12,
4962,
69,
13,
262,
225,
309,
486,
286,
1683,
67,
2
] |
|
sources.append(self.parse(extra_phil))
|
self.merge_phil(phil_string=extra_phil, rebuild_index=False)
|
def save_param_file (self, file_name, sources=None, extra_phil="", diff_only=False, save_state=False) : if sources is None : sources = [] if extra_phil != "" : sources.append(self.parse(extra_phil)) final_phil = self.master_phil.fetch(sources=[self.working_phil]+sources) if diff_only : output_phil = self.master_phil.fetch_diff(source=final_phil) else : output_phil = final_phil f = open(file_name, "w") output_phil.show(out=f) f.close() if save_state : cache_file = "%s_cache.pkl" % file_name easy_pickle.dump(cache_file, self)
|
dfcd064589ff97e21974bcd8309f5d4bb0afc5fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/dfcd064589ff97e21974bcd8309f5d4bb0afc5fc/interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
891,
67,
768,
261,
2890,
16,
585,
67,
529,
16,
5550,
33,
7036,
16,
2870,
67,
844,
330,
1546,
3113,
3122,
67,
3700,
33,
8381,
16,
1923,
67,
2019,
33,
8381,
13,
294,
309,
5550,
353,
599,
294,
5550,
273,
5378,
309,
2870,
67,
844,
330,
480,
1408,
294,
365,
18,
2702,
67,
844,
330,
12,
844,
330,
67,
1080,
33,
7763,
67,
844,
330,
16,
13419,
67,
1615,
33,
8381,
13,
727,
67,
844,
330,
273,
365,
18,
7525,
67,
844,
330,
18,
5754,
12,
10141,
22850,
2890,
18,
20478,
67,
844,
330,
3737,
10141,
13,
309,
3122,
67,
3700,
294,
876,
67,
844,
330,
273,
365,
18,
7525,
67,
844,
330,
18,
5754,
67,
5413,
12,
3168,
33,
6385,
67,
844,
330,
13,
469,
294,
876,
67,
844,
330,
273,
727,
67,
844,
330,
284,
273,
1696,
12,
768,
67,
529,
16,
315,
91,
7923,
876,
67,
844,
330,
18,
4500,
12,
659,
33,
74,
13,
284,
18,
4412,
1435,
309,
1923,
67,
2019,
294,
1247,
67,
768,
273,
2213,
87,
67,
2493,
18,
5465,
80,
6,
738,
585,
67,
529,
12779,
67,
20847,
18,
8481,
12,
2493,
67,
768,
16,
365,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
891,
67,
768,
261,
2890,
16,
585,
67,
529,
16,
5550,
33,
7036,
16,
2870,
67,
844,
330,
1546,
3113,
3122,
67,
3700,
33,
8381,
16,
1923,
67,
2019,
33,
8381,
13,
294,
309,
5550,
353,
599,
294,
5550,
273,
5378,
309,
2870,
67,
844,
330,
480,
1408,
294,
365,
18,
2702,
67,
844,
330,
12,
844,
330,
67,
1080,
33,
7763,
67,
844,
330,
16,
13419,
67,
1615,
33,
8381,
13,
727,
67,
844,
330,
273,
365,
18,
7525,
67,
844,
330,
18,
5754,
12,
10141,
22850,
2890,
18,
20478,
67,
844,
330,
3737,
10141,
13,
309,
3122,
67,
3700,
294,
876,
67,
844,
330,
273,
365,
18,
7525,
67,
844,
330,
18,
5754,
67,
2
] |
newnode = self.Node(parent.position + diff*d/div, angle, parent = parent, time = newtime, freeprob = newprob)
|
subpos = bestparent.position + diff*d/div freeprob = self.freeprob_turn_line(lastnode.position, lastnode.angle, subpos, view, lastnode.time) dt = self.segment_time(lastnode.angle, lastnode.position, subpos) newnode = self.Node(subpos, angle, parent = lastnode, time = lastnode.time + dt, freeprob = lastnode.freeprob * freeprob) lastnode = newnode
|
def getpath(self, view, max_size): testpath = self.find_globaltree(self.position, self.angle, view, 0, 1) if testpath: return testpath print "Cannot find global path from current, extending search tree" start = Arty.Node(self.position, self.angle, parent = None, time = 0, freeprob = 1) nodes = [start]
|
61e06514249f4a065965dbc16b1504bb428a21ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9407/61e06514249f4a065965dbc16b1504bb428a21ae/units.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
803,
12,
2890,
16,
1476,
16,
943,
67,
1467,
4672,
1842,
803,
273,
365,
18,
4720,
67,
6347,
3413,
12,
2890,
18,
3276,
16,
365,
18,
4341,
16,
1476,
16,
374,
16,
404,
13,
309,
1842,
803,
30,
327,
1842,
803,
1172,
315,
4515,
1104,
2552,
589,
628,
783,
16,
27147,
1623,
2151,
6,
225,
787,
273,
1201,
4098,
18,
907,
12,
2890,
18,
3276,
16,
365,
18,
4341,
16,
982,
273,
599,
16,
813,
273,
374,
16,
4843,
7748,
273,
404,
13,
2199,
273,
306,
1937,
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,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,
6347,
3413,
12,
2890,
18,
3276,
16,
365,
18,
4341,
16,
1476,
16,
374,
16,
404,
13,
309,
1842,
803,
30,
327,
1842,
803,
1172,
315,
4515,
1104,
2552,
589,
628,
783,
16,
27147,
1623,
2151,
6,
225,
787,
273,
1201,
4098,
18,
907,
12,
2890,
18,
3276,
16,
365,
18,
4341,
16,
982,
273,
599,
16,
813,
273,
374,
16,
4843,
7748,
273,
404,
13,
2199,
273,
306,
1937,
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
] |
@bigmemtest(minsize=_2G + 2, memuse=8 + 3)
|
@bigmemtest(minsize=_2G + 2, memuse=8 + 3 * character_size)
|
def test_repr_small(self, size): return self.basic_test_repr(size)
|
63a284272952002c43d0677f047977034312543b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/63a284272952002c43d0677f047977034312543b/test_bigmem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12715,
67,
12019,
12,
2890,
16,
963,
4672,
327,
365,
18,
13240,
67,
3813,
67,
12715,
12,
1467,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
12715,
67,
12019,
12,
2890,
16,
963,
4672,
327,
365,
18,
13240,
67,
3813,
67,
12715,
12,
1467,
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
] |
print "Slice.tick"
|
def tick_operation(self, op): """ Op handler for regular tick op """ print "Slice.tick"
|
eb993559622c0db68ad5e8781c5b16d0b2845519 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/eb993559622c0db68ad5e8781c5b16d0b2845519/Slice.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
67,
7624,
12,
2890,
16,
1061,
4672,
3536,
6066,
1838,
364,
6736,
4024,
1061,
3536,
1172,
315,
5959,
18,
6470,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
67,
7624,
12,
2890,
16,
1061,
4672,
3536,
6066,
1838,
364,
6736,
4024,
1061,
3536,
1172,
315,
5959,
18,
6470,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 "func btn called from ", source
|
logger.debug("func btn called from %s", source)
|
def func_btn(self,emission, source, param): print "func btn called from ", source state = emission.part_state_get(param) print state[0] if param == 'call-button': if state[0] == 'default': #self.create_call() print "nothing to be done" elif state[0] == 'incoming': self.accept_call(emission) elif state[0] == 'dialing': self.release_call(emission) elif state[0] == 'active': self.release_call(emission) elif state[0] == 'releasing': #self.accept_call() print "nothing to be done" else : print "unknown state for call button" elif param == 'del-button': if state[0] == 'default': print "nothing to be done" elif state[0] == 'incoming': #self.accept_call() print "nothing to be done" elif state[0] == 'dialing': #self.release_call() print "nothing to be done" elif state[0] == 'active': #self.mute_call print "would be muting" elif state[0] == 'releasing': #self.accept_call() print "nothing to be done" else : print "unknown state for del button" else : print "unknown button"
|
01c25941dcc46b5166dcddd3aeed3ae3b26b48e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/01c25941dcc46b5166dcddd3aeed3ae3b26b48e6/paroli-dialer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
11898,
12,
2890,
16,
351,
19710,
16,
1084,
16,
579,
4672,
1194,
18,
4148,
2932,
644,
10638,
2566,
628,
738,
87,
3113,
1084,
13,
919,
273,
801,
19710,
18,
2680,
67,
2019,
67,
588,
12,
891,
13,
1172,
919,
63,
20,
65,
309,
579,
422,
296,
1991,
17,
5391,
4278,
225,
309,
919,
63,
20,
65,
422,
296,
1886,
4278,
468,
2890,
18,
2640,
67,
1991,
1435,
1172,
315,
30874,
358,
506,
2731,
6,
225,
1327,
919,
63,
20,
65,
422,
296,
31033,
4278,
365,
18,
9436,
67,
1991,
12,
351,
19710,
13,
225,
1327,
919,
63,
20,
65,
422,
296,
25909,
310,
4278,
365,
18,
9340,
67,
1991,
12,
351,
19710,
13,
225,
1327,
919,
63,
20,
65,
422,
296,
3535,
4278,
365,
18,
9340,
67,
1991,
12,
351,
19710,
13,
225,
1327,
919,
63,
20,
65,
422,
296,
16599,
11730,
4278,
468,
2890,
18,
9436,
67,
1991,
1435,
1172,
315,
30874,
358,
506,
2731,
6,
225,
469,
294,
1172,
315,
8172,
919,
364,
745,
3568,
6,
225,
1327,
579,
422,
296,
3771,
17,
5391,
4278,
225,
309,
919,
63,
20,
65,
422,
296,
1886,
4278,
1172,
315,
30874,
358,
506,
2731,
6,
225,
1327,
919,
63,
20,
65,
422,
296,
31033,
4278,
468,
2890,
18,
9436,
67,
1991,
1435,
1172,
315,
30874,
358,
506,
2731,
6,
225,
1327,
919,
63,
20,
65,
422,
296,
25909,
310,
4278,
468,
2890,
18,
9340,
67,
1991,
1435,
1172,
315,
30874,
358,
506,
2731,
6,
282,
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,
1326,
67,
11898,
12,
2890,
16,
351,
19710,
16,
1084,
16,
579,
4672,
1194,
18,
4148,
2932,
644,
10638,
2566,
628,
738,
87,
3113,
1084,
13,
919,
273,
801,
19710,
18,
2680,
67,
2019,
67,
588,
12,
891,
13,
1172,
919,
63,
20,
65,
309,
579,
422,
296,
1991,
17,
5391,
4278,
225,
309,
919,
63,
20,
65,
422,
296,
1886,
4278,
468,
2890,
18,
2640,
67,
1991,
1435,
1172,
315,
30874,
358,
506,
2731,
6,
225,
1327,
919,
63,
20,
65,
422,
296,
31033,
4278,
365,
18,
9436,
67,
1991,
12,
351,
19710,
13,
225,
1327,
919,
63,
20,
65,
422,
296,
25909,
310,
4278,
365,
18,
9340,
67,
1991,
12,
351,
19710,
13,
225,
1327,
919,
2
] |
print 'FILL'
|
def _tag_menuitem(self, cr, rec, data_node=None): rec_id = rec.getAttribute("id").encode('ascii') m_l = map(escape, escape_re.split(rec.getAttribute("name").encode('utf8'))) pid = False for idx, menu_elem in enumerate(m_l): if pid: cr.execute('select id from ir_ui_menu where parent_id=%d and name=%s', (pid, menu_elem)) else: cr.execute('select id from ir_ui_menu where parent_id is null and name=%s', (menu_elem,)) res = cr.fetchone() if idx==len(m_l)-1: # we are at the last menu element/level (it's a leaf) values = {'parent_id': pid,'name':menu_elem}
|
a443ec7892ce9f52dc2b5c2b3d000138f275d0ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/a443ec7892ce9f52dc2b5c2b3d000138f275d0ce/convert.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
67,
80,
273,
852,
12,
6939,
16,
4114,
67,
266,
18,
4939,
12,
3927,
18,
588,
1499,
2932,
529,
20387,
3015,
2668,
3158,
28,
11,
20349,
4231,
273,
1083,
364,
2067,
16,
3824,
67,
10037,
316,
4241,
12,
81,
67,
80,
4672,
309,
4231,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
4881,
67,
5414,
1625,
982,
67,
350,
5095,
72,
471,
508,
5095,
87,
2187,
261,
6610,
16,
3824,
67,
10037,
3719,
469,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
4881,
67,
5414,
1625,
982,
67,
350,
353,
446,
471,
508,
5095,
87,
2187,
261,
5414,
67,
10037,
16,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
309,
2067,
631,
1897,
12,
81,
67,
80,
24950,
21,
30,
468,
732,
854,
622,
326,
1142,
3824,
930,
19,
2815,
261,
305,
1807,
279,
7839,
13,
924,
273,
13666,
2938,
67,
350,
4278,
4231,
11189,
529,
4278,
5414,
67,
10037,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
67,
80,
273,
852,
12,
6939,
16,
4114,
67,
266,
18,
4939,
12,
3927,
18,
588,
1499,
2932,
529,
20387,
3015,
2668,
3158,
28,
11,
20349,
4231,
273,
1083,
364,
2067,
16,
3824,
67,
10037,
316,
4241,
12,
81,
67,
80,
4672,
309,
4231,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
4881,
67,
5414,
1625,
982,
67,
350,
5095,
72,
471,
508,
5095,
87,
2187,
261,
6610,
16,
3824,
67,
10037,
3719,
469,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
2
] |
|
for field_name in self._field_names: if not initial_dict.has_key(form_prefix + '-' + field_name): initial_dict[form_prefix + '-' + field_name] = getattr(self, field_name)
|
if not populating_from_form: for field_name in self._field_names: initial_dict[form_prefix + '-' + field_name] = getattr(self, field_name)
|
def get_field_by_name(name): for f in self._meta.fields: if f.name == name: return f return None
|
49ea956eba4efa8908b5eae6bcf0b3c8940bff66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/49ea956eba4efa8908b5eae6bcf0b3c8940bff66/app_.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1518,
67,
1637,
67,
529,
12,
529,
4672,
364,
284,
316,
365,
6315,
3901,
18,
2821,
30,
309,
284,
18,
529,
422,
508,
30,
327,
284,
327,
599,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1518,
67,
1637,
67,
529,
12,
529,
4672,
364,
284,
316,
365,
6315,
3901,
18,
2821,
30,
309,
284,
18,
529,
422,
508,
30,
327,
284,
327,
599,
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
] |
from sage.libs.pari.all import pari from sage.interfaces.gp import Gp,gp R,a = _setup(prec) ans = gp.eval("hyperu(%s,%s,%s)"%(alpha,beta,x)) return R(ans) def spherical_bessel_J(n, var, alg="maxima"):
|
elif algorithm=='pari': from sage.libs.pari.all import pari from sage.interfaces.gp import Gp,gp R,a = _setup(prec) ans = gp.eval("hyperu(%s,%s,%s)"%(alpha,beta,x)) return R(ans) else: raise ValueError, "unknown algorithm '%s'"%algorithm def spherical_bessel_J(n, var, algorithm="maxima"):
|
def hypergeometric_U(alpha,beta,x,alg="pari",prec=53): r""" Default is a wrap of Pari's hyperu(alpha,beta,x) function. Optionally, alg = "scipy" can be used. The confluent hypergeometric function $y = U(a,b,x)$ is defined to be the solution to Kummer's differential equation \[ xy'' + (b-x)y' - ay = 0. \] This satisfies $U(a,b,x) \sim x^{-a}$, as $x\rightarrow \infty$, and is sometimes denoted \verb|x^{-a}2_F_0(a,1+a-b,-1/x)|. This is not the same as Kummer's $M$-hypergeometric function, denoted sometimes as \verb|_1F_1(alpha,beta,x)|, though it satisfies the same DE that $U$ does. WARNING: In the literature, both are called "Kummer confluent hypergeometric" functions. EXAMPLES: sage: hypergeometric_U(1,1,1,"scipy") 0.596347362323... sage: hypergeometric_U(1,1,1) 0.59634736232319... sage: hypergeometric_U(1,1,1,"pari",70) 0.59634736232319407434... """ if alg=="scipy": import scipy.special ans = str(scipy.special.hyperu(float(alpha),float(beta),float(x))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans) ## For commented out code below, ## f = lambda x: hypergeometric_U(1,1,x) ## P = plot(f,0.1,1) ## seems to hang. I don't know why. from sage.libs.pari.all import pari from sage.interfaces.gp import Gp,gp R,a = _setup(prec) #b = R(pari(alpha).hyperu(beta,x)) #pari.set_real_precision(a) #return b #above has weird bug ans = gp.eval("hyperu(%s,%s,%s)"%(alpha,beta,x)) return R(ans)
|
6634f9ab85d7944da6788aaab93ffaa3f22ce5ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6634f9ab85d7944da6788aaab93ffaa3f22ce5ac/special.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9512,
10049,
1591,
67,
57,
12,
5429,
16,
5758,
16,
92,
16,
18413,
1546,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
2989,
353,
279,
2193,
434,
2280,
77,
1807,
9512,
89,
12,
5429,
16,
5758,
16,
92,
13,
445,
18,
20720,
16,
11989,
273,
315,
1017,
9126,
6,
848,
506,
1399,
18,
225,
1021,
2195,
80,
10744,
9512,
10049,
1591,
445,
271,
93,
273,
587,
12,
69,
16,
70,
16,
92,
21877,
353,
2553,
358,
506,
326,
6959,
358,
1475,
379,
6592,
1807,
15221,
2001,
15778,
225,
521,
63,
7668,
6309,
397,
261,
70,
17,
92,
13,
93,
11,
300,
26179,
273,
374,
18,
521,
65,
1220,
17917,
271,
57,
12,
69,
16,
70,
16,
92,
13,
521,
9812,
619,
66,
95,
17,
69,
22496,
16,
487,
271,
92,
64,
4083,
7815,
521,
267,
1222,
93,
8,
16,
471,
353,
16594,
5545,
16474,
521,
16629,
96,
92,
66,
95,
17,
69,
97,
22,
67,
42,
67,
20,
12,
69,
16,
21,
15,
69,
17,
70,
16,
17,
21,
19,
92,
14047,
18,
1220,
353,
486,
326,
1967,
487,
1475,
379,
6592,
1807,
271,
49,
8,
17,
17203,
10049,
1591,
445,
16,
5545,
16474,
16594,
487,
521,
16629,
96,
67,
21,
42,
67,
21,
12,
5429,
16,
5758,
16,
92,
14047,
16,
11376,
518,
17917,
326,
1967,
2030,
716,
271,
57,
8,
1552,
18,
225,
9744,
30,
657,
326,
328,
2165,
1231,
16,
3937,
854,
2566,
315,
47,
379,
6592,
2195,
80,
10744,
9512,
10049,
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,
9512,
10049,
1591,
67,
57,
12,
5429,
16,
5758,
16,
92,
16,
18413,
1546,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
2989,
353,
279,
2193,
434,
2280,
77,
1807,
9512,
89,
12,
5429,
16,
5758,
16,
92,
13,
445,
18,
20720,
16,
11989,
273,
315,
1017,
9126,
6,
848,
506,
1399,
18,
225,
1021,
2195,
80,
10744,
9512,
10049,
1591,
445,
271,
93,
273,
587,
12,
69,
16,
70,
16,
92,
21877,
353,
2553,
358,
506,
326,
6959,
358,
1475,
379,
6592,
1807,
15221,
2001,
15778,
225,
521,
63,
7668,
6309,
397,
261,
70,
17,
92,
13,
93,
11,
300,
26179,
273,
374,
18,
521,
65,
1220,
17917,
271,
57,
12,
69,
16,
70,
16,
92,
2
] |
self.pool.get('stock.location').write(cr, uid, [location_id], {'chained_auto_packing':'transparent'})
|
self.pool.get('stock.location').write(cr, uid, [location_id], {'chained_auto_packing': 'transparent'})
|
def set_default(self, cr, uid, ids, context=None): for o in self.browse(cr, uid, ids, context=context): ir_values_obj = self.pool.get('ir.values') ir_values_obj.set(cr,uid,'default',False,'picking_policy',['sale.order'],o.picking_policy) ir_values_obj.set(cr,uid,'default',False,'order_policy',['sale.order'],o.order_policy)
|
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1886,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
364,
320,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
9482,
67,
2372,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2372,
6134,
9482,
67,
2372,
67,
2603,
18,
542,
12,
3353,
16,
1911,
11189,
1886,
2187,
8381,
11189,
11503,
310,
67,
5086,
2187,
3292,
87,
5349,
18,
1019,
17337,
83,
18,
11503,
310,
67,
5086,
13,
9482,
67,
2372,
67,
2603,
18,
542,
12,
3353,
16,
1911,
11189,
1886,
2187,
8381,
11189,
1019,
67,
5086,
2187,
3292,
87,
5349,
18,
1019,
17337,
83,
18,
1019,
67,
5086,
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,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6134,
9482,
67,
2372,
67,
2603,
18,
542,
12,
3353,
16,
1911,
11189,
1886,
2187,
8381,
11189,
11503,
310,
67,
5086,
2187,
3292,
87,
5349,
18,
1019,
17337,
83,
18,
11503,
310,
67,
5086,
13,
9482,
67,
2372,
67,
2603,
18,
542,
12,
3353,
16,
1911,
11189,
1886,
2187,
8381,
11189,
1019,
67,
5086,
2187,
3292,
87,
5349,
18,
1019,
17337,
83,
18,
1019,
67,
5086,
13,
2,
-100,
-100,
-100
] |
metadata["License File"] = filename
|
metadata["License File"] = license_path
|
def ParseDir(path): """Examine a third_party/foo component and extract its metadata.""" # Parse metadata fields out of README.chromium. # We examine "LICENSE" for the license file by default. metadata = { "License File": "LICENSE", # Relative path to license text. "Name": None, # Short name (for header on about:credits). "URL": None, # Project home page. } if path in SPECIAL_CASES: metadata.update(SPECIAL_CASES[path]) else: # Try to find README.chromium. readme_path = os.path.join(path, 'README.chromium') if not os.path.exists(readme_path): raise LicenseError("missing README.chromium") for line in open(readme_path): line = line.strip() if not line: break for key in metadata.keys(): field = key + ": " if line.startswith(field): metadata[key] = line[len(field):] # Check that all expected metadata is present. for key, value in metadata.iteritems(): if not value: raise LicenseError("couldn't find '" + key + "' line " "in README.chromium or licences.py " "SPECIAL_CASES") # Check that the license file exists. for filename in (metadata["License File"], "COPYING"): license_path = os.path.join(path, filename) if os.path.exists(license_path): metadata["License File"] = filename break license_path = None if not license_path: raise LicenseError("License file not found. " "Either add a file named LICENSE, " "import upstream's COPYING if available, " "or add a 'License File:' line to README.chromium " "with the appropriate path.") return metadata
|
54ce726e1af62939cb12b09dc687737b114d426c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/54ce726e1af62939cb12b09dc687737b114d426c/licenses.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1621,
12,
803,
4672,
3536,
424,
301,
558,
279,
12126,
67,
21214,
19,
11351,
1794,
471,
2608,
2097,
1982,
12123,
225,
468,
2884,
1982,
1466,
596,
434,
10746,
958,
18,
16298,
5077,
18,
468,
1660,
19707,
558,
315,
6065,
23396,
6,
364,
326,
8630,
585,
635,
805,
18,
1982,
273,
288,
315,
13211,
1387,
6877,
315,
6065,
23396,
3113,
225,
468,
19873,
589,
358,
8630,
977,
18,
315,
461,
6877,
599,
16,
9079,
468,
7925,
508,
261,
1884,
1446,
603,
2973,
30,
20610,
1282,
2934,
315,
1785,
6877,
599,
16,
7734,
468,
5420,
6382,
1363,
18,
289,
225,
309,
589,
316,
22872,
6365,
67,
13415,
55,
30,
1982,
18,
2725,
12,
13847,
6365,
67,
13415,
55,
63,
803,
5717,
469,
30,
468,
6161,
358,
1104,
10746,
958,
18,
16298,
5077,
18,
24778,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
803,
16,
296,
6949,
958,
18,
16298,
5077,
6134,
309,
486,
1140,
18,
803,
18,
1808,
12,
896,
3501,
67,
803,
4672,
1002,
16832,
668,
2932,
7337,
10746,
958,
18,
16298,
5077,
7923,
225,
364,
980,
316,
1696,
12,
896,
3501,
67,
803,
4672,
980,
273,
980,
18,
6406,
1435,
309,
486,
980,
30,
898,
364,
498,
316,
1982,
18,
2452,
13332,
652,
273,
498,
397,
6398,
315,
309,
980,
18,
17514,
1918,
12,
1518,
4672,
1982,
63,
856,
65,
273,
980,
63,
1897,
12,
1518,
4672,
65,
225,
468,
2073,
716,
777,
2665,
1982,
353,
3430,
18,
364,
498,
16,
460,
316,
1982,
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,
2884,
1621,
12,
803,
4672,
3536,
424,
301,
558,
279,
12126,
67,
21214,
19,
11351,
1794,
471,
2608,
2097,
1982,
12123,
225,
468,
2884,
1982,
1466,
596,
434,
10746,
958,
18,
16298,
5077,
18,
468,
1660,
19707,
558,
315,
6065,
23396,
6,
364,
326,
8630,
585,
635,
805,
18,
1982,
273,
288,
315,
13211,
1387,
6877,
315,
6065,
23396,
3113,
225,
468,
19873,
589,
358,
8630,
977,
18,
315,
461,
6877,
599,
16,
9079,
468,
7925,
508,
261,
1884,
1446,
603,
2973,
30,
20610,
1282,
2934,
315,
1785,
6877,
599,
16,
7734,
468,
5420,
6382,
1363,
18,
289,
225,
309,
589,
316,
22872,
6365,
67,
13415,
55,
30,
1982,
18,
2725,
12,
13847,
6365,
67,
13415,
55,
63,
2
] |
""" def koira(): random.random() time.time() msg() PIL.Image.load() nenuto = "dssd" nenuto.poko() gluster.ke util.ko nero.ds() print ["colorsys"] + find_modules([koira], send_modules = True) """
|
def find_modules(funs, send_modules = True, recurse = True): mods = {} for fun in funs: fmod = parse_function(fun) if send_modules: try: m = locate_modules(fmod, recurse,\ include_sys = True) mods.update(m) except ImportError, x: raise ImportError("Could not find module %s "\ "defined in %s. Maybe it is a typo. If it is "\ "a valid module, see documetation of the "\ "required_modules parameter for instructions "\ "on how to include it properly." %\ (x.module, fun.func_name)) else: mods.update((m, None) for m in fmod) if send_modules: return [(k, v) for k, v in mods.iteritems() if v] +\ [k for k, v in mods.iteritems() if not v] else: return mods.keys()
|
b3e9b01065daf85543815879ccf2931d66a57dc6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/b3e9b01065daf85543815879ccf2931d66a57dc6/modutil.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
12,
12125,
87,
16,
1366,
67,
6400,
273,
1053,
16,
11502,
273,
1053,
4672,
15546,
273,
2618,
364,
9831,
316,
9831,
87,
30,
284,
1711,
273,
1109,
67,
915,
12,
12125,
13,
309,
1366,
67,
6400,
30,
775,
30,
312,
273,
10627,
67,
6400,
12,
74,
1711,
16,
11502,
17211,
2341,
67,
9499,
273,
1053,
13,
15546,
18,
2725,
12,
81,
13,
1335,
11308,
16,
619,
30,
1002,
11308,
2932,
4445,
486,
1104,
1605,
738,
87,
1548,
315,
2178,
316,
738,
87,
18,
14024,
518,
353,
279,
3815,
83,
18,
971,
518,
353,
1548,
315,
69,
923,
1605,
16,
2621,
997,
379,
278,
367,
434,
326,
1548,
315,
4718,
67,
6400,
1569,
364,
12509,
1548,
315,
265,
3661,
358,
2341,
518,
8214,
1199,
738,
64,
261,
92,
18,
2978,
16,
9831,
18,
644,
67,
529,
3719,
469,
30,
15546,
18,
2725,
12443,
81,
16,
599,
13,
364,
312,
316,
284,
1711,
13,
309,
1366,
67,
6400,
30,
327,
306,
12,
79,
16,
331,
13,
364,
417,
16,
331,
316,
15546,
18,
2165,
3319,
1435,
309,
331,
65,
397,
64,
306,
79,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16,
1366,
67,
6400,
273,
1053,
16,
11502,
273,
1053,
4672,
15546,
273,
2618,
364,
9831,
316,
9831,
87,
30,
284,
1711,
273,
1109,
67,
915,
12,
12125,
13,
309,
1366,
67,
6400,
30,
775,
30,
312,
273,
10627,
67,
6400,
12,
74,
1711,
16,
11502,
17211,
2341,
67,
9499,
273,
1053,
13,
15546,
18,
2725,
12,
81,
13,
1335,
11308,
16,
619,
30,
1002,
11308,
2932,
4445,
486,
1104,
1605,
738,
87,
1548,
315,
2178,
316,
738,
87,
18,
14024,
518,
353,
279,
3815,
83,
18,
971,
518,
353,
1548,
315,
69,
923,
1605,
16,
2621,
997,
379,
278,
367,
434,
326,
1548,
315,
4718,
67,
6400,
1569,
364,
12509,
1548,
2
] |
|
self.outputfile = 'output_' + type + '.txt' self.outputerr = 'outputErr_' + type + '.txt'
|
self.outputfile = 'output_' + output.__str__().replace(self.filesuffix, '.txt') self.outputerr = 'outputErr_' + output.__str__().replace(self.filesuffix, '.txt')
|
def doJob(self, type): #create Config process = cms.Config(type) process.events(self.numberofevents_) output = self.filepath + self.fileprefix + type + "_" + time.strftime("%d%m%y", time.gmtime()) + self.filesuffix process.out(output) #setup outputfiles self.outputfile = 'output_' + type + '.txt' self.outputerr = 'outputErr_' + type + '.txt' self.executeCMSrun(process.returnTempCfg())
|
bbc867eec2f9e70c395143d62a40336222949829 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3254/bbc867eec2f9e70c395143d62a40336222949829/ConfigRunner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2278,
12,
2890,
16,
618,
4672,
468,
2640,
1903,
1207,
273,
6166,
18,
809,
12,
723,
13,
1207,
18,
5989,
12,
2890,
18,
2696,
792,
5989,
67,
13,
876,
273,
365,
18,
10561,
397,
365,
18,
768,
3239,
397,
618,
397,
8802,
397,
813,
18,
701,
9982,
27188,
72,
9,
81,
9,
93,
3113,
813,
18,
75,
10838,
10756,
397,
365,
18,
2354,
2609,
1207,
18,
659,
12,
2844,
13,
468,
8401,
876,
2354,
365,
18,
2844,
768,
273,
296,
2844,
4623,
397,
876,
16186,
701,
972,
7675,
2079,
12,
2890,
18,
2354,
2609,
16,
2418,
5830,
6134,
365,
18,
2844,
370,
273,
296,
2844,
2524,
4623,
397,
876,
16186,
701,
972,
7675,
2079,
12,
2890,
18,
2354,
2609,
16,
2418,
5830,
6134,
365,
18,
8837,
13802,
2681,
12,
2567,
18,
2463,
7185,
8198,
10756,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
2278,
12,
2890,
16,
618,
4672,
468,
2640,
1903,
1207,
273,
6166,
18,
809,
12,
723,
13,
1207,
18,
5989,
12,
2890,
18,
2696,
792,
5989,
67,
13,
876,
273,
365,
18,
10561,
397,
365,
18,
768,
3239,
397,
618,
397,
8802,
397,
813,
18,
701,
9982,
27188,
72,
9,
81,
9,
93,
3113,
813,
18,
75,
10838,
10756,
397,
365,
18,
2354,
2609,
1207,
18,
659,
12,
2844,
13,
468,
8401,
876,
2354,
365,
18,
2844,
768,
273,
296,
2844,
4623,
397,
876,
16186,
701,
972,
7675,
2079,
12,
2890,
18,
2354,
2609,
16,
2418,
5830,
6134,
365,
18,
2844,
370,
273,
296,
2844,
2524,
4623,
397,
876,
16186,
701,
972,
7675,
2079,
12,
2890,
18,
2
] |
update_view(index * 4 + 0, 0, 0x80, 0, 0) update_view(index * 4 + 1, 0, 0x80, 0, 0) update_view(index * 4 + 2, 0, 0x80, 0, 0) update_view(index * 4 + 3, 0, 0x80, 0, 0)
|
update_view(index * 4 + 0, [0, 0x80, 0, 0]) update_view(index * 4 + 1, [0, 0x80, 0, 0]) update_view(index * 4 + 2, [0, 0x80, 0, 0]) update_view(index * 4 + 3, [0, 0x80, 0, 0])
|
def read_in(): global in_frame, init_level, angle, index, speed_rpm nb_errors = 0 while True: try: time.sleep(0.00001) # do not hog the processor power if init_level == 0 : # start byte b = ord(ser.read(1)) if b == 0xFA : init_level = 1 else: init_level = 0 elif init_level == 1: # position index b = ord(ser.read(1)) if b >= 0xA0 and b <= 0xF9 : index = b - 0xA0 init_level = 2 else: init_level = 0 elif init_level == 2 : # speed b_speed = [ ord(b) for b in ser.read(2)] # data b_data0 = [ ord(b) for b in ser.read(4)] b_data1 = [ ord(b) for b in ser.read(4)] b_data2 = [ ord(b) for b in ser.read(4)] b_data3 = [ ord(b) for b in ser.read(4)] # for the checksum, we need all the data of the packet... # this could be collected in a more elegent fashion... all_data = [ 0xFA, index+0xA0 ] + b_speed + b_data0 + b_data1 + b_data2 + b_data3 # checksum b_checksum = [ ord(b) for b in ser.read(2) ] incoming_checksum = int(b_checksum[0]) + (int(b_checksum[1]) << 8) # verify that the received checksum is equal to the one computed from the data if checksum(all_data) == incoming_checksum: speed_rpm = float( b_speed[0] | (b_speed[1] << 8) ) / 64.0 label_speed.text = "RPM : " + str(speed_rpm) update_view(index * 4 + 0, b_data0[0], b_data0[1], b_data0[2], b_data0[3]) update_view(index * 4 + 1, b_data1[0], b_data1[1], b_data1[2], b_data1[3]) update_view(index * 4 + 2, b_data2[0], b_data2[1], b_data2[2], b_data2[3]) update_view(index * 4 + 3, b_data3[0], b_data3[1], b_data3[2], b_data3[3]) else: # the checksum does not match, something went wrong... nb_errors +=1 label_errors.text = "errors: "+str(nb_errors) # display the samples in an error state update_view(index * 4 + 0, 0, 0x80, 0, 0) update_view(index * 4 + 1, 0, 0x80, 0, 0) update_view(index * 4 + 2, 0, 0x80, 0, 0) update_view(index * 4 + 3, 0, 0x80, 0, 0) init_level = 0 # reset and wait for the next packet else: # default, should never happen... init_level = 0 except : traceback.print_exc(file=sys.stdout)
|
7e79bd8b6a9f13952a2c0437da2cc4de3f87703c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13852/7e79bd8b6a9f13952a2c0437da2cc4de3f87703c/XV-11_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
267,
13332,
2552,
316,
67,
3789,
16,
1208,
67,
2815,
16,
5291,
16,
770,
16,
8632,
67,
86,
7755,
225,
4264,
67,
4324,
273,
374,
1323,
1053,
30,
775,
30,
813,
18,
19607,
12,
20,
18,
2787,
21,
13,
468,
741,
486,
366,
717,
326,
6659,
7212,
225,
309,
1208,
67,
2815,
422,
374,
294,
468,
787,
1160,
324,
273,
4642,
12,
550,
18,
896,
12,
21,
3719,
309,
324,
422,
374,
92,
2046,
294,
1208,
67,
2815,
273,
404,
469,
30,
1208,
67,
2815,
273,
374,
1327,
1208,
67,
2815,
422,
404,
30,
468,
1754,
770,
324,
273,
4642,
12,
550,
18,
896,
12,
21,
3719,
309,
324,
1545,
374,
21703,
20,
471,
324,
1648,
374,
16275,
29,
225,
294,
770,
273,
324,
300,
374,
21703,
20,
1208,
67,
2815,
273,
576,
469,
30,
1208,
67,
2815,
273,
374,
1327,
1208,
67,
2815,
422,
576,
294,
468,
8632,
324,
67,
13871,
273,
306,
4642,
12,
70,
13,
364,
324,
316,
703,
18,
896,
12,
22,
25887,
225,
468,
501,
324,
67,
892,
20,
273,
306,
4642,
12,
70,
13,
364,
324,
316,
703,
18,
896,
12,
24,
25887,
324,
67,
892,
21,
273,
306,
4642,
12,
70,
13,
364,
324,
316,
703,
18,
896,
12,
24,
25887,
324,
67,
892,
22,
273,
306,
4642,
12,
70,
13,
364,
324,
316,
703,
18,
896,
12,
24,
25887,
324,
67,
892,
23,
273,
306,
4642,
12,
70,
13,
364,
324,
316,
703,
18,
896,
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,
855,
67,
267,
13332,
2552,
316,
67,
3789,
16,
1208,
67,
2815,
16,
5291,
16,
770,
16,
8632,
67,
86,
7755,
225,
4264,
67,
4324,
273,
374,
1323,
1053,
30,
775,
30,
813,
18,
19607,
12,
20,
18,
2787,
21,
13,
468,
741,
486,
366,
717,
326,
6659,
7212,
225,
309,
1208,
67,
2815,
422,
374,
294,
468,
787,
1160,
324,
273,
4642,
12,
550,
18,
896,
12,
21,
3719,
309,
324,
422,
374,
92,
2046,
294,
1208,
67,
2815,
273,
404,
469,
30,
1208,
67,
2815,
273,
374,
1327,
1208,
67,
2815,
422,
404,
30,
468,
1754,
770,
324,
273,
4642,
12,
550,
18,
896,
12,
21,
3719,
309,
324,
1545,
374,
21703,
20,
471,
324,
1648,
2
] |
time.sleep(0.1)
|
def test_wait_with_already_cancelled_futures(self): call1 = Call(manual_finish=True) call2 = Call() call3 = Call() call4 = Call()
|
07724f0d7feafe4d50dece6f82a1962cbc64edc4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4870/07724f0d7feafe4d50dece6f82a1962cbc64edc4/test_futures.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7048,
67,
1918,
67,
17583,
67,
10996,
1259,
67,
74,
10945,
12,
2890,
4672,
745,
21,
273,
3049,
12,
19840,
67,
13749,
33,
5510,
13,
745,
22,
273,
3049,
1435,
745,
23,
273,
3049,
1435,
745,
24,
273,
3049,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7048,
67,
1918,
67,
17583,
67,
10996,
1259,
67,
74,
10945,
12,
2890,
4672,
745,
21,
273,
3049,
12,
19840,
67,
13749,
33,
5510,
13,
745,
22,
273,
3049,
1435,
745,
23,
273,
3049,
1435,
745,
24,
273,
3049,
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
] |
|
from scikits.statsmodels.sandbox.tsa.arima import arma_generate_sample
|
from scikits.statsmodels.tsa.arima_process import arma_generate_sample
|
def Q(x): cholQ = np.array([[x[1],0],[0,x[2]]]) return np.dot(cholQ,cholQ.T)
|
35d667e9ea2987a1c1f369b5ac77533794ab224c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/35d667e9ea2987a1c1f369b5ac77533794ab224c/kalmanf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2238,
12,
92,
4672,
462,
355,
53,
273,
1130,
18,
1126,
3816,
63,
92,
63,
21,
6487,
20,
6487,
63,
20,
16,
92,
63,
22,
13563,
5717,
327,
1130,
18,
9811,
12,
343,
355,
53,
16,
343,
355,
53,
18,
56,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
22,
13563,
5717,
327,
1130,
18,
9811,
12,
343,
355,
53,
16,
343,
355,
53,
18,
56,
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
] |
raise yum.Errors.YumBaseError, ["Unable to find a suitable mirror."]
|
raise Errors.YumBaseError, ["Unable to find a suitable mirror."]
|
def _downloadPackages(self,callback): ''' Download the need packages in the Transaction ''' # This can be overloaded by a subclass. dlpkgs = map(lambda x: x.po, filter(lambda txmbr: txmbr.ts_state in ("i", "u"), self.tsInfo.getMembers())) # Check if there is something to do if len(dlpkgs) == 0: return None # make callback with packages to download callback.event(callbacks.PT_DOWNLOAD_PKGS,dlpkgs) try: probs = self.downloadPkgs(dlpkgs)
|
4cf258968a109cd03de2ae7a078ff0e8e6760cea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/4cf258968a109cd03de2ae7a078ff0e8e6760cea/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7813,
11425,
12,
2890,
16,
3394,
4672,
9163,
13059,
326,
1608,
5907,
316,
326,
5947,
9163,
468,
1220,
848,
506,
1879,
4230,
635,
279,
10177,
18,
8910,
25376,
273,
852,
12,
14661,
619,
30,
619,
18,
1631,
16,
1034,
12,
14661,
2229,
1627,
86,
30,
2229,
1627,
86,
18,
3428,
67,
2019,
316,
7566,
77,
3113,
315,
89,
6,
3631,
365,
18,
3428,
966,
18,
588,
6918,
1435,
3719,
468,
2073,
309,
1915,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7813,
11425,
12,
2890,
16,
3394,
4672,
9163,
13059,
326,
1608,
5907,
316,
326,
5947,
9163,
468,
1220,
848,
506,
1879,
4230,
635,
279,
10177,
18,
8910,
25376,
273,
852,
12,
14661,
619,
30,
619,
18,
1631,
16,
1034,
12,
14661,
2229,
1627,
86,
30,
2229,
1627,
86,
18,
3428,
67,
2019,
316,
7566,
77,
3113,
315,
89,
6,
3631,
365,
18,
3428,
966,
18,
588,
6918,
1435,
3719,
468,
2073,
309,
1915,
353,
5943,
358,
741,
309,
562,
12,
5761,
25376,
13,
422,
374,
30,
327,
599,
468,
1221,
1348,
598,
5907,
358,
4224,
1348,
18,
2575,
12,
13316,
18,
1856,
67,
12711,
7783,
67,
8784,
16113,
16,
5761,
25376,
13,
775,
30,
18989,
273,
365,
2
] |
if field['name'] == 'owner' and field['type'] == 'select':
|
name = field['name'] field = field.copy() field['label'] = labels[name] if name == 'owner' and field['type'] == 'select':
|
def template_data(self, context, tickets, orig_list=None, orig_time=None, req=None): constraints = {} for k, v in self.constraints.items(): constraint = {'values': [], 'mode': ''} for val in v: neg = val.startswith('!') if neg: val = val[1:] mode = '' if val[:1] in ('~', '^', '$') \ and not val in self.substitutions: mode, val = val[:1], val[1:] constraint['mode'] = (neg and '!' or '') + mode constraint['values'].append(val) constraints[k] = constraint
|
bb35b85542ba54d565c43440cdb8c37a5ff2045d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/bb35b85542ba54d565c43440cdb8c37a5ff2045d/query.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
892,
12,
2890,
16,
819,
16,
24475,
16,
1647,
67,
1098,
33,
7036,
16,
1647,
67,
957,
33,
7036,
16,
1111,
33,
7036,
4672,
6237,
273,
2618,
364,
417,
16,
331,
316,
365,
18,
11967,
18,
3319,
13332,
4954,
273,
13666,
2372,
4278,
5378,
16,
296,
3188,
4278,
875,
97,
364,
1244,
316,
331,
30,
4251,
273,
1244,
18,
17514,
1918,
2668,
5124,
13,
309,
4251,
30,
1244,
273,
1244,
63,
21,
26894,
1965,
273,
875,
309,
1244,
10531,
21,
65,
316,
7707,
98,
2187,
10731,
2187,
3365,
6134,
521,
471,
486,
1244,
316,
365,
18,
1717,
30892,
30,
1965,
16,
1244,
273,
1244,
10531,
21,
6487,
1244,
63,
21,
26894,
4954,
3292,
3188,
3546,
273,
261,
14518,
471,
15502,
578,
28707,
397,
1965,
4954,
3292,
2372,
29489,
6923,
12,
1125,
13,
6237,
63,
79,
65,
273,
4954,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
892,
12,
2890,
16,
819,
16,
24475,
16,
1647,
67,
1098,
33,
7036,
16,
1647,
67,
957,
33,
7036,
16,
1111,
33,
7036,
4672,
6237,
273,
2618,
364,
417,
16,
331,
316,
365,
18,
11967,
18,
3319,
13332,
4954,
273,
13666,
2372,
4278,
5378,
16,
296,
3188,
4278,
875,
97,
364,
1244,
316,
331,
30,
4251,
273,
1244,
18,
17514,
1918,
2668,
5124,
13,
309,
4251,
30,
1244,
273,
1244,
63,
21,
26894,
1965,
273,
875,
309,
1244,
10531,
21,
65,
316,
7707,
98,
2187,
10731,
2187,
3365,
6134,
521,
471,
486,
1244,
316,
365,
18,
1717,
30892,
30,
1965,
16,
1244,
273,
1244,
10531,
21,
6487,
1244,
63,
21,
26894,
4954,
3292,
3188,
3546,
273,
2
] |
return '<a class="button-link" href="%s">View</a>'%item.id
|
return '<a class="button-link" href="%s">View</a>'%(getattr( item, formatter.oid_key ))
|
def viewLink( item, formatter ): return '<a class="button-link" href="%s">View</a>'%item.id
|
e9f5b0e69014c74858dcf526c4ff0d1099deb97d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4360/e9f5b0e69014c74858dcf526c4ff0d1099deb97d/container.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
2098,
12,
761,
16,
4453,
262,
30,
327,
2368,
69,
667,
1546,
5391,
17,
1232,
6,
3897,
11613,
87,
6441,
1767,
1757,
69,
1870,
17105,
588,
1747,
12,
761,
16,
4453,
18,
839,
67,
856,
8623,
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,
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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
] |
'id': (BACK, u"Templat:Artikel bagus utama"),
|
'id': (BACK, u"Templat:Featured article"),
|
def LINKS(site,name, ignore=[]): p=wikipedia.Page(site, name) links=p.linkedPages() for n in links[:]: t=n.titleWithoutNamespace() if t[0] in u"/#" or t in ignore: links.remove(n) links.sort() return links
|
47bef2df34e7eed13d4f878f7efb7f561240bcc8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/47bef2df34e7eed13d4f878f7efb7f561240bcc8/featured.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22926,
55,
12,
4256,
16,
529,
16,
2305,
33,
8526,
4672,
293,
33,
11999,
13744,
18,
1964,
12,
4256,
16,
508,
13,
4716,
33,
84,
18,
17738,
5716,
1435,
364,
290,
316,
4716,
10531,
14542,
268,
33,
82,
18,
2649,
8073,
3402,
1435,
309,
268,
63,
20,
65,
316,
582,
6,
19,
17133,
578,
268,
316,
2305,
30,
4716,
18,
4479,
12,
82,
13,
4716,
18,
3804,
1435,
327,
4716,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22926,
55,
12,
4256,
16,
529,
16,
2305,
33,
8526,
4672,
293,
33,
11999,
13744,
18,
1964,
12,
4256,
16,
508,
13,
4716,
33,
84,
18,
17738,
5716,
1435,
364,
290,
316,
4716,
10531,
14542,
268,
33,
82,
18,
2649,
8073,
3402,
1435,
309,
268,
63,
20,
65,
316,
582,
6,
19,
17133,
578,
268,
316,
2305,
30,
4716,
18,
4479,
12,
82,
13,
4716,
18,
3804,
1435,
327,
4716,
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
] |
[P[i] for i in range(2,len(v)) if v[i] == 0]
|
[P[i] for i in range(2,len(v)) if v[i] == 0 and N%P[i] != 0]
|
def supersingular_primes(self, B): """ Return a list of all supersingular primes for this elliptic curve up to and possibly including B.
|
8592f849728cc1bde7ecaf244009cdb3609f7559 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8592f849728cc1bde7ecaf244009cdb3609f7559/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
683,
4485,
12,
2890,
16,
605,
4672,
3536,
2000,
279,
666,
434,
777,
1169,
414,
17830,
846,
4485,
364,
333,
415,
549,
21507,
8882,
731,
358,
471,
10016,
6508,
605,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
683,
4485,
12,
2890,
16,
605,
4672,
3536,
2000,
279,
666,
434,
777,
1169,
414,
17830,
846,
4485,
364,
333,
415,
549,
21507,
8882,
731,
358,
471,
10016,
6508,
605,
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
] |
def __init__(self, methodName='runTest'): pyautolib.PyUITestSuite.__init__(self, sys.argv)
|
def __init__(self, methodName='runTest', extra_chrome_flags=None): """Initialize PyUITest. When redefining __init__ in a derived class, make sure that: o you make a call this __init__ o __init__ takes methodName as a arg. this is mandated by unittest module Args: methodName: the default method name. Internal use by unittest module extra_chrome_flags: additional flags to pass when launching chrome """ args = sys.argv if extra_chrome_flags is not None: args.append('--extra-chrome-flags=%s' % extra_chrome_flags) pyautolib.PyUITestSuite.__init__(self, args)
|
def __init__(self, methodName='runTest'): pyautolib.PyUITestSuite.__init__(self, sys.argv) # Figure out path to chromium binaries browser_dir = os.path.normpath(os.path.dirname(pyautolib.__file__)) os.environ['PATH'] = browser_dir + os.pathsep + os.environ['PATH'] self.Initialize(pyautolib.FilePath(browser_dir)) unittest.TestCase.__init__(self, methodName)
|
e792c9442b58da0f0abe42dae4a7abc75ea17127 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/e792c9442b58da0f0abe42dae4a7abc75ea17127/pyauto.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4918,
2218,
2681,
4709,
2187,
2870,
67,
343,
10896,
67,
7133,
33,
7036,
4672,
3536,
7520,
4707,
57,
1285,
395,
18,
225,
5203,
283,
5649,
310,
1001,
2738,
972,
316,
279,
10379,
667,
16,
1221,
3071,
716,
30,
320,
1846,
1221,
279,
745,
333,
1001,
2738,
972,
320,
1001,
2738,
972,
5530,
4918,
487,
279,
1501,
18,
333,
353,
312,
464,
690,
635,
2836,
3813,
1605,
225,
6634,
30,
4918,
30,
326,
805,
707,
508,
18,
3186,
999,
635,
2836,
3813,
1605,
2870,
67,
343,
10896,
67,
7133,
30,
3312,
2943,
358,
1342,
1347,
8037,
310,
18167,
3536,
833,
273,
2589,
18,
19485,
309,
2870,
67,
343,
10896,
67,
7133,
353,
486,
599,
30,
833,
18,
6923,
2668,
413,
7763,
17,
343,
10896,
17,
7133,
5095,
87,
11,
738,
2870,
67,
343,
10896,
67,
7133,
13,
2395,
5854,
355,
495,
18,
9413,
57,
1285,
395,
13587,
16186,
2738,
972,
12,
2890,
16,
833,
13,
468,
18818,
596,
589,
358,
8123,
5077,
4158,
5646,
4748,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
12287,
12,
2074,
5854,
355,
495,
16186,
768,
972,
3719,
1140,
18,
28684,
3292,
4211,
3546,
273,
4748,
67,
1214,
397,
1140,
18,
803,
10814,
397,
1140,
18,
28684,
3292,
4211,
3546,
365,
18,
7520,
12,
2074,
5854,
355,
495,
18,
5598,
12,
11213,
67,
1214,
3719,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
2890,
16,
4918,
13,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4918,
2218,
2681,
4709,
2187,
2870,
67,
343,
10896,
67,
7133,
33,
7036,
4672,
3536,
7520,
4707,
57,
1285,
395,
18,
225,
5203,
283,
5649,
310,
1001,
2738,
972,
316,
279,
10379,
667,
16,
1221,
3071,
716,
30,
320,
1846,
1221,
279,
745,
333,
1001,
2738,
972,
320,
1001,
2738,
972,
5530,
4918,
487,
279,
1501,
18,
333,
353,
312,
464,
690,
635,
2836,
3813,
1605,
225,
6634,
30,
4918,
30,
326,
805,
707,
508,
18,
3186,
999,
635,
2836,
3813,
1605,
2870,
67,
343,
10896,
67,
7133,
30,
3312,
2943,
358,
1342,
1347,
8037,
310,
18167,
3536,
833,
273,
2589,
18,
19485,
309,
2870,
67,
343,
10896,
67,
7133,
353,
486,
2
] |
trackentry.set_text(str(filetags[self.filetagnum].tag().track)) genreentry.set_text(filetags[self.filetagnum].tag().genre) commententry.set_text(filetags[self.filetagnum].tag().comment) fileentry.set_text(mpdpaths[self.filetagnum].split('/')[-1])
|
entries[4].set_text(str(filetags[self.filetagnum].tag().track)) entries[5].set_text(filetags[self.filetagnum].tag().genre) entries[6].set_text(filetags[self.filetagnum].tag().comment) entries[7].set_text(mpdpaths[self.filetagnum].split('/')[-1])
|
def editwindow_update(self, window, filetags, titleentry, artistentry, albumentry, yearentry, trackentry, genreentry, commententry, mpdpaths, fileentry, savebutton): titleentry.set_text(filetags[self.filetagnum].tag().title) titleentry.select_region(0, len(titleentry.get_text())) artistentry.set_text(filetags[self.filetagnum].tag().artist) albumentry.set_text(filetags[self.filetagnum].tag().album) if filetags[self.filetagnum].tag().year != 0: yearentry.set_text(str(filetags[self.filetagnum].tag().year)) if filetags[self.filetagnum].tag().track != 0: trackentry.set_text(str(filetags[self.filetagnum].tag().track)) genreentry.set_text(filetags[self.filetagnum].tag().genre) commententry.set_text(filetags[self.filetagnum].tag().comment) fileentry.set_text(mpdpaths[self.filetagnum].split('/')[-1]) window.set_title(_("Edit Tags" + " - " + str(self.filetagnum+1) + " " + _("of") + " " + str(len(filetags)))) titleentry.grab_focus() gobject.idle_add(savebutton.set_sensitive, True)
|
8e7f75d3649afea0782df60c0cbc0b9c2fb7cc04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8e7f75d3649afea0782df60c0cbc0b9c2fb7cc04/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
5668,
67,
2725,
12,
2890,
16,
2742,
16,
661,
278,
1341,
16,
2077,
4099,
16,
15469,
4099,
16,
14844,
4099,
16,
677,
73,
7892,
698,
16,
3298,
4099,
16,
3157,
2842,
698,
16,
2879,
4099,
16,
6749,
72,
4481,
16,
585,
4099,
16,
1923,
5391,
4672,
2077,
4099,
18,
542,
67,
955,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
2649,
13,
2077,
4099,
18,
4025,
67,
6858,
12,
20,
16,
562,
12,
2649,
4099,
18,
588,
67,
955,
1435,
3719,
15469,
4099,
18,
542,
67,
955,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
25737,
13,
14844,
4099,
18,
542,
67,
955,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
25090,
13,
309,
661,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
6874,
480,
374,
30,
677,
73,
7892,
698,
18,
542,
67,
955,
12,
701,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
6874,
3719,
309,
661,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
4101,
480,
374,
30,
3222,
63,
24,
8009,
542,
67,
955,
12,
701,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
4101,
3719,
3222,
63,
25,
8009,
542,
67,
955,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
4507,
266,
13,
3222,
63,
26,
8009,
542,
67,
955,
12,
7540,
278,
1341,
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,
3874,
5668,
67,
2725,
12,
2890,
16,
2742,
16,
661,
278,
1341,
16,
2077,
4099,
16,
15469,
4099,
16,
14844,
4099,
16,
677,
73,
7892,
698,
16,
3298,
4099,
16,
3157,
2842,
698,
16,
2879,
4099,
16,
6749,
72,
4481,
16,
585,
4099,
16,
1923,
5391,
4672,
2077,
4099,
18,
542,
67,
955,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
2649,
13,
2077,
4099,
18,
4025,
67,
6858,
12,
20,
16,
562,
12,
2649,
4099,
18,
588,
67,
955,
1435,
3719,
15469,
4099,
18,
542,
67,
955,
12,
7540,
278,
1341,
63,
2890,
18,
7540,
20788,
2107,
8009,
2692,
7675,
25737,
13,
14844,
4099,
18,
542,
67,
955,
12,
7540,
278,
1341,
2
] |
tr = transform3d() tr.set_move( -x0, 0, 0) tr.set_rotation_y( math.pi) tr.set_move( x0, 0, 0)
|
tr = transform() tr.set_move( -x0, 0) tr.set_scaling_xy( -1, 1) tr.set_move( x0, 0)
|
def swap_sides_of_selected( self, mode="vertical"): """mirrors the selected things, vertical uses y-axis as a mirror plane, horizontal x-axis""" # locate all selected containers, filter them to be unique to_align, unique = self.selected_to_unique_containers() self.unselect_all() # check if there is anything to align if len( to_align) < 1: return None bboxes = [] for o in to_align: bboxes.extend( o.bbox()) # vertical (rotate around y axis) if mode == 'vertical': xs = [bboxes[i] for i in range( 0, len( bboxes), 2)] x0 = (max( xs) + min( xs)) / 2.0 for o in to_align: if o.meta__is_container: tr = transform3d() tr.set_move( -x0, 0, 0) tr.set_rotation_y( math.pi) tr.set_move( x0, 0, 0) o.transform( tr) else: print "fuck" # horizontal (rotate around x axis) if mode == 'horizontal': ys = [bboxes[i] for i in range( 1, len( bboxes), 2)] y0 = (max( ys) + min( ys)) / 2.0 for o in to_align: if o.meta__is_container: tr = transform3d() tr.set_move( 0, -y0, 0) tr.set_rotation_x( math.pi) tr.set_move( 0, y0, 0) o.transform( tr) else: print "fuck"
|
34ae4cbe835a61ea3a9cf748d63fd810b1cfdb7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/34ae4cbe835a61ea3a9cf748d63fd810b1cfdb7f/paper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7720,
67,
87,
4369,
67,
792,
67,
8109,
12,
365,
16,
1965,
1546,
17824,
6,
4672,
3536,
81,
27026,
326,
3170,
9198,
16,
9768,
4692,
677,
17,
4890,
487,
279,
15593,
11017,
16,
10300,
619,
17,
4890,
8395,
468,
10627,
777,
3170,
8475,
16,
1034,
2182,
358,
506,
3089,
358,
67,
7989,
16,
3089,
273,
365,
18,
8109,
67,
869,
67,
6270,
67,
20596,
1435,
365,
18,
318,
4025,
67,
454,
1435,
468,
866,
309,
1915,
353,
6967,
358,
5689,
309,
562,
12,
358,
67,
7989,
13,
411,
404,
30,
327,
599,
8472,
281,
273,
5378,
364,
320,
316,
358,
67,
7989,
30,
8472,
281,
18,
14313,
12,
320,
18,
20737,
10756,
468,
9768,
261,
20342,
6740,
677,
2654,
13,
309,
1965,
422,
296,
17824,
4278,
9280,
273,
306,
70,
15918,
63,
77,
65,
364,
277,
316,
1048,
12,
374,
16,
562,
12,
8472,
281,
3631,
576,
25887,
619,
20,
273,
261,
1896,
12,
9280,
13,
397,
1131,
12,
9280,
3719,
342,
576,
18,
20,
364,
320,
316,
358,
67,
7989,
30,
309,
320,
18,
3901,
972,
291,
67,
3782,
30,
433,
273,
2510,
1435,
433,
18,
542,
67,
8501,
12,
300,
92,
20,
16,
374,
13,
433,
18,
542,
67,
24576,
67,
1698,
12,
300,
21,
16,
404,
13,
433,
18,
542,
67,
8501,
12,
619,
20,
16,
374,
13,
320,
18,
6547,
12,
433,
13,
469,
30,
1172,
315,
74,
9031,
6,
468,
10300,
261,
20342,
6740,
619,
2654,
13,
309,
1965,
422,
296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7720,
67,
87,
4369,
67,
792,
67,
8109,
12,
365,
16,
1965,
1546,
17824,
6,
4672,
3536,
81,
27026,
326,
3170,
9198,
16,
9768,
4692,
677,
17,
4890,
487,
279,
15593,
11017,
16,
10300,
619,
17,
4890,
8395,
468,
10627,
777,
3170,
8475,
16,
1034,
2182,
358,
506,
3089,
358,
67,
7989,
16,
3089,
273,
365,
18,
8109,
67,
869,
67,
6270,
67,
20596,
1435,
365,
18,
318,
4025,
67,
454,
1435,
468,
866,
309,
1915,
353,
6967,
358,
5689,
309,
562,
12,
358,
67,
7989,
13,
411,
404,
30,
327,
599,
8472,
281,
273,
5378,
364,
320,
316,
358,
67,
7989,
30,
8472,
281,
18,
14313,
12,
320,
18,
20737,
10756,
468,
9768,
261,
20342,
6740,
677,
2
] |
line_desc += u' %s' % dossier.debiteur.name.decode('utf8')
|
line_desc += u' %s' % dossier.debiteur.name
|
def invoice(self, cr, uid, ids, acquis=False): """ Create an invoice for one dossier """ assert len(ids)==1 dt = time.strftime('%Y-%m-%d') frais_salle_str = { 'fr': u'Frais de salle', 'nl': u'Zaalkosten', } frais_voirie_str = { 'fr': u'Frais de voirie', 'nl': u'Vuilniskosten', }
|
f30f2999fe1443690b74f60969002abb8057fbfd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/f30f2999fe1443690b74f60969002abb8057fbfd/huissier.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9179,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1721,
16608,
33,
8381,
4672,
3536,
1788,
392,
9179,
364,
1245,
302,
8464,
2453,
3536,
1815,
562,
12,
2232,
13,
631,
21,
225,
3681,
273,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6134,
225,
284,
354,
291,
67,
21982,
298,
67,
701,
273,
288,
296,
4840,
4278,
582,
11,
42,
354,
291,
443,
12814,
298,
2187,
296,
14039,
4278,
582,
11,
15948,
2960,
669,
275,
2187,
289,
225,
284,
354,
291,
67,
31238,
1385,
67,
701,
273,
288,
296,
4840,
4278,
582,
11,
42,
354,
291,
443,
19993,
481,
1385,
2187,
296,
14039,
4278,
582,
11,
58,
89,
330,
82,
10175,
669,
275,
2187,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9179,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1721,
16608,
33,
8381,
4672,
3536,
1788,
392,
9179,
364,
1245,
302,
8464,
2453,
3536,
1815,
562,
12,
2232,
13,
631,
21,
225,
3681,
273,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6134,
225,
284,
354,
291,
67,
21982,
298,
67,
701,
273,
288,
296,
4840,
4278,
582,
11,
42,
354,
291,
443,
12814,
298,
2187,
296,
14039,
4278,
582,
11,
15948,
2960,
669,
275,
2187,
289,
225,
284,
354,
291,
67,
31238,
1385,
67,
701,
273,
288,
296,
4840,
4278,
582,
11,
42,
354,
291,
443,
19993,
481,
1385,
2187,
296,
14039,
4278,
582,
11,
58,
89,
330,
82,
10175,
669,
275,
2187,
289,
2
] |
open(TESTFN, 'w').write('\xa1')
|
f = open(TESTFN, 'wb') try: f.write(b'\xa1') finally: f.close()
|
def test_bug1728403(self): try: open(TESTFN, 'w').write('\xa1') f = codecs.open(TESTFN, encoding='cp949') self.assertRaises(UnicodeDecodeError, f.read, 2) finally: try: f.close() except: pass os.unlink(TESTFN)
|
e359ad4c9d7893138c0c6b01c50c2fca1839a821 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e359ad4c9d7893138c0c6b01c50c2fca1839a821/test_multibytecodec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
925,
28406,
5193,
4630,
12,
2890,
4672,
775,
30,
284,
273,
1696,
12,
16961,
19793,
16,
296,
9464,
6134,
775,
30,
284,
18,
2626,
12,
70,
8314,
6995,
21,
6134,
3095,
30,
284,
18,
4412,
1435,
284,
273,
17437,
18,
3190,
12,
16961,
19793,
16,
2688,
2218,
4057,
29,
7616,
6134,
365,
18,
11231,
12649,
6141,
12,
16532,
20229,
16,
284,
18,
896,
16,
576,
13,
3095,
30,
775,
30,
284,
18,
4412,
1435,
1335,
30,
1342,
1140,
18,
318,
1232,
12,
16961,
19793,
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,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842,
67,
925,
28406,
5193,
4630,
12,
2890,
4672,
775,
30,
284,
273,
1696,
12,
16961,
19793,
16,
296,
9464,
6134,
775,
30,
284,
18,
2626,
12,
70,
8314,
6995,
21,
6134,
3095,
30,
284,
18,
4412,
1435,
284,
273,
17437,
18,
3190,
12,
16961,
19793,
16,
2688,
2218,
4057,
29,
7616,
6134,
365,
18,
11231,
12649,
6141,
12,
16532,
20229,
16,
284,
18,
896,
16,
576,
13,
3095,
30,
775,
30,
284,
18,
4412,
1435,
1335,
30,
1342,
1140,
18,
318,
1232,
12,
16961,
19793,
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
] |
logger.warning ("Exact matches: %s" % exactMatches) logger.warning ("Close matches: %s" % closeMatches)
|
logger.debug ("Exact matches: %s" % exactMatches) logger.debug ("Close matches: %s" % closeMatches)
|
def _findStampedKind (self, operation, stampKind): """ Return the new Kind that results from self being stamped with the Mixin Kind specified. @param self: an Item that will be stamped @type self: C{Item} @param operation: 'add' to add the Mixin, 'remove' to remove @type operation: C{String} @param mixinKind: the Mixin Kind to be added or removed @type mixinKind: C{Kind} of the Mixin @return: a C{Kind} """ signature = self._computeTargetKindSignature(operation, stampKind) if signature is None: return None soughtSignature, extrasAllowed = signature exactMatches = [] closeMatches = [] candidates = self._candidateStampedKinds() for candidate in candidates: candidateSignature = _SuperKindSignature(candidate) extras = len(candidateSignature) - len(soughtSignature) if extras != 0 and (extras - extrasAllowed) != 0: continue shortList = soughtSignature longList = candidateSignature if extras < 0: shortList = candidateSignature longList = soughtSignature if shortList.properSubsetOf(longList): # found a potential match if extras == 0: # exact match exactMatches.append(candidate) else: # close match - keep searching for a better match closeMatches.append(candidate)
|
c2c9a025ea6fad176542358f977e3bd0d1634dd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c2c9a025ea6fad176542358f977e3bd0d1634dd4/items.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
8860,
329,
5677,
261,
2890,
16,
1674,
16,
14429,
5677,
4672,
3536,
2000,
326,
394,
5851,
716,
1686,
628,
365,
3832,
14429,
329,
598,
326,
490,
10131,
5851,
1269,
18,
632,
891,
365,
30,
392,
4342,
716,
903,
506,
14429,
329,
632,
723,
365,
30,
385,
95,
1180,
97,
632,
891,
1674,
30,
296,
1289,
11,
358,
527,
326,
490,
10131,
16,
296,
4479,
11,
358,
1206,
632,
723,
1674,
30,
385,
95,
780,
97,
632,
891,
11682,
5677,
30,
326,
490,
10131,
5851,
358,
506,
3096,
578,
3723,
632,
723,
11682,
5677,
30,
385,
95,
5677,
97,
434,
326,
490,
10131,
632,
2463,
30,
279,
385,
95,
5677,
97,
3536,
3372,
273,
365,
6315,
9200,
2326,
5677,
5374,
12,
7624,
16,
14429,
5677,
13,
309,
3372,
353,
599,
30,
327,
599,
1427,
9540,
5374,
16,
11875,
5042,
273,
3372,
5565,
6869,
273,
5378,
1746,
6869,
273,
5378,
7965,
273,
365,
6315,
19188,
8860,
329,
5677,
87,
1435,
364,
5500,
316,
7965,
30,
5500,
5374,
273,
389,
8051,
5677,
5374,
12,
19188,
13,
11875,
273,
562,
12,
19188,
5374,
13,
300,
562,
12,
2048,
9540,
5374,
13,
309,
11875,
480,
374,
471,
261,
23687,
300,
11875,
5042,
13,
480,
374,
30,
1324,
3025,
682,
273,
1427,
9540,
5374,
1525,
682,
273,
5500,
5374,
309,
11875,
411,
374,
30,
3025,
682,
273,
5500,
5374,
1525,
682,
273,
1427,
9540,
5374,
309,
3025,
682,
18,
22754,
20315,
951,
12,
5748,
682,
4672,
468,
1392,
279,
8555,
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,
4720,
8860,
329,
5677,
261,
2890,
16,
1674,
16,
14429,
5677,
4672,
3536,
2000,
326,
394,
5851,
716,
1686,
628,
365,
3832,
14429,
329,
598,
326,
490,
10131,
5851,
1269,
18,
632,
891,
365,
30,
392,
4342,
716,
903,
506,
14429,
329,
632,
723,
365,
30,
385,
95,
1180,
97,
632,
891,
1674,
30,
296,
1289,
11,
358,
527,
326,
490,
10131,
16,
296,
4479,
11,
358,
1206,
632,
723,
1674,
30,
385,
95,
780,
97,
632,
891,
11682,
5677,
30,
326,
490,
10131,
5851,
358,
506,
3096,
578,
3723,
632,
723,
11682,
5677,
30,
385,
95,
5677,
97,
434,
326,
490,
10131,
632,
2463,
30,
279,
385,
95,
5677,
97,
3536,
3372,
273,
365,
6315,
9200,
2
] |
aptr = ctypes.cast(vptr, LPWSTR * argc) argv = [ str( aptr[i].contents ) for i in xrange(0, argc + 1) ]
|
aptr = ctypes.cast(vptr, ctypes.POINTER(ctypes.c_wchar_p * argc.value) ) argv = [ aptr.contents[i] for i in xrange(0, argc.value) ]
|
def CommandLineToArgvW(lpCmdLine): if lpCmdLine is None: lpCmdLine = NULL if lpCmdLine != NULL: lpCmdLine = ctypes.byref(lpCmdLine) argc = ctypes.c_int(0) argv = ctypes.windll.shell32.CommandLineToArgvW(lpCmdLine, ctypes.byref(argc)) if argv == NULL or argc <= 0: ctypes.WinError() try: vptr = ctypes.c_void_p(argv) aptr = ctypes.cast(vptr, LPWSTR * argc) argv = [ str( aptr[i].contents ) for i in xrange(0, argc + 1) ] finally: LocalFree(argv) return argv
|
f8e3dd04a34c34d1ca65f7d41b1dd4657ede074a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/f8e3dd04a34c34d1ca65f7d41b1dd4657ede074a/win32.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15893,
774,
4117,
90,
59,
12,
9953,
5931,
1670,
4672,
309,
12423,
5931,
1670,
353,
599,
30,
12423,
5931,
1670,
273,
3206,
309,
12423,
5931,
1670,
480,
3206,
30,
12423,
5931,
1670,
273,
6983,
18,
1637,
1734,
12,
9953,
5931,
1670,
13,
1501,
71,
273,
6983,
18,
71,
67,
474,
12,
20,
13,
5261,
273,
6983,
18,
10094,
2906,
18,
10304,
1578,
18,
21391,
774,
4117,
90,
59,
12,
9953,
5931,
1670,
16,
6983,
18,
1637,
1734,
12,
3175,
71,
3719,
309,
5261,
422,
3206,
578,
1501,
71,
1648,
374,
30,
6983,
18,
18049,
668,
1435,
775,
30,
331,
6723,
273,
6983,
18,
71,
67,
6459,
67,
84,
12,
19485,
13,
513,
313,
273,
6983,
18,
4155,
12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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,
15893,
774,
4117,
90,
59,
12,
9953,
5931,
1670,
4672,
309,
12423,
5931,
1670,
353,
599,
30,
12423,
5931,
1670,
273,
3206,
309,
12423,
5931,
1670,
480,
3206,
30,
12423,
5931,
1670,
273,
6983,
18,
1637,
1734,
12,
9953,
5931,
1670,
13,
1501,
71,
273,
6983,
18,
71,
67,
474,
12,
20,
13,
5261,
273,
6983,
18,
10094,
2906,
18,
10304,
1578,
18,
21391,
774,
4117,
90,
59,
12,
9953,
5931,
1670,
16,
6983,
18,
1637,
1734,
12,
3175,
71,
3719,
309,
5261,
422,
3206,
578,
1501,
71,
1648,
374,
30,
6983,
18,
18049,
668,
1435,
775,
30,
331,
6723,
273,
6983,
18,
71,
67,
6459,
67,
84,
12,
19485,
13,
513,
313,
273,
6983,
18,
4155,
12,
2
] |
return self.socket.recvfrom(max_packet_size)
|
return self.socket.recvfrom(self.max_packet_size)
|
def get_request(self):
|
c489e5ab6399d7479e436a7684774f3f0905e391 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c489e5ab6399d7479e436a7684774f3f0905e391/SocketServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2293,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2293,
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,
-100
] |
disk_data = ["'phy:%s,%s,w'" % (rldev.dev_path, cfdev.iv_name.replace("sd", "ioemu:hd")) for cfdev, rldev in block_devices]
|
def _WriteConfigFile(instance, block_devices, extra_args): """Create a Xen 3.1 HVM config file.
|
e994fcbaa62581a64bdbc4ac8f4ef935496b9014 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/e994fcbaa62581a64bdbc4ac8f4ef935496b9014/hypervisor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3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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,
389,
3067,
13705,
12,
1336,
16,
1203,
67,
12506,
16,
2870,
67,
1968,
4672,
3536,
1684,
279,
1139,
275,
890,
18,
21,
670,
7397,
642,
585,
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
] |
|
self.num_vals = control.identifier_get_max_length(); self.vals = vals self.ui.set_item_text(self.treeroot, str(self), str(vals))
|
self.num_vals = control.get_num_vals(); v1 = vals.split(":") self.vals = [ ] for s1 in v1: v1 = s1.split() if (v1[0] != "lc"): v1.insert(0, "") self.vals.append(v1) self.ui.set_item_text(self.treeroot, str(self), str(self.vals))
|
def control_get_light_cb(self, control, err, vals): if (err != 0): self.ui.set_item_text(self.treeroot, str(self), None) return self.num_vals = control.identifier_get_max_length(); self.vals = vals self.ui.set_item_text(self.treeroot, str(self), str(vals))
|
e4a495f473299f3234d1d57514918996b249814d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/e4a495f473299f3234d1d57514918996b249814d/_control.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3325,
67,
588,
67,
5099,
67,
7358,
12,
2890,
16,
3325,
16,
393,
16,
5773,
4672,
309,
261,
370,
480,
374,
4672,
365,
18,
4881,
18,
542,
67,
1726,
67,
955,
12,
2890,
18,
27427,
264,
1632,
16,
609,
12,
2890,
3631,
599,
13,
327,
365,
18,
2107,
67,
4524,
273,
3325,
18,
5644,
67,
588,
67,
1896,
67,
2469,
5621,
365,
18,
4524,
273,
5773,
365,
18,
4881,
18,
542,
67,
1726,
67,
955,
12,
2890,
18,
27427,
264,
1632,
16,
609,
12,
2890,
3631,
609,
12,
4524,
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,
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,
67,
955,
12,
2890,
18,
27427,
264,
1632,
16,
609,
12,
2890,
3631,
599,
13,
327,
365,
18,
2107,
67,
4524,
273,
3325,
18,
5644,
67,
588,
67,
1896,
67,
2469,
5621,
365,
18,
4524,
273,
5773,
365,
18,
4881,
18,
542,
67,
1726,
67,
955,
12,
2890,
18,
27427,
264,
1632,
16,
609,
12,
2890,
3631,
609,
12,
4524,
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
] |
self.assertIsInstance(items, list) self.assertIsInstance(items[0], tuple)
|
self.assertTrue(isinstance(items, list)) self.assertTrue(isinstance(items[0], tuple))
|
def test01_basic(self): d = db.DB()
|
cf864ec6d7865633f1d8454ba2cc4580bd219b8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/cf864ec6d7865633f1d8454ba2cc4580bd219b8a/test_recno.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1611,
67,
13240,
12,
2890,
4672,
302,
273,
1319,
18,
2290,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1611,
67,
13240,
12,
2890,
4672,
302,
273,
1319,
18,
2290,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.