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
|
---|---|---|---|---|---|---|
f.grid(row=self.row, col=0, columnspan=2, sticky="we") | f.grid(row=self.row, column=0, columnspan=2, sticky="we") | def make_frame(self): f = Frame(self.top) f.grid(row=self.row, col=0, columnspan=2, sticky="we") self.row = self.row + 1 return f | 1447bedc4b43ef99799e4150714e4555ffe7168e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1447bedc4b43ef99799e4150714e4555ffe7168e/SearchDialogBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
3789,
12,
2890,
4672,
284,
273,
8058,
12,
2890,
18,
3669,
13,
284,
18,
5222,
12,
492,
33,
2890,
18,
492,
16,
1057,
33,
20,
16,
1057,
3969,
33,
22,
16,
21750,
1546,
1814,
7923,
365,
18,
492,
273,
365,
18,
492,
397,
404,
327,
284,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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1546,
1814,
7923,
365,
18,
492,
273,
365,
18,
492,
397,
404,
327,
284,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ftoken_db.get(token, None): | if ftoken_db.get(token): | def GET(self): global ftoken_db i = web.input(author_key=[], language=[], first_publish_year=[], publisher_facet=[], subject_facet=[], person_facet=[], place_facet=[], time_facet=[]) if i.get('ftokens', None) and ',' not in i.ftokens: token = i.ftokens if ftoken_db is None: ftoken_db = dbm.open('/olsystem/ftokens', 'r') if ftoken_db.get(token, None): raise web.seeother('/subjects/' + ftoken_db[token].decode('utf-8').lower().replace(' ', '_')) | 1fa11b06e5d6f25e789c3ba7e4898691478392d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/1fa11b06e5d6f25e789c3ba7e4898691478392d9/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
2552,
284,
2316,
67,
1966,
277,
273,
3311,
18,
2630,
12,
4161,
67,
856,
22850,
6487,
2653,
22850,
6487,
1122,
67,
6543,
67,
6874,
22850,
6487,
12855,
67,
21568,
22850,
6487,
3221,
67,
21568,
22850,
6487,
6175,
67,
21568,
22850,
6487,
3166,
67,
21568,
22850,
6487,
813,
67,
21568,
22850,
5717,
309,
277,
18,
588,
2668,
1222,
3573,
2187,
599,
13,
471,
3316,
486,
316,
277,
18,
1222,
3573,
30,
1147,
273,
277,
18,
1222,
3573,
309,
284,
2316,
67,
1966,
353,
599,
30,
284,
2316,
67,
1966,
273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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
2552,
284,
2316,
67,
1966,
277,
273,
3311,
18,
2630,
12,
4161,
67,
856,
22850,
6487,
2653,
22850,
6487,
1122,
67,
6543,
67,
6874,
22850,
6487,
12855,
67,
21568,
22850,
6487,
3221,
67,
21568,
22850,
6487,
6175,
67,
21568,
22850,
6487,
3166,
67,
21568,
22850,
6487,
813,
67,
21568,
22850,
5717,
309,
277,
18,
588,
2668,
1222,
3573,
2187,
599,
13,
471,
3316,
486,
316,
277,
18,
1222,
3573,
30,
1147,
273,
277,
18,
1222,
3573,
309,
284,
2316,
67,
1966,
353,
599,
30,
284,
2316,
67,
1966,
273,
1319,
81,
18,
3190,
2668,
19,
3528,
1108,
19,
1222,
3573,
2187,
296,
86,
6134,
309,
284,
2316,
67,
1966,
18,
588,
12,
2316,
4672,
2
] |
<tr><th class="header" align="left">Full traceback:</th></tr> | <tr><th class="header" align="left">%s</th></tr> | def pt_html(context=5): esc = cgi.escape l = ['<h1>Templating Error</h1>', '<p><b>%s</b>: %s</p>'%(esc(str(sys.exc_type)), esc(str(sys.exc_value))), '<p class="help">Debugging information follows</p>', '<ol>',] from roundup.cgi.PageTemplates.Expressions import TraversalError t = inspect.trace(context) t.reverse() for frame, file, lnum, func, lines, index in t: args, varargs, varkw, locals = inspect.getargvalues(frame) if locals.has_key('__traceback_info__'): ti = locals['__traceback_info__'] if isinstance(ti, TraversalError): s = [] for name, info in ti.path: s.append('<li>"%s" (%s)</li>'%(name, esc(repr(info)))) s = '\n'.join(s) l.append('<li>Looking for "%s", current path:<ol>%s</ol></li>'%( ti.name, s)) else: l.append('<li>In %s</li>'%esc(str(ti))) if locals.has_key('__traceback_supplement__'): ts = locals['__traceback_supplement__'] if len(ts) == 2: supp, context = ts s = 'A problem occurred in your template "%s".'%str(context.id) if context._v_errors: s = s + '<br>' + '<br>'.join( [esc(x) for x in context._v_errors]) l.append('<li>%s</li>'%s) elif len(ts) == 3: supp, context, info = ts l.append(''' | f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5818,
67,
2620,
12,
2472,
33,
25,
4672,
2904,
273,
276,
10052,
18,
6939,
328,
273,
10228,
32,
76,
21,
34,
26033,
1776,
1068,
1757,
76,
21,
1870,
16,
2368,
84,
4438,
70,
9822,
87,
1757,
70,
28593,
738,
87,
1757,
84,
1870,
17105,
742,
12,
701,
12,
9499,
18,
10075,
67,
723,
13,
3631,
2904,
12,
701,
12,
9499,
18,
10075,
67,
1132,
3719,
3631,
2368,
84,
667,
1546,
5201,
6441,
2829,
1998,
1779,
13040,
1757,
84,
1870,
16,
2368,
355,
1870,
16,
65,
628,
3643,
416,
18,
19062,
18,
1964,
8218,
18,
8927,
1930,
14677,
287,
668,
268,
273,
5334,
18,
5129,
12,
2472,
13,
268,
18,
9845,
1435,
364,
2623,
16,
585,
16,
328,
2107,
16,
1326,
16,
2362,
16,
770,
316,
268,
30,
833,
16,
19732,
16,
569,
9987,
16,
8985,
273,
5334,
18,
588,
3175,
2372,
12,
3789,
13,
309,
8985,
18,
5332,
67,
856,
2668,
972,
21696,
67,
1376,
7250,
4672,
11374,
273,
8985,
3292,
972,
21696,
67,
1376,
972,
3546,
309,
1549,
12,
9096,
16,
14677,
287,
668,
4672,
272,
273,
5378,
364,
508,
16,
1123,
316,
11374,
18,
803,
30,
272,
18,
6923,
2668,
32,
549,
2984,
9,
87,
6,
6142,
87,
13,
1757,
549,
1870,
17105,
529,
16,
2904,
12,
12715,
12,
1376,
3719,
3719,
272,
273,
2337,
82,
10332,
5701,
12,
87,
13,
328,
18,
6923,
2668,
32,
549,
34,
9794,
310,
364,
2213,
87,
3113,
783,
589,
22292,
355,
9822,
87,
1757,
355,
4695,
549,
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,
5818,
67,
2620,
12,
2472,
33,
25,
4672,
2904,
273,
276,
10052,
18,
6939,
328,
273,
10228,
32,
76,
21,
34,
26033,
1776,
1068,
1757,
76,
21,
1870,
16,
2368,
84,
4438,
70,
9822,
87,
1757,
70,
28593,
738,
87,
1757,
84,
1870,
17105,
742,
12,
701,
12,
9499,
18,
10075,
67,
723,
13,
3631,
2904,
12,
701,
12,
9499,
18,
10075,
67,
1132,
3719,
3631,
2368,
84,
667,
1546,
5201,
6441,
2829,
1998,
1779,
13040,
1757,
84,
1870,
16,
2368,
355,
1870,
16,
65,
628,
3643,
416,
18,
19062,
18,
1964,
8218,
18,
8927,
1930,
14677,
287,
668,
268,
273,
5334,
18,
5129,
12,
2472,
13,
268,
18,
9845,
1435,
364,
2623,
16,
585,
16,
328,
2107,
2
] |
unless = self.failUnless | require = self.assert_ | def checkTimeoutProvokingConflicts(self): eq = self.assertEqual raises = self.assertRaises unless = self.failUnless self._storage = storage = self.openClientStorage() # Assert that the zeo cache is empty unless(not list(storage._cache.contents())) # Create the object oid = storage.new_oid() obj = MinPO(7) # We need to successfully commit an object now so we have something to # conflict about. t = Transaction() storage.tpc_begin(t) revid1a = storage.store(oid, ZERO, zodb_pickle(obj), '', t) revid1b = storage.tpc_vote(t) revid1 = handle_serials(oid, revid1a, revid1b) storage.tpc_finish(t) # Now do a store, sleeping before the finish so as to cause a timeout obj.value = 8 t = Transaction() storage.tpc_begin(t) revid2a = storage.store(oid, revid1, zodb_pickle(obj), '', t) revid2b = storage.tpc_vote(t) revid2 = handle_serials(oid, revid2a, revid2b) # Now sleep long enough for the storage to time out time.sleep(3) storage.sync() unless(not storage.is_connected()) storage._wait() unless(storage.is_connected()) # We expect finish to fail raises(ClientDisconnected, storage.tpc_finish, t) # Now we think we've committed the second transaction, but we really # haven't. A third one should produce a POSKeyError on the server, # which manifests as a ConflictError on the client. obj.value = 9 t = Transaction() storage.tpc_begin(t) storage.store(oid, revid2, zodb_pickle(obj), '', t) raises(ConflictError, storage.tpc_vote, t) # Even aborting won't help storage.tpc_abort(t) storage.tpc_finish(t) # Try again obj.value = 10 t = Transaction() storage.tpc_begin(t) storage.store(oid, revid2, zodb_pickle(obj), '', t) # Even aborting won't help raises(ConflictError, storage.tpc_vote, t) # Abort this one and try a transaction that should succeed storage.tpc_abort(t) storage.tpc_finish(t) # Now do a store, sleeping before the finish so as to cause a timeout obj.value = 11 t = Transaction() storage.tpc_begin(t) revid2a = storage.store(oid, revid1, zodb_pickle(obj), '', t) revid2b = storage.tpc_vote(t) revid2 = handle_serials(oid, revid2a, revid2b) storage.tpc_finish(t) # Now load the object and verify that it has a value of 11 data, revid = storage.load(oid, '') eq(zodb_unpickle(data), MinPO(11)) eq(revid, revid2) | 4659d8eb20fb53ceb449f9082c96342b24dfed27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/4659d8eb20fb53ceb449f9082c96342b24dfed27/ConnectionTests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
2583,
273,
365,
18,
11231,
67,
365,
6315,
5697,
273,
2502,
273,
365,
18,
3190,
1227,
3245,
1435,
468,
5452,
716,
326,
998,
4361,
1247,
353,
1008,
3308,
12,
902,
666,
12,
5697,
6315,
2493,
18,
3980,
1435,
3719,
468,
1788,
326,
733,
7764,
273,
2502,
18,
2704,
67,
839,
1435,
1081,
273,
5444,
2419,
12,
27,
13,
468,
1660,
1608,
358,
4985,
3294,
392,
733,
2037,
1427,
732,
1240,
5943,
358,
468,
7546,
2973,
18,
268,
273,
5947,
1435,
2502,
18,
88,
2436,
67,
10086,
12,
88,
13,
283,
1246,
21,
69,
273,
2502,
18,
2233,
12,
839,
16,
18449,
16,
998,
10605,
67,
20847,
12,
2603,
3631,
10226,
268,
13,
283,
1246,
21,
70,
273,
2502,
18,
88,
2436,
67,
25911,
12,
88,
13,
283,
1246,
21,
273,
1640,
67,
8818,
87,
12,
839,
16,
283,
1246,
21,
69,
16,
283,
1246,
21,
70,
13,
2502,
18,
88,
2436,
67,
13749,
12,
88,
13,
468,
4494,
741,
279,
1707,
16,
5329,
310,
1865,
326,
4076,
1427,
487,
358,
4620,
279,
2021,
1081,
18,
1132,
273,
1725,
268,
273,
5947,
1435,
2502,
18,
88,
2436,
67,
10086,
12,
88,
13,
283,
1246,
22,
69,
273,
2502,
18,
2233,
12,
839,
16,
283,
1246,
21,
16,
998,
10605,
67,
20847,
12,
2603,
3631,
10226,
268,
13,
283,
1246,
22,
70,
273,
2502,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
2583,
273,
365,
18,
11231,
67,
365,
6315,
5697,
273,
2502,
273,
365,
18,
3190,
1227,
3245,
1435,
468,
5452,
716,
326,
998,
4361,
1247,
353,
1008,
3308,
12,
902,
666,
12,
5697,
6315,
2493,
18,
3980,
1435,
3719,
468,
1788,
326,
733,
7764,
273,
2502,
18,
2704,
67,
839,
1435,
1081,
273,
5444,
2419,
12,
27,
13,
468,
1660,
1608,
358,
4985,
3294,
392,
733,
2037,
1427,
732,
1240,
5943,
358,
468,
7546,
2973,
18,
268,
273,
5947,
1435,
2502,
18,
88,
2436,
67,
10086,
12,
88,
13,
283,
1246,
21,
69,
273,
2502,
2
] |
diminutive=part.replace(',','').strip() | diminutive=part.replace(',','').replace("'",'').strip() print 'Diminutive: ',diminutive | def parseWikiPage(ofn,wikilang,pagetopic): '''This function will parse the content of a Wiktionary page and read it into our object structure''' apage = WiktionaryPage(wikilang,pagetopic) templist = [] context = {} content = open(ofn).readlines() splitcontent=[] for line in content: # Let's get rid of line breaks and extraneous white space line=line.replace('\n','').strip() # Let's start by looking for general stuff, that provides information which is # interesting to store at the page level if line.lower().find('{wikipedia}')!=-1: apage.addLink('wikipedia') continue if line.find('[[Category:')!=-1: category=line.split(':')[1].replace(']','') apage.addCategory(category) continue if line.find('|')==-1: bracketspos=line.find('[[') colonpos=line.find(':') if bracketspos!=-1 and colonpos!=-1 and bracketspos < colonpos: # This seems to be an interwikilink # If there is a pipe in it, it's not a simple interwikilink linkparts=line.replace(']','').replace('[','').split(':') lang=linkparts[0] linkto=linkparts[1] if len(lang)>1 and len(lang)<4: apage.addLink(lang+':'+linkto) continue # nothing to do on empty lines if len(line) <2: continue | 1b1b4569b6745a15f68c338b63248732b0b8fe0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1b1b4569b6745a15f68c338b63248732b0b8fe0d/wiktionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
25438,
1964,
12,
792,
82,
16,
11999,
330,
539,
16,
9095,
278,
28237,
4672,
9163,
2503,
445,
903,
1109,
326,
913,
434,
279,
678,
1766,
24252,
814,
1363,
471,
855,
518,
1368,
3134,
733,
3695,
26418,
513,
410,
273,
678,
1766,
24252,
814,
1964,
12,
11999,
330,
539,
16,
9095,
278,
28237,
13,
225,
13988,
376,
273,
5378,
819,
273,
2618,
913,
273,
1696,
12,
792,
82,
2934,
896,
3548,
1435,
225,
1416,
1745,
33,
8526,
225,
364,
980,
316,
913,
30,
468,
10559,
1807,
336,
10911,
434,
980,
16217,
471,
7582,
15522,
9578,
3476,
980,
33,
1369,
18,
2079,
2668,
64,
82,
2187,
6309,
2934,
6406,
1435,
468,
10559,
1807,
787,
635,
7849,
364,
7470,
10769,
16,
716,
8121,
1779,
1492,
353,
468,
26122,
358,
1707,
622,
326,
1363,
1801,
309,
980,
18,
8167,
7675,
4720,
2668,
95,
11999,
13744,
1713,
13,
5,
29711,
21,
30,
513,
410,
18,
1289,
2098,
2668,
11999,
13744,
6134,
1324,
309,
980,
18,
4720,
2668,
31128,
4457,
2497,
13,
5,
29711,
21,
30,
3150,
33,
1369,
18,
4939,
2668,
2497,
25146,
21,
8009,
2079,
2668,
65,
17023,
6134,
513,
410,
18,
1289,
4457,
12,
4743,
13,
1324,
309,
980,
18,
4720,
2668,
96,
6134,
631,
17,
21,
30,
15597,
917,
33,
1369,
18,
4720,
2668,
63,
3292,
13,
13336,
917,
33,
1369,
18,
4720,
2668,
2497,
13,
309,
15597,
917,
5,
29711,
21,
471,
13336,
917,
5,
29711,
21,
471,
15597,
917,
411,
13336,
917,
30,
468,
1220,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
25438,
1964,
12,
792,
82,
16,
11999,
330,
539,
16,
9095,
278,
28237,
4672,
9163,
2503,
445,
903,
1109,
326,
913,
434,
279,
678,
1766,
24252,
814,
1363,
471,
855,
518,
1368,
3134,
733,
3695,
26418,
513,
410,
273,
678,
1766,
24252,
814,
1964,
12,
11999,
330,
539,
16,
9095,
278,
28237,
13,
225,
13988,
376,
273,
5378,
819,
273,
2618,
913,
273,
1696,
12,
792,
82,
2934,
896,
3548,
1435,
225,
1416,
1745,
33,
8526,
225,
364,
980,
316,
913,
30,
468,
10559,
1807,
336,
10911,
434,
980,
16217,
471,
7582,
15522,
9578,
3476,
980,
33,
1369,
18,
2079,
2668,
64,
82,
2187,
6309,
2934,
6406,
1435,
468,
10559,
1807,
787,
635,
7849,
364,
7470,
10769,
2
] |
childUpdate=True) | childUpdate=True, connection=dbconn) | def fetchChildren(self): """Prefetch childrens' data | 1ee59885eef6a956b50aafe397aa7c7fd9291ba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8798/1ee59885eef6a956b50aafe397aa7c7fd9291ba7/iteration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
s = self._eval_line('%s'%var) return s | s = self._eval_line(str(var)) i = s.rfind('Type:') return s[:i].rstrip() | def get(self, var): """ Get the string value of the Axiom variable var. """ s = self._eval_line('%s'%var) return s | 6d26ee404de5ca55a472c0aa9236698863e1dee9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/6d26ee404de5ca55a472c0aa9236698863e1dee9/axiom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
569,
4672,
3536,
968,
326,
533,
460,
434,
326,
22516,
14642,
2190,
569,
18,
3536,
272,
273,
365,
6315,
8622,
67,
1369,
29909,
87,
11,
9,
1401,
13,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
569,
4672,
3536,
968,
326,
533,
460,
434,
326,
22516,
14642,
2190,
569,
18,
3536,
272,
273,
365,
6315,
8622,
67,
1369,
29909,
87,
11,
9,
1401,
13,
327,
272,
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
] |
image_geolocalization_path = os.path.join(self.plugin_path, "icons/hicolor/24x24/geolocalization.png") pixbuf_geolocalization = gtk.gdk.pixbuf_new_from_file_at_size(image_geolocalization_path, 24, 24) | def __init__(self): self.geoclue = Geoclue.DiscoverLocation() self.geoclue.connect(self.location_changed) self.geoclue.init() self.location = self.geoclue.get_location_info() self.location_filter = [] self.plugin_path = os.path.dirname(os.path.abspath(__file__)) self.glade_file = os.path.join(self.plugin_path, "geolocalized.glade") # the preference menu for the plugin self.menu_item = gtk.MenuItem("Geolocalized-tasks Preferences") # toolbar button for the new Location view # create the pixbuf with the icon and it's size. # 24,24 is the TaskEditor's toolbar icon size image_geolocalization_path = os.path.join(self.plugin_path, "icons/hicolor/24x24/geolocalization.png") pixbuf_geolocalization = gtk.gdk.pixbuf_new_from_file_at_size(image_geolocalization_path, 24, 24) image_assign_location_path = os.path.join(self.plugin_path, "icons/hicolor/16x16/assign-location.png") pixbug_assign_location = gtk.gdk.pixbuf_new_from_file_at_size(image_assign_location_path, 16, 16) # create the image and associate the pixbuf self.icon_geolocalization = gtk.Image() self.icon_geolocalization.set_from_pixbuf(pixbuf_geolocalization) self.icon_geolocalization.show() image_assign_location = gtk.Image() image_assign_location.set_from_pixbuf(pixbug_assign_location) image_assign_location.show() # the menu intem for the tag context self.context_item = gtk.ImageMenuItem("Assign a location to this tag") self.context_item.set_image(image_assign_location) # TODO: add a short cut to the menu # toolbar button for the location_view self.btn_location_view = gtk.ToggleToolButton() self.btn_location_view.set_icon_widget(self.icon_geolocalization) self.btn_location_view.set_label("Location View") self.PROXIMITY_FACTOR = 5 # 5 km self.LOCATION_ACCURACY = 3 # Locality self.LOCATION_DETERMINATION_METHOD = ["network", "gps", "cellphone"] #for provider in self.geoclue.get_available_providers(): # if provider['position'] and (provider['provider'] != "Example Provider" and provider['provider'] != "Plazes"): # self.LOCATION_DETERMINATION_METHOD.append(provider["provider"]) | 65b1d29adf1985ce8ef776ee0df81e368b232e5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/65b1d29adf1985ce8ef776ee0df81e368b232e5b/geolocalized_tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
908,
504,
80,
344,
273,
15391,
504,
80,
344,
18,
26082,
2735,
1435,
365,
18,
908,
504,
80,
344,
18,
3612,
12,
2890,
18,
3562,
67,
6703,
13,
365,
18,
908,
504,
80,
344,
18,
2738,
1435,
365,
18,
3562,
273,
365,
18,
908,
504,
80,
344,
18,
588,
67,
3562,
67,
1376,
1435,
365,
18,
3562,
67,
2188,
273,
5378,
225,
365,
18,
4094,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
972,
768,
972,
3719,
365,
18,
7043,
2486,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4094,
67,
803,
16,
315,
908,
355,
23735,
1235,
18,
7043,
2486,
7923,
225,
468,
326,
11555,
3824,
364,
326,
1909,
365,
18,
5414,
67,
1726,
273,
22718,
18,
12958,
2932,
18809,
355,
23735,
1235,
17,
9416,
28310,
7923,
225,
468,
12748,
3568,
364,
326,
394,
7050,
1476,
468,
752,
326,
11871,
4385,
598,
326,
4126,
471,
518,
1807,
963,
18,
468,
4248,
16,
3247,
353,
326,
3837,
6946,
1807,
12748,
4126,
963,
1316,
67,
6145,
67,
3562,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4094,
67,
803,
16,
315,
14516,
19,
76,
12463,
280,
19,
2313,
92,
2313,
19,
6145,
17,
3562,
18,
6446,
7923,
11871,
925,
67,
6145,
67,
3562,
273,
22718,
18,
75,
2883,
18,
14861,
4385,
67,
2704,
67,
2080,
67,
768,
67,
270,
67,
1467,
12,
2730,
67,
6145,
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,
4672,
365,
18,
908,
504,
80,
344,
273,
15391,
504,
80,
344,
18,
26082,
2735,
1435,
365,
18,
908,
504,
80,
344,
18,
3612,
12,
2890,
18,
3562,
67,
6703,
13,
365,
18,
908,
504,
80,
344,
18,
2738,
1435,
365,
18,
3562,
273,
365,
18,
908,
504,
80,
344,
18,
588,
67,
3562,
67,
1376,
1435,
365,
18,
3562,
67,
2188,
273,
5378,
225,
365,
18,
4094,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
972,
768,
972,
3719,
365,
18,
7043,
2486,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
4094,
67,
803,
16,
315,
908,
355,
23735,
1235,
18,
2
] |
|
socket.SO_REUSEADDR) | 1 | reuse_constant) | 1 | def set_reuse_addr(self): # try to re-use a server port if possible try: self.socket.setsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR, self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1 ) except socket.error: pass | 58c817e89bdae5b91bcce34b184ca4475ce1851f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/58c817e89bdae5b91bcce34b184ca4475ce1851f/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
266,
1202,
67,
4793,
12,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
365,
18,
7814,
18,
4424,
27844,
12,
2987,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
862,
8001,
14142,
16,
365,
18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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
266,
1202,
67,
4793,
12,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
365,
18,
7814,
18,
4424,
27844,
12,
2987,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
862,
8001,
14142,
16,
365,
18,
7814,
18,
14665,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
11827,
67,
14384,
13,
571,
404,
262,
1335,
2987,
18,
1636,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.read(None, ">4H", "Reserverd") | self.read("reserved", ">4H", "Reserverd") | def __init__(self, stream, parent): Filter.__init__(self, "msdos_header", "MS-Dos executable header", stream, parent) self.read("header", "2s", "File header") assert self.header == "MZ" self.read("filesize_mod_512", ">H", "Filesize mod 512") self.read("filesize_div_512", ">H", "Filesize div 512") self.filesize = self.filesize_div_512 * 512 + self.filesize_mod_512 self.read("reloc_entries", ">H", "Number of relocation entries") self.read("code_offset", "<H", "Offset to the code in the file (div 16)") self.code_offset = self.code_offset * 16 self.read("needed_memory", ">H", "Memory needed to run (div 16)") self.needed_memory = self.needed_memory * 16 self.read("max_memory", ">H", "Maximum memory needed to run (div 16)") self.max_memory = self.max_memory * 16 self.read("init_ss_sp", ">L", "Initial value of SP:SS registers.") self.read("checksum", ">H", "Checksum") self.read("init_cs_ip", ">L", "Initial value of CS:IP registers.") self.read("reloc_offset", "<H", "Offset in file to relocation table.") self.read("overlay_number", ">H", "Overlay number") self.read(None, ">4H", "Reserverd") self.read("oem_id", ">H", "OEM id") self.read("oem_info", ">H", "OEM info") self.read(None, "!10H", "Reserved") self.read("pe_offset", "<L", "Offset to PE header") | 7edbe76831badb20cc540e17002d28b285ceae63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2280/7edbe76831badb20cc540e17002d28b285ceae63/exe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
16,
982,
4672,
4008,
16186,
2738,
972,
12,
2890,
16,
315,
959,
19219,
67,
3374,
3113,
315,
3537,
17,
40,
538,
9070,
1446,
3113,
1407,
16,
982,
13,
365,
18,
896,
2932,
3374,
3113,
315,
22,
87,
3113,
315,
812,
1446,
7923,
1815,
365,
18,
3374,
422,
315,
49,
62,
6,
365,
18,
896,
2932,
25511,
67,
1711,
67,
13757,
3113,
14402,
44,
3113,
315,
2697,
554,
681,
13908,
7923,
365,
18,
896,
2932,
25511,
67,
2892,
67,
13757,
3113,
14402,
44,
3113,
315,
2697,
554,
3739,
13908,
7923,
365,
18,
25511,
273,
365,
18,
25511,
67,
2892,
67,
13757,
380,
13908,
397,
365,
18,
25511,
67,
1711,
67,
13757,
365,
18,
896,
2932,
266,
1829,
67,
8219,
3113,
14402,
44,
3113,
315,
1854,
434,
283,
3562,
3222,
7923,
365,
18,
896,
2932,
710,
67,
3348,
3113,
3532,
44,
3113,
315,
2335,
358,
326,
981,
316,
326,
585,
261,
2892,
2872,
2225,
13,
365,
18,
710,
67,
3348,
273,
365,
18,
710,
67,
3348,
380,
2872,
365,
18,
896,
2932,
17471,
67,
7858,
3113,
14402,
44,
3113,
315,
6031,
3577,
358,
1086,
261,
2892,
2872,
2225,
13,
365,
18,
17471,
67,
7858,
273,
365,
18,
17471,
67,
7858,
380,
2872,
365,
18,
896,
2932,
1896,
67,
7858,
3113,
14402,
44,
3113,
315,
13528,
3778,
3577,
358,
1086,
261,
2892,
2872,
2225,
13,
365,
18,
1896,
67,
7858,
273,
365,
18,
1896,
67,
7858,
380,
2872,
365,
18,
896,
2932,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
16,
982,
4672,
4008,
16186,
2738,
972,
12,
2890,
16,
315,
959,
19219,
67,
3374,
3113,
315,
3537,
17,
40,
538,
9070,
1446,
3113,
1407,
16,
982,
13,
365,
18,
896,
2932,
3374,
3113,
315,
22,
87,
3113,
315,
812,
1446,
7923,
1815,
365,
18,
3374,
422,
315,
49,
62,
6,
365,
18,
896,
2932,
25511,
67,
1711,
67,
13757,
3113,
14402,
44,
3113,
315,
2697,
554,
681,
13908,
7923,
365,
18,
896,
2932,
25511,
67,
2892,
67,
13757,
3113,
14402,
44,
3113,
315,
2697,
554,
3739,
13908,
7923,
365,
18,
25511,
273,
365,
18,
25511,
67,
2892,
67,
13757,
380,
13908,
397,
365,
18,
25511,
67,
1711,
67,
13757,
365,
2
] |
logging.info('Executing test %s: ' % test) (retcode, output) = proc.RunCommandFull(test, collect_output=True) | logging.info('Executing test %s: ' % test_command) (retcode, output) = proc.RunCommandFull(test_command, collect_output=True) | def RunTest(self, test): """Run tests and collect the .coverage file | 1581ad170e9c9d3a92c66b377c35a5abc747dc4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/1581ad170e9c9d3a92c66b377c35a5abc747dc4c/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
4709,
12,
2890,
16,
1842,
4672,
3536,
1997,
7434,
471,
3274,
326,
263,
16356,
585,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
4709,
12,
2890,
16,
1842,
4672,
3536,
1997,
7434,
471,
3274,
326,
263,
16356,
585,
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
] |
def AddViewParcelMenu(self): """ Override to customize your parcel menu. """ ignoreErrors = wxLogNull () viewerParcelMenu = self.resources.LoadMenu ('ViewerParcelMenu') del ignoreErrors if (viewerParcelMenu != None): mainFrameId = id(app.model.mainFrame) if not app.association.has_key(mainFrameId): mainFrame = app.association[mainFrameId] menuBar = mainFrame.GetMenuBar () index = menuBar.FindMenu (_('View')) assert (index != wxNOT_FOUND) menuBar.Insert (index + 1, viewerParcelMenu, self.GetMenuName()) | else: if not noParcelMenu: oldMenu = menuBar.Remove (menuIndex) del oldMenu | def ReplaceViewParcelMenu(self): """ Override to customize your parcel menu. """ ignoreErrors = wxLogNull () viewerParcelMenu = self.resources.LoadMenu ('ViewerParcelMenu') del ignoreErrors if (viewerParcelMenu != None): mainFrameId = id(app.model.mainFrame) if app.association.has_key(mainFrameId): mainFrame = app.association[mainFrameId] menuBar = mainFrame.GetMenuBar () index = menuBar.FindMenu (_('View')) assert (index != wxNOT_FOUND) if menuBar.FindMenu(_('Help')) == (index + 1): menuBar.Insert (index + 1, viewerParcelMenu, self.GetMenuName()) else: oldMenu = menuBar.Replace (index + 1, viewerParcelMenu, self.GetMenuName()) del oldMenu | 8c2b3e4a108b1722cb9c786dfdb37c0eaa4e9c4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8c2b3e4a108b1722cb9c786dfdb37c0eaa4e9c4b/ViewerParcel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6910,
1767,
1553,
2183,
4599,
12,
2890,
4672,
3536,
1439,
358,
20236,
3433,
779,
2183,
3824,
18,
3536,
2305,
4229,
273,
7075,
1343,
2041,
1832,
14157,
1553,
2183,
4599,
273,
365,
18,
4683,
18,
2563,
4599,
7707,
18415,
1553,
2183,
4599,
6134,
1464,
2305,
4229,
309,
261,
25256,
1553,
2183,
4599,
480,
599,
4672,
2774,
3219,
548,
273,
612,
12,
2910,
18,
2284,
18,
5254,
3219,
13,
309,
595,
18,
19358,
18,
5332,
67,
856,
12,
5254,
3219,
548,
4672,
2774,
3219,
273,
595,
18,
19358,
63,
5254,
3219,
548,
65,
3824,
5190,
273,
2774,
3219,
18,
967,
4599,
5190,
1832,
770,
273,
3824,
5190,
18,
3125,
4599,
261,
67,
2668,
1767,
26112,
1815,
261,
1615,
480,
7075,
4400,
67,
9294,
13,
309,
3824,
5190,
18,
3125,
4599,
24899,
2668,
6696,
26112,
422,
261,
1615,
397,
404,
4672,
3824,
5190,
18,
4600,
261,
1615,
397,
404,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6910,
1767,
1553,
2183,
4599,
12,
2890,
4672,
3536,
1439,
358,
20236,
3433,
779,
2183,
3824,
18,
3536,
2305,
4229,
273,
7075,
1343,
2041,
1832,
14157,
1553,
2183,
4599,
273,
365,
18,
4683,
18,
2563,
4599,
7707,
18415,
1553,
2183,
4599,
6134,
1464,
2305,
4229,
309,
261,
25256,
1553,
2183,
4599,
480,
599,
4672,
2774,
3219,
548,
273,
612,
12,
2910,
18,
2284,
18,
5254,
3219,
13,
309,
595,
18,
19358,
18,
5332,
67,
856,
12,
5254,
3219,
548,
4672,
2774,
3219,
273,
595,
18,
19358,
63,
5254,
3219,
548,
65,
3824,
5190,
273,
2774,
3219,
18,
967,
4599,
5190,
1832,
770,
273,
3824,
5190,
18,
3125,
4599,
261,
67,
2668,
1767,
26112,
1815,
261,
1615,
480,
7075,
2
] |
str(error)) | error.encode('ascii', 'replace')) | def _updateErrback(self, error): if not self.ufeed.id_exists(): return logging.info("WARNING: error in Feed.update for %s -- %s", self.ufeed, str(error)) self.scheduleUpdateEvents(-1) self.updating = False self.ufeed.signal_change(needs_save=False) | 8abb93074dba6f07f74af73c5ed736821d0097eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/8abb93074dba6f07f74af73c5ed736821d0097eb/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
2524,
823,
12,
2890,
16,
555,
4672,
309,
486,
365,
18,
696,
73,
329,
18,
350,
67,
1808,
13332,
327,
2907,
18,
1376,
2932,
9511,
30,
555,
316,
14013,
18,
2725,
364,
738,
87,
1493,
738,
87,
3113,
365,
18,
696,
73,
329,
16,
555,
18,
3015,
2668,
9184,
2187,
296,
2079,
26112,
365,
18,
10676,
1891,
3783,
19236,
21,
13,
365,
18,
5533,
1776,
273,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
2524,
823,
12,
2890,
16,
555,
4672,
309,
486,
365,
18,
696,
73,
329,
18,
350,
67,
1808,
13332,
327,
2907,
18,
1376,
2932,
9511,
30,
555,
316,
14013,
18,
2725,
364,
738,
87,
1493,
738,
87,
3113,
365,
18,
696,
73,
329,
16,
555,
18,
3015,
2668,
9184,
2187,
296,
2079,
26112,
365,
18,
10676,
1891,
3783,
19236,
21,
13,
365,
18,
5533,
1776,
273,
1083,
365,
18,
696,
73,
329,
18,
10420,
67,
3427,
12,
20600,
67,
5688,
33,
8381,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self._server(store, rv) | return self._server(store, rv, quiet) | def _server(self, store, server, quiet): if not server: defserver = store.last_host() if quiet: self.ctx.out("Using server: %s" % defserver) return defserver else: rv = self.ctx.input("Server: [%s]" % defserver) if not rv: return defserver, None # Prevents loop else: return self._server(store, rv) else: try: idx = server.rindex("@") return server[idx+1:], server[0:idx] # server, user which may also contain an @ except ValueError: return server, None | faae526c13d5a6e7081a1da63b62c1d374c328e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/faae526c13d5a6e7081a1da63b62c1d374c328e8/sessions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3567,
12,
2890,
16,
1707,
16,
1438,
16,
10902,
4672,
309,
486,
1438,
30,
1652,
3567,
273,
1707,
18,
2722,
67,
2564,
1435,
309,
10902,
30,
365,
18,
5900,
18,
659,
2932,
7736,
1438,
30,
738,
87,
6,
738,
1652,
3567,
13,
327,
1652,
3567,
469,
30,
5633,
273,
365,
18,
5900,
18,
2630,
2932,
2081,
30,
9799,
87,
4279,
738,
1652,
3567,
13,
309,
486,
5633,
30,
327,
1652,
3567,
16,
599,
468,
19412,
87,
2798,
469,
30,
327,
365,
6315,
3567,
12,
2233,
16,
5633,
16,
10902,
13,
469,
30,
775,
30,
2067,
273,
1438,
18,
86,
1615,
2932,
36,
7923,
327,
225,
1438,
63,
3465,
15,
21,
30,
6487,
1438,
63,
20,
30,
3465,
65,
468,
1438,
16,
729,
1492,
2026,
2546,
912,
392,
632,
1335,
2068,
30,
327,
1438,
16,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3567,
12,
2890,
16,
1707,
16,
1438,
16,
10902,
4672,
309,
486,
1438,
30,
1652,
3567,
273,
1707,
18,
2722,
67,
2564,
1435,
309,
10902,
30,
365,
18,
5900,
18,
659,
2932,
7736,
1438,
30,
738,
87,
6,
738,
1652,
3567,
13,
327,
1652,
3567,
469,
30,
5633,
273,
365,
18,
5900,
18,
2630,
2932,
2081,
30,
9799,
87,
4279,
738,
1652,
3567,
13,
309,
486,
5633,
30,
327,
1652,
3567,
16,
599,
468,
19412,
87,
2798,
469,
30,
327,
365,
6315,
3567,
12,
2233,
16,
5633,
16,
10902,
13,
469,
30,
775,
30,
2067,
273,
1438,
18,
86,
1615,
2932,
36,
7923,
327,
225,
1438,
63,
3465,
15,
21,
30,
6487,
1438,
63,
20,
30,
3465,
2
] |
workspaces.invokeFactory(self.getGroupWorkspaceType(), id) | pt.constructContent( type_name = self.getGroupWorkspaceType(), container = workspaces, id = id, ) | def createGrouparea(self, id): """Create a space in the portal for the given group, much like member home folders.""" parent = self.aq_inner.aq_parent workspaces = self.getGroupWorkspacesFolder() pt = getToolByName( self, 'portal_types' ) | ff2240175dc1dd6bafb910f16f835fe6df598950 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/ff2240175dc1dd6bafb910f16f835fe6df598950/GroupsTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1114,
5036,
12,
2890,
16,
612,
4672,
3536,
1684,
279,
3476,
316,
326,
11899,
364,
326,
864,
1041,
16,
9816,
3007,
3140,
6382,
9907,
12123,
982,
273,
365,
18,
69,
85,
67,
7872,
18,
69,
85,
67,
2938,
23527,
273,
365,
18,
588,
1114,
22287,
3899,
1435,
5818,
273,
336,
6364,
5911,
12,
365,
16,
296,
24386,
67,
2352,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1114,
5036,
12,
2890,
16,
612,
4672,
3536,
1684,
279,
3476,
316,
326,
11899,
364,
326,
864,
1041,
16,
9816,
3007,
3140,
6382,
9907,
12123,
982,
273,
365,
18,
69,
85,
67,
7872,
18,
69,
85,
67,
2938,
23527,
273,
365,
18,
588,
1114,
22287,
3899,
1435,
5818,
273,
336,
6364,
5911,
12,
365,
16,
296,
24386,
67,
2352,
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,
-100,
-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(inspect.getargspec(bound_field)[0]) == 2): value = bound_field(user_obj) else: value = bound_field() | if not isinstance(is_authorized, bool): raise NotBooleanPermission("Callable %s from model %s on rule %s does not return a boolean value", (rule.field_name, rule.content_type.model, rule.codename)) | def has_perm(self, user_obj, perm, obj=None): """ This method checks if the user_obj has perm on obj. Returns True or False Looks for the rule with the code_name = perm and the content_type of the obj If it exists returns the value of obj.field_name or obj.field_name() in case the field is a method. """ if obj is None: return False | a7d796e8765dc21870b569b0c6b59a07748fc5d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14254/a7d796e8765dc21870b569b0c6b59a07748fc5d6/backends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
12160,
12,
2890,
16,
729,
67,
2603,
16,
4641,
16,
1081,
33,
7036,
4672,
3536,
1220,
707,
4271,
309,
326,
729,
67,
2603,
711,
4641,
603,
1081,
18,
2860,
1053,
578,
1083,
10176,
87,
364,
326,
1720,
598,
326,
981,
67,
529,
273,
4641,
471,
326,
913,
67,
723,
434,
326,
1081,
971,
518,
1704,
1135,
326,
460,
434,
1081,
18,
1518,
67,
529,
578,
1081,
18,
1518,
67,
529,
1435,
316,
648,
326,
652,
353,
279,
707,
18,
3536,
225,
309,
1081,
353,
599,
30,
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,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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,
711,
67,
12160,
12,
2890,
16,
729,
67,
2603,
16,
4641,
16,
1081,
33,
7036,
4672,
3536,
1220,
707,
4271,
309,
326,
729,
67,
2603,
711,
4641,
603,
1081,
18,
2860,
1053,
578,
1083,
10176,
87,
364,
326,
1720,
598,
326,
981,
67,
529,
273,
4641,
471,
326,
913,
67,
723,
434,
326,
1081,
971,
518,
1704,
1135,
326,
460,
434,
1081,
18,
1518,
67,
529,
578,
1081,
18,
1518,
67,
529,
1435,
316,
648,
326,
652,
353,
279,
707,
18,
3536,
225,
309,
1081,
353,
599,
30,
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
] |
if dev_id < 0: dev_id = 0 | print "Device ID: %d" % dev_id | def hci_open_dev(adapter): # TODO: use remote device addr and hci_get_route # (need to add this to PyBlueZ) dev_id = bz.hci_devid(adapter) if dev_id < 0: # take the first one and pray dev_id = 0 return bz.hci_open_dev(dev_id), dev_id | 62d200867b34a605d3d9994c257e62a290da8082 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/62d200867b34a605d3d9994c257e62a290da8082/mcap_sock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
8450,
67,
3190,
67,
5206,
12,
10204,
4672,
468,
2660,
30,
999,
2632,
2346,
3091,
471,
366,
8450,
67,
588,
67,
5547,
468,
261,
14891,
358,
527,
333,
358,
4707,
27986,
62,
13,
4461,
67,
350,
273,
24788,
18,
76,
8450,
67,
323,
1246,
12,
10204,
13,
309,
4461,
67,
350,
411,
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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,
366,
8450,
67,
3190,
67,
5206,
12,
10204,
4672,
468,
2660,
30,
999,
2632,
2346,
3091,
471,
366,
8450,
67,
588,
67,
5547,
468,
261,
14891,
358,
527,
333,
358,
4707,
27986,
62,
13,
4461,
67,
350,
273,
24788,
18,
76,
8450,
67,
323,
1246,
12,
10204,
13,
309,
4461,
67,
350,
411,
374,
30,
468,
4862,
326,
1122,
1245,
471,
293,
435,
4461,
67,
350,
273,
374,
327,
24788,
18,
76,
8450,
67,
3190,
67,
5206,
12,
5206,
67,
350,
3631,
4461,
67,
350,
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
] |
def current_mtime(self): if (not self.path_exists()): return None return os.path.getmtime(self.path) | def current_mtime(self, path_prefix=None): full_path = self.full_path(path_prefix=path_prefix) if (not os.path.exists(full_path)): return None return os.path.getmtime(full_path) | def current_mtime(self): if (not self.path_exists()): return None return os.path.getmtime(self.path) | 368163363bb0c76203747001edd3f0d22b396410 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/368163363bb0c76203747001edd3f0d22b396410/dlite.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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
783,
67,
10838,
12,
2890,
4672,
309,
261,
902,
365,
18,
803,
67,
1808,
1435,
4672,
327,
599,
327,
1140,
18,
803,
18,
588,
10838,
12,
2890,
18,
803,
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
] |
sys.stderr.write('> Sending file %s ' % filename) | sys.stderr.write('--- Sending file %s ---\n' % filename) | def writer(self): """loop and copy console->serial until EXITCHARCTER character is found. when MENUCHARACTER is found, interpret the next key locally. """ menu_active = False try: while self.alive: try: c = console.getkey() except KeyboardInterrupt: c = '\x03' if menu_active: if c == MENUCHARACTER or c == EXITCHARCTER: # Menu character again/exit char -> send itself self.serial.write(c) # send character if self.echo: sys.stdout.write(c) elif c == '\x15': # CTRL+U -> upload file sys.stderr.write('\n> File to upload: ') sys.stderr.flush() console.cleanup() filename = sys.stdin.readline().rstrip('\r\n') if filename: try: file = open(filename, 'r') sys.stderr.write('> Sending file %s ' % filename) while True: line = file.readline().rstrip('\r\n') if not line: break self.serial.write(line) self.serial.write('\r\n') # Wait for output buffer to drain. self.serial.flush() sys.stderr.write('.') # Progress indicator. sys.stderr.write('\n> File %s sent.\n' % filename) except IOError, e: sys.stderr.write('> Error opening file %s: %s\n' % (filename, e)) console.setup() elif c in '\x08hH?': # CTRL+H, h, H, ? -> Show help sys.stderr.write(get_help_text()) elif c == '\x12': # CTRL+R -> Toggle RTS self.rts_state = not self.rts_state self.serial.setRTS(self.rts_state) sys.stderr.write('<RTS %s>' % (self.rts_state and 'active' or 'inactive')) elif c == '\x04': # CTRL+D -> Toggle DTR self.dtr_state = not self.dtr_state self.serial.setDTR(self.dtr_state) sys.stderr.write('<DTR %s>' % (self.dtr_state and 'active' or 'inactive')) elif c == '\x02': # CTRL+B -> toggle BREAK condition self.break_state = not self.break_state self.serial.setBreak(self.break_state) sys.stderr.write('<BREAK %s>' % (self.break_state and 'active' or 'inactive')) elif c == '\x05': # CTRL+E -> toggle local echo self.echo = not self.echo sys.stderr.write('<local echo %s>' % (self.echo and 'active' or 'inactive')) elif c == '\x09': # CTRL+I -> info self.dump_port_settings() #~ elif c in 'pP': # P -> change port XXX reader thread would exit elif c in 'bB': # B -> change baudrate sys.stderr.write('\n> Baudrate: ') sys.stderr.flush() console.cleanup() backup = self.serial.baudrate try: self.serial.baudrate = int(sys.stdin.readline().strip()) except ValueError, e: sys.stderr.write('\n> Error setting baudrate: %s' % (e,)) self.serial.baudrate = backup console.setup() self.dump_port_settings() elif c == '8': # 8 -> change to 8 bits self.serial.bytesize = serial.EIGHTBITS self.dump_port_settings() elif c == '7': # 7 -> change to 8 bits self.serial.bytesize = serial.SEVENBITS self.dump_port_settings() elif c in 'eE': # E -> change to even parity self.serial.parity = serial.PARITY_EVEN self.dump_port_settings() elif c in 'oO': # O -> change to odd parity self.serial.parity = serial.PARITY_ODD self.dump_port_settings() elif c in 'mM': # M -> change to mark parity self.serial.parity = serial.PARITY_MARK self.dump_port_settings() elif c in 'sS': # S -> change to space parity self.serial.parity = serial.PARITY_SPACE self.dump_port_settings() elif c in 'nN': # N -> change to no parity self.serial.parity = serial.PARITY_NONE self.dump_port_settings() elif c == '1': # 1 -> change to 1 stop bits self.serial.stopbits = serial.STOPBITS_ONE self.dump_port_settings() elif c == '2': # 2 -> change to 2 stop bits self.serial.stopbits = serial.STOPBITS_TWO self.dump_port_settings() elif c == '3': # 3 -> change to 1.5 stop bits self.serial.stopbits = serial.STOPBITS_ONE_POINT_FIVE self.dump_port_settings() elif c in 'xX': # X -> change software flow control self.serial.xonxoff = (c == 'X') self.dump_port_settings() elif c in 'rR': # R -> change hardware flow control self.serial.rtscts = (c == 'R') self.dump_port_settings() else: sys.stderr.write('<unknown menu character %s>' % key_description(c)) menu_active = False elif c == MENUCHARACTER: # next char will be for menu menu_active = True elif c == EXITCHARCTER: self.stop() break # exit app elif c == '\n': self.serial.write(self.newline) # send newline character(s) if self.echo: sys.stdout.write(c) # local echo is a real newline in any case else: self.serial.write(c) # send character if self.echo: sys.stdout.write(c) except: self.alive = False raise | 0f6a48ec722750ef078f74b1aa09e2fb405fc04e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/0f6a48ec722750ef078f74b1aa09e2fb405fc04e/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
18,
3536,
3824,
67,
3535,
273,
1083,
775,
30,
1323,
365,
18,
11462,
30,
775,
30,
276,
273,
2983,
18,
588,
856,
1435,
1335,
19424,
30,
276,
273,
2337,
92,
4630,
11,
309,
3824,
67,
3535,
30,
309,
276,
422,
490,
1157,
57,
27858,
578,
276,
422,
28407,
7305,
1268,
654,
30,
468,
9809,
3351,
3382,
19,
8593,
1149,
317,
1366,
6174,
365,
18,
8818,
18,
2626,
12,
71,
13,
10792,
468,
1366,
3351,
309,
365,
18,
12946,
30,
2589,
18,
10283,
18,
2626,
12,
71,
13,
1327,
276,
422,
2337,
92,
3600,
4278,
15604,
468,
31568,
48,
15,
57,
317,
3617,
585,
2589,
18,
11241,
18,
2626,
2668,
64,
82,
34,
1387,
358,
3617,
30,
8624,
2589,
18,
11241,
18,
11330,
1435,
2983,
18,
16732,
1435,
1544,
273,
2589,
18,
21772,
18,
896,
1369,
7675,
86,
6406,
2668,
64,
86,
64,
82,
6134,
309,
1544,
30,
775,
30,
585,
273,
1696,
12,
3459,
16,
296,
86,
6134,
2589,
18,
11241,
18,
2626,
2668,
6062,
2479,
310,
585,
738,
87,
9948,
64,
82,
11,
738,
1544,
13,
1323,
1053,
30,
980,
273,
585,
18,
896,
1369,
7675,
86,
6406,
2668,
64,
86,
64,
82,
6134,
309,
486,
980,
30,
898,
365,
18,
8818,
18,
2626,
12,
1369,
13,
365,
18,
8818,
18,
2626,
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,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
18,
3536,
3824,
67,
3535,
273,
1083,
775,
30,
1323,
365,
18,
11462,
30,
775,
30,
276,
273,
2983,
18,
588,
856,
1435,
1335,
19424,
30,
276,
273,
2337,
92,
4630,
11,
309,
3824,
67,
3535,
30,
309,
276,
422,
490,
1157,
57,
27858,
578,
276,
422,
28407,
7305,
1268,
654,
30,
468,
9809,
3351,
3382,
19,
8593,
1149,
317,
1366,
6174,
365,
18,
8818,
18,
2626,
12,
71,
13,
10792,
468,
1366,
3351,
309,
365,
18,
12946,
30,
2589,
18,
10283,
18,
2626,
12,
2
] |
pass | print('TEST-UNEXPECTED_FAIL | trace-test.py | %s'%test.path) | def run_tests(tests, test_dir, lib_dir): pb = None if not OPTIONS.hide_progress and not OPTIONS.show_cmd: try: from progressbar import ProgressBar pb = ProgressBar('', len(tests), 13) except ImportError: pass failures = [] complete = False doing = 'before starting' try: for i, test in enumerate(tests): doing = 'on %s'%test.path ok, out, err = run_test(test, lib_dir) doing = 'after %s'%test.path if not ok: failures.append(test.path) if OPTIONS.tinderbox: if ok: print('TEST-PASS | trace-test.py | %s'%test.path) else: lines = [ _ for _ in out.split('\n') + err.split('\n') if _ != '' ] if len(lines) >= 1: msg = lines[-1] else: msg = '' print('TEST-UNEXPECTED-FAIL | trace-test.py | %s: %s'% (test.path, msg)) n = i + 1 if pb: pb.label = '[%3d|%3d|%3d]'%(n - len(failures), len(failures), n) pb.update(n) complete = True except KeyboardInterrupt: pass if pb: pb.finish() if failures: if OPTIONS.write_failures: try: out = open(OPTIONS.write_failures, 'w') for test in failures: out.write(os.path.relpath(test, test_dir) + '\n') out.close() except IOError: sys.stderr.write("Exception thrown trying to write failure file '%s'\n"% OPTIONS.write_failures) traceback.print_exc() sys.stderr.write('---\n') print('FAILURES:') for test in failures: if OPTIONS.show_failed: print(' ' + subprocess.list2cmdline(get_test_cmd(test, lib_dir))) else: print(' ' + test) else: print('PASSED ALL' + ('' if complete else ' (partial run -- interrupted by user %s)'%doing)) | 7805fd5d8515e18b1f8eca1468d984982ecf62a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/7805fd5d8515e18b1f8eca1468d984982ecf62a7/trace-test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
16341,
16,
1842,
67,
1214,
16,
2561,
67,
1214,
4672,
6386,
273,
599,
309,
486,
16726,
18,
11248,
67,
8298,
471,
486,
16726,
18,
4500,
67,
4172,
30,
775,
30,
628,
31730,
1930,
27793,
6386,
273,
27793,
2668,
2187,
562,
12,
16341,
3631,
5958,
13,
1335,
11308,
30,
1172,
2668,
16961,
17,
2124,
27409,
67,
12319,
571,
2606,
17,
3813,
18,
2074,
571,
738,
87,
11,
9,
3813,
18,
803,
13,
225,
11720,
273,
5378,
3912,
273,
1083,
9957,
273,
296,
5771,
5023,
11,
775,
30,
364,
277,
16,
1842,
316,
4241,
12,
16341,
4672,
9957,
273,
296,
265,
738,
87,
11,
9,
3813,
18,
803,
1529,
16,
596,
16,
393,
273,
1086,
67,
3813,
12,
3813,
16,
2561,
67,
1214,
13,
9957,
273,
296,
5205,
738,
87,
11,
9,
3813,
18,
803,
225,
309,
486,
1529,
30,
11720,
18,
6923,
12,
3813,
18,
803,
13,
225,
309,
16726,
18,
88,
14055,
2147,
30,
309,
1529,
30,
1172,
2668,
16961,
17,
10884,
571,
2606,
17,
3813,
18,
2074,
571,
738,
87,
11,
9,
3813,
18,
803,
13,
469,
30,
2362,
273,
306,
389,
364,
389,
316,
596,
18,
4939,
2668,
64,
82,
6134,
397,
393,
18,
4939,
2668,
64,
82,
6134,
309,
389,
480,
875,
308,
309,
562,
12,
3548,
13,
1545,
404,
30,
1234,
273,
2362,
18919,
21,
65,
469,
30,
1234,
273,
875,
1172,
2668,
16961,
17,
2124,
27409,
17,
12319,
571,
2606,
17,
3813,
18,
2074,
571,
738,
87,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
16341,
16,
1842,
67,
1214,
16,
2561,
67,
1214,
4672,
6386,
273,
599,
309,
486,
16726,
18,
11248,
67,
8298,
471,
486,
16726,
18,
4500,
67,
4172,
30,
775,
30,
628,
31730,
1930,
27793,
6386,
273,
27793,
2668,
2187,
562,
12,
16341,
3631,
5958,
13,
1335,
11308,
30,
1172,
2668,
16961,
17,
2124,
27409,
67,
12319,
571,
2606,
17,
3813,
18,
2074,
571,
738,
87,
11,
9,
3813,
18,
803,
13,
225,
11720,
273,
5378,
3912,
273,
1083,
9957,
273,
296,
5771,
5023,
11,
775,
30,
364,
277,
16,
1842,
316,
4241,
12,
16341,
4672,
9957,
273,
296,
265,
738,
87,
11,
9,
3813,
18,
803,
1529,
16,
596,
16,
393,
273,
1086,
67,
2
] |
m = "warning: " + msg | m = "warning: %s" % msg | def warning(msg, *args): "Log a warning" m = "warning: " + msg logger.warning(m, *args) | f5a94215d9063a28122dc9278fa8f77bc614636c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/f5a94215d9063a28122dc9278fa8f77bc614636c/log.py | [
1,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
3576,
16,
380,
1968,
4672,
315,
1343,
279,
3436,
6,
312,
273,
315,
8551,
30,
738,
87,
6,
738,
1234,
1194,
18,
8551,
12,
81,
16,
380,
1968,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((status == "" or "failed" in status.lower())): | if ((status == "" or "failed" == status.lower())): | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.png' # trim leading and trailing whitespace output = output.strip() # note that we may be inside a <pre>, so we don't put any extra whitespace # in this html ret = "<div class='%s unit %s' id='%s-%s'>" % (type, status, type, id) ret += "<a href=\"javascript:handle('%s');\">" % id ret += "<img id='img-%s' name='img-%s' alt='%s' src='%s'>" %(id, id, status, icon) ret += "<div class='%s title'>%s</div>" % (type, title) ret += " " ret += "<div class='%s status %s'>%s</div>" % (type, status, status) ret += "<div class='%s output' id='output-%s'><pre>%s</pre></div>" % (type, id, output) return ret | aded61733b040c3e2918f7cb5990b12cebe2244e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/aded61733b040c3e2918f7cb5990b12cebe2244e/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1293,
3762,
2736,
67,
2620,
12,
723,
16,
2077,
16,
876,
16,
612,
16,
1267,
1546,
6,
4672,
3536,
7163,
1729,
364,
279,
9262,
2736,
2442,
225,
294,
891,
618,
30,
326,
6374,
618,
434,
518,
18,
425,
18,
75,
18,
315,
3813,
6,
578,
315,
1128,
6,
294,
891,
2077,
30,
326,
2077,
358,
506,
10453,
3536,
309,
14015,
2327,
422,
1408,
578,
315,
7307,
6,
422,
1267,
18,
8167,
1435,
3719,
30,
4126,
273,
296,
3950,
67,
11248,
67,
2313,
18,
6446,
11,
469,
30,
4126,
273,
296,
3950,
67,
318,
11248,
67,
2313,
18,
6446,
11,
225,
468,
2209,
7676,
471,
7341,
7983,
876,
273,
876,
18,
6406,
1435,
225,
468,
4721,
716,
732,
2026,
506,
4832,
279,
411,
1484,
20401,
1427,
732,
2727,
1404,
1378,
1281,
2870,
7983,
468,
316,
333,
1729,
325,
273,
3532,
2892,
667,
28713,
87,
2836,
738,
87,
11,
612,
28713,
87,
6456,
87,
28533,
738,
261,
723,
16,
1267,
16,
618,
16,
612,
13,
325,
1011,
3532,
69,
3897,
5189,
11242,
30,
4110,
29909,
87,
8284,
21121,
738,
612,
325,
1011,
3532,
6081,
612,
2218,
6081,
6456,
87,
11,
508,
2218,
6081,
6456,
87,
11,
3770,
28713,
87,
11,
1705,
28713,
87,
28533,
8975,
350,
16,
612,
16,
1267,
16,
4126,
13,
325,
1011,
3532,
2892,
667,
28713,
87,
2077,
11,
9822,
87,
1757,
2892,
2984,
738,
261,
723,
16,
2077,
13,
325,
1011,
315,
315,
325,
1011,
3532,
2892,
667,
28713,
87,
1267,
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,
1221,
67,
1293,
3762,
2736,
67,
2620,
12,
723,
16,
2077,
16,
876,
16,
612,
16,
1267,
1546,
6,
4672,
3536,
7163,
1729,
364,
279,
9262,
2736,
2442,
225,
294,
891,
618,
30,
326,
6374,
618,
434,
518,
18,
425,
18,
75,
18,
315,
3813,
6,
578,
315,
1128,
6,
294,
891,
2077,
30,
326,
2077,
358,
506,
10453,
3536,
309,
14015,
2327,
422,
1408,
578,
315,
7307,
6,
422,
1267,
18,
8167,
1435,
3719,
30,
4126,
273,
296,
3950,
67,
11248,
67,
2313,
18,
6446,
11,
469,
30,
4126,
273,
296,
3950,
67,
318,
11248,
67,
2313,
18,
6446,
11,
225,
468,
2209,
7676,
471,
7341,
7983,
876,
273,
876,
18,
6406,
1435,
225,
468,
4721,
716,
2
] |
item = gtk.MenuItem (_("Remove %s group ") % (self._group)) | item = gtk.MenuItem (_("Remove group %s")) % (self._group) | def populate_grouping_menu (self, widget): groupitem = None | 30f668a8cb82c27ff7501028d202fd4a75ba830a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/30f668a8cb82c27ff7501028d202fd4a75ba830a/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
25592,
67,
5414,
261,
2890,
16,
3604,
4672,
1041,
1726,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
25592,
67,
5414,
261,
2890,
16,
3604,
4672,
1041,
1726,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.logger.debug('next action is %s' % next) | def _next(self, cr, uid): self.logger.debug('getting next operation') next = self._next_action(cr, uid) self.logger.debug('next action is %s' % next) if next: action = next.action_id return { 'view_mode': action.view_mode, 'view_type': action.view_type, 'view_id': action.view_id and [action.view_id.id] or False, 'res_model': action.res_model, 'type': action.type, 'target': action.target, } self.logger.info('all configuration actions have been executed') | b3ed0f4aa88779cf3e9deed2c065dd541ddaf8eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/b3ed0f4aa88779cf3e9deed2c065dd541ddaf8eb/res_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4285,
12,
2890,
16,
4422,
16,
4555,
4672,
365,
18,
4901,
18,
4148,
2668,
588,
1787,
1024,
1674,
6134,
1024,
273,
365,
6315,
4285,
67,
1128,
12,
3353,
16,
4555,
13,
309,
1024,
30,
1301,
273,
1024,
18,
1128,
67,
350,
327,
288,
296,
1945,
67,
3188,
4278,
1301,
18,
1945,
67,
3188,
16,
296,
1945,
67,
723,
4278,
1301,
18,
1945,
67,
723,
16,
296,
1945,
67,
350,
4278,
1301,
18,
1945,
67,
350,
471,
306,
1128,
18,
1945,
67,
350,
18,
350,
65,
578,
1083,
16,
296,
455,
67,
2284,
4278,
1301,
18,
455,
67,
2284,
16,
296,
723,
4278,
1301,
18,
723,
16,
296,
3299,
4278,
1301,
18,
3299,
16,
289,
365,
18,
4901,
18,
1376,
2668,
454,
1664,
4209,
1240,
2118,
7120,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4285,
12,
2890,
16,
4422,
16,
4555,
4672,
365,
18,
4901,
18,
4148,
2668,
588,
1787,
1024,
1674,
6134,
1024,
273,
365,
6315,
4285,
67,
1128,
12,
3353,
16,
4555,
13,
309,
1024,
30,
1301,
273,
1024,
18,
1128,
67,
350,
327,
288,
296,
1945,
67,
3188,
4278,
1301,
18,
1945,
67,
3188,
16,
296,
1945,
67,
723,
4278,
1301,
18,
1945,
67,
723,
16,
296,
1945,
67,
350,
4278,
1301,
18,
1945,
67,
350,
471,
306,
1128,
18,
1945,
67,
350,
18,
350,
65,
578,
1083,
16,
296,
455,
67,
2284,
4278,
1301,
18,
455,
67,
2284,
16,
296,
723,
4278,
1301,
18,
723,
16,
296,
3299,
4278,
1301,
18,
3299,
16,
289,
365,
18,
4901,
2
] |
|
merged_docs.append(merger.merge(inspectdoc, parsedoc)) | doc_dict[name] = merger.merge(inspectdoc, parsedoc) if name in doc_dict: print `doc_dict[name]`, name | def build_docs(names, inspect=True, parse=True): names = [DottedName(name) for name in names] # Create our tool chain inspector = DocInspector() parser = DocParser(inspector.inspect(__builtins__)) merger = DocMerger() docstring_parser = DocstringParser() inheriter = DocInheriter() parsedocs = [] inspectdocs = [] for name in names: if parse: parsedocs.append(parser.find(name)) else: parsedocs.append(None) # Inspecting if inspect: for i in range(len(name)): try: n = '.'.join(name[:len(name)-i]) val = __import__(n) for identifier in name[1:]: val = getattr(val, identifier) inspectdocs.append(inspector.inspect(val)) break except ImportError: pass else: print 'Could not import %s' % name inspectdocs.append(None) else: inspectdocs.append(None) # Merge all docs. merged_docs = [] for name, parsedoc, inspectdoc in zip(names, parsedocs, inspectdocs): if inspectdoc is None and parsedoc is None: print 'Warning: No docs for %s' % name elif inspectdoc is None: merged_docs.append(parsedoc) elif parsedoc is None: merged_docs.append(inspectdoc) else: merged_docs.append(merger.merge(inspectdoc, parsedoc)) # Construct a dictionary mapping name -> ValueDoc, and use that # dictionary to create an index. doc_dict = dict(zip(names, merged_docs)) docindex = DocIndex(doc_dict) # Parse all docstrings. for val_doc in docindex.reachable_valdocs: docstring_parser.parse_docstring(val_doc) if isinstance(val_doc, ClassDoc): if val_doc.local_variables is not UNKNOWN: for var_doc in val_doc.local_variables.values(): docstring_parser.parse_docstring(var_doc) if isinstance(val_doc, NamespaceDoc): if val_doc.variables is not UNKNOWN: for var_doc in val_doc.variables.values(): docstring_parser.parse_docstring(var_doc) # Inheritance. inheriter.inherit(docindex) | 39028ad155a48d1e14faba061237da8a4813af2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/39028ad155a48d1e14faba061237da8a4813af2e/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8532,
12,
1973,
16,
5334,
33,
5510,
16,
1109,
33,
5510,
4672,
1257,
273,
306,
10412,
2344,
461,
12,
529,
13,
364,
508,
316,
1257,
65,
225,
468,
1788,
3134,
5226,
2687,
22700,
273,
3521,
19443,
1435,
2082,
273,
3521,
2678,
12,
12009,
280,
18,
12009,
12,
972,
12406,
2679,
972,
3719,
4045,
693,
273,
3521,
8478,
693,
1435,
14525,
67,
4288,
273,
3521,
1080,
2678,
1435,
316,
1614,
2165,
273,
3521,
382,
1614,
2165,
1435,
225,
2707,
22280,
273,
5378,
5334,
8532,
273,
5378,
364,
508,
316,
1257,
30,
309,
1109,
30,
2707,
22280,
18,
6923,
12,
4288,
18,
4720,
12,
529,
3719,
469,
30,
2707,
22280,
18,
6923,
12,
7036,
13,
225,
468,
20045,
310,
309,
5334,
30,
364,
277,
316,
1048,
12,
1897,
12,
529,
3719,
30,
775,
30,
290,
273,
2611,
18,
5701,
12,
529,
10531,
1897,
12,
529,
24950,
77,
5717,
1244,
273,
1001,
5666,
972,
12,
82,
13,
364,
2756,
316,
508,
63,
21,
30,
14542,
1244,
273,
3869,
12,
1125,
16,
2756,
13,
5334,
8532,
18,
6923,
12,
12009,
280,
18,
12009,
12,
1125,
3719,
898,
1335,
11308,
30,
1342,
469,
30,
1172,
296,
4445,
486,
1930,
738,
87,
11,
738,
508,
5334,
8532,
18,
6923,
12,
7036,
13,
469,
30,
5334,
8532,
18,
6923,
12,
7036,
13,
225,
468,
8964,
777,
3270,
18,
5384,
67,
8532,
273,
5378,
364,
508,
16,
2707,
504,
16,
5334,
2434,
316,
3144,
12,
1973,
16,
2707,
22280,
16,
5334,
8532,
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,
67,
8532,
12,
1973,
16,
5334,
33,
5510,
16,
1109,
33,
5510,
4672,
1257,
273,
306,
10412,
2344,
461,
12,
529,
13,
364,
508,
316,
1257,
65,
225,
468,
1788,
3134,
5226,
2687,
22700,
273,
3521,
19443,
1435,
2082,
273,
3521,
2678,
12,
12009,
280,
18,
12009,
12,
972,
12406,
2679,
972,
3719,
4045,
693,
273,
3521,
8478,
693,
1435,
14525,
67,
4288,
273,
3521,
1080,
2678,
1435,
316,
1614,
2165,
273,
3521,
382,
1614,
2165,
1435,
225,
2707,
22280,
273,
5378,
5334,
8532,
273,
5378,
364,
508,
316,
1257,
30,
309,
1109,
30,
2707,
22280,
18,
6923,
12,
4288,
18,
4720,
12,
529,
3719,
469,
30,
2707,
22280,
18,
6923,
12,
7036,
13,
225,
468,
20045,
2
] |
join = dirname = None | join = dirname = environ = listdir = basename = None | def _os_bootstrap(): "Set up 'os' module replacement functions for use during import bootstrap." global _os_stat, _os_path_join, _os_path_dirname, _os_getcwd names = sys.builtin_module_names join = dirname = None mindirlen = 0 if 'posix' in names: from posix import stat, getcwd sep = '/' mindirlen = 1 elif 'nt' in names: from nt import stat, getcwd sep = '\\' mindirlen = 3 elif 'dos' in names: from dos import stat, getcwd sep = '\\' mindirlen = 3 elif 'os2' in names: from os2 import stat, getcwd sep = '\\' elif 'mac' in names: from mac import stat, getcwd def join(a, b): if a == '': return b path = s if ':' not in a: a = ':' + a if a[-1:] != ':': a = a + ':' return a + b else: raise ImportError, 'no os specific module found' if join is None: def join(a, b, sep=sep): if a == '': return b lastchar = a[-1:] if lastchar == '/' or lastchar == sep: return a + b return a + sep + b if dirname is None: def dirname(a, sep=sep, mindirlen=mindirlen): for i in range(len(a)-1, -1, -1): c = a[i] if c == '/' or c == sep: if i < mindirlen: return a[:i+1] return a[:i] return '' _os_stat = stat _os_getcwd = getcwd _os_path_join = join _os_path_dirname = dirname | 59d55e3eafa5f2caeb1279be446bd3e94a5799a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11925/59d55e3eafa5f2caeb1279be446bd3e94a5799a4/iu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
538,
67,
12722,
13332,
315,
694,
731,
296,
538,
11,
1605,
6060,
4186,
364,
999,
4982,
1930,
7065,
1199,
225,
2552,
389,
538,
67,
5642,
16,
389,
538,
67,
803,
67,
5701,
16,
389,
538,
67,
803,
67,
12287,
16,
389,
538,
67,
588,
11089,
225,
1257,
273,
2589,
18,
24553,
67,
2978,
67,
1973,
225,
1233,
273,
4283,
273,
5473,
273,
13529,
273,
4882,
273,
599,
22838,
481,
1897,
273,
374,
309,
296,
24463,
11,
316,
1257,
30,
628,
16366,
1930,
610,
16,
13323,
5478,
273,
2023,
22838,
481,
1897,
273,
404,
1327,
296,
496,
11,
316,
1257,
30,
628,
9513,
1930,
610,
16,
13323,
5478,
273,
5282,
22838,
481,
1897,
273,
890,
1327,
296,
19219,
11,
316,
1257,
30,
628,
16153,
1930,
610,
16,
13323,
5478,
273,
5282,
22838,
481,
1897,
273,
890,
1327,
296,
538,
22,
11,
316,
1257,
30,
628,
1140,
22,
1930,
610,
16,
13323,
5478,
273,
5282,
1327,
296,
5821,
11,
316,
1257,
30,
628,
5318,
1930,
610,
16,
13323,
1652,
1233,
12,
69,
16,
324,
4672,
309,
279,
422,
875,
30,
327,
324,
589,
273,
272,
309,
3921,
486,
316,
279,
30,
279,
273,
3921,
397,
279,
309,
279,
18919,
21,
26894,
480,
3921,
30,
279,
273,
279,
397,
3921,
327,
279,
397,
324,
469,
30,
1002,
11308,
16,
296,
2135,
1140,
2923,
1605,
1392,
11,
225,
309,
1233,
353,
599,
30,
1652,
1233,
12,
69,
16,
324,
16,
5478,
33,
10814,
4672,
309,
279,
422,
875,
30,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
538,
67,
12722,
13332,
315,
694,
731,
296,
538,
11,
1605,
6060,
4186,
364,
999,
4982,
1930,
7065,
1199,
225,
2552,
389,
538,
67,
5642,
16,
389,
538,
67,
803,
67,
5701,
16,
389,
538,
67,
803,
67,
12287,
16,
389,
538,
67,
588,
11089,
225,
1257,
273,
2589,
18,
24553,
67,
2978,
67,
1973,
225,
1233,
273,
4283,
273,
5473,
273,
13529,
273,
4882,
273,
599,
22838,
481,
1897,
273,
374,
309,
296,
24463,
11,
316,
1257,
30,
628,
16366,
1930,
610,
16,
13323,
5478,
273,
2023,
22838,
481,
1897,
273,
404,
1327,
296,
496,
11,
316,
1257,
30,
628,
9513,
1930,
610,
16,
13323,
5478,
273,
5282,
22838,
481,
1897,
273,
890,
1327,
296,
19219,
2
] |
self.ufeed.signal_change(needs_save=False) | def feedparser_finished(self): self.updating = False self.ufeed.signal_change(needs_save=False) self.schedule_update_events(-1) | c943da495a9f2a51d33403b0d27161b4e4dbd0e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/c943da495a9f2a51d33403b0d27161b4e4dbd0e2/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4288,
67,
13527,
12,
2890,
4672,
365,
18,
5533,
1776,
273,
1083,
365,
18,
10676,
67,
2725,
67,
5989,
19236,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4288,
67,
13527,
12,
2890,
4672,
365,
18,
5533,
1776,
273,
1083,
365,
18,
10676,
67,
2725,
67,
5989,
19236,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
expected_args = inspect.getargspec(module_globals[possible_handler]).args | expected_args = inspect.getargspec(module_globals[possible_handler])[0] | def mp_legacy_publisher(req, possible_module, possible_handler): """ mod_python legacy publisher minimum implementation. """ the_module = open(possible_module).read() module_globals = {} exec(the_module, module_globals) if possible_handler in module_globals and callable(module_globals[possible_handler]): from invenio.webinterface_handler import _check_result ## the req.form must be casted to dict because of Python 2.4 and earlier ## otherwise any object exposing the mapping interface can be ## used with the magic ** try: return _check_result(req, module_globals[possible_handler](req, **dict(req.form))) except TypeError, err: if ("%s() got an unexpected keyword argument" % possible_handler) in str(err): register_exception(req=req, prefix="Wrong GET parameter set in calling a legacy publisher handler", alert_admin=CFG_DEVEL_SITE) import inspect expected_args = inspect.getargspec(module_globals[possible_handler]).args cleaned_form = {} for arg in expected_args: if arg != 'req' and arg in req.form: # Just in case of malicious usage! cleaned_form[arg] = req.form[arg] return _check_result(req, module_globals[possible_handler](req, **cleaned_form)) else: raise else: raise SERVER_RETURN, HTTP_NOT_FOUND | 707eaf5010293bcb95fadb675abf1fb29bdc7b57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/707eaf5010293bcb95fadb675abf1fb29bdc7b57/webinterface_handler_wsgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
67,
17386,
67,
26018,
12,
3658,
16,
3323,
67,
2978,
16,
3323,
67,
4176,
4672,
3536,
681,
67,
8103,
8866,
12855,
5224,
4471,
18,
3536,
326,
67,
2978,
273,
1696,
12,
12708,
67,
2978,
2934,
896,
1435,
1605,
67,
16227,
273,
2618,
1196,
12,
5787,
67,
2978,
16,
1605,
67,
16227,
13,
309,
3323,
67,
4176,
316,
1605,
67,
16227,
471,
4140,
12,
2978,
67,
16227,
63,
12708,
67,
4176,
65,
4672,
628,
2198,
275,
1594,
18,
1814,
4757,
897,
67,
4176,
1930,
389,
1893,
67,
2088,
7541,
326,
1111,
18,
687,
1297,
506,
28192,
358,
2065,
2724,
434,
6600,
576,
18,
24,
471,
13805,
7541,
3541,
1281,
733,
431,
24014,
326,
2874,
1560,
848,
506,
7541,
1399,
598,
326,
8146,
2826,
775,
30,
327,
389,
1893,
67,
2088,
12,
3658,
16,
1605,
67,
16227,
63,
12708,
67,
4176,
29955,
3658,
16,
2826,
1576,
12,
3658,
18,
687,
20349,
1335,
3580,
16,
393,
30,
309,
7566,
9,
87,
1435,
2363,
392,
9733,
4932,
1237,
6,
738,
3323,
67,
4176,
13,
316,
609,
12,
370,
4672,
1744,
67,
4064,
12,
3658,
33,
3658,
16,
1633,
1546,
13634,
4978,
1569,
444,
316,
4440,
279,
8866,
12855,
1838,
3113,
6881,
67,
3666,
33,
19727,
67,
1639,
7900,
67,
20609,
13,
1930,
5334,
2665,
67,
1968,
273,
5334,
18,
588,
23172,
12,
2978,
67,
16227,
63,
12708,
67,
4176,
5717,
63,
20,
65,
9426,
67,
687,
273,
2618,
364,
1501,
316,
2665,
67,
1968,
30,
309,
1501,
480,
296,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
67,
17386,
67,
26018,
12,
3658,
16,
3323,
67,
2978,
16,
3323,
67,
4176,
4672,
3536,
681,
67,
8103,
8866,
12855,
5224,
4471,
18,
3536,
326,
67,
2978,
273,
1696,
12,
12708,
67,
2978,
2934,
896,
1435,
1605,
67,
16227,
273,
2618,
1196,
12,
5787,
67,
2978,
16,
1605,
67,
16227,
13,
309,
3323,
67,
4176,
316,
1605,
67,
16227,
471,
4140,
12,
2978,
67,
16227,
63,
12708,
67,
4176,
65,
4672,
628,
2198,
275,
1594,
18,
1814,
4757,
897,
67,
4176,
1930,
389,
1893,
67,
2088,
7541,
326,
1111,
18,
687,
1297,
506,
28192,
358,
2065,
2724,
434,
6600,
576,
18,
24,
471,
13805,
7541,
3541,
1281,
733,
431,
24014,
326,
2874,
1560,
848,
506,
7541,
2
] |
if i >= before: break | def between(self, after, before, inc=False): if self._cache_complete: gen = self._cache else: gen = self started = False l = [] if inc: for i in gen: if not started: if i >= after: started = True l.append(i) else: if i > before: break l.append(i) else: for i in gen: if not started: if i > after: started = True l.append(i) else: if i >= before: break l.append(i) return l | 15d920e6e4a2d1f32ab92efdd99f0cfc5542feff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/15d920e6e4a2d1f32ab92efdd99f0cfc5542feff/rrule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3086,
12,
2890,
16,
1839,
16,
1865,
16,
7290,
33,
8381,
4672,
309,
365,
6315,
2493,
67,
6226,
30,
3157,
273,
365,
6315,
2493,
469,
30,
3157,
273,
365,
5746,
273,
1083,
328,
273,
5378,
309,
7290,
30,
364,
277,
316,
3157,
30,
309,
486,
5746,
30,
309,
277,
1545,
1839,
30,
5746,
273,
1053,
328,
18,
6923,
12,
77,
13,
469,
30,
309,
277,
405,
1865,
30,
898,
328,
18,
6923,
12,
77,
13,
469,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3086,
12,
2890,
16,
1839,
16,
1865,
16,
7290,
33,
8381,
4672,
309,
365,
6315,
2493,
67,
6226,
30,
3157,
273,
365,
6315,
2493,
469,
30,
3157,
273,
365,
5746,
273,
1083,
328,
273,
5378,
309,
7290,
30,
364,
277,
316,
3157,
30,
309,
486,
5746,
30,
309,
277,
1545,
1839,
30,
5746,
273,
1053,
328,
18,
6923,
12,
77,
13,
469,
30,
309,
277,
405,
1865,
30,
898,
328,
18,
6923,
12,
77,
13,
469,
30,
364,
277,
316,
3157,
30,
309,
486,
5746,
30,
309,
277,
405,
1839,
30,
5746,
273,
1053,
328,
18,
6923,
12,
77,
13,
469,
30,
328,
18,
6923,
12,
77,
13,
327,
328,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return self.tk.call(self._w, 'info', 'data', entry) | return self.tk.call(self._w, 'info', 'data', entry) | def info_data(self, entry): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
892,
12,
2890,
16,
1241,
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,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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,
1123,
67,
892,
12,
2890,
16,
1241,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if type == 1: return P if type == 2: return P/(1-2*T+2*T**2) if type == 3: return P/(1+3*T**2) if type == 4: return P/(1+2*T) | if type == 1: P0 = P if type == 2: P0 = P/(1-2*T+2*T**2) if type == 3: P0 = P/(1+3*T**2) if type == 4: P0 = P/(1+2*T) return P0/P0(1) | def sd_zeta_polynomial(C,type=1): r""" Returns the Duursma zeta function of a self-dual code using the construction in [D]. | ad9201f98a75362de7b002d1a4c2bda6bd29effe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ad9201f98a75362de7b002d1a4c2bda6bd29effe/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
316,
306,
40,
8009,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
316,
306,
40,
8009,
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
] |
p = subprocess.Popen(args) | try: p = subprocess.Popen(args) except OSError, WindowsError: print ("There has been a problem running the geojasper application "+ "that converts the GeoTIFF terrain file to GeoJP2!") print ("Please check the \"cmd_geojasper\" variable in the "+ "terrain_srtm module and modify it if necessary.") print "Current value: \""+cmd_geojasper+"\"" raise | def __convert(dir_temp, input_file, rc): print "Converting terrain to JP2 format ..." output_file = os.path.join(dir_temp, "terrain.jp2") if os.path.exists(output_file): os.unlink(output_file) args = [cmd_geojasper, "-f", input_file, "-F", output_file, "-T", "jp2", "-O", "rate=0.1", "-O", "tilewidth=256", "-O", "tileheight=256"] if not use_world_file: args.extend(["-O", "xcsoar=1", "-O", "lonmin=" + str(rc.left.value_degrees()), "-O", "lonmax=" + str(rc.right.value_degrees()), "-O", "latmax=" + str(rc.top.value_degrees()), "-O", "latmin=" + str(rc.bottom.value_degrees())]) p = subprocess.Popen(args) p.wait() output = [[output_file, False]] world_file_tiff = os.path.join(dir_temp, "terrain.tfw") world_file = os.path.join(dir_temp, "terrain.j2w") if use_world_file and os.path.exists(world_file_tiff): os.rename(world_file_tiff, world_file) output.append([world_file, True]) return output | 9a7feee0c39a13cb70387923cc90b7324c813b2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6105/9a7feee0c39a13cb70387923cc90b7324c813b2e/terrain_srtm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
12,
1214,
67,
5814,
16,
810,
67,
768,
16,
4519,
4672,
1172,
315,
2723,
310,
19272,
7596,
358,
804,
52,
22,
740,
18483,
876,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
1214,
67,
5814,
16,
315,
387,
7596,
18,
21797,
22,
7923,
309,
1140,
18,
803,
18,
1808,
12,
2844,
67,
768,
4672,
1140,
18,
318,
1232,
12,
2844,
67,
768,
13,
225,
833,
273,
306,
4172,
67,
908,
6311,
345,
457,
16,
3701,
74,
3113,
810,
67,
768,
16,
3701,
42,
3113,
876,
67,
768,
16,
3701,
56,
3113,
315,
21797,
22,
3113,
3701,
51,
3113,
315,
5141,
33,
20,
18,
21,
3113,
3701,
51,
3113,
315,
15368,
2819,
33,
5034,
3113,
3701,
51,
3113,
315,
15368,
4210,
33,
5034,
11929,
225,
309,
486,
999,
67,
18179,
67,
768,
30,
833,
18,
14313,
3816,
6,
17,
51,
3113,
315,
6511,
2048,
297,
33,
21,
3113,
3701,
51,
3113,
315,
9379,
1154,
1546,
397,
609,
12,
1310,
18,
4482,
18,
1132,
67,
26943,
1435,
3631,
3701,
51,
3113,
315,
9379,
1896,
1546,
397,
609,
12,
1310,
18,
4083,
18,
1132,
67,
26943,
1435,
3631,
3701,
51,
3113,
315,
4801,
1896,
1546,
397,
609,
12,
1310,
18,
3669,
18,
1132,
67,
26943,
1435,
3631,
3701,
51,
3113,
315,
4801,
1154,
1546,
397,
609,
12,
1310,
18,
9176,
18,
1132,
67,
26943,
10756,
5717,
225,
775,
30,
293,
273,
6652,
18,
52,
3190,
12,
1968,
13,
1335,
10002,
16,
8202,
668,
30,
1172,
7566,
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,
6283,
12,
1214,
67,
5814,
16,
810,
67,
768,
16,
4519,
4672,
1172,
315,
2723,
310,
19272,
7596,
358,
804,
52,
22,
740,
18483,
876,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
1214,
67,
5814,
16,
315,
387,
7596,
18,
21797,
22,
7923,
309,
1140,
18,
803,
18,
1808,
12,
2844,
67,
768,
4672,
1140,
18,
318,
1232,
12,
2844,
67,
768,
13,
225,
833,
273,
306,
4172,
67,
908,
6311,
345,
457,
16,
3701,
74,
3113,
810,
67,
768,
16,
3701,
42,
3113,
876,
67,
768,
16,
3701,
56,
3113,
315,
21797,
22,
3113,
3701,
51,
3113,
315,
5141,
33,
20,
18,
21,
3113,
3701,
51,
3113,
315,
15368,
2819,
33,
5034,
3113,
3701,
2
] |
month_name = _localized_name('%B', 12) month_abbr = _localized_name('%b', 12) | month_name = _localized_name('%B', 13) month_abbr = _localized_name('%b', 13) | def __len__(self): return self.len | bf4e6a291d9107ad7fa7d1a006a8988c980c33d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bf4e6a291d9107ad7f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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
327,
365,
18,
1897,
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
] |
self.cd_backup_threaded(self.device, rip_format='ogg') | self.cd_backup_threaded(self.device, rip_format='ogg') | def run(self, rip_format='mp3'): if self.rip_format == 'mp3' : self.cd_backup_threaded(self.device, rip_format='mp3') elif self.rip_format == 'ogg' : self.cd_backup_threaded(self.device, rip_format='ogg') elif self.rip_format == 'wav' : self.cd_backup_threaded(self.device, rip_format='wav') elif self.rip_format == 'flac' : self.cd_backup_threaded(self.device, rip_format='flac') | 2dea6659ea7caf6d2ece3ed17231f52f1963d82e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2dea6659ea7caf6d2ece3ed17231f52f1963d82e/cdbackup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
309,
365,
18,
21335,
67,
2139,
422,
296,
1291,
23,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
1291,
23,
6134,
1327,
365,
18,
21335,
67,
2139,
422,
296,
23972,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
23972,
6134,
1327,
365,
18,
21335,
67,
2139,
422,
296,
24801,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
24801,
6134,
1327,
365,
18,
21335,
67,
2139,
422,
296,
2242,
1077,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
2242,
1077,
6134,
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,
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335,
67,
2139,
422,
296,
1291,
23,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
1291,
23,
6134,
1327,
365,
18,
21335,
67,
2139,
422,
296,
23972,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
23972,
6134,
1327,
365,
18,
21335,
67,
2139,
422,
296,
24801,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
5964,
16,
436,
625,
67,
2139,
2218,
24801,
6134,
1327,
365,
18,
21335,
67,
2139,
422,
296,
2242,
1077,
2
] |
if exercise in student_data.all_proficient_exercises: | if student_data.is_proficient_at(exercise): | def __init__(self, data="", css_class="", link=""): self.data = data self.css_class = css_class self.link = link | 6ac040e5e54a3cdfc977c9a997acc67592b433ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/6ac040e5e54a3cdfc977c9a997acc67592b433ff/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
1546,
3113,
3747,
67,
1106,
1546,
3113,
1692,
1546,
6,
4672,
365,
18,
892,
273,
501,
365,
18,
5212,
67,
1106,
273,
3747,
67,
1106,
365,
18,
1232,
273,
1692,
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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
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,
501,
1546,
3113,
3747,
67,
1106,
1546,
3113,
1692,
1546,
6,
4672,
365,
18,
892,
273,
501,
365,
18,
5212,
67,
1106,
273,
3747,
67,
1106,
365,
18,
1232,
273,
1692,
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
] |
elif canv._pagesize != doc.pagesize: | elif cp != dp: | def checkPageSize(self,canv,doc): '''This gets called by the template framework''' if canv._pagesize != self.pagesize: if self.pagesize: canv.setPageSize(self.pagesize) elif canv._pagesize != doc.pagesize: canv.setPageSize(doc.pagesize) | 2b383a1a4dd1ef83bacc8b08a3744054c8cd5878 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2b383a1a4dd1ef83bacc8b08a3744054c8cd5878/doctemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
24035,
12,
2890,
16,
4169,
90,
16,
2434,
4672,
9163,
2503,
5571,
2566,
635,
326,
1542,
8257,
26418,
309,
848,
90,
6315,
7267,
554,
480,
365,
18,
7267,
554,
30,
309,
365,
18,
7267,
554,
30,
848,
90,
18,
542,
24035,
12,
2890,
18,
7267,
554,
13,
1327,
3283,
480,
9986,
30,
848,
90,
18,
542,
24035,
12,
2434,
18,
7267,
554,
13,
2,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
24035,
12,
2890,
16,
4169,
90,
16,
2434,
4672,
9163,
2503,
5571,
2566,
635,
326,
1542,
8257,
26418,
309,
848,
90,
6315,
7267,
554,
480,
365,
18,
7267,
554,
30,
309,
365,
18,
7267,
554,
30,
848,
90,
18,
542,
24035,
12,
2890,
18,
7267,
554,
13,
1327,
3283,
480,
9986,
30,
848,
90,
18,
542,
24035,
12,
2434,
18,
7267,
554,
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
] |
self.append(AuthorsByCommitsGroup(config)) | self.append(CommitsGroup(config)) | def __init__(self, config): """This constructor takes no parameters. """ GroupStatistic.__init__(self, config, "mpy_svn_stats", "MPY SVN Statistics") self.append(GeneralStatistics(config)) self.append(AuthorsByCommitsGroup(config)) self.append(ChangedPathsGroup(config)) self.append(AuthorsByChangedPaths(config)) self.append(AuthorsByCommitLogSize(config)) self.append(CommitsByWeekGraphStatistic(config)) self._set_writer('html', TopLevelGroupStatisticHTMLWriter(self)) self._want_output_mode('html') | 4b27fadb15d3f44c46e23dd9f9205164147efb6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2516/4b27fadb15d3f44c46e23dd9f9205164147efb6f/msvnstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
4672,
3536,
2503,
3885,
5530,
1158,
1472,
18,
3536,
3756,
20673,
16186,
2738,
972,
12,
2890,
16,
642,
16,
315,
1291,
93,
67,
31505,
67,
5296,
3113,
315,
4566,
61,
29537,
50,
22964,
7923,
365,
18,
6923,
12,
12580,
8569,
12,
1425,
3719,
365,
18,
6923,
12,
23072,
1114,
12,
1425,
3719,
365,
18,
6923,
12,
5033,
4466,
1114,
12,
1425,
3719,
365,
18,
6923,
12,
1730,
1383,
858,
5033,
4466,
12,
1425,
3719,
365,
18,
6923,
12,
1730,
1383,
858,
5580,
1343,
1225,
12,
1425,
3719,
365,
18,
6923,
12,
23072,
858,
6630,
4137,
20673,
12,
1425,
3719,
365,
6315,
542,
67,
6299,
2668,
2620,
2187,
7202,
2355,
1114,
20673,
4870,
2289,
12,
2890,
3719,
365,
6315,
17369,
67,
2844,
67,
3188,
2668,
2620,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
642,
4672,
3536,
2503,
3885,
5530,
1158,
1472,
18,
3536,
3756,
20673,
16186,
2738,
972,
12,
2890,
16,
642,
16,
315,
1291,
93,
67,
31505,
67,
5296,
3113,
315,
4566,
61,
29537,
50,
22964,
7923,
365,
18,
6923,
12,
12580,
8569,
12,
1425,
3719,
365,
18,
6923,
12,
23072,
1114,
12,
1425,
3719,
365,
18,
6923,
12,
5033,
4466,
1114,
12,
1425,
3719,
365,
18,
6923,
12,
1730,
1383,
858,
5033,
4466,
12,
1425,
3719,
365,
18,
6923,
12,
1730,
1383,
858,
5580,
1343,
1225,
12,
1425,
3719,
365,
18,
6923,
12,
23072,
858,
6630,
4137,
20673,
12,
1425,
3719,
365,
6315,
542,
67,
6299,
2668,
2620,
2187,
7202,
2355,
1114,
20673,
2
] |
def get_tasks_nbr(self,workview=False): | def get_tasks_nbr(self,workview=False,children=True): | def get_tasks_nbr(self,workview=False): if workview: temp_list = [] for t in self.tasks: ta = self.req.get_task(t) if ta.get_status() == "Active" and ta.is_workable() and\ ta.is_started(): temp_list.append(t) toreturn = len(temp_list) else: temp_list = [] for t in self.tasks: ta = self.req.get_task(t) if ta.get_status() == "Active" : temp_list.append(t) toreturn = len(temp_list) return toreturn | ad6d034e175319f7742c394d471aba5736545ac8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/ad6d034e175319f7742c394d471aba5736545ac8/tagstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9416,
67,
82,
2848,
12,
2890,
16,
1252,
1945,
33,
8381,
16,
5906,
33,
5510,
4672,
309,
1440,
1945,
30,
1906,
67,
1098,
273,
5378,
364,
268,
316,
365,
18,
9416,
30,
13561,
273,
365,
18,
3658,
18,
588,
67,
4146,
12,
88,
13,
309,
13561,
18,
588,
67,
2327,
1435,
422,
315,
3896,
6,
471,
13561,
18,
291,
67,
1252,
429,
1435,
471,
64,
13561,
18,
291,
67,
14561,
13332,
1906,
67,
1098,
18,
6923,
12,
88,
13,
358,
2463,
273,
562,
12,
5814,
67,
1098,
13,
469,
30,
1906,
67,
1098,
273,
5378,
364,
268,
316,
365,
18,
9416,
30,
13561,
273,
365,
18,
3658,
18,
588,
67,
4146,
12,
88,
13,
309,
13561,
18,
588,
67,
2327,
1435,
422,
315,
3896,
6,
294,
1906,
67,
1098,
18,
6923,
12,
88,
13,
358,
2463,
273,
562,
12,
5814,
67,
1098,
13,
327,
358,
2463,
2,
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,
336,
67,
9416,
67,
82,
2848,
12,
2890,
16,
1252,
1945,
33,
8381,
16,
5906,
33,
5510,
4672,
309,
1440,
1945,
30,
1906,
67,
1098,
273,
5378,
364,
268,
316,
365,
18,
9416,
30,
13561,
273,
365,
18,
3658,
18,
588,
67,
4146,
12,
88,
13,
309,
13561,
18,
588,
67,
2327,
1435,
422,
315,
3896,
6,
471,
13561,
18,
291,
67,
1252,
429,
1435,
471,
64,
13561,
18,
291,
67,
14561,
13332,
1906,
67,
1098,
18,
6923,
12,
88,
13,
358,
2463,
273,
562,
12,
5814,
67,
1098,
13,
469,
30,
1906,
67,
1098,
273,
5378,
364,
268,
316,
365,
18,
9416,
30,
13561,
273,
365,
18,
3658,
18,
588,
67,
4146,
12,
88,
13,
309,
13561,
2
] |
self.handleError() | self.handleError(record) | def emit (self, record): """ A little more verbose emit function. """ try: msg = self.format(record) self.stream.write("%s\n" % msg) self.flush() except: print >>sys.stderr, "Could not format record", record self.handleError() | 5cd49b18dc1167723f4244fbf8c71130b9ecfa73 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5cd49b18dc1167723f4244fbf8c71130b9ecfa73/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
261,
2890,
16,
1409,
4672,
3536,
432,
12720,
1898,
3988,
3626,
445,
18,
3536,
775,
30,
1234,
273,
365,
18,
2139,
12,
3366,
13,
365,
18,
3256,
18,
2626,
27188,
87,
64,
82,
6,
738,
1234,
13,
365,
18,
11330,
1435,
1335,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
4445,
486,
740,
1409,
3113,
1409,
365,
18,
4110,
668,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
261,
2890,
16,
1409,
4672,
3536,
432,
12720,
1898,
3988,
3626,
445,
18,
3536,
775,
30,
1234,
273,
365,
18,
2139,
12,
3366,
13,
365,
18,
3256,
18,
2626,
27188,
87,
64,
82,
6,
738,
1234,
13,
365,
18,
11330,
1435,
1335,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
4445,
486,
740,
1409,
3113,
1409,
365,
18,
4110,
668,
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
] |
response = self.maker.ask('build.ini is in the way of a checkout, but contains information. Delete?') | if maker.interactive: response = self.maker.ask('build.ini is in the way of a checkout, but contains information. Delete?') else: response = 'n' | def run(self): base_dir = self.maker.path('etc/') if os.path.exists(base_dir) and not os.path.exists(os.path.join(base_dir, '.svn')): build_ini = os.path.join(base_dir, 'build.ini') stat = os.stat(build_ini) if self.maker.simulate: self.logger.notify('Would delete %s' % build_ini) return if stat.st_size: response = self.maker.ask('build.ini is in the way of a checkout, but contains information. Delete?') if response == 'n': raise AssertionError( "Cannot continue; %s exists (must be resolved manually)" % build_ini) else: self.logger.info('%s exists but is empty; deleting' % build_ini) os.unlink(build_ini) | c4e78bfeba4ce3e0d7815d483657e4f2dcae188a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12796/c4e78bfeba4ce3e0d7815d483657e4f2dcae188a/topp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1026,
67,
1214,
273,
365,
18,
29261,
18,
803,
2668,
14175,
2473,
13,
309,
1140,
18,
803,
18,
1808,
12,
1969,
67,
1214,
13,
471,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
2418,
31505,
26112,
30,
1361,
67,
8767,
273,
1140,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
296,
3510,
18,
8767,
6134,
610,
273,
1140,
18,
5642,
12,
3510,
67,
8767,
13,
309,
365,
18,
29261,
18,
9812,
6243,
30,
365,
18,
4901,
18,
12336,
2668,
59,
1006,
1430,
738,
87,
11,
738,
1361,
67,
8767,
13,
327,
309,
610,
18,
334,
67,
1467,
30,
309,
312,
6388,
18,
24761,
30,
766,
273,
365,
18,
29261,
18,
835,
2668,
3510,
18,
8767,
353,
316,
326,
4031,
434,
279,
13926,
16,
1496,
1914,
1779,
18,
225,
2504,
4899,
13,
469,
30,
766,
273,
296,
82,
11,
309,
766,
422,
296,
82,
4278,
1002,
12068,
12,
315,
4515,
1324,
31,
738,
87,
1704,
261,
11926,
506,
4640,
10036,
2225,
738,
1361,
67,
8767,
13,
469,
30,
365,
18,
4901,
18,
1376,
29909,
87,
1704,
1496,
353,
1008,
31,
12993,
11,
738,
1361,
67,
8767,
13,
1140,
18,
318,
1232,
12,
3510,
67,
8767,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1026,
67,
1214,
273,
365,
18,
29261,
18,
803,
2668,
14175,
2473,
13,
309,
1140,
18,
803,
18,
1808,
12,
1969,
67,
1214,
13,
471,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
2418,
31505,
26112,
30,
1361,
67,
8767,
273,
1140,
18,
803,
18,
5701,
12,
1969,
67,
1214,
16,
296,
3510,
18,
8767,
6134,
610,
273,
1140,
18,
5642,
12,
3510,
67,
8767,
13,
309,
365,
18,
29261,
18,
9812,
6243,
30,
365,
18,
4901,
18,
12336,
2668,
59,
1006,
1430,
738,
87,
11,
738,
1361,
67,
8767,
13,
327,
309,
610,
18,
334,
67,
1467,
30,
309,
312,
6388,
18,
24761,
30,
2
] |
line_end = information.rfind(" ", line_start, line_start + info_length) if line_end == -1: line_end = line_start + info_length else: line_end = line_start + info_length cur_info_line = information[line_start:line_end] if not(cur_info_line): break if line_start != 0: output_info += " " * indent output_info += "%s\n" % string.lstrip(cur_info_line) line_start = line_end | cur_part += split_char + info_part if cur_part: output_parts.append(cur_part) output_info = output_parts[0] + "\n" for output_part in output_parts[1:]: output_info += " " * indent + output_part + "\n" return output_info def _indent_genbank(information, indent): """Write out information with the specified indent. Unlike _wrapped_genbank, this function makes no attempt to wrap lines -- it assumes that the information already has newlines in the appropriate places, and will add the specified indent to the start of each line. """ info_parts = information.split("\n") output_info = info_parts[0] + "\n" for info_part in info_parts[1:]: output_info += " " * indent + info_part + "\n" | def _wrapped_genbank(information, indent, wrap_space = 1): """Write a line of GenBank info that can wrap over multiple lines. This takes a line of information which can potentially wrap over multiple lines, and breaks it up with carriage returns and indentation so it fits properly. Arguments: o information - The string holding the information we want wrapped in GenBank method. o indent - The indentation on the lines we are writing. o wrap_space - Whether or not to wrap only on spaces in the information. """ info_length = Record.GB_LINE_LENGTH - indent line_start = 0 output_info = "" while 1: if wrap_space: if line_start + info_length >= len(information): line_end = len(information) else: line_end = information.rfind(" ", line_start, line_start + info_length) # if we can't find a space before the end, we are forced # to wrap with what we've got if line_end == -1: line_end = line_start + info_length else: line_end = line_start + info_length cur_info_line = information[line_start:line_end] if not(cur_info_line): break # only add indent spaces if we are not at the start of the info if line_start != 0: output_info += " " * indent # add the actual information output_info += "%s\n" % string.lstrip(cur_info_line) # update where we are at in the information line_start = line_end return output_info | e05c41b65627aad1bc7d6b0728db5ffe770e12ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/e05c41b65627aad1bc7d6b0728db5ffe770e12ae/Record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18704,
67,
4507,
10546,
12,
13117,
16,
3504,
16,
2193,
67,
2981,
273,
404,
4672,
3536,
3067,
279,
980,
434,
10938,
16040,
1123,
716,
848,
2193,
1879,
3229,
2362,
18,
225,
1220,
5530,
279,
980,
434,
1779,
1492,
848,
13935,
2193,
1879,
3229,
2362,
16,
471,
16217,
518,
731,
598,
5926,
27935,
1135,
471,
12018,
1427,
518,
13351,
8214,
18,
225,
13599,
30,
225,
320,
1779,
300,
1021,
533,
19918,
326,
1779,
732,
2545,
5805,
316,
10938,
16040,
707,
18,
225,
320,
3504,
300,
1021,
12018,
603,
326,
2362,
732,
854,
7410,
18,
225,
320,
2193,
67,
2981,
300,
17403,
578,
486,
358,
2193,
1338,
603,
7292,
316,
326,
1779,
18,
3536,
1123,
67,
2469,
273,
5059,
18,
5887,
67,
5997,
67,
7096,
300,
3504,
225,
980,
67,
1937,
273,
374,
876,
67,
1376,
273,
1408,
1323,
404,
30,
309,
2193,
67,
2981,
30,
309,
980,
67,
1937,
397,
1123,
67,
2469,
1545,
562,
12,
13117,
4672,
980,
67,
409,
273,
562,
12,
13117,
13,
469,
30,
980,
67,
409,
273,
1779,
18,
86,
4720,
2932,
3104,
980,
67,
1937,
16,
980,
67,
1937,
397,
1123,
67,
2469,
13,
468,
309,
732,
848,
1404,
1104,
279,
3476,
1865,
326,
679,
16,
732,
854,
13852,
468,
358,
2193,
598,
4121,
732,
8081,
2363,
309,
980,
67,
409,
422,
300,
21,
30,
980,
67,
409,
273,
980,
67,
1937,
397,
1123,
67,
2469,
469,
30,
980,
67,
409,
273,
980,
67,
1937,
397,
1123,
67,
2469,
225,
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,
18704,
67,
4507,
10546,
12,
13117,
16,
3504,
16,
2193,
67,
2981,
273,
404,
4672,
3536,
3067,
279,
980,
434,
10938,
16040,
1123,
716,
848,
2193,
1879,
3229,
2362,
18,
225,
1220,
5530,
279,
980,
434,
1779,
1492,
848,
13935,
2193,
1879,
3229,
2362,
16,
471,
16217,
518,
731,
598,
5926,
27935,
1135,
471,
12018,
1427,
518,
13351,
8214,
18,
225,
13599,
30,
225,
320,
1779,
300,
1021,
533,
19918,
326,
1779,
732,
2545,
5805,
316,
10938,
16040,
707,
18,
225,
320,
3504,
300,
1021,
12018,
603,
326,
2362,
732,
854,
7410,
18,
225,
320,
2193,
67,
2981,
300,
17403,
578,
486,
358,
2193,
1338,
603,
7292,
316,
326,
1779,
18,
3536,
1123,
67,
2469,
273,
5059,
2
] |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def func(off, param): off.mark = param return True | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
3674,
16,
579,
4672,
3397,
18,
3355,
273,
579,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
3674,
16,
579,
4672,
3397,
18,
3355,
273,
579,
327,
1053,
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
] |
data = self.fd.read(8) | data = self.fd.read(12) | def __del__(self): data = self.fd.read(8) if len(data) >= 8: self.enddata = data[-8:] else: self.enddata = self.enddata[-len(data):] + data (crc32, isize) = unpack("<iI", self.enddata) if crc32 != self.crcval: print self.filename, "CRC check failed:", crc32, self.crcval if isize != self.length: print self.filename, "Incorrect length of data produced:", \ isize, self.length if isize != self.length2 and self.length2 != None: print self.filename, "Incorrect length of data produced:", \ self.length2 | e330f2eacc46ad1d65a18b3dfd497cca0f80a860 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/e330f2eacc46ad1d65a18b3dfd497cca0f80a860/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
501,
273,
365,
18,
8313,
18,
896,
12,
2138,
13,
309,
562,
12,
892,
13,
1545,
1725,
30,
365,
18,
409,
892,
273,
501,
18919,
28,
26894,
469,
30,
365,
18,
409,
892,
273,
365,
18,
409,
892,
18919,
1897,
12,
892,
4672,
65,
397,
501,
261,
22988,
1578,
16,
353,
554,
13,
273,
6167,
2932,
32,
77,
45,
3113,
365,
18,
409,
892,
13,
309,
10619,
1578,
480,
365,
18,
22988,
1125,
30,
1172,
365,
18,
3459,
16,
315,
26803,
866,
2535,
2773,
16,
10619,
1578,
16,
365,
18,
22988,
1125,
309,
353,
554,
480,
365,
18,
2469,
30,
1172,
365,
18,
3459,
16,
315,
16268,
769,
434,
501,
14929,
2773,
16,
521,
353,
554,
16,
365,
18,
2469,
309,
353,
554,
480,
365,
18,
2469,
22,
471,
365,
18,
2469,
22,
480,
599,
30,
1172,
365,
18,
3459,
16,
315,
16268,
769,
434,
501,
14929,
2773,
16,
521,
365,
18,
2469,
22,
2,
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,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
501,
273,
365,
18,
8313,
18,
896,
12,
2138,
13,
309,
562,
12,
892,
13,
1545,
1725,
30,
365,
18,
409,
892,
273,
501,
18919,
28,
26894,
469,
30,
365,
18,
409,
892,
273,
365,
18,
409,
892,
18919,
1897,
12,
892,
4672,
65,
397,
501,
261,
22988,
1578,
16,
353,
554,
13,
273,
6167,
2932,
32,
77,
45,
3113,
365,
18,
409,
892,
13,
309,
10619,
1578,
480,
365,
18,
22988,
1125,
30,
1172,
365,
18,
3459,
16,
315,
26803,
866,
2535,
2773,
16,
10619,
1578,
16,
365,
18,
22988,
1125,
309,
353,
554,
480,
365,
18,
2469,
30,
1172,
365,
18,
3459,
16,
315,
16268,
769,
434,
501,
14929,
2773,
2
] |
self.inputPortByName[conn.destination.name] = srcModule.id | self.inputPortByName[name] = srcModule.id | def inspectInputOutputPorts(self, pipeline): """ inspectInputOutputPorts(pipeline: Pipeline) -> None Inspect the pipeline input/output ports, useful for submodule """ self.inputPorts = {} self.inputPortByName = {} self.outputPorts = {} self.outputPortByName = {} for cId, conn in pipeline.connections.iteritems(): srcModule = pipeline.modules[conn.source.moduleId] dstModule = pipeline.modules[conn.destination.moduleId] if srcModule.name=='InputPort': spec = registry.getInputPortSpec(dstModule, conn.destination.name) self.inputPorts[srcModule.id] = (conn.destination.name, spec[0]) self.inputPortByName[conn.destination.name] = srcModule.id if dstModule.name=='OutputPort': spec = registry.getOutputPortSpec(srcModule, conn.source.name) self.outputPorts[dstModule.id] = (conn.source.name, spec[0]) self.outputPortByName[conn.source.name] = dstModule.id | c76bfb7ce160a1d59f04392e0e2b3bb8fd3c7262 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/c76bfb7ce160a1d59f04392e0e2b3bb8fd3c7262/inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5334,
1210,
1447,
11107,
12,
2890,
16,
5873,
4672,
3536,
5334,
1210,
1447,
11107,
12,
14511,
30,
13671,
13,
317,
599,
20045,
326,
5873,
810,
19,
2844,
9048,
16,
5301,
364,
27314,
225,
3536,
365,
18,
2630,
11107,
273,
2618,
365,
18,
2630,
2617,
5911,
273,
2618,
365,
18,
2844,
11107,
273,
2618,
365,
18,
2844,
2617,
5911,
273,
2618,
364,
276,
548,
16,
1487,
316,
5873,
18,
13313,
18,
2165,
3319,
13332,
1705,
3120,
273,
5873,
18,
6400,
63,
4646,
18,
3168,
18,
2978,
548,
65,
3046,
3120,
273,
5873,
18,
6400,
63,
4646,
18,
10590,
18,
2978,
548,
65,
309,
1705,
3120,
18,
529,
18920,
1210,
2617,
4278,
857,
273,
4023,
18,
588,
1210,
2617,
1990,
12,
11057,
3120,
16,
1487,
18,
10590,
18,
529,
13,
365,
18,
2630,
11107,
63,
4816,
3120,
18,
350,
65,
273,
261,
4646,
18,
10590,
18,
529,
16,
857,
63,
20,
5717,
365,
18,
2630,
2617,
5911,
63,
529,
65,
273,
1705,
3120,
18,
350,
309,
3046,
3120,
18,
529,
18920,
1447,
2617,
4278,
857,
273,
4023,
18,
588,
1447,
2617,
1990,
12,
4816,
3120,
16,
1487,
18,
3168,
18,
529,
13,
365,
18,
2844,
11107,
63,
11057,
3120,
18,
350,
65,
273,
261,
4646,
18,
3168,
18,
529,
16,
857,
63,
20,
5717,
365,
18,
2844,
2617,
5911,
63,
4646,
18,
3168,
18,
529,
65,
273,
3046,
3120,
18,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5334,
1210,
1447,
11107,
12,
2890,
16,
5873,
4672,
3536,
5334,
1210,
1447,
11107,
12,
14511,
30,
13671,
13,
317,
599,
20045,
326,
5873,
810,
19,
2844,
9048,
16,
5301,
364,
27314,
225,
3536,
365,
18,
2630,
11107,
273,
2618,
365,
18,
2630,
2617,
5911,
273,
2618,
365,
18,
2844,
11107,
273,
2618,
365,
18,
2844,
2617,
5911,
273,
2618,
364,
276,
548,
16,
1487,
316,
5873,
18,
13313,
18,
2165,
3319,
13332,
1705,
3120,
273,
5873,
18,
6400,
63,
4646,
18,
3168,
18,
2978,
548,
65,
3046,
3120,
273,
5873,
18,
6400,
63,
4646,
18,
10590,
18,
2978,
548,
65,
309,
1705,
3120,
18,
529,
18920,
1210,
2617,
4278,
857,
273,
4023,
18,
588,
1210,
2617,
1990,
2
] |
eq(int(time.mktime(timetup[:9])), 1044470846) | t = int(time.mktime(timetup[:9])) eq(time.localtime(t)[:6], timetup[:6]) | def test_parsedate_acceptable_to_time_functions(self): eq = self.assertEqual timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup)), 1044470846) eq(int(time.strftime('%Y', timetup)), 2003) timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup[:9])), 1044470846) eq(int(time.strftime('%Y', timetup[:9])), 2003) | e3dd5b2c87dbab223d32fae544595cc5b54baf69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e3dd5b2c87dbab223d32fae544595cc5b54baf69/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
712,
67,
9436,
429,
67,
869,
67,
957,
67,
10722,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
26668,
416,
273,
6091,
18,
2670,
712,
2668,
25,
5782,
70,
4044,
23,
5958,
30,
9462,
30,
5558,
300,
6840,
713,
6134,
7555,
12,
474,
12,
957,
18,
24816,
957,
12,
8584,
278,
416,
13,
3631,
1728,
6334,
24,
7301,
5193,
26,
13,
7555,
12,
474,
12,
957,
18,
701,
9982,
29909,
61,
2187,
26668,
416,
13,
3631,
4044,
23,
13,
26668,
416,
273,
6091,
18,
2670,
712,
67,
12994,
2668,
25,
5782,
70,
4044,
23,
5958,
30,
9462,
30,
5558,
300,
6840,
713,
6134,
268,
273,
509,
12,
957,
18,
24816,
957,
12,
8584,
278,
416,
10531,
29,
22643,
7555,
12,
957,
18,
3729,
957,
12,
88,
13,
10531,
26,
6487,
26668,
416,
10531,
26,
5717,
7555,
12,
474,
12,
957,
18,
701,
9982,
29909,
61,
2187,
26668,
416,
10531,
29,
5717,
3631,
4044,
23,
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,
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12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
26668,
416,
273,
6091,
18,
2670,
712,
2668,
25,
5782,
70,
4044,
23,
5958,
30,
9462,
30,
5558,
300,
6840,
713,
6134,
7555,
12,
474,
12,
957,
18,
24816,
957,
12,
8584,
278,
416,
13,
3631,
1728,
6334,
24,
7301,
5193,
26,
13,
7555,
12,
474,
12,
957,
18,
701,
9982,
29909,
61,
2187,
26668,
416,
13,
3631,
4044,
23,
13,
26668,
416,
273,
6091,
18,
2670,
712,
67,
12994,
2668,
25,
5782,
70,
4044,
23,
5958,
30,
9462,
30,
5558,
300,
6840,
713,
6134,
268,
273,
509,
12,
957,
18,
24816,
957,
12,
8584,
278,
2
] |
del args[i:i+2] | to_del.extend([i, i+1]) to_del.reverse() for i in to_del: del args[i] | def preprocess_options(args, search_for): """look for some options (keys of <search_for>) which have to be processed before others values of <search_for> are callback functions to call when the option is found """ for i, arg in enumerate(args): for option in search_for: if arg.startswith('--%s=' % option): search_for[option](option, arg[len(option)+3:]) del args[i] elif arg == '--%s' % option: search_for[option](option, args[i + 1]) del args[i:i+2] | 1c0e79285222a0dda1baa572aaddc4843caf7603 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/928/1c0e79285222a0dda1baa572aaddc4843caf7603/lint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
67,
2116,
12,
1968,
16,
1623,
67,
1884,
4672,
3536,
7330,
364,
2690,
702,
261,
2452,
434,
411,
3072,
67,
1884,
23429,
1492,
1240,
358,
506,
5204,
1865,
10654,
225,
924,
434,
411,
3072,
67,
1884,
34,
854,
1348,
4186,
358,
745,
1347,
326,
1456,
353,
1392,
3536,
364,
277,
16,
1501,
316,
4241,
12,
1968,
4672,
364,
1456,
316,
1623,
67,
1884,
30,
309,
1501,
18,
17514,
1918,
2668,
413,
9,
87,
2218,
738,
1456,
4672,
1623,
67,
1884,
63,
3482,
29955,
3482,
16,
1501,
63,
1897,
12,
3482,
27921,
23,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
67,
2116,
12,
1968,
16,
1623,
67,
1884,
4672,
3536,
7330,
364,
2690,
702,
261,
2452,
434,
411,
3072,
67,
1884,
23429,
1492,
1240,
358,
506,
5204,
1865,
10654,
225,
924,
434,
411,
3072,
67,
1884,
34,
854,
1348,
4186,
358,
745,
1347,
326,
1456,
353,
1392,
3536,
364,
277,
16,
1501,
316,
4241,
12,
1968,
4672,
364,
1456,
316,
1623,
67,
1884,
30,
309,
1501,
18,
17514,
1918,
2668,
413,
9,
87,
2218,
738,
1456,
4672,
1623,
67,
1884,
63,
3482,
29955,
3482,
16,
1501,
63,
1897,
12,
3482,
27921,
23,
30,
5717,
1464,
833,
63,
77,
65,
1327,
1501,
422,
3534,
9,
87,
11,
738,
1456,
30,
1623,
67,
1884,
63,
3482,
29955,
3482,
16,
2
] |
"""Test signal handling semantics of threads. We spawn a thread, have the thread send two signals, and wait for it to finish. Check that we got both signals and that they were run by the main thread. """ | def send_signals(): os.kill(process_pid, signal.SIGUSR1) os.kill(process_pid, signal.SIGUSR2) signalled_all.release() | 810023db3e91c18f428e27378d00c3a5a56330c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/810023db3e91c18f428e27378d00c3a5a56330c6/test_threadsignals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
29659,
13332,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
21,
13,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
29659,
13332,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
21,
13,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
22,
13,
4277,
1259,
67,
454,
18,
9340,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.assertEquals(g, types.FloatType) | self.assertEquals(type(g), types.FloatType) | def test_sex_to_deg(self): for k in (lambda x: x, 3, object()): self.assertRaises(TypeError, cv.Alpha.sex_to_deg, k) | 953961da843d938d519dc23212d0315db9190080 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/953961da843d938d519dc23212d0315db9190080/test_coordconvert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20909,
67,
869,
67,
9923,
12,
2890,
4672,
364,
417,
316,
261,
14661,
619,
30,
619,
16,
890,
16,
733,
1435,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
8951,
18,
9690,
18,
20909,
67,
869,
67,
9923,
16,
417,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20909,
67,
869,
67,
9923,
12,
2890,
4672,
364,
417,
316,
261,
14661,
619,
30,
619,
16,
890,
16,
733,
1435,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
8951,
18,
9690,
18,
20909,
67,
869,
67,
9923,
16,
417,
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
] |
print monitor | def save_result2(self, name, monitor): if not self.doing_batch: print "HTMLLogger.save_result2() called while not doing batch." return print monitor if monitor.virtual_fail_count() == 0: status = True else: status = False if not status: fail_time = self.format_datetime(monitor.first_failure_time()) fail_count = monitor.virtual_fail_count() fail_data = monitor.get_result() downtime = self.get_downtime(monitor) else: fail_time = "" fail_count = 0 fail_data = "" downtime = "" failures = monitor.failures last_failure = monitor.last_failure | 9dd2ae6fa7080008173dd7d19765d6a7fb7cf32b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8800/9dd2ae6fa7080008173dd7d19765d6a7fb7cf32b/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
2088,
22,
12,
2890,
16,
508,
16,
6438,
4672,
309,
486,
365,
18,
2896,
310,
67,
5303,
30,
1172,
315,
4870,
3328,
18,
5688,
67,
2088,
22,
1435,
2566,
1323,
486,
9957,
2581,
1199,
327,
309,
6438,
18,
12384,
67,
6870,
67,
1883,
1435,
422,
374,
30,
1267,
273,
1053,
469,
30,
1267,
273,
1083,
309,
486,
1267,
30,
2321,
67,
957,
273,
365,
18,
2139,
67,
6585,
12,
10259,
18,
3645,
67,
12251,
67,
957,
10756,
2321,
67,
1883,
273,
6438,
18,
12384,
67,
6870,
67,
1883,
1435,
2321,
67,
892,
273,
6438,
18,
588,
67,
2088,
1435,
22095,
29367,
273,
365,
18,
588,
67,
72,
543,
29367,
12,
10259,
13,
469,
30,
2321,
67,
957,
273,
1408,
2321,
67,
1883,
273,
374,
2321,
67,
892,
273,
1408,
22095,
29367,
273,
1408,
11720,
273,
6438,
18,
26268,
1142,
67,
12251,
273,
6438,
18,
2722,
67,
12251,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6438,
4672,
309,
486,
365,
18,
2896,
310,
67,
5303,
30,
1172,
315,
4870,
3328,
18,
5688,
67,
2088,
22,
1435,
2566,
1323,
486,
9957,
2581,
1199,
327,
309,
6438,
18,
12384,
67,
6870,
67,
1883,
1435,
422,
374,
30,
1267,
273,
1053,
469,
30,
1267,
273,
1083,
309,
486,
1267,
30,
2321,
67,
957,
273,
365,
18,
2139,
67,
6585,
12,
10259,
18,
3645,
67,
12251,
67,
957,
10756,
2321,
67,
1883,
273,
6438,
18,
12384,
67,
6870,
67,
1883,
1435,
2321,
67,
892,
273,
6438,
18,
588,
67,
2088,
1435,
22095,
29367,
273,
365,
18,
588,
67,
72,
543,
29367,
12,
10259,
13,
469,
30,
2321,
67,
2
] |
|
self.trace += " - - External add of %s\n" %tid | if DEBUG: self.trace += " - - External add of %s\n" %tid | def __execution_loop(self): while len(self.__updating_queue) > 0: tid,action = self.__updating_queue.pop(0) | d1e2e3781c819eab079c7a3534f1638eeb7d7317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/d1e2e3781c819eab079c7a3534f1638eeb7d7317/filteredtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16414,
67,
6498,
12,
2890,
4672,
1323,
562,
12,
2890,
16186,
5533,
1776,
67,
4000,
13,
405,
374,
30,
11594,
16,
1128,
273,
365,
16186,
5533,
1776,
67,
4000,
18,
5120,
12,
20,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16414,
67,
6498,
12,
2890,
4672,
1323,
562,
12,
2890,
16186,
5533,
1776,
67,
4000,
13,
405,
374,
30,
11594,
16,
1128,
273,
365,
16186,
5533,
1776,
67,
4000,
18,
5120,
12,
20,
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
] |
statdata = os.stat(path) | try: statdata = os.stat(path) except Exception, e: continue | def update_dir(self, parent, dir): print _('Updating directory %s') % dir dir_id = self.db.get_dir_id(parent, dir) | c3b2de0a06f6e20def6a73a1b5bab29cf28d5751 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8736/c3b2de0a06f6e20def6a73a1b5bab29cf28d5751/fs_source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1214,
12,
2890,
16,
982,
16,
1577,
4672,
1172,
389,
2668,
17858,
1867,
738,
87,
6134,
738,
1577,
1577,
67,
350,
273,
365,
18,
1966,
18,
588,
67,
1214,
67,
350,
12,
2938,
16,
1577,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1214,
12,
2890,
16,
982,
16,
1577,
4672,
1172,
389,
2668,
17858,
1867,
738,
87,
6134,
738,
1577,
1577,
67,
350,
273,
365,
18,
1966,
18,
588,
67,
1214,
67,
350,
12,
2938,
16,
1577,
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
] |
zipfiles = __import__("Bio.config", {}, {}, ["Bio"]).__loader__.files | zipfiles = __import__("Bio.config", {}, {}, ["Bio"]).__loader__._files | def _load_registries(): import sys, os from Bio.config.Registry import Registry if getattr(sys, "version_info", (1, 5))[:2] < (2, 1): return self = sys.modules[__name__] # self refers to this module. # Load the registries. Look in all the '.py' files in Bio.config # for Registry objects. Save them all into the local namespace. # Import code changed to allow for compilation with py2exe from distutils # import Bio.config config_imports = __import__("Bio.config", {}, {}, ["Bio"]) # in a zipfile if hasattr(config_imports, '__loader__'): zipfiles = __import__("Bio.config", {}, {}, ["Bio"]).__loader__.files # Get only Bio.config modules x = [zipfiles[file][0] for file in zipfiles.keys() \ if 'Bio\\config' in file] x = [name.split("\\")[-1] for name in x] # Get module name x = map(lambda x: x[:-4], x) # chop off '.pyc' # not in a zipfile, get files normally else: x = os.listdir(os.path.dirname(config_imports.__file__)) x = filter(lambda x: not x.startswith("_") and x.endswith(".py"), x) x = map(lambda x: x[:-3], x) # chop off '.py' for module in x: module = __import__("Bio.config.%s" % module, {}, {}, ["Bio","config"]) for name, obj in module.__dict__.items(): if name.startswith("_") or not isinstance(obj, Registry): continue setattr(self, name, obj) | 842b4feb79cca42c6f940996918fe3484ce525a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/842b4feb79cca42c6f940996918fe3484ce525a8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
1574,
22796,
13332,
1930,
2589,
16,
1140,
628,
21209,
18,
1425,
18,
4243,
1930,
5438,
225,
309,
3869,
12,
9499,
16,
315,
1589,
67,
1376,
3113,
261,
21,
16,
1381,
3719,
10531,
22,
65,
411,
261,
22,
16,
404,
4672,
327,
225,
365,
273,
2589,
18,
6400,
63,
972,
529,
972,
65,
3639,
468,
365,
21368,
358,
333,
1605,
18,
468,
4444,
326,
960,
22796,
18,
225,
10176,
316,
777,
326,
2418,
2074,
11,
1390,
316,
21209,
18,
1425,
468,
364,
5438,
2184,
18,
225,
7074,
2182,
777,
1368,
326,
1191,
1981,
18,
468,
6164,
981,
3550,
358,
1699,
364,
8916,
598,
2395,
22,
14880,
628,
2411,
5471,
468,
1930,
21209,
18,
1425,
642,
67,
21350,
273,
1001,
5666,
972,
2932,
38,
1594,
18,
1425,
3113,
10615,
10615,
8247,
38,
1594,
6,
5717,
468,
316,
279,
18823,
309,
3859,
12,
1425,
67,
21350,
16,
4940,
6714,
7250,
4672,
3144,
2354,
273,
1001,
5666,
972,
2932,
38,
1594,
18,
1425,
3113,
10615,
10615,
8247,
38,
1594,
11929,
2934,
972,
6714,
972,
6315,
2354,
468,
968,
1338,
21209,
18,
1425,
4381,
619,
273,
306,
4450,
2354,
63,
768,
6362,
20,
65,
364,
585,
316,
3144,
2354,
18,
2452,
1435,
521,
309,
296,
38,
1594,
1695,
1425,
11,
316,
585,
65,
619,
273,
306,
529,
18,
4939,
2932,
1695,
7923,
18919,
21,
65,
364,
508,
316,
619,
65,
468,
968,
1605,
508,
619,
273,
852,
12,
14661,
619,
30,
619,
10531,
17,
24,
6487,
619,
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,
389,
945,
67,
1574,
22796,
13332,
1930,
2589,
16,
1140,
628,
21209,
18,
1425,
18,
4243,
1930,
5438,
225,
309,
3869,
12,
9499,
16,
315,
1589,
67,
1376,
3113,
261,
21,
16,
1381,
3719,
10531,
22,
65,
411,
261,
22,
16,
404,
4672,
327,
225,
365,
273,
2589,
18,
6400,
63,
972,
529,
972,
65,
3639,
468,
365,
21368,
358,
333,
1605,
18,
468,
4444,
326,
960,
22796,
18,
225,
10176,
316,
777,
326,
2418,
2074,
11,
1390,
316,
21209,
18,
1425,
468,
364,
5438,
2184,
18,
225,
7074,
2182,
777,
1368,
326,
1191,
1981,
18,
468,
6164,
981,
3550,
358,
1699,
364,
8916,
598,
2395,
22,
14880,
628,
2411,
5471,
468,
1930,
21209,
18,
1425,
642,
67,
2
] |
if istextfile and node.has_text(): | if istextfile: | def __process_rev( self, srcdmp, dstdmp ): """ Process one revision. | 3814f386f95d228e0d3c6e9649f3656bc6de4df6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13212/3814f386f95d228e0d3c6e9649f3656bc6de4df6/eolfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2567,
67,
9083,
12,
365,
16,
1705,
72,
1291,
16,
3046,
72,
1291,
262,
30,
3536,
4389,
1245,
6350,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2567,
67,
9083,
12,
365,
16,
1705,
72,
1291,
16,
3046,
72,
1291,
262,
30,
3536,
4389,
1245,
6350,
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
] |
def __init__(self, application_cl): | def __init__(self, application_cl, return_code): | def __init__(self, application_cl): """Intialize with the commandline from the program. """ self._cl = application_cl | b7751d2dce73ee23b2a5225256829f11da855b4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/b7751d2dce73ee23b2a5225256829f11da855b4b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
67,
830,
16,
327,
67,
710,
4672,
3536,
1702,
1710,
598,
326,
28305,
628,
326,
5402,
18,
3536,
365,
6315,
830,
273,
2521,
67,
830,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
67,
830,
16,
327,
67,
710,
4672,
3536,
1702,
1710,
598,
326,
28305,
628,
326,
5402,
18,
3536,
365,
6315,
830,
273,
2521,
67,
830,
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
] |
obj.set_text(elem, unicode(val)) | obj.set_text(elem, self.renderer(val)) | def __set__(self, obj, val): elem = obj.get_metadata_element(self.name) if val is None: if elem is not None: elem.getparent().remove(elem) return if elem is None: elem = obj.create_metadata_element(self.name, is_dc=self.is_dc) obj.set_text(elem, unicode(val)) | 199d870b191ab863f21a4f55341501cbacd5c51b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/199d870b191ab863f21a4f55341501cbacd5c51b/opf2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
972,
12,
2890,
16,
1081,
16,
1244,
4672,
3659,
273,
1081,
18,
588,
67,
4165,
67,
2956,
12,
2890,
18,
529,
13,
309,
1244,
353,
599,
30,
309,
3659,
353,
486,
599,
30,
3659,
18,
588,
2938,
7675,
4479,
12,
10037,
13,
327,
309,
3659,
353,
599,
30,
3659,
273,
1081,
18,
2640,
67,
4165,
67,
2956,
12,
2890,
18,
529,
16,
353,
67,
7201,
33,
2890,
18,
291,
67,
7201,
13,
1081,
18,
542,
67,
955,
12,
10037,
16,
5252,
12,
1125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
972,
12,
2890,
16,
1081,
16,
1244,
4672,
3659,
273,
1081,
18,
588,
67,
4165,
67,
2956,
12,
2890,
18,
529,
13,
309,
1244,
353,
599,
30,
309,
3659,
353,
486,
599,
30,
3659,
18,
588,
2938,
7675,
4479,
12,
10037,
13,
327,
309,
3659,
353,
599,
30,
3659,
273,
1081,
18,
2640,
67,
4165,
67,
2956,
12,
2890,
18,
529,
16,
353,
67,
7201,
33,
2890,
18,
291,
67,
7201,
13,
1081,
18,
542,
67,
955,
12,
10037,
16,
5252,
12,
1125,
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
] |
f = urllib2.urlopen(url, req) | f = urlopen(url, req) | def _test_urls(self, urls, handlers): import socket import time import logging debug = logging.getLogger("test_urllib2").debug | b0a6dbd218e0b3c92b3a49454b888b6e15ea563c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b0a6dbd218e0b3c92b3a49454b888b6e15ea563c/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4148,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4148,
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
] |
testvalue=testvalue.lower() | testvalue=safe_unicode(testvalue.lower()) | def testMemberData(self, memberdata, criteria, exact_match=False): """Test if a memberdata matches the search criteria. """ for (key, value) in criteria.items(): testvalue=memberdata.get(key, None) if testvalue is None: return False | 9409de6b33d6e3e1ae4eddc8c9c1b9a1e455ec88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12230/9409de6b33d6e3e1ae4eddc8c9c1b9a1e455ec88/property.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4419,
751,
12,
2890,
16,
3140,
892,
16,
3582,
16,
5565,
67,
1916,
33,
8381,
4672,
3536,
4709,
309,
279,
3140,
892,
1885,
326,
1623,
3582,
18,
3536,
364,
261,
856,
16,
460,
13,
316,
3582,
18,
3319,
13332,
1842,
1132,
33,
5990,
892,
18,
588,
12,
856,
16,
599,
13,
309,
1842,
1132,
353,
599,
30,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
751,
12,
2890,
16,
3140,
892,
16,
3582,
16,
5565,
67,
1916,
33,
8381,
4672,
3536,
4709,
309,
279,
3140,
892,
1885,
326,
1623,
3582,
18,
3536,
364,
261,
856,
16,
460,
13,
316,
3582,
18,
3319,
13332,
1842,
1132,
33,
5990,
892,
18,
588,
12,
856,
16,
599,
13,
309,
1842,
1132,
353,
599,
30,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ret = subprocess.Popen.poll(self, _deadstate) | if _deadstate is None: ret = subprocess.Popen.poll(self) else: ret = subprocess.Popen.poll(self, _deadstate) | def poll(self, _deadstate=None): # _deadstate required by base class in python 2.4 if self.returncode is None: ret = subprocess.Popen.poll(self, _deadstate) if (ret != -1): self.returncode = ret self._cleanup() return self.returncode | 1a8df9318f32f8d23109d9daf372a8e909aae82f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/1a8df9318f32f8d23109d9daf372a8e909aae82f/brokertest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
565,
468,
389,
22097,
2019,
1931,
635,
1026,
667,
316,
5790,
576,
18,
24,
309,
365,
18,
2463,
710,
353,
599,
30,
282,
309,
389,
22097,
2019,
353,
599,
30,
325,
273,
6652,
18,
52,
3190,
18,
13835,
12,
2890,
13,
469,
30,
325,
273,
6652,
18,
52,
3190,
18,
13835,
12,
2890,
16,
389,
22097,
2019,
13,
225,
309,
261,
1349,
480,
300,
21,
4672,
365,
18,
2463,
710,
273,
325,
365,
6315,
16732,
1435,
327,
365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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
565,
468,
389,
22097,
2019,
1931,
635,
1026,
667,
316,
5790,
576,
18,
24,
309,
365,
18,
2463,
710,
353,
599,
30,
282,
309,
389,
22097,
2019,
353,
599,
30,
325,
273,
6652,
18,
52,
3190,
18,
13835,
12,
2890,
13,
469,
30,
325,
273,
6652,
18,
52,
3190,
18,
13835,
12,
2890,
16,
389,
22097,
2019,
13,
225,
309,
261,
1349,
480,
300,
21,
4672,
365,
18,
2463,
710,
273,
325,
365,
6315,
16732,
1435,
327,
365,
18,
2463,
710,
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
] |
hash = md5.new(fobj.hexdigest()) | def hashFile(f): """ Expect a file name or a cStringIO.StringIO object. """ try: fobj = f.read() hash = md5.new(fobj.hexdigest()) except AttributeError: fobj = file(f,'rb') hash = md5.new(fobj.read()).hexdigest() fobj.close(); return hash | b39aa48d3e68a034cfa87e740136ca1cc0a4a163 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/b39aa48d3e68a034cfa87e740136ca1cc0a4a163/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
812,
12,
74,
4672,
3536,
15510,
279,
585,
508,
578,
279,
276,
780,
4294,
18,
780,
4294,
733,
18,
3536,
775,
30,
24705,
273,
284,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
812,
12,
74,
4672,
3536,
15510,
279,
585,
508,
578,
279,
276,
780,
4294,
18,
780,
4294,
733,
18,
3536,
775,
30,
24705,
273,
284,
18,
896,
1435,
1335,
6394,
30,
24705,
273,
585,
12,
74,
11189,
6731,
6134,
1651,
273,
3481,
25,
18,
2704,
12,
27936,
18,
896,
1435,
2934,
7118,
10171,
1435,
24705,
18,
4412,
5621,
327,
1651,
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
] |
|
for group_id in source.get_groups_roles_map().keys(): group_users.extend(source.group_member_ids(group_id)) | for group_id in self.sources[source_id]['group_map'].keys(): group_users.extend( source.group_member_ids(group_id) ) | def get_users(self): if not hasattr(self, '_v_external_user_cache'): self._v_external_user_cache = {} cache = self._v_external_user_cache users = [] | 7526a52095140d7fa1a40058dd637668575d6ce0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7526a52095140d7fa1a40058dd637668575d6ce0/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
3677,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
3677,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
from UserDict import DictMixin class SeqDict(DictMixin): | class SeqDict(UserDict.DictMixin): | def display(self): print self | ec534711e4b71fc2371ae539c8020de92d7ce300 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ec534711e4b71fc2371ae539c8020de92d7ce300/test_userdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
4672,
1172,
365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2890,
4672,
1172,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
lastroot=eServiceReference(config.radio.lastroot.value) lastservice=eServiceReference(config.radio.lastservice.value) if lastroot.valid() and self.getRoot() != lastroot: self.setRoot(lastroot) if lastservice.valid() and self.getCurrentSelection() != lastservice: self.servicelist.setCurrent(lastservice) | def closeRadio(self): self.info.instance.hide() lastroot=eServiceReference(config.radio.lastroot.value) lastservice=eServiceReference(config.radio.lastservice.value) if lastroot.valid() and self.getRoot() != lastroot: self.setRoot(lastroot) if lastservice.valid() and self.getCurrentSelection() != lastservice: self.servicelist.setCurrent(lastservice) #set previous tv service lastservice=eServiceReference(config.tv.lastservice.value) self.session.nav.playService(lastservice) self.close(None) | eec9fe4a7e1381ee158c75431bc5fdd685b8f552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/eec9fe4a7e1381ee158c75431bc5fdd685b8f552/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
19984,
12,
2890,
4672,
365,
18,
1376,
18,
1336,
18,
11248,
1435,
468,
542,
2416,
13521,
1156,
1142,
3278,
33,
73,
1179,
2404,
12,
1425,
18,
24161,
18,
2722,
3278,
18,
1132,
13,
365,
18,
3184,
18,
11589,
18,
1601,
1179,
12,
2722,
3278,
13,
365,
18,
4412,
12,
7036,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
19984,
12,
2890,
4672,
365,
18,
1376,
18,
1336,
18,
11248,
1435,
468,
542,
2416,
13521,
1156,
1142,
3278,
33,
73,
1179,
2404,
12,
1425,
18,
24161,
18,
2722,
3278,
18,
1132,
13,
365,
18,
3184,
18,
11589,
18,
1601,
1179,
12,
2722,
3278,
13,
365,
18,
4412,
12,
7036,
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
] |
|
nbrmax = 0 | nbrmax = 1 | def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' # # Import normal fields # for i in range(len(fields)): if i>=len(line): raise 'Please check that all your lines have %d cols.' % (len(fields),) field = fields[i] if (len(field)==len(prefix)+1) and field[len(prefix)].endswith(':id'): res_id = False if line[i]: if fields_def[field[len(prefix)][:-3]]['type']=='many2many': res_id = [] for word in line[i].split(','): module, xml_id = word.rsplit('.', 1) ir_model_data_obj = self.pool.get('ir.model.data') id=ir_model_data_obj._get_id(cr, uid, module, xml_id) res_id2=ir_model_data_obj.read(cr, uid, [id], ['res_id'])[0]['res_id'] if res_id2: res_id.append(res_id2) if len(res_id): res_id=[(6,0,res_id)] else: module, xml_id = line[i].rsplit('.', 1) ir_model_data_obj = self.pool.get('ir.model.data') id=ir_model_data_obj._get_id(cr, uid, module, xml_id) res_id=ir_model_data_obj.read(cr, uid, [id], ['res_id'])[0]['res_id'] row[field[0][:-3]] = res_id or False continue if (len(field)==len(prefix)+1) and len(field[len(prefix)].split(':lang=')) == 2: f, lang = field[len(prefix)].split(':lang=') translate.setdefault(lang, {})[f]=line[i] or False continue if (len(field)==len(prefix)+1) and (prefix==field[0:len(prefix)]): if fields_def[field[len(prefix)]]['type']=='integer': res =line[i] and int(line[i]) elif fields_def[field[len(prefix)]]['type']=='float': res =line[i] and float(line[i]) elif fields_def[field[len(prefix)]]['type']=='selection': res = False for key,val in fields_def[field[len(prefix)]]['selection']: if key==line[i]: #val==line[i] if from the client ! res = key if line[i] and not res: logger = netsvc.Logger() logger.notifyChannel("import", netsvc.LOG_WARNING, "key '%s' not found in selection field '%s'" %(line[i], field[len(prefix)])) elif fields_def[field[len(prefix)]]['type']=='many2one': res = False if line[i]: relation = fields_def[field[len(prefix)]]['relation'] res2 = self.pool.get(relation).name_search(cr, uid, line[i], [],operator='=') res = (res2 and res2[0][0]) or False if not res and line[i]: warning += ('Relation not found: '+line[i]+' on '+relation + ' !\n') if not res: print 'Relation not found: '+line[i]+' on '+relation + ' !\n' elif fields_def[field[len(prefix)]]['type']=='many2many': res = [] if line[i]: relation = fields_def[field[len(prefix)]]['relation'] for word in line[i].split(','): res2 = self.pool.get(relation).name_search(cr, uid, word, [],operator='=') res3 = (res2 and res2[0][0]) or False if res3: res.append(res3) if len(res): res= [(6,0,res)] else: res = line[i] or False row[field[len(prefix)]] = res elif (prefix==field[0:len(prefix)]): if field[0] not in todo: todo.append(field[len(prefix)]) | d139fdb2886fa1362388e8a2ef4dc8c31ddc8251 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/d139fdb2886fa1362388e8a2ef4dc8c31ddc8251/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
875,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
34,
33,
1897,
12,
1369,
4672,
1002,
296,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
5347,
1093,
738,
261,
1897,
12,
2821,
3631,
13,
652,
273,
1466,
63,
77,
65,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
350,
11,
4672,
400,
67,
350,
273,
1083,
309,
980,
63,
77,
14542,
309,
1466,
67,
536,
63,
1518,
63,
1897,
12,
3239,
13,
6362,
30,
17,
23,
13563,
3292,
723,
3546,
18920,
9353,
22,
9353,
4278,
400,
67,
350,
273,
5378,
364,
2076,
316,
980,
63,
77,
8009,
4939,
12,
17023,
4672,
1605,
16,
2025,
67,
350,
273,
2076,
18,
86,
4939,
2668,
1093,
16,
404,
13,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
612,
33,
481,
67,
2284,
67,
892,
67,
2603,
6315,
588,
67,
350,
12,
3353,
16,
4555,
16,
1605,
16,
2025,
67,
350,
13,
400,
67,
350,
22,
33,
481,
67,
2284,
67,
892,
67,
2603,
18,
896,
12,
3353,
16,
4555,
16,
306,
350,
6487,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
875,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
34,
33,
1897,
12,
1369,
4672,
1002,
296,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
5347,
1093,
738,
261,
1897,
12,
2821,
3631,
13,
652,
273,
1466,
63,
77,
65,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
350,
11,
4672,
400,
67,
350,
2
] |
def rtype(func, inputtypes, specialize=True): | def rtype(func, inputtypes, specialize=True, gcname='ref'): | def rtype(func, inputtypes, specialize=True): from pypy.translator.translator import TranslationContext t = TranslationContext() t.buildannotator().build_types(func, inputtypes) if specialize: t.buildrtyper().specialize() if conftest.option.view: t.view() return t | 5531c41de45a5036dbb9dd43c6f1de64fb78e1a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/5531c41de45a5036dbb9dd43c6f1de64fb78e1a1/test_transformed_gc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9328,
12,
644,
16,
810,
2352,
16,
857,
1710,
33,
5510,
16,
8859,
529,
2218,
1734,
11,
4672,
628,
18951,
93,
18,
17879,
18,
17879,
1930,
17427,
1042,
268,
273,
17427,
1042,
1435,
268,
18,
3510,
18338,
639,
7675,
3510,
67,
2352,
12,
644,
16,
810,
2352,
13,
309,
857,
1710,
30,
268,
18,
3510,
3797,
8300,
7675,
2793,
1710,
1435,
309,
356,
1222,
395,
18,
3482,
18,
1945,
30,
268,
18,
1945,
1435,
327,
268,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
273,
17427,
1042,
1435,
268,
18,
3510,
18338,
639,
7675,
3510,
67,
2352,
12,
644,
16,
810,
2352,
13,
309,
857,
1710,
30,
268,
18,
3510,
3797,
8300,
7675,
2793,
1710,
1435,
309,
356,
1222,
395,
18,
3482,
18,
1945,
30,
268,
18,
1945,
1435,
327,
268,
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
] |
if ver == _TROVESIG_VER_NEW: | if ver in (_TROVESIG_VER_NEW, _TROVESIG_VER_NEW2): | def __iter__(self): """ Iterates over all signatures in this block. Signatures are returned as (version, digest, signature) tuples. Each digest is also returned as (digest, None) before any signatures for that digest. The digests are returned as digets stream objects. """ if self.sha1(): yield (_TROVESIG_VER_CLASSIC, self.sha1, None) | 01bf33c96dd051260688dbc5ed027317e80c9ea8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/01bf33c96dd051260688dbc5ed027317e80c9ea8/trove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
3016,
815,
1879,
777,
14862,
316,
333,
1203,
18,
4383,
2790,
854,
2106,
487,
261,
1589,
16,
5403,
16,
3372,
13,
10384,
18,
8315,
5403,
353,
2546,
2106,
487,
261,
10171,
16,
599,
13,
1865,
1281,
14862,
364,
716,
5403,
18,
1021,
5403,
87,
854,
2106,
487,
3097,
2413,
1407,
2184,
18,
3536,
309,
365,
18,
7819,
21,
13332,
2824,
261,
67,
56,
1457,
3412,
18513,
67,
2204,
67,
5237,
2871,
16,
365,
18,
7819,
21,
16,
599,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
3016,
815,
1879,
777,
14862,
316,
333,
1203,
18,
4383,
2790,
854,
2106,
487,
261,
1589,
16,
5403,
16,
3372,
13,
10384,
18,
8315,
5403,
353,
2546,
2106,
487,
261,
10171,
16,
599,
13,
1865,
1281,
14862,
364,
716,
5403,
18,
1021,
5403,
87,
854,
2106,
487,
3097,
2413,
1407,
2184,
18,
3536,
309,
365,
18,
7819,
21,
13332,
2824,
261,
67,
56,
1457,
3412,
18513,
67,
2204,
67,
5237,
2871,
16,
365,
18,
7819,
21,
16,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise errors.BlockDeviceError("DRBD disk missing network info in" " AttachNet()") | _ThrowError("drbd%d: missing network info in AttachNet()", self.minor) | def AttachNet(self, multimaster): """Reconnects the network. | 82463074c0c011a83cf2239affbdb44cb2940801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/82463074c0c011a83cf2239affbdb44cb2940801/bdev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8659,
7308,
12,
2890,
16,
1778,
381,
2440,
4672,
3536,
20427,
87,
326,
2483,
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,
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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,
8659,
7308,
12,
2890,
16,
1778,
381,
2440,
4672,
3536,
20427,
87,
326,
2483,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): | def __init__(self, *args, **kwargs): | def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor. | 9d732105697624731ed08ef764908b70660f97db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/9d732105697624731ed08ef764908b70660f97db/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11417,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"Ethan Merrit") | "Ethan Merritt") | def __init__(self): gtk.Dialog.__init__(self, "About mmCIF Editor", None, 0) self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) self.connect("delete-event", self.delete_event_cb) self.connect("response", self.delete_event_cb) | 845416a118287e7faa2f9e69392cad2bdc4545cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/845416a118287e7faa2f9e69392cad2bdc4545cc/cif_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
315,
24813,
9740,
39,
5501,
18451,
3113,
599,
16,
374,
13,
365,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
13384,
16,
22718,
18,
14508,
67,
13384,
13,
365,
18,
3612,
2932,
3733,
17,
2575,
3113,
365,
18,
3733,
67,
2575,
67,
7358,
13,
365,
18,
3612,
2932,
2740,
3113,
365,
18,
3733,
67,
2575,
67,
7358,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
315,
24813,
9740,
39,
5501,
18451,
3113,
599,
16,
374,
13,
365,
18,
1289,
67,
5391,
12,
4521,
79,
18,
31487,
3507,
67,
13384,
16,
22718,
18,
14508,
67,
13384,
13,
365,
18,
3612,
2932,
3733,
17,
2575,
3113,
365,
18,
3733,
67,
2575,
67,
7358,
13,
365,
18,
3612,
2932,
2740,
3113,
365,
18,
3733,
67,
2575,
67,
7358,
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
] |
scrolledwindow = gtk.ScrolledWindow() scrolledwindow.unset_flags(gtk.CAN_FOCUS) scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) scrolledwindow.set_shadow_type(gtk.SHADOW_IN) scrolledwindow.set_size_request(200, -1) hpaned.add1(scrolledwindow) | self.scrolledwindow = gtk.ScrolledWindow() self.scrolledwindow.unset_flags(gtk.CAN_FOCUS) self.scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.scrolledwindow.set_shadow_type(gtk.SHADOW_IN) self.scrolledwindow.set_size_request(200, -1) hpaned.add1(self.scrolledwindow) | def build_interface(self): actions = ( ("New", gtk.STOCK_NEW, None, None, _("Create a new contact"), self.newButton_click), ("Open", gtk.STOCK_OPEN, None, None, _("Open and import contacts"), self.openButton_click), ("Delete", gtk.STOCK_DELETE, None, None, _("Delete the selected contact"), self.deleteButton_click), ("CopyName", gtk.STOCK_COPY, _("_Copy Fullname"), None, None, lambda w: self.copy_click(w, "fn")), ("CopyEmail", None, _("Copy E_mail"), None, None, lambda w: self.copy_click(w, "email")), ("CopyNumber", None, _("Copy N_umber"), None, None, lambda w: self.copy_click(w, "tel")), ("Preferences", gtk.STOCK_PREFERENCES, None, None, _("Configure the application"), None), ("About", gtk.STOCK_ABOUT, None, None, None, self.aboutButton_click), ("Quit", gtk.STOCK_QUIT, None, None, None, self.delete_event) ) | a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
4672,
4209,
273,
261,
7566,
1908,
3113,
22718,
18,
31487,
3507,
67,
12917,
16,
599,
16,
599,
16,
389,
2932,
1684,
279,
394,
5388,
6,
3631,
365,
18,
2704,
3616,
67,
7475,
3631,
7566,
3678,
3113,
22718,
18,
31487,
3507,
67,
11437,
16,
599,
16,
599,
16,
389,
2932,
3678,
471,
1930,
14841,
6,
3631,
365,
18,
3190,
3616,
67,
7475,
3631,
7566,
2613,
3113,
22718,
18,
31487,
3507,
67,
6460,
16,
599,
16,
599,
16,
389,
2932,
2613,
326,
3170,
5388,
6,
3631,
365,
18,
3733,
3616,
67,
7475,
3631,
7566,
2951,
461,
3113,
22718,
18,
31487,
3507,
67,
24875,
16,
389,
2932,
67,
2951,
11692,
529,
6,
3631,
599,
16,
599,
16,
3195,
341,
30,
365,
18,
3530,
67,
7475,
12,
91,
16,
315,
4293,
7923,
3631,
7566,
2951,
4134,
3113,
599,
16,
389,
2932,
2951,
512,
67,
4408,
6,
3631,
599,
16,
599,
16,
3195,
341,
30,
365,
18,
3530,
67,
7475,
12,
91,
16,
315,
3652,
7923,
3631,
7566,
2951,
1854,
3113,
599,
16,
389,
2932,
2951,
423,
67,
1226,
6,
3631,
599,
16,
599,
16,
3195,
341,
30,
365,
18,
3530,
67,
7475,
12,
91,
16,
315,
19261,
7923,
3631,
7566,
12377,
3113,
22718,
18,
31487,
3507,
67,
3670,
10830,
55,
16,
599,
16,
599,
16,
389,
2932,
11207,
326,
2521,
6,
3631,
599,
3631,
7566,
24813,
3113,
22718,
18,
31487,
3507,
67,
2090,
5069,
16,
599,
16,
599,
16,
599,
16,
365,
18,
21071,
3616,
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,
67,
5831,
12,
2890,
4672,
4209,
273,
261,
7566,
1908,
3113,
22718,
18,
31487,
3507,
67,
12917,
16,
599,
16,
599,
16,
389,
2932,
1684,
279,
394,
5388,
6,
3631,
365,
18,
2704,
3616,
67,
7475,
3631,
7566,
3678,
3113,
22718,
18,
31487,
3507,
67,
11437,
16,
599,
16,
599,
16,
389,
2932,
3678,
471,
1930,
14841,
6,
3631,
365,
18,
3190,
3616,
67,
7475,
3631,
7566,
2613,
3113,
22718,
18,
31487,
3507,
67,
6460,
16,
599,
16,
599,
16,
389,
2932,
2613,
326,
3170,
5388,
6,
3631,
365,
18,
3733,
3616,
67,
7475,
3631,
7566,
2951,
461,
3113,
22718,
18,
31487,
3507,
67,
24875,
16,
389,
2932,
67,
2951,
11692,
529,
6,
3631,
599,
16,
599,
2
] |
return True | return self.getCombinedGenerator() | def handleArg(self, arg): """Parse one argument at a time. | 82835fa481b7460a846b67c6f932c39bc36721d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/82835fa481b7460a846b67c6f932c39bc36721d4/pagegenerators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8') | output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8') | 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')] use_clearsilver = False 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) use_clearsilver = template.endswith('.cs') # assume Clearsilver if use_clearsilver: req.hdf = HDFWrapper(loadpaths) # keep that for custom .cs templates else: template = 'index.html' data = {'trac': {'version': TRAC_VERSION, 'time': format_datetime()}, 'req': req} if req.environ.get('trac.template_vars'): for pair in req.environ['trac.template_vars'].split(','): key, val = pair.split('=') data[key] = val if use_clearsilver: req.hdf[key] = val try: href = Href(req.base_path) projects = [] for env_name, env_path in get_environments(environ).items(): try: env = open_environment(env_path, use_cache=not environ['wsgi.run_once']) proj = { 'env': env, '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())) data['projects'] = projects if use_clearsilver: req.hdf['projects'] = projects req.display(template) loader = TemplateLoader(loadpaths, variable_lookup='lenient', encoding='utf-8') tmpl = loader.load(template) stream = tmpl.generate(**data) output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8') req.send(output, 'text/html') except RequestDone: pass | ac68442164f130f718e44e2284b1b237a3953ade /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/ac68442164f130f718e44e2284b1b237a3953ade/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,
999,
67,
2131,
5913,
330,
502,
273,
1083,
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,
999,
67,
2131,
5913,
330,
502,
273,
1542,
18,
5839,
1918,
2668,
18,
2143,
6134,
468,
6750,
6257,
5913,
330,
502,
309,
999,
67,
2131,
5913,
330,
502,
30,
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,
13666,
313,
1077,
4278,
13666,
1589,
4278,
4235,
2226,
67,
5757,
16,
296,
957,
4278,
740,
67,
6585,
1435,
5779,
296,
3658,
4278,
1111,
97,
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,
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,
999,
67,
2131,
5913,
330,
502,
273,
1083,
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,
999,
67,
2131,
2
] |
if pkg.name.endswith('-devel') or pkg.name.endswith('doc'): | if pkg.name.endswith('-devel') or pkg.name.endswith('-doc'): | def check(self, pkg): | b28da18a3df833041928b155abb0b6f765ec06fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10341/b28da18a3df833041928b155abb0b6f765ec06fc/LibraryPolicyCheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3475,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3475,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.assert_(msg.get_sequences() == ['foobar', 'replied']) | self.assertEqual(msg.get_sequences(), ['foobar', 'replied']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') self.assertEqual(msg.get_sequences(), ['unseen']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.remove_sequence('unseen') self.assertEqual(msg.get_sequences(), ['flagged']) msg.add_sequence('foobar') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.remove_sequence('replied') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.set_sequences(['foobar', 'replied']) self.assert_(msg.get_sequences() == ['foobar', 'replied']) | fc9997a71def3361507ae020d7f678e347d8646b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/fc9997a71def3361507ae020d7f678e347d8646b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
542,
67,
17190,
12,
3292,
617,
947,
297,
19486,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
617,
947,
297,
19486,
1234,
18,
542,
67,
17190,
3816,
5717,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
1289,
67,
6178,
2668,
318,
15156,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
318,
15156,
19486,
1234,
18,
1289,
67,
6178,
2668,
6420,
2423,
6134,
365,
18,
11231,
67,
12,
3576,
18,
588,
67,
17190,
1435,
422,
10228,
318,
15156,
2187,
296,
6420,
2423,
19486,
1234,
18,
1289,
67,
6178,
2668,
6420,
2423,
6134,
365,
18,
11231,
67,
12,
3576,
18,
588,
67,
17190,
1435,
422,
10228,
318,
15156,
2187,
296,
6420,
2423,
19486,
1234,
18,
4479,
67,
6178,
2668,
318,
15156,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
6420,
2423,
19486,
1234,
18,
1289,
67,
6178,
2668,
617,
947,
297,
6134,
365,
18,
11231,
67,
12,
3576,
18,
588,
67,
17190,
1435,
422,
10228,
6420,
2423,
2187,
296,
617,
947,
297,
19486,
1234,
18,
4479,
67,
6178,
2668,
266,
3110,
6134,
365,
18,
11231,
67,
12,
3576,
18,
588,
67,
17190,
1435,
422,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
542,
67,
17190,
12,
3292,
617,
947,
297,
19486,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
617,
947,
297,
19486,
1234,
18,
542,
67,
17190,
3816,
5717,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
5378,
13,
1234,
18,
1289,
67,
6178,
2668,
318,
15156,
6134,
365,
18,
11231,
5812,
12,
3576,
18,
588,
67,
17190,
9334,
10228,
318,
15156,
19486,
1234,
18,
1289,
67,
6178,
2668,
2
] |
IPv6(IPv6('2001:4860::').ip) == IPv6('2001:4860::') | IPv6(IPv6('2001:4860::').ip) == IPv6('2001:4860::') | def __init__(self, ipaddr): """Instantiate a new IPv6 object. | 24d86d232c2c338090416f343c6ffddb8dc97766 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/24d86d232c2c338090416f343c6ffddb8dc97766/ipaddr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2359,
4793,
4672,
3536,
22438,
279,
394,
7853,
26,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2359,
4793,
4672,
3536,
22438,
279,
394,
7853,
26,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if hasattr(n2, 'weight') and n2.weight is not None: graph[n1][n2]['weight'] = n2.weight elif hasattr(n1, 'weight') and n1.weight is not None: graph[n1][n2]['weight'] = n1.weight n2.weight = n1.weight | if hasattr(n2, 'width') and n2.width is not None: graph[n1][n2]['width'] = n2.width elif hasattr(n1, 'width') and n1.width is not None: graph[n1][n2]['width'] = n1.width n2.width = n1.width | def add_edge(graph, n1, n2): # NB (1/2010): the networkx API congealed recently # Ubuntu Lucid uses v0.99, newest is v1.0.1, let's support both if networkx.__version__ >= '1.0': graph.add_edge(n1, n2, weight=str(n2.branch_length or 1.0)) # Copy branch color value as hex, if available if hasattr(n2, 'color') and n2.color is not None: graph[n1][n2]['color'] = n2.color.to_hex() elif hasattr(n1, 'color') and n1.color is not None: # Cascading color attributes graph[n1][n2]['color'] = n1.color.to_hex() n2.color = n1.color # Copy branch weight value (float) if available if hasattr(n2, 'weight') and n2.weight is not None: graph[n1][n2]['weight'] = n2.weight elif hasattr(n1, 'weight') and n1.weight is not None: # Cascading weight attributes graph[n1][n2]['weight'] = n1.weight n2.weight = n1.weight elif networkx.__version__ >= '0.99': graph.add_edge(n1, n2, (n2.branch_length or 1.0)) else: graph.add_edge(n1, n2) | 1ea0c921c9bea6acb2b6b41566383fc54ed4862f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/1ea0c921c9bea6acb2b6b41566383fc54ed4862f/_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7126,
12,
4660,
16,
290,
21,
16,
290,
22,
4672,
468,
20096,
261,
21,
19,
6734,
20,
4672,
326,
2483,
92,
1491,
356,
908,
18931,
19907,
468,
587,
70,
25348,
511,
5286,
350,
4692,
331,
20,
18,
2733,
16,
19824,
353,
331,
21,
18,
20,
18,
21,
16,
2231,
1807,
2865,
3937,
309,
2483,
92,
16186,
1589,
972,
1545,
296,
21,
18,
20,
4278,
2667,
18,
1289,
67,
7126,
12,
82,
21,
16,
290,
22,
16,
3119,
33,
701,
12,
82,
22,
18,
7500,
67,
2469,
578,
404,
18,
20,
3719,
468,
5631,
3803,
2036,
460,
487,
3827,
16,
309,
2319,
309,
3859,
12,
82,
22,
16,
296,
3266,
6134,
471,
290,
22,
18,
3266,
353,
486,
599,
30,
2667,
63,
82,
21,
6362,
82,
22,
23962,
3266,
3546,
273,
290,
22,
18,
3266,
18,
869,
67,
7118,
1435,
1327,
3859,
12,
82,
21,
16,
296,
3266,
6134,
471,
290,
21,
18,
3266,
353,
486,
599,
30,
468,
385,
3691,
14968,
2036,
1677,
2667,
63,
82,
21,
6362,
82,
22,
23962,
3266,
3546,
273,
290,
21,
18,
3266,
18,
869,
67,
7118,
1435,
290,
22,
18,
3266,
273,
290,
21,
18,
3266,
468,
5631,
3803,
3119,
460,
261,
5659,
13,
309,
2319,
309,
3859,
12,
82,
22,
16,
296,
4865,
6134,
471,
290,
22,
18,
4865,
353,
486,
599,
30,
2667,
63,
82,
21,
6362,
82,
22,
23962,
4865,
3546,
273,
290,
22,
18,
4865,
1327,
3859,
12,
82,
21,
16,
296,
4865,
6134,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7126,
12,
4660,
16,
290,
21,
16,
290,
22,
4672,
468,
20096,
261,
21,
19,
6734,
20,
4672,
326,
2483,
92,
1491,
356,
908,
18931,
19907,
468,
587,
70,
25348,
511,
5286,
350,
4692,
331,
20,
18,
2733,
16,
19824,
353,
331,
21,
18,
20,
18,
21,
16,
2231,
1807,
2865,
3937,
309,
2483,
92,
16186,
1589,
972,
1545,
296,
21,
18,
20,
4278,
2667,
18,
1289,
67,
7126,
12,
82,
21,
16,
290,
22,
16,
3119,
33,
701,
12,
82,
22,
18,
7500,
67,
2469,
578,
404,
18,
20,
3719,
468,
5631,
3803,
2036,
460,
487,
3827,
16,
309,
2319,
309,
3859,
12,
82,
22,
16,
296,
3266,
6134,
471,
290,
22,
18,
3266,
353,
2
] |
ts.initfromdir(".") | ts.initfromdir(autopath.pypydir) | def testresults(self): """Return a generator to get the test result for each test item.""" for item in self.items: yield item.run() | 7de54c446f3aee856ac761708faaa5a1ee928540 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7de54c446f3aee856ac761708faaa5a1ee928540/newtest.py | [
1,
8585,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4717,
12,
2890,
4672,
3536,
990,
279,
4456,
358,
336,
326,
1842,
563,
364,
1517,
1842,
761,
12123,
364,
761,
316,
365,
18,
3319,
30,
2824,
761,
18,
2681,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
msg += self.msgTxt() | msg += self.text | def send(self): if self.good: self.smsgw.debug('Sending message to %s' % self.phNumber) self.smsgw.openModule1() self.smsgw.sendCmd('AT+CMGS="%s"\r%s%c' % (self.phNumber, self.text, 26)) # chr(26) = Ctrl-Z self.smsgw.closeModule1() self.smsgw.info('InOut: %s;OUT;%s' % (datetime.datetime.now().strftime('%Y-%m-%dT%H:%M'), self.phNumber)) # Feedback sender = self.smsgw.sender to = self.smsgw.to server = self.smsgw.server | 281af5440ef4459b0415b1e47d6ce56bfd4c52c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4895/281af5440ef4459b0415b1e47d6ce56bfd4c52c8/portechsmsd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
4672,
309,
365,
18,
19747,
30,
365,
18,
87,
3576,
91,
18,
4148,
2668,
16322,
883,
358,
738,
87,
11,
738,
365,
18,
844,
1854,
13,
365,
18,
87,
3576,
91,
18,
3190,
3120,
21,
1435,
365,
18,
87,
3576,
91,
18,
4661,
5931,
2668,
789,
15,
9611,
16113,
11613,
87,
12691,
86,
9,
87,
9,
71,
11,
738,
261,
2890,
18,
844,
1854,
16,
365,
18,
955,
16,
10659,
3719,
468,
4513,
12,
5558,
13,
273,
30715,
17,
62,
365,
18,
87,
3576,
91,
18,
4412,
3120,
21,
1435,
365,
18,
87,
3576,
91,
18,
1376,
2668,
382,
1182,
30,
738,
87,
31,
5069,
31,
9,
87,
11,
738,
261,
6585,
18,
6585,
18,
3338,
7675,
701,
9982,
29909,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
19899,
365,
18,
844,
1854,
3719,
468,
14013,
823,
5793,
273,
365,
18,
87,
3576,
91,
18,
15330,
358,
273,
365,
18,
87,
3576,
91,
18,
869,
1438,
273,
365,
18,
87,
3576,
91,
18,
3567,
2,
0,
0,
0,
0,
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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
87,
11,
738,
365,
18,
844,
1854,
13,
365,
18,
87,
3576,
91,
18,
3190,
3120,
21,
1435,
365,
18,
87,
3576,
91,
18,
4661,
5931,
2668,
789,
15,
9611,
16113,
11613,
87,
12691,
86,
9,
87,
9,
71,
11,
738,
261,
2890,
18,
844,
1854,
16,
365,
18,
955,
16,
10659,
3719,
468,
4513,
12,
5558,
13,
273,
30715,
17,
62,
365,
18,
87,
3576,
91,
18,
4412,
3120,
21,
1435,
365,
18,
87,
3576,
91,
18,
1376,
2668,
382,
1182,
30,
738,
87,
31,
5069,
31,
9,
87,
11,
738,
261,
6585,
18,
6585,
18,
2
] |
self.display_error_dialog(_("\nThe active directory is not valid!\nPlease select another directory.")) | self.main.display_error_dialog(_("\nThe active directory is not valid!\nPlease select another directory.")) | def on_prefs_close_clicked(self, widget): """ Prefs close button clicked """ | 3d1e651d8b113026f67ba3bb4fccec80e0efd214 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/735/3d1e651d8b113026f67ba3bb4fccec80e0efd214/pyrenamer_prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1484,
2556,
67,
4412,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
3536,
453,
9316,
1746,
3568,
17688,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1484,
2556,
67,
4412,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
3536,
453,
9316,
1746,
3568,
17688,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
codestring = open(pathname, 'r').read() | codestring = open(pathname, 'rU').read() | def _compile(pathname, timestamp): """Compile (and cache) a Python source file. The file specified by <pathname> is compiled to a code object and returned. Presuming the appropriate privileges exist, the bytecodes will be saved back to the filesystem for future imports. The source file's modification timestamp must be provided as a Long value. """ codestring = open(pathname, 'r').read() if codestring and codestring[-1] != '\n': codestring = codestring + '\n' code = __builtin__.compile(codestring, pathname, 'exec') # try to cache the compiled code try: f = open(pathname + _suffix_char, 'wb') except IOError: pass else: f.write('\0\0\0\0') f.write(struct.pack('<I', timestamp)) marshal.dump(code, f) f.flush() f.seek(0, 0) f.write(imp.get_magic()) f.close() return code | 85b3e9a2419ef0601b6a83448ffb972daf371d37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/85b3e9a2419ef0601b6a83448ffb972daf371d37/imputil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
12,
28336,
16,
2858,
4672,
3536,
9937,
261,
464,
1247,
13,
279,
6600,
1084,
585,
18,
225,
1021,
585,
1269,
635,
411,
28336,
34,
353,
7743,
358,
279,
981,
733,
471,
2106,
18,
225,
18346,
21249,
326,
5505,
19583,
1005,
16,
326,
635,
14537,
1145,
903,
506,
5198,
1473,
358,
326,
6496,
364,
3563,
10095,
18,
1021,
1084,
585,
1807,
11544,
2858,
1297,
506,
2112,
487,
279,
3407,
460,
18,
3536,
6198,
371,
273,
1696,
12,
28336,
16,
296,
86,
57,
16063,
896,
1435,
309,
6198,
371,
471,
6198,
371,
18919,
21,
65,
480,
2337,
82,
4278,
6198,
371,
273,
6198,
371,
397,
2337,
82,
11,
981,
273,
1001,
24553,
25648,
11100,
12,
7000,
371,
16,
9806,
16,
296,
4177,
6134,
225,
468,
775,
358,
1247,
326,
7743,
981,
775,
30,
284,
273,
1696,
12,
28336,
397,
389,
8477,
67,
3001,
16,
296,
9464,
6134,
1335,
8340,
30,
1342,
469,
30,
284,
18,
2626,
2668,
64,
20,
64,
20,
64,
20,
64,
20,
6134,
284,
18,
2626,
12,
1697,
18,
2920,
2668,
32,
45,
2187,
2858,
3719,
10893,
18,
8481,
12,
710,
16,
284,
13,
284,
18,
11330,
1435,
284,
18,
16508,
12,
20,
16,
374,
13,
284,
18,
2626,
12,
14532,
18,
588,
67,
11179,
10756,
284,
18,
4412,
1435,
225,
327,
981,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
12,
28336,
16,
2858,
4672,
3536,
9937,
261,
464,
1247,
13,
279,
6600,
1084,
585,
18,
225,
1021,
585,
1269,
635,
411,
28336,
34,
353,
7743,
358,
279,
981,
733,
471,
2106,
18,
225,
18346,
21249,
326,
5505,
19583,
1005,
16,
326,
635,
14537,
1145,
903,
506,
5198,
1473,
358,
326,
6496,
364,
3563,
10095,
18,
1021,
1084,
585,
1807,
11544,
2858,
1297,
506,
2112,
487,
279,
3407,
460,
18,
3536,
6198,
371,
273,
1696,
12,
28336,
16,
296,
86,
57,
16063,
896,
1435,
309,
6198,
371,
471,
6198,
371,
18919,
21,
65,
480,
2337,
82,
4278,
6198,
371,
273,
6198,
371,
397,
2337,
82,
11,
981,
273,
1001,
24553,
25648,
11100,
12,
7000,
371,
16,
2
] |
cur_class = Class(fullmodule, class_name, inherit, file, lineno) | cur_class = Class(fullmodule, class_name, inherit, fname, lineno) | def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].''' # Compute the full module name (prepending inpackage if set) if inpackage: fullmodule = "%s.%s" % (inpackage, module) else: fullmodule = module # Check in the cache if fullmodule in _modules: return _modules[fullmodule] # Initialize the dict for this module's contents dict = {} # Check if it is a built-in module; we don't do much for these if module in sys.builtin_module_names and not inpackage: _modules[module] = dict return dict # Check for a dotted module name i = module.rfind('.') if i >= 0: package = module[:i] submodule = module[i+1:] parent = _readmodule(package, path, inpackage) if inpackage: package = "%s.%s" % (inpackage, package) return _readmodule(submodule, parent['__path__'], package) # Search the path for the module f = None if inpackage: f, file, (suff, mode, type) = imp.find_module(module, path) else: f, file, (suff, mode, type) = imp.find_module(module, path + sys.path) if type == imp.PKG_DIRECTORY: dict['__path__'] = [file] path = [file] + path f, file, (suff, mode, type) = imp.find_module('__init__', [file]) _modules[fullmodule] = dict if type != imp.PY_SOURCE: # not Python source, can't do anything with this module f.close() return dict stack = [] # stack of (class, indent) pairs g = tokenize.generate_tokens(f.readline) try: for tokentype, token, start, end, line in g: if tokentype == DEDENT: lineno, thisindent = start # close nested classes and defs while stack and stack[-1][1] >= thisindent: del stack[-1] elif token == 'def': lineno, thisindent = start # close previous nested classes and defs while stack and stack[-1][1] >= thisindent: del stack[-1] tokentype, meth_name, start, end, line = g.next() if tokentype != NAME: continue # Syntax error if stack: cur_class = stack[-1][0] if isinstance(cur_class, Class): # it's a method cur_class._addmethod(meth_name, lineno) # else it's a nested def else: # it's a function dict[meth_name] = Function(fullmodule, meth_name, file, lineno) stack.append((None, thisindent)) # Marker for nested fns elif token == 'class': lineno, thisindent = start # close previous nested classes and defs while stack and stack[-1][1] >= thisindent: del stack[-1] tokentype, class_name, start, end, line = g.next() if tokentype != NAME: continue # Syntax error # parse what follows the class name tokentype, token, start, end, line = g.next() inherit = None if token == '(': names = [] # List of superclasses # there's a list of superclasses level = 1 super = [] # Tokens making up current superclass while True: tokentype, token, start, end, line = g.next() if token in (')', ',') and level == 1: n = "".join(super) if n in dict: # we know this super class n = dict[n] else: c = n.split('.') if len(c) > 1: # super class is of the form # module.class: look in module for # class m = c[-2] c = c[-1] if m in _modules: d = _modules[m] if c in d: n = d[c] names.append(n) super = [] if token == '(': level += 1 elif token == ')': level -= 1 if level == 0: break elif token == ',' and level == 1: pass # only use NAME and OP (== dot) tokens for type name elif tokentype in (NAME, OP) and level == 1: super.append(token) # expressions in the base list are not supported inherit = names cur_class = Class(fullmodule, class_name, inherit, file, lineno) if not stack: dict[class_name] = cur_class stack.append((cur_class, thisindent)) elif token == 'import' and start[1] == 0: modules = _getnamelist(g) for mod, mod2 in modules: try: # Recursively read the imported module if not inpackage: _readmodule(mod, path) else: try: _readmodule(mod, path, inpackage) except ImportError: _readmodule(mod, []) except: # If we can't find or parse the imported module, # too bad -- don't die here. pass elif token == 'from' and start[1] == 0: mod, token = _getname(g) if not mod or token != "import": continue names = _getnamelist(g) try: # Recursively read the imported module d = _readmodule(mod, path, inpackage) except: # If we can't find or parse the imported module, # too bad -- don't die here. continue # add any classes that were defined in the imported module # to our name space if they were mentioned in the list for n, n2 in names: if n in d: dict[n2 or n] = d[n] elif n == '*': # don't add names that start with _ for n in d: if n[0] != '_': dict[n] = d[n] except StopIteration: pass f.close() return dict | 63d2bd0c0f14b0ec86d5455858d3bf941cb273f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/63d2bd0c0f14b0ec86d5455858d3bf941cb273f5/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
9561,
316,
5610,
309,
444,
13,
309,
316,
5610,
30,
1983,
2978,
273,
2213,
87,
7866,
87,
6,
738,
261,
267,
5610,
16,
1605,
13,
469,
30,
1983,
2978,
273,
1605,
225,
468,
2073,
316,
326,
1247,
309,
1983,
2978,
316,
389,
6400,
30,
327,
389,
6400,
63,
2854,
2978,
65,
225,
468,
9190,
326,
2065,
364,
333,
1605,
1807,
2939,
2065,
273,
2618,
225,
468,
2073,
309,
518,
353,
279,
6650,
17,
267,
1605,
31,
732,
2727,
1404,
741,
9816,
364,
4259,
309,
1605,
316,
2589,
18,
24553,
67,
2978,
67,
1973,
471,
486,
316,
5610,
30,
389,
6400,
63,
2978,
65,
273,
2065,
327,
2065,
225,
468,
2073,
364,
279,
20965,
1605,
508,
277,
273,
1605,
18,
86,
4720,
2668,
1093,
13,
309,
277,
1545,
374,
30,
2181,
273,
1605,
10531,
77,
65,
27314,
273,
1605,
63,
77,
15,
21,
26894,
982,
273,
389,
896,
2978,
12,
5610,
16,
589,
16,
316,
5610,
13,
309,
316,
5610,
30,
2181,
273,
2213,
87,
7866,
87,
6,
738,
261,
267,
5610,
16,
2181,
13,
327,
389,
896,
2978,
12,
1717,
2978,
16,
982,
3292,
972,
803,
972,
17337,
2181,
13,
225,
468,
5167,
326,
589,
364,
326,
1605,
284,
273,
599,
309,
316,
5610,
30,
284,
16,
585,
16,
261,
87,
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,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
9561,
316,
5610,
309,
444,
13,
309,
316,
5610,
30,
1983,
2978,
273,
2213,
87,
7866,
87,
6,
738,
261,
267,
5610,
16,
1605,
13,
469,
30,
1983,
2978,
273,
1605,
225,
468,
2073,
316,
326,
1247,
309,
1983,
2978,
316,
389,
6400,
30,
327,
389,
6400,
63,
2854,
2978,
65,
225,
468,
9190,
326,
2065,
364,
333,
1605,
1807,
2939,
2065,
273,
2618,
225,
468,
2073,
309,
518,
353,
279,
6650,
17,
267,
1605,
31,
732,
2727,
1404,
741,
9816,
364,
4259,
2
] |
self.body.append('{\\small ') | self.fallbacks['legend'] = PreambleCmds.legend self.body.append('\\begin{DUlegend}') | def visit_legend(self, node): # DUlegend command incompatible with flush* aligning: # ! LaTeX Error: There's no line here to end. ## self.fallbacks['legend'] = PreambleCmds.legend ## self.body.append('\DUlegend{') self.body.append('{\\small ') | ca2f22b1c4e8be5a06f234a03127244e2db8bd3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/ca2f22b1c4e8be5a06f234a03127244e2db8bd3c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
16292,
12,
2890,
16,
756,
4672,
468,
463,
57,
16292,
1296,
24430,
598,
3663,
14,
5689,
310,
30,
468,
282,
401,
21072,
21575,
60,
1068,
30,
6149,
1807,
1158,
980,
2674,
358,
679,
18,
7541,
365,
18,
16471,
87,
3292,
16292,
3546,
273,
453,
793,
7119,
5931,
87,
18,
16292,
7541,
365,
18,
3432,
18,
6923,
2668,
64,
16214,
16292,
95,
6134,
365,
18,
3432,
18,
6923,
2668,
95,
1695,
12019,
8624,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
16292,
12,
2890,
16,
756,
4672,
468,
463,
57,
16292,
1296,
24430,
598,
3663,
14,
5689,
310,
30,
468,
282,
401,
21072,
21575,
60,
1068,
30,
6149,
1807,
1158,
980,
2674,
358,
679,
18,
7541,
365,
18,
16471,
87,
3292,
16292,
3546,
273,
453,
793,
7119,
5931,
87,
18,
16292,
7541,
365,
18,
3432,
18,
6923,
2668,
64,
16214,
16292,
95,
6134,
365,
18,
3432,
18,
6923,
2668,
95,
1695,
12019,
8624,
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
] |
date = mx.DateTime.strptime(str(value),DT_FORMAT) | date = mx.DateTime.strptime(value,DT_FORMAT) | def formatLang(self, value, digits=2, date=False,date_time=False, grouping=True, monetary=False, currency=None): if not value: return '' | 6624124758ebd759cd9b4edda57eebdd213305a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/6624124758ebd759cd9b4edda57eebdd213305a8/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
6815,
33,
22,
16,
1509,
33,
8381,
16,
712,
67,
957,
33,
8381,
16,
12116,
33,
5510,
16,
31198,
33,
8381,
16,
5462,
33,
7036,
4672,
309,
486,
460,
30,
327,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
6815,
33,
22,
16,
1509,
33,
8381,
16,
712,
67,
957,
33,
8381,
16,
12116,
33,
5510,
16,
31198,
33,
8381,
16,
5462,
33,
7036,
4672,
309,
486,
460,
30,
327,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
warnOnFailure = True | def evaluateCommand(self, cmd): superResult = ShellCommand.evaluateCommand(self, cmd) if SUCCESS != superResult: return WARNINGS if None != re.search('FAIL', cmd.logs['stdio'].getText()): return WARNINGS return SUCCESS | 34702b47b854d7d39e5673541f6c021781d03c67 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/34702b47b854d7d39e5673541f6c021781d03c67/mozbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
599,
480,
283,
18,
3072,
2668,
12319,
2187,
1797,
18,
10011,
3292,
5084,
1594,
29489,
588,
1528,
1435,
4672,
327,
9744,
55,
327,
16561,
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,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
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
599,
480,
283,
18,
3072,
2668,
12319,
2187,
1797,
18,
10011,
3292,
5084,
1594,
29489,
588,
1528,
1435,
4672,
327,
9744,
55,
327,
16561,
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
] |
|
self._preview = False | self._previewing = False | def _button_save_cb(self, button, data=None): """Save button clicked.""" # Validate data failed_items = self._validate() if failed_items: self._canvas.set_root(self._build_canvas(highlight=failed_items)) self.show_all() return # Data OK self._preview = False self._poll.active = True self._polls.add(self._poll) self._poll.broadcast_on_mesh() self._canvas.set_root(self._poll_canvas()) self.show_all() | 96d7a3e2e2c337e1e11897013d8080b5b48f1a0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6691/96d7a3e2e2c337e1e11897013d8080b5b48f1a0d/poll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5391,
67,
5688,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
3536,
4755,
3568,
17688,
12123,
468,
3554,
501,
2535,
67,
3319,
273,
365,
6315,
5662,
1435,
309,
2535,
67,
3319,
30,
365,
6315,
15424,
18,
542,
67,
3085,
12,
2890,
6315,
3510,
67,
15424,
12,
15978,
33,
7307,
67,
3319,
3719,
365,
18,
4500,
67,
454,
1435,
327,
468,
1910,
7791,
365,
6315,
12102,
310,
273,
1083,
365,
6315,
13835,
18,
3535,
273,
1053,
365,
6315,
3915,
3251,
18,
1289,
12,
2890,
6315,
13835,
13,
365,
6315,
13835,
18,
19805,
67,
265,
67,
15557,
1435,
365,
6315,
15424,
18,
542,
67,
3085,
12,
2890,
6315,
13835,
67,
15424,
10756,
365,
18,
4500,
67,
454,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5391,
67,
5688,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
3536,
4755,
3568,
17688,
12123,
468,
3554,
501,
2535,
67,
3319,
273,
365,
6315,
5662,
1435,
309,
2535,
67,
3319,
30,
365,
6315,
15424,
18,
542,
67,
3085,
12,
2890,
6315,
3510,
67,
15424,
12,
15978,
33,
7307,
67,
3319,
3719,
365,
18,
4500,
67,
454,
1435,
327,
468,
1910,
7791,
365,
6315,
12102,
310,
273,
1083,
365,
6315,
13835,
18,
3535,
273,
1053,
365,
6315,
3915,
3251,
18,
1289,
12,
2890,
6315,
13835,
13,
365,
6315,
13835,
18,
19805,
67,
265,
67,
15557,
1435,
365,
6315,
15424,
18,
542,
67,
3085,
12,
2890,
6315,
13835,
67,
15424,
10756,
365,
18,
4500,
67,
2
] |
if ( self.getTag( pxl_tags_dict['sint16_box'] ) ): | new_tag = unpack('B', self.data[self.index])[0] if ( new_tag == pxl_tags_dict['sint16_box'] ): self.index = self.index + 1 | def Tag_sint16_box(self): if ( self.getTag( pxl_tags_dict['sint16_box'] ) ): print "sint16_box %d %d %d %d" % \ self.unpack('hhhh', self.data[self.index:self.index+8]) self.index = self.index + 8 return 1 return 0 | 56f3b40c49b4c8c2c1bf30f153b578ada70886f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/56f3b40c49b4c8c2c1bf30f153b578ada70886f5/pxldis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
87,
474,
2313,
67,
2147,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
309,
261,
394,
67,
2692,
422,
10318,
80,
67,
4156,
67,
1576,
3292,
87,
474,
2313,
67,
2147,
3546,
262,
30,
365,
18,
1615,
273,
365,
18,
1615,
397,
404,
1172,
315,
87,
474,
2313,
67,
2147,
738,
72,
738,
72,
738,
72,
738,
72,
6,
738,
521,
365,
18,
17309,
2668,
21622,
21622,
2187,
365,
18,
892,
63,
2890,
18,
1615,
30,
2890,
18,
1615,
15,
28,
5717,
365,
18,
1615,
273,
365,
18,
1615,
397,
1725,
327,
404,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
87,
474,
2313,
67,
2147,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
309,
261,
394,
67,
2692,
422,
10318,
80,
67,
4156,
67,
1576,
3292,
87,
474,
2313,
67,
2147,
3546,
262,
30,
365,
18,
1615,
273,
365,
18,
1615,
397,
404,
1172,
315,
87,
474,
2313,
67,
2147,
738,
72,
738,
72,
738,
72,
738,
72,
6,
738,
521,
365,
18,
17309,
2668,
21622,
21622,
2187,
365,
18,
892,
63,
2890,
18,
1615,
30,
2890,
18,
1615,
15,
28,
5717,
365,
18,
1615,
273,
365,
18,
1615,
397,
1725,
327,
404,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""isinstance(%s, collections.Sequence)""" | def _isSequenceType(self, node, results): """isinstance(%s, collections.Sequence)""" return self._handle_type2abc(node, results, "collections", "Sequence") | a3cb67d88774a290709eb0621259068fa0d7f10f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/a3cb67d88774a290709eb0621259068fa0d7f10f/fix_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
4021,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
19246,
3113,
315,
4021,
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,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
4021,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
19246,
3113,
315,
4021,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
org = flipXY and self.y or self.x | if flipXY: org = self.y else: org = self.x | def calcBarPositions(self): """Works out where they go. default vertical. | a1c1f3b47f2d651823c15490d25c6eab5c33882b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a1c1f3b47f2d651823c15490d25c6eab5c33882b/barcharts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
5190,
11024,
12,
2890,
4672,
3536,
16663,
596,
1625,
2898,
1960,
18,
805,
9768,
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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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
] |
self.re_off = re.compile('\(.*?\)*?') | self.re_off = re.compile('\(.*?\)') | def connectionMade(self): self.handle = self.login self.state = 0 self.color = '' self.typing = False self.gm = False self.re_dice = re.compile("(?:\!\d*d\d*(?:\+|\-)*)(?:(?:(?:\d*d\d*)|\d*)(?:\+|\-)*)*",re.IGNORECASE) self.re_quote = re.compile('".*?"') self.re_off = re.compile('\(.*?\)*?') | 3eeb5803fcaa9200603943617ea56898d709469e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13227/3eeb5803fcaa9200603943617ea56898d709469e/ropeserve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
365,
18,
4110,
273,
365,
18,
5819,
365,
18,
2019,
273,
374,
365,
18,
3266,
273,
875,
365,
18,
12846,
310,
273,
1083,
365,
18,
23336,
377,
273,
1083,
365,
18,
266,
67,
72,
1812,
273,
283,
18,
11100,
2932,
15599,
24440,
72,
14,
72,
64,
72,
14,
15599,
15,
8960,
17,
13,
12437,
20473,
15599,
72,
14,
72,
64,
72,
12437,
8960,
72,
12437,
15599,
15,
8960,
17,
13,
12437,
14,
3113,
266,
18,
20118,
13415,
13,
365,
18,
266,
67,
6889,
273,
283,
18,
11100,
22076,
23498,
5187,
13,
365,
18,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
365,
18,
4110,
273,
365,
18,
5819,
365,
18,
2019,
273,
374,
365,
18,
3266,
273,
875,
365,
18,
12846,
310,
273,
1083,
365,
18,
23336,
377,
273,
1083,
365,
18,
266,
67,
72,
1812,
273,
283,
18,
11100,
2932,
15599,
24440,
72,
14,
72,
64,
72,
14,
15599,
15,
8960,
17,
13,
12437,
20473,
15599,
72,
14,
72,
64,
72,
12437,
8960,
72,
12437,
15599,
15,
8960,
17,
13,
12437,
14,
3113,
266,
18,
20118,
13415,
13,
365,
18,
266,
67,
6889,
273,
283,
18,
11100,
22076,
23498,
5187,
13,
365,
18,
266,
67,
3674,
282,
273,
283,
18,
11100,
2668,
64,
7444,
10936,
17653,
4899,
13,
2,
-100,
-100,
-100,
-100
] |
if attempt_read_and_call(uhandle, consumer.noevent, | if attempt_read_and_call(uhandle, consumer.noevent, | def _scan_descriptions(self, uhandle, consumer): # Searching..................................................done # Results from round 2 # # # Sc # Sequences producing significant alignments: (b # Sequences used in model and found again: # # d1tde_2 3.4.1.4.4 (119-244) Thioredoxin reductase [Escherichia ... # d1tcob_ 1.31.1.5.16 Calcineurin regulatory subunit (B-chain) [B... # d1symb_ 1.31.1.2.2 Calcyclin (S100) [RAT (RATTUS NORVEGICUS)] # # Sequences not found previously or not previously below threshold: # # d1osa__ 1.31.1.5.11 Calmodulin [Paramecium tetraurelia] # d1aoza3 2.5.1.3.3 (339-552) Ascorbate oxidase [zucchini (Cucurb... # | 4345b66dc64a700881a4c9a0e3a6ea43eabf5ea2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/4345b66dc64a700881a4c9a0e3a6ea43eabf5ea2/NCBIStandalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
67,
30288,
12,
2890,
16,
582,
4110,
16,
4765,
4672,
468,
5167,
310,
18509,
18509,
18509,
838,
8734,
468,
10351,
628,
3643,
576,
468,
468,
468,
28524,
565,
2850,
468,
3265,
6570,
4810,
2822,
14177,
28555,
30,
13491,
261,
70,
468,
3265,
6570,
1399,
316,
938,
471,
1392,
3382,
30,
468,
468,
302,
21,
88,
323,
67,
22,
890,
18,
24,
18,
21,
18,
24,
18,
24,
261,
23635,
17,
3247,
24,
13,
935,
77,
7653,
2409,
267,
1755,
853,
448,
306,
6705,
19322,
1354,
1155,
1372,
468,
302,
21,
5111,
947,
67,
404,
18,
6938,
18,
21,
18,
25,
18,
2313,
29128,
558,
295,
267,
960,
332,
8452,
720,
4873,
261,
38,
17,
5639,
13,
306,
38,
2777,
468,
302,
21,
9009,
1627,
67,
404,
18,
6938,
18,
21,
18,
22,
18,
22,
3596,
2431,
830,
267,
261,
55,
6625,
13,
306,
54,
789,
261,
54,
789,
56,
3378,
423,
916,
3412,
43,
2871,
3378,
25887,
468,
468,
3265,
6570,
486,
1392,
7243,
578,
486,
7243,
5712,
5573,
30,
468,
468,
302,
21,
12029,
972,
404,
18,
6938,
18,
21,
18,
25,
18,
2499,
3596,
1711,
332,
267,
306,
1553,
339,
71,
5077,
268,
30710,
594,
549,
69,
65,
468,
302,
21,
6033,
11939,
23,
576,
18,
25,
18,
21,
18,
23,
18,
23,
261,
3707,
29,
17,
2539,
22,
13,
22475,
16640,
340,
320,
6212,
448,
306,
94,
5286,
343,
8767,
261,
39,
89,
1397,
70,
2777,
468,
2,
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,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
67,
30288,
12,
2890,
16,
582,
4110,
16,
4765,
4672,
468,
5167,
310,
18509,
18509,
18509,
838,
8734,
468,
10351,
628,
3643,
576,
468,
468,
468,
28524,
565,
2850,
468,
3265,
6570,
4810,
2822,
14177,
28555,
30,
13491,
261,
70,
468,
3265,
6570,
1399,
316,
938,
471,
1392,
3382,
30,
468,
468,
302,
21,
88,
323,
67,
22,
890,
18,
24,
18,
21,
18,
24,
18,
24,
261,
23635,
17,
3247,
24,
13,
935,
77,
7653,
2409,
267,
1755,
853,
448,
306,
6705,
19322,
1354,
1155,
1372,
468,
302,
21,
5111,
947,
67,
404,
18,
6938,
18,
21,
18,
25,
18,
2313,
29128,
558,
295,
267,
960,
332,
8452,
720,
4873,
261,
38,
17,
5639,
13,
2
] |
root = context.root | root = context.handler.get_site_root() | def __init__(self, filter_type=Handler, root=None, start=None): """ The 'start' must be a handler, 'filter_type' must be a handler class. """ context = get_context() request, response = context.request, context.response | 1d9796dd3ca3573203a67d8e2f973dbf4e2d165c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1d9796dd3ca3573203a67d8e2f973dbf4e2d165c/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1034,
67,
723,
33,
1503,
16,
1365,
33,
7036,
16,
787,
33,
7036,
4672,
3536,
1021,
296,
1937,
11,
1297,
506,
279,
1838,
16,
296,
2188,
67,
723,
11,
1297,
506,
279,
1838,
667,
18,
3536,
819,
273,
336,
67,
2472,
1435,
590,
16,
766,
273,
819,
18,
2293,
16,
819,
18,
2740,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
590,
16,
766,
273,
819,
18,
2293,
16,
819,
18,
2740,
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
] |
ifp = openrf(srcfss.as_pathname(), '*rb') ofp = openrf(dstfss.as_pathname(), '*wb') | ifp = openrf(src, '*rb') ofp = openrf(dst, '*wb') | def copy(src, dst, createpath=0, copydates=1, forcetype=None): """Copy a file, including finder info, resource fork, etc""" if createpath: mkdirs(os.path.split(dst)[0]) srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) ifp = open(srcfss.as_pathname(), 'rb') ofp = open(dstfss.as_pathname(), 'wb') d = ifp.read(BUFSIZ) while d: ofp.write(d) d = ifp.read(BUFSIZ) ifp.close() ofp.close() ifp = openrf(srcfss.as_pathname(), '*rb') ofp = openrf(dstfss.as_pathname(), '*wb') d = ifp.read(BUFSIZ) while d: ofp.write(d) d = ifp.read(BUFSIZ) ifp.close() ofp.close() sf = srcfss.GetFInfo() df = dstfss.GetFInfo() df.Creator, df.Type = sf.Creator, sf.Type if forcetype != None: df.Type = forcetype df.Flags = (sf.Flags & (kIsStationary|kNameLocked|kHasBundle|kIsInvisible|kIsAlias)) dstfss.SetFInfo(df) if copydates: crdate, mddate, bkdate = srcfss.GetDates() dstfss.SetDates(crdate, mddate, bkdate) touched(dstfss) | fee7a54e3e4b7473743856c6f2bb29c101f46603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fee7a54e3e4b7473743856c6f2bb29c101f46603/macostools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
4816,
16,
3046,
16,
752,
803,
33,
20,
16,
1610,
9683,
33,
21,
16,
364,
71,
5872,
33,
7036,
4672,
3536,
2951,
279,
585,
16,
6508,
7532,
1123,
16,
1058,
12515,
16,
5527,
8395,
309,
752,
803,
30,
18095,
12,
538,
18,
803,
18,
4939,
12,
11057,
25146,
20,
5717,
1705,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
4816,
13,
3046,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
11057,
13,
225,
309,
84,
273,
1696,
12,
4816,
74,
1049,
18,
345,
67,
28336,
9334,
296,
6731,
6134,
434,
84,
273,
1696,
12,
11057,
74,
1049,
18,
345,
67,
28336,
9334,
296,
9464,
6134,
302,
273,
309,
84,
18,
896,
12,
3000,
42,
2320,
62,
13,
1323,
302,
30,
434,
84,
18,
2626,
12,
72,
13,
302,
273,
309,
84,
18,
896,
12,
3000,
42,
2320,
62,
13,
309,
84,
18,
4412,
1435,
434,
84,
18,
4412,
1435,
225,
309,
84,
273,
1696,
5809,
12,
4816,
16,
14609,
6731,
6134,
434,
84,
273,
1696,
5809,
12,
11057,
16,
14609,
9464,
6134,
302,
273,
309,
84,
18,
896,
12,
3000,
42,
2320,
62,
13,
1323,
302,
30,
434,
84,
18,
2626,
12,
72,
13,
302,
273,
309,
84,
18,
896,
12,
3000,
42,
2320,
62,
13,
309,
84,
18,
4412,
1435,
434,
84,
18,
4412,
1435,
225,
9033,
273,
1705,
74,
1049,
18,
967,
42,
966,
1435,
3013,
273,
3046,
74,
1049,
18,
967,
42,
966,
1435,
3013,
18,
10636,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
4816,
16,
3046,
16,
752,
803,
33,
20,
16,
1610,
9683,
33,
21,
16,
364,
71,
5872,
33,
7036,
4672,
3536,
2951,
279,
585,
16,
6508,
7532,
1123,
16,
1058,
12515,
16,
5527,
8395,
309,
752,
803,
30,
18095,
12,
538,
18,
803,
18,
4939,
12,
11057,
25146,
20,
5717,
1705,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
4816,
13,
3046,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
11057,
13,
225,
309,
84,
273,
1696,
12,
4816,
74,
1049,
18,
345,
67,
28336,
9334,
296,
6731,
6134,
434,
84,
273,
1696,
12,
11057,
74,
1049,
18,
345,
67,
28336,
9334,
296,
9464,
6134,
302,
273,
309,
84,
18,
896,
12,
2
] |
print "Failed to remove old initialization file." print "This could be an indication of a permissions", print "problem." print "Make sure file '%s' is writable." % self.dotVistrails | debug.critical("""Failed to remove old initialization file. This could be an indication of a permissions problem. Make sure file '%s' is writable.""" % self.dotVistrails) | def execDotVistrails(): """ execDotVistrails() -> None Actually execute the Vistrail initialization """ # if it is file, then must move old-style .vistrails to # directory. if os.path.isfile(self.dotVistrails): print "Old-style initialization hooks. Will try to set things", print "correctly." print self.dotVistrails (fd, name) = tempfile.mkstemp() os.close(fd) shutil.copyfile(self.dotVistrails, name) try: os.unlink(self.dotVistrails) except: print "Failed to remove old initialization file." print "This could be an indication of a permissions", print "problem." print "Make sure file '%s' is writable." % self.dotVistrails sys.exit(1) try: os.mkdir(self.dotVistrails) except: print "Failed to create initialization directory." print "This could be an indication of a permissions " print "problem." print ("Make sure file parent directory of '%s' is " "writable." % self.dotVistrails) sys.exit(1) try: shutil.copyfile(name, self.dotVistrails + '/startup.py') except: print "Failed to copy old initialization file to ", print "newly-created" print "initialization directory. This must have been a race" print " condition." print ("Please remove '%s' and restart VisTrails." % self.dotVistrails) print "Successful move." try: os.unlink(name) except: print "Failed to erase temporary file." | bfaed3e949605db30e74fcd31e2a85371a3d1b04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/bfaed3e949605db30e74fcd31e2a85371a3d1b04/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
10412,
3282,
313,
15208,
13332,
3536,
1196,
10412,
3282,
313,
15208,
1435,
317,
599,
4603,
3452,
1836,
326,
776,
3337,
671,
10313,
225,
3536,
468,
309,
518,
353,
585,
16,
1508,
1297,
3635,
1592,
17,
4060,
263,
90,
3337,
15208,
358,
468,
1867,
18,
309,
1140,
18,
803,
18,
291,
768,
12,
2890,
18,
9811,
3282,
313,
15208,
4672,
1172,
315,
7617,
17,
4060,
10313,
9153,
18,
9980,
775,
358,
444,
9198,
3113,
1172,
315,
6746,
715,
1199,
1172,
365,
18,
9811,
3282,
313,
15208,
261,
8313,
16,
508,
13,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
13,
11060,
18,
3530,
768,
12,
2890,
18,
9811,
3282,
313,
15208,
16,
508,
13,
775,
30,
1140,
18,
318,
1232,
12,
2890,
18,
9811,
3282,
313,
15208,
13,
1335,
30,
1198,
18,
28000,
2932,
3660,
2925,
358,
1206,
1592,
10313,
585,
18,
1220,
3377,
506,
392,
1547,
829,
434,
279,
4371,
6199,
18,
4344,
3071,
585,
1995,
87,
11,
353,
9691,
12123,
738,
365,
18,
9811,
3282,
313,
15208,
13,
2589,
18,
8593,
12,
21,
13,
775,
30,
1140,
18,
26686,
12,
2890,
18,
9811,
3282,
313,
15208,
13,
1335,
30,
1172,
315,
2925,
358,
752,
10313,
1867,
1199,
1172,
315,
2503,
3377,
506,
392,
1547,
829,
434,
279,
4371,
315,
1172,
315,
18968,
1199,
1172,
7566,
6464,
3071,
585,
982,
1867,
434,
1995,
87,
11,
353,
315,
315,
15699,
1199,
738,
365,
18,
9811,
3282,
313,
15208,
13,
2589,
18,
8593,
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,
1196,
10412,
3282,
313,
15208,
13332,
3536,
1196,
10412,
3282,
313,
15208,
1435,
317,
599,
4603,
3452,
1836,
326,
776,
3337,
671,
10313,
225,
3536,
468,
309,
518,
353,
585,
16,
1508,
1297,
3635,
1592,
17,
4060,
263,
90,
3337,
15208,
358,
468,
1867,
18,
309,
1140,
18,
803,
18,
291,
768,
12,
2890,
18,
9811,
3282,
313,
15208,
4672,
1172,
315,
7617,
17,
4060,
10313,
9153,
18,
9980,
775,
358,
444,
9198,
3113,
1172,
315,
6746,
715,
1199,
1172,
365,
18,
9811,
3282,
313,
15208,
261,
8313,
16,
508,
13,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
13,
11060,
18,
3530,
768,
12,
2890,
18,
9811,
3282,
313,
15208,
16,
508,
13,
2
] |
if row[i] != None and row[i] <= row[i-1]: | if row[i-1] is not None and row[i] <= row[i-1]: | def is_standard(self): """ Returns True if t is a standard skew tableau and False otherwise. | 617dfb7dbfc4261312814fcbf1c72a2f0549122c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/617dfb7dbfc4261312814fcbf1c72a2f0549122c/skew_tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
10005,
12,
2890,
4672,
3536,
2860,
1053,
309,
268,
353,
279,
4529,
20001,
1014,
8377,
471,
1083,
3541,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
10005,
12,
2890,
4672,
3536,
2860,
1053,
309,
268,
353,
279,
4529,
20001,
1014,
8377,
471,
1083,
3541,
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
] |
cx, cy, cz = numpy.average(points2, 1) | def execute_module(self): ii = self._input_data if not ii: return | 9a662b58081b223e2ff54ea3d063c7e78c4c347f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4494/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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2978,
12,
2890,
4672,
6072,
273,
365,
6315,
2630,
67,
892,
309,
486,
6072,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return self.revisions[0].date | return self.ctime | def get_ctime(self): return self.revisions[0].date | 726eed312a5ece49d0c15a2ea1039578c995ccb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/726eed312a5ece49d0c15a2ea1039578c995ccb9/memory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21261,
12,
2890,
4672,
327,
365,
18,
29892,
63,
20,
8009,
712,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21261,
12,
2890,
4672,
327,
365,
18,
29892,
63,
20,
8009,
712,
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
] |
id = row[0] | id = c.fetchone()[0] | def _queryInsertID(self, conn, soInstance, id, names, values): """Firebird uses 'generators' to create new ids for a table. The users needs to create a generator named GEN_<tablename> for each table this method to work.""" table = soInstance.sqlmeta.table idName = soInstance.sqlmeta.idName sequenceName = getattr(soInstance, '_idSequence', 'GEN_%s' % table) if id is None: row = self.queryOne('SELECT gen_id(%s,1) FROM rdb$database' % sequenceName) id = row[0] names = [idName] + names values = [id] + values q = self._insertSQL(table, names, values) if self.debug: self.printDebug(conn, q, 'QueryIns') self.query(q) if self.debugOutput: self.printDebug(conn, id, 'QueryIns', 'result') return id | b3e5c5affbf5a5225bd50ecd0eb7749ae0803248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/b3e5c5affbf5a5225bd50ecd0eb7749ae0803248/firebirdconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
4600,
734,
12,
2890,
16,
1487,
16,
1427,
1442,
16,
612,
16,
1257,
16,
924,
4672,
3536,
9723,
31245,
4692,
296,
25959,
11,
358,
752,
394,
3258,
364,
279,
1014,
18,
1021,
3677,
4260,
358,
752,
279,
4456,
4141,
611,
1157,
67,
32,
7032,
14724,
34,
364,
1517,
1014,
333,
707,
358,
1440,
12123,
1014,
273,
1427,
1442,
18,
4669,
3901,
18,
2121,
612,
461,
273,
1427,
1442,
18,
4669,
3901,
18,
350,
461,
3102,
461,
273,
3869,
12,
2048,
1442,
16,
2070,
350,
4021,
2187,
296,
16652,
10185,
87,
11,
738,
1014,
13,
309,
612,
353,
599,
30,
1027,
273,
365,
18,
2271,
3335,
2668,
4803,
3157,
67,
350,
9275,
87,
16,
21,
13,
4571,
436,
1966,
8,
6231,
11,
738,
3102,
461,
13,
612,
273,
276,
18,
5754,
476,
1435,
63,
20,
65,
1257,
273,
306,
350,
461,
65,
397,
1257,
924,
273,
306,
350,
65,
397,
924,
1043,
273,
365,
6315,
6387,
3997,
12,
2121,
16,
1257,
16,
924,
13,
309,
365,
18,
4148,
30,
365,
18,
1188,
2829,
12,
4646,
16,
1043,
16,
296,
1138,
5048,
6134,
365,
18,
2271,
12,
85,
13,
309,
365,
18,
4148,
1447,
30,
365,
18,
1188,
2829,
12,
4646,
16,
612,
16,
296,
1138,
5048,
2187,
296,
2088,
6134,
327,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
2271,
4600,
734,
12,
2890,
16,
1487,
16,
1427,
1442,
16,
612,
16,
1257,
16,
924,
4672,
3536,
9723,
31245,
4692,
296,
25959,
11,
358,
752,
394,
3258,
364,
279,
1014,
18,
1021,
3677,
4260,
358,
752,
279,
4456,
4141,
611,
1157,
67,
32,
7032,
14724,
34,
364,
1517,
1014,
333,
707,
358,
1440,
12123,
1014,
273,
1427,
1442,
18,
4669,
3901,
18,
2121,
612,
461,
273,
1427,
1442,
18,
4669,
3901,
18,
350,
461,
3102,
461,
273,
3869,
12,
2048,
1442,
16,
2070,
350,
4021,
2187,
296,
16652,
10185,
87,
11,
738,
1014,
13,
309,
612,
353,
599,
30,
1027,
273,
365,
18,
2271,
3335,
2668,
4803,
3157,
67,
350,
9275,
87,
16,
21,
13,
4571,
2
] |
monkeypatch(cls, 'test_create', 'create') | monkeypatch(cls, 'test_crud', 'crud') | def __init__(cls, name, bases, classdict): if 'model' in classdict: monkeypatch(cls, 'test_create', 'create') | 8679afe44f4f28764f37d79a7dd0afbcb8c1484f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/8679afe44f4f28764f37d79a7dd0afbcb8c1484f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
667,
1576,
4672,
309,
296,
2284,
11,
316,
667,
1576,
30,
6921,
856,
2272,
12,
6429,
16,
296,
3813,
67,
2640,
2187,
296,
2640,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6429,
16,
508,
16,
8337,
16,
667,
1576,
4672,
309,
296,
2284,
11,
316,
667,
1576,
30,
6921,
856,
2272,
12,
6429,
16,
296,
3813,
67,
2640,
2187,
296,
2640,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
trace ("created") | def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message) | be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
261,
2150,
4672,
309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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
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
] |
|
self.notify.debug('self.garbage == %s' % safeRepr(self.garbage)) | self.notify.debug('self.garbage == %s' % fastRepr(self.garbage)) | def run(self): # do the garbage collection wasOn = gcDebugOn() oldFlags = gc.get_debug() if not wasOn: gc.set_debug(gc.DEBUG_SAVEALL) gc.collect() self.garbage = list(gc.garbage) # only yield if there's more time-consuming work to do, # if there's no garbage, give instant feedback if len(self.garbage) > 0: yield None # don't repr the garbage list if we don't have to if self.notify.getDebug(): self.notify.debug('self.garbage == %s' % safeRepr(self.garbage)) del gc.garbage[:] if not wasOn: gc.set_debug(oldFlags) | 233501d0a6e3d831ba670b198f335bccbf84ffb5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/233501d0a6e3d831ba670b198f335bccbf84ffb5/GarbageReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
741,
326,
15340,
1849,
1703,
1398,
273,
8859,
2829,
1398,
1435,
1592,
5094,
273,
8859,
18,
588,
67,
4148,
1435,
309,
486,
1703,
1398,
30,
8859,
18,
542,
67,
4148,
12,
13241,
18,
9394,
67,
25242,
4685,
13,
8859,
18,
14676,
1435,
365,
18,
75,
12332,
273,
666,
12,
13241,
18,
75,
12332,
13,
468,
1338,
2824,
309,
1915,
1807,
1898,
813,
17,
17664,
310,
1440,
358,
741,
16,
468,
309,
1915,
1807,
1158,
15340,
16,
8492,
5934,
10762,
309,
562,
12,
2890,
18,
75,
12332,
13,
405,
374,
30,
2824,
599,
468,
2727,
1404,
8480,
326,
15340,
666,
309,
732,
2727,
1404,
1240,
358,
309,
365,
18,
12336,
18,
588,
2829,
13332,
365,
18,
12336,
18,
4148,
2668,
2890,
18,
75,
12332,
422,
738,
87,
11,
738,
4797,
426,
683,
12,
2890,
18,
75,
12332,
3719,
1464,
8859,
18,
75,
12332,
10531,
65,
309,
486,
1703,
1398,
30,
8859,
18,
542,
67,
4148,
12,
1673,
5094,
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,
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8859,
2829,
1398,
1435,
1592,
5094,
273,
8859,
18,
588,
67,
4148,
1435,
309,
486,
1703,
1398,
30,
8859,
18,
542,
67,
4148,
12,
13241,
18,
9394,
67,
25242,
4685,
13,
8859,
18,
14676,
1435,
365,
18,
75,
12332,
273,
666,
12,
13241,
18,
75,
12332,
13,
468,
1338,
2824,
309,
1915,
1807,
1898,
813,
17,
17664,
310,
1440,
358,
741,
16,
468,
309,
1915,
1807,
1158,
15340,
16,
8492,
5934,
10762,
309,
562,
12,
2890,
18,
75,
12332,
13,
405,
374,
30,
2824,
599,
468,
2727,
1404,
8480,
326,
15340,
666,
309,
732,
2727,
1404,
1240,
358,
309,
365,
18,
12336,
18,
588,
2829,
13332,
2
] |
d = {'a': 1/0, 'b': None, 'c': None, 'd': None, 'e': None, | d = {'a': 1//0, 'b': None, 'c': None, 'd': None, 'e': None, | def test_empty_presized_dict_in_freelist(self): # Bug #3537: if an empty but presized dict with a size larger # than 7 was in the freelist, it triggered an assertion failure try: d = {'a': 1/0, 'b': None, 'c': None, 'd': None, 'e': None, 'f': None, 'g': None, 'h': None} except ZeroDivisionError: pass d = {} | e0b6e9a381845f64fe12ecb42b7d66d96e098c41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e0b6e9a381845f64fe12ecb42b7d66d96e098c41/test_dict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5531,
67,
12202,
1235,
67,
1576,
67,
267,
67,
74,
266,
5449,
12,
2890,
4672,
468,
16907,
468,
4763,
6418,
30,
309,
392,
1008,
1496,
4075,
1235,
2065,
598,
279,
963,
10974,
468,
2353,
2371,
1703,
316,
326,
22010,
5449,
16,
518,
10861,
392,
11240,
5166,
775,
30,
302,
273,
13666,
69,
4278,
404,
759,
20,
16,
225,
296,
70,
4278,
599,
16,
296,
71,
4278,
599,
16,
296,
72,
4278,
599,
16,
296,
73,
4278,
599,
16,
296,
74,
4278,
599,
16,
296,
75,
4278,
599,
16,
296,
76,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5531,
67,
12202,
1235,
67,
1576,
67,
267,
67,
74,
266,
5449,
12,
2890,
4672,
468,
16907,
468,
4763,
6418,
30,
309,
392,
1008,
1496,
4075,
1235,
2065,
598,
279,
963,
10974,
468,
2353,
2371,
1703,
316,
326,
22010,
5449,
16,
518,
10861,
392,
11240,
5166,
775,
30,
302,
273,
13666,
69,
4278,
404,
759,
20,
16,
225,
296,
70,
4278,
599,
16,
296,
71,
4278,
599,
16,
296,
72,
4278,
599,
16,
296,
73,
4278,
599,
16,
296,
74,
4278,
599,
16,
296,
75,
4278,
599,
16,
296,
76,
4278,
599,
97,
1335,
12744,
28223,
668,
30,
1342,
302,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits