rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
assert_valid_index(idx, w_obj) return w_obj, idx, w_val
|
assert_valid_index(idx-1, w_obj) return w_obj, idx-1, w_val
|
def common_at_put((w_obj, w_idx, w_val)): idx = unwrap_int(w_idx) # XXX should be idx-1, probably assert_valid_index(idx, w_obj) return w_obj, idx, w_val
|
1cd2f94f24d85594410fffacac763d4908fd214b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1cd2f94f24d85594410fffacac763d4908fd214b/primitives.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
270,
67,
458,
12443,
91,
67,
2603,
16,
341,
67,
3465,
16,
341,
67,
1125,
3719,
30,
2067,
273,
11014,
67,
474,
12,
91,
67,
3465,
13,
468,
11329,
1410,
506,
2067,
17,
21,
16,
8656,
1815,
67,
877,
67,
1615,
12,
3465,
17,
21,
16,
341,
67,
2603,
13,
327,
341,
67,
2603,
16,
2067,
17,
21,
16,
341,
67,
1125,
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,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,
21,
16,
8656,
1815,
67,
877,
67,
1615,
12,
3465,
17,
21,
16,
341,
67,
2603,
13,
327,
341,
67,
2603,
16,
2067,
17,
21,
16,
341,
67,
1125,
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
] |
avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
|
avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
|
def doPackageLists(self, pkgnarrow='all', patterns=None, showdups=None, ignore_case=False): """generates lists of packages, un-reduced, based on pkgnarrow option"""
|
73608510136c99d64d53a82d34851986935d56d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/73608510136c99d64d53a82d34851986935d56d3/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
2187,
6884,
33,
7036,
16,
2405,
72,
18294,
33,
7036,
16,
2305,
67,
3593,
33,
8381,
4672,
3536,
3441,
815,
6035,
434,
5907,
16,
640,
17,
1118,
26372,
16,
2511,
603,
2365,
1600,
7815,
1456,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
2187,
6884,
33,
7036,
16,
2405,
72,
18294,
33,
7036,
16,
2305,
67,
3593,
33,
8381,
4672,
3536,
3441,
815,
6035,
434,
5907,
16,
640,
17,
1118,
26372,
16,
2511,
603,
2365,
1600,
7815,
1456,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _str(self,structure,level):
|
def _str(self,structure,level, bullet=ts_regex.compile('[ \t\n]*[o*-][ \t\n]+\([^\0]*\)' ).match_group, example=ts_regex.compile('[\0- ]examples?:[\0- ]*$' ).search, dl=ts_regex.compile('\([^\n]+\)[ \t]+--[ \t\n]+\([^\0]*\)' ).match_group, nl=ts_regex.compile('\n').search, ol=ts_regex.compile( '[ \t]*\(\([0-9]+\|[a-zA-Z]+\)[.)]\)+[ \t\n]+\([^\0]*\|$\)' ).match_group, olp=ts_regex.compile('[ \t]*([0-9]+)[ \t\n]+\([^\0]*\|$\)' ).match_group, ):
|
def _str(self,structure,level): r='' for s in structure: # print s[0],'\n', len(s[1]), '\n\n' ts_results = bullet.match_group(s[0], (1,)) if ts_results: p = ts_results[1] r=self.ul(r,p,self._str(s[1],level)) else: ts_results = ol.match_group(s[0], (3,)) if ts_results: p = ts_results[1] r=self.ol(r,p,self._str(s[1],level)) else: ts_results = olp.match_group(s[0], (1,)) if ts_results: p = ts_results[1] r=self.ol(r,p,self._str(s[1],level)) else: ts_results = dl.match_group(s[0], (1,2)) if ts_results: t,d = ts_results[1] r=self.dl(r,t,d,self._str(s[1],level)) else: if example(s[0]) >= 0 and s[1]: # Introduce an example, using pre tags: r=self.normal(r,s[0],self.pre(s[1])) else: if s[0][-2:]=='::' and s[1]: # Introduce an example, using pre tags: r=self.normal(r,s[0][:-1],self.pre(s[1])) else:
|
b0fc40be7f6311ce8b53427d0435318a0e976412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b0fc40be7f6311ce8b53427d0435318a0e976412/StructuredText.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
701,
12,
2890,
16,
7627,
16,
2815,
16,
225,
31650,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
64,
82,
5772,
63,
83,
14,
17,
6362,
521,
88,
64,
82,
26446,
19042,
20,
27759,
2506,
262,
18,
1916,
67,
1655,
16,
3454,
33,
3428,
67,
7584,
18,
11100,
2668,
7438,
20,
17,
308,
16858,
35,
30,
7438,
20,
17,
308,
14,
9227,
262,
18,
3072,
16,
8910,
33,
3428,
67,
7584,
18,
11100,
2668,
64,
19042,
82,
26446,
25146,
521,
88,
3737,
413,
63,
521,
88,
64,
82,
26446,
19042,
20,
27759,
2506,
262,
18,
1916,
67,
1655,
16,
7741,
33,
3428,
67,
7584,
18,
11100,
2668,
64,
82,
16063,
3072,
16,
8793,
33,
3428,
67,
7584,
18,
11100,
12,
5271,
521,
88,
27759,
4713,
3816,
20,
17,
29,
26446,
24162,
69,
17,
9600,
17,
62,
26446,
25146,
12998,
13944,
27921,
63,
521,
88,
64,
82,
26446,
19042,
20,
27759,
25203,
64,
2506,
262,
18,
1916,
67,
1655,
16,
8793,
84,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
5772,
3816,
20,
17,
29,
7941,
63,
521,
88,
64,
82,
26446,
19042,
20,
27759,
25203,
64,
2506,
262,
18,
1916,
67,
1655,
16,
262,
30,
436,
2218,
11,
364,
272,
316,
3695,
30,
468,
1172,
272,
63,
20,
6487,
8314,
82,
2187,
562,
12,
87,
63,
21,
65,
3631,
2337,
82,
64,
82,
11,
225,
3742,
67,
4717,
273,
31650,
18,
1916,
67,
1655,
12,
87,
63,
20,
6487,
261,
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,
701,
12,
2890,
16,
7627,
16,
2815,
16,
225,
31650,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
64,
82,
5772,
63,
83,
14,
17,
6362,
521,
88,
64,
82,
26446,
19042,
20,
27759,
2506,
262,
18,
1916,
67,
1655,
16,
3454,
33,
3428,
67,
7584,
18,
11100,
2668,
7438,
20,
17,
308,
16858,
35,
30,
7438,
20,
17,
308,
14,
9227,
262,
18,
3072,
16,
8910,
33,
3428,
67,
7584,
18,
11100,
2668,
64,
19042,
82,
26446,
25146,
521,
88,
3737,
413,
63,
521,
88,
64,
82,
26446,
19042,
20,
27759,
2506,
262,
18,
1916,
67,
1655,
16,
7741,
33,
3428,
67,
7584,
18,
11100,
2668,
64,
82,
16063,
3072,
16,
8793,
33,
3428,
2
] |
self.verbose = verbose
|
def __init__(self, arch, listfile, binfile, verbose=False): self.verbose = verbose self.arch = arch self.listfile = listfile self.binfile = binfile self.srcfile = None self.verbose = verbose self.opcodes = OPCODES[self.arch] self.symtab = SymbolTable(self) self.linenum = 0 self.global_linenum = 0 self.mode = OpcodeType.BASIC self.memmap = MemoryMap(arch, verbose) self.checklist = [] self.loc = 0 self.passnum = 1 self.ebank = 0 self.fbank = 0 self.bankloc = {} self.code = [] for bank in range(len(self.memmap.memmap)): self.bankloc[bank] = 0 self.records = [] self.srcline = None
|
aa2487a16b40e95f65eefb24726b03a4319e7554 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/aa2487a16b40e95f65eefb24726b03a4319e7554/assembler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6637,
16,
666,
768,
16,
4158,
768,
16,
3988,
33,
8381,
4672,
365,
18,
991,
273,
6637,
365,
18,
1098,
768,
273,
666,
768,
365,
18,
4757,
768,
273,
4158,
768,
365,
18,
4816,
768,
273,
599,
365,
18,
556,
7000,
273,
531,
3513,
2712,
55,
63,
2890,
18,
991,
65,
365,
18,
9009,
1010,
378,
273,
8565,
1388,
12,
2890,
13,
365,
18,
7511,
7924,
273,
374,
365,
18,
6347,
67,
7511,
7924,
273,
374,
365,
18,
3188,
273,
16424,
559,
18,
25642,
365,
18,
3917,
1458,
273,
9251,
863,
12,
991,
16,
3988,
13,
365,
18,
1893,
1098,
273,
5378,
365,
18,
1829,
273,
374,
365,
18,
5466,
2107,
273,
404,
365,
18,
73,
10546,
273,
374,
365,
18,
74,
10546,
273,
374,
365,
18,
10546,
1829,
273,
2618,
365,
18,
710,
273,
5378,
364,
11218,
316,
1048,
12,
1897,
12,
2890,
18,
3917,
1458,
18,
3917,
1458,
3719,
30,
365,
18,
10546,
1829,
63,
10546,
65,
273,
374,
365,
18,
7094,
273,
5378,
365,
18,
11254,
830,
558,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6637,
16,
666,
768,
16,
4158,
768,
16,
3988,
33,
8381,
4672,
365,
18,
991,
273,
6637,
365,
18,
1098,
768,
273,
666,
768,
365,
18,
4757,
768,
273,
4158,
768,
365,
18,
4816,
768,
273,
599,
365,
18,
556,
7000,
273,
531,
3513,
2712,
55,
63,
2890,
18,
991,
65,
365,
18,
9009,
1010,
378,
273,
8565,
1388,
12,
2890,
13,
365,
18,
7511,
7924,
273,
374,
365,
18,
6347,
67,
7511,
7924,
273,
374,
365,
18,
3188,
273,
16424,
559,
18,
25642,
365,
18,
3917,
1458,
273,
9251,
863,
12,
991,
16,
3988,
13,
365,
18,
1893,
1098,
273,
5378,
365,
18,
1829,
273,
374,
365,
18,
5466,
2107,
273,
2
] |
|
'WHERE '+self._table+'.id IN ('+ids_str+')'+' and '.join(d1), d2)
|
'WHERE '+self._table+'.id IN ('+ids_str+')'+d1, d2)
|
def write(self, cr, user, ids, vals, context=None): readonly = None for field in vals.copy(): fobj = None if field in self._columns: fobj = self._columns[field] else: fobj = self._inherit_fields[field][2] if not fobj: continue groups = fobj.write
|
2066752cd337d55e8862acbb15a39dc95e67f310 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/2066752cd337d55e8862acbb15a39dc95e67f310/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
30,
24705,
273,
365,
6315,
5112,
63,
1518,
65,
469,
30,
24705,
273,
365,
6315,
6018,
67,
2821,
63,
1518,
6362,
22,
65,
309,
486,
24705,
30,
1324,
3252,
273,
24705,
18,
2626,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
30,
24705,
273,
365,
6315,
5112,
63,
1518,
65,
469,
30,
24705,
273,
365,
6315,
6018,
67,
2821,
63,
1518,
6362,
22,
65,
309,
486,
24705,
30,
1324,
3252,
273,
24705,
18,
2626,
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
] |
2 => install_file_path is a Folder''' 1 => update file 2 => upgrade file
|
2 => install_file_path is a Folder '''
|
def syncer(install_file_path, target_path, path_type=None, file_type=None): '''Syncer does the work of syncing the downloaded files. It syncs "install_file_path" which could be a valid file path or a zip archive to "target_path" path_type defines whether install_file_path is a zip file or a folder path # path_type 1 => install_file_path is a File 2 => install_file_path is a Folder''' # file_type 1 => update file 2 => upgrade file archive = Archiver() def display_options(): log.msg("(Y) Yes. Proceed with installation\n") log.msg("(N) No, Abort.\n") log.msg("(R) Redisplay the list of bugs.\n") log.msg("(Bug Number) Display the bug report from the Offline Bug Reports.\n") log.msg("(?) Display this help message.\n") def get_response(): response = raw_input("What would you like to do next:\t (y, N, Bug Number, R, ?)" ) response = response.rstrip("\r") return response def list_bugs(): log.msg("\n\nFollowing are the list of bugs present.\n") for each_bug in bugs_number.keys(): bug_num = each_bug.split('.')[1] bug_subject = bugs_number[each_bug] log.msg("%s\t%s\n" % (bug_num, bug_subject) ) if path_type == 1: try: import zipfile except ImportError: log.err("Aieeee! Module zipfile not found.\n") sys.exit(1) try: import pypt_magic except ImportError: log.err("Aieeee! Module pypt_magic not found.\n") sys.exit(1) file = zipfile.ZipFile(install_file_path, "r") bugs_number = {} for filename in file.namelist(): if filename.endswith(pypt_bug_file_format): bug_subject_file = file.read(filename) bug_subject = bug_subject_file.split('\r') del bug_subject_file for subject in bug_subject: if subject.startswith('#'): subject = subject.lstrip(subject.split(":")[0]) break bugs_number[filename] = subject if bugs_number: # Display the list of bugs list_bugs() display_options() response = get_response() while True: if response == "?": display_options() response = get_response() elif response.startswith('y') or response.startswith('Y'): for filename in file.namelist(): data = open(filename, "wb") data.write(file.read(filename)) data.close() #FIXME: Fix this tempfile feature # Access to the temporary file is not being allowed # It's throwing a Permission denied exception #try: # import tempfile #except ImportError: # sys.stderr.write("Aieeee! Module pypt_magic not found.\n") # sys.exit(1) #data = tempfile.NamedTemporaryFile('wb', -1, '', '', os.curdir) #data.write(file.read(filename)) #data = file.read(filename) if pypt_magic.file(os.path.abspath(filename)) == "application/x-bzip2": archive.decompress_the_file(os.path.abspath(filename), target_path, filename, 1) elif pypt_magic.file(os.path.abspath(filename)) == "application/x-gzip": archive.decompress_the_file(os.path.abspath(filename), target_path, filename, 2) elif pypt_magic.file(filename) == "PGP armored data" or pypt_magic.file(filename) == "application/x-dpkg": if os.access(target_path, os.W_OK): shutil.copy(filename, target_path) log.msg("%s file synced.\n" % (filename)) os.unlink(filename) elif response.startswith('n') or response.startswith('N'): log.err("Exiting gracefully on user request.\n\n") sys.exit(0) elif response.isdigit() is True: found = False for full_bug_file_name in bugs_number: if response in full_bug_file_name: bug_file_to_display = full_bug_file_name found = True break if found == False: log.err("Incorrect bug number %s provided.\n" % (response) ) response = get_response() if found: display_pager = PagerCmd() retval = display_pager.send_to_pager(file.read(bug_file_to_display) ) if retval == 1: log.err("Broken pager. Can't display the bug details.\n") # Redisplay the menu # FIXME: See a pythonic possibility of cleaning the screen at this stage response = get_response() elif response.startswith('r') or response.startswith('R'): list_bugs() response = get_response() else: log.err('Incorrect choice. Exiting\n') sys.exit(1) else: log.msg("Great!!! No bugs found for all the packages that were downloaded.\n") response = raw_input("Continue with Installation. Y/N ?") response = response.rstrip("\r") if response.endswith('y') or response.endswith('Y'): log.verbose("Continuing with syncing the files.\n") for filename in file.namelist(): data = open(filename, "wb") data.write(file.read(filename)) data.close() if pypt_magic.file(os.path.abspath(filename)) == "application/x-bzip2": archive.decompress_the_file(os.path.abspath(filename), target_path, filename, 1) elif pypt_magic.file(os.path.abspath(filename)) == "application/x-gzip": archive.decompress_the_file(os.path.abspath(filename), target_path, filename, 2) elif pypt_magic.file(filename) == "PGP armored data" or pypt_magic.file(filename) == "application/x-dpkg": if os.access(target_path, os.W_OK): shutil.copy(filename, target_path) log.msg("%s file synced.\n" % (filename)) os.unlink(filename) else: log.msg("Exiting gracefully on user request.\n") sys.exit(0) elif path_type == 2: archive_file_types = ['application/x-bzip2', 'application/gzip', 'application/zip'] bugs_number = [] for filename in os.listdir(install_file_path): if filename.endswith(pypt_bug_file_format): bugs_number.append(filename) if bugs_number: #Give the choice to the user list_bugs() display_options() response = get_response() while True: if response == "?": display_options() response = get_response() elif response.startswith('y') or response.startswith('Y'): for eachfile in os.listdir(install_file_path): archive_type = None try: import pypt_magic except ImportError: log.err("Aieeee! module not found.\n") sys.exit(1) if pypt_magic.file(os.path.join(install_file_path, eachfile)) == "application/x-bzip2": archive.decompress_the_file(os.path.join(install_file_path, eachfile), target_path, eachfile, 1) elif pypt_magic.file(os.path.join(install_file_path, eachfile)) == "application/gzip": archive.decompress_the_file(os.path.join(install_file_path, eachfile), target_path, eachfile, 2) elif pypt_magic.file(os.path.join(install_file_path, eachfile)) == "application/zip": archive.decompress_the_file(os.path.join(install_file_path, eachfile), target_path, eachfile, 3) elif pypt_magic.file(os.path.join(install_file_path, eachfile)) == "PGP armored data" or pypt_magic.file(filename) == "application/x-dpkg": if os.access(target_path, os.W_OK): shutil.copy(os.path.join(install_file_path, eachfile), target_path) log.msg("%s file synced.\n" % (eachfile)) else: log.err("Aieeee! I don't understand filetype %s\n" % (eachfile)) elif response.startswith('n') or response.startswith('N'): log.err("Exiting gracefully on user request.\n\n") sys.exit(0) elif response.isdigit() is True: found = False for full_bug_file_name in bugs_number: if response in full_bug_file_name: bug_file_to_display = full_bug_file_name found = True break if found == False: log.err("Incorrect bug number %s provided.\n" % (response) ) response = get_response() if found: display_pager = PagerCmd() retval = display_pager.send_to_pager(file.read(bug_file_to_display) ) if retval == 1: log.err("Broken pager. Can't display the bug details.\n") # Redisplay the menu # FIXME: See a pythonic possibility of cleaning the screen at this stage response = get_response() elif response.startswith('r') or response.startswith('R'): list_bugs() response = get_response() else: log.err('Incorrect choice. Exiting\n') sys.exit(1) else: log.msg("Great!!! No bugs found for all the packages that were downloaded.\n") response = raw_input("Continue with Installation. Y/N?") response = response.rstrip("\r") if response.startswith('y') or response.startswith('Y'): for eachfile in os.listdir(install_file_path): archive_type = None try: import pypt_magic except ImportError: log.err("Aieeee! module not found.\n") sys.exit(1) if pypt_magic.file(os.path.join(install_file_path, eachfile)) == "application/x-bzip2": archive.decompress_the_file(os.path.join(install_file_path, eachfile), target_path, eachfile, 1) elif pypt_magic.file(os.path.join(install_file_path, eachfile)) == "application/gzip": archive.decompress_the_file(os.path.join(install_file_path, eachfile), target_path, eachfile, 2) elif pypt_magic.file(os.path.join(install_file_path, eachfile)) == "application/zip": archive.decompress_the_file(os.path.join(install_file_path, eachfile), target_path, eachfile, 3) elif pypt_magic.file(os.path.join(install_file_path, eachfile)) == "PGP armored data" or pypt_magic.file(filename) == "application/x-dpkg": if os.access(target_path, os.W_OK): shutil.copy(os.path.join(install_file_path, eachfile), target_path) log.msg("%s file synced.\n" % (eachfile)) else: log.err("Aieeee! I don't understand filetype %s\n" % (eachfile)) else: log.msg("Exiting gracefully on user request.\n") sys.exit(0)
|
bf27eda3758a3b77fdeff5b846a63c1c8feb3962 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/bf27eda3758a3b77fdeff5b846a63c1c8feb3962/pypt_core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
264,
12,
5425,
67,
768,
67,
803,
16,
1018,
67,
803,
16,
589,
67,
723,
33,
7036,
16,
585,
67,
723,
33,
7036,
4672,
9163,
4047,
264,
1552,
326,
1440,
434,
3792,
310,
326,
13549,
1390,
18,
2597,
3792,
87,
315,
5425,
67,
768,
67,
803,
6,
1492,
3377,
506,
279,
923,
585,
589,
578,
279,
3144,
5052,
358,
315,
3299,
67,
803,
6,
589,
67,
723,
11164,
2856,
3799,
67,
768,
67,
803,
353,
279,
3144,
585,
578,
279,
3009,
589,
225,
468,
589,
67,
723,
404,
516,
3799,
67,
768,
67,
803,
353,
279,
1387,
576,
516,
3799,
67,
768,
67,
803,
353,
279,
12623,
26418,
225,
468,
585,
67,
723,
404,
516,
1089,
585,
576,
516,
8400,
585,
225,
5052,
273,
16959,
1667,
1435,
225,
1652,
2562,
67,
2116,
13332,
225,
613,
18,
3576,
2932,
12,
61,
13,
19925,
18,
1186,
5288,
598,
13193,
64,
82,
7923,
613,
18,
3576,
2932,
12,
50,
13,
2631,
16,
14263,
8403,
82,
7923,
613,
18,
3576,
2932,
12,
54,
13,
8505,
1601,
326,
666,
434,
22398,
8403,
82,
7923,
613,
18,
3576,
2932,
12,
19865,
3588,
13,
9311,
326,
7934,
2605,
628,
326,
29708,
16907,
868,
4363,
8403,
82,
7923,
613,
18,
3576,
2932,
3680,
13,
9311,
333,
2809,
883,
8403,
82,
7923,
225,
1652,
336,
67,
2740,
13332,
766,
273,
1831,
67,
2630,
2932,
23801,
4102,
1846,
3007,
358,
741,
1024,
5581,
88,
261,
93,
16,
423,
16,
16907,
3588,
16,
534,
16,
692,
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,
3792,
264,
12,
5425,
67,
768,
67,
803,
16,
1018,
67,
803,
16,
589,
67,
723,
33,
7036,
16,
585,
67,
723,
33,
7036,
4672,
9163,
4047,
264,
1552,
326,
1440,
434,
3792,
310,
326,
13549,
1390,
18,
2597,
3792,
87,
315,
5425,
67,
768,
67,
803,
6,
1492,
3377,
506,
279,
923,
585,
589,
578,
279,
3144,
5052,
358,
315,
3299,
67,
803,
6,
589,
67,
723,
11164,
2856,
3799,
67,
768,
67,
803,
353,
279,
3144,
585,
578,
279,
3009,
589,
225,
468,
589,
67,
723,
404,
516,
3799,
67,
768,
67,
803,
353,
279,
1387,
576,
516,
3799,
67,
768,
67,
803,
353,
279,
12623,
26418,
225,
468,
585,
67,
723,
404,
516,
1089,
585,
2
] |
str(self.lfnGroup))
|
lfnGroup)
|
def __call__(self, node): """ _operator(JobSpecNode)_
|
49ab424653b0da15e75c1e31fd1d4ad4581dffcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/49ab424653b0da15e75c1e31fd1d4ad4581dffcd/LFNAlgorithm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
756,
4672,
3536,
389,
9497,
12,
2278,
1990,
907,
13,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1991,
972,
12,
2890,
16,
756,
4672,
3536,
389,
9497,
12,
2278,
1990,
907,
13,
67,
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
] |
for word, nbhits in browsed_words_in_colls[:-1]:
|
for phrase, nbhits in browsed_phrases_in_colls[:-1]:
|
def browse_pattern(req, colls, p, f, rg): """Browse either biliographic phrases or words indexes, and display it.""" ## do we search in words indexes? if not f: return browse_in_bibwords(req, p, f) ## prepare collection urlargument for later printing: p_orig = p urlarg_colls = "" for coll in colls: urlarg_colls += "&c=%s" % urllib.quote(coll) ## okay, "real browse" follows: browsed_words = browse_in_bibxxx(p, f, rg) while not browsed_words: # try again and again with shorter and shorter pattern: try: p = p[:-1] browsed_words = browse_in_bibxxx(p, f, rg) except: # probably there are no hits at all: req.write("<p>No values found.") return ## try to check hits in these particular collection selection: browsed_words_in_colls = [] for word,nbhits in browsed_words: word_hitlist = HitList() word_hitlists = search_pattern("", word, f, colls, 'e') for coll in colls: word_hitlist.union(word_hitlists[coll]) word_hitlist.calculate_nbhits() if word_hitlist._nbhits > 0: # okay, this word has some hits in colls, so add it: browsed_words_in_colls.append([word, word_hitlist._nbhits]) ## were there hits in collections? if browsed_words_in_colls == []: if browsed_words != []: print_warning(req, """<p>No match close to <em>%s</em> found in given collections. Please try different term.<p>Displaying matches in any collection...""" % p_orig, "") browsed_words_in_colls = browsed_words ## display results now: out = """<table class="searchresultsbox"> <thead> <tr> <th class="searchresultsboxheader" align="left"> hits </th> <th class="searchresultsboxheader" width="15"> </th> <th class="searchresultsboxheader" align="left"> %s </th> </tr> </thead> <tbody>""" % f if len(browsed_words_in_colls) == 1: # one hit only found: word, nbhits = browsed_words_in_colls[0][0], browsed_words_in_colls[0][1] out += """<tr> <td class="searchresultsboxbody" align="right"> %s </td> <td class="searchresultsboxbody" width="15"> </td> <td class="searchresultsboxbody" align="left"> <a href="%s/search.py?p=%%22%s%%22&f=%s%s">%s</a> </td> </tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) elif len(browsed_words_in_colls) > 1: # first display what was found but the last one: for word, nbhits in browsed_words_in_colls[:-1]: out += """<tr> <td class="searchresultsboxbody" align="right"> %s </td> <td class="searchresultsboxbody" width="15"> </td> <td class="searchresultsboxbody" align="left"> <a href="%s/search.py?p=%%22%s%%22&f=%s%s">%s</a> </td> </tr>""" % (nbhits, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) # now display last hit as "next term": word, nbhits = browsed_words_in_colls[-1] out += """<tr><td colspan="2" class="normal"> </td> <td class="normal"> <img src="%s/img/sn.gif" alt="" border="0"> next %s: <a href="%s/search.py?search=Browse&p=%s&f=%s%s">%s</a> </td> </tr>""" % (weburl, f, weburl, urllib.quote(word), urllib.quote(f), urlarg_colls, word) out += """</tbody> </table>""" req.write(out) return
|
c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
4951,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
3344,
324,
15700,
16983,
31413,
578,
4511,
5596,
16,
471,
2562,
518,
12123,
7541,
741,
732,
1623,
316,
4511,
5596,
35,
309,
486,
284,
30,
327,
21670,
67,
267,
67,
70,
495,
3753,
12,
3658,
16,
293,
16,
284,
13,
7541,
2911,
1849,
880,
3446,
364,
5137,
19171,
30,
293,
67,
4949,
273,
293,
880,
3175,
67,
1293,
3251,
273,
1408,
364,
4508,
316,
645,
3251,
30,
880,
3175,
67,
1293,
3251,
1011,
7830,
71,
5095,
87,
6,
738,
11527,
18,
6889,
12,
12910,
13,
7541,
21194,
16,
315,
7688,
21670,
6,
13040,
30,
324,
492,
730,
67,
3753,
273,
21670,
67,
267,
67,
70,
495,
18310,
12,
84,
16,
284,
16,
14524,
13,
1323,
486,
324,
492,
730,
67,
3753,
30,
468,
775,
3382,
471,
3382,
598,
19623,
471,
19623,
1936,
30,
775,
30,
293,
273,
293,
10531,
17,
21,
65,
324,
492,
730,
67,
3753,
273,
21670,
67,
267,
67,
70,
495,
18310,
12,
84,
16,
284,
16,
14524,
13,
1335,
30,
468,
8656,
1915,
854,
1158,
11076,
622,
777,
30,
1111,
18,
2626,
2932,
32,
84,
34,
2279,
924,
1392,
1199,
13,
327,
7541,
775,
358,
866,
11076,
316,
4259,
6826,
1849,
4421,
30,
324,
492,
730,
67,
3753,
67,
267,
67,
1293,
3251,
273,
5378,
364,
2076,
16,
6423,
15173,
316,
324,
492,
730,
67,
3753,
30,
2076,
67,
15989,
1098,
273,
670,
305,
682,
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,
21670,
67,
4951,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
3344,
324,
15700,
16983,
31413,
578,
4511,
5596,
16,
471,
2562,
518,
12123,
7541,
741,
732,
1623,
316,
4511,
5596,
35,
309,
486,
284,
30,
327,
21670,
67,
267,
67,
70,
495,
3753,
12,
3658,
16,
293,
16,
284,
13,
7541,
2911,
1849,
880,
3446,
364,
5137,
19171,
30,
293,
67,
4949,
273,
293,
880,
3175,
67,
1293,
3251,
273,
1408,
364,
4508,
316,
645,
3251,
30,
880,
3175,
67,
1293,
3251,
1011,
7830,
71,
5095,
87,
6,
738,
11527,
18,
6889,
12,
12910,
13,
7541,
21194,
16,
315,
7688,
21670,
6,
13040,
30,
324,
492,
730,
67,
3753,
273,
21670,
2
] |
waste = self.rfile._sock.recv(1)
|
if not self.rfile._sock.recv(1): break
|
def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = rest.rfind('?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = rest.find('/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.translate_path(scriptname) if not os.path.exists(scriptfile): self.send_error(404, "No such CGI script (%s)" % `scriptname`) return if not os.path.isfile(scriptfile): self.send_error(403, "CGI script is not a plain file (%s)" % `scriptname`) return ispy = self.is_python(scriptname) if not ispy: if not (self.have_fork or self.have_popen2 or self.have_popen3): self.send_error(403, "CGI script is not a Python script (%s)" % `scriptname`) return if not self.is_executable(scriptfile): self.send_error(403, "CGI script is not executable (%s)" % `scriptname`) return
|
7a40b14b65083150d38e48641c61432e7d35308f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7a40b14b65083150d38e48641c61432e7d35308f/CGIHTTPServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
374,
30,
3127,
16,
843,
273,
3127,
10531,
77,
6487,
3127,
63,
77,
15,
21,
26894,
469,
30,
843,
273,
875,
277,
273,
3127,
18,
4720,
2668,
2473,
13,
309,
277,
1545,
374,
30,
2728,
16,
3127,
273,
3127,
10531,
77,
6487,
3127,
63,
77,
26894,
469,
30,
2728,
16,
3127,
273,
3127,
16,
875,
2728,
529,
273,
1577,
397,
2023,
397,
2728,
2728,
768,
273,
365,
18,
13929,
67,
803,
12,
4263,
529,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
4263,
768,
4672,
365,
18,
4661,
67,
1636,
12,
11746,
16,
315,
2279,
4123,
385,
13797,
2728,
6142,
87,
2225,
738,
1375,
4263,
529,
24065,
327,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
4263,
768,
4672,
365,
18,
4661,
67,
1636,
12,
24,
4630,
16,
315,
39,
13797,
2728,
353,
486,
279,
7351,
585,
6142,
87,
2225,
738,
1375,
4263,
529,
24065,
327,
353,
2074,
273,
365,
18,
291,
67,
8103,
12,
4263,
529,
13,
309,
486,
353,
2074,
30,
309,
486,
261,
2890,
18,
21516,
67,
23335,
578,
365,
18,
21516,
67,
84,
3190,
22,
578,
365,
18,
21516,
67,
84,
3190,
23,
4672,
365,
18,
4661,
67,
1636,
12,
24,
4630,
16,
315,
39,
13797,
2728,
353,
486,
279,
6600,
2728,
6142,
87,
2225,
738,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
374,
30,
3127,
16,
843,
273,
3127,
10531,
77,
6487,
3127,
63,
77,
15,
21,
26894,
469,
30,
843,
273,
875,
277,
273,
3127,
18,
4720,
2668,
2473,
13,
309,
277,
1545,
374,
30,
2728,
16,
3127,
273,
3127,
10531,
77,
6487,
3127,
63,
77,
26894,
469,
30,
2728,
16,
3127,
273,
3127,
16,
875,
2728,
529,
273,
1577,
397,
2023,
397,
2728,
2728,
768,
273,
365,
18,
13929,
67,
803,
12,
4263,
529,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
4263,
2
] |
if format != 'group': return tag.ul([tag.li(tag.a(wiki.format_page_name(page), href=formatter.href.wiki(page))) for page in pages if depth < 0 or depth >= page.count('/') - start]) pages = [(self.SPLIT_RE.split(wiki.format_page_name(page, split=True)), page) for page in pages if depth < 0 or depth >= page.count('/') - start]
|
def split_pages_group(pages): return [(self.SPLIT_RE.split( wiki.format_page_name(page, split=True)), page) for page in pages if depth < 0 or depth >= page.count('/') - start] def split_pages_hierarchy(pages): return [(wiki.format_page_name(page).split("/"), page) for page in pages if depth < 0 or depth >= page.count('/') - start] def render_group(group, classattribute=None): return tag.ul( [tag.li(isinstance(elt, tuple) and tag(tag.strong(elt[0]), render_group(elt[1])) or tag.a(wiki.format_page_name(elt), href=formatter.href.wiki(elt))) for elt in group], class_=classattribute) def render_hierarchy(group, classattribute=None): return tag.ul( [tag.li(isinstance(elt, tuple) and tag(tag.a(elt[0], href=formatter.href.wiki(elt[1][0])), render_hierarchy(elt[1][1:])) or tag.a(elt.rpartition("/")[2], href=formatter.href.wiki(elt))) for elt in group], class_=classattribute)
|
def expand_macro(self, formatter, name, content): args, kw = parse_args(content) prefix = args and args[0] or None format = kw.get('format', '') minsize = max(int(kw.get('min', 2)), 2) depth = int(kw.get('depth', -1)) start = prefix and prefix.count('/') or 0
|
804921c99570db1f5294c275052d8c26285e903e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/804921c99570db1f5294c275052d8c26285e903e/macros.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
26448,
12,
2890,
16,
4453,
16,
508,
16,
913,
4672,
833,
16,
5323,
273,
1109,
67,
1968,
12,
1745,
13,
1633,
273,
833,
471,
833,
63,
20,
65,
578,
599,
740,
273,
5323,
18,
588,
2668,
2139,
2187,
28707,
1131,
1467,
273,
943,
12,
474,
12,
9987,
18,
588,
2668,
1154,
2187,
576,
13,
3631,
576,
13,
3598,
273,
509,
12,
9987,
18,
588,
2668,
5979,
2187,
300,
21,
3719,
787,
273,
1633,
471,
1633,
18,
1883,
2668,
2473,
13,
578,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4542,
67,
26448,
12,
2890,
16,
4453,
16,
508,
16,
913,
4672,
833,
16,
5323,
273,
1109,
67,
1968,
12,
1745,
13,
1633,
273,
833,
471,
833,
63,
20,
65,
578,
599,
740,
273,
5323,
18,
588,
2668,
2139,
2187,
28707,
1131,
1467,
273,
943,
12,
474,
12,
9987,
18,
588,
2668,
1154,
2187,
576,
13,
3631,
576,
13,
3598,
273,
509,
12,
9987,
18,
588,
2668,
5979,
2187,
300,
21,
3719,
787,
273,
1633,
471,
1633,
18,
1883,
2668,
2473,
13,
578,
374,
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
] |
hub_stats = {}
|
def make_table(database): c = sqlite3.connect(database) res = c.execute(('select command_record.id, testname, hub, runs, errors, fails, ' 'timeouts, exitcode, stdout from parsed_command_record join ' 'command_record on parsed_command_record.id=command_record.id ')).fetchall() table = {} # testname -> hub -> test_result (runs, errors, fails, timeouts) hub_stats = {} # hub -> cumulative test_result tests = set() for id, testname, hub, runs, errors, fails, timeouts, exitcode, stdout in res: tests.add(testname) test_result = TestResult(runs, errors, fails, timeouts, exitcode, id, stdout) table.setdefault(testname, {})[hub] = test_result hub_stats.setdefault(hub, TestResult(0,0,0,0)).__iadd__(test_result) hubs = hub_stats.items() hubs.sort(key=lambda t: t[1].passed, reverse=True) return table, [x[0] for x in hubs], sorted(tests), hub_stats
|
8d522fc4736968ac3cd598ebbea9e2c50311575c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/8d522fc4736968ac3cd598ebbea9e2c50311575c/generate_report.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2121,
12,
6231,
4672,
276,
273,
16184,
23,
18,
3612,
12,
6231,
13,
400,
273,
276,
18,
8837,
12,
2668,
4025,
1296,
67,
3366,
18,
350,
16,
1842,
529,
16,
11891,
16,
7597,
16,
1334,
16,
6684,
16,
296,
296,
4538,
87,
16,
2427,
710,
16,
3909,
628,
2707,
67,
3076,
67,
3366,
1233,
296,
296,
3076,
67,
3366,
603,
2707,
67,
3076,
67,
3366,
18,
350,
33,
3076,
67,
3366,
18,
350,
8624,
2934,
5754,
454,
1435,
1014,
273,
2618,
468,
1842,
529,
317,
11891,
317,
1842,
67,
2088,
261,
20152,
16,
1334,
16,
6684,
16,
20395,
13,
468,
11891,
317,
15582,
1842,
67,
2088,
7434,
273,
444,
1435,
364,
612,
16,
1842,
529,
16,
11891,
16,
7597,
16,
1334,
16,
6684,
16,
20395,
16,
2427,
710,
16,
3909,
316,
400,
30,
7434,
18,
1289,
12,
3813,
529,
13,
1842,
67,
2088,
273,
7766,
1253,
12,
20152,
16,
1334,
16,
6684,
16,
20395,
16,
2427,
710,
16,
612,
16,
3909,
13,
1014,
18,
542,
1886,
12,
3813,
529,
16,
2618,
25146,
14986,
65,
273,
1842,
67,
2088,
11891,
67,
5296,
18,
542,
1886,
12,
14986,
16,
7766,
1253,
12,
20,
16,
20,
16,
20,
16,
20,
13,
2934,
972,
77,
1289,
972,
12,
3813,
67,
2088,
13,
11891,
87,
273,
11891,
67,
5296,
18,
3319,
1435,
11891,
87,
18,
3804,
12,
856,
33,
14661,
268,
30,
268,
63,
21,
8009,
23603,
16,
4219,
33,
5510,
13,
327,
1014,
16,
306,
92,
63,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2121,
12,
6231,
4672,
276,
273,
16184,
23,
18,
3612,
12,
6231,
13,
400,
273,
276,
18,
8837,
12,
2668,
4025,
1296,
67,
3366,
18,
350,
16,
1842,
529,
16,
11891,
16,
7597,
16,
1334,
16,
6684,
16,
296,
296,
4538,
87,
16,
2427,
710,
16,
3909,
628,
2707,
67,
3076,
67,
3366,
1233,
296,
296,
3076,
67,
3366,
603,
2707,
67,
3076,
67,
3366,
18,
350,
33,
3076,
67,
3366,
18,
350,
8624,
2934,
5754,
454,
1435,
1014,
273,
2618,
468,
1842,
529,
317,
11891,
317,
1842,
67,
2088,
261,
20152,
16,
1334,
16,
6684,
16,
20395,
13,
468,
11891,
317,
15582,
1842,
67,
2088,
7434,
273,
444,
1435,
364,
612,
16,
1842,
529,
16,
2
] |
|
"""Format a Decimal class according to the given specifier.
|
"""Format a Decimal instance according to the given specifier.
|
def __format__(self, specifier, context=None): """Format a Decimal class according to the given specifier.
|
50d3530b3f666bdfee31a889ad68e54d92dae975 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/50d3530b3f666bdfee31a889ad68e54d92dae975/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2139,
972,
12,
2890,
16,
24562,
16,
819,
33,
7036,
4672,
3536,
1630,
279,
11322,
667,
4888,
358,
326,
864,
24562,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2139,
972,
12,
2890,
16,
24562,
16,
819,
33,
7036,
4672,
3536,
1630,
279,
11322,
667,
4888,
358,
326,
864,
24562,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
movfp st(0), ufp1, spm=1
|
movfp ufp1, st(0), spm=1
|
def macroop FSTP_P { movfp st(0), ufp1, spm=1 rdip t7 stfp ufp1, seg, riprel, disp
|
e3fed881adcb3cc0a96acaf54cf14bae77e31983 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/e3fed881adcb3cc0a96acaf54cf14bae77e31983/load_or_store_floating_point.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
478,
882,
52,
67,
52,
288,
5730,
7944,
582,
7944,
21,
16,
384,
12,
20,
3631,
1694,
81,
33,
21,
9437,
625,
268,
27,
384,
7944,
582,
7944,
21,
16,
2291,
16,
436,
625,
2878,
16,
16232,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
if slide_num < 0: slide_num = 5000 - slide_num for row in self: if row.get_slide_number() == slide_num: slideTrigs.append(row)
|
slideTrigs.extend([row for row in self if row.get_slide_num() == slide_num])
|
def getslide(self,slide_num): """ Return the triggers with a specific slide number. @param slide_num: the slide number to recover (contained in the event_id) """ slideTrigs = table.new_from_template(self) if slide_num < 0: slide_num = 5000 - slide_num for row in self: if row.get_slide_number() == slide_num: slideTrigs.append(row) return slideTrigs
|
07bf3d64f811d58d596b89a0b4ffa79abf908006 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3589/07bf3d64f811d58d596b89a0b4ffa79abf908006/lsctables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5571,
8130,
12,
2890,
16,
26371,
67,
2107,
4672,
3536,
2000,
326,
11752,
598,
279,
2923,
12701,
1300,
18,
632,
891,
12701,
67,
2107,
30,
326,
12701,
1300,
358,
5910,
261,
1213,
8707,
316,
326,
871,
67,
350,
13,
3536,
12701,
1070,
360,
87,
273,
1014,
18,
2704,
67,
2080,
67,
3202,
12,
2890,
13,
12701,
1070,
360,
87,
18,
14313,
3816,
492,
364,
1027,
316,
365,
309,
1027,
18,
588,
67,
26371,
67,
2107,
1435,
422,
12701,
67,
2107,
5717,
327,
12701,
1070,
360,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5571,
8130,
12,
2890,
16,
26371,
67,
2107,
4672,
3536,
2000,
326,
11752,
598,
279,
2923,
12701,
1300,
18,
632,
891,
12701,
67,
2107,
30,
326,
12701,
1300,
358,
5910,
261,
1213,
8707,
316,
326,
871,
67,
350,
13,
3536,
12701,
1070,
360,
87,
273,
1014,
18,
2704,
67,
2080,
67,
3202,
12,
2890,
13,
12701,
1070,
360,
87,
18,
14313,
3816,
492,
364,
1027,
316,
365,
309,
1027,
18,
588,
67,
26371,
67,
2107,
1435,
422,
12701,
67,
2107,
5717,
327,
12701,
1070,
360,
87,
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
] |
x = self.X(x) + (w/2) y = self.Y(y) + (h/2)
|
x = self.X(x) + (w/2) y = self.Y(y) + (h/2)
|
def old_subimage(self, x, y, w, h, center=None): """DO NOT USE This is the subimage method from the original Image class. """ if center: x = self.X(x) + (w/2) y = self.Y(y) + (h/2) return Image(image=self.im.subsurface((x, y, w, h)))
|
3763f0b3aa7cf75cc46d269ddf344b4389187b6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/3763f0b3aa7cf75cc46d269ddf344b4389187b6d/sprite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1592,
67,
1717,
2730,
12,
2890,
16,
619,
16,
677,
16,
341,
16,
366,
16,
4617,
33,
7036,
4672,
3536,
3191,
4269,
14988,
225,
1220,
353,
326,
720,
2730,
707,
628,
326,
2282,
3421,
667,
18,
3536,
309,
4617,
30,
619,
273,
365,
18,
60,
12,
92,
13,
397,
261,
91,
19,
22,
13,
677,
273,
365,
18,
61,
12,
93,
13,
397,
261,
76,
19,
22,
13,
327,
3421,
12,
2730,
33,
2890,
18,
381,
18,
1717,
18266,
12443,
92,
16,
677,
16,
341,
16,
366,
20349,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1592,
67,
1717,
2730,
12,
2890,
16,
619,
16,
677,
16,
341,
16,
366,
16,
4617,
33,
7036,
4672,
3536,
3191,
4269,
14988,
225,
1220,
353,
326,
720,
2730,
707,
628,
326,
2282,
3421,
667,
18,
3536,
309,
4617,
30,
619,
273,
365,
18,
60,
12,
92,
13,
397,
261,
91,
19,
22,
13,
677,
273,
365,
18,
61,
12,
93,
13,
397,
261,
76,
19,
22,
13,
327,
3421,
12,
2730,
33,
2890,
18,
381,
18,
1717,
18266,
12443,
92,
16,
677,
16,
341,
16,
366,
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
] |
self.ChatScroll = gtk.TextView() self.ChatScroll.set_wrap_mode(gtk.WRAP_WORD) self.ChatScroll.set_cursor_visible(False) self.ChatScroll.set_editable(False) self.ChatScroll.show() self.scrolledwindow16.add(self.ChatScroll) self.Main.pack_start(self.scrolledwindow16)
|
self.ChatScroll1 = gtk.TextView() self.ChatScroll1.set_wrap_mode(gtk.WRAP_WORD) self.ChatScroll1.set_cursor_visible(False) self.ChatScroll1.set_editable(False) self.ChatScroll1.show() self.scrolledwindow16.add(self.ChatScroll1) self.Main1.pack_start(self.scrolledwindow16)
|
def __init__(self, create = True, accel_group = None, tooltips = None): if accel_group is None: self.accel_group = gtk.AccelGroup() else: self.accel_group = accel_group if tooltips is None: self.tooltips = gtk.Tooltips() else: self.tooltips = tooltips self.tooltips.enable() if create: self.PrivateChatTab = gtk.Window() self.PrivateChatTab.set_title(_("window1")) self.PrivateChatTab.add_accel_group(self.accel_group) self.PrivateChatTab.show()
|
363cba988d4bed5afdae4b3f448f4bf00e734531 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/363cba988d4bed5afdae4b3f448f4bf00e734531/nicotine_glade.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
22718,
18,
18019,
1114,
1435,
469,
30,
365,
18,
30737,
67,
1655,
273,
15153,
67,
1655,
309,
358,
4397,
7146,
353,
599,
30,
365,
18,
869,
4397,
7146,
273,
22718,
18,
774,
4397,
7146,
1435,
469,
30,
365,
18,
869,
4397,
7146,
273,
358,
4397,
7146,
365,
18,
869,
4397,
7146,
18,
7589,
1435,
309,
752,
30,
365,
18,
6014,
14163,
5661,
273,
22718,
18,
3829,
1435,
365,
18,
6014,
14163,
5661,
18,
542,
67,
2649,
24899,
2932,
5668,
21,
6,
3719,
365,
18,
6014,
14163,
5661,
18,
1289,
67,
30737,
67,
1655,
12,
2890,
18,
30737,
67,
1655,
13,
365,
18,
6014,
14163,
5661,
18,
4500,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
22718,
18,
18019,
1114,
1435,
469,
30,
365,
18,
30737,
67,
1655,
273,
15153,
67,
1655,
309,
358,
4397,
7146,
353,
599,
30,
365,
18,
869,
4397,
7146,
273,
22718,
18,
774,
4397,
7146,
1435,
469,
30,
365,
18,
869,
4397,
7146,
273,
358,
4397,
7146,
365,
18,
869,
4397,
7146,
18,
7589,
1435,
309,
752,
30,
365,
18,
6014,
14163,
5661,
273,
22718,
18,
3829,
1435,
365,
18,
6014,
14163,
5661,
18,
542,
67,
2649,
24899,
2932,
5668,
21,
6,
3719,
365,
2
] |
outfile = string.upper(outfile) outfile = outfile + '.py'
|
modname = outfile.upper() outfile = modname + '.py'
|
def main(): global filedict opts, args = getopt.getopt(sys.argv[1:], 'i:') for o, a in opts: if o == '-i': ignores.append(regex.compile(a)) if not args: args = ['-'] for filename in args: if filename == '-': sys.stdout.write('# Generated by h2py from stdin\n') process(sys.stdin, sys.stdout) else: fp = open(filename, 'r') outfile = os.path.basename(filename) i = string.rfind(outfile, '.') if i > 0: outfile = outfile[:i] outfile = string.upper(outfile) outfile = outfile + '.py' outfp = open(outfile, 'w') outfp.write('# Generated by h2py from %s\n' % filename) filedict = {} for dir in searchdirs: if filename[:len(dir)] == dir: filedict[filename[len(dir)+1:]] = None # no '/' trailing break process(fp, outfp) outfp.close() fp.close()
|
068ebea00c4235cbccf55143de6e8930e9eaeab7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/068ebea00c4235cbccf55143de6e8930e9eaeab7/h2py.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
585,
1576,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
77,
2497,
13,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
77,
4278,
17868,
18,
6923,
12,
7584,
18,
11100,
12,
69,
3719,
309,
486,
833,
30,
833,
273,
10228,
17,
3546,
364,
1544,
316,
833,
30,
309,
1544,
422,
4014,
30,
2589,
18,
10283,
18,
2626,
2668,
7,
11025,
635,
366,
22,
2074,
628,
8801,
64,
82,
6134,
1207,
12,
9499,
18,
21772,
16,
2589,
18,
10283,
13,
469,
30,
4253,
273,
1696,
12,
3459,
16,
296,
86,
6134,
8756,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
277,
273,
533,
18,
86,
4720,
12,
26050,
16,
2611,
13,
309,
277,
405,
374,
30,
8756,
273,
8756,
10531,
77,
65,
16037,
273,
8756,
18,
5797,
1435,
8756,
273,
16037,
397,
2418,
2074,
11,
596,
7944,
273,
1696,
12,
26050,
16,
296,
91,
6134,
596,
7944,
18,
2626,
2668,
7,
11025,
635,
366,
22,
2074,
628,
738,
87,
64,
82,
11,
738,
1544,
13,
585,
1576,
273,
2618,
364,
1577,
316,
1623,
8291,
30,
309,
1544,
10531,
1897,
12,
1214,
25887,
422,
1577,
30,
585,
1576,
63,
3459,
63,
1897,
12,
1214,
27921,
21,
30,
13563,
273,
599,
225,
468,
1158,
2023,
7341,
898,
1207,
12,
7944,
16,
596,
7944,
13,
596,
7944,
18,
4412,
1435,
4253,
18,
4412,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
585,
1576,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
77,
2497,
13,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
77,
4278,
17868,
18,
6923,
12,
7584,
18,
11100,
12,
69,
3719,
309,
486,
833,
30,
833,
273,
10228,
17,
3546,
364,
1544,
316,
833,
30,
309,
1544,
422,
4014,
30,
2589,
18,
10283,
18,
2626,
2668,
7,
11025,
635,
366,
22,
2074,
628,
8801,
64,
82,
6134,
1207,
12,
9499,
18,
21772,
16,
2589,
18,
10283,
13,
469,
30,
4253,
273,
1696,
12,
3459,
16,
296,
86,
6134,
8756,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
277,
273,
2
] |
if L>0: p.Size = L elif python_type == types.BufferType:
|
if string_len > 0: p.Size = string_len elif isinstance(elem, buffer):
|
def _executeHelper(self,operation,isStoredProcedureCall,parameters=None): if self.conn is None: self._raiseCursorError(Error,None) return
|
59f15f5710dd451b33216701b567320d565acaf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/59f15f5710dd451b33216701b567320d565acaf4/adodb_django.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
2276,
12,
2890,
16,
7624,
16,
291,
18005,
17213,
1477,
16,
3977,
33,
7036,
4672,
309,
365,
18,
4646,
353,
599,
30,
365,
6315,
11628,
6688,
668,
12,
668,
16,
7036,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
2276,
12,
2890,
16,
7624,
16,
291,
18005,
17213,
1477,
16,
3977,
33,
7036,
4672,
309,
365,
18,
4646,
353,
599,
30,
365,
6315,
11628,
6688,
668,
12,
668,
16,
7036,
13,
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
] |
parser.add_option('-d', '--debug', action='count', dest='debug', help='Enable debugging information (twice for debug server)')
|
def parse_options(): """Parse the command line options""" usage = "usage: %prog [options]" configobj = config.Config() parser = OptionParser(usage) parser.add_option('-v', '--version', action='store_true', dest='version', help='Display program version') parser.add_option('-d', '--debug', action='count', dest='debug', help='Enable debugging information (twice for debug server)') parser.add_option('-m', '--maximise', action='store_true', dest='maximise', help='Maximise the window') parser.add_option('-f', '--fullscreen', action='store_true', dest='fullscreen', help='Make the window fill the screen') parser.add_option('-b', '--borderless', action='store_true', dest='borderless', help='Disable window borders') parser.add_option('-H', '--hidden', action='store_true', dest='hidden', help='Hide the window at startup') parser.add_option('-T', '--title', dest='forcedtitle', help='Specify a \
|
7509acea7ca2e8f18c9440e0f22c9f05dcdee2c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/7509acea7ca2e8f18c9440e0f22c9f05dcdee2c9/optionparse.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
13,
225,
2082,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
3534,
1589,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
1589,
2187,
2809,
2218,
4236,
5402,
1177,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
81,
2187,
3534,
1896,
381,
784,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
1896,
381,
784,
2187,
2809,
2218,
2747,
381,
784,
326,
2742,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
74,
2187,
3534,
2854,
9252,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
2854,
9252,
2187,
2809,
2218,
6464,
326,
2742,
3636,
326,
5518,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
70,
2187,
3534,
8815,
2656,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
8815,
2656,
2187,
2809,
2218,
11879,
2742,
24028,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
44,
2187,
3534,
6345,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
6345,
2187,
2809,
2218,
15690,
326,
2742,
622,
11850,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
56,
2187,
3534,
2649,
2187,
1570,
2218,
19778,
2649,
2187,
2809,
2218,
19302,
279,
521,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
13,
225,
2082,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
3534,
1589,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
1589,
2187,
2809,
2218,
4236,
5402,
1177,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
81,
2187,
3534,
1896,
381,
784,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2218,
1896,
381,
784,
2187,
2809,
2218,
2747,
381,
784,
326,
2742,
6134,
2082,
18,
1289,
67,
3482,
2668,
17,
74,
2187,
3534,
2854,
9252,
2187,
1301,
2218,
2233,
67,
3767,
2187,
1570,
2
] |
|
class POLYLINETO16(POLYBEZIER16):
|
class _POLYLINETO16(_POLYBEZIER16):
|
def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.apts)) return txt.getvalue()
|
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,
33,
20,
6463,
18,
2626,
31458,
88,
4139,
30,
738,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
69,
1092,
3719,
225,
327,
6463,
18,
588,
1132,
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
] |
ret.append('
|
d = unicode_to_str(self._desc).replace('\n', '\n ret.append('
|
def _cfg_string(self, prefix, print_desc=True): """ Convert object into a string to write into a config file. """ ret = [] prefix = prefix + self._name if type(self._schema) == Var and print_desc: # TODO: more detailed comments, show full spec of var and some examples. ret.append('#\n# %s\n# %s\n#\n' % (prefix, unicode_to_str(self._desc).replace('\n', '\n# '))) print_desc = False
|
7564504359a58bf3c53ed875a81c21949f0d85b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11722/7564504359a58bf3c53ed875a81c21949f0d85b0/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7066,
67,
1080,
12,
2890,
16,
1633,
16,
1172,
67,
5569,
33,
5510,
4672,
3536,
4037,
733,
1368,
279,
533,
358,
1045,
1368,
279,
642,
585,
18,
3536,
325,
273,
5378,
1633,
273,
1633,
397,
365,
6315,
529,
309,
618,
12,
2890,
6315,
4821,
13,
422,
4562,
471,
1172,
67,
5569,
30,
468,
2660,
30,
1898,
6864,
5678,
16,
2405,
1983,
857,
434,
569,
471,
2690,
10991,
18,
325,
18,
6923,
2668,
7,
64,
82,
7,
738,
87,
64,
82,
7,
738,
87,
64,
82,
7,
64,
82,
11,
738,
261,
3239,
16,
5252,
67,
869,
67,
701,
12,
2890,
6315,
5569,
2934,
2079,
2668,
64,
82,
2187,
2337,
82,
7,
296,
20349,
1172,
67,
5569,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7066,
67,
1080,
12,
2890,
16,
1633,
16,
1172,
67,
5569,
33,
5510,
4672,
3536,
4037,
733,
1368,
279,
533,
358,
1045,
1368,
279,
642,
585,
18,
3536,
325,
273,
5378,
1633,
273,
1633,
397,
365,
6315,
529,
309,
618,
12,
2890,
6315,
4821,
13,
422,
4562,
471,
1172,
67,
5569,
30,
468,
2660,
30,
1898,
6864,
5678,
16,
2405,
1983,
857,
434,
569,
471,
2690,
10991,
18,
325,
18,
6923,
2668,
7,
64,
82,
7,
738,
87,
64,
82,
7,
738,
87,
64,
82,
7,
64,
82,
11,
738,
261,
3239,
16,
5252,
67,
869,
67,
701,
12,
2890,
6315,
5569,
2934,
2079,
2668,
64,
82,
2187,
2337,
82,
7,
296,
20349,
1172,
67,
5569,
273,
2
] |
if node['nodenetwork_ids']: nodenetworks = NodeNetworks(self.api, node['nodenetwork_ids']).values() else: nodenetworks = [] nodenetworks = [dict(nodenetwork) for nodenetwork in nodenetworks] return nodenetworks
|
return GetNodeNetworks.call(self, auth, node['nodenetwork_ids'])
|
def call(self, auth, node_id_or_hostname): # Authenticated function assert self.caller is not None
|
55fe7cdeaaad4c650261e3bf414297c3fbc95259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/55fe7cdeaaad4c650261e3bf414297c3fbc95259/AdmGetAllNodeNetworks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
350,
67,
280,
67,
10358,
4672,
468,
3123,
6096,
445,
1815,
365,
18,
16140,
353,
486,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
350,
67,
280,
67,
10358,
4672,
468,
3123,
6096,
445,
1815,
365,
18,
16140,
353,
486,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.NodeList.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2)
|
if self: selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.NodeList.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2) else: for i in xrange(3): self.HelpBar.SetStatusText("", i)
|
def RefreshStatusBar(self): selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.NodeList.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2) else: for i in xrange(3): self.HelpBar.SetStatusText("", i) else: for i in xrange(3): self.HelpBar.SetStatusText("", i)
|
47774f7307a9d341c746d84fac544b7ed2ab5fe7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/47774f7307a9d341c746d84fac544b7ed2ab5fe7/networkedit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
30,
3170,
273,
365,
18,
3906,
3205,
18,
967,
6233,
1435,
309,
365,
18,
6696,
5190,
471,
3170,
1545,
374,
30,
2742,
273,
365,
18,
3906,
3205,
18,
967,
1964,
12,
8109,
13,
4421,
273,
2742,
18,
967,
6233,
1435,
309,
4421,
30,
770,
16,
720,
1016,
273,
4421,
309,
365,
18,
19914,
18,
2520,
3935,
1622,
12,
1615,
4672,
365,
18,
6696,
5190,
18,
20547,
1528,
2932,
1016,
30,
374,
92,
9,
3028,
60,
28385,
1615,
16,
374,
13,
365,
18,
6696,
5190,
18,
20547,
1528,
2932,
1676,
1615,
30,
374,
92,
9,
3103,
60,
28385,
1717,
1016,
16,
404,
13,
1241,
18227,
273,
365,
18,
19914,
18,
967,
1622,
7655,
12,
1615,
13,
508,
273,
1241,
18227,
9614,
529,
11929,
3150,
273,
315,
6542,
6,
309,
1241,
18227,
9614,
14891,
11929,
30,
3150,
273,
315,
49,
10018,
6,
1958,
273,
315,
7716,
6,
1300,
273,
1408,
309,
1241,
18227,
9614,
1697,
11929,
473,
531,
40,
67,
6106,
1706,
8639,
30,
1300,
273,
315,
10016,
2553,
738,
72,
4124,
28385,
4099,
18227,
9614,
6423,
1896,
11929,
309,
1241,
18227,
9614,
1697,
11929,
473,
531,
40,
67,
6106,
1706,
1676,
11265,
30,
1958,
273,
315,
862,
39,
6,
1327,
1241,
18227,
9614,
1697,
11929,
473,
531,
40,
67,
8438,
1676,
11265,
30,
1958,
273,
315,
8552,
6,
977,
273,
2213,
87,
30,
738,
87,
1241,
434,
1958,
738,
87,
9,
87,
1199,
17105,
529,
16,
4743,
16,
1697,
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,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
30,
3170,
273,
365,
18,
3906,
3205,
18,
967,
6233,
1435,
309,
365,
18,
6696,
5190,
471,
3170,
1545,
374,
30,
2742,
273,
365,
18,
3906,
3205,
18,
967,
1964,
12,
8109,
13,
4421,
273,
2742,
18,
967,
6233,
1435,
309,
4421,
30,
770,
16,
720,
1016,
273,
4421,
309,
365,
18,
19914,
18,
2520,
3935,
1622,
12,
1615,
4672,
365,
18,
6696,
5190,
18,
20547,
1528,
2932,
1016,
30,
374,
92,
9,
3028,
60,
28385,
1615,
16,
374,
13,
365,
18,
6696,
5190,
18,
20547,
1528,
2932,
1676,
1615,
30,
374,
92,
9,
3103,
60,
28385,
1717,
1016,
16,
404,
13,
1241,
18227,
273,
365,
18,
19914,
18,
967,
2
] |
elif left_protocol == 'irc': if p.xmpp_c == 'both': was_on_both = True
|
if left_protocol == 'irc':
|
def removeParticipant(self, left_protocol, nickname, leave_message): """Remove the participant using nickname from the bridge. Raises a NoSuchParticipantException if nickname is not used in the bridge.""" was_on_both = None p = self.getParticipant(nickname) if p.protocol == 'xmpp': if left_protocol == 'irc': was_on_both = True elif left_protocol == 'xmpp': if p.irc_connection == 'both': was_on_both = True p.protocol = 'irc' p.createDuplicateOnXMPP() else: was_on_both = False elif p.protocol == 'irc': if left_protocol == 'xmpp': was_on_both = True elif left_protocol == 'irc': if p.xmpp_c == 'both': was_on_both = True p.protocol = 'xmpp' p.createDuplicateOnIRC() else: was_on_both = False else: raise Exception('[Internal Error] bad protocol') if was_on_both == True: self.bot.error('===> Debug: "'+nickname+'" was on both sides of bridge "'+str(self)+'" but left '+left_protocol, debug=True) elif was_on_both == False: self.lock.acquire() self.bot.error('===> Debug: removing participant "'+nickname+'" from bridge "'+str(self)+'"', debug=True) self.participants.remove(p) p.leave(leave_message) del p i = 0 for p in self.participants: if p.protocol == 'xmpp': i += 1 self.lock.release() if left_protocol == 'xmpp': if self.irc_connections_limit != -1 and self.irc_connections_limit > i: self.switchFromLimitedToNormalMode() if self.mode != 'normal': xmpp_participants_nicknames = self.get_participants_nicknames_list(protocols=['xmpp']) self.say('[Info] Participants on XMPP: '+' '.join(xmpp_participants_nicknames), on_xmpp=False) elif left_protocol == 'irc': if self.mode == 'minimal': irc_participants_nicknames = self.get_participants_nicknames_list(protocols=['irc']) self.say('[Info] Participants on IRC: '+' '.join(irc_participants_nicknames), on_irc=False) else: self.bot.error('=> Debug: Bad decision tree, p.protocol='+p.protocol+' left_protocol='+left_protocol+'\np.xmpp_c='+str(p.xmpp_c)+'\np.irc_connection='+str(p.irc_connection), debug=True)
|
149dd43020f1e98a97573a2bc38f82171b550782 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/149dd43020f1e98a97573a2bc38f82171b550782/bridge.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
22540,
12,
2890,
16,
2002,
67,
8373,
16,
19570,
16,
8851,
67,
2150,
4672,
3536,
3288,
326,
14188,
1450,
19570,
628,
326,
10105,
18,
20497,
279,
5823,
22540,
503,
309,
19570,
353,
486,
1399,
316,
326,
10105,
12123,
225,
1703,
67,
265,
67,
18237,
273,
599,
293,
273,
365,
18,
588,
22540,
12,
17091,
529,
13,
309,
293,
18,
8373,
422,
296,
92,
24109,
4278,
309,
2002,
67,
8373,
422,
296,
481,
71,
4278,
1703,
67,
265,
67,
18237,
273,
1053,
1327,
2002,
67,
8373,
422,
296,
92,
24109,
4278,
309,
293,
18,
481,
71,
67,
4071,
422,
296,
18237,
4278,
1703,
67,
265,
67,
18237,
273,
1053,
293,
18,
8373,
273,
296,
481,
71,
11,
293,
18,
2640,
11826,
1398,
60,
19388,
1435,
469,
30,
1703,
67,
265,
67,
18237,
273,
1083,
225,
1327,
293,
18,
8373,
422,
296,
481,
71,
4278,
309,
2002,
67,
8373,
422,
296,
92,
24109,
4278,
1703,
67,
265,
67,
18237,
273,
1053,
309,
2002,
67,
8373,
422,
296,
481,
71,
4278,
293,
18,
8373,
273,
296,
92,
24109,
11,
293,
18,
2640,
11826,
1398,
30240,
1435,
469,
30,
1703,
67,
265,
67,
18237,
273,
1083,
225,
469,
30,
1002,
1185,
2668,
63,
3061,
1068,
65,
5570,
1771,
6134,
225,
309,
1703,
67,
265,
67,
18237,
422,
1053,
30,
365,
18,
4819,
18,
1636,
2668,
631,
9207,
4015,
30,
2491,
15,
17091,
529,
15,
4970,
1703,
603,
3937,
22423,
434,
10105,
2491,
15,
701,
12,
2890,
27921,
4970,
1496,
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,
1206,
22540,
12,
2890,
16,
2002,
67,
8373,
16,
19570,
16,
8851,
67,
2150,
4672,
3536,
3288,
326,
14188,
1450,
19570,
628,
326,
10105,
18,
20497,
279,
5823,
22540,
503,
309,
19570,
353,
486,
1399,
316,
326,
10105,
12123,
225,
1703,
67,
265,
67,
18237,
273,
599,
293,
273,
365,
18,
588,
22540,
12,
17091,
529,
13,
309,
293,
18,
8373,
422,
296,
92,
24109,
4278,
309,
2002,
67,
8373,
422,
296,
481,
71,
4278,
1703,
67,
265,
67,
18237,
273,
1053,
1327,
2002,
67,
8373,
422,
296,
92,
24109,
4278,
309,
293,
18,
481,
71,
67,
4071,
422,
296,
18237,
4278,
1703,
67,
265,
67,
18237,
273,
1053,
293,
18,
8373,
273,
296,
481,
71,
11,
293,
2
] |
os.system('%s "%s" openalea'%(sys.executable, os.path.basename(__file__)))
|
os.system('%s "%s" openalea'%(sys.executable, __file__))
|
def ParseParameters(): """This is the main parsing function to get user arguments""" usage = """Usage: %prog [options] Example: >>> python ez_alea_setup.py --install-dir /home/user/openalea >>> python ez_alea_setup.py """ parser = OptionParser(usage=usage, \ version="%prog CVS $Id: download.py 1546 2009-01-15 14:20:37Z cokelaer $ \n" \ + "$Name: $\n") parser.add_option("-i", "--install-dir", action="store", \ help="the path where to install openalea (non-root installation)") (opts, args) = parser.parse_args() return opts, args
|
d6839482c5335f263676c722397996d2585f19dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4914/d6839482c5335f263676c722397996d2585f19dc/ez_alea_setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
2402,
13332,
3536,
2503,
353,
326,
2774,
5811,
445,
358,
336,
729,
1775,
8395,
225,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
2116,
65,
225,
5090,
30,
4080,
5790,
8012,
67,
5349,
69,
67,
8401,
18,
2074,
1493,
5425,
17,
1214,
342,
8712,
19,
1355,
19,
3190,
5349,
69,
4080,
5790,
8012,
67,
5349,
69,
67,
8401,
18,
2074,
3536,
2082,
273,
18862,
12,
9167,
33,
9167,
16,
521,
1177,
11613,
14654,
385,
14640,
271,
548,
30,
4224,
18,
2074,
4711,
8749,
4044,
29,
17,
1611,
17,
3600,
5045,
30,
3462,
30,
6418,
62,
276,
601,
292,
69,
264,
271,
521,
82,
6,
521,
397,
4662,
461,
30,
225,
271,
64,
82,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
77,
3113,
5238,
5425,
17,
1214,
3113,
1301,
1546,
2233,
3113,
521,
2809,
1546,
5787,
589,
1625,
358,
3799,
1696,
5349,
69,
261,
5836,
17,
3085,
13193,
2225,
13,
225,
261,
4952,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
327,
1500,
16,
833,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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5811,
445,
358,
336,
729,
1775,
8395,
225,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
2116,
65,
225,
5090,
30,
4080,
5790,
8012,
67,
5349,
69,
67,
8401,
18,
2074,
1493,
5425,
17,
1214,
342,
8712,
19,
1355,
19,
3190,
5349,
69,
4080,
5790,
8012,
67,
5349,
69,
67,
8401,
18,
2074,
3536,
2082,
273,
18862,
12,
9167,
33,
9167,
16,
521,
1177,
11613,
14654,
385,
14640,
271,
548,
30,
4224,
18,
2074,
4711,
8749,
4044,
29,
17,
1611,
17,
3600,
5045,
30,
3462,
30,
6418,
62,
276,
601,
292,
69,
264,
271,
521,
82,
6,
521,
397,
4662,
461,
30,
225,
271,
64,
82,
7923,
2082,
18,
1289,
2
] |
p11 = FakePackage('perl', '1', '1', '0', 'i386')
|
pi11 = FakePackage('perl', '1', '1', '0', 'i386') pr11 = FakePackage('perl', '1', '1', '0', 'i386')
|
def testUpdateMultiRequiresVersions4(self): p11 = FakePackage('perl', '1', '1', '0', 'i386') p12 = FakePackage('perl', '1', '2', '0', 'i386')
|
6a23ca8e00877ebb3ae8ffc0444acb278bcf940b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/6a23ca8e00877ebb3ae8ffc0444acb278bcf940b/simpleupdatetests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1891,
5002,
21671,
5940,
24,
12,
2890,
4672,
4790,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
846,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
293,
2138,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
22,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
2,
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,
1842,
1891,
5002,
21671,
5940,
24,
12,
2890,
4672,
4790,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
846,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
293,
2138,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
22,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def read(self, wtd):
|
def read(self, totalwtd):
|
def read(self, wtd):
|
e3c3ec9c4e7c9095d966bf4ecb7ace0824410412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3c3ec9c4e7c9095d966bf4ecb7ace0824410412/binhex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
plot_path = "%s_ALIGN.png" % (basename) plot.plot(plot_path)
|
plot_file = "%s_ALIGN.png" % (basename) plot.plot(plot_file)
|
def html_multi_chain_alignment(self): """Write out all HTML/PDB/TLSIN files which compare chains in the structure. """ title = self.page_multi_chain_alignment["title"]
|
81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
7027,
67,
5639,
67,
14409,
12,
2890,
4672,
3536,
3067,
596,
777,
3982,
19,
52,
2290,
19,
9905,
706,
1390,
1492,
3400,
13070,
316,
326,
3695,
18,
3536,
2077,
273,
365,
18,
2433,
67,
7027,
67,
5639,
67,
14409,
9614,
2649,
11929,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
7027,
67,
5639,
67,
14409,
12,
2890,
4672,
3536,
3067,
596,
777,
3982,
19,
52,
2290,
19,
9905,
706,
1390,
1492,
3400,
13070,
316,
326,
3695,
18,
3536,
2077,
273,
365,
18,
2433,
67,
7027,
67,
5639,
67,
14409,
9614,
2649,
11929,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self
|
def __init__(self, parent, parent_pool): """ Create a new pool that is a sub-pool of `parent_pool`, and arrange for `self.close` to be called up when the `parent` object is destroyed. The `parent` object must be weak-referenceable. The returned `Pool` instance will have the value of the newly created pool. """ self.pool = core.svn_pool_create(parent_pool) try: parent._pool_closer = weakref.ref(parent, self.close) except TypeError: self.close() raise return self
|
49a6a8628b2faed066712b77f631d65bf31f507c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/49a6a8628b2faed066712b77f631d65bf31f507c/svn_fs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
982,
67,
6011,
4672,
3536,
1788,
279,
394,
2845,
716,
353,
279,
720,
17,
6011,
434,
1375,
2938,
67,
6011,
9191,
471,
2454,
726,
364,
1375,
2890,
18,
4412,
68,
358,
506,
2566,
731,
1347,
326,
1375,
2938,
68,
733,
353,
17689,
18,
225,
1021,
1375,
2938,
68,
733,
1297,
506,
16046,
17,
6180,
429,
18,
225,
1021,
2106,
1375,
2864,
68,
791,
903,
1240,
326,
460,
434,
326,
10894,
2522,
2845,
18,
3536,
365,
18,
6011,
273,
2922,
18,
31505,
67,
6011,
67,
2640,
12,
2938,
67,
6011,
13,
225,
775,
30,
982,
6315,
6011,
67,
27736,
273,
16046,
1734,
18,
1734,
12,
2938,
16,
365,
18,
4412,
13,
1335,
3580,
30,
365,
18,
4412,
1435,
1002,
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,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
364,
1375,
2890,
18,
4412,
68,
358,
506,
2566,
731,
1347,
326,
1375,
2938,
68,
733,
353,
17689,
18,
225,
1021,
1375,
2938,
68,
733,
1297,
506,
16046,
17,
6180,
429,
18,
225,
1021,
2106,
1375,
2864,
68,
791,
903,
1240,
326,
460,
434,
326,
10894,
2522,
2845,
18,
3536,
365,
18,
6011,
273,
2922,
18,
31505,
67,
6011,
67,
2640,
12,
2938,
67,
6011,
13,
225,
775,
30,
982,
6315,
6011,
67,
27736,
273,
16046,
1734,
18,
1734,
12,
2938,
16,
365,
18,
4412,
13,
2
] |
|
on_instruments = frozenset(on_instruments) segs = zero_lag_segs.intersection(on_instruments) - zero_lag_segs.union(available_instruments - on_instruments)
|
selected_segs = zero_lag_segs.intersection(on_instruments) - zero_lag_segs.union(available_instruments - on_instruments)
|
def update_from_db(self, filename, live_time_program = "thinca", vetoes_name = "vetoes", verbose = False): working_filename = dbtables.get_connection_filename(filename, tmp_path = None, verbose = verbose) connection = sqlite3.connect(working_filename)
|
a39e00076e205bedb63be80fd33ae84bac1abf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/a39e00076e205bedb63be80fd33ae84bac1abf61/far_plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
1966,
12,
2890,
16,
1544,
16,
8429,
67,
957,
67,
12890,
273,
315,
451,
267,
5353,
3113,
331,
11453,
281,
67,
529,
273,
315,
90,
11453,
281,
3113,
3988,
273,
1083,
4672,
5960,
67,
3459,
273,
1319,
9373,
18,
588,
67,
4071,
67,
3459,
12,
3459,
16,
1853,
67,
803,
273,
599,
16,
3988,
273,
3988,
13,
1459,
273,
16184,
23,
18,
3612,
12,
20478,
67,
3459,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
1966,
12,
2890,
16,
1544,
16,
8429,
67,
957,
67,
12890,
273,
315,
451,
267,
5353,
3113,
331,
11453,
281,
67,
529,
273,
315,
90,
11453,
281,
3113,
3988,
273,
1083,
4672,
5960,
67,
3459,
273,
1319,
9373,
18,
588,
67,
4071,
67,
3459,
12,
3459,
16,
1853,
67,
803,
273,
599,
16,
3988,
273,
3988,
13,
1459,
273,
16184,
23,
18,
3612,
12,
20478,
67,
3459,
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
] |
self.__process = Popen(args=self.__args, stdin=PIPE, stdout=PIPE, stderr=PIPE, bufsize=1)
|
self.__process = Popen(args=args, stdin=PIPE, stdout=PIPE, stderr=PIPE, bufsize=1)
|
def start(self): """Start the MPlayer process.
|
d85fd83ae55666ff3495392afff1d47215274581 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/d85fd83ae55666ff3495392afff1d47215274581/pymplayer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
1685,
326,
490,
12148,
1207,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
1685,
326,
490,
12148,
1207,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
argv = process_options(sys.argv[1:])
|
argv = process_options(sys.argv)
|
def process_options(argv): return option.process_options(get_options(), Options, argv)
|
42f7a7b284c807119ec09969adbfcedc468d4260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/42f7a7b284c807119ec09969adbfcedc468d4260/jscompile.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,
1207,
67,
2116,
12,
19485,
4672,
327,
1456,
18,
2567,
67,
2116,
12,
588,
67,
2116,
9334,
5087,
16,
5261,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mediaFilepath = recd.getMediaFilepath(True)
|
mediaFilepath = recd.getMediaFilepath()
|
def showVideo( self, recd ): if (self.LIVEMODE): if (self.ca.glive.isXv()): self.ca.glive.setPipeType( self.ca.glive.PIPETYPE_X_VIDEO_DISPLAY ) self.ca.glive.stop() self.ca.glive.play() self.LIVEMODE = False
|
41f5543503f45120f148d9b5272da416bddb5119 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6451/41f5543503f45120f148d9b5272da416bddb5119/ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
10083,
12,
365,
16,
1950,
72,
262,
30,
309,
261,
2890,
18,
2053,
58,
3375,
2712,
4672,
309,
261,
2890,
18,
5353,
18,
7043,
688,
18,
291,
60,
90,
1435,
4672,
365,
18,
5353,
18,
7043,
688,
18,
542,
11546,
559,
12,
365,
18,
5353,
18,
7043,
688,
18,
27602,
2399,
67,
60,
67,
58,
27242,
67,
17463,
262,
365,
18,
5353,
18,
7043,
688,
18,
5681,
1435,
365,
18,
5353,
18,
7043,
688,
18,
1601,
1435,
365,
18,
2053,
58,
3375,
2712,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
10083,
12,
365,
16,
1950,
72,
262,
30,
309,
261,
2890,
18,
2053,
58,
3375,
2712,
4672,
309,
261,
2890,
18,
5353,
18,
7043,
688,
18,
291,
60,
90,
1435,
4672,
365,
18,
5353,
18,
7043,
688,
18,
542,
11546,
559,
12,
365,
18,
5353,
18,
7043,
688,
18,
27602,
2399,
67,
60,
67,
58,
27242,
67,
17463,
262,
365,
18,
5353,
18,
7043,
688,
18,
5681,
1435,
365,
18,
5353,
18,
7043,
688,
18,
1601,
1435,
365,
18,
2053,
58,
3375,
2712,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
time.sleep(0.1)
|
time.sleep(2)
|
def test_lock_behavior(self): # Check to make sure the user-provided lock class behaves correctly # when called from C code
|
2c7309a9b49c12fcf7bd62f7147a79ef94a81fff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10380/2c7309a9b49c12fcf7bd62f7147a79ef94a81fff/test_threads.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
739,
67,
31936,
12,
2890,
4672,
468,
2073,
358,
1221,
3071,
326,
729,
17,
29206,
2176,
667,
12433,
6606,
8783,
468,
1347,
2566,
628,
385,
981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
2176,
667,
12433,
6606,
8783,
468,
1347,
2566,
628,
385,
981,
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
] |
_DEBUG_COPYOFOBJECT = False
|
def exclude(self, attr, exclude_layers): """ Should you scan attr (of an obj of this clas), given these exclude_layers (perhaps ())? """ return self.attrlayers.get(attr) in exclude_layers # correct even though .get is often None
|
94ce0eefc86aa9c98dfa36b124ed34aa82766857 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11221/94ce0eefc86aa9c98dfa36b124ed34aa82766857/state_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4433,
12,
2890,
16,
1604,
16,
4433,
67,
10396,
4672,
3536,
9363,
1846,
4135,
1604,
261,
792,
392,
1081,
434,
333,
23268,
3631,
864,
4259,
4433,
67,
10396,
261,
457,
19312,
1832,
9945,
3536,
327,
365,
18,
1747,
10396,
18,
588,
12,
1747,
13,
316,
4433,
67,
10396,
468,
3434,
5456,
11376,
263,
588,
353,
16337,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4433,
12,
2890,
16,
1604,
16,
4433,
67,
10396,
4672,
3536,
9363,
1846,
4135,
1604,
261,
792,
392,
1081,
434,
333,
23268,
3631,
864,
4259,
4433,
67,
10396,
261,
457,
19312,
1832,
9945,
3536,
327,
365,
18,
1747,
10396,
18,
588,
12,
1747,
13,
316,
4433,
67,
10396,
468,
3434,
5456,
11376,
263,
588,
353,
16337,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.guard_cache.pop(router.idhex)
|
if router.idhex in self.guard_cache: self.guard_cache.pop(router.idhex)
|
def prepare_circuits(self): with self.consensus_cache_lock: routers = sorted(self.router_cache.values(), key = attrgetter("last_tested"))[0:4] # Build test circuits. with self.consensus_cache_lock: for router in routers: # If we are testing a guard, we don't want to use it as a guard for this # circuit. Pop it temporarily from the guard_cache. self.guard_cache.pop(router.idhex) # Take guard out of available guard list. router.guard = self.guard_cache.popitem()[1] for router in routers: cid = self.build_test_circuit(router) self.pending_circuits[cid] = router return routers
|
0bb3e76e6900abbc5324010708fec82eada028cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/0bb3e76e6900abbc5324010708fec82eada028cc/torbel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
11614,
30091,
12,
2890,
4672,
598,
365,
18,
29220,
67,
2493,
67,
739,
30,
28944,
273,
3115,
12,
2890,
18,
10717,
67,
2493,
18,
2372,
9334,
498,
273,
1604,
11990,
2932,
2722,
67,
88,
3149,
6,
3719,
63,
20,
30,
24,
65,
225,
468,
3998,
1842,
5886,
30091,
18,
598,
365,
18,
29220,
67,
2493,
67,
739,
30,
364,
4633,
316,
28944,
30,
468,
971,
732,
854,
7769,
279,
11026,
16,
732,
2727,
1404,
2545,
358,
999,
518,
487,
279,
11026,
364,
333,
468,
12937,
18,
225,
10264,
518,
18917,
628,
326,
11026,
67,
2493,
18,
309,
4633,
18,
350,
7118,
316,
365,
18,
24594,
67,
2493,
30,
365,
18,
24594,
67,
2493,
18,
5120,
12,
10717,
18,
350,
7118,
13,
468,
17129,
11026,
596,
434,
2319,
11026,
666,
18,
4633,
18,
24594,
282,
273,
365,
18,
24594,
67,
2493,
18,
5120,
1726,
1435,
63,
21,
65,
364,
4633,
316,
28944,
30,
7504,
273,
365,
18,
3510,
67,
3813,
67,
24987,
12,
10717,
13,
365,
18,
9561,
67,
11614,
30091,
63,
13478,
65,
273,
4633,
225,
327,
28944,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
11614,
30091,
12,
2890,
4672,
598,
365,
18,
29220,
67,
2493,
67,
739,
30,
28944,
273,
3115,
12,
2890,
18,
10717,
67,
2493,
18,
2372,
9334,
498,
273,
1604,
11990,
2932,
2722,
67,
88,
3149,
6,
3719,
63,
20,
30,
24,
65,
225,
468,
3998,
1842,
5886,
30091,
18,
598,
365,
18,
29220,
67,
2493,
67,
739,
30,
364,
4633,
316,
28944,
30,
468,
971,
732,
854,
7769,
279,
11026,
16,
732,
2727,
1404,
2545,
358,
999,
518,
487,
279,
11026,
364,
333,
468,
12937,
18,
225,
10264,
518,
18917,
628,
326,
11026,
67,
2493,
18,
309,
4633,
18,
350,
7118,
316,
365,
18,
24594,
67,
2493,
30,
365,
18,
24594,
67,
2493,
18,
5120,
12,
2
] |
for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT: labels = node.getElementsByTagName("label") for label in labels: id = label.getAttribute("id") if not id: continue parent = label.parentNode if parent.tagName == "title": parent.parentNode.setAttribute("id", id) else: parent.setAttribute("id", id) parent.removeChild(label)
|
for label in find_all_elements(doc, "label"): id = label.getAttribute("id") if not id: continue parent = label.parentNode if parent.tagName == "title": parent.parentNode.setAttribute("id", id) else: parent.setAttribute("id", id) parent.removeChild(label)
|
def handle_labels(doc): for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT: labels = node.getElementsByTagName("label") for label in labels: id = label.getAttribute("id") if not id: continue parent = label.parentNode if parent.tagName == "title": parent.parentNode.setAttribute("id", id) else: parent.setAttribute("id", id) # now, remove <label id="..."/> from parent: parent.removeChild(label)
|
8d20f30e2bb3a6cee170c7f74006722d05264c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8d20f30e2bb3a6cee170c7f74006722d05264c26/docfixer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5336,
12,
2434,
4672,
364,
756,
316,
997,
18,
3624,
3205,
30,
309,
756,
18,
2159,
559,
422,
2025,
18,
9859,
18,
3644,
18,
10976,
30,
3249,
273,
756,
18,
588,
3471,
10401,
2932,
1925,
7923,
364,
1433,
316,
3249,
30,
612,
273,
1433,
18,
588,
1499,
2932,
350,
7923,
309,
486,
612,
30,
1324,
982,
273,
1433,
18,
2938,
907,
309,
982,
18,
2692,
461,
422,
315,
2649,
6877,
982,
18,
2938,
907,
18,
542,
1499,
2932,
350,
3113,
612,
13,
469,
30,
982,
18,
542,
1499,
2932,
350,
3113,
612,
13,
468,
2037,
16,
1206,
411,
1925,
612,
1546,
7070,
21259,
628,
982,
30,
982,
18,
4479,
1763,
12,
1925,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5336,
12,
2434,
4672,
364,
756,
316,
997,
18,
3624,
3205,
30,
309,
756,
18,
2159,
559,
422,
2025,
18,
9859,
18,
3644,
18,
10976,
30,
3249,
273,
756,
18,
588,
3471,
10401,
2932,
1925,
7923,
364,
1433,
316,
3249,
30,
612,
273,
1433,
18,
588,
1499,
2932,
350,
7923,
309,
486,
612,
30,
1324,
982,
273,
1433,
18,
2938,
907,
309,
982,
18,
2692,
461,
422,
315,
2649,
6877,
982,
18,
2938,
907,
18,
542,
1499,
2932,
350,
3113,
612,
13,
469,
30,
982,
18,
542,
1499,
2932,
350,
3113,
612,
13,
468,
2037,
16,
1206,
411,
1925,
612,
1546,
7070,
21259,
628,
982,
30,
982,
18,
4479,
1763,
12,
1925,
13,
282,
2,
-100,
-100
] |
"""
|
"""
|
def fl_set_select_popup(p1, p2): """ fl_set_select_popup(p1, p2) -> num. """ retval = _fl_set_select_popup(p1, p2) return retval
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
13,
327,
5221,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
13,
327,
5221,
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
] |
except IsRedirectPage,arg:
|
except IsRedirectPage, arg:
|
def getRedirectTo(self):
|
5578ba184190a6edbdb00bc60bf5f10224fd40e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/5578ba184190a6edbdb00bc60bf5f10224fd40e0/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26134,
774,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26134,
774,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pept = get_pept_linked(N, CA, PRO)
|
pept = get_pept_linked(N, CA, PRO)
|
def calc_blocks_normal(self, N, CA, PRO, Carbon, Oxigen, Nitrogen): """MBH scheme with linked blocks where each side chain is considered as a block attached to the CA atom."""
|
7eacfe0381b5a6911c93246b37e4775fefffaf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11051/7eacfe0381b5a6911c93246b37e4775fefffaf61/nmatools.py
|
[
1,
8585,
326,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
7996,
67,
6130,
12,
2890,
16,
423,
16,
6425,
16,
4629,
16,
13353,
16,
531,
92,
30577,
16,
423,
8912,
4507,
4672,
3536,
7969,
44,
4355,
598,
8459,
4398,
1625,
1517,
4889,
2687,
353,
7399,
487,
279,
1203,
7495,
358,
326,
6425,
3179,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
effective = (int(effective / tabwidth) + 1) * tabwidth
|
effective = (effective // tabwidth + 1) * tabwidth
|
def classifyws(s, tabwidth): raw = effective = 0 for ch in s: if ch == ' ': raw = raw + 1 effective = effective + 1 elif ch == '\t': raw = raw + 1 effective = (int(effective / tabwidth) + 1) * tabwidth else: break return raw, effective
|
b6ecb58f6f1654f9aab8c1f9c4a747640cd9221b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b6ecb58f6f1654f9aab8c1f9c4a747640cd9221b/AutoIndent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19974,
4749,
12,
87,
16,
3246,
2819,
4672,
1831,
273,
11448,
273,
374,
364,
462,
316,
272,
30,
309,
462,
422,
296,
4290,
1831,
273,
1831,
397,
404,
11448,
273,
11448,
397,
404,
1327,
462,
422,
2337,
88,
4278,
1831,
273,
1831,
397,
404,
11448,
273,
261,
28894,
368,
3246,
2819,
397,
404,
13,
380,
3246,
2819,
469,
30,
898,
327,
1831,
16,
11448,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19974,
4749,
12,
87,
16,
3246,
2819,
4672,
1831,
273,
11448,
273,
374,
364,
462,
316,
272,
30,
309,
462,
422,
296,
4290,
1831,
273,
1831,
397,
404,
11448,
273,
11448,
397,
404,
1327,
462,
422,
2337,
88,
4278,
1831,
273,
1831,
397,
404,
11448,
273,
261,
28894,
368,
3246,
2819,
397,
404,
13,
380,
3246,
2819,
469,
30,
898,
327,
1831,
16,
11448,
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
] |
f = None
|
def __get_stack(self, ctx, ctid, fException): tid = ctx.m_thread_id
|
3936cfe7191507813ad88daecdb00c41fdd1a2a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9402/3936cfe7191507813ad88daecdb00c41fdd1a2a6/rpdb2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
3772,
12,
2890,
16,
1103,
16,
5691,
350,
16,
284,
503,
4672,
11594,
273,
1103,
18,
81,
67,
5930,
67,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
11594,
273,
1103,
18,
81,
67,
5930,
67,
350,
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
] |
|
We compute with the L-series of $E_{16}$:
|
We compute with the L-series of $E_{16}$ and then $E_{20}$:
|
def eisenstein_series_Lseries(weight, prec=53, max_imaginary_part=0, max_asymp_coeffs=40): r""" Return the L-series of the weight $2k$ Eisenstein series on $\SL_2(\Z)$. This actually returns an interface to Tim Dokchitser's program for computing with the L-series of the Eisenstein series INPUT: weight -- even integer prec -- integer (bits precision) max_imaginary_part -- real number max_asymp_coeffs -- integer OUTPUT: The L-series of the Eisenstein series. EXAMPLES: We compute with the L-series of $E_{16}$: sage: L = eisenstein_series_Lseries(16) sage: L(1) -0.291657724743873 We compute with the L-series of $E_{20}$: sage: L = eisenstein_series_Lseries(20) sage: L(2) -5.02355351645987 """ f = eisenstein_series_qexp(weight,prec) from sage.lfunctions.all import Dokchitser key = (prec, max_imaginary_part, max_asymp_coeffs) j = weight L = Dokchitser(conductor = 1, gammaV = [0,1], weight = j, eps = (-1)**Integer((j/2)), poles = [j], residues = [(-1)**Integer((j/2))*(float(pi))**(0.5)*bernoulli(j)/j], prec = prec) s = 'coeff = %s;'%f.list() L.init_coeffs('coeff[k+1]',pari_precode = s, max_imaginary_part=max_imaginary_part, max_asymp_coeffs=max_asymp_coeffs) L.check_functional_equation() L.rename('L-series associated to the weight %s Eisenstein series %s on SL_2(Z)'%(j,f)) return L
|
14dc3223746d50de69ff954154301069e5dc285c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/14dc3223746d50de69ff954154301069e5dc285c/eis_series.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
48,
10222,
12,
4865,
16,
13382,
33,
8643,
16,
943,
67,
15374,
2101,
67,
2680,
33,
20,
16,
943,
67,
15762,
1291,
67,
30463,
33,
7132,
4672,
436,
8395,
2000,
326,
511,
17,
10222,
434,
326,
3119,
271,
22,
79,
8,
512,
291,
275,
334,
13685,
4166,
603,
271,
64,
4559,
67,
22,
4713,
62,
21877,
18,
225,
1220,
6013,
1135,
392,
1560,
358,
12652,
463,
601,
343,
305,
550,
1807,
5402,
364,
20303,
598,
326,
511,
17,
10222,
434,
326,
512,
291,
275,
334,
13685,
4166,
225,
12943,
30,
3119,
1493,
5456,
3571,
13382,
1493,
3571,
261,
6789,
6039,
13,
943,
67,
15374,
2101,
67,
2680,
1493,
2863,
1300,
943,
67,
15762,
1291,
67,
30463,
1493,
3571,
225,
11550,
30,
1021,
511,
17,
10222,
434,
326,
512,
291,
275,
334,
13685,
4166,
18,
225,
5675,
8900,
11386,
30,
1660,
3671,
598,
326,
511,
17,
10222,
434,
271,
41,
14147,
2313,
22496,
471,
1508,
271,
41,
14147,
3462,
22496,
30,
272,
410,
30,
511,
273,
425,
291,
275,
334,
13685,
67,
10222,
67,
48,
10222,
12,
2313,
13,
272,
410,
30,
511,
12,
21,
13,
300,
20,
18,
5540,
28275,
4700,
3247,
5608,
7414,
9036,
1660,
3671,
598,
326,
511,
17,
10222,
434,
271,
41,
14147,
3462,
22496,
30,
272,
410,
30,
511,
273,
425,
291,
275,
334,
13685,
67,
10222,
67,
48,
10222,
12,
3462,
13,
272,
410,
30,
511,
12,
22,
13,
300,
25,
18,
3103,
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,
425,
291,
275,
334,
13685,
67,
10222,
67,
48,
10222,
12,
4865,
16,
13382,
33,
8643,
16,
943,
67,
15374,
2101,
67,
2680,
33,
20,
16,
943,
67,
15762,
1291,
67,
30463,
33,
7132,
4672,
436,
8395,
2000,
326,
511,
17,
10222,
434,
326,
3119,
271,
22,
79,
8,
512,
291,
275,
334,
13685,
4166,
603,
271,
64,
4559,
67,
22,
4713,
62,
21877,
18,
225,
1220,
6013,
1135,
392,
1560,
358,
12652,
463,
601,
343,
305,
550,
1807,
5402,
364,
20303,
598,
326,
511,
17,
10222,
434,
326,
512,
291,
275,
334,
13685,
4166,
225,
12943,
30,
3119,
1493,
5456,
3571,
13382,
1493,
3571,
261,
6789,
6039,
13,
943,
67,
15374,
2101,
67,
2680,
1493,
2863,
1300,
2
] |
"""A callback function used when waking over a package tree."""
|
"A callback function used when waking over a package tree."
|
def _packageWalkCallback(builder, dirPath, files): """A callback function used when waking over a package tree.""" files = filter(lambda f:f != '__init__.py', files) files = filter(lambda f:f[-3:] == '.py', files) if files: for f in files: path = os.path.join(dirPath, f) print path builder.indentLevel = builder.indentLevel + 1 documentModule0(path, builder) builder.indentLevel = builder.indentLevel - 1
|
9ddc7f3e5a55d990df726a399c74e3167a73b014 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9ddc7f3e5a55d990df726a399c74e3167a73b014/docpy0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5610,
9463,
2428,
12,
9574,
16,
15891,
16,
1390,
4672,
315,
37,
1348,
445,
1399,
1347,
341,
6159,
1879,
279,
2181,
2151,
1199,
225,
1390,
273,
1034,
12,
14661,
284,
30,
74,
480,
4940,
2738,
25648,
2074,
2187,
1390,
13,
1390,
273,
1034,
12,
14661,
284,
30,
74,
18919,
23,
26894,
422,
2418,
2074,
2187,
1390,
13,
309,
1390,
30,
364,
284,
316,
1390,
30,
589,
273,
1140,
18,
803,
18,
5701,
12,
1214,
743,
16,
284,
13,
1172,
589,
2089,
18,
9355,
2355,
273,
2089,
18,
9355,
2355,
397,
404,
1668,
3120,
20,
12,
803,
16,
2089,
13,
2089,
18,
9355,
2355,
273,
2089,
18,
9355,
2355,
300,
404,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5610,
9463,
2428,
12,
9574,
16,
15891,
16,
1390,
4672,
315,
37,
1348,
445,
1399,
1347,
341,
6159,
1879,
279,
2181,
2151,
1199,
225,
1390,
273,
1034,
12,
14661,
284,
30,
74,
480,
4940,
2738,
25648,
2074,
2187,
1390,
13,
1390,
273,
1034,
12,
14661,
284,
30,
74,
18919,
23,
26894,
422,
2418,
2074,
2187,
1390,
13,
309,
1390,
30,
364,
284,
316,
1390,
30,
589,
273,
1140,
18,
803,
18,
5701,
12,
1214,
743,
16,
284,
13,
1172,
589,
2089,
18,
9355,
2355,
273,
2089,
18,
9355,
2355,
397,
404,
1668,
3120,
20,
12,
803,
16,
2089,
13,
2089,
18,
9355,
2355,
273,
2089,
18,
9355,
2355,
300,
404,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
return os.path.join (homeDir, windowsFile)
|
return os.path.join(homeDir, windowsFile)
|
def get_credentials_file (unixFile=UNIX_CREDENTIALS_FILE, windowsFile=WINDOWS_CREDENTIALS_FILE): if os.name == 'posix': homeDir = os.path.expanduser('~') return os.path.join (homeDir, unixFile) elif os.name : from win32com.shell import shellcon, shell homeDir = shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0) return os.path.join (homeDir, windowsFile) else: return None
|
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11687,
67,
768,
261,
21136,
812,
33,
10377,
60,
67,
31014,
30308,
67,
3776,
16,
9965,
812,
33,
31874,
67,
31014,
30308,
67,
3776,
4672,
309,
1140,
18,
529,
422,
296,
24463,
4278,
6382,
1621,
273,
1140,
18,
803,
18,
12320,
1355,
2668,
98,
6134,
327,
1140,
18,
803,
18,
5701,
261,
8712,
1621,
16,
9753,
812,
13,
1327,
1140,
18,
529,
294,
628,
5657,
1578,
832,
18,
10304,
1930,
5972,
591,
16,
5972,
6382,
1621,
273,
5972,
18,
2664,
967,
28785,
12,
20,
16,
5972,
591,
18,
4596,
734,
48,
67,
7215,
4883,
16,
374,
16,
374,
13,
327,
1140,
18,
803,
18,
5701,
12,
8712,
1621,
16,
9965,
812,
13,
469,
30,
327,
599,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11687,
67,
768,
261,
21136,
812,
33,
10377,
60,
67,
31014,
30308,
67,
3776,
16,
9965,
812,
33,
31874,
67,
31014,
30308,
67,
3776,
4672,
309,
1140,
18,
529,
422,
296,
24463,
4278,
6382,
1621,
273,
1140,
18,
803,
18,
12320,
1355,
2668,
98,
6134,
327,
1140,
18,
803,
18,
5701,
261,
8712,
1621,
16,
9753,
812,
13,
1327,
1140,
18,
529,
294,
628,
5657,
1578,
832,
18,
10304,
1930,
5972,
591,
16,
5972,
6382,
1621,
273,
5972,
18,
2664,
967,
28785,
12,
20,
16,
5972,
591,
18,
4596,
734,
48,
67,
7215,
4883,
16,
374,
16,
374,
13,
327,
1140,
18,
803,
18,
5701,
12,
8712,
1621,
16,
9965,
812,
13,
469,
30,
327,
599,
2
] |
self.filepath = xmlFile.getAttribute("path") self.postdata = xmlFile.getAttribute("post") self.findstr = xmlFile.getAttribute("find") self.flags = xmlFile.getAttribute("flags")
|
self.filepath = str(xmlFile.getAttribute("path")) self.postdata = str(xmlFile.getAttribute("post")) self.findstr = str(xmlFile.getAttribute("find")) self.flags = str(xmlFile.getAttribute("flags"))
|
def __init__(self, xmlFile, config): self.initLog(config) self.filepath = xmlFile.getAttribute("path") self.postdata = xmlFile.getAttribute("post") self.findstr = xmlFile.getAttribute("find") self.flags = xmlFile.getAttribute("flags") self._log("fimap FileObject loaded: %s" %(self.filepath), self.LOG_DEVEL)
|
556c405d104ec59d630e80568df5daf91ab1bf9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4412/556c405d104ec59d630e80568df5daf91ab1bf9d/language.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2025,
812,
16,
642,
4672,
365,
18,
2738,
1343,
12,
1425,
13,
365,
18,
10561,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
803,
6,
3719,
365,
18,
2767,
892,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
2767,
6,
3719,
365,
18,
4720,
701,
225,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
4720,
6,
3719,
365,
18,
7133,
565,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
7133,
6,
3719,
365,
6315,
1330,
2932,
74,
12161,
1387,
921,
4203,
30,
738,
87,
6,
8975,
2890,
18,
10561,
3631,
365,
18,
4842,
67,
1639,
7900,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2025,
812,
16,
642,
4672,
365,
18,
2738,
1343,
12,
1425,
13,
365,
18,
10561,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
803,
6,
3719,
365,
18,
2767,
892,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
2767,
6,
3719,
365,
18,
4720,
701,
225,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
4720,
6,
3719,
365,
18,
7133,
565,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
7133,
6,
3719,
365,
6315,
1330,
2932,
74,
12161,
1387,
921,
4203,
30,
738,
87,
6,
8975,
2890,
18,
10561,
3631,
365,
18,
4842,
67,
1639,
7900,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""
|
"""
|
def flps_draw_tbox(p1, p2, p3, p4, p5, p6, p7): """ flps_draw_tbox(p1, p2, p3, p4, p5, p6, p7) """ _flps_draw_tbox(p1, p2, p3, p4, p5, p6, p7)
|
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,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
4672,
3536,
1183,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
13,
3536,
225,
389,
2242,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
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,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24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
4672,
3536,
1183,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
13,
3536,
225,
389,
2242,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
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
] |
else: log.warning('cooking pid %s did not exit' % pid)
|
def stopBuild(results, pid, inF, csFile): log.info('killing %s' % pid) try: os.kill(-pid, signal.SIGTERM) except OSError, err: if err.errno != errno.ENOENT: raise else: log.warning('cooking pid %s did not exit' % pid) timeSlept = 0 while timeSlept < 10: gotResult, status = os.waitpid(pid, os.WNOHANG) if gotResult: break else: time.sleep(.5) timeSlept += .5 os.close(inF) if not gotResult: log.warning('pid %s did not respond to kill, trying SIGKILL' % pid) try: os.kill(-pid, signal.SIGKILL) except OSError, err: if err.errno != err.ESRCH: raise else: return # just hang waiting gotResult, status = os.waitpid(pid, 0) log.info('pid %s killed' % pid)
|
77acbc9ab36a76a701c56880641d224635b7b25c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8749/77acbc9ab36a76a701c56880641d224635b7b25c/cook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
3116,
12,
4717,
16,
4231,
16,
316,
42,
16,
2873,
812,
4672,
613,
18,
1376,
2668,
79,
5789,
738,
87,
11,
738,
4231,
13,
775,
30,
1140,
18,
16418,
19236,
6610,
16,
4277,
18,
18513,
15176,
13,
1335,
10002,
16,
393,
30,
309,
393,
18,
19088,
480,
8402,
18,
1157,
51,
2222,
30,
1002,
565,
813,
55,
298,
337,
273,
374,
1323,
813,
55,
298,
337,
411,
1728,
30,
2363,
1253,
16,
1267,
273,
1140,
18,
7048,
6610,
12,
6610,
16,
1140,
18,
59,
3417,
44,
3388,
13,
309,
2363,
1253,
30,
898,
469,
30,
813,
18,
19607,
10604,
25,
13,
813,
55,
298,
337,
1011,
263,
25,
1140,
18,
4412,
12,
267,
42,
13,
225,
309,
486,
2363,
1253,
30,
613,
18,
8551,
2668,
6610,
738,
87,
5061,
486,
6846,
358,
8673,
16,
8374,
7004,
47,
15125,
11,
738,
4231,
13,
775,
30,
1140,
18,
16418,
19236,
6610,
16,
4277,
18,
18513,
47,
15125,
13,
1335,
10002,
16,
393,
30,
309,
393,
18,
19088,
480,
393,
18,
3991,
54,
1792,
30,
1002,
469,
30,
327,
225,
468,
2537,
25733,
7336,
2363,
1253,
16,
1267,
273,
1140,
18,
7048,
6610,
12,
6610,
16,
374,
13,
613,
18,
1376,
2668,
6610,
738,
87,
24859,
11,
738,
4231,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
3116,
12,
4717,
16,
4231,
16,
316,
42,
16,
2873,
812,
4672,
613,
18,
1376,
2668,
79,
5789,
738,
87,
11,
738,
4231,
13,
775,
30,
1140,
18,
16418,
19236,
6610,
16,
4277,
18,
18513,
15176,
13,
1335,
10002,
16,
393,
30,
309,
393,
18,
19088,
480,
8402,
18,
1157,
51,
2222,
30,
1002,
565,
813,
55,
298,
337,
273,
374,
1323,
813,
55,
298,
337,
411,
1728,
30,
2363,
1253,
16,
1267,
273,
1140,
18,
7048,
6610,
12,
6610,
16,
1140,
18,
59,
3417,
44,
3388,
13,
309,
2363,
1253,
30,
898,
469,
30,
813,
18,
19607,
10604,
25,
13,
813,
55,
298,
337,
1011,
263,
25,
1140,
18,
4412,
12,
267,
42,
13,
225,
309,
2
] |
|
test() test_execute_in()
|
test(use_tee=0) test(use_tee=1) test_execute_in(use_tee=0) test_execute_in(use_tee=1)
|
def test_execute_in(): pythonexe = get_pythonexe() tmpfile = tempfile.mktemp() fn = os.path.basename(tmpfile) tmpdir = os.path.dirname(tmpfile) f = open(tmpfile,'w') f.write('Hello') f.close() s,o = exec_command('%s -c "print \'Ignore following IOError:\',open(%r,\'r\')"' \ % (pythonexe,fn)) assert s and o!='',(s,o) s,o = exec_command('%s -c "print open(%r,\'r\').read()"' % (pythonexe,fn), execute_in = tmpdir) assert s==0 and o=='Hello',(s,o) os.remove(tmpfile) print 'ok'
|
59c6f7c8809104ffcc97e2083529ae4111b41755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/59c6f7c8809104ffcc97e2083529ae4111b41755/exec_command.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8837,
67,
267,
13332,
5790,
14880,
273,
336,
67,
8103,
14880,
1435,
25613,
273,
13275,
18,
24816,
5814,
1435,
2295,
273,
1140,
18,
803,
18,
13909,
12,
5645,
768,
13,
20213,
273,
1140,
18,
803,
18,
12287,
12,
5645,
768,
13,
284,
273,
1696,
12,
5645,
768,
11189,
91,
6134,
284,
18,
2626,
2668,
18601,
6134,
284,
18,
4412,
1435,
225,
272,
16,
83,
273,
1196,
67,
3076,
29909,
87,
300,
71,
315,
1188,
7164,
3777,
3751,
8340,
5581,
2187,
3190,
9275,
86,
16,
3730,
86,
3730,
2225,
11,
521,
738,
261,
8103,
14880,
16,
4293,
3719,
1815,
272,
471,
320,
5,
2218,
2187,
12,
87,
16,
83,
13,
272,
16,
83,
273,
1196,
67,
3076,
29909,
87,
300,
71,
315,
1188,
1696,
9275,
86,
16,
3730,
86,
3730,
2934,
896,
1435,
5187,
738,
261,
8103,
14880,
16,
4293,
3631,
1836,
67,
267,
273,
20213,
13,
1815,
272,
631,
20,
471,
320,
18920,
18601,
2187,
12,
87,
16,
83,
13,
1140,
18,
4479,
12,
5645,
768,
13,
1172,
296,
601,
11,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8837,
67,
267,
13332,
5790,
14880,
273,
336,
67,
8103,
14880,
1435,
25613,
273,
13275,
18,
24816,
5814,
1435,
2295,
273,
1140,
18,
803,
18,
13909,
12,
5645,
768,
13,
20213,
273,
1140,
18,
803,
18,
12287,
12,
5645,
768,
13,
284,
273,
1696,
12,
5645,
768,
11189,
91,
6134,
284,
18,
2626,
2668,
18601,
6134,
284,
18,
4412,
1435,
225,
272,
16,
83,
273,
1196,
67,
3076,
29909,
87,
300,
71,
315,
1188,
7164,
3777,
3751,
8340,
5581,
2187,
3190,
9275,
86,
16,
3730,
86,
3730,
2225,
11,
521,
738,
261,
8103,
14880,
16,
4293,
3719,
1815,
272,
471,
320,
5,
2218,
2187,
12,
87,
16,
83,
13,
272,
16,
83,
273,
1196,
67,
3076,
2
] |
for i in range(len(patterns)):
|
for i in xrange(len(patterns)):
|
def expect(self, patterns=[], timeout=None, limit=None): """Read from the Connector and return the index of the first pattern which matches the input chain; otherwise, raise an exception.
|
b6a8cf48ec93af35cd798dd7447c4de8ba46bad1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/b6a8cf48ec93af35cd798dd7447c4de8ba46bad1/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
6884,
22850,
6487,
2021,
33,
7036,
16,
1800,
33,
7036,
4672,
3536,
1994,
628,
326,
15779,
471,
327,
326,
770,
434,
326,
1122,
1936,
1492,
1885,
326,
810,
2687,
31,
3541,
16,
1002,
392,
1520,
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,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,
4672,
3536,
1994,
628,
326,
15779,
471,
327,
326,
770,
434,
326,
1122,
1936,
1492,
1885,
326,
810,
2687,
31,
3541,
16,
1002,
392,
1520,
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
] |
self.__lock.acquire() self.__layouts = newLayouts self.__lock.release()
|
self.__lock.acquire() self.__layouts = newLayouts self.__lock.release()
|
def run(self): while self.running: self.interval = 300 # Find out how long we should wait between updates. try: self.interval = int(config.get('Main','xmdsUpdateInterval')) except: # self.interval has been set to a sensible default in this case. log.log(0,"warning",_("No XMDS Update Interval specified in your configuration")) log.log(0,"warning",_("Please check your xmdsUpdateInterval configuration option")) log.log(0,"warning",_("A default value has been used:") + " " + str(self.interval) + " " + _("seconds")) # Call schedule on the webservice schedule = '<schedule/>' try: schedule = self.xmds.Schedule() log.log(5,"audit",_("XmdsScheduler: XMDS Schedule() returned ") + str(schedule)) f = open(config.get('Main','libraryDir') + os.sep + 'schedule.xml','w') f.write(schedule) f.close() except IOError: log.log(0,"error",_("Error trying to cache Schedule to disk")) except XMDSException: log.log(0,"warning",_("XMDS Schedule threw an exception")) try: try: f = open(config.get('Main','libraryDir') + os.sep + 'schedule.xml') schedule = f.read() finally: f.close() except: # Couldn't read or file doesn't exist. Either way, return the default blank schedule. pass scheduleText = "" # Process the received schedule # If the schedule hasn't changed, do nothing. if self.previousSchedule != schedule: self.previousSchedule = schedule doc = minidom.parseString(schedule) tmpLayouts = doc.getElementsByTagName('layout') defaultLayout = doc.getElementsByTagName('default')
|
97d94c12358ac153990471334712fb9c55154a39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5464/97d94c12358ac153990471334712fb9c55154a39/XiboClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
8704,
30,
365,
18,
6624,
273,
11631,
225,
468,
4163,
596,
3661,
1525,
732,
1410,
2529,
3086,
4533,
18,
775,
30,
365,
18,
6624,
273,
509,
12,
1425,
18,
588,
2668,
6376,
17023,
92,
1264,
87,
1891,
4006,
26112,
1335,
30,
468,
365,
18,
6624,
711,
2118,
444,
358,
279,
15390,
1523,
805,
316,
333,
648,
18,
613,
18,
1330,
12,
20,
10837,
8551,
3113,
67,
2932,
2279,
1139,
49,
3948,
2315,
10803,
1269,
316,
3433,
1664,
6,
3719,
613,
18,
1330,
12,
20,
10837,
8551,
3113,
67,
2932,
8496,
866,
3433,
619,
1264,
87,
1891,
4006,
1664,
1456,
6,
3719,
613,
18,
1330,
12,
20,
10837,
8551,
3113,
67,
2932,
37,
805,
460,
711,
2118,
1399,
2773,
13,
397,
315,
315,
397,
609,
12,
2890,
18,
6624,
13,
397,
315,
315,
397,
389,
2932,
7572,
6,
3719,
225,
468,
3049,
4788,
603,
326,
732,
20015,
4788,
273,
2368,
10676,
18280,
775,
30,
4788,
273,
365,
18,
92,
1264,
87,
18,
6061,
1435,
613,
18,
1330,
12,
25,
10837,
17413,
3113,
67,
2932,
60,
1264,
87,
11870,
30,
1139,
49,
3948,
10674,
1435,
2106,
9369,
397,
609,
12,
10676,
3719,
284,
273,
1696,
12,
1425,
18,
588,
2668,
6376,
17023,
12083,
1621,
6134,
397,
1140,
18,
10814,
397,
296,
10676,
18,
2902,
17023,
91,
6134,
284,
18,
2626,
12,
10676,
13,
284,
18,
4412,
1435,
1335,
8340,
30,
613,
18,
1330,
12,
20,
10837,
1636,
3113,
67,
2932,
668,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
8704,
30,
365,
18,
6624,
273,
11631,
225,
468,
4163,
596,
3661,
1525,
732,
1410,
2529,
3086,
4533,
18,
775,
30,
365,
18,
6624,
273,
509,
12,
1425,
18,
588,
2668,
6376,
17023,
92,
1264,
87,
1891,
4006,
26112,
1335,
30,
468,
365,
18,
6624,
711,
2118,
444,
358,
279,
15390,
1523,
805,
316,
333,
648,
18,
613,
18,
1330,
12,
20,
10837,
8551,
3113,
67,
2932,
2279,
1139,
49,
3948,
2315,
10803,
1269,
316,
3433,
1664,
6,
3719,
613,
18,
1330,
12,
20,
10837,
8551,
3113,
67,
2932,
8496,
866,
3433,
619,
1264,
87,
1891,
4006,
1664,
1456,
6,
3719,
613,
18,
1330,
12,
20,
10837,
8551,
3113,
67,
2932,
2
] |
TESTFN = 'test'
|
TESTFN = 'test'
|
def fcmp(x, y): # fuzzy comparison function if type(x) == type(0.0) or type(y) == type(0.0): try: x, y = coerce(x, y) fuzz = (abs(x) + abs(y)) * FUZZ if abs(x-y) <= fuzz: return 0 except: pass elif type(x) == type(y) and type(x) in (type(()), type([])): for i in range(min(len(x), len(y))): outcome = fcmp(x[i], y[i]) if outcome != 0: return outcome return cmp(len(x), len(y)) return cmp(x, y)
|
74088a54d012c6d9dbf6e164d0f7e81de0f12a83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/74088a54d012c6d9dbf6e164d0f7e81de0f12a83/test_support.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
1291,
12,
92,
16,
677,
4672,
468,
21315,
5826,
445,
309,
618,
12,
92,
13,
422,
618,
12,
20,
18,
20,
13,
578,
618,
12,
93,
13,
422,
618,
12,
20,
18,
20,
4672,
775,
30,
619,
16,
677,
273,
12270,
12,
92,
16,
677,
13,
31839,
273,
261,
5113,
12,
92,
13,
397,
2417,
12,
93,
3719,
380,
478,
57,
27096,
309,
2417,
12,
92,
17,
93,
13,
1648,
31839,
30,
327,
374,
1335,
30,
1342,
1327,
618,
12,
92,
13,
422,
618,
12,
93,
13,
471,
618,
12,
92,
13,
316,
261,
723,
12,
1435,
3631,
618,
3816,
22643,
30,
364,
277,
316,
1048,
12,
1154,
12,
1897,
12,
92,
3631,
562,
12,
93,
3719,
4672,
12884,
273,
8036,
1291,
12,
92,
63,
77,
6487,
677,
63,
77,
5717,
309,
12884,
480,
374,
30,
327,
12884,
327,
9411,
12,
1897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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
1291,
12,
92,
16,
677,
4672,
468,
21315,
5826,
445,
309,
618,
12,
92,
13,
422,
618,
12,
20,
18,
20,
13,
578,
618,
12,
93,
13,
422,
618,
12,
20,
18,
20,
4672,
775,
30,
619,
16,
677,
273,
12270,
12,
92,
16,
677,
13,
31839,
273,
261,
5113,
12,
92,
13,
397,
2417,
12,
93,
3719,
380,
478,
57,
27096,
309,
2417,
12,
92,
17,
93,
13,
1648,
31839,
30,
327,
374,
1335,
30,
1342,
1327,
618,
12,
92,
13,
422,
618,
12,
93,
13,
471,
618,
12,
92,
13,
316,
261,
723,
12,
1435,
3631,
618,
3816,
22643,
30,
364,
277,
316,
1048,
12,
1154,
12,
1897,
12,
92,
3631,
562,
12,
93,
3719,
2
] |
self.DebugStr('pManager '+ __version__ +': Basedir is "'+self.sBaseDir+'".')
|
self.DebugStr('pManager '+ __version__ +': Basedir is "'+self.sBaseDir+'".', 2)
|
def __init__(self, sConfigFileName): """Constructor."""
|
0cac88e865d618b23e0bbc34f2a374cdf6fb3cbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/0cac88e865d618b23e0bbc34f2a374cdf6fb3cbb/pManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
809,
4771,
4672,
3536,
6293,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
809,
4771,
4672,
3536,
6293,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if item.get_filename() in knownFiles:
|
if item.get_filename() in known_files:
|
def isBasenameHidden(filename): if filename[-1] == os.sep: filename = filename[:-1] return os.path.basename(filename)[0] == FilenameType('.')
|
a24dad9e8b4354c15ebbbd701c522ca0999d4727 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/a24dad9e8b4354c15ebbbd701c522ca0999d4727/feed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
11494,
1069,
9345,
12,
3459,
4672,
309,
1544,
18919,
21,
65,
422,
1140,
18,
10814,
30,
1544,
273,
1544,
10531,
17,
21,
65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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
11494,
1069,
9345,
12,
3459,
4672,
309,
1544,
18919,
21,
65,
422,
1140,
18,
10814,
30,
1544,
273,
1544,
10531,
17,
21,
65,
327,
1140,
18,
803,
18,
13909,
12,
3459,
25146,
20,
65,
422,
16671,
559,
2668,
1093,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nodeinfo = self.rpc.call_node_info(nodenames, self.cfg.GetVGName(), self.op.hypervisor) for node in nodenames: info = nodeinfo[node] info.Raise("Cannot get current information from node %s" % node) info = info.payload vg_free = info.get('vg_free', None) if not isinstance(vg_free, int): raise errors.OpPrereqError("Can't compute free disk space on" " node %s" % node, errors.ECODE_ENVIRON) if req_size > vg_free: raise errors.OpPrereqError("Not enough disk space on target node %s." " %d MB available, %d MB required" % (node, vg_free, req_size), errors.ECODE_NORES)
|
_CheckNodesFreeDisk(self, nodenames, req_size)
|
def CheckPrereq(self): """Check prerequisites.
|
701384a9a07d0e9a5f1677b2838f0906967283df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/701384a9a07d0e9a5f1677b2838f0906967283df/cmdlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
static_options=None, cnf={}, kw={}): if kw: cnf = _cnfmerge((cnf, kw)) else: cnf = _cnfmerge(cnf) extra=() if static_options: for k,v in cnf.items()[:]: if k in static_options: extra = extra + ('-' + k, v) del cnf[k] self.widgetName = widgetName Widget._setup(self, master, cnf) if widgetName: apply(self.tk.call, (widgetName, self._w) + extra) if cnf: Widget.config(self, cnf) self.subwidget_list = {}
|
static_options=None, cnf={}, kw={}): if kw: cnf = _cnfmerge((cnf, kw)) else: cnf = _cnfmerge(cnf) extra=() if static_options: for k,v in cnf.items()[:]: if k in static_options: extra = extra + ('-' + k, v) del cnf[k] self.widgetName = widgetName Widget._setup(self, master, cnf) if widgetName: apply(self.tk.call, (widgetName, self._w) + extra) if cnf: Widget.config(self, cnf) self.subwidget_list = {}
|
def __init__ (self, master=None, widgetName=None,
|
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
4171,
33,
7036,
16,
3604,
461,
33,
7036,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
4171,
33,
7036,
16,
3604,
461,
33,
7036,
16,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cospectral graphs.
|
cospectral graphs (lists of cadinality 1 being omitted).
|
def cospectral_graphs(self, vertices, matrix_function=lambda g: g.adjacency_matrix(), graphs=None): """ Find all sets of graphs on ``vertices`` vertices (with possible restrictions) which are cospectral with respect to a constructed matrix.
|
88546e9cc29663fc88d6d6854e69efff5af6ec95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/88546e9cc29663fc88d6d6854e69efff5af6ec95/graph_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4987,
21449,
67,
30016,
12,
2890,
16,
6928,
16,
3148,
67,
915,
33,
14661,
314,
30,
314,
18,
13829,
1077,
2075,
67,
5667,
9334,
19422,
33,
7036,
4672,
3536,
4163,
777,
1678,
434,
19422,
603,
12176,
17476,
10335,
6928,
261,
1918,
3323,
17499,
13,
1492,
854,
4987,
21449,
598,
8762,
358,
279,
15688,
3148,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4987,
21449,
67,
30016,
12,
2890,
16,
6928,
16,
3148,
67,
915,
33,
14661,
314,
30,
314,
18,
13829,
1077,
2075,
67,
5667,
9334,
19422,
33,
7036,
4672,
3536,
4163,
777,
1678,
434,
19422,
603,
12176,
17476,
10335,
6928,
261,
1918,
3323,
17499,
13,
1492,
854,
4987,
21449,
598,
8762,
358,
279,
15688,
3148,
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
] |
P += arrow((pos[u][0],pos[u][1]),(pos[v][0],pos[v][1]),rgbcolor=(0,0,0))
|
P += arrow((pos[u][0],pos[u][1]),(pos[v][0],pos[v][1]), **edge_style)
|
def plot(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, partition=None, edge_colors=None, scaling_term=0.05, iterations=50, loop_size=.1, talk=False, color_by_label=False, heights=None): """ Returns a graphics object representing the (di)graph. INPUT: pos -- an optional positioning dictionary layout -- what kind of layout to use, takes precedence over pos 'circular' -- plots the graph with vertices evenly distributed on a circle 'spring' -- uses the traditional spring layout, using the graph's current positions as initial positions vertex_labels -- whether to print vertex labels edge_labels -- whether to print edge labels. By default, False, but if True, the result of str(l) is printed on the edge for each label l. Labels equal to None are not printed. vertex_size -- size of vertices displayed graph_border -- whether to include a box around the graph vertex_colors -- optional dictionary to specify vertex colors: each key is a color recognizable by matplotlib, and each corresponding entry is a list of vertices. If a vertex is not listed, it looks invisible on the resulting plot (it doesn't get drawn). edge_colors -- a dictionary specifying edge colors: each key is a color recognized by matplotlib, and each entry is a list of edges. partition -- a partition of the vertex set. if specified, plot will show each cell in a different color. vertex_colors takes precedence. scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph is too small, decrease. should be positive, but values much bigger than 1/8 won't be useful unless the vertices are huge talk -- if true, prints large vertices with white backgrounds so that labels are legible on slides iterations -- how many iterations of the spring layout algorithm to go through, if applicable color_by_label -- if True, color edges by their labels heights -- if specified, this is a dictionary from a set of floating point heights to a set of vertices EXAMPLES: sage: from math import sin, cos, pi sage: P = graphs.PetersenGraph() sage: d = {'#FF0000':[0,5], '#FF9900':[1,6], '#FFFF00':[2,7], '#00FF00':[3,8], '#0000FF':[4,9]} sage: pos_dict = {} sage: for i in range(5): ... x = float(cos(pi/2 + ((2*pi)/5)*i)) ... y = float(sin(pi/2 + ((2*pi)/5)*i)) ... pos_dict[i] = [x,y] ... sage: for i in range(10)[5:]: ... x = float(0.5*cos(pi/2 + ((2*pi)/5)*i)) ... y = float(0.5*sin(pi/2 + ((2*pi)/5)*i)) ... pos_dict[i] = [x,y] ... sage: pl = P.plot(pos=pos_dict, vertex_colors=d) sage: pl.show() sage: C = graphs.CubeGraph(8) sage: P = C.plot(vertex_labels=False, vertex_size=0, graph_border=True) sage: P.show() sage: G = graphs.HeawoodGraph() sage: for u,v,l in G.edges(): ... G.set_edge_label(u,v,'(' + str(u) + ',' + str(v) + ')') sage: G.plot(edge_labels=True).show() sage: D = DiGraph( { 0: [1, 10, 19], 1: [8, 2], 2: [3, 6], 3: [19, 4], 4: [17, 5], 5: [6, 15], 6: [7], 7: [8, 14], 8: [9], 9: [10, 13], 10: [11], 11: [12, 18], 12: [16, 13], 13: [14], 14: [15], 15: [16], 16: [17], 17: [18], 18: [19], 19: []} ) sage: for u,v,l in D.edges(): ... D.set_edge_label(u,v,'(' + str(u) + ',' + str(v) + ')') sage: D.plot(edge_labels=True, layout='circular').show()
|
3323af5b44fb141acb0df020218a8dabe24fcfb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3323af5b44fb141acb0df020218a8dabe24fcfb9/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5253,
67,
9724,
33,
7036,
16,
3590,
33,
7036,
16,
3591,
67,
9724,
33,
7036,
16,
10612,
67,
6408,
33,
20,
18,
6260,
16,
11316,
33,
3361,
16,
2798,
67,
1467,
33,
18,
21,
16,
26591,
33,
8381,
16,
2036,
67,
1637,
67,
1925,
33,
8381,
16,
24779,
33,
7036,
4672,
3536,
2860,
279,
17313,
733,
5123,
326,
261,
3211,
13,
4660,
18,
225,
12943,
30,
949,
1493,
392,
3129,
1754,
310,
3880,
3511,
1493,
4121,
3846,
434,
3511,
358,
999,
16,
5530,
14172,
1879,
949,
296,
11614,
9559,
11,
1493,
17931,
326,
2667,
598,
6928,
5456,
715,
16859,
603,
279,
12470,
296,
87,
11638,
11,
1493,
4692,
326,
1284,
1460,
287,
25974,
3511,
16,
1450,
326,
2667,
1807,
783,
6865,
487,
2172,
6865,
5253,
67,
5336,
1493,
2856,
358,
1172,
5253,
3249,
3591,
67,
5336,
1493,
2856,
358,
1172,
3591,
3249,
18,
2525,
805,
16,
1083,
16,
1496,
309,
1053,
16,
326,
563,
434,
609,
12,
80,
13,
353,
14099,
603,
326,
3591,
364,
1517,
1433,
328,
18,
12395,
3959,
358,
599,
854,
486,
14099,
18,
5253,
67,
1467,
1493,
963,
434,
6928,
10453,
2667,
67,
8815,
1493,
2856,
358,
2341,
279,
3919,
6740,
326,
2667,
5253,
67,
9724,
1493,
3129,
3880,
358,
4800,
5253,
5740,
30,
1517,
498,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5253,
67,
9724,
33,
7036,
16,
3590,
33,
7036,
16,
3591,
67,
9724,
33,
7036,
16,
10612,
67,
6408,
33,
20,
18,
6260,
16,
11316,
33,
3361,
16,
2798,
67,
1467,
33,
18,
21,
16,
26591,
33,
8381,
16,
2036,
67,
1637,
67,
1925,
33,
8381,
16,
24779,
33,
7036,
4672,
3536,
2860,
279,
17313,
733,
5123,
326,
261,
3211,
13,
4660,
18,
225,
12943,
30,
949,
1493,
392,
3129,
1754,
310,
3880,
3511,
1493,
4121,
3846,
434,
3511,
358,
999,
16,
2
] |
self.music_paths = [["/tmp",],] self.cache_music_tree_beans = [[],]
|
self.music_paths = [["/tmp", ], ] self.cache_music_tree_beans = [[], ]
|
def __init__(self): """init default values""" self.is_view_info_panel = True self.is_view_search_panel = True self.is_view_music_tree_panel = True self.is_view_lyric_panel = True self.is_view_video_panel = True self.is_order_random = False self.repeat_state = const.REPEAT_ALL self.playlist_type = const.PLAYLIST_TREE
|
70e20b80401dc71ee60eb9261651d8b1f96eabd2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/70e20b80401dc71ee60eb9261651d8b1f96eabd2/fc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2738,
805,
924,
8395,
365,
18,
291,
67,
1945,
67,
1376,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
3072,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
81,
14894,
67,
3413,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
715,
1512,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
9115,
67,
13916,
273,
1053,
365,
18,
291,
67,
1019,
67,
9188,
273,
1083,
365,
18,
9374,
67,
2019,
273,
1866,
18,
862,
31804,
67,
4685,
365,
18,
1601,
1098,
67,
723,
273,
1866,
18,
52,
7868,
7085,
67,
26557,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3536,
2738,
805,
924,
8395,
365,
18,
291,
67,
1945,
67,
1376,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
3072,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
81,
14894,
67,
3413,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
715,
1512,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
9115,
67,
13916,
273,
1053,
365,
18,
291,
67,
1019,
67,
9188,
273,
1083,
365,
18,
9374,
67,
2019,
273,
1866,
18,
862,
31804,
67,
4685,
365,
18,
1601,
1098,
67,
723,
273,
1866,
18,
52,
7868,
7085,
67,
26557,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return r._fix(context=context)
|
return r._fix(context)
|
def remainder_near(self, other, context=None): """ Remainder nearest to 0- abs(remainder-near) <= other/2 """ other = _convert_other(other)
|
b277e15abb88b70aabae5a4859ba6920ae8be40f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b277e15abb88b70aabae5a4859ba6920ae8be40f/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10022,
67,
27862,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
2663,
25407,
11431,
358,
374,
17,
225,
2417,
12,
2764,
25407,
17,
27862,
13,
1648,
1308,
19,
22,
3536,
1308,
273,
389,
6283,
67,
3011,
12,
3011,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10022,
67,
27862,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
2663,
25407,
11431,
358,
374,
17,
225,
2417,
12,
2764,
25407,
17,
27862,
13,
1648,
1308,
19,
22,
3536,
1308,
273,
389,
6283,
67,
3011,
12,
3011,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']):
|
result = set(clsDepsObj.data['require']) ignores = map(attrgetter("name"), clsDepsObj.data['ignore']) optionals = map(attrgetter("name"), clsDepsObj.data['optional']) requires = map(attrgetter("name"), clsDepsObj.data['require']) uses = map(attrgetter("name"), clsDepsObj.data['use']) if not "auto-require" in ignores:
|
def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep in clsDepsObj.data['optional']: pass elif dep in clsDepsObj.data['require']: console.warn("%s: #require(%s) is auto-detected" % (self.id, dep.name)) else: # class projection if dep.name not in map(attrgetter("name"),result): result.add(dep) return result
|
4b59a7eed3eadb6236bfcf7de8abbdbe327f1e3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/4b59a7eed3eadb6236bfcf7de8abbdbe327f1e3d/Class.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2563,
14430,
12,
6429,
14430,
2675,
4672,
563,
565,
273,
444,
12,
6429,
14430,
2675,
18,
892,
3292,
6528,
19486,
17868,
282,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
6185,
19486,
1456,
1031,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
10444,
19486,
4991,
225,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
6528,
19486,
4692,
1377,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
1202,
19486,
309,
486,
315,
6079,
17,
6528,
6,
316,
17868,
30,
364,
5993,
316,
2028,
14430,
2675,
18,
15896,
3198,
13332,
309,
5993,
18,
291,
2563,
16316,
30,
309,
5993,
316,
2028,
14430,
2675,
18,
892,
3292,
10444,
3546,
30,
1342,
1327,
5993,
316,
2028,
14430,
2675,
18,
892,
3292,
6528,
3546,
30,
2983,
18,
8935,
27188,
87,
30,
468,
6528,
9275,
87,
13,
353,
3656,
17,
8238,
828,
6,
738,
261,
2890,
18,
350,
16,
5993,
18,
529,
3719,
469,
30,
468,
667,
8106,
309,
5993,
18,
529,
486,
316,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2088,
4672,
563,
18,
1289,
12,
15037,
13,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2563,
14430,
12,
6429,
14430,
2675,
4672,
563,
565,
273,
444,
12,
6429,
14430,
2675,
18,
892,
3292,
6528,
19486,
17868,
282,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
6185,
19486,
1456,
1031,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
10444,
19486,
4991,
225,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
6528,
19486,
4692,
1377,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
14430,
2675,
18,
892,
3292,
1202,
19486,
309,
486,
315,
6079,
17,
6528,
6,
316,
17868,
30,
364,
5993,
316,
2028,
14430,
2675,
18,
15896,
3198,
13332,
309,
2
] |
for digest in FileDigester(sys.stdin, self.digest_spec):
|
for digest in get_input_handler(sys.stdin, self.digest_spec):
|
def info(self, args): getopt.getopt(args[1:], '')
|
5802632fd0a97e25414d2bdab19d018e0319a6bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7249/5802632fd0a97e25414d2bdab19d018e0319a6bd/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2890,
16,
833,
4672,
336,
3838,
18,
588,
3838,
12,
1968,
63,
21,
30,
6487,
28707,
2,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2890,
16,
833,
4672,
336,
3838,
18,
588,
3838,
12,
1968,
63,
21,
30,
6487,
28707,
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
] |
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label.
|
def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label.
|
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- if False, each edge is a tuple (u,v) of vertices. EXAMPLES: sage: graphs.DodecahedralGraph().edges() [(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, None), (2, 3, None), (2, 6, None), (3, 19, None), (3, 4, None), (4, 17, None), (4, 5, None), (5, 6, None), (5, 15, None), (6, 7, None), (7, 8, None), (7, 14, None), (8, 9, None), (9, 10, None), (9, 13, None), (10, 11, None), (11, 12, None), (11, 18, None), (12, 16, None), (12, 13, None), (13, 14, None), (14, 15, None), (15, 16, None), (16, 17, None), (17, 18, None), (18, 19, None)] sage: graphs.DodecahedralGraph().edges(labels=False) [(0, 1), (0, 10), (0, 19), (1, 8), (1, 2), (2, 3), (2, 6), (3, 19), (3, 4), (4, 17), (4, 5), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 16), (12, 13), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)]
|
a91dc4550e1b102d7691b4a8b57719dcd056681b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a91dc4550e1b102d7691b4a8b57719dcd056681b/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353,
279,
1433,
18,
225,
12943,
30,
3249,
1493,
309,
1083,
16,
1517,
3591,
353,
279,
3193,
261,
89,
16,
90,
13,
434,
6928,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
19422,
18,
40,
390,
5353,
28351,
4137,
7675,
8746,
1435,
306,
12,
20,
16,
404,
16,
599,
3631,
261,
20,
16,
1728,
16,
599,
3631,
261,
20,
16,
5342,
16,
599,
3631,
261,
21,
16,
1725,
16,
599,
3631,
261,
21,
16,
576,
16,
599,
3631,
261,
22,
16,
890,
16,
599,
3631,
261,
22,
16,
1666,
16,
599,
3631,
261,
23,
16,
5342,
16,
599,
3631,
261,
23,
16,
1059,
16,
599,
3631,
261,
24,
16,
8043,
16,
599,
3631,
261,
24,
16,
1381,
16,
599,
3631,
261,
25,
16,
1666,
16,
599,
3631,
261,
25,
16,
4711,
16,
599,
3631,
261,
26,
16,
2371,
16,
599,
3631,
261,
27,
16,
1725,
16,
599,
3631,
261,
27,
16,
5045,
16,
599,
3631,
261,
28,
16,
2468,
16,
599,
3631,
261,
29,
16,
1728,
16,
599,
3631,
261,
29,
16,
5958,
16,
599,
3631,
261,
2163,
16,
4648,
16,
599,
3631,
261,
2499,
16,
2593,
16,
599,
3631,
261,
2499,
16,
6549,
16,
599,
3631,
261,
2138,
16,
2872,
16,
599,
3631,
261,
2138,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,
6928,
471,
328,
353,
279,
1433,
18,
225,
12943,
30,
3249,
1493,
309,
1083,
16,
1517,
3591,
353,
279,
3193,
261,
89,
16,
90,
13,
434,
6928,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
19422,
18,
40,
390,
5353,
28351,
4137,
7675,
8746,
1435,
306,
12,
20,
16,
404,
16,
599,
3631,
261,
20,
16,
1728,
16,
599,
3631,
261,
20,
16,
5342,
16,
599,
3631,
261,
21,
16,
1725,
16,
599,
3631,
261,
21,
16,
576,
16,
599,
3631,
2
] |
try: print 2,'oDataOperation.keyFieldsList', type(oDataOperation.keyFieldsList) sys.stdout.flush() print 2,'oDataOperation.valueFieldsList', type(oDataOperation.valueFieldsList) sys.stdout.flush() print 2,'oDataOperation.fieldsList', type(oDataOperation.fieldsList) sys.stdout.flush() print 2,'oDataOperation.valuesList', type(oDataOperation.valuesList) sys.stdout.flush() print 2,'oDataOperation.definitionKeyFields', type(oDataOperation.definitionKeyFields) sys.stdout.flush() print 2,'oDataOperation.definitionAccountingFields', type(oDataOperation.definitionAccountingFields) sys.stdout.flush() print 2,oDataOperation.getContents() sys.stdout.flush() except Exception, x: print 'getContents Exception 2' sys.stdout.flush() print x sys.stdout.flush() gLogger.exception('getConntent'+str(x))
|
def __gfalturlsfromsurls_wrapper(self,urls,listProtocols): """ This is a function that can be reused everywhere to perform the gfal_turlsfromsurls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['protocols'] = listProtocols gfalDict['srmv2_spacetokendesc'] = self.spaceToken
|
f5e441c3ab9241d3462727b1b293a681e5bd2781 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/f5e441c3ab9241d3462727b1b293a681e5bd2781/SRM2Storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
88,
10518,
2080,
87,
10518,
3536,
13828,
287,
5014,
273,
2618,
13828,
287,
5014,
3292,
1886,
542,
388,
3546,
273,
296,
87,
8864,
90,
22,
11,
13828,
287,
5014,
3292,
2135,
67,
16410,
2835,
67,
1893,
3546,
273,
404,
13828,
287,
5014,
3292,
31018,
3546,
273,
666,
21657,
13828,
287,
5014,
3292,
87,
8864,
90,
22,
67,
1752,
1077,
278,
601,
409,
742,
3546,
273,
365,
18,
2981,
1345,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
10518,
3536,
13828,
287,
5014,
273,
2618,
13828,
287,
5014,
3292,
1886,
542,
388,
3546,
273,
296,
87,
8864,
90,
22,
11,
13828,
287,
5014,
3292,
2135,
67,
16410,
2835,
67,
1893,
3546,
273,
404,
13828,
287,
5014,
3292,
31018,
3546,
273,
666,
21657,
13828,
287,
5014,
3292,
87,
8864,
90,
22,
67,
1752,
1077,
278,
601,
409,
742,
3546,
273,
365,
18,
2981,
1345,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
file.warning("Malformed LyX file.")
|
file.warning("Malformed LyX file : Missing 'status'.")
|
def revert_ert(file): i = 0 while 1: i = find_token(file.body, "\\begin_inset ERT", i) if i == -1: break # Seach for a line starting 'status' # If, however, we find a line starting '\begin_layout' # (_always_ present) then break with a warning message i = i + 1 while 1: if (file.body[i] == "status open"): file.body[i] = "status Open" break elif (file.body[i] == "status collapsed"): file.body[i] = "status Collapsed" break elif (file.body[i] == "status inlined"): file.body[i] = "status Inlined" break elif (file.body[i][:13] == "\\begin_layout"): file.warning("Malformed LyX file.") break i = i + 1 i = i + 1
|
72dccb886997419e637acefa586da331faa586ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/72dccb886997419e637acefa586da331faa586ac/lyx_1_4.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1051,
12,
768,
4672,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
768,
18,
3432,
16,
8422,
10086,
67,
267,
542,
4232,
56,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
898,
225,
468,
3265,
497,
364,
279,
980,
5023,
296,
2327,
11,
468,
971,
16,
14025,
16,
732,
1104,
279,
980,
5023,
2337,
10086,
67,
6741,
11,
468,
261,
67,
17737,
67,
3430,
13,
1508,
898,
598,
279,
3436,
883,
277,
273,
277,
397,
404,
1323,
404,
30,
309,
261,
768,
18,
3432,
63,
77,
65,
422,
315,
2327,
1696,
6,
4672,
585,
18,
3432,
63,
77,
65,
273,
315,
2327,
3502,
6,
898,
1327,
261,
768,
18,
3432,
63,
77,
65,
422,
315,
2327,
17027,
6,
4672,
585,
18,
3432,
63,
77,
65,
273,
315,
2327,
1558,
13886,
6,
898,
1327,
261,
768,
18,
3432,
63,
77,
65,
422,
315,
2327,
316,
22316,
6,
4672,
585,
18,
3432,
63,
77,
65,
273,
315,
2327,
657,
22316,
6,
898,
1327,
261,
768,
18,
3432,
63,
77,
6362,
30,
3437,
65,
422,
8422,
10086,
67,
6741,
6,
4672,
585,
18,
8551,
2932,
18695,
511,
93,
60,
585,
294,
10230,
296,
2327,
14550,
13,
898,
277,
273,
277,
397,
404,
225,
277,
273,
277,
397,
404,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1051,
12,
768,
4672,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
768,
18,
3432,
16,
8422,
10086,
67,
267,
542,
4232,
56,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
898,
225,
468,
3265,
497,
364,
279,
980,
5023,
296,
2327,
11,
468,
971,
16,
14025,
16,
732,
1104,
279,
980,
5023,
2337,
10086,
67,
6741,
11,
468,
261,
67,
17737,
67,
3430,
13,
1508,
898,
598,
279,
3436,
883,
277,
273,
277,
397,
404,
1323,
404,
30,
309,
261,
768,
18,
3432,
63,
77,
65,
422,
315,
2327,
1696,
6,
4672,
585,
18,
3432,
63,
77,
65,
273,
315,
2327,
3502,
6,
898,
1327,
261,
768,
18,
3432,
63,
2
] |
self.fileProcessor.setFromSpec(scan)
|
self.fileProcessor.setFromSpec(conScan)
|
def setSpecScan(self, conScan): """Set the settings for the set from the considered pyspec scan object
|
78826937656362887f7aa42720d3ae9c35659451 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/78826937656362887f7aa42720d3ae9c35659451/transformations.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1990,
7972,
12,
2890,
16,
356,
7972,
4672,
3536,
694,
326,
1947,
364,
326,
444,
628,
326,
7399,
21027,
705,
4135,
733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1990,
7972,
12,
2890,
16,
356,
7972,
4672,
3536,
694,
326,
1947,
364,
326,
444,
628,
326,
7399,
21027,
705,
4135,
733,
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
] |
self.matches['email'] = self._vte.match_add (lboundry +
|
self.matches['email'] = self.vte.match_add (lboundry +
|
def update_url_matches(self, posix = True): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" hostchars = "-A-Za-z0-9" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'\"" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars + "]+(:[" + passchars + "]+)?" urlpath = "/[" + pathchars + "]*[^]'.}>) \t\r\n,\\\"]"
|
e0f38d4431cfd4e81403279a4c2c999f1f8af721 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/e0f38d4431cfd4e81403279a4c2c999f1f8af721/terminal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1342,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
27166,
31,
18,
27824,
5,
9,
8,
66,
14,
10,
98,
2412,
7,
4970,
1479,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
589,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
23371,
15591,
5,
14,
9334,
31,
30,
36,
10,
17282,
19,
98,
7,
8604,
8530,
20436,
282,
273,
7751,
18443,
30,
96,
19261,
2758,
30,
96,
82,
496,
84,
30,
96,
768,
27824,
96,
4528,
35,
30,
96,
1222,
1121,
35,
30,
96,
4875,
771,
30,
2225,
729,
1377,
273,
13626,
397,
729,
7549,
397,
315,
3737,
20510,
9614,
397,
1342,
7549,
397,
315,
7941,
7225,
880,
803,
282,
273,
2206,
9614,
397,
589,
7549,
397,
315,
5772,
5969,
3864,
18,
97,
23429,
521,
88,
64,
86,
64,
82,
16,
1695,
2412,
4279,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1342,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
27166,
31,
18,
27824,
5,
9,
8,
66,
14,
10,
98,
2412,
7,
4970,
1479,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
589,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
23371,
15591,
5,
14,
9334,
31,
30,
36,
10,
17282,
19,
98,
7,
8604,
8530,
20436,
282,
273,
7751,
18443,
30,
96,
19261,
2758,
30,
96,
82,
496,
84,
30,
96,
768,
2
] |
xlink:type="embed" \s+
|
xlink:type="simple" \s+ xlink:show="embed" \s+
|
def test_img1(self): html = '<html xmlns="http://www.w3.org/1999/xhtml"><img src="imagesource"/></html>' odt = xhtml2odt(html) print odt assert re.search(r"""<draw:frame \s+ (xmlns:[a-z0-9=:".-]+ \s+)* # namespaces text:anchor-type="paragraph" \s+ draw:name="imageobject-[a-z0-9]+" \s+ svg:width="8cm" \s+ style:rel-width="50%" \s+ svg:height="6cm" \s+ style:rel-height="scale" \s+ svg:y="0.20cm" \s+ draw:z-index="1"> \s* <draw:image \s+ xmlns:xlink="http://www.w3.org/1999/xlink" \s+ xlink:href="imagesource" \s+ xlink:type="embed" \s+ xlink:actuate="onLoad"/> \s* <svg:title/> \s* </draw:frame>""", str(odt), re.X)
|
3a511acf1f97db722900be3dd399e5cf3322252c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3a511acf1f97db722900be3dd399e5cf3322252c/test_media.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6081,
21,
12,
2890,
4672,
1729,
273,
2368,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
14050,
6081,
1705,
1546,
7369,
552,
6,
19,
4695,
2620,
1870,
320,
7510,
273,
619,
2620,
22,
369,
88,
12,
2620,
13,
1172,
320,
7510,
1815,
283,
18,
3072,
12,
86,
8395,
32,
9446,
30,
3789,
521,
87,
15,
261,
16741,
30,
63,
69,
17,
94,
20,
17,
29,
33,
2773,
18,
23238,
521,
87,
6975,
14,
468,
7728,
977,
30,
16215,
17,
723,
1546,
22445,
6,
521,
87,
15,
3724,
30,
529,
1546,
2730,
1612,
17,
63,
69,
17,
94,
20,
17,
29,
3737,
6,
521,
87,
15,
9804,
30,
2819,
1546,
28,
7670,
6,
521,
87,
15,
2154,
30,
2878,
17,
2819,
1546,
3361,
16407,
521,
87,
15,
9804,
30,
4210,
1546,
26,
7670,
6,
521,
87,
15,
2154,
30,
2878,
17,
4210,
1546,
5864,
6,
521,
87,
15,
9804,
30,
93,
1546,
20,
18,
3462,
7670,
6,
521,
87,
15,
3724,
30,
94,
17,
1615,
1546,
21,
6441,
521,
87,
14,
411,
9446,
30,
2730,
521,
87,
15,
12302,
30,
92,
1232,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
92,
1232,
6,
521,
87,
15,
619,
1232,
30,
7547,
1546,
7369,
552,
6,
521,
87,
15,
619,
1232,
30,
723,
1546,
9647,
6,
521,
87,
15,
619,
1232,
30,
4500,
1546,
8483,
6,
521,
87,
15,
619,
1232,
30,
621,
89,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6081,
21,
12,
2890,
4672,
1729,
273,
2368,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
14050,
6081,
1705,
1546,
7369,
552,
6,
19,
4695,
2620,
1870,
320,
7510,
273,
619,
2620,
22,
369,
88,
12,
2620,
13,
1172,
320,
7510,
1815,
283,
18,
3072,
12,
86,
8395,
32,
9446,
30,
3789,
521,
87,
15,
261,
16741,
30,
63,
69,
17,
94,
20,
17,
29,
33,
2773,
18,
23238,
521,
87,
6975,
14,
468,
7728,
977,
30,
16215,
17,
723,
1546,
22445,
6,
521,
87,
15,
3724,
30,
529,
1546,
2730,
1612,
17,
63,
69,
17,
94,
20,
17,
29,
3737,
6,
521,
87,
15,
9804,
30,
2819,
2
] |
for t in itera.get_tags() : if t.get_data('is_subtask') : print "subtask"
|
def _insert_at_cursor(self,tv,itera,tex,leng) : for t in itera.get_tags() : if t.get_data('is_subtask') : print "subtask" #New line : the user pressed enter ! #If the line begins with "-", it's a new subtask ! if tex == '\n' : #The nbr just before the \n line_nbr = itera.get_line() start_line = itera.copy() start_line.set_line(line_nbr) end_line = itera.copy() #We add a bullet list but not on the first line #Because it's the title if line_nbr > 0 : line = start_line.get_slice(end_line) #the "-" might be after a space #Python 2.5 should allow both tests in one if line.startswith('-') or line.startswith(' -') : line = line.lstrip(' -') #From Tomboy : ('\u2022\u2218\u2023') #bullet = '%s%s%s' %(unichr(2022),unichr(2218),unichr(2023)) #FIXME : we should insert the correct UTF-8 code self.__newsubtask(line,line_nbr) #We must stop the signal because if not, #\n will be inserted twice ! tv.emit_stop_by_name('insert-text') return True
|
64484915371fc471752e54cff8e9a786087d93e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7036/64484915371fc471752e54cff8e9a786087d93e7/taskview.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
67,
270,
67,
9216,
12,
2890,
16,
24161,
16,
2165,
69,
16,
21763,
16,
1897,
75,
13,
294,
565,
468,
1908,
980,
294,
326,
729,
19504,
6103,
401,
468,
2047,
326,
980,
17874,
598,
3701,
3113,
518,
1807,
279,
394,
720,
4146,
401,
309,
16573,
422,
2337,
82,
11,
294,
468,
1986,
26297,
2537,
1865,
326,
521,
82,
980,
67,
82,
2848,
273,
1400,
69,
18,
588,
67,
1369,
1435,
787,
67,
1369,
273,
1400,
69,
18,
3530,
1435,
787,
67,
1369,
18,
542,
67,
1369,
12,
1369,
67,
82,
2848,
13,
679,
67,
1369,
273,
1400,
69,
18,
3530,
1435,
468,
3218,
527,
279,
31650,
666,
1496,
486,
603,
326,
1122,
980,
468,
38,
11884,
518,
1807,
326,
2077,
309,
980,
67,
82,
2848,
405,
374,
294,
980,
273,
787,
67,
1369,
18,
588,
67,
6665,
12,
409,
67,
1369,
13,
468,
5787,
7514,
4825,
506,
1839,
279,
3476,
468,
15774,
576,
18,
25,
1410,
1699,
3937,
7434,
316,
1245,
309,
980,
18,
17514,
1918,
2668,
17,
6134,
578,
980,
18,
17514,
1918,
2668,
300,
6134,
294,
980,
273,
980,
18,
80,
6406,
2668,
300,
6134,
468,
1265,
399,
362,
1075,
93,
294,
7707,
64,
89,
18212,
22,
64,
89,
3787,
2643,
64,
89,
18212,
23,
6134,
468,
70,
19994,
273,
1995,
87,
9,
87,
9,
87,
11,
8975,
318,
1354,
86,
12,
18212,
22,
3631,
318,
1354,
86,
12,
3787,
2643,
3631,
318,
1354,
86,
12,
18212,
23,
3719,
468,
25810,
294,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
67,
270,
67,
9216,
12,
2890,
16,
24161,
16,
2165,
69,
16,
21763,
16,
1897,
75,
13,
294,
565,
468,
1908,
980,
294,
326,
729,
19504,
6103,
401,
468,
2047,
326,
980,
17874,
598,
3701,
3113,
518,
1807,
279,
394,
720,
4146,
401,
309,
16573,
422,
2337,
82,
11,
294,
468,
1986,
26297,
2537,
1865,
326,
521,
82,
980,
67,
82,
2848,
273,
1400,
69,
18,
588,
67,
1369,
1435,
787,
67,
1369,
273,
1400,
69,
18,
3530,
1435,
787,
67,
1369,
18,
542,
67,
1369,
12,
1369,
67,
82,
2848,
13,
679,
67,
1369,
273,
1400,
69,
18,
3530,
1435,
468,
3218,
527,
279,
31650,
666,
1496,
486,
603,
326,
1122,
980,
468,
38,
11884,
2
] |
|
model_module = 'test.fixture.models:meta_rundiffs' old_model_module = 'test.fixture.models:meta_old_rundiffs'
|
model_module = 'tests.fixture.models:meta_rundiffs' old_model_module = 'tests.fixture.models:meta_old_rundiffs'
|
def test_rundiffs_in_shell(self): # This is a variant of the test_schemadiff tests but run through the shell level. # These shell tests are hard to debug (since they keep forking processes), so they shouldn't replace the lower-level tests. repos_name = 'repos_name' repos_path = self.tmp() script_path = self.tmp_py() model_module = 'test.fixture.models:meta_rundiffs' old_model_module = 'test.fixture.models:meta_old_rundiffs'
|
c58a0b9b802158345a93effda6ec486562989fe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9035/c58a0b9b802158345a93effda6ec486562989fe7/test_shell.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
86,
1074,
430,
2556,
67,
267,
67,
10304,
12,
2890,
4672,
468,
1220,
353,
279,
5437,
434,
326,
1842,
67,
87,
1036,
361,
3048,
7434,
1496,
1086,
3059,
326,
5972,
1801,
18,
468,
8646,
5972,
7434,
854,
7877,
358,
1198,
261,
9256,
2898,
3455,
12515,
310,
8488,
3631,
1427,
2898,
12044,
1404,
1453,
326,
2612,
17,
2815,
7434,
18,
13686,
67,
529,
273,
296,
15564,
67,
529,
11,
13686,
67,
803,
273,
365,
18,
5645,
1435,
2728,
67,
803,
273,
365,
18,
5645,
67,
2074,
1435,
938,
67,
2978,
273,
296,
3813,
18,
904,
10970,
18,
7665,
30,
3901,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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,
1842,
67,
86,
1074,
430,
2556,
67,
267,
67,
10304,
12,
2890,
4672,
468,
1220,
353,
279,
5437,
434,
326,
1842,
67,
87,
1036,
361,
3048,
7434,
1496,
1086,
3059,
326,
5972,
1801,
18,
468,
8646,
5972,
7434,
854,
7877,
358,
1198,
261,
9256,
2898,
3455,
12515,
310,
8488,
3631,
1427,
2898,
12044,
1404,
1453,
326,
2612,
17,
2815,
7434,
18,
13686,
67,
529,
273,
296,
15564,
67,
529,
11,
13686,
67,
803,
273,
365,
18,
5645,
1435,
2728,
67,
803,
273,
365,
18,
5645,
67,
2074,
1435,
938,
67,
2978,
273,
296,
3813,
18,
904,
10970,
18,
7665,
30,
3901,
67,
86,
1074,
430,
2556,
11,
1592,
67,
2284,
67,
2978,
273,
296,
3813,
18,
904,
10970,
2
] |
self.ceConfigDict['BatchError'] = os.path.join(rootPath, 'data' )
|
self.ceConfigDict['BatchError'] = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data' )
|
def _addCEConfigDefaults( self ): """Method to make sure all necessary Configuration Parameters are defined """ # First assure that any global parameters are loaded ComputingElement._addCEConfigDefaults( self ) # Now Torque specific ones if 'ExecQueue' not in self.ceConfigDict: self.ceConfigDict['ExecQueue'] = self.ceConfigDict['Queue']
|
05f4284330e23d8d74d0844cee3520964f66a942 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/05f4284330e23d8d74d0844cee3520964f66a942/TorqueComputingElement.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
1441,
809,
7019,
12,
365,
262,
30,
3536,
1305,
358,
1221,
3071,
777,
4573,
4659,
7012,
854,
2553,
3536,
468,
5783,
1551,
594,
716,
1281,
2552,
1472,
854,
4203,
14169,
310,
1046,
6315,
1289,
1441,
809,
7019,
12,
365,
262,
468,
4494,
23763,
1857,
2923,
5945,
309,
296,
1905,
3183,
11,
486,
316,
365,
18,
311,
809,
5014,
30,
365,
18,
311,
809,
5014,
3292,
1905,
3183,
3546,
273,
365,
18,
311,
809,
5014,
3292,
3183,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
1441,
809,
7019,
12,
365,
262,
30,
3536,
1305,
358,
1221,
3071,
777,
4573,
4659,
7012,
854,
2553,
3536,
468,
5783,
1551,
594,
716,
1281,
2552,
1472,
854,
4203,
14169,
310,
1046,
6315,
1289,
1441,
809,
7019,
12,
365,
262,
468,
4494,
23763,
1857,
2923,
5945,
309,
296,
1905,
3183,
11,
486,
316,
365,
18,
311,
809,
5014,
30,
365,
18,
311,
809,
5014,
3292,
1905,
3183,
3546,
273,
365,
18,
311,
809,
5014,
3292,
3183,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
the_rawaddr, = struct.unpack("I",inet_aton(the_addr))
|
the_rawaddr = atol(the_addr)
|
def ifadd(self, iff, addr): self.invalidate_cache() the_addr,the_msk = (addr.split("/")+["32"])[:2] the_msk = itom(int(the_msk)) the_rawaddr, = struct.unpack("I",inet_aton(the_addr)) the_net = the_rawaddr & the_msk self.routes.append((the_net,the_msk,'0.0.0.0',iff,the_addr))
|
8a76ff8623a08e548c2606be508514d068938a13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/8a76ff8623a08e548c2606be508514d068938a13/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
1289,
12,
2890,
16,
21437,
16,
3091,
4672,
365,
18,
5387,
340,
67,
2493,
1435,
326,
67,
4793,
16,
5787,
67,
959,
79,
273,
261,
4793,
18,
4939,
2932,
4898,
27921,
9614,
1578,
6,
5717,
10531,
22,
65,
326,
67,
959,
79,
273,
518,
362,
12,
474,
12,
5787,
67,
959,
79,
3719,
326,
67,
1899,
4793,
273,
26322,
12,
5787,
67,
4793,
13,
326,
67,
2758,
273,
326,
67,
1899,
4793,
473,
326,
67,
959,
79,
365,
18,
10854,
18,
6923,
12443,
5787,
67,
2758,
16,
5787,
67,
959,
79,
11189,
20,
18,
20,
18,
20,
18,
20,
2187,
3048,
16,
5787,
67,
4793,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
5787,
67,
959,
79,
3719,
326,
67,
1899,
4793,
273,
26322,
12,
5787,
67,
4793,
13,
326,
67,
2758,
273,
326,
67,
1899,
4793,
473,
326,
67,
959,
79,
365,
18,
10854,
18,
6923,
12443,
5787,
67,
2758,
16,
5787,
67,
959,
79,
11189,
20,
18,
20,
18,
20,
18,
20,
2187,
3048,
16,
5787,
67,
4793,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'shlex: reading from %s, line %d' % (self.instream,self.lineno)
|
print 'shlex: reading from %s, line %d' \ % (self.instream, self.lineno)
|
def __init__(self, instream=None, infile=None): if instream: self.instream = instream self.infile = infile else: self.instream = sys.stdin self.infile = None self.commenters = '#' self.wordchars = 'abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' self.whitespace = ' \t\r\n' self.quotes = '\'"' self.state = ' ' self.pushback = []; self.lineno = 1 self.debug = 0 self.token = ''
|
217753d03e01f703df7d9f3b9460417fdafa6037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/217753d03e01f703df7d9f3b9460417fdafa6037/shlex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1804,
793,
33,
7036,
16,
14568,
33,
7036,
4672,
309,
1804,
793,
30,
365,
18,
267,
3256,
273,
1804,
793,
365,
18,
267,
768,
273,
14568,
469,
30,
365,
18,
267,
3256,
273,
2589,
18,
21772,
365,
18,
267,
768,
273,
599,
365,
18,
3469,
414,
273,
6501,
365,
18,
1095,
7549,
273,
296,
18947,
2180,
1332,
76,
8302,
16391,
13607,
556,
85,
16114,
30900,
17177,
26904,
12904,
16715,
45,
19474,
17063,
3417,
28386,
10637,
20147,
59,
23479,
26684,
4623,
365,
18,
18777,
273,
296,
521,
88,
64,
86,
64,
82,
11,
365,
18,
18653,
273,
2337,
4970,
11,
365,
18,
2019,
273,
296,
296,
365,
18,
6206,
823,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1804,
793,
33,
7036,
16,
14568,
33,
7036,
4672,
309,
1804,
793,
30,
365,
18,
267,
3256,
273,
1804,
793,
365,
18,
267,
768,
273,
14568,
469,
30,
365,
18,
267,
3256,
273,
2589,
18,
21772,
365,
18,
267,
768,
273,
599,
365,
18,
3469,
414,
273,
6501,
365,
18,
1095,
7549,
273,
296,
18947,
2180,
1332,
76,
8302,
16391,
13607,
556,
85,
16114,
30900,
17177,
26904,
12904,
16715,
45,
19474,
17063,
3417,
28386,
10637,
20147,
59,
23479,
26684,
4623,
365,
18,
18777,
273,
296,
521,
88,
64,
86,
64,
82,
11,
365,
18,
18653,
273,
2337,
4970,
11,
365,
18,
2019,
273,
296,
296,
365,
18,
6206,
823,
273,
5378,
31,
2
] |
del self.list[newIt]
|
del self.list[self.list.firstIter()]
|
def test(self): temp = Dummy() assert len(self.list) == 0 self.list.append(temp) assert len(self.list) == 1 del temp assert len(self.list) == 1 temp2 = self.list.pop() assert len(self.list) == 0 it = self.list.append(temp2) assert self.list[0] == self.list[it] assert self.list[0] == temp2 self.list.pop() self.assertRaises(IndexError, self.list.pop) it1 = self.list.append(1) it0 = self.list.append(0) it2 = self.list.append(2) assert self.list[0] == 0 assert self.list[it0] == 0 assert self.list[1] == 1 assert self.list[it1] == 1 assert self.list[2] == 2 assert self.list[it2] == 2 self.assertRaises(IndexError, lambda: self.list[-1]) self.assertRaises(IndexError, lambda: self.list[3]) count = 0 for x in self.list: assert x == count count += 1 assert count == 3 it0.forward() assert self.list[it0] == 1 it2.back() assert self.list[it2] == 1 it0.forward() it0.forward() self.assertRaises(IndexError,lambda: self.list[it0]) it2.back() it2.back() self.assertRaises(IndexError,lambda: self.list[it2]) newIt = self.list.insertBefore(it1,0) assert len(self.list) == 4 self.list[0] = -1 count = -1 for x in self.list: assert x == count count += 1 assert count == 3 assert self.list[newIt] == 0 for x in range(0,4): self.list[x] = x count = 0 for x in self.list: assert x == count count += 1 assert count == 4 try: self.list[it0] = 42 except IndexError: pass else: fail('indexing with a past-the-end iterator should raise IndexError') try: self.list[-1] = 42 except IndexError: pass else: fail('indexing -1 should raise IndexError')
|
bb85abad583b4424fb279e56e695179482c4c1f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/bb85abad583b4424fb279e56e695179482c4c1f2/fasttypestest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
1906,
273,
28622,
1435,
1815,
562,
12,
2890,
18,
1098,
13,
422,
374,
365,
18,
1098,
18,
6923,
12,
5814,
13,
1815,
562,
12,
2890,
18,
1098,
13,
422,
404,
1464,
1906,
1815,
562,
12,
2890,
18,
1098,
13,
422,
404,
1906,
22,
273,
365,
18,
1098,
18,
5120,
1435,
1815,
562,
12,
2890,
18,
1098,
13,
422,
374,
518,
273,
365,
18,
1098,
18,
6923,
12,
5814,
22,
13,
1815,
365,
18,
1098,
63,
20,
65,
422,
365,
18,
1098,
63,
305,
65,
1815,
365,
18,
1098,
63,
20,
65,
422,
1906,
22,
365,
18,
1098,
18,
5120,
1435,
365,
18,
11231,
12649,
6141,
12,
1016,
668,
16,
365,
18,
1098,
18,
5120,
13,
518,
21,
273,
365,
18,
1098,
18,
6923,
12,
21,
13,
518,
20,
273,
365,
18,
1098,
18,
6923,
12,
20,
13,
518,
22,
273,
365,
18,
1098,
18,
6923,
12,
22,
13,
1815,
365,
18,
1098,
63,
20,
65,
422,
374,
1815,
365,
18,
1098,
63,
305,
20,
65,
422,
374,
1815,
365,
18,
1098,
63,
21,
65,
422,
404,
1815,
365,
18,
1098,
63,
305,
21,
65,
422,
404,
1815,
365,
18,
1098,
63,
22,
65,
422,
576,
1815,
365,
18,
1098,
63,
305,
22,
65,
422,
576,
365,
18,
11231,
12649,
6141,
12,
1016,
668,
16,
3195,
30,
365,
18,
1098,
18919,
21,
5717,
365,
18,
11231,
12649,
6141,
12,
1016,
668,
16,
3195,
30,
365,
18,
1098,
63,
23,
5717,
1056,
273,
374,
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,
2890,
4672,
1906,
273,
28622,
1435,
1815,
562,
12,
2890,
18,
1098,
13,
422,
374,
365,
18,
1098,
18,
6923,
12,
5814,
13,
1815,
562,
12,
2890,
18,
1098,
13,
422,
404,
1464,
1906,
1815,
562,
12,
2890,
18,
1098,
13,
422,
404,
1906,
22,
273,
365,
18,
1098,
18,
5120,
1435,
1815,
562,
12,
2890,
18,
1098,
13,
422,
374,
518,
273,
365,
18,
1098,
18,
6923,
12,
5814,
22,
13,
1815,
365,
18,
1098,
63,
20,
65,
422,
365,
18,
1098,
63,
305,
65,
1815,
365,
18,
1098,
63,
20,
65,
422,
1906,
22,
365,
18,
1098,
18,
5120,
1435,
365,
18,
11231,
12649,
6141,
12,
1016,
668,
16,
365,
18,
1098,
18,
5120,
2
] |
add_warning(req, _('The user %(subject)s was already '
|
add_warning(req, _('The subject %(subject)s was already '
|
def render_admin_panel(self, req, cat, page, path_info): perm = PermissionSystem(self.env) all_permissions = perm.get_all_permissions() all_actions = perm.get_actions()
|
4df7841184617ae785691f5f11ee4b6c168ff41b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/4df7841184617ae785691f5f11ee4b6c168ff41b/web_ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
4641,
273,
8509,
3163,
12,
2890,
18,
3074,
13,
777,
67,
9612,
273,
4641,
18,
588,
67,
454,
67,
9612,
1435,
777,
67,
4905,
273,
4641,
18,
588,
67,
4905,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
4641,
273,
8509,
3163,
12,
2890,
18,
3074,
13,
777,
67,
9612,
273,
4641,
18,
588,
67,
454,
67,
9612,
1435,
777,
67,
4905,
273,
4641,
18,
588,
67,
4905,
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
] |
gtk.main()
|
gtk.main()
|
def main(self): if self.checking: self.checking.show() dialog.wait_for_no_windows() show_details = self.show_details() self.checking = None if show_details: self.window.show() else: import download_box download_box.download_with_gui(self.window, self.prog_args, main = self.main_exec, run_afterwards = not self.download_only) else: self.window.show() gtk.main()
|
1f11b02933e7dfdb7da952f1375c9e21bcb152b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10543/1f11b02933e7dfdb7da952f1375c9e21bcb152b3/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
309,
365,
18,
24609,
30,
365,
18,
24609,
18,
4500,
1435,
6176,
18,
7048,
67,
1884,
67,
2135,
67,
13226,
1435,
2405,
67,
6395,
273,
365,
18,
4500,
67,
6395,
1435,
365,
18,
24609,
273,
599,
309,
2405,
67,
6395,
30,
365,
18,
5668,
18,
4500,
1435,
469,
30,
1930,
4224,
67,
2147,
4224,
67,
2147,
18,
7813,
67,
1918,
67,
20292,
12,
2890,
18,
5668,
16,
365,
18,
14654,
67,
1968,
16,
2774,
273,
365,
18,
5254,
67,
4177,
16,
1086,
67,
5205,
6397,
273,
486,
365,
18,
7813,
67,
3700,
13,
469,
30,
365,
18,
5668,
18,
4500,
1435,
22718,
18,
5254,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2774,
12,
2890,
4672,
309,
365,
18,
24609,
30,
365,
18,
24609,
18,
4500,
1435,
6176,
18,
7048,
67,
1884,
67,
2135,
67,
13226,
1435,
2405,
67,
6395,
273,
365,
18,
4500,
67,
6395,
1435,
365,
18,
24609,
273,
599,
309,
2405,
67,
6395,
30,
365,
18,
5668,
18,
4500,
1435,
469,
30,
1930,
4224,
67,
2147,
4224,
67,
2147,
18,
7813,
67,
1918,
67,
20292,
12,
2890,
18,
5668,
16,
365,
18,
14654,
67,
1968,
16,
2774,
273,
365,
18,
5254,
67,
4177,
16,
1086,
67,
5205,
6397,
273,
486,
365,
18,
7813,
67,
3700,
13,
469,
30,
365,
18,
5668,
18,
4500,
1435,
22718,
18,
5254,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def getCNVQCDataFromDB(cls, data_source_id=1, ecotype_id=None, cnv_type_id=1, \ min_QC_segment_size=200, min_no_of_probes=None): """
|
def getCNVQCDataFromDB(cls, data_source_id=1, ecotype_id=None, cnv_type_id=None, \ min_QC_segment_size=None, min_no_of_probes=None, min_reciprocal_overlap=0.6): """ 2010-1-26 replace the list structure of cnv_qc_call_data in ecotype_id2cnv_qc_call_data with binary_tree structure 2009-12-9 add no_of_probes_covered into returning data add cnv_type_id
|
def getCNVQCDataFromDB(cls, data_source_id=1, ecotype_id=None, cnv_type_id=1, \ min_QC_segment_size=200, min_no_of_probes=None): """ 2009-11-4 get CNV QC data from database """ sys.stderr.write("Getting CNV QC data ... \n") import Stock_250kDB sql_string = "select a.ecotype_id, c.chromosome, c.start, c.stop, c.size_affected, c.id from %s c,\ %s a where c.accession_id=a.id and a.data_source_id=%s and c.size_affected>=%s \ and c.cnv_type_id=%s"%\ (Stock_250kDB.CNVQCCalls.table.name, Stock_250kDB.CNVQCAccession.table.name, data_source_id,\ min_QC_segment_size, cnv_type_id) if ecotype_id is not None: sql_string += " and a.ecotype_id=%s"%ecotype_id if min_no_of_probes is not None: sql_string += " and c.no_of_probes_covered>=%s"%min_no_of_probes rows = db_250k.metadata.bind.execute(sql_string) count = 0 ecotype_id2cnv_qc_call_data = {} for row in rows: if row.ecotype_id not in ecotype_id2cnv_qc_call_data: ecotype_id2cnv_qc_call_data[row.ecotype_id] = [] cnv_qc_call_data = ecotype_id2cnv_qc_call_data[row.ecotype_id] cnv_qc_call_data.append((row.chromosome, row.start, row.stop, row.size_affected, row.id)) count += 1 for ecotype_id, cnv_qc_call_data in ecotype_id2cnv_qc_call_data.iteritems(): cnv_qc_call_data.sort() ecotype_id2cnv_qc_call_data[ecotype_id] = cnv_qc_call_data sys.stderr.write("%s cnv qc calls for %s ecotypes. Done.\n"%(count, len(ecotype_id2cnv_qc_call_data))) return ecotype_id2cnv_qc_call_data
|
1440ce5092ec2e1bfdd9b1e187e40f109bf0000b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/1440ce5092ec2e1bfdd9b1e187e40f109bf0000b/misc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
11679,
53,
39,
751,
1265,
2290,
12,
6429,
16,
501,
67,
3168,
67,
350,
33,
21,
16,
6557,
10570,
67,
350,
33,
7036,
16,
6227,
90,
67,
723,
67,
350,
33,
7036,
16,
521,
1131,
67,
53,
39,
67,
9273,
67,
1467,
33,
7036,
16,
1131,
67,
2135,
67,
792,
67,
7748,
281,
33,
7036,
16,
1131,
67,
266,
3449,
30101,
67,
17946,
33,
20,
18,
26,
4672,
3536,
18965,
17,
21,
17,
5558,
1453,
326,
666,
3695,
434,
6227,
90,
67,
30675,
67,
1991,
67,
892,
316,
6557,
10570,
67,
350,
22,
10305,
90,
67,
30675,
67,
1991,
67,
892,
598,
3112,
67,
3413,
3695,
4044,
29,
17,
2138,
17,
29,
527,
1158,
67,
792,
67,
7748,
281,
67,
16810,
1368,
5785,
501,
527,
6227,
90,
67,
723,
67,
350,
4044,
29,
17,
2499,
17,
24,
336,
385,
11679,
2238,
39,
501,
628,
2063,
3536,
2589,
18,
11241,
18,
2626,
2932,
19213,
385,
11679,
2238,
39,
501,
1372,
521,
82,
7923,
1930,
20296,
363,
67,
26520,
79,
2290,
1847,
67,
1080,
273,
315,
4025,
279,
18,
557,
10570,
67,
350,
16,
276,
18,
16298,
16958,
16,
276,
18,
1937,
16,
276,
18,
5681,
16,
276,
18,
1467,
67,
20119,
16,
276,
18,
350,
628,
738,
87,
276,
17211,
738,
87,
279,
1625,
276,
18,
3860,
285,
67,
350,
33,
69,
18,
350,
471,
279,
18,
892,
67,
3168,
67,
350,
5095,
87,
471,
276,
18,
1467,
67,
20119,
34,
5095,
87,
521,
471,
276,
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,
1927,
11679,
53,
39,
751,
1265,
2290,
12,
6429,
16,
501,
67,
3168,
67,
350,
33,
21,
16,
6557,
10570,
67,
350,
33,
7036,
16,
6227,
90,
67,
723,
67,
350,
33,
7036,
16,
521,
1131,
67,
53,
39,
67,
9273,
67,
1467,
33,
7036,
16,
1131,
67,
2135,
67,
792,
67,
7748,
281,
33,
7036,
16,
1131,
67,
266,
3449,
30101,
67,
17946,
33,
20,
18,
26,
4672,
3536,
18965,
17,
21,
17,
5558,
1453,
326,
666,
3695,
434,
6227,
90,
67,
30675,
67,
1991,
67,
892,
316,
6557,
10570,
67,
350,
22,
10305,
90,
67,
30675,
67,
1991,
67,
892,
598,
3112,
67,
3413,
3695,
4044,
29,
17,
2138,
17,
29,
527,
1158,
67,
792,
67,
2
] |
for attack in self.attacks: attack.setColor()
|
def setColor(self): self.color=1 for attack in self.attacks: attack.setColor()
|
6a454dfa3c412d72c675c8861c3a90ee26a39caa /local1/tlutelli/issta_data/temp/all_python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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16207,
12,
2890,
4672,
365,
18,
3266,
33,
21,
364,
13843,
316,
365,
18,
4558,
22098,
30,
13843,
18,
542,
2957,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
qfileName = QFileDialog.getSaveFileName("graph.png","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to..", "Save to...")
|
qfileName = QFileDialog.getSaveFileName("graph.png","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to...", "Save to...")
|
def saveToFileAccept(self): qfileName = QFileDialog.getSaveFileName("graph.png","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to..", "Save to...") fileName = str(qfileName) if fileName == "": return (fil,ext) = os.path.splitext(fileName) ext = ext.replace(".","") if ext == "": ext = "PNG" # if no format was specified, we choose png fileName = fileName + ".png" ext = ext.upper()
|
6e78b0dd840c13d42a2ff4cd15c7f4debfe81e15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/6e78b0dd840c13d42a2ff4cd15c7f4debfe81e15/OWScatterPlotMatrix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
15450,
5933,
12,
2890,
4672,
1043,
17812,
273,
2238,
812,
6353,
18,
588,
4755,
4771,
2932,
4660,
18,
6446,
15937,
2617,
429,
5128,
16830,
261,
11146,
23092,
1769,
31,
10399,
14764,
261,
11146,
38,
4566,
1769,
31,
17558,
5294,
3427,
4077,
261,
11146,
43,
5501,
2225,
16,
599,
16,
315,
4755,
358,
7070,
16,
315,
4755,
358,
7070,
13,
3968,
273,
609,
12,
85,
17812,
13,
309,
3968,
422,
1408,
30,
327,
261,
7540,
16,
408,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
17812,
13,
1110,
273,
1110,
18,
2079,
2932,
1199,
16,
3660,
13,
309,
1110,
422,
1408,
30,
1110,
273,
315,
23092,
6,
282,
202,
7,
309,
1158,
740,
1703,
1269,
16,
732,
9876,
14476,
3968,
273,
3968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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
15450,
5933,
12,
2890,
4672,
1043,
17812,
273,
2238,
812,
6353,
18,
588,
4755,
4771,
2932,
4660,
18,
6446,
15937,
2617,
429,
5128,
16830,
261,
11146,
23092,
1769,
31,
10399,
14764,
261,
11146,
38,
4566,
1769,
31,
17558,
5294,
3427,
4077,
261,
11146,
43,
5501,
2225,
16,
599,
16,
315,
4755,
358,
7070,
16,
315,
4755,
358,
7070,
13,
3968,
273,
609,
12,
85,
17812,
13,
309,
3968,
422,
1408,
30,
327,
261,
7540,
16,
408,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
17812,
13,
1110,
273,
1110,
18,
2079,
2932,
1199,
16,
3660,
13,
309,
1110,
422,
1408,
30,
1110,
273,
315,
23092,
6,
282,
202,
7,
309,
1158,
740,
1703,
1269,
16,
732,
2
] |
sage: def f(x,y): return float(sin(x*y)))
|
sage: def f(x,y): return float(sin(x*y))
|
sage: def f(x,y): return float(sin(x*y)))
|
f96f61f7130a4e3b19368af36efd086f372ee72f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/f96f61f7130a4e3b19368af36efd086f372ee72f/tachyon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
93,
4672,
327,
1431,
12,
21861,
12,
92,
14,
93,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
93,
4672,
327,
1431,
12,
21861,
12,
92,
14,
93,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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='done')
|
return HTMLResponse(stream='done')
|
def render(self, ctx): # TODO -- this must not block long (!) self.worksheet.quit() return http.Response(stream='done')
|
5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
2660,
1493,
333,
1297,
486,
1203,
1525,
16051,
13,
365,
18,
1252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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
2660,
1493,
333,
1297,
486,
1203,
1525,
16051,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
2218,
8734,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tags = self.get_individual_metadata(mi.tags, br, verbose) if tags is not None: mi.tags = self.get_tags(tags, verbose)[0] res.append(mi) return res
|
threadbis = ThreadwithResults(self.fetchdatathread, br, syncbis, nb, mi.tags, verbose) self.thread[nb] = threadbis self.nbtag +=1 threadbis.start() def populate(self, entries, ibr, verbose=False, brcall=3): br = Queue(brcall) cbr = Queue(brcall-1) syncp = Queue(1) syncc = Queue(len(entries)) for i in xrange(brcall-1): br.put(browser(), True) cbr.put(browser(), True) br.put(ibr, True) self.res = [None]*len(entries) prod_thread = Thread(target=self.producer, args=(syncp, entries, br, verbose)) cons_thread = Thread(target=self.consumer, args=(syncp, syncc, cbr, len(entries), verbose)) prod_thread.start() cons_thread.start() prod_thread.join() cons_thread.join() for i in xrange(self.nbtag): nb = int(syncc.get(True)) tags = self.thread[nb].get_result() if tags is not None: self.res[nb].tags = self.get_tags(tags, verbose)[0] return self.res
|
def populate(self, entries, br, verbose=False): res = [] for x in entries: entry = self.get_individual_metadata(x, br, verbose) if entry is not None: mi = self.fill_MI(entry, verbose) if mi is not None: mi.tags, atag = self.get_tags(entry, verbose) if atag: tags = self.get_individual_metadata(mi.tags, br, verbose) if tags is not None: mi.tags = self.get_tags(tags, verbose)[0] res.append(mi) return res
|
5c89b576e31b85e17cf14e85a72b1b876f87579c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/5c89b576e31b85e17cf14e85a72b1b876f87579c/amazonbis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
12,
2890,
16,
3222,
16,
5186,
16,
3988,
33,
8381,
4672,
400,
273,
5378,
364,
619,
316,
3222,
30,
1241,
273,
365,
18,
588,
67,
22032,
5557,
67,
4165,
12,
92,
16,
5186,
16,
3988,
13,
309,
1241,
353,
486,
599,
30,
12837,
273,
365,
18,
5935,
67,
7492,
12,
4099,
16,
3988,
13,
309,
12837,
353,
486,
599,
30,
12837,
18,
4156,
16,
622,
346,
273,
365,
18,
588,
67,
4156,
12,
4099,
16,
3988,
13,
309,
622,
346,
30,
2342,
273,
365,
18,
588,
67,
22032,
5557,
67,
4165,
12,
9197,
18,
4156,
16,
5186,
16,
3988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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,
6490,
12,
2890,
16,
3222,
16,
5186,
16,
3988,
33,
8381,
4672,
400,
273,
5378,
364,
619,
316,
3222,
30,
1241,
273,
365,
18,
588,
67,
22032,
5557,
67,
4165,
12,
92,
16,
5186,
16,
3988,
13,
309,
1241,
353,
486,
599,
30,
12837,
273,
365,
18,
5935,
67,
7492,
12,
4099,
16,
3988,
13,
309,
12837,
353,
486,
599,
30,
12837,
18,
4156,
16,
622,
346,
273,
365,
18,
588,
67,
4156,
12,
4099,
16,
3988,
13,
309,
622,
346,
30,
2342,
273,
365,
18,
588,
67,
22032,
5557,
67,
4165,
12,
9197,
18,
4156,
16,
5186,
16,
3988,
13,
309,
2342,
353,
486,
599,
30,
12837,
18,
4156,
273,
365,
18,
588,
67,
4156,
12,
4156,
2
] |
MelBase('DNAM','_dnam'), MelBase('CRDT','_crdt'),
|
MelStruct('DNAM','HffBBIBffffIIBIBffBIfffffffffffHBffHfff', 'animationType','animationMultiplier','reach',(_flags1,'flags1',0L), 'gripAnimation','ammoUse','reloadAnimation','minSpread','spread','unknown','sightFov',(FID,'projectile',None), 'baseVatsToHitChance','attackAnimation','projectileCount','embeddedWeaponActorValue','minRange','maxRange', 'onHit',(_flags2,'flags2',0L),'animationAttackMultiplier','fireRate','overrideActionPoint', 'rumbleLeftMotorStrength','rumbleRightMotorStrength','rumbleDuration','overrideDamageToWeaponMult', 'attackShotsPerSec','reloadTime','jamTime','aimArc','skill','rumblePattern','rambleWavelangth','limbDmgMult', 'resistType','sightUsage','semiAutomaticFireDelayMin','semiAutomaticFireDelayMax'), MelStruct('CRDT','IfHI','criticalDamage','criticalMultiplier',(_flags,'flags',0L),(FID,'effect',None)),
|
def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that it is NOT #-- damage, so it is probably just filler unpacked = ins.unpack('11f3Bs3Bs3BsB3s6f2s',size,readId) elif size == 62: #--Else 62 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('11f3Bs3Bs3BsB3s2s',size,readId) elif size == 42: #--Else 42 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('10f2s',size,readId) elif size == 2: #--Else 2 byte record (skips everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('2s',size,readId) else: raise "Unexpected size encountered for WATR subrecord: %s" % size unpacked = unpacked[:-1] unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked
|
7548e17e569a15e4985eba29e4c2223b7594d7e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7548e17e569a15e4985eba29e4c2223b7594d7e1/bosh.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29422,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
4672,
309,
963,
422,
21822,
30,
490,
292,
3823,
18,
945,
751,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
13,
327,
1327,
963,
422,
20457,
30,
468,
413,
12427,
20457,
1160,
1409,
261,
7457,
87,
16232,
27522,
16,
468,
413,
16232,
42,
287,
383,
1403,
16,
16232,
40,
931,
1224,
16,
16232,
1225,
16,
471,
302,
301,
410,
468,
413,
16896,
525,
1683,
35,
1731,
854,
268,
484,
329,
10170,
326,
679,
468,
413,
15734,
15755,
471,
326,
6761,
2195,
481,
959,
716,
518,
353,
4269,
468,
413,
302,
301,
410,
16,
1427,
518,
353,
8656,
2537,
28187,
24195,
273,
2763,
18,
17309,
2668,
2499,
74,
23,
38,
87,
23,
38,
87,
23,
38,
87,
38,
23,
87,
26,
74,
22,
87,
2187,
1467,
16,
896,
548,
13,
1327,
963,
422,
22684,
30,
468,
413,
12427,
22684,
1160,
1409,
261,
7457,
87,
4486,
7756,
468,
413,
16896,
525,
1683,
35,
1731,
854,
268,
484,
329,
10170,
326,
679,
468,
413,
2631,
7769,
2731,
16,
1496,
12034,
716,
2097,
326,
1967,
487,
326,
468,
413,
2416,
15282,
1409,
18,
24195,
273,
2763,
18,
17309,
2668,
2499,
74,
23,
38,
87,
23,
38,
87,
23,
38,
87,
38,
23,
87,
22,
87,
2187,
1467,
16,
896,
548,
13,
1327,
963,
422,
14856,
30,
468,
413,
12427,
14856,
1160,
1409,
261,
7457,
87,
4486,
7756,
468,
413,
16896,
525,
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,
29422,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
4672,
309,
963,
422,
21822,
30,
490,
292,
3823,
18,
945,
751,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
13,
327,
1327,
963,
422,
20457,
30,
468,
413,
12427,
20457,
1160,
1409,
261,
7457,
87,
16232,
27522,
16,
468,
413,
16232,
42,
287,
383,
1403,
16,
16232,
40,
931,
1224,
16,
16232,
1225,
16,
471,
302,
301,
410,
468,
413,
16896,
525,
1683,
35,
1731,
854,
268,
484,
329,
10170,
326,
679,
468,
413,
15734,
15755,
471,
326,
6761,
2195,
481,
959,
716,
518,
353,
4269,
468,
413,
302,
301,
410,
16,
1427,
518,
353,
8656,
2537,
28187,
2
] |
def graph_get(cr, graph, wkf_id, nested=False, workitem={}):
|
def graph_get(cr, graph, wkf_ids, nested=False, workitem={}):
|
def graph_get(cr, graph, wkf_id, nested=False, workitem={}): import pydot cr.execute('select * from wkf_activity where wkf_id=%s', (wkf_id,)) nodes = cr.dictfetchall() activities = {} actfrom = {} actto = {} for n in nodes: activities[n['id']] = n if n['subflow_id'] and nested: cr.execute('select * from wkf where id=%s', (n['subflow_id'],)) wkfinfo = cr.dictfetchone() graph2 = pydot.Cluster('subflow'+str(n['subflow_id']), fontsize='12', label = """\"Subflow: %s\\nOSV: %s\"""" % ( n['name'], wkfinfo['osv']) ) (s1,s2) = graph_get(cr, graph2, n['subflow_id'], nested,workitem) graph.add_subgraph(graph2) actfrom[n['id']] = s2 actto[n['id']] = s1 else: args = {} if n['flow_start'] or n['flow_stop']: args['style']='filled' args['color']='lightgrey' args['label']=n['name'] if n['subflow_id']: args['shape'] = 'box' if n['id'] in workitem: args['label']+='\\nx '+str(workitem[n['id']]) args['color'] = "red" graph.add_node(pydot.Node(n['id'], **args)) actfrom[n['id']] = (n['id'],{}) actto[n['id']] = (n['id'],{}) cr.execute('select * from wkf_transition where act_from in ('+','.join(map(lambda x: str(x['id']),nodes))+')') transitions = cr.dictfetchall() for t in transitions: args = {} args['label'] = str(t['condition']).replace(' or ', '\\nor ').replace(' and ', '\\nand ') if t['signal']: args['label'] += '\\n'+str(t['signal']) args['style'] = 'bold' if activities[t['act_from']]['split_mode']=='AND': args['arrowtail']='box' elif str(activities[t['act_from']]['split_mode'])=='OR ': args['arrowtail']='inv' if activities[t['act_to']]['join_mode']=='AND': args['arrowhead']='crow' activity_from = actfrom[t['act_from']][1].get(t['signal'], actfrom[t['act_from']][0]) activity_to = actto[t['act_to']][1].get(t['signal'], actto[t['act_to']][0]) graph.add_edge(pydot.Edge( str(activity_from) ,str(activity_to), fontsize='10', **args)) nodes = cr.dictfetchall() cr.execute('select id from wkf_activity where flow_start=True and wkf_id=%s limit 1', (wkf_id,)) start = cr.fetchone()[0] cr.execute("select 'subflow.'||name,id from wkf_activity where flow_stop=True and wkf_id=%s", (wkf_id,)) stop = cr.fetchall() if (stop): stop = (stop[0][1], dict(stop)) else: stop = ("stop",{}) return ((start,{}),stop)
|
a01b658d8de67b50f93e68ea81bbf08e57f4079d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/a01b658d8de67b50f93e68ea81bbf08e57f4079d/print_instance.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
67,
588,
12,
3353,
16,
2667,
16,
26987,
74,
67,
2232,
16,
4764,
33,
8381,
16,
26409,
12938,
4672,
1930,
2395,
9811,
4422,
18,
8837,
2668,
4025,
380,
628,
26987,
74,
67,
9653,
1625,
26987,
74,
67,
350,
5095,
87,
2187,
261,
17736,
74,
67,
350,
16,
3719,
2199,
273,
4422,
18,
1576,
5754,
454,
1435,
17259,
273,
2618,
1328,
2080,
273,
2618,
1328,
869,
273,
2618,
364,
290,
316,
2199,
30,
17259,
63,
82,
3292,
350,
3546,
65,
273,
290,
309,
290,
3292,
1717,
2426,
67,
350,
3546,
471,
4764,
30,
4422,
18,
8837,
2668,
4025,
380,
628,
26987,
74,
1625,
612,
5095,
87,
2187,
261,
82,
3292,
1717,
2426,
67,
350,
17337,
3719,
26987,
926,
617,
273,
4422,
18,
1576,
5754,
476,
1435,
2667,
22,
273,
2395,
9811,
18,
3629,
2668,
1717,
2426,
11,
15,
701,
12,
82,
3292,
1717,
2426,
67,
350,
3546,
3631,
14869,
2218,
2138,
2187,
1433,
273,
3536,
2412,
1676,
2426,
30,
738,
87,
1695,
82,
4618,
58,
30,
738,
87,
2412,
8395,
738,
261,
290,
3292,
529,
17337,
26987,
926,
617,
3292,
538,
90,
19486,
262,
261,
87,
21,
16,
87,
22,
13,
273,
2667,
67,
588,
12,
3353,
16,
2667,
22,
16,
290,
3292,
1717,
2426,
67,
350,
17337,
4764,
16,
1252,
1726,
13,
2667,
18,
1289,
67,
1717,
4660,
12,
4660,
22,
13,
1328,
2080,
63,
82,
3292,
350,
3546,
65,
273,
272,
22,
1328,
869,
63,
82,
3292,
350,
3546,
65,
273,
272,
21,
469,
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,
2667,
67,
588,
12,
3353,
16,
2667,
16,
26987,
74,
67,
2232,
16,
4764,
33,
8381,
16,
26409,
12938,
4672,
1930,
2395,
9811,
4422,
18,
8837,
2668,
4025,
380,
628,
26987,
74,
67,
9653,
1625,
26987,
74,
67,
350,
5095,
87,
2187,
261,
17736,
74,
67,
350,
16,
3719,
2199,
273,
4422,
18,
1576,
5754,
454,
1435,
17259,
273,
2618,
1328,
2080,
273,
2618,
1328,
869,
273,
2618,
364,
290,
316,
2199,
30,
17259,
63,
82,
3292,
350,
3546,
65,
273,
290,
309,
290,
3292,
1717,
2426,
67,
350,
3546,
471,
4764,
30,
4422,
18,
8837,
2668,
4025,
380,
628,
26987,
74,
1625,
612,
5095,
87,
2187,
261,
82,
3292,
1717,
2426,
67,
350,
17337,
3719,
26987,
926,
2
] |
db.DB_CREATE | db.DB_THREAD)
|
db.DB_CREATE | db.DB_THREAD | self.dbFlags)
|
def test02_associateAfterDB(self): if verbose: print '\n', '-=' * 30 print "Running %s.test02_associateAfterDB..." % \ self.__class__.__name__
|
5336fb05ddf1be4bd2e3c0764368783eae5a96b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5336fb05ddf1be4bd2e3c0764368783eae5a96b6/test_associate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,
521,
365,
16186,
1106,
972,
16186,
529,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,
521,
365,
16186,
1106,
972,
16186,
529,
972,
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
] |
head += "<script type='text/javascript'>jsMath.styles['
|
def _html_head(self, worksheet_filename, username): if worksheet_filename is not None: worksheet = self.get_worksheet_with_filename(worksheet_filename) head = '\n<title>%s (Sage)</title>'%(worksheet.name()) else: head = '\n<title>Sage Notebook | Welcome</title>'
|
a6c22a4c70558253a17b97b645ec54233d2d4e61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a6c22a4c70558253a17b97b645ec54233d2d4e61/notebook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2620,
67,
1978,
12,
2890,
16,
13622,
67,
3459,
16,
2718,
4672,
309,
13622,
67,
3459,
353,
486,
599,
30,
13622,
273,
365,
18,
588,
67,
1252,
8118,
67,
1918,
67,
3459,
12,
1252,
8118,
67,
3459,
13,
910,
273,
2337,
82,
32,
2649,
9822,
87,
261,
55,
410,
13,
1757,
2649,
1870,
17105,
1252,
8118,
18,
529,
10756,
469,
30,
910,
273,
2337,
82,
32,
2649,
34,
55,
410,
3609,
3618,
571,
678,
16312,
1757,
2649,
1870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2620,
67,
1978,
12,
2890,
16,
13622,
67,
3459,
16,
2718,
4672,
309,
13622,
67,
3459,
353,
486,
599,
30,
13622,
273,
365,
18,
588,
67,
1252,
8118,
67,
1918,
67,
3459,
12,
1252,
8118,
67,
3459,
13,
910,
273,
2337,
82,
32,
2649,
9822,
87,
261,
55,
410,
13,
1757,
2649,
1870,
17105,
1252,
8118,
18,
529,
10756,
469,
30,
910,
273,
2337,
82,
32,
2649,
34,
55,
410,
3609,
3618,
571,
678,
16312,
1757,
2649,
1870,
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
] |
|
return self.siglevel-0x100
|
return self.siglevel
|
def getSignallevel(self): """ returns signal level """ return self.siglevel-0x100
|
18b2d105b8dbefad8eab230de77e2c5bbabd1b6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/18b2d105b8dbefad8eab230de77e2c5bbabd1b6d/iwlibs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14167,
287,
2815,
12,
2890,
4672,
3536,
1135,
4277,
1801,
3536,
327,
365,
18,
7340,
2815,
17,
20,
92,
6625,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14167,
287,
2815,
12,
2890,
4672,
3536,
1135,
4277,
1801,
3536,
327,
365,
18,
7340,
2815,
17,
20,
92,
6625,
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
] |
if now - task.start_time < self.timeout:
|
if task.start_time is None or now - task.start_time < self.timeout:
|
def _timeout_tasks(self): """ Stop tasks that have met or exceeded the queue's timeout length. """ if self.timeout is None: return running_tasks = self.__storage.running_tasks() if not running_tasks: return now = datetime.now() for task in running_tasks: if now - task.start_time < self.timeout: continue thread = self.__threads[task] thread.timeout() while task.state not in task_complete_states: time.sleep(self._default_sleep) task.timeout()
|
1a8bb80e63e020f71b0ec8f8713a437e2b1f745b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/1a8bb80e63e020f71b0ec8f8713a437e2b1f745b/fifo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4538,
67,
9416,
12,
2890,
4672,
3536,
5131,
4592,
716,
1240,
5100,
578,
12428,
326,
2389,
1807,
2021,
769,
18,
3536,
309,
365,
18,
4538,
353,
599,
30,
327,
3549,
67,
9416,
273,
365,
16186,
5697,
18,
8704,
67,
9416,
1435,
309,
486,
3549,
67,
9416,
30,
327,
2037,
273,
3314,
18,
3338,
1435,
364,
1562,
316,
3549,
67,
9416,
30,
282,
309,
1562,
18,
1937,
67,
957,
353,
599,
578,
2037,
300,
1562,
18,
1937,
67,
957,
411,
365,
18,
4538,
30,
1324,
2650,
273,
365,
16186,
12495,
63,
4146,
65,
2650,
18,
4538,
1435,
1323,
1562,
18,
2019,
486,
316,
1562,
67,
6226,
67,
7992,
30,
813,
18,
19607,
12,
2890,
6315,
1886,
67,
19607,
13,
1562,
18,
4538,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
4538,
67,
9416,
12,
2890,
4672,
3536,
5131,
4592,
716,
1240,
5100,
578,
12428,
326,
2389,
1807,
2021,
769,
18,
3536,
309,
365,
18,
4538,
353,
599,
30,
327,
3549,
67,
9416,
273,
365,
16186,
5697,
18,
8704,
67,
9416,
1435,
309,
486,
3549,
67,
9416,
30,
327,
2037,
273,
3314,
18,
3338,
1435,
364,
1562,
316,
3549,
67,
9416,
30,
282,
309,
1562,
18,
1937,
67,
957,
353,
599,
578,
2037,
300,
1562,
18,
1937,
67,
957,
411,
365,
18,
4538,
30,
1324,
2650,
273,
365,
16186,
12495,
63,
4146,
65,
2650,
18,
4538,
1435,
1323,
1562,
18,
2019,
486,
316,
1562,
67,
6226,
67,
7992,
30,
813,
18,
19607,
12,
2890,
6315,
1886,
67,
19607,
2
] |
if multiline and len(vstr) > self._variable_linelen:
|
if len(vstr) > self._variable_linelen:
|
def pprint_pyval(self, pyval, multiline=True, summary_linelen=0): # Handle the most common cases first. The following types # will never need any line wrapping, etc; and they cover most # variable values (esp int, for constants). I leave out # LongType on purpose, since long values may need line- # wrapping. if (type(pyval) is types.IntType or type(pyval) is types.FloatType or type(pyval) is types.NoneType or type(pyval) is types.ComplexType): # none of these should contain '&', '<' or '>'. vstr = repr(pyval) return vstr + ' ' * (self._variable_linelen-len(vstr))
|
ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468,
903,
5903,
1608,
1281,
980,
14702,
16,
5527,
31,
471,
2898,
5590,
4486,
468,
2190,
924,
261,
281,
84,
509,
16,
364,
6810,
2934,
225,
467,
8851,
596,
468,
3407,
559,
603,
13115,
16,
3241,
1525,
924,
2026,
1608,
980,
17,
468,
14702,
18,
309,
261,
723,
12,
2074,
1125,
13,
353,
1953,
18,
1702,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
4723,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
7036,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
12795,
559,
4672,
468,
6555,
434,
4259,
1410,
912,
5183,
2187,
9138,
578,
7481,
18,
331,
701,
273,
8480,
12,
2074,
1125,
13,
327,
331,
701,
397,
5183,
10600,
4359,
380,
261,
2890,
6315,
6105,
67,
7511,
292,
275,
17,
1897,
12,
90,
701,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468,
903,
5903,
1608,
1281,
980,
14702,
16,
5527,
31,
471,
2898,
5590,
4486,
468,
2190,
924,
261,
281,
84,
509,
16,
364,
6810,
2934,
225,
467,
8851,
596,
468,
3407,
559,
603,
13115,
16,
3241,
1525,
924,
2026,
1608,
980,
17,
468,
14702,
18,
309,
261,
723,
12,
2074,
1125,
13,
353,
1953,
18,
1702,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
4723,
559,
578,
618,
12,
2074,
1125,
13,
353,
1953,
18,
7036,
559,
578,
618,
12,
2074,
1125,
2
] |
def GetLastMember(id):
|
def GetLastMember(sid):
|
def GetLastMember(id): """ Get offset of the last member of a structure @param id: structure type ID @return: -1 if bad structure type ID is passed or structure has no members otherwise returns offset of the last member. @note: IDA allows 'holes' between members of a structure. It treats these 'holes' as unnamed arrays of bytes. """ s = idaapi.get_struc(id) if not s: return -1 return idaapi.get_struc_last_offset(s)
|
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3024,
4419,
12,
7453,
4672,
3536,
968,
1384,
434,
326,
1142,
3140,
434,
279,
3695,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
300,
21,
309,
5570,
3695,
618,
1599,
353,
2275,
578,
3695,
711,
1158,
4833,
3541,
1135,
1384,
434,
326,
1142,
3140,
18,
225,
632,
7652,
30,
1599,
37,
5360,
296,
76,
9112,
11,
3086,
4833,
434,
279,
3695,
18,
2597,
9787,
2323,
4259,
296,
76,
9112,
11,
487,
640,
13188,
5352,
434,
1731,
18,
3536,
272,
273,
612,
69,
2425,
18,
588,
67,
701,
5286,
12,
350,
13,
309,
486,
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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,
968,
3024,
4419,
12,
7453,
4672,
3536,
968,
1384,
434,
326,
1142,
3140,
434,
279,
3695,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
300,
21,
309,
5570,
3695,
618,
1599,
353,
2275,
578,
3695,
711,
1158,
4833,
3541,
1135,
1384,
434,
326,
1142,
3140,
18,
225,
632,
7652,
30,
1599,
37,
5360,
296,
76,
9112,
11,
3086,
4833,
434,
279,
3695,
18,
2597,
9787,
2323,
4259,
296,
76,
9112,
11,
487,
640,
13188,
5352,
434,
1731,
18,
3536,
272,
273,
612,
69,
2425,
18,
588,
67,
701,
5286,
12,
350,
13,
309,
486,
272,
30,
327,
300,
21,
225,
327,
612,
69,
2425,
18,
588,
67,
701,
5286,
67,
2722,
67,
3348,
12,
2
] |
if not compare_record(old,new) :
|
if not compare_record(old,new,ignore_name) :
|
def compare_records(old_list, new_list) : """Check two lists of SeqRecords agree, raises a ValueError if mismatch.""" if len(old_list) != len(new_list) : raise ValueError("%i vs %i records" % (len(old_list), len(new_list))) for old, new in zip(old_list, new_list) : if not compare_record(old,new) : return False return True
|
fb1b12e4f45aee41028f31e3010c1be3d0f9d3a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/fb1b12e4f45aee41028f31e3010c1be3d0f9d3a9/test_SeqIO_features.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
7094,
12,
1673,
67,
1098,
16,
394,
67,
1098,
13,
294,
3536,
1564,
2795,
6035,
434,
14367,
6499,
1737,
992,
16,
14183,
279,
2068,
309,
13484,
12123,
309,
562,
12,
1673,
67,
1098,
13,
480,
562,
12,
2704,
67,
1098,
13,
294,
1002,
2068,
27188,
77,
6195,
738,
77,
3853,
6,
738,
261,
1897,
12,
1673,
67,
1098,
3631,
562,
12,
2704,
67,
1098,
20349,
364,
1592,
16,
394,
316,
3144,
12,
1673,
67,
1098,
16,
394,
67,
1098,
13,
294,
309,
486,
3400,
67,
3366,
12,
1673,
16,
2704,
16,
6185,
67,
529,
13,
294,
327,
1083,
327,
1053,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
7094,
12,
1673,
67,
1098,
16,
394,
67,
1098,
13,
294,
3536,
1564,
2795,
6035,
434,
14367,
6499,
1737,
992,
16,
14183,
279,
2068,
309,
13484,
12123,
309,
562,
12,
1673,
67,
1098,
13,
480,
562,
12,
2704,
67,
1098,
13,
294,
1002,
2068,
27188,
77,
6195,
738,
77,
3853,
6,
738,
261,
1897,
12,
1673,
67,
1098,
3631,
562,
12,
2704,
67,
1098,
20349,
364,
1592,
16,
394,
316,
3144,
12,
1673,
67,
1098,
16,
394,
67,
1098,
13,
294,
309,
486,
3400,
67,
3366,
12,
1673,
16,
2704,
16,
6185,
67,
529,
13,
294,
327,
1083,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._pos=[] self._boundary=[] self._assoc=None
|
def clear(self): """ Empties the graph of vertices and edges and removes name, boundary, associated objects, and position information.
|
755c16174b2e37df79a60a4018440b4daeaff70f /local1/tlutelli/issta_data/temp/all_python//python/2008_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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
3536,
7377,
337,
606,
326,
2667,
434,
6928,
471,
5231,
471,
7157,
508,
16,
7679,
16,
3627,
2184,
16,
471,
1754,
1779,
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
] |
|
f = 'function(){' + element + '}'
|
f = element
|
def do_execute(self, window, parser, element): f = 'function(){' + element + '}'
|
3721c9f729ec7c1585f408e61dbe0d7f60c3b94b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4006/3721c9f729ec7c1585f408e61dbe0d7f60c3b94b/DOM.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8837,
12,
2890,
16,
2742,
16,
2082,
16,
930,
4672,
284,
273,
296,
915,
1435,
27828,
397,
930,
397,
9571,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8837,
12,
2890,
16,
2742,
16,
2082,
16,
930,
4672,
284,
273,
296,
915,
1435,
27828,
397,
930,
397,
9571,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'posmatch = ',posmatch print 'cellmatch = ',cellmatch,self.atoms.get_cell(),atoms.get_cell() print 'lenmatch = ',lenmatch
|
if self.debug > 1: print 'posmatch = ',posmatch,abs(a['positions'] - b['positions']) print 'cellmatch = ',cellmatch,self.atoms.get_cell(),atoms.get_cell() print 'lenmatch = ',lenmatch
|
def atoms_are_equal(self,atoms): ''' comparison of atoms to self.atoms using tolerances to account for float/double differences and float math. ''' TOL = 1.0e-6 #angstroms
|
28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/28c3f2a245341cd8f82e1ffe9c9883dad13198ad/jacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
67,
834,
67,
9729,
12,
2890,
16,
14937,
4672,
9163,
5826,
434,
9006,
358,
365,
18,
14937,
1450,
6085,
264,
6872,
358,
2236,
364,
1431,
19,
9056,
16440,
471,
1431,
4233,
18,
9163,
399,
1741,
273,
404,
18,
20,
73,
17,
26,
468,
539,
334,
520,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
67,
834,
67,
9729,
12,
2890,
16,
14937,
4672,
9163,
5826,
434,
9006,
358,
365,
18,
14937,
1450,
6085,
264,
6872,
358,
2236,
364,
1431,
19,
9056,
16440,
471,
1431,
4233,
18,
9163,
399,
1741,
273,
404,
18,
20,
73,
17,
26,
468,
539,
334,
520,
87,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if filename:
|
if filename and not isdir(filename):
|
def load_module(self, name, stuff): module = ModuleLoader.load_module(self, name, stuff) file, filename, info = stuff
|
198d871a6d66c04ac7133dd997c54dffffc5676f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/198d871a6d66c04ac7133dd997c54dffffc5676f/importers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
508,
16,
10769,
4672,
1605,
273,
5924,
2886,
18,
945,
67,
2978,
12,
2890,
16,
508,
16,
10769,
13,
585,
16,
1544,
16,
1123,
273,
10769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
508,
16,
10769,
4672,
1605,
273,
5924,
2886,
18,
945,
67,
2978,
12,
2890,
16,
508,
16,
10769,
13,
585,
16,
1544,
16,
1123,
273,
10769,
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
] |
why = os.strerror(err.errno)
|
why = _strerror(err)
|
def ftp_SIZE(self, line): """Return size of file in a format suitable for using with RESTart as defined into RFC 3659.
|
e155be2e9b3e40d9bd92788d2569c640df5f0b57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e155be2e9b3e40d9bd92788d2569c640df5f0b57/ftpserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
4574,
12,
2890,
16,
980,
4672,
3536,
990,
963,
434,
585,
316,
279,
740,
10631,
364,
1450,
598,
8392,
485,
487,
2553,
1368,
8372,
6580,
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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,
13487,
67,
4574,
12,
2890,
16,
980,
4672,
3536,
990,
963,
434,
585,
316,
279,
740,
10631,
364,
1450,
598,
8392,
485,
487,
2553,
1368,
8372,
6580,
6162,
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
] |
result = [self.getPkgById(pkg.key) for pkg in result]
|
result = [self.getPkgById(pkg["install_id"]) for pkg in result]
|
def searchObsoletes(self, name, flag, version): if self.obsoletes_list is None: self._readObsoletes() result = self.obsoletes_list.search(name, flag, version) result = [self.getPkgById(pkg.key) for pkg in result] return filter(None, result)
|
845f48f23a00b90270ce7fa94ef3fb74bfc20685 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/845f48f23a00b90270ce7fa94ef3fb74bfc20685/rpmdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
27637,
355,
278,
281,
12,
2890,
16,
508,
16,
2982,
16,
1177,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
225,
563,
273,
365,
18,
10992,
355,
278,
281,
67,
1098,
18,
3072,
12,
529,
16,
2982,
16,
1177,
13,
563,
273,
306,
2890,
18,
588,
11264,
5132,
12,
10657,
9614,
5425,
67,
350,
6,
5717,
364,
3475,
316,
563,
65,
327,
1034,
12,
7036,
16,
563,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
27637,
355,
278,
281,
12,
2890,
16,
508,
16,
2982,
16,
1177,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
225,
563,
273,
365,
18,
10992,
355,
278,
281,
67,
1098,
18,
3072,
12,
529,
16,
2982,
16,
1177,
13,
563,
273,
306,
2890,
18,
588,
11264,
5132,
12,
10657,
9614,
5425,
67,
350,
6,
5717,
364,
3475,
316,
563,
65,
327,
1034,
12,
7036,
16,
563,
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
] |
sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info())));
|
sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info()))) break
|
def serve_forever(self): # We want this to run in a thread, so we use a slightly # modified version of "forever". self.active = True while self.active: try: self.handle_request() except socket.timeout: pass except KeyboardInterrupt: self.server_close() return except: sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info())));
|
0098c9d60997f40c8e75714db9963337dc834378 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/0098c9d60997f40c8e75714db9963337dc834378/test_ssl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
12,
2890,
4672,
468,
1660,
2545,
333,
358,
1086,
316,
279,
2650,
16,
1427,
732,
999,
279,
21980,
468,
4358,
1177,
434,
315,
1405,
502,
9654,
365,
18,
3535,
273,
1053,
1323,
365,
18,
3535,
30,
775,
30,
365,
18,
4110,
67,
2293,
1435,
1335,
2987,
18,
4538,
30,
1342,
1335,
19424,
30,
365,
18,
3567,
67,
4412,
1435,
327,
1335,
30,
2589,
18,
10283,
18,
2626,
2668,
10332,
5701,
12,
21696,
18,
2139,
67,
4064,
30857,
9499,
18,
10075,
67,
1376,
1435,
3719,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
468,
1660,
2545,
333,
358,
1086,
316,
279,
2650,
16,
1427,
732,
999,
279,
21980,
468,
4358,
1177,
434,
315,
1405,
502,
9654,
365,
18,
3535,
273,
1053,
1323,
365,
18,
3535,
30,
775,
30,
365,
18,
4110,
67,
2293,
1435,
1335,
2987,
18,
4538,
30,
1342,
1335,
19424,
30,
365,
18,
3567,
67,
4412,
1435,
327,
1335,
30,
2589,
18,
10283,
18,
2626,
2668,
10332,
5701,
12,
21696,
18,
2139,
67,
4064,
30857,
9499,
18,
10075,
67,
1376,
1435,
3719,
1769,
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
] |
return ValueError("Flavor %s not understood" % flavor)
|
raise ValueError("Flavor %s not understood" % flavor)
|
def pdir_from_reg(version, flavor = 'std'): """Try to find the product directory from the registry. Return None if failed or the directory does not exist""" if not SCons.Util.can_read_reg: debug('SCons cannot read registry') return None if flavor == 'std': vsbase = _VS_STANDARD_HKEY_ROOT % version elif flavor == 'express': vsbase = _VS_EXPRESS_HKEY_ROOT % version else: return ValueError("Flavor %s not understood" % flavor) try: comps = read_reg(vsbase + '\Setup\VC\productdir') debug('Found product dir in registry: %s' % comps) except WindowsError, e: debug('Did not find product dir key %s in registry' % \ (vsbase + '\Setup\VC\productdir')) return None # XXX: it this necessary for VS .net only, or because std vs # express ? if 7 <= version < 8: comps = os.path.join(comps, os.pardir, "Common7", "Tools") if not os.path.exists(comps): debug('%s is not found on the filesystem' % comps) return None return comps
|
b55f0466c61180204b67de07d104fd571ce6266f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/b55f0466c61180204b67de07d104fd571ce6266f/MSVCCommon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1214,
67,
2080,
67,
1574,
12,
1589,
16,
19496,
273,
296,
5084,
11,
4672,
3536,
7833,
358,
1104,
326,
225,
3017,
1867,
628,
326,
4023,
18,
225,
2000,
599,
309,
2535,
578,
326,
1867,
1552,
486,
1005,
8395,
309,
486,
20487,
18,
1304,
18,
4169,
67,
896,
67,
1574,
30,
1198,
2668,
55,
9054,
2780,
855,
4023,
6134,
327,
599,
225,
309,
19496,
422,
296,
5084,
4278,
6195,
1969,
273,
389,
14640,
67,
882,
18264,
67,
44,
3297,
67,
9185,
738,
1177,
1327,
19496,
422,
296,
338,
1028,
4278,
6195,
1969,
273,
389,
14640,
67,
2294,
22526,
67,
44,
3297,
67,
9185,
738,
1177,
469,
30,
1002,
2068,
2932,
2340,
9444,
738,
87,
486,
31727,
4773,
6,
738,
19496,
13,
225,
775,
30,
13979,
273,
855,
67,
1574,
12,
6904,
1969,
397,
2337,
7365,
64,
13464,
64,
5896,
1214,
6134,
1198,
2668,
2043,
3017,
1577,
316,
4023,
30,
738,
87,
11,
738,
13979,
13,
1335,
8202,
668,
16,
425,
30,
1198,
2668,
18250,
486,
1104,
3017,
1577,
498,
738,
87,
316,
4023,
11,
738,
521,
261,
6904,
1969,
397,
2337,
7365,
64,
13464,
64,
5896,
1214,
26112,
327,
599,
225,
468,
11329,
30,
518,
333,
4573,
364,
776,
55,
263,
2758,
1338,
16,
578,
2724,
2044,
6195,
468,
16947,
692,
309,
2371,
1648,
1177,
411,
1725,
30,
13979,
273,
1140,
18,
803,
18,
5701,
12,
31532,
16,
1140,
18,
84,
1060,
481,
16,
315,
6517,
27,
3113,
315,
10348,
7923,
225,
309,
486,
1140,
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,
293,
1214,
67,
2080,
67,
1574,
12,
1589,
16,
19496,
273,
296,
5084,
11,
4672,
3536,
7833,
358,
1104,
326,
225,
3017,
1867,
628,
326,
4023,
18,
225,
2000,
599,
309,
2535,
578,
326,
1867,
1552,
486,
1005,
8395,
309,
486,
20487,
18,
1304,
18,
4169,
67,
896,
67,
1574,
30,
1198,
2668,
55,
9054,
2780,
855,
4023,
6134,
327,
599,
225,
309,
19496,
422,
296,
5084,
4278,
6195,
1969,
273,
389,
14640,
67,
882,
18264,
67,
44,
3297,
67,
9185,
738,
1177,
1327,
19496,
422,
296,
338,
1028,
4278,
6195,
1969,
273,
389,
14640,
67,
2294,
22526,
67,
44,
3297,
67,
9185,
738,
1177,
469,
30,
1002,
2068,
2932,
2340,
9444,
738,
87,
486,
31727,
4773,
6,
2
] |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases")))
|
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases")))
|
def kb_show(req, kb, sortby="to", ln=config.cdslang): """ Shows the content of the given knowledge base id. Check for authentication and kb existence. Before displaying the content of the knowledge base, check if a form was submitted asking for adding, editing or removing a value. @param ln language @param kb the kb id to show @param sortby the sorting criteria ('from' or 'to') """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) (auth_code, auth_msg) = check_user(req, 'cfgbibformat') if not auth_code: kb_id = wash_url_argument(kb, 'int') kb_name = bibformatadminlib.get_kb_name(kb_id) if kb_name is None: return page(title=_("Unknown Knowledge Base"), body = "", language=ln, navtrail = navtrail_previous_links, errors = [("ERR_BIBFORMAT_KB_ID_UNKNOWN", kb)], lastupdated=__lastupdated__, req=req) return page(title=_("Knowledge Base %s" % kb_name), body=bibformatadminlib.perform_request_knowledge_base_show(ln=ln, kb_id=kb_id, sortby=sortby), uid=uid, language=ln, navtrail = navtrail_previous_links, lastupdated=__lastupdated__, req=req) else: return page_not_authorized(req=req, text=auth_msg, navtrail=navtrail_previous_links)
|
f08fe81d00d74f462e6a931c4d621a61c821b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f08fe81d00d74f462e6a931c4d621a61c821b5b1/bibformatadmin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4500,
12,
3658,
16,
9182,
16,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
9674,
87,
326,
913,
434,
326,
864,
20272,
1026,
612,
18,
2073,
364,
5107,
471,
9182,
15782,
18,
11672,
23620,
326,
913,
434,
326,
20272,
1026,
16,
866,
309,
279,
646,
1703,
9638,
29288,
364,
6534,
16,
15755,
578,
9427,
279,
460,
18,
225,
632,
891,
7211,
2653,
632,
891,
9182,
326,
9182,
612,
358,
2405,
632,
891,
1524,
1637,
326,
9602,
3582,
7707,
2080,
11,
578,
296,
869,
6134,
3536,
225,
7211,
273,
341,
961,
67,
4923,
12,
2370,
13,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
8775,
15565,
67,
11515,
67,
7135,
273,
25581,
2139,
3666,
2941,
18,
588,
11589,
15565,
2668,
6309,
473,
4521,
31,
411,
69,
667,
1546,
11589,
15565,
6,
3897,
11613,
87,
19,
3666,
19,
70,
495,
2139,
19,
70,
495,
2139,
3666,
18,
2074,
19,
8899,
67,
12633,
35,
2370,
5095,
87,
24038,
87,
1757,
69,
1870,
6309,
738,
261,
1425,
18,
4875,
718,
16,
7211,
16,
389,
2932,
21258,
1475,
14390,
605,
3304,
6,
20349,
225,
775,
30,
4555,
273,
31652,
12,
3658,
13,
1335,
13485,
1966,
18,
668,
16,
425,
30,
327,
555,
67,
2433,
12,
3658,
13,
225,
261,
1944,
67,
710,
16,
1357,
67,
3576,
13,
273,
866,
67,
1355,
12,
3658,
16,
296,
7066,
70,
495,
2139,
6134,
309,
486,
1357,
67,
710,
30,
225,
9182,
67,
350,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4500,
12,
3658,
16,
9182,
16,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
9674,
87,
326,
913,
434,
326,
864,
20272,
1026,
612,
18,
2073,
364,
5107,
471,
9182,
15782,
18,
11672,
23620,
326,
913,
434,
326,
20272,
1026,
16,
866,
309,
279,
646,
1703,
9638,
29288,
364,
6534,
16,
15755,
578,
9427,
279,
460,
18,
225,
632,
891,
7211,
2653,
632,
891,
9182,
326,
9182,
612,
358,
2405,
632,
891,
1524,
1637,
326,
9602,
3582,
7707,
2080,
11,
578,
296,
869,
6134,
3536,
225,
7211,
273,
341,
961,
67,
4923,
12,
2370,
13,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
8775,
15565,
67,
11515,
67,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.