rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
if not swig_sources:
|
for source in sources: (base, ext) = os.path.splitext(source) if ext == ".i": new_sources.append(base + target_ext) swig_sources.append(source) swig_targets[source] = new_sources[-1] else: new_sources.append(source) if not swig_sources: return new_sources swig = self.find_swig() swig_cmd = [swig, "-python", "-ISWIG"] if self.swig_cpp: swig_cmd.append("-c++") for source in swig_sources: target = swig_targets[source] self.announce("swigging %s to %s" % (source, target)) self.spawn(swig_cmd + ["-o", target, source])
|
def swig_sources (self, sources): """Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """ new_sources = [] swig_sources = [] swig_targets = {} # XXX this drops generated C/C++ files into the source tree, which # is fine for developers who want to distribute the generated # source -- but there should be an option to put SWIG output in # the temp dir. if self.swig_cpp: target_ext = '.cpp' else: target_ext = '.c' for source in sources: (base, ext) = os.path.splitext(source) if ext == ".i": # SWIG interface file new_sources.append(base + target_ext) swig_sources.append(source) swig_targets[source] = new_sources[-1] else: new_sources.append(source) if not swig_sources: return new_sources swig = self.find_swig() swig_cmd = [swig, "-python", "-ISWIG"] if self.swig_cpp: swig_cmd.append("-c++") for source in swig_sources: target = swig_targets[source] self.announce("swigging %s to %s" % (source, target)) self.spawn(swig_cmd + ["-o", target, source]) return new_sources
|
792d215f022fc86e5b15c34c904b2f0ac7c51fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/792d215f022fc86e5b15c34c904b2f0ac7c51fb7/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
261,
2890,
16,
5550,
4672,
225,
3536,
9463,
326,
666,
434,
1084,
1390,
316,
296,
10141,
2187,
7849,
364,
16392,
3047,
1560,
261,
18,
77,
13,
1390,
18,
225,
1939,
16392,
3047,
603,
777,
716,
854,
1392,
16,
471,
327,
279,
4358,
296,
10141,
11,
666,
598,
16392,
3047,
1084,
1390,
8089,
635,
326,
4374,
385,
261,
280,
385,
27245,
1390,
18,
3536,
225,
394,
67,
10141,
273,
5378,
1352,
360,
67,
10141,
273,
5378,
1352,
360,
67,
11358,
273,
2618,
225,
468,
11329,
333,
29535,
4374,
385,
19,
39,
9904,
1390,
1368,
326,
1084,
2151,
16,
1492,
468,
353,
11079,
364,
21701,
10354,
2545,
358,
25722,
326,
4374,
468,
1084,
1493,
1496,
1915,
1410,
506,
392,
1456,
358,
1378,
16392,
3047,
876,
316,
468,
326,
1906,
1577,
18,
225,
309,
365,
18,
5328,
360,
67,
4057,
84,
30,
1018,
67,
408,
273,
2418,
4057,
84,
11,
469,
30,
1018,
67,
408,
273,
2418,
71,
11,
225,
364,
1084,
316,
5550,
30,
261,
1969,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
3168,
13,
309,
1110,
422,
3552,
77,
6877,
2398,
468,
16392,
3047,
1560,
585,
394,
67,
10141,
18,
6923,
12,
1969,
397,
1018,
67,
408,
13,
1352,
360,
67,
10141,
18,
6923,
12,
3168,
13,
1352,
360,
67,
11358,
63,
3168,
65,
273,
394,
67,
10141,
18919,
21,
65,
469,
30,
394,
67,
10141,
18,
6923,
12,
3168,
13,
225,
364,
1084,
316,
5550,
30,
261,
1969,
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,
1352,
360,
67,
10141,
261,
2890,
16,
5550,
4672,
225,
3536,
9463,
326,
666,
434,
1084,
1390,
316,
296,
10141,
2187,
7849,
364,
16392,
3047,
1560,
261,
18,
77,
13,
1390,
18,
225,
1939,
16392,
3047,
603,
777,
716,
854,
1392,
16,
471,
327,
279,
4358,
296,
10141,
11,
666,
598,
16392,
3047,
1084,
1390,
8089,
635,
326,
4374,
385,
261,
280,
385,
27245,
1390,
18,
3536,
225,
394,
67,
10141,
273,
5378,
1352,
360,
67,
10141,
273,
5378,
1352,
360,
67,
11358,
273,
2618,
225,
468,
11329,
333,
29535,
4374,
385,
19,
39,
9904,
1390,
1368,
326,
1084,
2151,
16,
1492,
468,
353,
11079,
364,
21701,
10354,
2545,
358,
25722,
326,
4374,
468,
1084,
1493,
1496,
1915,
2
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 896) else quickfix.IntField.__init__(self, 896, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10525,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10525,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10525,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10525,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
output = [s.event_name, str(s.strm_id), str(s.bytes_read), str(s.bytes_written)]
|
output = [s.event_name, str(s.strm_id), str(s.bytes_written), str(s.bytes_read)]
|
def stream_bw_event(self, s): output = [s.event_name, str(s.strm_id), str(s.bytes_read), str(s.bytes_written)] plog("DEBUG", " ".join(output)) if not s.strm_id in self.streams: plog("WARN", "BW event for unknown stream id: "+str(s.strm_id)) else: self.streams[s.strm_id].bytes_read += s.bytes_read self.streams[s.strm_id].bytes_written += s.bytes_written
|
11e3110fbb15cb6fa2284e788f706027d61f86e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/11e3110fbb15cb6fa2284e788f706027d61f86e9/PathSupport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1407,
67,
70,
91,
67,
2575,
12,
2890,
16,
272,
4672,
876,
273,
306,
87,
18,
2575,
67,
529,
16,
609,
12,
87,
18,
701,
81,
67,
350,
3631,
609,
12,
87,
18,
3890,
67,
9748,
3631,
609,
12,
87,
18,
3890,
67,
896,
25887,
293,
1330,
2932,
9394,
3113,
315,
3552,
5701,
12,
2844,
3719,
309,
486,
272,
18,
701,
81,
67,
350,
316,
365,
18,
16320,
30,
293,
1330,
2932,
27999,
3113,
315,
38,
59,
871,
364,
5917,
1407,
612,
30,
13773,
701,
12,
87,
18,
701,
81,
67,
350,
3719,
469,
30,
365,
18,
16320,
63,
87,
18,
701,
81,
67,
350,
8009,
3890,
67,
896,
1011,
272,
18,
3890,
67,
896,
365,
18,
16320,
63,
87,
18,
701,
81,
67,
350,
8009,
3890,
67,
9748,
1011,
272,
18,
3890,
67,
9748,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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67,
70,
91,
67,
2575,
12,
2890,
16,
272,
4672,
876,
273,
306,
87,
18,
2575,
67,
529,
16,
609,
12,
87,
18,
701,
81,
67,
350,
3631,
609,
12,
87,
18,
3890,
67,
9748,
3631,
609,
12,
87,
18,
3890,
67,
896,
25887,
293,
1330,
2932,
9394,
3113,
315,
3552,
5701,
12,
2844,
3719,
309,
486,
272,
18,
701,
81,
67,
350,
316,
365,
18,
16320,
30,
293,
1330,
2932,
27999,
3113,
315,
38,
59,
871,
364,
5917,
1407,
612,
30,
13773,
701,
12,
87,
18,
701,
81,
67,
350,
3719,
469,
30,
365,
18,
16320,
63,
87,
18,
701,
81,
67,
350,
8009,
3890,
67,
896,
1011,
272,
18,
3890,
67,
896,
365,
18,
16320,
2
] |
positive integer $n$ such that $g^n = 1$.
|
positive integer $n$ such that $g^n = 1$, or +Infinity if no such integer exists.
|
def order(self): """ Return the order of this group element, which is the smallest positive integer $n$ such that $g^n = 1$.
|
065765e298ccc1907599a7c932285299b2975238 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/065765e298ccc1907599a7c932285299b2975238/matrix_group_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1041,
930,
16,
1492,
353,
326,
13541,
6895,
3571,
271,
82,
8,
4123,
716,
271,
75,
66,
82,
273,
404,
8,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1041,
930,
16,
1492,
353,
326,
13541,
6895,
3571,
271,
82,
8,
4123,
716,
271,
75,
66,
82,
273,
404,
8,
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
] |
self._original_cell = self._indxr_input_cell
|
original_cell = self._indxr_input_cell
|
def _index(self): '''Actually do the autoindexing using the data prepared by the previous method.'''
|
593ac857ce364f13af0bf573ec558dba451df672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/593ac857ce364f13af0bf573ec558dba451df672/XDSIndexer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
12,
2890,
4672,
9163,
2459,
3452,
741,
326,
2059,
885,
561,
310,
1450,
326,
501,
8208,
635,
326,
2416,
707,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
12,
2890,
4672,
9163,
2459,
3452,
741,
326,
2059,
885,
561,
310,
1450,
326,
501,
8208,
635,
326,
2416,
707,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
queue = None sendDelay = 0
|
_queue = None _queueEmptying = None
|
def irc_unknown(self, prefix, command, params): """Implement me!""" raise NotImplementedError
|
5c7ccb39b148939a0f7b7f3aeb2619e173f82209 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5c7ccb39b148939a0f7b7f3aeb2619e173f82209/irc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
8172,
12,
2890,
16,
1633,
16,
1296,
16,
859,
4672,
3536,
5726,
1791,
5,
8395,
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
8172,
12,
2890,
16,
1633,
16,
1296,
16,
859,
4672,
3536,
5726,
1791,
5,
8395,
1002,
11206,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 parcel.displayName == 'Test':
|
if parcel.displayName == _('Test'):
|
def OnTest3 (self, event): for parcel in self.model.URLTree: """ Each parcel must have an attribute which is the displayName. """ assert (hasattr (parcel, 'displayName')) if parcel.displayName == 'Test': parcel.SynchronizeView () return
|
20123d38704b5b225b766def44b0ab1c8a5a79da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/20123d38704b5b225b766def44b0ab1c8a5a79da/Application.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4709,
23,
261,
2890,
16,
871,
4672,
364,
779,
2183,
316,
365,
18,
2284,
18,
1785,
2471,
30,
3536,
8315,
779,
2183,
1297,
1240,
392,
1566,
1492,
353,
326,
16218,
18,
3536,
1815,
261,
5332,
1747,
261,
1065,
2183,
16,
296,
5417,
461,
26112,
309,
779,
2183,
18,
5417,
461,
422,
389,
2668,
4709,
11,
4672,
779,
2183,
18,
19298,
554,
1767,
1832,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
4709,
23,
261,
2890,
16,
871,
4672,
364,
779,
2183,
316,
365,
18,
2284,
18,
1785,
2471,
30,
3536,
8315,
779,
2183,
1297,
1240,
392,
1566,
1492,
353,
326,
16218,
18,
3536,
1815,
261,
5332,
1747,
261,
1065,
2183,
16,
296,
5417,
461,
26112,
309,
779,
2183,
18,
5417,
461,
422,
389,
2668,
4709,
11,
4672,
779,
2183,
18,
19298,
554,
1767,
1832,
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
] |
self.check_sizeof(float(0), h + 8)
|
self.check_sizeof(float(0), size(h + 'd'))
|
def method(): pass
|
9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/9cbed723c019f67adc5f76d1f21ed8d14c9df22c/test_sys.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
raise SkipTest( 'test is broken, relies on order of test execution and numeric ids') accepted = support.add_comment('Accepted Comment', node_id=3,
|
session = Session() nodes = session.query(Node).all() node = nodes[7] session.close() accepted = support.add_comment('Accepted Comment', node_id=node.id,
|
def test_moderation(support): raise SkipTest( 'test is broken, relies on order of test execution and numeric ids') accepted = support.add_comment('Accepted Comment', node_id=3, displayed=False) rejected = support.add_comment('Rejected comment', node_id=3, displayed=False) # Make sure the moderation_callback is called. assert called == True # Make sure the user must be a moderator. raises(UserNotAuthorizedError, support.accept_comment, accepted['id']) raises(UserNotAuthorizedError, support.reject_comment, accepted['id']) support.accept_comment(accepted['id'], moderator=True) support.reject_comment(rejected['id'], moderator=True) comments = support.get_data(3)['comments'] assert len(comments) == 1 comments = support.get_data(3, moderator=True)['comments'] assert len(comments) == 1
|
fd10895e5a3e5b2d5c80db0fb9d544607eb1ed5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/fd10895e5a3e5b2d5c80db0fb9d544607eb1ed5d/test_websupport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1711,
7067,
12,
13261,
4672,
1339,
273,
3877,
1435,
2199,
273,
1339,
18,
2271,
12,
907,
2934,
454,
1435,
756,
273,
2199,
63,
27,
65,
1339,
18,
4412,
1435,
8494,
273,
2865,
18,
1289,
67,
3469,
2668,
18047,
9821,
2187,
756,
67,
350,
33,
2159,
18,
350,
16,
10453,
33,
8381,
13,
11876,
273,
2865,
18,
1289,
67,
3469,
2668,
19902,
2879,
2187,
756,
67,
350,
33,
23,
16,
10453,
33,
8381,
13,
468,
4344,
3071,
326,
681,
7067,
67,
3394,
353,
2566,
18,
1815,
2566,
422,
1053,
468,
4344,
3071,
326,
729,
1297,
506,
279,
681,
7385,
18,
14183,
12,
1299,
1248,
15341,
668,
16,
2865,
18,
9436,
67,
3469,
16,
8494,
3292,
350,
19486,
14183,
12,
1299,
1248,
15341,
668,
16,
2865,
18,
24163,
67,
3469,
16,
8494,
3292,
350,
19486,
2865,
18,
9436,
67,
3469,
12,
23847,
3292,
350,
17337,
681,
7385,
33,
5510,
13,
2865,
18,
24163,
67,
3469,
12,
266,
6059,
3292,
350,
17337,
681,
7385,
33,
5510,
13,
5678,
273,
2865,
18,
588,
67,
892,
12,
23,
13,
3292,
9231,
3546,
1815,
562,
12,
9231,
13,
422,
404,
5678,
273,
2865,
18,
588,
67,
892,
12,
23,
16,
681,
7385,
33,
5510,
13,
3292,
9231,
3546,
1815,
562,
12,
9231,
13,
422,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1711,
7067,
12,
13261,
4672,
1339,
273,
3877,
1435,
2199,
273,
1339,
18,
2271,
12,
907,
2934,
454,
1435,
756,
273,
2199,
63,
27,
65,
1339,
18,
4412,
1435,
8494,
273,
2865,
18,
1289,
67,
3469,
2668,
18047,
9821,
2187,
756,
67,
350,
33,
2159,
18,
350,
16,
10453,
33,
8381,
13,
11876,
273,
2865,
18,
1289,
67,
3469,
2668,
19902,
2879,
2187,
756,
67,
350,
33,
23,
16,
10453,
33,
8381,
13,
468,
4344,
3071,
326,
681,
7067,
67,
3394,
353,
2566,
18,
1815,
2566,
422,
1053,
468,
4344,
3071,
326,
729,
1297,
506,
279,
681,
7385,
18,
14183,
12,
1299,
1248,
15341,
668,
16,
2865,
18,
9436,
67,
3469,
16,
8494,
3292,
350,
19486,
2
] |
except (SystemExit, KeyboardInterrupt): raise except:
|
except KeyError:
|
def _createItemsForParsed(self, parsed): # This is a HACK for Yahoo! search which doesn't provide # enclosures for entry in parsed['entries']: if 'enclosures' not in entry: try: url = entry['link'] except (SystemExit, KeyboardInterrupt): raise except: continue mimetype = filetypes.guess_mime_type(url) if mimetype is not None: entry['enclosures'] = [{'url': to_uni(url), 'type': to_uni(mimetype)}] elif flashscraper.is_maybe_flashscrapable(url): entry['enclosures'] = [{'url': to_uni(url), 'type': to_uni("video/flv")}] else: logging.info('unknown url type %s, not generating enclosure' % url)
|
d907ac681fe4e19428a72f31465787e3d8bd0863 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/d907ac681fe4e19428a72f31465787e3d8bd0863/feed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
3126,
1290,
11257,
12,
2890,
16,
2707,
4672,
468,
1220,
353,
279,
670,
3649,
364,
1624,
9795,
5161,
5,
1623,
1492,
3302,
1404,
5615,
468,
2446,
383,
8421,
364,
1241,
316,
2707,
3292,
8219,
3546,
30,
309,
296,
1331,
383,
8421,
11,
486,
316,
1241,
30,
775,
30,
880,
273,
1241,
3292,
1232,
3546,
1335,
4999,
30,
1324,
12595,
273,
661,
15180,
18,
20885,
67,
11757,
67,
723,
12,
718,
13,
309,
12595,
353,
486,
599,
30,
1241,
3292,
1331,
383,
8421,
3546,
273,
20031,
11,
718,
4278,
358,
67,
318,
77,
12,
718,
3631,
296,
723,
4278,
358,
67,
318,
77,
12,
22571,
13,
11839,
1327,
9563,
1017,
20321,
18,
291,
67,
19133,
67,
13440,
1017,
1266,
429,
12,
718,
4672,
1241,
3292,
1331,
383,
8421,
3546,
273,
20031,
11,
718,
4278,
358,
67,
318,
77,
12,
718,
3631,
296,
723,
4278,
358,
67,
318,
77,
2932,
9115,
19,
2242,
90,
7923,
11839,
469,
30,
2907,
18,
1376,
2668,
8172,
880,
618,
738,
87,
16,
486,
12516,
23423,
11,
738,
880,
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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
3546,
30,
309,
296,
1331,
383,
8421,
11,
486,
316,
1241,
30,
775,
30,
880,
273,
1241,
3292,
1232,
3546,
1335,
4999,
30,
1324,
12595,
273,
661,
15180,
18,
20885,
67,
11757,
67,
723,
12,
718,
13,
309,
12595,
353,
486,
599,
30,
1241,
3292,
1331,
383,
8421,
3546,
273,
20031,
11,
718,
4278,
358,
67,
318,
77,
12,
718,
3631,
296,
723,
4278,
358,
67,
318,
77,
12,
22571,
13,
11839,
1327,
9563,
1017,
20321,
18,
291,
67,
19133,
67,
13440,
2
] |
return handler.main(StringIO(message))
|
ret = handler.main(StringIO(message)) self.db = handler.db return ret
|
def _handle_mail(self, message): handler = self.instance.MailGW(self.instance, self.db) handler.trapExceptions = 0 return handler.main(StringIO(message))
|
9667ad9adbe4135e6b6c3a5026d7157b4c3a4383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/9667ad9adbe4135e6b6c3a5026d7157b4c3a4383/test_mailgw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
4408,
12,
2890,
16,
883,
4672,
1838,
273,
365,
18,
1336,
18,
6759,
30947,
12,
2890,
18,
1336,
16,
365,
18,
1966,
13,
1838,
18,
27170,
11416,
273,
374,
325,
273,
1838,
18,
5254,
12,
780,
4294,
12,
2150,
3719,
225,
365,
18,
1966,
273,
1838,
18,
1966,
327,
325,
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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,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
4408,
12,
2890,
16,
883,
4672,
1838,
273,
365,
18,
1336,
18,
6759,
30947,
12,
2890,
18,
1336,
16,
365,
18,
1966,
13,
1838,
18,
27170,
11416,
273,
374,
325,
273,
1838,
18,
5254,
12,
780,
4294,
12,
2150,
3719,
225,
365,
18,
1966,
273,
1838,
18,
1966,
327,
325,
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
] |
deps = tags = recurse = showTroveFlags = showAllTroves = True
|
deps = recurse = showTroveFlags = showAllTroves = True
|
def displayChangeSet(db, cs, troveSpecs, cfg, # trove options info = False, digSigs = False, deps = False, showBuildReqs = False, all = False, # file options ls = False, lsl = False, ids = False, sha1s = False, tags = False, fileDeps = False, fileVersions = False, # collection options showTroves = False, recurse = None, showAllTroves = False, weakRefs = False, showTroveFlags = False, alwaysDisplayHeaders = False, # job options showChanges = False, asJob = False): if all: deps = tags = recurse = showTroveFlags = showAllTroves = True if ls: fileDeps = lsl = True if showChanges: lsl = True client = conaryclient.ConaryClient(cfg) repos = client.getRepos() if not asJob and not showChanges and cs.isAbsolute(): changeSetSource = trovesource.ChangesetFilesTroveSource(None) changeSetSource.addChangeSet(cs) if not troveSpecs: troveTups = cs.getPrimaryTroveList() primary = True if not troveTups: log.warning('No primary troves in changeset, listing all troves') troveTups = [(x.getName(), x.getNewVersion(), x.getNewFlavor())\ for x in cs.iterNewTroveList()] else: troveTups, primary = query.getTrovesToDisplay(changeSetSource, troveSpecs) querySource = trovesource.stack(changeSetSource, client.getRepos()) dcfg = display.DisplayConfig(querySource, client.db) dcfg.setTroveDisplay(deps=deps, info=info, fullFlavors=cfg.fullFlavors, showLabels=cfg.showLabels, baseFlavors=cfg.flavor) dcfg.setFileDisplay(ls=ls, lsl=lsl, ids=ids, sha1s=sha1s, tags=tags, fileDeps=fileDeps, fileVersions=fileVersions) recurseOne = showTroves or showAllTroves or weakRefs if recurse is None and not recurseOne: # if we didn't explicitly set recurse and we're not recursing one # level explicitly recurse = True in (ls, lsl, ids, sha1s, tags, deps, fileDeps, fileVersions) dcfg.setChildDisplay(recurseAll = recurse, recurseOne = recurseOne, showNotByDefault = showAllTroves, showWeakRefs = weakRefs, showTroveFlags = showTroveFlags, displayHeaders = alwaysDisplayHeaders or showTroveFlags) if primary: dcfg.setPrimaryTroves(set(troveTups)) formatter = display.TroveFormatter(dcfg) display.displayTroves(dcfg, formatter, troveTups) else: changeSetSource = trovesource.ChangeSetJobSource(repos, trovesource.stack(db, repos)) changeSetSource.addChangeSet(cs) jobs = getJobsToDisplay(changeSetSource, troveSpecs) dcfg = display.JobDisplayConfig(changeSetSource, client.db) dcfg.setJobDisplay(showChanges=showChanges, compressJobs=not cfg.showComponents) dcfg.setTroveDisplay(deps=deps, info=info, fullFlavors=cfg.fullFlavors, showLabels=cfg.showLabels, baseFlavors=cfg.flavor) dcfg.setFileDisplay(ls=ls, lsl=lsl, ids=ids, sha1s=sha1s, tags=tags, fileDeps=fileDeps, fileVersions=fileVersions) recurseOne = showTroves or showAllTroves or weakRefs if recurse is None and not recurseOne: # if we didn't explicitly set recurse and we're not recursing one # level explicitly and we specified troves (so everything won't # show up at the top level anyway), guess at whether to recurse recurse = True in (ls, lsl, ids, sha1s, tags, deps, fileDeps, fileVersions) dcfg.setChildDisplay(recurseAll = recurse, recurseOne = recurseOne, showNotByDefault = showAllTroves, showWeakRefs = weakRefs, showTroveFlags = showTroveFlags) formatter = display.JobFormatter(dcfg) display.displayJobs(dcfg, formatter, jobs)
|
0bc435f0ac3ac18fa0c6982931c2e3c4b857b049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/0bc435f0ac3ac18fa0c6982931c2e3c4b857b049/showchangeset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
21565,
12,
1966,
16,
2873,
16,
23432,
537,
15999,
16,
2776,
16,
468,
23432,
537,
702,
1123,
273,
1083,
16,
3097,
8267,
87,
273,
1083,
16,
8740,
273,
1083,
16,
2405,
3116,
6113,
87,
273,
1083,
16,
777,
273,
1083,
16,
468,
585,
702,
7180,
273,
1083,
16,
328,
2069,
273,
1083,
16,
3258,
273,
1083,
16,
6056,
21,
87,
273,
1083,
16,
2342,
273,
1083,
16,
585,
14430,
273,
1083,
16,
585,
5940,
273,
1083,
16,
468,
1849,
702,
2405,
56,
303,
3324,
273,
1083,
16,
11502,
273,
599,
16,
2405,
1595,
56,
303,
3324,
273,
1083,
16,
16046,
9837,
273,
1083,
16,
2405,
56,
303,
537,
5094,
273,
1083,
16,
3712,
4236,
3121,
273,
1083,
16,
468,
1719,
702,
2405,
7173,
273,
1083,
16,
487,
2278,
273,
1083,
4672,
225,
309,
777,
30,
8740,
273,
11502,
273,
2405,
56,
303,
537,
5094,
273,
2405,
1595,
56,
303,
3324,
273,
1053,
309,
7180,
30,
585,
14430,
273,
328,
2069,
273,
1053,
225,
309,
2405,
7173,
30,
328,
2069,
273,
1053,
225,
1004,
273,
356,
814,
2625,
18,
442,
814,
1227,
12,
7066,
13,
13686,
273,
1004,
18,
588,
28453,
1435,
225,
309,
486,
487,
2278,
471,
486,
2405,
7173,
471,
2873,
18,
291,
10368,
13332,
26104,
1830,
273,
23432,
3324,
552,
18,
29743,
2697,
56,
303,
537,
1830,
12,
7036,
13,
26104,
1830,
18,
1289,
21565,
12,
2143,
13,
282,
309,
486,
23432,
537,
15999,
30,
23432,
537,
56,
18294,
273,
2873,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
21565,
12,
1966,
16,
2873,
16,
23432,
537,
15999,
16,
2776,
16,
468,
23432,
537,
702,
1123,
273,
1083,
16,
3097,
8267,
87,
273,
1083,
16,
8740,
273,
1083,
16,
2405,
3116,
6113,
87,
273,
1083,
16,
777,
273,
1083,
16,
468,
585,
702,
7180,
273,
1083,
16,
328,
2069,
273,
1083,
16,
3258,
273,
1083,
16,
6056,
21,
87,
273,
1083,
16,
2342,
273,
1083,
16,
585,
14430,
273,
1083,
16,
585,
5940,
273,
1083,
16,
468,
1849,
702,
2405,
56,
303,
3324,
273,
1083,
16,
11502,
273,
599,
16,
2405,
1595,
56,
303,
3324,
273,
1083,
16,
16046,
9837,
273,
1083,
16,
2405,
56,
303,
537,
5094,
273,
1083,
16,
3712,
4236,
3121,
273,
1083,
2
] |
return ( dObjects, iIndex )
|
return ( dObjects, iIndex + 1 )
|
def decodeDict( sStream, iIndex ): dObjects = {} iIndex += 1 while sStream[ iIndex ] != "e": uKey, iIndex = decode( sStream, iIndex ) uValue, iIndex = decode( sStream, iIndex ) dObjects[ uKey ] = uValue return ( dObjects, iIndex )
|
4f684f0312f071cbdff13f4cfbde4d033c0e3fc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/4f684f0312f071cbdff13f4cfbde4d033c0e3fc9/DEncode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
5014,
12,
272,
1228,
16,
22696,
262,
30,
302,
4710,
273,
2618,
22696,
1011,
404,
1323,
272,
1228,
63,
22696,
308,
480,
315,
73,
6877,
582,
653,
16,
22696,
273,
2495,
12,
272,
1228,
16,
22696,
262,
582,
620,
16,
22696,
273,
2495,
12,
272,
1228,
16,
22696,
262,
302,
4710,
63,
582,
653,
308,
273,
582,
620,
327,
261,
302,
4710,
16,
22696,
397,
404,
262,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
12,
272,
1228,
16,
22696,
262,
30,
302,
4710,
273,
2618,
22696,
1011,
404,
1323,
272,
1228,
63,
22696,
308,
480,
315,
73,
6877,
582,
653,
16,
22696,
273,
2495,
12,
272,
1228,
16,
22696,
262,
582,
620,
16,
22696,
273,
2495,
12,
272,
1228,
16,
22696,
262,
302,
4710,
63,
582,
653,
308,
273,
582,
620,
327,
261,
302,
4710,
16,
22696,
397,
404,
262,
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
] |
content.append(Choice())
|
content.append(Choice(self))
|
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = []
|
6d624a54ef4e80f277c247ef300c646e01f4568e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6d624a54ef4e80f277c247ef300c646e01f4568e/XMLSchema.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 694) else quickfix.IntField.__init__(self, 694, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
11290,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
11290,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
11290,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
11290,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if profilename == "":
|
profilename = profilename.strip() if not profilename:
|
def write_script_ent(prof, script): if not self.config.has_option(prof, script): self.config.set(prof, script, None)
|
3feadb9a3890ec19aa11c2e19ce093f7039feeda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/3feadb9a3890ec19aa11c2e19ce093f7039feeda/wicd-daemon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4263,
67,
319,
12,
16121,
16,
2728,
4672,
309,
486,
365,
18,
1425,
18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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
4263,
67,
319,
12,
16121,
16,
2728,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3482,
12,
16121,
16,
2728,
4672,
365,
18,
1425,
18,
542,
12,
16121,
16,
2728,
16,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: CopyLog(logfile, log) except: pass log.write(separator)
|
for line in open(logfile, 'r'): log.write(line) else: log.write("chandler.log [%s] not found\n" % logfile) log.write(separator)
|
def dumpTestLogs(log, logfile): if logfile: log.write("chandler.log: [%s]\n" % logfile) try: CopyLog(logfile, log) except: pass log.write(separator)
|
18b5a7cc16e1be8fff4b3db47ea67852322bf85b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/18b5a7cc16e1be8fff4b3db47ea67852322bf85b/newchandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
4709,
7777,
12,
1330,
16,
15204,
4672,
309,
15204,
30,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
30,
9799,
87,
13944,
82,
6,
738,
15204,
13,
364,
980,
316,
1696,
12,
28806,
16,
296,
86,
11,
4672,
613,
18,
2626,
12,
1369,
13,
469,
30,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
9799,
87,
65,
486,
1392,
64,
82,
6,
738,
15204,
13,
225,
613,
18,
2626,
12,
11287,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
4709,
7777,
12,
1330,
16,
15204,
4672,
309,
15204,
30,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
30,
9799,
87,
13944,
82,
6,
738,
15204,
13,
364,
980,
316,
1696,
12,
28806,
16,
296,
86,
11,
4672,
613,
18,
2626,
12,
1369,
13,
469,
30,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
9799,
87,
65,
486,
1392,
64,
82,
6,
738,
15204,
13,
225,
613,
18,
2626,
12,
11287,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""
|
"""
|
def flimage_jpeg_options(pImageJpegOption): """ flimage_jpeg_options(pImageJpegOption) """ _flimage_jpeg_options(pImageJpegOption)
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
4672,
3536,
1183,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
13,
3536,
225,
389,
2242,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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2242,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if 'CPUConsumed' == name and value > lastCPUTime: lastCPUTime = value if 'WallClockTime' == name and value > lastWallTime: lastWallTime = value
|
if 'CPUConsumed' == name: try: value = int( float( value ) ) if value > lastCPUTime: lastCPUTime = value except: pass if 'WallClockTime' == name: try: value = int( float( value ) ) if value > lastWallTime: lastWallTime = value except: pass
|
def sendAccounting( self, jobID ): """Send WMS accounting data for the given job """
|
0aa7925d5cd233676fbaf63b5dc6b9d2579f5b78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0aa7925d5cd233676fbaf63b5dc6b9d2579f5b78/StalledJobAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
3032,
310,
12,
365,
16,
28913,
262,
30,
3536,
3826,
678,
3537,
2236,
310,
501,
364,
326,
864,
1719,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
3032,
310,
12,
365,
16,
28913,
262,
30,
3536,
3826,
678,
3537,
2236,
310,
501,
364,
326,
864,
1719,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.tipsR = [ex.name for ex in data] self.rowCategories = [(ex.name, ex[-1].native()) for ex in data]
|
if not hasNameAttribute: self.tipsR = [ex['text'].value[:20] for ex in data] self.rowCategories = [(ex['text'].value[:20], ex[-1].native()) for ex in data] else: self.tipsR = [ex.name for ex in data] self.rowCategories = [(ex.name, ex[-1].native()) for ex in data]
|
def updateTables(self): if self.textData: if textCorpusModul: data = (self.attrRow == 'document' and [self.data] or [CategoryDocument(self.data).dataCD])[0] else: data = self.data metas = data.domain.getmetas() lenMetas = len(metas) caList = [] for ex in data: cur = [0] * lenMetas for i, m in zip(range(lenMetas), metas.keys()): try: cur[i] = float(ex[m].native()) except: cur[i] = 0 caList.append(cur) if not self.CAloaded: self.CA = orngCA.CA(caList) try: self.tipsR = [ex['name'].native() for ex in data] self.rowCategories = [(ex['name'].native(), ex['category'].native()) for ex in data] self.catColors = {} col = 0 colors = [0, 2, 3, 5, 6, 12] for ex in data: if ex['category'].native() not in self.catColors.keys(): self.catColors[ex['category'].native()] = colors[col] col = (col + 1) % len(colors) except: self.tipsR = [ex.name for ex in data] self.rowCategories = [(ex.name, ex[-1].native()) for ex in data] self.catColors = {} col = 0 colors = [0, 2, 3, 5, 6, 12] for ex in data: if ex['category'].native() not in self.catColors.keys(): self.catColors[ex['category'].native()] = colors[col] col = (col + 1) % len(colors) self.tipsC = [a.name for a in data.domain.getmetas().values()] else: ca = orange.ContingencyAttrAttr(self.attrRow, self.attrCol, self.data) caList = [[col for col in row] for row in ca] if not self.CAloaded: self.CA = orngCA.CA(caList) self.tipsR = [s for s, v in ca.outerDistribution.items()] self.tipsC = [s for s, v in ca.innerDistribution.items()] self.rowCategories = [(ex[1].native(), "Row points") for ex in self.data] self.rowCategories = list(dict(self.rowCategories).items()) self.catColors = {"Row points": 0} del ca self.rowSlider.setMinValue(1) self.rowSlider.setMaxValue(len(self.tipsR)) self.percRow = len(self.tipsR) > 100 and 0.5 * len(self.tipsR) or len(self.tipsR) self.colSlider.setMinValue(1) self.colSlider.setMaxValue(len(self.tipsC)) self.percCol = len(self.tipsC) > 100 and 0.5 * len(self.tipsC) or len(self.tipsC) self.initAxesValues() self.tabsMain.showPage(self.graph) self.calcRadius() del caList
|
b63a63ff8ff51961066e2dd9046a5f670eabd2b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/b63a63ff8ff51961066e2dd9046a5f670eabd2b6/OWCorrAnalysis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6905,
12,
2890,
4672,
309,
365,
18,
955,
751,
30,
309,
977,
6217,
9861,
1739,
332,
30,
501,
273,
261,
2890,
18,
1747,
1999,
422,
296,
5457,
11,
471,
306,
2890,
18,
892,
65,
578,
306,
4457,
2519,
12,
2890,
18,
892,
2934,
892,
10160,
5717,
63,
20,
65,
469,
30,
501,
273,
365,
18,
892,
21232,
273,
501,
18,
4308,
18,
588,
10578,
345,
1435,
562,
30853,
273,
562,
12,
10578,
345,
13,
3474,
682,
273,
5378,
364,
431,
316,
501,
30,
662,
273,
306,
20,
65,
380,
562,
30853,
364,
277,
16,
312,
316,
3144,
12,
3676,
12,
1897,
30853,
3631,
21232,
18,
2452,
1435,
4672,
775,
30,
662,
63,
77,
65,
273,
1431,
12,
338,
63,
81,
8009,
13635,
10756,
1335,
30,
662,
63,
77,
65,
273,
374,
3474,
682,
18,
6923,
12,
1397,
13,
309,
486,
365,
18,
3587,
4230,
30,
365,
18,
3587,
273,
578,
3368,
3587,
18,
3587,
12,
5353,
682,
13,
775,
30,
365,
18,
88,
7146,
54,
273,
306,
338,
3292,
529,
29489,
13635,
1435,
364,
431,
316,
501,
65,
365,
18,
492,
10487,
273,
306,
12,
338,
3292,
529,
29489,
13635,
9334,
431,
3292,
4743,
29489,
13635,
10756,
364,
431,
316,
501,
65,
365,
18,
2574,
12570,
273,
2618,
645,
273,
374,
5740,
273,
306,
20,
16,
576,
16,
890,
16,
1381,
16,
1666,
16,
2593,
65,
364,
431,
316,
501,
30,
309,
431,
3292,
4743,
29489,
13635,
1435,
486,
316,
365,
18,
2574,
12570,
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,
1089,
6905,
12,
2890,
4672,
309,
365,
18,
955,
751,
30,
309,
977,
6217,
9861,
1739,
332,
30,
501,
273,
261,
2890,
18,
1747,
1999,
422,
296,
5457,
11,
471,
306,
2890,
18,
892,
65,
578,
306,
4457,
2519,
12,
2890,
18,
892,
2934,
892,
10160,
5717,
63,
20,
65,
469,
30,
501,
273,
365,
18,
892,
21232,
273,
501,
18,
4308,
18,
588,
10578,
345,
1435,
562,
30853,
273,
562,
12,
10578,
345,
13,
3474,
682,
273,
5378,
364,
431,
316,
501,
30,
662,
273,
306,
20,
65,
380,
562,
30853,
364,
277,
16,
312,
316,
3144,
12,
3676,
12,
1897,
30853,
3631,
21232,
18,
2452,
1435,
4672,
775,
30,
662,
63,
77,
65,
273,
1431,
12,
2
] |
def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
|
def get_valueOf_(self): return self.valueOf_
|
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
951,
67,
12,
2890,
4672,
327,
365,
18,
1132,
951,
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,
-100,
-100,
-100
] |
|
sage: q.time()
|
sage: q.time()
|
def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], '', out # whole thing else: verbose = out[:i] out = out[i+len('FACTORS:')+1:].strip() if time: w = out.split('\n') for i in range(len(w)): if 'user' in w[i]: break if i < len(w): t = w[i].strip() out = '\n'.join([w[j] for j in range(i)]) else: t = '' else: t = '' Z = sage.rings.integer.Integer v = out.split() v = list(set([Z(m) for m in v if Z(m) != n])) v.sort() return v, t, verbose
|
789f3da181b973e90eeb134c2b3ae867a96b6654 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/789f3da181b973e90eeb134c2b3ae867a96b6654/qsieve.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434,
977,
876,
434,
670,
485,
1807,
27258,
20004,
55,
21271,
5402,
290,
1493,
326,
3571,
3832,
5410,
7653,
225,
11550,
30,
666,
1493,
5338,
14490,
1392,
1427,
10247,
609,
1493,
813,
1779,
3536,
277,
273,
596,
18,
4720,
2668,
11625,
14006,
2497,
13,
309,
277,
422,
300,
21,
30,
327,
5378,
16,
10226,
596,
282,
468,
7339,
7757,
469,
30,
3988,
273,
596,
10531,
77,
65,
596,
273,
596,
63,
77,
15,
1897,
2668,
11625,
14006,
2497,
27921,
21,
30,
8009,
6406,
1435,
309,
813,
30,
341,
273,
596,
18,
4939,
2668,
64,
82,
6134,
364,
277,
316,
1048,
12,
1897,
12,
91,
3719,
30,
309,
296,
1355,
11,
316,
341,
63,
77,
14542,
898,
309,
277,
411,
562,
12,
91,
4672,
268,
273,
341,
63,
77,
8009,
6406,
1435,
596,
273,
2337,
82,
10332,
5701,
3816,
91,
63,
78,
65,
364,
525,
316,
1048,
12,
77,
13,
5717,
469,
30,
268,
273,
875,
469,
30,
268,
273,
875,
2285,
273,
272,
410,
18,
86,
899,
18,
7745,
18,
4522,
331,
273,
596,
18,
4939,
1435,
331,
273,
666,
12,
542,
3816,
62,
12,
81,
13,
364,
312,
316,
331,
309,
2285,
12,
81,
13,
480,
290,
22643,
331,
18,
3804,
1435,
327,
331,
16,
268,
16,
3988,
282,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434,
977,
876,
434,
670,
485,
1807,
27258,
20004,
55,
21271,
5402,
290,
1493,
326,
3571,
3832,
5410,
7653,
225,
11550,
30,
666,
1493,
5338,
14490,
1392,
1427,
10247,
609,
1493,
813,
1779,
3536,
277,
273,
596,
18,
4720,
2668,
11625,
14006,
2497,
13,
309,
277,
422,
300,
21,
30,
327,
5378,
16,
10226,
596,
282,
468,
7339,
7757,
469,
30,
3988,
273,
596,
10531,
77,
65,
596,
273,
596,
63,
77,
15,
1897,
2668,
11625,
14006,
2497,
27921,
21,
30,
8009,
6406,
2
] |
return fields[0]+localeconv()['decimal_point']+fields[1]
|
res = fields[0]+localeconv()['decimal_point']+fields[1]
|
def format(f,val,grouping=0): """Formats a value in the same way that the % formatting would use, but takes the current locale into account. Grouping is applied if the third parameter is true.""" result = f % val fields = string.split(result, ".") if grouping: fields[0]=_group(fields[0]) if len(fields)==2: return fields[0]+localeconv()['decimal_point']+fields[1] elif len(fields)==1: return fields[0] else: raise Error, "Too many decimal points in result string"
|
db786876b6c5ab24c1cd7427fd077545dbb72fee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/db786876b6c5ab24c1cd7427fd077545dbb72fee/locale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
353,
6754,
309,
326,
12126,
1569,
353,
638,
12123,
563,
273,
284,
738,
1244,
1466,
273,
533,
18,
4939,
12,
2088,
16,
4585,
13,
309,
12116,
30,
1466,
63,
20,
65,
33,
67,
1655,
12,
2821,
63,
20,
5717,
309,
562,
12,
2821,
13,
631,
22,
30,
400,
273,
1466,
63,
20,
3737,
3729,
17181,
90,
1435,
3292,
12586,
67,
1153,
3546,
15,
2821,
63,
21,
65,
1327,
562,
12,
2821,
13,
631,
21,
30,
327,
1466,
63,
20,
65,
469,
30,
1002,
1068,
16,
315,
10703,
4906,
6970,
3143,
316,
563,
533,
6,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
353,
6754,
309,
326,
12126,
1569,
353,
638,
12123,
563,
273,
284,
738,
1244,
1466,
273,
533,
18,
4939,
12,
2088,
16,
4585,
13,
309,
12116,
30,
1466,
63,
20,
65,
33,
67,
1655,
12,
2821,
63,
20,
5717,
309,
562,
12,
2821,
13,
631,
22,
30,
400,
273,
1466,
63,
20,
3737,
3729,
17181,
90,
1435,
3292,
12586,
67,
1153,
3546,
15,
2821,
63,
21,
65,
1327,
562,
12,
2821,
13,
631,
21,
30,
327,
1466,
63,
20,
65,
469,
30,
1002,
2
] |
path = line.split('\t')[-1] time = line.split('\t')[0] type = line.split('\t')[1] ifo = line.split('\t')[2] qscanList.append([path,time,type,ifo])
|
path_output = line.split('\t')[-1] time_output = line.split('\t')[0] type_output = line.split('\t')[1] ifo_output = line.split('\t')[2] qscanList.append([path_output,time_output,type_output,ifo_output])
|
def getPathFromCache(fileName,type,ifo=None,time=None): qscanList = [] cacheList = listFromFile(fileName) if len(cacheList) == 0: return qscanList for line in cacheList: test_line = True if not re.search(type,line.split('\t')[1]): test_line = False if ifo: if not ifo == line.split('\t')[2]: test_line = False else: pass if time: if not time == line.split('\t')[0]: test_line = False else: pass if test_line: path = line.split('\t')[-1] time = line.split('\t')[0] type = line.split('\t')[1] ifo = line.split('\t')[2] qscanList.append([path,time,type,ifo]) else: continue return qscanList
|
cf9b1c0ecf255e4ecd5c171e017afe344d76c1fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/cf9b1c0ecf255e4ecd5c171e017afe344d76c1fc/fu_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
19800,
12,
17812,
16,
723,
16,
20299,
33,
7036,
16,
957,
33,
7036,
4672,
1043,
9871,
682,
273,
5378,
1247,
682,
273,
666,
13087,
12,
17812,
13,
309,
562,
12,
2493,
682,
13,
422,
374,
30,
327,
1043,
9871,
682,
364,
980,
316,
1247,
682,
30,
1842,
67,
1369,
273,
1053,
309,
486,
283,
18,
3072,
12,
723,
16,
1369,
18,
4939,
2668,
64,
88,
6134,
63,
21,
65,
4672,
1842,
67,
1369,
273,
1083,
309,
21479,
30,
309,
486,
21479,
422,
980,
18,
4939,
2668,
64,
88,
6134,
63,
22,
14542,
1842,
67,
1369,
273,
1083,
469,
30,
1342,
309,
813,
30,
309,
486,
813,
422,
980,
18,
4939,
2668,
64,
88,
6134,
63,
20,
14542,
1842,
67,
1369,
273,
1083,
469,
30,
1342,
309,
1842,
67,
1369,
30,
589,
67,
2844,
273,
980,
18,
4939,
2668,
64,
88,
6134,
18919,
21,
65,
813,
67,
2844,
273,
980,
18,
4939,
2668,
64,
88,
6134,
63,
20,
65,
618,
67,
2844,
273,
980,
18,
4939,
2668,
64,
88,
6134,
63,
21,
65,
21479,
67,
2844,
273,
980,
18,
4939,
2668,
64,
88,
6134,
63,
22,
65,
1043,
9871,
682,
18,
6923,
3816,
803,
67,
2844,
16,
957,
67,
2844,
16,
723,
67,
2844,
16,
20299,
67,
2844,
5717,
469,
30,
1324,
327,
1043,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,
374,
30,
327,
1043,
9871,
682,
364,
980,
316,
1247,
682,
30,
1842,
67,
1369,
273,
1053,
309,
486,
283,
18,
3072,
12,
723,
16,
1369,
18,
4939,
2668,
64,
88,
6134,
63,
21,
65,
4672,
1842,
67,
1369,
273,
1083,
309,
21479,
30,
309,
486,
21479,
422,
980,
18,
4939,
2668,
64,
88,
6134,
63,
22,
14542,
1842,
67,
1369,
273,
1083,
469,
30,
1342,
309,
813,
30,
309,
486,
813,
422,
980,
18,
4939,
2668,
64,
88,
6134,
63,
20,
14542,
2
] |
if not dir: self.dir = [os.getcwd()]
|
self.dir = [os.getcwd()]+dir
|
def __init__(self, tools=[], dir=[]):
|
c6118951fa4e3b9a7e8d33b2a9b5074cdd427304 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6794/c6118951fa4e3b9a7e8d33b2a9b5074cdd427304/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8513,
22850,
6487,
1577,
33,
8526,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
12,
2890,
16,
8513,
22850,
6487,
1577,
33,
8526,
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
] |
if type(info[key]) is unicode:
|
if isinstance(info[key], str):
|
def get_info(self, encoding, errors): """Return the TarInfo's attributes as a dictionary. """ info = { "name": normpath(self.name), "mode": self.mode & 07777, "uid": self.uid, "gid": self.gid, "size": self.size, "mtime": self.mtime, "chksum": self.chksum, "type": self.type, "linkname": normpath(self.linkname) if self.linkname else "", "uname": self.uname, "gname": self.gname, "devmajor": self.devmajor, "devminor": self.devminor }
|
bac5eebcc791669601dcaf151d7a3f96c89c4133 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/bac5eebcc791669601dcaf151d7a3f96c89c4133/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
16,
2688,
16,
1334,
4672,
3536,
990,
326,
20334,
966,
1807,
1677,
487,
279,
3880,
18,
3536,
1123,
273,
288,
315,
529,
6877,
377,
20446,
12,
2890,
18,
529,
3631,
315,
3188,
6877,
377,
365,
18,
3188,
473,
374,
4700,
4700,
16,
315,
1911,
6877,
1377,
365,
18,
1911,
16,
315,
15780,
6877,
1377,
365,
18,
15780,
16,
315,
1467,
6877,
377,
365,
18,
1467,
16,
315,
10838,
6877,
565,
365,
18,
10838,
16,
315,
27038,
1364,
6877,
282,
365,
18,
27038,
1364,
16,
315,
723,
6877,
377,
365,
18,
723,
16,
315,
1232,
529,
6877,
20446,
12,
2890,
18,
1232,
529,
13,
309,
365,
18,
1232,
529,
469,
23453,
315,
318,
339,
6877,
565,
365,
18,
318,
339,
16,
315,
75,
529,
6877,
565,
365,
18,
75,
529,
16,
315,
5206,
14019,
6877,
365,
18,
5206,
14019,
16,
315,
5206,
17364,
6877,
365,
18,
5206,
17364,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
16,
2688,
16,
1334,
4672,
3536,
990,
326,
20334,
966,
1807,
1677,
487,
279,
3880,
18,
3536,
1123,
273,
288,
315,
529,
6877,
377,
20446,
12,
2890,
18,
529,
3631,
315,
3188,
6877,
377,
365,
18,
3188,
473,
374,
4700,
4700,
16,
315,
1911,
6877,
1377,
365,
18,
1911,
16,
315,
15780,
6877,
1377,
365,
18,
15780,
16,
315,
1467,
6877,
377,
365,
18,
1467,
16,
315,
10838,
6877,
565,
365,
18,
10838,
16,
315,
27038,
1364,
6877,
282,
365,
18,
27038,
1364,
16,
315,
723,
6877,
377,
365,
18,
723,
16,
315,
1232,
529,
6877,
20446,
12,
2890,
18,
1232,
529,
13,
309,
365,
18,
1232,
529,
469,
23453,
315,
318,
339,
2
] |
class FdfParser :
|
class FdfParser:
|
def __init__(self, filename): try: fsock = open(filename, "rb", 0) try: self.FileLinesList = [] self.FileLinesList = fsock.readlines() finally: fsock.close()
|
2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
4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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
4672,
775,
30,
2662,
975,
273,
1696,
12,
3459,
16,
315,
6731,
3113,
374,
13,
775,
30,
365,
18,
812,
5763,
682,
273,
5378,
365,
18,
812,
5763,
682,
273,
2662,
975,
18,
896,
3548,
1435,
3095,
30,
2662,
975,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
a = splitnewlines(a, keepends=True)
|
a = splitnewlines(a)
|
def unidiff(a, ad, b, bd, fn, r=None, text=False, showfunc=False, ignorews=False): if not a and not b: return "" epoch = util.datestr((0, 0)) if not text and (util.binary(a) or util.binary(b)): l = ['Binary file %s has changed\n' % fn] elif not a: b = splitnewlines(b, keepends=True) if a is None: l1 = "--- %s\t%s\n" % ("/dev/null", epoch) else: l1 = "--- %s\t%s\n" % ("a/" + fn, ad) l2 = "+++ %s\t%s\n" % ("b/" + fn, bd) l3 = "@@ -0,0 +1,%d @@\n" % len(b) l = [l1, l2, l3] + ["+" + e for e in b] elif not b: a = splitnewlines(a, keepends=True) l1 = "--- %s\t%s\n" % ("a/" + fn, ad) if b is None: l2 = "+++ %s\t%s\n" % ("/dev/null", epoch) else: l2 = "+++ %s\t%s\n" % ("b/" + fn, bd) l3 = "@@ -1,%d +0,0 @@\n" % len(a) l = [l1, l2, l3] + ["-" + e for e in a] else: al = splitnewlines(a, keepends=True) bl = splitnewlines(b, keepends=True) l = list(bunidiff(a, b, al, bl, "a/" + fn, "b/" + fn, showfunc=showfunc, ignorews=ignorews)) if not l: return "" # difflib uses a space, rather than a tab l[0] = "%s\t%s\n" % (l[0][:-2], ad) l[1] = "%s\t%s\n" % (l[1][:-2], bd) for ln in xrange(len(l)): if l[ln][-1] != '\n': l[ln] += "\n\ No newline at end of file\n" if r: l.insert(0, "diff %s %s\n" % (' '.join(["-r %s" % rev for rev in r]), fn)) return "".join(l)
|
e99d580fc3edff0d8d094225a948cd03287d7622 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/e99d580fc3edff0d8d094225a948cd03287d7622/mdiff.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
350,
3048,
12,
69,
16,
1261,
16,
324,
16,
13837,
16,
2295,
16,
436,
33,
7036,
16,
977,
33,
8381,
16,
2405,
644,
33,
8381,
16,
2305,
4749,
33,
8381,
4672,
225,
309,
486,
279,
471,
486,
324,
30,
327,
1408,
7632,
273,
1709,
18,
9683,
313,
12443,
20,
16,
374,
3719,
225,
309,
486,
977,
471,
261,
1367,
18,
8578,
12,
69,
13,
578,
1709,
18,
8578,
12,
70,
3719,
30,
328,
273,
10228,
5905,
585,
738,
87,
711,
3550,
64,
82,
11,
738,
2295,
65,
1327,
486,
279,
30,
324,
273,
1416,
31276,
12,
70,
16,
3455,
5839,
33,
5510,
13,
309,
279,
353,
599,
30,
328,
21,
273,
5238,
17,
738,
87,
64,
88,
9,
87,
64,
82,
6,
738,
7566,
19,
5206,
19,
2011,
3113,
7632,
13,
469,
30,
328,
21,
273,
5238,
17,
738,
87,
64,
88,
9,
87,
64,
82,
6,
738,
7566,
69,
4898,
397,
2295,
16,
1261,
13,
328,
22,
273,
315,
9904,
15,
738,
87,
64,
88,
9,
87,
64,
82,
6,
738,
7566,
70,
4898,
397,
2295,
16,
13837,
13,
328,
23,
273,
8787,
36,
300,
20,
16,
20,
397,
21,
15529,
72,
22175,
64,
82,
6,
738,
562,
12,
70,
13,
328,
273,
306,
80,
21,
16,
328,
22,
16,
328,
23,
65,
397,
8247,
9078,
397,
425,
364,
425,
316,
324,
65,
1327,
486,
324,
30,
279,
273,
1416,
31276,
12,
69,
13,
328,
21,
273,
5238,
17,
738,
87,
64,
88,
9,
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,
640,
350,
3048,
12,
69,
16,
1261,
16,
324,
16,
13837,
16,
2295,
16,
436,
33,
7036,
16,
977,
33,
8381,
16,
2405,
644,
33,
8381,
16,
2305,
4749,
33,
8381,
4672,
225,
309,
486,
279,
471,
486,
324,
30,
327,
1408,
7632,
273,
1709,
18,
9683,
313,
12443,
20,
16,
374,
3719,
225,
309,
486,
977,
471,
261,
1367,
18,
8578,
12,
69,
13,
578,
1709,
18,
8578,
12,
70,
3719,
30,
328,
273,
10228,
5905,
585,
738,
87,
711,
3550,
64,
82,
11,
738,
2295,
65,
1327,
486,
279,
30,
324,
273,
1416,
31276,
12,
70,
16,
3455,
5839,
33,
5510,
13,
309,
279,
353,
599,
30,
328,
21,
273,
5238,
17,
738,
87,
64,
88,
2
] |
memcache.add('show_user:%s' % email, ret, cache_timeout)
|
ret = ('<a href="/user/%(key)s" onMouseOver="M_showUserInfoPopup(this)">' '%(key)s</a>' % {'key': cgi.escape(user_key)}) memcache.add('show_user:%s' % email, ret, 300)
|
def show_user(email, arg=None, autoescape=None, memcache_results=None): """Render a link to the user's dashboard, with text being the nickname.""" if isinstance(email, users.User): email = email.email() if not arg: user = users.get_current_user() if user is not None and email == user.email(): return 'me' ret = None if memcache_results is not None: if email in memcache_results: ret = memcache_results[email] else: logging.debug('memcache miss for %r', email) if ret is None: nick = nickname(email, True) account = models.Account.get_account_for_email(email) if account: if len(models.Account.get_accounts_for_nickname(account.nickname)) > 1: # The nickname is not unique, fallback to email as key. user_key = email else: user_key = nick # Cache for a longer time, this is likely to remain valid. cache_timeout = 300 else: user_key = nick # Cache likely to become invalid due to user sign up. cache_timeout = 30 memcache.add('show_user:%s' % email, ret, cache_timeout) # populate the dict with the results, so same user in the list later # will have a memcache "hit" on "read". if memcache_results is not None: memcache_results[email] = ret ret = ('<a href="/user/%(key)s" onMouseOver="M_showUserInfoPopup(this)">' '%(key)s</a>' % {'key': cgi.escape(user_key)}) return django.utils.safestring.mark_safe(ret)
|
19b3d737ff7c4d7ae891275966d796d7506780f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/19b3d737ff7c4d7ae891275966d796d7506780f7/library.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1355,
12,
3652,
16,
1501,
33,
7036,
16,
3656,
6939,
33,
7036,
16,
20549,
67,
4717,
33,
7036,
4672,
3536,
3420,
279,
1692,
358,
326,
729,
1807,
11825,
16,
598,
977,
3832,
326,
19570,
12123,
309,
1549,
12,
3652,
16,
3677,
18,
1299,
4672,
2699,
273,
2699,
18,
3652,
1435,
309,
486,
1501,
30,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
309,
729,
353,
486,
599,
471,
2699,
422,
729,
18,
3652,
13332,
327,
296,
3501,
11,
225,
325,
273,
599,
309,
20549,
67,
4717,
353,
486,
599,
30,
309,
2699,
316,
20549,
67,
4717,
30,
325,
273,
20549,
67,
4717,
63,
3652,
65,
469,
30,
2907,
18,
4148,
2668,
3917,
2493,
12543,
364,
738,
86,
2187,
2699,
13,
225,
309,
325,
353,
599,
30,
10909,
273,
19570,
12,
3652,
16,
1053,
13,
2236,
273,
3679,
18,
3032,
18,
588,
67,
4631,
67,
1884,
67,
3652,
12,
3652,
13,
309,
2236,
30,
309,
562,
12,
7665,
18,
3032,
18,
588,
67,
13739,
67,
1884,
67,
17091,
529,
12,
4631,
18,
17091,
529,
3719,
405,
404,
30,
468,
1021,
19570,
353,
486,
3089,
16,
5922,
358,
2699,
487,
498,
18,
729,
67,
856,
273,
2699,
469,
30,
729,
67,
856,
273,
10909,
468,
4379,
364,
279,
7144,
813,
16,
333,
353,
10374,
358,
7232,
923,
18,
1247,
67,
4538,
273,
11631,
469,
30,
729,
67,
856,
273,
10909,
468,
4379,
10374,
358,
12561,
2057,
6541,
358,
729,
1573,
731,
18,
1247,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1355,
12,
3652,
16,
1501,
33,
7036,
16,
3656,
6939,
33,
7036,
16,
20549,
67,
4717,
33,
7036,
4672,
3536,
3420,
279,
1692,
358,
326,
729,
1807,
11825,
16,
598,
977,
3832,
326,
19570,
12123,
309,
1549,
12,
3652,
16,
3677,
18,
1299,
4672,
2699,
273,
2699,
18,
3652,
1435,
309,
486,
1501,
30,
729,
273,
3677,
18,
588,
67,
2972,
67,
1355,
1435,
309,
729,
353,
486,
599,
471,
2699,
422,
729,
18,
3652,
13332,
327,
296,
3501,
11,
225,
325,
273,
599,
309,
20549,
67,
4717,
353,
486,
599,
30,
309,
2699,
316,
20549,
67,
4717,
30,
325,
273,
20549,
67,
4717,
63,
3652,
65,
469,
30,
2907,
18,
4148,
2668,
3917,
2493,
12543,
2
] |
return obj.find(cr,uid)
|
return obj.find(cr,uid,exception=False)
|
def _calc_context(key,obj): if key==0: return obj.find(cr,uid) else: obj_key=obj.browse(cr,uid,obj.find(cr,uid)) if isinstance(obj_key,list): obj_key=obj_key[0] key_ids=obj.search(cr,uid,[('date_stop','<',obj_key.date_start)]) if len(key_ids)<abs(key): return False return key_ids[key]
|
e5ca26aa41487d8878e798f2fd30f8421c9802bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e5ca26aa41487d8878e798f2fd30f8421c9802bc/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
67,
2472,
12,
856,
16,
2603,
4672,
309,
498,
631,
20,
30,
327,
1081,
18,
4720,
12,
3353,
16,
1911,
16,
4064,
33,
8381,
13,
469,
30,
1081,
67,
856,
33,
2603,
18,
25731,
12,
3353,
16,
1911,
16,
2603,
18,
4720,
12,
3353,
16,
1911,
3719,
309,
1549,
12,
2603,
67,
856,
16,
1098,
4672,
1081,
67,
856,
33,
2603,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
67,
2472,
12,
856,
16,
2603,
4672,
309,
498,
631,
20,
30,
327,
1081,
18,
4720,
12,
3353,
16,
1911,
16,
4064,
33,
8381,
13,
469,
30,
1081,
67,
856,
33,
2603,
18,
25731,
12,
3353,
16,
1911,
16,
2603,
18,
4720,
12,
3353,
16,
1911,
3719,
309,
1549,
12,
2603,
67,
856,
16,
1098,
4672,
1081,
67,
856,
33,
2603,
67,
856,
63,
20,
65,
498,
67,
2232,
33,
2603,
18,
3072,
12,
3353,
16,
1911,
16,
63,
2668,
712,
67,
5681,
17023,
32,
2187,
2603,
67,
856,
18,
712,
67,
1937,
13,
5717,
309,
562,
12,
856,
67,
2232,
13,
32,
5113,
12,
856,
4672,
327,
1083,
327,
498,
67,
2232,
63,
856,
65,
2
] |
if self.type() == 'module':
|
elif self.type() == 'module':
|
def _sage_(self, R=None): """ Coerces self to SAGE. """ if self.type()=='poly': return self.sage_poly(R) if self.type() == 'module': return self.sage_matrix(R,sparse=True) if self.type() == 'matrix': return self.sage_matrix(R,sparse=False) if self.type() == 'list': return [ f._sage_(R) for f in self ]
|
d4e7b9609291ed79acc2fd37bcca0aec4fe0cc71 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d4e7b9609291ed79acc2fd37bcca0aec4fe0cc71/singular.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
2833,
18,
3536,
309,
365,
18,
723,
1435,
18920,
16353,
4278,
327,
365,
18,
87,
410,
67,
16353,
12,
54,
13,
1327,
365,
18,
723,
1435,
422,
296,
2978,
4278,
327,
365,
18,
87,
410,
67,
5667,
12,
54,
16,
17472,
33,
5510,
13,
309,
365,
18,
723,
1435,
422,
296,
5667,
4278,
327,
365,
18,
87,
410,
67,
5667,
12,
54,
16,
17472,
33,
8381,
13,
309,
365,
18,
723,
1435,
422,
296,
1098,
4278,
327,
306,
284,
6315,
87,
410,
67,
12,
54,
13,
364,
284,
316,
365,
308,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
2833,
18,
3536,
309,
365,
18,
723,
1435,
18920,
16353,
4278,
327,
365,
18,
87,
410,
67,
16353,
12,
54,
13,
1327,
365,
18,
723,
1435,
422,
296,
2978,
4278,
327,
365,
18,
87,
410,
67,
5667,
12,
54,
16,
17472,
33,
5510,
13,
309,
365,
18,
723,
1435,
422,
296,
5667,
4278,
327,
365,
18,
87,
410,
67,
5667,
12,
54,
16,
17472,
33,
8381,
13,
309,
365,
18,
723,
1435,
422,
296,
1098,
4278,
327,
306,
284,
6315,
87,
410,
67,
12,
54,
13,
364,
284,
316,
365,
308,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
session = request.get('SESSION', None)
|
session = request.get('SESSION', {})
|
def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) # use self.rootpath or rootpath in request or session to change browser root self.rootpath = request.get('rootpath', self.rootpath) # use self.browse=False (or browse=False in request) to disallow browsing globally self.browse = request.get('browse', self.browse) self.showbreadcrumbs = request.get('showbreadcrumbs', self.showbreadcrumbs) if not self.browse : self.showbreadcrumbs = False self.setScopeInfos(context, request, self.showbreadcrumbs) # use self.multiselect = False (or multiselect = False in request) # when multiselect is False window is closed on insert self.multiselect = request.get('multiselect', self.multiselect) # to force close on insert even in multiselect mode self.forcecloseoninsert = request.get('forcecloseoninsert', self.forcecloseoninsert) if not self.multiselect : self.forcecloseoninsert = 1 # use self.types (or types in request) to specify portal_types in catalog request self.types = request.get('types', self.types) # use self.typeupload (or typeupload in request) to specify portal_type for upload self.typeupload = request.get('typeupload', self.typeupload) # use self.typefolder (or typefolder in request) to specify portal_type used to create folder self.typefolder = request.get('typefolder', self.typefolder) # use self.typeview (or typeview in request) to specify typeview ('file' or 'image' for now, 'selection' in future) self.typeview = request.get('typeview', self.typeview) if self.typeview == 'image' : self.typecss = 'float'
|
bcf41b5563214235a1cdabba6fb6e60243487091 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/bcf41b5563214235a1cdabba6fb6e60243487091/finder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
2187,
2618,
13,
468,
999,
365,
18,
3085,
803,
578,
1365,
803,
316,
590,
578,
1339,
358,
2549,
4748,
1365,
365,
18,
3085,
803,
273,
590,
18,
588,
2668,
3085,
803,
2187,
365,
18,
3085,
803,
13,
468,
999,
365,
18,
25731,
33,
8381,
261,
280,
21670,
33,
8381,
316,
590,
13,
358,
29176,
324,
492,
2470,
25654,
365,
18,
25731,
273,
590,
18,
588,
2668,
25731,
2187,
365,
18,
25731,
13,
365,
18,
4500,
31603,
273,
225,
590,
18,
588,
2668,
4500,
31603,
2187,
365,
18,
4500,
31603,
13,
309,
486,
365,
18,
25731,
294,
365,
18,
4500,
31603,
273,
1083,
225,
365,
18,
542,
3876,
7655,
12,
2472,
16,
590,
16,
365,
18,
4500,
31603,
13,
225,
468,
999,
365,
18,
23978,
13759,
273,
1083,
261,
280,
22945,
13759,
273,
1083,
316,
590,
13,
468,
1347,
22945,
13759,
353,
1083,
2742,
353,
4375,
603,
2243,
365,
18,
23978,
13759,
273,
590,
18,
588,
2668,
23978,
13759,
2187,
365,
18,
23978,
13759,
13,
468,
358,
2944,
1746,
603,
2243,
5456,
316,
22945,
13759,
1965,
365,
18,
5734,
4412,
265,
6387,
273,
590,
18,
588,
2668,
5734,
4412,
265,
6387,
2187,
365,
18,
5734,
4412,
265,
6387,
13,
225,
309,
486,
365,
18,
23978,
13759,
294,
365,
18,
5734,
4412,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
2187,
2618,
13,
468,
999,
365,
18,
3085,
803,
578,
1365,
803,
316,
590,
578,
1339,
358,
2549,
4748,
1365,
365,
18,
3085,
803,
273,
590,
18,
588,
2668,
3085,
803,
2187,
365,
18,
3085,
803,
13,
468,
999,
365,
18,
25731,
33,
8381,
261,
280,
21670,
33,
8381,
316,
590,
13,
358,
29176,
324,
492,
2470,
25654,
365,
18,
25731,
273,
590,
18,
588,
2668,
25731,
2187,
365,
18,
25731,
13,
365,
18,
4500,
31603,
273,
225,
590,
18,
588,
2668,
2
] |
def show(self):
|
def show(self, color=None): if not self.__master: from Tkinter import Tk self.__master = Tk()
|
def show(self): if not self.__pw: self.__pw, self.__sb = \ Main.build(master = self.__master, initialcolor = self.__initialcolor, initfile = self.__initfile, ignore = self.__ignore) Main.run(self.__pw, self.__sb) rgbtuple = self.__sb.current_rgb() self.__pw.withdraw() # check to see if the cancel button was pushed if self.__sb.canceled_p(): return None, None colordb = self.__sb.colordb() # try to return the color name from the database if there is an exact # match, otherwise use the "#rrggbb" spec. TBD: Forget about color # aliases for now, maybe later we should return these too. name = None if not self.__wantspec: try: name = colordb.find_byrgb(rgbtuple)[0] except ColorDB.BadColor: pass if name is None: name = ColorDB.triplet_to_rrggbb(rgbtuple) return rgbtuple, name
|
ee22b4b2157dec6c104cfea17f304073fb74fd5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ee22b4b2157dec6c104cfea17f304073fb74fd5a/pyColorChooser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
2036,
33,
7036,
4672,
309,
486,
365,
16186,
7525,
30,
628,
399,
79,
2761,
1930,
399,
79,
365,
16186,
7525,
273,
399,
79,
1435,
309,
486,
365,
16186,
14921,
30,
365,
16186,
14921,
16,
365,
16186,
18366,
273,
521,
12740,
18,
3510,
12,
7525,
273,
365,
16186,
7525,
16,
2172,
3266,
273,
365,
16186,
6769,
3266,
16,
1208,
768,
273,
365,
16186,
2738,
768,
16,
2305,
273,
365,
16186,
6185,
13,
12740,
18,
2681,
12,
2890,
16186,
14921,
16,
365,
16186,
18366,
13,
6917,
8052,
273,
365,
16186,
18366,
18,
2972,
67,
10948,
1435,
365,
16186,
14921,
18,
1918,
9446,
1435,
468,
866,
358,
2621,
309,
326,
3755,
3568,
1703,
18543,
309,
365,
16186,
18366,
18,
10996,
329,
67,
84,
13332,
327,
599,
16,
599,
645,
517,
70,
273,
365,
16186,
18366,
18,
1293,
517,
70,
1435,
468,
775,
358,
327,
326,
2036,
508,
628,
326,
2063,
309,
1915,
353,
392,
5565,
468,
845,
16,
3541,
999,
326,
6619,
523,
75,
4490,
70,
6,
857,
18,
225,
399,
18096,
30,
2457,
588,
2973,
2036,
468,
6900,
364,
2037,
16,
6944,
5137,
732,
1410,
327,
4259,
4885,
18,
508,
273,
599,
309,
486,
365,
16186,
17369,
2793,
30,
775,
30,
508,
273,
645,
517,
70,
18,
4720,
67,
1637,
10948,
12,
10948,
8052,
25146,
20,
65,
1335,
5563,
2290,
18,
6434,
2957,
30,
1342,
309,
508,
353,
599,
30,
508,
273,
5563,
2290,
18,
16857,
1469,
67,
869,
67,
523,
75,
4490,
70,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
2036,
33,
7036,
4672,
309,
486,
365,
16186,
7525,
30,
628,
399,
79,
2761,
1930,
399,
79,
365,
16186,
7525,
273,
399,
79,
1435,
309,
486,
365,
16186,
14921,
30,
365,
16186,
14921,
16,
365,
16186,
18366,
273,
521,
12740,
18,
3510,
12,
7525,
273,
365,
16186,
7525,
16,
2172,
3266,
273,
365,
16186,
6769,
3266,
16,
1208,
768,
273,
365,
16186,
2738,
768,
16,
2305,
273,
365,
16186,
6185,
13,
12740,
18,
2681,
12,
2890,
16186,
14921,
16,
365,
16186,
18366,
13,
6917,
8052,
273,
365,
16186,
18366,
18,
2972,
67,
10948,
1435,
365,
16186,
14921,
18,
1918,
9446,
1435,
468,
866,
358,
2621,
309,
326,
3755,
3568,
1703,
18543,
309,
365,
16186,
2
] |
self.call(["/sbin/restorecon", "-l", "-v", "-r", "-F", "-e", "/proc", "-e", "/sys", "-e", "/dev", "-e", "/selinux", "/"])
|
self.call(["/sbin/restorecon", "-l", "-r", "-F", "-e", "/proc", "-e", "/sys", "-e", "/dev", "-e", "/selinux", "/"])
|
def relabel(self, ksselinux): # touch some files which get unhappy if they're not labeled correctly for fn in ("/etc/modprobe.conf", "/etc/resolv.conf"): path = self.path(fn) f = file(path, "w+") os.chmod(path, 0644) f.close()
|
e08034c7738a22edaddbdddf3f8d63991cafb2b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9342/e08034c7738a22edaddbdddf3f8d63991cafb2b6/kickstart.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1279,
873,
12,
2890,
16,
417,
1049,
292,
9534,
4672,
468,
6920,
2690,
1390,
1492,
336,
640,
76,
438,
2074,
309,
2898,
4565,
486,
23585,
8783,
364,
2295,
316,
7566,
19,
14175,
19,
1711,
27230,
18,
3923,
3113,
2206,
14175,
19,
7818,
90,
18,
3923,
6,
4672,
589,
273,
365,
18,
803,
12,
4293,
13,
284,
273,
585,
12,
803,
16,
315,
91,
15,
7923,
1140,
18,
343,
1711,
12,
803,
16,
29611,
13,
284,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
1279,
873,
12,
2890,
16,
417,
1049,
292,
9534,
4672,
468,
6920,
2690,
1390,
1492,
336,
640,
76,
438,
2074,
309,
2898,
4565,
486,
23585,
8783,
364,
2295,
316,
7566,
19,
14175,
19,
1711,
27230,
18,
3923,
3113,
2206,
14175,
19,
7818,
90,
18,
3923,
6,
4672,
589,
273,
365,
18,
803,
12,
4293,
13,
284,
273,
585,
12,
803,
16,
315,
91,
15,
7923,
1140,
18,
343,
1711,
12,
803,
16,
29611,
13,
284,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
], CONTEXT)
|
], 0, None, None, CONTEXT)
|
def test0030float(self): ''' Test Float. ''' float1_id = self.float.create({ 'float': 1.1, }, CONTEXT) self.assert_(float1_id)
|
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
5082,
5659,
12,
2890,
4672,
9163,
7766,
5450,
18,
9163,
1431,
21,
67,
350,
273,
365,
18,
5659,
18,
2640,
12590,
296,
5659,
4278,
404,
18,
21,
16,
19879,
13862,
13,
365,
18,
11231,
67,
12,
5659,
21,
67,
350,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
5082,
5659,
12,
2890,
4672,
9163,
7766,
5450,
18,
9163,
1431,
21,
67,
350,
273,
365,
18,
5659,
18,
2640,
12590,
296,
5659,
4278,
404,
18,
21,
16,
19879,
13862,
13,
365,
18,
11231,
67,
12,
5659,
21,
67,
350,
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
] |
filename = open_file()
|
filename = save_file()
|
def _new_data_file_event_fired(self): filename = open_file() if filename != '': try: f=open(filename, 'w') self.data_file = filename self.all_data=DATA_STRING f.close() except: pass
|
e900edb0d9e70ce8b13711213f6436bcfca62735 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1832/e900edb0d9e70ce8b13711213f6436bcfca62735/yasso.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
892,
67,
768,
67,
2575,
67,
74,
2921,
12,
2890,
4672,
1544,
273,
1923,
67,
768,
1435,
309,
1544,
480,
875,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
892,
67,
768,
67,
2575,
67,
74,
2921,
12,
2890,
4672,
1544,
273,
1923,
67,
768,
1435,
309,
1544,
480,
875,
30,
775,
30,
284,
33,
3190,
12,
3459,
16,
296,
91,
6134,
365,
18,
892,
67,
768,
273,
1544,
365,
18,
454,
67,
892,
33,
4883,
67,
5804,
284,
18,
4412,
1435,
1335,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pass
|
try: return self.stream.write(s.encode('utf8')) except: pass
|
def log(self,message): s=u'\r\n'+self.getPrefix()+DamnUnicode(message.strip()) try: print s, except: try: print s.encode('utf8'), except: print 'Cannot echo log string; invalid characters and/or non-tolerant output?' if self.stream is not None: try: return self.stream.write(s) except: pass
|
0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
2150,
4672,
272,
33,
89,
8314,
86,
64,
82,
11,
15,
2890,
18,
588,
2244,
1435,
15,
40,
301,
82,
16532,
12,
2150,
18,
6406,
10756,
775,
30,
1172,
272,
16,
1335,
30,
775,
30,
1172,
272,
18,
3015,
2668,
3158,
28,
19899,
1335,
30,
1172,
296,
4515,
3376,
613,
533,
31,
2057,
3949,
471,
19,
280,
1661,
17,
3490,
264,
970,
876,
4899,
309,
365,
18,
3256,
353,
486,
599,
30,
775,
30,
327,
365,
18,
3256,
18,
2626,
12,
87,
13,
1335,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
2150,
4672,
272,
33,
89,
8314,
86,
64,
82,
11,
15,
2890,
18,
588,
2244,
1435,
15,
40,
301,
82,
16532,
12,
2150,
18,
6406,
10756,
775,
30,
1172,
272,
16,
1335,
30,
775,
30,
1172,
272,
18,
3015,
2668,
3158,
28,
19899,
1335,
30,
1172,
296,
4515,
3376,
613,
533,
31,
2057,
3949,
471,
19,
280,
1661,
17,
3490,
264,
970,
876,
4899,
309,
365,
18,
3256,
353,
486,
599,
30,
775,
30,
327,
365,
18,
3256,
18,
2626,
12,
87,
13,
1335,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
@type {param}: L{Param}
|
@type param: L{Param}
|
def remove_shared_descr_param(self, param): """ Remove a parameter from the list of C{Param}s that share the description given by this parameter. @type {param}: L{Param} @see: L{shared_descr_params} """ self._shared_descr_params.remove(param) param._listed_under = None
|
51eb4ba3b8382947fd5b6d33919cb02ce1327f88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/51eb4ba3b8382947fd5b6d33919cb02ce1327f88/objdoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11574,
67,
28313,
67,
891,
12,
2890,
16,
579,
4672,
3536,
3581,
279,
1569,
628,
326,
666,
434,
385,
95,
786,
97,
87,
716,
7433,
326,
2477,
864,
635,
333,
1569,
18,
632,
723,
579,
30,
511,
95,
786,
97,
632,
5946,
30,
511,
95,
11574,
67,
28313,
67,
2010,
97,
3536,
365,
6315,
11574,
67,
28313,
67,
2010,
18,
4479,
12,
891,
13,
579,
6315,
18647,
67,
9341,
273,
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,
0,
0,
0,
0,
0,
0,
0,
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,
1569,
18,
632,
723,
579,
30,
511,
95,
786,
97,
632,
5946,
30,
511,
95,
11574,
67,
28313,
67,
2010,
97,
3536,
365,
6315,
11574,
67,
28313,
67,
2010,
18,
4479,
12,
891,
13,
579,
6315,
18647,
67,
9341,
273,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
domain="[('type', '!=', 'view'), ('company', '=', company)]",
|
domain="[('type.code', '!=', 'view'), ('company', '=', company)]",
|
def __init__(self): super(Column, self).__init__() self._order.insert(0, ('sequence', 'ASC'))
|
f654c6ff36c2fee5d645f7e7bd89af9bdfbbbd53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/f654c6ff36c2fee5d645f7e7bd89af9bdfbbbd53/journal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
1494,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
1019,
18,
6387,
12,
20,
16,
7707,
6178,
2187,
296,
8633,
26112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
1494,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
1019,
18,
6387,
12,
20,
16,
7707,
6178,
2187,
296,
8633,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (v.value not in val_set and
|
if (v.value not in (None, UNKNOWN) and v.value not in val_set and
|
def contained_valdocs(*root): "Does not include imports" val_queue = list(root) val_set = Set(root) while val_queue: val_doc = val_queue.pop() val_set.add(val_doc) val_queue.extend([v.value for v in val_doc.vardoc_links() if (v.value not in val_set and v.is_imported != True)]) return val_set
|
4619052b1d29098e6bf58e8d04232bb5ce28f306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/4619052b1d29098e6bf58e8d04232bb5ce28f306/apidoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
1125,
8532,
30857,
3085,
4672,
315,
10154,
486,
2341,
10095,
6,
1244,
67,
4000,
273,
666,
12,
3085,
13,
1244,
67,
542,
273,
1000,
12,
3085,
13,
1323,
1244,
67,
4000,
30,
1244,
67,
2434,
273,
1244,
67,
4000,
18,
5120,
1435,
1244,
67,
542,
18,
1289,
12,
1125,
67,
2434,
13,
1244,
67,
4000,
18,
14313,
3816,
90,
18,
1132,
364,
331,
316,
1244,
67,
2434,
18,
90,
1060,
504,
67,
7135,
1435,
309,
261,
90,
18,
1132,
486,
316,
261,
7036,
16,
13598,
13,
471,
331,
18,
1132,
486,
316,
1244,
67,
542,
471,
331,
18,
291,
67,
29266,
480,
1053,
13,
5717,
327,
1244,
67,
542,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
1125,
8532,
30857,
3085,
4672,
315,
10154,
486,
2341,
10095,
6,
1244,
67,
4000,
273,
666,
12,
3085,
13,
1244,
67,
542,
273,
1000,
12,
3085,
13,
1323,
1244,
67,
4000,
30,
1244,
67,
2434,
273,
1244,
67,
4000,
18,
5120,
1435,
1244,
67,
542,
18,
1289,
12,
1125,
67,
2434,
13,
1244,
67,
4000,
18,
14313,
3816,
90,
18,
1132,
364,
331,
316,
1244,
67,
2434,
18,
90,
1060,
504,
67,
7135,
1435,
309,
261,
90,
18,
1132,
486,
316,
261,
7036,
16,
13598,
13,
471,
331,
18,
1132,
486,
316,
1244,
67,
542,
471,
331,
18,
291,
67,
29266,
480,
1053,
13,
5717,
327,
1244,
67,
542,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
TargetAdd('p3dpython.exe', input='p3dpython_p3dpython_composite1.obj') TargetAdd('p3dpython.exe', input='p3dpython_p3dPythonMain.obj') TargetAdd('p3dpython.exe', input=COMMON_PANDA_LIBS) TargetAdd('p3dpython.exe', opts=['PYTHON', 'TINYXML', 'WINUSER'])
|
TargetAdd('p3dpythonw.exe', input='p3dpython_p3dpython_composite1.obj') TargetAdd('p3dpythonw.exe', input='p3dpython_p3dPythonMain.obj') TargetAdd('p3dpythonw.exe', input=COMMON_PANDA_LIBS) TargetAdd('p3dpythonw.exe', opts=['PYTHON', 'TINYXML', 'WINUSER'])
|
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
|
6135b2910a6aadb89e843456eae6dda0ebc8b353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/6135b2910a6aadb89e843456eae6dda0ebc8b353/makepanda.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
True returns a dictionary keyed by node labels
|
True returns a dictionary keyed by vertex labels
|
def cliques_number_of(self, nodes=None, cliques=None, with_labels=False): """ Returns a list of the number of maximal cliques containing each node. (Returns a single value if only one input node). Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. (See examples below). INPUT: -- nodes - the nodes to inspect (default is entire graph) -- with_labels - (boolean) default False returns list as above True returns a dictionary keyed by node labels -- cliques - list of cliques (if already computed) EXAMPLES: sage: C = Graph('DJ{') sage: C.cliques_number_of() [1, 1, 1, 1, 2] sage: E = C.cliques() sage: E [[4, 1, 2, 3], [4, 0]] sage: C.cliques_number_of(cliques=E) [1, 1, 1, 1, 2] sage: F = graphs.Grid2dGraph(2,3) sage: F.cliques_number_of(with_labels=True) {(0, 1): 3, (1, 2): 2, (0, 0): 2, (1, 1): 3, (1, 0): 2, (0, 2): 2} sage: F.cliques_number_of(nodes=[(0, 1), (1, 2)]) [3, 2] sage: D = DiGraph({0:[1,2,3], 1:[2], 3:[0,1]}) sage.: D.show(figsize=[2,2]) sage: D.cliques_number_of() Traceback (most recent call last): ... TypeError: Function defined for undirected graphs only. See documentation. sage: D = D.to_undirected() sage.: D.show(figsize=[2,2]) sage: D.cliques_number_of() [2, 2, 1, 1] """ if (self.is_directed()): raise TypeError('Function defined for undirected graphs only. See documentation.') else: import networkx.cliques return networkx.cliques.number_of_cliques(self._nxg, nodes, cliques, with_labels)
|
a520fa15cff86fbbd1335f8b6f9d36203c74d574 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a520fa15cff86fbbd1335f8b6f9d36203c74d574/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
2696,
67,
792,
12,
2890,
16,
2199,
33,
7036,
16,
4942,
29896,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
3536,
2860,
279,
666,
434,
326,
1300,
434,
943,
2840,
4942,
29896,
4191,
1517,
756,
18,
225,
261,
1356,
279,
2202,
460,
309,
1338,
1245,
810,
756,
2934,
225,
15212,
1338,
8249,
364,
640,
26830,
19422,
18,
225,
2672,
358,
67,
1074,
867,
329,
358,
1765,
279,
3097,
1483,
358,
392,
640,
26830,
2667,
18,
225,
261,
9704,
10991,
5712,
2934,
225,
12943,
30,
1493,
2199,
300,
326,
2199,
358,
5334,
261,
1886,
353,
7278,
2667,
13,
1493,
598,
67,
5336,
300,
261,
6494,
13,
805,
1083,
1135,
666,
487,
5721,
1053,
1135,
279,
3880,
17408,
635,
5253,
3249,
1493,
4942,
29896,
300,
666,
434,
4942,
29896,
261,
430,
1818,
8470,
13,
225,
5675,
8900,
11386,
30,
272,
410,
30,
385,
273,
5601,
2668,
40,
46,
95,
6134,
272,
410,
30,
385,
18,
4857,
29896,
67,
2696,
67,
792,
1435,
306,
21,
16,
404,
16,
404,
16,
404,
16,
576,
65,
272,
410,
30,
512,
273,
385,
18,
4857,
29896,
1435,
272,
410,
30,
512,
12167,
24,
16,
404,
16,
576,
16,
890,
6487,
306,
24,
16,
374,
13563,
272,
410,
30,
385,
18,
4857,
29896,
67,
2696,
67,
792,
12,
4857,
29896,
33,
41,
13,
306,
21,
16,
404,
16,
404,
16,
404,
16,
576,
65,
272,
410,
30,
478,
273,
19422,
18,
6313,
22,
72,
4137,
12,
22,
16,
23,
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,
4942,
29896,
67,
2696,
67,
792,
12,
2890,
16,
2199,
33,
7036,
16,
4942,
29896,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
3536,
2860,
279,
666,
434,
326,
1300,
434,
943,
2840,
4942,
29896,
4191,
1517,
756,
18,
225,
261,
1356,
279,
2202,
460,
309,
1338,
1245,
810,
756,
2934,
225,
15212,
1338,
8249,
364,
640,
26830,
19422,
18,
225,
2672,
358,
67,
1074,
867,
329,
358,
1765,
279,
3097,
1483,
358,
392,
640,
26830,
2667,
18,
225,
261,
9704,
10991,
5712,
2934,
225,
12943,
30,
1493,
2199,
300,
326,
2199,
358,
5334,
261,
1886,
353,
7278,
2667,
13,
1493,
598,
67,
5336,
300,
261,
6494,
13,
805,
1083,
1135,
666,
487,
5721,
1053,
1135,
279,
2
] |
mi.title = os.path.splitext(os.path.basename(htmlfile))[0]
|
if htmlfile: mi.title = os.path.splitext(os.path.basename(htmlfile))[0] else: mi.title = _('Unknown')
|
def merge_metadata(htmlfile, opf, opts): ''' Merge metadata from various sources. ''' if opf: mi = MetaInformation(opf) elif htmlfile: try: mi = get_metadata(open(htmlfile, 'rb'), 'html') except: mi = MetaInformation(None, None) if opts.from_opf is not None and os.access(opts.from_opf, os.R_OK): mi.smart_update(OPF(open(opts.from_opf, 'rb'), os.path.abspath(os.path.dirname(opts.from_opf)))) for attr in ('title', 'authors', 'publisher', 'tags', 'comments'): val = getattr(opts, attr, None) if val is None or val == _('Unknown') or val == [_('Unknown')]: continue if attr in ('authors', 'tags'): val = [i.strip() for i in val.split(',') if i.strip()] setattr(mi, attr, val) cover = getattr(opts, 'cover', False) if cover and os.path.exists(cover): mi.cover = os.path.abspath(cover) if not mi.title: mi.title = os.path.splitext(os.path.basename(htmlfile))[0] if not mi.authors: mi.authors = [_('Unknown')] return mi
|
e4387cf30819ed9b174e71359dc1919aa7872624 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/e4387cf30819ed9b174e71359dc1919aa7872624/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
4165,
12,
2620,
768,
16,
1061,
74,
16,
1500,
4672,
9163,
8964,
1982,
628,
11191,
5550,
18,
9163,
309,
1061,
74,
30,
12837,
273,
6565,
5369,
12,
556,
74,
13,
1327,
1729,
768,
30,
775,
30,
12837,
273,
225,
336,
67,
4165,
12,
3190,
12,
2620,
768,
16,
296,
6731,
19899,
296,
2620,
6134,
1335,
30,
12837,
273,
6565,
5369,
12,
7036,
16,
599,
13,
225,
309,
1500,
18,
2080,
67,
556,
74,
353,
486,
599,
471,
1140,
18,
3860,
12,
4952,
18,
2080,
67,
556,
74,
16,
1140,
18,
54,
67,
3141,
4672,
12837,
18,
26416,
67,
2725,
12,
3665,
42,
12,
3190,
12,
4952,
18,
2080,
67,
556,
74,
16,
296,
6731,
19899,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
12287,
12,
4952,
18,
2080,
67,
556,
74,
3719,
3719,
364,
1604,
316,
7707,
2649,
2187,
296,
19368,
2187,
296,
26018,
2187,
296,
4156,
2187,
296,
9231,
11,
4672,
1244,
273,
3869,
12,
4952,
16,
1604,
16,
599,
13,
309,
1244,
353,
599,
578,
1244,
422,
389,
2668,
4874,
6134,
578,
1244,
422,
306,
67,
2668,
4874,
6134,
14542,
1324,
309,
1604,
316,
7707,
19368,
2187,
296,
4156,
11,
4672,
1244,
273,
306,
77,
18,
6406,
1435,
364,
277,
316,
1244,
18,
4939,
12,
2187,
6134,
309,
277,
18,
6406,
1435,
65,
9241,
12,
9197,
16,
1604,
16,
1244,
13,
225,
5590,
273,
3869,
12,
4952,
16,
296,
3165,
2187,
1083,
13,
309,
5590,
471,
1140,
18,
803,
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,
2691,
67,
4165,
12,
2620,
768,
16,
1061,
74,
16,
1500,
4672,
9163,
8964,
1982,
628,
11191,
5550,
18,
9163,
309,
1061,
74,
30,
12837,
273,
6565,
5369,
12,
556,
74,
13,
1327,
1729,
768,
30,
775,
30,
12837,
273,
225,
336,
67,
4165,
12,
3190,
12,
2620,
768,
16,
296,
6731,
19899,
296,
2620,
6134,
1335,
30,
12837,
273,
6565,
5369,
12,
7036,
16,
599,
13,
225,
309,
1500,
18,
2080,
67,
556,
74,
353,
486,
599,
471,
1140,
18,
3860,
12,
4952,
18,
2080,
67,
556,
74,
16,
1140,
18,
54,
67,
3141,
4672,
12837,
18,
26416,
67,
2725,
12,
3665,
42,
12,
3190,
12,
4952,
18,
2080,
67,
556,
74,
16,
296,
6731,
19899,
1140,
2
] |
return Factorization([(p,-e) for p,e in self], cr=self._cr())
|
""" Return the formal inverse of the factors in the factorization. EXAMPLES: sage: F = factor(2006); F 2 * 17 * 59 sage: F^-1 2^-1 * 17^-1 * 59^-1 sage: R.<x,y> = FreeAlgebra(QQ, 2) sage: F = Factorization([(x,3), (y, 2), (x,1)], 2); F (2) * x^3 * y^2 * x sage: F^-1 (1/2) * x^-1 * y^-2 * x^-3 """ return Factorization([(p,-e) for p,e in reversed(self)], cr=self._cr(), unit=self.unit()**(-1))
|
def __invert__(self): return Factorization([(p,-e) for p,e in self], cr=self._cr())
|
7b30ddb30ae1a435bd7243058fc57880a92701a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b30ddb30ae1a435bd7243058fc57880a92701a4/factorization.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
327,
26400,
1588,
3816,
12,
84,
16,
17,
73,
13,
364,
293,
16,
73,
316,
365,
6487,
4422,
33,
2890,
6315,
3353,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
327,
26400,
1588,
3816,
12,
84,
16,
17,
73,
13,
364,
293,
16,
73,
316,
365,
6487,
4422,
33,
2890,
6315,
3353,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tag_re = re.compile('(<.*?>)', re.DOTALL)
|
tag_re = re.compile(r'(<>|<[^!].*?>|<!\[CDATA\[|\]\]>)', re.DOTALL | re.MULTILINE)
|
def get_words(s): return set([ word for word in lower(unicode(strip_tags_re.sub('', unicode(s))) ).translate(punct_map).split() if word not in stop_words])
|
6d70cee8d6a96a1a832c46035c213430e3cca9a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10695/6d70cee8d6a96a1a832c46035c213430e3cca9a4/normalize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
12,
87,
4672,
327,
444,
3816,
2076,
364,
2076,
316,
2612,
12,
9124,
12,
6406,
67,
4156,
67,
266,
18,
1717,
2668,
2187,
5252,
12,
87,
20349,
262,
18,
13929,
12,
84,
6931,
67,
1458,
2934,
4939,
1435,
309,
2076,
486,
316,
2132,
67,
3753,
5717,
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,
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,
12,
87,
20349,
262,
18,
13929,
12,
84,
6931,
67,
1458,
2934,
4939,
1435,
309,
2076,
486,
316,
2132,
67,
3753,
5717,
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
] |
cfm4 = v*ach*(4./50)**n
|
cfm4 = v*ach/60*(4./50)**n
|
def ach_to_ela(ach): v = 2016*10 # volume n = 0.67 cfm4 = v*ach*(4./50)**n cmps = cfm4/35.3147/60 # cubic meters per second at 4 Pa # leakage area, sq meters, assume discharge coefficient is 1 sm = cmps * sqrt(1.2/2/4)/1 ela = sm * (100/2.54)**2 return ela
|
47f9d218b4515e737e128196b242438ab452f2d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12160/47f9d218b4515e737e128196b242438ab452f2d6/gensim.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
279,
343,
67,
869,
67,
292,
69,
12,
497,
4672,
331,
273,
12659,
14,
2163,
468,
3940,
290,
273,
374,
18,
9599,
6080,
81,
24,
273,
331,
14,
497,
19,
4848,
21556,
24,
18,
19,
3361,
13,
636,
82,
5003,
1121,
273,
6080,
81,
24,
19,
4763,
18,
23,
29488,
19,
4848,
468,
31247,
27169,
1534,
2205,
622,
1059,
21800,
468,
20891,
410,
5091,
16,
4744,
27169,
16,
6750,
1015,
16385,
16554,
353,
404,
3029,
273,
5003,
1121,
380,
5700,
12,
21,
18,
22,
19,
22,
19,
24,
13176,
21,
415,
69,
273,
3029,
380,
261,
6625,
19,
22,
18,
6564,
13,
636,
22,
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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,
279,
343,
67,
869,
67,
292,
69,
12,
497,
4672,
331,
273,
12659,
14,
2163,
468,
3940,
290,
273,
374,
18,
9599,
6080,
81,
24,
273,
331,
14,
497,
19,
4848,
21556,
24,
18,
19,
3361,
13,
636,
82,
5003,
1121,
273,
6080,
81,
24,
19,
4763,
18,
23,
29488,
19,
4848,
468,
31247,
27169,
1534,
2205,
622,
1059,
21800,
468,
20891,
410,
5091,
16,
4744,
27169,
16,
6750,
1015,
16385,
16554,
353,
404,
3029,
273,
5003,
1121,
380,
5700,
12,
21,
18,
22,
19,
22,
19,
24,
13176,
21,
415,
69,
273,
3029,
380,
261,
6625,
19,
22,
18,
6564,
13,
636,
22,
327,
415,
69,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" for mem in self._chain:
|
This is guaranteed to be adjusted by every link in the chain. @param data: data is a tuple--refer to the callback chain documentation for what it might hold @type data: tuple of stuff @returns: the transformed tuple @rtype: varies """ chain = self.__getchain__() for mem in chain:
|
def executeTransform(self, data): """ Executes a callback chain on a given piece of data. This data could be a string or an object. Consult the documentation for the specific callback chain you're executing.
|
cf7a64bc603b16ba3481a3e7713cb93b6cbe9c56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/cf7a64bc603b16ba3481a3e7713cb93b6cbe9c56/api.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
4059,
12,
2890,
16,
501,
4672,
3536,
3889,
993,
279,
1348,
2687,
603,
279,
864,
11151,
434,
501,
18,
225,
1220,
501,
3377,
506,
279,
533,
578,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
4059,
12,
2890,
16,
501,
4672,
3536,
3889,
993,
279,
1348,
2687,
603,
279,
864,
11151,
434,
501,
18,
225,
1220,
501,
3377,
506,
279,
533,
578,
392,
733,
18,
225,
11020,
406,
326,
7323,
364,
326,
2923,
1348,
2687,
1846,
4565,
11274,
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
] |
incr.y = xi + 0.5 incr.x = xj + 0.5
|
dsect.y = xi dsect.x = xj
|
def getcd(isprobe, akey): # get course and distance irowq=game.quadrant.x; icolq=game.quadrant.y; key=0 navmode = "unspecified" itemp = "curt" incr = coord() iprompt = False # Get course direction and distance. If user types bad values, return # with DIREC = -1.0. game.direc = -1.0 if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) chew() return while navmode == "unspecified": if damaged(DNAVSYS): if isprobe: prout(_("Computer damaged; manual navigation only")) else: prout(_("Computer damaged; manual movement only")) chew() navmode = "manual" key = IHEOL break if isprobe and akey != -1: # For probe launch, use pre-scanned value first time key = akey akey = -1 else: key = scan() if key == IHEOL: proutn(_("Manual or automatic- ")) iprompt = True chew() elif key == IHALPHA: if isit("manual"): navmode = "manual" key = scan() break elif isit("automatic"): navmode = "automatic" key = scan() break else: huh() chew() return else: # numeric if isprobe: prout(_("(Manual navigation assumed.)")) else: prout(_("(Manual movement assumed.)")) navmode = "manual" break if navmode == "automatic": while key == IHEOL: if isprobe: proutn(_("Target quadrant or quadrant§or- ")) else: proutn(_("Destination sector or quadrant§or- ")) chew() iprompt = True key = scan() if key != IHREAL: huh() return xi = int(aaitem-0.05) key = scan() if key != IHREAL: huh() return xj = int(aaitem-0.5) key = scan() if key == IHREAL: # both quadrant and sector specified xk = aaitem key = scan() if key != IHREAL: huh() return xl = aaitem irowq = xi + 0.5 icolq = xj + 0.5 incr.y = xk + 0.5 incr.x = xl + 0.5 else: if isprobe: # only quadrant specified -- go to center of dest quad irowq = xi + 0.5 icolq = xj + 0.5 incr.y = incr.x = 5 else: incr.y = xi + 0.5 incr.x = xj + 0.5 itemp = "normal" if not VALID_QUADRANT(icolq,irowq) or not VALID_SECTOR(incr.x,incr.y): huh() return skip(1) if not isprobe: if itemp > "curt": if iprompt: prout(_("Helmsman Sulu- \"Course locked in for Sector %s.\"") % incr) else: prout(_("Ensign Chekov- \"Course laid in, Captain.\"")) deltax = icolq - game.quadrant.y + 0.1*(incr.x-game.sector.y) deltay = game.quadrant.x - irowq + 0.1*(game.sector.x-incr.y) else: # manual while key == IHEOL: proutn(_("X and Y displacements- ")) chew() iprompt = True key = scan() itemp = "verbose" if key != IHREAL: huh() return deltax = aaitem key = scan() if key != IHREAL: huh() return deltay = aaitem # Check for zero movement if deltax == 0 and deltay == 0: chew() return if itemp == "verbose" and not isprobe: skip(1) prout(_("Helmsman Sulu- \"Aye, Sir.\"")) game.dist = math.sqrt(deltax*deltax + deltay*deltay) game.direc = math.atan2(deltax, deltay)*1.90985932 if game.direc < 0.0: game.direc += 12.0 chew() return
|
b1c9c5334f08ac7846e441ce750b7e9ad119b37d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/b1c9c5334f08ac7846e441ce750b7e9ad119b37d/sst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,
498,
33,
20,
8775,
3188,
273,
315,
318,
13827,
6,
761,
84,
273,
315,
1397,
88,
6,
17633,
273,
2745,
1435,
2359,
8645,
273,
1083,
225,
468,
968,
4362,
4068,
471,
3888,
18,
971,
729,
1953,
5570,
924,
16,
327,
468,
598,
3690,
862,
39,
273,
300,
21,
18,
20,
18,
7920,
18,
72,
577,
71,
273,
300,
21,
18,
20,
225,
309,
7920,
18,
80,
5860,
471,
486,
353,
27230,
30,
450,
322,
24899,
2932,
20094,
5,
4554,
848,
1404,
8851,
4529,
17656,
3180,
1846,
6,
3719,
450,
322,
82,
24899,
2932,
834,
1473,
279,
3752,
326,
24316,
1199,
3719,
462,
359,
1435,
327,
1323,
8775,
3188,
422,
315,
318,
13827,
6877,
309,
302,
301,
11349,
12,
8609,
5856,
30664,
4672,
309,
353,
27230,
30,
450,
322,
24899,
2932,
7703,
264,
302,
301,
11349,
31,
11297,
10394,
1338,
6,
3719,
469,
30,
450,
322,
24899,
2932,
7703,
264,
302,
301,
11349,
31,
11297,
26017,
1338,
6,
3719,
462,
359,
1435,
8775,
3188,
273,
315,
19840,
6,
498,
273,
467,
3900,
1741,
898,
309,
353,
27230,
471,
279,
856,
480,
300,
21,
30,
468,
2457,
10695,
8037,
16,
999,
675,
17,
1017,
10041,
460,
1122,
813,
498,
273,
279,
856,
279,
856,
273,
300,
21,
469,
30,
498,
273,
4135,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,
498,
33,
20,
8775,
3188,
273,
315,
318,
13827,
6,
761,
84,
273,
315,
1397,
88,
6,
17633,
273,
2745,
1435,
2359,
8645,
273,
1083,
225,
468,
968,
4362,
4068,
471,
3888,
18,
971,
729,
1953,
5570,
924,
16,
327,
468,
598,
3690,
862,
39,
273,
300,
21,
18,
20,
18,
7920,
18,
72,
577,
71,
273,
300,
21,
18,
20,
225,
309,
7920,
18,
80,
5860,
471,
486,
353,
27230,
30,
450,
322,
24899,
2932,
20094,
5,
4554,
848,
1404,
8851,
2
] |
sage: q
|
sage: q
|
def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], '', out # whole thing else: verbose = out[:i] out = out[i+len('FACTORS:')+1:].strip() if time: w = out.split('\n') for i in range(len(w)): if 'user' in w[i]: break if i < len(w): t = w[i].strip() out = '\n'.join([w[j] for j in range(i)]) else: t = '' else: t = '' Z = sage.rings.integer.Integer v = out.split() v = list(set([Z(m) for m in v if Z(m) != n])) v.sort() return v, t, verbose
|
3daadd3d4571d1c2bd81a25e15749b148b7c0bc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/3daadd3d4571d1c2bd81a25e15749b148b7c0bc6/qsieve.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434,
977,
876,
434,
670,
485,
1807,
27258,
20004,
55,
21271,
5402,
290,
1493,
326,
3571,
3832,
5410,
7653,
225,
11550,
30,
666,
1493,
5338,
14490,
1392,
1427,
10247,
609,
1493,
813,
1779,
3536,
277,
273,
596,
18,
4720,
2668,
11625,
14006,
2497,
13,
309,
277,
422,
300,
21,
30,
327,
5378,
16,
10226,
596,
282,
468,
7339,
7757,
469,
30,
3988,
273,
596,
10531,
77,
65,
596,
273,
596,
63,
77,
15,
1897,
2668,
11625,
14006,
2497,
27921,
21,
30,
8009,
6406,
1435,
309,
813,
30,
341,
273,
596,
18,
4939,
2668,
64,
82,
6134,
364,
277,
316,
1048,
12,
1897,
12,
91,
3719,
30,
309,
296,
1355,
11,
316,
341,
63,
77,
14542,
898,
309,
277,
411,
562,
12,
91,
4672,
268,
273,
341,
63,
77,
8009,
6406,
1435,
596,
273,
2337,
82,
10332,
5701,
3816,
91,
63,
78,
65,
364,
525,
316,
1048,
12,
77,
13,
5717,
469,
30,
268,
273,
875,
469,
30,
268,
273,
875,
2285,
273,
272,
410,
18,
86,
899,
18,
7745,
18,
4522,
331,
273,
596,
18,
4939,
1435,
331,
273,
666,
12,
542,
3816,
62,
12,
81,
13,
364,
312,
316,
331,
309,
2285,
12,
81,
13,
480,
290,
22643,
331,
18,
3804,
1435,
327,
331,
16,
268,
16,
3988,
225,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434,
977,
876,
434,
670,
485,
1807,
27258,
20004,
55,
21271,
5402,
290,
1493,
326,
3571,
3832,
5410,
7653,
225,
11550,
30,
666,
1493,
5338,
14490,
1392,
1427,
10247,
609,
1493,
813,
1779,
3536,
277,
273,
596,
18,
4720,
2668,
11625,
14006,
2497,
13,
309,
277,
422,
300,
21,
30,
327,
5378,
16,
10226,
596,
282,
468,
7339,
7757,
469,
30,
3988,
273,
596,
10531,
77,
65,
596,
273,
596,
63,
77,
15,
1897,
2668,
11625,
14006,
2497,
27921,
21,
30,
8009,
6406,
2
] |
raise Socks5AuthError,((3,_socks5autherrors[3]))
|
raise Socks5AuthError((3,_socks5autherrors[3]))
|
def __negotiatesocks5(self,destaddr,destport): """__negotiatesocks5(self,destaddr,destport) Negotiates a connection through a SOCKS5 server. """ # First we'll send the authentication packages we support. if (self.__proxy[4]!=None) and (self.__proxy[5]!=None): # The username/password details were supplied to the # setproxy method so we support the USERNAME/PASSWORD # authentication (in addition to the standard none). self.sendall("\x05\x02\x00\x02") else: # No username/password were entered, therefore we # only support connections with no authentication. self.sendall("\x05\x01\x00") # We'll receive the server's response to determine which # method was selected chosenauth = self.__recvall(2) if chosenauth[0] != "\x05": self.close() raise GeneralProxyError((1,_generalerrors[1])) # Check the chosen authentication method if chosenauth[1] == "\x00": # No authentication is required pass elif chosenauth[1] == "\x02": # Okay, we need to perform a basic username/password # authentication. self.sendall("\x01" + chr(len(self.__proxy[4])) + self.__proxy[4] + chr(len(self.__proxy[5])) + self.__proxy[5]) authstat = self.__recvall(2) if authstat[0] != "\x01": # Bad response self.close() raise GeneralProxyError((1,_generalerrors[1])) if authstat[1] != "\x00": # Authentication failed self.close() raise Socks5AuthError,((3,_socks5autherrors[3])) # Authentication succeeded else: # Reaching here is always bad self.close() if chosenauth[1] == "\xFF": raise Socks5AuthError((2,_socks5autherrors[2])) else: raise GeneralProxyError((1,_generalerrors[1])) # Now we can request the actual connection req = "\x05\x01\x00" # If the given destination address is an IP address, we'll # use the IPv4 address request even if remote resolving was specified. try: ipaddr = socket.inet_aton(destaddr) req = req + "\x01" + ipaddr except socket.error: # Well it's not an IP number, so it's probably a DNS name. if self.__proxy[3]==True: # Resolve remotely ipaddr = None req = req + "\x03" + chr(len(destaddr)) + destaddr else: # Resolve locally ipaddr = socket.inet_aton(socket.gethostbyname(destaddr)) req = req + "\x01" + ipaddr req = req + struct.pack(">H",destport) self.sendall(req) # Get the response resp = self.__recvall(4) if resp[0] != "\x05": self.close() raise GeneralProxyError((1,_generalerrors[1])) elif resp[1] != "\x00": # Connection failed self.close() if ord(resp[1])<=8: raise Socks5Error((ord(resp[1]),_socks5errors[ord(resp[1])])) else: raise Socks5Error((9,_socks5errors[9])) # Get the bound address/port elif resp[3] == "\x01": boundaddr = self.__recvall(4) elif resp[3] == "\x03": resp = resp + self.recv(1) boundaddr = self.__recvall(ord(resp[4])) else: self.close() raise GeneralProxyError((1,_generalerrors[1])) boundport = struct.unpack(">H",self.__recvall(2))[0] self.__proxysockname = (boundaddr,boundport) if ipaddr != None: self.__proxypeername = (socket.inet_ntoa(ipaddr),destport) else: self.__proxypeername = (destaddr,destport)
|
b2ddf409815564ff2aef6a6dcddee52f011d5b06 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9386/b2ddf409815564ff2aef6a6dcddee52f011d5b06/socks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
16020,
279,
1459,
3059,
279,
20834,
55,
25,
1438,
18,
3536,
468,
5783,
732,
5614,
1366,
326,
5107,
5907,
732,
2865,
18,
309,
261,
2890,
16186,
5656,
63,
24,
65,
5,
33,
7036,
13,
471,
261,
2890,
16186,
5656,
63,
25,
65,
5,
33,
7036,
4672,
468,
1021,
2718,
19,
3664,
3189,
4591,
4580,
358,
326,
468,
444,
5656,
707,
1427,
732,
2865,
326,
7443,
1985,
19,
13784,
468,
5107,
261,
267,
2719,
358,
326,
4529,
6555,
2934,
365,
18,
4661,
454,
31458,
92,
6260,
64,
92,
3103,
64,
92,
713,
64,
92,
3103,
7923,
469,
30,
468,
2631,
2718,
19,
3664,
4591,
16219,
16,
13526,
732,
468,
1338,
2865,
5921,
598,
1158,
5107,
18,
365,
18,
4661,
454,
31458,
92,
6260,
64,
92,
1611,
64,
92,
713,
7923,
468,
1660,
5614,
6798,
326,
1438,
1807,
766,
358,
4199,
1492,
468,
707,
1703,
3170,
10447,
1944,
273,
365,
16186,
18334,
454,
12,
22,
13,
309,
10447,
1944,
63,
20,
65,
480,
1548,
92,
6260,
6877,
365,
18,
4412,
1435,
1002,
9544,
3886,
668,
12443,
21,
16,
67,
12259,
4324,
63,
21,
22643,
468,
2073,
326,
10447,
5107,
707,
309,
10447,
1944,
63,
21,
65,
422,
1548,
92,
713,
6877,
468,
2631,
5107,
353,
1931,
1342,
1327,
10447,
1944,
63,
21,
65,
422,
1548,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
16020,
279,
1459,
3059,
279,
20834,
55,
25,
1438,
18,
3536,
468,
5783,
732,
5614,
1366,
326,
5107,
5907,
732,
2865,
18,
309,
261,
2890,
16186,
5656,
63,
24,
65,
5,
33,
7036,
13,
471,
261,
2890,
16186,
5656,
63,
25,
65,
5,
33,
7036,
4672,
468,
1021,
2718,
19,
3664,
3189,
4591,
4580,
358,
326,
468,
444,
5656,
707,
1427,
732,
2865,
326,
7443,
1985,
19,
13784,
468,
5107,
261,
267,
2719,
358,
326,
4529,
6555,
2934,
365,
18,
4661,
454,
31458,
92,
6260,
2
] |
exp.add(sw)
|
exp.add_widget(sw, False)
|
def main(klass): w = gtk.Window() vbox = gtk.VBox() sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) sw.set_size_request(400, 400) exp = klass("miao") exp.add(sw) vbox.pack_start(exp, False, False) sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) exp = klass("miao") exp.add(sw) vbox.pack_start(exp) vbox.pack_start(gtk.Label("mias"), False, False) w.add(vbox) w.show_all()
|
da768c9b8873665bf193190ab828897badf72809 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11468/da768c9b8873665bf193190ab828897badf72809/Expander.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
22626,
4672,
341,
273,
22718,
18,
3829,
1435,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
1528,
1767,
10756,
1352,
18,
542,
67,
1467,
67,
2293,
12,
16010,
16,
7409,
13,
225,
1329,
273,
7352,
2932,
81,
1155,
83,
7923,
1329,
18,
1289,
67,
6587,
12,
5328,
16,
1083,
13,
225,
331,
2147,
18,
2920,
67,
1937,
12,
2749,
16,
1083,
16,
1083,
13,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
1528,
1767,
10756,
225,
1329,
273,
7352,
2932,
81,
1155,
83,
7923,
1329,
18,
1289,
67,
6587,
12,
5328,
16,
1083,
13,
331,
2147,
18,
2920,
67,
1937,
12,
2749,
13,
225,
331,
2147,
18,
2920,
67,
1937,
12,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
22626,
4672,
341,
273,
22718,
18,
3829,
1435,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
1528,
1767,
10756,
1352,
18,
542,
67,
1467,
67,
2293,
12,
16010,
16,
7409,
13,
225,
1329,
273,
7352,
2932,
81,
1155,
83,
7923,
1329,
18,
1289,
67,
6587,
12,
5328,
16,
1083,
13,
225,
331,
2147,
18,
2920,
67,
1937,
12,
2749,
16,
1083,
16,
1083,
13,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
1528,
1767,
10756,
225,
1329,
273,
7352,
2932,
81,
1155,
83,
7923,
1329,
18,
1289,
67,
6587,
12,
5328,
16,
2
] |
for source in acl_tool.getSources(): if not isinstance(source, plugLDAPUserFolder): continue acl_folder = source.getUserFolder() individual_users = source.getUsersRoles(acl_folder).keys()
|
for source_id in self.sources.keys(): source = self.sources[source_id]['source'] individual_users = self.sources[source_id]['user_roles'].keys()
|
def get_users(self): if not hasattr(self, '_v_external_user_cache'): self._v_external_user_cache = {} cache = self._v_external_user_cache users = []
|
7526a52095140d7fa1a40058dd637668575d6ce0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7526a52095140d7fa1a40058dd637668575d6ce0/directory.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
3677,
273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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
3677,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.current_stage_tick += 1
|
if self.current_stage_tick < self.current_stage_max: self.current_stage_tick += 1
|
def tick(self): self.current_stage_tick += 1 # Calc how far through this stage. this_prop = float(self.current_stage_tick) / self.current_stage_max # How far through the total. stage_name, start, end = self._get_current_stage() # Calc the perc of the total control. stage_name, start, prop = self._get_current_stage() total_prop = start + this_prop * prop # How may ticks is this on the control (but always have 1, so the # user knows the process has actually started.) control_tick = max(1,int(total_prop * self.total_control_ticks)) #print "Tick", self.current_stage_tick, "is", this_prop, "through the stage,", total_prop, "through the total - ctrl tick is", control_tick while self.current_control_tick < control_tick: self.current_control_tick += 1 #print "ticking control", self.current_control_tick win32api.PostMessage(self.hprogress, commctrl.PBM_STEPIT, 0, 0)
|
8b6ce200a1840f7275d1a77fb99d11f2f7f1b057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/8b6ce200a1840f7275d1a77fb99d11f2f7f1b057/async_processor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
12,
2890,
4672,
309,
365,
18,
2972,
67,
12869,
67,
6470,
411,
365,
18,
2972,
67,
12869,
67,
1896,
30,
225,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,
3059,
333,
6009,
18,
333,
67,
5986,
273,
1431,
12,
2890,
18,
2972,
67,
12869,
67,
6470,
13,
342,
365,
18,
2972,
67,
12869,
67,
1896,
468,
9017,
10247,
3059,
326,
2078,
18,
6009,
67,
529,
16,
787,
16,
679,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
468,
29128,
326,
26514,
434,
326,
2078,
3325,
18,
6009,
67,
529,
16,
787,
16,
2270,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
2078,
67,
5986,
273,
787,
397,
333,
67,
5986,
380,
2270,
468,
9017,
2026,
13003,
353,
333,
603,
326,
3325,
261,
12885,
3712,
1240,
404,
16,
1427,
326,
468,
729,
21739,
326,
1207,
711,
6013,
5746,
12998,
3325,
67,
6470,
273,
943,
12,
21,
16,
474,
12,
4963,
67,
5986,
380,
365,
18,
4963,
67,
7098,
67,
11767,
3719,
468,
1188,
315,
6264,
3113,
365,
18,
2972,
67,
12869,
67,
6470,
16,
315,
291,
3113,
333,
67,
5986,
16,
315,
10064,
326,
6009,
16,
3113,
2078,
67,
5986,
16,
315,
10064,
326,
2078,
300,
6414,
4024,
353,
3113,
3325,
67,
6470,
1323,
365,
18,
2972,
67,
7098,
67,
6470,
411,
3325,
67,
6470,
30,
365,
18,
2972,
67,
7098,
67,
6470,
1011,
404,
468,
1188,
315,
6470,
310,
3325,
3113,
365,
18,
2972,
67,
7098,
67,
6470,
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,
4024,
12,
2890,
4672,
309,
365,
18,
2972,
67,
12869,
67,
6470,
411,
365,
18,
2972,
67,
12869,
67,
1896,
30,
225,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,
3059,
333,
6009,
18,
333,
67,
5986,
273,
1431,
12,
2890,
18,
2972,
67,
12869,
67,
6470,
13,
342,
365,
18,
2972,
67,
12869,
67,
1896,
468,
9017,
10247,
3059,
326,
2078,
18,
6009,
67,
529,
16,
787,
16,
679,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
468,
29128,
326,
26514,
434,
326,
2078,
3325,
18,
6009,
67,
529,
16,
787,
16,
2270,
273,
365,
6315,
588,
67,
2972,
67,
12869,
1435,
2078,
67,
5986,
273,
787,
397,
333,
67,
5986,
2
] |
cursor.executemany("INSERT INTO session_attribute " " (sid,authenticated,name,value) " " VALUES (%s,%s,%s,%s)", attrs)
|
cursor.executemany(""" INSERT INTO session_attribute (sid,authenticated,name,value) VALUES (%s,%s,%s,%s) """, attrs)
|
def delete_session_cookie(db): cursor = db.cursor() if self._new: self.last_visit = now self._new = False # The session might already exist even if _new is True since # it could have been created by a concurrent request (#3563). try: cursor.execute("INSERT INTO session " " (sid,last_visit,authenticated)" " VALUES (%s,%s,%s)", (self.sid, self.last_visit, authenticated)) except Exception: self.env.log.warning('Session %s already exists', self.sid) db.rollback() return if self._old != self: attrs = [(self.sid, authenticated, k, v) for k, v in self.items()] cursor.execute("DELETE FROM session_attribute WHERE sid=%s", (self.sid,)) self._old = dict(self.items()) if attrs: cursor.executemany("INSERT INTO session_attribute " " (sid,authenticated,name,value) " " VALUES (%s,%s,%s,%s)", attrs) elif not authenticated: # No need to keep around empty unauthenticated sessions cursor.execute("DELETE FROM session " "WHERE sid=%s AND authenticated=0", (self.sid,)) return # Update the session last visit time if it is over an hour old, # so that session doesn't get purged if now - self.last_visit > UPDATE_INTERVAL: self.last_visit = now self.env.log.info("Refreshing session %s", self.sid) cursor.execute('UPDATE session SET last_visit=%s ' 'WHERE sid=%s AND authenticated=%s', (self.last_visit, self.sid, authenticated)) # Purge expired sessions. We do this only when the session was # changed as to minimize the purging. mintime = now - PURGE_AGE self.env.log.debug('Purging old, expired, sessions.') cursor.execute("DELETE FROM session_attribute " "WHERE authenticated=0 AND sid " "IN (SELECT sid FROM session WHERE " "authenticated=0 AND last_visit < %s)", (mintime,)) cursor.execute("DELETE FROM session WHERE " "authenticated=0 AND last_visit < %s", (mintime,))
|
c9cd2abe472fbff336262b87b60cf1276cdfdeca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/c9cd2abe472fbff336262b87b60cf1276cdfdeca/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
3184,
67,
8417,
12,
1966,
4672,
3347,
273,
1319,
18,
9216,
1435,
309,
365,
6315,
2704,
30,
365,
18,
2722,
67,
11658,
273,
2037,
365,
6315,
2704,
273,
1083,
468,
1021,
1339,
4825,
1818,
1005,
5456,
309,
389,
2704,
353,
1053,
3241,
468,
518,
3377,
1240,
2118,
2522,
635,
279,
10020,
590,
23885,
23,
4313,
23,
2934,
775,
30,
3347,
18,
8837,
2932,
11356,
12421,
1339,
315,
315,
261,
7453,
16,
2722,
67,
11658,
16,
14454,
2225,
315,
13477,
6142,
87,
15529,
87,
15529,
87,
2225,
16,
261,
2890,
18,
7453,
16,
365,
18,
2722,
67,
11658,
16,
9370,
3719,
1335,
1185,
30,
365,
18,
3074,
18,
1330,
18,
8551,
2668,
2157,
738,
87,
1818,
1704,
2187,
365,
18,
7453,
13,
1319,
18,
20050,
1435,
327,
309,
365,
6315,
1673,
480,
365,
30,
3422,
273,
306,
12,
2890,
18,
7453,
16,
9370,
16,
417,
16,
331,
13,
364,
417,
16,
331,
316,
365,
18,
3319,
1435,
65,
3347,
18,
8837,
2932,
6460,
4571,
1339,
67,
4589,
4852,
7348,
5095,
87,
3113,
261,
2890,
18,
7453,
16,
3719,
365,
6315,
1673,
273,
2065,
12,
2890,
18,
3319,
10756,
309,
3422,
30,
3347,
18,
4177,
322,
351,
2273,
2932,
3660,
14834,
12421,
1339,
67,
4589,
261,
7453,
16,
14454,
16,
529,
16,
1132,
13,
13477,
6142,
87,
15529,
87,
15529,
87,
15529,
87,
13,
1408,
3113,
3422,
13,
1327,
486,
9370,
30,
468,
2631,
1608,
358,
3455,
6740,
1008,
640,
14454,
8856,
3347,
18,
8837,
2932,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
3184,
67,
8417,
12,
1966,
4672,
3347,
273,
1319,
18,
9216,
1435,
309,
365,
6315,
2704,
30,
365,
18,
2722,
67,
11658,
273,
2037,
365,
6315,
2704,
273,
1083,
468,
1021,
1339,
4825,
1818,
1005,
5456,
309,
389,
2704,
353,
1053,
3241,
468,
518,
3377,
1240,
2118,
2522,
635,
279,
10020,
590,
23885,
23,
4313,
23,
2934,
775,
30,
3347,
18,
8837,
2932,
11356,
12421,
1339,
315,
315,
261,
7453,
16,
2722,
67,
11658,
16,
14454,
2225,
315,
13477,
6142,
87,
15529,
87,
15529,
87,
2225,
16,
261,
2890,
18,
7453,
16,
365,
18,
2722,
67,
11658,
16,
9370,
3719,
1335,
1185,
30,
365,
18,
3074,
18,
1330,
18,
8551,
2668,
2157,
738,
87,
1818,
1704,
2
] |
index_terms, index_links = self._extract_term_index() if index_terms: header = (self._start_of('Term Index') + self._table_header('Term Index', 'index'))
|
index = self._extract_term_index() if index: header = self._table_header('Term Index', 'index')
|
def _write_indices(self, public, private): """ Write the index to the given file-like object. I write directly to the file (unlike most other pages, which are converted to strings, and then written) because the index page can be quite large. For example, for the Python standard library, the index page is over 1.5mb. @param out: The stream to which the index should be written. @type out: C{stream} @rtype: C{None} """ # Header and navigation bar. header = self._header('Index') public.write(header); private.write(header) self._write_navbar(public, private, 'indices', top=1) public.write('<br />\n'); private.write('<br />\n')
|
21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
6836,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
2598,
326,
770,
358,
326,
864,
585,
17,
5625,
733,
18,
225,
467,
1045,
5122,
358,
326,
585,
261,
318,
5625,
4486,
1308,
4689,
16,
1492,
854,
5970,
358,
2064,
16,
471,
1508,
5941,
13,
2724,
326,
770,
1363,
848,
506,
25102,
7876,
18,
225,
2457,
3454,
16,
364,
326,
6600,
4529,
5313,
16,
326,
770,
1363,
353,
1879,
404,
18,
25,
1627,
18,
632,
891,
596,
30,
1021,
1407,
358,
1492,
326,
770,
1410,
506,
5941,
18,
632,
723,
596,
30,
385,
95,
3256,
97,
632,
86,
723,
30,
385,
95,
7036,
97,
3536,
468,
4304,
471,
10394,
4653,
18,
1446,
273,
365,
6315,
3374,
2668,
1016,
6134,
1071,
18,
2626,
12,
3374,
1769,
3238,
18,
2626,
12,
3374,
13,
365,
6315,
2626,
67,
11589,
3215,
12,
482,
16,
3238,
16,
296,
6836,
2187,
1760,
33,
21,
13,
1071,
18,
2626,
2668,
32,
2848,
342,
5333,
82,
8284,
3238,
18,
2626,
2668,
32,
2848,
342,
5333,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
6836,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
2598,
326,
770,
358,
326,
864,
585,
17,
5625,
733,
18,
225,
467,
1045,
5122,
358,
326,
585,
261,
318,
5625,
4486,
1308,
4689,
16,
1492,
854,
5970,
358,
2064,
16,
471,
1508,
5941,
13,
2724,
326,
770,
1363,
848,
506,
25102,
7876,
18,
225,
2457,
3454,
16,
364,
326,
6600,
4529,
5313,
16,
326,
770,
1363,
353,
1879,
404,
18,
25,
1627,
18,
632,
891,
596,
30,
1021,
1407,
358,
1492,
326,
770,
1410,
506,
5941,
18,
632,
723,
596,
30,
385,
95,
3256,
97,
632,
86,
723,
30,
385,
95,
7036,
97,
3536,
468,
4304,
471,
10394,
4653,
18,
1446,
273,
365,
6315,
3374,
2
] |
REQUEST.RESPONSE.redirect(section.absolute_url())
|
REQUEST.RESPONSE.redirect(section.absolute_url() + '/edit_html') REQUEST.RESPONSE.redirect( "%s/edit_html (section.absolute_url(), self.get_anchor()) )
|
def split_body(self, body_0=None, body_1=None, REQUEST=None): """ """ if REQUEST and REQUEST.REQUEST_METHOD != 'POST': return self._split_content_html(self, REQUEST)
|
842e6a6c3a148165b1ba92041deab557295824bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/842e6a6c3a148165b1ba92041deab557295824bd/Paragraph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
3432,
12,
2890,
16,
1417,
67,
20,
33,
7036,
16,
1417,
67,
21,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
3536,
309,
12492,
471,
12492,
18,
5519,
67,
5327,
480,
296,
3798,
4278,
327,
365,
6315,
4939,
67,
1745,
67,
2620,
12,
2890,
16,
12492,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
3432,
12,
2890,
16,
1417,
67,
20,
33,
7036,
16,
1417,
67,
21,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
3536,
309,
12492,
471,
12492,
18,
5519,
67,
5327,
480,
296,
3798,
4278,
327,
365,
6315,
4939,
67,
1745,
67,
2620,
12,
2890,
16,
12492,
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
] |
fillColorLozengeType = 'SelectedGradientLeft'
|
fillColorLozengeType = 'UnselectedGradientRight'
|
def DrawCollectionSwatches(self, dc, topLeft, bottomRight, vertical=True): """ topLeft and bottomRight must be vectors (lists which can be added and subtracted like vectors) """ app_ns = schema.ns('osaf.app', self.item.itsView) sidebarCollections = app_ns.sidebarCollection allCollection = schema.ns('osaf.pim', self.item.itsView).allCollection if self.isActive: fillColorLozengeType = 'SelectedGradientLeft' outlinePre1 = 'Selected' else: fillColorLozengeType = 'SelectedFYIGradientLeft' outlinePre1 = 'Overlay' if self.invertColors(): outlinePre2 = 'FYISwatchOutline' else: outlinePre2 = 'SwatchOutline'
|
736c9d2ceba4eb9a5afd4b47c50283ddb21fd42a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/736c9d2ceba4eb9a5afd4b47c50283ddb21fd42a/CalendarCanvas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2532,
6050,
505,
281,
12,
2890,
16,
6744,
16,
1760,
3910,
16,
5469,
4726,
16,
9768,
33,
5510,
4672,
3536,
1760,
3910,
471,
5469,
4726,
1297,
506,
10046,
261,
9772,
1492,
848,
506,
3096,
471,
10418,
329,
3007,
10046,
13,
3536,
595,
67,
2387,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
2910,
2187,
365,
18,
1726,
18,
1282,
1767,
13,
23364,
15150,
273,
595,
67,
2387,
18,
26417,
2532,
777,
2532,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
84,
381,
2187,
365,
18,
1726,
18,
1282,
1767,
2934,
454,
2532,
309,
365,
18,
291,
3896,
30,
3636,
2957,
1504,
8396,
908,
559,
273,
296,
984,
8109,
15651,
4726,
11,
16363,
1386,
21,
273,
296,
7416,
11,
469,
30,
3636,
2957,
1504,
8396,
908,
559,
273,
296,
7416,
42,
61,
3047,
12573,
3910,
11,
16363,
1386,
21,
273,
296,
11627,
11,
309,
365,
18,
267,
1097,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2532,
6050,
505,
281,
12,
2890,
16,
6744,
16,
1760,
3910,
16,
5469,
4726,
16,
9768,
33,
5510,
4672,
3536,
1760,
3910,
471,
5469,
4726,
1297,
506,
10046,
261,
9772,
1492,
848,
506,
3096,
471,
10418,
329,
3007,
10046,
13,
3536,
595,
67,
2387,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
2910,
2187,
365,
18,
1726,
18,
1282,
1767,
13,
23364,
15150,
273,
595,
67,
2387,
18,
26417,
2532,
777,
2532,
273,
1963,
18,
2387,
2668,
538,
1727,
18,
84,
381,
2187,
365,
18,
1726,
18,
1282,
1767,
2934,
454,
2532,
309,
365,
18,
291,
3896,
30,
3636,
2957,
1504,
8396,
908,
559,
273,
296,
984,
8109,
15651,
4726,
11,
16363,
1386,
21,
273,
296,
7416,
2
] |
changed = False if self.replace and namespace != 14: newTitle = self.PickTarget(False, title, err[1]) if newTitle: src = wikipedia.Page(self.site, title) src.move( newTitle, u'mixed case rename') changed = True if not changed: self.WikiLog(u"* " + err[0]) printed = True
|
if page['ns'] == 14: self.WikiLog(u"* Move category content: " + err[0]) else: changed = False if self.replace: newTitle = self.PickTarget(False, title, err[1]) if newTitle: src = wikipedia.Page(self.site, title) src.move( newTitle, u'mixed case rename') changed = True if not changed: self.WikiLog(u"* " + err[0]) printed = True
|
def Run(self): try: count = 0 for namespace in self.namespaces: self.params['apnamespace'] = namespace self.apfrom = self.apfrom title = None while True: # Get data self.params['apfrom'] = self.apfrom data = query.GetData(self.site.lang, self.params, self.verbose) try: self.apfrom = data['query']['allpages']['next'] except: self.apfrom = None # Process received data if 'pages' in data: for pageID, page in data['pages'].iteritems(): printed = False title = page['title'] if self.titles: err = self.ProcessTitle(title) if err: changed = False if self.replace and namespace != 14: newTitle = self.PickTarget(False, title, err[1]) if newTitle: src = wikipedia.Page(self.site, title) src.move( newTitle, u'mixed case rename') changed = True if not changed: self.WikiLog(u"* " + err[0]) printed = True if self.links: if 'links' in page: pageObj = None pageTxt = None msg = [] for l in page['links']: ltxt = l['*'] err = self.ProcessTitle(ltxt) if err: newTitle = None if self.replace: newTitle = self.PickTarget(True, ltxt, err[1]) if newTitle: if pageObj is None: pageObj = wikipedia.Page(self.site, title) pageTxt = pageObj.get() msg.append(u'[[%s]] => [[%s]]' % (ltxt, newTitle)) pageTxt = pageTxt.replace(ltxt, newTitle) pageTxt = pageTxt.replace(ltxt[0].lower() + ltxt[1:], newTitle[0].lower() + newTitle[1:]) pageTxt = pageTxt.replace(ltxt.replace(u' ', '_'), newTitle) if not newTitle: if not printed: self.WikiLog(u"* [[:%s]]: link to %s" % (title, err[0])) printed = True else: self.WikiLog(u"** link to %s" % err[0]) if pageObj is not None: if pageObj.get() == pageTxt: self.WikiLog(u"* Error: Text replacement failed in [[:%s]] (%s)" % (title, u', '.join(msg))) else: wikipedia.output(u'Case Replacements: %s' % u', '.join(msg)) try: pageObj.put(pageTxt, u'Case Replacements: %s' % u', '.join(msg)) except: self.WikiLog(u"* Error: Could not save updated page [[:%s]] (%s)" % (title, u', '.join(msg))) count += 1 if self.stopAfter > 0 and count == self.stopAfter: raise "Stopping because we are done" if self.apfrom is None: break
|
d7ae8d783a650481e56e5f8027b09cf5b7a199dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d7ae8d783a650481e56e5f8027b09cf5b7a199dc/casechecker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
365,
18,
438,
2080,
273,
365,
18,
438,
2080,
2077,
273,
599,
225,
1323,
1053,
30,
468,
968,
501,
365,
18,
2010,
3292,
438,
2080,
3546,
273,
365,
18,
438,
2080,
501,
273,
843,
18,
967,
751,
12,
2890,
18,
4256,
18,
4936,
16,
365,
18,
2010,
16,
365,
18,
11369,
13,
775,
30,
365,
18,
438,
2080,
273,
501,
3292,
2271,
21712,
454,
7267,
21712,
4285,
3546,
1335,
30,
365,
18,
438,
2080,
273,
599,
225,
468,
4389,
5079,
501,
309,
296,
7267,
11,
316,
501,
30,
364,
1363,
734,
16,
1363,
316,
501,
3292,
7267,
29489,
2165,
3319,
13332,
14099,
273,
1083,
2077,
273,
1363,
3292,
2649,
3546,
309,
365,
18,
17643,
30,
393,
273,
365,
18,
2227,
4247,
12,
2649,
13,
309,
393,
30,
309,
1363,
3292,
2387,
3546,
422,
5045,
30,
365,
18,
25438,
1343,
12,
89,
6,
14,
9933,
3150,
913,
30,
315,
397,
393,
63,
20,
5717,
469,
30,
3550,
273,
1083,
309,
365,
18,
2079,
30,
394,
4247,
273,
365,
18,
17968,
2326,
12,
8381,
16,
2077,
16,
393,
63,
21,
5717,
309,
394,
4247,
30,
1705,
273,
21137,
18,
1964,
12,
2890,
18,
4256,
16,
2077,
13,
1705,
18,
8501,
12,
394,
4247,
16,
582,
17784,
3960,
648,
6472,
6134,
3550,
273,
1053,
225,
309,
486,
3550,
30,
365,
18,
25438,
1343,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
365,
18,
438,
2080,
273,
365,
18,
438,
2080,
2077,
273,
599,
225,
1323,
1053,
30,
468,
968,
501,
365,
18,
2010,
3292,
438,
2080,
3546,
273,
365,
18,
438,
2080,
501,
273,
843,
18,
967,
751,
12,
2890,
18,
4256,
18,
4936,
16,
365,
18,
2010,
16,
365,
18,
11369,
13,
775,
30,
365,
18,
438,
2080,
273,
501,
3292,
2271,
21712,
454,
7267,
21712,
4285,
3546,
1335,
30,
365,
18,
438,
2080,
273,
599,
225,
468,
4389,
5079,
501,
309,
296,
7267,
11,
316,
501,
30,
364,
1363,
734,
16,
1363,
2
] |
def __init__(self, text=None, extension_elements=None, extension_attributes=None):
|
def __init__(self, extension_elements=None, extension_attributes=None, text=None):
|
def __init__(self, text=None, extension_elements=None, extension_attributes=None): self.text = text self.extension_elements = extension_elements or [] self.extension_attributes = extension_attributes or {}
|
0e09c4b085d770feafeab06d3d4b0c70de27aee9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/0e09c4b085d770feafeab06d3d4b0c70de27aee9/gdata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18,
955,
273,
977,
365,
18,
6447,
67,
6274,
273,
2710,
67,
6274,
578,
5378,
365,
18,
6447,
67,
4350,
273,
2710,
67,
4350,
578,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18,
955,
273,
977,
365,
18,
6447,
67,
6274,
273,
2710,
67,
6274,
578,
5378,
365,
18,
6447,
67,
4350,
273,
2710,
67,
4350,
578,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SyntaxError: 'return' with argument inside generator (<doctest test.test_generators.__test__.syntax[0]>, line 2)
|
SyntaxError: 'return' with argument inside generator (<doctest test.test_generators.__test__.syntax[0]>, line 3)
|
>>> def f():
|
28a84d25dec125aee43f67de6ecc4350d2c32d13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/28a84d25dec125aee43f67de6ecc4350d2c32d13/test_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.send_header("Content-type", 'image/text')
|
self.send_header("Content-type", 'text/plain')
|
def send_head(self): self.send_response(200) if self.path[-4:] == '.png': self.send_header("Content-type", 'image/png') elif self.path[-4:] == '.txt': self.send_header("Content-type", 'image/text') elif self.path[-5:] == '.sobj': self.send_header("Content-type", 'application/sobj') else: self.send_header("Content-type", 'text/html')
|
de748b8873772578453cd61c4e08bb9df0670b50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/de748b8873772578453cd61c4e08bb9df0670b50/server1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1978,
12,
2890,
4672,
365,
18,
4661,
67,
2740,
12,
6976,
13,
309,
365,
18,
803,
18919,
24,
26894,
422,
2418,
6446,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
2730,
19,
6446,
6134,
1327,
365,
18,
803,
18919,
24,
26894,
422,
2418,
5830,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
955,
19,
7446,
6134,
1327,
365,
18,
803,
18919,
25,
26894,
422,
2418,
2048,
441,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
3685,
19,
2048,
441,
6134,
469,
30,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
955,
19,
2620,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1978,
12,
2890,
4672,
365,
18,
4661,
67,
2740,
12,
6976,
13,
309,
365,
18,
803,
18919,
24,
26894,
422,
2418,
6446,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
2730,
19,
6446,
6134,
1327,
365,
18,
803,
18919,
24,
26894,
422,
2418,
5830,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
955,
19,
7446,
6134,
1327,
365,
18,
803,
18919,
25,
26894,
422,
2418,
2048,
441,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
3685,
19,
2048,
441,
6134,
469,
30,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
296,
955,
19,
2620,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def onchange_partner_id(self, cr, uid, ids, part, event_id, email=False):
|
def onchange_partner_id(self, cr, uid, ids, part, event_id):
|
def onchange_partner_id(self, cr, uid, ids, part, event_id, email=False):#override function for partner name. data={} data['badge_partner']=data['partner_address_id']=data['partner_invoice_id']=data['email_from']=data['badge_title']=data['badge_name']=False if not part: return {'value':data}
|
0950bacc7dc49c68a2af5495c90616869db012de /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/0950bacc7dc49c68a2af5495c90616869db012de/event.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1087,
16,
871,
67,
350,
16,
2699,
33,
8381,
4672,
7,
10601,
445,
364,
19170,
508,
18,
501,
12938,
501,
3292,
21245,
67,
31993,
3546,
33,
892,
3292,
31993,
67,
2867,
67,
350,
3546,
33,
892,
3292,
31993,
67,
16119,
67,
350,
3546,
33,
892,
3292,
3652,
67,
2080,
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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,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1087,
16,
871,
67,
350,
16,
2699,
33,
8381,
4672,
7,
10601,
445,
364,
19170,
508,
18,
501,
12938,
501,
3292,
21245,
67,
31993,
3546,
33,
892,
3292,
31993,
67,
2867,
67,
350,
3546,
33,
892,
3292,
31993,
67,
16119,
67,
350,
3546,
33,
892,
3292,
3652,
67,
2080,
3546,
33,
892,
3292,
21245,
67,
2649,
3546,
33,
892,
3292,
21245,
67,
529,
3546,
33,
8381,
309,
486,
1087,
30,
327,
13666,
1132,
4278,
892,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.ui.configbool('notify', 'test', True):
|
if self.test:
|
def fix_sender(sender): '''try to make message have proper sender.'''
|
fe4d7ee89491fa2e41d35f218205af0fd40dd232 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/fe4d7ee89491fa2e41d35f218205af0fd40dd232/notify.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
15330,
12,
15330,
4672,
9163,
698,
358,
1221,
883,
1240,
5338,
5793,
1093,
6309,
2,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
15330,
12,
15330,
4672,
9163,
698,
358,
1221,
883,
1240,
5338,
5793,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
y = self.n % 100000 return x * 1000000000 + slidenum * 100000 + y SnglInspiralID = ilwd.get_ilwdchar_class(u"sngl_inspiral", u"event_id")
|
return SnglInspiralID(x * 1000000000 + row.get_slidenum() * 100000 + y)
|
def new(self, row): self.n += 1 x, slidenum, y = row.get_id_parts() x = 100000000 + (self.n // 100000) y = self.n % 100000 return x * 1000000000 + slidenum * 100000 + y
|
be9b9739ea2d69dc22f3fd6b1ea85de9590ee4f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3589/be9b9739ea2d69dc22f3fd6b1ea85de9590ee4f2/lsctables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1027,
4672,
365,
18,
82,
1011,
404,
619,
16,
2020,
350,
7924,
16,
677,
273,
1027,
18,
588,
67,
350,
67,
6019,
1435,
619,
273,
2130,
9449,
397,
261,
2890,
18,
82,
368,
25259,
13,
677,
273,
365,
18,
82,
738,
25259,
327,
619,
380,
15088,
3784,
397,
2020,
350,
7924,
380,
25259,
397,
677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1027,
4672,
365,
18,
82,
1011,
404,
619,
16,
2020,
350,
7924,
16,
677,
273,
1027,
18,
588,
67,
350,
67,
6019,
1435,
619,
273,
2130,
9449,
397,
261,
2890,
18,
82,
368,
25259,
13,
677,
273,
365,
18,
82,
738,
25259,
327,
619,
380,
15088,
3784,
397,
2020,
350,
7924,
380,
25259,
397,
677,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 "".join(["'",self.value, "'\n"])
|
return "".join([" \"",self.value, "\"\n"])
|
def _printNode(self): return "".join(["'",self.value, "'\n"])
|
8ef6b38c10a7b3aa507d2e8ae3e7fe155e46b6ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/8ef6b38c10a7b3aa507d2e8ae3e7fe155e46b6ae/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
907,
12,
2890,
4672,
327,
1408,
18,
5701,
3816,
5187,
3113,
2890,
18,
1132,
16,
2491,
64,
82,
6,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
64,
82,
6,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
title=u"Repeat every",
|
title=_("Repeat every"),
|
def __init__(self, context, request): self.context = context self.request = request
|
dbb6cf63d16957869e0222e8920e738b557b5d51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/dbb6cf63d16957869e0222e8920e738b557b5d51/cal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
365,
18,
2472,
273,
819,
365,
18,
2293,
273,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
365,
18,
2472,
273,
819,
365,
18,
2293,
273,
590,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cls.dprint("scanning %s" % mode)
|
def scanProtocol(cls, plugins, url): """Scan for url protocol match. Determine if the protocol is enough to specify the major mode. This generally happens only when the major mode is a client of a specific server and not a generic editor. (E.g. MPDMode)
|
fd1f7a2be2dd8408fb50e87e8b5014a7df86d065 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/fd1f7a2be2dd8408fb50e87e8b5014a7df86d065/major.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
5752,
12,
6429,
16,
4799,
16,
880,
4672,
3536,
7972,
364,
880,
1771,
845,
18,
225,
10229,
309,
326,
1771,
353,
7304,
358,
4800,
326,
7888,
1965,
18,
1220,
19190,
10555,
1338,
1347,
326,
7888,
1965,
353,
279,
1004,
434,
279,
2923,
1438,
471,
486,
279,
5210,
4858,
18,
225,
261,
41,
18,
75,
18,
13480,
40,
2309,
13,
2,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
5752,
12,
6429,
16,
4799,
16,
880,
4672,
3536,
7972,
364,
880,
1771,
845,
18,
225,
10229,
309,
326,
1771,
353,
7304,
358,
4800,
326,
7888,
1965,
18,
1220,
19190,
10555,
1338,
1347,
326,
7888,
1965,
353,
279,
1004,
434,
279,
2923,
1438,
471,
486,
279,
5210,
4858,
18,
225,
261,
41,
18,
75,
18,
13480,
40,
2309,
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
] |
|
return ("0" * width) + str(int)
|
return ("0" * (width - len(str(int))) ) + str(int)
|
def zeroPad(self, int, width = 1): """ Pads an integer 'int' with zeroes, up to width 'width'. Returns a string. """ if int < 10 ** width: return ("0" * width) + str(int) else: return str(int)
|
23a1159f09573f9636edd443ad06eec78544c41f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/23a1159f09573f9636edd443ad06eec78544c41f/logging.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3634,
14878,
12,
2890,
16,
509,
16,
1835,
273,
404,
4672,
3536,
453,
17318,
392,
3571,
296,
474,
11,
598,
3634,
281,
16,
731,
358,
1835,
296,
2819,
10332,
2860,
279,
533,
18,
3536,
309,
509,
411,
1728,
2826,
1835,
30,
327,
7566,
20,
6,
380,
261,
2819,
300,
562,
12,
701,
12,
474,
20349,
262,
397,
609,
12,
474,
13,
469,
30,
327,
609,
12,
474,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3634,
14878,
12,
2890,
16,
509,
16,
1835,
273,
404,
4672,
3536,
453,
17318,
392,
3571,
296,
474,
11,
598,
3634,
281,
16,
731,
358,
1835,
296,
2819,
10332,
2860,
279,
533,
18,
3536,
309,
509,
411,
1728,
2826,
1835,
30,
327,
7566,
20,
6,
380,
261,
2819,
300,
562,
12,
701,
12,
474,
20349,
262,
397,
609,
12,
474,
13,
469,
30,
327,
609,
12,
474,
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
] |
if self.title_prefix: return self.title_prefix + ' ' + self['title']
|
if self['title_prefix']: return self['title_prefix'] + ' ' + self['title']
|
def get_title(self): if self.title_prefix: return self.title_prefix + ' ' + self['title'] else: return self['title']
|
c32af9bb5fe112b6226d957e11908424adf37524 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/c32af9bb5fe112b6226d957e11908424adf37524/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2649,
12,
2890,
4672,
309,
365,
3292,
2649,
67,
3239,
3546,
30,
327,
365,
3292,
2649,
67,
3239,
3546,
397,
296,
296,
397,
365,
3292,
2649,
3546,
469,
30,
327,
365,
3292,
2649,
3546,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2649,
12,
2890,
4672,
309,
365,
3292,
2649,
67,
3239,
3546,
30,
327,
365,
3292,
2649,
67,
3239,
3546,
397,
296,
296,
397,
365,
3292,
2649,
3546,
469,
30,
327,
365,
3292,
2649,
3546,
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
] |
sage: R.set_default_prec(prec)
|
sage: R.<q> = QQ[['q']] sage: R.set_default_prec(5) sage: f = 1 + q + q^2 + O(q^50) sage: f/10 1/10 + 1/10*q + 1/10*q^2 + O(q^50) sage: f/(10+q) 1/10 + 9/100*q + 91/1000*q^2 - 91/10000*q^3 + 91/100000*q^4 + O(q^5)
|
def __invert__(self): """ Inverse of the power series, which we assume to have nonzero constant term so that the inverse is again a power series.
|
40f3d9145118e324dcadda3d7dfd8365723ad073 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/40f3d9145118e324dcadda3d7dfd8365723ad073/power_series_ring_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
3536,
657,
2476,
434,
326,
7212,
4166,
16,
1492,
732,
6750,
358,
1240,
16966,
5381,
2481,
1427,
716,
326,
8322,
353,
3382,
279,
7212,
4166,
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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,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
3536,
657,
2476,
434,
326,
7212,
4166,
16,
1492,
732,
6750,
358,
1240,
16966,
5381,
2481,
1427,
716,
326,
8322,
353,
3382,
279,
7212,
4166,
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
] |
''' else: raise Exception, "Unknown vmType in hints: %s"%vmType cfgstr = """ disk=['tap:qcow:%s,xvda1,w'] vif = [ 'mac=%s' ]
|
device_model='/usr/lib/xen/bin/qemu-dm' sdl=0 vnc=1 vnclisten='0.0.0.0' vncdisplay=%i vncpasswd='' stdvga=0 serial='pty' usbdevice='tablet' shadow_memory=8 disk=['tap:qcow:%s,hda,w'] vif = [ 'type=ioemu,bridge=xenbr0,mac=%s' ]
|
def createXenConfig(self, vmName, image, macAddr, memory, cores, hints): fn = os.path.join("/tmp", vmName) vmType = hints.get('vmtype', self.defaultVmType) print 'starting vm with type: ', vmType bootstr = '' if vmType == 'pvgrub': # FIXME: untested, requires Xen 3.3 bootstr = '''
|
dc2625d190a002385b816fa7373a198643dabce1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/dc2625d190a002385b816fa7373a198643dabce1/xenpv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
60,
275,
809,
12,
2890,
16,
4268,
461,
16,
1316,
16,
5318,
3178,
16,
3778,
16,
15355,
16,
13442,
4672,
2295,
273,
1140,
18,
803,
18,
5701,
2932,
19,
5645,
3113,
4268,
461,
13,
4268,
559,
273,
13442,
18,
588,
2668,
3489,
723,
2187,
365,
18,
1886,
22143,
559,
13,
1172,
296,
18526,
4268,
598,
618,
30,
2265,
4268,
559,
4835,
701,
273,
875,
309,
4268,
559,
422,
296,
25224,
3197,
373,
4278,
468,
9852,
30,
640,
88,
3149,
16,
4991,
1139,
275,
890,
18,
23,
4835,
701,
273,
9163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
60,
275,
809,
12,
2890,
16,
4268,
461,
16,
1316,
16,
5318,
3178,
16,
3778,
16,
15355,
16,
13442,
4672,
2295,
273,
1140,
18,
803,
18,
5701,
2932,
19,
5645,
3113,
4268,
461,
13,
4268,
559,
273,
13442,
18,
588,
2668,
3489,
723,
2187,
365,
18,
1886,
22143,
559,
13,
1172,
296,
18526,
4268,
598,
618,
30,
2265,
4268,
559,
4835,
701,
273,
875,
309,
4268,
559,
422,
296,
25224,
3197,
373,
4278,
468,
9852,
30,
640,
88,
3149,
16,
4991,
1139,
275,
890,
18,
23,
4835,
701,
273,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(Numeric.Int)
|
ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(numeric_int)
|
def resample(self): "resample() randomly draws a set of points equal in size to the original set from the cached data for bootstrapping" assert hasattr(self, "saved_xarray"), "resampling not set up yet. Call setup_resampling() first." ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(Numeric.Int) self.xarray=Numeric.take(self.saved_xarray, ranlist, -1) #take columns since vectors lie this way self.yarray=Numeric.take(self.saved_yarray, ranlist) self.firstpass=1
|
99ba19a1da6da5ace4f1a73e8ad0eb199155c09d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6028/99ba19a1da6da5ace4f1a73e8ad0eb199155c09d/fitting_toolkit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19220,
12,
2890,
4672,
315,
455,
1511,
1435,
20153,
30013,
279,
444,
434,
3143,
3959,
316,
963,
358,
326,
2282,
444,
628,
326,
3472,
501,
364,
7065,
1382,
6,
1815,
3859,
12,
2890,
16,
315,
14077,
67,
92,
1126,
6,
3631,
315,
455,
7639,
486,
444,
731,
4671,
18,
225,
3049,
3875,
67,
455,
7639,
1435,
1122,
1199,
18892,
1098,
33,
9902,
18,
74,
5807,
12,
2890,
18,
588,
67,
9188,
67,
1098,
12,
2890,
18,
1153,
1883,
17653,
2890,
18,
1153,
1883,
2934,
689,
388,
12,
5246,
67,
474,
13,
365,
18,
92,
1126,
33,
9902,
18,
22188,
12,
2890,
18,
14077,
67,
92,
1126,
16,
18892,
1098,
16,
300,
21,
13,
468,
22188,
2168,
3241,
10046,
328,
1385,
333,
4031,
365,
18,
93,
1126,
33,
9902,
18,
22188,
12,
2890,
18,
14077,
67,
93,
1126,
16,
18892,
1098,
13,
365,
18,
3645,
5466,
33,
21,
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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065,
1382,
6,
1815,
3859,
12,
2890,
16,
315,
14077,
67,
92,
1126,
6,
3631,
315,
455,
7639,
486,
444,
731,
4671,
18,
225,
3049,
3875,
67,
455,
7639,
1435,
1122,
1199,
18892,
1098,
33,
9902,
18,
74,
5807,
12,
2890,
18,
588,
67,
9188,
67,
1098,
12,
2890,
18,
1153,
1883,
17653,
2890,
18,
1153,
1883,
2934,
689,
388,
12,
5246,
67,
474,
13,
365,
18,
92,
1126,
33,
9902,
18,
22188,
12,
2890,
18,
14077,
67,
92,
1126,
16,
18892,
1098,
16,
300,
21,
13,
468,
22188,
2168,
3241,
10046,
2
] |
return ','.join([x.strip().lower() for x in b])
|
return ','.join([x.strip() for x in b])
|
def conv(astr): b = astr.split(',') return ','.join([x.strip().lower() for x in b])
|
f42b743431beed95b0b354e091133b66aecd50f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f42b743431beed95b0b354e091133b66aecd50f0/from_template.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6292,
12,
345,
313,
4672,
324,
273,
487,
313,
18,
4939,
12,
2187,
6134,
327,
3316,
18,
5701,
3816,
92,
18,
6406,
1435,
364,
619,
316,
324,
5717,
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,
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0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6292,
12,
345,
313,
4672,
324,
273,
487,
313,
18,
4939,
12,
2187,
6134,
327,
3316,
18,
5701,
3816,
92,
18,
6406,
1435,
364,
619,
316,
324,
5717,
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
] |
''' '''
|
"""Show state properties ZMI form."""
|
def manage_properties(self, REQUEST, manage_tabs_message=None): ''' ''' return self._properties_form(REQUEST, management_view='Properties', manage_tabs_message=manage_tabs_message, )
|
5e0af64cf3211c0187684bc75a3a6a665ab16b8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/5e0af64cf3211c0187684bc75a3a6a665ab16b8f/States.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4738,
12,
2890,
16,
12492,
16,
10680,
67,
16056,
67,
2150,
33,
7036,
4672,
3536,
5706,
919,
1790,
2285,
7492,
646,
12123,
327,
365,
6315,
4738,
67,
687,
12,
5519,
16,
11803,
67,
1945,
2218,
2297,
2187,
10680,
67,
16056,
67,
2150,
33,
12633,
67,
16056,
67,
2150,
16,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4738,
12,
2890,
16,
12492,
16,
10680,
67,
16056,
67,
2150,
33,
7036,
4672,
3536,
5706,
919,
1790,
2285,
7492,
646,
12123,
327,
365,
6315,
4738,
67,
687,
12,
5519,
16,
11803,
67,
1945,
2218,
2297,
2187,
10680,
67,
16056,
67,
2150,
33,
12633,
67,
16056,
67,
2150,
16,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
global DEBUG
|
def poll (timeout=0.0, map=None): global DEBUG if map is None: map = socket_map if map: r = []; w = []; e = [] for fd, obj in map.items(): if obj.readable(): r.append (fd) if obj.writable(): w.append (fd) r,w,e = select.select (r,w,e, timeout) if DEBUG: print r,w,e for fd in r: try: obj = map[fd] except KeyError: continue try: obj.handle_read_event() except ExitNow: raise ExitNow except: obj.handle_error() for fd in w: try: obj = map[fd] except KeyError: continue try: obj.handle_write_event() except ExitNow: raise ExitNow except: obj.handle_error()
|
54a6e305b3233526fb3f9f3687bf5baf0d7c53f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/54a6e305b3233526fb3f9f3687bf5baf0d7c53f7/asyncore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
309,
852,
30,
436,
273,
5378,
31,
341,
273,
5378,
31,
425,
273,
5378,
364,
5194,
16,
1081,
316,
852,
18,
3319,
13332,
309,
1081,
18,
11018,
13332,
436,
18,
6923,
261,
8313,
13,
309,
1081,
18,
15699,
13332,
341,
18,
6923,
261,
8313,
13,
436,
16,
91,
16,
73,
273,
2027,
18,
4025,
261,
86,
16,
91,
16,
73,
16,
2021,
13,
225,
309,
6369,
30,
1172,
436,
16,
91,
16,
73,
225,
364,
5194,
316,
436,
30,
775,
30,
1081,
273,
852,
63,
8313,
65,
1335,
4999,
30,
1324,
225,
775,
30,
1081,
18,
4110,
67,
896,
67,
2575,
1435,
1335,
9500,
8674,
30,
1002,
9500,
8674,
1335,
30,
1081,
18,
4110,
67,
1636,
1435,
225,
364,
5194,
316,
341,
30,
775,
30,
1081,
273,
852,
63,
8313,
65,
1335,
4999,
30,
1324,
225,
775,
30,
1081,
18,
4110,
67,
2626,
67,
2575,
1435,
1335,
9500,
8674,
30,
1002,
9500,
8674,
1335,
30,
1081,
18,
4110,
67,
1636,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
309,
852,
30,
436,
273,
5378,
31,
341,
273,
5378,
31,
425,
273,
5378,
364,
5194,
16,
1081,
316,
852,
18,
3319,
13332,
309,
1081,
18,
11018,
13332,
436,
18,
6923,
261,
8313,
13,
309,
1081,
18,
15699,
13332,
341,
18,
6923,
261,
8313,
13,
436,
16,
91,
16,
73,
273,
2027,
18,
4025,
261,
86,
16,
91,
16,
73,
16,
2021,
13,
225,
309,
6369,
30,
1172,
436,
16,
91,
16,
73,
225,
364,
5194,
316,
436,
30,
775,
30,
1081,
273,
852,
63,
8313,
65,
1335,
4999,
30,
1324,
225,
775,
30,
1081,
18,
2
] |
|
headers = [], functions = [], types = [], libs = [],
|
headers = [], functions = [], declarations = [], types = [], libs = [],
|
def createConfigFile(conf, config_file, config_pre = '', config_post = '', headers = [], functions = [], types = [], libs = [], custom_tests = [], extra_items = []): ''' create a configuration file, with options config_file: which file to create config_pre: first part of the config file config_post: last part of the config file headers: header files to check, in the form of a list of ('file', 'HAVE_FILE', 'c'/'c++') functions: functions to check, in the form of a list of ('func', 'HAVE_func', 'include lines'/None) types: types to check, in the form of a list of ('type', 'HAVE_TYPE', 'includelines'/None) libs: libraries to check, in the form of a list of ('lib', 'HAVE_LIB', 'LIB_NAME'). HAVE_LIB will be set if 'lib' exists, or any of the libs exists if 'lib' is a list of libs. Optionally, user can provide another key LIB_NAME, that will be set to the detected lib (or None otherwise). custom_tests: extra tests to perform, in the form of a list of (test (True/False), 'key', 'desc', 'true config line', 'false config line') If the last two are ignored, '#define key 1' '/*#undef key */' will be used. extra_items: extra configuration lines, in the form of a list of ('config', 'description') Return: The result of each test, as a dictioanry of res['XXX'] = True/False XXX are keys defined in each argument. ''' cont = config_pre + '\n' result = {} # add to this string, in appropriate format def configString(lines, desc=''): text = '' if lines.strip() != '': if desc != '': text += '/* ' + desc + ' */\n' text += lines + '\n\n' return text # # headers for header in headers: description = "Define to 1 if you have the <%s> header file." % header[0] if (header[2] == 'c' and conf.CheckCHeader(header[0])) or \ (header[2] == 'cxx' and conf.CheckCXXHeader(header[0])): result[header[1]] = 1 cont += configString('#define %s 1' % header[1], desc = description) else: result[header[1]] = 0 cont += configString('/* #undef %s */' % header[1], desc = description) # functions for func in functions: description = "Define to 1 if you have the `%s' function." % func[0] if conf.CheckFunc(func[0], header=func[2]): result[func[1]] = 1 cont += configString('#define %s 1' % func[1], desc = description) else: result[func[1]] = 0 cont += configString('/* #undef %s */' % func[1], desc = description) # types for t in types: description = "Define to 1 if you have the `%s' type." % t[0] if conf.CheckType(t[0], includes=t[2]): result[t[1]] = 1 cont += configString('#define %s 1' % t[1], desc = description) else: result[t[1]] = 0 cont += configString('/* #undef %s */' % t[1], desc = description) # libraries for lib in libs: description = "Define to 1 if you have the `%s' library (-l%s)." % (lib[0], lib[0]) if type(lib[0]) is type(''): lib_list = [lib[0]] else: lib_list = lib[0] # check if any of the lib exists result[lib[1]] = 0 # if user want the name of the lib detected if len(lib) == 3: result[lib[2]] = None for ll in lib_list: if conf.CheckLib(ll): result[lib[1]] = 1 if len(lib) == 3: result[lib[2]] = ll cont += configString('#define %s 1' % lib[1], desc = description) break # if not found if not result[lib[1]]: cont += configString('/* #undef %s */' % lib[1], desc = description) # custom tests for test in custom_tests: if test[0]: result[test[1]] = 1 if len(test) == 3: cont += configString('#define %s 1' % test[1], desc = test[2]) else: cont += configString(test[3], desc = test[2]) else: result[test[1]] = 0 if len(test) == 3: cont += configString('/* #undef %s */' % test[1], desc = test[2]) else: cont += configString(test[4], desc = test[2]) # extra items (no key is returned) for item in extra_items: cont += configString(item[0], desc = item[1]) # add the last part cont += '\n' + config_post + '\n' # write to file writeToFile(config_file, cont) return result
|
3dc11ec08e7b5a25e2e24586fec7f2c480af0a69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/3dc11ec08e7b5a25e2e24586fec7f2c480af0a69/scons_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
13705,
12,
3923,
16,
642,
67,
768,
16,
642,
67,
1484,
273,
10226,
642,
67,
2767,
273,
10226,
1607,
273,
5378,
16,
4186,
273,
5378,
16,
12312,
273,
5378,
16,
1953,
273,
5378,
16,
15042,
273,
5378,
16,
1679,
67,
16341,
273,
5378,
16,
2870,
67,
3319,
273,
5378,
4672,
9163,
752,
279,
1664,
585,
16,
598,
702,
642,
67,
768,
30,
1492,
585,
358,
752,
642,
67,
1484,
30,
1122,
1087,
434,
326,
642,
585,
642,
67,
2767,
30,
1142,
1087,
434,
326,
642,
585,
1607,
30,
1446,
1390,
358,
866,
16,
316,
326,
646,
434,
279,
666,
434,
7707,
768,
2187,
296,
19191,
3412,
67,
3776,
2187,
296,
71,
11,
2473,
71,
9904,
6134,
4186,
30,
4186,
358,
866,
16,
316,
326,
646,
434,
279,
666,
434,
7707,
644,
2187,
296,
19191,
3412,
67,
644,
2187,
296,
6702,
2362,
11,
19,
7036,
13,
1953,
30,
1953,
358,
866,
16,
316,
326,
646,
434,
279,
666,
434,
7707,
723,
2187,
296,
19191,
3412,
67,
2399,
2187,
296,
267,
830,
1100,
14567,
11,
19,
7036,
13,
15042,
30,
14732,
358,
866,
16,
316,
326,
646,
434,
279,
666,
434,
7707,
2941,
2187,
296,
19191,
3412,
67,
14484,
2187,
296,
14484,
67,
1985,
16063,
21926,
3412,
67,
14484,
903,
506,
444,
309,
296,
2941,
11,
1704,
16,
578,
1281,
434,
326,
15042,
1704,
309,
296,
2941,
11,
353,
279,
666,
434,
15042,
18,
20720,
16,
729,
848,
5615,
4042,
498,
23983,
67,
1985,
16,
716,
903,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
13705,
12,
3923,
16,
642,
67,
768,
16,
642,
67,
1484,
273,
10226,
642,
67,
2767,
273,
10226,
1607,
273,
5378,
16,
4186,
273,
5378,
16,
12312,
273,
5378,
16,
1953,
273,
5378,
16,
15042,
273,
5378,
16,
1679,
67,
16341,
273,
5378,
16,
2870,
67,
3319,
273,
5378,
4672,
9163,
752,
279,
1664,
585,
16,
598,
702,
642,
67,
768,
30,
1492,
585,
358,
752,
642,
67,
1484,
30,
1122,
1087,
434,
326,
642,
585,
642,
67,
2767,
30,
1142,
1087,
434,
326,
642,
585,
1607,
30,
1446,
1390,
358,
866,
16,
316,
326,
646,
434,
279,
666,
434,
7707,
768,
2187,
296,
19191,
3412,
67,
3776,
2187,
296,
71,
11,
2473,
71,
9904,
6134,
4186,
2
] |
elif sys.platform == "linux2":
|
elif sys.platform == "linux2" or sys.platform == "freebsd4" or sys.platform == "freebsd5":
|
def checkMySQL(options): if sys.platform == "win32": MySQL_LIBSEARCHPATH = [ sys.prefix + "\Libs\mysqlclient*.lib" ] MySQL_INCSEARCHPATH = [ sys.prefix + "\include\mysql.h" ] elif sys.platform == "linux2": MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so" ] MySQL_LIBSTATICSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.a", \ "/usr/local/lib/mysql/libmysqlclient*.a", \ "/usr/lib/libmysqlclient*.a", \ "/usr/lib/mysql/libmysqlclient*.a" ] MySQL_INCSEARCHPATH = [ \ "/usr/local/include/mysql.h", \ "/usr/local/include/mysql/mysql.h", \ "/usr/include/mysql.h", \ "/usr/include/mysql/mysql.h" ] elif sys.platform == "freebsd4" or sys.platform == "freebsd5": MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so" ] MySQL_LIBSTATICSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.a", \ "/usr/local/lib/mysql/libmysqlclient*.a", \ "/usr/lib/libmysqlclient*.a", \ "/usr/lib/mysql/libmysqlclient*.a" ] MySQL_INCSEARCHPATH = [ \ "/usr/local/include/mysql.h", \ "/usr/local/include/mysql/mysql.h", \ "/usr/include/mysql.h", \ "/usr/include/mysql/mysql.h" ] else: sys.stdout.write("ERROR: Unknown platform %s to checkMySQL()\n" % sys.platform ) sys.exit() # if --static if options.staticlink: MySQL_LIBSEARCHPATH = MySQL_LIBSTATICSEARCHPATH global mysql_libpath global mysql_libfile mysql_libfile, mysql_libpath = findFile( MySQL_LIBSEARCHPATH ) if ( mysql_libfile ): sys.stdout.write("%s\n" % os.path.join( py_libpath, py_libfile ) ) else: sys.stdout.write("Not Found!\n") sys.exit() global mysql_incpath mysql_incfile = None sys.stdout.write( "Searching for MySQL includes... " ) mysql_incfile, mysql_incpath = findFile( MySQL_INCSEARCHPATH ) if ( mysql_incfile ): sys.stdout.write( "%s\n" % mysql_incpath ) else: sys.stdout.write("Not Found!\n") sys.exit() return True
|
d980221e60ef0a27e1c9e50d015876701de198d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d980221e60ef0a27e1c9e50d015876701de198d2/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
6,
308,
13485,
67,
23213,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
6702,
64,
12527,
18,
76,
6,
308,
1327,
2589,
18,
9898,
422,
315,
20132,
22,
6,
578,
2589,
18,
9898,
422,
315,
9156,
2038,
72,
24,
6,
578,
2589,
18,
9898,
422,
315,
9156,
2038,
72,
25,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
2048,
6,
308,
13485,
67,
14484,
22741,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
12527,
2625,
11146,
69,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
69,
3113,
521,
2206,
13640,
19,
2941,
19,
2941,
12527,
2625,
11146,
69,
3113,
521,
2206,
13640,
19,
2941,
19,
12527,
19,
2941,
12527,
2625,
11146,
69,
6,
308,
13485,
67,
23213,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
6702,
19,
12527,
18,
76,
3113,
521,
2206,
13640,
19,
3729,
19,
6702,
19,
12527,
19,
12527,
18,
76,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
6,
308,
13485,
67,
23213,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
6702,
64,
12527,
18,
76,
6,
308,
1327,
2589,
18,
9898,
422,
315,
20132,
22,
6,
578,
2589,
18,
9898,
422,
315,
9156,
2038,
72,
24,
6,
578,
2589,
18,
9898,
422,
315,
9156,
2038,
72,
25,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
2941,
12527,
2625,
11146,
2048,
3113,
521,
2206,
13640,
19,
3729,
19,
2941,
19,
12527,
19,
2941,
12527,
2
] |
return 1
|
return True
|
def response( char, args, target ): if not char.socket.hastag( 'peacemaking_instrument' ): return 0 # you can only target chars if not target.char: return 1 instrument = wolfpack.finditem( char.socket.gettag( 'peacemaking_instrument' ) ) if not instrument: return 0 if skills.skilltable[ PEACEMAKING ][ skills.UNHIDE ] and char.hidden: char.removefromview() char.hidden = False char.update() char.socket.deltag( 'peacemaking_instrument' ) char.socket.settag( 'skill_delay', int( wolfpack.time.currenttime() + PEACE_DELAY ) ) # if target him/her self : standard (regional) mode # anyone including npcs can re-target and start fight peace_range = skills.musicianship.bard_range( char ) if char == target.char: result = char.checkskill( MUSICIANSHIP, 0, 1000 ) musicianship.play_instrument( char, instrument, result ) # fail to play well if not result: char.socket.clilocmessage( 500612, "", 0x3b2, 3 ) return 1 result = char.checkskill( PEACEMAKING, 0, 1000 ) # fail on peacemaking if not result: char.socket.clilocmessage( 500613, "", 0x3b2, 3 ) return 1 char.socket.clilocmessage( 500615, "", 0x3b2, 3 ) creatures = wolfpack.chars( char.pos.x, char.pos.y, char.pos.map, peace_range ) for creature in creatures: if char.canreach( creature, peace_range ): # stop combat # player chars if creature.socket: creature.socket.clilocmessage( 500616, "", 0x3b2, 3 ) # target on an npc - effect will go some duration else: if char.canreach( target.char, peace_range ): char.socket.clilocmessage( 500618, "", 0x3b2, 3 ) return 1 if not target.char.npc: return 1 # bard difficulty - later, we should get these from the xml defs. loskill = 0 hiskill = 1000 result = char.checkskill( MUSICIANSHIP, loskill, hiskill ) musicianship.play_instrument( char, instrument, result ) if not result: char.socket.clilocmessage( 500612, "", 0x3b2, 3 ) return 1 result = char.checkskill( PEACEMAKING, loskill, hiskill ) if not result: char.socket.clilocmessage( 500613, "", 0x3b2, 3 ) return 1 # FIXME : duration ( 5 sec ~ 65 sec ) duration = 5000 + char.skill[ PEACEMAKING ] * 60 # stop combat # if npc, do not start combat for the duration while not attacked creature.settag( 'peacemaking', 1 ) creature.addtimer( duration, release, [] ) return 1
|
ad2fb5c1af41304c615892963957d7cff3e3439e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ad2fb5c1af41304c615892963957d7cff3e3439e/peacemaking.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
18,
7814,
18,
76,
689,
346,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
30,
327,
374,
468,
1846,
848,
1338,
1018,
5230,
309,
486,
1018,
18,
3001,
30,
327,
1053,
10353,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1149,
18,
7814,
18,
588,
2692,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
262,
309,
486,
10353,
30,
327,
374,
225,
309,
15667,
87,
18,
7771,
737,
2121,
63,
16628,
6312,
5535,
47,
1360,
308,
63,
15667,
87,
18,
2124,
44,
10385,
308,
471,
1149,
18,
6345,
30,
1149,
18,
4479,
2080,
1945,
1435,
1149,
18,
6345,
273,
1083,
1149,
18,
2725,
1435,
225,
1149,
18,
7814,
18,
3771,
2692,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
1149,
18,
7814,
18,
542,
2692,
12,
296,
7771,
737,
67,
10790,
2187,
509,
12,
341,
355,
74,
2920,
18,
957,
18,
2972,
957,
1435,
397,
16628,
6312,
67,
26101,
262,
262,
225,
468,
309,
1018,
366,
381,
19,
1614,
365,
294,
4529,
261,
6858,
287,
13,
1965,
468,
1281,
476,
6508,
1130,
2143,
848,
283,
17,
3299,
471,
787,
284,
750,
2804,
623,
67,
3676,
273,
15667,
87,
18,
81,
407,
14463,
634,
5310,
18,
70,
1060,
67,
3676,
12,
1149,
262,
309,
1149,
422,
1018,
18,
3001,
30,
563,
273,
1149,
18,
1893,
7771,
737,
12,
490,
57,
2320,
7266,
1258,
20101,
16,
374,
16,
4336,
262,
312,
407,
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,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
18,
7814,
18,
76,
689,
346,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
30,
327,
374,
468,
1846,
848,
1338,
1018,
5230,
309,
486,
1018,
18,
3001,
30,
327,
1053,
10353,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1149,
18,
7814,
18,
588,
2692,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
262,
309,
486,
10353,
30,
327,
374,
225,
309,
15667,
87,
18,
7771,
737,
2121,
63,
16628,
6312,
5535,
47,
1360,
308,
63,
15667,
87,
18,
2124,
44,
10385,
308,
471,
1149,
18,
6345,
30,
1149,
18,
4479,
2080,
1945,
1435,
1149,
18,
6345,
273,
1083,
1149,
18,
2725,
2
] |
job_file.write("alarm(%s)\n\n" % (timeout))
|
job_file.write("alarm(%s)\n\n" % (job.timeout))
|
def write_job_file(self, job): """ Writes out the job file to be executed to disk. """ parsed_file = preparse_file(job.code, magic=True, do_time=False, ignore_prompts=False)
|
b466d7c5d4d984a2d52e1276e93598fcbc20a9d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b466d7c5d4d984a2d52e1276e93598fcbc20a9d1/dsage_worker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4688,
67,
768,
12,
2890,
16,
1719,
4672,
3536,
30053,
596,
326,
1719,
585,
358,
506,
7120,
358,
4234,
18,
225,
3536,
225,
2707,
67,
768,
273,
675,
2670,
67,
768,
12,
4688,
18,
710,
16,
8146,
33,
5510,
16,
741,
67,
957,
33,
8381,
16,
2305,
67,
17401,
1092,
33,
8381,
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,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596,
326,
1719,
585,
358,
506,
7120,
358,
4234,
18,
225,
3536,
225,
2707,
67,
768,
273,
675,
2670,
67,
768,
12,
4688,
18,
710,
16,
8146,
33,
5510,
16,
741,
67,
957,
33,
8381,
16,
2305,
67,
17401,
1092,
33,
8381,
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
] |
return "Name: {0} - Type: {1}".format(self.name, self.type)
|
return u"Name: {0} - Type: {1}".format(self.name, self.type)
|
def __unicode__(self): return "Name: {0} - Type: {1}".format(self.name, self.type)
|
e0c246b75fbd7beea69fbdb5057dc22d60db6a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7374/e0c246b75fbd7beea69fbdb5057dc22d60db6a17/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
315,
461,
30,
288,
20,
97,
300,
1412,
30,
288,
21,
1532,
18,
2139,
12,
2890,
18,
529,
16,
365,
18,
723,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
315,
461,
30,
288,
20,
97,
300,
1412,
30,
288,
21,
1532,
18,
2139,
12,
2890,
18,
529,
16,
365,
18,
723,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not node: raise ValueError
|
if not node: raise ValueError
|
def makepatch(patch, idx, total): desc = [] node = None body = '' for line in patch: if line.startswith('#'): if line.startswith('# Node ID'): node = line.split()[-1] continue if (line.startswith('diff -r') or line.startswith('diff --git')): break desc.append(line) if not node: raise ValueError
|
181795b80d1b0b85309defa117d6bb0e2048791c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/181795b80d1b0b85309defa117d6bb0e2048791c/patchbomb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18,
17514,
1918,
2668,
7,
2029,
1599,
11,
4672,
756,
273,
980,
18,
4939,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18,
17514,
1918,
2668,
7,
2029,
1599,
11,
4672,
756,
273,
980,
18,
4939,
1435,
18919,
21,
65,
1324,
309,
261,
1369,
18,
17514,
1918,
2668,
5413,
300,
86,
6134,
578,
980,
18,
17514,
1918,
2668,
5413,
1493,
6845,
26112,
30,
898,
3044,
18,
6923,
12,
1369,
13,
309,
486,
756,
30,
1002,
2068,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ki[0, q] = s0 + sum([ kj[0,t] for t in range(q+1) ]) ki[1, q] = s1 + sum([ kj[1,t] for t in range(q+1) ])
|
ki[0, q] = s0 + sum([ kj[0, t] for t in range(q+1) ]) ki[1, q] = s1 + sum([ kj[1, t] for t in range(q+1) ])
|
def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$. TESTS: sage: sr = mq.SR(10,4,4,8, star=True, allow_zero_inversions=True) sage: ki = sr.state_array() sage: for i in range(10): ... ki = sr.key_schedule(ki,i+1) sage: print sr.hex_str_matrix(ki) B4 3E 23 6F EF 92 E9 8F 5B E2 51 18 CB 11 CF 8E """ if i < 0: raise TypeError, "i must be >= i"
|
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
18,
225,
22130,
55,
30,
272,
410,
30,
9133,
273,
18327,
18,
10090,
12,
2163,
16,
24,
16,
24,
16,
28,
16,
10443,
33,
5510,
16,
1699,
67,
7124,
67,
267,
10169,
33,
5510,
13,
272,
410,
30,
29027,
273,
9133,
18,
2019,
67,
1126,
1435,
272,
410,
30,
364,
277,
316,
1048,
12,
2163,
4672,
1372,
225,
29027,
273,
9133,
18,
856,
67,
10676,
12,
15299,
16,
77,
15,
21,
13,
272,
410,
30,
1172,
9133,
18,
7118,
67,
701,
67,
5667,
12,
15299,
13,
605,
24,
890,
41,
10213,
1666,
42,
18162,
16146,
512,
29,
1725,
42,
1381,
38,
512,
22,
21119,
6549,
21262,
4648,
6123,
1725,
41,
3536,
309,
277,
411,
374,
30,
1002,
3580,
16,
315,
77,
1297,
506,
1545,
277,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18327,
18,
10090,
12,
2163,
16,
24,
16,
24,
16,
28,
16,
10443,
33,
5510,
16,
1699,
67,
7124,
67,
267,
10169,
33,
5510,
13,
272,
410,
30,
29027,
273,
9133,
18,
2019,
67,
1126,
1435,
272,
410,
30,
364,
277,
316,
1048,
12,
2163,
4672,
1372,
225,
29027,
273,
9133,
18,
856,
67,
10676,
12,
15299,
16,
77,
15,
21,
13,
272,
410,
30,
1172,
9133,
18,
7118,
67,
2
] |
else: self._storeObject(object)
|
def accept(self, event, object, method, extraArgs=[], persistent=1): """ accept(self, string, DirectObject, Function, List, Boolean)
|
2deb24b2331562a15f2b9d663a1784141f12c11e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/2deb24b2331562a15f2b9d663a1784141f12c11e/Messenger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
871,
16,
733,
16,
707,
16,
2870,
2615,
22850,
6487,
9195,
33,
21,
4672,
3536,
2791,
12,
2890,
16,
533,
16,
9908,
921,
16,
4284,
16,
987,
16,
3411,
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,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195,
33,
21,
4672,
3536,
2791,
12,
2890,
16,
533,
16,
9908,
921,
16,
4284,
16,
987,
16,
3411,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
for i in xrange(9): try: os.unlink(dbpath + "__db.00%d" % i) except OSError: pass
|
unlinkRpmdbCache(dbpath)
|
def openDB4(self): import bsddb dbpath = self.buildroot + self.rpmdbpath makeDirs(dbpath) for i in xrange(9): try: os.unlink(dbpath + "__db.00%d" % i) except OSError: pass flag = "c" self.basenames_db = bsddb.hashopen(dbpath + "Basenames", flag) self.conflictname_db = bsddb.hashopen(dbpath + "Conflictname", flag) self.dirnames_db = bsddb.btopen(dbpath + "Dirnames", flag) self.filemd5s_db = bsddb.hashopen(dbpath + "Filemd5s", flag) self.group_db = bsddb.hashopen(dbpath + "Group", flag) self.installtid_db = bsddb.btopen(dbpath + "Installtid", flag) self.name_db = bsddb.hashopen(dbpath + "Name", flag) self.packages_db = bsddb.hashopen(dbpath + "Packages", flag) self.providename_db = bsddb.hashopen(dbpath + "Providename", flag) self.provideversion_db = bsddb.btopen(dbpath + "Provideversion", flag) self.requirename_db = bsddb.hashopen(dbpath + "Requirename", flag) self.requireversion_db = bsddb.btopen(dbpath + "Requireversion", flag) self.sha1header_db = bsddb.hashopen(dbpath + "Sha1header", flag) self.sigmd5_db = bsddb.hashopen(dbpath + "Sigmd5", flag) self.triggername_db = bsddb.hashopen(dbpath + "Triggername", flag)
|
e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
2290,
24,
12,
2890,
4672,
1930,
7081,
449,
70,
1319,
803,
273,
365,
18,
3510,
3085,
397,
365,
18,
13832,
27574,
803,
1221,
9872,
12,
1966,
803,
13,
8255,
54,
84,
27574,
1649,
12,
1966,
803,
13,
2982,
273,
315,
71,
6,
365,
18,
9157,
6809,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
11494,
6809,
3113,
2982,
13,
365,
18,
20340,
529,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
10732,
529,
3113,
2982,
13,
365,
18,
1214,
1973,
67,
1966,
273,
7081,
449,
70,
18,
23602,
3190,
12,
1966,
803,
397,
315,
1621,
1973,
3113,
2982,
13,
365,
18,
768,
1264,
25,
87,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
812,
1264,
25,
87,
3113,
2982,
13,
365,
18,
1655,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
1114,
3113,
2982,
13,
365,
18,
5425,
18081,
67,
1966,
273,
7081,
449,
70,
18,
23602,
3190,
12,
1966,
803,
397,
315,
6410,
18081,
3113,
2982,
13,
365,
18,
529,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
461,
3113,
2982,
13,
365,
18,
10308,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
11425,
3113,
2982,
13,
365,
18,
685,
1246,
1069,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
626,
1246,
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,
1696,
2290,
24,
12,
2890,
4672,
1930,
7081,
449,
70,
1319,
803,
273,
365,
18,
3510,
3085,
397,
365,
18,
13832,
27574,
803,
1221,
9872,
12,
1966,
803,
13,
8255,
54,
84,
27574,
1649,
12,
1966,
803,
13,
2982,
273,
315,
71,
6,
365,
18,
9157,
6809,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
11494,
6809,
3113,
2982,
13,
365,
18,
20340,
529,
67,
1966,
273,
7081,
449,
70,
18,
2816,
3190,
12,
1966,
803,
397,
315,
10732,
529,
3113,
2982,
13,
365,
18,
1214,
1973,
67,
1966,
273,
7081,
449,
70,
18,
23602,
3190,
12,
1966,
803,
397,
315,
1621,
1973,
3113,
2982,
13,
365,
18,
768,
1264,
25,
87,
2
] |
sage: sr = mq.SR(1,1,1,4)
|
sage: sr = mq.SR(1, 1, 1, 4)
|
def lin_matrix(self, length = None): """ Return the Lin matrix.
|
cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
273,
599,
4672,
3536,
2000,
326,
27865,
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,
0,
0,
0,
0,
0,
0,
0,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
supernova(False)
|
supernova(game.quadrant)
|
def nova(nov): "Star goes nova." course = (0.0, 10.5, 12.0, 1.5, 9.0, 0.0, 3.0, 7.5, 6.0, 4.5) newc = coord(); neighbor = coord(); bump = coord(0, 0) if withprob(0.05): # Wow! We've supernova'ed supernova(False, nov) return # handle initial nova game.quad[nov.i][nov.j] = IHDOT prout(crmena(False, IHSTAR, "sector", nov) + _(" novas.")) game.state.galaxy[game.quadrant.i][game.quadrant.j].stars -= 1 game.state.starkl += 1 # Set up queue to recursively trigger adjacent stars hits = [nov] kount = 0 while hits: offset = coord() start = hits.pop() for offset.i in range(-1, 1+1): for offset.j in range(-1, 1+1): if offset.j==0 and offset.i==0: continue neighbor = start + offset if not VALID_SECTOR(neighbor.j, neighbor.i): continue iquad = game.quad[neighbor.i][neighbor.j] # Empty space ends reaction if iquad in (IHDOT, IHQUEST, IHBLANK, IHT, IHWEB): pass elif iquad == IHSTAR: # Affect another star if withprob(0.05): # This star supernovas supernova(False) return else: hits.append(neighbor) game.state.galaxy[game.quadrant.i][game.quadrant.j].stars -= 1 game.state.starkl += 1 proutn(crmena(True, IHSTAR, "sector", neighbor)) prout(_(" novas.")) game.quad[neighbor.i][neighbor.j] = IHDOT kount += 1 elif iquad in (IHP, IHW): # Destroy planet game.state.galaxy[game.quadrant.i][game.quadrant.j].planet = None if iquad == IHP: game.state.nplankl += 1 else: game.state.worldkl += 1 prout(crmena(True, IHB, "sector", neighbor) + _(" destroyed.")) game.iplnet.pclass = "destroyed" game.iplnet = None game.plnet.invalidate() if game.landed: finish(FPNOVA) return game.quad[neighbor.i][neighbor.j] = IHDOT elif iquad == IHB: # Destroy base game.state.galaxy[game.quadrant.i][game.quadrant.j].starbase = False game.state.baseq = filter(lambda x: x!= game.quadrant, game.state.baseq) game.base.invalidate() game.state.basekl += 1 newcnd() prout(crmena(True, IHB, "sector", neighbor) + _(" destroyed.")) game.quad[neighbor.i][neighbor.j] = IHDOT elif iquad in (IHE, IHF): # Buffet ship prout(_("***Starship buffeted by nova.")) if game.shldup: if game.shield >= 2000.0: game.shield -= 2000.0 else: diff = 2000.0 - game.shield game.energy -= diff game.shield = 0.0 game.shldup = False prout(_("***Shields knocked out.")) game.damage[DSHIELD] += 0.005*game.damfac*randreal()*diff else: game.energy -= 2000.0 if game.energy <= 0: finish(FNOVA) return # add in course nova contributes to kicking starship bump += (game.sector-hits[mm]).sgn() elif iquad == IHK: # kill klingon deadkl(neighbor, iquad, neighbor) elif iquad in (IHC,IHS,IHR): # Damage/destroy big enemies for ll in range(len(game.enemies)): if game.enemies[ll].kloc == neighbor: break game.enemies[ll].kpower -= 800.0 # If firepower is lost, die if game.enemies[ll].kpower <= 0.0: deadkl(neighbor, iquad, neighbor) break newc = neighbor + neighbor - hits[mm] proutn(crmena(True, iquad, "sector", neighbor) + _(" damaged")) if not VALID_SECTOR(newc.i, newc.j): # can't leave quadrant skip(1) break iquad1 = game.quad[newc.i][newc.j] if iquad1 == IHBLANK: proutn(_(", blasted into ") + crmena(False, IHBLANK, "sector", newc)) skip(1) deadkl(neighbor, iquad, newc) break if iquad1 != IHDOT: # can't move into something else skip(1) break proutn(_(", buffeted to Sector %s") % newc) game.quad[neighbor.i][neighbor.j] = IHDOT game.quad[newc.i][newc.j] = iquad game.enemies[ll].move(newc) # Starship affected by nova -- kick it away. game.dist = kount*0.1 game.direc = course[3*(bump.i+1)+bump.j+2] if game.direc == 0.0: game.dist = 0.0 if game.dist == 0.0: return game.optime = 10.0*game.dist/16.0 skip(1) prout(_("Force of nova displaces starship.")) imove(novapush=True) game.optime = 10.0*game.dist/16.0 return
|
9166a6df132fa18c32881b2019e1fcc41716a3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/9166a6df132fa18c32881b2019e1fcc41716a3ab/sst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
15304,
12,
82,
1527,
4672,
315,
18379,
13998,
1158,
15304,
1199,
4362,
273,
261,
20,
18,
20,
16,
1728,
18,
25,
16,
2593,
18,
20,
16,
404,
18,
25,
16,
2468,
18,
20,
16,
374,
18,
20,
16,
890,
18,
20,
16,
2371,
18,
25,
16,
1666,
18,
20,
16,
1059,
18,
25,
13,
394,
71,
273,
2745,
5621,
10553,
273,
2745,
5621,
23559,
273,
2745,
12,
20,
16,
374,
13,
309,
598,
7748,
12,
20,
18,
6260,
4672,
468,
678,
543,
5,
1660,
8081,
2240,
82,
16739,
11,
329,
2240,
82,
16739,
12,
8381,
16,
1158,
90,
13,
327,
468,
1640,
2172,
1158,
15304,
7920,
18,
21733,
63,
82,
1527,
18,
77,
6362,
82,
1527,
18,
78,
65,
273,
467,
44,
17591,
450,
322,
12,
3353,
81,
24457,
12,
8381,
16,
467,
44,
20943,
16,
315,
5709,
280,
3113,
1158,
90,
13,
397,
389,
2932,
1158,
4423,
1199,
3719,
7920,
18,
2019,
18,
25030,
31851,
63,
13957,
18,
21733,
6890,
18,
77,
6362,
13957,
18,
21733,
6890,
18,
78,
8009,
334,
5913,
3947,
404,
7920,
18,
2019,
18,
334,
1313,
80,
1011,
404,
468,
1000,
731,
2389,
358,
8536,
3080,
16335,
24084,
11076,
273,
306,
82,
1527,
65,
417,
592,
273,
374,
1323,
11076,
30,
1384,
273,
2745,
1435,
787,
273,
11076,
18,
5120,
1435,
364,
1384,
18,
77,
316,
1048,
19236,
21,
16,
404,
15,
21,
4672,
364,
1384,
18,
78,
316,
1048,
19236,
21,
16,
404,
15,
21,
4672,
309,
1384,
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,
1158,
15304,
12,
82,
1527,
4672,
315,
18379,
13998,
1158,
15304,
1199,
4362,
273,
261,
20,
18,
20,
16,
1728,
18,
25,
16,
2593,
18,
20,
16,
404,
18,
25,
16,
2468,
18,
20,
16,
374,
18,
20,
16,
890,
18,
20,
16,
2371,
18,
25,
16,
1666,
18,
20,
16,
1059,
18,
25,
13,
394,
71,
273,
2745,
5621,
10553,
273,
2745,
5621,
23559,
273,
2745,
12,
20,
16,
374,
13,
309,
598,
7748,
12,
20,
18,
6260,
4672,
468,
678,
543,
5,
1660,
8081,
2240,
82,
16739,
11,
329,
2240,
82,
16739,
12,
8381,
16,
1158,
90,
13,
327,
468,
1640,
2172,
1158,
15304,
7920,
18,
21733,
63,
82,
1527,
18,
77,
6362,
82,
1527,
18,
2
] |
"", zerolagSuffix, slideSuffix, slideSuffix, cacheFile, "")
|
"", zerolagSuffix, slideSuffix, slideSuffix, cacheFile, "", ifos=ifos)
|
def zeroSlidePlots(dag, plotDir, config, logPath, zerolagSuffix, slideSuffix, cacheFile, doDagCategories, parentDags = None, vetoParentDags = None, vetoCat = 3): """ set up plots for zero lag and time slides dag = the dag plotDir = directory in to set up plots config = config file logPath = location where log files will be written zerolagSuffix = the string to restrict to for zero lag slideSuffix = the string to restrict to for time slides cacheFile = the input cache file for plotting doCategories = dag categories turned on parentDags = the name of the parent dag to add vetoParentDags = the name of the veto parent dag to add vetoCat = veto category """ # first stage plotcp = copy.deepcopy(config) plotcp.add_section("plot-arguments") plotcp.set("plot-arguments","plotinspiralrange","") plotcp.set("plot-arguments","plotnumtemplates","") plotcp.set("plot-arguments","plotinspiral","") plotcp.set("plot-arguments","plotthinca","") plotcp.set("plot-arguments","write-script","") # Add plotthinca scaling option for zero lag play full data slide plots if zerolagSuffix == "PLAYGROUND" and slideSuffix == "FULL_DATA": plotcp.set("plotthinca","zero-lag-playground","") plotNode = plot_setup(plotDir, plotcp, logPath, "first", \ "", zerolagSuffix, slideSuffix, slideSuffix, cacheFile, "") if doDagCategories: plotNode.set_category('plotting') dag.add_node(plotNode) if parentDags: for thisDag in parentDags: plotNode.add_parent(thisDag) # second stage (require DQ) vetoString = "_CAT_" + str(vetoCat) + "_VETO" plotcp = copy.deepcopy(config) plotcp.add_section("plot-arguments") plotcp.set("plot-arguments","plotinspiral","") plotcp.set("plot-arguments","plotthinca","") plotcp.set("plot-arguments","write-script","") if zerolagSuffix == "PLAYGROUND" and slideSuffix == "FULL_DATA": plotcp.set("plotthinca","zero-lag-playground","") plotVetoNode = plot_setup(plotDir, plotcp, logPath, "second", \ "", zerolagSuffix + vetoString, slideSuffix + vetoString, \ slideSuffix + vetoString, cacheFile, "", \ tag=vetoString[1:]) if doDagCategories: plotVetoNode.set_category('plotting') dag.add_node(plotVetoNode) if parentDags: for thisDag in parentDags: plotVetoNode.add_parent(thisDag) if vetoParentDags: for thisDag in vetoParentDags: plotVetoNode.add_parent(thisDag) if not doDagCategories: plotVetoNode.add_parent(plotNode) return dag
|
fc357fee84a913444239d3b3d8829e5f036f7cd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/fc357fee84a913444239d3b3d8829e5f036f7cd4/inspiralutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3634,
21068,
29311,
12,
30204,
16,
3207,
1621,
16,
642,
16,
613,
743,
16,
24910,
355,
346,
5791,
16,
12701,
5791,
16,
18748,
16,
741,
40,
346,
10487,
16,
982,
40,
1341,
273,
599,
16,
331,
11453,
3054,
40,
1341,
273,
599,
16,
331,
11453,
11554,
273,
890,
4672,
3536,
444,
731,
17931,
364,
3634,
17241,
471,
813,
30119,
22940,
4202,
273,
326,
22940,
3207,
1621,
282,
273,
1867,
316,
358,
444,
731,
17931,
642,
565,
273,
642,
585,
613,
743,
282,
273,
2117,
1625,
613,
1390,
903,
506,
5941,
24910,
355,
346,
5791,
282,
273,
326,
533,
358,
13108,
358,
364,
3634,
17241,
12701,
5791,
377,
273,
326,
533,
358,
13108,
358,
364,
813,
30119,
18748,
4202,
273,
326,
810,
1247,
585,
364,
20947,
741,
10487,
565,
273,
22940,
6477,
21826,
603,
982,
40,
1341,
1377,
273,
326,
508,
434,
326,
982,
22940,
358,
527,
331,
11453,
3054,
40,
1341,
225,
273,
326,
508,
434,
326,
331,
11453,
982,
22940,
358,
527,
331,
11453,
11554,
540,
273,
331,
11453,
3150,
3536,
468,
1122,
6009,
3207,
4057,
273,
1610,
18,
16589,
3530,
12,
1425,
13,
3207,
4057,
18,
1289,
67,
3464,
2932,
4032,
17,
7099,
7923,
3207,
4057,
18,
542,
2932,
4032,
17,
7099,
15937,
4032,
267,
1752,
481,
287,
3676,
3113,
3660,
13,
3207,
4057,
18,
542,
2932,
4032,
17,
7099,
15937,
4032,
2107,
8502,
3113,
3660,
13,
3207,
4057,
18,
542,
2932,
4032,
17,
7099,
15937,
4032,
267,
1752,
481,
287,
3113,
3660,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3634,
21068,
29311,
12,
30204,
16,
3207,
1621,
16,
642,
16,
613,
743,
16,
24910,
355,
346,
5791,
16,
12701,
5791,
16,
18748,
16,
741,
40,
346,
10487,
16,
982,
40,
1341,
273,
599,
16,
331,
11453,
3054,
40,
1341,
273,
599,
16,
331,
11453,
11554,
273,
890,
4672,
3536,
444,
731,
17931,
364,
3634,
17241,
471,
813,
30119,
22940,
4202,
273,
326,
22940,
3207,
1621,
282,
273,
1867,
316,
358,
444,
731,
17931,
642,
565,
273,
642,
585,
613,
743,
282,
273,
2117,
1625,
613,
1390,
903,
506,
5941,
24910,
355,
346,
5791,
282,
273,
326,
533,
358,
13108,
358,
364,
3634,
17241,
12701,
5791,
377,
273,
326,
533,
358,
13108,
358,
364,
813,
30119,
18748,
4202,
2
] |
'Records' : convertedData } )
|
'Records' : finalData } )
|
def getGroupedInstanceHistory( self, groupField = False, selDict = {}, fields2Get = False ): validDataFields = [ 'Load', 'Jobs', 'TransferredFiles', 'TransferredBytes' ] validGroupFields = [ 'VMInstanceID', 'Status' ] allValidFields = VirtualMachineDB.tablesDesc[ 'vm_History' ][ 'Fields' ] if not fields2Get: fields2Get = list( validDataFields ) for field in fields2Get: if field not in validDataFields: return S_ERROR( "%s is not a valid data field" % field ) if groupField: selectFields = [ "SUM(`%s`)" % f for f in fields2Get ] paramFields = fields2Get if groupField.find( "BucketUpdate:" ) == 0: try: bucketSize = int( groupField[ groupField.find( ":" ) + 1:] ) except: return S_ERROR( "Could not get size ot buckets" ) groupField = "FROM_UNIXTIME(UNIX_TIMESTAMP( `Update` ) - UNIX_TIMESTAMP( `Update` ) mod %d)" % bucketSize selectFields.insert( 0, groupField ) paramFields.insert( 0, "Update" ) else: if groupField: if groupField not in validGroupFields: return S_ERROR( "%s is not a valid grouping field" % groupField ) selectFields.insert( 0, "`%s`" % groupField ) paramFields.insert( 0, groupField ) groupField = "`%s`" % groupField else: paramFields = fields2Get selectFields = [ "`%s`" % f for f in fields2Get ] sqlCond = [] for field in selDict: if field not in allValidFields: return S_ERROR( "%s is not a valid field" % field ) value = selDict[ field ] if type( value ) not in ( types.DictType, types.TupleType ): value = ( value, ) value = [ self._escapeString( str( v ) )[ 'Value' ] for v in values ] sqlCond.append( "`%s` in (%s)" % ( field, ", ".join( value ) ) ) sqlQuery = "SELECT %s FROM `vm_History`" % ", ".join( selectFields ) if sqlCond: sqlQuery += " WHERE %s" % " AND ".join( sqlCond ) if groupField: sqlQuery += " GROUP BY %s" % groupField result = self._query( sqlQuery ) if not result[ 'OK' ]: return result convertedData = [] for record in result[ 'Value' ]: convertedRecord = [] for i in range( len( paramFields ) ): if paramFields[ i ] in validDataFields: convertedRecord.append( float( record[i] ) ) else: convertedRecord.append( record[i] ) convertedData.append( convertedRecord ) return DIRAC.S_OK( { 'ParameterNames' : paramFields, 'Records' : convertedData } )
|
f1bfe9d817250e42a6946b23b5b1c644c9519f56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/f1bfe9d817250e42a6946b23b5b1c644c9519f56/VirtualMachineDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11751,
329,
1442,
5623,
12,
365,
16,
1041,
974,
273,
1083,
16,
357,
5014,
273,
10615,
1466,
22,
967,
273,
1083,
262,
30,
923,
751,
2314,
273,
306,
296,
2563,
2187,
296,
7276,
2187,
296,
1429,
4193,
2697,
2187,
296,
1429,
4193,
2160,
11,
308,
923,
1114,
2314,
273,
306,
296,
7397,
1442,
734,
2187,
296,
1482,
11,
308,
777,
1556,
2314,
273,
18452,
2290,
18,
9373,
4217,
63,
296,
3489,
67,
5623,
11,
308,
63,
296,
2314,
11,
308,
309,
486,
1466,
22,
967,
30,
1466,
22,
967,
273,
666,
12,
923,
751,
2314,
262,
364,
652,
316,
1466,
22,
967,
30,
309,
652,
486,
316,
923,
751,
2314,
30,
327,
348,
67,
3589,
12,
2213,
87,
353,
486,
279,
923,
501,
652,
6,
738,
652,
262,
309,
1041,
974,
30,
2027,
2314,
273,
306,
315,
14020,
12,
68,
9,
87,
68,
2225,
738,
284,
364,
284,
316,
1466,
22,
967,
308,
579,
2314,
273,
1466,
22,
967,
309,
1041,
974,
18,
4720,
12,
315,
4103,
1891,
2773,
262,
422,
374,
30,
775,
30,
2783,
1225,
273,
509,
12,
1041,
974,
63,
1041,
974,
18,
4720,
12,
6153,
262,
397,
404,
26894,
262,
1335,
30,
327,
348,
67,
3589,
12,
315,
4445,
486,
336,
963,
15835,
9169,
6,
262,
1041,
974,
273,
315,
11249,
67,
10377,
3983,
3114,
12,
10377,
60,
67,
17201,
12,
1375,
1891,
68,
262,
300,
23160,
67,
17201,
12,
1375,
1891,
68,
262,
681,
738,
72,
2225,
738,
2783,
1225,
2027,
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,
11751,
329,
1442,
5623,
12,
365,
16,
1041,
974,
273,
1083,
16,
357,
5014,
273,
10615,
1466,
22,
967,
273,
1083,
262,
30,
923,
751,
2314,
273,
306,
296,
2563,
2187,
296,
7276,
2187,
296,
1429,
4193,
2697,
2187,
296,
1429,
4193,
2160,
11,
308,
923,
1114,
2314,
273,
306,
296,
7397,
1442,
734,
2187,
296,
1482,
11,
308,
777,
1556,
2314,
273,
18452,
2290,
18,
9373,
4217,
63,
296,
3489,
67,
5623,
11,
308,
63,
296,
2314,
11,
308,
309,
486,
1466,
22,
967,
30,
1466,
22,
967,
273,
666,
12,
923,
751,
2314,
262,
364,
652,
316,
1466,
22,
967,
30,
309,
652,
486,
316,
923,
751,
2314,
30,
327,
348,
67,
3589,
12,
2213,
87,
2
] |
print "templates/" + plugin_name + "/BaseProcessing.hxx" print "Output file write error."
|
print "tOutput file write error. File: templates/" + plugin_name + "/BaseProcessing.hxx"
|
def add_include( class_name ): return "#include <CLAM/" + class_name + ".hxx>\n"
|
f68b41981bf4ca00e6a611001345eecbc636154e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1456/f68b41981bf4ca00e6a611001345eecbc636154e/TemplateGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6702,
12,
667,
67,
529,
262,
30,
327,
6619,
6702,
411,
5017,
2192,
4898,
397,
667,
67,
529,
397,
3552,
76,
5279,
5333,
82,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6702,
12,
667,
67,
529,
262,
30,
327,
6619,
6702,
411,
5017,
2192,
4898,
397,
667,
67,
529,
397,
3552,
76,
5279,
5333,
82,
6,
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
] |
self.new = None
|
self.new = None self.modified = 0 self.pastable = None
|
def Enter(self): # bruce 040922 split setMode into Enter and init_gui (fyi) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) basicMode.Enter(self) self.o.assy.unpickatoms() self.o.assy.unpickparts() self.saveDisp = self.o.display self.o.setDisplay(diTUBES) self.o.assy.selwhat = 0 self.new = None self.o.selatom = None self.dragatom = None self.dragmol = None self.pivot = None self.pivax = None self.baggage = [] self.line = None self.modified = 0 # bruce 040923 new code self.pastable = None
|
8f5d5b3814fbc29f18c022b0ff494ab349927e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8f5d5b3814fbc29f18c022b0ff494ab349927e2b/depositMode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
12,
2890,
4672,
468,
5186,
3965,
16486,
5908,
3787,
1416,
444,
2309,
1368,
15439,
471,
1208,
67,
20292,
261,
74,
93,
77,
13,
5118,
4802,
409,
2622,
12,
11261,
67,
28413,
67,
26313,
16,
10252,
67,
5998,
67,
6236,
3378,
67,
28413,
67,
26313,
13,
5337,
2309,
18,
10237,
12,
2890,
13,
365,
18,
83,
18,
428,
93,
18,
318,
11503,
14937,
1435,
365,
18,
83,
18,
428,
93,
18,
318,
11503,
6019,
1435,
365,
18,
5688,
1669,
84,
273,
365,
18,
83,
18,
5417,
365,
18,
83,
18,
542,
4236,
12,
3211,
56,
3457,
3991,
13,
365,
18,
83,
18,
428,
93,
18,
1786,
23770,
273,
374,
365,
18,
2704,
273,
599,
365,
18,
7342,
273,
374,
365,
18,
84,
689,
429,
273,
599,
365,
18,
83,
18,
1786,
7466,
273,
599,
365,
18,
15997,
7466,
273,
599,
365,
18,
15997,
21260,
273,
599,
365,
18,
27306,
273,
599,
365,
18,
84,
427,
651,
273,
599,
365,
18,
70,
17535,
410,
273,
5378,
365,
18,
1369,
273,
599,
365,
18,
7342,
273,
374,
468,
5186,
3965,
16486,
5908,
4366,
394,
981,
365,
18,
84,
689,
429,
273,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
12,
2890,
4672,
468,
5186,
3965,
16486,
5908,
3787,
1416,
444,
2309,
1368,
15439,
471,
1208,
67,
20292,
261,
74,
93,
77,
13,
5118,
4802,
409,
2622,
12,
11261,
67,
28413,
67,
26313,
16,
10252,
67,
5998,
67,
6236,
3378,
67,
28413,
67,
26313,
13,
5337,
2309,
18,
10237,
12,
2890,
13,
365,
18,
83,
18,
428,
93,
18,
318,
11503,
14937,
1435,
365,
18,
83,
18,
428,
93,
18,
318,
11503,
6019,
1435,
365,
18,
5688,
1669,
84,
273,
365,
18,
83,
18,
5417,
365,
18,
83,
18,
542,
4236,
12,
3211,
56,
3457,
3991,
13,
365,
18,
83,
18,
428,
93,
18,
1786,
23770,
273,
374,
365,
18,
2704,
273,
599,
365,
18,
7342,
273,
2
] |
tools.convert_csv_import(cr, m, filename, tools.file_open(opj(m, filename)).read(), idref, mode=mode)
|
tools.convert_csv_import(cr, m, os.path.basename(filename), tools.file_open(opj(m, filename)).read(), idref, mode=mode)
|
def load_module_graph(cr, graph, status={}): package_todo = [] statusi = 0 for package in graph: status['progress'] = (float(statusi)+0.1)/len(graph) m = package.name logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s' % m) sys.stdout.flush() pool = pooler.get_pool(cr.dbname) modules = pool.instanciate(m) cr.execute('select state, demo from ir_module_module where name=%s', (m,)) (package_state, package_demo) = (cr.rowcount and cr.fetchone()) or ('uninstalled', False) idref = {} status['progress'] = (float(statusi)+0.4)/len(graph) if hasattr(package, 'init') or hasattr(package, 'update') or package_state in ('to install', 'to upgrade'): init_module_objects(cr, m, modules) for kind in ('init', 'update'): for filename in package.datas.get('%s_xml' % kind, []): mode = 'update' if hasattr(package, 'init') or package_state=='to install': mode = 'init' logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s:loading %s' % (m, filename)) name, ext = os.path.splitext(filename) if ext == '.csv': tools.convert_csv_import(cr, m, filename, tools.file_open(opj(m, filename)).read(), idref, mode=mode) elif ext == '.sql': queries = tools.file_open(opj(m, filename)).read().split(';') for query in queries: new_query = ' '.join(query.split()) if new_query: cr.execute(new_query) cr.commit() else: tools.convert_xml_import(cr, m, tools.file_open(opj(m, filename)).read(), idref, mode=mode) if hasattr(package, 'demo') or (package_demo and package_state != 'installed'): status['progress'] = (float(statusi)+0.75)/len(graph) for xml in package.datas.get('demo_xml', []): name, ext = os.path.splitext(xml) logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s:loading %s' % (m, xml)) if ext == '.csv': tools.convert_csv_import(cr, m, os.path.basename(xml), tools.file_open(opj(m, xml)).read(), idref) else: tools.convert_xml_import(cr, m, tools.file_open(opj(m, xml)).read(), idref) package_todo.append(package.name) cr.execute("update ir_module_module set state='installed', demo=%s where state in ('to upgrade', 'to install') and name=%s", (str(hasattr(package, 'demo')) or package_demo, package.name)) cr.commit() statusi+=1 cr.commit()
|
0885c78c252480725da037a5c8d159516b0aa751 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/0885c78c252480725da037a5c8d159516b0aa751/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
67,
4660,
12,
3353,
16,
2667,
16,
1267,
12938,
4672,
2181,
67,
9012,
273,
5378,
1267,
77,
273,
374,
364,
2181,
316,
2667,
30,
1267,
3292,
8298,
3546,
273,
261,
5659,
12,
2327,
77,
27921,
20,
18,
21,
13176,
1897,
12,
4660,
13,
312,
273,
2181,
18,
529,
1194,
18,
12336,
2909,
2668,
2738,
2187,
21954,
4227,
18,
4842,
67,
5923,
16,
296,
24390,
5319,
87,
11,
738,
312,
13,
2589,
18,
10283,
18,
11330,
1435,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
4381,
273,
2845,
18,
267,
27866,
3840,
12,
81,
13,
4422,
18,
8837,
2668,
4025,
919,
16,
21477,
628,
9482,
67,
2978,
67,
2978,
1625,
508,
5095,
87,
2187,
261,
81,
16,
3719,
261,
5610,
67,
2019,
16,
2181,
67,
27928,
13,
273,
261,
3353,
18,
492,
1883,
471,
4422,
18,
5754,
476,
10756,
578,
7707,
318,
13435,
2187,
1083,
13,
612,
1734,
273,
2618,
1267,
3292,
8298,
3546,
273,
261,
5659,
12,
2327,
77,
27921,
20,
18,
24,
13176,
1897,
12,
4660,
13,
309,
3859,
12,
5610,
16,
296,
2738,
6134,
578,
3859,
12,
5610,
16,
296,
2725,
6134,
578,
2181,
67,
2019,
316,
7707,
869,
3799,
2187,
296,
869,
8400,
11,
4672,
1208,
67,
2978,
67,
6911,
12,
3353,
16,
312,
16,
4381,
13,
364,
3846,
316,
7707,
2738,
2187,
296,
2725,
11,
4672,
364,
1544,
316,
2181,
18,
13178,
18,
588,
29909,
87,
67,
2902,
11,
738,
3846,
16,
5378,
4672,
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,
1262,
67,
2978,
67,
4660,
12,
3353,
16,
2667,
16,
1267,
12938,
4672,
2181,
67,
9012,
273,
5378,
1267,
77,
273,
374,
364,
2181,
316,
2667,
30,
1267,
3292,
8298,
3546,
273,
261,
5659,
12,
2327,
77,
27921,
20,
18,
21,
13176,
1897,
12,
4660,
13,
312,
273,
2181,
18,
529,
1194,
18,
12336,
2909,
2668,
2738,
2187,
21954,
4227,
18,
4842,
67,
5923,
16,
296,
24390,
5319,
87,
11,
738,
312,
13,
2589,
18,
10283,
18,
11330,
1435,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
4381,
273,
2845,
18,
267,
27866,
3840,
12,
81,
13,
4422,
18,
8837,
2668,
4025,
919,
16,
21477,
628,
9482,
67,
2978,
67,
2978,
1625,
508,
2
] |
unless(storage.is_connected())
|
require(storage.is_connected())
|
def checkTimeoutProvokingConflicts(self): eq = self.assertEqual raises = self.assertRaises unless = self.failUnless self._storage = storage = self.openClientStorage() # Assert that the zeo cache is empty unless(not list(storage._cache.contents())) # Create the object oid = storage.new_oid() obj = MinPO(7) # We need to successfully commit an object now so we have something to # conflict about. t = Transaction() storage.tpc_begin(t) revid1a = storage.store(oid, ZERO, zodb_pickle(obj), '', t) revid1b = storage.tpc_vote(t) revid1 = handle_serials(oid, revid1a, revid1b) storage.tpc_finish(t) # Now do a store, sleeping before the finish so as to cause a timeout obj.value = 8 t = Transaction() storage.tpc_begin(t) revid2a = storage.store(oid, revid1, zodb_pickle(obj), '', t) revid2b = storage.tpc_vote(t) revid2 = handle_serials(oid, revid2a, revid2b) # Now sleep long enough for the storage to time out time.sleep(3) storage.sync() unless(not storage.is_connected()) storage._wait() unless(storage.is_connected()) # We expect finish to fail raises(ClientDisconnected, storage.tpc_finish, t) # Now we think we've committed the second transaction, but we really # haven't. A third one should produce a POSKeyError on the server, # which manifests as a ConflictError on the client. obj.value = 9 t = Transaction() storage.tpc_begin(t) storage.store(oid, revid2, zodb_pickle(obj), '', t) raises(ConflictError, storage.tpc_vote, t) # Even aborting won't help storage.tpc_abort(t) storage.tpc_finish(t) # Try again obj.value = 10 t = Transaction() storage.tpc_begin(t) storage.store(oid, revid2, zodb_pickle(obj), '', t) # Even aborting won't help raises(ConflictError, storage.tpc_vote, t) # Abort this one and try a transaction that should succeed storage.tpc_abort(t) storage.tpc_finish(t) # Now do a store, sleeping before the finish so as to cause a timeout obj.value = 11 t = Transaction() storage.tpc_begin(t) revid2a = storage.store(oid, revid1, zodb_pickle(obj), '', t) revid2b = storage.tpc_vote(t) revid2 = handle_serials(oid, revid2a, revid2b) storage.tpc_finish(t) # Now load the object and verify that it has a value of 11 data, revid = storage.load(oid, '') eq(zodb_unpickle(data), MinPO(11)) eq(revid, revid2)
|
4659d8eb20fb53ceb449f9082c96342b24dfed27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/4659d8eb20fb53ceb449f9082c96342b24dfed27/ConnectionTests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
3308,
273,
365,
18,
6870,
984,
2656,
365,
6315,
5697,
273,
2502,
273,
365,
18,
3190,
1227,
3245,
1435,
468,
5452,
716,
326,
998,
4361,
1247,
353,
1008,
3308,
12,
902,
666,
12,
5697,
6315,
2493,
18,
3980,
1435,
3719,
468,
1788,
326,
733,
7764,
273,
2502,
18,
2704,
67,
839,
1435,
1081,
273,
5444,
2419,
12,
27,
13,
468,
1660,
1608,
358,
4985,
3294,
392,
733,
2037,
1427,
732,
1240,
5943,
358,
468,
7546,
2973,
18,
268,
273,
5947,
1435,
2502,
18,
88,
2436,
67,
10086,
12,
88,
13,
283,
1246,
21,
69,
273,
2502,
18,
2233,
12,
839,
16,
18449,
16,
998,
10605,
67,
20847,
12,
2603,
3631,
10226,
268,
13,
283,
1246,
21,
70,
273,
2502,
18,
88,
2436,
67,
25911,
12,
88,
13,
283,
1246,
21,
273,
1640,
67,
8818,
87,
12,
839,
16,
283,
1246,
21,
69,
16,
283,
1246,
21,
70,
13,
2502,
18,
88,
2436,
67,
13749,
12,
88,
13,
468,
4494,
741,
279,
1707,
16,
5329,
310,
1865,
326,
4076,
1427,
487,
358,
4620,
279,
2021,
1081,
18,
1132,
273,
1725,
268,
273,
5947,
1435,
2502,
18,
88,
2436,
67,
10086,
12,
88,
13,
283,
1246,
22,
69,
273,
2502,
18,
2233,
12,
839,
16,
283,
1246,
21,
16,
998,
10605,
67,
20847,
12,
2603,
3631,
10226,
268,
13,
283,
1246,
22,
70,
273,
2502,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
3308,
273,
365,
18,
6870,
984,
2656,
365,
6315,
5697,
273,
2502,
273,
365,
18,
3190,
1227,
3245,
1435,
468,
5452,
716,
326,
998,
4361,
1247,
353,
1008,
3308,
12,
902,
666,
12,
5697,
6315,
2493,
18,
3980,
1435,
3719,
468,
1788,
326,
733,
7764,
273,
2502,
18,
2704,
67,
839,
1435,
1081,
273,
5444,
2419,
12,
27,
13,
468,
1660,
1608,
358,
4985,
3294,
392,
733,
2037,
1427,
732,
1240,
5943,
358,
468,
7546,
2973,
18,
268,
273,
5947,
1435,
2502,
18,
88,
2436,
67,
10086,
12,
88,
13,
283,
1246,
21,
69,
273,
2
] |
compare_title = "%0.1f%%" % [x.get('diff') for x in ns_summary if x['ip'] == best_ns.ip][0]
|
compare_title = 'N/A' compare_subtitle = '' elif len(ns_record['durations'][0]) >= MIN_RELEVANT_COUNT: compare_reference = ns_record compare_title = "%0.1f%%" % ns_summary[0]['diff']
|
def CreateReport(self, format='ascii', output_fp=None, csv_path=None): # First generate all of the charts necessary. if format == 'ascii': lowest_latency = self._LowestLatencyAsciiChart() mean_duration = self._MeanRequestAsciiChart() else: lowest_latency = None mean_duration = None
|
acd7f6e8e8dab899104a9e6fa17649296d41db99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/acd7f6e8e8dab899104a9e6fa17649296d41db99/reporter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
4820,
12,
2890,
16,
740,
2218,
9184,
2187,
876,
67,
7944,
33,
7036,
16,
6101,
67,
803,
33,
7036,
4672,
225,
468,
5783,
2103,
777,
434,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
4820,
12,
2890,
16,
740,
2218,
9184,
2187,
876,
67,
7944,
33,
7036,
16,
6101,
67,
803,
33,
7036,
4672,
225,
468,
5783,
2103,
777,
434,
326,
23194,
4573,
18,
309,
740,
422,
296,
9184,
4278,
11981,
67,
4801,
2075,
273,
365,
6315,
10520,
395,
21461,
21363,
7984,
1435,
3722,
67,
8760,
273,
365,
6315,
15312,
691,
21363,
7984,
1435,
469,
30,
11981,
67,
4801,
2075,
273,
599,
3722,
67,
8760,
273,
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
] |
for dep in prj.source_libs_deps + prj.source_bundles_deps: depresult = dep.build() env.Depends(result, depresult)
|
for dep_result in dep_results: env.Depends(result, dep_result)
|
def result(self, deps_results=True): """Returns the SCons targets for this project.
|
e840cef0761ef8196a32c8b2021abe860191f350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/e840cef0761ef8196a32c8b2021abe860191f350/project.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
12,
2890,
16,
8740,
67,
4717,
33,
5510,
4672,
3536,
1356,
326,
20487,
5774,
364,
333,
1984,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
12,
2890,
16,
8740,
67,
4717,
33,
5510,
4672,
3536,
1356,
326,
20487,
5774,
364,
333,
1984,
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
] |
saturate up to, and that prime is `\leq` ``max_prime``.
|
saturate up to, and that prime might be smaller than ``max_prime``.
|
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group.
|
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
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
] |
self.pool.get(object)._store_set_values(cr, uid, ids, field, context)
|
ids = self.pool.get(object).search(cr, uid, [('id','in', ids)], context=context) if ids: self.pool.get(object)._store_set_values(cr, uid, ids, field, context)
|
def unlink(self, cr, uid, ids, context=None): if not context: context = {} if not ids: return True if isinstance(ids, (int, long)): ids = [ids]
|
f8f691f6edf9caaf85a7799e5a0dd79cc2f12713 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f8f691f6edf9caaf85a7799e5a0dd79cc2f12713/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
3719,
30,
3258,
273,
306,
2232,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
3719,
30,
3258,
273,
306,
2232,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
flavor = ?""", name, str(version), flavor.freeze())
|
%s""" % flavorStr, [trove._TROVEINFO_TAG_TAINTED, name, str(version)] + flavorArgs)
|
def troveIsTainted(self, name, version, flavor): cu = self.db.cursor()
|
bc257c2c1472e7acbd7988c9dbf623050a3b5d41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/bc257c2c1472e7acbd7988c9dbf623050a3b5d41/sqldb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23432,
537,
2520,
29048,
329,
12,
2890,
16,
508,
16,
1177,
16,
19496,
4672,
15985,
273,
365,
18,
1966,
18,
9216,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23432,
537,
2520,
29048,
329,
12,
2890,
16,
508,
16,
1177,
16,
19496,
4672,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for episode in episodes: episode.has_screen = True episode.files = File.find().filter_by(episode = episode.id).all() episode.preview = get_preview(Preview.find().\ filter_by(episode = episode.id).all(), episode.files)
|
def datenspur(web, id, mode): try: # FIXME wrap db queries into one episodes = Episode.find().filter(Episode.category.endswith(id)).\ order_by(Episode.date).all() episodes.reverse() comments_count = [ Comment.find().filter_by(episode = e.id).count() for e in episodes ] ratings = [ do_the_ratings(0, 0, Rating.find().\ filter_by(episode = e.id).all())['rating'] for e in episodes ] for episode in episodes: episode.has_screen = True episode.files = File.find().filter_by(episode = episode.id).all() episode.preview = get_preview(Preview.find().\ filter_by(episode = episode.id).all(), episode.files) episode = Episode.find().filter_by(link = id).one() comments = Comment.find().filter_by(episode = episode.id).all() rating = Rating.find().filter_by(episode = episode.id).all() except Exception as e: return notfound(str(e)) if mode is None: mode = "" if len(mode): mode = mode[1:] opts = {} opts.update(create_session(web, mode)) opts.update(do_the_comments(web, mode, comments)) opts.update(do_the_ratings(web, mode, rating)) return template("datenspuren.tpl", css = "episode", episodepage = zip(episodes, comments_count, ratings), site = "datenspuren", full_site = "datenspuren/" + id, episode = episode, **opts )
|
6ca5e224867b1acd386b087721ec31a655f42874 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11349/6ca5e224867b1acd386b087721ec31a655f42874/routes.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1150,
773,
12688,
12,
4875,
16,
612,
16,
1965,
4672,
775,
30,
468,
9852,
2193,
1319,
6218,
1368,
1245,
5529,
27134,
273,
512,
84,
11802,
18,
4720,
7675,
2188,
12,
18918,
11802,
18,
4743,
18,
5839,
1918,
12,
350,
13,
2934,
64,
1353,
67,
1637,
12,
18918,
11802,
18,
712,
2934,
454,
1435,
5529,
27134,
18,
9845,
1435,
5678,
67,
1883,
273,
306,
9821,
18,
4720,
7675,
2188,
67,
1637,
12,
29687,
273,
425,
18,
350,
2934,
1883,
1435,
364,
425,
316,
5529,
27134,
308,
15183,
899,
273,
306,
741,
67,
5787,
67,
17048,
899,
12,
20,
16,
374,
16,
534,
1776,
18,
4720,
7675,
64,
1034,
67,
1637,
12,
29687,
273,
425,
18,
350,
2934,
454,
10756,
3292,
17326,
3546,
364,
425,
316,
5529,
27134,
308,
17054,
273,
512,
84,
11802,
18,
4720,
7675,
2188,
67,
1637,
12,
1232,
273,
612,
2934,
476,
1435,
5678,
273,
9821,
18,
4720,
7675,
2188,
67,
1637,
12,
29687,
273,
17054,
18,
350,
2934,
454,
1435,
13953,
273,
534,
1776,
18,
4720,
7675,
2188,
67,
1637,
12,
29687,
273,
17054,
18,
350,
2934,
454,
1435,
1335,
1185,
487,
425,
30,
327,
486,
7015,
12,
701,
12,
73,
3719,
309,
1965,
353,
599,
30,
1965,
273,
1408,
309,
562,
12,
3188,
4672,
1965,
273,
1965,
63,
21,
26894,
1500,
273,
2618,
1500,
18,
2725,
12,
2640,
67,
3184,
12,
4875,
16,
1965,
3719,
1500,
18,
2725,
12,
2896,
67,
5787,
67,
9231,
12,
4875,
16,
1965,
16,
5678,
3719,
1500,
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,
1150,
773,
12688,
12,
4875,
16,
612,
16,
1965,
4672,
775,
30,
468,
9852,
2193,
1319,
6218,
1368,
1245,
5529,
27134,
273,
512,
84,
11802,
18,
4720,
7675,
2188,
12,
18918,
11802,
18,
4743,
18,
5839,
1918,
12,
350,
13,
2934,
64,
1353,
67,
1637,
12,
18918,
11802,
18,
712,
2934,
454,
1435,
5529,
27134,
18,
9845,
1435,
5678,
67,
1883,
273,
306,
9821,
18,
4720,
7675,
2188,
67,
1637,
12,
29687,
273,
425,
18,
350,
2934,
1883,
1435,
364,
425,
316,
5529,
27134,
308,
15183,
899,
273,
306,
741,
67,
5787,
67,
17048,
899,
12,
20,
16,
374,
16,
534,
1776,
18,
4720,
7675,
64,
1034,
67,
1637,
12,
29687,
273,
425,
18,
350,
2934,
454,
10756,
2
] |
|
def __del__(self): self.close()
|
def __del__(self): self.close()
|
4ab0830431443d93b512facc592cad2f9ac6ca25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4ab0830431443d93b512facc592cad2f9ac6ca25/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
items.append((info.spamcount, word))
|
items.append((info.spamcount, word, info))
|
def FindTopWords(bayes, num, get_spam): items = [] try: bayes.db # bsddb style extractor = DBExtractor except AttributeError: extractor = DictExtractor for word, info in extractor(bayes): if ":" in word: continue if get_spam: if info.hamcount==0: items.append((info.spamcount, word)) else: if info.spamcount==0: items.append((info.hamcount, word)) items.sort() return [item[1] for item in items]
|
1906eaa7cce41636b5054be689664fc95342a8ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/1906eaa7cce41636b5054be689664fc95342a8ca/tester.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3401,
7363,
12,
70,
528,
281,
16,
818,
16,
336,
67,
1752,
301,
4672,
1516,
273,
5378,
775,
30,
324,
528,
281,
18,
1966,
468,
7081,
449,
70,
2154,
14031,
273,
2383,
10958,
1335,
6394,
30,
14031,
273,
9696,
10958,
225,
364,
2076,
16,
1123,
316,
14031,
12,
70,
528,
281,
4672,
309,
6153,
316,
2076,
30,
1324,
309,
336,
67,
1752,
301,
30,
309,
1123,
18,
31698,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
1752,
301,
1883,
16,
2076,
16,
1123,
3719,
469,
30,
309,
1123,
18,
1752,
301,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
31698,
1883,
16,
2076,
3719,
1516,
18,
3804,
1435,
327,
306,
1726,
63,
21,
65,
364,
761,
316,
1516,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3401,
7363,
12,
70,
528,
281,
16,
818,
16,
336,
67,
1752,
301,
4672,
1516,
273,
5378,
775,
30,
324,
528,
281,
18,
1966,
468,
7081,
449,
70,
2154,
14031,
273,
2383,
10958,
1335,
6394,
30,
14031,
273,
9696,
10958,
225,
364,
2076,
16,
1123,
316,
14031,
12,
70,
528,
281,
4672,
309,
6153,
316,
2076,
30,
1324,
309,
336,
67,
1752,
301,
30,
309,
1123,
18,
31698,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
1752,
301,
1883,
16,
2076,
16,
1123,
3719,
469,
30,
309,
1123,
18,
1752,
301,
1883,
631,
20,
30,
1516,
18,
6923,
12443,
1376,
18,
31698,
1883,
16,
2076,
3719,
1516,
18,
3804,
1435,
327,
306,
1726,
63,
21,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.