rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
Args: static: Static fields dynamic: Dynamic fields """ static_fields = frozenset(static) dynamic_fields = frozenset(dynamic) all_fields = static_fields | dynamic_fields if not all_fields.issuperset(selected):
|
@type static: L{_FieldSet} @param static: static fields set @type dynamic: L{_FieldSet} @param dynamic: dynamic fields set """ f = _FieldSet() f.Extend(static) f.Extend(dynamic) delta = f.NonMatching(selected) if delta:
|
def _CheckOutputFields(static, dynamic, selected): """Checks whether all selected fields are valid. Args: static: Static fields dynamic: Dynamic fields """ static_fields = frozenset(static) dynamic_fields = frozenset(dynamic) all_fields = static_fields | dynamic_fields if not all_fields.issuperset(selected): raise errors.OpPrereqError("Unknown output fields selected: %s" % ",".join(frozenset(selected). difference(all_fields)))
|
31bf511f14e07b7abfcd8b432d0e0fcd65221f2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/31bf511f14e07b7abfcd8b432d0e0fcd65221f2f/cmdlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1564,
1447,
2314,
12,
3845,
16,
5976,
16,
3170,
4672,
3536,
4081,
2856,
777,
3170,
1466,
854,
923,
18,
225,
632,
723,
760,
30,
511,
95,
67,
974,
694,
97,
632,
891,
760,
30,
760,
1466,
444,
632,
723,
5976,
30,
511,
95,
67,
974,
694,
97,
632,
891,
5976,
30,
5976,
1466,
444,
225,
3536,
284,
273,
389,
974,
694,
1435,
284,
18,
16675,
12,
3845,
13,
284,
18,
16675,
12,
14507,
13,
225,
3622,
273,
284,
18,
3989,
9517,
12,
8109,
13,
309,
3622,
30,
1002,
1334,
18,
3817,
2050,
822,
85,
668,
2932,
4874,
876,
1466,
3170,
30,
738,
87,
6,
738,
5753,
18,
5701,
12,
28138,
542,
12,
8109,
2934,
7114,
12,
454,
67,
2821,
20349,
282,
2,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1564,
1447,
2314,
12,
3845,
16,
5976,
16,
3170,
4672,
3536,
4081,
2856,
777,
3170,
1466,
854,
923,
18,
225,
632,
723,
760,
30,
511,
95,
67,
974,
694,
97,
632,
891,
760,
30,
760,
1466,
444,
632,
723,
5976,
30,
511,
95,
67,
974,
694,
97,
632,
891,
5976,
30,
5976,
1466,
444,
225,
3536,
284,
273,
389,
974,
694,
1435,
284,
18,
16675,
12,
3845,
13,
284,
18,
16675,
12,
14507,
13,
225,
3622,
273,
284,
18,
3989,
9517,
12,
8109,
13,
309,
3622,
30,
1002,
1334,
18,
3817,
2050,
822,
85,
668,
2932,
4874,
876,
1466,
3170,
30,
738,
87,
6,
738,
5753,
18,
5701,
12,
28138,
542,
12,
8109,
2934,
7114,
12,
454,
2
] |
self.re_header_name_comment = re.compile( r'^\s*//\s+\$[S]ource: /cvsroot/boost/boost/(.*),v\s*\$$' )
|
self.re_header_name_comment = re.compile( r'^\s*//\s+\$[S]ource: /cvsroot/boost/boost/(.*?%s\.hpp),v\s*\$$' % os.path.splitext( name )[0] )
|
def __init__(self, name): self.output = open(name, "w") self.prev_line = ''
|
f9be91fc35860c368c1bbbe59a58defe1946f5f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9982/f9be91fc35860c368c1bbbe59a58defe1946f5f0/pp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
365,
18,
2844,
273,
1696,
12,
529,
16,
315,
91,
7923,
365,
18,
10001,
67,
1369,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
365,
18,
2844,
273,
1696,
12,
529,
16,
315,
91,
7923,
365,
18,
10001,
67,
1369,
273,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 result
|
return result
|
def getLfns(self): result = [] for l in self.lfns: result.append(l) return result
|
15bf7dd6204f2cdb3b3b2146d62e93fe210c8af4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/15bf7dd6204f2cdb3b3b2146d62e93fe210c8af4/PoolXMLCatalog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9014,
74,
2387,
12,
2890,
4672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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9014,
74,
2387,
12,
2890,
4672,
563,
273,
5378,
364,
328,
316,
365,
18,
20850,
2387,
30,
563,
18,
6923,
12,
80,
13,
225,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
n = self.__get_dummy_programs(last.stop, p.start) dummy_progs += n
|
dummy_progs.append(self.__get_dummy_program(last.stop, p.start))
|
def __import_programs(self, start, stop=-1, progs=[]): """ Get programs from the database to create Program from then add them to our local list. If there are gaps between the programs we will add dummy programs to fill it (TODO). """ # FIXME: adding dummy programs will add them from start to stop and # not in 30 minutes chunks. That's bad! new_progs = [] dummy_progs = [] # keep the notifier alive notifier_counter = 0 if not progs: progs = self.__epg.sql_get_programs(self.id, start, stop) for p in progs: i = Program(p.id, p.title, p.start, p.stop, p.episode, p.subtitle, p['description'], channel=self) new_progs.append(i) notifier_counter = (notifier_counter + 1) % 500 if not notifier_counter and notifier and notifier.step: notifier.step(False, False) # TODO: add information about program being recorded which # comes from another DB table - same with categories, # ratings and advisories.
|
038d7fde04bf5e3a11cc7e78cf8debbe87c37df3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/038d7fde04bf5e3a11cc7e78cf8debbe87c37df3/channel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
67,
12890,
87,
12,
2890,
16,
787,
16,
2132,
29711,
21,
16,
450,
564,
33,
8526,
4672,
3536,
968,
25038,
628,
326,
2063,
358,
752,
13586,
628,
1508,
527,
2182,
358,
3134,
1191,
666,
18,
225,
971,
1915,
854,
21085,
3086,
326,
25038,
732,
903,
527,
9609,
25038,
358,
3636,
518,
261,
6241,
2934,
3536,
468,
9852,
30,
6534,
9609,
25038,
903,
527,
2182,
628,
787,
358,
2132,
471,
468,
486,
316,
5196,
6824,
6055,
18,
12466,
1807,
5570,
5,
394,
67,
685,
564,
273,
5378,
9609,
67,
685,
564,
273,
5378,
468,
3455,
326,
19057,
13714,
19057,
67,
7476,
273,
374,
309,
486,
450,
564,
30,
450,
564,
273,
365,
16186,
881,
75,
18,
4669,
67,
588,
67,
12890,
87,
12,
2890,
18,
350,
16,
787,
16,
2132,
13,
364,
293,
316,
450,
564,
30,
277,
273,
13586,
12,
84,
18,
350,
16,
293,
18,
2649,
16,
293,
18,
1937,
16,
293,
18,
5681,
16,
293,
18,
29687,
16,
293,
18,
1717,
2649,
16,
293,
3292,
3384,
17337,
1904,
33,
2890,
13,
394,
67,
685,
564,
18,
6923,
12,
77,
13,
19057,
67,
7476,
273,
261,
902,
1251,
67,
7476,
397,
404,
13,
738,
6604,
309,
486,
19057,
67,
7476,
471,
19057,
471,
19057,
18,
4119,
30,
19057,
18,
4119,
12,
8381,
16,
1083,
13,
468,
2660,
30,
527,
1779,
2973,
5402,
3832,
16421,
1492,
468,
4202,
14535,
628,
4042,
2383,
1014,
300,
1967,
598,
6477,
16,
468,
4202,
15183,
899,
471,
1261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
67,
12890,
87,
12,
2890,
16,
787,
16,
2132,
29711,
21,
16,
450,
564,
33,
8526,
4672,
3536,
968,
25038,
628,
326,
2063,
358,
752,
13586,
628,
1508,
527,
2182,
358,
3134,
1191,
666,
18,
225,
971,
1915,
854,
21085,
3086,
326,
25038,
732,
903,
527,
9609,
25038,
358,
3636,
518,
261,
6241,
2934,
3536,
468,
9852,
30,
6534,
9609,
25038,
903,
527,
2182,
628,
787,
358,
2132,
471,
468,
486,
316,
5196,
6824,
6055,
18,
12466,
1807,
5570,
5,
394,
67,
685,
564,
273,
5378,
9609,
67,
685,
564,
273,
5378,
468,
3455,
326,
19057,
13714,
19057,
67,
7476,
273,
374,
309,
486,
450,
564,
30,
450,
564,
273,
365,
16186,
881,
75,
18,
4669,
2
] |
samcmd = '%(samtools)s sort %(infile)s %(outprefix)s' % cmd_dict call(samcmd)
|
picard_cmd = '%(sort_sam)s INPUT=%(infile)s OUTPUT=%(outfile)s SORT_ORDER=coordinate ' + \ 'MAX_RECORDS_IN_RAM=5000000' call(picard_cmd % cmd_dict)
|
def sort_bam(input_file, output_file): '''Sort BAM files by coordinate.''' cmd_dict = cdict.copy() cmd_dict['infile'] = input_file cmd_dict['outfile'] = os.path.splitext(output_file)[0] cmd_dict['outprefix'] = cmd_dict['outfile'] pmsg('BAM Coord Sort', cmd_dict['infile'], cmd_dict['outfile']) samcmd = '%(samtools)s sort %(infile)s %(outprefix)s' % cmd_dict call(samcmd)
|
1dcbe90106e59b7068eea2a6827390a1e2282350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14572/1dcbe90106e59b7068eea2a6827390a1e2282350/prep_sequence.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
11477,
12,
2630,
67,
768,
16,
876,
67,
768,
4672,
9163,
4416,
605,
2192,
1390,
635,
7799,
1093,
6309,
1797,
67,
1576,
273,
276,
1576,
18,
3530,
1435,
1797,
67,
1576,
3292,
267,
768,
3546,
273,
810,
67,
768,
1797,
67,
1576,
3292,
26050,
3546,
273,
1140,
18,
803,
18,
4939,
408,
12,
2844,
67,
768,
25146,
20,
65,
1797,
67,
1576,
3292,
659,
3239,
3546,
273,
1797,
67,
1576,
3292,
26050,
3546,
293,
3576,
2668,
38,
2192,
10320,
5928,
2187,
1797,
67,
1576,
3292,
267,
768,
17337,
1797,
67,
1576,
3292,
26050,
19486,
19189,
1060,
67,
4172,
273,
21063,
3804,
67,
20353,
13,
87,
12943,
5095,
12,
267,
768,
13,
87,
11550,
5095,
12,
26050,
13,
87,
11530,
67,
7954,
33,
29191,
296,
397,
521,
296,
6694,
67,
862,
9428,
3948,
67,
706,
67,
54,
2192,
33,
25,
9449,
11,
745,
12,
20003,
1060,
67,
4172,
738,
1797,
67,
1576,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
11477,
12,
2630,
67,
768,
16,
876,
67,
768,
4672,
9163,
4416,
605,
2192,
1390,
635,
7799,
1093,
6309,
1797,
67,
1576,
273,
276,
1576,
18,
3530,
1435,
1797,
67,
1576,
3292,
267,
768,
3546,
273,
810,
67,
768,
1797,
67,
1576,
3292,
26050,
3546,
273,
1140,
18,
803,
18,
4939,
408,
12,
2844,
67,
768,
25146,
20,
65,
1797,
67,
1576,
3292,
659,
3239,
3546,
273,
1797,
67,
1576,
3292,
26050,
3546,
293,
3576,
2668,
38,
2192,
10320,
5928,
2187,
1797,
67,
1576,
3292,
267,
768,
17337,
1797,
67,
1576,
3292,
26050,
19486,
19189,
1060,
67,
4172,
273,
21063,
3804,
67,
20353,
13,
87,
12943,
5095,
12,
267,
768,
13,
87,
11550,
5095,
12,
26050,
2
] |
music.length_formatted()), (u"normal", 13, graphics.FONT_BOLD))
|
music.length_formatted()), (u"normal", 13, graphics.FONT_ANTIALIAS))
|
def show_music_information(self, music): if not self.is_visible: return
|
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
81,
14894,
67,
13117,
12,
2890,
16,
26225,
4672,
309,
486,
365,
18,
291,
67,
8613,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
81,
14894,
67,
13117,
12,
2890,
16,
26225,
4672,
309,
486,
365,
18,
291,
67,
8613,
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
] |
value = keys.pop()
|
def add_keys(self, *keys, **kwargs): keys = list(keys) while len(keys) > 0: key = keys.pop() if isinstance(key, basestring): value = keys.pop() self.keys.append(key) self.columns[key] = value elif isinstance(key, (list, tuple)): self.keys.extend(key) #elif isinstance(key, dict): # self.columns.update(key) else: raise TypeError("String, tuple or dict required.")
|
a4f69106dfee83df4b0b8dbd1ba2cae4e0d66a1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/a4f69106dfee83df4b0b8dbd1ba2cae4e0d66a1a/checkwidgets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2452,
12,
2890,
16,
380,
2452,
16,
2826,
4333,
4672,
1311,
273,
666,
12,
2452,
13,
1323,
562,
12,
2452,
13,
405,
374,
30,
498,
273,
1311,
18,
5120,
1435,
309,
1549,
12,
856,
16,
10699,
4672,
365,
18,
2452,
18,
6923,
12,
856,
13,
365,
18,
5112,
63,
856,
65,
273,
460,
1327,
1549,
12,
856,
16,
261,
1098,
16,
3193,
3719,
30,
365,
18,
2452,
18,
14313,
12,
856,
13,
468,
292,
430,
1549,
12,
856,
16,
2065,
4672,
468,
565,
365,
18,
5112,
18,
2725,
12,
856,
13,
469,
30,
1002,
3580,
2932,
780,
16,
3193,
578,
2065,
1931,
1199,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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2890,
16,
380,
2452,
16,
2826,
4333,
4672,
1311,
273,
666,
12,
2452,
13,
1323,
562,
12,
2452,
13,
405,
374,
30,
498,
273,
1311,
18,
5120,
1435,
309,
1549,
12,
856,
16,
10699,
4672,
365,
18,
2452,
18,
6923,
12,
856,
13,
365,
18,
5112,
63,
856,
65,
273,
460,
1327,
1549,
12,
856,
16,
261,
1098,
16,
3193,
3719,
30,
365,
18,
2452,
18,
14313,
12,
856,
13,
468,
292,
430,
1549,
12,
856,
16,
2065,
4672,
468,
565,
365,
18,
5112,
18,
2725,
12,
856,
13,
469,
30,
1002,
3580,
2932,
780,
16,
3193,
578,
2065,
1931,
1199,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
line = re.sub(r'[bB]ug '<a href="' + bugzilla_url + '\\1">\\g<0></a>', line)
|
def format_date(d): # Don't depend on locale months = (None, 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December') d = time.strptime(d, '%Y-%m-%d') return '%s %d, %d' % (months[d.tm_mon], d.tm_mday, d.tm_year)
|
d298711b9a325b8a808cc15c7dbfada5395f6b17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/d298711b9a325b8a808cc15c7dbfada5395f6b17/gen-news.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
712,
12,
72,
4672,
468,
7615,
1404,
2447,
603,
2573,
8846,
273,
261,
7036,
16,
296,
46,
304,
24335,
2187,
296,
2954,
2848,
24335,
2187,
296,
49,
991,
2187,
296,
37,
683,
330,
2187,
296,
49,
528,
2187,
296,
46,
7556,
2187,
296,
46,
332,
93,
2187,
296,
37,
637,
641,
2187,
296,
1761,
337,
2558,
2187,
296,
19320,
83,
744,
2187,
296,
50,
1527,
2558,
2187,
296,
758,
311,
81,
744,
6134,
302,
273,
813,
18,
701,
10650,
12,
72,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
327,
1995,
87,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
712,
12,
72,
4672,
468,
7615,
1404,
2447,
603,
2573,
8846,
273,
261,
7036,
16,
296,
46,
304,
24335,
2187,
296,
2954,
2848,
24335,
2187,
296,
49,
991,
2187,
296,
37,
683,
330,
2187,
296,
49,
528,
2187,
296,
46,
7556,
2187,
296,
46,
332,
93,
2187,
296,
37,
637,
641,
2187,
296,
1761,
337,
2558,
2187,
296,
19320,
83,
744,
2187,
296,
50,
1527,
2558,
2187,
296,
758,
311,
81,
744,
6134,
302,
273,
813,
18,
701,
10650,
12,
72,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
327,
1995,
87,
738,
72,
16,
738,
72,
11,
738,
261,
27584,
63,
72,
18,
16925,
67,
2586,
6487,
302,
18,
16925,
67,
1264,
528,
16,
302,
2
] |
|
"Unexpected keyword: %s=%r" % name, value)
|
"Unexpected keyword: %s=%r" % (name, value))
|
def __init__(self, environ=None, environ_getter=None, charset=NoDefault, unicode_errors=NoDefault, decode_param_names=NoDefault, **kw): if environ is None and environ_getter is None: raise TypeError( "You must provide one of environ or environ_getter") if environ is not None and environ_getter is not None: raise TypeError( "You can only provide one of the environ and environ_getter arguments") if environ is None: self._environ_getter = environ_getter else: if not isinstance(environ, dict): raise TypeError( "Bad type for environ: %s" % type(environ)) self._environ = environ if charset is not NoDefault: self.__dict__['charset'] = charset if unicode_errors is not NoDefault: self.__dict__['unicode_errors'] = unicode_errors if decode_param_names is not NoDefault: self.__dict__['decode_param_names'] = decode_param_names for name, value in kw.items(): if not hasattr(self.__class__, name): raise TypeError( "Unexpected keyword: %s=%r" % name, value) setattr(self, name, value)
|
ac9e22662a2d9c3ee6b554c171593049fd08ff8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12287/ac9e22662a2d9c3ee6b554c171593049fd08ff8c/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5473,
33,
7036,
16,
5473,
67,
11990,
33,
7036,
16,
4856,
33,
2279,
1868,
16,
5252,
67,
4324,
33,
2279,
1868,
16,
2495,
67,
891,
67,
1973,
33,
2279,
1868,
16,
2826,
9987,
4672,
309,
5473,
353,
599,
471,
5473,
67,
11990,
353,
599,
30,
1002,
3580,
12,
315,
6225,
1297,
5615,
1245,
434,
5473,
578,
5473,
67,
11990,
7923,
309,
5473,
353,
486,
599,
471,
5473,
67,
11990,
353,
486,
599,
30,
1002,
3580,
12,
315,
6225,
848,
1338,
5615,
1245,
434,
326,
5473,
471,
5473,
67,
11990,
1775,
7923,
309,
5473,
353,
599,
30,
365,
6315,
28684,
67,
11990,
273,
5473,
67,
11990,
469,
30,
309,
486,
1549,
12,
28684,
16,
2065,
4672,
1002,
3580,
12,
315,
6434,
618,
364,
5473,
30,
738,
87,
6,
738,
618,
12,
28684,
3719,
365,
6315,
28684,
273,
5473,
309,
4856,
353,
486,
2631,
1868,
30,
365,
16186,
1576,
972,
3292,
9999,
3546,
273,
4856,
309,
5252,
67,
4324,
353,
486,
2631,
1868,
30,
365,
16186,
1576,
972,
3292,
9124,
67,
4324,
3546,
273,
5252,
67,
4324,
309,
2495,
67,
891,
67,
1973,
353,
486,
2631,
1868,
30,
365,
16186,
1576,
972,
3292,
3922,
67,
891,
67,
1973,
3546,
273,
2495,
67,
891,
67,
1973,
364,
508,
16,
460,
316,
5323,
18,
3319,
13332,
309,
486,
3859,
12,
2890,
16186,
1106,
972,
16,
508,
4672,
1002,
3580,
12,
315,
7762,
4932,
30,
738,
87,
5095,
86,
6,
738,
261,
529,
16,
460,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5473,
33,
7036,
16,
5473,
67,
11990,
33,
7036,
16,
4856,
33,
2279,
1868,
16,
5252,
67,
4324,
33,
2279,
1868,
16,
2495,
67,
891,
67,
1973,
33,
2279,
1868,
16,
2826,
9987,
4672,
309,
5473,
353,
599,
471,
5473,
67,
11990,
353,
599,
30,
1002,
3580,
12,
315,
6225,
1297,
5615,
1245,
434,
5473,
578,
5473,
67,
11990,
7923,
309,
5473,
353,
486,
599,
471,
5473,
67,
11990,
353,
486,
599,
30,
1002,
3580,
12,
315,
6225,
848,
1338,
5615,
1245,
434,
326,
5473,
471,
5473,
67,
11990,
1775,
7923,
309,
5473,
353,
599,
30,
365,
6315,
28684,
67,
11990,
273,
5473,
67,
11990,
469,
30,
309,
486,
1549,
12,
28684,
2
] |
sys.exit(0)
|
attemptShutdown(False) os.kill(os.getpid(),9)
|
def fatalError(message): """ Raise a fatal, internal error. Kill everything, log sufficiently, and inform the main class to restart. """ log(Log.Error, "api-main", "FATAL ERROR: %s -- Shutting down and restarting!" % message) sys.exit(0) # TODO: Shutdown, restart
|
aeb59e37c0d20aad8ce5af20553762604b875919 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12317/aeb59e37c0d20aad8ce5af20553762604b875919/Vending.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10081,
668,
12,
2150,
4672,
3536,
20539,
279,
10081,
16,
2713,
555,
18,
20520,
7756,
16,
613,
18662,
715,
16,
471,
13235,
326,
2774,
667,
358,
7870,
18,
3536,
613,
12,
1343,
18,
668,
16,
315,
2425,
17,
5254,
3113,
315,
29891,
5475,
30,
738,
87,
1493,
2638,
25387,
2588,
471,
7870,
310,
4442,
738,
883,
13,
2589,
18,
8593,
12,
20,
13,
468,
2660,
30,
17640,
16,
7870,
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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,
316,
326,
981,
30,
1652,
10081,
668,
12,
2150,
4672,
3536,
20539,
279,
10081,
16,
2713,
555,
18,
20520,
7756,
16,
613,
18662,
715,
16,
471,
13235,
326,
2774,
667,
358,
7870,
18,
3536,
613,
12,
1343,
18,
668,
16,
315,
2425,
17,
5254,
3113,
315,
29891,
5475,
30,
738,
87,
1493,
2638,
25387,
2588,
471,
7870,
310,
4442,
738,
883,
13,
2589,
18,
8593,
12,
20,
13,
468,
2660,
30,
17640,
16,
7870,
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
] |
return http.Response(stream=str(self.worksheet.is_auto_publish()))
|
return HTMLResponse(stream=str(self.worksheet.is_auto_publish()))
|
def render(self, ctx): # Publishes worksheet and also sets worksheet to be published automatically when saved if 'yes' in ctx.args and 'auto' in ctx.args: notebook.publish_worksheet(self.worksheet, self.username) self.worksheet.set_auto_publish() return http.RedirectResponse("/home/%s/publish" % (self.worksheet.filename())) # Just publishes worksheet elif 'yes' in ctx.args: notebook.publish_worksheet(self.worksheet, self.username) return http.RedirectResponse("/home/%s/publish" % (self.worksheet.filename())) # Stops publication of worksheet elif 'stop' in ctx.args: notebook.delete_worksheet(self.worksheet.published_version().filename()) return http.RedirectResponse("/home/%s/publish" % (self.worksheet.filename())) # Re-publishes worksheet elif 're' in ctx.args: W = notebook.publish_worksheet(self.worksheet, self.username) return http.RedirectResponse("/home/%s/publish" % (self.worksheet.filename())) # Sets worksheet to be published automatically when saved elif 'auto' in ctx.args: self.worksheet.set_auto_publish() return http.RedirectResponse("/home/%s/publish" % (self.worksheet.filename())) # Returns boolean of "Is this worksheet set to be published automatically when saved?" elif 'is_auto' in ctx.args: return http.Response(stream=str(self.worksheet.is_auto_publish())) # Returns the publication page else: # Page for when worksheet already published if self.worksheet.has_published_version(): addr = 'http%s://' % ('' if not notebook.secure else 's') addr += notebook.address addr += ':%s' % notebook.port addr += '/home/' + self.worksheet.published_version().filename() dtime = self.worksheet.published_version().date_edited() return http.Response(stream=notebook.html_afterpublish_window(self.worksheet, self.username, addr, dtime)) # Page for when worksheet is not already published else: return http.Response(stream=notebook.html_beforepublish_window(self.worksheet, self.username))
|
2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
9761,
281,
13622,
471,
2546,
1678,
13622,
358,
506,
9487,
6635,
1347,
5198,
309,
296,
9707,
11,
316,
1103,
18,
1968,
471,
296,
6079,
11,
316,
1103,
18,
1968,
30,
14718,
18,
6543,
67,
1252,
8118,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
365,
18,
1252,
8118,
18,
542,
67,
6079,
67,
6543,
1435,
327,
1062,
18,
5961,
1064,
2932,
19,
8712,
5258,
87,
19,
6543,
6,
738,
261,
2890,
18,
1252,
8118,
18,
3459,
1435,
3719,
468,
12526,
17060,
13622,
1327,
296,
9707,
11,
316,
1103,
18,
1968,
30,
14718,
18,
6543,
67,
1252,
8118,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
327,
1062,
18,
5961,
1064,
2932,
19,
8712,
5258,
87,
19,
6543,
6,
738,
261,
2890,
18,
1252,
8118,
18,
3459,
1435,
3719,
468,
934,
4473,
20574,
434,
13622,
1327,
296,
5681,
11,
316,
1103,
18,
1968,
30,
14718,
18,
3733,
67,
1252,
8118,
12,
2890,
18,
1252,
8118,
18,
12614,
67,
1589,
7675,
3459,
10756,
327,
1062,
18,
5961,
1064,
2932,
19,
8712,
5258,
87,
19,
6543,
6,
738,
261,
2890,
18,
1252,
8118,
18,
3459,
1435,
3719,
468,
868,
17,
6543,
281,
13622,
1327,
296,
266,
11,
316,
1103,
18,
1968,
30,
678,
273,
14718,
18,
6543,
67,
1252,
8118,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
327,
1062,
18,
5961,
1064,
2932,
19,
8712,
5258,
87,
19,
6543,
6,
738,
261,
2890,
18,
1252,
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,
1743,
12,
2890,
16,
1103,
4672,
468,
9761,
281,
13622,
471,
2546,
1678,
13622,
358,
506,
9487,
6635,
1347,
5198,
309,
296,
9707,
11,
316,
1103,
18,
1968,
471,
296,
6079,
11,
316,
1103,
18,
1968,
30,
14718,
18,
6543,
67,
1252,
8118,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
365,
18,
1252,
8118,
18,
542,
67,
6079,
67,
6543,
1435,
327,
1062,
18,
5961,
1064,
2932,
19,
8712,
5258,
87,
19,
6543,
6,
738,
261,
2890,
18,
1252,
8118,
18,
3459,
1435,
3719,
468,
12526,
17060,
13622,
1327,
296,
9707,
11,
316,
1103,
18,
1968,
30,
14718,
18,
6543,
67,
1252,
8118,
12,
2890,
18,
1252,
8118,
16,
365,
18,
5053,
13,
327,
1062,
2
] |
report_send_fields = { 'mail_service_id': {'string': 'Select Mail Service', 'type': 'many2one', 'relation': 'dm.mail_service',}, }
|
domain = [] if address: pool = pooler.get_pool(cr.dbname) wi_obj = pool.get('dm.workitem') workitem_ids = wi_obj.search(cr, uid, [('address_id', '=', address)]) segment_ids = list(set([wi.segment_id.id for wi in wi_obj.browse(cr, uid, workitem_ids) if wi.segment_id.id])) domain = [('id', 'in', tuple(segment_ids))]
|
def get_campaings(self,cr,uid,context): document_id = self.dm_wiz_data['id'] pool = pooler.get_pool(cr.dbname) seg_obj = pool.get('dm.campaign.proposition.segment') document = pool.get('dm.offer.document').browse(cr,uid,document_id) if document.step_id: offer=document.step_id.offer_id.id if offer: camp_ids=pool.get('dm.campaign').search(cr,uid,[('offer_id','=',offer)]) if camp_ids: segment_ids=seg_obj.search(cr,uid,[('campaign_id','in',camp_ids)]) res = [(seg.id, seg.name) for seg in seg_obj.browse(cr, uid, segment_ids)] res.sort(lambda x, y: cmp(x[1], y[1])) return res
|
c4b3f8fbfd260b59e6476663f0fbd313179a12b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/c4b3f8fbfd260b59e6476663f0fbd313179a12b3/dm_document_report.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
71,
5406,
899,
12,
2890,
16,
3353,
16,
1911,
16,
2472,
4672,
1668,
67,
350,
273,
365,
18,
10956,
67,
91,
452,
67,
892,
3292,
350,
3546,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
2291,
67,
2603,
273,
2845,
18,
588,
2668,
10956,
18,
14608,
18,
685,
3276,
18,
9273,
6134,
1668,
273,
2845,
18,
588,
2668,
10956,
18,
23322,
18,
5457,
16063,
25731,
12,
3353,
16,
1911,
16,
5457,
67,
350,
13,
309,
1668,
18,
4119,
67,
350,
30,
10067,
33,
5457,
18,
4119,
67,
350,
18,
23322,
67,
350,
18,
350,
309,
10067,
30,
20787,
67,
2232,
33,
6011,
18,
588,
2668,
10956,
18,
14608,
16063,
3072,
12,
3353,
16,
1911,
16,
63,
2668,
23322,
67,
350,
17023,
33,
2187,
23322,
13,
5717,
309,
20787,
67,
2232,
30,
3267,
67,
2232,
33,
5680,
67,
2603,
18,
3072,
12,
3353,
16,
1911,
16,
63,
2668,
14608,
67,
350,
17023,
267,
2187,
71,
931,
67,
2232,
13,
5717,
400,
273,
306,
12,
5680,
18,
350,
16,
2291,
18,
529,
13,
364,
2291,
316,
2291,
67,
2603,
18,
25731,
12,
3353,
16,
4555,
16,
3267,
67,
2232,
25887,
400,
18,
3804,
12,
14661,
619,
16,
677,
30,
9411,
12,
92,
63,
21,
6487,
677,
63,
21,
22643,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
71,
5406,
899,
12,
2890,
16,
3353,
16,
1911,
16,
2472,
4672,
1668,
67,
350,
273,
365,
18,
10956,
67,
91,
452,
67,
892,
3292,
350,
3546,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
2291,
67,
2603,
273,
2845,
18,
588,
2668,
10956,
18,
14608,
18,
685,
3276,
18,
9273,
6134,
1668,
273,
2845,
18,
588,
2668,
10956,
18,
23322,
18,
5457,
16063,
25731,
12,
3353,
16,
1911,
16,
5457,
67,
350,
13,
309,
1668,
18,
4119,
67,
350,
30,
10067,
33,
5457,
18,
4119,
67,
350,
18,
23322,
67,
350,
18,
350,
309,
10067,
30,
20787,
67,
2232,
33,
6011,
18,
588,
2668,
10956,
18,
14608,
16063,
3072,
12,
2
] |
parts = [tagname.lower()]
|
parts = [tagname]
|
def starttag(self, node, tagname, suffix='\n', infix='', **attributes): """ Construct and return a start tag given a node (id & class attributes are extracted), tag name, and optional attributes. """ atts = {} for (name, value) in attributes.items(): atts[name.lower()] = value for att in ('class',): # append to node attribute if node.has_key(att) or atts.has_key(att): atts[att] = \ (node.get(att, '') + ' ' + atts.get(att, '')).strip() for att in ('id',): # node attribute overrides if node.has_key(att): atts[att] = node[att] if atts.has_key('id'): atts['name'] = atts['id'] # for compatibility with old browsers attlist = atts.items() attlist.sort() parts = [tagname.lower()] for name, value in attlist: if value is None: # boolean attribute # According to the HTML spec, ``<element boolean>`` is good, # ``<element boolean="boolean">`` is bad. # (But the XHTML (XML) spec says the opposite. <sigh>) parts.append(name.lower()) elif isinstance(value, ListType): values = [str(v) for v in value] parts.append('%s="%s"' % (name.lower(), self.attval(' '.join(values)))) else: parts.append('%s="%s"' % (name.lower(), self.attval(str(value)))) return '<%s%s>%s' % (' '.join(parts), infix, suffix)
|
bef2b9f2a4b776f4f84bbd8c993d083045875c02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/bef2b9f2a4b776f4f84bbd8c993d083045875c02/html4css1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
2692,
12,
2890,
16,
756,
16,
25586,
16,
3758,
2218,
64,
82,
2187,
316,
904,
2218,
2187,
2826,
4350,
4672,
3536,
14291,
471,
327,
279,
787,
1047,
864,
279,
756,
261,
350,
473,
667,
1677,
854,
9438,
3631,
1047,
508,
16,
471,
3129,
1677,
18,
3536,
15687,
273,
2618,
364,
261,
529,
16,
460,
13,
316,
1677,
18,
3319,
13332,
15687,
63,
529,
18,
8167,
1435,
65,
273,
460,
364,
2403,
316,
7707,
1106,
2187,
4672,
1850,
468,
714,
358,
756,
1566,
309,
756,
18,
5332,
67,
856,
12,
4558,
13,
578,
15687,
18,
5332,
67,
856,
12,
4558,
4672,
15687,
63,
4558,
65,
273,
521,
261,
2159,
18,
588,
12,
4558,
16,
28707,
397,
296,
296,
397,
15687,
18,
588,
12,
4558,
16,
28707,
2934,
6406,
1435,
364,
2403,
316,
7707,
350,
2187,
4672,
2398,
468,
756,
1566,
9515,
309,
756,
18,
5332,
67,
856,
12,
4558,
4672,
15687,
63,
4558,
65,
273,
756,
63,
4558,
65,
309,
15687,
18,
5332,
67,
856,
2668,
350,
11,
4672,
15687,
3292,
529,
3546,
273,
15687,
3292,
350,
3546,
282,
468,
364,
8926,
598,
1592,
14993,
2403,
1098,
273,
15687,
18,
3319,
1435,
2403,
1098,
18,
3804,
1435,
2140,
273,
306,
2692,
529,
65,
364,
508,
16,
460,
316,
2403,
1098,
30,
309,
460,
353,
599,
30,
6647,
468,
1250,
1566,
468,
12848,
4643,
358,
326,
3982,
857,
16,
12176,
32,
2956,
1250,
34,
10335,
353,
7494,
16,
468,
12176,
32,
2956,
1250,
1546,
6494,
6441,
10335,
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,
787,
2692,
12,
2890,
16,
756,
16,
25586,
16,
3758,
2218,
64,
82,
2187,
316,
904,
2218,
2187,
2826,
4350,
4672,
3536,
14291,
471,
327,
279,
787,
1047,
864,
279,
756,
261,
350,
473,
667,
1677,
854,
9438,
3631,
1047,
508,
16,
471,
3129,
1677,
18,
3536,
15687,
273,
2618,
364,
261,
529,
16,
460,
13,
316,
1677,
18,
3319,
13332,
15687,
63,
529,
18,
8167,
1435,
65,
273,
460,
364,
2403,
316,
7707,
1106,
2187,
4672,
1850,
468,
714,
358,
756,
1566,
309,
756,
18,
5332,
67,
856,
12,
4558,
13,
578,
15687,
18,
5332,
67,
856,
12,
4558,
4672,
15687,
63,
4558,
65,
273,
521,
261,
2159,
18,
588,
12,
4558,
16,
28707,
397,
296,
296,
2
] |
self.conn = self.connect(invalidate = True)
|
self.conn = self.connect()
|
def startTransaction(self): """ __startTransaciton__ Start a transaction, performing an implicit commit if necessary.
|
f6d38da4b0910650112bd5df8a6e148fb35b760b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/f6d38da4b0910650112bd5df8a6e148fb35b760b/MergeSensorDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
3342,
12,
2890,
4672,
3536,
1001,
1937,
1429,
1077,
26949,
972,
225,
3603,
279,
2492,
16,
14928,
392,
10592,
3294,
309,
4573,
18,
2,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
3342,
12,
2890,
4672,
3536,
1001,
1937,
1429,
1077,
26949,
972,
225,
3603,
279,
2492,
16,
14928,
392,
10592,
3294,
309,
4573,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def block(self, expiry=None, reason=None, anonOnly=True, noSignup=False, enableAutoblock=False, emailBan=False):
|
def block(self, expiry=None, reason=None, anonOnly=True, noSignup=False, enableAutoblock=False, emailBan=False, watchUser=False, allowUsertalk=True):
|
def block(self, expiry=None, reason=None, anonOnly=True, noSignup=False, enableAutoblock=False, emailBan=False): """ Block the user.
|
fd68e75c37f6f7471c58cf76d697bb8675ed0763 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/fd68e75c37f6f7471c58cf76d697bb8675ed0763/userlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
12,
2890,
16,
10839,
33,
7036,
16,
3971,
33,
7036,
16,
30637,
3386,
33,
5510,
16,
1158,
2766,
416,
33,
8381,
16,
4237,
7150,
947,
739,
33,
8381,
16,
2699,
38,
304,
33,
8381,
16,
4267,
1299,
33,
8381,
16,
1699,
57,
1037,
2960,
33,
5510,
4672,
3536,
3914,
326,
729,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
12,
2890,
16,
10839,
33,
7036,
16,
3971,
33,
7036,
16,
30637,
3386,
33,
5510,
16,
1158,
2766,
416,
33,
8381,
16,
4237,
7150,
947,
739,
33,
8381,
16,
2699,
38,
304,
33,
8381,
16,
4267,
1299,
33,
8381,
16,
1699,
57,
1037,
2960,
33,
5510,
4672,
3536,
3914,
326,
729,
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
] |
self.info = mediadb.ItemInfo('', '', {})
|
self.info = mediadb.item()
|
def __init__(self, parent=None, info=True): """ Init the item. Sets all needed variables, if parent is given also inherit some settings from there. """ if not hasattr(self, 'type'): self.type = None # e.g. video, audio, dir, playlist
|
8914e83d86f520c47817ebd3ec42959fc0feefbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/8914e83d86f520c47817ebd3ec42959fc0feefbf/item.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
1123,
33,
5510,
4672,
3536,
4378,
326,
761,
18,
11511,
777,
3577,
3152,
16,
309,
982,
353,
864,
2546,
6811,
2690,
1947,
628,
1915,
18,
3536,
309,
486,
3859,
12,
2890,
16,
296,
723,
11,
4672,
365,
18,
723,
377,
273,
599,
5411,
468,
425,
18,
75,
18,
6191,
16,
7447,
16,
1577,
16,
16428,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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11511,
777,
3577,
3152,
16,
309,
982,
353,
864,
2546,
6811,
2690,
1947,
628,
1915,
18,
3536,
309,
486,
3859,
12,
2890,
16,
296,
723,
11,
4672,
365,
18,
723,
377,
273,
599,
5411,
468,
425,
18,
75,
18,
6191,
16,
7447,
16,
1577,
16,
16428,
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
] |
main()
|
main()
|
def main(): # parse command line options try: opts, args = getopt.getopt(sys.argv[1:], "hv", ["help", "verbose"]) except getopt.error, msg: print msg print "for help use --help" sys.exit(2) for i in opts: print "opts:"+i[0] for i in args: print "args:"+i files = args for f in files: print "file:"+f try: allContacts=parse_vcf(f) except IOError: print "errore: file not found" sys.exit(2) myContacts=dedupe(allContacts) outfile = open("rubrica_parsata.vcf","w+") print "stampalo" for i in myContacts: #print i.serialize() outfile.write(i.serialize()) outfile.write(i.serialize())
|
765a62b2090184a64aaf4de1b40a55f13c8693d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1102/765a62b2090184a64aaf4de1b40a55f13c8693d8/nodupe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1109,
1296,
980,
702,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
76,
90,
3113,
8247,
5201,
3113,
315,
11369,
6,
5717,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
1172,
1234,
1172,
315,
1884,
2809,
999,
1493,
5201,
6,
2589,
18,
8593,
12,
22,
13,
225,
364,
277,
316,
1500,
30,
1172,
315,
4952,
2773,
15,
77,
63,
20,
65,
225,
364,
277,
316,
833,
30,
1172,
315,
1968,
2773,
15,
77,
225,
1390,
273,
833,
364,
284,
316,
1390,
30,
1172,
315,
768,
2773,
15,
74,
775,
30,
777,
20017,
33,
2670,
67,
16714,
12,
74,
13,
1335,
8340,
30,
1172,
315,
264,
303,
266,
30,
585,
486,
1392,
6,
2589,
18,
8593,
12,
22,
13,
225,
3399,
20017,
33,
785,
89,
347,
12,
454,
20017,
13,
8756,
273,
1696,
2932,
18271,
1512,
69,
67,
8954,
396,
18,
16714,
15937,
91,
15,
7923,
1172,
315,
14317,
287,
83,
6,
364,
277,
316,
3399,
20017,
30,
468,
1188,
277,
18,
6288,
1435,
8756,
18,
2626,
12,
77,
18,
6288,
10756,
282,
8756,
18,
2626,
12,
77,
18,
6288,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1109,
1296,
980,
702,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
76,
90,
3113,
8247,
5201,
3113,
315,
11369,
6,
5717,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
1172,
1234,
1172,
315,
1884,
2809,
999,
1493,
5201,
6,
2589,
18,
8593,
12,
22,
13,
225,
364,
277,
316,
1500,
30,
1172,
315,
4952,
2773,
15,
77,
63,
20,
65,
225,
364,
277,
316,
833,
30,
1172,
315,
1968,
2773,
15,
77,
225,
1390,
273,
833,
364,
284,
316,
1390,
30,
1172,
315,
768,
2773,
15,
74,
775,
30,
777,
20017,
33,
2670,
67,
16714,
12,
74,
13,
1335,
8340,
30,
1172,
2
] |
value = workspace.measurements.get_image_measurement(column[1]) statistics += (column[0].split('_')[1], str(value))
|
value = workspace.measurements.get_current_image_measurement(column[1])[0] statistics += [(column[1].split('_')[1], str(value))]
|
def run(self,workspace): """Run the module workspace - the workspace contains: pipeline - instance of CellProfiler.Pipeline for this run image_set - the images in the image set being processed object_set - the objects (labeled masks) in this image set measurements - the measurements for this run frame - display within this frame (or None to not display) """ input = workspace.image_set.get_image(self.image_name, must_be_grayscale=True) pixels = input.pixel_data.copy() if self.threshold_modifier == TM_PER_OBJECT: objects = workspace.object_set.get_objects(self.enclosing_objects_name.value) labels = objects.segmented else: labels = None local_thresh,global_thresh = self.get_threshold(pixels,input.mask,labels) if self.binary != 'Grayscale': pixels = (pixels > local_thresh) & input.mask else: if self.low_or_high == TH_BELOW_THRESHOLD: thresholded_pixels = pixels < local_thresh pixels[input.mask & thresholded_pixels] = 0 if self.shift.value: pixels[input.mask & ~ thresholded_pixels] -= local_thresh elif self.low_or_high == TH_ABOVE_THRESHOLD: undilated = input.mask & (pixels >= local_thresh) dilated = binary_dilation(undilated, strel_disk(self.dilation.value), mask=input.mask) pixels[dilated] = 0 else: raise NotImplementedError( """Threshold setting, "%s" is not "%s" or "%s".""" % (self.low_or_high.value, TH_BELOW_THRESHOLD, TH_ABOVE_THRESHOLD)) output = cpimage.Image(pixels, parent_image=input) workspace.image_set.add(self.thresholded_image_name.value, output) self.add_threshold_measurements(workspace.measurements, input.pixel_data, input.mask, local_thresh, global_thresh, self.thresholded_image_name.value) if workspace.frame is not None: workspace.display_data.input_pixel_data = input.pixel_data workspace.display_data.output_pixel_data = output.pixel_data statistics = workspace.display_data.statistics = [ ("Feature","Value")] for column in self.get_measurement_columns(workspace.pipeline): value = workspace.measurements.get_image_measurement(column[1]) statistics += (column[0].split('_')[1], str(value))
|
0a88a8cb83308fe183bf437b67c06148c87c9082 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/0a88a8cb83308fe183bf437b67c06148c87c9082/applythreshold.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
14915,
4672,
3536,
1997,
326,
1605,
225,
6003,
565,
300,
326,
6003,
1914,
30,
5873,
377,
300,
791,
434,
8614,
22060,
18,
8798,
364,
333,
1086,
1316,
67,
542,
565,
300,
326,
4602,
316,
326,
1316,
444,
3832,
5204,
733,
67,
542,
282,
300,
326,
2184,
261,
1925,
329,
20931,
13,
316,
333,
1316,
444,
16725,
300,
326,
16725,
364,
333,
1086,
2623,
3639,
300,
2562,
3470,
333,
2623,
261,
280,
599,
358,
486,
2562,
13,
3536,
810,
273,
6003,
18,
2730,
67,
542,
18,
588,
67,
2730,
12,
2890,
18,
2730,
67,
529,
16,
1297,
67,
2196,
67,
22440,
5864,
33,
5510,
13,
8948,
273,
810,
18,
11743,
67,
892,
18,
3530,
1435,
309,
365,
18,
8699,
67,
20597,
422,
27435,
67,
3194,
67,
9422,
30,
2184,
273,
6003,
18,
1612,
67,
542,
18,
588,
67,
6911,
12,
2890,
18,
1331,
10910,
67,
6911,
67,
529,
18,
1132,
13,
3249,
273,
2184,
18,
9273,
329,
469,
30,
3249,
273,
599,
1191,
67,
19237,
16,
6347,
67,
19237,
273,
365,
18,
588,
67,
8699,
12,
21084,
16,
2630,
18,
4455,
16,
5336,
13,
309,
365,
18,
8578,
480,
296,
23521,
5864,
4278,
8948,
273,
261,
21084,
405,
1191,
67,
19237,
13,
473,
810,
18,
4455,
469,
30,
309,
365,
18,
821,
67,
280,
67,
8766,
422,
7662,
67,
5948,
4130,
67,
23840,
30,
22939,
355,
785,
67,
21084,
273,
8948,
411,
1191,
67,
19237,
8948,
63,
2630,
18,
4455,
473,
22939,
355,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
14915,
4672,
3536,
1997,
326,
1605,
225,
6003,
565,
300,
326,
6003,
1914,
30,
5873,
377,
300,
791,
434,
8614,
22060,
18,
8798,
364,
333,
1086,
1316,
67,
542,
565,
300,
326,
4602,
316,
326,
1316,
444,
3832,
5204,
733,
67,
542,
282,
300,
326,
2184,
261,
1925,
329,
20931,
13,
316,
333,
1316,
444,
16725,
300,
326,
16725,
364,
333,
1086,
2623,
3639,
300,
2562,
3470,
333,
2623,
261,
280,
599,
358,
486,
2562,
13,
3536,
810,
273,
6003,
18,
2730,
67,
542,
18,
588,
67,
2730,
12,
2890,
18,
2730,
67,
529,
16,
1297,
67,
2196,
67,
22440,
5864,
33,
5510,
13,
8948,
273,
810,
18,
11743,
67,
892,
18,
3530,
1435,
2
] |
db_dir = self.cache_dir+'/'+status_dir+'/db' if not os.path.exists(db_dir): os.makedirs(db_dir)
|
def open_shelve(filename): from bsddb3 import db,dbshelve
|
5c9bae059cd7d11136ad9fba35419cb5fb58a393 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/5c9bae059cd7d11136ad9fba35419cb5fb58a393/apt_proxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
674,
292,
537,
12,
3459,
4672,
628,
7081,
449,
70,
23,
1930,
1319,
16,
1966,
674,
292,
537,
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
] |
|
[w1,w1], [w2,w1], [w1,w1], [w1,w2], [w2,w2], [w1,w2], [w1,w1], [w2,w1], [w1,w1]
|
[ w1, w1], [ w2, w1], [ w1, w1], [ w1, w2], [ w2, w2], [ w1, w2], [ w1, w1], [ w2, w1], [ w1, w1]
|
def flw2i4e(ex,ey,ep,D,eq=None): """ Compute element stiffness (conductivity) matrix for 4 node isoparametric field element Parameters: ex = [x1 x2 x3 x4] element coordinates ey = [y1 y2 y3 y4] ep = [t ir] thickness and integration rule D = [[kxx kxy], [kyx kyy]] constitutive matrix eq heat supply per unit volume Returns: Ke element 'stiffness' matrix (4 x 4) fe element load vector (4 x 1) """ t = ep[0] ir = ep[1] ngp = ir*ir if eq == None: q = 0 else: q = eq if ir == 1: g1 = 0.0 w1 = 2.0 gp = mat([g1,g1]) w = mat([w1,w1]) elif ir == 2: g1 = 0.577350269189626 w1 = 1 gp = mat([ [-g1,-g1], [ g1,-g1], [-g1, g1], [ g1, g1] ]) w = mat([ [w1,w1], [w1,w1], [w1,w1], [w1,w1] ]) elif ir == 3: g1 = 0.774596669241483 g2 = 0. w1 = 0.555555555555555 w2 = 0.888888888888888 gp = mat([ [-g1,-g1], [-g2,-g1], [ g1,-g1], [-g1, g2], [ g2, g2], [ g1, g2], [-g1, g1], [ g2, g1], [ g1, g1] ]) w = mat([ [w1,w1], [w2,w1], [w1,w1], [w1,w2], [w2,w2], [w1,w2], [w1,w1], [w2,w1], [w1,w1] ]) else: print "Used number of integration points not implemented" wp = multiply(w[:,0],w[:,1]) xsi = gp[:,0] eta = gp[:,1] r2 = ngp*2 N = multiply((1-xsi),(1-eta))/4. N = append(N,multiply((1+xsi),(1-eta))/4.,axis=1) N = append(N,multiply((1+xsi),(1+eta))/4.,axis=1) N = append(N,multiply((1-xsi),(1+eta))/4.,axis=1) dNr = mat(zeros((r2,4))) dNr[0:r2:2,0] =-(1-eta)/4. dNr[0:r2:2,1] = (1-eta)/4. dNr[0:r2:2,2] = (1+eta)/4. dNr[0:r2:2,3] =-(1+eta)/4. dNr[1:r2+1:2,0] =-(1-xsi)/4. dNr[1:r2+1:2,1] =-(1+xsi)/4. dNr[1:r2+1:2,2] = (1+xsi)/4. dNr[1:r2+1:2,3] = (1-xsi)/4. Ke1 = mat(zeros((4,4))) fe1 = mat(zeros((4,1))) JT = dNr*mat([ex,ey]).T for i in range(ngp): indx = array([2*(i+1)-1,2*(i+1)]) detJ = linalg.det(JT[indx-1,:]) if detJ < 10*finfo(float).eps: print "Jacobideterminanten lika med noll!" JTinv = linalg.inv(JT[indx-1,:]) B = JTinv*dNr[indx-1,:] Ke1 = Ke1+B.T*D*B*detJ*asscalar(wp[i]) fe1 = fe1+N[i,:].T*detJ*wp[i] if eq == None: return Ke1*t else: return Ke1*t,fe1*t*eq
|
802fb797c1c505715968b6bf327cad5ed7e0e712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1235/802fb797c1c505715968b6bf327cad5ed7e0e712/pycalfem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
91,
22,
77,
24,
73,
12,
338,
16,
402,
16,
881,
16,
40,
16,
11253,
33,
7036,
4672,
3536,
8155,
930,
384,
3048,
4496,
261,
591,
1828,
2818,
13,
3148,
364,
1059,
756,
353,
556,
439,
1591,
652,
930,
225,
7012,
30,
225,
431,
273,
306,
92,
21,
619,
22,
619,
23,
619,
24,
65,
225,
930,
5513,
12739,
273,
306,
93,
21,
677,
22,
677,
23,
677,
24,
65,
225,
5529,
273,
306,
88,
9482,
65,
540,
27199,
471,
12040,
1720,
225,
463,
225,
273,
12167,
79,
5279,
417,
1698,
6487,
306,
18465,
92,
417,
6795,
13563,
565,
29152,
322,
688,
3148,
225,
7555,
5375,
19347,
14467,
1534,
2836,
3940,
225,
2860,
30,
1475,
73,
5375,
930,
296,
334,
3048,
4496,
11,
3148,
261,
24,
619,
1059,
13,
1656,
5375,
930,
1262,
3806,
261,
24,
619,
404,
13,
225,
3536,
268,
273,
5529,
63,
20,
65,
9482,
273,
5529,
63,
21,
65,
290,
6403,
273,
9482,
14,
481,
225,
309,
7555,
422,
599,
30,
1043,
273,
374,
469,
30,
1043,
273,
7555,
225,
309,
9482,
422,
404,
30,
314,
21,
273,
374,
18,
20,
341,
21,
273,
576,
18,
20,
4178,
273,
4834,
3816,
75,
21,
16,
75,
21,
5717,
341,
273,
4834,
3816,
91,
21,
16,
91,
21,
5717,
1327,
9482,
422,
576,
30,
314,
21,
273,
374,
18,
25,
4700,
4763,
3103,
8148,
2643,
10525,
5558,
341,
21,
273,
404,
4178,
273,
4834,
3816,
23059,
75,
21,
16,
17,
75,
21,
6487,
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,
1183,
91,
22,
77,
24,
73,
12,
338,
16,
402,
16,
881,
16,
40,
16,
11253,
33,
7036,
4672,
3536,
8155,
930,
384,
3048,
4496,
261,
591,
1828,
2818,
13,
3148,
364,
1059,
756,
353,
556,
439,
1591,
652,
930,
225,
7012,
30,
225,
431,
273,
306,
92,
21,
619,
22,
619,
23,
619,
24,
65,
225,
930,
5513,
12739,
273,
306,
93,
21,
677,
22,
677,
23,
677,
24,
65,
225,
5529,
273,
306,
88,
9482,
65,
540,
27199,
471,
12040,
1720,
225,
463,
225,
273,
12167,
79,
5279,
417,
1698,
6487,
306,
18465,
92,
417,
6795,
13563,
565,
29152,
322,
688,
3148,
225,
7555,
5375,
19347,
14467,
1534,
2836,
3940,
225,
2860,
30,
1475,
73,
5375,
2
] |
delattr(c, meth)
|
c.sqlmeta.delJoin(joinDef, childUpdate=True)
|
def delJoin(sqlmeta, joinDef): soClass = sqlmeta.soClass super(InheritableSQLMeta, sqlmeta).delJoin(joinDef)
|
3846d0f4848345d398e1bda02a7e3b35067a6291 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8798/3846d0f4848345d398e1bda02a7e3b35067a6291/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
4572,
12,
4669,
3901,
16,
1233,
3262,
4672,
1427,
797,
273,
1847,
3901,
18,
2048,
797,
2240,
12,
14216,
429,
3997,
2781,
16,
1847,
3901,
2934,
3771,
4572,
12,
5701,
3262,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
4572,
12,
4669,
3901,
16,
1233,
3262,
4672,
1427,
797,
273,
1847,
3901,
18,
2048,
797,
2240,
12,
14216,
429,
3997,
2781,
16,
1847,
3901,
2934,
3771,
4572,
12,
5701,
3262,
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
] |
setUpEditWidgets(self, IPersonEditForm, self.context)
|
setUpWidgets(self, IPersonEditForm, IInputWidget, initial={'title': self.context.title, 'photo': self.context.photo})
|
def __init__(self, context, request): BrowserView.__init__(self, context, request) setUpEditWidgets(self, IPersonEditForm, self.context)
|
da91264001a001b238b7d686e5bc52d65686b154 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/da91264001a001b238b7d686e5bc52d65686b154/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
15408,
1767,
16186,
2738,
972,
12,
2890,
16,
819,
16,
590,
13,
24292,
4666,
16166,
12,
2890,
16,
2971,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
15408,
1767,
16186,
2738,
972,
12,
2890,
16,
819,
16,
590,
13,
24292,
4666,
16166,
12,
2890,
16,
2971,
3565,
4666,
1204,
16,
365,
18,
2472,
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
] |
lshift=Label(f5b, bg='white', fg='black', text='Shift 0.0', width=8, relief=RIDGE) lshift.grid(column=1,row=4,ipadx=3,padx=2,pady=5,sticky='EW')
|
def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync_save,idsec,first,itol,txsnrdb,tx6alt,\ bm_geom utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b %d\n%H:%M:%S',utc) Audio.gcom2.utcdate=t[:12] ldate.configure(text=t) root_geom=root.geometry() try: bm_geom=bm.geometry() except: pass utchours=utc[3]+utc[4]/60.0 + utc[5]/3600.0 naz,nel,ndmiles,ndkm,nhotaz,nhotabetter=Audio.azdist0( \ options.MyGrid.get().upper(),HisGrid.get().upper(),utchours) azdist() g.nfreq=nfreq.get() if Audio.gcom2.ndecoding==0: g.AzSun,g.ElSun,g.AzMoon,g.ElMoon,g.AzMoonB,g.ElMoonB,g.ntsky, \ g.ndop,g.ndop00,g.dbMoon,g.RAMoon,g.DecMoon,g.HA8,g.Dgrd, \ g.sd,g.poloffset,g.MaxNR,g.dfdt,g.dfdt0,g.RaAux,g.DecAux, \ g.AzAux,g.ElAux = Audio.astro0(utc[0],utc[1],utc[2], \ utchours,nfreq.get(),options.MyGrid.get().upper(), \ options.auxra.get()+' '[:9], \ options.auxdec.get()+' '[:9]) if len(HisGrid.get().strip())<4: g.ndop=g.ndop00 g.dfdt=g.dfdt0 graph2.delete(ALL) graph2.create_text(80,13,anchor=CENTER,text="Moon",font=g2font) graph2.create_text(13,37,anchor=W, text="Az: %6.2f" % g.AzMoon,font=g2font) graph2.create_text(13,61,anchor=W, text="El: %6.2f" % g.ElMoon,font=g2font) graph2.create_text(13,85,anchor=W, text="Dop:%6d" % g.ndop,font=g2font) graph2.create_text(13,109,anchor=W,text="Dgrd:%5.1f" % g.Dgrd,font=g2font) if g.freeze_decode: itol=2 ltol.configure(text='Tol '+str(50)) Audio.gcom2.dftolerance=50 nfreeze.set(1) Audio.gcom2.nfreeze=1 if Audio.gcom2.monitoring: Audio.gcom2.ndecoding=1 Audio.gcom2.nagain=0 else: Audio.gcom2.ndecoding=4 Audio.gcom2.nagain=1 g.freeze_decode=0 n=int(20.0*log10(g.rms/770.0+0.01)) t="Rx noise:%3d dB" % (n,) if n>=-10 and n<=10: msg4.configure(text=t,bg='gray85') else: msg4.configure(text=t,bg='red') t=g.ftnstr(Audio.gcom2.decodedfile)
|
f15c753982ab17e3b44954cd158dec3caeb6c649 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2394/f15c753982ab17e3b44954cd158dec3caeb6c649/map65.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
521,
709,
16,
84,
381,
16,
22738,
20,
16,
291,
1209,
16,
291,
1209,
67,
5688,
16,
350,
3321,
16,
3645,
16,
305,
355,
16,
978,
8134,
86,
1966,
16,
978,
26,
2390,
17211,
18829,
67,
10049,
225,
9439,
33,
957,
18,
75,
10838,
12,
957,
18,
957,
1435,
15,
20,
18,
21,
14,
350,
3321,
13,
277,
3321,
33,
17892,
63,
25,
65,
225,
309,
277,
3321,
480,
277,
3321,
20,
30,
21821,
468,
3244,
3647,
1534,
2205,
277,
3321,
20,
33,
291,
557,
268,
33,
957,
18,
701,
9982,
29909,
61,
738,
70,
738,
72,
64,
82,
9,
44,
5319,
49,
5319,
55,
2187,
17892,
13,
15045,
18,
75,
832,
22,
18,
17892,
712,
33,
88,
10531,
2138,
65,
328,
712,
18,
14895,
12,
955,
33,
88,
13,
1365,
67,
10049,
33,
3085,
18,
14330,
1435,
775,
30,
18829,
67,
10049,
33,
25709,
18,
14330,
1435,
1335,
30,
1342,
5218,
343,
4390,
33,
17892,
63,
23,
3737,
17892,
63,
24,
18537,
4848,
18,
20,
397,
9439,
63,
25,
18537,
5718,
713,
18,
20,
290,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
33,
12719,
18,
1561,
4413,
20,
12,
521,
702,
18,
12062,
6313,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
13332,
2552,
1365,
67,
10049,
16,
291,
557,
20,
16,
82,
1561,
16,
3084,
16,
4880,
81,
1449,
16,
82,
2883,
81,
16,
82,
15224,
1561,
16,
82,
15224,
378,
11214,
16,
82,
3190,
16,
521,
709,
16,
84,
381,
16,
22738,
20,
16,
291,
1209,
16,
291,
1209,
67,
5688,
16,
350,
3321,
16,
3645,
16,
305,
355,
16,
978,
8134,
86,
1966,
16,
978,
26,
2390,
17211,
18829,
67,
10049,
225,
9439,
33,
957,
18,
75,
10838,
12,
957,
18,
957,
1435,
15,
20,
18,
21,
14,
350,
3321,
13,
277,
3321,
33,
17892,
63,
25,
65,
225,
309,
277,
3321,
480,
277,
3321,
20,
30,
21821,
468,
3244,
3647,
1534,
2205,
277,
3321,
20,
2
] |
|
print '<input type="text" name="q" value="%s" />' % cgi.escape(query)
|
print '<input type="text" name="q" value="%s" />' % cgi.escape(query, True)
|
def print_search_results(query): print "Content-Type: text/html; charset=UTF-8" print print HEADER print "<h1>IRC log search results for %s</h1>" % cgi.escape(query) print '<form action="" method="get">' print '<input type="text" name="q" value="%s" />' % cgi.escape(query) print '<input type="submit" />' print '</form>' started = time.time() date = None prev_result = None formatter = SearchResultFormatter() stats = SearchStats() for result in search_irc_logs(query, stats): if date != result.date: if prev_result: formatter.print_suffix() prev_result = None if date: print " </li>" else: print '<ul class="searchresults">' print ' <li><a href="%s">%s</a>:' % (urlescape(result.link), result.date.strftime('%Y-%m-%d (%A)')) date = result.date if not prev_result: formatter.print_prefix() formatter.print_html(result) prev_result = result if prev_result: formatter.print_suffix() if date: print " </li>" print "</ul>" total_time = time.time() - started print "<p>%d matches in %d log files with %d lines (%.1f seconds).</p>" % ( stats.matches, stats.files, stats.lines, total_time) print FOOTER
|
8eee9dd68cdcc1ff59c50b5acb93ff4343d34830 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9464/8eee9dd68cdcc1ff59c50b5acb93ff4343d34830/irclogsearch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3072,
67,
4717,
12,
2271,
4672,
1172,
315,
1350,
17,
559,
30,
977,
19,
2620,
31,
4856,
33,
5159,
17,
28,
6,
1172,
1172,
11659,
1172,
3532,
76,
21,
34,
30240,
613,
1623,
1686,
364,
738,
87,
1757,
76,
21,
2984,
738,
276,
10052,
18,
6939,
12,
2271,
13,
1172,
2368,
687,
1301,
1546,
6,
707,
1546,
588,
7918,
1172,
2368,
2630,
618,
1546,
955,
6,
508,
1546,
85,
6,
460,
11613,
87,
6,
13452,
738,
276,
10052,
18,
6939,
12,
2271,
16,
1053,
13,
1172,
2368,
2630,
618,
1546,
9297,
6,
13452,
1172,
4357,
687,
1870,
5746,
273,
813,
18,
957,
1435,
1509,
273,
599,
2807,
67,
2088,
273,
599,
4453,
273,
29740,
5074,
1435,
3177,
273,
5167,
4195,
1435,
364,
563,
316,
1623,
67,
481,
71,
67,
10011,
12,
2271,
16,
3177,
4672,
309,
1509,
480,
563,
18,
712,
30,
309,
2807,
67,
2088,
30,
4453,
18,
1188,
67,
8477,
1435,
2807,
67,
2088,
273,
599,
309,
1509,
30,
1172,
315,
225,
7765,
549,
2984,
469,
30,
1172,
2368,
332,
667,
1546,
3072,
4717,
7918,
1172,
296,
225,
411,
549,
4438,
69,
3897,
11613,
87,
24038,
87,
1757,
69,
34,
2497,
738,
261,
718,
6939,
12,
2088,
18,
1232,
3631,
563,
18,
712,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
6142,
37,
2506,
3719,
1509,
273,
563,
18,
712,
309,
486,
2807,
67,
2088,
30,
4453,
18,
1188,
67,
3239,
1435,
4453,
18,
1188,
67,
2620,
12,
2088,
13,
2807,
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,
67,
3072,
67,
4717,
12,
2271,
4672,
1172,
315,
1350,
17,
559,
30,
977,
19,
2620,
31,
4856,
33,
5159,
17,
28,
6,
1172,
1172,
11659,
1172,
3532,
76,
21,
34,
30240,
613,
1623,
1686,
364,
738,
87,
1757,
76,
21,
2984,
738,
276,
10052,
18,
6939,
12,
2271,
13,
1172,
2368,
687,
1301,
1546,
6,
707,
1546,
588,
7918,
1172,
2368,
2630,
618,
1546,
955,
6,
508,
1546,
85,
6,
460,
11613,
87,
6,
13452,
738,
276,
10052,
18,
6939,
12,
2271,
16,
1053,
13,
1172,
2368,
2630,
618,
1546,
9297,
6,
13452,
1172,
4357,
687,
1870,
5746,
273,
813,
18,
957,
1435,
1509,
273,
599,
2807,
67,
2088,
273,
599,
4453,
273,
29740,
5074,
1435,
2
] |
s1 = os.stat(path) s2 = os.stat(join(path, '..'))
|
s1 = os.lstat(path) s2 = os.lstat(join(path, '..'))
|
def ismount(path): """Test whether a path is a mount point""" try: s1 = os.stat(path) s2 = os.stat(join(path, '..')) except os.error: return False # It doesn't exist -- so not a mount point :-) dev1 = s1.st_dev dev2 = s2.st_dev if dev1 != dev2: return True # path/.. on a different device as path ino1 = s1.st_ino ino2 = s2.st_ino if ino1 == ino2: return True # path/.. is the same i-node as path return False
|
4bdc03affec8289656b9b6e917518fdb24904f28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/4bdc03affec8289656b9b6e917518fdb24904f28/posixpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
4778,
12,
803,
4672,
3536,
4709,
2856,
279,
589,
353,
279,
5344,
1634,
8395,
775,
30,
272,
21,
273,
1140,
18,
80,
5642,
12,
803,
13,
272,
22,
273,
1140,
18,
80,
5642,
12,
5701,
12,
803,
16,
13222,
3719,
1335,
1140,
18,
1636,
30,
327,
1083,
468,
2597,
3302,
1404,
1005,
1493,
1427,
486,
279,
5344,
1634,
294,
17,
13,
4461,
21,
273,
272,
21,
18,
334,
67,
5206,
4461,
22,
273,
272,
22,
18,
334,
67,
5206,
309,
4461,
21,
480,
4461,
22,
30,
327,
1053,
377,
468,
589,
19,
838,
603,
279,
3775,
2346,
487,
589,
316,
83,
21,
273,
272,
21,
18,
334,
67,
15020,
316,
83,
22,
273,
272,
22,
18,
334,
67,
15020,
309,
316,
83,
21,
422,
316,
83,
22,
30,
327,
1053,
377,
468,
589,
19,
838,
353,
326,
1967,
277,
17,
2159,
487,
589,
327,
1083,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
4778,
12,
803,
4672,
3536,
4709,
2856,
279,
589,
353,
279,
5344,
1634,
8395,
775,
30,
272,
21,
273,
1140,
18,
80,
5642,
12,
803,
13,
272,
22,
273,
1140,
18,
80,
5642,
12,
5701,
12,
803,
16,
13222,
3719,
1335,
1140,
18,
1636,
30,
327,
1083,
468,
2597,
3302,
1404,
1005,
1493,
1427,
486,
279,
5344,
1634,
294,
17,
13,
4461,
21,
273,
272,
21,
18,
334,
67,
5206,
4461,
22,
273,
272,
22,
18,
334,
67,
5206,
309,
4461,
21,
480,
4461,
22,
30,
327,
1053,
377,
468,
589,
19,
838,
603,
279,
3775,
2346,
487,
589,
316,
83,
21,
273,
272,
21,
18,
334,
67,
15020,
316,
83,
22,
273,
272,
22,
18,
334,
2
] |
body = 'Error: %s (%s)' % (e.status, e.message)
|
message, explain = self.responses[e.status] body = self.error_message_format % {'code': e.status, 'message': message, 'explain': explain}
|
def process_http_error(self, e): """ create the response body and headers for errors """ headers = {'Content-Type': 'text/plain'} # XXX need more headers here? if e.status in [301, 302]: headers['Location'] = e.data body = 'Redirecting to %s' % (e.data,) else: body = 'Error: %s (%s)' % (e.status, e.message) return headers, body
|
301885034139549c7a082896c774021611ea2008 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/301885034139549c7a082896c774021611ea2008/server.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2505,
67,
1636,
12,
2890,
16,
425,
4672,
3536,
752,
326,
766,
1417,
471,
1607,
364,
1334,
3536,
1607,
273,
13666,
1350,
17,
559,
4278,
296,
955,
19,
7446,
11,
97,
468,
11329,
1608,
1898,
1607,
2674,
35,
309,
425,
18,
2327,
316,
306,
31831,
16,
22072,
14542,
1607,
3292,
2735,
3546,
273,
425,
18,
892,
1417,
273,
296,
5961,
310,
358,
738,
87,
11,
738,
261,
73,
18,
892,
16,
13,
469,
30,
883,
16,
19765,
273,
365,
18,
11822,
63,
73,
18,
2327,
65,
1417,
273,
365,
18,
1636,
67,
2150,
67,
2139,
738,
13666,
710,
4278,
425,
18,
2327,
16,
296,
2150,
4278,
883,
16,
296,
338,
7446,
4278,
19765,
97,
327,
1607,
16,
1417,
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,
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0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2505,
67,
1636,
12,
2890,
16,
425,
4672,
3536,
752,
326,
766,
1417,
471,
1607,
364,
1334,
3536,
1607,
273,
13666,
1350,
17,
559,
4278,
296,
955,
19,
7446,
11,
97,
468,
11329,
1608,
1898,
1607,
2674,
35,
309,
425,
18,
2327,
316,
306,
31831,
16,
22072,
14542,
1607,
3292,
2735,
3546,
273,
425,
18,
892,
1417,
273,
296,
5961,
310,
358,
738,
87,
11,
738,
261,
73,
18,
892,
16,
13,
469,
30,
883,
16,
19765,
273,
365,
18,
11822,
63,
73,
18,
2327,
65,
1417,
273,
365,
18,
1636,
67,
2150,
67,
2139,
738,
13666,
710,
4278,
425,
18,
2327,
16,
296,
2150,
4278,
883,
16,
296,
338,
7446,
4278,
19765,
97,
327,
1607,
2
] |
print repr(str(err))
|
# def __getstate__(self):
|
98b922c0eca3f56f5fe1f1ed2c8337fbdb63618d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/98b922c0eca3f56f5fe1f1ed2c8337fbdb63618d/pickle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4202,
1652,
1001,
588,
2019,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4202,
1652,
1001,
588,
2019,
972,
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
] |
|
self.__devtype = t
|
def connect_debug(self, inp, outp): self.__devtype = t self.__shakedev = pyshake.init_device_debug(inp, outp, self.__devtype) if self.__shakedev == -1: self.__lasterror = "Failed to connect" return False
|
e15579dc1c7b77bb234f07a30e67f77d41f4f3d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4761/e15579dc1c7b77bb234f07a30e67f77d41f4f3d6/shake.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
67,
4148,
12,
2890,
16,
12789,
16,
596,
84,
4672,
365,
16186,
7478,
5206,
273,
2395,
7478,
18,
2738,
67,
5964,
67,
4148,
12,
31647,
16,
596,
84,
16,
365,
16186,
5206,
723,
13,
309,
365,
16186,
7478,
5206,
422,
300,
21,
30,
365,
16186,
2722,
1636,
273,
315,
2925,
358,
3077,
6,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
67,
4148,
12,
2890,
16,
12789,
16,
596,
84,
4672,
365,
16186,
7478,
5206,
273,
2395,
7478,
18,
2738,
67,
5964,
67,
4148,
12,
31647,
16,
596,
84,
16,
365,
16186,
5206,
723,
13,
309,
365,
16186,
7478,
5206,
422,
300,
21,
30,
365,
16186,
2722,
1636,
273,
315,
2925,
358,
3077,
6,
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
] |
|
self.points=[]
|
self.points=points
|
def __init__(self,points): self.points=[]
|
51a976074427823908816e97be8bc6413eea731a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9336/51a976074427823908816e97be8bc6413eea731a/nef.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4139,
4672,
365,
18,
4139,
33,
4139,
225,
2,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4139,
4672,
365,
18,
4139,
33,
4139,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if error not in errors: error = None error = error and errors[error]
|
if error is not None: if error in errors: error = errors[error]
|
def __tuneFailed(self): service = self.session.nav.getCurrentService() info = service and service.info() error = info and info.getInfo(iServiceInformation.sDVBState) if error == self.last_error: error = None else: self.last_error = error
|
3f35474ab204e99bf710724d949ac29b7d2029d7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/3f35474ab204e99bf710724d949ac29b7d2029d7/InfoBarGenerics.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
88,
7556,
2925,
12,
2890,
4672,
1156,
273,
365,
18,
3184,
18,
11589,
18,
588,
3935,
1179,
1435,
1123,
273,
1156,
471,
1156,
18,
1376,
1435,
555,
273,
1123,
471,
1123,
18,
588,
966,
12,
77,
1179,
5369,
18,
87,
30199,
38,
1119,
13,
225,
309,
555,
422,
365,
18,
2722,
67,
1636,
30,
555,
273,
599,
469,
30,
365,
18,
2722,
67,
1636,
273,
555,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
88,
7556,
2925,
12,
2890,
4672,
1156,
273,
365,
18,
3184,
18,
11589,
18,
588,
3935,
1179,
1435,
1123,
273,
1156,
471,
1156,
18,
1376,
1435,
555,
273,
1123,
471,
1123,
18,
588,
966,
12,
77,
1179,
5369,
18,
87,
30199,
38,
1119,
13,
225,
309,
555,
422,
365,
18,
2722,
67,
1636,
30,
555,
273,
599,
469,
30,
365,
18,
2722,
67,
1636,
273,
555,
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
] |
host, port, url = _parse(l[0]) self.factory.host = host
|
host, port, url = _parse(l[0], defaultPort=self.transport.addr[1]) if host: self.factory.host = host self.factory.port = port
|
def handleStatus_301(self): l = self.headers.get('location') if not l: self.handleStatusDefault() host, port, url = _parse(l[0]) self.factory.host = host self.factory.url = url
|
035a42131cb602f6c1f9b215473faaa892bf3919 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/035a42131cb602f6c1f9b215473faaa892bf3919/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1482,
67,
31831,
12,
2890,
4672,
328,
273,
365,
18,
2485,
18,
588,
2668,
3562,
6134,
309,
486,
328,
30,
365,
18,
4110,
1482,
1868,
1435,
1479,
16,
1756,
16,
880,
273,
389,
2670,
12,
80,
63,
20,
6487,
805,
2617,
33,
2890,
18,
13049,
18,
4793,
63,
21,
5717,
225,
309,
1479,
30,
365,
18,
6848,
18,
2564,
273,
1479,
365,
18,
6848,
18,
655,
273,
1756,
365,
18,
6848,
18,
718,
273,
880,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
486,
328,
30,
365,
18,
4110,
1482,
1868,
1435,
1479,
16,
1756,
16,
880,
273,
389,
2670,
12,
80,
63,
20,
6487,
805,
2617,
33,
2890,
18,
13049,
18,
4793,
63,
21,
5717,
225,
309,
1479,
30,
365,
18,
6848,
18,
2564,
273,
1479,
365,
18,
6848,
18,
655,
273,
1756,
365,
18,
6848,
18,
718,
273,
880,
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
] |
OBJFILES.append("pnmtext_config_pnmtext.obj") OBJFILES.append("pnmtext_freetypeFont.obj") OBJFILES.append("pnmtext_pnmTextGlyph.obj") OBJFILES.append("pnmtext_pnmTextMaker.obj")
|
OBJFILES.append("pnmtext_composite.obj")
|
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
|
bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
rsp = self.apiGet("reviewrequests/%s/delete" % review_request_id)
|
rsp = self.apiGet("reviewrequests/%s/delete" % review_request_id, expected_status=403)
|
def testReviewRequestDeletePermissionDenied(self): """Testing the reviewrequests/delete API with Permission Denied error""" review_request_id = \ ReviewRequest.objects.exclude(submitter=self.user)[0].id rsp = self.apiGet("reviewrequests/%s/delete" % review_request_id) self.assertEqual(rsp['stat'], 'fail') self.assertEqual(rsp['err']['code'], webapi.PERMISSION_DENIED.code)
|
21b56ac1dbc418157976dcd64bb81c1d6995a975 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/21b56ac1dbc418157976dcd64bb81c1d6995a975/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
9159,
691,
2613,
5041,
10410,
12,
2890,
4672,
3536,
22218,
326,
10725,
11420,
19,
3733,
1491,
598,
8509,
22453,
2092,
555,
8395,
10725,
67,
2293,
67,
350,
273,
521,
21354,
691,
18,
6911,
18,
10157,
12,
9297,
387,
33,
2890,
18,
1355,
25146,
20,
8009,
350,
12049,
273,
365,
18,
2425,
967,
2932,
16041,
11420,
5258,
87,
19,
3733,
6,
738,
10725,
67,
2293,
67,
350,
16,
2665,
67,
2327,
33,
24,
4630,
13,
365,
18,
11231,
5812,
12,
86,
1752,
3292,
5642,
17337,
296,
6870,
6134,
365,
18,
11231,
5812,
12,
86,
1752,
3292,
370,
21712,
710,
17337,
3311,
2425,
18,
23330,
67,
13296,
29229,
18,
710,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
9159,
691,
2613,
5041,
10410,
12,
2890,
4672,
3536,
22218,
326,
10725,
11420,
19,
3733,
1491,
598,
8509,
22453,
2092,
555,
8395,
10725,
67,
2293,
67,
350,
273,
521,
21354,
691,
18,
6911,
18,
10157,
12,
9297,
387,
33,
2890,
18,
1355,
25146,
20,
8009,
350,
12049,
273,
365,
18,
2425,
967,
2932,
16041,
11420,
5258,
87,
19,
3733,
6,
738,
10725,
67,
2293,
67,
350,
16,
2665,
67,
2327,
33,
24,
4630,
13,
365,
18,
11231,
5812,
12,
86,
1752,
3292,
5642,
17337,
296,
6870,
6134,
365,
18,
11231,
5812,
12,
86,
1752,
3292,
370,
21712,
710,
17337,
3311,
2425,
18,
23330,
67,
13296,
29229,
18,
710,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
highlight_task_added[0] = False
|
def highlight_matching_brackets(buf): """:type buf: gtk.TextBuffer()""" highlight_task_added[0] = False iter = buf.get_iter_at_mark(buf.get_insert()) char = iter.get_char() piter = iter.copy() if piter.backward_cursor_position(): pchar = piter.get_char() else: pchar = '' lbr = rbr = None if char in brackets: rbr, rd = brackets[char] if pchar in brackets: lbr, ld = brackets[pchar] reset_tags(buf) if not lbr and not rbr: return if lbr == char: return if lbr: mark_brackets(buf, piter, find_bracket(piter, lbr, pchar, ld)) if rbr: mark_brackets(buf, iter, find_bracket(iter, rbr, char, rd))
|
35e448db7703eee0de8e05b40f59e7c792954021 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/35e448db7703eee0de8e05b40f59e7c792954021/bracket_matcher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
67,
16271,
67,
21025,
87,
12,
4385,
4672,
3536,
30,
723,
1681,
30,
22718,
18,
1528,
1892,
1435,
8395,
1400,
273,
1681,
18,
588,
67,
2165,
67,
270,
67,
3355,
12,
4385,
18,
588,
67,
6387,
10756,
1149,
273,
1400,
18,
588,
67,
3001,
1435,
293,
2165,
273,
1400,
18,
3530,
1435,
309,
293,
2165,
18,
29275,
67,
9216,
67,
3276,
13332,
293,
3001,
273,
293,
2165,
18,
588,
67,
3001,
1435,
469,
30,
293,
3001,
273,
875,
225,
328,
2848,
273,
436,
2848,
273,
599,
309,
1149,
316,
15597,
30,
436,
2848,
16,
9437,
273,
15597,
63,
3001,
65,
225,
309,
293,
3001,
316,
15597,
30,
328,
2848,
16,
16916,
273,
15597,
63,
84,
3001,
65,
225,
2715,
67,
4156,
12,
4385,
13,
225,
309,
486,
328,
2848,
471,
486,
436,
2848,
30,
327,
225,
309,
328,
2848,
422,
1149,
30,
327,
225,
309,
328,
2848,
30,
2267,
67,
21025,
87,
12,
4385,
16,
293,
2165,
16,
1104,
67,
21025,
12,
84,
2165,
16,
328,
2848,
16,
293,
3001,
16,
16916,
3719,
225,
309,
436,
2848,
30,
2267,
67,
21025,
87,
12,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,
12,
4385,
4672,
3536,
30,
723,
1681,
30,
22718,
18,
1528,
1892,
1435,
8395,
1400,
273,
1681,
18,
588,
67,
2165,
67,
270,
67,
3355,
12,
4385,
18,
588,
67,
6387,
10756,
1149,
273,
1400,
18,
588,
67,
3001,
1435,
293,
2165,
273,
1400,
18,
3530,
1435,
309,
293,
2165,
18,
29275,
67,
9216,
67,
3276,
13332,
293,
3001,
273,
293,
2165,
18,
588,
67,
3001,
1435,
469,
30,
293,
3001,
273,
875,
225,
328,
2848,
273,
436,
2848,
273,
599,
309,
1149,
316,
15597,
30,
436,
2848,
16,
9437,
273,
15597,
63,
3001,
65,
225,
309,
293,
3001,
316,
15597,
30,
328,
2848,
16,
16916,
273,
15597,
63,
84,
3001,
65,
2
] |
|
source_logger.debug("Potentials obtained. Setting a and making results array...")
|
def calculatesource(m, nix, integrand_elements, srcfunc=slowrollsrcterm): """Return the integrated source term at this timestep. Given the first order model and the timestep calculate the integrated source term at this time step. Parameters ---------- m: Cosmomodels.TwoStageModel First order model to be used. nix: int Index of current timestep in m.tresult integrand_elements: tuple Contains integrand arrays in order integrand_elements = (k, q, theta, klessq) srcfunc: function, optional Funtion which contains expression for source integrand Default is slowrollsrcterm in this module. Returns ------- s: array_like Integrated source term calculated using srcfunc. """ #Unpack important arrays k, q, theta, klessq = integrand_elements #Copy of yresult myr = m.yresult[nix].copy() #Fill nans with initial conditions if N.any(m.tresult[nix] < m.fotstart): #Get first order ICs: nanfiller = m.getfoystart(m.tresult[nix].copy(), N.array([nix])) source_logger.debug("Left getfoystart. Filling nans...") #switch nans for ICs in m.yresult are_nan = N.isnan(myr) myr[are_nan] = nanfiller[are_nan] source_logger.debug("NaNs filled. Setting dynamical variables...") #Get first order results bgvars = myr[0:3,:] dphi1 = myr[3,:] + myr[4,:]*1j dphi1dot = myr[5,:] + myr[6,:]*1j #Setup interpolation dp1func = interpolate.interp1d(m.k, dphi1) dp1dotfunc = interpolate.interp1d(m.k, dphi1dot) source_logger.debug("Variables set. Getting potentials for this timestep...") potentials = list(m.potentials(myr)) #Get potentials in right shape for pix, p in enumerate(potentials): if N.shape(p) != N.shape(potentials[0]): potentials[pix] = p*N.ones_like(potentials[0]) source_logger.debug("Potentials obtained. Setting a and making results array...") #Value of a for this time step a = m.ainit*N.exp(m.tresult[nix]) source_logger.debug("Calculating source term integrand for this tstep...") #Get unintegrated source term src_integrand = srcfunc(bgvars, a, potentials, integrand_elements, dp1func, dp1dotfunc) #Get integration function source_logger.debug("Integrating source term...") theta_intfn, theta_intfnargs = helpers.getintfunc(theta[0,0,:]) q_intfn, q_intfnargs = helpers.getintfunc(q[0,:,0]) #Do integrations s2=theta_intfn(src_integrand, **theta_intfnargs, axis=-1) #Do theta integration s3=q_intfn(s2, **q_intfnargs, axis=-1) #Do q integration source_logger.debug("Integration successful!") return s3
|
00e7f5b227f584d49b159a99fc18e3ff37916fe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/00e7f5b227f584d49b159a99fc18e3ff37916fe3/sosource.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17264,
552,
12,
81,
16,
290,
697,
16,
5780,
7884,
67,
6274,
16,
1705,
644,
33,
87,
821,
2693,
11254,
299,
1035,
4672,
3536,
990,
326,
31121,
1084,
2481,
622,
333,
27072,
18,
225,
16803,
326,
1122,
1353,
938,
471,
326,
27072,
4604,
326,
31121,
1084,
2481,
622,
333,
813,
2235,
18,
225,
7012,
12181,
312,
30,
385,
538,
81,
362,
1009,
87,
18,
11710,
8755,
1488,
5783,
1353,
938,
358,
506,
1399,
18,
225,
290,
697,
30,
509,
3340,
434,
783,
27072,
316,
312,
18,
88,
2088,
225,
5780,
7884,
67,
6274,
30,
3193,
8398,
5780,
7884,
5352,
316,
1353,
5780,
7884,
67,
6274,
273,
261,
79,
16,
1043,
16,
7338,
16,
417,
2656,
85,
13,
225,
1705,
644,
30,
445,
16,
3129,
478,
10032,
285,
1492,
1914,
2652,
364,
1084,
5780,
7884,
2989,
353,
11816,
2693,
11254,
299,
1035,
316,
333,
1605,
18,
225,
2860,
18365,
272,
30,
526,
67,
5625,
15285,
690,
1084,
2481,
8894,
1450,
1705,
644,
18,
3536,
468,
23649,
10802,
5352,
417,
16,
1043,
16,
7338,
16,
417,
2656,
85,
273,
5780,
7884,
67,
6274,
225,
468,
2951,
434,
677,
2088,
3399,
86,
273,
312,
18,
93,
2088,
63,
82,
697,
8009,
3530,
1435,
468,
8026,
290,
634,
598,
2172,
4636,
309,
423,
18,
2273,
12,
81,
18,
88,
2088,
63,
82,
697,
65,
411,
312,
18,
74,
352,
1937,
4672,
468,
967,
1122,
1353,
467,
14272,
30,
6468,
5935,
264,
273,
312,
18,
588,
617,
1094,
485,
12,
81,
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,
17264,
552,
12,
81,
16,
290,
697,
16,
5780,
7884,
67,
6274,
16,
1705,
644,
33,
87,
821,
2693,
11254,
299,
1035,
4672,
3536,
990,
326,
31121,
1084,
2481,
622,
333,
27072,
18,
225,
16803,
326,
1122,
1353,
938,
471,
326,
27072,
4604,
326,
31121,
1084,
2481,
622,
333,
813,
2235,
18,
225,
7012,
12181,
312,
30,
385,
538,
81,
362,
1009,
87,
18,
11710,
8755,
1488,
5783,
1353,
938,
358,
506,
1399,
18,
225,
290,
697,
30,
509,
3340,
434,
783,
27072,
316,
312,
18,
88,
2088,
225,
5780,
7884,
67,
6274,
30,
3193,
8398,
5780,
7884,
5352,
316,
1353,
5780,
7884,
67,
6274,
273,
261,
79,
16,
1043,
16,
7338,
16,
417,
2656,
85,
13,
225,
2
] |
|
self.testdata = orange.Filter_hasClassValue(data) self.testDataBtn.setEnabled(self.testdata <> None) if self.testdata:
|
if data is None: self.testdata = None else: self.testdata = orange.Filter_hasClassValue(data) self.testDataBtn.setEnabled(self.testdata is not None) if self.testdata is not None:
|
def setTestData(self, data): """handle test data set""" self.testdata = orange.Filter_hasClassValue(data) self.testDataBtn.setEnabled(self.testdata <> None) if self.testdata: if self.resampling == 4: if self.data: self.score([l.id for l in self.learners.values()]) else: for l in self.learners.values(): l.scores = [] self.paintscores() elif self.resampling == 4 and self.data: # test data removed, switch to testing on train data self.resampling = 3 self.recompute()
|
636bdb2b8502f34d9e2645a133fcf8685bf39218 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/636bdb2b8502f34d9e2645a133fcf8685bf39218/OWTestLearners.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4709,
751,
12,
2890,
16,
501,
4672,
3536,
4110,
1842,
501,
444,
8395,
309,
501,
353,
599,
30,
365,
18,
3813,
892,
273,
599,
469,
30,
365,
18,
3813,
892,
273,
578,
726,
18,
1586,
67,
5332,
797,
620,
12,
892,
13,
365,
18,
3813,
751,
20541,
18,
542,
1526,
12,
2890,
18,
3813,
892,
353,
486,
599,
13,
309,
365,
18,
3813,
892,
353,
486,
599,
30,
309,
365,
18,
455,
7639,
422,
1059,
30,
309,
365,
18,
892,
30,
365,
18,
6355,
3816,
80,
18,
350,
364,
328,
316,
365,
18,
21346,
414,
18,
2372,
1435,
5717,
469,
30,
364,
328,
316,
365,
18,
21346,
414,
18,
2372,
13332,
328,
18,
12630,
273,
5378,
365,
18,
84,
1598,
12630,
1435,
1327,
365,
18,
455,
7639,
422,
1059,
471,
365,
18,
892,
30,
468,
1842,
501,
3723,
16,
1620,
358,
7769,
603,
4691,
501,
365,
18,
455,
7639,
273,
890,
365,
18,
266,
9200,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4709,
751,
12,
2890,
16,
501,
4672,
3536,
4110,
1842,
501,
444,
8395,
309,
501,
353,
599,
30,
365,
18,
3813,
892,
273,
599,
469,
30,
365,
18,
3813,
892,
273,
578,
726,
18,
1586,
67,
5332,
797,
620,
12,
892,
13,
365,
18,
3813,
751,
20541,
18,
542,
1526,
12,
2890,
18,
3813,
892,
353,
486,
599,
13,
309,
365,
18,
3813,
892,
353,
486,
599,
30,
309,
365,
18,
455,
7639,
422,
1059,
30,
309,
365,
18,
892,
30,
365,
18,
6355,
3816,
80,
18,
350,
364,
328,
316,
365,
18,
21346,
414,
18,
2372,
1435,
5717,
469,
30,
364,
328,
316,
365,
18,
21346,
414,
18,
2372,
13332,
328,
18,
12630,
273,
5378,
365,
2
] |
def OnGoToURI(self, notification): wxTreeWindow = Globals.association[self.getUUID()] wxTreeWindow.GoToURI(notification.data['URI'])
|
def NeedsUpdate(self, notification): return True
|
def OnGoToURI(self, notification): wxTreeWindow = Globals.association[self.getUUID()] wxTreeWindow.GoToURI(notification.data['URI'])
|
9287e63e372ccc5efb65d33b97dc49a8f000ba71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9287e63e372ccc5efb65d33b97dc49a8f000ba71/blocks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
5741,
774,
3098,
12,
2890,
16,
3851,
4672,
7075,
2471,
3829,
273,
18901,
1031,
18,
19358,
63,
2890,
18,
588,
5562,
1435,
65,
7075,
2471,
3829,
18,
5741,
774,
3098,
12,
9927,
18,
892,
3292,
3098,
19486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
5741,
774,
3098,
12,
2890,
16,
3851,
4672,
7075,
2471,
3829,
273,
18901,
1031,
18,
19358,
63,
2890,
18,
588,
5562,
1435,
65,
7075,
2471,
3829,
18,
5741,
774,
3098,
12,
9927,
18,
892,
3292,
3098,
19486,
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
] |
regVOs = GetListOfAllRegisteredVO(range_begin,range_end)
|
regVOs = GetListOfRegisteredVO('Active',range_begin,range_end)
|
def RangeSummup(range_end = datetime.date.today(), range_begin = None, output = "text", header = True): if not range_end: if not range_begin: range_end = datetime.date.today() else: range_end = range_begin + datetime.timedelta(days=+1) if not range_begin: range_begin = range_end + datetime.timedelta(days=-1)
|
33a4ca44cb79fb58546a509056a7bff882a73c25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/33a4ca44cb79fb58546a509056a7bff882a73c25/AccountingReports.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8086,
3495,
81,
416,
12,
3676,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
3113,
1446,
273,
1053,
4672,
225,
309,
486,
1048,
67,
409,
30,
309,
486,
1048,
67,
10086,
30,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
1435,
469,
30,
1048,
67,
409,
273,
1048,
67,
10086,
397,
3314,
18,
31295,
12,
9810,
33,
15,
21,
13,
309,
486,
1048,
67,
10086,
30,
1048,
67,
10086,
273,
1048,
67,
409,
397,
3314,
18,
31295,
12,
9810,
29711,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8086,
3495,
81,
416,
12,
3676,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
3113,
1446,
273,
1053,
4672,
225,
309,
486,
1048,
67,
409,
30,
309,
486,
1048,
67,
10086,
30,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
1435,
469,
30,
1048,
67,
409,
273,
1048,
67,
10086,
397,
3314,
18,
31295,
12,
9810,
33,
15,
21,
13,
309,
486,
1048,
67,
10086,
30,
1048,
67,
10086,
273,
1048,
67,
409,
397,
3314,
18,
31295,
12,
9810,
29711,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
player.move(event.key) elif (((event.key == K_SPACE) or (event.key == K_f)) and (not player.special)):
|
player.move(event.key) elif (((event.key == K_f)) and (not player.special)):
|
def main(): pygame.init() size = width, height = 640, 480 screen = pygame.display.set_mode(size) attack = (pygame.image.load('images/player2_attack0.gif').convert() , pygame.image.load('images/player2_attack1.gif').convert() , pygame.image.load('images/player2_attack2.gif').convert() , pygame.image.load('images/player2_attack3.gif').convert() , pygame.image.load('images/player2_attack4.gif').convert() , pygame.image.load('images/player2_attack5.gif').convert() , pygame.image.load('images/player2_attack6.gif').convert()) defend = (pygame.image.load('images/player2_defend0.gif').convert() , pygame.image.load('images/player2_defend1.gif').convert() , pygame.image.load('images/player2_defend2.gif').convert() , pygame.image.load('images/player2_defend3.gif').convert() , pygame.image.load('images/player2_defend4.gif').convert() , pygame.image.load('images/player2_defend5.gif').convert()) fire = (pygame.image.load('images/player2_fire0.gif').convert() , pygame.image.load('images/player2_fire1.gif').convert() , pygame.image.load('images/player2_fire1.gif').convert()) ms = (pygame.image.load('images/player2_ms0.gif').convert() , pygame.image.load('images/player2_ms1.gif').convert() , pygame.image.load('images/player2_ms2.gif').convert() , pygame.image.load('images/player2_ms3.gif').convert() , pygame.image.load('images/player2_ms4.gif').convert() , pygame.image.load('images/player2_ms5.gif').convert() , pygame.image.load('images/player2_ms6.gif').convert() , pygame.image.load('images/player2_ms7.gif').convert() , pygame.image.load('images/player2_ms8.gif').convert()) background = pygame.image.load('images/background.bmp').convert() fireball = pygame.image.load('images/fireball.gif').convert() player = Player(pygame.image.load('images/player2.gif').convert(), defend , attack , fire, fireball, ms, size) del attack del defend del fire del ms offset = 0 current_lr = current_ud = "fubar" fireballs = [] while 1: for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() elif event.type == pygame.KEYDOWN: if (event.key == K_LEFT) or (event.key == K_RIGHT): current_lr = event.key player.move(event.key) elif (event.key == K_UP) or (event.key == K_DOWN): current_ud = event.key player.move(event.key) elif (((event.key == K_SPACE) or (event.key == K_f)) and (not player.special)): if player.mana > 19: player.fire(True) else: pass elif ((event.key == K_d) and (not player.special)): player.defend(True) elif ((event.key == K_a) and (not player.special)): player.attack(True) elif ((event.key == K_s) and (not player.special)): player.magic_shield(True) elif event.type == pygame.KEYUP: if(((event.key == K_LEFT) or (event.key == K_RIGHT)) and (current_lr == event.key)): player.stop_lr() elif(((event.key == K_UP) or (event.key == K_DOWN)) and (current_ud == event.key)): player.stop_ud() elif event.type == pygame.USEREVENT + 1: if not player.unattacking: player.attack(True) else: player.attack(False) elif event.type == pygame.USEREVENT + 2: if not player.undefending: player.defend(True) else: player.defend(False) elif event.type == pygame.USEREVENT + 3: if not player.firing: player.fire(False) elif player.firetime == 2: fireballs.append(player.fire(True)) else: player.fire(True) elif event.type == pygame.USEREVENT + 4: if not player.unmsing: player.magic_shield(True) else: player.magic_shield(False) player.refresh() if (player.pos.right >= (width * 5) / 8): offset -= 2 player.pos.right = (width * 5) / 8 - 1 for fireball in fireballs: fireball.speed = [3, 0] else: for fireball in fireballs: fireball.speed = [5, 0] if -offset > width: offset = 0 screen.blit(background, (offset, 0)) screen.blit(background, (offset + width, 0)) if pygame.font: font = pygame.font.Font(None, 36) texthp = font.render("Health: %s" % player.health , 1, (255, 255, 255)) textmp = font.render("Mana: %s" % player.mana, 1, (255, 255, 255)) textposhp = [0, 0] textposmp = [0, 20] screen.blit(texthp, textposhp) screen.blit(textmp, textposmp) for fireball in fireballs: fireball.refresh() screen.blit(fireball.image, fireball.pos) screen.blit(player.image, player.pos) pygame.display.flip() pygame.time.delay(5)
|
7ca9ba2251c8c3cc85e0c128dad0524226902875 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4608/7ca9ba2251c8c3cc85e0c128dad0524226902875/basic.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2395,
13957,
18,
2738,
1435,
225,
963,
273,
1835,
16,
2072,
273,
5178,
20,
16,
1059,
3672,
5518,
273,
2395,
13957,
18,
5417,
18,
542,
67,
3188,
12,
1467,
13,
13843,
273,
261,
2074,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
20,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
21,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
22,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
23,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
24,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
25,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
26,
18,
13905,
16063,
6283,
10756,
1652,
409,
273,
261,
2074,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
536,
409,
20,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
536,
409,
21,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
536,
409,
22,
18,
13905,
16063,
6283,
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,
2395,
13957,
18,
2738,
1435,
225,
963,
273,
1835,
16,
2072,
273,
5178,
20,
16,
1059,
3672,
5518,
273,
2395,
13957,
18,
5417,
18,
542,
67,
3188,
12,
1467,
13,
13843,
273,
261,
2074,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
20,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
21,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
22,
18,
13905,
16063,
6283,
1435,
269,
2395,
13957,
18,
2730,
18,
945,
2668,
7369,
19,
14872,
22,
67,
4558,
484,
23,
18,
13905,
16063,
6283,
1435,
2
] |
from model.Line import Line
|
def _orient_for_modify(self, end1, end2): from model.Line import Line
|
c4a8d077f70d55111f7a19ce7efa485e92728f66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/c4a8d077f70d55111f7a19ce7efa485e92728f66/DnaDuplex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14766,
67,
1884,
67,
17042,
12,
2890,
16,
679,
21,
16,
679,
22,
4672,
628,
938,
18,
1670,
1930,
5377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
14766,
67,
1884,
67,
17042,
12,
2890,
16,
679,
21,
16,
679,
22,
4672,
628,
938,
18,
1670,
1930,
5377,
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
] |
|
def openPreferences( self ) : pass def openAbout( self ) : pass
|
def openPreferences( self ) : pass
|
8f2a6d91b6a947b937eb5fc3b937af3797e21ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8f2a6d91b6a947b937eb5fc3b937af3797e21ac3/MainWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12377,
12,
365,
262,
294,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1696,
12377,
12,
365,
262,
294,
1342,
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
] |
|
for node in boundary: graph.add_edge(node,extra)
|
for vertex in boundary: graph.add_edge(vertex,extra)
|
def is_circular_planar(self, ordered=True): """ Returns True if a graph with boundary is circular planar, and False otherwise. A graph (with nonempty boundary) is circular planar if it has a planar embedding in which all boundary nodes can be drawn in order on a disc boundary, with all the interior nodes drawn inside the disc. Note -- This function assumes that the graph has nonempty boundary. (Circular Planarity has no definition for graphs without boundary). -- The current version relies on computing the genus of a slightly modified graph so it is time-expensive and not reasonable to use for graphs with > 12 vertices. -- Also since the current version relies on computing the genus, it is necessary that the graph be connected in order to use Euler's formula. INPUT: ordered -- whether or not to consider the order of the boundary (set ordered=False to see if there is any possible boundary order that will satisfy circular planarity) EXAMPLES: sage: g439 = Graph({1:[5,7], 2:[5,6], 3:[6,7], 4:[5,6,7]}) sage: g439.set_boundary([1,2,3,4]) sage.: g439.show(figsize=[2,2], vertex_labels=True, vertex_size=175) sage: g439.is_circular_planar() False sage: g439.set_boundary([1,2,3]) sage: g439.is_circular_planar() True Order matters: sage: K23 = graphs.CompleteBipartiteGraph(2,3) sage: K23.set_boundary([0,1,2,3]) sage: K23.is_circular_planar() False sage: K23.set_boundary([0,2,1,3]) # Diff Order! sage: K23.is_circular_planar() True sage: K23.is_circular_planar(ordered=False) True """ if not self.is_connected(): raise TypeError("Graph must be connected to use Euler's Formula to compute minimal genus.") from sage.rings.infinity import Infinity from sage.combinat.all import CyclicPermutationsOfPartition from sage.graphs.graph_genus1 import trace_faces, nice_copy
|
e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
4672,
3536,
2860,
1053,
309,
279,
2667,
598,
7679,
353,
15302,
4995,
297,
16,
471,
1083,
3541,
18,
225,
432,
2667,
261,
1918,
1661,
5531,
7679,
13,
353,
15302,
4995,
297,
309,
518,
711,
279,
4995,
297,
15853,
316,
1492,
777,
7679,
2199,
848,
506,
19377,
316,
1353,
603,
279,
19169,
7679,
16,
598,
777,
326,
26230,
2199,
19377,
4832,
326,
19169,
18,
225,
3609,
1493,
1220,
445,
13041,
716,
326,
2667,
711,
1661,
5531,
7679,
18,
225,
261,
25858,
12540,
20498,
711,
1158,
2379,
364,
19422,
2887,
7679,
2934,
1493,
1021,
783,
1177,
14719,
281,
603,
20303,
326,
3157,
407,
434,
279,
21980,
4358,
2667,
1427,
518,
353,
813,
17,
2749,
14315,
471,
486,
23589,
358,
999,
364,
19422,
598,
405,
2593,
6928,
18,
1493,
8080,
3241,
326,
783,
1177,
14719,
281,
603,
20303,
326,
3157,
407,
16,
518,
353,
4573,
716,
326,
2667,
506,
5840,
316,
1353,
358,
999,
512,
17040,
1807,
8013,
18,
225,
12943,
30,
5901,
1493,
2856,
578,
486,
358,
5260,
326,
1353,
434,
326,
7679,
261,
542,
5901,
33,
8381,
358,
2621,
309,
1915,
353,
1281,
3323,
7679,
1353,
716,
903,
18866,
15302,
4995,
20498,
13,
225,
5675,
8900,
11386,
30,
272,
410,
30,
314,
24,
5520,
273,
5601,
12590,
21,
30,
63,
25,
16,
27,
6487,
576,
30,
63,
25,
16,
26,
6487,
890,
30,
63,
26,
16,
27,
6487,
1059,
30,
63,
25,
16,
26,
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,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
4672,
3536,
2860,
1053,
309,
279,
2667,
598,
7679,
353,
15302,
4995,
297,
16,
471,
1083,
3541,
18,
225,
432,
2667,
261,
1918,
1661,
5531,
7679,
13,
353,
15302,
4995,
297,
309,
518,
711,
279,
4995,
297,
15853,
316,
1492,
777,
7679,
2199,
848,
506,
19377,
316,
1353,
603,
279,
19169,
7679,
16,
598,
777,
326,
26230,
2199,
19377,
4832,
326,
19169,
18,
225,
3609,
1493,
1220,
445,
13041,
716,
326,
2667,
711,
1661,
5531,
7679,
18,
225,
261,
25858,
12540,
20498,
711,
1158,
2379,
364,
19422,
2887,
7679,
2934,
1493,
1021,
783,
1177,
14719,
281,
603,
20303,
326,
3157,
407,
434,
279,
21980,
4358,
2
] |
return long(time.strftime("%Y%m%d%H%M%S"))
|
return long(time.strftime("%Y%m%d%H%M%S", time.gmtime(time.time())))
|
def _timestamp(): return long(time.strftime("%Y%m%d%H%M%S"))
|
df083dc7acac8eb240526ef048542cb656bc4ae8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/df083dc7acac8eb240526ef048542cb656bc4ae8/sqlite_drv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5508,
13332,
327,
1525,
12,
957,
18,
701,
9982,
27188,
61,
9,
81,
9,
72,
9,
44,
9,
49,
9,
55,
3113,
813,
18,
75,
10838,
12,
957,
18,
957,
1435,
20349,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5508,
13332,
327,
1525,
12,
957,
18,
701,
9982,
27188,
61,
9,
81,
9,
72,
9,
44,
9,
49,
9,
55,
3113,
813,
18,
75,
10838,
12,
957,
18,
957,
1435,
20349,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
txt = new_doc.createTextNode(str(line[f] or ''))
|
col.text = line[f] or ''
|
def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n)
|
ce28b92c9e314579334271a58fcf4c5c65873e36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ce28b92c9e314579334271a58fcf4c5c65873e36/custom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
88,
13,
642,
18,
6923,
1763,
12,
82,
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
] |
sources = getAllCudaSources(options.directory) if options.clean: clean(sources) elif options.sanitize: sanitizeSources(sources)
|
sources = getAllCudaSources(options.directory, options.ptx) if options.ptx: compileSources(command, sources, True)
|
def main(): parser = OptionParser() parser.add_option("-d", "--directory", action="store", default=".", dest="directory", help="The directory to run on.") parser.add_option("-a", "--arguments", action="store", default="-I ~/checkout/thrust -I ./sdk", dest="arguments", help="NVCC options.") parser.add_option("-c", "--clean", action="store_true", dest="clean", default=False, help="Delete all .cu.cpp files.") parser.add_option("-s", "--sanitize", action="store_true", dest="sanitize", default=False, help="Only sanitize .cu.cpp files.") (options, args) = parser.parse_args() command = "nvcc --cuda " + options.arguments path = os.getcwd() sources = getAllCudaSources(options.directory) if options.clean: clean(sources) elif options.sanitize: sanitizeSources(sources) else: compileSources(command, sources) sanitizeSources(sources)
|
8579344898484acffcdc4147691215daf73a81b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5603/8579344898484acffcdc4147691215daf73a81b6/CompileCudaTests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
1435,
225,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
3113,
5238,
5149,
3113,
1301,
1546,
2233,
3113,
805,
1546,
1199,
16,
1570,
1546,
5149,
3113,
2809,
1546,
1986,
1867,
358,
1086,
603,
1199,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
69,
3113,
5238,
7099,
3113,
1301,
1546,
2233,
3113,
805,
1546,
17,
45,
4871,
19,
17300,
19,
451,
86,
641,
300,
45,
263,
19,
20907,
3113,
1570,
1546,
7099,
3113,
2809,
1546,
11679,
6743,
702,
1199,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
71,
3113,
5238,
6200,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
6200,
3113,
805,
33,
8381,
16,
2809,
1546,
2613,
777,
263,
6319,
18,
4057,
84,
1390,
1199,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
87,
3113,
5238,
20266,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
20266,
3113,
805,
33,
8381,
16,
2809,
1546,
3386,
8881,
263,
6319,
18,
4057,
84,
1390,
1199,
13,
225,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
1296,
273,
315,
16588,
952,
1493,
71,
13177,
315,
397,
702,
18,
7099,
589,
273,
1140,
18,
588,
11089,
1435,
5550,
273,
5514,
39,
13177,
8628,
12,
2116,
18,
5149,
16,
702,
18,
337,
92,
13,
309,
702,
18,
337,
92,
30,
4074,
8628,
12,
3076,
16,
5550,
16,
1053,
13,
469,
30,
4074,
8628,
12,
3076,
16,
5550,
13,
8881,
8628,
12,
10141,
13,
225,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
1435,
225,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
3113,
5238,
5149,
3113,
1301,
1546,
2233,
3113,
805,
1546,
1199,
16,
1570,
1546,
5149,
3113,
2809,
1546,
1986,
1867,
358,
1086,
603,
1199,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
69,
3113,
5238,
7099,
3113,
1301,
1546,
2233,
3113,
805,
1546,
17,
45,
4871,
19,
17300,
19,
451,
86,
641,
300,
45,
263,
19,
20907,
3113,
1570,
1546,
7099,
3113,
2809,
1546,
11679,
6743,
702,
1199,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
71,
3113,
5238,
6200,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
6200,
3113,
805,
33,
8381,
16,
2809,
1546,
2613,
777,
263,
6319,
18,
4057,
2
] |
if 'END CRYSTAL' in record:
|
if 'END CRYSTAL ' in record:
|
def _parse_project(self, xinfo_file): '''Parse & validate the contents of the .xinfo file. This parses the project element (i.e. the whole thing..)'''
|
6ffb5b650d7622d6e049131a8377d82fc2539589 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/6ffb5b650d7622d6e049131a8377d82fc2539589/XInfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
4406,
12,
2890,
16,
619,
1376,
67,
768,
4672,
9163,
3201,
473,
1954,
326,
2939,
434,
326,
263,
92,
1376,
585,
18,
1220,
8940,
326,
1984,
930,
261,
77,
18,
73,
18,
326,
7339,
7757,
838,
2506,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
2670,
67,
4406,
12,
2890,
16,
619,
1376,
67,
768,
4672,
9163,
3201,
473,
1954,
326,
2939,
434,
326,
263,
92,
1376,
585,
18,
1220,
8940,
326,
1984,
930,
261,
77,
18,
73,
18,
326,
7339,
7757,
838,
2506,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
request.write(form_end % (_('Overview'), _('Create'),
|
request.write(form_end % (_('Create'), _('Overview'),
|
def sortShuffle(types): types = sorted(types) if 'gwikiinlinks' in types: types.remove('gwikiinlinks') types.insert(0, 'gwikiinlinks') if 'gwikicategory' in types: types.remove('gwikicategory') types.insert(0, 'gwikicategory') return types
|
ef6bf994c6bdd03397ee86adcd873ba3f9f69b50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/ef6bf994c6bdd03397ee86adcd873ba3f9f69b50/ShowGraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
1555,
10148,
12,
2352,
4672,
1953,
273,
3115,
12,
2352,
13,
309,
296,
75,
13044,
267,
7135,
11,
316,
1953,
30,
1953,
18,
4479,
2668,
75,
13044,
267,
7135,
6134,
1953,
18,
6387,
12,
20,
16,
296,
75,
13044,
267,
7135,
6134,
309,
296,
75,
11999,
335,
1881,
11,
316,
1953,
30,
1953,
18,
4479,
2668,
75,
11999,
335,
1881,
6134,
1953,
18,
6387,
12,
20,
16,
296,
75,
11999,
335,
1881,
6134,
327,
1953,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
1555,
10148,
12,
2352,
4672,
1953,
273,
3115,
12,
2352,
13,
309,
296,
75,
13044,
267,
7135,
11,
316,
1953,
30,
1953,
18,
4479,
2668,
75,
13044,
267,
7135,
6134,
1953,
18,
6387,
12,
20,
16,
296,
75,
13044,
267,
7135,
6134,
309,
296,
75,
11999,
335,
1881,
11,
316,
1953,
30,
1953,
18,
4479,
2668,
75,
11999,
335,
1881,
6134,
1953,
18,
6387,
12,
20,
16,
296,
75,
11999,
335,
1881,
6134,
327,
1953,
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
] |
raise TypeError, "Not a valid Rubik's move: %s" % mv
|
return G(mv)
|
def parse(self, mv): """ This function allows one to create the permutation group element from a variety of formats. INPUT: one of the following list -- list of facets (as returned by self.facets()) dict -- list of faces (as returned by self.faces()) str -- either cycle notation (passed to GAP) or a product of generators or Singmaster notation perm_group element -- returned as an element of self.group() EXAMPLES: sage: C = CubeGroup() sage: C.parse(range(1,49)) () sage: g = C.parse("L"); g (1,17,41,40)(4,20,44,37)(6,22,46,35)(9,11,16,14)(10,13,15,12) sage: C.parse(str(g)) == g True sage: facets = C.facets(g); facets [17, 2, 3, 20, 5, 22, 7, 8, 11, 13, 16, 10, 15, 9, 12, 14, 41, 18, 19, 44, 21, 46, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, 36, 4, 38, 39, 1, 40, 42, 43, 37, 45, 35, 47, 48] sage: C.parse(facets) (1,17,41,40)(4,20,44,37)(6,22,46,35)(9,11,16,14)(10,13,15,12) sage: C.parse(facets) == g True sage: faces = C.faces("L"); faces {'right': [[25, 26, 27], [28, 0, 29], [30, 31, 32]], 'up': [[17, 2, 3], [20, 0, 5], [22, 7, 8]], 'back': [[33, 34, 6], [36, 0, 4], [38, 39, 1]], 'down': [[40, 42, 43], [37, 0, 45], [35, 47, 48]], 'front': [[41, 18, 19], [44, 0, 21], [46, 23, 24]], 'left': [[11, 13, 16], [10, 0, 15], [9, 12, 14]]} sage: C.parse(faces) == C.parse("L") True sage: C.parse("L' R2") == C.parse("L^(-1)*R^2") True sage: C.parse("L' R2") (1,40,41,17)(3,43)(4,37,44,20)(5,45)(6,35,46,22)(8,48)(9,14,16,11)(10,12,15,13)(19,38)(21,36)(24,33)(25,32)(26,31)(27,30)(28,29) sage: C.parse("L^4") () sage: C.parse("L^(-1)*R") (1,40,41,17)(3,38,43,19)(4,37,44,20)(5,36,45,21)(6,35,46,22)(8,33,48,24)(9,14,16,11)(10,12,15,13)(25,27,32,30)(26,29,31,28) """ G = self.group() if isinstance(mv, PermutationGroupElement): # mv is a perm_group element, return mv return mv if mv.parent() is G else G(mv) elif isinstance(mv, str): # It is a string: may be in cycle notation or rubik's notation if '(' in mv and not '^' in mv: return G(mv) else: gens = G.gens() names = self.gen_names() map = {} for i in range(6): map[names[i]] = gens[i] g = G(1) mv = mv.strip().replace(" ","*").replace("**", "*").replace("'", "-1").replace('^','').replace('(','').replace(')','') M = mv.split("*") for m in M: if len(m) == 1: g *= map[m[0]] else: g *= map[m[0]]**int(m[1:]) return g elif isinstance(mv, dict): state = mv state_facets = [] keyss = state.keys() keyss.sort() for k in keyss: r = state[k][0]+state[k][1]+state[k][2] r.remove(0) state_facets = state_facets + r state0 = self.faces("") state0_facets = [] keyss = state0.keys() keyss.sort() for k in keyss: r = state0[k][0]+state0[k][1]+state0[k][2] r.remove(0) state0_facets = state0_facets + r p1 = [state0_facets.index(x) for x in range(1,49)] p2 = [state_facets[j] for j in p1] return G(p2) elif isinstance(mv, list): return G(mv) else: raise TypeError, "Not a valid Rubik's move: %s" % mv
|
ec7f2353d5f3404d448b1713a40a91d345a6d70b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ec7f2353d5f3404d448b1713a40a91d345a6d70b/cubegroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
7701,
4672,
3536,
1220,
445,
5360,
1245,
358,
752,
326,
17440,
1041,
930,
628,
279,
1394,
14369,
434,
6449,
18,
225,
12943,
30,
1245,
434,
326,
3751,
666,
1493,
666,
434,
21681,
261,
345,
2106,
635,
365,
18,
11639,
2413,
10756,
2065,
1493,
666,
434,
11058,
261,
345,
2106,
635,
365,
18,
4601,
10756,
609,
225,
1493,
3344,
8589,
12155,
261,
23603,
358,
611,
2203,
13,
578,
279,
3017,
434,
13327,
578,
348,
310,
7525,
12155,
4641,
67,
1655,
930,
1493,
2106,
487,
392,
930,
434,
365,
18,
1655,
1435,
225,
5675,
8900,
11386,
30,
272,
410,
30,
385,
273,
385,
4895,
1114,
1435,
272,
410,
30,
385,
18,
2670,
12,
3676,
12,
21,
16,
7616,
3719,
1832,
272,
410,
30,
314,
273,
385,
18,
2670,
2932,
48,
8863,
314,
261,
21,
16,
4033,
16,
9803,
16,
7132,
21433,
24,
16,
3462,
16,
6334,
16,
6418,
21433,
26,
16,
3787,
16,
8749,
16,
4763,
21433,
29,
16,
2499,
16,
2313,
16,
3461,
21433,
2163,
16,
3437,
16,
3600,
16,
2138,
13,
272,
410,
30,
385,
18,
2670,
12,
701,
12,
75,
3719,
422,
314,
1053,
272,
410,
30,
21681,
273,
385,
18,
11639,
2413,
12,
75,
1769,
21681,
306,
4033,
16,
576,
16,
890,
16,
4200,
16,
1381,
16,
11201,
16,
2371,
16,
1725,
16,
4648,
16,
5958,
16,
2872,
16,
1728,
16,
4711,
16,
2468,
16,
2593,
16,
5045,
16,
20170,
16,
6549,
16,
5342,
16,
13291,
16,
9035,
16,
17077,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
7701,
4672,
3536,
1220,
445,
5360,
1245,
358,
752,
326,
17440,
1041,
930,
628,
279,
1394,
14369,
434,
6449,
18,
225,
12943,
30,
1245,
434,
326,
3751,
666,
1493,
666,
434,
21681,
261,
345,
2106,
635,
365,
18,
11639,
2413,
10756,
2065,
1493,
666,
434,
11058,
261,
345,
2106,
635,
365,
18,
4601,
10756,
609,
225,
1493,
3344,
8589,
12155,
261,
23603,
358,
611,
2203,
13,
578,
279,
3017,
434,
13327,
578,
348,
310,
7525,
12155,
4641,
67,
1655,
930,
1493,
2106,
487,
392,
930,
434,
365,
18,
1655,
1435,
225,
5675,
8900,
11386,
30,
272,
410,
30,
385,
273,
385,
4895,
1114,
1435,
272,
410,
30,
385,
18,
2670,
12,
3676,
12,
21,
2
] |
print "length:", print length
|
def process_EmbeddedInfo(self, name): if ( name == 'embedded_data' ): # can't index into the data with a long - have to make it # an int. length = int(self.unpack('L', self.data[self.index:self.index+4])[0]) self.index = self.index + 4 print "length:", print length if ( name == 'embedded_data_byte' ): length = int(self.unpack('B', self.data[self.index:self.index+1])[0]) self.index = self.index + 1
|
fd458bd1345d2ff27e2bd3d95eeee43a8c7e1529 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/fd458bd1345d2ff27e2bd3d95eeee43a8c7e1529/pxldis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
14980,
966,
12,
2890,
16,
508,
4672,
309,
261,
508,
422,
296,
20722,
67,
892,
11,
262,
30,
468,
848,
1404,
770,
1368,
326,
501,
598,
279,
1525,
300,
1240,
358,
1221,
518,
468,
392,
509,
18,
769,
273,
509,
12,
2890,
18,
17309,
2668,
48,
2187,
365,
18,
892,
63,
2890,
18,
1615,
30,
2890,
18,
1615,
15,
24,
5717,
63,
20,
5717,
365,
18,
1615,
273,
365,
18,
1615,
397,
1059,
309,
261,
508,
422,
296,
20722,
67,
892,
67,
7229,
11,
262,
30,
769,
273,
509,
12,
2890,
18,
17309,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
30,
2890,
18,
1615,
15,
21,
5717,
63,
20,
5717,
365,
18,
1615,
273,
365,
18,
1615,
397,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
14980,
966,
12,
2890,
16,
508,
4672,
309,
261,
508,
422,
296,
20722,
67,
892,
11,
262,
30,
468,
848,
1404,
770,
1368,
326,
501,
598,
279,
1525,
300,
1240,
358,
1221,
518,
468,
392,
509,
18,
769,
273,
509,
12,
2890,
18,
17309,
2668,
48,
2187,
365,
18,
892,
63,
2890,
18,
1615,
30,
2890,
18,
1615,
15,
24,
5717,
63,
20,
5717,
365,
18,
1615,
273,
365,
18,
1615,
397,
1059,
309,
261,
508,
422,
296,
20722,
67,
892,
67,
7229,
11,
262,
30,
769,
273,
509,
12,
2890,
18,
17309,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
30,
2890,
18,
1615,
15,
21,
5717,
63,
20,
5717,
365,
18,
1615,
2
] |
|
None, [cty.c_int, cty.c_int],
|
None, [cty.c_int, cty.c_int],
|
def fl_set_oneliner_color(p1, p2): """ fl_set_oneliner_color(p1, p2) """ _fl_set_oneliner_color(p1, p2)
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
265,
292,
14522,
67,
3266,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
265,
292,
14522,
67,
3266,
12,
84,
21,
16,
293,
22,
13,
3536,
225,
389,
2242,
67,
542,
67,
265,
292,
14522,
67,
3266,
12,
84,
21,
16,
293,
22,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
265,
292,
14522,
67,
3266,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
265,
292,
14522,
67,
3266,
12,
84,
21,
16,
293,
22,
13,
3536,
225,
389,
2242,
67,
542,
67,
265,
292,
14522,
67,
3266,
12,
84,
21,
16,
293,
22,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (mode == FULL) { dim_zz[0] = (int)ceil((dim_im[0]+dim_ker[0]-1)/float(%(self_dx)s)); dim_zz[1] = (int)ceil((dim_im[1]+dim_ker[1]-1)/float(%(self_dy)s)); } else { dim_zz[0] = (int)ceil((dim_im[0]-dim_ker[0]+1)/float(%(self_dx)s)); dim_zz[1] = (int)ceil((dim_im[1]-dim_ker[1]+1)/float(%(self_dy)s)); }
|
%(dim_zz_affect)s
|
def my_dup2(st): s="" iter=0 for i in range(unroll_bsize): d["unroll_biter"]=i for j in range(unroll_ksize): d["unroll_kiter"]=j d["unroll_iter"]=iter iter+=1 s+=st%d return s+"\n"
|
2d6a463457b2da206ccf4d481e2dc6c17a36f79a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/2d6a463457b2da206ccf4d481e2dc6c17a36f79a/conv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
26427,
22,
12,
334,
4672,
272,
1546,
6,
1400,
33,
20,
364,
277,
316,
1048,
12,
318,
2693,
67,
70,
1467,
4672,
302,
9614,
318,
2693,
67,
70,
2165,
11929,
33,
77,
364,
525,
316,
1048,
12,
318,
2693,
67,
79,
1467,
4672,
302,
9614,
318,
2693,
67,
79,
2165,
11929,
33,
78,
302,
9614,
318,
2693,
67,
2165,
11929,
33,
2165,
1400,
15,
33,
21,
272,
15,
33,
334,
9,
72,
327,
272,
9078,
64,
82,
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,
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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,
3399,
67,
26427,
22,
12,
334,
4672,
272,
1546,
6,
1400,
33,
20,
364,
277,
316,
1048,
12,
318,
2693,
67,
70,
1467,
4672,
302,
9614,
318,
2693,
67,
70,
2165,
11929,
33,
77,
364,
525,
316,
1048,
12,
318,
2693,
67,
79,
1467,
4672,
302,
9614,
318,
2693,
67,
79,
2165,
11929,
33,
78,
302,
9614,
318,
2693,
67,
2165,
11929,
33,
2165,
1400,
15,
33,
21,
272,
15,
33,
334,
9,
72,
327,
272,
9078,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
border_x = 30 self.sea_area = (border_x , 30, gcompris.BOARD_WIDTH-border_x , 350)
|
self.border_x = 30 self.sea_area = (self.border_x , 30, gcompris.BOARD_WIDTH-self.border_x , 350)
|
def __init__(self, gcomprisBoard): self.gcomprisBoard = gcomprisBoard
|
4207120a2f0aef7ad38ebe5159360a72adcf3364 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/4207120a2f0aef7ad38ebe5159360a72adcf3364/searace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
365,
18,
75,
832,
683,
291,
22233,
273,
314,
832,
683,
291,
22233,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
365,
18,
75,
832,
683,
291,
22233,
273,
314,
832,
683,
291,
22233,
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
] |
print "<H3>Shell environment:</H3>"
|
print "<H3>Shell Environment:</H3>"
|
def print_environ(): """Dump the shell environment as HTML.""" keys = environ.keys() keys.sort() print print "<H3>Shell environment:</H3>" print "<DL>" for key in keys: print "<DT>", escape(key), "<DD>", escape(environ[key]) print "</DL>" print
|
0d26876f7028b8e7829e651e18a2f2aa5b85c478 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0d26876f7028b8e7829e651e18a2f2aa5b85c478/cgi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
28684,
13332,
3536,
10628,
326,
5972,
3330,
487,
3982,
12123,
1311,
273,
5473,
18,
2452,
1435,
1311,
18,
3804,
1435,
1172,
1172,
3532,
44,
23,
34,
13220,
7518,
19814,
44,
23,
2984,
1172,
3532,
8914,
2984,
364,
498,
316,
1311,
30,
1172,
3532,
9081,
2984,
16,
4114,
12,
856,
3631,
3532,
5698,
2984,
16,
4114,
12,
28684,
63,
856,
5717,
1172,
6823,
8914,
2984,
1172,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
28684,
13332,
3536,
10628,
326,
5972,
3330,
487,
3982,
12123,
1311,
273,
5473,
18,
2452,
1435,
1311,
18,
3804,
1435,
1172,
1172,
3532,
44,
23,
34,
13220,
7518,
19814,
44,
23,
2984,
1172,
3532,
8914,
2984,
364,
498,
316,
1311,
30,
1172,
3532,
9081,
2984,
16,
4114,
12,
856,
3631,
3532,
5698,
2984,
16,
4114,
12,
28684,
63,
856,
5717,
1172,
6823,
8914,
2984,
1172,
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
] |
self.linesearch_stop_code = None
|
def reset(self): self.linesearch_stop_code = None self.cur_num_steps = -1 super(gd_linesearch_update, self).reset()
|
0ba80740ba1ae1f95289a79fc05208c58ebe6f01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9024/0ba80740ba1ae1f95289a79fc05208c58ebe6f01/parameter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
18,
1397,
67,
2107,
67,
8986,
3639,
273,
300,
21,
2240,
12,
19016,
67,
3548,
73,
991,
67,
2725,
16,
365,
2934,
6208,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
18,
1397,
67,
2107,
67,
8986,
3639,
273,
300,
21,
2240,
12,
19016,
67,
3548,
73,
991,
67,
2725,
16,
365,
2934,
6208,
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
] |
|
return self._image.save(filename)
|
if not format: format = os.path.splitext(filename)[1][1:] return self._image.save(filename, format)
|
def save(self, filename, format = None): """ Saves the image to a file.
|
5206afce53e165cc9905e65922832c8a70452531 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/5206afce53e165cc9905e65922832c8a70452531/Imlib2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
16,
740,
273,
599,
4672,
3536,
348,
6606,
326,
1316,
358,
279,
585,
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,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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
] |
print '(%d)' % rotation
|
def look_down(buffer, parent_bbox): for child in node.iterchildren(): _scan(child, buffer, parent_bbox, page_size, rotation) if node.tail and node.tail.strip(): buffer.append(node.tail) if node.text and node.text.strip(): buffer.append(node.text)
|
30f6d08a28953c9e0326904c0aa6b020ee0dd266 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3685/30f6d08a28953c9e0326904c0aa6b020ee0dd266/hocr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1363,
67,
1467,
16,
6752,
13,
309,
756,
18,
13101,
471,
756,
18,
13101,
18,
6406,
13332,
1613,
18,
6923,
12,
2159,
18,
13101,
13,
309,
756,
18,
955,
471,
756,
18,
955,
18,
6406,
13332,
1613,
18,
6923,
12,
2159,
18,
955,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1363,
67,
1467,
16,
6752,
13,
309,
756,
18,
13101,
471,
756,
18,
13101,
18,
6406,
13332,
1613,
18,
6923,
12,
2159,
18,
13101,
13,
309,
756,
18,
955,
471,
756,
18,
955,
18,
6406,
13332,
1613,
18,
6923,
12,
2159,
18,
955,
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
] |
|
self.tk.call((self._w, 'yview') + what)
|
self.tk.call((self._w, 'yview') + args) def yview_moveto(self, fraction): """Adjusts the view in the window so that FRACTION of the total height of the canvas is off-screen to the top.""" self.tk.call(self._w, 'yview', 'moveto', fraction) def yview_scroll(self, number, what): """Shift the y-view according to NUMBER which is measured in "units" or "pages" (WHAT).""" self.tk.call(self._w, 'yview', 'scroll', number, what)
|
def yview(self, *what): """Query and change vertical position of the view.""" if not what: return self._getdoubles(self.tk.call(self._w, 'yview')) self.tk.call((self._w, 'yview') + what)
|
f22ed0a21188a02a1ed8f474529824e96ad0bdde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f22ed0a21188a02a1ed8f474529824e96ad0bdde/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
677,
1945,
12,
2890,
16,
380,
23770,
4672,
3536,
1138,
471,
2549,
9768,
1754,
434,
326,
1476,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
677,
1945,
12,
2890,
16,
380,
23770,
4672,
3536,
1138,
471,
2549,
9768,
1754,
434,
326,
1476,
12123,
309,
486,
4121,
30,
327,
365,
6315,
588,
2896,
19314,
12,
2890,
18,
16099,
18,
1991,
12,
2890,
6315,
91,
16,
296,
93,
1945,
26112,
365,
18,
16099,
18,
1991,
12443,
2890,
6315,
91,
16,
296,
93,
1945,
6134,
397,
4121,
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
] |
self.task_tview.set_rules_hint(True)
|
self.task_tview.set_rules_hint(False)
|
def __create_task_tview(self):
|
def1aab0d3dcdc8aaf97759fa7d56e680d522bce /local1/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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
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
] |
x = x.split(".")
|
x = [k[:63] for k in x.split(".")]
|
def i2m(self, pkt, x): x = x.split(".") x = map(lambda y: chr(len(y))+y, x) x = "".join(x) if x[-1] != "\x00": x += "\x00" return x
|
ef91f7ad0d26f2dfc259168d4afd9a0b519f6ebc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/ef91f7ad0d26f2dfc259168d4afd9a0b519f6ebc/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
22,
81,
12,
2890,
16,
11536,
16,
619,
4672,
619,
273,
306,
79,
10531,
4449,
65,
364,
417,
316,
619,
18,
4939,
2932,
1199,
25887,
619,
273,
852,
12,
14661,
677,
30,
4513,
12,
1897,
12,
93,
3719,
15,
93,
16,
619,
13,
619,
273,
1408,
18,
5701,
12,
92,
13,
309,
619,
18919,
21,
65,
480,
1548,
92,
713,
6877,
619,
1011,
1548,
92,
713,
6,
327,
619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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5701,
12,
92,
13,
309,
619,
18919,
21,
65,
480,
1548,
92,
713,
6877,
619,
1011,
1548,
92,
713,
6,
327,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.featureManager = QTabWidget()
|
self.featureManager = _FeatureManager()
|
def __init__(self, assy, parent): QWidget.__init__(self, parent) self.parent = parent self.setWindowTitle("My Part Window")
|
9c7bd041713d5ae509816d28fbae8d2558a67900 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9c7bd041713d5ae509816d28fbae8d2558a67900/Ui_PartWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1551,
93,
16,
982,
4672,
2238,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
2938,
273,
982,
365,
18,
542,
3829,
4247,
2932,
12062,
6393,
6076,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1551,
93,
16,
982,
4672,
2238,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
2938,
273,
982,
365,
18,
542,
3829,
4247,
2932,
12062,
6393,
6076,
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
] |
positions = [ ]
|
def buildChunk(self): length = self.length maxLen = 1.2 * Chirality.BONDLENGTH maxLenSq = maxLen ** 2 positions = [ ] # populate the tube with some extra carbons on the ends # so that we can trim them later self.chirality.populate(self.mol, length + 3 * maxLen, positions)
|
a014b782c4206ea85dd6e9654a3e0dbd08350574 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a014b782c4206ea85dd6e9654a3e0dbd08350574/NanotubeGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
5579,
12,
2890,
4672,
769,
273,
365,
18,
2469,
29618,
273,
404,
18,
22,
380,
1680,
481,
7919,
18,
38,
673,
40,
7096,
29618,
19643,
273,
29618,
2826,
576,
468,
6490,
326,
25943,
598,
2690,
2870,
5926,
70,
7008,
603,
326,
3930,
468,
1427,
716,
732,
848,
2209,
2182,
5137,
365,
18,
343,
481,
7919,
18,
19936,
12,
2890,
18,
21260,
16,
769,
397,
890,
380,
29618,
16,
6865,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
5579,
12,
2890,
4672,
769,
273,
365,
18,
2469,
29618,
273,
404,
18,
22,
380,
1680,
481,
7919,
18,
38,
673,
40,
7096,
29618,
19643,
273,
29618,
2826,
576,
468,
6490,
326,
25943,
598,
2690,
2870,
5926,
70,
7008,
603,
326,
3930,
468,
1427,
716,
732,
848,
2209,
2182,
5137,
365,
18,
343,
481,
7919,
18,
19936,
12,
2890,
18,
21260,
16,
769,
397,
890,
380,
29618,
16,
6865,
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
] |
|
res2 = self.get_credit_debit(cursor, user, ids, names, arg,
|
res2 = self.get_credit_debit(cursor, user, ids, names,
|
def get_credit_debit(self, cursor, user, ids, names, context=None): ''' Function to compute debit, credit for account ids.
|
753e883a133b79d507b1e81030424c9bf4cf5462 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9290/753e883a133b79d507b1e81030424c9bf4cf5462/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
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
] |
'Description':"An arbitrary comment describing this file. e.g. \"generated Big Bang Search v0.1a. with fftw v12.2.4\". (quotes on command line are necessary)", 'Requirements':None
|
'Description':"An arbitrary comment describing this file. e.g. \"generated Big Bang Search v0.1a. with fftw v16.2.4 alpha\". (quotes on command line are necessary)", 'Test_method':None
|
def __init__(self): self.attr = {
|
2aeab4d32c1031c6a6ce70b32191fd63e5b6158c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/2aeab4d32c1031c6a6ce70b32191fd63e5b6158c/LSCfileAdd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1747,
273,
288,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1747,
273,
288,
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
] |
'linestatement_begin': [ (c(r'\s*(\n|$)'), 'linestatement_end', '
|
TOKEN_LINESTATEMENT_BEGIN: [ (c(r'\s*(\n|$)'), TOKEN_LINESTATEMENT_END, '
|
def __init__(self, environment): # shortcuts c = lambda x: re.compile(x, re.M | re.S) e = re.escape
|
b3b5802349723ab864cc3531ac9b72a230cb841e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14446/b3b5802349723ab864cc3531ac9b72a230cb841e/lexer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3330,
4672,
468,
25641,
276,
273,
3195,
619,
30,
283,
18,
11100,
12,
92,
16,
283,
18,
49,
571,
283,
18,
55,
13,
425,
273,
283,
18,
6939,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
18,
11100,
12,
92,
16,
283,
18,
49,
571,
283,
18,
55,
13,
425,
273,
283,
18,
6939,
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
] |
newheads.append(r) if len(newheads) > len(remote_heads): warn = 1 if warn: self.ui.warn(_("abort: push creates new remote heads!\n")) self.ui.status(_("(did you forget to merge?" " use push -f to force)\n")) return None, 0 elif inc:
|
for n in heads: branch = self[n].branch() if branch in localhds: localhds[branch].append(n) else: localhds[branch] = [n] remotehds = remote.branchmap() for lh in localhds: if lh in remotehds: rheads = remotehds[lh] else: rheads = [] lheads = localhds[lh] updatelh = [upd for upd in update if self[upd].branch() == lh] if not updatelh: continue if not checkbranch(lheads, rheads, updatelh): return None, 0 else: if not checkbranch(heads, remote_heads, update): return None, 0 if inc:
|
def prepush(self, remote, force, revs): common = {} remote_heads = remote.heads() inc = self.findincoming(remote, common, remote_heads, force=force)
|
8c34dedeca1404255523ea8d8dcf63bc83266e8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/8c34dedeca1404255523ea8d8dcf63bc83266e8b/localrepo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
6206,
12,
2890,
16,
2632,
16,
2944,
16,
5588,
87,
4672,
2975,
273,
2618,
2632,
67,
20263,
273,
2632,
18,
20263,
1435,
7290,
273,
365,
18,
4720,
31033,
12,
7222,
16,
2975,
16,
2632,
67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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
6206,
12,
2890,
16,
2632,
16,
2944,
16,
5588,
87,
4672,
2975,
273,
2618,
2632,
67,
20263,
273,
2632,
18,
20263,
1435,
7290,
273,
365,
18,
4720,
31033,
12,
7222,
16,
2975,
16,
2632,
67,
20263,
16,
2944,
33,
5734,
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
] |
self._nframes == self._nframeswritten:
|
self._nframes == self._nframeswritten and \ self._marklength == 0:
|
def _patchheader(self): curpos = self._file.tell() if self._datawritten & 1: datalength = self._datawritten + 1 self._file.write(chr(0)) else: datalength = self._datawritten if datalength == self._datalength and \ self._nframes == self._nframeswritten: self._file.seek(curpos, 0) return self._file.seek(self._form_length_pos, 0) dummy = self._write_form_length(datalength) self._file.seek(self._nframes_pos, 0) _write_long(self._file, self._nframeswritten) self._file.seek(self._ssnd_length_pos, 0) _write_long(self._file, datalength + 8) self._file.seek(curpos, 0) self._nframes = self._nframeswritten self._datalength = datalength
|
0485f1945fdf9b50deeb5fdd34ce2554f8c00a6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0485f1945fdf9b50deeb5fdd34ce2554f8c00a6a/aifc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2272,
3374,
12,
2890,
4672,
662,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
365,
6315,
892,
9748,
473,
404,
30,
18462,
1288,
273,
365,
6315,
892,
9748,
397,
404,
365,
6315,
768,
18,
2626,
12,
15182,
12,
20,
3719,
469,
30,
18462,
1288,
273,
365,
6315,
892,
9748,
309,
18462,
1288,
422,
365,
6315,
72,
3145,
1288,
471,
521,
365,
6315,
82,
10278,
422,
365,
6315,
82,
10278,
9748,
471,
521,
365,
6315,
3355,
2469,
422,
374,
30,
365,
6315,
768,
18,
16508,
12,
1397,
917,
16,
374,
13,
327,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
687,
67,
2469,
67,
917,
16,
374,
13,
9609,
273,
365,
6315,
2626,
67,
687,
67,
2469,
12,
72,
3145,
1288,
13,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
82,
10278,
67,
917,
16,
374,
13,
389,
2626,
67,
5748,
12,
2890,
6315,
768,
16,
365,
6315,
82,
10278,
9748,
13,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
1049,
4880,
67,
2469,
67,
917,
16,
374,
13,
389,
2626,
67,
5748,
12,
2890,
6315,
768,
16,
18462,
1288,
397,
1725,
13,
365,
6315,
768,
18,
16508,
12,
1397,
917,
16,
374,
13,
365,
6315,
82,
10278,
273,
365,
6315,
82,
10278,
9748,
365,
6315,
72,
3145,
1288,
273,
18462,
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6315,
768,
18,
2626,
12,
15182,
12,
20,
3719,
469,
30,
18462,
1288,
273,
365,
6315,
892,
9748,
309,
18462,
1288,
422,
365,
6315,
72,
3145,
1288,
471,
521,
365,
6315,
82,
10278,
422,
365,
6315,
82,
10278,
9748,
471,
521,
365,
6315,
3355,
2469,
422,
374,
30,
365,
6315,
768,
18,
16508,
12,
1397,
917,
16,
374,
13,
327,
365,
6315,
768,
18,
16508,
12,
2890,
6315,
687,
67,
2469,
67,
917,
16,
374,
13,
9609,
273,
365,
6315,
2626,
67,
687,
67,
2
] |
if field[len(prefix)] == "id": db_id = False is_xml_id = data_id = line[i]
|
if field[len(prefix)] == "id": db_id = False is_xml_id = data_id = line[i]
|
def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = [] data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in range(len(fields)): if i >= len(line): raise Exception(_('Please check that all your lines have %d columns.') % (len(fields),)) if not line[i]: continue field = fields[i] if prefix and not prefix[0] in field: continue if (len(field)==len(prefix)+1) and field[len(prefix)].endswith(':db_id'): # Database ID res = False if line[i]: field_name = field[0].split(':')[0] model_rel = fields_def[field_name]['relation'] if fields_def[field[len(prefix)][:-6]]['type']=='many2many': res_id = [] for db_id in line[i].split(config.get('csv_internal_sep')): try: _check_db_id(self, model_rel, db_id) res_id.append(db_id) except Exception,e: warning += [tools.exception_to_unicode(e)] logger.notifyChannel("import", netsvc.LOG_ERROR, tools.exception_to_unicode(e)) if len(res_id): res = [(6, 0, res_id)] else: try: _check_db_id(self, model_rel, line[i]) res = line[i] except Exception,e: warning += [tools.exception_to_unicode(e)] logger.notifyChannel("import", netsvc.LOG_ERROR, tools.exception_to_unicode(e)) row[field_name] = res or False continue
|
19c6bf3cbf9c418ef8f4c3664582e8a20fbf6749 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/19c6bf3cbf9c418ef8f4c3664582e8a20fbf6749/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
5378,
501,
67,
350,
273,
1083,
501,
67,
455,
67,
350,
273,
1083,
353,
67,
2902,
67,
350,
273,
1083,
353,
67,
1966,
67,
350,
273,
1083,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
2168,
1093,
13,
738,
261,
1897,
12,
2821,
3631,
3719,
309,
486,
980,
63,
77,
14542,
1324,
225,
652,
273,
1466,
63,
77,
65,
309,
1633,
471,
486,
1633,
63,
20,
65,
316,
652,
30,
1324,
225,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
1966,
67,
350,
11,
4672,
468,
5130,
1599,
400,
273,
1083,
309,
980,
63,
77,
14542,
652,
67,
529,
273,
652,
63,
20,
8009,
4939,
2668,
2497,
25146,
20,
65,
938,
67,
2878,
273,
225,
1466,
67,
536,
63,
1518,
67,
529,
23962,
5488,
3546,
225,
309,
1466,
67,
536,
63,
1518,
63,
1897,
12,
3239,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
5378,
501,
67,
350,
273,
1083,
501,
67,
455,
67,
350,
273,
1083,
353,
67,
2902,
67,
350,
273,
1083,
353,
67,
1966,
67,
350,
273,
1083,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
2
] |
Checks for possibly invalid markup that may leak into the output
|
Checks for possibly invalid markup that may leak into the output.
|
def __init__(self, docname, lineno, issue, line): "A rule for ignoring issues" self.docname = docname # document to which this rule applies self.lineno = lineno # line number in the original source; # this rule matches only near that. # None -> don't care self.issue = issue # the markup fragment that triggered this rule self.line = line # text of the container element (single line only)
|
26db6f52a4d611d456e2e3c7c8b3f04177438954 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/26db6f52a4d611d456e2e3c7c8b3f04177438954/suspicious.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
997,
529,
16,
7586,
16,
5672,
16,
980,
4672,
315,
37,
1720,
364,
14398,
8296,
6,
365,
18,
2434,
529,
273,
997,
529,
468,
1668,
358,
1492,
333,
1720,
10294,
365,
18,
17782,
273,
7586,
282,
468,
980,
1300,
316,
326,
2282,
1084,
31,
468,
333,
1720,
1885,
1338,
13378,
716,
18,
468,
599,
317,
2727,
1404,
7671,
365,
18,
13882,
273,
5672,
377,
468,
326,
9813,
5481,
716,
10861,
333,
1720,
365,
18,
1369,
273,
980,
4202,
468,
977,
434,
326,
1478,
930,
261,
7526,
980,
1338,
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,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10294,
365,
18,
17782,
273,
7586,
282,
468,
980,
1300,
316,
326,
2282,
1084,
31,
468,
333,
1720,
1885,
1338,
13378,
716,
18,
468,
599,
317,
2727,
1404,
7671,
365,
18,
13882,
273,
5672,
377,
468,
326,
9813,
5481,
716,
10861,
333,
1720,
365,
18,
1369,
273,
980,
4202,
468,
977,
434,
326,
1478,
930,
261,
7526,
980,
1338,
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
] |
"""Export people to text archive.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Export...')) menu.AppendItem(menuItem) self.title = _("Export People") def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) path = balt.askSave(self.gTank,_('Export people to text file:'),textDir, 'People.txt', '*.txt') if not path: return settings['bash.workDir'] = path.head self.data.dumpText(path,self.selected) balt.showInfo(self.gTank,_('Records exported: %d.') % (len(self.selected),),self.title)
|
"""Export people to text archive.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Export...')) menu.AppendItem(menuItem) self.title = _("Export People") def Execute(self,event): textDir = settings.get('bash.workDir',bosh.dirs['app']) path = balt.askSave(self.gTank,_('Export people to text file:'),textDir, 'People.txt', '*.txt') if not path: return settings['bash.workDir'] = path.head self.data.dumpText(path,self.selected) balt.showInfo(self.gTank,_('Records exported: %d.') % (len(self.selected),),self.title)
|
def Execute(self,event): name = balt.askText(self.gTank,_("Add new person:"),self.title) if not name: return if name in self.data: return balt.showInfo(self.gTank,name+_(" already exists."),self.title) self.data[name] = (time.time(),0,'') self.gTank.RefreshUI(details=name) self.gTank.gList.EnsureVisible(self.gTank.GetIndex(name)) self.data.setChanged()
|
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
508,
273,
324,
2390,
18,
835,
1528,
12,
2890,
18,
75,
56,
2304,
16,
67,
2932,
986,
394,
6175,
2773,
3631,
2890,
18,
2649,
13,
309,
486,
508,
30,
327,
309,
508,
316,
365,
18,
892,
30,
327,
324,
2390,
18,
4500,
966,
12,
2890,
18,
75,
56,
2304,
16,
529,
15,
67,
2932,
1818,
1704,
1199,
3631,
2890,
18,
2649,
13,
365,
18,
892,
63,
529,
65,
273,
261,
957,
18,
957,
9334,
20,
11189,
6134,
365,
18,
75,
56,
2304,
18,
8323,
5370,
12,
6395,
33,
529,
13,
365,
18,
75,
56,
2304,
18,
75,
682,
18,
12512,
6207,
12,
2890,
18,
75,
56,
2304,
18,
967,
1016,
12,
529,
3719,
365,
18,
892,
18,
542,
5033,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7903,
12,
2890,
16,
2575,
4672,
508,
273,
324,
2390,
18,
835,
1528,
12,
2890,
18,
75,
56,
2304,
16,
67,
2932,
986,
394,
6175,
2773,
3631,
2890,
18,
2649,
13,
309,
486,
508,
30,
327,
309,
508,
316,
365,
18,
892,
30,
327,
324,
2390,
18,
4500,
966,
12,
2890,
18,
75,
56,
2304,
16,
529,
15,
67,
2932,
1818,
1704,
1199,
3631,
2890,
18,
2649,
13,
365,
18,
892,
63,
529,
65,
273,
261,
957,
18,
957,
9334,
20,
11189,
6134,
365,
18,
75,
56,
2304,
18,
8323,
5370,
12,
6395,
33,
529,
13,
365,
18,
75,
56,
2304,
18,
75,
682,
18,
12512,
6207,
12,
2890,
18,
75,
56,
2304,
18,
967,
1016,
12,
529,
2
] |
sage: SR(i + 1).numerical_approximation(32)
|
sage: (i + 1).numerical_approx(32)
|
def numerical_approximation(self, prec=53): """ Get a numerical approximation of self as either a real or complex number.
|
c5dbe9df4676ad73f68dc7246893634da17edb83 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c5dbe9df4676ad73f68dc7246893634da17edb83/calculus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17409,
67,
26742,
5115,
12,
2890,
16,
13382,
33,
8643,
4672,
3536,
968,
279,
17409,
24769,
434,
365,
487,
3344,
279,
2863,
578,
7233,
1300,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17409,
67,
26742,
5115,
12,
2890,
16,
13382,
33,
8643,
4672,
3536,
968,
279,
17409,
24769,
434,
365,
487,
3344,
279,
2863,
578,
7233,
1300,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.dom = xml.dom.minidom.parse(xmlf)
|
self.dom = xml.dom.minidom.parse(xmlf)
|
def __init__(self,xmlfile=''): """ PoolXMLCatalog constructor. Constructor takes one of the following argument types: xml string; list of xml strings; file name; list of file names """ self.files = {} self.backend_file = None # Get the dom representation of the catalog if xmlfile: if type(xmlfile) == list: for xmlf in xmlfile: try: sfile = file(xmlf,'r') self.dom = xml.dom.minidom.parse(xmlf) except: self.dom = xml.dom.minidom.parseString(xmlf)
|
15bf7dd6204f2cdb3b3b2146d62e93fe210c8af4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/15bf7dd6204f2cdb3b3b2146d62e93fe210c8af4/PoolXMLCatalog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2902,
768,
2218,
11,
4672,
3536,
8828,
4201,
9769,
3885,
18,
225,
11417,
5530,
1245,
434,
326,
3751,
1237,
1953,
30,
2025,
533,
31,
666,
434,
2025,
2064,
31,
585,
508,
31,
666,
434,
585,
1257,
3536,
225,
365,
18,
2354,
273,
2618,
365,
18,
9993,
67,
768,
273,
599,
225,
468,
968,
326,
4092,
4335,
434,
326,
6222,
309,
2025,
768,
30,
309,
618,
12,
2902,
768,
13,
422,
666,
30,
364,
2025,
74,
316,
2025,
768,
30,
775,
30,
272,
768,
273,
585,
12,
2902,
74,
11189,
86,
6134,
365,
18,
9859,
273,
2025,
18,
9859,
18,
1154,
350,
362,
18,
2670,
12,
2902,
74,
13,
1335,
30,
365,
18,
9859,
273,
2025,
18,
9859,
18,
1154,
350,
362,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2902,
768,
2218,
11,
4672,
3536,
8828,
4201,
9769,
3885,
18,
225,
11417,
5530,
1245,
434,
326,
3751,
1237,
1953,
30,
2025,
533,
31,
666,
434,
2025,
2064,
31,
585,
508,
31,
666,
434,
585,
1257,
3536,
225,
365,
18,
2354,
273,
2618,
365,
18,
9993,
67,
768,
273,
599,
225,
468,
968,
326,
4092,
4335,
434,
326,
6222,
309,
2025,
768,
30,
309,
618,
12,
2902,
768,
13,
422,
666,
30,
364,
2025,
74,
316,
2025,
768,
30,
775,
30,
272,
768,
273,
585,
12,
2902,
74,
11189,
86,
6134,
365,
18,
9859,
273,
2025,
18,
9859,
18,
1154,
350,
362,
18,
2670,
12,
2902,
74,
13,
1335,
30,
365,
18,
2
] |
return select.select( readSeq , [], [] )[0]
|
return select.select( validList , [], [] )[0]
|
def __selectFD( self, readSeq, timeout = False ): if self.timeout and not timeout: timeout = self.timeout if not timeout: return select.select( readSeq , [], [] )[0] else: return select.select( readSeq , [], [], timeout )[0]
|
98eab470e9d30064f613518b8b9dbf42597e9009 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/98eab470e9d30064f613518b8b9dbf42597e9009/Subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4025,
16894,
12,
365,
16,
855,
6926,
16,
2021,
273,
1083,
262,
30,
309,
365,
18,
4538,
471,
486,
2021,
30,
2021,
273,
365,
18,
4538,
309,
486,
2021,
30,
327,
2027,
18,
4025,
12,
923,
682,
269,
5378,
16,
5378,
262,
63,
20,
65,
469,
30,
327,
2027,
18,
4025,
12,
855,
6926,
269,
5378,
16,
5378,
16,
2021,
262,
63,
20,
65,
2,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4025,
16894,
12,
365,
16,
855,
6926,
16,
2021,
273,
1083,
262,
30,
309,
365,
18,
4538,
471,
486,
2021,
30,
2021,
273,
365,
18,
4538,
309,
486,
2021,
30,
327,
2027,
18,
4025,
12,
923,
682,
269,
5378,
16,
5378,
262,
63,
20,
65,
469,
30,
327,
2027,
18,
4025,
12,
855,
6926,
269,
5378,
16,
5378,
16,
2021,
262,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if os.access("%s/%s" % (curdir, os.path.basename(varvalue)), \ os.R_OK|os.F_OK): try: repl_file_val = \ open("%s/%s" \ % (curdir, os.path.basename(varvalue)), \ "r").readlines() except IOError: register_exception(req=user_info['req'])
|
if varvalue.upper().find("FILE:") == 0: seekvalue_fname = varvalue[5:].strip() seekvalue_fname = os.path.basename(seekvalue_fname).strip() if seekvalue_fname != "": if os.access("%s/%s" % (curdir, seekvalue_fname), \ os.R_OK|os.F_OK): try: repl_file_val = \ open("%s/%s" \ % (curdir, seekvalue_fname), "r").readlines() except IOError: err_msg = "Error in Stamp_Uploaded_Files: The " \ "function attempted to read a LaTex " \ "template variable value from the " \ "following file in the current " \ "submission's working directory: " \ "[%s]. However, an unexpected error " \ "was encountered when doing so. " \ "Please inform the administrator." \ % seekvalue_fname register_exception(req=user_info['req']) raise InvenioWebSubmitFunctionError(err_msg) else: final_varval = "" for line in repl_file_val: final_varval += line final_varval = final_varval.rstrip() latex_template_vars[varname] = final_varval else: latex_template_vars[varname] = ""
|
def Stamp_Uploaded_Files(parameters, curdir, form, user_info=None): """Stamp certain files that have been uploaded during a submission. @param parameters: (dictionary) - must contain: + latex_template: (string) - the name of the LaTeX template that should be used for the creation of the stamp. + latex_template_vars: (string) - a string-ified dictionary of variables to be replaced in the LaTeX template and the values (or names of files in curdir containing the values) with which to replace them. E.G.: { 'TITLE' : 'DEMOTHESIS_TITLE', 'DATE' : 'DEMOTHESIS_DATE' } + files_to_be_stamped: (string) - The directories in which files should be stamped: This is a comma-separated list of directory names. E.g.: DEMOTHESIS_MAIN,DEMOTHESIS_ADDITIONAL + stamp: (string) - the type of stamp to be applied to the files. should be one of: + first (only the first page is stamped); + all (all pages are stamped); + coverpage (a separate cover-page is added to the file as a first page); If all goes according to plan, for each directory in which files are to be stamped, the original, unstamped files should be found in a directory 'files_before_stamping/DIRNAME', and the stamped versions should be found under 'files/DIRNAME'. E.g., for DEMOTHESIS_Main: - Unstamped: files_before_stamping/DEMOTHESIS_Main - Stamped: files/DEMOTHESIS_Main """ ## The file stamper needs to be called with a dictionary of options of ## the following format: ## { 'latex-template' : "", ## TEMPLATE_NAME ## 'latex-template-var' : {}, ## TEMPLATE VARIABLES ## 'input-file' : "", ## INPUT FILE ## 'output-file' : "", ## OUTPUT FILE ## 'stamp' : "", ## STAMP TYPE ## 'verbosity' : 0, ## VERBOSITY (we don't care about it) ## } file_stamper_options = { 'latex-template' : "", 'latex-template-var' : { }, 'input-file' : "", 'output-file' : "", 'stamp' : "", 'verbosity' : 0, } ## A dictionary of arguments to be passed to visit_for_stamping: visit_for_stamping_arguments = { 'curdir' : curdir, 'file_stamper_options' : \ file_stamper_options, 'user_info' : user_info } ## Start by getting the parameter-values from WebSubmit: ## The name of the LaTeX template to be used for stamp creation: latex_template = "%s" % ((type(parameters['latex_template']) is str \ and parameters['latex_template']) or "") ## A string containing the variables/values that should be substituted ## in the final (working) LaTeX template: latex_template_vars_string = "%s" % \ ((type(parameters['latex_template_vars']) is str \ and parameters['latex_template_vars']) or "") ## The type of stamp to be applied to the file(s): stamp = "%s" % ((type(parameters['stamp']) is str and \ parameters['stamp'].lower()) or "") ## The directories in which files should be stamped: ## This is a comma-separated list of directory names. E.g.: ## DEMOTHESIS_MAIN,DEMOTHESIS_ADDITIONAL stamp_content_of = "%s" % ((type(parameters['files_to_be_stamped']) \ is str and parameters['files_to_be_stamped']) \ or "") ## Now split the list (of directories in which to stamp files) on commas: if stamp_content_of.strip() != "": stamping_locations = stamp_content_of.split(",") else: stamping_locations = [] if len(stamping_locations) == 0: ## If there are no items to be stamped, don't continue: return "" ## Strip the LaTeX filename into the basename (All templates should be ## in the template repository): latex_template = os.path.basename(latex_template) ## Convert the string of latex template variables into a dictionary ## of search-term/replacement-term pairs: latex_template_vars = get_dictionary_from_string(latex_template_vars_string) ## For each of the latex variables, check in `CURDIR' for a file with that ## name. If found, use it's contents as the template-variable's value. ## If not, just use the raw value string already held by the template ## variable: latex_template_varnames = latex_template_vars.keys() for varname in latex_template_varnames: ## Get this variable's value: varvalue = latex_template_vars[varname].strip() if not ((varvalue.find("date(") == 0 and varvalue[-1] == ")") or \ (varvalue.find("include(") == 0 and varvalue[-1] == ")")) \ and varvalue != "": ## We don't want to interfere with date() or include() directives, ## so we only do this if the variable value didn't contain them: if os.access("%s/%s" % (curdir, os.path.basename(varvalue)), \ os.R_OK|os.F_OK): ## The template variable's value is a file in `CURDIR'. ## Attempt to use the information contained within it: try: repl_file_val = \ open("%s/%s" \ % (curdir, os.path.basename(varvalue)), \ "r").readlines() except IOError: ## If we can't read the file, don't do anything about it; ## Keep the original value for the variable. register_exception(req=user_info['req']) else: final_varval = "" for line in repl_file_val: final_varval += line final_varval = final_varval.rstrip() ## Replace the variable value with that which has been ## read from the file: latex_template_vars[varname] = final_varval ## Put the 'fixed' values into the file_stamper_options dictionary: file_stamper_options['latex-template'] = latex_template file_stamper_options['latex-template-var'] = latex_template_vars file_stamper_options['stamp'] = stamp for stampdir in stamping_locations: ## Create the full path to the stamp directory - it is considered ## to be under 'curdir' - the working directory for the current ## submission: path_to_stampdir = "%s/files/%s" % (curdir, stampdir.strip()) ## Call os.path.walk, passing it the path to the directory to be ## walked, the visit_for_stamping function (which will call the ## file-stamper for each file within that directory), and the ## dictionary of options to be passed to the file-stamper: try: os.path.walk(path_to_stampdir, \ visit_for_stamping, \ visit_for_stamping_arguments) except InvenioWebSubmitFunctionWarning: ## Unable to stamp the files in stampdir. Register the exception ## and continue to try to stamp the files in the other stampdirs: ## FIXME - The original exception was registered in 'visit'. ## Perhaps we should just send the message contained in this ## warning to the admin? register_exception(req=user_info['req']) continue except InvenioWebSubmitFunctionError, err: ## Unexpected error in stamping. The admin should be contacted ## because it has resulted in an unstable situation with the ## files. They are no longer in a well-defined state - some may ## have been lost and manual intervention by the admin is needed. ## FIXME - should this be reported here, or since we propagate it ## up to websubmit_engine anyway, should we let it register it? register_exception(req=user_info['req']) raise err return ""
|
cbf09564d0d9c9de75f7186de907eac980c3b7a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/cbf09564d0d9c9de75f7186de907eac980c3b7a7/Stamp_Uploaded_Files.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
934,
931,
67,
24585,
67,
2697,
12,
3977,
16,
662,
1214,
16,
646,
16,
729,
67,
1376,
33,
7036,
4672,
3536,
8860,
8626,
1390,
716,
1240,
2118,
9140,
4982,
279,
8515,
18,
632,
891,
1472,
30,
261,
15556,
13,
300,
1297,
912,
30,
397,
25079,
67,
3202,
30,
261,
1080,
13,
300,
326,
508,
434,
326,
21072,
21575,
60,
1542,
716,
1410,
506,
1399,
364,
326,
6710,
434,
326,
14429,
18,
397,
25079,
67,
3202,
67,
4699,
30,
261,
1080,
13,
300,
279,
533,
17,
939,
3880,
434,
3152,
358,
506,
8089,
316,
326,
21072,
21575,
60,
1542,
471,
326,
924,
261,
280,
1257,
434,
1390,
316,
662,
1214,
4191,
326,
924,
13,
598,
1492,
358,
1453,
2182,
18,
512,
18,
43,
29710,
288,
296,
14123,
11,
294,
296,
1639,
49,
1974,
3900,
15664,
67,
14123,
2187,
296,
4594,
11,
225,
294,
296,
1639,
49,
1974,
3900,
15664,
67,
4594,
11,
289,
397,
1390,
67,
869,
67,
2196,
67,
14317,
329,
30,
261,
1080,
13,
300,
1021,
6402,
316,
1492,
1390,
1410,
506,
14429,
329,
30,
1220,
353,
279,
8716,
17,
24622,
666,
434,
1867,
1257,
18,
512,
18,
75,
29710,
2030,
49,
1974,
3900,
15664,
67,
19803,
16,
1639,
49,
1974,
3900,
15664,
67,
8355,
30525,
397,
14429,
30,
261,
1080,
13,
300,
326,
618,
434,
14429,
358,
506,
6754,
358,
326,
1390,
18,
1410,
506,
1245,
434,
30,
397,
1122,
261,
3700,
326,
1122,
1363,
353,
14429,
329,
1769,
397,
777,
261,
454,
4689,
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,
934,
931,
67,
24585,
67,
2697,
12,
3977,
16,
662,
1214,
16,
646,
16,
729,
67,
1376,
33,
7036,
4672,
3536,
8860,
8626,
1390,
716,
1240,
2118,
9140,
4982,
279,
8515,
18,
632,
891,
1472,
30,
261,
15556,
13,
300,
1297,
912,
30,
397,
25079,
67,
3202,
30,
261,
1080,
13,
300,
326,
508,
434,
326,
21072,
21575,
60,
1542,
716,
1410,
506,
1399,
364,
326,
6710,
434,
326,
14429,
18,
397,
25079,
67,
3202,
67,
4699,
30,
261,
1080,
13,
300,
279,
533,
17,
939,
3880,
434,
3152,
358,
506,
8089,
316,
326,
21072,
21575,
60,
1542,
471,
326,
924,
261,
280,
1257,
434,
1390,
316,
662,
1214,
4191,
326,
924,
13,
598,
1492,
358,
1453,
2182,
2
] |
Thread(target=self._doLockSet, args=(['one', 'two'], 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLockSet, args=(['one', 'two', 'three'], 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLockSet, args=('three', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLockSet, args=(['one', 'two'], 0)).start() Thread(target=self._doLockSet, args=(['two', 'three'], 0)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.ls.release() self.assertEqual(self.done.get(True, 1), 'DONE') self.assertEqual(self.done.get(True, 1), 'DONE')
|
self._addThread(target=self._doLockSet, args=(['one', 'two'], 1)) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self._addThread(target=self._doLockSet, args=(['one', 'two', 'three'], 1)) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self._addThread(target=self._doLockSet, args=('three', 1)) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self._addThread(target=self._doLockSet, args=(['one', 'two'], 0)) self._addThread(target=self._doLockSet, args=(['two', 'three'], 0)) self.assertRaises(Queue.Empty, self.done.get_nowait) self.ls.release() self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self.assertEqual(self.done.get_nowait(), 'DONE') @_Repeat
|
def testConcurrentSharedAcquire(self): self.ls.acquire(['one', 'two'], shared=1) Thread(target=self._doLockSet, args=(['one', 'two'], 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLockSet, args=(['one', 'two', 'three'], 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLockSet, args=('three', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLockSet, args=(['one', 'two'], 0)).start() Thread(target=self._doLockSet, args=(['two', 'three'], 0)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.ls.release() self.assertEqual(self.done.get(True, 1), 'DONE') self.assertEqual(self.done.get(True, 1), 'DONE')
|
4607c978b8f973b63c49547f1b8d6061fdbd78d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/4607c978b8f973b63c49547f1b8d6061fdbd78d3/ganeti.locking_unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
18521,
7887,
27761,
12,
2890,
4672,
365,
18,
3251,
18,
1077,
1039,
12,
3292,
476,
2187,
296,
15415,
17337,
5116,
33,
21,
13,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
28657,
3292,
476,
2187,
296,
15415,
17337,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
28657,
3292,
476,
2187,
296,
15415,
2187,
296,
451,
992,
17337,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
33,
2668,
451,
992,
2187,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
28657,
3292,
476,
2187,
296,
15415,
17337,
374,
13,
2934,
1937,
1435,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
28657,
3292,
15415,
2187,
296,
451,
992,
17337,
374,
13,
2934,
1937,
1435,
365,
18,
11231,
12649,
6141,
12,
3183,
18,
1921,
16,
365,
18,
8734,
18,
588,
16,
1053,
16,
374,
18,
22,
13,
365,
18,
3251,
18,
9340,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
365,
18,
11231,
5812,
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,
18521,
7887,
27761,
12,
2890,
4672,
365,
18,
3251,
18,
1077,
1039,
12,
3292,
476,
2187,
296,
15415,
17337,
5116,
33,
21,
13,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
28657,
3292,
476,
2187,
296,
15415,
17337,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
694,
16,
833,
28657,
3292,
476,
2187,
296,
15415,
2187,
296,
451,
992,
17337,
404,
13,
2934,
1937,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
12,
5510,
16,
404,
3631,
296,
26875,
6134,
4884,
12,
3299,
33,
2890,
6315,
2896,
2531,
2
] |
Compress___new__.unwrap_spec = [ObjSpace, W_Root, int]
|
Compress___new__.unwrap_spec = [ObjSpace, W_Root, int, int, int, int, int]
|
def Compress___new__(space, w_subtype, level=rzlib.Z_DEFAULT_COMPRESSION): """ Create a new z_stream and call its initializer. """ stream = space.allocate_instance(Compress, w_subtype) stream = space.interp_w(Compress, stream) Compress.__init__(stream, space, level) return space.wrap(stream)
|
73c850b3db71ca9a722bd8033e4650ce655940ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/73c850b3db71ca9a722bd8033e4650ce655940ae/interp_zlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25698,
31268,
2704,
972,
12,
2981,
16,
341,
67,
21974,
16,
1801,
33,
86,
94,
2941,
18,
62,
67,
5280,
67,
4208,
14227,
4672,
3536,
1788,
279,
394,
998,
67,
3256,
471,
745,
2097,
12562,
18,
3536,
1407,
273,
3476,
18,
16247,
67,
1336,
12,
16552,
16,
341,
67,
21974,
13,
1407,
273,
3476,
18,
24940,
67,
91,
12,
16552,
16,
1407,
13,
25698,
16186,
2738,
972,
12,
3256,
16,
3476,
16,
1801,
13,
327,
3476,
18,
4113,
12,
3256,
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,
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256,
471,
745,
2097,
12562,
18,
3536,
1407,
273,
3476,
18,
16247,
67,
1336,
12,
16552,
16,
341,
67,
21974,
13,
1407,
273,
3476,
18,
24940,
67,
91,
12,
16552,
16,
1407,
13,
25698,
16186,
2738,
972,
12,
3256,
16,
3476,
16,
1801,
13,
327,
3476,
18,
4113,
12,
3256,
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
] |
map=socket_map
|
map = socket_map
|
def poll2 (timeout=0.0, map=None): import poll if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) if map: l = [] for fd, obj in map.iteritems(): flags = 0 if obj.readable(): flags = poll.POLLIN if obj.writable(): flags = flags | poll.POLLOUT if flags: l.append ((fd, flags)) r = poll.poll (l, timeout) for fd, flags in r: obj = map.get(fd) if obj is None: continue readwrite(obj, flags)
|
79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
22,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
1930,
7672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
309,
2021,
353,
486,
599,
30,
468,
2021,
353,
316,
10993,
2021,
273,
509,
12,
4538,
14,
18088,
13,
309,
852,
30,
328,
273,
5378,
364,
5194,
16,
1081,
316,
852,
18,
2165,
3319,
13332,
2943,
273,
374,
309,
1081,
18,
11018,
13332,
2943,
273,
7672,
18,
14232,
20663,
309,
1081,
18,
15699,
13332,
2943,
273,
2943,
571,
7672,
18,
14232,
1502,
1693,
309,
2943,
30,
328,
18,
6923,
14015,
8313,
16,
2943,
3719,
436,
273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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
22,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
1930,
7672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
309,
2021,
353,
486,
599,
30,
468,
2021,
353,
316,
10993,
2021,
273,
509,
12,
4538,
14,
18088,
13,
309,
852,
30,
328,
273,
5378,
364,
5194,
16,
1081,
316,
852,
18,
2165,
3319,
13332,
2943,
273,
374,
309,
1081,
18,
11018,
13332,
2943,
273,
7672,
18,
14232,
20663,
309,
1081,
18,
15699,
13332,
2943,
273,
2943,
571,
7672,
18,
14232,
1502,
1693,
309,
2943,
30,
328,
18,
6923,
14015,
8313,
16,
2943,
3719,
436,
273,
7672,
18,
13835,
261,
80,
16,
2021,
13,
364,
5194,
16,
2943,
316,
436,
30,
1081,
273,
2
] |
trace(2,depth,"_upgrade undid %s %s (csw=%f < w=%f)", (op, pkg, csweight, weight), cs)
|
self.trace(2, "_upgrade undid %s %s (csw=%f < w=%f)", (op, pkg, csweight, weight), cs)
|
def _upgrade(self, pkgs, pending): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth pruneweight = self._pruneweight trace(2, depth, "_upgrade(%s)", (pkgs))
|
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,
389,
15097,
12,
2890,
16,
16922,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15097,
12,
2890,
16,
16922,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
846,
318,
359,
1274,
273,
365,
6315,
683,
318,
359,
1274,
2606,
12,
22,
16,
3598,
16,
4192,
15097,
9275,
87,
2225,
16,
261,
25376,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cmd = os.path.join (self.terminator.origcwd, sys.argv[0])
|
cmd = os.path.join (self.cwd, sys.argv[0])
|
def key_new_window(self): cmd = sys.argv[0] if not os.path.isabs(cmd): # Command is not an absolute path. Figure out where we are cmd = os.path.join (self.terminator.origcwd, sys.argv[0]) if not os.path.isfile(cmd): # we weren't started as ./terminator in a path. Give up err('Unable to locate Terminator') return False dbg("Spawning: %s" % cmd) subprocess.Popen([cmd,])
|
f56ea646bb76352d69be8182ece9b2d9bba6b668 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/f56ea646bb76352d69be8182ece9b2d9bba6b668/terminal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
2704,
67,
5668,
12,
2890,
4672,
1797,
273,
2589,
18,
19485,
63,
20,
65,
225,
309,
486,
1140,
18,
803,
18,
291,
5113,
12,
4172,
4672,
468,
3498,
353,
486,
392,
4967,
589,
18,
18818,
596,
1625,
732,
854,
1797,
273,
1140,
18,
803,
18,
5701,
261,
2890,
18,
11089,
16,
2589,
18,
19485,
63,
20,
5717,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
4172,
4672,
468,
732,
22646,
275,
1404,
5746,
487,
263,
19,
9505,
639,
316,
279,
589,
18,
22374,
731,
393,
2668,
3370,
358,
10627,
6820,
4240,
6134,
327,
1083,
225,
28966,
2932,
3389,
2219,
2093,
30,
738,
87,
6,
738,
1797,
13,
6652,
18,
52,
3190,
3816,
4172,
16,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
67,
2704,
67,
5668,
12,
2890,
4672,
1797,
273,
2589,
18,
19485,
63,
20,
65,
225,
309,
486,
1140,
18,
803,
18,
291,
5113,
12,
4172,
4672,
468,
3498,
353,
486,
392,
4967,
589,
18,
18818,
596,
1625,
732,
854,
1797,
273,
1140,
18,
803,
18,
5701,
261,
2890,
18,
11089,
16,
2589,
18,
19485,
63,
20,
5717,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
4172,
4672,
468,
732,
22646,
275,
1404,
5746,
487,
263,
19,
9505,
639,
316,
279,
589,
18,
22374,
731,
393,
2668,
3370,
358,
10627,
6820,
4240,
6134,
327,
1083,
225,
28966,
2932,
3389,
2219,
2093,
30,
738,
87,
6,
738,
1797,
13,
6652,
18,
52,
3190,
3816,
4172,
16,
5717,
2
] |
return '%6d %6d %6d %.2f %.2f %.2f' % (self.nTP, self.nFP, self.nFN, self.FNRate(), self.sensitivity(), self.PPV())
|
return '%6d %6d %6d %.3f %.3f %.3f' % (self.nTP, self.nFP, self.nFN, self.FNRate(), self.sensitivity(), self.PPV())
|
def __str__(self): return '%6d %6d %6d %.2f %.2f %.2f' % (self.nTP, self.nFP, self.nFN, self.FNRate(), self.sensitivity(), self.PPV())
|
2c7cb912f003d9ad5ac76536b1e08799d8b5029e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2773/2c7cb912f003d9ad5ac76536b1e08799d8b5029e/snpSelector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
1995,
26,
72,
738,
26,
72,
738,
26,
72,
12639,
22,
74,
12639,
22,
74,
12639,
22,
74,
11,
738,
261,
2890,
18,
82,
11130,
16,
365,
18,
82,
30246,
16,
365,
18,
82,
19793,
16,
365,
18,
19793,
4727,
9334,
365,
18,
87,
773,
20862,
9334,
365,
18,
6584,
58,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
1995,
26,
72,
738,
26,
72,
738,
26,
72,
12639,
22,
74,
12639,
22,
74,
12639,
22,
74,
11,
738,
261,
2890,
18,
82,
11130,
16,
365,
18,
82,
30246,
16,
365,
18,
82,
19793,
16,
365,
18,
19793,
4727,
9334,
365,
18,
87,
773,
20862,
9334,
365,
18,
6584,
58,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
v2 = ((5*x + 4*np.sqrt(2*np.pi)) * np.exp(-x**2/2.) / np.power(2*np.pi, 1.5) + 3 * scipy.stats.norm.sf(x))
|
v2 = 0 for j in range(search.mu.shape[0]): v2 += ostat.density(x, j) * search.mu[j]
|
def test_search(self): """ Test that the search region works. """
|
ba76b4fab0747d1377df6816793c47ebf52b7b6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12658/ba76b4fab0747d1377df6816793c47ebf52b7b6a/test_rft.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3072,
12,
2890,
4672,
3536,
7766,
716,
326,
1623,
3020,
6330,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3072,
12,
2890,
4672,
3536,
7766,
716,
326,
1623,
3020,
6330,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
regex = r'^\s(?P<key>.+?)::\s(?P<val>.*?)\s*$'
|
regex = r'^ (?P<key>.+?):: (?P<val>.*?) *$'
|
def __getitem__(self, key): return self._dict[key]
|
02ba16876da84ed0f768d64828803f9d920e87a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/02ba16876da84ed0f768d64828803f9d920e87a5/wikidicts.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
327,
365,
6315,
1576,
63,
856,
65,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.v += self.dt * f dr = self.dt * self.v normdr = np.sqrt(np.vdot(dr, dr)) if normdr > self.maxmove: dr = self.maxmove * dr / normdr r = atoms.get_positions() atoms.set_positions(r + dr) self.dump((self.v, self.dt))
|
self.v += self.dt * f dr = self.dt * self.v normdr = np.sqrt(np.vdot(dr, dr)) if normdr > self.maxmove: dr = self.maxmove * dr / normdr r = atoms.get_positions() atoms.set_positions(r + dr) self.dump((self.v, self.dt))
|
def step(self,f): atoms = self.atoms if self.v is None: self.v = np.zeros((len(atoms), 3)) else: vf = np.vdot(f, self.v) if vf > 0.0: self.v = (1.0 - self.a) * self.v + self.a * f / np.sqrt( np.vdot(f, f)) * np.sqrt(np.vdot(self.v, self.v)) if self.Nsteps > self.Nmin: self.dt = min(self.dt * self.finc, self.dtmax) self.a *= self.fa self.Nsteps += 1 else: self.v[:] *= 0.0 self.a = self.astart self.dt *= self.fdec self.Nsteps = 0
|
4110c4c326894725f5eb0a5bb0ba9224f9acf61e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/4110c4c326894725f5eb0a5bb0ba9224f9acf61e/fire.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
74,
4672,
9006,
273,
365,
18,
14937,
309,
365,
18,
90,
353,
599,
30,
365,
18,
90,
273,
1130,
18,
22008,
12443,
1897,
12,
14937,
3631,
890,
3719,
469,
30,
28902,
273,
1130,
18,
90,
9811,
12,
74,
16,
365,
18,
90,
13,
309,
28902,
405,
374,
18,
20,
30,
365,
18,
90,
273,
261,
21,
18,
20,
300,
365,
18,
69,
13,
380,
365,
18,
90,
397,
365,
18,
69,
380,
284,
342,
1130,
18,
24492,
12,
1130,
18,
90,
9811,
12,
74,
16,
284,
3719,
380,
1130,
18,
24492,
12,
6782,
18,
90,
9811,
12,
2890,
18,
90,
16,
365,
18,
90,
3719,
309,
365,
18,
50,
8986,
405,
365,
18,
50,
1154,
30,
365,
18,
7510,
273,
1131,
12,
2890,
18,
7510,
380,
365,
18,
926,
71,
16,
365,
18,
7510,
1896,
13,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
74,
4672,
9006,
273,
365,
18,
14937,
309,
365,
18,
90,
353,
599,
30,
365,
18,
90,
273,
1130,
18,
22008,
12443,
1897,
12,
14937,
3631,
890,
3719,
469,
30,
28902,
273,
1130,
18,
90,
9811,
12,
74,
16,
365,
18,
90,
13,
309,
28902,
405,
374,
18,
20,
30,
365,
18,
90,
273,
261,
21,
18,
20,
300,
365,
18,
69,
13,
380,
365,
18,
90,
397,
365,
18,
69,
380,
284,
342,
1130,
18,
24492,
12,
1130,
18,
90,
9811,
12,
74,
16,
284,
3719,
380,
1130,
18,
24492,
12,
6782,
18,
90,
9811,
12,
2890,
18,
90,
16,
365,
18,
90,
3719,
309,
365,
18,
50,
8986,
405,
365,
18,
50,
2
] |
template = "genshi:tw2.forms.templates.textarea"
|
template = "tw2.forms.templates.textarea"
|
def prepare(self): super(FormField, self).prepare()
|
92253a716ba72263a78c1fe4a79a64b2d2d8568e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11476/92253a716ba72263a78c1fe4a79a64b2d2d8568e/widgets.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
4672,
2240,
12,
27317,
16,
365,
2934,
9366,
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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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,
2911,
12,
2890,
4672,
2240,
12,
27317,
16,
365,
2934,
9366,
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,
-100
] |
proj.window = const.WINDOW_LEVEL['Bone'][0] proj.level = const.WINDOW_LEVEL['Bone'][1]
|
proj.window = window = const.WINDOW_LEVEL['Bone'][0] proj.level = level = const.WINDOW_LEVEL['Bone'][1]
|
def ImportDirectory(self, pubsub_evt=None, dir_=None): """ Import medical images (if any) and generate vtkImageData, saving data inside Project instance. """
|
e64f9318dd87d5cb57b3180a563b2be82061d9b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/e64f9318dd87d5cb57b3180a563b2be82061d9b2/control.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
2853,
12,
2890,
16,
23288,
67,
73,
11734,
33,
7036,
16,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
2853,
12,
2890,
16,
23288,
67,
73,
11734,
33,
7036,
16,
1577,
67,
33,
7036,
4672,
3536,
6164,
6735,
1706,
4602,
261,
430,
1281,
13,
471,
2103,
13659,
2040,
751,
16,
12392,
501,
4832,
5420,
791,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'''
|
"""
|
def field(self, size=30, default=None, format=_marker, popcal=True): '''Render a form edit field for the property
|
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
12,
2890,
16,
963,
33,
5082,
16,
805,
33,
7036,
16,
740,
33,
67,
11145,
16,
1843,
771,
33,
5510,
4672,
9163,
3420,
279,
646,
3874,
652,
364,
326,
1272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
652,
12,
2890,
16,
963,
33,
5082,
16,
805,
33,
7036,
16,
740,
33,
67,
11145,
16,
1843,
771,
33,
5510,
4672,
9163,
3420,
279,
646,
3874,
652,
364,
326,
1272,
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
] |
ListType=type([])
|
def field2boolean(v): return v
|
2fc8078229a0faeb3cd82abd2de8c6038f7c2090 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2fc8078229a0faeb3cd82abd2de8c6038f7c2090/Converters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
22,
6494,
12,
90,
4672,
327,
331,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
652,
22,
6494,
12,
90,
4672,
327,
331,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print "======== find_vcs in cci"
|
def find_vcs(self,invoice_id): print "======== find_vcs in cci" item = pooler.get_pool(self.cr.dbname).get('account.invoice').browse(self.cr,self.uid,invoice_id) vcs ='' if item.number: vcs3=str(item.number).split('/')[1] vcs1='0'+ str(item.date_invoice[2:4]) if len(str(vcs3))>=5: vcs2=str(item.number[3]) + str(vcs3[0:5]) elif len(str(vcs3))==4: vcs2=str(item.number[3]) + '0' +str(vcs3) else: vcs2=str(item.number[3]) + '00' +str(vcs3)
|
92773bb67077cb554cf306893a5219adb89cdd1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/92773bb67077cb554cf306893a5219adb89cdd1b/special_message_invoice.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
18982,
12,
2890,
16,
16119,
67,
350,
4672,
761,
273,
2845,
264,
18,
588,
67,
6011,
12,
2890,
18,
3353,
18,
20979,
2934,
588,
2668,
4631,
18,
16119,
16063,
25731,
12,
2890,
18,
3353,
16,
2890,
18,
1911,
16,
16119,
67,
350,
13,
20255,
273,
6309,
309,
761,
18,
2696,
30,
20255,
23,
33,
701,
12,
1726,
18,
2696,
2934,
4939,
2668,
2473,
25146,
21,
65,
20255,
21,
2218,
20,
11,
15,
609,
12,
1726,
18,
712,
67,
16119,
63,
22,
30,
24,
5717,
309,
562,
12,
701,
12,
18982,
23,
3719,
34,
33,
25,
30,
20255,
22,
33,
701,
12,
1726,
18,
2696,
63,
23,
5717,
397,
609,
12,
18982,
23,
63,
20,
30,
25,
5717,
1327,
562,
12,
701,
12,
18982,
23,
3719,
631,
24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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
18982,
12,
2890,
16,
16119,
67,
350,
4672,
761,
273,
2845,
264,
18,
588,
67,
6011,
12,
2890,
18,
3353,
18,
20979,
2934,
588,
2668,
4631,
18,
16119,
16063,
25731,
12,
2890,
18,
3353,
16,
2890,
18,
1911,
16,
16119,
67,
350,
13,
20255,
273,
6309,
309,
761,
18,
2696,
30,
20255,
23,
33,
701,
12,
1726,
18,
2696,
2934,
4939,
2668,
2473,
25146,
21,
65,
20255,
21,
2218,
20,
11,
15,
609,
12,
1726,
18,
712,
67,
16119,
63,
22,
30,
24,
5717,
309,
562,
12,
701,
12,
18982,
23,
3719,
34,
33,
25,
30,
20255,
22,
33,
701,
12,
1726,
18,
2696,
63,
23,
5717,
397,
609,
12,
18982,
23,
63,
20,
30,
25,
2
] |
|
if filename.endswith('.html') or filename.endswith('.htm'):
|
basefn, ext = os.path.splitext(filename) if ext in ('.html', '.htm'):
|
def _load_stream(self, filename, f): if filename.endswith('.html') or filename.endswith('.htm'): self._load_html(f) else: self._load_plain_text(f)
|
b14075b008cbe5a0fb096ca57a2440f9540a006b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14744/b14075b008cbe5a0fb096ca57a2440f9540a006b/model_text.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
3256,
12,
2890,
16,
1544,
16,
284,
4672,
1026,
4293,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
309,
1110,
316,
7707,
18,
2620,
2187,
2418,
31180,
11,
4672,
365,
6315,
945,
67,
2620,
12,
74,
13,
469,
30,
365,
6315,
945,
67,
7446,
67,
955,
12,
74,
13,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
3256,
12,
2890,
16,
1544,
16,
284,
4672,
1026,
4293,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
309,
1110,
316,
7707,
18,
2620,
2187,
2418,
31180,
11,
4672,
365,
6315,
945,
67,
2620,
12,
74,
13,
469,
30,
365,
6315,
945,
67,
7446,
67,
955,
12,
74,
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
] |
c = IECoreMaya.FromMayaDagNodeConverter.create( str( locatorTransform ) )
|
c = IECoreMaya.FromMayaDagNodeConverter.create( str( locatorTransform ), IECore.TypeId.TransformationMatrixdData )
|
def test( self ) : locatorTransform = maya.cmds.spaceLocator()[0] c = IECoreMaya.FromMayaDagNodeConverter.create( str( locatorTransform ) ) self.assertEqual( c.typeId(), IECoreMaya.FromMayaTransformConverter.staticTypeId() ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d() ) maya.cmds.xform( locatorTransform, translation=( 1, 2, 3 ) ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d.createTranslated( IECore.V3d( 1, 2, 3 ) ) ) group = maya.cmds.group( locatorTransform ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d.createTranslated( IECore.V3d( 1, 2, 3 ) ) ) maya.cmds.xform( group, translation=( 1, 0, 10 ) ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d.createTranslated( IECore.V3d( 2, 2, 13 ) ) ) c["space"].setValue( "Local" ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d.createTranslated( IECore.V3d( 1, 2, 3 ) ) ) locatorShape = maya.cmds.listRelatives( locatorTransform, children=True )[0] c = IECoreMaya.FromMayaTransformConverter( str( locatorShape ) ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d.createTranslated( IECore.V3d( 2, 2, 13 ) ) ) c["space"].setValue( "Local" ) t = c.convert() self.assert_( t.isInstanceOf( IECore.TransformationMatrixdData.staticTypeId() ) ) self.assertEqual( t.value.transform, IECore.M44d() )
|
0a076f4b6938e7d84aed079a7e9812cabf82581d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/0a076f4b6938e7d84aed079a7e9812cabf82581d/FromMayaTransformConverterTest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
365,
262,
294,
225,
8871,
4059,
273,
2026,
69,
18,
24680,
18,
2981,
5786,
1435,
63,
20,
65,
225,
276,
273,
10897,
4670,
49,
528,
69,
18,
1265,
49,
528,
69,
40,
346,
907,
5072,
18,
2640,
12,
609,
12,
8871,
4059,
262,
16,
10897,
4670,
18,
11731,
18,
15292,
4635,
72,
751,
262,
225,
365,
18,
11231,
5812,
12,
276,
18,
723,
548,
9334,
10897,
4670,
49,
528,
69,
18,
1265,
49,
528,
69,
4059,
5072,
18,
3845,
11731,
1435,
262,
225,
268,
273,
276,
18,
6283,
1435,
365,
18,
11231,
67,
12,
268,
18,
291,
1442,
951,
12,
10897,
4670,
18,
15292,
4635,
72,
751,
18,
3845,
11731,
1435,
262,
262,
365,
18,
11231,
5812,
12,
268,
18,
1132,
18,
6547,
16,
10897,
4670,
18,
49,
6334,
72,
1435,
262,
225,
2026,
69,
18,
24680,
18,
92,
687,
12,
8871,
4059,
16,
4794,
28657,
404,
16,
576,
16,
890,
262,
262,
225,
268,
273,
276,
18,
6283,
1435,
365,
18,
11231,
67,
12,
268,
18,
291,
1442,
951,
12,
10897,
4670,
18,
15292,
4635,
72,
751,
18,
3845,
11731,
1435,
262,
262,
365,
18,
11231,
5812,
12,
268,
18,
1132,
18,
6547,
16,
10897,
4670,
18,
49,
6334,
72,
18,
2640,
20421,
12,
10897,
4670,
18,
58,
23,
72,
12,
404,
16,
576,
16,
890,
262,
262,
262,
225,
1041,
273,
2026,
69,
18,
24680,
18,
1655,
12,
8871,
4059,
262,
225,
268,
273,
276,
18,
6283,
1435,
365,
18,
11231,
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,
1842,
12,
365,
262,
294,
225,
8871,
4059,
273,
2026,
69,
18,
24680,
18,
2981,
5786,
1435,
63,
20,
65,
225,
276,
273,
10897,
4670,
49,
528,
69,
18,
1265,
49,
528,
69,
40,
346,
907,
5072,
18,
2640,
12,
609,
12,
8871,
4059,
262,
16,
10897,
4670,
18,
11731,
18,
15292,
4635,
72,
751,
262,
225,
365,
18,
11231,
5812,
12,
276,
18,
723,
548,
9334,
10897,
4670,
49,
528,
69,
18,
1265,
49,
528,
69,
4059,
5072,
18,
3845,
11731,
1435,
262,
225,
268,
273,
276,
18,
6283,
1435,
365,
18,
11231,
67,
12,
268,
18,
291,
1442,
951,
12,
10897,
4670,
18,
15292,
4635,
72,
751,
18,
3845,
11731,
1435,
262,
262,
365,
18,
11231,
2
] |
e = re.compile(parts[1], re.I)
|
e = re.compile(parts[1])
|
def handle_pubmsg(connection, event): global message_buffer, MAX_MESSAGES, last_message nick = event.source().partition("!")[0] msg = event.arguments()[0] if msg.startswith('s/'): # handle regex parts = msg.split('/') # now flood protect! now = datetime.now() delta = now - last_message last_message = now if delta < timedelta(seconds=5): # 5 seconds between requests # any more are ignored print "Flood protection hit, %s of %s seconds were waited" % (delta.seconds, timedelta(seconds=5).seconds) connection.kick(event.target(), nick, 'Flood protection activated') return if len(message_buffer) == 0: connection.privmsg(event.target(), '%s: message buffer is empty' % nick) return if len(parts) == 3: connection.privmsg(event.target(), '%s: invalid regular expression, you forgot the trailing slash, dummy' % nick) return if len(parts) != 4: # not a valid regex connection.privmsg(event.target(), '%s: invalid regular expression, not the right amount of slashes' % nick) return # find messages matching the string if len(parts[1]) == 0: connection.privmsg(event.target(), '%s: original string is empty' % nick) return ignore_case = 'i' in parts[3] e = None try: if ignore_case: e = re.compile(parts[1], re.I) else: e = re.compile(parts[1], re.I) except Exception, ex: connection.privmsg(event.target(), '%s: failure compiling regular expression: %s' % (nick, ex)) return # now we have a valid regular expression matcher! for x in range(len(message_buffer)-1, -1, -1): if e.search(message_buffer[x][1]) != None: # match found! new_message = [] # replace the message in the buffer try: new_message = [message_buffer[x][0], e.sub(parts[2], message_buffer[x][1]).replace('\n','').replace('\r','')[:200]] del message_buffer[x] message_buffer.append(new_message) except Exception, ex: connection.privmsg(event.target(), '%s: failure replacing: %s' % (nick, ex)) return # now print the new text print new_message connection.privmsg(event.target(), ('<%s> %s' % (new_message[0], new_message[1]))[:200]) return # no match found connection.privmsg(event.target(), '%s: no match found' % nick) else: # add to buffer message_buffer.append([nick, msg[:200]]) # trim the buffer message_buffer = message_buffer[-MAX_MESSAGES:]
|
a51c581d30c1bd3b7ad4b1ec6125aa250377c9d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12995/a51c581d30c1bd3b7ad4b1ec6125aa250377c9d0/regexbot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
10174,
3576,
12,
4071,
16,
871,
4672,
2552,
883,
67,
4106,
16,
4552,
67,
26195,
16,
1142,
67,
2150,
10909,
273,
871,
18,
3168,
7675,
10534,
2932,
4442,
25146,
20,
65,
1234,
273,
871,
18,
7099,
1435,
63,
20,
65,
225,
309,
1234,
18,
17514,
1918,
2668,
87,
2473,
4672,
468,
1640,
3936,
2140,
273,
1234,
18,
4939,
2668,
2473,
13,
225,
468,
2037,
20802,
369,
17151,
5,
2037,
273,
3314,
18,
3338,
1435,
3622,
273,
2037,
300,
1142,
67,
2150,
1142,
67,
2150,
273,
2037,
225,
309,
3622,
411,
10661,
12,
7572,
33,
25,
4672,
468,
1381,
3974,
3086,
3285,
468,
1281,
1898,
854,
5455,
1172,
315,
42,
383,
369,
17862,
6800,
16,
738,
87,
434,
738,
87,
3974,
4591,
2529,
329,
6,
738,
261,
9878,
18,
7572,
16,
10661,
12,
7572,
33,
25,
2934,
7572,
13,
1459,
18,
79,
1200,
12,
2575,
18,
3299,
9334,
10909,
16,
296,
42,
383,
369,
17862,
14892,
6134,
225,
327,
225,
309,
562,
12,
2150,
67,
4106,
13,
422,
374,
30,
1459,
18,
11365,
3576,
12,
2575,
18,
3299,
9334,
1995,
87,
30,
883,
1613,
353,
1008,
11,
738,
10909,
13,
327,
225,
309,
562,
12,
6019,
13,
422,
890,
30,
1459,
18,
11365,
3576,
12,
2575,
18,
3299,
9334,
1995,
87,
30,
2057,
6736,
2652,
16,
1846,
364,
13212,
326,
7341,
9026,
16,
9609,
11,
738,
10909,
13,
327,
225,
309,
562,
12,
6019,
13,
480,
1059,
30,
468,
486,
279,
923,
3936,
1459,
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,
1640,
67,
10174,
3576,
12,
4071,
16,
871,
4672,
2552,
883,
67,
4106,
16,
4552,
67,
26195,
16,
1142,
67,
2150,
10909,
273,
871,
18,
3168,
7675,
10534,
2932,
4442,
25146,
20,
65,
1234,
273,
871,
18,
7099,
1435,
63,
20,
65,
225,
309,
1234,
18,
17514,
1918,
2668,
87,
2473,
4672,
468,
1640,
3936,
2140,
273,
1234,
18,
4939,
2668,
2473,
13,
225,
468,
2037,
20802,
369,
17151,
5,
2037,
273,
3314,
18,
3338,
1435,
3622,
273,
2037,
300,
1142,
67,
2150,
1142,
67,
2150,
273,
2037,
225,
309,
3622,
411,
10661,
12,
7572,
33,
25,
4672,
468,
1381,
3974,
3086,
3285,
468,
1281,
1898,
854,
5455,
1172,
315,
42,
383,
369,
17862,
6800,
16,
738,
87,
2
] |
format the mo file, default to 78 (optional).
|
format the mo file, default to 78 (optional), - *encoding*: string, the encoding to use, defaults to "default_encoding" global variable (optional), - *check_for_duplicates*: whether to check for duplicate entries when adding entries to the file, default: False (optional).
|
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor.
|
9d732105697624731ed08ef764908b70660f97db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/9d732105697624731ed08ef764908b70660f97db/polib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13543,
33,
7036,
16,
2193,
2819,
33,
8285,
16,
2688,
33,
1886,
67,
5999,
4672,
3536,
11417,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13543,
33,
7036,
16,
2193,
2819,
33,
8285,
16,
2688,
33,
1886,
67,
5999,
4672,
3536,
11417,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
output(u'Deleted page %s' % self.aslink())
|
output(u'Deleted page %s' % self.aslink(forceInterwiki = True))
|
def delete(self, reason=None, prompt=True, throttle=True): """Deletes the page from the wiki.
|
0f12fda07ed68344bb75cde28e607e646bc2461b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/0f12fda07ed68344bb75cde28e607e646bc2461b/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3971,
33,
7036,
16,
6866,
33,
5510,
16,
18304,
33,
5510,
4672,
3536,
7551,
326,
1363,
628,
326,
9050,
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,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
1363,
628,
326,
9050,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if flag == "stdout":
|
if self.flag == "stdout":
|
def write (self, data): try: self.to.write(data) except IOError: if flag == "stdout": # Certainly hope we never end up here pass else: log.error("Could not write data '%s' to pipe '%s'" % (data, repr(self.to))) if log: log.debug (data, self.flag) #self.flush()
|
037f061f27a33fff0e50cb1f06a9afa2a840494a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/037f061f27a33fff0e50cb1f06a9afa2a840494a/Log.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
261,
2890,
16,
501,
4672,
775,
30,
365,
18,
869,
18,
2626,
12,
892,
13,
1335,
8340,
30,
309,
365,
18,
6420,
422,
315,
10283,
6877,
468,
11921,
530,
715,
27370,
732,
5903,
679,
731,
2674,
1342,
469,
30,
613,
18,
1636,
2932,
4445,
486,
1045,
501,
1995,
87,
11,
358,
6010,
1995,
87,
4970,
738,
261,
892,
16,
8480,
12,
2890,
18,
869,
20349,
309,
613,
30,
613,
18,
4148,
261,
892,
16,
365,
18,
6420,
13,
468,
2890,
18,
11330,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
1045,
261,
2890,
16,
501,
4672,
775,
30,
365,
18,
869,
18,
2626,
12,
892,
13,
1335,
8340,
30,
309,
365,
18,
6420,
422,
315,
10283,
6877,
468,
11921,
530,
715,
27370,
732,
5903,
679,
731,
2674,
1342,
469,
30,
613,
18,
1636,
2932,
4445,
486,
1045,
501,
1995,
87,
11,
358,
6010,
1995,
87,
4970,
738,
261,
892,
16,
8480,
12,
2890,
18,
869,
20349,
309,
613,
30,
613,
18,
4148,
261,
892,
16,
365,
18,
6420,
13,
468,
2890,
18,
11330,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=4$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2) [a(1)=5, a(2)=25]$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song et al., Extremes of permanents of (0,1)-matrices, Lin. Algebra and its Applic. 373 (2003), p. 197-210. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A090014;a Permanent of (0,1)-matrix of size n X (n+d) with d=4 and n-1 zeros not on a line. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 5 sage: a(2) 25 sage: a.offset 1 sage: a(8) 11016595 sage: a(22) 7469733600354446865509725 sage: a.list(9) [5, 25, 155, 1135, 9545, 90445, 952175, 11016595, 138864365] AUTHOR: -- Jaap Spies (2007-01-23) """ def __init__(self):
|
def __init__(self): r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=4$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2) [a(1)=5, a(2)=25]$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song et al., Extremes of permanents of (0,1)-matrices, Lin. Algebra and its Applic. 373 (2003), p. 197-210. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A090014;a Permanent of (0,1)-matrix of size n X (n+d) with d=4 and n-1 zeros not on a line. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 5 sage: a(2) 25 sage: a.offset 1 sage: a(8) 11016595 sage: a(22) 7469733600354446865509725 sage: a.list(9) [5, 25, 155, 1135, 9545, 90445, 952175, 11016595, 138864365] AUTHOR: -- Jaap Spies (2007-01-23) """
|
def _eval(self, n): if n == 1: return ZZ(4) else: return sloane.A000261(n+2) + sloane.A000261(n+1)
|
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,
309,
290,
422,
404,
30,
327,
2285,
62,
12,
24,
13,
469,
30,
327,
225,
272,
383,
8806,
18,
37,
17954,
9498,
12,
82,
15,
22,
13,
397,
272,
383,
8806,
18,
37,
17954,
9498,
12,
82,
15,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
2285,
62,
12,
24,
13,
469,
30,
327,
225,
272,
383,
8806,
18,
37,
17954,
9498,
12,
82,
15,
22,
13,
397,
272,
383,
8806,
18,
37,
17954,
9498,
12,
82,
15,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return [(R!a)/(R!T2) : a in avec];
|
return [(R!a)/(R!T3) : a in avec];
|
def theta3_qexp(prec=10, var='q'):
|
cd2162e80ddbc1026a68115673c375004c025afc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/cd2162e80ddbc1026a68115673c375004c025afc/half_integral.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
23,
67,
85,
2749,
12,
4036,
33,
2163,
16,
569,
2218,
85,
11,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
23,
67,
85,
2749,
12,
4036,
33,
2163,
16,
569,
2218,
85,
11,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if abstarget != origsrc and not opts['dry_run']:
|
if abstarget != origsrc and not opts.get('dry_run'):
|
def copy(origsrc, abssrc, relsrc, target, exact): abstarget = util.canonpath(repo.root, cwd, target) reltarget = util.pathto(cwd, abstarget) prevsrc = targets.get(abstarget) if prevsrc is not None: ui.warn(_('%s: not overwriting - %s collides with %s\n') % (reltarget, abssrc, prevsrc)) return if (not opts['after'] and os.path.exists(reltarget) or opts['after'] and repo.dirstate.state(abstarget) not in '?r'): if not opts['force']: ui.warn(_('%s: not overwriting - file exists\n') % reltarget) return if not opts['after'] and not opts['dry_run']: os.unlink(reltarget) if opts['after']: if not os.path.exists(reltarget): return else: targetdir = os.path.dirname(reltarget) or '.' if not os.path.isdir(targetdir) and not opts['dry_run']: os.makedirs(targetdir) try: restore = repo.dirstate.state(abstarget) == 'r' if restore and not opts['dry_run']: repo.undelete([abstarget], wlock) try: if not opts['dry_run']: shutil.copyfile(relsrc, reltarget) shutil.copymode(relsrc, reltarget) restore = False finally: if restore: repo.remove([abstarget], wlock) except shutil.Error, inst: raise util.Abort(str(inst)) except IOError, inst: if inst.errno == errno.ENOENT: ui.warn(_('%s: deleted in working copy\n') % relsrc) else: ui.warn(_('%s: cannot copy - %s\n') % (relsrc, inst.strerror)) errors += 1 return if ui.verbose or not exact: ui.status(_('copying %s to %s\n') % (relsrc, reltarget)) targets[abstarget] = abssrc if abstarget != origsrc and not opts['dry_run']: repo.copy(origsrc, abstarget, wlock) copied.append((abssrc, relsrc, exact))
|
eac1cc2728cff97d7c5979a44f6db1f0de57bcda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/eac1cc2728cff97d7c5979a44f6db1f0de57bcda/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
4949,
4816,
16,
1223,
1049,
1310,
16,
1279,
4816,
16,
1018,
16,
5565,
4672,
1223,
334,
826,
273,
1709,
18,
4169,
265,
803,
12,
7422,
18,
3085,
16,
7239,
16,
1018,
13,
1279,
3299,
273,
1709,
18,
803,
869,
12,
11089,
16,
1223,
334,
826,
13,
2807,
4816,
273,
5774,
18,
588,
12,
378,
334,
826,
13,
309,
2807,
4816,
353,
486,
599,
30,
5915,
18,
8935,
24899,
29909,
87,
30,
486,
23492,
300,
738,
87,
4508,
4369,
598,
738,
87,
64,
82,
6134,
738,
261,
2878,
3299,
16,
1223,
1049,
1310,
16,
2807,
4816,
3719,
327,
309,
261,
902,
1500,
3292,
5205,
3546,
471,
1140,
18,
803,
18,
1808,
12,
2878,
3299,
13,
578,
1500,
3292,
5205,
3546,
471,
3538,
18,
72,
920,
340,
18,
2019,
12,
378,
334,
826,
13,
486,
316,
13023,
86,
11,
4672,
309,
486,
1500,
3292,
5734,
3546,
30,
5915,
18,
8935,
24899,
29909,
87,
30,
486,
23492,
300,
585,
1704,
64,
82,
6134,
738,
1279,
3299,
13,
327,
309,
486,
1500,
3292,
5205,
3546,
471,
486,
1500,
3292,
25011,
67,
2681,
3546,
30,
1140,
18,
318,
1232,
12,
2878,
3299,
13,
309,
1500,
3292,
5205,
3546,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
2878,
3299,
4672,
327,
469,
30,
1018,
1214,
273,
1140,
18,
803,
18,
12287,
12,
2878,
3299,
13,
578,
2611,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3299,
1214,
13,
471,
486,
1500,
3292,
25011,
67,
2681,
3546,
30,
1140,
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,
12,
4949,
4816,
16,
1223,
1049,
1310,
16,
1279,
4816,
16,
1018,
16,
5565,
4672,
1223,
334,
826,
273,
1709,
18,
4169,
265,
803,
12,
7422,
18,
3085,
16,
7239,
16,
1018,
13,
1279,
3299,
273,
1709,
18,
803,
869,
12,
11089,
16,
1223,
334,
826,
13,
2807,
4816,
273,
5774,
18,
588,
12,
378,
334,
826,
13,
309,
2807,
4816,
353,
486,
599,
30,
5915,
18,
8935,
24899,
29909,
87,
30,
486,
23492,
300,
738,
87,
4508,
4369,
598,
738,
87,
64,
82,
6134,
738,
261,
2878,
3299,
16,
1223,
1049,
1310,
16,
2807,
4816,
3719,
327,
309,
261,
902,
1500,
3292,
5205,
3546,
471,
1140,
18,
803,
18,
1808,
12,
2878,
3299,
13,
578,
1500,
2
] |
return "No prior dumps of this database stored."; date = prettyDate(raw)
|
return "No prior dumps of this database stored." date = WikiDump.prettyDate(raw)
|
def reportPreviousDump(self, done): """Produce a link to the previous dump, if any""" try: raw = self.wiki.latestDump(self.dbName, -2) except: return "No prior dumps of this database stored."; date = prettyDate(raw) if done: prefix = "" message = "Last dumped on" else: prefix = "This dump is in progress; see also the " message = "previous dump from" return "%s<a href=\"../%s/\">%s %s</a>" % (prefix, raw, message, date)
|
ace9f02ecf09a1cdcca9c238e4f7bea4fcc101f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9870/ace9f02ecf09a1cdcca9c238e4f7bea4fcc101f1/worker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
8351,
10628,
12,
2890,
16,
2731,
4672,
3536,
25884,
279,
1692,
358,
326,
2416,
4657,
16,
309,
1281,
8395,
775,
30,
1831,
273,
365,
18,
13044,
18,
13550,
10628,
12,
2890,
18,
1966,
461,
16,
300,
22,
13,
1335,
30,
327,
315,
2279,
6432,
6711,
434,
333,
2063,
4041,
1199,
1509,
273,
28268,
10628,
18,
19073,
1626,
12,
1899,
13,
309,
2731,
30,
1633,
273,
1408,
883,
273,
315,
3024,
29942,
603,
6,
469,
30,
1633,
273,
315,
2503,
4657,
353,
316,
4007,
31,
2621,
2546,
326,
315,
883,
273,
315,
11515,
4657,
628,
6,
327,
2213,
87,
32,
69,
3897,
5189,
838,
5258,
87,
19,
2412,
9822,
87,
738,
87,
1757,
69,
2984,
738,
261,
3239,
16,
1831,
16,
883,
16,
1509,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2605,
8351,
10628,
12,
2890,
16,
2731,
4672,
3536,
25884,
279,
1692,
358,
326,
2416,
4657,
16,
309,
1281,
8395,
775,
30,
1831,
273,
365,
18,
13044,
18,
13550,
10628,
12,
2890,
18,
1966,
461,
16,
300,
22,
13,
1335,
30,
327,
315,
2279,
6432,
6711,
434,
333,
2063,
4041,
1199,
1509,
273,
28268,
10628,
18,
19073,
1626,
12,
1899,
13,
309,
2731,
30,
1633,
273,
1408,
883,
273,
315,
3024,
29942,
603,
6,
469,
30,
1633,
273,
315,
2503,
4657,
353,
316,
4007,
31,
2621,
2546,
326,
315,
883,
273,
315,
11515,
4657,
628,
6,
327,
2213,
87,
32,
69,
3897,
5189,
838,
5258,
87,
19,
2412,
9822,
87,
738,
87,
1757,
69,
2984,
738,
261,
3239,
2
] |
nour=Entity(to_.id,mass=self.mass,alcahol=self.alcahol)
|
nour=Entity(to_.id,mass=self.mass,alcohol=self.alcohol)
|
def eat_operation(self, op): ent=Entity(self.id,status=-1) res = Operation("set",ent,to=self) to_ = op.from_ nour=Entity(to_.id,mass=self.mass,alcahol=self.alcahol) res = res + Operation("nourish",nour,to=to_) return res
|
660cf65d5dddd6873466f7f31dac2b53a0c2a7b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/660cf65d5dddd6873466f7f31dac2b53a0c2a7b5/Apple.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20729,
67,
7624,
12,
2890,
16,
1061,
4672,
3281,
33,
1943,
12,
2890,
18,
350,
16,
2327,
29711,
21,
13,
400,
273,
4189,
2932,
542,
3113,
319,
16,
869,
33,
2890,
13,
358,
67,
273,
1061,
18,
2080,
67,
290,
477,
33,
1943,
12,
869,
27799,
350,
16,
10424,
33,
2890,
18,
10424,
16,
287,
2894,
76,
355,
33,
2890,
18,
287,
2894,
76,
355,
13,
400,
273,
400,
397,
4189,
2932,
82,
477,
1468,
3113,
82,
477,
16,
869,
33,
869,
67,
13,
327,
400,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
319,
16,
869,
33,
2890,
13,
358,
67,
273,
1061,
18,
2080,
67,
290,
477,
33,
1943,
12,
869,
27799,
350,
16,
10424,
33,
2890,
18,
10424,
16,
287,
2894,
76,
355,
33,
2890,
18,
287,
2894,
76,
355,
13,
400,
273,
400,
397,
4189,
2932,
82,
477,
1468,
3113,
82,
477,
16,
869,
33,
869,
67,
13,
327,
400,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
len, reverse, delimiters = RE_ARGS.split(str)[1:4]
|
ln, reverse, delimiters = RE_ARGS.split(str)[1:4]
|
def expand_one(expansion, str, joiner): if not str: return expansion len, reverse, delimiters = RE_ARGS.split(str)[1:4] if not delimiters: delimiters = '.' expansion = split(expansion, delimiters, joiner) if reverse: expansion.reverse() if len: expansion = expansion[-int(len)*2+1:] return ''.join(expansion)
|
09582a2e868e1f131726d6a15f64d5501912f6f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/139/09582a2e868e1f131726d6a15f64d5501912f6f9/spf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
476,
12,
2749,
12162,
16,
609,
16,
29620,
4672,
309,
486,
609,
30,
327,
17965,
7211,
16,
4219,
16,
18374,
273,
2438,
67,
22439,
18,
4939,
12,
701,
25146,
21,
30,
24,
65,
309,
486,
18374,
30,
18374,
273,
2611,
17965,
273,
1416,
12,
2749,
12162,
16,
18374,
16,
29620,
13,
309,
4219,
30,
17965,
18,
9845,
1435,
309,
562,
30,
17965,
273,
17965,
18919,
474,
12,
1897,
17653,
22,
15,
21,
26894,
327,
875,
18,
5701,
12,
2749,
12162,
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,
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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,
4542,
67,
476,
12,
2749,
12162,
16,
609,
16,
29620,
4672,
309,
486,
609,
30,
327,
17965,
7211,
16,
4219,
16,
18374,
273,
2438,
67,
22439,
18,
4939,
12,
701,
25146,
21,
30,
24,
65,
309,
486,
18374,
30,
18374,
273,
2611,
17965,
273,
1416,
12,
2749,
12162,
16,
18374,
16,
29620,
13,
309,
4219,
30,
17965,
18,
9845,
1435,
309,
562,
30,
17965,
273,
17965,
18919,
474,
12,
1897,
17653,
22,
15,
21,
26894,
327,
875,
18,
5701,
12,
2749,
12162,
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
] |
lines.append(line.replace('\n', ''))
|
if line.startswith(' <'): line = line[1:] lines.append(line)
|
def _diff_line_based(left_lines, right_lines, include_deletions=True, include_insertions=True, replace_as_insert=False, replace_as_delete=False, ratio_skip=0.7): from difflib import SequenceMatcher left = _decompose(left_lines) right = _decompose(right_lines) s = SequenceMatcher(None, left, right) if ratio_skip is not None and s.ratio() <= 1-ratio_skip: lines = [] if include_deletions: for l in left_lines: lines.append('<del>%s</del>' % l) if include_insertions: for r in right_lines: lines.append('<ins>%s</ins>' % r) return lines html_match = '' for op, i1, i2, j1, j2 in s.get_opcodes(): if op == 'equal': html_match += _compose(left[i1:i2]) elif op == 'delete' and include_deletions: html_match += ' <del>' + _compose(left[i1:i2]) + '</del> ' elif op == 'insert' and include_insertions: html_match += ' <ins>' + _compose(right[j1:j2]) + '</ins> ' elif op == 'replace': if include_insertions and replace_as_insert: html_match += ' <ins>' + _compose(right[j1:j2]) + '</ins> ' if include_deletions and replace_as_delete: html_match += ' <del>' + _compose(left[i1:i2]) + '</del> ' carry = [] lines = [] for line in html_match.split('\n'): for val in carry: line = val + line carry = [] for tag_begin, tag_end in ((' <ins>', '</ins> '), (' <del>', '</del> ')): begin_count = count(line, tag_begin) end_count = count(line, tag_end) if begin_count > end_count: line = line + tag_end carry.append(tag_begin) elif begin_count < end_count: line = tag_begin + line lines.append(line.replace('\n', '')) return lines
|
bfe07f9cf2dea988d7c2aa76aded6c5d6fb8ea64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/bfe07f9cf2dea988d7c2aa76aded6c5d6fb8ea64/diff.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5413,
67,
1369,
67,
12261,
12,
4482,
67,
3548,
16,
2145,
67,
3548,
16,
2341,
67,
19003,
1115,
33,
5510,
16,
2341,
67,
6387,
1115,
33,
5510,
16,
1453,
67,
345,
67,
6387,
33,
8381,
16,
1453,
67,
345,
67,
3733,
33,
8381,
16,
7169,
67,
7457,
33,
20,
18,
27,
4672,
628,
1901,
12678,
1930,
8370,
6286,
2002,
273,
389,
323,
23658,
12,
4482,
67,
3548,
13,
2145,
273,
389,
323,
23658,
12,
4083,
67,
3548,
13,
272,
273,
8370,
6286,
12,
7036,
16,
2002,
16,
2145,
13,
225,
309,
7169,
67,
7457,
353,
486,
599,
471,
272,
18,
9847,
1435,
1648,
404,
17,
9847,
67,
7457,
30,
2362,
273,
5378,
309,
2341,
67,
19003,
1115,
30,
364,
328,
316,
2002,
67,
3548,
30,
2362,
18,
6923,
2668,
32,
3771,
9822,
87,
1757,
3771,
1870,
738,
328,
13,
309,
2341,
67,
6387,
1115,
30,
364,
436,
316,
2145,
67,
3548,
30,
2362,
18,
6923,
2668,
32,
2679,
9822,
87,
1757,
2679,
1870,
738,
436,
13,
327,
2362,
225,
1729,
67,
1916,
273,
875,
364,
1061,
16,
277,
21,
16,
277,
22,
16,
525,
21,
16,
525,
22,
316,
272,
18,
588,
67,
556,
7000,
13332,
309,
1061,
422,
296,
9729,
4278,
1729,
67,
1916,
1011,
389,
23658,
12,
4482,
63,
77,
21,
30,
77,
22,
5717,
1327,
1061,
422,
296,
3733,
11,
471,
2341,
67,
19003,
1115,
30,
1729,
67,
1916,
1011,
296,
411,
3771,
1870,
397,
389,
23658,
12,
4482,
63,
77,
21,
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,
5413,
67,
1369,
67,
12261,
12,
4482,
67,
3548,
16,
2145,
67,
3548,
16,
2341,
67,
19003,
1115,
33,
5510,
16,
2341,
67,
6387,
1115,
33,
5510,
16,
1453,
67,
345,
67,
6387,
33,
8381,
16,
1453,
67,
345,
67,
3733,
33,
8381,
16,
7169,
67,
7457,
33,
20,
18,
27,
4672,
628,
1901,
12678,
1930,
8370,
6286,
2002,
273,
389,
323,
23658,
12,
4482,
67,
3548,
13,
2145,
273,
389,
323,
23658,
12,
4083,
67,
3548,
13,
272,
273,
8370,
6286,
12,
7036,
16,
2002,
16,
2145,
13,
225,
309,
7169,
67,
7457,
353,
486,
599,
471,
272,
18,
9847,
1435,
1648,
404,
17,
9847,
67,
7457,
30,
2362,
273,
5378,
309,
2341,
67,
19003,
1115,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.