rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
"""Scan through string looking for a match to the pattern, returning a MatchObject instance, or None if no match was found.""" | """search(string[, pos][, endpos]) -> MatchObject or None Scan through string looking for a location where this regular expression produces a match, and return a corresponding MatchObject instance. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the string. The optional pos and endpos parameters have the same meaning as for the match() method. """ | def search(self, string, pos=0, endpos=None): """Scan through string looking for a match to the pattern, returning a MatchObject instance, or None if no match was found.""" | e6c8af476c85446f800a2bcad96d979cbf3dcfc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e6c8af476c85446f800a2bcad96d979cbf3dcfc0/re.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
533,
16,
949,
33,
20,
16,
679,
917,
33,
7036,
4672,
3536,
7972,
3059,
533,
7849,
364,
279,
845,
358,
326,
1936,
16,
5785,
279,
4639,
921,
791,
16,
578,
599,
309,
1158,
845,
1703,
1392,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
533,
16,
949,
33,
20,
16,
679,
917,
33,
7036,
4672,
3536,
7972,
3059,
533,
7849,
364,
279,
845,
358,
326,
1936,
16,
5785,
279,
4639,
921,
791,
16,
578,
599,
309,
1158,
845,
1703,
1392,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
found_table = True | def reflecttable(self, connection, table): #TODO: map these better column_func = { 14 : lambda r: sqltypes.String(r['FLEN']), # TEXT 7 : lambda r: sqltypes.Integer(), # SHORT 8 : lambda r: sqltypes.Integer(), # LONG 9 : lambda r: sqltypes.Float(), # QUAD 10 : lambda r: sqltypes.Float(), # FLOAT 27 : lambda r: sqltypes.Double(), # DOUBLE 35 : lambda r: sqltypes.DateTime(), # TIMESTAMP 37 : lambda r: sqltypes.String(r['FLEN']), # VARYING 261: lambda r: sqltypes.TEXT(), # BLOB 40 : lambda r: sqltypes.Char(r['FLEN']), # CSTRING 12 : lambda r: sqltypes.Date(), # DATE 13 : lambda r: sqltypes.Time(), # TIME 16 : lambda r: sqltypes.Numeric(precision=r['FPREC'], length=r['FSCALE'] * -1) #INT64 } tblqry = """\ SELECT DISTINCT R.RDB$FIELD_NAME AS FNAME, R.RDB$NULL_FLAG AS NULL_FLAG, R.RDB$FIELD_POSITION, F.RDB$FIELD_TYPE AS FTYPE, F.RDB$FIELD_SUB_TYPE AS STYPE, F.RDB$FIELD_LENGTH AS FLEN, F.RDB$FIELD_PRECISION AS FPREC, F.RDB$FIELD_SCALE AS FSCALE FROM RDB$RELATION_FIELDS R JOIN RDB$FIELDS F ON R.RDB$FIELD_SOURCE=F.RDB$FIELD_NAME WHERE F.RDB$SYSTEM_FLAG=0 and R.RDB$RELATION_NAME=? ORDER BY R.RDB$FIELD_POSITION;""" keyqry = """ SELECT RC.RDB$CONSTRAINT_TYPE KEYTYPE, RC.RDB$CONSTRAINT_NAME CNAME, RC.RDB$INDEX_NAME INAME, SE.RDB$FIELD_NAME SENAME, FROM RDB$RELATION_CONSTRAINTS RC LEFT JOIN RDB$INDEX_SEGMENTS SE ON RC.RDB$INDEX_NAME=SE.RDB$INDEX_NAME WHERE RC.RDB$RELATION_NAME=? AND SE.RDB$FIELD_NAME=? """ #import pdb;pdb.set_trace() # get all of the fields for this table c = connection.execute(tblqry, [table.name.upper()]) found_table = False while True: row = c.fetchone() if not row: break found_table = True args = [row['FNAME']] kw = {} # get the data types and lengths args.append(column_func[row['FTYPE']](row)) | 5c0e32bf33a5db32c1beabc0fadb4ddd1fbd24be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/5c0e32bf33a5db32c1beabc0fadb4ddd1fbd24be/firebird.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3037,
2121,
12,
2890,
16,
1459,
16,
1014,
4672,
468,
6241,
30,
852,
4259,
7844,
1057,
67,
644,
273,
288,
5045,
294,
3195,
436,
30,
21899,
18,
780,
12,
86,
3292,
42,
13017,
3546,
3631,
468,
9204,
2371,
225,
294,
3195,
436,
30,
21899,
18,
4522,
9334,
468,
20079,
1725,
225,
294,
3195,
436,
30,
21899,
18,
4522,
9334,
468,
14011,
2468,
225,
294,
3195,
436,
30,
21899,
18,
4723,
9334,
468,
10110,
1880,
1728,
294,
3195,
436,
30,
21899,
18,
4723,
9334,
468,
15483,
12732,
294,
3195,
436,
30,
21899,
18,
5265,
9334,
468,
14918,
13191,
294,
3195,
436,
30,
21899,
18,
5096,
9334,
468,
22883,
18091,
294,
3195,
436,
30,
21899,
18,
780,
12,
86,
3292,
42,
13017,
3546,
3631,
468,
776,
6043,
1360,
576,
9498,
30,
3195,
436,
30,
21899,
18,
5151,
9334,
468,
605,
6038,
8063,
294,
3195,
436,
30,
21899,
18,
2156,
12,
86,
3292,
42,
13017,
3546,
3631,
468,
385,
5804,
2593,
294,
3195,
436,
30,
21899,
18,
1626,
9334,
468,
11457,
5958,
294,
3195,
436,
30,
21899,
18,
950,
9334,
468,
8721,
2872,
294,
3195,
436,
30,
21899,
18,
9902,
12,
14548,
33,
86,
3292,
42,
3670,
39,
17337,
769,
33,
86,
3292,
42,
19378,
3546,
380,
300,
21,
13,
225,
468,
3217,
1105,
289,
10142,
85,
1176,
273,
3536,
64,
9111,
23286,
534,
18,
54,
2290,
8,
6776,
67,
1985,
5355,
478,
1985,
16,
534,
18,
54,
2290,
8,
8560,
67,
9651,
5355,
3206,
67,
9651,
16,
534,
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,
3037,
2121,
12,
2890,
16,
1459,
16,
1014,
4672,
468,
6241,
30,
852,
4259,
7844,
1057,
67,
644,
273,
288,
5045,
294,
3195,
436,
30,
21899,
18,
780,
12,
86,
3292,
42,
13017,
3546,
3631,
468,
9204,
2371,
225,
294,
3195,
436,
30,
21899,
18,
4522,
9334,
468,
20079,
1725,
225,
294,
3195,
436,
30,
21899,
18,
4522,
9334,
468,
14011,
2468,
225,
294,
3195,
436,
30,
21899,
18,
4723,
9334,
468,
10110,
1880,
1728,
294,
3195,
436,
30,
21899,
18,
4723,
9334,
468,
15483,
12732,
294,
3195,
436,
30,
21899,
18,
5265,
9334,
468,
14918,
13191,
294,
3195,
436,
30,
21899,
18,
5096,
9334,
468,
22883,
18091,
294,
3195,
436,
30,
21899,
18,
780,
12,
86,
3292,
2
] |
|
elif lower(filename[-4:]) == '.pyc': | elif lower(filename[-4:]) in ['.pyc', '.pyd', '.pyo']: | def modulename(path): """Return the Python module name for a given path, or None.""" filename = os.path.basename(path) if lower(filename[-3:]) == '.py': return filename[:-3] elif lower(filename[-4:]) == '.pyc': return filename[:-4] elif lower(filename[-11:]) == 'module.so': return filename[:-11] elif lower(filename[-13:]) == 'module.so.1': return filename[:-13] | bb384e153d6614fce08e58bada5e06402dc8b3e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bb384e153d6614fce08e58bada5e06402dc8b3e4/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31961,
12,
803,
4672,
3536,
990,
326,
6600,
1605,
508,
364,
279,
864,
589,
16,
578,
599,
12123,
1544,
273,
1140,
18,
803,
18,
13909,
12,
803,
13,
309,
2612,
12,
3459,
18919,
23,
30,
5717,
422,
2418,
2074,
4278,
327,
1544,
10531,
17,
23,
65,
1327,
2612,
12,
3459,
18919,
24,
30,
5717,
316,
10228,
18,
2074,
71,
2187,
2418,
2074,
72,
2187,
2418,
2074,
83,
3546,
30,
327,
1544,
10531,
17,
24,
65,
1327,
2612,
12,
3459,
18919,
2499,
30,
5717,
422,
296,
2978,
18,
2048,
4278,
327,
1544,
10531,
17,
2499,
65,
1327,
2612,
12,
3459,
18919,
3437,
30,
5717,
422,
296,
2978,
18,
2048,
18,
21,
4278,
327,
1544,
10531,
17,
3437,
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,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31961,
12,
803,
4672,
3536,
990,
326,
6600,
1605,
508,
364,
279,
864,
589,
16,
578,
599,
12123,
1544,
273,
1140,
18,
803,
18,
13909,
12,
803,
13,
309,
2612,
12,
3459,
18919,
23,
30,
5717,
422,
2418,
2074,
4278,
327,
1544,
10531,
17,
23,
65,
1327,
2612,
12,
3459,
18919,
24,
30,
5717,
316,
10228,
18,
2074,
71,
2187,
2418,
2074,
72,
2187,
2418,
2074,
83,
3546,
30,
327,
1544,
10531,
17,
24,
65,
1327,
2612,
12,
3459,
18919,
2499,
30,
5717,
422,
296,
2978,
18,
2048,
4278,
327,
1544,
10531,
17,
2499,
65,
1327,
2612,
12,
3459,
18919,
3437,
30,
5717,
422,
296,
2978,
18,
2048,
18,
21,
4278,
327,
1544,
10531,
17,
3437,
65,
225,
2
] |
def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None): | def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None): | def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None): """ @param count true iff it should count number of times each line is executed @param trace true iff it should print out each line that is being counted @param countfuncs true iff it should just output a list of (filename, modulename, funcname,) for functions that were called at least once; This overrides `count' and `trace' @param ignoremods a list of the names of modules to ignore @param ignoredirs a list of the names of directories to ignore all of the (recursive) contents of @param infile file from which to read stored counts to be added into the results @param outfile file in which to write the results """ self.infile = infile self.outfile = outfile self.ignore = Ignore(ignoremods, ignoredirs) self.counts = {} # keys are (filename, linenumber) self.blabbed = {} # for debugging self.pathtobasename = {} # for memoizing os.path.basename self.donothing = 0 self.trace = trace self._calledfuncs = {} if countfuncs: self.globaltrace = self.globaltrace_countfuncs elif trace and count: self.globaltrace = self.globaltrace_lt self.localtrace = self.localtrace_trace_and_count elif trace: self.globaltrace = self.globaltrace_lt self.localtrace = self.localtrace_trace elif count: self.globaltrace = self.globaltrace_lt self.localtrace = self.localtrace_count else: # Ahem -- do nothing? Okay. self.donothing = 1 | 9340d0d72de79fcdacc1995974f82fcd6e43dd51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9340d0d72de79fcdacc1995974f82fcd6e43dd51/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1056,
33,
21,
16,
2606,
33,
21,
16,
1056,
17728,
33,
20,
16,
2305,
22760,
33,
9334,
2305,
8291,
33,
9334,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
3536,
632,
891,
1056,
638,
21437,
518,
1410,
1056,
1300,
434,
4124,
1517,
980,
353,
7120,
632,
891,
2606,
638,
21437,
518,
1410,
1172,
596,
1517,
980,
716,
353,
3832,
26352,
632,
891,
1056,
17728,
638,
21437,
518,
1410,
2537,
876,
279,
666,
434,
261,
3459,
16,
31961,
16,
1326,
529,
16,
13,
364,
4186,
716,
4591,
2566,
622,
4520,
3647,
31,
225,
1220,
9515,
1375,
1883,
11,
471,
1375,
5129,
11,
632,
891,
2305,
22760,
279,
666,
434,
326,
1257,
434,
4381,
358,
2305,
632,
891,
2305,
8291,
279,
666,
434,
326,
1257,
434,
6402,
358,
2305,
777,
434,
326,
261,
10543,
13,
2939,
434,
632,
891,
14568,
585,
628,
1492,
358,
855,
4041,
6880,
358,
506,
3096,
1368,
326,
1686,
632,
891,
8756,
585,
316,
1492,
358,
1045,
326,
1686,
3536,
365,
18,
267,
768,
273,
14568,
365,
18,
26050,
273,
8756,
365,
18,
6185,
273,
8049,
12,
6185,
22760,
16,
2305,
8291,
13,
365,
18,
8008,
273,
2618,
282,
468,
1311,
854,
261,
3459,
16,
4739,
21998,
13,
365,
18,
3083,
378,
2992,
273,
2618,
468,
364,
10450,
365,
18,
803,
869,
13909,
273,
2618,
468,
364,
11063,
6894,
1140,
18,
803,
18,
13909,
365,
18,
19752,
352,
4018,
273,
374,
365,
18,
5129,
273,
2606,
365,
6315,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1056,
33,
21,
16,
2606,
33,
21,
16,
1056,
17728,
33,
20,
16,
2305,
22760,
33,
9334,
2305,
8291,
33,
9334,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
3536,
632,
891,
1056,
638,
21437,
518,
1410,
1056,
1300,
434,
4124,
1517,
980,
353,
7120,
632,
891,
2606,
638,
21437,
518,
1410,
1172,
596,
1517,
980,
716,
353,
3832,
26352,
632,
891,
1056,
17728,
638,
21437,
518,
1410,
2537,
876,
279,
666,
434,
261,
3459,
16,
31961,
16,
1326,
529,
16,
13,
364,
4186,
716,
4591,
2566,
622,
4520,
3647,
31,
225,
1220,
9515,
1375,
1883,
11,
471,
1375,
5129,
11,
632,
891,
2305,
22760,
279,
666,
434,
326,
1257,
434,
4381,
2
] |
xapian.Query(db._field_mappings.get_prefix("mission") + "a13"), | xapian.Query(db._field_mappings.get_prefix("mission") + self.request.mission.name), | def get_context_data(self): # Get the query text q = self.request.GET.get('q', '') # Get the offset value try: offset = int( self.request.GET.get('offset', '0') ) if offset < 0: offset = 0 except ValueError: offset = 0 # Get the results from Xapian db = xappy.SearchConnection( os.path.join( settings.SITE_ROOT, '..', "xappydb", ), ) query = db.query_parse( q, default_op=db.OP_OR, ) query=db.query_filter( query, # FIXME: mission-specific filter! xapian.Query(db._field_mappings.get_prefix("mission") + "a13"), ) results = db.search( query=query, startrank=offset, endrank=offset+PAGESIZE, checkatleast=offset+PAGESIZE+1, ) # Go through the results, building a list of LogLine objects redis_conn = redis.Redis() log_lines = [] for result in results: transcript_name, timestamp = result.id.split(":", 1) log_line = LogLine(redis_conn, transcript_name, int(timestamp)) log_line.speaker = Character(redis_conn, transcript_name.split('/')[0], result.data['speaker'][0]) log_line.title = mark_safe(result.summarise("text", maxlen=50, ellipsis='…', strict_length=True, hl=None)) log_line.summary = mark_safe(result.summarise("text", maxlen=600, ellipsis='…', hl=('<mark>', '</mark>'))) log_lines.append(log_line) | 4058a738b5d7431c062760983ae2181e082d8868 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13780/4058a738b5d7431c062760983ae2181e082d8868/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2472,
67,
892,
12,
2890,
4672,
468,
968,
326,
843,
977,
1043,
273,
365,
18,
2293,
18,
3264,
18,
588,
2668,
85,
2187,
28707,
468,
968,
326,
1384,
460,
775,
30,
1384,
273,
509,
12,
365,
18,
2293,
18,
3264,
18,
588,
2668,
3348,
2187,
296,
20,
6134,
262,
309,
1384,
411,
374,
30,
1384,
273,
374,
1335,
2068,
30,
1384,
273,
374,
468,
968,
326,
1686,
628,
1139,
2425,
304,
1319,
273,
619,
438,
2074,
18,
2979,
1952,
12,
1140,
18,
803,
18,
5701,
12,
1947,
18,
20609,
67,
9185,
16,
11597,
2187,
315,
92,
438,
2074,
1966,
3113,
262,
16,
262,
843,
273,
1319,
18,
2271,
67,
2670,
12,
1043,
16,
805,
67,
556,
33,
1966,
18,
3665,
67,
916,
16,
262,
843,
33,
1966,
18,
2271,
67,
2188,
12,
843,
16,
468,
9852,
30,
29396,
17,
12524,
1034,
5,
619,
2425,
304,
18,
1138,
12,
1966,
6315,
1518,
67,
16047,
18,
588,
67,
3239,
2932,
3951,
7923,
397,
365,
18,
2293,
18,
3951,
18,
529,
3631,
262,
1686,
273,
1319,
18,
3072,
12,
843,
33,
2271,
16,
10443,
313,
2304,
33,
3348,
16,
679,
11500,
33,
3348,
15,
11219,
4574,
16,
866,
270,
16446,
33,
3348,
15,
11219,
4574,
15,
21,
16,
262,
468,
4220,
3059,
326,
1686,
16,
10504,
279,
666,
434,
1827,
1670,
2184,
5813,
67,
4646,
273,
5813,
18,
14406,
1435,
613,
67,
3548,
273,
5378,
364,
563,
316,
1686,
30,
15194,
67,
529,
16,
2858,
273,
563,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2472,
67,
892,
12,
2890,
4672,
468,
968,
326,
843,
977,
1043,
273,
365,
18,
2293,
18,
3264,
18,
588,
2668,
85,
2187,
28707,
468,
968,
326,
1384,
460,
775,
30,
1384,
273,
509,
12,
365,
18,
2293,
18,
3264,
18,
588,
2668,
3348,
2187,
296,
20,
6134,
262,
309,
1384,
411,
374,
30,
1384,
273,
374,
1335,
2068,
30,
1384,
273,
374,
468,
968,
326,
1686,
628,
1139,
2425,
304,
1319,
273,
619,
438,
2074,
18,
2979,
1952,
12,
1140,
18,
803,
18,
5701,
12,
1947,
18,
20609,
67,
9185,
16,
11597,
2187,
315,
92,
438,
2074,
1966,
3113,
262,
16,
262,
843,
273,
1319,
18,
2271,
67,
2670,
12,
1043,
16,
805,
67,
556,
2
] |
_cfunc_refs[tmpval1] = c_drawit | def fl_add_symbol(name, pydrawit, scalable): """ fl_add_symbol(name, pydrawit, scalable) -> num. """ c_drawit = FL_DRAWPTR(pydrawit) retval = _fl_add_symbol(name, c_drawit, scalable) _cfunc_refs[tmpval1] = c_drawit return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
1289,
67,
7175,
12,
529,
16,
2395,
9446,
305,
16,
8292,
429,
4672,
3536,
1183,
67,
1289,
67,
7175,
12,
529,
16,
2395,
9446,
305,
16,
8292,
429,
13,
317,
818,
18,
3536,
225,
276,
67,
9446,
305,
273,
31358,
67,
40,
10821,
1856,
54,
12,
2074,
9446,
305,
13,
5221,
273,
389,
2242,
67,
1289,
67,
7175,
12,
529,
16,
276,
67,
9446,
305,
16,
8292,
429,
13,
327,
5221,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
1183,
67,
1289,
67,
7175,
12,
529,
16,
2395,
9446,
305,
16,
8292,
429,
4672,
3536,
1183,
67,
1289,
67,
7175,
12,
529,
16,
2395,
9446,
305,
16,
8292,
429,
13,
317,
818,
18,
3536,
225,
276,
67,
9446,
305,
273,
31358,
67,
40,
10821,
1856,
54,
12,
2074,
9446,
305,
13,
5221,
273,
389,
2242,
67,
1289,
67,
7175,
12,
529,
16,
276,
67,
9446,
305,
16,
8292,
429,
13,
327,
5221,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assert long(v.scaledDoubleValue(e)) == v | sdv = self.sdv assert long(sdv(v, e)) == v | def test_scale_3_v(self): e = self.e v = self.v8 assert long(v.scaledDoubleValue(e)) == v assert e[0] == 0 assert long((v+1).scaledDoubleValue(e)) - v == 0 assert e[0] == 0 | 26c8ed171c9c50296861dbc6d44f6ae539fb07e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/26c8ed171c9c50296861dbc6d44f6ae539fb07e6/test_jy_internals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5864,
67,
23,
67,
90,
12,
2890,
4672,
425,
273,
365,
18,
73,
331,
273,
365,
18,
90,
28,
8349,
90,
273,
365,
18,
6427,
90,
1815,
1525,
12,
6427,
90,
12,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5864,
67,
23,
67,
90,
12,
2890,
4672,
425,
273,
365,
18,
73,
331,
273,
365,
18,
90,
28,
8349,
90,
273,
365,
18,
6427,
90,
1815,
1525,
12,
6427,
90,
12,
90,
16,
425,
3719,
422,
331,
1815,
425,
63,
20,
65,
422,
374,
1815,
1525,
12443,
90,
15,
21,
2934,
20665,
5265,
620,
12,
73,
3719,
300,
331,
422,
374,
1815,
425,
63,
20,
65,
422,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class MusicHistoryRepositoryFixture(Fixture): | class MusicHistoryRepositoryFixture(AspyFixture): | def run(self): t = os.listdir("E:\\Music\\Bloc Party - Silent Alarm\\") fss = FileSystemServices() files = fss.find_all_files("E:\\Music\\Bloc Party - Silent Alarm\\", ".mp3") self.assertEquals(16, len(files), "Num of files loaded") files = fss.find_all_files("E:\\Music\\Muse - Absolution", ".mp3") self.assertEquals(14, len(files), "Num of files loaded") | 43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
268,
273,
1140,
18,
1098,
1214,
2932,
41,
31027,
49,
14894,
1695,
38,
1829,
6393,
93,
300,
348,
8125,
2262,
4610,
1695,
7923,
225,
284,
1049,
273,
10931,
5676,
1435,
1390,
273,
284,
1049,
18,
4720,
67,
454,
67,
2354,
2932,
41,
31027,
49,
14894,
1695,
38,
1829,
6393,
93,
300,
348,
8125,
2262,
4610,
1695,
3113,
3552,
1291,
23,
7923,
365,
18,
11231,
8867,
12,
2313,
16,
562,
12,
2354,
3631,
315,
2578,
434,
1390,
4203,
7923,
225,
1390,
273,
284,
1049,
18,
4720,
67,
454,
67,
2354,
2932,
41,
31027,
49,
14894,
1695,
49,
1202,
300,
15084,
5889,
3113,
3552,
1291,
23,
7923,
365,
18,
11231,
8867,
12,
3461,
16,
562,
12,
2354,
3631,
315,
2578,
434,
1390,
4203,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
268,
273,
1140,
18,
1098,
1214,
2932,
41,
31027,
49,
14894,
1695,
38,
1829,
6393,
93,
300,
348,
8125,
2262,
4610,
1695,
7923,
225,
284,
1049,
273,
10931,
5676,
1435,
1390,
273,
284,
1049,
18,
4720,
67,
454,
67,
2354,
2932,
41,
31027,
49,
14894,
1695,
38,
1829,
6393,
93,
300,
348,
8125,
2262,
4610,
1695,
3113,
3552,
1291,
23,
7923,
365,
18,
11231,
8867,
12,
2313,
16,
562,
12,
2354,
3631,
315,
2578,
434,
1390,
4203,
7923,
225,
1390,
273,
284,
1049,
18,
4720,
67,
454,
67,
2354,
2932,
41,
31027,
49,
14894,
1695,
49,
1202,
300,
15084,
5889,
3113,
3552,
1291,
23,
7923,
365,
18,
11231,
8867,
12,
3461,
16,
562,
12,
2
] |
sage: R = RealField() sage: list(xsrange(1, 5, R(0.5))) | sage: list(xsrange(1, 5, 0.5)) | def xsrange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): """ Return an iterator over numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. INPUT: a -- number b -- number step -- number (default: 1) OUTPUT: iterator Unlike range, a and b can be any type of numbers, and the resulting iterator involves numbers of that type. SEE ALSO: srange. NOTE: This function is called \code{xsrange} to distinguish it from the builtin Python \code{xrange} command. EXAMPLES: sage: list(xsrange(1,10)) [1, 2, 3, 4, 5, 6, 7, 8, 9] sage: Q = RationalField() sage: list(xsrange(1, 10, Q('1/2'))) [1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 11/2, 6, 13/2, 7, 15/2, 8, 17/2, 9, 19/2] sage: R = RealField() sage: list(xsrange(1, 5, R(0.5))) [1.00000000000000, 1.50000000000000, 2.00000000000000, 2.50000000000000, 3.00000000000000, 3.50000000000000, 4.00000000000000, 4.50000000000000] sage: list(xsrange(0, 1, R('0.4'))) [0.000000000000000, 0.400000000000000, 0.800000000000000] Negative ranges are also allowed: sage: list(xrange(4,1,-1)) [4, 3, 2] sage: list(sxrange(4,1,-1)) [4, 3, 2] sage: list(sxrange(4,1,-1/2)) [4, 7/2, 3, 5/2, 2, 3/2] """ if end is None: end = start start = 0 if step == 0: raise ValueError, "step must not be 0" from sage.structure.sequence import Sequence from sage.rings.all import ZZ if check: if universe is None: universe = Sequence([start, end, step]).universe() start, end, step = universe(start), universe(end), universe(step) if include_endpoint: if universe in [int, long, ZZ]: if (start-end) % step == 0: end += step else: count = (start-end)/step if count == int(float(count)): end += step count += 1 if universe is int: return xrange(start, end, step) | 285dc9c60fd59b5e65432747859dd76b728bb3b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/285dc9c60fd59b5e65432747859dd76b728bb3b8/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9280,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
4672,
3536,
2000,
392,
2775,
1879,
5600,
521,
710,
95,
69,
16,
279,
15,
4119,
16,
1372,
16,
279,
15,
79,
14,
4119,
5779,
1625,
521,
710,
95,
69,
15,
79,
14,
4119,
411,
324,
97,
471,
521,
710,
95,
69,
15,
12,
79,
15,
21,
17653,
4119,
405,
324,
5496,
225,
12943,
30,
279,
1493,
1300,
324,
1493,
1300,
2235,
1493,
1300,
261,
1886,
30,
404,
13,
11550,
30,
2775,
225,
25448,
1048,
16,
279,
471,
324,
848,
506,
1281,
618,
434,
5600,
16,
471,
326,
8156,
2775,
29876,
3324,
5600,
434,
716,
618,
18,
225,
3174,
41,
432,
3045,
51,
30,
272,
3676,
18,
225,
5219,
30,
1220,
445,
353,
2566,
521,
710,
95,
13713,
3676,
97,
358,
23926,
518,
628,
326,
15273,
6600,
521,
710,
95,
92,
3676,
97,
1296,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
666,
12,
13713,
3676,
12,
21,
16,
2163,
3719,
306,
21,
16,
576,
16,
890,
16,
1059,
16,
1381,
16,
1666,
16,
2371,
16,
1725,
16,
2468,
65,
225,
272,
410,
30,
2238,
273,
534,
8371,
974,
1435,
272,
410,
30,
666,
12,
13713,
3676,
12,
21,
16,
1728,
16,
2238,
2668,
21,
19,
22,
11,
20349,
306,
21,
16,
890,
19,
22,
16,
576,
16,
1381,
19,
22,
16,
890,
16,
2371,
19,
22,
16,
1059,
16,
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,
9280,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
4672,
3536,
2000,
392,
2775,
1879,
5600,
521,
710,
95,
69,
16,
279,
15,
4119,
16,
1372,
16,
279,
15,
79,
14,
4119,
5779,
1625,
521,
710,
95,
69,
15,
79,
14,
4119,
411,
324,
97,
471,
521,
710,
95,
69,
15,
12,
79,
15,
21,
17653,
4119,
405,
324,
5496,
225,
12943,
30,
279,
1493,
1300,
324,
1493,
1300,
2235,
1493,
1300,
261,
1886,
30,
404,
13,
11550,
30,
2775,
225,
25448,
1048,
16,
279,
471,
324,
848,
506,
1281,
618,
434,
5600,
16,
471,
326,
8156,
2775,
29876,
3324,
5600,
2
] |
% (page_put_queue.qsize(), remaining)) page_put_queue.put((None, None, None, None, None, None, None)) | % remaining()) | def _flush(): """Wait for the page-putter to flush its queue. Called automatically upon exiting from Python. """ if page_put_queue.qsize() > 0: import datetime remaining = datetime.timedelta( seconds = page_put_queue.qsize() * config.put_throttle) output(u'Waiting for %i pages to be put. Estimated time remaining: %s' % (page_put_queue.qsize(), remaining)) page_put_queue.put((None, None, None, None, None, None, None)) while(_putthread.isAlive()): try: _putthread.join(1) except KeyboardInterrupt: remainingPages = page_put_queue.qsize() - 1 # -1 because we added a None element to stop the queue remainingSeconds = datetime.timedelta(seconds=(page_put_queue.qsize()) * config.put_throttle) answer = inputChoice(u'There are %i pages remaining in the queue. Estimated time remaining: %s\nReally exit?' % (remainingPages, remainingSeconds), ['yes', 'no'], ['y', 'N'], 'N') if answer == 'y': return try: get_throttle.drop() except NameError: pass | ce3cb1d9de6559e55f6d0804a899bd3b5a143aac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ce3cb1d9de6559e55f6d0804a899bd3b5a143aac/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11330,
13332,
3536,
5480,
364,
326,
1363,
17,
458,
387,
358,
3663,
2097,
2389,
18,
225,
11782,
6635,
12318,
15702,
628,
6600,
18,
225,
3536,
309,
1363,
67,
458,
67,
4000,
18,
85,
1467,
1435,
405,
374,
30,
1930,
3314,
4463,
273,
3314,
18,
31295,
12,
3974,
273,
1363,
67,
458,
67,
4000,
18,
85,
1467,
1435,
380,
642,
18,
458,
67,
27971,
298,
13,
876,
12,
89,
11,
15946,
364,
738,
77,
4689,
358,
506,
1378,
18,
17787,
17275,
813,
4463,
30,
738,
87,
11,
738,
4463,
10756,
225,
1323,
24899,
458,
5930,
18,
291,
10608,
1435,
4672,
775,
30,
389,
458,
5930,
18,
5701,
12,
21,
13,
1335,
19424,
30,
4463,
5716,
273,
1363,
67,
458,
67,
4000,
18,
85,
1467,
1435,
300,
404,
468,
300,
21,
2724,
732,
3096,
279,
599,
930,
358,
2132,
326,
2389,
4463,
6762,
273,
3314,
18,
31295,
12,
7572,
28657,
2433,
67,
458,
67,
4000,
18,
85,
1467,
10756,
380,
642,
18,
458,
67,
27971,
298,
13,
5803,
273,
810,
10538,
12,
89,
11,
9828,
854,
738,
77,
4689,
4463,
316,
326,
2389,
18,
17787,
17275,
813,
4463,
30,
738,
87,
64,
82,
426,
1230,
2427,
4899,
738,
261,
17956,
5716,
16,
4463,
6762,
3631,
10228,
9707,
2187,
296,
2135,
17337,
10228,
93,
2187,
296,
50,
17337,
296,
50,
6134,
309,
5803,
422,
296,
93,
4278,
327,
775,
30,
336,
67,
27971,
298,
18,
7285,
1435,
1335,
25473,
30,
1342,
225,
2,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11330,
13332,
3536,
5480,
364,
326,
1363,
17,
458,
387,
358,
3663,
2097,
2389,
18,
225,
11782,
6635,
12318,
15702,
628,
6600,
18,
225,
3536,
309,
1363,
67,
458,
67,
4000,
18,
85,
1467,
1435,
405,
374,
30,
1930,
3314,
4463,
273,
3314,
18,
31295,
12,
3974,
273,
1363,
67,
458,
67,
4000,
18,
85,
1467,
1435,
380,
642,
18,
458,
67,
27971,
298,
13,
876,
12,
89,
11,
15946,
364,
738,
77,
4689,
358,
506,
1378,
18,
17787,
17275,
813,
4463,
30,
738,
87,
11,
738,
4463,
10756,
225,
1323,
24899,
458,
5930,
18,
291,
10608,
1435,
4672,
775,
30,
389,
458,
5930,
18,
5701,
12,
21,
13,
1335,
19424,
30,
4463,
5716,
273,
1363,
67,
2
] |
if __name__ == "draw": layout(1) wireframe() reset() D = 10. L = 80. d = 0.2 n = 12 b = 30. res = askItems([['Diameter',D],['Length',L],['WireDiam',d],['NWires',n], ['Pitch',b]]) D = float(res['Diameter']) L = float(res['Length']) d = float(res['WireDiam']) n = int(res['NWires']) if (n % 2) != 0: warning('Number of wires must be even!') exit() b = float(res['Pitch']) H = DoubleHelixStent(D,L,d,n,b).all() clear() draw(H,view='iso') if ack("Do you want to save this image (in lots of formats) ?"): for ext in [ 'bmp', 'jpg', 'pbm', 'png', 'ppm', 'xbm', 'xpm', 'eps', 'ps', 'pdf', 'tex' ]: saveImage('WireStent.'+ext) | def all(self): """Return the Formex with all bar elements.""" return self.F | d3a15cd51357fc2545b2ef4fbf394e7c165ba0c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2499/d3a15cd51357fc2545b2ef4fbf394e7c165ba0c4/WireStent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
12,
2890,
4672,
3536,
990,
326,
2748,
338,
598,
777,
4653,
2186,
12123,
327,
365,
18,
42,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
12,
2890,
4672,
3536,
990,
326,
2748,
338,
598,
777,
4653,
2186,
12123,
327,
365,
18,
42,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 extractSrpm(pkg, pkgdir, filecache, repodir, oldpkg): | def extractSrpm(reponame, pkg, pkgdir, filecache, repodir, oldpkg): | def extractSrpm(pkg, pkgdir, filecache, repodir, oldpkg): files = pkg.getFilenames() i = pkg.getSpecfile(files) specfile = files[i] if os.path.exists("%s/%s" % (pkgdir, specfile)): checksum = getChecksum("%s/%s" % (pkgdir, specfile)) # same spec file in repo and in rpm: nothing to do if checksum == pkg["filemd5s"][i]: return os.system('rm -rf "%s"' % pkgdir) makeDirs(pkgdir) extractRpm(pkg, pkgdir + "/") for f in os.listdir(pkgdir): if f not in files and f not in ("Makefile", "sources"): fsrc = pkgdir + "/" + f os.unlink(fsrc) os.system("cd %s && git-update-index --remove %s" % (pkgdir, f)) if "sources" in files or "Makefile" in files: raise ValueError, \ "src.rpm contains sources/Makefile: %s" % pkg.filename EXTRACT_SOURCE_FOR = ["MAKEDEV", "anaconda", "anaconda-help", "anaconda-product", "basesystem", "booty", "chkconfig", "device-mapper", "dmraid", "firstboot", "glibc-kernheaders", "hwdata", "initscripts", "iscsi-initiator-utils", "kudzu", "mkinitrd", "pam_krb5", "passwd", "redhat-config-kickstart", "redhat-config-netboot", "redhat-config-network", "redhat-config-securitylevel", "rhn-applet", "rhnlib", "rhpl", "sysklogd", "system-config-printer", "system-config-securitylevel", "tux", "udev"] sources = [] if filecache: for i in xrange(len(files)): f = files[i] if not S_ISREG(pkg["filemodes"][i]) or not isBinary(f): continue fsrc = pkgdir + "/" + f # should we use sha instead of md5: #md5data = getChecksum(fsrc, "sha") md5data = pkg["filemd5s"][i] fdir = "%s/%s" % (filecache, md5data[0:2]) fname = "%s/%s.bin" % (fdir, md5data) # XXX disable this until my machine has more disk space if None and not os.path.isfile(fname): makeDirs(fdir) doLnOrCopy(fsrc, fname) if pkg["name"] in EXTRACT_SOURCE_FOR: if fsrc.find(".tar") >= 0: tempdir = "%s/e.tar" % pkgdir os.mkdir(tempdir) dirname = explodeFile(fsrc, tempdir, "0") os.rename(dirname, "%s/tar" % pkgdir) os.rmdir(tempdir) os.unlink(fsrc) sources.append("%s %s\n" % (md5data, f)) sources.sort(cmpNoMD5) writeFile(pkgdir + "/sources", sources) writeFile(pkgdir + "/Makefile", [ "include ../pyrpm/Makefile.srpm\n", "NAME:=%s\nSPECFILE:=%s\n" % (pkg["name"], specfile)]) # XXX: also checkin the data into a per-package repo os.system("cd %s && { find . -path ./.git -prune -o -type f -print | sed -e 's|^./||' | xargs git-update-index --add --refresh; }" % pkgdir) os.system('cd %s && { for file in $(git-ls-files); do [ ! -f "$file" ] && git-update-index --remove "$file"; done; }' % pkgdir) if oldpkg: (fd, tmpfile) = mkstemp_file("/tmp", special=1) fd.write("update %s from %s-%s to %s-%s\n\nchangelog:\n\n" % \ (pkg["name"], oldpkg["version"], oldpkg["release"], pkg["version"], pkg["release"]) + \ getChangeLogDiff(oldpkg, pkg)) fd.close() del fd changelog = "-F " + tmpfile user = "[email protected]" email = user if pkg["changelogname"]: user = pkg["changelogname"][0] if user.rfind("> ") != -1: user = user[:user.rfind("> ") + 1] email = user if email.find("<") != -1: email = email[email.find("<") + 1:email.rfind(">") + 1] if user.rfind(" <") != -1: user = user[:user.rfind(" <")] # XXX if we monitor trees, we could change the checkin time to # first day of release of the rpm package instead of rpm buildtime # XXX git knows about an "order" file which gives information on # how to order files for a diff: "*.spec" (.spec first) buildtime = str(pkg.hdr.getOne("buildtime")) os.system("cd " + repodir + " && GIT_AUTHOR_NAME=\"" + user + \ "\" GIT_AUTHOR_EMAIL=\"" + email + "\" GIT_AUTHOR_DATE=" + \ buildtime + " GIT_COMMITTER_NAME=\"" + user + \ "\" GIT_COMMITTER_EMAIL=\"" + email + "\" GIT_COMMITTER_DATE=" + \ buildtime + " git commit " + changelog) if tmpfile != None: os.unlink(tmpfile) | d4a3970fa3f1947aabfdd4eca421bbf58568d6ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d4a3970fa3f1947aabfdd4eca421bbf58568d6ba/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
55,
86,
7755,
12,
266,
500,
339,
16,
3475,
16,
3475,
1214,
16,
585,
2493,
16,
2071,
369,
481,
16,
1592,
10657,
4672,
1390,
273,
3475,
18,
588,
25579,
6809,
1435,
277,
273,
3475,
18,
588,
1990,
768,
12,
2354,
13,
857,
768,
273,
1390,
63,
77,
65,
225,
309,
1140,
18,
803,
18,
1808,
27188,
87,
5258,
87,
6,
738,
261,
10657,
1214,
16,
857,
768,
3719,
30,
6697,
273,
336,
10723,
27188,
87,
5258,
87,
6,
738,
261,
10657,
1214,
16,
857,
768,
3719,
468,
1967,
857,
585,
316,
3538,
471,
316,
25228,
30,
5083,
358,
741,
309,
6697,
422,
3475,
9614,
768,
1264,
25,
87,
6,
6362,
77,
14542,
327,
225,
1140,
18,
4299,
2668,
8864,
300,
5809,
2213,
87,
5187,
738,
3475,
1214,
13,
1221,
9872,
12,
10657,
1214,
13,
2608,
54,
7755,
12,
10657,
16,
3475,
1214,
397,
4016,
13,
364,
284,
316,
1140,
18,
1098,
1214,
12,
10657,
1214,
4672,
309,
284,
486,
316,
1390,
471,
284,
486,
316,
7566,
6464,
768,
3113,
315,
10141,
6,
4672,
2662,
1310,
273,
3475,
1214,
397,
4016,
397,
284,
1140,
18,
318,
1232,
12,
2556,
1310,
13,
1140,
18,
4299,
2932,
4315,
738,
87,
597,
5071,
17,
2725,
17,
1615,
1493,
4479,
738,
87,
6,
738,
261,
10657,
1214,
16,
284,
3719,
309,
315,
10141,
6,
316,
1390,
578,
315,
6464,
768,
6,
316,
1390,
30,
1002,
2068,
16,
521,
315,
4816,
18,
86,
7755,
1914,
5550,
19,
6464,
768,
30,
738,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
55,
86,
7755,
12,
266,
500,
339,
16,
3475,
16,
3475,
1214,
16,
585,
2493,
16,
2071,
369,
481,
16,
1592,
10657,
4672,
1390,
273,
3475,
18,
588,
25579,
6809,
1435,
277,
273,
3475,
18,
588,
1990,
768,
12,
2354,
13,
857,
768,
273,
1390,
63,
77,
65,
225,
309,
1140,
18,
803,
18,
1808,
27188,
87,
5258,
87,
6,
738,
261,
10657,
1214,
16,
857,
768,
3719,
30,
6697,
273,
336,
10723,
27188,
87,
5258,
87,
6,
738,
261,
10657,
1214,
16,
857,
768,
3719,
468,
1967,
857,
585,
316,
3538,
471,
316,
25228,
30,
5083,
358,
741,
309,
6697,
422,
3475,
9614,
768,
1264,
25,
87,
6,
6362,
77,
14542,
327,
225,
1140,
18,
4299,
2
] |
def apply_rule(added_clause, added_params, added_tables): | def apply_rule(added_clause, added_params, added_tables, parent_model=None, child_object=None): | def apply_rule(added_clause, added_params, added_tables): if added_clause: query.where_clause += added_clause query.where_clause_params += added_params for table in added_tables: if table not in query.tables: query.tables.append(table) return True return False | 17412755b91a9fe74a02c1e25cf89d2ac1f23b52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/17412755b91a9fe74a02c1e25cf89d2ac1f23b52/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
5345,
12,
9665,
67,
18128,
16,
3096,
67,
2010,
16,
3096,
67,
9373,
16,
982,
67,
2284,
33,
7036,
16,
1151,
67,
1612,
33,
7036,
4672,
309,
3096,
67,
18128,
30,
843,
18,
6051,
67,
18128,
1011,
3096,
67,
18128,
843,
18,
6051,
67,
18128,
67,
2010,
1011,
3096,
67,
2010,
364,
1014,
316,
3096,
67,
9373,
30,
309,
1014,
486,
316,
843,
18,
9373,
30,
843,
18,
9373,
18,
6923,
12,
2121,
13,
327,
1053,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
22398,
316,
326,
981,
30,
1652,
2230,
67,
5345,
12,
9665,
67,
18128,
16,
3096,
67,
2010,
16,
3096,
67,
9373,
16,
982,
67,
2284,
33,
7036,
16,
1151,
67,
1612,
33,
7036,
4672,
309,
3096,
67,
18128,
30,
843,
18,
6051,
67,
18128,
1011,
3096,
67,
18128,
843,
18,
6051,
67,
18128,
67,
2010,
1011,
3096,
67,
2010,
364,
1014,
316,
3096,
67,
9373,
30,
309,
1014,
486,
316,
843,
18,
9373,
30,
843,
18,
9373,
18,
6923,
12,
2121,
13,
327,
1053,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def test_Df_denom(self): | def test_df_denom(self): | def test_Df_denom(self): assert_equal(self.Ttest.df_denom, self.res1.model.df_resid) | c944eab8d84c6cac2fb5de055fceb6bc5953418f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12658/c944eab8d84c6cac2fb5de055fceb6bc5953418f/test_regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
67,
13002,
362,
12,
2890,
4672,
1815,
67,
9729,
12,
2890,
18,
56,
3813,
18,
2180,
67,
13002,
362,
16,
365,
18,
455,
21,
18,
2284,
18,
2180,
67,
15567,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
67,
13002,
362,
12,
2890,
4672,
1815,
67,
9729,
12,
2890,
18,
56,
3813,
18,
2180,
67,
13002,
362,
16,
365,
18,
455,
21,
18,
2284,
18,
2180,
67,
15567,
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
] |
def _cmp(a, b, sh): | def _cmp(a, b, sh, abs=abs, cmp=cmp): | def _cmp(a, b, sh): try: return not abs(cmp(a, b, sh)) except os.error: return 2 | 96a007422f48d730fd5c8fff2baba32db87faf76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/96a007422f48d730fd5c8fff2baba32db87faf76/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9625,
12,
69,
16,
324,
16,
699,
16,
2417,
33,
5113,
16,
9411,
33,
9625,
4672,
775,
30,
327,
486,
2417,
12,
9625,
12,
69,
16,
324,
16,
699,
3719,
1335,
1140,
18,
1636,
30,
327,
576,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9625,
12,
69,
16,
324,
16,
699,
16,
2417,
33,
5113,
16,
9411,
33,
9625,
4672,
775,
30,
327,
486,
2417,
12,
9625,
12,
69,
16,
324,
16,
699,
3719,
1335,
1140,
18,
1636,
30,
327,
576,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(child, cookie2) = self._treeCtrl.GetNextChild(project, cookie) | (child, cookie2) = self._treeCtrl.GetNextChild(project, cookie2) | def _GetFileItem(self, shortFileName = None, longFileName = None): """ Returns the tree item for a file given the short (display) or long (fullpath) file name. """ rootItem = self._treeCtrl.GetRootItem() (project, cookie) = self._treeCtrl.GetFirstChild(rootItem) while project.IsOk(): (child, cookie2) = self._treeCtrl.GetFirstChild(project) while child.IsOk(): if shortFileName: if self._treeCtrl.GetItemText(child) == shortFileName: return child else: if self._treeCtrl.GetLongFilename(child) == longFileName: return child (child, cookie2) = self._treeCtrl.GetNextChild(project, cookie) (project, cookie) = self._treeCtrl.GetNextChild(rootItem, cookie) return None | bbb2889740248dad3f6405367f6382e7cb6cb839 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/bbb2889740248dad3f6405367f6382e7cb6cb839/ProjectEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
812,
1180,
12,
2890,
16,
3025,
4771,
273,
599,
16,
1525,
4771,
273,
599,
4672,
3536,
2860,
326,
2151,
761,
364,
279,
585,
864,
326,
3025,
261,
5417,
13,
578,
1525,
261,
2854,
803,
13,
585,
508,
18,
3536,
225,
1365,
1180,
273,
365,
6315,
3413,
12418,
18,
967,
2375,
1180,
1435,
261,
4406,
16,
3878,
13,
273,
365,
6315,
3413,
12418,
18,
967,
3759,
1763,
12,
3085,
1180,
13,
1323,
1984,
18,
2520,
8809,
13332,
261,
3624,
16,
3878,
22,
13,
273,
365,
6315,
3413,
12418,
18,
967,
3759,
1763,
12,
4406,
13,
1323,
1151,
18,
2520,
8809,
13332,
309,
3025,
4771,
30,
309,
365,
6315,
3413,
12418,
18,
967,
1180,
1528,
12,
3624,
13,
422,
3025,
4771,
30,
327,
1151,
469,
30,
309,
365,
6315,
3413,
12418,
18,
967,
3708,
5359,
12,
3624,
13,
422,
1525,
4771,
30,
327,
1151,
261,
3624,
16,
3878,
22,
13,
273,
365,
6315,
3413,
12418,
18,
967,
2134,
1763,
12,
4406,
16,
3878,
22,
13,
261,
4406,
16,
3878,
13,
273,
365,
6315,
3413,
12418,
18,
967,
2134,
1763,
12,
3085,
1180,
16,
3878,
13,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
967,
812,
1180,
12,
2890,
16,
3025,
4771,
273,
599,
16,
1525,
4771,
273,
599,
4672,
3536,
2860,
326,
2151,
761,
364,
279,
585,
864,
326,
3025,
261,
5417,
13,
578,
1525,
261,
2854,
803,
13,
585,
508,
18,
3536,
225,
1365,
1180,
273,
365,
6315,
3413,
12418,
18,
967,
2375,
1180,
1435,
261,
4406,
16,
3878,
13,
273,
365,
6315,
3413,
12418,
18,
967,
3759,
1763,
12,
3085,
1180,
13,
1323,
1984,
18,
2520,
8809,
13332,
261,
3624,
16,
3878,
22,
13,
273,
365,
6315,
3413,
12418,
18,
967,
3759,
1763,
12,
4406,
13,
1323,
1151,
18,
2520,
8809,
13332,
309,
3025,
4771,
30,
309,
365,
6315,
3413,
12418,
18,
967,
1180,
1528,
12,
3624,
13,
2
] |
else | else: | def size(self): if hasattr(os, 'fstat'): return os.fstat(self.fileno()).st_size else return os.stat(self.name).st_size | f4f0fa72df9cf1504a67e88b0970739d121d4a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12534/f4f0fa72df9cf1504a67e88b0970739d121d4a92/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
12,
2890,
4672,
309,
3859,
12,
538,
16,
296,
74,
5642,
11,
4672,
327,
1140,
18,
74,
5642,
12,
2890,
18,
7540,
5764,
1435,
2934,
334,
67,
1467,
469,
30,
327,
1140,
18,
5642,
12,
2890,
18,
529,
2934,
334,
67,
1467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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18,
74,
5642,
12,
2890,
18,
7540,
5764,
1435,
2934,
334,
67,
1467,
469,
30,
327,
1140,
18,
5642,
12,
2890,
18,
529,
2934,
334,
67,
1467,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = msg return demoBuildStatus console.info("Generating %s version of demo variant %s for library %s version %s..." %(demoVersion,demoVariant, self.libraryName, self.versionName) ) subPath = os.path.join("demo", demoVariant) try: rcode, output, errout = self.runGenerator(demoVersion, subPath) | rcode, output, errout = runGenerator(self.path, target, macro) | def buildDemo(self, demoVariant = "default", demoVersion = "build"): demoBuildStatus = {} try: demoBuildStatus["svnRevision"] = self.getSvnRevision() except: pass if not self.hasDemoDir: msg = "Library %s version %s has no demo folder!" %(self.library.dir, self.dir) console.error(msg) demoBuildStatus["buildError"] = msg return demoBuildStatus console.info("Generating %s version of demo variant %s for library %s version %s..." %(demoVersion,demoVariant, self.libraryName, self.versionName) ) subPath = os.path.join("demo", demoVariant) try: rcode, output, errout = self.runGenerator(demoVersion, subPath) except Exception, e: msg = "Error running generator: " + str(e) console.wite("") console.error(e) demoBuildStatus["buildError"] = msg return demoBuildStatus #some demos don't produce a qooxdoo application, so they're ignored #for the demobrowser demoScriptPath = os.path.join(self.path, "demo", demoVariant, demoVersion, "script") hasScriptDir = os.path.isdir(demoScriptPath) if rcode > 0: console.error(errout) console.info(output) if not errout: errout = "Unknown error" demoBuildStatus["buildError"] = errout elif not hasScriptDir: console.write("") console.warn("No script directory created!") demoBuildStatus["buildError"] = "No script directory created" else: console.write("Done.", "info") demoBuildStatus["buildError"] = None self.demoBuildStatus = demoBuildStatus return demoBuildStatus | 610bd392cd356830d4652a775532be95d83a132a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/610bd392cd356830d4652a775532be95d83a132a/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
27126,
12,
2890,
16,
21477,
9356,
273,
315,
1886,
3113,
21477,
1444,
273,
315,
3510,
6,
4672,
21477,
3116,
1482,
273,
2618,
775,
30,
436,
710,
16,
876,
16,
6445,
7028,
273,
1086,
3908,
12,
2890,
18,
803,
16,
1018,
16,
11522,
13,
1335,
1185,
16,
425,
30,
1234,
273,
315,
668,
3549,
4456,
30,
315,
397,
609,
12,
73,
13,
2983,
18,
91,
1137,
2932,
7923,
2983,
18,
1636,
12,
73,
13,
21477,
3116,
1482,
9614,
3510,
668,
11929,
273,
1234,
327,
21477,
3116,
1482,
225,
468,
19068,
9626,
538,
2727,
1404,
11402,
279,
1043,
83,
2409,
2896,
83,
2521,
16,
1427,
2898,
4565,
5455,
468,
1884,
326,
9626,
947,
3358,
21477,
3651,
743,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
315,
27928,
3113,
21477,
9356,
16,
21477,
1444,
16,
315,
4263,
7923,
711,
3651,
1621,
273,
1140,
18,
803,
18,
291,
1214,
12,
27928,
3651,
743,
13,
225,
309,
436,
710,
405,
374,
30,
2983,
18,
1636,
12,
264,
7028,
13,
2983,
18,
1376,
12,
2844,
13,
309,
486,
6445,
7028,
30,
6445,
7028,
273,
315,
4874,
555,
6,
21477,
3116,
1482,
9614,
3510,
668,
11929,
273,
6445,
7028,
1327,
486,
711,
3651,
1621,
30,
2983,
18,
2626,
2932,
7923,
2983,
18,
8935,
2932,
2279,
2728,
1867,
2522,
4442,
13,
21477,
3116,
1482,
9614,
3510,
668,
11929,
273,
315,
2279,
2728,
1867,
2522,
6,
469,
30,
2983,
18,
2626,
2932,
7387,
1199,
16,
315,
1376,
7923,
21477,
3116,
1482,
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,
1361,
27126,
12,
2890,
16,
21477,
9356,
273,
315,
1886,
3113,
21477,
1444,
273,
315,
3510,
6,
4672,
21477,
3116,
1482,
273,
2618,
775,
30,
436,
710,
16,
876,
16,
6445,
7028,
273,
1086,
3908,
12,
2890,
18,
803,
16,
1018,
16,
11522,
13,
1335,
1185,
16,
425,
30,
1234,
273,
315,
668,
3549,
4456,
30,
315,
397,
609,
12,
73,
13,
2983,
18,
91,
1137,
2932,
7923,
2983,
18,
1636,
12,
73,
13,
21477,
3116,
1482,
9614,
3510,
668,
11929,
273,
1234,
327,
21477,
3116,
1482,
225,
468,
19068,
9626,
538,
2727,
1404,
11402,
279,
1043,
83,
2409,
2896,
83,
2521,
16,
1427,
2898,
4565,
5455,
468,
1884,
326,
9626,
947,
3358,
21477,
3651,
743,
273,
1140,
2
] |
if sys.platform == 'Darwin1.2': | if platform == 'Darwin1.2': | def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.append('/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.append( '/usr/local/include' ) | 1cfa0e8295f3d8749eba860c3e99f12d18bfbee3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1cfa0e8295f3d8749eba860c3e99f12d18bfbee3/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
18,
9576,
18,
12083,
67,
8291,
18,
6923,
2668,
19,
13640,
19,
3729,
19,
2941,
6134,
309,
1173,
13640,
19,
3729,
19,
6702,
11,
486,
316,
365,
18,
9576,
18,
6702,
67,
8291,
30,
365,
18,
9576,
18,
6702,
67,
8291,
18,
6923,
12,
1173,
13640,
19,
3729,
19,
6702,
11,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
18,
9576,
18,
12083,
67,
8291,
18,
6923,
2668,
19,
13640,
19,
3729,
19,
2941,
6134,
309,
1173,
13640,
19,
3729,
19,
6702,
11,
486,
316,
365,
18,
9576,
18,
6702,
67,
8291,
30,
365,
18,
9576,
18,
6702,
67,
8291,
18,
6923,
12,
1173,
13640,
19,
3729,
19,
6702,
11,
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
] |
methodTreeView.append_column(gtk.TreeViewColumn("tree", gtk.CellRendererText(), markup=0)) objectTreeView.append_column(gtk.TreeViewColumn("tree", gtk.CellRendererText(), markup=0)) | def _params(self): return A(Ps(), 'This method returns a class nearly implementing a Gnome Grimoire client application.') | d15b9c725ea67add01a06509ffd56a9e5e38264b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/d15b9c725ea67add01a06509ffd56a9e5e38264b/ggui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2010,
12,
2890,
4672,
327,
432,
12,
18124,
9334,
296,
2503,
707,
1135,
279,
667,
13378,
715,
19981,
279,
611,
82,
1742,
611,
86,
381,
19847,
1004,
2521,
1093,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2010,
12,
2890,
4672,
327,
432,
12,
18124,
9334,
296,
2503,
707,
1135,
279,
667,
13378,
715,
19981,
279,
611,
82,
1742,
611,
86,
381,
19847,
1004,
2521,
1093,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
listbox = Tkinter.Listbox( self.tkref, yscrollcommand=scrollbar.set, font=listbox_font, bg="light yellow", selectmode=Tkinter.SINGLE, height=30, width=40, relief=Tkinter.FLAT, ) listbox.config(selectbackground=listbox["bg"], selectforeground=listbox["fg"]) listbox.bind("<Double-Button-1>", open_char_page) | listbox = Tkinter.Listbox( self.tkref, yscrollcommand=scrollbar.set, font=listbox_font, bg="light yellow", selectmode=Tkinter.SINGLE, height=30, width=40, relief=Tkinter.FLAT, ) listbox.config(selectbackground=listbox["bg"], selectforeground=listbox["fg"]) listbox.bind("<Double-Button-1>", open_char_page) | def __init__(self, root): self.tkref = root self.tkref.title("Prolepsis 0.2.0") | a297d3735c8e07d10e9f1f8937e0131696e57ce3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4811/a297d3735c8e07d10e9f1f8937e0131696e57ce3/prolepsis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
4672,
365,
18,
16099,
1734,
273,
1365,
365,
18,
16099,
1734,
18,
2649,
2932,
626,
298,
1121,
291,
374,
18,
22,
18,
20,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
4672,
365,
18,
16099,
1734,
273,
1365,
365,
18,
16099,
1734,
18,
2649,
2932,
626,
298,
1121,
291,
374,
18,
22,
18,
20,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def createLogFile(self, test, stdout): | def createLogFile(self, test, stdout, leakLogs): | def createLogFile(self, test, stdout): """ For a given test and stdout buffer, create a log file. also log any found leaks. On a remote system we have to fix the test name since it can contain directories. """ try: f = open(test + ".log", "w") f.write(stdout) | d03cbb5b473702276b62e302f308e75a52db6d14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/d03cbb5b473702276b62e302f308e75a52db6d14/runxpcshelltests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
19103,
12,
2890,
16,
1842,
16,
3909,
16,
20891,
7777,
4672,
3536,
2457,
279,
864,
1842,
471,
3909,
1613,
16,
752,
279,
613,
585,
18,
225,
2546,
613,
1281,
1392,
20891,
87,
18,
2755,
279,
2632,
2619,
732,
1240,
358,
2917,
326,
1842,
508,
3241,
518,
848,
912,
6402,
18,
3536,
775,
30,
284,
273,
1696,
12,
3813,
397,
3552,
1330,
3113,
315,
91,
7923,
284,
18,
2626,
12,
10283,
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,
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,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
19103,
12,
2890,
16,
1842,
16,
3909,
16,
20891,
7777,
4672,
3536,
2457,
279,
864,
1842,
471,
3909,
1613,
16,
752,
279,
613,
585,
18,
225,
2546,
613,
1281,
1392,
20891,
87,
18,
2755,
279,
2632,
2619,
732,
1240,
358,
2917,
326,
1842,
508,
3241,
518,
848,
912,
6402,
18,
3536,
775,
30,
284,
273,
1696,
12,
3813,
397,
3552,
1330,
3113,
315,
91,
7923,
284,
18,
2626,
12,
10283,
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
] |
print vid | def get_video_description(vid): print vid j = json.load(urllib2.urlopen(url % vid)) if j.get('error'): return j = j['data'] out = '\x02%s\x02' % j['title'] out += ' - length \x02' length = j['duration'] if length / 3600: # > 1 hour out += '%dh ' % (length / 3600) if length / 60: out += '%dm ' % (length / 60 % 60) out += "%ds\x02" % (length % 60) if 'rating' in j: out += ' - rated \x02%.2f/5.0\x02 (%d)' % (j['rating'], j['ratingCount']) if 'viewCount' in j: out += ' - \x02%s\x02 views' % locale.format('%d', j['viewCount'], 1) upload_time = time.strptime(j['uploaded'], "%Y-%m-%dT%H:%M:%S.000Z") out += ' - \x02%s\x02 on \x02%s\x02' % (j['uploader'], time.strftime("%Y.%m.%d", upload_time)) if 'contentRating' in j: out += ' - \x034NSFW\x02' return out | a4ada7893ca725b4894819279d6b890ffd40d155 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9775/a4ada7893ca725b4894819279d6b890ffd40d155/youtube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9115,
67,
3384,
12,
1246,
4672,
525,
273,
1163,
18,
945,
12,
718,
2941,
22,
18,
295,
18589,
12,
718,
738,
18339,
3719,
225,
309,
525,
18,
588,
2668,
1636,
11,
4672,
327,
225,
525,
273,
525,
3292,
892,
3546,
225,
596,
273,
2337,
92,
3103,
9,
87,
64,
92,
3103,
11,
738,
525,
3292,
2649,
3546,
225,
596,
1011,
296,
300,
769,
521,
92,
3103,
11,
769,
273,
525,
3292,
8760,
3546,
309,
769,
342,
12396,
30,
468,
405,
404,
6126,
596,
1011,
1995,
19153,
296,
738,
261,
2469,
342,
12396,
13,
309,
769,
342,
4752,
30,
596,
1011,
1995,
10956,
296,
738,
261,
2469,
342,
4752,
738,
4752,
13,
596,
1011,
2213,
2377,
64,
92,
3103,
6,
738,
261,
2469,
738,
4752,
13,
225,
309,
296,
17326,
11,
316,
525,
30,
596,
1011,
296,
300,
436,
690,
521,
92,
3103,
9,
18,
22,
74,
19,
25,
18,
20,
64,
92,
3103,
6142,
72,
2506,
738,
261,
78,
3292,
17326,
17337,
525,
3292,
17326,
1380,
19486,
282,
309,
296,
1945,
1380,
11,
316,
525,
30,
596,
1011,
296,
300,
521,
92,
3103,
9,
87,
64,
92,
3103,
7361,
11,
738,
2573,
18,
2139,
29909,
72,
2187,
525,
3292,
1945,
1380,
17337,
404,
13,
225,
3617,
67,
957,
273,
813,
18,
701,
10650,
12,
78,
3292,
23249,
17337,
2213,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
5319,
55,
18,
3784,
62,
7923,
596,
1011,
296,
300,
521,
92,
3103,
9,
87,
64,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9115,
67,
3384,
12,
1246,
4672,
525,
273,
1163,
18,
945,
12,
718,
2941,
22,
18,
295,
18589,
12,
718,
738,
18339,
3719,
225,
309,
525,
18,
588,
2668,
1636,
11,
4672,
327,
225,
525,
273,
525,
3292,
892,
3546,
225,
596,
273,
2337,
92,
3103,
9,
87,
64,
92,
3103,
11,
738,
525,
3292,
2649,
3546,
225,
596,
1011,
296,
300,
769,
521,
92,
3103,
11,
769,
273,
525,
3292,
8760,
3546,
309,
769,
342,
12396,
30,
468,
405,
404,
6126,
596,
1011,
1995,
19153,
296,
738,
261,
2469,
342,
12396,
13,
309,
769,
342,
4752,
30,
596,
1011,
1995,
10956,
296,
738,
261,
2469,
342,
4752,
738,
4752,
13,
596,
1011,
2213,
2377,
64,
2
] |
|
return [path_utils.ChromiumBaselinePath('chromium-win'), path_utils.WebKitBaselinePath('win'), path_utils.WebKitBaselinePath('mac')] | dirs = [] if PlatformVersion() == "-xp": dirs.append(path_utils.ChromiumBaselinePath('chromium-win-xp')) dirs.append(path_utils.ChromiumBaselinePath('chromium-win')) dirs.append(path_utils.WebKitBaselinePath('win')) dirs.append(path_utils.WebKitBaselinePath('mac')) return dirs | def BaselineSearchPath(): """Returns the list of directories to search for baselines/results, in order of preference. Paths are relative to the top of the source tree.""" return [path_utils.ChromiumBaselinePath('chromium-win'), path_utils.WebKitBaselinePath('win'), path_utils.WebKitBaselinePath('mac')] | cf37da383867e81a5998fb06f5bca52dc92552c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/cf37da383867e81a5998fb06f5bca52dc92552c7/platform_utils_win.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
345,
3027,
2979,
743,
13332,
3536,
1356,
326,
666,
434,
6402,
358,
1623,
364,
2580,
14567,
19,
4717,
16,
316,
1353,
434,
11555,
18,
16643,
854,
3632,
358,
326,
1760,
434,
326,
1084,
2151,
12123,
7717,
273,
5378,
309,
11810,
1444,
1435,
422,
3701,
23829,
6877,
7717,
18,
6923,
12,
803,
67,
5471,
18,
30761,
5077,
16635,
743,
2668,
16298,
5077,
17,
8082,
17,
23829,
26112,
7717,
18,
6923,
12,
803,
67,
5471,
18,
30761,
5077,
16635,
743,
2668,
16298,
5077,
17,
8082,
26112,
7717,
18,
6923,
12,
803,
67,
5471,
18,
4079,
14102,
16635,
743,
2668,
8082,
26112,
7717,
18,
6923,
12,
803,
67,
5471,
18,
4079,
14102,
16635,
743,
2668,
5821,
26112,
327,
7717,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
3536,
1356,
326,
666,
434,
6402,
358,
1623,
364,
2580,
14567,
19,
4717,
16,
316,
1353,
434,
11555,
18,
16643,
854,
3632,
358,
326,
1760,
434,
326,
1084,
2151,
12123,
7717,
273,
5378,
309,
11810,
1444,
1435,
422,
3701,
23829,
6877,
7717,
18,
6923,
12,
803,
67,
5471,
18,
30761,
5077,
16635,
743,
2668,
16298,
5077,
17,
8082,
17,
23829,
26112,
7717,
18,
6923,
12,
803,
67,
5471,
18,
30761,
5077,
16635,
743,
2668,
16298,
5077,
17,
8082,
26112,
7717,
18,
6923,
12,
803,
67,
5471,
18,
4079,
14102,
16635,
743,
2668,
8082,
26112,
7717,
18,
6923,
12,
803,
67,
5471,
18,
4079,
14102,
16635,
743,
2668,
5821,
26112,
327,
7717,
225,
2
] |
print format3c(month_name[q], month_name[q+1], month_name[q+2]) format3c(header, header, header) | s = (s + '\n' * l + format3cstring(month_name[q], month_name[q+1], month_name[q+2], colwidth, c).rstrip() + '\n' * l + header + '\n' * l) | def prcal(year): """Print a year's calendar.""" header = weekheader(2) format3c('', `year`, '') for q in range(January, January+12, 3): print format3c(month_name[q], month_name[q+1], month_name[q+2]) format3c(header, header, header) data = [] height = 0 for month in range(q, q+3): cal = monthcalendar(year, month) if len(cal) > height: height = len(cal) data.append(cal) for i in range(height): for cal in data: if i >= len(cal): print ' '*_colwidth, else: prweek(cal[i], 2) print _spacing, print | 338398f1cb7106ce99627d71e1839a1616596a76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/338398f1cb7106ce99627d71e1839a1616596a76/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
771,
12,
6874,
4672,
3536,
5108,
279,
3286,
1807,
5686,
12123,
1446,
273,
4860,
3374,
12,
22,
13,
740,
23,
71,
2668,
2187,
1375,
6874,
9191,
28707,
364,
1043,
316,
1048,
12,
46,
304,
24335,
16,
23214,
24335,
15,
2138,
16,
890,
4672,
272,
273,
261,
87,
397,
2337,
82,
11,
380,
328,
397,
740,
23,
71,
1080,
12,
7496,
67,
529,
63,
85,
6487,
3138,
67,
529,
63,
85,
15,
21,
6487,
3138,
67,
529,
63,
85,
15,
22,
6487,
645,
2819,
16,
276,
2934,
86,
6406,
1435,
397,
2337,
82,
11,
380,
328,
397,
1446,
397,
2337,
82,
11,
380,
328,
13,
501,
273,
5378,
2072,
273,
374,
364,
3138,
316,
1048,
12,
85,
16,
1043,
15,
23,
4672,
1443,
273,
3138,
11650,
12,
6874,
16,
3138,
13,
309,
562,
12,
771,
13,
405,
2072,
30,
2072,
273,
562,
12,
771,
13,
501,
18,
6923,
12,
771,
13,
364,
277,
316,
1048,
12,
4210,
4672,
364,
1443,
316,
501,
30,
309,
277,
1545,
562,
12,
771,
4672,
1172,
296,
14609,
67,
1293,
2819,
16,
469,
30,
846,
10741,
12,
771,
63,
77,
6487,
576,
13,
1172,
389,
14080,
16,
1172,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
771,
12,
6874,
4672,
3536,
5108,
279,
3286,
1807,
5686,
12123,
1446,
273,
4860,
3374,
12,
22,
13,
740,
23,
71,
2668,
2187,
1375,
6874,
9191,
28707,
364,
1043,
316,
1048,
12,
46,
304,
24335,
16,
23214,
24335,
15,
2138,
16,
890,
4672,
272,
273,
261,
87,
397,
2337,
82,
11,
380,
328,
397,
740,
23,
71,
1080,
12,
7496,
67,
529,
63,
85,
6487,
3138,
67,
529,
63,
85,
15,
21,
6487,
3138,
67,
529,
63,
85,
15,
22,
6487,
645,
2819,
16,
276,
2934,
86,
6406,
1435,
397,
2337,
82,
11,
380,
328,
397,
1446,
397,
2337,
82,
11,
380,
328,
13,
501,
273,
5378,
2072,
273,
374,
364,
3138,
316,
1048,
12,
85,
16,
2
] |
sage: K = NumberField(x^3 - 2, 'a'); K | sage: K = NumberField(x^3 - 2); K | def is_CyclotomicField(x): return isinstance(x, NumberField_cyclotomic) | 43f8843c72a7b540aa8c8372f583216476d11299 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/43f8843c72a7b540aa8c8372f583216476d11299/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
17992,
830,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
17992,
830,
352,
24721,
974,
12,
92,
4672,
327,
1549,
12,
92,
16,
3588,
974,
67,
2431,
830,
352,
24721,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
oldImagePage = wikipedia.Page(mysite, ns + ':' + oldImage) | oldImagePage = wikipedia.ImagePage(mysite, ns + ':' + oldImage) | def main(): oldImage = None newImage = None summary = '' always = False loose = False # read command line parameters for arg in wikipedia.handleArgs(): if arg == '-always': always = True elif arg == '-loose': loose = True elif arg.startswith('-summary'): if len(arg) == len('-summary'): summary = wikipedia.input(u'Choose an edit summary: ') else: summary = arg[len('-summary:'):] else: if oldImage: newImage = arg else: oldImage = arg if not oldImage: wikipedia.showHelp('image') else: mysite = wikipedia.getSite() ns = mysite.image_namespace() oldImagePage = wikipedia.Page(mysite, ns + ':' + oldImage) gen = pagegenerators.FileLinksGenerator(oldImagePage) preloadingGen = pagegenerators.PreloadingGenerator(gen) bot = ImageRobot(preloadingGen, oldImage, newImage, summary, always, loose) bot.run() | 1c1122c0c04ca623ee142c83f739db1434c8c7f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/1c1122c0c04ca623ee142c83f739db1434c8c7f9/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1592,
2040,
273,
599,
394,
2040,
273,
599,
4916,
273,
875,
3712,
273,
1083,
28393,
273,
1083,
468,
855,
1296,
980,
1472,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
2400,
17737,
4278,
3712,
273,
1053,
1327,
1501,
422,
2400,
383,
2584,
4278,
28393,
273,
1053,
1327,
1501,
18,
17514,
1918,
2668,
17,
7687,
11,
4672,
309,
562,
12,
3175,
13,
422,
562,
2668,
17,
7687,
11,
4672,
4916,
273,
21137,
18,
2630,
12,
89,
11,
24529,
392,
3874,
4916,
30,
8624,
469,
30,
4916,
273,
1501,
63,
1897,
2668,
17,
7687,
2497,
4672,
65,
469,
30,
309,
1592,
2040,
30,
394,
2040,
273,
1501,
469,
30,
1592,
2040,
273,
1501,
225,
309,
486,
1592,
2040,
30,
21137,
18,
4500,
6696,
2668,
2730,
6134,
469,
30,
312,
1900,
1137,
273,
21137,
18,
588,
4956,
1435,
3153,
273,
312,
1900,
1137,
18,
2730,
67,
4937,
1435,
225,
1592,
2040,
1964,
273,
21137,
18,
2040,
1964,
12,
81,
1900,
1137,
16,
3153,
397,
3921,
397,
1592,
2040,
13,
225,
3157,
273,
1363,
25959,
18,
812,
7100,
3908,
12,
1673,
2040,
1964,
13,
675,
15174,
7642,
273,
1363,
25959,
18,
1386,
15174,
3908,
12,
4507,
13,
225,
2512,
273,
3421,
20605,
12,
1484,
15174,
7642,
16,
1592,
2040,
16,
394,
2040,
16,
4916,
16,
3712,
16,
28393,
13,
2512,
18,
2681,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1592,
2040,
273,
599,
394,
2040,
273,
599,
4916,
273,
875,
3712,
273,
1083,
28393,
273,
1083,
468,
855,
1296,
980,
1472,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
2400,
17737,
4278,
3712,
273,
1053,
1327,
1501,
422,
2400,
383,
2584,
4278,
28393,
273,
1053,
1327,
1501,
18,
17514,
1918,
2668,
17,
7687,
11,
4672,
309,
562,
12,
3175,
13,
422,
562,
2668,
17,
7687,
11,
4672,
4916,
273,
21137,
18,
2630,
12,
89,
11,
24529,
392,
3874,
4916,
30,
8624,
469,
30,
4916,
273,
1501,
63,
1897,
2668,
17,
7687,
2497,
4672,
65,
469,
30,
309,
1592,
2040,
30,
394,
2040,
273,
1501,
469,
30,
1592,
2040,
273,
1501,
225,
309,
2
] |
return self.articles[title]['text'] | return self.articles[norm(title)]['text'] | def getRawArticle(self, title, revision=None): try: return self.articles[title]['text'] except KeyError: return None | f043320e646c4f2d323c7b9284ef98b6ee76ecda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/f043320e646c4f2d323c7b9284ef98b6ee76ecda/test_zipcreator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
16,
6350,
33,
7036,
4672,
775,
30,
327,
365,
18,
16462,
63,
7959,
12,
2649,
13,
23962,
955,
3546,
1335,
4999,
30,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
16,
6350,
33,
7036,
4672,
775,
30,
327,
365,
18,
16462,
63,
7959,
12,
2649,
13,
23962,
955,
3546,
1335,
4999,
30,
327,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return _('[hidden]') | return self._('[hidden]') | def plain(self): ''' Render a "plain" representation of the property ''' if not self.is_view_ok(): return _('[hidden]') | b8b5dcad40d558bb420083124fa7c9603708cbf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b8b5dcad40d558bb420083124fa7c9603708cbf4/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7351,
12,
2890,
4672,
9163,
6987,
279,
315,
7446,
6,
4335,
434,
326,
1272,
9163,
309,
486,
365,
18,
291,
67,
1945,
67,
601,
13332,
327,
389,
2668,
63,
6345,
3864,
13,
2,
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,
7351,
12,
2890,
4672,
9163,
6987,
279,
315,
7446,
6,
4335,
434,
326,
1272,
9163,
309,
486,
365,
18,
291,
67,
1945,
67,
601,
13332,
327,
389,
2668,
63,
6345,
3864,
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
] |
sage: [1,2,3] in T False | def Tableaux(n=None): """ Returns the combinatorial class of tableaux. If n is specified, then it returns the combinatorial class of all tableaux of size n. EXAMPLES:: sage: T = Tableaux(); T Tableaux sage: [[1,2],[3,4]] in T True sage: [[1,2],[3]] in T True sage: [1,2,3] in T False :: sage: T = Tableaux(4); T Tableaux of size 4 sage: [[1,2],[3,4]] in T True sage: [[1,2],[3]] in T False sage: [1,2,3] in T False """ if n == None: return Tableaux_all() else: return Tableaux_n(n) | 37d130246c10e7b0112af26e2825fcf33c637b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/37d130246c10e7b0112af26e2825fcf33c637b30/tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3555,
18196,
12,
82,
33,
7036,
4672,
3536,
2860,
326,
3894,
4240,
649,
667,
434,
1014,
18196,
18,
971,
290,
353,
1269,
16,
1508,
518,
1135,
326,
3894,
4240,
649,
667,
434,
777,
1014,
18196,
434,
963,
290,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
399,
273,
3555,
18196,
5621,
399,
3555,
18196,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
16,
24,
13563,
316,
399,
1053,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
13563,
316,
399,
1053,
225,
493,
225,
272,
410,
30,
399,
273,
3555,
18196,
12,
24,
1769,
399,
3555,
18196,
434,
963,
1059,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
16,
24,
13563,
316,
399,
1053,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
13563,
316,
399,
1083,
3536,
309,
290,
422,
599,
30,
327,
3555,
18196,
67,
454,
1435,
469,
30,
327,
3555,
18196,
67,
82,
12,
82,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3555,
18196,
12,
82,
33,
7036,
4672,
3536,
2860,
326,
3894,
4240,
649,
667,
434,
1014,
18196,
18,
971,
290,
353,
1269,
16,
1508,
518,
1135,
326,
3894,
4240,
649,
667,
434,
777,
1014,
18196,
434,
963,
290,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
399,
273,
3555,
18196,
5621,
399,
3555,
18196,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
16,
24,
13563,
316,
399,
1053,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
13563,
316,
399,
1053,
225,
493,
225,
272,
410,
30,
399,
273,
3555,
18196,
12,
24,
1769,
399,
3555,
18196,
434,
963,
1059,
272,
410,
30,
12167,
21,
16,
22,
6487,
63,
23,
16,
24,
13563,
2
] |
|
has strides (3, 12, 1) and is compatible with NumpyArray<2, RGBValue<UInt8>, UnstridedArrayTag>. | has strides (3, 12, 1) and is compatible with NumpyArray<2, RGBValue<UInt8>, UnstridedArrayTag>. | def _array_docstring_(name, shape, compat): return ''' Constructor: .. method:: %(name)s(obj, dtype=numpy.float32, order='V', init = True, value = None) :param obj: a data or shape object (see below) :param dtype: desired element type :param order: desired memory layout (see below) :param init: True: initialize the image with zeros; False: do not initialize the image :type init: boolean :param value: initialize the image with this value (overrides init) :type value: convertible to dtype **obj** may be one of the following * If obj is a vigra.%(name)s or a subclass, a copy of obj with the given dtype and order is created, and obj's class is transferred. * If obj is a numpy.ndarray with compatible shape, a copy of obj with the given dtype, order and class vigra.%(name)s is created. * If obj is a sequence, it is interpreted as a shape. When the shape is compatible, a new vigra.%(name)s with the given dtype and order is created. * Otherwise, or if the shape is not compatible, an exception is raised. | 7142b8e8a5aa0e21c28f74980abb0be6e15b7601 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12582/7142b8e8a5aa0e21c28f74980abb0be6e15b7601/arraytypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
24675,
67,
12,
529,
16,
2179,
16,
4796,
4672,
327,
9163,
11417,
30,
225,
6116,
707,
2866,
8975,
529,
13,
87,
12,
2603,
16,
3182,
33,
15974,
18,
5659,
1578,
16,
1353,
2218,
58,
2187,
1208,
273,
1053,
16,
460,
273,
599,
13,
225,
294,
891,
1081,
30,
279,
501,
578,
2179,
733,
261,
5946,
5712,
13,
294,
891,
3182,
30,
6049,
930,
618,
294,
891,
1353,
30,
6049,
3778,
3511,
261,
5946,
5712,
13,
294,
891,
1208,
30,
1053,
30,
4046,
326,
1316,
598,
4922,
31,
1083,
30,
741,
486,
4046,
326,
1316,
294,
723,
1208,
30,
1250,
294,
891,
460,
30,
4046,
326,
1316,
598,
333,
460,
261,
19775,
1208,
13,
294,
723,
460,
30,
1765,
1523,
358,
3182,
225,
2826,
2603,
636,
2026,
506,
1245,
434,
326,
3751,
225,
380,
971,
1081,
353,
279,
331,
360,
354,
7866,
12,
529,
13,
87,
578,
279,
10177,
16,
279,
1610,
434,
1081,
598,
326,
864,
3182,
471,
1353,
353,
2522,
16,
471,
1081,
1807,
667,
353,
906,
4193,
18,
380,
971,
1081,
353,
279,
3972,
18,
25681,
598,
7318,
2179,
16,
279,
1610,
434,
1081,
598,
326,
864,
3182,
16,
1353,
471,
667,
331,
360,
354,
7866,
12,
529,
13,
87,
353,
2522,
18,
380,
971,
1081,
353,
279,
3102,
16,
518,
353,
19898,
487,
279,
2179,
18,
5203,
326,
2179,
353,
7318,
16,
279,
394,
331,
360,
354,
7866,
12,
529,
13,
87,
598,
326,
864,
3182,
471,
1353,
353,
2522,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
24675,
67,
12,
529,
16,
2179,
16,
4796,
4672,
327,
9163,
11417,
30,
225,
6116,
707,
2866,
8975,
529,
13,
87,
12,
2603,
16,
3182,
33,
15974,
18,
5659,
1578,
16,
1353,
2218,
58,
2187,
1208,
273,
1053,
16,
460,
273,
599,
13,
225,
294,
891,
1081,
30,
279,
501,
578,
2179,
733,
261,
5946,
5712,
13,
294,
891,
3182,
30,
6049,
930,
618,
294,
891,
1353,
30,
6049,
3778,
3511,
261,
5946,
5712,
13,
294,
891,
1208,
30,
1053,
30,
4046,
326,
1316,
598,
4922,
31,
1083,
30,
741,
486,
4046,
326,
1316,
294,
723,
1208,
30,
1250,
294,
891,
460,
30,
4046,
326,
1316,
598,
333,
460,
261,
19775,
1208,
13,
294,
723,
2
] |
if not char.canreach( target.char, 4 ): char.socket.clilocmessage( 0x7A27F, "", 0x3b2, 3 ) return False | if target.char: if not char.canreach( target.char, 4 ): char.socket.clilocmessage( 0x7A27F, "", 0x3b2, 3 ) return False | def response( char, args, target ): if skills.skilltable[ ARMSLORE ][ skills.UNHIDE ] and char.hidden: char.removefromview() char.hidden = False char.update() backpack = char.getbackpack() item = target.item if item: if not item.getoutmostchar() == char: top = item.getoutmostitem() if top.container and top.container.ischar(): top = top.container if not char.canreach(top, 4): char.socket.clilocmessage( 0x7A27F, "", 0x3b2, 3 ) return False if isweapon( item ) or isarmor( item ) or isshield( item ): char.socket.settag( 'skill_delay', int( wolfpack.time.currenttime() + ARMSLORE_DELAY ) ) if not char.checkskill( ARMSLORE, 0, 1000 ): char.socket.clilocmessage( 0x7A281, "", 0x3b2, 3 ) return False char.socket.clilocmessage( 0x103319, "", 0x3b2, 3 ) condi = ( 10 * ( item.health / item.maxhealth ) ) if condi < 0: condi = 0 elif condi > 9: condi = 9 char.socket.clilocmessage( 1038285 + condi ) if isweapon( item ): layer_id = 0 if item.twohanded: layer_id = 1 mindamage = fromitem( item, MINDAMAGE ) maxdamage = fromitem( item, MAXDAMAGE ) avdamage = ( mindamage + maxdamage ) / 2 dmg_id = 9 * max( 0, min( int( avdamage / 5 ), 6 ) ) if itemcheck( item, ITEM_PIERCING ): char.socket.clilocmessage( 1038218 + layer_id + dmg_id ) elif itemcheck( item, ITEM_SLASHING ): char.socket.clilocmessage( 1038220 + layer_id + dmg_id ) elif itemcheck( item, ITEM_BASHING ): char.socket.clilocmessage( 1038222 + layer_id + dmg_id ) elif itemcheck( item, ITEM_RANGED ): char.socket.clilocmessage( 1038224 + dmg_id ) else: char.socket.clilocmessage( 1038216 + layer_id + dmg_id ) # check if poisoned if item.hastag( 'poisoning_uses' ): char.socket.clilocmessage( 1038284 ) else: armor = fromitem( item, RESISTANCE_PHYSICAL ) armor = armor + fromitem( item, RESISTANCE_FIRE ) armor = armor + fromitem( item, RESISTANCE_COLD ) armor = armor + fromitem( item, RESISTANCE_POISON ) armor = armor + fromitem( item, RESISTANCE_ENERGY ) arm_id = max( 0, min( int( armor / 5 ), 7 ) ) char.socket.clilocmessage( 1038295 + arm_id ) return True else: char.socket.clilocmessage( 0x7A280, "", 0x3b2, 3 ) return False else: if not char.canreach( target.char, 4 ): char.socket.clilocmessage( 0x7A27F, "", 0x3b2, 3 ) return False if not char.distanceto ( target.char ) < 5: char.socket.clilocmessage( 0x7A27E, "", 0x3b2, 3 ) return False char.socket.clilocmessage( 0x7A280, "", 0x3b2, 3 ) return False | 51fa6f3f8b84ef0dc152b87275f04a0f0c4c7a78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/51fa6f3f8b84ef0dc152b87275f04a0f0c4c7a78/armslore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
225,
309,
15667,
87,
18,
7771,
737,
2121,
63,
6052,
3537,
1502,
862,
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,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
761,
273,
1018,
18,
1726,
225,
309,
761,
30,
309,
486,
761,
18,
588,
659,
10329,
3001,
1435,
422,
1149,
30,
1760,
273,
761,
18,
588,
659,
10329,
1726,
1435,
309,
1760,
18,
3782,
471,
1760,
18,
3782,
18,
291,
3001,
13332,
1760,
273,
1760,
18,
3782,
309,
486,
1149,
18,
4169,
12974,
12,
3669,
16,
1059,
4672,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
374,
92,
27,
37,
5324,
42,
16,
23453,
374,
92,
23,
70,
22,
16,
890,
262,
327,
1083,
225,
309,
353,
1814,
28629,
12,
761,
262,
578,
353,
4610,
280,
12,
761,
262,
578,
353,
674,
491,
12,
761,
262,
30,
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,
6052,
3537,
1502,
862,
67,
26101,
262,
262,
309,
486,
1149,
18,
1893,
7771,
737,
12,
6052,
3537,
1502,
862,
16,
374,
16,
4336,
262,
30,
1149,
18,
7814,
18,
830,
330,
504,
2150,
12,
374,
92,
27,
37,
6030,
21,
16,
23453,
374,
92,
23,
70,
22,
16,
890,
262,
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,
225,
309,
15667,
87,
18,
7771,
737,
2121,
63,
6052,
3537,
1502,
862,
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,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
761,
273,
1018,
18,
1726,
225,
309,
761,
30,
309,
486,
761,
18,
588,
659,
10329,
3001,
1435,
422,
1149,
30,
1760,
273,
761,
18,
588,
659,
10329,
1726,
1435,
309,
1760,
18,
3782,
471,
1760,
18,
3782,
18,
291,
3001,
13332,
1760,
273,
1760,
18,
3782,
309,
486,
1149,
18,
4169,
12974,
12,
3669,
16,
1059,
2
] |
self._imacopy = _imacopy | for attr in ('center','quat'): self._saw[attr] = 1 | def __init__(self, mols, _imacopy = False): print "warning: this extrude non-merging thing doesn't yet work, in fact it eats some of your mols" #### self._saw = {} # for initial debug only; see __getattr__ (dict of attrs we've delegated) self._imacopy = _imacopy # so far, just for debug msgs; might turn out to be useful for extrude to know, we'll see self._mols = [] try: mols = list(mols) except: mols = [mols] # kluge(?) -- let mols be a single mol or a list of them for mol in mols: self.merge(mol) | 87507b5d72c4f9e44bf4b021301509d805c1bf11 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/87507b5d72c4f9e44bf4b021301509d805c1bf11/extrudeMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
312,
3528,
16,
389,
381,
1077,
1101,
273,
1083,
4672,
1172,
315,
8551,
30,
333,
7582,
1317,
1661,
17,
6592,
1998,
7757,
3302,
1404,
4671,
1440,
16,
316,
5410,
518,
425,
2323,
2690,
434,
3433,
312,
3528,
6,
11849,
7,
365,
6315,
87,
2219,
273,
2618,
468,
364,
2172,
1198,
1338,
31,
2621,
1001,
588,
1747,
972,
261,
1576,
434,
3422,
732,
8081,
30055,
13,
364,
1604,
316,
7707,
5693,
17023,
372,
270,
11,
4672,
365,
6315,
87,
2219,
63,
1747,
65,
273,
404,
468,
1427,
10247,
16,
2537,
364,
1198,
8733,
31,
4825,
7005,
596,
358,
506,
5301,
364,
7582,
1317,
358,
5055,
16,
732,
5614,
2621,
365,
6315,
81,
3528,
273,
5378,
775,
30,
312,
3528,
273,
666,
12,
81,
3528,
13,
1335,
30,
312,
3528,
273,
306,
81,
3528,
65,
468,
15290,
21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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
312,
3528,
16,
389,
381,
1077,
1101,
273,
1083,
4672,
1172,
315,
8551,
30,
333,
7582,
1317,
1661,
17,
6592,
1998,
7757,
3302,
1404,
4671,
1440,
16,
316,
5410,
518,
425,
2323,
2690,
434,
3433,
312,
3528,
6,
11849,
7,
365,
6315,
87,
2219,
273,
2618,
468,
364,
2172,
1198,
1338,
31,
2621,
1001,
588,
1747,
972,
261,
1576,
434,
3422,
732,
8081,
30055,
13,
364,
1604,
316,
7707,
5693,
17023,
372,
270,
11,
4672,
365,
6315,
87,
2219,
63,
1747,
65,
273,
404,
468,
1427,
10247,
16,
2537,
364,
1198,
8733,
31,
4825,
7005,
596,
358,
506,
5301,
364,
7582,
1317,
358,
5055,
16,
732,
5614,
2621,
365,
6315,
81,
3528,
2
] |
self.assertEquals(len(self.GetActiveNotifications()), 0) | self.assertFalse(self.GetActiveNotifications()) | def testAllowOnPermissionInfobar(self): """Tries to create a notification and clicks allow on the infobar.""" self.NavigateToURL(self.TEST_PAGE_URL) # This notification should not be shown because we don't have permission. self._CreateHTMLNotification(self.NO_SUCH_URL) self.assertEquals(len(self.GetActiveNotifications()), 0) | 1e55a10eb4cd8a39edfb8c06c80b7c24e70d3fce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/1e55a10eb4cd8a39edfb8c06c80b7c24e70d3fce/notifications.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7009,
1398,
5041,
966,
3215,
12,
2890,
4672,
3536,
13652,
358,
752,
279,
3851,
471,
27659,
1699,
603,
326,
1123,
3215,
12123,
365,
18,
50,
20698,
774,
1785,
12,
2890,
18,
16961,
67,
11219,
67,
1785,
13,
468,
1220,
3851,
1410,
486,
506,
12188,
2724,
732,
2727,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7009,
1398,
5041,
966,
3215,
12,
2890,
4672,
3536,
13652,
358,
752,
279,
3851,
471,
27659,
1699,
603,
326,
1123,
3215,
12123,
365,
18,
50,
20698,
774,
1785,
12,
2890,
18,
16961,
67,
11219,
67,
1785,
13,
468,
1220,
3851,
1410,
486,
506,
12188,
2724,
732,
2727,
1404,
1240,
4132,
18,
365,
6315,
1684,
4870,
4386,
12,
2890,
18,
3417,
67,
19958,
67,
1785,
13,
365,
18,
11231,
8867,
12,
1897,
12,
2890,
18,
967,
3896,
14111,
1435,
3631,
374,
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
] |
if popup: popup.destroy() | def get_guide(popup=None, verbose=True, XMLTV_FILE=None): """ Get a TV guide from memory cache, file cache or raw XMLTV file. Tries to return at least the channels from the config file if there is no other data """ global cached_guide if not XMLTV_FILE: XMLTV_FILE = config.XMLTV_FILE # Can we use the cached version (if same as the file)? if (cached_guide == None or (os.path.isfile(XMLTV_FILE) and cached_guide.timestamp != os.path.getmtime(XMLTV_FILE))): # No, is there a pickled version ("file cache") in a file? pname = '%s/TV.xml.pickled' % config.FREEVO_CACHEDIR got_cached_guide = False if (os.path.isfile(XMLTV_FILE) and os.path.isfile(pname) and (os.path.getmtime(pname) > os.path.getmtime(XMLTV_FILE))): if verbose: _debug_('XMLTV, reading cached file (%s)' % pname) if popup: popup.show() cached_guide = util.read_pickle(pname) if popup: popup.destroy() epg_ver = None try: epg_ver = cached_guide.EPG_VERSION except AttributeError: if verbose: _debug_('EPG does not have a version number, must be reloaded') print dir(cached_guide) if epg_ver != epg_types.EPG_VERSION: if verbose: _debug_('EPG version missmatch, must be reloaded') elif cached_guide.timestamp != os.path.getmtime(XMLTV_FILE): # Hmmm, weird, there is a pickled file newer than the TV.xml # file, but the timestamp in it does not match the TV.xml # timestamp. We need to reload! if verbose: _debug_('EPG: Pickled file timestamp mismatch, reloading!') else: if verbose: _debug_('XMLTV, got cached guide (version %s).' % epg_ver) got_cached_guide = True if not got_cached_guide: # Need to reload the guide if popup: popup.show() if verbose: _debug_('XMLTV, trying to read raw file (%s)' % XMLTV_FILE) try: cached_guide = load_guide(verbose, XMLTV_FILE) except: # Don't violently crash on a incomplete or empty TV.xml please. cached_guide = None print print String(_("Couldn't load the TV Guide, got an exception!")) print traceback.print_exc() else: # Replace config.XMLTV_FILE before we save the pickle in order # to avoid timestamp confision. if XMLTV_FILE != config.XMLTV_FILE: shutil.copyfile(XMLTV_FILE, config.XMLTV_FILE) os.unlink(XMLTV_FILE) cached_guide.timestamp = os.path.getmtime(config.XMLTV_FILE) # Dump a pickled version for later reads util.save_pickle(cached_guide, pname) if not cached_guide: # An error occurred, return an empty guide cached_guide = epg_types.TvGuide() if popup: popup.destroy() return cached_guide | 0e05f1648449945068552ffa5a800db813a8fe15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/0e05f1648449945068552ffa5a800db813a8fe15/epg_xmltv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12118,
12,
16086,
33,
7036,
16,
3988,
33,
5510,
16,
3167,
15579,
67,
3776,
33,
7036,
4672,
3536,
968,
279,
399,
58,
7343,
628,
3778,
1247,
16,
585,
1247,
578,
1831,
3167,
15579,
585,
18,
10000,
281,
358,
327,
622,
4520,
326,
5750,
628,
326,
642,
585,
309,
1915,
353,
1158,
1308,
501,
3536,
2552,
3472,
67,
12118,
225,
309,
486,
3167,
15579,
67,
3776,
30,
3167,
15579,
67,
3776,
273,
642,
18,
4201,
15579,
67,
3776,
225,
468,
4480,
732,
999,
326,
3472,
1177,
261,
430,
1967,
487,
326,
585,
9945,
309,
261,
7097,
67,
12118,
422,
599,
578,
261,
538,
18,
803,
18,
291,
768,
12,
4201,
15579,
67,
3776,
13,
471,
3472,
67,
12118,
18,
5508,
480,
1140,
18,
803,
18,
588,
10838,
12,
4201,
15579,
67,
3776,
3719,
4672,
225,
468,
2631,
16,
353,
1915,
279,
6002,
1259,
1177,
7566,
768,
1247,
7923,
316,
279,
585,
35,
19952,
273,
1995,
87,
19,
15579,
18,
2902,
18,
11503,
1259,
11,
738,
642,
18,
28104,
16169,
67,
3587,
15023,
7937,
225,
2363,
67,
7097,
67,
12118,
273,
1083,
309,
261,
538,
18,
803,
18,
291,
768,
12,
4201,
15579,
67,
3776,
13,
471,
1140,
18,
803,
18,
291,
768,
12,
84,
529,
13,
471,
261,
538,
18,
803,
18,
588,
10838,
12,
84,
529,
13,
405,
1140,
18,
803,
18,
588,
10838,
12,
4201,
15579,
67,
3776,
3719,
4672,
309,
3988,
30,
389,
4148,
67,
2668,
4201,
15579,
16,
6453,
3472,
585,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12118,
12,
16086,
33,
7036,
16,
3988,
33,
5510,
16,
3167,
15579,
67,
3776,
33,
7036,
4672,
3536,
968,
279,
399,
58,
7343,
628,
3778,
1247,
16,
585,
1247,
578,
1831,
3167,
15579,
585,
18,
10000,
281,
358,
327,
622,
4520,
326,
5750,
628,
326,
642,
585,
309,
1915,
353,
1158,
1308,
501,
3536,
2552,
3472,
67,
12118,
225,
309,
486,
3167,
15579,
67,
3776,
30,
3167,
15579,
67,
3776,
273,
642,
18,
4201,
15579,
67,
3776,
225,
468,
4480,
732,
999,
326,
3472,
1177,
261,
430,
1967,
487,
326,
585,
9945,
309,
261,
7097,
67,
12118,
422,
599,
578,
261,
538,
18,
803,
18,
291,
768,
12,
4201,
15579,
67,
3776,
13,
471,
3472,
67,
2
] |
|
if e.args[0] == 2013: | if e.args[0] in (2006, 2013): if c == 2: raise OperationalError(ErrorMessage(e)) | def _executeRetry(self, conn, cursor, query): while 1: try: if self.need_unicode: # For MysqlDB 1.2.1 and later, we go # encoding->unicode->charset (in the mysql db) myquery = unicode(query, self.encoding) return cursor.execute(myquery) else: return cursor.execute(query) except MySQLdb.OperationalError, e: if e.args[0] == 2013: # SERVER_LOST error if self.debug: self.printDebug(conn, str(e), 'ERROR') else: raise OperationalError(ErrorMessage(e)) except MySQLdb.IntegrityError, e: msg = ErrorMessage(e) if e.args[0] == 1062: raise DuplicateEntryError(msg) else: raise IntegrityError(msg) except MySQLdb.InternalError, e: raise InternalError(ErrorMessage(e)) except MySQLdb.ProgrammingError, e: raise ProgrammingError(ErrorMessage(e)) except MySQLdb.DataError, e: raise DataError(ErrorMessage(e)) except MySQLdb.NotSupportedError, e: raise NotSupportedError(ErrorMessage(e)) except MySQLdb.DatabaseError, e: raise DatabaseError(ErrorMessage(e)) except MySQLdb.InterfaceError, e: raise InterfaceError(ErrorMessage(e)) except MySQLdb.Warning, e: raise Warning(ErrorMessage(e)) except MySQLdb.Error, e: raise Error(ErrorMessage(e)) | bb9e0aa3ab22e008901a43fc137e06c593f329ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/bb9e0aa3ab22e008901a43fc137e06c593f329ea/mysqlconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
7539,
12,
2890,
16,
1487,
16,
3347,
16,
843,
4672,
1323,
404,
30,
775,
30,
309,
365,
18,
14891,
67,
9124,
30,
468,
2457,
26252,
2290,
404,
18,
22,
18,
21,
471,
5137,
16,
732,
1960,
468,
2688,
2122,
9124,
2122,
9999,
261,
267,
326,
7219,
1319,
13,
3399,
2271,
273,
5252,
12,
2271,
16,
365,
18,
5999,
13,
327,
3347,
18,
8837,
12,
4811,
2271,
13,
469,
30,
327,
3347,
18,
8837,
12,
2271,
13,
1335,
13485,
1966,
18,
2988,
287,
668,
16,
425,
30,
309,
425,
18,
1968,
63,
20,
65,
316,
261,
6976,
26,
16,
19451,
4672,
309,
276,
422,
576,
30,
1002,
4189,
287,
668,
12,
14935,
12,
73,
3719,
468,
15061,
67,
1502,
882,
555,
309,
365,
18,
4148,
30,
365,
18,
1188,
2829,
12,
4646,
16,
609,
12,
73,
3631,
296,
3589,
6134,
469,
30,
1002,
4189,
287,
668,
12,
14935,
12,
73,
3719,
1335,
13485,
1966,
18,
30669,
668,
16,
425,
30,
1234,
273,
30298,
12,
73,
13,
309,
425,
18,
1968,
63,
20,
65,
422,
1728,
8898,
30,
1002,
19072,
1622,
668,
12,
3576,
13,
469,
30,
1002,
15285,
560,
668,
12,
3576,
13,
1335,
13485,
1966,
18,
20980,
16,
425,
30,
1002,
3186,
668,
12,
14935,
12,
73,
3719,
1335,
13485,
1966,
18,
9459,
11987,
668,
16,
425,
30,
1002,
13586,
11987,
668,
12,
14935,
12,
73,
3719,
1335,
13485,
1966,
18,
751,
668,
16,
425,
30,
1002,
1910,
668,
12,
14935,
12,
73,
3719,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
7539,
12,
2890,
16,
1487,
16,
3347,
16,
843,
4672,
1323,
404,
30,
775,
30,
309,
365,
18,
14891,
67,
9124,
30,
468,
2457,
26252,
2290,
404,
18,
22,
18,
21,
471,
5137,
16,
732,
1960,
468,
2688,
2122,
9124,
2122,
9999,
261,
267,
326,
7219,
1319,
13,
3399,
2271,
273,
5252,
12,
2271,
16,
365,
18,
5999,
13,
327,
3347,
18,
8837,
12,
4811,
2271,
13,
469,
30,
327,
3347,
18,
8837,
12,
2271,
13,
1335,
13485,
1966,
18,
2988,
287,
668,
16,
425,
30,
309,
425,
18,
1968,
63,
20,
65,
316,
261,
6976,
26,
16,
19451,
4672,
309,
276,
422,
576,
30,
1002,
4189,
287,
668,
12,
14935,
12,
73,
3719,
468,
15061,
2
] |
@button.buttonAndHandler(_('Edit'), name='edit') def handle_edit(self, action): self.status = _(u"No changes made.") for subform in self.subforms: data, errors = subform.extractData() if errors: self.status = subform.formErrorsMessage return del data['delete'] self.context.before_update(subform.content, data) changes = subform.applyChanges(data) if changes: self.status = _(u"Successfully updated.") | def handle_delete(self, action): self.status = _(u"Please select items to delete.") | 46a969ae19c36c33e965f161a873fa4c481b4ced /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9844/46a969ae19c36c33e965f161a873fa4c481b4ced/crud.py | [
1,
8585,
326,
22398,
316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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3733,
12,
2890,
16,
1301,
4672,
365,
18,
2327,
273,
389,
12,
89,
6,
8496,
2027,
1516,
358,
1430,
1199,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
The comparision is based on the nummerical name of the device, which is the bus address for the device. """ if (long(self.data[0]["name"])) < other: | The comparision is based on the name of the device, which is the bus address for the device. """ if self.data[0]["name"] < other: | def __cmp__(self, other): """Compare device data widgets to other widgets (or anything). | 7097a4488bf2024658027b2a1b488d8cb08b4e1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3093/7097a4488bf2024658027b2a1b488d8cb08b4e1c/amswidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
8583,
2346,
501,
10965,
358,
1308,
10965,
261,
280,
6967,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
8583,
2346,
501,
10965,
358,
1308,
10965,
261,
280,
6967,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Distrito Federal": "America/Sao_Paulo", | def sortcountry(locs): return sorted(locs, cmp=lambda x,y: cmp(x.country, y.country)) | 1bbc56baf780450d24ff014e413b2bd01f8b602b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7981/1bbc56baf780450d24ff014e413b2bd01f8b602b/genlocationlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
9082,
12,
24323,
4672,
327,
3115,
12,
24323,
16,
9411,
33,
14661,
619,
16,
93,
30,
9411,
12,
92,
18,
9082,
16,
677,
18,
9082,
3719,
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,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
16,
677,
18,
9082,
3719,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
manager.call(*options.args) | manager.cmd_call(*options.args) | def start(options, console): account = options.account settings = SIPSimpleSettings() engine = GreenEngine() engine.start_cfg(enable_sound=not options.disable_sound, log_level=settings.logging.pjsip_level if (settings.logging.trace_pjsip or options.trace_pjsip) else 0, trace_sip=settings.logging.trace_sip or options.trace_sip) try: if hasattr(options.account, "stun_servers") and len(options.account.stun_servers) > 0: engine.detect_nat_type(*options.account.stun_servers[0]) logstate.start_loggers(trace_engine=options.trace_engine) if isinstance(account, BonjourAccount): if engine.local_udp_port: print 'Local contact: %s:%s;transport=udp' % (account.contact, engine.local_udp_port) if engine.local_tcp_port: print 'Local contact: %s:%s;transport=tcp' % (account.contact, engine.local_tcp_port) if engine.local_tls_port: print 'Local contact: %s:%s;transport=tls' % (account.contact, engine.local_tls_port) MessageRenderer().start() session_manager = SessionManager() manager = ChatManager(engine, account, console) manager.update_prompt() try: print "Type :help to get information about commands and shortcuts" if not options.args: print 'Waiting for incoming SIP session requests...' else: try: manager.call(*options.args) except (UserCommandError, SessionStateError), ex: print str(ex) while True: try: readloop(console, manager, manager.get_shortcuts()) except EOF: if manager.current_session: manager.close_current_session() else: raise except BaseException, ex: # will print the exception myself, because finally section takes # time and maybe interrupted thus hiding the original exception if type(ex) is not EOF: import traceback traceback.print_exc() finally: console.copy_input_line() with calming_message(1, "Disconnecting the session(s)..."): manager.close() finally: with calming_message(1, "Disconnecting the session(s)..."): proc.waitall([proc.spawn(session.end) for session in SessionManager().sessions]) with calming_message(2, "Stopping the engine..."): engine.stop() api.sleep(0.1) | 70dafcbe86a3b853916ca8377c1ad04a98e54771 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/70dafcbe86a3b853916ca8377c1ad04a98e54771/sip_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2116,
16,
2983,
4672,
2236,
273,
702,
18,
4631,
1947,
273,
348,
2579,
5784,
2628,
1435,
4073,
273,
17766,
4410,
1435,
4073,
18,
1937,
67,
7066,
12,
7589,
67,
29671,
33,
902,
702,
18,
8394,
67,
29671,
16,
613,
67,
2815,
33,
4272,
18,
11167,
18,
84,
2924,
625,
67,
2815,
309,
261,
4272,
18,
11167,
18,
5129,
67,
84,
2924,
625,
578,
702,
18,
5129,
67,
84,
2924,
625,
13,
469,
374,
16,
2606,
67,
28477,
33,
4272,
18,
11167,
18,
5129,
67,
28477,
578,
702,
18,
5129,
67,
28477,
13,
775,
30,
309,
3859,
12,
2116,
18,
4631,
16,
315,
334,
318,
67,
14247,
7923,
471,
562,
12,
2116,
18,
4631,
18,
334,
318,
67,
14247,
13,
405,
374,
30,
4073,
18,
16518,
67,
18757,
67,
723,
30857,
2116,
18,
4631,
18,
334,
318,
67,
14247,
63,
20,
5717,
613,
2019,
18,
1937,
67,
1330,
6215,
12,
5129,
67,
8944,
33,
2116,
18,
5129,
67,
8944,
13,
309,
1549,
12,
4631,
16,
605,
265,
78,
477,
3032,
4672,
309,
4073,
18,
3729,
67,
26029,
67,
655,
30,
1172,
296,
2042,
5388,
30,
738,
87,
5319,
87,
31,
13049,
33,
26029,
11,
738,
261,
4631,
18,
8994,
16,
4073,
18,
3729,
67,
26029,
67,
655,
13,
309,
4073,
18,
3729,
67,
14832,
67,
655,
30,
1172,
296,
2042,
5388,
30,
738,
87,
5319,
87,
31,
13049,
33,
14832,
11,
738,
261,
4631,
18,
8994,
16,
4073,
18,
3729,
67,
14832,
67,
655,
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,
787,
12,
2116,
16,
2983,
4672,
2236,
273,
702,
18,
4631,
1947,
273,
348,
2579,
5784,
2628,
1435,
4073,
273,
17766,
4410,
1435,
4073,
18,
1937,
67,
7066,
12,
7589,
67,
29671,
33,
902,
702,
18,
8394,
67,
29671,
16,
613,
67,
2815,
33,
4272,
18,
11167,
18,
84,
2924,
625,
67,
2815,
309,
261,
4272,
18,
11167,
18,
5129,
67,
84,
2924,
625,
578,
702,
18,
5129,
67,
84,
2924,
625,
13,
469,
374,
16,
2606,
67,
28477,
33,
4272,
18,
11167,
18,
5129,
67,
28477,
578,
702,
18,
5129,
67,
28477,
13,
775,
30,
309,
3859,
12,
2116,
18,
4631,
16,
315,
334,
318,
67,
14247,
7923,
471,
562,
12,
2116,
18,
4631,
18,
334,
318,
2
] |
if 'lastSeconds' in reportRequest: try: lastSeconds = long( reportRequest[ 'lastSeconds' ] ) | if 'lastSeconds' in reportRequestExtra: try: lastSeconds = long( reportRequestExtra[ 'lastSeconds' ] ) | def __checkPlotRequest( self, reportRequest ): #Check sliding plots if 'lastSeconds' in reportRequest: try: lastSeconds = long( reportRequest[ 'lastSeconds' ] ) except: return S_ERROR( "lastSeconds key must be a number" ) if lastSeconds < 3600: return S_ERROR( "lastSeconds must be more than 3600" ) now = Time.toEpoch() reportRequest[ 'endTime' ] = now reportRequest[ 'startTime' ] = now - lastSeconds del( reportRequest[ 'lastSeconds' ] ) #Check keys for key in self.__reportRequestDict: if key == 'extraArgs' and key not in reportRequest: reportRequest[ key ] = {} if not key in reportRequest: return S_ERROR( 'Missing mandatory field %s in plot reques' % key ) requestKeyType = type( reportRequest[ key ] ) if key in ( 'startTime', 'endTime' ): if requestKeyType not in self.__reportRequestDict[ key ]: return S_ERROR( "Type mismatch for field %s (%s), required one of %s" % ( key, str(requestKeyType), str( self.__reportRequestDict[ key ] ) ) ) reportRequest[ key ] = int( Time.toEpoch( reportRequest[ key ] ) ) else: if requestKeyType != self.__reportRequestDict[ key ]: return S_ERROR( "Type mismatch for field %s (%s), required %s" % ( key, str(requestKeyType), str( self.__reportRequestDict[ key ] ) ) ) return S_OK( reportRequest ) | 5fd58af393cd30bf99a9e697e749344a229ad99b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/5fd58af393cd30bf99a9e697e749344a229ad99b/ReportGeneratorHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
11532,
691,
12,
365,
16,
2605,
691,
262,
30,
468,
1564,
2020,
10415,
17931,
309,
296,
2722,
6762,
11,
316,
2605,
691,
7800,
30,
775,
30,
1142,
6762,
273,
1525,
12,
2605,
691,
7800,
63,
296,
2722,
6762,
11,
308,
262,
1335,
30,
327,
348,
67,
3589,
12,
315,
2722,
6762,
498,
1297,
506,
279,
1300,
6,
262,
309,
1142,
6762,
411,
12396,
30,
327,
348,
67,
3589,
12,
315,
2722,
6762,
1297,
506,
1898,
2353,
12396,
6,
262,
2037,
273,
2647,
18,
869,
14638,
1435,
2605,
691,
63,
296,
409,
950,
11,
308,
273,
2037,
2605,
691,
63,
296,
1937,
950,
11,
308,
273,
2037,
300,
1142,
6762,
1464,
12,
2605,
691,
63,
296,
2722,
6762,
11,
308,
262,
468,
1564,
1311,
364,
498,
316,
365,
16186,
6006,
691,
5014,
30,
309,
498,
422,
296,
7763,
2615,
11,
471,
498,
486,
316,
2605,
691,
30,
2605,
691,
63,
498,
308,
273,
2618,
309,
486,
498,
316,
2605,
691,
30,
327,
348,
67,
3589,
12,
296,
4841,
11791,
652,
738,
87,
316,
3207,
10780,
281,
11,
738,
498,
262,
590,
22100,
273,
618,
12,
2605,
691,
63,
498,
308,
262,
309,
498,
316,
261,
296,
1937,
950,
2187,
296,
409,
950,
11,
262,
30,
309,
590,
22100,
486,
316,
365,
16186,
6006,
691,
5014,
63,
498,
308,
30,
327,
348,
67,
3589,
12,
315,
559,
13484,
364,
652,
738,
87,
6142,
87,
3631,
1931,
1245,
434,
738,
87,
6,
738,
261,
498,
16,
609,
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,
1893,
11532,
691,
12,
365,
16,
2605,
691,
262,
30,
468,
1564,
2020,
10415,
17931,
309,
296,
2722,
6762,
11,
316,
2605,
691,
7800,
30,
775,
30,
1142,
6762,
273,
1525,
12,
2605,
691,
7800,
63,
296,
2722,
6762,
11,
308,
262,
1335,
30,
327,
348,
67,
3589,
12,
315,
2722,
6762,
498,
1297,
506,
279,
1300,
6,
262,
309,
1142,
6762,
411,
12396,
30,
327,
348,
67,
3589,
12,
315,
2722,
6762,
1297,
506,
1898,
2353,
12396,
6,
262,
2037,
273,
2647,
18,
869,
14638,
1435,
2605,
691,
63,
296,
409,
950,
11,
308,
273,
2037,
2605,
691,
63,
296,
1937,
950,
11,
308,
273,
2037,
300,
1142,
6762,
1464,
12,
2605,
691,
63,
296,
2722,
2
] |
header.append(mapping[2*i]+256*mapping[2*i+1]) | if sys.byteorder == 'big': header.append(256*mapping[2*i]+mapping[2*i+1]) else: header.append(mapping[2*i]+256*mapping[2*i+1]) | def _optimize_unicode(charset, fixup): charmap = [0]*65536 negate = 0 for op, av in charset: if op is NEGATE: negate = 1 elif op is LITERAL: charmap[fixup(av)] = 1 elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = 1 elif op is CATEGORY: # XXX: could expand category return charset # cannot compress if negate: for i in range(65536): charmap[i] = not charmap[i] comps = {} mapping = [0]*256 block = 0 data = [] for i in range(256): chunk = tuple(charmap[i*256:(i+1)*256]) new = comps.setdefault(chunk, block) mapping[i] = new if new == block: block += 1 data += _mk_bitmap(chunk) header = [block] assert MAXCODE == 65535 for i in range(128): header.append(mapping[2*i]+256*mapping[2*i+1]) data[0:0] = header return [(BIGCHARSET, data)] | 3550dd30bb8cb880840a4f1f492a7f3e9207cab9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3550dd30bb8cb880840a4f1f492a7f3e9207cab9/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
67,
9124,
12,
9999,
16,
2917,
416,
4672,
1149,
1458,
273,
306,
20,
5772,
26,
2539,
5718,
15626,
273,
374,
364,
1061,
16,
1712,
316,
4856,
30,
309,
1061,
353,
12901,
26316,
30,
15626,
273,
404,
1327,
1061,
353,
511,
18454,
30,
1149,
1458,
63,
904,
416,
12,
842,
25887,
273,
404,
1327,
1061,
353,
534,
8357,
30,
364,
277,
316,
1048,
12,
904,
416,
12,
842,
63,
20,
65,
3631,
2917,
416,
12,
842,
63,
21,
5717,
15,
21,
4672,
1149,
1458,
63,
77,
65,
273,
404,
1327,
1061,
353,
31524,
19281,
30,
468,
11329,
30,
3377,
4542,
3150,
327,
4856,
468,
2780,
8099,
309,
15626,
30,
364,
277,
316,
1048,
12,
26,
2539,
5718,
4672,
1149,
1458,
63,
77,
65,
273,
486,
1149,
1458,
63,
77,
65,
13979,
273,
2618,
2874,
273,
306,
20,
5772,
5034,
1203,
273,
374,
501,
273,
5378,
364,
277,
316,
1048,
12,
5034,
4672,
2441,
273,
3193,
12,
3001,
1458,
63,
77,
14,
5034,
30,
12,
77,
15,
21,
17653,
5034,
5717,
394,
273,
13979,
18,
542,
1886,
12,
6551,
16,
1203,
13,
2874,
63,
77,
65,
273,
394,
309,
394,
422,
1203,
30,
1203,
1011,
404,
501,
1011,
389,
24816,
67,
3682,
1458,
12,
6551,
13,
1446,
273,
306,
2629,
65,
1815,
4552,
5572,
422,
10147,
364,
277,
316,
1048,
12,
10392,
4672,
309,
2589,
18,
7229,
1019,
422,
296,
14002,
4278,
1446,
18,
6923,
12,
5034,
14,
6770,
63,
22,
14,
77,
3737,
6770,
63,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
67,
9124,
12,
9999,
16,
2917,
416,
4672,
1149,
1458,
273,
306,
20,
5772,
26,
2539,
5718,
15626,
273,
374,
364,
1061,
16,
1712,
316,
4856,
30,
309,
1061,
353,
12901,
26316,
30,
15626,
273,
404,
1327,
1061,
353,
511,
18454,
30,
1149,
1458,
63,
904,
416,
12,
842,
25887,
273,
404,
1327,
1061,
353,
534,
8357,
30,
364,
277,
316,
1048,
12,
904,
416,
12,
842,
63,
20,
65,
3631,
2917,
416,
12,
842,
63,
21,
5717,
15,
21,
4672,
1149,
1458,
63,
77,
65,
273,
404,
1327,
1061,
353,
31524,
19281,
30,
468,
11329,
30,
3377,
4542,
3150,
327,
4856,
468,
2780,
8099,
309,
15626,
30,
364,
277,
316,
1048,
12,
26,
2539,
5718,
2
] |
if(order == None): | if order == None: | def process_header(data): """Processes the header.""" | a6feb1e5c52929a2b7bcc20a424e929b737f2517 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9355/a6feb1e5c52929a2b7bcc20a424e929b737f2517/wiki_grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3374,
12,
892,
4672,
3536,
10599,
326,
1446,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3374,
12,
892,
4672,
3536,
10599,
326,
1446,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert w_obj is not None if space.is_w(w_obj, space.w_None): | if w_obj is None: | def force(space, proxy): if not isinstance(proxy, W_Proxy): return proxy w_obj = proxy.dereference() assert w_obj is not None if space.is_w(w_obj, space.w_None): raise OperationError( space.w_ReferenceError, space.wrap("weakly referenced object no longer exists")) return w_obj | 8664d78738e75c047334f91a1106f2a6d30386d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/8664d78738e75c047334f91a1106f2a6d30386d0/interp__weakref.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
12,
2981,
16,
2889,
4672,
309,
486,
1549,
12,
5656,
16,
678,
67,
3886,
4672,
327,
2889,
341,
67,
2603,
273,
2889,
18,
765,
73,
1134,
1435,
309,
341,
67,
2603,
353,
599,
30,
1002,
4189,
668,
12,
3476,
18,
91,
67,
2404,
668,
16,
3476,
18,
4113,
2932,
26008,
715,
8042,
733,
1158,
7144,
1704,
6,
3719,
327,
341,
67,
2603,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
12,
2981,
16,
2889,
4672,
309,
486,
1549,
12,
5656,
16,
678,
67,
3886,
4672,
327,
2889,
341,
67,
2603,
273,
2889,
18,
765,
73,
1134,
1435,
309,
341,
67,
2603,
353,
599,
30,
1002,
4189,
668,
12,
3476,
18,
91,
67,
2404,
668,
16,
3476,
18,
4113,
2932,
26008,
715,
8042,
733,
1158,
7144,
1704,
6,
3719,
327,
341,
67,
2603,
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
] |
html = "<label for='%s'>%s</label>\n" % (self.name , super(BaseWidget,self).label) | html = "<label for='%s'>%s</label>\n" % (self.name , translate(super(BaseWidget,self).label, context=self.request)) | def __call__( self ): """Render the widget to HTML.""" value = self._getFormValue() html = "<label for='%s'>%s</label>\n" % (self.name , super(BaseWidget,self).label) if self.__required: html += "<span class='fieldRequired' title='%s' > %s </span>" % ( translate(_(u'title_required'),context=self.request), translate(_(u'title_required'),context=self.request)) if super(BaseWidget, self).hint: html += "<div class='formHelp'>%s</div>" % super(BaseWidget, self).hint if super(BaseWidget, self).error() != '': html += "<div>%s</div>" % super(BaseWidget, self).error() if value == 'on': kw = {'checked': 'checked'} else: kw = {} return "%s %s %s" % ( renderElement(self.tag, type='hidden', name=self.name+".used", id=self.name+".used", value="" ), renderElement(self.tag, type=self.type, name=self.name, id=self.name, cssClass=self.cssClass, extra=self.extra, value="on", **kw), html | f815367044b4876066e9603ab78072a7e423eea8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12236/f815367044b4876066e9603ab78072a7e423eea8/checkboxwidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
365,
262,
30,
3536,
3420,
326,
3604,
358,
3982,
12123,
460,
273,
365,
6315,
588,
1204,
620,
1435,
1729,
273,
3532,
1925,
364,
28713,
87,
11,
9822,
87,
1757,
1925,
5333,
82,
6,
738,
261,
2890,
18,
529,
269,
4204,
12,
9565,
12,
2171,
4609,
16,
2890,
2934,
1925,
16,
819,
33,
2890,
18,
2293,
3719,
309,
365,
16186,
4718,
30,
1729,
1011,
3532,
3969,
667,
2218,
1518,
3705,
11,
2077,
28713,
87,
11,
405,
738,
87,
7765,
3969,
2984,
738,
261,
4204,
24899,
12,
89,
1404,
1280,
67,
4718,
19899,
2472,
33,
2890,
18,
2293,
3631,
4204,
24899,
12,
89,
1404,
1280,
67,
4718,
19899,
2472,
33,
2890,
18,
2293,
3719,
309,
2240,
12,
2171,
4609,
16,
365,
2934,
11317,
30,
1729,
1011,
3532,
2892,
667,
2218,
687,
6696,
11,
9822,
87,
1757,
2892,
2984,
738,
2240,
12,
2171,
4609,
16,
365,
2934,
11317,
309,
2240,
12,
2171,
4609,
16,
365,
2934,
1636,
1435,
480,
875,
30,
1729,
1011,
3532,
2892,
9822,
87,
1757,
2892,
2984,
738,
2240,
12,
2171,
4609,
16,
365,
2934,
1636,
1435,
225,
309,
460,
422,
296,
265,
4278,
5323,
273,
13666,
4532,
4278,
296,
4532,
11,
97,
469,
30,
5323,
273,
2618,
327,
2213,
87,
225,
738,
87,
738,
87,
6,
738,
261,
1743,
1046,
12,
2890,
18,
2692,
16,
618,
2218,
6345,
2187,
508,
33,
2890,
18,
529,
9078,
18,
3668,
3113,
612,
33,
2890,
18,
529,
9078,
18,
3668,
3113,
460,
1546,
6,
262,
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,
365,
262,
30,
3536,
3420,
326,
3604,
358,
3982,
12123,
460,
273,
365,
6315,
588,
1204,
620,
1435,
1729,
273,
3532,
1925,
364,
28713,
87,
11,
9822,
87,
1757,
1925,
5333,
82,
6,
738,
261,
2890,
18,
529,
269,
4204,
12,
9565,
12,
2171,
4609,
16,
2890,
2934,
1925,
16,
819,
33,
2890,
18,
2293,
3719,
309,
365,
16186,
4718,
30,
1729,
1011,
3532,
3969,
667,
2218,
1518,
3705,
11,
2077,
28713,
87,
11,
405,
738,
87,
7765,
3969,
2984,
738,
261,
4204,
24899,
12,
89,
1404,
1280,
67,
4718,
19899,
2472,
33,
2890,
18,
2293,
3631,
4204,
24899,
12,
89,
1404,
1280,
67,
4718,
19899,
2472,
33,
2890,
18,
2293,
3719,
309,
2240,
2
] |
detail = ' var bounds = [%f,%f];\n' % (t0, tMax) detail += ' var d = [];\n' dfmt = ' d["%s"] = { n:"%s", p:"%s", c:[%s] };\n'; for p in data.dmesg: list = data.dmesg[p]['list'] for d in list: parent = data.deviceParentID(d, p) idlist = data.deviceChildrenIDs(d, p) idstr = "" for i in idlist: if(idstr == ""): idstr += '"'+i+'"' else: idstr += ', '+'"'+i+'"' detail += dfmt % (list[d]['id'], d, parent, idstr) | detail = ' var devtable = [];\n' for data in testruns: topo = data.deviceTopology() detail += ' devtable[%d] = "%s";\n' % (data.testnumber, topo) detail += ' var bounds = [%f,%f];\n' % (t0, tMax) | def addScriptCode(hf): global data t0 = (data.start - data.tSuspended) * 1000 tMax = (data.end - data.tSuspended) * 1000 # create an array in javascript memory with the device details detail = ' var bounds = [%f,%f];\n' % (t0, tMax) detail += ' var d = [];\n' dfmt = ' d["%s"] = { n:"%s", p:"%s", c:[%s] };\n'; for p in data.dmesg: list = data.dmesg[p]['list'] for d in list: parent = data.deviceParentID(d, p) idlist = data.deviceChildrenIDs(d, p) idstr = "" for i in idlist: if(idstr == ""): idstr += '"'+i+'"' else: idstr += ', '+'"'+i+'"' detail += dfmt % (list[d]['id'], d, parent, idstr) # add the code which will manipulate the data in the browser script_code = \ '<script type="text/javascript">\n'+detail+\ ' var filter = [];\n'\ ' var table = [];\n'\ ' function deviceParent(devid) {\n'\ ' var devlist = [];\n'\ ' if(filter.indexOf(devid) < 0) filter[filter.length] = devid;\n'\ ' if(d[devid].p in d)\n'\ ' devlist = deviceParent(d[devid].p);\n'\ ' else if(d[devid].p != "")\n'\ ' devlist = [d[devid].p];\n'\ ' devlist[devlist.length] = d[devid].n;\n'\ ' return devlist;\n'\ ' }\n'\ ' function deviceChildren(devid, column, row) {\n'\ ' if(!(devid in d)) return;\n'\ ' if(filter.indexOf(devid) < 0) filter[filter.length] = devid;\n'\ ' var cell = {name: d[devid].n, span: 1};\n'\ ' var span = 0;\n'\ ' if(column >= table.length) table[column] = [];\n'\ ' table[column][row] = cell;\n'\ ' for(var i = 0; i < d[devid].c.length; i++) {\n'\ ' var cid = d[devid].c[i];\n'\ ' span += deviceChildren(cid, column+1, row+span);\n'\ ' }\n'\ ' if(span == 0) span = 1;\n'\ ' table[column][row].span = span;\n'\ ' return span;\n'\ ' }\n'\ ' function deviceTree(devid, resume) {\n'\ ' var html = "<table border=1>";\n'\ ' filter = [];\n'\ ' table = [];\n'\ ' plist = deviceParent(devid);\n'\ ' var devidx = plist.length - 1;\n'\ ' for(var i = 0; i < devidx; i++)\n'\ ' table[i] = [{name: plist[i], span: 1}];\n'\ ' deviceChildren(devid, devidx, 0);\n'\ ' for(var i = 0; i < devidx; i++)\n'\ ' table[i][0].span = table[devidx][0].span;\n'\ ' for(var row = 0; row < table[0][0].span; row++) {\n'\ ' html += "<tr>";\n'\ ' for(var col = 0; col < table.length; col++)\n'\ ' if(row in table[col]) {\n'\ ' var cell = table[col][row];\n'\ ' var args = "";\n'\ ' if(cell.span > 1)\n'\ ' args += " rowspan="+cell.span;\n'\ ' if((col == devidx) && (row == 0))\n'\ ' args += " class=tdhl";\n'\ ' if(resume)\n'\ ' html += "<td"+args+">"+cell.name+" →</td>";\n'\ ' else\n'\ ' html += "<td"+args+">← "+cell.name+"</td>";\n'\ ' }\n'\ ' html += "</tr>";\n'\ ' }\n'\ ' html += "</table>";\n'\ ' return html;\n'\ ' }\n'\ ' function zoomTimeline() {\n'\ ' var timescale = document.getElementById("timescale");\n'\ ' var dmesg = document.getElementById("dmesg");\n'\ ' var zoombox = document.getElementById("dmesgzoombox");\n'\ ' var val = parseFloat(dmesg.style.width);\n'\ ' var newval = 100;\n'\ ' var sh = window.outerWidth / 2;\n'\ ' if(this.id == "zoomin") {\n'\ ' newval = val * 1.2;\n'\ ' if(newval > 40000) newval = 40000;\n'\ ' dmesg.style.width = newval+"%";\n'\ ' zoombox.scrollLeft = ((zoombox.scrollLeft + sh) * newval / val) - sh;\n'\ ' } else if (this.id == "zoomout") {\n'\ ' newval = val / 1.2;\n'\ ' if(newval < 100) newval = 100;\n'\ ' dmesg.style.width = newval+"%";\n'\ ' zoombox.scrollLeft = ((zoombox.scrollLeft + sh) * newval / val) - sh;\n'\ ' } else {\n'\ ' zoombox.scrollLeft = 0;\n'\ ' dmesg.style.width = "100%";\n'\ ' }\n'\ ' var html = "";\n'\ ' var t0 = bounds[0];\n'\ ' var tMax = bounds[1];\n'\ ' var tTotal = tMax - t0;\n'\ ' var wTotal = tTotal * 100.0 / newval;\n'\ ' for(var tS = 1000; (wTotal / tS) < 3; tS /= 10);\n'\ ' if(tS < 1) tS = 1;\n'\ ' for(var s = ((t0 / tS)|0) * tS; s < tMax; s += tS) {\n'\ ' var pos = (tMax - s) * 100.0 / tTotal;\n'\ ' var name = (s == 0)?"S/R":(s+"ms");\n'\ ' html += \"<div class=\\\"t\\\" style=\\\"right:\"+pos+\"%\\\">\"+name+\"</div>\";\n'\ ' }\n'\ ' timescale.innerHTML = html;\n'\ ' }\n'\ ' function deviceDetail() {\n'\ ' var devtitle = document.getElementById("devicedetail");\n'\ ' devtitle.innerHTML = "<h1>"+this.title+"</h1>";\n'\ ' var devtree = document.getElementById("devicetree");\n'\ ' devtree.innerHTML = deviceTree(this.id, (this.title.indexOf("resume") >= 0));\n'\ ' var cglist = document.getElementById("callgraphs");\n'\ ' if(!cglist) return;\n'\ ' var cg = cglist.getElementsByClassName("atop");\n'\ ' for (var i = 0; i < cg.length; i++) {\n'\ ' if(filter.indexOf(cg[i].id) >= 0) {\n'\ ' cg[i].style.display = "block";\n'\ ' } else {\n'\ ' cg[i].style.display = "none";\n'\ ' }\n'\ ' }\n'\ ' }\n'\ ' window.addEventListener("load", function () {\n'\ ' var dmesg = document.getElementById("dmesg");\n'\ ' dmesg.style.width = "100%"\n'\ ' document.getElementById("zoomin").onclick = zoomTimeline;\n'\ ' document.getElementById("zoomout").onclick = zoomTimeline;\n'\ ' document.getElementById("zoomdef").onclick = zoomTimeline;\n'\ ' var dev = dmesg.getElementsByClassName("thread");\n'\ ' for (var i = 0; i < dev.length; i++) {\n'\ ' dev[i].onclick = deviceDetail;\n'\ ' }\n'\ ' zoomTimeline();\n'\ ' });\n'\ '</script>\n' hf.write(script_code); | 0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3651,
1085,
12,
76,
74,
4672,
2552,
501,
225,
268,
20,
273,
261,
892,
18,
1937,
300,
501,
18,
88,
55,
22942,
13,
380,
4336,
268,
2747,
273,
261,
892,
18,
409,
300,
501,
18,
88,
55,
22942,
13,
380,
4336,
468,
752,
392,
526,
316,
11341,
3778,
598,
326,
2346,
3189,
7664,
273,
296,
202,
1401,
4461,
2121,
273,
5378,
9747,
82,
11,
364,
501,
316,
268,
281,
313,
27595,
30,
17671,
273,
501,
18,
5964,
18618,
1435,
7664,
1011,
296,
202,
5206,
2121,
14451,
72,
65,
273,
2213,
87,
6,
9747,
82,
11,
738,
261,
892,
18,
3813,
2696,
16,
17671,
13,
7664,
1011,
296,
202,
1401,
4972,
273,
9799,
74,
15529,
74,
65,
9747,
82,
11,
738,
261,
88,
20,
16,
268,
2747,
13,
468,
527,
326,
981,
1492,
903,
28286,
326,
501,
316,
326,
4748,
2728,
67,
710,
273,
521,
2368,
4263,
618,
1546,
955,
19,
11242,
6,
5333,
82,
11,
15,
8992,
16971,
296,
202,
1401,
1034,
273,
5378,
9747,
82,
8314,
296,
202,
1401,
1014,
273,
5378,
9747,
82,
8314,
296,
202,
915,
2346,
3054,
12,
323,
1246,
13,
18890,
82,
8314,
296,
202,
202,
1401,
4461,
1098,
273,
5378,
9747,
82,
8314,
296,
202,
202,
430,
12,
2188,
18,
31806,
12,
323,
1246,
13,
411,
374,
13,
1034,
63,
2188,
18,
2469,
65,
273,
443,
1246,
9747,
82,
8314,
296,
202,
202,
430,
12,
72,
63,
323,
1246,
8009,
84,
316,
302,
5153,
82,
8314,
296,
1082,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3651,
1085,
12,
76,
74,
4672,
2552,
501,
225,
268,
20,
273,
261,
892,
18,
1937,
300,
501,
18,
88,
55,
22942,
13,
380,
4336,
268,
2747,
273,
261,
892,
18,
409,
300,
501,
18,
88,
55,
22942,
13,
380,
4336,
468,
752,
392,
526,
316,
11341,
3778,
598,
326,
2346,
3189,
7664,
273,
296,
202,
1401,
4461,
2121,
273,
5378,
9747,
82,
11,
364,
501,
316,
268,
281,
313,
27595,
30,
17671,
273,
501,
18,
5964,
18618,
1435,
7664,
1011,
296,
202,
5206,
2121,
14451,
72,
65,
273,
2213,
87,
6,
9747,
82,
11,
738,
261,
892,
18,
3813,
2696,
16,
17671,
13,
7664,
1011,
296,
202,
1401,
4972,
273,
9799,
74,
15529,
74,
65,
9747,
2
] |
if not os.path.exists(dirname): | if dirname and not os.path.exists(dirname): print "Creating Folders: '%s'" % dirname | def new_decoded_pad(self, decoder, pad, is_last): if self.added_pad_already: return if "audio" not in pad.get_caps()[0].get_name(): return | fb263caf044aa99ff978564e088e8ab6a2b54428 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/fb263caf044aa99ff978564e088e8ab6a2b54428/soundconverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
26646,
67,
6982,
12,
2890,
16,
8320,
16,
4627,
16,
353,
67,
2722,
4672,
309,
365,
18,
9665,
67,
6982,
67,
17583,
30,
327,
309,
315,
11509,
6,
486,
316,
4627,
18,
588,
67,
22984,
1435,
63,
20,
8009,
588,
67,
529,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
26646,
67,
6982,
12,
2890,
16,
8320,
16,
4627,
16,
353,
67,
2722,
4672,
309,
365,
18,
9665,
67,
6982,
67,
17583,
30,
327,
309,
315,
11509,
6,
486,
316,
4627,
18,
588,
67,
22984,
1435,
63,
20,
8009,
588,
67,
529,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
del names["__builtins__"] | if names.has_key("__builtins__"): del names["__builtins__"] | def check_all(modname): names = {} try: exec "import %s" % modname in names except ImportError: # silent fail here seems the best route since some modules # may not be available in all environments return verify(hasattr(sys.modules[modname], "__all__"), "%s has no __all__ attribute" % modname) names = {} exec "from %s import *" % modname in names del names["__builtins__"] keys = names.keys() keys.sort() all = list(sys.modules[modname].__all__) # in case it's a tuple all.sort() verify(keys==all, "%s != %s" % (keys, all)) | f4e0faab048eef5b6838e9f7d76f90c7d144edd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f4e0faab048eef5b6838e9f7d76f90c7d144edd3/test___all__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
454,
12,
1711,
529,
4672,
1257,
273,
2618,
775,
30,
1196,
315,
5666,
738,
87,
6,
738,
16037,
316,
1257,
1335,
11308,
30,
468,
10404,
2321,
2674,
12001,
326,
3796,
1946,
3241,
2690,
4381,
468,
2026,
486,
506,
2319,
316,
777,
15900,
327,
3929,
12,
5332,
1747,
12,
9499,
18,
6400,
63,
1711,
529,
6487,
10425,
454,
14437,
3631,
2213,
87,
711,
1158,
1001,
454,
972,
1566,
6,
738,
16037,
13,
1257,
273,
2618,
1196,
315,
2080,
738,
87,
1930,
380,
6,
738,
16037,
316,
1257,
309,
1257,
18,
5332,
67,
856,
2932,
972,
12406,
2679,
14437,
4672,
1464,
1257,
9614,
972,
12406,
2679,
972,
11929,
1311,
273,
1257,
18,
2452,
1435,
1311,
18,
3804,
1435,
777,
273,
666,
12,
9499,
18,
6400,
63,
1711,
529,
8009,
972,
454,
972,
13,
468,
316,
648,
518,
1807,
279,
3193,
777,
18,
3804,
1435,
3929,
12,
2452,
631,
454,
16,
2213,
87,
480,
738,
87,
6,
738,
261,
2452,
16,
777,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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454,
12,
1711,
529,
4672,
1257,
273,
2618,
775,
30,
1196,
315,
5666,
738,
87,
6,
738,
16037,
316,
1257,
1335,
11308,
30,
468,
10404,
2321,
2674,
12001,
326,
3796,
1946,
3241,
2690,
4381,
468,
2026,
486,
506,
2319,
316,
777,
15900,
327,
3929,
12,
5332,
1747,
12,
9499,
18,
6400,
63,
1711,
529,
6487,
10425,
454,
14437,
3631,
2213,
87,
711,
1158,
1001,
454,
972,
1566,
6,
738,
16037,
13,
1257,
273,
2618,
1196,
315,
2080,
738,
87,
1930,
380,
6,
738,
16037,
316,
1257,
309,
1257,
18,
5332,
67,
856,
2932,
972,
12406,
2679,
14437,
4672,
1464,
1257,
9614,
972,
12406,
2679,
972,
11929,
1311,
273,
1257,
18,
2452,
1435,
1311,
18,
3804,
1435,
2
] |
elif SCons.Util.is_Sequence(d): | elif is_Sequence(d): | def _action(target, source, env): # prepare the line separator linesep = env['LINESEPARATOR'] if linesep is None: linesep = os.linesep elif is_String(linesep): pass elif isinstance(linesep, Value): linesep = linesep.get_text_contents() else: raise SCons.Errors.UserError( 'unexpected type/class for LINESEPARATOR: %s' % repr(linesep), None) # create a dictionary to use for the substitutions if not env.has_key('SUBST_DICT'): subs = None # no substitutions else: d = env['SUBST_DICT'] if SCons.Util.is_Dict(d): d = d.items() elif SCons.Util.is_Sequence(d): pass else: raise SCons.Errors.UserError('SUBST_DICT must be dict or sequence') subs = [] for (k,v) in d: if callable(v): v = v() if SCons.Util.is_String(v): v = env.subst(v) else: v = str(v) subs.append((k,v)) # write the file try: fd = open(target[0].get_path(), "w") except (OSError,IOError), e: raise SCons.Errors.UserError("Can't write target file %s" % target[0]) # separate lines by 'linesep' only if linesep is not empty lsep = None for s in source: if lsep: fd.write(lsep) fd.write(_do_subst(s, subs)) lsep = linesep fd.close() | bdbff6e7b39938e660b9afad2cb330055c8cb93a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/bdbff6e7b39938e660b9afad2cb330055c8cb93a/textfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1128,
12,
3299,
16,
1084,
16,
1550,
4672,
468,
2911,
326,
980,
4182,
24223,
273,
1550,
3292,
5997,
4550,
3546,
309,
24223,
353,
599,
30,
24223,
273,
1140,
18,
3548,
881,
1327,
353,
67,
780,
12,
3548,
881,
4672,
1342,
1327,
1549,
12,
3548,
881,
16,
1445,
4672,
24223,
273,
24223,
18,
588,
67,
955,
67,
3980,
1435,
469,
30,
1002,
20487,
18,
4229,
18,
1299,
668,
12,
296,
21248,
618,
19,
1106,
364,
14340,
4550,
30,
738,
87,
11,
738,
8480,
12,
3548,
881,
3631,
599,
13,
225,
468,
752,
279,
3880,
358,
999,
364,
326,
23368,
309,
486,
1550,
18,
5332,
67,
856,
2668,
8362,
882,
67,
31456,
11,
4672,
11630,
273,
599,
565,
468,
1158,
23368,
469,
30,
302,
273,
1550,
3292,
8362,
882,
67,
31456,
3546,
309,
20487,
18,
1304,
18,
291,
67,
5014,
12,
72,
4672,
302,
273,
302,
18,
3319,
1435,
1327,
353,
67,
4021,
12,
72,
4672,
1342,
469,
30,
1002,
20487,
18,
4229,
18,
1299,
668,
2668,
8362,
882,
67,
31456,
1297,
506,
2065,
578,
3102,
6134,
11630,
273,
5378,
364,
261,
79,
16,
90,
13,
316,
302,
30,
309,
4140,
12,
90,
4672,
331,
273,
331,
1435,
309,
20487,
18,
1304,
18,
291,
67,
780,
12,
90,
4672,
331,
273,
1550,
18,
1717,
334,
12,
90,
13,
469,
30,
331,
273,
609,
12,
90,
13,
11630,
18,
6923,
12443,
79,
16,
90,
3719,
225,
468,
1045,
326,
585,
775,
30,
5194,
273,
1696,
12,
3299,
63,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1128,
12,
3299,
16,
1084,
16,
1550,
4672,
468,
2911,
326,
980,
4182,
24223,
273,
1550,
3292,
5997,
4550,
3546,
309,
24223,
353,
599,
30,
24223,
273,
1140,
18,
3548,
881,
1327,
353,
67,
780,
12,
3548,
881,
4672,
1342,
1327,
1549,
12,
3548,
881,
16,
1445,
4672,
24223,
273,
24223,
18,
588,
67,
955,
67,
3980,
1435,
469,
30,
1002,
20487,
18,
4229,
18,
1299,
668,
12,
296,
21248,
618,
19,
1106,
364,
14340,
4550,
30,
738,
87,
11,
738,
8480,
12,
3548,
881,
3631,
599,
13,
225,
468,
752,
279,
3880,
358,
999,
364,
326,
23368,
309,
486,
1550,
18,
5332,
67,
856,
2668,
8362,
882,
67,
31456,
11,
4672,
11630,
273,
599,
565,
468,
2
] |
if is_accepter_started(): | if not node_reset_config['reset_accepter'] and is_accepter_started(): | def start_accepter(): shimstack = ShimStackInterface('(NatDeciderShim)') unique_id = rsa_publickey_to_string(configuration['publickey']) unique_id = sha_hexhash(unique_id) + str(configuration['service_vessel']) # do this until we get the accepter started... while True: if is_accepter_started(): # we're done, return the name! return myname else: for possibleport in configuration['ports']: try: servicelogger.log("[INFO]: Trying to wait") shimstack.waitforconn(unique_id, possibleport, nmconnectionmanager.connection_handler) except Exception, e: servicelogger.log("[ERROR]: when calling waitforconn for the connection_handler: " + str(e)) servicelogger.log_last_exception() else: # the waitforconn was completed so the acceptor is started acceptor_state['lock'].acquire() acceptor_state['started']= True acceptor_state['lock'].release() # assign the nodemanager name myname = unique_id + ":" + str(possibleport) servicelogger.log("[INFO]: Now listening as " + myname) break else: servicelogger.log("[ERROR]: cannot find a port for waitforconn.") # check infrequently time.sleep(configuration['pollfrequency']) | 234c1f93c0c2f1d6cd3d0edf3d746b9359bf1110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/234c1f93c0c2f1d6cd3d0edf3d746b9359bf1110/nmmain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
9436,
264,
13332,
225,
17555,
3772,
273,
2638,
381,
2624,
1358,
2668,
12,
23779,
1799,
3585,
1555,
381,
2506,
13,
225,
3089,
67,
350,
273,
14771,
67,
482,
856,
67,
869,
67,
1080,
12,
7025,
3292,
482,
856,
19486,
3089,
67,
350,
273,
6056,
67,
7118,
2816,
12,
6270,
67,
350,
13,
397,
609,
12,
7025,
3292,
3278,
67,
90,
403,
292,
19486,
225,
468,
741,
333,
3180,
732,
336,
326,
2791,
264,
5746,
2777,
1323,
1053,
30,
225,
309,
486,
756,
67,
6208,
67,
1425,
3292,
6208,
67,
9436,
264,
3546,
471,
353,
67,
9436,
264,
67,
14561,
13332,
468,
732,
4565,
2731,
16,
327,
326,
508,
5,
327,
3399,
529,
225,
469,
30,
364,
3323,
655,
316,
1664,
3292,
4363,
3546,
30,
775,
30,
24658,
12970,
693,
18,
1330,
2932,
63,
5923,
14542,
6161,
310,
358,
2529,
7923,
17555,
3772,
18,
7048,
1884,
4646,
12,
6270,
67,
350,
16,
3323,
655,
16,
8442,
4071,
4181,
18,
4071,
67,
4176,
13,
225,
1335,
1185,
16,
425,
30,
24658,
12970,
693,
18,
1330,
2932,
63,
3589,
14542,
1347,
4440,
2529,
1884,
4646,
364,
326,
1459,
67,
4176,
30,
315,
397,
609,
12,
73,
3719,
24658,
12970,
693,
18,
1330,
67,
2722,
67,
4064,
1435,
469,
30,
468,
326,
2529,
1884,
4646,
1703,
5951,
1427,
326,
2791,
280,
353,
5746,
2791,
280,
67,
2019,
3292,
739,
29489,
1077,
1039,
1435,
2791,
280,
67,
2019,
3292,
14561,
3546,
33,
1053,
2791,
280,
67,
2019,
3292,
739,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
9436,
264,
13332,
225,
17555,
3772,
273,
2638,
381,
2624,
1358,
2668,
12,
23779,
1799,
3585,
1555,
381,
2506,
13,
225,
3089,
67,
350,
273,
14771,
67,
482,
856,
67,
869,
67,
1080,
12,
7025,
3292,
482,
856,
19486,
3089,
67,
350,
273,
6056,
67,
7118,
2816,
12,
6270,
67,
350,
13,
397,
609,
12,
7025,
3292,
3278,
67,
90,
403,
292,
19486,
225,
468,
741,
333,
3180,
732,
336,
326,
2791,
264,
5746,
2777,
1323,
1053,
30,
225,
309,
486,
756,
67,
6208,
67,
1425,
3292,
6208,
67,
9436,
264,
3546,
471,
353,
67,
9436,
264,
67,
14561,
13332,
468,
732,
4565,
2731,
16,
327,
326,
508,
5,
327,
3399,
529,
225,
469,
30,
364,
2
] |
self.errorOut("error, value is not 8bit: %s" %val) | self.errorExit("error, value is not 8bit: %s" %val) | def val2percent(self, val): if len(val) != 2: self.errorOut("error, value is not 8bit: %s" %val) | ed330f6b89df5e36da27e444855e0b166dc9eda1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10061/ed330f6b89df5e36da27e444855e0b166dc9eda1/knxmonitor_decoder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1244,
22,
8849,
12,
2890,
16,
1244,
4672,
225,
309,
562,
12,
1125,
13,
480,
576,
30,
365,
18,
1636,
1182,
2932,
1636,
16,
460,
353,
486,
1725,
3682,
30,
738,
87,
6,
738,
1125,
13,
2,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1244,
22,
8849,
12,
2890,
16,
1244,
4672,
225,
309,
562,
12,
1125,
13,
480,
576,
30,
365,
18,
1636,
1182,
2932,
1636,
16,
460,
353,
486,
1725,
3682,
30,
738,
87,
6,
738,
1125,
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
] |
Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)).start() | self._addThread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i3']) self._addThread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self._addThread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i3', 1)) self.assertRaises(Queue.Empty, self.done.get_nowait) self.GL.release(locking.LEVEL_INSTANCE) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i2'], shared=1) self._addThread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 1)) self._waitThreads() self.assertEqual(self.done.get_nowait(), 'DONE') self._addThread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 0)) self.assertRaises(Queue.Empty, self.done.get_nowait) self.GL.release(locking.LEVEL_INSTANCE) self._waitThreads() | def testConcurrency(self): self.GL.acquire(locking.LEVEL_CLUSTER, ['BGL'], shared=1) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i3']) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i1', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i3', 1)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.GL.release(locking.LEVEL_INSTANCE) self.assertEqual(self.done.get(True, 1), 'DONE') self.GL.acquire(locking.LEVEL_INSTANCE, ['i2'], shared=1) Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 1)).start() self.assertEqual(self.done.get(True, 1), 'DONE') Thread(target=self._doLock, args=(locking.LEVEL_INSTANCE, 'i2', 0)).start() self.assertRaises(Queue.Empty, self.done.get, True, 0.2) self.GL.release(locking.LEVEL_INSTANCE) self.assertEqual(self.done.get(True, 1), 'DONE') | 4607c978b8f973b63c49547f1b8d6061fdbd78d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/4607c978b8f973b63c49547f1b8d6061fdbd78d3/ganeti.locking_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
18273,
12,
2890,
4672,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
5017,
23069,
16,
10228,
38,
11261,
17337,
5116,
33,
21,
13,
365,
6315,
1289,
3830,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
3719,
365,
6315,
7048,
13233,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
67,
3338,
1540,
9334,
296,
26875,
6134,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
13341,
16,
10228,
77,
23,
19486,
365,
6315,
1289,
3830,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
3719,
365,
6315,
7048,
13233,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
67,
3338,
1540,
9334,
296,
26875,
6134,
365,
6315,
1289,
3830,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
23,
2187,
404,
3719,
365,
18,
11231,
12649,
6141,
12,
3183,
18,
1921,
16,
365,
18,
8734,
18,
588,
67,
3338,
1540,
13,
365,
18,
11261,
18,
9340,
12,
739,
310,
18,
10398,
67,
13341,
13,
365,
6315,
7048,
13233,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
67,
3338,
1540,
9334,
296,
26875,
6134,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
13341,
16,
10228,
77,
22,
17337,
5116,
33,
21,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
18273,
12,
2890,
4672,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
5017,
23069,
16,
10228,
38,
11261,
17337,
5116,
33,
21,
13,
365,
6315,
1289,
3830,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
21,
2187,
404,
3719,
365,
6315,
7048,
13233,
1435,
365,
18,
11231,
5812,
12,
2890,
18,
8734,
18,
588,
67,
3338,
1540,
9334,
296,
26875,
6134,
365,
18,
11261,
18,
1077,
1039,
12,
739,
310,
18,
10398,
67,
13341,
16,
10228,
77,
23,
19486,
365,
6315,
1289,
3830,
12,
3299,
33,
2890,
6315,
2896,
2531,
16,
833,
28657,
739,
310,
18,
10398,
67,
13341,
16,
296,
77,
2
] |
asm.setid("animal", 1000) asm.setid("adoption", 1000) | def tocurrency(s): if s.strip() == "": return 0.0 s = s.replace("$", "") try: return float(s) except: return 0.0 | c3b4bf95871b6d378043eb65202d9eee1d553772 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/194/c3b4bf95871b6d378043eb65202d9eee1d553772/org_dc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
7095,
12,
87,
4672,
309,
272,
18,
6406,
1435,
422,
1408,
30,
327,
374,
18,
20,
272,
273,
272,
18,
2079,
2932,
8,
3113,
1408,
13,
775,
30,
327,
1431,
12,
87,
13,
1335,
30,
327,
374,
18,
20,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
7095,
12,
87,
4672,
309,
272,
18,
6406,
1435,
422,
1408,
30,
327,
374,
18,
20,
272,
273,
272,
18,
2079,
2932,
8,
3113,
1408,
13,
775,
30,
327,
1431,
12,
87,
13,
1335,
30,
327,
374,
18,
20,
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
] |
|
import re _userprog = re.compile('^([^@]*)@(.*)$') | import re _userprog = re.compile('^([^@]*)@(.*)$') | def splituser(host): global _userprog if _userprog is None: import re _userprog = re.compile('^([^@]*)@(.*)$') match = _userprog.match(host) if match: return match.group(1, 2) return None, host | 7e7ca0ba1753f9088a9b2afb3351a02127337974 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7e7ca0ba1753f9088a9b2afb3351a02127337974/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
1355,
12,
2564,
4672,
2552,
389,
1355,
14654,
309,
389,
1355,
14654,
353,
599,
30,
1930,
283,
389,
1355,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
36,
15471,
36,
14361,
8,
6134,
225,
845,
273,
389,
1355,
14654,
18,
1916,
12,
2564,
13,
309,
845,
30,
327,
845,
18,
1655,
12,
21,
16,
576,
13,
327,
599,
16,
1479,
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,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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
1355,
12,
2564,
4672,
2552,
389,
1355,
14654,
309,
389,
1355,
14654,
353,
599,
30,
1930,
283,
389,
1355,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
36,
15471,
36,
14361,
8,
6134,
225,
845,
273,
389,
1355,
14654,
18,
1916,
12,
2564,
13,
309,
845,
30,
327,
845,
18,
1655,
12,
21,
16,
576,
13,
327,
599,
16,
1479,
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
] |
def runPerfSuite(options): | def runPerfTests(options, testlist=None): | def runPerfSuite(options): """ Run the Performance Test Suite """ # XXX need to log the full output to intermediate file so that we can # XXX first show the condensed form, sleep for 5 seconds, and cat the # XXX full log (like do_tests.sh does). failed = False savePWD = os.getcwd() try: if 'release' in options.modes: testlist = [] testlistLarge = [] if not options.dryrun: os.chdir(options.chandlerHome) for item in glob.glob(os.path.join(options.profileDir, '__repository__.0*')): if os.path.isdir(item): build_lib.rmdirs(item) else: os.remove(item) for item in glob.glob(os.path.join(options.chandlerHome, 'tools', 'QATestScripts', 'Performance', 'Perf*.py')): if 'PerfLargeData' in item: testlistLarge.append(item) else: testlist.append(item) # small repo tests failed = runScriptPerfTests(options, testlist) # large repo tests if not failed or options.noStop: if runScriptPerfTests(options, testlistLarge, largeData=True): failed = True # startup tests if not failed or options.noStop: if os.name == 'nt' or sys.platform == 'cygwin': t = 'time.exe' elif sys.platform == 'darwin': t = 'gtime' if not build_lib.getCommand(['which', t]): log('%s not found, skipping startup performance tests' % t) log('NOTE: %s is not part of OS X, you need to compile one' + \ 'yourself (get source from http://directory.fsf.org/time.html)' + \ 'or get it from darwinports project.' % t) else: t = '/usr/bin/time' if runStartupPerfTests(options, t): failed = True if not failed: # Don't continue even if noStop, almost certain these won't work if runStartupPerfTests(options, t, largeData=True): failed = True else: log('Skipping Performance Tests - release mode not specified') finally: os.chdir(savePWD) return failed | 4272128dba31ee83ec0437dd8cb2441e28a3495b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/4272128dba31ee83ec0437dd8cb2441e28a3495b/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
22016,
14650,
12,
2116,
16,
1842,
1098,
33,
7036,
4672,
3536,
1939,
326,
11217,
1359,
7766,
348,
9519,
3536,
468,
11329,
1608,
358,
613,
326,
1983,
876,
358,
12110,
585,
1427,
716,
732,
848,
468,
11329,
1122,
2405,
326,
6941,
28003,
646,
16,
5329,
364,
1381,
3974,
16,
471,
6573,
326,
468,
11329,
1983,
613,
261,
5625,
741,
67,
16341,
18,
674,
1552,
2934,
225,
2535,
273,
1083,
225,
1923,
31243,
273,
1140,
18,
588,
11089,
1435,
225,
775,
30,
309,
296,
9340,
11,
316,
702,
18,
19282,
30,
1842,
1098,
1377,
273,
5378,
1842,
1098,
20020,
273,
5378,
225,
309,
486,
702,
18,
25011,
2681,
30,
1140,
18,
343,
1214,
12,
2116,
18,
343,
464,
749,
8684,
13,
364,
761,
316,
4715,
18,
10581,
12,
538,
18,
803,
18,
5701,
12,
2116,
18,
5040,
1621,
16,
4940,
9071,
25648,
20,
4035,
3719,
30,
309,
1140,
18,
803,
18,
291,
1214,
12,
1726,
4672,
1361,
67,
2941,
18,
8864,
8291,
12,
1726,
13,
469,
30,
1140,
18,
4479,
12,
1726,
13,
225,
364,
761,
316,
4715,
18,
10581,
12,
538,
18,
803,
18,
5701,
12,
2116,
18,
343,
464,
749,
8684,
16,
296,
6642,
2187,
296,
53,
789,
395,
15041,
2187,
296,
25024,
2187,
296,
22016,
11146,
2074,
26112,
30,
309,
296,
22016,
20020,
751,
11,
316,
761,
30,
1842,
1098,
20020,
18,
6923,
12,
1726,
13,
469,
30,
1842,
1098,
18,
6923,
12,
1726,
13,
225,
468,
5264,
3538,
7434,
2535,
273,
1086,
3651,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
22016,
14650,
12,
2116,
16,
1842,
1098,
33,
7036,
4672,
3536,
1939,
326,
11217,
1359,
7766,
348,
9519,
3536,
468,
11329,
1608,
358,
613,
326,
1983,
876,
358,
12110,
585,
1427,
716,
732,
848,
468,
11329,
1122,
2405,
326,
6941,
28003,
646,
16,
5329,
364,
1381,
3974,
16,
471,
6573,
326,
468,
11329,
1983,
613,
261,
5625,
741,
67,
16341,
18,
674,
1552,
2934,
225,
2535,
273,
1083,
225,
1923,
31243,
273,
1140,
18,
588,
11089,
1435,
225,
775,
30,
309,
296,
9340,
11,
316,
702,
18,
19282,
30,
1842,
1098,
1377,
273,
5378,
1842,
1098,
20020,
273,
5378,
225,
309,
486,
702,
18,
25011,
2681,
30,
1140,
18,
343,
1214,
12,
2116,
18,
343,
464,
749,
2
] |
(list) a list of lists of length 3, each holding the | (list) A list of lists of length 3, each holding the | def points(self): """ Return a list of the generating points in this Mordell-Weil group. | 1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3143,
12,
2890,
4672,
3536,
2000,
279,
666,
434,
326,
12516,
3143,
316,
333,
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,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,
981,
30,
1652,
3143,
12,
2890,
4672,
3536,
2000,
279,
666,
434,
326,
12516,
3143,
316,
333,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if package: display_pkg_data(herd, handler) else: display_dev_data(herd, handler) return 0 def herdstat(herds): """display statistics about given herd(s)/dev(s)""" if os.environ.has_key('HERDS'): herds_xml = get_herds_xml(os.environ['HERDS']) else: print "HERDS environment variable is not set." print "Attempting to retrieve herds.xml from http://www.gentoo.org/." herds_xml = get_herds_xml(herds_url) if herds_xml == None: return 1 handler = parse_xml(Herds_XML(), herds_xml) if handler == None: return 1 herds_xml.close() for herd in herds: if display_herd_data(herd, handler) != 0: return 1 if herd != herds[-1]: print '\n' return 0 if __name__ == '__main__': from getopt import gnu_getopt,GetoptError if len(sys.argv) == 1: print_usage() sys.exit(1) try: opts,args = gnu_getopt(sys.argv[1:], "hvp", ["help","verbose","package"]) except GetoptError: print_usage() sys.exit(1) verbose = False package = False for o, a in opts: if o in ("-v", "--verbose"): verbose = True if o in ("-h", "--help"): print_usage() sys.exit(0) if o in ("-p", "--package"): package = True sys.exit(herdstat(args)) | def endElement(self, tag): if tag == "herd": self._inside_herd="No" if tag == "name" and self._inside_maintainer == "No": self._inside_herd_name="No" if tag == "email" and self._inside_maintainer == "No": self._inside_herd_email="No" if tag == "description" and self._inside_maintainer == "No": self._inside_herd_desc="No" if tag == "maintainer": self._inside_maintainer="No" if tag == "email" and self._inside_maintainer == "Yes": self._inside_maintainer_email="No" if tag == "name" and self._inside_maintainer == "Yes": self._inside_maintainer_name="No" if tag == "role": self._inside_maintainer_role="No" def characters(self, contents): if self._inside_herd_name == "Yes": self._current_herd = contents self._herds[contents] = {} if self._inside_herd_desc == "Yes": self._descs[self._current_herd] = contents if self._inside_maintainer_email == "Yes": self._current_dev = contents self._herds[self._current_herd][contents]=[] if self._inside_maintainer_name == "Yes": self._herds[self._current_herd][self._current_dev].append(contents) if self._inside_maintainer_role == "Yes": self._herds[self._current_herd][self._current_dev].append(contents) | def display_herd_data(herd, handler): """Display herd statistics for the specified herd""" # does herd exist? if not handler._herds.has_key(herd): print "Herd '%s' was not found in herds.xml." % herd return 1 print format("Herd", herd) print format("Description", handler._descs[herd]) if package: display_pkg_data(herd, handler) else: display_dev_data(herd, handler) return 0 | 9192ad127a74c44eb6c32ae70ef1cead0367aa1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2297/9192ad127a74c44eb6c32ae70ef1cead0367aa1d/portage_herds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
1614,
72,
67,
892,
12,
1614,
72,
16,
1838,
4672,
3536,
4236,
22336,
72,
7691,
364,
326,
1269,
22336,
72,
8395,
225,
468,
1552,
22336,
72,
1005,
35,
309,
486,
1838,
6315,
1614,
2377,
18,
5332,
67,
856,
12,
1614,
72,
4672,
1172,
315,
44,
264,
72,
1995,
87,
11,
1703,
486,
1392,
316,
22336,
2377,
18,
2902,
1199,
738,
22336,
72,
327,
404,
225,
1172,
740,
2932,
44,
264,
72,
3113,
22336,
72,
13,
1172,
740,
2932,
3291,
3113,
1838,
6315,
5569,
87,
63,
1614,
72,
5717,
225,
309,
2181,
30,
2562,
67,
10657,
67,
892,
12,
1614,
72,
16,
1838,
13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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
1614,
72,
67,
892,
12,
1614,
72,
16,
1838,
4672,
3536,
4236,
22336,
72,
7691,
364,
326,
1269,
22336,
72,
8395,
225,
468,
1552,
22336,
72,
1005,
35,
309,
486,
1838,
6315,
1614,
2377,
18,
5332,
67,
856,
12,
1614,
72,
4672,
1172,
315,
44,
264,
72,
1995,
87,
11,
1703,
486,
1392,
316,
22336,
2377,
18,
2902,
1199,
738,
22336,
72,
327,
404,
225,
1172,
740,
2932,
44,
264,
72,
3113,
22336,
72,
13,
1172,
740,
2932,
3291,
3113,
1838,
6315,
5569,
87,
63,
1614,
72,
5717,
225,
309,
2181,
30,
2562,
67,
10657,
67,
892,
12,
1614,
72,
16,
1838,
13,
469,
30,
2562,
67,
5206,
67,
892,
12,
1614,
72,
16,
1838,
13,
2
] |
def lock(tmp_dir, timeout = 60, min_wait = 5, max_wait = 10, verbosity = 0): | def lock(tmp_dir, timeout=60, min_wait=5, max_wait=10, verbosity=0): | def lock(tmp_dir, timeout = 60, min_wait = 5, max_wait = 10, verbosity = 0): """ Obtain lock access by creating a given temporary directory (whose base will be created if needed, but will not be deleted after the lock is removed). If access is refused by the same lock owner during more than 'timeout' seconds, then the current lock is overridden. If timeout is None, then no timeout is performed. The lock is performed by creating a 'lock' file in 'tmp_dir' that contains a unique id identifying the owner of the lock (the process id, followed by a random string). When there is already a lock, the process sleeps for a random amount of time between min_wait and max_wait seconds before trying again. If 'verbosity' is >= 1, then a message will be displayed when we need to wait for the lock. If it is set to a value >1, then this message will be displayed each time we re-check for the presence of the lock. Otherwise it is displayed only when we notice the lock's owner has changed. @param tmp_dir: lock directory that will be created when acquiring the lock @type tmp_dir: string @param timeout: time (in seconds) to wait before replacing an existing lock @type timeout: int @param min_wait: minimum time (in seconds) to wait before trying again to get the lock @type min_wait: int @param max_wait: maximum time (in seconds) to wait before trying again to get the lock @type max_wait: int @param verbosity: amount of feedback displayed to screen @type verbosity: int """ # Create base of lock directory if required. base_lock = os.path.basename(tmp_dir) if not os.path.isdir(base_lock): try: os.makedirs(base_lock) except: # Someone else was probably trying to create it at the same time. # We wait two seconds just to make sure the following assert does # not fail on some NFS systems. os.sleep(2) assert os.path.isdir(base_lock) # Variable initialization. lock_file = os.path.join(tmp_dir, 'lock') random.seed() unique_id = '%s_%s' % (os.getpid(), ''.join([str(random.randint(0,9)) for i in range(10)])) no_display = (verbosity == 0) # Acquire lock. while True: try: last_owner = 'no_owner' time_start = time.time() while os.path.isdir(tmp_dir): try: read_owner = open(lock_file).readlines()[0].strip() except: read_owner = 'failure' if last_owner == read_owner: if timeout is not None and time.time() - time_start >= timeout: # Timeout exceeded. break else: last_owner = read_owner time_start = time.time() no_display = (verbosity == 0) if not no_display: print 'Waiting for existing lock by %s (I am %s)' % ( read_owner, unique_id) if verbosity <= 1: no_display = True time.sleep(random.uniform(min_wait, max_wait)) try: os.mkdir(tmp_dir) except: # Error while creating the directory: someone else must have tried # at the exact same time. continue # Safety check: the directory should be here. assert os.path.isdir(tmp_dir) # Write own id into lock file. lock_write = open(lock_file, 'w') lock_write.write(unique_id + '\n') lock_write.close() # Verify we are really the lock owner (this should not be needed, # but better be safe than sorry). owner = open(lock_file).readlines()[0].strip() if owner != unique_id: # Too bad, try again. continue else: # We got the lock, hoorray! return except: # If something wrong happened, we try again. raise continue | 2be4d824287329a2fa216c5b1c5463b33950738c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/2be4d824287329a2fa216c5b1c5463b33950738c/compilelock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2176,
12,
5645,
67,
1214,
16,
2021,
33,
4848,
16,
1131,
67,
7048,
33,
25,
16,
943,
67,
7048,
33,
2163,
16,
11561,
33,
20,
4672,
3536,
24850,
2176,
2006,
635,
4979,
279,
864,
6269,
1867,
261,
3350,
2584,
1026,
903,
506,
2522,
309,
3577,
16,
1496,
903,
486,
506,
4282,
1839,
326,
2176,
353,
3723,
2934,
971,
2006,
353,
1278,
3668,
635,
326,
1967,
2176,
3410,
4982,
1898,
2353,
296,
4538,
11,
3974,
16,
1508,
326,
783,
2176,
353,
11000,
18,
971,
2021,
353,
599,
16,
1508,
1158,
2021,
353,
9591,
18,
1021,
2176,
353,
9591,
635,
4979,
279,
296,
739,
11,
585,
316,
296,
5645,
67,
1214,
11,
716,
1914,
279,
3089,
612,
29134,
326,
3410,
434,
326,
2176,
261,
5787,
1207,
612,
16,
10860,
635,
279,
2744,
533,
2934,
5203,
1915,
353,
1818,
279,
2176,
16,
326,
1207,
5329,
87,
364,
279,
2744,
3844,
434,
813,
3086,
1131,
67,
7048,
471,
943,
67,
7048,
3974,
1865,
8374,
3382,
18,
971,
296,
16629,
8807,
11,
353,
1545,
404,
16,
1508,
279,
883,
903,
506,
10453,
1347,
732,
1608,
358,
2529,
364,
326,
2176,
18,
971,
518,
353,
444,
358,
279,
460,
405,
21,
16,
1508,
333,
883,
903,
506,
10453,
1517,
813,
732,
283,
17,
1893,
364,
326,
9805,
434,
326,
2176,
18,
5272,
518,
353,
10453,
1338,
1347,
732,
11690,
326,
2176,
1807,
3410,
711,
3550,
18,
225,
632,
891,
1853,
67,
1214,
30,
2176,
1867,
716,
903,
506,
2522,
1347,
1721,
372,
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,
2176,
12,
5645,
67,
1214,
16,
2021,
33,
4848,
16,
1131,
67,
7048,
33,
25,
16,
943,
67,
7048,
33,
2163,
16,
11561,
33,
20,
4672,
3536,
24850,
2176,
2006,
635,
4979,
279,
864,
6269,
1867,
261,
3350,
2584,
1026,
903,
506,
2522,
309,
3577,
16,
1496,
903,
486,
506,
4282,
1839,
326,
2176,
353,
3723,
2934,
971,
2006,
353,
1278,
3668,
635,
326,
1967,
2176,
3410,
4982,
1898,
2353,
296,
4538,
11,
3974,
16,
1508,
326,
783,
2176,
353,
11000,
18,
971,
2021,
353,
599,
16,
1508,
1158,
2021,
353,
9591,
18,
1021,
2176,
353,
9591,
635,
4979,
279,
296,
739,
11,
585,
316,
296,
5645,
67,
1214,
11,
716,
1914,
279,
3089,
612,
29134,
326,
3410,
2
] |
self._close_callback(id) def _close_callback(self, id): | def _no_longer_opened(self, id): try: del self._channels[id] except KeyError: pass self._close_callback(id) | a5bfb8e501203c8e51497d9683602631bf98cb56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7009/a5bfb8e501203c8e51497d9683602631bf98cb56/gateway_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2135,
67,
9379,
693,
67,
25304,
12,
2890,
16,
612,
4672,
775,
30,
1464,
365,
6315,
9114,
63,
350,
65,
1335,
4999,
30,
1342,
365,
6315,
4412,
67,
3394,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2135,
67,
9379,
693,
67,
25304,
12,
2890,
16,
612,
4672,
775,
30,
1464,
365,
6315,
9114,
63,
350,
65,
1335,
4999,
30,
1342,
365,
6315,
4412,
67,
3394,
12,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"""Calculate RMSD from a given MSD.""" | """Calculate RMSD from a given MSD. """ | def calc_rmsd(msd): """Calculate RMSD from a given MSD.""" if msd < 0.0: return 0.0 return math.sqrt(msd) | 0af2bbd2f823c142ced4a1951f7ce02d646d6905 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/0af2bbd2f823c142ced4a1951f7ce02d646d6905/TLS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
29716,
72,
12,
959,
72,
4672,
3536,
8695,
534,
3537,
40,
628,
279,
864,
9238,
40,
18,
3536,
309,
4086,
72,
411,
374,
18,
20,
30,
327,
374,
18,
20,
327,
4233,
18,
24492,
12,
959,
72,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
327,
4233,
18,
24492,
12,
959,
72,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not requestObject: | self.request = requestObject if not self.request: | def __init__(self,requestObject=False): """ Constructor function, must specify request object to instantiate FailoverTransfer. """ self.log = gLogger.getSubLogger( "FailoverTransfer" ) self.rm = ReplicaManager() if not requestObject: self.request = RequestContainer() self.request.setRequestName('default_request.xml') self.request.setSourceComponent('FailoverTransfer') self.request = requestObject | f3b16a5bf91decd4625c0cf4f9b7d4e2523d66fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f3b16a5bf91decd4625c0cf4f9b7d4e2523d66fa/FailoverTransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2293,
921,
33,
8381,
4672,
3536,
11417,
445,
16,
1297,
4800,
590,
733,
358,
10275,
8911,
1643,
5912,
18,
3536,
365,
18,
1330,
273,
314,
3328,
18,
588,
1676,
3328,
12,
315,
26329,
5912,
6,
262,
365,
18,
8864,
273,
16928,
1318,
1435,
365,
18,
2293,
273,
590,
921,
225,
309,
486,
365,
18,
2293,
30,
365,
18,
2293,
273,
1567,
2170,
1435,
365,
18,
2293,
18,
542,
691,
461,
2668,
1886,
67,
2293,
18,
2902,
6134,
365,
18,
2293,
18,
542,
1830,
1841,
2668,
26329,
5912,
6134,
225,
365,
18,
2293,
273,
590,
921,
225,
2,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2293,
921,
33,
8381,
4672,
3536,
11417,
445,
16,
1297,
4800,
590,
733,
358,
10275,
8911,
1643,
5912,
18,
3536,
365,
18,
1330,
273,
314,
3328,
18,
588,
1676,
3328,
12,
315,
26329,
5912,
6,
262,
365,
18,
8864,
273,
16928,
1318,
1435,
365,
18,
2293,
273,
590,
921,
225,
309,
486,
365,
18,
2293,
30,
365,
18,
2293,
273,
1567,
2170,
1435,
365,
18,
2293,
18,
542,
691,
461,
2668,
1886,
67,
2293,
18,
2902,
6134,
365,
18,
2293,
18,
542,
1830,
1841,
2668,
26329,
5912,
6134,
225,
365,
18,
2293,
273,
590,
921,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class reference: | class Reference: | def isresource(filename): "Is the specifired name a resource?" (root, ext) = os.path.splitext(filename) return ext and ext[1:] in resource_extensions | 62fd356284c4417edfc1b352313444f738cf4666 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9355/62fd356284c4417edfc1b352313444f738cf4666/wmltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
3146,
12,
3459,
4672,
315,
2520,
326,
857,
430,
2921,
508,
279,
1058,
7225,
261,
3085,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
327,
1110,
471,
1110,
63,
21,
26894,
316,
1058,
67,
9489,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
3146,
12,
3459,
4672,
315,
2520,
326,
857,
430,
2921,
508,
279,
1058,
7225,
261,
3085,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
327,
1110,
471,
1110,
63,
21,
26894,
316,
1058,
67,
9489,
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
] |
x, y, resolution2, resolution1 = bb.x, bb.y, bb.height, bb.width | x, y, height, width = bb.x, bb.y, bb.height, bb.width | def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): ''' Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int @param y: y co-ordinate value @type y: int @param width: width co-ordinate value @type width: int @param height: height co-ordinate value @type height: int | ff746be08b5d982d2599f56ebe1f94cbebc66c8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/ff746be08b5d982d2599f56ebe1f94cbebc66c8f/generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
19250,
12,
2890,
16,
2742,
67,
529,
273,
599,
16,
619,
273,
374,
16,
677,
273,
374,
16,
1835,
273,
599,
16,
2072,
273,
599,
4672,
9163,
385,
1657,
1823,
17179,
434,
326,
7339,
21304,
578,
864,
2742,
225,
632,
891,
2742,
67,
529,
30,
6076,
508,
358,
2324,
364,
16,
3344,
1983,
508,
16,
511,
9081,
52,
1807,
508,
15797,
16,
578,
279,
9480,
4715,
18,
632,
723,
2742,
67,
529,
30,
533,
632,
891,
619,
30,
619,
1825,
17,
22454,
460,
632,
723,
619,
30,
509,
632,
891,
677,
30,
677,
1825,
17,
22454,
460,
632,
723,
677,
30,
509,
632,
891,
1835,
30,
1835,
1825,
17,
22454,
460,
632,
723,
1835,
30,
509,
632,
891,
2072,
30,
2072,
1825,
17,
22454,
460,
632,
723,
2072,
30,
509,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
19250,
12,
2890,
16,
2742,
67,
529,
273,
599,
16,
619,
273,
374,
16,
677,
273,
374,
16,
1835,
273,
599,
16,
2072,
273,
599,
4672,
9163,
385,
1657,
1823,
17179,
434,
326,
7339,
21304,
578,
864,
2742,
225,
632,
891,
2742,
67,
529,
30,
6076,
508,
358,
2324,
364,
16,
3344,
1983,
508,
16,
511,
9081,
52,
1807,
508,
15797,
16,
578,
279,
9480,
4715,
18,
632,
723,
2742,
67,
529,
30,
533,
632,
891,
619,
30,
619,
1825,
17,
22454,
460,
632,
723,
619,
30,
509,
632,
891,
677,
30,
677,
1825,
17,
22454,
460,
632,
723,
677,
30,
509,
632,
891,
1835,
30,
1835,
1825,
17,
22454,
460,
632,
723,
1835,
30,
509,
632,
2
] |
if currency.company_id.id != company_id: | if currency.company_id and currency.company_id.id != company_id: | def onchange_company_id(self, cr, uid, ids, company_id, part_id, type, invoice_line, currency_id): val = {} dom = {} obj_journal = self.pool.get('account.journal') if company_id and part_id and type: acc_id = False partner_obj = self.pool.get('res.partner').browse(cr,uid,part_id) if partner_obj.property_account_payable and partner_obj.property_account_receivable: if partner_obj.property_account_payable.company_id.id != company_id and partner_obj.property_account_receivable.company_id.id != company_id: property_obj = self.pool.get('ir.property') rec_pro_id = property_obj.search(cr, uid, [('name','=','property_account_receivable'),('res_id','=','res.partner,'+str(part_id)+''),('company_id','=',company_id)]) pay_pro_id = property_obj.search(cr, uid, [('name','=','property_account_payable'),('res_id','=','res.partner,'+str(part_id)+''),('company_id','=',company_id)]) if not rec_pro_id: rec_pro_id = property_obj.search(cr, uid, [('name','=','property_account_receivable'),('company_id','=',company_id)]) if not pay_pro_id: pay_pro_id = property_obj.search(cr, uid, [('name','=','property_account_payable'),('company_id','=',company_id)]) rec_line_data = property_obj.read(cr, uid, rec_pro_id, ['name','value','res_id']) pay_line_data = property_obj.read(cr, uid, pay_pro_id, ['name','value','res_id']) rec_res_id = rec_line_data and int(rec_line_data[0]['value'].split(',')[1]) or False pay_res_id = pay_line_data and int(pay_line_data[0]['value'].split(',')[1]) or False if not rec_res_id and not pay_res_id: raise osv.except_osv(_('Configuration Error !'), _('Can not find account chart for this company, Please Create account.')) if type in ('out_invoice', 'out_refund'): acc_id = rec_res_id else: acc_id = pay_res_id val= {'account_id': acc_id} account_obj = self.pool.get('account.account') if ids: if company_id: inv_obj = self.browse(cr,uid,ids) for line in inv_obj[0].invoice_line: if line.account_id: if line.account_id.company_id.id != company_id: result_id = account_obj.search(cr, uid, [('name','=',line.account_id.name),('company_id','=',company_id)]) if not result_id: raise osv.except_osv(_('Configuration Error !'), _('Can not find account chart for this company in invoice line account, Please Create account.')) r_id = self.pool.get('account.invoice.line').write(cr, uid, [line.id], {'account_id': result_id[0]}) else: if invoice_line: for inv_line in invoice_line: obj_l = account_obj.browse(cr, uid, inv_line[2]['account_id']) if obj_l.company_id.id != company_id: raise osv.except_osv(_('Configuration Error !'), _('invoice line account company is not match with invoice company.')) else: continue if company_id and type: if type in ('out_invoice', 'out_refund'): journal_type = 'sale' else: journal_type = 'purchase' journal_ids = obj_journal.search(cr, uid, [('company_id','=',company_id), ('type', '=', journal_type)]) if journal_ids: val['journal_id'] = journal_ids[0] else: raise osv.except_osv(_('Configuration Error !'), _('Can not find account journal for this company in invoice, Please Create journal.')) dom = {'journal_id': [('id', 'in', journal_ids)]} else: journal_ids = obj_journal.search(cr, uid, []) | 195ac98256e35e49c13c668ec5ff8378f65a0527 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/195ac98256e35e49c13c668ec5ff8378f65a0527/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
16840,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
9395,
67,
350,
16,
1087,
67,
350,
16,
618,
16,
9179,
67,
1369,
16,
5462,
67,
350,
4672,
1244,
273,
2618,
4092,
273,
2618,
1081,
67,
22644,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
22644,
6134,
309,
9395,
67,
350,
471,
1087,
67,
350,
471,
618,
30,
4078,
67,
350,
273,
1083,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
16063,
25731,
12,
3353,
16,
1911,
16,
2680,
67,
350,
13,
309,
19170,
67,
2603,
18,
4468,
67,
4631,
67,
10239,
429,
471,
19170,
67,
2603,
18,
4468,
67,
4631,
67,
8606,
427,
429,
30,
309,
19170,
67,
2603,
18,
4468,
67,
4631,
67,
10239,
429,
18,
16840,
67,
350,
18,
350,
480,
9395,
67,
350,
471,
19170,
67,
2603,
18,
4468,
67,
4631,
67,
8606,
427,
429,
18,
16840,
67,
350,
18,
350,
480,
9395,
67,
350,
30,
1272,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
4468,
6134,
1950,
67,
685,
67,
350,
273,
1272,
67,
2603,
18,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
529,
17023,
33,
17023,
4468,
67,
4631,
67,
8606,
427,
429,
19899,
2668,
455,
67,
350,
17023,
33,
17023,
455,
18,
31993,
11189,
15,
701,
12,
2680,
67,
350,
27921,
6309,
3631,
2668,
16840,
67,
350,
17023,
33,
2187,
16840,
67,
350,
13,
5717,
8843,
67,
685,
67,
350,
273,
1272,
67,
2603,
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,
603,
3427,
67,
16840,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
9395,
67,
350,
16,
1087,
67,
350,
16,
618,
16,
9179,
67,
1369,
16,
5462,
67,
350,
4672,
1244,
273,
2618,
4092,
273,
2618,
1081,
67,
22644,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
22644,
6134,
309,
9395,
67,
350,
471,
1087,
67,
350,
471,
618,
30,
4078,
67,
350,
273,
1083,
19170,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
455,
18,
31993,
16063,
25731,
12,
3353,
16,
1911,
16,
2680,
67,
350,
13,
309,
19170,
67,
2603,
18,
4468,
67,
4631,
67,
10239,
429,
471,
19170,
67,
2603,
18,
4468,
67,
4631,
67,
8606,
427,
429,
30,
309,
2
] |
_actions = {} _objects_and_text_that_need_fixing_later = [] def fix_whatsthis_text_and_links(parent, refix_later = (), debug_cutoff = 0): | _actions = {} _objects_and_text_that_need_fixing_later = [] def fix_whatsthis_text_and_links(parent, refix_later = (), debug_cutoff = 0): | def create_whats_this_descriptions_for_NanoHive_dialog(w): "Create What's This descriptions for the Nano-Hive dialog widgets." # MPQC Electrostatics Potential Plane MPQCESPText = "<u><b>MPQC Electrostatics Potential Plane</b></u><br>"\ "Enables the <i>MPQC Electrostatics Potential Plane</i> plugin. "\ "</p>" w.MPQC_ESP_checkbox.setWhatsThis(MPQCESPText ) MPQCESPTipText = "Enables/disables MPQC Electrostatics Potential Plane Plugin" w.MPQC_ESP_checkbox.setToolTip(MPQCESPTipText) | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3350,
2323,
67,
2211,
67,
30288,
67,
1884,
67,
16112,
44,
688,
67,
12730,
12,
91,
4672,
315,
1684,
18734,
1807,
1220,
15550,
364,
326,
23294,
83,
17,
44,
688,
6176,
10965,
1199,
225,
468,
13480,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
225,
13480,
53,
1441,
3118,
1528,
273,
3532,
89,
4438,
70,
34,
4566,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
1757,
70,
4695,
89,
4438,
2848,
2984,
64,
315,
25924,
326,
411,
77,
34,
4566,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
1757,
77,
34,
1909,
18,
1548,
6823,
84,
2984,
225,
341,
18,
4566,
53,
39,
67,
41,
3118,
67,
12017,
18,
542,
2888,
2323,
2503,
12,
4566,
53,
1441,
3118,
1528,
262,
225,
13480,
53,
1441,
55,
1856,
625,
1528,
273,
315,
25924,
19,
2251,
1538,
13480,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
6258,
6,
225,
341,
18,
4566,
53,
39,
67,
41,
3118,
67,
12017,
18,
542,
29250,
12,
4566,
53,
1441,
55,
1856,
625,
1528,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3350,
2323,
67,
2211,
67,
30288,
67,
1884,
67,
16112,
44,
688,
67,
12730,
12,
91,
4672,
315,
1684,
18734,
1807,
1220,
15550,
364,
326,
23294,
83,
17,
44,
688,
6176,
10965,
1199,
225,
468,
13480,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
225,
13480,
53,
1441,
3118,
1528,
273,
3532,
89,
4438,
70,
34,
4566,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
1757,
70,
4695,
89,
4438,
2848,
2984,
64,
315,
25924,
326,
411,
77,
34,
4566,
53,
39,
512,
1582,
303,
5642,
2102,
23435,
2001,
3008,
8806,
1757,
77,
34,
1909,
18,
1548,
6823,
84,
2984,
225,
341,
18,
4566,
53,
39,
67,
41,
3118,
67,
2
] |
EXAMPLES: Plot the vector fields involving sin and cos | EXAMPLES: Plot some vector fields involving sin and cos:: | def plot_vector_field((f, g), xrange, yrange, **options): r""" \code{plot_vector_field} takes two functions of two variables xvar and yvar (for instance, if the variables are $x$ and $y$, take $(f(x,y), g(x,y))$) and plots vector arrows of the function over the specified ranges, with xrange being of xvar between xmin and xmax and yrange similarly (see below). plot_vector_field((f, g), (xvar, xmin, xmax), (yvar, ymin, ymax)) EXAMPLES: Plot the vector fields involving sin and cos sage: x,y = var('x y') sage: plot_vector_field((sin(x), cos(y)), (x,-3,3), (y,-3,3)) sage: plot_vector_field(( y, (cos(x)-2)*sin(x)), (x,-pi,pi), (y,-pi,pi)) Plot a gradient field sage: u,v = var('u v') sage: f = exp(-(u^2+v^2)) sage: plot_vector_field(f.gradient(), (u,-2,2), (v,-2,2)) We ignore function values that are infinite or NaN. sage: x,y = var('x,y') sage: plot_vector_field( (-x/sqrt(x^2+y^2), -y/sqrt(x^2+y^2)), (x, -10, 10), (y, -10, 10)) sage: plot_vector_field( (-x/sqrt(x+y), -y/sqrt(x+y)), (x, -10, 10), (y, -10, 10)) """ from sage.plot.plot import setup_for_eval_on_grid, Graphics z, xstep, ystep, xrange, yrange = setup_for_eval_on_grid([f,g], xrange, yrange, options['plot_points']) f,g = z xpos_array, ypos_array, xvec_array, yvec_array = [],[],[],[] for x in xsrange(xrange[0], xrange[1], xstep, include_endpoint=True): for y in xsrange(yrange[0], yrange[1], ystep, include_endpoint=True): xpos_array.append(x) ypos_array.append(y) xvec_array.append(f(x,y)) yvec_array.append(g(x,y)) import numpy xvec_array = numpy.ma.masked_invalid(numpy.array(xvec_array, dtype=float)) yvec_array = numpy.ma.masked_invalid(numpy.array(yvec_array, dtype=float)) g = Graphics() g.add_primitive(PlotField(xpos_array, ypos_array, xvec_array, yvec_array, options)) return g | b39a838c560927994d5f1cd0239aaf60298ce479 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b39a838c560927994d5f1cd0239aaf60298ce479/plot_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
7737,
67,
1518,
12443,
74,
16,
314,
3631,
12314,
16,
677,
3676,
16,
2826,
2116,
4672,
436,
8395,
225,
521,
710,
95,
4032,
67,
7737,
67,
1518,
97,
5530,
2795,
4186,
434,
2795,
3152,
619,
1401,
471,
677,
1401,
261,
1884,
791,
16,
309,
326,
3152,
854,
271,
92,
8,
471,
271,
93,
8,
16,
4862,
27488,
74,
12,
92,
16,
93,
3631,
314,
12,
92,
16,
93,
3719,
8,
13,
471,
17931,
3806,
419,
3870,
434,
326,
445,
1879,
326,
1269,
7322,
16,
598,
12314,
3832,
434,
619,
1401,
3086,
13777,
471,
14016,
471,
677,
3676,
7281,
715,
261,
5946,
5712,
2934,
225,
3207,
67,
7737,
67,
1518,
12443,
74,
16,
314,
3631,
261,
92,
1401,
16,
13777,
16,
14016,
3631,
261,
93,
1401,
16,
15763,
16,
15275,
3719,
225,
5675,
8900,
11386,
30,
15211,
2690,
3806,
1466,
29876,
6282,
5367,
471,
4987,
2866,
225,
272,
410,
30,
619,
16,
93,
273,
569,
2668,
92,
677,
6134,
272,
410,
30,
3207,
67,
7737,
67,
1518,
12443,
21861,
12,
92,
3631,
4987,
12,
93,
13,
3631,
261,
92,
16,
17,
23,
16,
23,
3631,
261,
93,
16,
17,
23,
16,
23,
3719,
272,
410,
30,
3207,
67,
7737,
67,
1518,
12443,
677,
16,
261,
14445,
12,
92,
24950,
22,
17653,
21861,
12,
92,
13,
3631,
261,
92,
16,
17,
7259,
16,
7259,
3631,
261,
93,
16,
17,
7259,
16,
7259,
3719,
225,
15211,
279,
10292,
652,
272,
410,
30,
582,
16,
90,
273,
569,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
7737,
67,
1518,
12443,
74,
16,
314,
3631,
12314,
16,
677,
3676,
16,
2826,
2116,
4672,
436,
8395,
225,
521,
710,
95,
4032,
67,
7737,
67,
1518,
97,
5530,
2795,
4186,
434,
2795,
3152,
619,
1401,
471,
677,
1401,
261,
1884,
791,
16,
309,
326,
3152,
854,
271,
92,
8,
471,
271,
93,
8,
16,
4862,
27488,
74,
12,
92,
16,
93,
3631,
314,
12,
92,
16,
93,
3719,
8,
13,
471,
17931,
3806,
419,
3870,
434,
326,
445,
1879,
326,
1269,
7322,
16,
598,
12314,
3832,
434,
619,
1401,
3086,
13777,
471,
14016,
471,
677,
3676,
7281,
715,
261,
5946,
5712,
2934,
225,
3207,
67,
7737,
67,
1518,
12443,
74,
16,
314,
3631,
261,
92,
2
] |
text = render_to_string("result_email_debug.html", {'item': item}) | text = render_to_string("result_email_default.html", {'item': item}) | def checkResults(self): ''' Refer GmailResultsFramework.checkResults for documentation''' tags = self.grestags + " IANA" gmail_user = setting.get("username") gmail_pwd = setting.get("password") smtpserver = smtplib.SMTP("smtp.gmail.com",587) smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo() smtpserver.login(gmail_user, gmail_pwd) self.log.info("Checking Results... {0}".format(str(setting.get("poll_interval"))), extra=tags) for item in SuryaIANAResult.objects(isEmailed=False): try: misc = item.item.misc misc_dict = json.loads(misc) except ValueError as ve: self.log.error('[ Sanity ] The misc input is not a json syntax string. Store it as { "rawstring": (...input...)} . The orignial Input:' + str(misc)+ "Reason:" + str(ve), extra=tags) misc = '{ "rawString":"' + str(misc) + '"}' if misc_dict.has_key("fromemail"): | 0aa4807e39e33d001ef9ecfe4816f98924605ba0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13935/0aa4807e39e33d001ef9ecfe4816f98924605ba0/IANAGmailResults.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3447,
12,
2890,
4672,
9163,
868,
586,
611,
4408,
3447,
13701,
18,
1893,
3447,
364,
7323,
26418,
2342,
273,
365,
18,
75,
8792,
1341,
397,
315,
467,
1258,
37,
6,
225,
314,
4408,
67,
1355,
273,
3637,
18,
588,
2932,
5053,
7923,
314,
4408,
67,
27487,
273,
3637,
18,
588,
2932,
3664,
7923,
17660,
3567,
273,
272,
1010,
6673,
18,
55,
14636,
2932,
20278,
18,
75,
4408,
18,
832,
3113,
8204,
27,
13,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
1937,
17116,
1435,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
5819,
12,
75,
4408,
67,
1355,
16,
314,
4408,
67,
27487,
13,
225,
365,
18,
1330,
18,
1376,
2932,
14294,
10351,
2777,
288,
20,
1532,
18,
2139,
12,
701,
12,
8920,
18,
588,
2932,
13835,
67,
6624,
6,
3719,
3631,
2870,
33,
4156,
13,
225,
364,
761,
316,
16680,
93,
69,
21634,
37,
1253,
18,
6911,
12,
291,
1514,
1708,
33,
8381,
4672,
225,
775,
30,
20448,
273,
761,
18,
1726,
18,
23667,
20448,
67,
1576,
273,
1163,
18,
17135,
12,
23667,
13,
1335,
2068,
487,
10489,
30,
365,
18,
1330,
18,
1636,
2668,
63,
23123,
308,
1021,
20448,
810,
353,
486,
279,
1163,
6279,
533,
18,
4994,
518,
487,
288,
315,
1899,
1080,
6877,
261,
2777,
2630,
2777,
16869,
263,
1021,
578,
724,
649,
2741,
2497,
397,
609,
12,
23667,
27921,
315,
8385,
2773,
397,
609,
12,
537,
3631,
2870,
33,
4156,
13,
20448,
273,
2292,
315,
1899,
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,
3447,
12,
2890,
4672,
9163,
868,
586,
611,
4408,
3447,
13701,
18,
1893,
3447,
364,
7323,
26418,
2342,
273,
365,
18,
75,
8792,
1341,
397,
315,
467,
1258,
37,
6,
225,
314,
4408,
67,
1355,
273,
3637,
18,
588,
2932,
5053,
7923,
314,
4408,
67,
27487,
273,
3637,
18,
588,
2932,
3664,
7923,
17660,
3567,
273,
272,
1010,
6673,
18,
55,
14636,
2932,
20278,
18,
75,
4408,
18,
832,
3113,
8204,
27,
13,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
1937,
17116,
1435,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
5819,
12,
75,
4408,
67,
1355,
16,
314,
4408,
67,
27487,
13,
225,
365,
18,
1330,
18,
1376,
2932,
14294,
10351,
2
] |
self.call_command('editormanager', 'start') except: self.log.warn('editor failed to start') raise try: | def start(self): """Start Pida.""" self.__services = services.service_manager() self.__services.load_all() self.__editor = self.get_service('editormanager') self.__window = self.get_service('window') self.__services.bind() self.__services.reset() try: self.call_command('editormanager', 'start') except: self.log.warn('editor failed to start') raise try: self.call_command('terminal', 'execute_shell') except: self.log.warn('terminal emulator not configured correctly') self.__window.call('show_window') | ad6ce673e6d322368c81038d63ae00645c0dbbd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/ad6ce673e6d322368c81038d63ae00645c0dbbd3/boss.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
1685,
27041,
69,
12123,
365,
16186,
8387,
273,
4028,
18,
3278,
67,
4181,
1435,
365,
16186,
8387,
18,
945,
67,
454,
1435,
365,
16186,
9177,
273,
365,
18,
588,
67,
3278,
2668,
4619,
535,
1063,
6134,
365,
16186,
5668,
273,
365,
18,
588,
67,
3278,
2668,
5668,
6134,
365,
16186,
8387,
18,
4376,
1435,
365,
16186,
8387,
18,
6208,
1435,
775,
30,
365,
18,
1991,
67,
3076,
2668,
15979,
2187,
296,
8837,
67,
10304,
6134,
1335,
30,
365,
18,
1330,
18,
8935,
2668,
15979,
801,
11775,
486,
4351,
8783,
6134,
365,
16186,
5668,
18,
1991,
2668,
4500,
67,
5668,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
1685,
27041,
69,
12123,
365,
16186,
8387,
273,
4028,
18,
3278,
67,
4181,
1435,
365,
16186,
8387,
18,
945,
67,
454,
1435,
365,
16186,
9177,
273,
365,
18,
588,
67,
3278,
2668,
4619,
535,
1063,
6134,
365,
16186,
5668,
273,
365,
18,
588,
67,
3278,
2668,
5668,
6134,
365,
16186,
8387,
18,
4376,
1435,
365,
16186,
8387,
18,
6208,
1435,
775,
30,
365,
18,
1991,
67,
3076,
2668,
15979,
2187,
296,
8837,
67,
10304,
6134,
1335,
30,
365,
18,
1330,
18,
8935,
2668,
15979,
801,
11775,
486,
4351,
8783,
6134,
365,
16186,
5668,
18,
1991,
2668,
4500,
67,
5668,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
Manufacture a PackageDb for an RPM system. We hide this inside a factory method so that we only import the RPM Python bindings if we're on a platform likely to have them | Manufacture a PackageDb for an RPM system. We hide this inside a factory method so that we only import the RPM Python bindings if we're on a platform likely to have them | def __makeRpmPackageDb(): """ Manufacture a PackageDb for an RPM system. We hide this inside a factory method so that we only import the RPM Python bindings if we're on a platform likely to have them """ class RpmPackageDb(PackageDb): def getVersion(self, packageName): import rpm ts = rpm.TransactionSet() for header in ts.dbMatch("name", packageName): return Version.fromString(header["version"]) raise "Package not found: %s"%packageName return RpmPackageDb() | 2f3ee57faf7a591d83f5269c04bac4d4c273ebc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/2f3ee57faf7a591d83f5269c04bac4d4c273ebc9/distro.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6540,
54,
7755,
2261,
4331,
13332,
3536,
8660,
11853,
594,
279,
7508,
4331,
364,
392,
534,
12728,
2619,
18,
225,
1660,
6853,
333,
4832,
279,
3272,
707,
1427,
716,
732,
1338,
1930,
326,
534,
12728,
6600,
7394,
309,
732,
4565,
603,
279,
4072,
10374,
358,
1240,
2182,
3536,
667,
534,
7755,
2261,
4331,
12,
2261,
4331,
4672,
1652,
8343,
12,
2890,
16,
9929,
4672,
1930,
25228,
3742,
273,
25228,
18,
3342,
694,
1435,
364,
1446,
316,
3742,
18,
1966,
2060,
2932,
529,
3113,
9929,
4672,
327,
4049,
18,
2080,
780,
12,
3374,
9614,
1589,
6,
5717,
1002,
315,
2261,
486,
1392,
30,
738,
87,
28385,
5610,
461,
327,
534,
7755,
2261,
4331,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
707,
1427,
716,
732,
1338,
1930,
326,
534,
12728,
6600,
7394,
309,
732,
4565,
603,
279,
4072,
10374,
358,
1240,
2182,
3536,
667,
534,
7755,
2261,
4331,
12,
2261,
4331,
4672,
1652,
8343,
12,
2890,
16,
9929,
4672,
1930,
25228,
3742,
273,
25228,
18,
3342,
694,
1435,
364,
1446,
316,
3742,
18,
1966,
2060,
2932,
529,
3113,
9929,
4672,
327,
4049,
18,
2080,
780,
12,
3374,
9614,
1589,
6,
5717,
1002,
315,
2261,
486,
1392,
30,
738,
87,
28385,
5610,
461,
327,
534,
7755,
2261,
4331,
1435,
225,
2,
-100,
-100,
-100
] |
this = apply(_quickfix.new_MassCancelRequestType, args) | this = _quickfix.new_MassCancelRequestType(*args) | def __init__(self, *args): this = apply(_quickfix.new_MassCancelRequestType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
18060,
6691,
691,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
18060,
6691,
691,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
doc1 = PDFDocument() doc2 = PDFDocument() font = TTFont("Vera", "Vera.ttf") self.assertEquals(font.splitString(u'hello ', doc1), [(0, 'hello ')]) self.assertEquals(font.splitString(u'hello ', doc2), [(0, 'hello ')]) self.assertEquals(font.splitString(u'\u0410\u0411'.encode('UTF-8'), doc1), [(0, '\x80\x81')]) self.assertEquals(font.splitString(u'\u0412'.encode('UTF-8'), doc2), [(0, '\x80')]) font.addObjects(doc1) self.assertEquals(font.splitString(u'\u0413'.encode('UTF-8'), doc2), [(0, '\x81')]) font.addObjects(doc2) | ttfAsciiReadable = rl_config.ttfAsciiReadable try: rl_config.ttfAsciiReadable = 1 doc1 = PDFDocument() doc2 = PDFDocument() font = TTFont("Vera", "Vera.ttf") self.assertEquals(font.splitString(u'hello ', doc1), [(0, 'hello ')]) self.assertEquals(font.splitString(u'hello ', doc2), [(0, 'hello ')]) self.assertEquals(font.splitString(u'\u0410\u0411'.encode('UTF-8'), doc1), [(0, '\x80\x81')]) self.assertEquals(font.splitString(u'\u0412'.encode('UTF-8'), doc2), [(0, '\x80')]) font.addObjects(doc1) self.assertEquals(font.splitString(u'\u0413'.encode('UTF-8'), doc2), [(0, '\x81')]) font.addObjects(doc2) finally: rl_config.ttfAsciiReadable = ttfAsciiReadable | def testParallelConstruction(self): "Test that TTFont can be used for different documents at the same time" doc1 = PDFDocument() doc2 = PDFDocument() font = TTFont("Vera", "Vera.ttf") self.assertEquals(font.splitString(u'hello ', doc1), [(0, 'hello ')]) self.assertEquals(font.splitString(u'hello ', doc2), [(0, 'hello ')]) self.assertEquals(font.splitString(u'\u0410\u0411'.encode('UTF-8'), doc1), [(0, '\x80\x81')]) self.assertEquals(font.splitString(u'\u0412'.encode('UTF-8'), doc2), [(0, '\x80')]) font.addObjects(doc1) self.assertEquals(font.splitString(u'\u0413'.encode('UTF-8'), doc2), [(0, '\x81')]) font.addObjects(doc2) | 9b00011f0c2f6693e4cfbfc1b4cff7b7c0a7bdb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/9b00011f0c2f6693e4cfbfc1b4cff7b7c0a7bdb8/test_pdfbase_ttfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13056,
25485,
12,
2890,
4672,
315,
4709,
716,
19912,
5711,
848,
506,
1399,
364,
3775,
7429,
622,
326,
1967,
813,
6,
997,
21,
273,
12667,
2519,
1435,
997,
22,
273,
12667,
2519,
1435,
3512,
273,
19912,
5711,
2932,
3945,
69,
3113,
315,
3945,
69,
18,
748,
74,
7923,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
11,
23711,
2265,
997,
21,
3631,
306,
12,
20,
16,
296,
23711,
8624,
5717,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
11,
23711,
2265,
997,
22,
3631,
306,
12,
20,
16,
296,
23711,
8624,
5717,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
8314,
89,
3028,
2163,
64,
89,
3028,
2499,
10332,
3015,
2668,
5159,
17,
28,
19899,
997,
21,
3631,
306,
12,
20,
16,
2337,
92,
3672,
64,
92,
11861,
6134,
5717,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
8314,
89,
3028,
2138,
10332,
3015,
2668,
5159,
17,
28,
19899,
997,
22,
3631,
306,
12,
20,
16,
2337,
92,
3672,
6134,
5717,
3512,
18,
1289,
4710,
12,
2434,
21,
13,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
8314,
89,
3028,
3437,
10332,
3015,
2668,
5159,
17,
28,
19899,
997,
22,
3631,
306,
12,
20,
16,
2337,
92,
11861,
6134,
5717,
3512,
18,
1289,
4710,
12,
2434,
22,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13056,
25485,
12,
2890,
4672,
315,
4709,
716,
19912,
5711,
848,
506,
1399,
364,
3775,
7429,
622,
326,
1967,
813,
6,
997,
21,
273,
12667,
2519,
1435,
997,
22,
273,
12667,
2519,
1435,
3512,
273,
19912,
5711,
2932,
3945,
69,
3113,
315,
3945,
69,
18,
748,
74,
7923,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
11,
23711,
2265,
997,
21,
3631,
306,
12,
20,
16,
296,
23711,
8624,
5717,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
11,
23711,
2265,
997,
22,
3631,
306,
12,
20,
16,
296,
23711,
8624,
5717,
365,
18,
11231,
8867,
12,
5776,
18,
4939,
780,
12,
89,
8314,
89,
3028,
2163,
64,
89,
3028,
2499,
2
] |
@param file: The filename from which to load pnm image data @type file: string """ if _debug: print "\t%s: Called PnmImage.load()" % rendererName | @param fname: The filename from which to load pnm image data @type fname: string """ debugMsg("Called PnmImage.load()") fileCheck(fname) | def load(self, file): """ Loads pnm (ppm, pgm, pbm) image data from file. | c44140bd3d918f82e3b4fb0f16f6949f4d7b003e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/c44140bd3d918f82e3b4fb0f16f6949f4d7b003e/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
585,
4672,
3536,
4444,
87,
11059,
81,
261,
84,
7755,
16,
7184,
81,
16,
6386,
81,
13,
1316,
501,
628,
585,
18,
2,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
585,
4672,
3536,
4444,
87,
11059,
81,
261,
84,
7755,
16,
7184,
81,
16,
6386,
81,
13,
1316,
501,
628,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise TypeError,'trying to assign %s to %s and is not a date, being of type %s ' % (val, aname, type(val)) | raise TypeError,( 'trying to assign %s to %s and is not a date, '\ 'being of type %s ' ) % (val, aname, type(val)) | def typeCheckAndConvert(self, val, aname, attr): if val == None: val = "NULL" elif _isDateKind(attr): if (not isDateTime(val)) and not val == PyDBI.SYSDATE: raise TypeError,'trying to assign %s to %s and is not a date, being of type %s ' % (val, aname, type(val)) val = _dateConvertToDB(val) elif _isNumber(attr): if attr in ('FLOAT4', 'FLOAT8'): f = float else: f = lambda x: int(float(x)) try: return f(val) except: raise TypeError, ('trying to assign %s to %s and is not' ' a number') % (val, aname) elif _isString(attr) and not isinstance(val, types.StringType): raise TypeError, 'trying to assign %s to %s and is not a string'% ( val, aname) elif attr.upper() == 'BOOL': if val: return '1=1' else: return '0=1' return val | 119236e30f6300c964069b6c46f74b6d8a592c68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/119236e30f6300c964069b6c46f74b6d8a592c68/postconn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
1564,
1876,
2723,
12,
2890,
16,
1244,
16,
392,
339,
16,
1604,
4672,
309,
1244,
422,
599,
30,
1244,
273,
315,
8560,
6,
1327,
389,
291,
1626,
5677,
12,
1747,
4672,
309,
261,
902,
353,
5096,
12,
1125,
3719,
471,
486,
1244,
422,
4707,
2290,
45,
18,
30664,
4594,
30,
1002,
3580,
16,
12,
296,
698,
310,
358,
2683,
738,
87,
358,
738,
87,
471,
353,
486,
279,
1509,
16,
2337,
296,
2196,
310,
434,
618,
738,
87,
296,
262,
738,
225,
261,
1125,
16,
392,
339,
16,
618,
12,
1125,
3719,
1244,
273,
389,
712,
2723,
774,
2290,
12,
1125,
13,
1327,
389,
291,
1854,
12,
1747,
4672,
309,
1604,
316,
7707,
15640,
24,
2187,
296,
15640,
28,
11,
4672,
284,
273,
1431,
469,
30,
284,
273,
3195,
619,
30,
509,
12,
5659,
12,
92,
3719,
775,
30,
327,
284,
12,
1125,
13,
1335,
30,
1002,
3580,
16,
7707,
698,
310,
358,
2683,
738,
87,
358,
738,
87,
471,
353,
486,
11,
296,
279,
1300,
6134,
738,
261,
1125,
16,
392,
339,
13,
1327,
389,
291,
780,
12,
1747,
13,
471,
486,
1549,
12,
1125,
16,
1953,
18,
780,
559,
4672,
1002,
3580,
16,
296,
698,
310,
358,
2683,
738,
87,
358,
738,
87,
471,
353,
486,
279,
533,
11,
9,
261,
1244,
16,
392,
339,
13,
1327,
1604,
18,
5797,
1435,
422,
296,
19040,
4278,
309,
1244,
30,
327,
296,
21,
33,
21,
11,
469,
30,
327,
296,
20,
33,
21,
11,
327,
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,
618,
1564,
1876,
2723,
12,
2890,
16,
1244,
16,
392,
339,
16,
1604,
4672,
309,
1244,
422,
599,
30,
1244,
273,
315,
8560,
6,
1327,
389,
291,
1626,
5677,
12,
1747,
4672,
309,
261,
902,
353,
5096,
12,
1125,
3719,
471,
486,
1244,
422,
4707,
2290,
45,
18,
30664,
4594,
30,
1002,
3580,
16,
12,
296,
698,
310,
358,
2683,
738,
87,
358,
738,
87,
471,
353,
486,
279,
1509,
16,
2337,
296,
2196,
310,
434,
618,
738,
87,
296,
262,
738,
225,
261,
1125,
16,
392,
339,
16,
618,
12,
1125,
3719,
1244,
273,
389,
712,
2723,
774,
2290,
12,
1125,
13,
1327,
389,
291,
1854,
12,
1747,
4672,
309,
1604,
316,
7707,
15640,
24,
2187,
296,
2
] |
def _get_sig(args): | def _gen_sig(args): | def _get_sig(args): sig = [] for i, arg in enumerate(args): if arg.startswith('['): arg = arg.strip('[]') arg = '%s%d=""' % (arg, i) else: arg = '%s%d' % (arg, i) sig.append(arg) sig = ', '.join(sig) params = sig.replace('=""', '') return sig, params | 55807175eb7f31fdf1571e39ca97782d9f45b1a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12327/55807175eb7f31fdf1571e39ca97782d9f45b1a8/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4507,
67,
7340,
12,
1968,
4672,
3553,
273,
5378,
364,
277,
16,
1501,
316,
4241,
12,
1968,
4672,
309,
1501,
18,
17514,
1918,
2668,
3292,
4672,
1501,
273,
1501,
18,
6406,
2668,
63,
3864,
13,
1501,
273,
1995,
87,
9,
72,
1546,
5187,
738,
261,
3175,
16,
277,
13,
469,
30,
1501,
273,
1995,
87,
9,
72,
11,
738,
261,
3175,
16,
277,
13,
3553,
18,
6923,
12,
3175,
13,
3553,
273,
2265,
2418,
5701,
12,
7340,
13,
859,
273,
3553,
18,
2079,
2668,
1546,
6,
2187,
28707,
327,
3553,
16,
859,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4507,
67,
7340,
12,
1968,
4672,
3553,
273,
5378,
364,
277,
16,
1501,
316,
4241,
12,
1968,
4672,
309,
1501,
18,
17514,
1918,
2668,
3292,
4672,
1501,
273,
1501,
18,
6406,
2668,
63,
3864,
13,
1501,
273,
1995,
87,
9,
72,
1546,
5187,
738,
261,
3175,
16,
277,
13,
469,
30,
1501,
273,
1995,
87,
9,
72,
11,
738,
261,
3175,
16,
277,
13,
3553,
18,
6923,
12,
3175,
13,
3553,
273,
2265,
2418,
5701,
12,
7340,
13,
859,
273,
3553,
18,
2079,
2668,
1546,
6,
2187,
28707,
327,
3553,
16,
859,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return http.Response(stream='fail') return http.Response(stream='success') | return HTMLResponse(stream='fail') return HTMLResponse(stream='success') | def render(self, ctx): try: self.worksheet.delete_all_output(self.username) except ValueError: return http.Response(stream='fail') return http.Response(stream='success') | 2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
775,
30,
365,
18,
1252,
8118,
18,
3733,
67,
454,
67,
2844,
12,
2890,
18,
5053,
13,
1335,
2068,
30,
327,
1062,
18,
1064,
12,
3256,
2218,
6870,
6134,
327,
1062,
18,
1064,
12,
3256,
2218,
4768,
6134,
2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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
775,
30,
365,
18,
1252,
8118,
18,
3733,
67,
454,
67,
2844,
12,
2890,
18,
5053,
13,
1335,
2068,
30,
327,
1062,
18,
1064,
12,
3256,
2218,
6870,
6134,
327,
1062,
18,
1064,
12,
3256,
2218,
4768,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
start = int(self.cfg['start']) | start = int(cfg['start']) | def configure(self): try: self.cfg = self.ud.getSection('noip') except EC2DataRetrievalError: return | 9318eb56e356ed43d46dfcb46c8a883c30dd2aa5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7645/9318eb56e356ed43d46dfcb46c8a883c30dd2aa5/noip.py | [
1,
8585,
326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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
2890,
4672,
775,
30,
365,
18,
7066,
273,
365,
18,
1100,
18,
588,
5285,
2668,
2135,
625,
6134,
1335,
7773,
22,
751,
27356,
668,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return len(rows) > 0 | return result | def has_file(conn, path, mirror_id): """check if file 'path' exists on mirror 'mirror_id' by looking at the database. path can contain wildcards, which will result in a LIKE match. """ if path.find('*') >= 0 or path.find('%') >= 0: pattern = True oprtr = 'like' path = path.replace('*', '%') else: pattern = False oprtr = '=' query = "SELECT mirr_hasfile_byname(%s, '%s')" \ % (mirror_id, path) rows = conn.Server._connection.queryAll(query) return len(rows) > 0 | 0bfde61ede9a4f12d97f7111864cf39319b65b14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3890/0bfde61ede9a4f12d97f7111864cf39319b65b14/files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
768,
12,
4646,
16,
589,
16,
15593,
67,
350,
4672,
3536,
1893,
309,
585,
296,
803,
11,
1704,
603,
15593,
296,
27197,
67,
350,
11,
635,
7849,
622,
326,
2063,
18,
225,
589,
848,
912,
21170,
16,
1492,
903,
563,
316,
279,
13161,
845,
18,
3536,
309,
589,
18,
4720,
2668,
4035,
13,
1545,
374,
578,
589,
18,
4720,
29909,
6134,
1545,
374,
30,
1936,
273,
1053,
320,
683,
313,
273,
296,
5625,
11,
589,
273,
589,
18,
2079,
2668,
14,
2187,
1995,
6134,
469,
30,
1936,
273,
1083,
320,
683,
313,
273,
5214,
225,
843,
273,
315,
4803,
312,
7439,
67,
5332,
768,
67,
1637,
529,
9275,
87,
16,
1995,
87,
23291,
521,
738,
261,
27197,
67,
350,
16,
589,
13,
2595,
273,
1487,
18,
2081,
6315,
4071,
18,
2271,
1595,
12,
2271,
13,
225,
327,
563,
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,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
21170,
16,
1492,
903,
563,
316,
279,
13161,
845,
18,
3536,
309,
589,
18,
4720,
2668,
4035,
13,
1545,
374,
578,
589,
18,
4720,
29909,
6134,
1545,
374,
30,
1936,
273,
1053,
320,
683,
313,
273,
296,
5625,
11,
589,
273,
589,
18,
2079,
2668,
14,
2187,
1995,
6134,
469,
30,
1936,
273,
1083,
320,
683,
313,
273,
5214,
225,
843,
273,
315,
4803,
312,
7439,
67,
5332,
768,
67,
1637,
529,
9275,
87,
16,
1995,
87,
23291,
521,
738,
261,
2
] |
if status == 1: print "INFO: CPUs utilized is not in same package or core" | if status == 1: print "INFO: CPUs utilized is not in same package or core" | def validate_cpu_consolidation(sched_mc_level, sched_smt_level): ''' Verify if cpu's on which threads executed belong to same package ''' cpus_utilized = list() try: for l in sorted(stats_percentage.keys()): #modify threshold if stats_percentage[l][1] > 50: cpu_id = stats_percentage[l][0].split("cpu") if cpu_id[1] != '': cpus_utilized.append(int(cpu_id[1])) cpus_utilized.sort() print "INFO: CPU's utilized ", cpus_utilized status = validate_cpugrp_map(cpus_utilized, sched_mc_level, sched_smt_level) if status == 1: print "INFO: CPUs utilized is not in same package or core" return(status) except Exception, details: print "Exception in validate_cpu_consolidation: ", details sys.exit(1) | 94fd025f45e2da008712ef6b037eba0ec614ddc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/94fd025f45e2da008712ef6b037eba0ec614ddc0/sched_mc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
11447,
67,
8559,
7953,
367,
12,
87,
2049,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
4672,
9163,
8553,
309,
8326,
1807,
603,
1492,
7403,
7120,
10957,
358,
1967,
2181,
9163,
20620,
67,
1367,
1235,
273,
666,
1435,
775,
30,
364,
328,
316,
3115,
12,
5296,
67,
18687,
18,
2452,
1435,
4672,
468,
17042,
5573,
309,
3177,
67,
18687,
63,
80,
6362,
21,
65,
405,
6437,
30,
8326,
67,
350,
273,
3177,
67,
18687,
63,
80,
6362,
20,
8009,
4939,
2932,
11447,
7923,
309,
8326,
67,
350,
63,
21,
65,
480,
875,
30,
20620,
67,
1367,
1235,
18,
6923,
12,
474,
12,
11447,
67,
350,
63,
21,
22643,
20620,
67,
1367,
1235,
18,
3804,
1435,
1172,
315,
5923,
30,
12154,
1807,
1709,
1235,
3104,
20620,
67,
1367,
1235,
225,
1267,
273,
1954,
67,
4057,
637,
13832,
67,
1458,
12,
20696,
67,
1367,
1235,
16,
23964,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
13,
309,
1267,
422,
404,
30,
1172,
315,
5923,
30,
5181,
3477,
1709,
1235,
353,
486,
316,
1967,
2181,
578,
2922,
6,
327,
12,
2327,
13,
1335,
1185,
16,
3189,
30,
1172,
315,
503,
316,
1954,
67,
11447,
67,
8559,
7953,
367,
30,
3104,
3189,
2589,
18,
8593,
12,
21,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
11447,
67,
8559,
7953,
367,
12,
87,
2049,
67,
13952,
67,
2815,
16,
23964,
67,
87,
1010,
67,
2815,
4672,
9163,
8553,
309,
8326,
1807,
603,
1492,
7403,
7120,
10957,
358,
1967,
2181,
9163,
20620,
67,
1367,
1235,
273,
666,
1435,
775,
30,
364,
328,
316,
3115,
12,
5296,
67,
18687,
18,
2452,
1435,
4672,
468,
17042,
5573,
309,
3177,
67,
18687,
63,
80,
6362,
21,
65,
405,
6437,
30,
8326,
67,
350,
273,
3177,
67,
18687,
63,
80,
6362,
20,
8009,
4939,
2932,
11447,
7923,
309,
8326,
67,
350,
63,
21,
65,
480,
875,
30,
20620,
67,
1367,
1235,
18,
6923,
12,
474,
12,
11447,
67,
350,
63,
21,
22643,
20620,
67,
1367,
1235,
18,
2
] |
raise ValueError('No induced copy of the graph exists') return self.subgraph(H) def subgraph_search(self, G): r""" Returns an of `G` included in self. INPUT: - ``G`` -- the graph whose copy we are looking for in ``self`` ALGORITHM: Brute-force EXAMPLES: A Petersen Graph contains a `P_5` :: sage: g = graphs.PetersenGraph() sage: h1 = g.subgraph_search(graphs.PathGraph(5)) sage: h1 Subgraph of (Petersen graph): Graph on 5 vertices sage: h1.vertices() [0, 1, 2, 3, 4] It also contains a Claw (`K_{1,3}`):: sage: h2 = g.subgraph_search(graphs.ClawGraph()) sage: h2 Subgraph of (Petersen graph): Graph on 4 vertices sage: h2.vertices() [0, 1, 4, 5] However, as it contains no subgraph isomorphic to `K_3`, an exception is raised in this case :: sage: g.subgraph_search(graphs.CompleteGraph(3)) Traceback (most recent call last): ... ValueError: No copy of the graph exists """ from sage.graphs.generic_graph_pyx import subgraph_search H = subgraph_search(self, G) if H == []: raise ValueError('No copy of the graph exists') | return None | def induced_subgraph_search(self, G): r""" Returns an induced copy of `G` in self. | 84286d4be578725f91d534440b316bce27cdde2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/84286d4be578725f91d534440b316bce27cdde2f/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1547,
26372,
67,
1717,
4660,
67,
3072,
12,
2890,
16,
611,
4672,
436,
8395,
2860,
392,
1547,
26372,
1610,
434,
1375,
43,
68,
316,
365,
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,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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if len(message) > 2048: logging.error("Message to large to be handled on J2ME side. Please report bug!") raise MessageToLargeException() else: try: self.client_sock.sendall(message) except bluetooth.BluetoothError: logging.debug("Trying to send while remote side was disconnected") | try: self.client_sock.sendall(message) except bluetooth.BluetoothError: logging.debug("Trying to send while remote side was disconnected") | def send_query(self, package): # TODO: Handle larger packages on client side (what is needed?!) logging.debug("Sending package:\n" + str(package)) message = (json.write(package) + u"\u0000").encode('utf-8') logging.debug(repr(message)) if len(message) > 2048: logging.error("Message to large to be handled on J2ME side. Please report bug!") raise MessageToLargeException() else: try: self.client_sock.sendall(message) except bluetooth.BluetoothError: logging.debug("Trying to send while remote side was disconnected") | 8208c72b763cb3dd626c146d6562879050670e37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2456/8208c72b763cb3dd626c146d6562879050670e37/BTServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2271,
12,
2890,
16,
2181,
4672,
468,
2660,
30,
5004,
10974,
5907,
603,
1004,
4889,
261,
23770,
353,
3577,
35,
24949,
2907,
18,
4148,
2932,
16322,
2181,
5581,
82,
6,
397,
609,
12,
5610,
3719,
883,
273,
261,
1977,
18,
2626,
12,
5610,
13,
397,
582,
12691,
89,
2787,
20387,
3015,
2668,
3158,
17,
28,
6134,
2907,
18,
4148,
12,
12715,
12,
2150,
3719,
309,
562,
12,
2150,
13,
405,
21907,
30,
2907,
18,
1636,
2932,
1079,
358,
7876,
358,
506,
7681,
603,
804,
22,
958,
4889,
18,
7801,
2605,
7934,
4442,
13,
1002,
2350,
774,
20020,
503,
1435,
469,
30,
775,
30,
365,
18,
2625,
67,
15031,
18,
4661,
454,
12,
2150,
13,
1335,
2811,
26654,
18,
4802,
26654,
668,
30,
2907,
18,
4148,
2932,
18038,
358,
1366,
1323,
2632,
4889,
1703,
17853,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2271,
12,
2890,
16,
2181,
4672,
468,
2660,
30,
5004,
10974,
5907,
603,
1004,
4889,
261,
23770,
353,
3577,
35,
24949,
2907,
18,
4148,
2932,
16322,
2181,
5581,
82,
6,
397,
609,
12,
5610,
3719,
883,
273,
261,
1977,
18,
2626,
12,
5610,
13,
397,
582,
12691,
89,
2787,
20387,
3015,
2668,
3158,
17,
28,
6134,
2907,
18,
4148,
12,
12715,
12,
2150,
3719,
309,
562,
12,
2150,
13,
405,
21907,
30,
2907,
18,
1636,
2932,
1079,
358,
7876,
358,
506,
7681,
603,
804,
22,
958,
4889,
18,
7801,
2605,
7934,
4442,
13,
1002,
2350,
774,
20020,
503,
1435,
469,
30,
775,
30,
365,
18,
2625,
67,
15031,
18,
4661,
454,
12,
2150,
13,
1335,
2811,
2
] |
input_cache = lal.Cache().fromfile(fp) input_cache = input_cache - input_cache.sieve( description = 'SLIDE' ) | input_cache = lal.Cache().fromfile(fp).sieve( description = 'THINCA_SECOND' ) | def get_output_from_cache(self): """ Returns a list of files that this node will generate using the input_cache. The output file names are the same as the input urls, but with the zero_lag 'THINCA' file replaced with 'THINCA_TO_COINC', and with the filepaths pointing to the current directory in which the thinca_to_coinc node is being run. """ if not self.__input_cache: raise ValueError, "no input-cache specified" # open the input cache file fp = open(self.__input_cache, 'r') input_cache = lal.Cache().fromfile(fp) # remove any slide files input_cache = input_cache - input_cache.sieve( description = 'SLIDE' ) output_files = [ \ '/'.join([ os.getcwd(), re.sub('THINCA', 'THINCA_TO_COINC', os.path.basename(entry.url)) ]) for entry in input_cache \ ] return output_files | 43f81a5e2a29a5509dbd4c404ef8a76838864a84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/43f81a5e2a29a5509dbd4c404ef8a76838864a84/inspiral.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
67,
2080,
67,
2493,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
1390,
716,
333,
756,
903,
2103,
1450,
326,
810,
67,
2493,
18,
1021,
876,
585,
1257,
854,
326,
1967,
487,
326,
810,
6903,
16,
1496,
598,
326,
3634,
67,
22532,
296,
2455,
706,
3587,
11,
585,
8089,
598,
296,
2455,
706,
3587,
67,
4296,
67,
3865,
23213,
2187,
471,
598,
326,
3608,
87,
225,
17022,
358,
326,
783,
1867,
316,
1492,
326,
21936,
5353,
67,
869,
67,
12645,
71,
756,
353,
3832,
1086,
18,
3536,
309,
486,
365,
16186,
2630,
67,
2493,
30,
1002,
2068,
16,
315,
2135,
810,
17,
2493,
1269,
6,
468,
1696,
326,
810,
1247,
585,
4253,
273,
1696,
12,
2890,
16186,
2630,
67,
2493,
16,
296,
86,
6134,
810,
67,
2493,
273,
328,
287,
18,
1649,
7675,
2080,
768,
12,
7944,
13,
468,
1206,
1281,
12701,
1390,
810,
67,
2493,
273,
810,
67,
2493,
300,
810,
67,
2493,
18,
87,
21271,
12,
2477,
273,
296,
4559,
10385,
11,
262,
876,
67,
2354,
273,
306,
521,
2023,
18,
5701,
3816,
1140,
18,
588,
11089,
9334,
283,
18,
1717,
2668,
2455,
706,
3587,
2187,
296,
2455,
706,
3587,
67,
4296,
67,
3865,
23213,
2187,
1140,
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810,
67,
2493,
18,
1021,
876,
585,
1257,
854,
326,
1967,
487,
326,
810,
6903,
16,
1496,
598,
326,
3634,
67,
22532,
296,
2455,
706,
3587,
11,
585,
8089,
598,
296,
2455,
706,
3587,
67,
4296,
67,
3865,
23213,
2187,
471,
598,
326,
3608,
87,
225,
17022,
358,
326,
783,
1867,
316,
1492,
326,
21936,
5353,
67,
869,
67,
12645,
71,
756,
353,
3832,
1086,
18,
3536,
309,
486,
365,
16186,
2630,
67,
2493,
30,
1002,
2068,
16,
315,
2135,
810,
17,
2493,
1269,
6,
468,
1696,
326,
810,
1247,
585,
4253,
273,
1696,
12,
2
] |
exts.append( Extension('errno', ['errnomodule.c']) ) | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 14eb1f6ecd9a9b76c82d1be0510a6778d47886d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/14eb1f6ecd9a9b76c82d1be0510a6778d47886d2/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
2941,
6134,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
6702,
67,
8291,
16,
1173,
13640,
19,
3729,
19,
6702,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
search_title = re.compile(r'\\title{([^}]*)}').search skipping = re.compile(r'(\\end{document}|\\tableofcontents)').search src = file(src) dest = file(dest, "w") iter_lines = iter(src.readlines()) | search_title = re.compile(r'\\title{([^{}]*(?:{[^}]*})*)}').search skipping = re.compile(r'(\\end{document}|\\tableofcontents|^%)').search src = file(src_path) dest = file(dest_path, "w") src_text = src.read() src.close() title = search_title(src_text) if title: title = re.sub(r'\\\w+({[^}]*})?', '', title.group(1)) iter_lines = iter(src_text.splitlines()) | def tex_postprocess(src, dest, want_header = False, process_line=noop): """ Postprocessing of the LaTeX file generated from ReST. Reads file src and saves to dest only the true content (without the document header and final) - so it is suitable to be used as part of the longer document. Returns the title of document If want_header is set, returns also the document header (as the list of lines). """ title = '' header = [] add_header_line = header.append global counter_no counter_no = counter_no + 1 counter_text = "listcnt%d" % counter_no search_title = re.compile(r'\\title{([^}]*)}').search skipping = re.compile(r'(\\end{document}|\\tableofcontents)').search src = file(src) dest = file(dest, "w") iter_lines = iter(src.readlines()) for l in iter_lines: l = process_line(l) if not l: continue if want_header: add_header_line(replace_rst_macros('', l)) m = search_title(l) if m: title = m.group(0) if l.startswith("\\maketitle"): break for l in iter_lines: l = process_line(l) if skipping(l): # To-Do minitoc instead of tableofcontents continue elif "\hypertarget{old-versions}" in l: break elif "listcnt0" in l: l = l.replace("listcnt0", counter_text) dest.write(l) if not title: raise Exception("Bueee, no title") return title, header | 6d2a084d7d87c7db6ac34a2a97ebcf661ae34075 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13107/6d2a084d7d87c7db6ac34a2a97ebcf661ae34075/mklatex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16573,
67,
2767,
2567,
12,
4816,
16,
1570,
16,
2545,
67,
3374,
273,
1083,
16,
1207,
67,
1369,
33,
2135,
556,
4672,
3536,
5616,
10632,
434,
326,
21072,
21575,
60,
585,
4374,
628,
868,
882,
18,
225,
29185,
585,
1705,
471,
14649,
358,
1570,
1338,
326,
638,
913,
261,
13299,
326,
1668,
1446,
471,
727,
13,
300,
1427,
518,
353,
10631,
358,
506,
1399,
487,
1087,
434,
326,
7144,
1668,
18,
225,
2860,
326,
2077,
434,
1668,
225,
971,
2545,
67,
3374,
353,
444,
16,
1135,
2546,
326,
1668,
1446,
261,
345,
326,
666,
434,
2362,
2934,
3536,
2077,
273,
875,
1446,
273,
5378,
527,
67,
3374,
67,
1369,
273,
1446,
18,
6923,
2552,
3895,
67,
2135,
3895,
67,
2135,
273,
3895,
67,
2135,
397,
404,
3895,
67,
955,
273,
315,
1098,
13085,
9,
72,
6,
738,
3895,
67,
2135,
225,
1623,
67,
2649,
273,
283,
18,
11100,
12,
86,
11,
1695,
2649,
95,
8178,
2916,
5772,
6503,
95,
5969,
97,
5772,
6792,
12437,
1713,
2934,
3072,
14195,
273,
283,
18,
11100,
12,
86,
11,
24480,
409,
95,
5457,
97,
26984,
2121,
792,
3980,
96,
66,
9,
2506,
2934,
3072,
225,
1705,
273,
585,
12,
4816,
67,
803,
13,
1570,
273,
585,
12,
10488,
67,
803,
16,
315,
91,
7923,
225,
1705,
67,
955,
273,
1705,
18,
896,
1435,
1705,
18,
4412,
1435,
225,
2077,
273,
1623,
67,
2649,
12,
4816,
67,
955,
13,
309,
2077,
30,
225,
2077,
273,
283,
18,
1717,
12,
86,
11,
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,
16573,
67,
2767,
2567,
12,
4816,
16,
1570,
16,
2545,
67,
3374,
273,
1083,
16,
1207,
67,
1369,
33,
2135,
556,
4672,
3536,
5616,
10632,
434,
326,
21072,
21575,
60,
585,
4374,
628,
868,
882,
18,
225,
29185,
585,
1705,
471,
14649,
358,
1570,
1338,
326,
638,
913,
261,
13299,
326,
1668,
1446,
471,
727,
13,
300,
1427,
518,
353,
10631,
358,
506,
1399,
487,
1087,
434,
326,
7144,
1668,
18,
225,
2860,
326,
2077,
434,
1668,
225,
971,
2545,
67,
3374,
353,
444,
16,
1135,
2546,
326,
1668,
1446,
261,
345,
326,
666,
434,
2362,
2934,
3536,
2077,
273,
875,
1446,
273,
5378,
527,
67,
3374,
67,
1369,
273,
1446,
18,
6923,
2552,
3895,
67,
2135,
3895,
2
] |
('CopyChannelURL', None, _(menubar.getLabel('CopyChannelURL')), menubar.getShortcut('CopyChannelURL').GTKString(), None, self.on_copy_channel_link_activate), ('MailChannel', None, _(menubar.getLabel('MailChannel')), menubar.getShortcut('MailChannel').GTKString(), None, self.on_mail_channel_link_activate), | ('CopyChannelURL', None, menubar.getLabel('CopyChannelURL'), menubar.getShortcut('CopyChannelURL').GTKString(), None, self.on_copy_channel_link_activate), ('MailChannel', None, menubar.getLabel('MailChannel'), menubar.getShortcut('MailChannel').GTKString(), None, self.on_mail_channel_link_activate), | def actionGroups (self): confirmMainThread() actionGroups = {} actionGroups["VideoSelected"] = gtk.ActionGroup("VideoSelected") actionGroups["VideosSelected"] = gtk.ActionGroup("VideosSelected") actionGroups["VideoPlaying"] = gtk.ActionGroup("VideoPlaying") actionGroups["VideoPlayable"] = gtk.ActionGroup("VideoPlayable") actionGroups["ChannelSelected"] = gtk.ActionGroup("ChannelSelected") actionGroups["ChannelsSelected"] = gtk.ActionGroup("ChannelsSelected") actionGroups["ChannelFolderSelected"] = gtk.ActionGroup("ChannelFolderSelected") actionGroups["ChannelLikeSelected"] = gtk.ActionGroup("ChannelLikeSelected") actionGroups["ChannelLikesSelected"] = gtk.ActionGroup("ChannelLikesSelected") actionGroups["PlaylistLikeSelected"] = gtk.ActionGroup("PlaylistLikeSelected") actionGroups["PlaylistLikesSelected"] = gtk.ActionGroup("PlaylistLikesSelected") actionGroups["Ubiquitous"] = gtk.ActionGroup("Ubiquitous") | ec8ebd404e647fa07d54e7cbddd5b1001a7d3243 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/ec8ebd404e647fa07d54e7cbddd5b1001a7d3243/callbackhandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
3621,
261,
2890,
4672,
6932,
6376,
3830,
1435,
1301,
3621,
273,
2618,
1301,
3621,
9614,
10083,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
10083,
7416,
7923,
1301,
3621,
9614,
58,
19871,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
58,
19871,
7416,
7923,
1301,
3621,
9614,
10083,
11765,
310,
11929,
273,
22718,
18,
1803,
1114,
2932,
10083,
11765,
310,
7923,
1301,
3621,
9614,
10083,
11765,
429,
11929,
273,
22718,
18,
1803,
1114,
2932,
10083,
11765,
429,
7923,
1301,
3621,
9614,
2909,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
2909,
7416,
7923,
1301,
3621,
9614,
10585,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
10585,
7416,
7923,
1301,
3621,
9614,
2909,
3899,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
2909,
3899,
7416,
7923,
1301,
3621,
9614,
2909,
8804,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
2909,
8804,
7416,
7923,
1301,
3621,
9614,
2909,
48,
25235,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
2909,
48,
25235,
7416,
7923,
1301,
3621,
9614,
30194,
8804,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
30194,
8804,
7416,
7923,
1301,
3621,
9614,
30194,
48,
25235,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
30194,
48,
25235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,
1301,
3621,
9614,
10083,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
10083,
7416,
7923,
1301,
3621,
9614,
58,
19871,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
58,
19871,
7416,
7923,
1301,
3621,
9614,
10083,
11765,
310,
11929,
273,
22718,
18,
1803,
1114,
2932,
10083,
11765,
310,
7923,
1301,
3621,
9614,
10083,
11765,
429,
11929,
273,
22718,
18,
1803,
1114,
2932,
10083,
11765,
429,
7923,
1301,
3621,
9614,
2909,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
2909,
7416,
7923,
1301,
3621,
9614,
10585,
7416,
11929,
273,
22718,
18,
1803,
1114,
2932,
10585,
7416,
7923,
1301,
3621,
9614,
2909,
3899,
7416,
11929,
273,
22718,
2
] |
self.valid_values = [ "netboot2/extra_files", ] | def __init__(self,spec,addlargs): self.valid_values = [ "netboot2/extra_files", ] self.required_values=[ "boot/kernel", "netboot2/builddate", "netboot2/busybox_config", "netboot2/packages" ] try: if addlargs.has_key("netboot2/packages"): if type(addlargs["netboot2/packages"]) == types.StringType: loopy=[addlargs["netboot2/packages"]] else: loopy=addlargs["netboot2/packages"] except: raise CatalystError,"configuration error in netboot2/packages." | 89642d36b36d08719a7e8ed319f03cd44f6cb86d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/89642d36b36d08719a7e8ed319f03cd44f6cb86d/netboot2_target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
365,
18,
4718,
67,
2372,
22850,
315,
7137,
19,
8111,
3113,
315,
2758,
7137,
22,
19,
70,
89,
330,
449,
340,
3113,
315,
2758,
7137,
22,
19,
9274,
93,
2147,
67,
1425,
3113,
315,
2758,
7137,
22,
19,
10308,
6,
308,
225,
775,
30,
309,
527,
80,
1968,
18,
5332,
67,
856,
2932,
2758,
7137,
22,
19,
10308,
6,
4672,
309,
618,
12,
1289,
80,
1968,
9614,
2758,
7137,
22,
19,
10308,
6,
5717,
422,
1953,
18,
780,
559,
30,
437,
1101,
22850,
1289,
80,
1968,
9614,
2758,
7137,
22,
19,
10308,
11929,
65,
469,
30,
437,
1101,
33,
1289,
80,
1968,
9614,
2758,
7137,
22,
19,
10308,
11929,
1335,
30,
1002,
385,
3145,
1094,
668,
10837,
7025,
555,
316,
2901,
7137,
22,
19,
10308,
1199,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
365,
18,
4718,
67,
2372,
22850,
315,
7137,
19,
8111,
3113,
315,
2758,
7137,
22,
19,
70,
89,
330,
449,
340,
3113,
315,
2758,
7137,
22,
19,
9274,
93,
2147,
67,
1425,
3113,
315,
2758,
7137,
22,
19,
10308,
6,
308,
225,
775,
30,
309,
527,
80,
1968,
18,
5332,
67,
856,
2932,
2758,
7137,
22,
19,
10308,
6,
4672,
309,
618,
12,
1289,
80,
1968,
9614,
2758,
7137,
22,
19,
10308,
6,
5717,
422,
1953,
18,
780,
559,
30,
437,
1101,
22850,
1289,
80,
1968,
9614,
2758,
7137,
22,
19,
10308,
11929,
65,
469,
30,
437,
1101,
33,
1289,
80,
1968,
9614,
2758,
7137,
22,
2
] |
|
cty.c_int, [cty.c_int, cty.POINTER(FL_PUP_ENTRY)], | cty.c_int, [cty.c_int, cty.POINTER(FL_PUP_ENTRY)], | def fl_resume_timer(ob): """ fl_resume_timer(ob) """ _fl_resume_timer(ob) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
25158,
67,
12542,
12,
947,
4672,
3536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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
25158,
67,
12542,
12,
947,
4672,
3536,
1183,
67,
25158,
67,
12542,
12,
947,
13,
3536,
225,
389,
2242,
67,
25158,
67,
12542,
12,
947,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" Manage a table while traversing. Maybe change to a mixin defining the visit/departs, but then class Table internal variables are in the Translator. Table style might be * standard: horizontal and vertical lines * booktabs (requires booktabs latex package): only horizontal lines * nolines, borderless : no lines | """Manage a table while traversing. Maybe change to a mixin defining the visit/departs, but then class Table internal variables are in the Translator. Table style might be :standard: horizontal and vertical lines :booktabs: only horizontal lines (requires "booktabs" LaTeX package) :nolines: (or borderless) no lines | def section(self, level): """ Return the section name at the given level for the specific document class. | c864668986577697fde0269ca08cae63c3e4ea04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/c864668986577697fde0269ca08cae63c3e4ea04/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2442,
12,
2890,
16,
1801,
4672,
3536,
2000,
326,
2442,
508,
622,
326,
864,
1801,
364,
326,
2923,
1668,
667,
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
] | [
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2442,
12,
2890,
16,
1801,
4672,
3536,
2000,
326,
2442,
508,
622,
326,
864,
1801,
364,
326,
2923,
1668,
667,
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
] |
print "Done building global RRT" | print "Done building global RRT", len(self.globalnodes) def init(self, view): """Builds the static obstacle map, global roadmap""" self.globaltree(view) | def init(self, view): """Builds the static obstacle map, global roadmap""" #RRT from goal nodes = [self.Node(self.goal, None, None)] for i in xrange(self.GLOBALNODES): newpos = Vec2d(random.randrange(640), random.randrange(480)) #TODO: remove hardcoded world size besttime = None bestnode = None for tonode in nodes: topos = tonode.position connectable = True for o in view.obstacles: if line_distance2(topos, newpos, o.p1, o.p2) <= self.radius: connectable = False break if connectable: dist = topos.distance_to(newpos) if tonode.parent is None: turndist = 0 #goal node else: turndist = abs(angle_diff((topos - newpos).angle(), tonode.angle)) time = dist/self.speed + turndist/self.turningspeed if bestnode is None or time < besttime: besttime = time bestnode = tonode if bestnode: topos = bestnode.position diff = topos - newpos angle = diff.angle() vdir = diff.norm() difflen = diff.length() div = 1 while difflen/div > self.GLOBALMINEDGE: div += 1 #subdivide the new edge for d in xrange(div): nodes.append(self.Node(newpos + vdir*d*difflen/div, angle, bestnode)) self.globalnodes = nodes print "Done building global RRT" | 0484f9f3f562dab318bf38b4cbce4815517c3c34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9407/0484f9f3f562dab318bf38b4cbce4815517c3c34/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
1476,
4672,
3536,
7746,
326,
760,
3768,
334,
16066,
852,
16,
2552,
721,
361,
1458,
8395,
468,
54,
12185,
628,
17683,
2199,
273,
306,
2890,
18,
907,
12,
2890,
18,
27354,
16,
599,
16,
599,
25887,
364,
277,
316,
12314,
12,
2890,
18,
20402,
8744,
55,
4672,
394,
917,
273,
12969,
22,
72,
12,
9188,
18,
7884,
3676,
12,
1105,
20,
3631,
2744,
18,
7884,
3676,
12,
24,
3672,
3719,
468,
6241,
30,
1206,
7877,
24808,
9117,
963,
3796,
957,
273,
599,
3796,
2159,
273,
599,
364,
268,
265,
390,
316,
2199,
30,
358,
917,
273,
268,
265,
390,
18,
3276,
3077,
429,
273,
1053,
364,
320,
316,
1476,
18,
947,
334,
69,
9558,
30,
309,
980,
67,
8969,
22,
12,
3669,
538,
16,
394,
917,
16,
320,
18,
84,
21,
16,
320,
18,
84,
22,
13,
1648,
365,
18,
11282,
30,
3077,
429,
273,
1083,
898,
225,
309,
3077,
429,
30,
2411,
273,
358,
917,
18,
8969,
67,
869,
12,
2704,
917,
13,
309,
268,
265,
390,
18,
2938,
353,
599,
30,
7005,
4413,
273,
374,
468,
27354,
756,
469,
30,
7005,
4413,
273,
2417,
12,
4341,
67,
5413,
12443,
3669,
538,
300,
394,
917,
2934,
4341,
9334,
268,
265,
390,
18,
4341,
3719,
813,
273,
2411,
19,
2890,
18,
13871,
397,
7005,
4413,
19,
2890,
18,
20922,
899,
5868,
225,
309,
3796,
2159,
353,
599,
578,
813,
411,
3796,
957,
30,
3796,
957,
273,
813,
3796,
2159,
273,
268,
265,
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,
1208,
12,
2890,
16,
1476,
4672,
3536,
7746,
326,
760,
3768,
334,
16066,
852,
16,
2552,
721,
361,
1458,
8395,
468,
54,
12185,
628,
17683,
2199,
273,
306,
2890,
18,
907,
12,
2890,
18,
27354,
16,
599,
16,
599,
25887,
364,
277,
316,
12314,
12,
2890,
18,
20402,
8744,
55,
4672,
394,
917,
273,
12969,
22,
72,
12,
9188,
18,
7884,
3676,
12,
1105,
20,
3631,
2744,
18,
7884,
3676,
12,
24,
3672,
3719,
468,
6241,
30,
1206,
7877,
24808,
9117,
963,
3796,
957,
273,
599,
3796,
2159,
273,
599,
364,
268,
265,
390,
316,
2199,
30,
358,
917,
273,
268,
265,
390,
18,
3276,
3077,
429,
273,
1053,
364,
320,
316,
1476,
18,
947,
334,
69,
9558,
2
] |
req.hdf[key] = val | def send_project_index(environ, start_response, parent_dir=None, env_paths=None): req = Request(environ, start_response) loadpaths = [pkg_resources.resource_filename('trac', 'templates')] if req.environ.get('trac.env_index_template'): tmpl_path, template = os.path.split(req.environ['trac.env_index_template']) loadpaths.insert(0, tmpl_path) if template.endswith('.cs'): req.hdf = HDFWrapper(loadpaths) # keep that for custom .cs templates else: template = 'index.html' data = {} if req.environ.get('trac.template_vars'): for pair in req.environ['trac.template_vars'].split(','): key, val = pair.split('=') req.hdf[key] = val data[key] = val if parent_dir and not env_paths: env_paths = dict([(filename, os.path.join(parent_dir, filename)) for filename in os.listdir(parent_dir)]) try: href = Href(req.base_path) projects = [] for env_name, env_path in get_environments(environ).items(): try: env = _open_environment(env_path, run_once=environ['wsgi.run_once']) proj = { 'name': env.project_name, 'description': env.project_description, 'href': href(env_name) } except Exception, e: proj = {'name': env_name, 'description': to_unicode(e)} projects.append(proj) projects.sort(lambda x, y: cmp(x['name'].lower(), y['name'].lower())) req.hdf['projects'] = projects data['projects'] = projects if template.endswith('.cs'): # assume Clearsilver req.display(template) markuptemplate = TemplateLoader(loadpaths).load(template) stream = markuptemplate.generate(**data) output = stream.render('xhtml', doctype=DocType.XHTML_STRICT) req.send(output, 'text/html') except RequestDone: pass | 6f3e923127813ae725586b9f66c6f9dde3543cb6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/6f3e923127813ae725586b9f66c6f9dde3543cb6/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
4406,
67,
1615,
12,
28684,
16,
787,
67,
2740,
16,
982,
67,
1214,
33,
7036,
16,
1550,
67,
4481,
33,
7036,
4672,
1111,
273,
1567,
12,
28684,
16,
787,
67,
2740,
13,
225,
1262,
4481,
273,
306,
10657,
67,
4683,
18,
3146,
67,
3459,
2668,
313,
1077,
2187,
296,
8502,
6134,
65,
309,
1111,
18,
28684,
18,
588,
2668,
313,
1077,
18,
3074,
67,
1615,
67,
3202,
11,
4672,
10720,
67,
803,
16,
1542,
273,
1140,
18,
803,
18,
4939,
12,
3658,
18,
28684,
3292,
313,
1077,
18,
3074,
67,
1615,
67,
3202,
19486,
1262,
4481,
18,
6387,
12,
20,
16,
10720,
67,
803,
13,
309,
1542,
18,
5839,
1918,
2668,
18,
2143,
11,
4672,
1111,
18,
26428,
273,
21673,
3611,
12,
945,
4481,
13,
468,
3455,
716,
364,
1679,
263,
2143,
5539,
469,
30,
1542,
273,
296,
1615,
18,
2620,
11,
225,
501,
273,
2618,
309,
1111,
18,
28684,
18,
588,
2668,
313,
1077,
18,
3202,
67,
4699,
11,
4672,
364,
3082,
316,
1111,
18,
28684,
3292,
313,
1077,
18,
3202,
67,
4699,
29489,
4939,
12,
17023,
4672,
498,
16,
1244,
273,
3082,
18,
4939,
2668,
2218,
13,
501,
63,
856,
65,
273,
1244,
225,
309,
982,
67,
1214,
471,
486,
1550,
67,
4481,
30,
1550,
67,
4481,
273,
2065,
3816,
12,
3459,
16,
1140,
18,
803,
18,
5701,
12,
2938,
67,
1214,
16,
1544,
3719,
364,
1544,
316,
1140,
18,
1098,
1214,
12,
2938,
67,
1214,
13,
5717,
225,
775,
30,
3897,
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,
1366,
67,
4406,
67,
1615,
12,
28684,
16,
787,
67,
2740,
16,
982,
67,
1214,
33,
7036,
16,
1550,
67,
4481,
33,
7036,
4672,
1111,
273,
1567,
12,
28684,
16,
787,
67,
2740,
13,
225,
1262,
4481,
273,
306,
10657,
67,
4683,
18,
3146,
67,
3459,
2668,
313,
1077,
2187,
296,
8502,
6134,
65,
309,
1111,
18,
28684,
18,
588,
2668,
313,
1077,
18,
3074,
67,
1615,
67,
3202,
11,
4672,
10720,
67,
803,
16,
1542,
273,
1140,
18,
803,
18,
4939,
12,
3658,
18,
28684,
3292,
313,
1077,
18,
3074,
67,
1615,
67,
3202,
19486,
1262,
4481,
18,
6387,
12,
20,
16,
10720,
67,
803,
13,
309,
1542,
18,
5839,
1918,
2668,
18,
2143,
11,
4672,
1111,
2
] |
|
(r'[a-zA-Z_][a-zA-Z0-9_.]*', Name.Namespace, ' | ('(' + cs_ident + r'|\.)+', Name.Namespace, ' | def _escape(st): return st.replace(u'\\', ur'\\').replace(u'-', ur'\-').\ replace(u'[', ur'\[').replace(u']', ur'\]') | 2d51ba32a8d1a3aa53b0d1357926a4121af20db4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6148/2d51ba32a8d1a3aa53b0d1357926a4121af20db4/dotnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6939,
12,
334,
4672,
327,
384,
18,
2079,
12,
89,
11,
1695,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6939,
12,
334,
4672,
327,
384,
18,
2079,
12,
89,
11,
1695,
2187,
8896,
11,
10471,
2934,
2079,
12,
89,
11,
17,
2187,
8896,
8314,
6627,
2934,
64,
1453,
12,
89,
11,
63,
2187,
8896,
8314,
3292,
2934,
2079,
12,
89,
3546,
2187,
8896,
8314,
3864,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
wxDefaultPosition, [400,-1]) | wx.DefaultPosition, [400,-1]) | def __init__(self, parent, ID, title, item, attrList, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE): | 274c70bb600f7f1c7386160a60fb689f2a35f11d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/274c70bb600f7f1c7386160a60fb689f2a35f11d/Util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1599,
16,
2077,
16,
761,
16,
1604,
682,
16,
963,
33,
27226,
18,
1868,
1225,
16,
949,
33,
27226,
18,
1868,
2555,
16,
2154,
33,
27226,
18,
5280,
67,
2565,
18683,
67,
15066,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1599,
16,
2077,
16,
761,
16,
1604,
682,
16,
963,
33,
27226,
18,
1868,
1225,
16,
949,
33,
27226,
18,
1868,
2555,
16,
2154,
33,
27226,
18,
5280,
67,
2565,
18683,
67,
15066,
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
] |
return cPickle.loads(string.join(strlist, '')) | return cPickle.loads(''.join(strlist)) | def _toobj(self, str): intlist = map(int, string.split(str, ',')) intlist = array.array('b', intlist) strlist = map(chr, intlist) return cPickle.loads(string.join(strlist, '')) | f2ee7819d5222cd29b59546baa9d57b085052f29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/f2ee7819d5222cd29b59546baa9d57b085052f29/Index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
2603,
12,
2890,
16,
609,
4672,
509,
1098,
273,
852,
12,
474,
16,
533,
18,
4939,
12,
701,
16,
3316,
3719,
509,
1098,
273,
526,
18,
1126,
2668,
70,
2187,
509,
1098,
13,
609,
1098,
273,
852,
12,
15182,
16,
509,
1098,
13,
327,
276,
17968,
298,
18,
17135,
12,
1080,
18,
5701,
12,
701,
1098,
16,
875,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
2187,
509,
1098,
13,
609,
1098,
273,
852,
12,
15182,
16,
509,
1098,
13,
327,
276,
17968,
298,
18,
17135,
12,
1080,
18,
5701,
12,
701,
1098,
16,
875,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def create_index(self, builder): | def create_index(self, builder, _fixre=re.compile(r'(.*) ([(][^()]*[)])')): | def create_index(self, builder): """Create the real index from the collected index entries.""" new = {} | eb6bc55cf6a2f60dae70f2c9c0dff83addc51cae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/eb6bc55cf6a2f60dae70f2c9c0dff83addc51cae/environment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1615,
12,
2890,
16,
2089,
16,
389,
904,
266,
33,
266,
18,
11100,
12,
86,
11,
14361,
23265,
12,
65,
5969,
1435,
5772,
63,
25887,
2506,
3719,
30,
3536,
1684,
326,
2863,
770,
628,
326,
12230,
770,
3222,
12123,
394,
273,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1615,
12,
2890,
16,
2089,
16,
389,
904,
266,
33,
266,
18,
11100,
12,
86,
11,
14361,
23265,
12,
65,
5969,
1435,
5772,
63,
25887,
2506,
3719,
30,
3536,
1684,
326,
2863,
770,
628,
326,
12230,
770,
3222,
12123,
394,
273,
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,
-100,
-100,
-100,
-100,
-100
] |
TABLE_REX = re.compile("</h3>\s*(<table>.*?</table>)", re.I) | TABLE_REX = re.compile("</h3>\s*(<table>.*?</table>)", re.I | re.S) | def fetch_url(inner, opener, url): fileobj = yield inner.thread(opener.open, url) list(inner) try: data = yield inner.thread(fileobj.read) finally: fileobj.close() list(inner) inner.finish(data) | 10d85217bc4f3922bace7c803641d586249b5bd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/10d85217bc4f3922bace7c803641d586249b5bd1/xmlfeed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
718,
12,
7872,
16,
20532,
16,
880,
4672,
17041,
273,
2824,
3443,
18,
5930,
12,
25098,
18,
3190,
16,
880,
13,
666,
12,
7872,
13,
775,
30,
501,
273,
2824,
3443,
18,
5930,
12,
768,
2603,
18,
896,
13,
3095,
30,
17041,
18,
4412,
1435,
666,
12,
7872,
13,
3443,
18,
13749,
12,
892,
13,
225,
2,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
718,
12,
7872,
16,
20532,
16,
880,
4672,
17041,
273,
2824,
3443,
18,
5930,
12,
25098,
18,
3190,
16,
880,
13,
666,
12,
7872,
13,
775,
30,
501,
273,
2824,
3443,
18,
5930,
12,
768,
2603,
18,
896,
13,
3095,
30,
17041,
18,
4412,
1435,
666,
12,
7872,
13,
3443,
18,
13749,
12,
892,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (fileutil.exists(enclosedFile)): | if fileutil.exists(enclosedFile): | def fix_incorrect_torrent_subdir(self): """Up to revision 6257, torrent downloads were incorrectly being created in an extra subdirectory. This method "migrates" those torrent downloads to the correct layout. | a28536b6501d5fda71e4176d25a5e36e9bb1ea11 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/a28536b6501d5fda71e4176d25a5e36e9bb1ea11/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
267,
6746,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
267,
6746,
67,
13039,
547,
67,
1717,
1214,
12,
2890,
4672,
3536,
1211,
358,
6350,
1666,
2947,
27,
16,
17351,
23011,
4591,
25621,
3832,
2522,
316,
392,
2870,
29869,
18,
225,
1220,
707,
315,
81,
2757,
815,
6,
5348,
17351,
23011,
358,
326,
3434,
3511,
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
] |
getattr(self, self.__testMethodName)() | getattr(self, self._testMethodName)() | def debug(self): """Run the test without collecting errors in a TestResult""" self.setUp() getattr(self, self.__testMethodName)() self.tearDown() | b66ad788444c7f79115e9d6749906c4511b216dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b66ad788444c7f79115e9d6749906c4511b216dd/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
2890,
4672,
3536,
1997,
326,
1842,
2887,
30160,
1334,
316,
279,
7766,
1253,
8395,
365,
18,
542,
1211,
1435,
3869,
12,
2890,
16,
365,
6315,
3813,
11666,
13,
1435,
365,
18,
736,
297,
4164,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1198,
12,
2890,
4672,
3536,
1997,
326,
1842,
2887,
30160,
1334,
316,
279,
7766,
1253,
8395,
365,
18,
542,
1211,
1435,
3869,
12,
2890,
16,
365,
6315,
3813,
11666,
13,
1435,
365,
18,
736,
297,
4164,
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
] |
self.clear_cb() | def render_cb(self, event=None): # Grab data. s = self.editbox.get("0.0", "end") lines = s.split('\n') control_points, knotvec, self.degree, self.dt = parse_data(lines) | 387d445524458665cb6c1b7ef0090619a9cb64b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13663/387d445524458665cb6c1b7ef0090619a9cb64b8/uitk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
7358,
12,
2890,
16,
871,
33,
7036,
4672,
468,
17150,
501,
18,
272,
273,
365,
18,
4619,
2147,
18,
588,
2932,
20,
18,
20,
3113,
315,
409,
7923,
2362,
273,
272,
18,
4939,
2668,
64,
82,
6134,
3325,
67,
4139,
16,
22278,
8799,
16,
365,
18,
21361,
16,
365,
18,
7510,
273,
1109,
67,
892,
12,
3548,
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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
4939,
2668,
64,
82,
6134,
3325,
67,
4139,
16,
22278,
8799,
16,
365,
18,
21361,
16,
365,
18,
7510,
273,
1109,
67,
892,
12,
3548,
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
] |
|
backtrack.append((prvpkg, OPER_INSTALL, REASON_REQUIRES, pkg, prvpkg, self.getState())) | bt.append((prvpkg, OPER_INSTALL, REASON_REQUIRES, pkg, prvpkg, self.getState())) | def run(self): loopctrl = {} | e9831a12235fcae7ab1b6189a4d00b2b6f1634cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/e9831a12235fcae7ab1b6189a4d00b2b6f1634cf/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2798,
16277,
273,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2798,
16277,
273,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 window in self.nextlist: | if self.nextlist and window in self.nextlist: | def del_window(self,window): if window.is_minimized(): self.minimized_windows_count -= 1 if window in self.nextlist: self.nextlist.remove(window) self.windows[window].del_button() self.update_state_request() if self.needs_attention: self.needs_attention_changed() if not self.windows and not self.launcher: self.hide_list() self.popup.destroy() self.button.destroy() self.winlist.destroy() self.dockbar.groups.remove(self.res_class) elif not self.windows and self.launcher and self.popup_showing: self.popup.resize(10,10) gobject.idle_add(self.show_list_request) | 7ad42b4c4c46ea962d2e02ddbf72fbe46513c574 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/7ad42b4c4c46ea962d2e02ddbf72fbe46513c574/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
5668,
12,
2890,
16,
5668,
4672,
309,
2742,
18,
291,
67,
1154,
381,
1235,
13332,
365,
18,
1154,
381,
1235,
67,
13226,
67,
1883,
3947,
404,
309,
365,
18,
4285,
1098,
471,
2742,
316,
365,
18,
4285,
1098,
30,
365,
18,
4285,
1098,
18,
4479,
12,
5668,
13,
365,
18,
13226,
63,
5668,
8009,
3771,
67,
5391,
1435,
365,
18,
2725,
67,
2019,
67,
2293,
1435,
309,
365,
18,
20600,
67,
17899,
30,
365,
18,
20600,
67,
17899,
67,
6703,
1435,
309,
486,
365,
18,
13226,
471,
486,
365,
18,
20738,
264,
30,
365,
18,
11248,
67,
1098,
1435,
365,
18,
16086,
18,
11662,
1435,
365,
18,
5391,
18,
11662,
1435,
365,
18,
8082,
1098,
18,
11662,
1435,
365,
18,
72,
975,
3215,
18,
4650,
18,
4479,
12,
2890,
18,
455,
67,
1106,
13,
1327,
486,
365,
18,
13226,
471,
365,
18,
20738,
264,
471,
365,
18,
16086,
67,
4500,
310,
30,
365,
18,
16086,
18,
15169,
12,
2163,
16,
2163,
13,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
4500,
67,
1098,
67,
2293,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
5668,
12,
2890,
16,
5668,
4672,
309,
2742,
18,
291,
67,
1154,
381,
1235,
13332,
365,
18,
1154,
381,
1235,
67,
13226,
67,
1883,
3947,
404,
309,
365,
18,
4285,
1098,
471,
2742,
316,
365,
18,
4285,
1098,
30,
365,
18,
4285,
1098,
18,
4479,
12,
5668,
13,
365,
18,
13226,
63,
5668,
8009,
3771,
67,
5391,
1435,
365,
18,
2725,
67,
2019,
67,
2293,
1435,
309,
365,
18,
20600,
67,
17899,
30,
365,
18,
20600,
67,
17899,
67,
6703,
1435,
309,
486,
365,
18,
13226,
471,
486,
365,
18,
20738,
264,
30,
365,
18,
11248,
67,
1098,
1435,
365,
18,
16086,
18,
11662,
1435,
365,
18,
5391,
18,
11662,
1435,
365,
18,
8082,
1098,
18,
2
] |
self.startChannel([[profile.uri, None, None]]) | self.startChannel([[profile.uri, encoding, chardata]]) | def newChannel(self, profile): log.debug('trying to start channel with %s' % profile.uri) self.startChannel([[profile.uri, None, None]]) | 8394f1cef9a64658cae76898a2b0b10fe4ca14ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11576/8394f1cef9a64658cae76898a2b0b10fe4ca14ba/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
2909,
12,
2890,
16,
3042,
4672,
613,
18,
4148,
2668,
698,
310,
358,
787,
1904,
598,
738,
87,
11,
738,
3042,
18,
1650,
13,
365,
18,
1937,
2909,
3816,
63,
5040,
18,
1650,
16,
599,
16,
599,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2909,
12,
2890,
16,
3042,
4672,
613,
18,
4148,
2668,
698,
310,
358,
787,
1904,
598,
738,
87,
11,
738,
3042,
18,
1650,
13,
365,
18,
1937,
2909,
3816,
63,
5040,
18,
1650,
16,
599,
16,
599,
65,
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
] |
Subsets and Splits