rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
body = context.root.forbidden(context) | view = context.root.forbidden body = view.GET(here, context) | def GET(self, context): request, response = context.request, context.response # This is a safe method context.commit = False # Our canonical URLs never end with an slash if context.uri.path.endswith_slash: goto = copy(context.uri) goto.path.endswith_slash = False return 302, goto # Traverse status, here, view, method = self.traverse(context) if status == 200: # Check modification time mtime = view.get_mtime(here) if mtime is not None: mtime = mtime.replace(microsecond=0) response.set_header('last-modified', mtime) if request.method == 'GET': if request.has_header('if-modified-since'): msince = request.get_header('if-modified-since') if mtime <= msince: return 304, None # Call the method try: body = method(here, context) except Forbidden: if context.user is None: status = 401 body = context.site_root.unauthorized(context) else: status = 403 body = context.root.forbidden(context) | df6345ab0cc3fbeb96abe81c3b0974ebe7344a40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/df6345ab0cc3fbeb96abe81c3b0974ebe7344a40/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
819,
4672,
590,
16,
766,
273,
819,
18,
2293,
16,
819,
18,
2740,
468,
1220,
353,
279,
4183,
707,
819,
18,
7371,
273,
1083,
468,
29613,
7378,
10414,
5903,
679,
598,
392,
9026,
309,
819,
18,
1650,
18,
803,
18,
5839,
1918,
67,
12877,
30,
2897,
273,
1610,
12,
2472,
18,
1650,
13,
2897,
18,
803,
18,
5839,
1918,
67,
12877,
273,
1083,
327,
22072,
16,
2897,
468,
2197,
2476,
1267,
16,
2674,
16,
1476,
16,
707,
273,
365,
18,
2033,
2476,
12,
2472,
13,
309,
1267,
422,
4044,
30,
468,
2073,
11544,
813,
13158,
273,
1476,
18,
588,
67,
10838,
12,
14852,
13,
309,
13158,
353,
486,
599,
30,
13158,
273,
13158,
18,
2079,
12,
14458,
8538,
33,
20,
13,
766,
18,
542,
67,
3374,
2668,
2722,
17,
7342,
2187,
13158,
13,
309,
590,
18,
2039,
422,
296,
3264,
4278,
309,
590,
18,
5332,
67,
3374,
2668,
430,
17,
7342,
17,
9256,
11,
4672,
4086,
2410,
273,
590,
18,
588,
67,
3374,
2668,
430,
17,
7342,
17,
9256,
6134,
309,
13158,
1648,
4086,
2410,
30,
327,
27499,
16,
599,
468,
3049,
326,
707,
775,
30,
1417,
273,
707,
12,
14852,
16,
819,
13,
1335,
20204,
30,
309,
819,
18,
1355,
353,
599,
30,
1267,
273,
14052,
1417,
273,
819,
18,
4256,
67,
3085,
18,
318,
8434,
12,
2472,
13,
469,
30,
1267,
273,
14393,
1417,
273,
819,
18,
3085,
18,
1884,
9215,
12,
2472,
13,
2,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
819,
4672,
590,
16,
766,
273,
819,
18,
2293,
16,
819,
18,
2740,
468,
1220,
353,
279,
4183,
707,
819,
18,
7371,
273,
1083,
468,
29613,
7378,
10414,
5903,
679,
598,
392,
9026,
309,
819,
18,
1650,
18,
803,
18,
5839,
1918,
67,
12877,
30,
2897,
273,
1610,
12,
2472,
18,
1650,
13,
2897,
18,
803,
18,
5839,
1918,
67,
12877,
273,
1083,
327,
22072,
16,
2897,
468,
2197,
2476,
1267,
16,
2674,
16,
1476,
16,
707,
273,
365,
18,
2033,
2476,
12,
2472,
13,
309,
1267,
422,
4044,
30,
468,
2073,
11544,
813,
13158,
273,
1476,
18,
588,
67,
10838,
12,
14852,
13,
309,
13158,
353,
486,
599,
30,
13158,
273,
13158,
18,
2
] |
setattr(self.REFERENCE_CONTENT_INSTANCE_NAME,self.contentType(REFERENCE_CONTENT_INSTANCE_NAME)) getattr(self.REFERENCE_CONTENT_INSTANCE_NAME)._md=PersistentMapping() | setattr(self, REFERENCE_CONTENT_INSTANCE_NAME, self.contentType(REFERENCE_CONTENT_INSTANCE_NAME)) getattr(self, REFERENCE_CONTENT_INSTANCE_NAME)._md=PersistentMapping() | def addHook(self, *args, **kw): #creates the content instance if type(self.contentType) in (type(''),type(u'')): #type given as string tt=getToolByName(self,'portal_types') tt.constructContent(self.contentType,self,REFERENCE_CONTENT_INSTANCE_NAME) else: #type given as class setattr(self.REFERENCE_CONTENT_INSTANCE_NAME,self.contentType(REFERENCE_CONTENT_INSTANCE_NAME)) getattr(self.REFERENCE_CONTENT_INSTANCE_NAME)._md=PersistentMapping() | 6fa00df5229755950a713cb30a2bac9402a30a9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/6fa00df5229755950a713cb30a2bac9402a30a9c/ReferenceEngine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5394,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
468,
19787,
326,
913,
791,
309,
618,
12,
2890,
18,
22194,
13,
316,
261,
723,
2668,
19899,
723,
12,
89,
6309,
3719,
30,
468,
723,
864,
487,
533,
3574,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
2352,
6134,
3574,
18,
10062,
1350,
12,
2890,
18,
22194,
16,
2890,
16,
14617,
67,
9689,
67,
13341,
67,
1985,
13,
469,
30,
468,
723,
864,
487,
667,
9241,
12,
2890,
18,
14617,
67,
9689,
67,
13341,
67,
1985,
16,
2890,
18,
22194,
12,
14617,
67,
9689,
67,
13341,
67,
1985,
3719,
3869,
12,
2890,
18,
14617,
67,
9689,
67,
13341,
67,
1985,
2934,
67,
1264,
33,
11906,
3233,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5394,
12,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
468,
19787,
326,
913,
791,
309,
618,
12,
2890,
18,
22194,
13,
316,
261,
723,
2668,
19899,
723,
12,
89,
6309,
3719,
30,
468,
723,
864,
487,
533,
3574,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
2352,
6134,
3574,
18,
10062,
1350,
12,
2890,
18,
22194,
16,
2890,
16,
14617,
67,
9689,
67,
13341,
67,
1985,
13,
469,
30,
468,
723,
864,
487,
667,
9241,
12,
2890,
18,
14617,
67,
9689,
67,
13341,
67,
1985,
16,
2890,
18,
22194,
12,
14617,
67,
9689,
67,
13341,
67,
1985,
3719,
3869,
12,
2890,
18,
14617,
67,
9689,
67,
13341,
67,
1985,
2934,
67,
1264,
33,
11906,
3233,
2
] |
self.AutoCompShow(string.join(list, ' ')) | self.AutoCompShow(string.join(lst, ' ')) | def checkCodeComp(self): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs) startLine = start-lnStPs word = line[startLine:startLine+length] | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1085,
2945,
12,
2890,
4672,
949,
273,
365,
18,
967,
3935,
1616,
1435,
7211,
2279,
273,
365,
18,
967,
3935,
1670,
1435,
7211,
510,
18124,
273,
365,
18,
967,
1670,
1685,
1616,
12,
2370,
2279,
13,
980,
273,
365,
18,
967,
3935,
1670,
1528,
1435,
63,
20,
65,
293,
427,
273,
949,
300,
7211,
510,
18124,
787,
16,
769,
273,
612,
3944,
12,
1369,
16,
293,
427,
16,
7211,
510,
18124,
13,
24636,
273,
787,
17,
2370,
510,
18124,
2076,
273,
980,
63,
1937,
1670,
30,
1937,
1670,
15,
2469,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
1435,
7211,
510,
18124,
273,
365,
18,
967,
1670,
1685,
1616,
12,
2370,
2279,
13,
980,
273,
365,
18,
967,
3935,
1670,
1528,
1435,
63,
20,
65,
293,
427,
273,
949,
300,
7211,
510,
18124,
787,
16,
769,
273,
612,
3944,
12,
1369,
16,
293,
427,
16,
7211,
510,
18124,
13,
24636,
273,
787,
17,
2370,
510,
18124,
2076,
273,
980,
63,
1937,
1670,
30,
1937,
1670,
15,
2469,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this = apply(_quickfix.new_FirmTradeID, args) | this = _quickfix.new_FirmTradeID(*args) | def __init__(self, *args): this = apply(_quickfix.new_FirmTradeID, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
42,
3985,
22583,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
42,
3985,
22583,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
test, args_tuple = pending.popleft() except IndexError: | test, args_tuple = next(pending) except StopIteration: | def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None, None)) return # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=PIPE, universal_newlines=True, close_fds=True) stdout, stderr = popen.communicate() # Strip last refcount output line if it exists, since it # comes from the shutdown of the interpreter in the subcommand. stderr = debug_output_pat.sub("", stderr) stdout, _, result = stdout.strip().rpartition("\n") result = json.loads(result) if not quiet: stdout = test+'\n'+stdout output.put((test, stdout.rstrip(), stderr.rstrip(), result)) except BaseException: output.put((None, None, None, None)) raise | d8172be4a3d1ea42b76faa6f634faf7700fb632c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/d8172be4a3d1ea42b76faa6f634faf7700fb632c/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
1024,
12,
9561,
13,
1335,
16179,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
327,
468,
300,
41,
353,
3577,
635,
2690,
7434,
16,
425,
18,
75,
18,
1842,
67,
5666,
30925,
273,
14339,
3816,
9499,
18,
17751,
16,
2400,
41,
2187,
2400,
81,
2187,
296,
3813,
18,
1574,
3797,
395,
2187,
3534,
27352,
1968,
2187,
1163,
18,
13302,
1121,
12,
1968,
67,
8052,
13,
6487,
3909,
33,
27602,
16,
4514,
33,
27602,
16,
26182,
67,
31276,
33,
5510,
16,
1746,
67,
74,
2377,
33,
5510,
13,
3909,
16,
4514,
273,
30925,
18,
5702,
318,
2659,
1435,
468,
15589,
1142,
1278,
1883,
876,
980,
309,
518,
1704,
16,
3241,
518,
468,
14535,
628,
326,
5731,
434,
326,
16048,
316,
326,
18856,
18,
4514,
273,
1198,
67,
2844,
67,
16330,
18,
1717,
2932,
3113,
4514,
13,
3909,
16,
389,
16,
563,
273,
3909,
18,
6406,
7675,
86,
10534,
31458,
82,
7923,
563,
273,
1163,
18,
17135,
12,
2088,
13,
309,
486,
10902,
30,
3909,
273,
1842,
6797,
64,
82,
11,
15,
10283,
876,
18,
458,
12443,
3813,
16,
3909,
18,
86,
6406,
9334,
4514,
18,
86,
6406,
9334,
563,
3719,
1335,
26778,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
1002,
2,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
1024,
12,
9561,
13,
1335,
16179,
30,
876,
18,
458,
12443,
7036,
16,
599,
16,
599,
16,
599,
3719,
327,
468,
300,
41,
353,
3577,
635,
2690,
7434,
16,
425,
18,
75,
18,
1842,
67,
5666,
30925,
273,
14339,
3816,
9499,
18,
17751,
16,
2400,
41,
2187,
2400,
81,
2187,
296,
3813,
18,
1574,
3797,
395,
2187,
3534,
27352,
1968,
2187,
1163,
18,
13302,
1121,
12,
1968,
67,
8052,
13,
6487,
3909,
33,
27602,
16,
4514,
33,
27602,
16,
26182,
67,
31276,
33,
5510,
16,
1746,
67,
74,
2377,
33,
5510,
13,
3909,
16,
4514,
273,
30925,
18,
2
] |
]) | ]) + "," | def forwards_code(self): "Produces the code snippet that gets put into forwards()" field_defs = ",\n ".join([ "(%r, %s)" % (name, defn) for name, defn in self.triples_to_defs(self.model_def).items() ]) return self.FORWARDS_TEMPLATE % { "model_name": self.model._meta.object_name, "table_name": self.model._meta.db_table, "app_label": self.model._meta.app_label, "field_defs": field_defs, } | a8dba0a4826ccd2db052857638c89809c5fdcfc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/a8dba0a4826ccd2db052857638c89809c5fdcfc7/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24578,
67,
710,
12,
2890,
4672,
315,
27291,
326,
981,
13016,
716,
5571,
1378,
1368,
24578,
10031,
652,
67,
12537,
273,
31726,
82,
5411,
3552,
5701,
3816,
7751,
9,
86,
16,
738,
87,
2225,
738,
261,
529,
16,
1652,
82,
13,
364,
508,
16,
1652,
82,
316,
365,
18,
16857,
6089,
67,
869,
67,
12537,
12,
2890,
18,
2284,
67,
536,
2934,
3319,
1435,
308,
13,
397,
5753,
225,
327,
365,
18,
7473,
16777,
3948,
67,
12205,
738,
288,
315,
2284,
67,
529,
6877,
365,
18,
2284,
6315,
3901,
18,
1612,
67,
529,
16,
315,
2121,
67,
529,
6877,
365,
18,
2284,
6315,
3901,
18,
1966,
67,
2121,
16,
315,
2910,
67,
1925,
6877,
365,
18,
2284,
6315,
3901,
18,
2910,
67,
1925,
16,
315,
1518,
67,
12537,
6877,
652,
67,
12537,
16,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
86,
16,
738,
87,
2225,
738,
261,
529,
16,
1652,
82,
13,
364,
508,
16,
1652,
82,
316,
365,
18,
16857,
6089,
67,
869,
67,
12537,
12,
2890,
18,
2284,
67,
536,
2934,
3319,
1435,
308,
13,
397,
5753,
225,
327,
365,
18,
7473,
16777,
3948,
67,
12205,
738,
288,
315,
2284,
67,
529,
6877,
365,
18,
2284,
6315,
3901,
18,
1612,
67,
529,
16,
315,
2121,
67,
529,
6877,
365,
18,
2284,
6315,
3901,
18,
1966,
67,
2121,
16,
315,
2910,
67,
1925,
6877,
365,
18,
2284,
6315,
2
] |
where5 = where4 + [('ressource_id','=',self.res_id)] dirids = dirids + dirobj.search(cr,uid, where5) | def _child_get(self, cr, name=None, domain=None): dirobj = self.context._dirobj | 0cb5ccb45d72356e72b0fb025b06360d62a3fbf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0cb5ccb45d72356e72b0fb025b06360d62a3fbf6/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
7036,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
7036,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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, stdout=sys.stdout, stderr=sys.stderr, *args, **kwds ): | def __init__( self, direct_io=False, stdout=sys.stdout, stderr=sys.stderr, *args, **kwds ): | def __init__( self, stdout=sys.stdout, stderr=sys.stderr, *args, **kwds ): unittest.TestCase.__init__( self ) self.stdout = stdout self.stderr = stderr | 3a832a04bb025372241cfa1c838afe2f3f4ff843 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7199/3a832a04bb025372241cfa1c838afe2f3f4ff843/15_makextreemfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
2657,
67,
1594,
33,
8381,
16,
3909,
33,
9499,
18,
10283,
16,
4514,
33,
9499,
18,
11241,
16,
380,
1968,
16,
2826,
25577,
262,
30,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
365,
262,
365,
18,
10283,
273,
3909,
365,
18,
11241,
273,
4514,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
365,
16,
2657,
67,
1594,
33,
8381,
16,
3909,
33,
9499,
18,
10283,
16,
4514,
33,
9499,
18,
11241,
16,
380,
1968,
16,
2826,
25577,
262,
30,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
365,
262,
365,
18,
10283,
273,
3909,
365,
18,
11241,
273,
4514,
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
] |
self.nodeStack = [self.AddRoot("Root")] | self._root = self.AddRoot("Root") self.nodeStack = [self._root] | def __init__(self, parent, ID): wx.TreeCtrl.__init__(self, parent, ID) self.nodeStack = [self.AddRoot("Root")] | d531898b100dd9eb62ac37e1f10e0537d5747c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d531898b100dd9eb62ac37e1f10e0537d5747c18/XMLtreeview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1599,
4672,
7075,
18,
2471,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
1599,
13,
365,
18,
2159,
2624,
273,
306,
2890,
18,
986,
2375,
2932,
2375,
7923,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
state = _("Unknown") | state = i18n("Unknown") | def update_job (self, job, data): iter = self.jobiters[job] self.jobs[job] = data | 2e12362d2411a0846a395cd899c27375d9eddefe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1682/2e12362d2411a0846a395cd899c27375d9eddefe/printer-applet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
4688,
261,
2890,
16,
1719,
16,
501,
4672,
1400,
273,
365,
18,
4688,
27270,
63,
4688,
65,
365,
18,
10088,
63,
4688,
65,
273,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4688,
261,
2890,
16,
1719,
16,
501,
4672,
1400,
273,
365,
18,
4688,
27270,
63,
4688,
65,
365,
18,
10088,
63,
4688,
65,
273,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 fsapi.is_backup_file(path) : logging.debug("%s: discarding Inotify event on %s, it's a backup file." % (self.getName(), styles.stylize(styles.ST_PATH, path))) | if os.path.islink(path) or fsapi.is_backup_file(path) : logging.debug("%s: discarding Inotify event on %s, it's a symlink or a backup file." % (self.getName(), styles.stylize(styles.ST_PATH, path))) | def process_event(self, basename, event, gid, dirname): """ Process Gamin events and apply ACLs on the fly. """ | 22b958d12b7da10fcbe44b3c7cd50e351ee1a290 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7650/22b958d12b7da10fcbe44b3c7cd50e351ee1a290/internals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2575,
12,
2890,
16,
4882,
16,
871,
16,
11399,
16,
4283,
4672,
3536,
4389,
611,
301,
267,
2641,
471,
2230,
10098,
87,
603,
326,
21434,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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389,
611,
301,
267,
2641,
471,
2230,
10098,
87,
603,
326,
21434,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise ValueError for i in range(1, len(sub)): if sub[i] != self[index+i]: raise ValueError return index | pass try: index = self._dict[sub[0]] for i in range(1, len(sub)): if sub[i] != self[index+i]: raise ValueError return index except TypeError: pass raise ValueError | def index(sub, start=0, end=-1): """ This runs in O(len(sub)) """ index %= len(self) try: index = self._dict[sub] except KeyError: raise ValueError for i in range(1, len(sub)): if sub[i] != self[index+i]: raise ValueError return index | a01f2baa7c6c3cc56949290f99e3b37028467eda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/a01f2baa7c6c3cc56949290f99e3b37028467eda/setlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
1717,
16,
787,
33,
20,
16,
679,
29711,
21,
4672,
3536,
1220,
7597,
316,
531,
12,
1897,
12,
1717,
3719,
3536,
770,
30582,
562,
12,
2890,
13,
775,
30,
770,
273,
365,
6315,
1576,
63,
1717,
65,
1335,
4999,
30,
1002,
2068,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
1717,
3719,
30,
309,
720,
63,
77,
65,
480,
365,
63,
1615,
15,
77,
14542,
1002,
2068,
327,
770,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
1717,
16,
787,
33,
20,
16,
679,
29711,
21,
4672,
3536,
1220,
7597,
316,
531,
12,
1897,
12,
1717,
3719,
3536,
770,
30582,
562,
12,
2890,
13,
775,
30,
770,
273,
365,
6315,
1576,
63,
1717,
65,
1335,
4999,
30,
1002,
2068,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
1717,
3719,
30,
309,
720,
63,
77,
65,
480,
365,
63,
1615,
15,
77,
14542,
1002,
2068,
327,
770,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 copy_to_temp(copy_to="subdownloader_cli"): | def copy_to_temp(copy_to="/tmp/subdownloader"): | def copy_to_temp(copy_to="subdownloader_cli"): sys.stdout.write("Copying current path contents to '%s'..."% copy_to) sys.stdout.flush() #os.mkdir("subdownloader_cli") shutil.copytree(".", os.path.join(".", copy_to)) sys.stdout.write(" done\n") sys.stdout.flush() sys.stdout.write("Cleaning '%s'..."% copy_to) sys.stdout.flush() for root, dirs, fileNames in os.walk("./subdownloader_cli"): # check for unwanted directories if os.path.split(root)[-1] in exclude_dirs: shutil.rmtree(root) continue # check for unwanted files for fileName in fileNames: for ext in exclude_files: if re.search("%s$"% ext, fileName): os.remove(os.path.join(root, fileName)) sys.stdout.write(" done\n") sys.stdout.flush() | 349f70d226e5e00114f208b05ba78fb124915afc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/349f70d226e5e00114f208b05ba78fb124915afc/build_cli_tarball.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
869,
67,
5814,
12,
3530,
67,
869,
1546,
19,
5645,
19,
1717,
2378,
6714,
6,
4672,
2589,
18,
10283,
18,
2626,
2932,
2951,
310,
783,
589,
2939,
358,
1995,
87,
11,
7070,
9,
1610,
67,
869,
13,
2589,
18,
10283,
18,
11330,
1435,
468,
538,
18,
26686,
2932,
1717,
2378,
6714,
67,
4857,
7923,
11060,
18,
3530,
3413,
2932,
1199,
16,
1140,
18,
803,
18,
5701,
2932,
1199,
16,
1610,
67,
869,
3719,
2589,
18,
10283,
18,
2626,
2932,
2731,
64,
82,
7923,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
10283,
18,
2626,
2932,
7605,
310,
1995,
87,
11,
7070,
9,
1610,
67,
869,
13,
2589,
18,
10283,
18,
11330,
1435,
364,
1365,
16,
7717,
16,
27375,
316,
1140,
18,
11348,
2932,
18,
19,
1717,
2378,
6714,
67,
4857,
6,
4672,
468,
866,
364,
30264,
6402,
309,
1140,
18,
803,
18,
4939,
12,
3085,
13,
18919,
21,
65,
316,
4433,
67,
8291,
30,
11060,
18,
86,
17371,
12,
3085,
13,
1324,
468,
866,
364,
30264,
1390,
364,
3968,
316,
27375,
30,
364,
1110,
316,
4433,
67,
2354,
30,
309,
283,
18,
3072,
27188,
87,
12911,
9,
1110,
16,
3968,
4672,
1140,
18,
4479,
12,
538,
18,
803,
18,
5701,
12,
3085,
16,
3968,
3719,
2589,
18,
10283,
18,
2626,
2932,
2731,
64,
82,
7923,
2589,
18,
10283,
18,
11330,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
869,
67,
5814,
12,
3530,
67,
869,
1546,
19,
5645,
19,
1717,
2378,
6714,
6,
4672,
2589,
18,
10283,
18,
2626,
2932,
2951,
310,
783,
589,
2939,
358,
1995,
87,
11,
7070,
9,
1610,
67,
869,
13,
2589,
18,
10283,
18,
11330,
1435,
468,
538,
18,
26686,
2932,
1717,
2378,
6714,
67,
4857,
7923,
11060,
18,
3530,
3413,
2932,
1199,
16,
1140,
18,
803,
18,
5701,
2932,
1199,
16,
1610,
67,
869,
3719,
2589,
18,
10283,
18,
2626,
2932,
2731,
64,
82,
7923,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
10283,
18,
2626,
2932,
7605,
310,
1995,
87,
11,
7070,
9,
1610,
67,
869,
13,
2589,
18,
10283,
18,
11330,
1435,
364,
1365,
16,
7717,
2
] |
if updateCallback and updateCallback(msg=_(u"Removing from collection: '%s'") % item.getItemDisplayName()): | if updateCallback and updateCallback( msg=_(u"Removing from collection: '%(name)s'") % { 'name' : item.getItemDisplayName() } ): | def _get(self, previousView=None, updateCallback=None, getPhrase = None): | 605c9a710d3cc2be6b6a5c80a93045d5ce1c927d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/605c9a710d3cc2be6b6a5c80a93045d5ce1c927d/Sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
12,
2890,
16,
2416,
1767,
33,
7036,
16,
1089,
2428,
33,
7036,
16,
21735,
5648,
273,
599,
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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416,
1767,
33,
7036,
16,
1089,
2428,
33,
7036,
16,
21735,
5648,
273,
599,
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
] |
url = 'http://www.google.com/search?btnI=I&' + urllib.urlencode({'q' : query}) request = urllib2.Request(url) request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)') result = urllib2.build_opener(NoRedirects, NoErrors).open(request) if isinstance(result, str): return '%s: %s = %s' % (nick, query, result) else: raise Exception('No matches for ' + query) o | return '%s: %s' % (nick, self.google.lucky(query)) | def response(self, **kwargs): nick = kwargs['nick'] args = kwargs['args'] | 78b0eb8aef80361cff80af37d7ce4e220a272807 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/78b0eb8aef80361cff80af37d7ce4e220a272807/google.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
2890,
16,
2826,
4333,
4672,
10909,
273,
1205,
3292,
17091,
3546,
833,
273,
1205,
3292,
1968,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
766,
12,
2890,
16,
2826,
4333,
4672,
10909,
273,
1205,
3292,
17091,
3546,
833,
273,
1205,
3292,
1968,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.md.litter_mode=='constant yearly': | if not self.simulation or self.md.litter_mode=='constant yearly': | def _predict(self, sc, initial, litter, climate): """ processes the input data before calling the model and then runs the model sc -- non-woody / size of the woody material modelled initial -- system state at the beginning of the timestep litter -- litter input for the timestep climate -- climate conditions for the timestep draw -- should the values be drawn from the distribution or not """ # model parameters if self.ml_run: # maximum likelihood estimates for the model parameters self.param = self._model_param[0,:] elif self.draw: pind = random.randint(0, self._model_param.shape[0]-1) self.param = self._model_param[pind,:] # and mean values for the initial state and input if self.ml_run: initial = self._draw_from_distr(initial, VALUESPEC, False) self.infall[sc] = self._draw_from_distr(litter, VALUESPEC, False) elif self.draw: initial = self._draw_from_distr(initial, VALUESPEC, True) self.infall[sc] = self._draw_from_distr(litter, VALUESPEC, True) else: # initial values drawn randomly only for the "draw" run # i.e. for the first run after maximum likelihood run initial = self._draw_from_distr(initial, VALUESPEC, False) if self.md.litter_mode!='constant yearly': # if litter input is a timeseries, drawn at each step # for constant input the values drawn at the beginning used self.infall[sc] = self._draw_from_distr(litter, VALUESPEC, True) # climate na = numpy.array f32 = numpy.float32 par = na(self.param, dtype=f32) dur = climate['duration'] init = na(initial, dtype=f32) # convert input to yearly input in all cases if self.md.litter_mode=='constant yearly': inf = na(self.infall[sc], dtype=f32) else: inf = na(self.infall[sc], dtype=f32) / dur cl = na([climate['temp'], climate['rain'], climate['amplitude']], dtype=f32) endstate = y07.yasso.mod5c(par, dur, cl, init, inf, sc) self.ts_initial += sum(initial) self.ts_infall += sum(self.infall[sc]) return init, endstate | 62654e19e802932b4f79e4fd8d72c70335d16ba8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1832/62654e19e802932b4f79e4fd8d72c70335d16ba8/modelcall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14491,
12,
2890,
16,
888,
16,
2172,
16,
328,
6132,
16,
927,
4988,
4672,
3536,
8488,
326,
810,
501,
1865,
4440,
326,
938,
471,
1508,
7597,
326,
938,
888,
1493,
1661,
17,
6933,
973,
342,
963,
434,
326,
341,
83,
973,
9390,
938,
1259,
2172,
1493,
2619,
919,
622,
326,
8435,
434,
326,
27072,
328,
6132,
1493,
328,
6132,
810,
364,
326,
27072,
927,
4988,
1493,
927,
4988,
4636,
364,
326,
27072,
3724,
1493,
1410,
326,
924,
506,
19377,
628,
326,
7006,
578,
486,
3536,
468,
938,
1472,
309,
365,
18,
781,
67,
2681,
30,
468,
4207,
18067,
27585,
364,
326,
938,
1472,
365,
18,
891,
273,
365,
6315,
2284,
67,
891,
63,
20,
16,
26894,
1327,
365,
18,
9446,
30,
293,
728,
273,
2744,
18,
7884,
474,
12,
20,
16,
365,
6315,
2284,
67,
891,
18,
4867,
63,
20,
65,
17,
21,
13,
365,
18,
891,
273,
365,
6315,
2284,
67,
891,
63,
84,
728,
16,
26894,
468,
471,
3722,
924,
364,
326,
2172,
919,
471,
810,
309,
365,
18,
781,
67,
2681,
30,
2172,
273,
365,
6315,
9446,
67,
2080,
67,
2251,
313,
12,
6769,
16,
13477,
10106,
16,
1083,
13,
365,
18,
10625,
454,
63,
1017,
65,
273,
365,
6315,
9446,
67,
2080,
67,
2251,
313,
12,
80,
6132,
16,
13477,
10106,
16,
1083,
13,
1327,
365,
18,
9446,
30,
2172,
273,
365,
6315,
9446,
67,
2080,
67,
2251,
313,
12,
6769,
16,
13477,
10106,
16,
1053,
13,
365,
18,
10625,
454,
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,
14491,
12,
2890,
16,
888,
16,
2172,
16,
328,
6132,
16,
927,
4988,
4672,
3536,
8488,
326,
810,
501,
1865,
4440,
326,
938,
471,
1508,
7597,
326,
938,
888,
1493,
1661,
17,
6933,
973,
342,
963,
434,
326,
341,
83,
973,
9390,
938,
1259,
2172,
1493,
2619,
919,
622,
326,
8435,
434,
326,
27072,
328,
6132,
1493,
328,
6132,
810,
364,
326,
27072,
927,
4988,
1493,
927,
4988,
4636,
364,
326,
27072,
3724,
1493,
1410,
326,
924,
506,
19377,
628,
326,
7006,
578,
486,
3536,
468,
938,
1472,
309,
365,
18,
781,
67,
2681,
30,
468,
4207,
18067,
27585,
364,
326,
938,
1472,
365,
18,
891,
273,
365,
6315,
2284,
67,
891,
63,
20,
16,
26894,
1327,
2
] |
======= param = [SV.FIELDDROP, 0] v.SetParam(param) >>>>>>> 1.7 | def main(): format = SV.RGB8_FRAMES qsize = 2 audio = 0 rate = 2 width = 0 norecord = 0 drop = 0 mono = 0 grey = 0 monotreshold = -1 opts, args = getopt.getopt(sys.argv[1:], 'aq:r:w:ndgmM:') for opt, arg in opts: if opt == '-a': audio = 1 elif opt == '-q': qsize = string.atoi(arg) elif opt == '-r': rate = string.atoi(arg) if rate < 2: sys.stderr.write('-r rate must be >= 2\n') sys.exit(2) elif opt == '-w': width = string.atoi(arg) elif opt == '-n': norecord = 1 elif opt == '-d': drop = 1 elif opt == '-g': grey = 1 elif opt == '-m': mono = 1 elif opt == '-M': mono = 1 monotreshold = string.atoi(arg) if args[2:]: sys.stderr.write('usage: Vrec [options] [file [audiofile]]\n') sys.exit(2) if args: filename = args[0] else: filename = 'film.video' if args[1:] and not audio: sys.stderr.write('-a turned on by appearance of 2nd file\n') audio = 1 if audio: if args[1:]: audiofilename = args[1] else: audiofilename = 'film.aiff' else: audiofilename = None if norecord: filename = audiofilename = '' v = sv.OpenVideo() # Determine maximum window size based on signal standard param = [SV.BROADCAST, 0] v.GetParam(param) if param[1] == SV.PAL: x = SV.PAL_XMAX y = SV.PAL_YMAX elif param[1] == SV.NTSC: x = SV.NTSC_XMAX y = SV.NTSC_YMAX else: print 'Unknown video standard', param[1] sys.exit(1) gl.foreground() gl.maxsize(x, y) gl.keepaspect(x, y) gl.stepunit(8, 6) if width: gl.prefsize(width, width*3/4) win = gl.winopen(filename) if width: gl.maxsize(x, y) gl.keepaspect(x, y) gl.stepunit(8, 6) gl.winconstraints() x, y = gl.getsize() print x, 'x', y v.SetSize(x, y) | cc4967ad870844fcd568bf1e374c367ab53cff8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cc4967ad870844fcd568bf1e374c367ab53cff8d/Vrec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
740,
273,
29537,
18,
11343,
28,
67,
15072,
55,
1043,
1467,
273,
576,
7447,
273,
374,
4993,
273,
576,
1835,
273,
374,
290,
479,
901,
273,
374,
3640,
273,
374,
6921,
83,
273,
374,
5174,
93,
273,
374,
6921,
352,
3444,
273,
300,
21,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
69,
85,
30,
86,
30,
91,
30,
4880,
23336,
49,
2497,
13,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
422,
2400,
69,
4278,
7447,
273,
404,
1327,
2153,
422,
2400,
85,
4278,
1043,
1467,
273,
533,
18,
270,
11359,
12,
3175,
13,
1327,
2153,
422,
2400,
86,
4278,
4993,
273,
533,
18,
270,
11359,
12,
3175,
13,
309,
4993,
411,
576,
30,
2589,
18,
11241,
18,
2626,
2668,
17,
86,
4993,
1297,
506,
1545,
576,
64,
82,
6134,
2589,
18,
8593,
12,
22,
13,
1327,
2153,
422,
2400,
91,
4278,
1835,
273,
533,
18,
270,
11359,
12,
3175,
13,
1327,
2153,
422,
2400,
82,
4278,
290,
479,
901,
273,
404,
1327,
2153,
422,
2400,
72,
4278,
3640,
273,
404,
1327,
2153,
422,
2400,
75,
4278,
5174,
93,
273,
404,
1327,
2153,
422,
2400,
81,
4278,
6921,
83,
273,
404,
1327,
2153,
422,
2400,
49,
4278,
6921,
83,
273,
404,
6921,
352,
3444,
273,
533,
18,
270,
11359,
12,
3175,
13,
225,
309,
833,
63,
22,
30,
14542,
2589,
18,
11241,
18,
2626,
2668,
9167,
30,
776,
3927,
306,
2116,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
740,
273,
29537,
18,
11343,
28,
67,
15072,
55,
1043,
1467,
273,
576,
7447,
273,
374,
4993,
273,
576,
1835,
273,
374,
290,
479,
901,
273,
374,
3640,
273,
374,
6921,
83,
273,
374,
5174,
93,
273,
374,
6921,
352,
3444,
273,
300,
21,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
69,
85,
30,
86,
30,
91,
30,
4880,
23336,
49,
2497,
13,
364,
2153,
16,
1501,
316,
1500,
30,
309,
2153,
422,
2400,
69,
4278,
7447,
273,
404,
1327,
2153,
422,
2400,
85,
4278,
1043,
1467,
273,
533,
18,
270,
11359,
12,
3175,
13,
1327,
2153,
422,
2400,
86,
4278,
4993,
273,
533,
2
] | |
EXAMPLES: | Returns a generator object which iterates through the elements of self. The order in which the elements are generated is based on a 'weight' of a matrix which is the number of iterations on the base ring that are required to reach that matrix. The ordering is similar to a degree negative lexicographic order in monomials in a multivariate polynomial ring. EXAMPLES: Consider the case of 2 x 2 matrices over GF(5). sage: list( GF(5) ) [0, 1, 2, 3, 4] sage: MS = MatrixSpace(GF(5), 2, 2) sage: l = list(MS) Then, consider the following matrices: sage: A = MS([2,1,0,1]); A [2 1] [0 1] sage: B = MS([1,2,1,0]); B [1 2] [1 0] sage: C = MS([1,2,0,0]); C [1 2] [0 0] A appears before B since the weight of one of A's entries exceeds the weight of the corresponding entry in B earliest in the list. sage: l.index(A) 41 sage: l.index(B) 46 However, A would come after the matrix C since C has a lower weight than A. sage: l.index(A) 41 sage: l.index(C) 19 The weights of matrices over other base rings are not as obvious. For example, the weight of sage: MS = MatrixSpace(ZZ, 2, 2) sage: MS([-1,0,0,0]) [-1 0] [ 0 0] is 2 since sage: i = iter(ZZ) sage: i.next() 0 sage: i.next() 1 sage: i.next() -1 Some more examples: | def __iter__(self): """ EXAMPLES: sage: MS = MatrixSpace(GF(2),2) sage: a = list(MS) sage: len(a) 16 sage: a[0] [0 0] [0 0] | a9bc25bbff6ced4ab4129004d351c292201a2b8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a9bc25bbff6ced4ab4129004d351c292201a2b8d/matrix_space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2860,
279,
4456,
733,
1492,
16960,
3059,
326,
2186,
434,
365,
18,
225,
1021,
1353,
316,
1492,
326,
2186,
854,
4374,
353,
2511,
603,
279,
296,
4865,
11,
434,
279,
3148,
1492,
353,
326,
1300,
434,
11316,
603,
326,
1026,
9221,
716,
854,
1931,
358,
9287,
716,
3148,
18,
225,
1021,
9543,
353,
7281,
358,
279,
10782,
6092,
30089,
16983,
1353,
316,
312,
4708,
649,
87,
316,
279,
1778,
27693,
16991,
9221,
18,
225,
5675,
8900,
11386,
30,
23047,
326,
648,
434,
576,
619,
576,
16415,
1879,
611,
42,
12,
25,
2934,
225,
272,
410,
30,
666,
12,
611,
42,
12,
25,
13,
262,
306,
20,
16,
404,
16,
576,
16,
890,
16,
1059,
65,
272,
410,
30,
9238,
273,
7298,
3819,
12,
43,
42,
12,
25,
3631,
576,
16,
576,
13,
272,
410,
30,
328,
273,
666,
12,
3537,
13,
225,
9697,
16,
5260,
326,
3751,
16415,
30,
225,
272,
410,
30,
432,
273,
9238,
3816,
22,
16,
21,
16,
20,
16,
21,
19226,
432,
306,
22,
404,
65,
306,
20,
404,
65,
272,
410,
30,
605,
273,
9238,
3816,
21,
16,
22,
16,
21,
16,
20,
19226,
605,
306,
21,
576,
65,
306,
21,
374,
65,
272,
410,
30,
385,
273,
9238,
3816,
21,
16,
22,
16,
20,
16,
20,
19226,
385,
306,
21,
576,
65,
306,
20,
374,
65,
225,
432,
14606,
1865,
605,
3241,
326,
3119,
434,
1245,
434,
432,
1807,
3222,
14399,
326,
3119,
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,
2165,
972,
12,
2890,
4672,
3536,
2860,
279,
4456,
733,
1492,
16960,
3059,
326,
2186,
434,
365,
18,
225,
1021,
1353,
316,
1492,
326,
2186,
854,
4374,
353,
2511,
603,
279,
296,
4865,
11,
434,
279,
3148,
1492,
353,
326,
1300,
434,
11316,
603,
326,
1026,
9221,
716,
854,
1931,
358,
9287,
716,
3148,
18,
225,
1021,
9543,
353,
7281,
358,
279,
10782,
6092,
30089,
16983,
1353,
316,
312,
4708,
649,
87,
316,
279,
1778,
27693,
16991,
9221,
18,
225,
5675,
8900,
11386,
30,
23047,
326,
648,
434,
576,
619,
576,
16415,
1879,
611,
42,
12,
25,
2934,
225,
272,
410,
30,
666,
12,
611,
42,
12,
25,
13,
262,
306,
20,
16,
404,
16,
576,
16,
2
] |
return result | if self.data.has_key("datasets"): for dsEntry in self.data['datasets'][2].keys(): content = self.data['datasets'][2][dsEntry][2] output = {} for key, value in content.items(): output[key] = value[2].replace("\"", "") result.append(output) return result | def datasets(self): """ _datasets_ | 87fd39351bb9c9c6d972cc0cd212fd6b513fa35b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/87fd39351bb9c9c6d972cc0cd212fd6b513fa35b/OutputModule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11109,
12,
2890,
4672,
3536,
389,
21125,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11109,
12,
2890,
4672,
3536,
389,
21125,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
opts, args = getopt.getopt(sys.argv[1:], 'k:p:w') | if sys.platform in ['mac', 'win', 'win32', 'nt'] and not sys.argv[1:]: gui() return opts, args = getopt.getopt(sys.argv[1:], 'gk:p:w') | def cli(): import getopt class BadUsage: pass try: opts, args = getopt.getopt(sys.argv[1:], 'k:p:w') writing = 0 for opt, val in opts: if opt == '-k': apropos(lower(val)) break if opt == '-p': try: port = int(val) except ValueError: raise BadUsage def ready(port=port): print 'server ready at http://127.0.0.1:%d/' % port serve(('127.0.0.1', port), ready) break if opt == '-w': if not args: raise BadUsage writing = 1 else: if args: for arg in args: try: if os.path.isfile(arg): arg = importfile(arg) if writing: if os.path.isdir(arg): writedocs(arg) else: writedoc(arg) else: man(arg) except DocImportError, value: print 'problem in %s - %s' % ( value.filename, value.args) else: if sys.platform in ['mac', 'win', 'win32', 'nt']: # GUI platforms with threading import threading ready = threading.Event() address = ('127.0.0.1', 12346) threading.Thread( target=serve, args=(address, ready.set)).start() ready.wait() import webbrowser webbrowser.open('http://127.0.0.1:12346/') else: raise BadUsage except (getopt.error, BadUsage): print """%s <name> ... Show documentation on something. <name> may be the name of a Python function, module, or package, or a dotted reference to a class or function within a module or module in a package, or the filename of a Python module to import. | bb384e153d6614fce08e58bada5e06402dc8b3e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bb384e153d6614fce08e58bada5e06402dc8b3e4/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
13332,
1930,
336,
3838,
667,
6107,
5357,
30,
1342,
225,
775,
30,
309,
2589,
18,
9898,
316,
10228,
5821,
2187,
296,
8082,
2187,
296,
8082,
1578,
2187,
296,
496,
3546,
471,
486,
2589,
18,
19485,
63,
21,
30,
14542,
225,
13238,
1435,
327,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
75,
79,
30,
84,
30,
91,
6134,
7410,
273,
374,
225,
364,
2153,
16,
1244,
316,
1500,
30,
309,
2153,
422,
2400,
79,
4278,
513,
303,
917,
12,
8167,
12,
1125,
3719,
898,
309,
2153,
422,
2400,
84,
4278,
775,
30,
1756,
273,
509,
12,
1125,
13,
1335,
2068,
30,
1002,
6107,
5357,
1652,
5695,
12,
655,
33,
655,
4672,
1172,
296,
3567,
5695,
622,
1062,
2207,
14260,
18,
20,
18,
20,
18,
21,
5319,
72,
2473,
738,
1756,
12175,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
3631,
5695,
13,
898,
309,
2153,
422,
2400,
91,
4278,
309,
486,
833,
30,
1002,
6107,
5357,
7410,
273,
404,
469,
30,
309,
833,
30,
364,
1501,
316,
833,
30,
775,
30,
309,
1140,
18,
803,
18,
291,
768,
12,
3175,
4672,
1501,
273,
1930,
768,
12,
3175,
13,
309,
7410,
30,
309,
1140,
18,
803,
18,
291,
1214,
12,
3175,
4672,
2518,
329,
22280,
12,
3175,
13,
469,
30,
2518,
329,
504,
12,
3175,
13,
469,
30,
3161,
12,
3175,
13,
1335,
3521,
5010,
668,
16,
460,
30,
1172,
296,
18968,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
13332,
1930,
336,
3838,
667,
6107,
5357,
30,
1342,
225,
775,
30,
309,
2589,
18,
9898,
316,
10228,
5821,
2187,
296,
8082,
2187,
296,
8082,
1578,
2187,
296,
496,
3546,
471,
486,
2589,
18,
19485,
63,
21,
30,
14542,
225,
13238,
1435,
327,
225,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
75,
79,
30,
84,
30,
91,
6134,
7410,
273,
374,
225,
364,
2153,
16,
1244,
316,
1500,
30,
309,
2153,
422,
2400,
79,
4278,
513,
303,
917,
12,
8167,
12,
1125,
3719,
898,
309,
2153,
422,
2400,
84,
4278,
775,
30,
1756,
273,
509,
12,
1125,
13,
1335,
2068,
30,
1002,
6107,
5357,
1652,
5695,
2
] |
return cwd[len(self.root) + 1:] | common_prefix_len = len(self.root) if not self.root.endswith(os.sep): common_prefix_len += 1 return cwd[common_prefix_len:] | def getcwd(self): cwd = os.getcwd() if cwd == self.root: return '' return cwd[len(self.root) + 1:] | 78cdc108028c85d354380d4df3f7e2a0b2d9b490 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/78cdc108028c85d354380d4df3f7e2a0b2d9b490/dirstate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13323,
12,
2890,
4672,
7239,
273,
1140,
18,
588,
11089,
1435,
309,
7239,
422,
365,
18,
3085,
30,
327,
875,
327,
7239,
63,
1897,
12,
2890,
18,
3085,
13,
397,
404,
26894,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13323,
12,
2890,
4672,
7239,
273,
1140,
18,
588,
11089,
1435,
309,
7239,
422,
365,
18,
3085,
30,
327,
875,
327,
7239,
63,
1897,
12,
2890,
18,
3085,
13,
397,
404,
26894,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
inst = Dummy() setInstanceState(inst, self.d) self.protocol.setObject(self.count, inst) self.deferred.callback(inst) return inst | obj = self.factory() obj.setCopyableState(self.d) self.protocol.setObject(self.count, obj) self.deferred.callback(obj) return obj | def receiveClose(self): # TODO: TASTE HERE IF YOU WANT TO LIVE! inst = Dummy() #inst.__classname__ = self.classname setInstanceState(inst, self.d) self.protocol.setObject(self.count, inst) self.deferred.callback(inst) return inst | a0261369e6bfc18290805793a4b07e48888ff7c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a0261369e6bfc18290805793a4b07e48888ff7c1/flavors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6798,
4605,
12,
2890,
4672,
468,
2660,
30,
399,
9053,
41,
670,
29340,
11083,
1624,
26556,
678,
6856,
8493,
511,
5354,
5,
1804,
273,
28622,
1435,
468,
8591,
16186,
18340,
972,
273,
365,
18,
18340,
444,
30552,
12,
8591,
16,
365,
18,
72,
13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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6798,
4605,
12,
2890,
4672,
468,
2660,
30,
399,
9053,
41,
670,
29340,
11083,
1624,
26556,
678,
6856,
8493,
511,
5354,
5,
1804,
273,
28622,
1435,
468,
8591,
16186,
18340,
972,
273,
365,
18,
18340,
444,
30552,
12,
8591,
16,
365,
18,
72,
13,
365,
18,
8373,
18,
542,
921,
12,
2890,
18,
1883,
16,
1804,
13,
365,
18,
26622,
18,
3394,
12,
8591,
13,
327,
1804,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logging.error("Invalid weight specified: %r" % weight) | logging.error("Invalid weight specified: %r" % self.request.get('weight') | def post(self): user_info = _get_current_user_info() weight_data = WeightData(user_info) datestr = self.request.get('date') | 34f251fd4ba612514695008bb2518d3d3c6115e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6443/34f251fd4ba612514695008bb2518d3d3c6115e2/we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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
729,
67,
1376,
273,
389,
588,
67,
2972,
67,
1355,
67,
1376,
1435,
3119,
67,
892,
273,
15437,
751,
12,
1355,
67,
1376,
13,
7811,
313,
273,
365,
18,
2293,
18,
588,
2668,
712,
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
] |
out += create_html_link(self.build_search_url(query, jrec=jrec+rg, | out += create_html_link(self.build_search_url(query, jrec=jrec+rg, | def img(gif, txt): return '<img src="%(weburl)s/img/%(gif)s.gif" alt="%(txt)s" border="0">' % { 'txt': txt, 'gif': gif, 'weburl': weburl} | d80e9e5b545268d60103014de3d2c09f38531285 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/d80e9e5b545268d60103014de3d2c09f38531285/websearch_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3774,
12,
13905,
16,
6463,
4672,
327,
2368,
6081,
1705,
11613,
12,
4875,
718,
13,
87,
19,
6081,
5258,
12,
13905,
13,
87,
18,
13905,
6,
3770,
11613,
12,
5830,
13,
87,
6,
5795,
1546,
20,
7918,
738,
288,
296,
5830,
4278,
6463,
16,
296,
13905,
4278,
27618,
16,
296,
4875,
718,
4278,
3311,
718,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3774,
12,
13905,
16,
6463,
4672,
327,
2368,
6081,
1705,
11613,
12,
4875,
718,
13,
87,
19,
6081,
5258,
12,
13905,
13,
87,
18,
13905,
6,
3770,
11613,
12,
5830,
13,
87,
6,
5795,
1546,
20,
7918,
738,
288,
296,
5830,
4278,
6463,
16,
296,
13905,
4278,
27618,
16,
296,
4875,
718,
4278,
3311,
718,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
text = text.replace("\n", "<br>/n") text = "<nobr>" + text + "</nobr>" | text = text.replace("\n", "<br>\n") | def write(self, text): # is this some extra info for debuging #if len(text) > 7 and text[0:7] == "<extra>": # if not self.printExtraOutput: return # text = text[7:] if text == "\n": return | b2656ae570f7b3421360ebf79830008e8b88da06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/b2656ae570f7b3421360ebf79830008e8b88da06/orngOutput.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
4672,
468,
353,
333,
2690,
2870,
1123,
364,
1198,
310,
468,
430,
562,
12,
955,
13,
405,
2371,
471,
977,
63,
20,
30,
27,
65,
422,
3532,
7763,
2984,
30,
468,
565,
309,
486,
365,
18,
1188,
7800,
1447,
30,
327,
468,
565,
977,
273,
977,
63,
27,
26894,
309,
977,
422,
1548,
82,
6877,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
981,
30,
1652,
1045,
12,
2890,
16,
977,
4672,
468,
353,
333,
2690,
2870,
1123,
364,
1198,
310,
468,
430,
562,
12,
955,
13,
405,
2371,
471,
977,
63,
20,
30,
27,
65,
422,
3532,
7763,
2984,
30,
468,
565,
309,
486,
365,
18,
1188,
7800,
1447,
30,
327,
468,
565,
977,
273,
977,
63,
27,
26894,
309,
977,
422,
1548,
82,
6877,
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
] |
formWrapper = getMultiAdapter((context, request), name=formname) form = formWrapper.form(context, request) | if not formname.startswith('@@') and not formname.startswith('++'): formname = '@@' + formname formWrapper = context.restrictedTraverse(formname) form = formWrapper.form_instance | def validate_input(self, formname, fieldname, fieldset=None, value=None): """Given a form (view) name, a field name and the submitted value, validate the given field. """ | f79b88dacbdb4002e5709304baa7665612e87351 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12252/f79b88dacbdb4002e5709304baa7665612e87351/validation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
2630,
12,
2890,
16,
646,
529,
16,
14680,
16,
16885,
33,
7036,
16,
460,
33,
7036,
4672,
3536,
6083,
279,
646,
261,
1945,
13,
508,
16,
279,
652,
508,
471,
326,
9638,
460,
16,
1954,
326,
864,
652,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
2630,
12,
2890,
16,
646,
529,
16,
14680,
16,
16885,
33,
7036,
16,
460,
33,
7036,
4672,
3536,
6083,
279,
646,
261,
1945,
13,
508,
16,
279,
652,
508,
471,
326,
9638,
460,
16,
1954,
326,
864,
652,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dict = readmodule_ex(module, path) | dict = _readmodule(module, path) | def readmodule(module, path=[]): '''Backwards compatible interface. Call readmodule_ex() and then only keep Class objects from the resulting dictionary.''' dict = readmodule_ex(module, path) res = {} for key, value in dict.items(): if isinstance(value, Class): res[key] = value return res | 2b8200b51961eb9d362ebd1b3649bc1732ccc1cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2b8200b51961eb9d362ebd1b3649bc1732ccc1cc/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
12,
2978,
16,
589,
33,
8526,
4672,
9163,
2711,
6397,
7318,
1560,
18,
225,
3049,
855,
2978,
67,
338,
1435,
471,
1508,
1338,
3455,
1659,
2184,
628,
326,
8156,
3880,
1093,
6309,
225,
2065,
273,
389,
896,
2978,
12,
2978,
16,
589,
13,
400,
273,
2618,
364,
498,
16,
460,
316,
2065,
18,
3319,
13332,
309,
1549,
12,
1132,
16,
1659,
4672,
400,
63,
856,
65,
273,
460,
327,
400,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
12,
2978,
16,
589,
33,
8526,
4672,
9163,
2711,
6397,
7318,
1560,
18,
225,
3049,
855,
2978,
67,
338,
1435,
471,
1508,
1338,
3455,
1659,
2184,
628,
326,
8156,
3880,
1093,
6309,
225,
2065,
273,
389,
896,
2978,
12,
2978,
16,
589,
13,
400,
273,
2618,
364,
498,
16,
460,
316,
2065,
18,
3319,
13332,
309,
1549,
12,
1132,
16,
1659,
4672,
400,
63,
856,
65,
273,
460,
327,
400,
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
] |
self.df.setText(self.df_template.arg("Connected: "+info[0])\ .arg(info[1]).arg(info[2])) | def establish_connection(self): self.window.setCursor(Qt.WaitCursor) self.status("Connecting to device") try: info = self.dev.get_device_information(end_session=False) except DeviceBusy: self.status("Device is in use by another application") self.window.setCursor(Qt.ArrowCursor) return except DeviceError, err: traceback.print_exc(err) self.dev.reconnect() self.thread().msleep(100) return self.establish_connection() except ProtocolError, e: traceback.print_exc(e) qFatal("Unable to connect to device. Please try unplugging and"+\ " reconnecting it") self.df.setText(self.df_template.arg("Connected: "+info[0])\ .arg(info[1]).arg(info[2])) self.update_availabe_space(end_session=False) self.card = self.dev.card() if self.card: self.device_tree.hide_card(False) else: self.device_tree.hide_card(True) self.device_tree.hide_reader(False) self.status("Loading media list from SONY Reader") self.reader_model.set_data(self.dev.books(end_session=False)) if self.card: self.status("Loading media list from Storage Card") self.card_model.set_data(self.dev.books(oncard=True)) self.progress(100) self.window.setCursor(Qt.ArrowCursor) | 7530d37ae22039f068e7b7919728110f375672db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/7530d37ae22039f068e7b7919728110f375672db/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18312,
67,
4071,
12,
2890,
4672,
365,
18,
5668,
18,
542,
6688,
12,
23310,
18,
5480,
6688,
13,
365,
18,
2327,
2932,
30049,
358,
2346,
7923,
775,
30,
1123,
273,
365,
18,
5206,
18,
588,
67,
5964,
67,
13117,
12,
409,
67,
3184,
33,
8381,
13,
1335,
6077,
29289,
30,
365,
18,
2327,
2932,
3654,
353,
316,
999,
635,
4042,
2521,
7923,
365,
18,
5668,
18,
542,
6688,
12,
23310,
18,
18691,
6688,
13,
327,
1335,
6077,
668,
16,
393,
30,
10820,
18,
1188,
67,
10075,
12,
370,
13,
365,
18,
5206,
18,
25913,
1435,
365,
18,
5930,
7675,
959,
4265,
12,
6625,
13,
327,
365,
18,
395,
23385,
67,
4071,
1435,
1335,
4547,
668,
16,
425,
30,
10820,
18,
1188,
67,
10075,
12,
73,
13,
1043,
19593,
2932,
3370,
358,
3077,
358,
2346,
18,
7801,
775,
640,
22045,
1998,
471,
6,
16971,
315,
11812,
310,
518,
7923,
365,
18,
2725,
67,
842,
671,
378,
73,
67,
2981,
12,
409,
67,
3184,
33,
8381,
13,
365,
18,
3327,
273,
365,
18,
5206,
18,
3327,
1435,
309,
365,
18,
3327,
30,
365,
18,
5964,
67,
3413,
18,
11248,
67,
3327,
12,
8381,
13,
469,
30,
365,
18,
5964,
67,
3413,
18,
11248,
67,
3327,
12,
5510,
13,
365,
18,
5964,
67,
3413,
18,
11248,
67,
10530,
12,
8381,
13,
365,
18,
2327,
2932,
10515,
3539,
666,
628,
348,
673,
61,
5393,
7923,
365,
18,
10530,
67,
2284,
18,
542,
67,
892,
12,
2890,
18,
5206,
18,
12567,
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,
18312,
67,
4071,
12,
2890,
4672,
365,
18,
5668,
18,
542,
6688,
12,
23310,
18,
5480,
6688,
13,
365,
18,
2327,
2932,
30049,
358,
2346,
7923,
775,
30,
1123,
273,
365,
18,
5206,
18,
588,
67,
5964,
67,
13117,
12,
409,
67,
3184,
33,
8381,
13,
1335,
6077,
29289,
30,
365,
18,
2327,
2932,
3654,
353,
316,
999,
635,
4042,
2521,
7923,
365,
18,
5668,
18,
542,
6688,
12,
23310,
18,
18691,
6688,
13,
327,
1335,
6077,
668,
16,
393,
30,
10820,
18,
1188,
67,
10075,
12,
370,
13,
365,
18,
5206,
18,
25913,
1435,
365,
18,
5930,
7675,
959,
4265,
12,
6625,
13,
327,
365,
18,
395,
23385,
67,
4071,
1435,
1335,
4547,
668,
16,
425,
30,
2
] | |
def SimpleTest(self, module, name, cmd_args=None): cmd = self._DefaultCommand(module, name) | def SimpleTest(self, module, name, valgrind_test_args=None, cmd_args=None): cmd = self._DefaultCommand(module, name, valgrind_test_args) | def SimpleTest(self, module, name, cmd_args=None): cmd = self._DefaultCommand(module, name) self._ReadGtestFilterFile(name, cmd) if cmd_args: cmd.extend(cmd_args) return common.RunSubprocess(cmd, 0) | 7e40f180b28951bc84ba636d93929d0494747619 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/7e40f180b28951bc84ba636d93929d0494747619/chrome_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4477,
4709,
12,
2890,
16,
1605,
16,
508,
16,
1244,
3197,
728,
67,
3813,
67,
1968,
33,
7036,
16,
1797,
67,
1968,
33,
7036,
4672,
1797,
273,
365,
6315,
1868,
2189,
12,
2978,
16,
508,
16,
1244,
3197,
728,
67,
3813,
67,
1968,
13,
365,
6315,
1994,
43,
3813,
1586,
812,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4477,
4709,
12,
2890,
16,
1605,
16,
508,
16,
1244,
3197,
728,
67,
3813,
67,
1968,
33,
7036,
16,
1797,
67,
1968,
33,
7036,
4672,
1797,
273,
365,
6315,
1868,
2189,
12,
2978,
16,
508,
16,
1244,
3197,
728,
67,
3813,
67,
1968,
13,
365,
6315,
1994,
43,
3813,
1586,
812,
12,
529,
16,
1797,
13,
309,
1797,
67,
1968,
30,
1797,
18,
14313,
12,
4172,
67,
1968,
13,
327,
2975,
18,
1997,
1676,
2567,
12,
4172,
16,
374,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix | s1 = min(m) s2 = max(m) n = min(len(s1), len(s2)) for i in xrange(n): if s1[i] != s2[i]: return s1[:i] return s1[:n] | def commonprefix(m): "Given a list of pathnames, returns the longest common leading component" if not m: return '' prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix | bc1fd7285cd96d8b687f08ff7c66148f29086962 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc1fd7285cd96d8b687f08ff7c66148f29086962/posixpath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
3239,
12,
81,
4672,
315,
6083,
279,
666,
434,
589,
1973,
16,
1135,
326,
12163,
2975,
7676,
1794,
6,
309,
486,
312,
30,
327,
875,
272,
21,
273,
1131,
12,
81,
13,
272,
22,
273,
943,
12,
81,
13,
290,
273,
1131,
12,
1897,
12,
87,
21,
3631,
562,
12,
87,
22,
3719,
364,
277,
316,
12314,
12,
82,
4672,
309,
272,
21,
63,
77,
65,
480,
272,
22,
63,
77,
14542,
327,
272,
21,
10531,
77,
65,
327,
272,
21,
10531,
82,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2975,
3239,
12,
81,
4672,
315,
6083,
279,
666,
434,
589,
1973,
16,
1135,
326,
12163,
2975,
7676,
1794,
6,
309,
486,
312,
30,
327,
875,
272,
21,
273,
1131,
12,
81,
13,
272,
22,
273,
943,
12,
81,
13,
290,
273,
1131,
12,
1897,
12,
87,
21,
3631,
562,
12,
87,
22,
3719,
364,
277,
316,
12314,
12,
82,
4672,
309,
272,
21,
63,
77,
65,
480,
272,
22,
63,
77,
14542,
327,
272,
21,
10531,
77,
65,
327,
272,
21,
10531,
82,
65,
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
] |
universal_newlines=universal_newlines) | universal_newlines=universal_newlines, silent_ok=True) | def GetBaseFile(self, filename): status = self.GetStatus(filename) base_content = None new_content = None | eb832f5bde044b8ab2c68c9bb98940bdbe9b728b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/eb832f5bde044b8ab2c68c9bb98940bdbe9b728b/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2171,
812,
12,
2890,
16,
1544,
4672,
1267,
273,
365,
18,
967,
1482,
12,
3459,
13,
1026,
67,
1745,
273,
599,
394,
67,
1745,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2171,
812,
12,
2890,
16,
1544,
4672,
1267,
273,
365,
18,
967,
1482,
12,
3459,
13,
1026,
67,
1745,
273,
599,
394,
67,
1745,
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
] |
return r_dict.send_message(hop, 'll_set', can_raise=r_dict.custom_eq_hash) | return r_dict.send_message(hop, 'll_set', can_raise=r_dict.custom_eq_hash, v_args=vlist) | def rtype_setitem((r_dict, r_key), hop): v_dict, v_key, v_value = hop.inputargs(r_dict, r_dict.key_repr, r_dict.value_repr) if not r_dict.custom_eq_hash: hop.exception_cannot_occur() # XXX: maybe should we move this inside send_message? return r_dict.send_message(hop, 'll_set', can_raise=r_dict.custom_eq_hash) | 35e3203c5df06b0ad979a6790bbc733c1f49374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/35e3203c5df06b0ad979a6790bbc733c1f49374e/rdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9328,
67,
542,
1726,
12443,
86,
67,
1576,
16,
436,
67,
856,
3631,
19055,
4672,
331,
67,
1576,
16,
331,
67,
856,
16,
331,
67,
1132,
273,
19055,
18,
2630,
1968,
12,
86,
67,
1576,
16,
436,
67,
1576,
18,
856,
67,
12715,
16,
436,
67,
1576,
18,
1132,
67,
12715,
13,
309,
486,
436,
67,
1576,
18,
3662,
67,
11253,
67,
2816,
30,
19055,
18,
4064,
67,
12892,
67,
26635,
1435,
468,
11329,
30,
6944,
1410,
732,
3635,
333,
4832,
1366,
67,
2150,
35,
327,
436,
67,
1576,
18,
4661,
67,
2150,
12,
18444,
16,
296,
2906,
67,
542,
2187,
848,
67,
11628,
33,
86,
67,
1576,
18,
3662,
67,
11253,
67,
2816,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9328,
67,
542,
1726,
12443,
86,
67,
1576,
16,
436,
67,
856,
3631,
19055,
4672,
331,
67,
1576,
16,
331,
67,
856,
16,
331,
67,
1132,
273,
19055,
18,
2630,
1968,
12,
86,
67,
1576,
16,
436,
67,
1576,
18,
856,
67,
12715,
16,
436,
67,
1576,
18,
1132,
67,
12715,
13,
309,
486,
436,
67,
1576,
18,
3662,
67,
11253,
67,
2816,
30,
19055,
18,
4064,
67,
12892,
67,
26635,
1435,
468,
11329,
30,
6944,
1410,
732,
3635,
333,
4832,
1366,
67,
2150,
35,
327,
436,
67,
1576,
18,
4661,
67,
2150,
12,
18444,
16,
296,
2906,
67,
542,
2187,
848,
67,
11628,
33,
86,
67,
1576,
18,
3662,
67,
11253,
67,
2816,
13,
2,
-100,
-100,
-100
] |
if unrenderedCount > 0: (controlWidth, controlHeight) = control.GetClientSize() controlWidth -= 22; | addrOnlyString = u'' indicatorString = u'' unrenderedFormat = u'[+%d]' (controlWidth, controlHeight) = control.GetClientSize() if unrenderedCount > 0 and controlWidth > 0: controlWidth -= wx.SystemSettings.GetMetric(wx.SYS_VSCROLL_X); def addressFitsInControl(addr): return (control.GetTextExtent(addr)[0] < controlWidth) | def shortenAddressList(self, list, control): """ Parse a string with a list of email addresses (no validity check, just commas) and return both a new string with a list that will fit in the given control's bounds, and the number of omitted addresses, in a tuple. """ (ign, addressList, ign2) = Mail.EmailAddress.parseEmailAddresses(self.item, list) unrenderedCount = len(addressList) addrString = u'' if unrenderedCount > 0: (controlWidth, controlHeight) = control.GetClientSize() | f3d20a7fee11911c22e533f8d71feebe9a12e2c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f3d20a7fee11911c22e533f8d71feebe9a12e2c0/AttributeEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19651,
1887,
682,
12,
2890,
16,
666,
16,
3325,
4672,
3536,
2884,
279,
533,
598,
279,
666,
434,
2699,
6138,
261,
2135,
13800,
866,
16,
2537,
23528,
13,
471,
327,
3937,
279,
394,
533,
598,
279,
666,
716,
903,
4845,
316,
326,
864,
3325,
1807,
4972,
16,
471,
326,
1300,
434,
16195,
6138,
16,
316,
279,
3193,
18,
3536,
261,
724,
16,
1758,
682,
16,
9750,
22,
13,
273,
11542,
18,
23590,
18,
2670,
4134,
7148,
12,
2890,
18,
1726,
16,
666,
13,
640,
26332,
1380,
273,
562,
12,
2867,
682,
13,
3091,
780,
273,
582,
6309,
309,
640,
26332,
1380,
405,
374,
30,
261,
7098,
2384,
16,
3325,
2686,
13,
273,
3325,
18,
967,
1227,
1225,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19651,
1887,
682,
12,
2890,
16,
666,
16,
3325,
4672,
3536,
2884,
279,
533,
598,
279,
666,
434,
2699,
6138,
261,
2135,
13800,
866,
16,
2537,
23528,
13,
471,
327,
3937,
279,
394,
533,
598,
279,
666,
716,
903,
4845,
316,
326,
864,
3325,
1807,
4972,
16,
471,
326,
1300,
434,
16195,
6138,
16,
316,
279,
3193,
18,
3536,
261,
724,
16,
1758,
682,
16,
9750,
22,
13,
273,
11542,
18,
23590,
18,
2670,
4134,
7148,
12,
2890,
18,
1726,
16,
666,
13,
640,
26332,
1380,
273,
562,
12,
2867,
682,
13,
3091,
780,
273,
582,
6309,
309,
640,
26332,
1380,
405,
374,
30,
261,
7098,
2384,
16,
3325,
2686,
13,
273,
3325,
18,
967,
1227,
1225,
1435,
2
] |
self.set_parameter_options(name, stepsize=stepsize, stepdelay=stepdelay) | self.set_parameter_options(name, maxstep=stepsize, stepdelay=stepdelay) | def set_parameter_rate(self, name, stepsize, stepdelay): ''' Change the rate properties for a channel. | 4a57d00edf8a353e0ddfa46f6e11b23fc9615479 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/4a57d00edf8a353e0ddfa46f6e11b23fc9615479/instrument.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6775,
67,
5141,
12,
2890,
16,
508,
16,
2235,
1467,
16,
2235,
10790,
4672,
9163,
7576,
326,
4993,
1790,
364,
279,
1904,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6775,
67,
5141,
12,
2890,
16,
508,
16,
2235,
1467,
16,
2235,
10790,
4672,
9163,
7576,
326,
4993,
1790,
364,
279,
1904,
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
] |
changed_cb=self.prefs_notiflocation_changed) | changed_cb=self._notiflocation_changed) | def extras_tab(self, popuptimes, prefs_notif_toggled, prefs_crossfade_changed, prefs_crossfade_toggled): """Construct and layout the extras tab""" if not self.scrobbler.imported(): self.config.as_enabled = False as_label = ui.label(markup='<b>' + _('Extras') + '</b>') extras_frame = gtk.Frame() extras_frame.set_label_widget(as_label) extras_frame.set_shadow_type(gtk.SHADOW_NONE) | 7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11875,
67,
7032,
12,
2890,
16,
1843,
3648,
4485,
16,
15503,
67,
902,
430,
67,
88,
23972,
1259,
16,
15503,
67,
14653,
507,
323,
67,
6703,
16,
15503,
67,
14653,
507,
323,
67,
88,
23972,
1259,
4672,
3536,
7249,
471,
3511,
326,
11875,
3246,
8395,
309,
486,
365,
18,
1017,
303,
9897,
749,
18,
29266,
13332,
365,
18,
1425,
18,
345,
67,
5745,
273,
1083,
487,
67,
1925,
273,
5915,
18,
1925,
12,
15056,
2218,
32,
70,
1870,
397,
389,
2668,
30020,
6134,
397,
4357,
70,
1870,
13,
11875,
67,
3789,
273,
22718,
18,
3219,
1435,
11875,
67,
3789,
18,
542,
67,
1925,
67,
6587,
12,
345,
67,
1925,
13,
11875,
67,
3789,
18,
542,
67,
19119,
67,
723,
12,
4521,
79,
18,
2664,
1880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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11875,
67,
7032,
12,
2890,
16,
1843,
3648,
4485,
16,
15503,
67,
902,
430,
67,
88,
23972,
1259,
16,
15503,
67,
14653,
507,
323,
67,
6703,
16,
15503,
67,
14653,
507,
323,
67,
88,
23972,
1259,
4672,
3536,
7249,
471,
3511,
326,
11875,
3246,
8395,
309,
486,
365,
18,
1017,
303,
9897,
749,
18,
29266,
13332,
365,
18,
1425,
18,
345,
67,
5745,
273,
1083,
487,
67,
1925,
273,
5915,
18,
1925,
12,
15056,
2218,
32,
70,
1870,
397,
389,
2668,
30020,
6134,
397,
4357,
70,
1870,
13,
11875,
67,
3789,
273,
22718,
18,
3219,
1435,
11875,
67,
3789,
18,
542,
67,
1925,
67,
6587,
12,
345,
67,
1925,
13,
11875,
67,
3789,
18,
542,
67,
19119,
67,
2
] |
path = o.path if o.fragment: self.fragment = o.fragment | path = o_path o_fragment = o[5] if o_fragment: self.fragment = o_fragment | def fetch(self, url): o = urlparse.urlparse(url) if o.port: port = int(o.port) else: port = 80 if o.query: path = o.path + '?' + o.query else: path = o.path if o.fragment: self.fragment = o.fragment if self.fragment: path += '#' + self.fragment if not path: path = '/' self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if o.scheme == 'http': self.sock.connect((o.hostname,port)) elif o.scheme == 'https': ctx = OpenSSL.SSL.Context(OpenSSL.SSL.SSLv23_METHOD) self.sock = OpenSSL.SSL.Connection(ctx, sock) else: raise ValueError("unknown protocol: %s" % o.scheme) if self.debug: log('>> HEAD %s HTTP/1.1' % path) log('>> Host: %s' % o.hostname) self.sock.send('HEAD %s HTTP/1.1\n' % path) self.sock.send('Host: %s\n' % o.hostname) self.sock.send('\n') data = self.read() self.sock.close() return data | 444b609184a8825cf6ec712d4c0c553b3e23c70c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8937/444b609184a8825cf6ec712d4c0c553b3e23c70c/integrity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
880,
4672,
320,
273,
15185,
18,
718,
2670,
12,
718,
13,
309,
320,
18,
655,
30,
1756,
273,
509,
12,
83,
18,
655,
13,
469,
30,
1756,
273,
8958,
309,
320,
18,
2271,
30,
589,
273,
320,
18,
803,
397,
6787,
397,
320,
18,
2271,
469,
30,
589,
273,
320,
67,
803,
320,
67,
11956,
273,
320,
63,
25,
65,
309,
320,
67,
11956,
30,
365,
18,
11956,
273,
320,
67,
11956,
309,
365,
18,
11956,
30,
589,
1011,
6501,
397,
365,
18,
11956,
309,
486,
589,
30,
589,
273,
2023,
365,
18,
15031,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
309,
320,
18,
9068,
422,
296,
2505,
4278,
365,
18,
15031,
18,
3612,
12443,
83,
18,
10358,
16,
655,
3719,
1327,
320,
18,
9068,
422,
296,
4528,
4278,
1103,
273,
21859,
18,
6745,
18,
1042,
12,
3678,
6745,
18,
6745,
18,
6745,
90,
4366,
67,
5327,
13,
365,
18,
15031,
273,
21859,
18,
6745,
18,
1952,
12,
5900,
16,
7313,
13,
469,
30,
1002,
2068,
2932,
8172,
1771,
30,
738,
87,
6,
738,
320,
18,
9068,
13,
309,
365,
18,
4148,
30,
613,
2668,
9778,
14792,
738,
87,
2239,
19,
21,
18,
21,
11,
738,
589,
13,
613,
2668,
9778,
4893,
30,
738,
87,
11,
738,
320,
18,
10358,
13,
365,
18,
15031,
18,
4661,
2668,
12458,
738,
87,
2239,
19,
21,
18,
21,
64,
82,
11,
738,
589,
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,
2158,
12,
2890,
16,
880,
4672,
320,
273,
15185,
18,
718,
2670,
12,
718,
13,
309,
320,
18,
655,
30,
1756,
273,
509,
12,
83,
18,
655,
13,
469,
30,
1756,
273,
8958,
309,
320,
18,
2271,
30,
589,
273,
320,
18,
803,
397,
6787,
397,
320,
18,
2271,
469,
30,
589,
273,
320,
67,
803,
320,
67,
11956,
273,
320,
63,
25,
65,
309,
320,
67,
11956,
30,
365,
18,
11956,
273,
320,
67,
11956,
309,
365,
18,
11956,
30,
589,
1011,
6501,
397,
365,
18,
11956,
309,
486,
589,
30,
589,
273,
2023,
365,
18,
15031,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
309,
320,
2
] |
def saveEvts(self, compn, newBody): """ For every event definition not defined in source add an empty method to the bottom of the class """ for evt in compn.textEventList: if evt.trigger_meth != '(delete)': newBody.append(bodyIndent + evt.asText()) if not self.model.module.classes[\ self.model.main].methods.has_key(evt.trigger_meth): self.model.module.addMethod(self.model.main, evt.trigger_meth, 'self, event', [' pass']) def saveDepsForCtrl(self, ctrlName, depLinks, newBody): if depLinks.has_key(ctrlName): for prop in depLinks[ctrlName]: newBody.append(bodyIndent + prop.asText()) | def saveEvts(self, compn, newBody): """ For every event definition not defined in source add an empty method to the bottom of the class """ for evt in compn.textEventList: if evt.trigger_meth != '(delete)': newBody.append(bodyIndent + evt.asText()) if not self.model.module.classes[\ self.model.main].methods.has_key(evt.trigger_meth): self.model.module.addMethod(self.model.main, evt.trigger_meth, 'self, event', [' pass']) | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
20861,
3428,
12,
2890,
16,
1161,
82,
16,
394,
2250,
4672,
3536,
2457,
3614,
871,
2379,
486,
2553,
316,
1084,
527,
392,
1008,
707,
358,
326,
5469,
434,
326,
667,
3536,
225,
364,
6324,
316,
1161,
82,
18,
955,
1133,
682,
30,
309,
6324,
18,
10668,
67,
27305,
480,
7747,
3733,
2506,
30,
394,
2250,
18,
6923,
12,
3432,
7790,
397,
6324,
18,
345,
1528,
10756,
309,
486,
365,
18,
2284,
18,
2978,
18,
4701,
7438,
365,
18,
2284,
18,
5254,
8009,
5163,
18,
5332,
67,
856,
12,
73,
11734,
18,
10668,
67,
27305,
4672,
365,
18,
2284,
18,
2978,
18,
1289,
1305,
12,
2890,
18,
2284,
18,
5254,
16,
6324,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
20861,
3428,
12,
2890,
16,
1161,
82,
16,
394,
2250,
4672,
3536,
2457,
3614,
871,
2379,
486,
2553,
316,
1084,
527,
392,
1008,
707,
358,
326,
5469,
434,
326,
667,
3536,
225,
364,
6324,
316,
1161,
82,
18,
955,
1133,
682,
30,
309,
6324,
18,
10668,
67,
27305,
480,
7747,
3733,
2506,
30,
394,
2250,
18,
6923,
12,
3432,
7790,
397,
6324,
18,
345,
1528,
10756,
309,
486,
365,
18,
2284,
18,
2978,
18,
4701,
7438,
365,
18,
2284,
18,
5254,
8009,
5163,
18,
5332,
67,
856,
12,
73,
11734,
18,
10668,
67,
27305,
4672,
365,
18,
2284,
18,
2978,
18,
1289,
1305,
12,
2890,
18,
2284,
18,
5254,
16,
6324,
18,
10668,
67,
27305,
16,
296,
2
] | |
def test_make_stack_from_der(self): | def test_make_stack_from_der(self): | def test_make_stack_from_der(self): f = open("tests/der_encoded_seq.b64") b64 = f.read(1304) seq = base64.decodestring(b64) stack = X509.new_stack_from_der(seq) cert = stack.pop() subject = cert.get_subject() assert str(subject) == "/DC=org/DC=doegrids/OU=Services/CN=host/bosshog.lbl.gov" | 1971668db0b53cb7bb7fd709977d69001aed4ffb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8055/1971668db0b53cb7bb7fd709977d69001aed4ffb/test_x509.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6540,
67,
3772,
67,
2080,
67,
765,
12,
2890,
4672,
284,
273,
1696,
2932,
16341,
19,
765,
67,
10787,
67,
5436,
18,
70,
1105,
7923,
324,
1105,
273,
284,
18,
896,
12,
3437,
3028,
13,
3833,
273,
1026,
1105,
18,
4924,
1145,
371,
12,
70,
1105,
13,
2110,
273,
1139,
5995,
18,
2704,
67,
3772,
67,
2080,
67,
765,
12,
5436,
13,
3320,
273,
2110,
18,
5120,
1435,
225,
3221,
273,
3320,
18,
588,
67,
7857,
1435,
1815,
609,
12,
7857,
13,
422,
2206,
5528,
33,
3341,
19,
5528,
33,
2896,
1332,
1691,
87,
19,
26556,
33,
5676,
19,
12821,
33,
2564,
19,
70,
538,
674,
717,
18,
31885,
18,
75,
1527,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6540,
67,
3772,
67,
2080,
67,
765,
12,
2890,
4672,
284,
273,
1696,
2932,
16341,
19,
765,
67,
10787,
67,
5436,
18,
70,
1105,
7923,
324,
1105,
273,
284,
18,
896,
12,
3437,
3028,
13,
3833,
273,
1026,
1105,
18,
4924,
1145,
371,
12,
70,
1105,
13,
2110,
273,
1139,
5995,
18,
2704,
67,
3772,
67,
2080,
67,
765,
12,
5436,
13,
3320,
273,
2110,
18,
5120,
1435,
225,
3221,
273,
3320,
18,
588,
67,
7857,
1435,
1815,
609,
12,
7857,
13,
422,
2206,
5528,
33,
3341,
19,
5528,
33,
2896,
1332,
1691,
87,
19,
26556,
33,
5676,
19,
12821,
33,
2564,
19,
70,
538,
674,
717,
18,
31885,
18,
75,
1527,
6,
225,
2,
-100,
-100
] |
class file(plotitem): """a plotitem representing a file that contains gnuplot data.""" _option_list = plotitem._option_list.copy() | class File(PlotItem): """A PlotItem representing a file that contains gnuplot data.""" _option_list = PlotItem._option_list.copy() | def __del__(self): """Delete the referenced file.""" | 1ad1a64c1cb68257b9fa744cb8c97d06c68365e4 /local1/t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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
3536,
2613,
326,
8042,
585,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
customizationExists = template in container | customizationExists = templatePath in container | def inspectViewlet(self, viewlethash): """ Display detailed information about a particular viewlet. """ logger.debug("in inspectViewlet") # Unhash the viewlet info unhashedViewletInfo = unhashViewletInfo(viewlethash) # Get the registration information for this viewlet reg = findTemplateViewRegistrationFromHash(viewlethash) viewName = unhashedViewletInfo['viewletName'] managerName = unhashedViewletInfo['managerName'] cls = registration.getViewClassFromRegistration(reg) className = "%s.%s" % (cls.__module__, cls.__name__) try: viewRegistrationInfo = list(registration.templateViewRegistrationInfos([reg]))[0] except IndexError: # For some reason, there's no registration with portal_view_cusomtizations, # this appears to happen when there's no template defined for the viewlet and it instead # uses a "render" method. customizationExists = False customizationAllowed = False templatePath = "" else: template = viewRegistrationInfo['zptfile'] templatePath = registration.generateIdFromRegistration(reg) container = queryUtility(IViewTemplateContainer) customizationExists = template in container customizationAllowed = True template = ViewPageTemplateFile('panel_inspect_viewlet.pt') # Wrap it so that Zope knows in what context it's being called # Otherwise, we get an "AttributeError: 'str' object has no attribute 'other'" error template = template.__of__(self) out = template(viewName = viewName, managerName = managerName, template = template, className = className, templatePath = templatePath, customizationExists = customizationExists, customizationAllowed = customizationAllowed, viewletHash = viewlethash) # Dump the output to the output panel self.updatePanelBodyContent(out) # Highlight this element ksscore = self.getCommandSet('core') self.highlightElement(ksscore.getCssSelector('.kssattr-viewlethash-%s' % viewlethash)) # And in the nav tree (Should this be here or in the nav tree viewlet code?) self.highlightInNavTree(ksscore.getCssSelector('#glowormPanelNavTree .kssattr-forviewlet-%s' % viewlethash)) return self.render() | 8b3e9a94c7c4b5fef49c49746cc166a4a2061e78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12128/8b3e9a94c7c4b5fef49c49746cc166a4a2061e78/inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5334,
1767,
1810,
12,
2890,
16,
1476,
80,
546,
961,
4672,
3536,
9311,
6864,
1779,
2973,
279,
6826,
1476,
1810,
18,
3536,
1194,
18,
4148,
2932,
267,
5334,
1767,
1810,
7923,
225,
468,
1351,
2816,
326,
1476,
1810,
1123,
640,
2816,
329,
1767,
1810,
966,
273,
640,
2816,
1767,
1810,
966,
12,
1945,
80,
546,
961,
13,
468,
968,
326,
7914,
1779,
364,
333,
1476,
1810,
960,
273,
1104,
2283,
1767,
7843,
1265,
2310,
12,
1945,
80,
546,
961,
13,
225,
22244,
273,
640,
2816,
329,
1767,
1810,
966,
3292,
1945,
1810,
461,
3546,
3301,
461,
273,
640,
2816,
329,
1767,
1810,
966,
3292,
4181,
461,
3546,
2028,
273,
7914,
18,
588,
1767,
797,
1265,
7843,
12,
1574,
13,
2658,
273,
2213,
87,
7866,
87,
6,
738,
261,
6429,
16186,
2978,
972,
16,
2028,
16186,
529,
972,
13,
225,
775,
30,
1476,
7843,
966,
273,
666,
12,
14170,
18,
3202,
1767,
7843,
7655,
3816,
1574,
22643,
63,
20,
65,
1335,
10195,
30,
468,
2457,
2690,
3971,
16,
1915,
1807,
1158,
7914,
598,
11899,
67,
1945,
67,
71,
407,
362,
88,
7089,
16,
468,
333,
14606,
358,
5865,
1347,
1915,
1807,
1158,
1542,
2553,
364,
326,
1476,
1810,
471,
518,
3560,
468,
4692,
279,
315,
5902,
6,
707,
18,
1679,
1588,
4002,
273,
1083,
1679,
1588,
5042,
273,
1083,
20534,
273,
1408,
469,
30,
1542,
273,
1476,
7843,
966,
3292,
94,
337,
768,
3546,
20534,
273,
7914,
18,
7163,
548,
1265,
7843,
12,
1574,
13,
1478,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5334,
1767,
1810,
12,
2890,
16,
1476,
80,
546,
961,
4672,
3536,
9311,
6864,
1779,
2973,
279,
6826,
1476,
1810,
18,
3536,
1194,
18,
4148,
2932,
267,
5334,
1767,
1810,
7923,
225,
468,
1351,
2816,
326,
1476,
1810,
1123,
640,
2816,
329,
1767,
1810,
966,
273,
640,
2816,
1767,
1810,
966,
12,
1945,
80,
546,
961,
13,
468,
968,
326,
7914,
1779,
364,
333,
1476,
1810,
960,
273,
1104,
2283,
1767,
7843,
1265,
2310,
12,
1945,
80,
546,
961,
13,
225,
22244,
273,
640,
2816,
329,
1767,
1810,
966,
3292,
1945,
1810,
461,
3546,
3301,
461,
273,
640,
2816,
329,
1767,
1810,
966,
3292,
4181,
461,
3546,
2028,
273,
7914,
18,
588,
1767,
797,
1265,
7843,
12,
1574,
2
] |
if 'who' in event: reply = reply.replace('$who', event['who']) if 'channel' in event: reply = reply.replace('$channel', event['channel']) | reply = reply.replace('$who', event.sender['nick']) reply = reply.replace('$channel', event.channel) | def remote_get(self, name, number=None, pattern=None, is_regex=None, event={}): session = ibid.databases.ibid() factoid = get_factoid(session, name, number, pattern, is_regex) session.close() | 739ce618ea043322b77109974c84a8b3c80f7950 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/739ce618ea043322b77109974c84a8b3c80f7950/factoid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
67,
588,
12,
2890,
16,
508,
16,
1300,
33,
7036,
16,
1936,
33,
7036,
16,
353,
67,
7584,
33,
7036,
16,
871,
12938,
4672,
1339,
273,
9834,
350,
18,
3404,
19684,
18,
495,
350,
1435,
5410,
839,
273,
336,
67,
3493,
839,
12,
3184,
16,
508,
16,
1300,
16,
1936,
16,
353,
67,
7584,
13,
1339,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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184,
16,
508,
16,
1300,
16,
1936,
16,
353,
67,
7584,
13,
1339,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return externalpatch(patcher, args, patchname, ui, strip, cwd, files) | return externalpatch(patcher, patchname, ui, strip, cwd, files) | def patch(patchname, ui, strip=1, cwd=None, files=None, eolmode='strict'): """Apply <patchname> to the working directory. 'eolmode' specifies how end of lines should be handled. It can be: - 'strict': inputs are read in binary mode, EOLs are preserved - 'crlf': EOLs are ignored when patching and reset to CRLF - 'lf': EOLs are ignored when patching and reset to LF - None: get it from user settings, default to 'strict' 'eolmode' is ignored when using an external patcher program. Returns whether patch was applied with fuzz factor. """ patcher = ui.config('ui', 'patch') args = [] if files is None: files = {} try: if patcher: return externalpatch(patcher, args, patchname, ui, strip, cwd, files) return internalpatch(patchname, ui, strip, cwd, files, eolmode) except PatchError, err: s = str(err) if s: raise util.Abort(s) else: raise util.Abort(_('patch failed to apply')) | 5fa420a2a2858de74ae86c5d9337ab239fb155b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/5fa420a2a2858de74ae86c5d9337ab239fb155b3/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
12,
2272,
529,
16,
5915,
16,
2569,
33,
21,
16,
7239,
33,
7036,
16,
1390,
33,
7036,
16,
14775,
3188,
2218,
13948,
11,
4672,
3536,
7001,
411,
2272,
529,
34,
358,
326,
5960,
1867,
18,
225,
296,
30951,
3188,
11,
11470,
3661,
679,
434,
2362,
1410,
506,
7681,
18,
2597,
848,
506,
30,
300,
296,
13948,
4278,
4540,
854,
855,
316,
3112,
1965,
16,
19995,
87,
854,
21096,
300,
296,
71,
1321,
74,
4278,
19995,
87,
854,
5455,
1347,
4729,
310,
471,
2715,
358,
21791,
300,
296,
20850,
4278,
19995,
87,
854,
5455,
1347,
4729,
310,
471,
2715,
358,
18803,
300,
599,
30,
336,
518,
628,
729,
1947,
16,
805,
358,
296,
13948,
11,
296,
30951,
3188,
11,
353,
5455,
1347,
1450,
392,
3903,
4729,
264,
5402,
18,
225,
2860,
2856,
4729,
1703,
6754,
598,
31839,
5578,
18,
3536,
4729,
264,
273,
5915,
18,
1425,
2668,
4881,
2187,
296,
2272,
6134,
833,
273,
5378,
309,
1390,
353,
599,
30,
1390,
273,
2618,
775,
30,
309,
4729,
264,
30,
327,
3903,
2272,
12,
2272,
264,
16,
4729,
529,
16,
5915,
16,
2569,
16,
7239,
16,
1390,
13,
327,
2713,
2272,
12,
2272,
529,
16,
5915,
16,
2569,
16,
7239,
16,
1390,
16,
14775,
3188,
13,
1335,
12042,
668,
16,
393,
30,
272,
273,
609,
12,
370,
13,
309,
272,
30,
1002,
1709,
18,
13572,
12,
87,
13,
469,
30,
1002,
1709,
18,
13572,
24899,
2668,
2272,
2535,
358,
2230,
26112,
225,
2,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
12,
2272,
529,
16,
5915,
16,
2569,
33,
21,
16,
7239,
33,
7036,
16,
1390,
33,
7036,
16,
14775,
3188,
2218,
13948,
11,
4672,
3536,
7001,
411,
2272,
529,
34,
358,
326,
5960,
1867,
18,
225,
296,
30951,
3188,
11,
11470,
3661,
679,
434,
2362,
1410,
506,
7681,
18,
2597,
848,
506,
30,
300,
296,
13948,
4278,
4540,
854,
855,
316,
3112,
1965,
16,
19995,
87,
854,
21096,
300,
296,
71,
1321,
74,
4278,
19995,
87,
854,
5455,
1347,
4729,
310,
471,
2715,
358,
21791,
300,
296,
20850,
4278,
19995,
87,
854,
5455,
1347,
4729,
310,
471,
2715,
358,
18803,
300,
599,
30,
336,
518,
628,
729,
1947,
16,
805,
358,
296,
13948,
11,
296,
30951,
3188,
2
] |
def __init__(self, x, unit=None, cr=False, sort=True): | def __init__(self, x, unit=None, cr=False, sort=True, simplify=True): | def __init__(self, x, unit=None, cr=False, sort=True): if not isinstance(x, list): raise TypeError, "x must be a list" if isinstance(x, Factorization): if unit is None: unit = x.__unit else: unit = x.__unit * unit from sage.rings.integer import Integer for t in x: if not (isinstance(t, tuple) and len(t) == 2 and isinstance(t[1],(int, long, Integer))): raise TypeError, "x must be a list of tuples of length 2" if unit is None: if len(x) > 0: try: unit = x[0][0].parent()(1) except AttributeError: unit = Integer(1) else: unit = Integer(1) list.__init__(self, x) self.__unit = unit self.__cr = cr if sort: self.sort() | cb1429dcb61ee11943f1a81fd06026cfcd41d30e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cb1429dcb61ee11943f1a81fd06026cfcd41d30e/factorization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
619,
16,
2836,
33,
7036,
16,
4422,
33,
8381,
16,
1524,
33,
5510,
16,
16499,
33,
5510,
4672,
309,
486,
1549,
12,
92,
16,
666,
4672,
1002,
3580,
16,
315,
92,
1297,
506,
279,
666,
6,
309,
1549,
12,
92,
16,
26400,
1588,
4672,
309,
2836,
353,
599,
30,
2836,
273,
619,
16186,
4873,
469,
30,
2836,
273,
619,
16186,
4873,
380,
2836,
628,
272,
410,
18,
86,
899,
18,
7745,
1930,
2144,
364,
268,
316,
619,
30,
309,
486,
261,
291,
1336,
12,
88,
16,
3193,
13,
471,
562,
12,
88,
13,
422,
576,
471,
1549,
12,
88,
63,
21,
6487,
12,
474,
16,
1525,
16,
2144,
3719,
4672,
1002,
3580,
16,
315,
92,
1297,
506,
279,
666,
434,
10384,
434,
769,
576,
6,
309,
2836,
353,
599,
30,
309,
562,
12,
92,
13,
405,
374,
30,
775,
30,
2836,
273,
619,
63,
20,
6362,
20,
8009,
2938,
1435,
12,
21,
13,
1335,
6394,
30,
2836,
273,
2144,
12,
21,
13,
469,
30,
2836,
273,
2144,
12,
21,
13,
666,
16186,
2738,
972,
12,
2890,
16,
619,
13,
365,
16186,
4873,
273,
2836,
365,
16186,
3353,
273,
4422,
309,
1524,
30,
365,
18,
3804,
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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
26400,
1588,
4672,
309,
2836,
353,
599,
30,
2836,
273,
619,
16186,
4873,
469,
30,
2836,
273,
619,
16186,
4873,
380,
2836,
628,
272,
410,
18,
86,
899,
18,
7745,
1930,
2144,
364,
268,
316,
619,
30,
309,
486,
261,
291,
1336,
12,
88,
16,
3193,
13,
471,
562,
12,
88,
13,
422,
576,
471,
1549,
12,
88,
63,
21,
6487,
12,
474,
16,
1525,
16,
2144,
3719,
4672,
1002,
3580,
2
] |
self.row_size = x | def refresh_screen(self): """ Redraws the whole screen with the current channel window set to channel """ width, height = self.ui.get_cols_rows() | cf0b1fe13eba43ab7567307bb554e1832896a5aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/cf0b1fe13eba43ab7567307bb554e1832896a5aa/Hexeditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
9252,
12,
2890,
4672,
3536,
4621,
1899,
87,
326,
7339,
5518,
598,
326,
783,
1904,
2742,
444,
358,
1904,
3536,
1835,
16,
2072,
273,
365,
18,
4881,
18,
588,
67,
6842,
67,
3870,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
326,
783,
1904,
2742,
444,
358,
1904,
3536,
1835,
16,
2072,
273,
365,
18,
4881,
18,
588,
67,
6842,
67,
3870,
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
] | |
self.parentBlock.widget, -1, self, font) | self.parentBlock.widget, Block.getWidgetID(self), self, font) | def instantiateWidget(self): """ Ask our attribute editor to create a widget for us. """ existingWidget = getattr(self, 'widget', None) if existingWidget is not None: return existingWidget forEditing = getattr(self, 'forEditing', False) | 0c9c25ae95bf029bcbc524438c1e4bfb6a7dc80b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0c9c25ae95bf029bcbc524438c1e4bfb6a7dc80b/ControlBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
4609,
12,
2890,
4672,
3536,
25747,
3134,
1566,
4858,
358,
752,
279,
3604,
364,
584,
18,
3536,
2062,
4609,
273,
3869,
12,
2890,
16,
296,
6587,
2187,
599,
13,
309,
2062,
4609,
353,
486,
599,
30,
327,
2062,
4609,
225,
364,
28029,
273,
3869,
12,
2890,
16,
296,
1884,
28029,
2187,
1083,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
4609,
12,
2890,
4672,
3536,
25747,
3134,
1566,
4858,
358,
752,
279,
3604,
364,
584,
18,
3536,
2062,
4609,
273,
3869,
12,
2890,
16,
296,
6587,
2187,
599,
13,
309,
2062,
4609,
353,
486,
599,
30,
327,
2062,
4609,
225,
364,
28029,
273,
3869,
12,
2890,
16,
296,
1884,
28029,
2187,
1083,
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
] |
font = self.__loadfont__(fname.replace('_bold', 'bd'), ptsize) if font: break | def __getfont__(self, filename, ptsize): ptsize = int(ptsize / 0.7) # XXX pygame multiplies by 0.7 for some reason | f3f68590c26a78dac15ba4fc7631e38b13e4645b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f3f68590c26a78dac15ba4fc7631e38b13e4645b/osd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
5776,
972,
12,
2890,
16,
1544,
16,
5818,
1467,
4672,
5818,
1467,
273,
509,
12,
1092,
554,
342,
374,
18,
27,
13,
225,
468,
11329,
2395,
13957,
3309,
5259,
635,
374,
18,
27,
364,
2690,
3971,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
588,
5776,
972,
12,
2890,
16,
1544,
16,
5818,
1467,
4672,
5818,
1467,
273,
509,
12,
1092,
554,
342,
374,
18,
27,
13,
225,
468,
11329,
2395,
13957,
3309,
5259,
635,
374,
18,
27,
364,
2690,
3971,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 'b' in msg.args[1] or 'd' in msg.args[1]: i = 2 plusmin = False for c in msg.args[1]: if c == '-': plusmin = False elif c == '+': plusmin = True else: if c == 'b': if plusmin: comment = self.getHostFromBan(irc, msg, msg.args[i]) self.doKickban(irc, channel, msg.nick, msg.args[i], extra_comment=comment) else: self.doUnban(irc,channel, msg.nick, msg.args[i]) i += 1 if c == 'd': if plusmin: self.doKickban(irc, channel, msg.nick, msg.args[i] + ' (realname)') else: self.doUnban(irc,channel, msg.nick, msg.args[i] + ' (realname)') i += 1 | modes = ircutils.separateModes(msg.args[1:]) for param in modes: if param == '+b': comment = self.getHostFromBan(irc, msg, msg.args[i]) self.doKickban(irc, channel, msg.nick, msg.args[i], extra_comment=comment) elif param == '-b': self.doUnban(irc,channel, msg.nick, msg.args[i]) elif param == '+d': self.doKickban(irc, channel, msg.nick, msg.args[i] + ' (realname)') elif param == '-d': self.doUnban(irc,channel, msg.nick, msg.args[i] + ' (realname)') | def doMode(self, irc, msg): channel = msg.args[0] if irc.isChannel(channel) and msg.args[1:]: self.doLog(irc, channel, '*** %s sets mode: %s %s\n' % (msg.nick or msg.prefix, msg.args[1], ' '.join(msg.args[2:]))) if 'b' in msg.args[1] or 'd' in msg.args[1]: i = 2 plusmin = False for c in msg.args[1]: if c == '-': plusmin = False elif c == '+': plusmin = True else: if c == 'b': if plusmin: comment = self.getHostFromBan(irc, msg, msg.args[i]) self.doKickban(irc, channel, msg.nick, msg.args[i], extra_comment=comment) else: self.doUnban(irc,channel, msg.nick, msg.args[i]) i += 1 if c == 'd': if plusmin: self.doKickban(irc, channel, msg.nick, msg.args[i] + ' (realname)') else: self.doUnban(irc,channel, msg.nick, msg.args[i] + ' (realname)') i += 1 | 118c820e160bab6a4a762bc5506e50504883344c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3106/118c820e160bab6a4a762bc5506e50504883344c/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2309,
12,
2890,
16,
277,
1310,
16,
1234,
4672,
1904,
273,
1234,
18,
1968,
63,
20,
65,
309,
277,
1310,
18,
291,
2909,
12,
4327,
13,
471,
1234,
18,
1968,
63,
21,
30,
14542,
365,
18,
2896,
1343,
12,
481,
71,
16,
1904,
16,
296,
14465,
738,
87,
1678,
1965,
30,
738,
87,
738,
87,
64,
82,
11,
738,
261,
3576,
18,
17091,
578,
1234,
18,
3239,
16,
1234,
18,
1968,
63,
21,
6487,
296,
2418,
5701,
12,
3576,
18,
1968,
63,
22,
26894,
20349,
309,
296,
70,
11,
316,
1234,
18,
1968,
63,
21,
65,
578,
296,
72,
11,
316,
1234,
18,
1968,
63,
21,
14542,
277,
273,
576,
8737,
1154,
273,
1083,
364,
276,
316,
1234,
18,
1968,
63,
21,
14542,
309,
282,
276,
422,
4014,
30,
8737,
1154,
273,
1083,
1327,
276,
422,
15126,
4278,
8737,
1154,
273,
1053,
469,
30,
309,
276,
422,
296,
70,
4278,
309,
8737,
1154,
30,
2879,
273,
365,
18,
588,
2594,
1265,
38,
304,
12,
481,
71,
16,
1234,
16,
1234,
18,
1968,
63,
77,
5717,
365,
18,
2896,
47,
1200,
21515,
12,
481,
71,
16,
1904,
16,
1234,
18,
17091,
16,
1234,
18,
1968,
63,
77,
6487,
2870,
67,
3469,
33,
3469,
13,
469,
30,
365,
18,
2896,
984,
21515,
12,
481,
71,
16,
4327,
16,
1234,
18,
17091,
16,
1234,
18,
1968,
63,
77,
5717,
277,
1011,
404,
309,
276,
422,
296,
72,
4278,
309,
8737,
1154,
30,
365,
18,
2896,
47,
1200,
21515,
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,
741,
2309,
12,
2890,
16,
277,
1310,
16,
1234,
4672,
1904,
273,
1234,
18,
1968,
63,
20,
65,
309,
277,
1310,
18,
291,
2909,
12,
4327,
13,
471,
1234,
18,
1968,
63,
21,
30,
14542,
365,
18,
2896,
1343,
12,
481,
71,
16,
1904,
16,
296,
14465,
738,
87,
1678,
1965,
30,
738,
87,
738,
87,
64,
82,
11,
738,
261,
3576,
18,
17091,
578,
1234,
18,
3239,
16,
1234,
18,
1968,
63,
21,
6487,
296,
2418,
5701,
12,
3576,
18,
1968,
63,
22,
26894,
20349,
309,
296,
70,
11,
316,
1234,
18,
1968,
63,
21,
65,
578,
296,
72,
11,
316,
1234,
18,
1968,
63,
21,
14542,
277,
273,
576,
8737,
1154,
273,
1083,
364,
276,
316,
2
] |
self.assertRaises(TypeError, list, ifilterfalse(isEven, N(s))) | self.assertRaises(TypeError, ifilterfalse, isEven, N(s)) | def test_ifilterfalse(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(ifilterfalse(isEven, g(s))), filter(isOdd, g(s))) self.assertRaises(TypeError, ifilterfalse, isEven, X(s)) self.assertRaises(TypeError, list, ifilterfalse(isEven, N(s))) self.assertRaises(ZeroDivisionError, list, ifilterfalse(isEven, E(s))) | 8690c4ed3fa1f1889459249c7e50e11c2052b340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8690c4ed3fa1f1889459249c7e50e11c2052b340/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
430,
1088,
5743,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
364,
314,
316,
261,
43,
16,
467,
16,
467,
75,
16,
348,
16,
511,
16,
534,
4672,
365,
18,
11231,
5812,
12,
1098,
12,
430,
1088,
5743,
12,
291,
8321,
16,
314,
12,
87,
3719,
3631,
1034,
12,
291,
51,
449,
16,
314,
12,
87,
20349,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
5743,
16,
353,
8321,
16,
1139,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
5743,
16,
353,
8321,
16,
423,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
7170,
28223,
668,
16,
666,
16,
309,
1088,
5743,
12,
291,
8321,
16,
512,
12,
87,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
430,
1088,
5743,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
364,
314,
316,
261,
43,
16,
467,
16,
467,
75,
16,
348,
16,
511,
16,
534,
4672,
365,
18,
11231,
5812,
12,
1098,
12,
430,
1088,
5743,
12,
291,
8321,
16,
314,
12,
87,
3719,
3631,
1034,
12,
291,
51,
449,
16,
314,
12,
87,
20349,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
5743,
16,
353,
8321,
16,
1139,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
309,
1088,
5743,
16,
353,
8321,
2
] |
utt.verify_grad(self.op, inputs) | utt.verify_grad(self.op, inputs, mode=self.mode) | def test_grad(self): for testname, inputs in self.grad.items(): inputs = [copy(input) for input in inputs] inputrs = [value(input) for input in inputs] try: utt.verify_grad(self.op, inputs) except: type, exc_value, traceback = sys.exc_info() err_msg = "Test %s::%s: Error occurred while computing the gradient on the following inputs: %s" \ % (self.op, testname, inputs) exc_value.args = exc_value.args + (err_msg, ) raise type, exc_value, traceback | 460debbf46c41dbcd844a3347818877671d9d7ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/460debbf46c41dbcd844a3347818877671d9d7ae/test_basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9974,
12,
2890,
4672,
364,
1842,
529,
16,
4540,
316,
365,
18,
9974,
18,
3319,
13332,
4540,
273,
306,
3530,
12,
2630,
13,
364,
810,
316,
4540,
65,
316,
11938,
28007,
273,
306,
1132,
12,
2630,
13,
364,
810,
316,
4540,
65,
775,
30,
5218,
88,
18,
8705,
67,
9974,
12,
2890,
18,
556,
16,
4540,
16,
1965,
33,
2890,
18,
3188,
13,
1335,
30,
618,
16,
3533,
67,
1132,
16,
10820,
273,
2589,
18,
10075,
67,
1376,
1435,
393,
67,
3576,
273,
315,
4709,
738,
87,
2866,
9,
87,
30,
1068,
7841,
1323,
20303,
326,
10292,
603,
326,
3751,
4540,
30,
738,
87,
6,
521,
738,
261,
2890,
18,
556,
16,
1842,
529,
16,
4540,
13,
3533,
67,
1132,
18,
1968,
273,
3533,
67,
1132,
18,
1968,
397,
261,
370,
67,
3576,
16,
262,
1002,
618,
16,
3533,
67,
1132,
16,
10820,
2,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9974,
12,
2890,
4672,
364,
1842,
529,
16,
4540,
316,
365,
18,
9974,
18,
3319,
13332,
4540,
273,
306,
3530,
12,
2630,
13,
364,
810,
316,
4540,
65,
316,
11938,
28007,
273,
306,
1132,
12,
2630,
13,
364,
810,
316,
4540,
65,
775,
30,
5218,
88,
18,
8705,
67,
9974,
12,
2890,
18,
556,
16,
4540,
16,
1965,
33,
2890,
18,
3188,
13,
1335,
30,
618,
16,
3533,
67,
1132,
16,
10820,
273,
2589,
18,
10075,
67,
1376,
1435,
393,
67,
3576,
273,
315,
4709,
738,
87,
2866,
9,
87,
30,
1068,
7841,
1323,
20303,
326,
10292,
603,
326,
3751,
4540,
30,
738,
87,
6,
521,
738,
261,
2890,
18,
556,
16,
1842,
529,
16,
4540,
2
] |
for tag, tag_value in tagged_values.items(): | for tag_name, tag_value in tagged_values.items(): | def permissionsDefinitions(self): """ return a list of dictionaries with permission definitions | 80417bf8beb7c50c744178210856637b0ae6c9b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11941/80417bf8beb7c50c744178210856637b0ae6c9b1/WorkflowGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4371,
7130,
12,
2890,
4672,
3536,
327,
279,
666,
434,
16176,
598,
4132,
6377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4371,
7130,
12,
2890,
4672,
3536,
327,
279,
666,
434,
16176,
598,
4132,
6377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
opcodes = diff2._get_opcodes(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'], | opcodes = Diff._get_opcodes(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'], | def test_grouped_opcodes_context1(self): opcodes = diff2._get_opcodes(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'], ['A', 'B', 'C', 'd', 'e', 'f', 'G', 'H']) groups = diff2._group_opcodes(opcodes, n=1) group = groups.next() self.assertEqual(('equal', 2, 3, 2, 3), group[0]) self.assertEqual(('replace', 3, 6, 3, 6), group[1]) self.assertEqual(('equal', 6, 8, 6, 8), group[2]) | 38e384d376102113c1e3a6caf204ad89dc23aa61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/38e384d376102113c1e3a6caf204ad89dc23aa61/diff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
25472,
67,
556,
7000,
67,
2472,
21,
12,
2890,
4672,
1061,
7000,
273,
13008,
6315,
588,
67,
556,
7000,
12,
3292,
37,
2187,
296,
38,
2187,
296,
39,
2187,
296,
40,
2187,
296,
41,
2187,
296,
42,
2187,
296,
43,
2187,
296,
44,
17337,
10228,
37,
2187,
296,
38,
2187,
296,
39,
2187,
296,
72,
2187,
296,
73,
2187,
296,
74,
2187,
296,
43,
2187,
296,
44,
19486,
3252,
273,
3122,
22,
6315,
1655,
67,
556,
7000,
12,
556,
7000,
16,
290,
33,
21,
13,
1041,
273,
3252,
18,
4285,
1435,
365,
18,
11231,
5812,
12,
2668,
9729,
2187,
576,
16,
890,
16,
576,
16,
890,
3631,
1041,
63,
20,
5717,
365,
18,
11231,
5812,
12,
2668,
2079,
2187,
890,
16,
1666,
16,
890,
16,
1666,
3631,
1041,
63,
21,
5717,
365,
18,
11231,
5812,
12,
2668,
9729,
2187,
1666,
16,
1725,
16,
1666,
16,
1725,
3631,
1041,
63,
22,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
25472,
67,
556,
7000,
67,
2472,
21,
12,
2890,
4672,
1061,
7000,
273,
13008,
6315,
588,
67,
556,
7000,
12,
3292,
37,
2187,
296,
38,
2187,
296,
39,
2187,
296,
40,
2187,
296,
41,
2187,
296,
42,
2187,
296,
43,
2187,
296,
44,
17337,
10228,
37,
2187,
296,
38,
2187,
296,
39,
2187,
296,
72,
2187,
296,
73,
2187,
296,
74,
2187,
296,
43,
2187,
296,
44,
19486,
3252,
273,
3122,
22,
6315,
1655,
67,
556,
7000,
12,
556,
7000,
16,
290,
33,
21,
13,
1041,
273,
3252,
18,
4285,
1435,
365,
18,
11231,
5812,
12,
2668,
9729,
2187,
576,
16,
890,
16,
576,
16,
890,
3631,
1041,
63,
20,
5717,
365,
18,
11231,
5812,
12,
2
] |
os.remove(self.path) | os.remove(self.path + '.dir') os.remove(self.path + '.dat') os.remove(self.path + '.bak') | def teardown(self): os.remove(self.path) | caf7f843fe05560c6027645b7ae8a9a5b58dd52e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/caf7f843fe05560c6027645b7ae8a9a5b58dd52e/testjobstores.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28196,
12,
2890,
4672,
1140,
18,
4479,
12,
2890,
18,
803,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28196,
12,
2890,
4672,
1140,
18,
4479,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SIPURI(self.credentials.uri.host), route, contact_uri, call_id=call_id, | SIPURI(self.credentials.uri.host), route, contact_uri=contact_uri, call_id=call_id, | def _make_and_send_request(self, contact_uri, route, timeout, do_register): prev_request = self._current_request or self._last_request if prev_request is not None: call_id = prev_request.call_id cseq = prev_request.cseq + 1 else: call_id = None cseq = 1 request = Request("REGISTER", self.credentials, self.credentials.uri, SIPURI(self.credentials.uri.host), route, contact_uri, call_id=call_id, cseq=cseq, extra_headers={"Expires": str(int(self.duration) if do_register else 0)}) self._notification_center.add_observer(self, sender=request) if self._current_request is not None: # we are trying to send something already, cancel whatever it is self._current_request.terminate() self._current_request = None try: request.send(timeout=timeout) except: self._notification_center.remove_observer(self, sender=request) raise self._unregistering = not do_register self._current_request = request | 0af9a78e8f1386a4089ce836e299fc410d6029ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/0af9a78e8f1386a4089ce836e299fc410d6029ee/primitives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
464,
67,
4661,
67,
2293,
12,
2890,
16,
5388,
67,
1650,
16,
1946,
16,
2021,
16,
741,
67,
4861,
4672,
2807,
67,
2293,
273,
365,
6315,
2972,
67,
2293,
578,
365,
6315,
2722,
67,
2293,
309,
2807,
67,
2293,
353,
486,
599,
30,
745,
67,
350,
273,
2807,
67,
2293,
18,
1991,
67,
350,
276,
5436,
273,
2807,
67,
2293,
18,
71,
5436,
397,
404,
469,
30,
745,
67,
350,
273,
599,
276,
5436,
273,
404,
590,
273,
1567,
2932,
27511,
3113,
365,
18,
11687,
16,
365,
18,
11687,
18,
1650,
16,
348,
2579,
3098,
12,
2890,
18,
11687,
18,
1650,
18,
2564,
3631,
1946,
16,
5388,
67,
1650,
33,
8994,
67,
1650,
16,
745,
67,
350,
33,
1991,
67,
350,
16,
276,
5436,
33,
71,
5436,
16,
2870,
67,
2485,
5899,
6,
14449,
6877,
609,
12,
474,
12,
2890,
18,
8760,
13,
309,
741,
67,
4861,
469,
374,
13,
6792,
365,
6315,
9927,
67,
5693,
18,
1289,
67,
30971,
12,
2890,
16,
5793,
33,
2293,
13,
309,
365,
6315,
2972,
67,
2293,
353,
486,
599,
30,
468,
732,
854,
8374,
358,
1366,
5943,
1818,
16,
3755,
15098,
518,
353,
365,
6315,
2972,
67,
2293,
18,
30017,
1435,
365,
6315,
2972,
67,
2293,
273,
599,
775,
30,
590,
18,
4661,
12,
4538,
33,
4538,
13,
1335,
30,
365,
6315,
9927,
67,
5693,
18,
4479,
67,
30971,
12,
2890,
16,
5793,
33,
2293,
13,
1002,
365,
6315,
318,
4861,
310,
273,
486,
741,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
464,
67,
4661,
67,
2293,
12,
2890,
16,
5388,
67,
1650,
16,
1946,
16,
2021,
16,
741,
67,
4861,
4672,
2807,
67,
2293,
273,
365,
6315,
2972,
67,
2293,
578,
365,
6315,
2722,
67,
2293,
309,
2807,
67,
2293,
353,
486,
599,
30,
745,
67,
350,
273,
2807,
67,
2293,
18,
1991,
67,
350,
276,
5436,
273,
2807,
67,
2293,
18,
71,
5436,
397,
404,
469,
30,
745,
67,
350,
273,
599,
276,
5436,
273,
404,
590,
273,
1567,
2932,
27511,
3113,
365,
18,
11687,
16,
365,
18,
11687,
18,
1650,
16,
348,
2579,
3098,
12,
2890,
18,
11687,
18,
1650,
18,
2564,
3631,
1946,
16,
5388,
67,
1650,
33,
8994,
67,
1650,
16,
745,
2
] |
print 'Content-type: text/html\n' | charset = Utils.GetCharSet(mlist.preferred_language) print 'Content-type: text/html; charset=' + charset + '\n\n' | def loginpage(mlist, scriptname, msg='', frontpage=None): url = mlist.GetScriptURL(scriptname) if frontpage: actionurl = url else: actionurl = Utils.GetRequestURI(url) if msg: msg = FontAttr(msg, color='#ff0000', size='+1').Format() print 'Content-type: text/html\n' print Utils.maketext( # Should really be admlogin.html :/ 'admlogin.txt', {'listname': mlist.real_name, 'path' : actionurl, 'message' : msg, }) | 6b0b92ba1b12cbac6eaa3ec633feaad143b18355 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/6b0b92ba1b12cbac6eaa3ec633feaad143b18355/Auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
2433,
12,
781,
376,
16,
2728,
529,
16,
1234,
2218,
2187,
6641,
2433,
33,
7036,
4672,
880,
273,
312,
1098,
18,
967,
3651,
1785,
12,
4263,
529,
13,
309,
6641,
2433,
30,
1301,
718,
273,
880,
469,
30,
1301,
718,
273,
6091,
18,
967,
691,
3098,
12,
718,
13,
309,
1234,
30,
1234,
273,
10063,
3843,
12,
3576,
16,
2036,
2218,
7,
1403,
2787,
2187,
963,
2218,
15,
21,
16063,
1630,
1435,
225,
4856,
273,
6091,
18,
967,
2156,
694,
12,
781,
376,
18,
23616,
67,
4923,
13,
1172,
296,
1350,
17,
723,
30,
977,
19,
2620,
31,
4856,
2218,
397,
4856,
397,
2337,
82,
64,
82,
11,
1172,
6091,
18,
81,
581,
27830,
12,
468,
9363,
8654,
506,
31003,
5819,
18,
2620,
294,
19,
296,
20864,
5819,
18,
5830,
2187,
13666,
1098,
529,
4278,
312,
1098,
18,
7688,
67,
529,
16,
296,
803,
11,
565,
294,
1301,
718,
16,
296,
2150,
11,
294,
1234,
16,
289,
13,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
2433,
12,
781,
376,
16,
2728,
529,
16,
1234,
2218,
2187,
6641,
2433,
33,
7036,
4672,
880,
273,
312,
1098,
18,
967,
3651,
1785,
12,
4263,
529,
13,
309,
6641,
2433,
30,
1301,
718,
273,
880,
469,
30,
1301,
718,
273,
6091,
18,
967,
691,
3098,
12,
718,
13,
309,
1234,
30,
1234,
273,
10063,
3843,
12,
3576,
16,
2036,
2218,
7,
1403,
2787,
2187,
963,
2218,
15,
21,
16063,
1630,
1435,
225,
4856,
273,
6091,
18,
967,
2156,
694,
12,
781,
376,
18,
23616,
67,
4923,
13,
1172,
296,
1350,
17,
723,
30,
977,
19,
2620,
31,
4856,
2218,
397,
4856,
397,
2337,
82,
64,
82,
11,
1172,
6091,
18,
81,
581,
27830,
12,
468,
9363,
2
] |
Return type of the last xref obtained by [RD]first/next[B0] functions. | Return type of the last xref obtained by [RD]first/next[B0] functions. | def XrefType(): """ Return type of the last xref obtained by [RD]first/next[B0] functions. @return: constants fl_* or dr_* """ raise DeprecatedIDCError, "use XrefsFrom() XrefsTo() from idautils instead." | f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1139,
1734,
559,
13332,
3536,
2000,
618,
434,
326,
1142,
15187,
12700,
635,
306,
20403,
65,
3645,
19,
4285,
63,
38,
20,
65,
4186,
18,
225,
632,
2463,
30,
6810,
1183,
67,
14,
578,
5081,
67,
14,
3536,
1002,
9336,
734,
39,
668,
16,
315,
1202,
1139,
9316,
1265,
1435,
1139,
9316,
774,
1435,
628,
612,
69,
5471,
3560,
1199,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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9336,
734,
39,
668,
16,
315,
1202,
1139,
9316,
1265,
1435,
1139,
9316,
774,
1435,
628,
612,
69,
5471,
3560,
1199,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
user_permissions = UserPermission.objects.filter(username = request.session.get('user_id')) districts = District.objects.none() for user_permission in user_permissions: if(user_permission.role=='A'): districts = districts | District.objects.all() if(user_permission.role=='D'): states = State.objects.filter(region = user_permission.region_operated) districts = districts | District.objects.filter(state__in = states) if(user_permission.role=='F'): districts = districts | District.objects.filter(district_name = user_permission.district_operated) return districts | user_permissions = UserPermission.objects.filter(username = request.session.get('user_id')) districts = District.objects.none() for user_permission in user_permissions: if(user_permission.role=='A'): districts = districts | District.objects.all() if(user_permission.role=='D'): states = State.objects.filter(region = user_permission.region_operated) districts = districts | District.objects.filter(state__in = states) if(user_permission.role=='F'): districts = districts | District.objects.filter(district_name = user_permission.district_operated) return districts | def get_user_districts(request): user_permissions = UserPermission.objects.filter(username = request.session.get('user_id')) districts = District.objects.none() for user_permission in user_permissions: if(user_permission.role=='A'): districts = districts | District.objects.all() if(user_permission.role=='D'): states = State.objects.filter(region = user_permission.region_operated) districts = districts | District.objects.filter(state__in = states) if(user_permission.role=='F'): districts = districts | District.objects.filter(district_name = user_permission.district_operated) return districts | 7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1355,
67,
22602,
87,
12,
2293,
4672,
729,
67,
9612,
273,
2177,
5041,
18,
6911,
18,
2188,
12,
5053,
273,
590,
18,
3184,
18,
588,
2668,
1355,
67,
350,
26112,
1015,
5792,
87,
273,
3035,
5792,
18,
6911,
18,
6102,
1435,
364,
729,
67,
9827,
316,
729,
67,
9612,
30,
309,
12,
1355,
67,
9827,
18,
4615,
18920,
37,
11,
4672,
1015,
5792,
87,
273,
1015,
5792,
87,
571,
3035,
5792,
18,
6911,
18,
454,
1435,
309,
12,
1355,
67,
9827,
18,
4615,
18920,
40,
11,
4672,
5493,
273,
3287,
18,
6911,
18,
2188,
12,
6858,
273,
729,
67,
9827,
18,
6858,
67,
4063,
690,
13,
1015,
5792,
87,
273,
1015,
5792,
87,
571,
3035,
5792,
18,
6911,
18,
2188,
12,
2019,
972,
267,
273,
5493,
13,
309,
12,
1355,
67,
9827,
18,
4615,
18920,
42,
11,
4672,
1015,
5792,
87,
273,
1015,
5792,
87,
571,
3035,
5792,
18,
6911,
18,
2188,
12,
22602,
67,
529,
273,
729,
67,
9827,
18,
22602,
67,
4063,
690,
13,
327,
1015,
5792,
87,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1355,
67,
22602,
87,
12,
2293,
4672,
729,
67,
9612,
273,
2177,
5041,
18,
6911,
18,
2188,
12,
5053,
273,
590,
18,
3184,
18,
588,
2668,
1355,
67,
350,
26112,
1015,
5792,
87,
273,
3035,
5792,
18,
6911,
18,
6102,
1435,
364,
729,
67,
9827,
316,
729,
67,
9612,
30,
309,
12,
1355,
67,
9827,
18,
4615,
18920,
37,
11,
4672,
1015,
5792,
87,
273,
1015,
5792,
87,
571,
3035,
5792,
18,
6911,
18,
454,
1435,
309,
12,
1355,
67,
9827,
18,
4615,
18920,
40,
11,
4672,
5493,
273,
3287,
18,
6911,
18,
2188,
12,
6858,
273,
729,
67,
9827,
18,
6858,
67,
4063,
690,
13,
1015,
5792,
87,
273,
1015,
5792,
87,
571,
3035,
5792,
2
] |
""" Fail unless the two objects are identical | """ Fail unless the two objects are identical. | def failUnlessIs(self, first, second, msg=None): """ Fail unless the two objects are identical | f197f660de27f119c9000bdd2c634e6960ce4fd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/f197f660de27f119c9000bdd2c634e6960ce4fd0/scaffold.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
984,
2656,
2520,
12,
2890,
16,
1122,
16,
2205,
16,
1234,
33,
7036,
4672,
3536,
8911,
3308,
326,
2795,
2184,
854,
12529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
984,
2656,
2520,
12,
2890,
16,
1122,
16,
2205,
16,
1234,
33,
7036,
4672,
3536,
8911,
3308,
326,
2795,
2184,
854,
12529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
typeinfo_name = 'CMFDefault: Document (Document)') | typeinfo_name = 'CMFDefault: Document') | def commonAfterSetUp(self): portal = self.portal # create the Database Adaptor (DA) if self.db_name == 'Postgre': portal.manage_addProduct['ZPsycopgDA'].manage_addZPsycopgConnection( id = connection_id, title = 'PostgreSQL Archetypes Storage', connection_string = connectors[self.db_name], zdatetime = 1, check = 1) elif self.db_name == 'MySQL': portal.manage_addProduct['ZMySQLDA'].manage_addZMySQLConnection( id = connection_id, title = 'MySQL Archetypes Storage', connection_string = connectors[self.db_name], check = 1) elif self.db_name == 'Gadfly': portal.manage_addProduct['ZGadflyDA'].manage_addZGadflyConnection( id = connection_id, title = 'Gadfly Archetypes Storage', connection = connectors[self.db_name], check = 1) # add type information for Dummy tt = portal.portal_types tt.manage_addTypeInformation( FactoryTypeInformation.meta_type, id = 'Dummy', typeinfo_name = 'CMFDefault: Document (Document)') # set archetype_tool default connection at = getToolByName(portal, TOOL_NAME) at.setDefaultConn(connection_id) # create storage instance and schema storage_class = getattr(SQLStorage, self.db_name + 'SQLStorage') gen_dummy(storage_class) self._storage_class = storage_class # create a object instance obj = Dummy(oid = 'dummy') portal._setObject('dummy', obj) obj = getattr(portal, 'dummy') self._dummy = obj # set meta_type for renaming obj.__factory_meta_type__ = 'Archetypes Content' # Is It really needed? obj.meta_type = 'Archetypes Content' | 5b73d9d96dccae6374f8e655859eba4f03f956f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/5b73d9d96dccae6374f8e655859eba4f03f956f4/test_sqlstorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
4436,
694,
1211,
12,
2890,
4672,
225,
11899,
273,
365,
18,
24386,
225,
468,
752,
326,
5130,
22792,
280,
261,
9793,
13,
309,
365,
18,
1966,
67,
529,
422,
296,
3349,
11556,
4278,
11899,
18,
12633,
67,
1289,
4133,
3292,
62,
52,
9009,
22295,
75,
9793,
29489,
12633,
67,
1289,
62,
52,
9009,
22295,
75,
1952,
12,
612,
273,
1459,
67,
350,
16,
2077,
273,
296,
3349,
23896,
16959,
15180,
5235,
2187,
1459,
67,
1080,
273,
28473,
63,
2890,
18,
1966,
67,
529,
6487,
998,
6585,
273,
404,
16,
866,
273,
404,
13,
1327,
365,
18,
1966,
67,
529,
422,
296,
28723,
4278,
11899,
18,
12633,
67,
1289,
4133,
3292,
62,
28723,
9793,
29489,
12633,
67,
1289,
62,
28723,
1952,
12,
612,
273,
1459,
67,
350,
16,
2077,
273,
296,
28723,
16959,
15180,
5235,
2187,
1459,
67,
1080,
273,
28473,
63,
2890,
18,
1966,
67,
529,
6487,
866,
273,
404,
13,
1327,
365,
18,
1966,
67,
529,
422,
296,
43,
361,
29670,
4278,
11899,
18,
12633,
67,
1289,
4133,
3292,
62,
43,
361,
29670,
9793,
29489,
12633,
67,
1289,
62,
43,
361,
29670,
1952,
12,
612,
273,
1459,
67,
350,
16,
2077,
273,
296,
43,
361,
29670,
16959,
15180,
5235,
2187,
1459,
273,
28473,
63,
2890,
18,
1966,
67,
529,
6487,
866,
273,
404,
13,
225,
468,
527,
618,
1779,
364,
28622,
3574,
273,
11899,
18,
24386,
67,
2352,
3574,
18,
12633,
67,
1289,
559,
5369,
12,
7822,
559,
5369,
18,
3901,
67,
723,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
4436,
694,
1211,
12,
2890,
4672,
225,
11899,
273,
365,
18,
24386,
225,
468,
752,
326,
5130,
22792,
280,
261,
9793,
13,
309,
365,
18,
1966,
67,
529,
422,
296,
3349,
11556,
4278,
11899,
18,
12633,
67,
1289,
4133,
3292,
62,
52,
9009,
22295,
75,
9793,
29489,
12633,
67,
1289,
62,
52,
9009,
22295,
75,
1952,
12,
612,
273,
1459,
67,
350,
16,
2077,
273,
296,
3349,
23896,
16959,
15180,
5235,
2187,
1459,
67,
1080,
273,
28473,
63,
2890,
18,
1966,
67,
529,
6487,
998,
6585,
273,
404,
16,
866,
273,
404,
13,
1327,
365,
18,
1966,
67,
529,
422,
296,
28723,
4278,
11899,
18,
12633,
67,
1289,
4133,
3292,
62,
28723,
9793,
29489,
12633,
67,
1289,
2
] |
if reader is not None and \ reader.encryption_meta.is_encrypted(raster_cover): return | def get_cover(opf, opf_path, stream, reader=None): import posixpath from calibre.ebooks import render_html_svg_workaround from calibre.utils.logging import default_log raster_cover = opf.raster_cover stream.seek(0) zf = ZipFile(stream) if raster_cover: if reader is not None and \ reader.encryption_meta.is_encrypted(raster_cover): return base = posixpath.dirname(opf_path) cpath = posixpath.normpath(posixpath.join(base, raster_cover)) try: member = zf.getinfo(cpath) except: pass else: f = zf.open(member) data = f.read() f.close() zf.close() return data cpage = opf.first_spine_item() if not cpage: return if reader is not None and reader.encryption_meta.is_encrypted(cpage): return with TemporaryDirectory('_epub_meta') as tdir: with CurrentDir(tdir): zf.extractall() opf_path = opf_path.replace('/', os.sep) cpage = os.path.join(tdir, os.path.dirname(opf_path), cpage) if not os.path.exists(cpage): return return render_html_svg_workaround(cpage, default_log) | 8a4f0d80a3359bc3f2f5a0b543fd1405c6ccf4b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/8a4f0d80a3359bc3f2f5a0b543fd1405c6ccf4b9/epub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3165,
12,
556,
74,
16,
1061,
74,
67,
803,
16,
1407,
16,
2949,
33,
7036,
4672,
1930,
16366,
803,
628,
26139,
266,
18,
73,
12567,
1930,
1743,
67,
2620,
67,
11451,
67,
1252,
12716,
628,
26139,
266,
18,
5471,
18,
11167,
1930,
805,
67,
1330,
12553,
67,
3165,
273,
1061,
74,
18,
24215,
67,
3165,
1407,
18,
16508,
12,
20,
13,
22758,
273,
18364,
12,
3256,
13,
309,
12553,
67,
3165,
30,
1026,
273,
16366,
803,
18,
12287,
12,
556,
74,
67,
803,
13,
276,
803,
273,
16366,
803,
18,
7959,
803,
12,
24463,
803,
18,
5701,
12,
1969,
16,
12553,
67,
3165,
3719,
775,
30,
3140,
273,
22758,
18,
22281,
12,
71,
803,
13,
1335,
30,
1342,
469,
30,
284,
273,
22758,
18,
3190,
12,
5990,
13,
501,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
22758,
18,
4412,
1435,
327,
501,
225,
276,
2433,
273,
1061,
74,
18,
3645,
67,
1752,
558,
67,
1726,
1435,
309,
486,
276,
2433,
30,
327,
309,
2949,
353,
486,
599,
471,
2949,
18,
16646,
67,
3901,
18,
291,
67,
18702,
12,
71,
2433,
4672,
327,
225,
598,
22791,
2853,
2668,
67,
881,
373,
67,
3901,
6134,
487,
268,
1214,
30,
598,
6562,
1621,
12,
88,
1214,
4672,
22758,
18,
8004,
454,
1435,
1061,
74,
67,
803,
273,
1061,
74,
67,
803,
18,
2079,
2668,
19,
2187,
1140,
18,
10814,
13,
276,
2433,
273,
1140,
18,
803,
18,
5701,
12,
88,
1214,
16,
1140,
18,
803,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3165,
12,
556,
74,
16,
1061,
74,
67,
803,
16,
1407,
16,
2949,
33,
7036,
4672,
1930,
16366,
803,
628,
26139,
266,
18,
73,
12567,
1930,
1743,
67,
2620,
67,
11451,
67,
1252,
12716,
628,
26139,
266,
18,
5471,
18,
11167,
1930,
805,
67,
1330,
12553,
67,
3165,
273,
1061,
74,
18,
24215,
67,
3165,
1407,
18,
16508,
12,
20,
13,
22758,
273,
18364,
12,
3256,
13,
309,
12553,
67,
3165,
30,
1026,
273,
16366,
803,
18,
12287,
12,
556,
74,
67,
803,
13,
276,
803,
273,
16366,
803,
18,
7959,
803,
12,
24463,
803,
18,
5701,
12,
1969,
16,
12553,
67,
3165,
3719,
775,
30,
3140,
273,
22758,
18,
22281,
12,
71,
803,
13,
1335,
2
] | |
return S_OK((fids,lfns)) def __getFileIDsForLfns(self,lfns,connection=False): | return S_OK( ( fids, lfns ) ) def __getFileIDsForLfns( self, lfns, connection = False ): | def __getAllFileIDs(self,connection=False): """ Get all the fileIDs for the supplied list of lfns """ req = "SELECT LFN,FileID FROM DataFiles;" res = self._query(req,connection) if not res['OK']: return res fids = {} lfns = {} for lfn,fileID in res['Value']: fids[fileID] = lfn lfns[lfn] = fileID return S_OK((fids,lfns)) | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1595,
812,
5103,
12,
2890,
16,
4071,
33,
8381,
4672,
3536,
968,
777,
326,
585,
5103,
364,
326,
4580,
666,
434,
18594,
2387,
3536,
1111,
273,
315,
4803,
18803,
50,
16,
812,
734,
4571,
1910,
2697,
4868,
400,
273,
365,
6315,
2271,
12,
3658,
16,
4071,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
284,
2232,
273,
2618,
18594,
2387,
273,
2618,
364,
328,
4293,
16,
768,
734,
316,
400,
3292,
620,
3546,
30,
284,
2232,
63,
768,
734,
65,
273,
328,
4293,
18594,
2387,
63,
80,
4293,
65,
273,
585,
734,
327,
348,
67,
3141,
12443,
74,
2232,
16,
20850,
2387,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1595,
812,
5103,
12,
2890,
16,
4071,
33,
8381,
4672,
3536,
968,
777,
326,
585,
5103,
364,
326,
4580,
666,
434,
18594,
2387,
3536,
1111,
273,
315,
4803,
18803,
50,
16,
812,
734,
4571,
1910,
2697,
4868,
400,
273,
365,
6315,
2271,
12,
3658,
16,
4071,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
284,
2232,
273,
2618,
18594,
2387,
273,
2618,
364,
328,
4293,
16,
768,
734,
316,
400,
3292,
620,
3546,
30,
284,
2232,
63,
768,
734,
65,
273,
328,
4293,
18594,
2387,
63,
80,
4293,
65,
273,
585,
734,
327,
348,
67,
3141,
12443,
74,
2232,
16,
20850,
2387,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return server._refresh() return defer.succeed(None) | try: yield server._refresh() except: yield self._delServer(name) | def _refreshServer(self, name): if hasattr(self, name): server = getattr(self, name) return server._refresh() return defer.succeed(None) | 375a836d99fda7e94fd3e2bc4d60708c52cfeab9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9965/375a836d99fda7e94f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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
2081,
12,
2890,
16,
508,
4672,
309,
3859,
12,
2890,
16,
508,
4672,
1438,
273,
3869,
12,
2890,
16,
508,
13,
327,
1438,
6315,
9144,
1435,
327,
2220,
18,
87,
5286,
5288,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
help=_('Show copyright information'))] | help=_('show copyright information and exit')), make_option('--authors', action='callback', callback=print_authors, help=_('show author information and exit'))] | def _get_cmd_function(self, arg): """Returns the function for `arg`""" if arg.startswith('--'): # strip of the first to shlashes name = '_cmd_%s' % arg[2:] # and replace remaining slashes with underscores name = name.replace('-', '_') function = getattr(self, name) return function | 4a1b0e39c0e8f9263a36e8e53943e18224245734 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/4a1b0e39c0e8f9263a36e8e53943e18224245734/tel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4172,
67,
915,
12,
2890,
16,
1501,
4672,
3536,
1356,
326,
445,
364,
1375,
3175,
68,
8395,
309,
1501,
18,
17514,
1918,
2668,
413,
11,
4672,
468,
2569,
434,
326,
1122,
358,
699,
80,
7690,
508,
273,
2070,
4172,
10185,
87,
11,
738,
1501,
63,
22,
26894,
468,
471,
1453,
4463,
19034,
598,
24714,
508,
273,
508,
18,
2079,
2668,
17,
2187,
4427,
13,
445,
273,
3869,
12,
2890,
16,
508,
13,
327,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
10185,
87,
11,
738,
1501,
63,
22,
26894,
468,
471,
1453,
4463,
19034,
598,
24714,
508,
273,
508,
18,
2079,
2668,
17,
2187,
4427,
13,
445,
273,
3869,
12,
2890,
16,
508,
13,
327,
445,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
value[field] = field_value | if self._columns[field]._type in ('many2one', 'one2one'): obj = self.pool.get(self._columns[field]._obj) if not obj.search(cr, uid, [('id', '=', field_value)]): continue if self._columns[field]._type in ('one2many', 'many2many'): obj = self.pool.get(self._columns[field]._obj) obj_ids = obj.search(cr, uid, [('id', 'in', field_value)]) field_value = obj_ids value[field] = field_value | def default_get(self, cr, uid, fields, context=None): if not context: context={} value = {} # get the default values for the inherited fields for t in self._inherits.keys(): value.update(self.pool.get(t).default_get(cr, uid, fields, context)) | c51ac0093d1781c86ceb00f8c420d23fb1dfa901 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/c51ac0093d1781c86ceb00f8c420d23fb1dfa901/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268,
316,
365,
6315,
267,
20038,
18,
2452,
13332,
460,
18,
2725,
12,
2890,
18,
6011,
18,
588,
12,
88,
2934,
1886,
67,
588,
12,
3353,
16,
4555,
16,
1466,
16,
819,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268,
316,
365,
6315,
267,
20038,
18,
2452,
13332,
460,
18,
2725,
12,
2890,
18,
6011,
18,
588,
12,
88,
2934,
1886,
67,
588,
12,
3353,
16,
4555,
16,
1466,
16,
819,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
out.write(" (head %s)\n" % (vec2str(bone.head['BONESPACE']),)) | out.write(" (head %s)\n" % (vec2str(64*bone.head['BONESPACE']),)) | def export_armature(out, armature): out.write(";; -*- scheme -*-\n") out.write("(armature\n") out.write(" (name \"%s\")\n" % armature.name) out.write(" (bones\n") for bone in armature.bones.values(): if bone.name[:3] == "IK_": # ignore helper bones out.write(" ;; ignoring bone: %s\n" % bone.name) out.write("\n") else: if bone.parent: out.write(" (bone\n") else: out.write(" (bone ;; a root bone\n") out.write(" (name \"%s\")\n" % bone.name) out.write(" (children %s)\n" % list2str(map(lambda b: b.name, bone.children))) # If a bone lacks parent its head is in armature space, # else in local bonespace if bone.parent: out.write(" (parent \"%s\")\n" % bone.parent.name) out.write(" (head %s)\n" % (vec2str(bone.head['BONESPACE']),)) else: out.write(" (parent )\n") out.write(" (head %s)\n" % (vec2str(bone.head['ARMATURESPACE']),)) out.write(" (length %s)\n" % (bone.length*64)) out.write(" (matrix %s)\n" % matrix2str(" "*16, bone.matrix['BONESPACE'])) out.write(" (quat %s)\n" % quat2str(bone.matrix['BONESPACE'].toQuat())) out.write(" (euler %s)\n" % euler2str(bone.matrix['BONESPACE'].toEuler())) # out.write("### BoneSpace:" # out.write(bone.matrix['BONESPACE'] # print # out.write(" ArmatureSpace:" # out.write(bone.matrix['ARMATURESPACE'] out.write(" )\n\n") out.write(" ) ;; bones\n") out.write(" ) ;; armature\n") | 559b49f03654ec3d2ae10f82ed05e0a4ef82d62d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2372/559b49f03654ec3d2ae10f82ed05e0a4ef82d62d/bone_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
4610,
1231,
12,
659,
16,
23563,
1231,
4672,
596,
18,
2626,
2932,
25708,
300,
14,
17,
4355,
300,
14,
6943,
82,
7923,
596,
18,
2626,
2932,
12,
4610,
1231,
64,
82,
7923,
596,
18,
2626,
2932,
225,
261,
529,
22049,
87,
2412,
5153,
82,
6,
738,
23563,
1231,
18,
529,
13,
596,
18,
2626,
2932,
225,
261,
70,
5322,
64,
82,
7923,
225,
364,
30823,
316,
23563,
1231,
18,
70,
5322,
18,
2372,
13332,
309,
30823,
18,
529,
10531,
23,
65,
422,
315,
45,
47,
67,
6877,
468,
2305,
4222,
324,
5322,
596,
18,
2626,
2932,
565,
274,
31,
14398,
30823,
30,
738,
87,
64,
82,
6,
738,
30823,
18,
529,
13,
596,
18,
2626,
31458,
82,
7923,
469,
30,
309,
30823,
18,
2938,
30,
596,
18,
2626,
2932,
565,
261,
19930,
64,
82,
7923,
469,
30,
596,
18,
2626,
2932,
565,
261,
19930,
274,
31,
279,
1365,
30823,
64,
82,
7923,
225,
596,
18,
2626,
2932,
1377,
261,
529,
1377,
22049,
87,
2412,
5153,
82,
6,
738,
30823,
18,
529,
13,
225,
596,
18,
2626,
2932,
1377,
261,
5906,
738,
87,
5153,
82,
6,
738,
666,
22,
701,
12,
1458,
12,
14661,
324,
30,
324,
18,
529,
16,
30823,
18,
5906,
20349,
225,
468,
971,
279,
30823,
328,
22098,
982,
2097,
910,
353,
316,
23563,
1231,
3476,
16,
468,
469,
316,
1191,
324,
5322,
909,
309,
30823,
18,
2938,
30,
596,
18,
2626,
2932,
1377,
261,
2938,
565,
22049,
87,
2412,
5153,
82,
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,
3359,
67,
4610,
1231,
12,
659,
16,
23563,
1231,
4672,
596,
18,
2626,
2932,
25708,
300,
14,
17,
4355,
300,
14,
6943,
82,
7923,
596,
18,
2626,
2932,
12,
4610,
1231,
64,
82,
7923,
596,
18,
2626,
2932,
225,
261,
529,
22049,
87,
2412,
5153,
82,
6,
738,
23563,
1231,
18,
529,
13,
596,
18,
2626,
2932,
225,
261,
70,
5322,
64,
82,
7923,
225,
364,
30823,
316,
23563,
1231,
18,
70,
5322,
18,
2372,
13332,
309,
30823,
18,
529,
10531,
23,
65,
422,
315,
45,
47,
67,
6877,
468,
2305,
4222,
324,
5322,
596,
18,
2626,
2932,
565,
274,
31,
14398,
30823,
30,
738,
87,
64,
82,
6,
738,
30823,
18,
529,
13,
596,
18,
2626,
31458,
2
] |
this = apply(_quickfix.new_CalculatedCcyLastQty, args) | this = _quickfix.new_CalculatedCcyLastQty(*args) | def __init__(self, *args): this = apply(_quickfix.new_CalculatedCcyLastQty, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
4844,
690,
39,
2431,
3024,
53,
4098,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
4844,
690,
39,
2431,
3024,
53,
4098,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
obj = cls( ) | obj = object.__new__( cls ) | def create(cls , specgrid , zcorn , coord , actnum , mapaxes = None ): obj = cls( ) gridhead = ecl_kw.EclKW.new( "GRIDHEAD" , 4 , 3 ) gridhead[0] = 1 for i in (range(3)): gridhead[i+1] = specgrid[i] | d01f86d13f8bb053a33fddc24986fef7c80cd517 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10268/d01f86d13f8bb053a33fddc24986fef7c80cd517/ecl_grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
6429,
269,
857,
5222,
269,
998,
3850,
82,
269,
2745,
269,
1328,
2107,
269,
852,
10855,
273,
599,
262,
30,
1081,
273,
733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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
6429,
269,
857,
5222,
269,
998,
3850,
82,
269,
2745,
269,
1328,
2107,
269,
852,
10855,
273,
599,
262,
30,
1081,
273,
733,
16186,
2704,
972,
12,
2028,
262,
3068,
1978,
273,
425,
830,
67,
9987,
18,
41,
830,
30134,
18,
2704,
12,
315,
6997,
734,
12458,
6,
269,
1059,
269,
890,
262,
3068,
1978,
63,
20,
65,
273,
404,
364,
277,
316,
261,
3676,
12,
23,
3719,
30,
3068,
1978,
63,
77,
15,
21,
65,
273,
857,
5222,
63,
77,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
timeouts = (timeout*1000, 0, timeout*1000, 0, 0) | timeouts = (0, 0, timeout*1000, 0, timeout*1000) | def __init__(self, port, #number of device, numbering starts at #zero. if everything fails, the user #can specify a device string, note #that this isn't portable anymore baudrate=9600, #baudrate bytesize=EIGHTBITS, #number of databits parity=PARITY_NONE, #enable parity checking stopbits=STOPBITS_ONE, #number of stopbits timeout=None, #set a timeout value, None for waiting forever xonxoff=0, #enable software flow control rtscts=0, #enable RTS/CTS flow control ): """initialize comm port""" | b1fc8fc41e22552a48d101be35223167ab3cb746 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/b1fc8fc41e22552a48d101be35223167ab3cb746/serialwin32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1756,
16,
5375,
468,
2696,
434,
2346,
16,
1300,
310,
2542,
622,
468,
7124,
18,
309,
7756,
6684,
16,
326,
729,
468,
4169,
4800,
279,
2346,
533,
16,
4721,
468,
19056,
333,
5177,
1404,
1756,
429,
16828,
9846,
1100,
5141,
33,
10525,
713,
16,
540,
468,
12124,
1100,
5141,
1731,
554,
33,
41,
7700,
25171,
16,
565,
468,
2696,
434,
10481,
1282,
19904,
33,
2778,
4107,
67,
9826,
16,
565,
468,
7589,
19904,
6728,
2132,
6789,
33,
17513,
25171,
67,
5998,
16,
468,
2696,
434,
2132,
6789,
2021,
33,
7036,
16,
1850,
468,
542,
279,
2021,
460,
16,
599,
364,
7336,
21238,
619,
265,
92,
3674,
33,
20,
16,
2398,
468,
7589,
17888,
4693,
3325,
436,
3428,
299,
87,
33,
20,
16,
2868,
468,
7589,
534,
8047,
19,
1268,
55,
4693,
3325,
262,
30,
3536,
11160,
1543,
1756,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1756,
16,
5375,
468,
2696,
434,
2346,
16,
1300,
310,
2542,
622,
468,
7124,
18,
309,
7756,
6684,
16,
326,
729,
468,
4169,
4800,
279,
2346,
533,
16,
4721,
468,
19056,
333,
5177,
1404,
1756,
429,
16828,
9846,
1100,
5141,
33,
10525,
713,
16,
540,
468,
12124,
1100,
5141,
1731,
554,
33,
41,
7700,
25171,
16,
565,
468,
2696,
434,
10481,
1282,
19904,
33,
2778,
4107,
67,
9826,
16,
565,
468,
7589,
19904,
6728,
2132,
6789,
33,
17513,
25171,
67,
5998,
16,
468,
2696,
434,
2132,
6789,
2021,
33,
7036,
16,
1850,
468,
542,
279,
2021,
460,
16,
599,
364,
7336,
21238,
619,
265,
92,
3674,
33,
20,
16,
2398,
468,
7589,
2
] |
curdisk.clear() | del(curdisk) curdisk = list() | def set_disk_layout(self, vm): if vm.part == '': if vm.hypervisor.preferred_storage == VMBuilder.hypervisor.STORAGE_FS_IMAGE: vm.add_filesystem(size='%dM' % vm.rootsize, type='ext3', mntpnt='/') vm.add_filesystem(size='%dM' % vm.swapsize, type='swap', mntpnt=None) if vm.optsize > 0: vm.add_filesystem(size='%dM' % optsize, type='ext3', mntpnt='/opt') else: size = vm.rootsize + vm.swapsize + vm.optsize disk = vm.add_disk(size='%dM' % size) offset = 0 disk.add_part(offset, vm.rootsize, 'ext3', '/') offset += vm.rootsize disk.add_part(offset, vm.swapsize, 'swap', 'swap') offset += vm.swapsize if vm.optsize > 0: disk.add_part(offset, vm.optsize, 'ext3', '/opt') else: # We need to parse the file specified if vm.hypervisor.preferred_storage == VMBuilder.hypervisor.STORAGE_FS_IMAGE: try: for x in file (vm.part): pair = x.strip().split(' ',1) if pair[0] == 'root': vm.add_filesystem(size='%dM' % int(pair[1]), type='ext3', mntpnt='/') elif pair[0] == 'swap': vm.add_filesystem(size='%dM' % int(pair[1]), type='swap', mntpnt=None) #elif pair[0] == '---': # not much to do in this case as I do not know how to handle # multi disk on xen type storage. Help welcome :) else: vm.add_filesystem(size='%dM' % int(pair[1]), type='ext3', mntpnt=pair[0]) except IOError: vm.optparser.error("Error %s parsing %s: %s" % (errno, vm.part, strerror)) else: try: curdisk = dict() size = 0 for x in file(vm.part): pair = x.strip().split(' ',1) if pair[0] == '---': self.do_disk(vm, curdisk, size) curdisk.clear() size = 0 elif pair[0] != '': logging.debug("part: %s, size: %d" % (pair[0], int(pair[1]))) curdisk[pair[0]] = pair[1] size += int(pair[1]) | ce089bf64685deca7fc8ba6d0a7ff0950b4bb989 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1496/ce089bf64685deca7fc8ba6d0a7ff0950b4bb989/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
10863,
67,
6741,
12,
2890,
16,
4268,
4672,
309,
4268,
18,
2680,
422,
875,
30,
309,
4268,
18,
17203,
10227,
18,
23616,
67,
5697,
422,
8251,
1263,
18,
17203,
10227,
18,
19009,
67,
4931,
67,
13603,
30,
4268,
18,
1289,
67,
17846,
12,
1467,
28713,
72,
49,
11,
738,
4268,
18,
3085,
1467,
16,
618,
2218,
408,
23,
2187,
312,
496,
84,
496,
2218,
2473,
13,
4268,
18,
1289,
67,
17846,
12,
1467,
28713,
72,
49,
11,
738,
4268,
18,
22270,
1467,
16,
618,
2218,
22270,
2187,
312,
496,
84,
496,
33,
7036,
13,
309,
4268,
18,
4952,
554,
405,
374,
30,
4268,
18,
1289,
67,
17846,
12,
1467,
28713,
72,
49,
11,
738,
1500,
554,
16,
618,
2218,
408,
23,
2187,
312,
496,
84,
496,
2218,
19,
3838,
6134,
469,
30,
963,
273,
4268,
18,
3085,
1467,
397,
4268,
18,
22270,
1467,
397,
4268,
18,
4952,
554,
4234,
273,
4268,
18,
1289,
67,
10863,
12,
1467,
28713,
72,
49,
11,
738,
963,
13,
1384,
273,
374,
4234,
18,
1289,
67,
2680,
12,
3348,
16,
4268,
18,
3085,
1467,
16,
296,
408,
23,
2187,
2023,
13,
1384,
1011,
4268,
18,
3085,
1467,
4234,
18,
1289,
67,
2680,
12,
3348,
16,
4268,
18,
22270,
1467,
16,
296,
22270,
2187,
296,
22270,
6134,
1384,
1011,
4268,
18,
22270,
1467,
309,
4268,
18,
4952,
554,
405,
374,
30,
4234,
18,
1289,
67,
2680,
12,
3348,
16,
4268,
18,
4952,
554,
16,
296,
408,
23,
2187,
1173,
3838,
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,
444,
67,
10863,
67,
6741,
12,
2890,
16,
4268,
4672,
309,
4268,
18,
2680,
422,
875,
30,
309,
4268,
18,
17203,
10227,
18,
23616,
67,
5697,
422,
8251,
1263,
18,
17203,
10227,
18,
19009,
67,
4931,
67,
13603,
30,
4268,
18,
1289,
67,
17846,
12,
1467,
28713,
72,
49,
11,
738,
4268,
18,
3085,
1467,
16,
618,
2218,
408,
23,
2187,
312,
496,
84,
496,
2218,
2473,
13,
4268,
18,
1289,
67,
17846,
12,
1467,
28713,
72,
49,
11,
738,
4268,
18,
22270,
1467,
16,
618,
2218,
22270,
2187,
312,
496,
84,
496,
33,
7036,
13,
309,
4268,
18,
4952,
554,
405,
374,
30,
4268,
18,
1289,
67,
17846,
12,
1467,
28713,
72,
49,
11,
738,
1500,
554,
2
] |
return Application.generic_run(self) | return generic_run(self) | def run(self): return Application.generic_run(self) | 3309f17a1fbf226cd9b1dfebc975a8e24f945678 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/3309f17a1fbf226cd9b1dfebc975a8e24f945678/Applications.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
327,
4257,
18,
13540,
67,
2681,
12,
2890,
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,
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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
] |
self.stress.write('%20.10e%20.10e%20.10e' % v*(10.0*GPA)/at.cell_volume()) it += 1 | self.stress.write('%20.10e%20.10e%20.10e\n' % tuple(v*(10.0*GPA)/at.cell_volume())) self.it += 1 | def write(self, at): | aa058d12f01c015ff4496d1d7d2c6865e46f4066 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/aa058d12f01c015ff4496d1d7d2c6865e46f4066/sio2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
622,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
622,
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
] |
(milestone.encode('utf-8'))) | (milestone.encode('utf-8'),)) | def setMilestoneList(self, m, key): """Remove all milestones, set them to `m`""" self.assertNoTickets() c = self.db().cursor() c.execute("DELETE FROM milestone") for ms in m: milestone = ms[key] print " inserting milestone '%s'" % (milestone) c.execute("INSERT INTO milestone (name) VALUES (%s)", (milestone.encode('utf-8'))) self.db().commit() | bd2683d7d784b9e1b9c29a288e6a9e3b50174dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/bd2683d7d784b9e1b9c29a288e6a9e3b50174dd7/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15430,
18270,
682,
12,
2890,
16,
312,
16,
498,
4672,
3536,
3288,
777,
312,
14849,
5322,
16,
444,
2182,
358,
1375,
81,
68,
8395,
365,
18,
11231,
2279,
6264,
2413,
1435,
225,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
6460,
4571,
28664,
7923,
364,
4086,
316,
312,
30,
28664,
273,
4086,
63,
856,
65,
1172,
315,
225,
21079,
28664,
1995,
87,
4970,
738,
261,
81,
18270,
13,
276,
18,
8837,
2932,
11356,
12421,
28664,
261,
529,
13,
13477,
6142,
87,
2225,
16,
261,
81,
18270,
18,
3015,
2668,
3158,
17,
28,
19899,
3719,
365,
18,
1966,
7675,
7371,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15430,
18270,
682,
12,
2890,
16,
312,
16,
498,
4672,
3536,
3288,
777,
312,
14849,
5322,
16,
444,
2182,
358,
1375,
81,
68,
8395,
365,
18,
11231,
2279,
6264,
2413,
1435,
225,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
6460,
4571,
28664,
7923,
364,
4086,
316,
312,
30,
28664,
273,
4086,
63,
856,
65,
1172,
315,
225,
21079,
28664,
1995,
87,
4970,
738,
261,
81,
18270,
13,
276,
18,
8837,
2932,
11356,
12421,
28664,
261,
529,
13,
13477,
6142,
87,
2225,
16,
261,
81,
18270,
18,
3015,
2668,
3158,
17,
28,
19899,
3719,
365,
18,
1966,
7675,
7371,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.nonce_count += 1 | if nonce == self.last_nonce: self.nonce_count += 1 else: self.nonce_count = 1 self.last_nonce = nonce | def get_authorization(self, req, chal): try: realm = chal['realm'] nonce = chal['nonce'] qop = chal.get('qop') algorithm = chal.get('algorithm', 'MD5') # mod_digest doesn't send an opaque, even though it isn't # supposed to be optional opaque = chal.get('opaque', None) except KeyError: return None | 648435c4061765059e6105e4c0b6badd9b0905b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/648435c4061765059e6105e4c0b6badd9b0905b0/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12218,
12,
2890,
16,
1111,
16,
462,
287,
4672,
775,
30,
11319,
273,
462,
287,
3292,
24056,
3546,
7448,
273,
462,
287,
3292,
12824,
3546,
1043,
556,
273,
462,
287,
18,
588,
2668,
85,
556,
6134,
4886,
273,
462,
287,
18,
588,
2668,
12743,
2187,
296,
6188,
25,
6134,
468,
681,
67,
10171,
3302,
1404,
1366,
392,
22519,
16,
5456,
11376,
518,
5177,
1404,
468,
18405,
358,
506,
3129,
22519,
273,
462,
287,
18,
588,
2668,
556,
14886,
2187,
599,
13,
1335,
4999,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12218,
12,
2890,
16,
1111,
16,
462,
287,
4672,
775,
30,
11319,
273,
462,
287,
3292,
24056,
3546,
7448,
273,
462,
287,
3292,
12824,
3546,
1043,
556,
273,
462,
287,
18,
588,
2668,
85,
556,
6134,
4886,
273,
462,
287,
18,
588,
2668,
12743,
2187,
296,
6188,
25,
6134,
468,
681,
67,
10171,
3302,
1404,
1366,
392,
22519,
16,
5456,
11376,
518,
5177,
1404,
468,
18405,
358,
506,
3129,
22519,
273,
462,
287,
18,
588,
2668,
556,
14886,
2187,
599,
13,
1335,
4999,
30,
327,
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
] |
[(u'factory 1',None), (u'factory 2',None)] | [(u'factory 1',u''), (u'factory 2',u'')] | def test_csv_upload(self): self.failUnlessEqual( [(i.name, i.category) for i in Location.objects.all()], [(u'factory 1',None), (u'factory 2',None)] ) try: data = tempfile.TemporaryFile(mode='w+b') print >>data, 'name, category' print >>data, 'Test Location 1, cat1' print >>data, 'Test Location 2,' data.seek(0) response = self.client.post('/admin/input/location/', {'csv_file': data}) self.assertRedirects(response, '/admin/input/location/') finally: data.close() self.failUnlessEqual( [(i.name, i.category) for i in Location.objects.all()], [(u'factory 1',None), (u'factory 2',None), (u'Test Location 1',u'cat1'), (u'Test Location 2',u'')] ) | ef3b3e55c3c8679797c231902beb75d716a1fc46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8604/ef3b3e55c3c8679797c231902beb75d716a1fc46/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6715,
67,
6327,
12,
2890,
4672,
365,
18,
6870,
984,
2656,
5812,
12,
306,
12,
77,
18,
529,
16,
277,
18,
4743,
13,
364,
277,
316,
7050,
18,
6911,
18,
454,
1435,
6487,
306,
12,
89,
11,
6848,
404,
2187,
89,
6309,
3631,
261,
89,
11,
6848,
576,
2187,
89,
11,
6134,
65,
262,
775,
30,
501,
273,
13275,
18,
23808,
12,
3188,
2218,
91,
15,
70,
6134,
1172,
1671,
892,
16,
296,
529,
16,
3150,
11,
1172,
1671,
892,
16,
296,
4709,
7050,
404,
16,
6573,
21,
11,
1172,
1671,
892,
16,
296,
4709,
7050,
576,
11189,
501,
18,
16508,
12,
20,
13,
766,
273,
365,
18,
2625,
18,
2767,
2668,
19,
3666,
19,
2630,
19,
3562,
19,
2187,
13666,
6715,
67,
768,
4278,
501,
6792,
365,
18,
11231,
21978,
12,
2740,
16,
1173,
3666,
19,
2630,
19,
3562,
2473,
13,
3095,
30,
501,
18,
4412,
1435,
365,
18,
6870,
984,
2656,
5812,
12,
306,
12,
77,
18,
529,
16,
277,
18,
4743,
13,
364,
277,
316,
7050,
18,
6911,
18,
454,
1435,
6487,
306,
12,
89,
11,
6848,
404,
2187,
7036,
3631,
261,
89,
11,
6848,
576,
2187,
7036,
3631,
261,
89,
11,
4709,
7050,
404,
2187,
89,
11,
2574,
21,
19899,
261,
89,
11,
4709,
7050,
576,
2187,
89,
11,
6134,
65,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6715,
67,
6327,
12,
2890,
4672,
365,
18,
6870,
984,
2656,
5812,
12,
306,
12,
77,
18,
529,
16,
277,
18,
4743,
13,
364,
277,
316,
7050,
18,
6911,
18,
454,
1435,
6487,
306,
12,
89,
11,
6848,
404,
2187,
89,
6309,
3631,
261,
89,
11,
6848,
576,
2187,
89,
11,
6134,
65,
262,
775,
30,
501,
273,
13275,
18,
23808,
12,
3188,
2218,
91,
15,
70,
6134,
1172,
1671,
892,
16,
296,
529,
16,
3150,
11,
1172,
1671,
892,
16,
296,
4709,
7050,
404,
16,
6573,
21,
11,
1172,
1671,
892,
16,
296,
4709,
7050,
576,
11189,
501,
18,
16508,
12,
20,
13,
766,
273,
365,
18,
2625,
18,
2767,
2668,
19,
3666,
19,
2630,
2
] |
if class_.encoding & AMF3ObjectTypes.VALUE: | if class_.encoding & AMF3.VALUE: | def readObject(self): type = self.readInteger() if type & 0x01 == 0: return self.obj_refs[type >> 1] class_ref = (type >> 1) & 0x01 == 0 type >>= 2 if class_ref: class_ = self.class_refs[type] else: class_ = AMF3Class(); class_.name, class_.encoding, class_.attrs = self.readString(), (type & 0x03), [] type >>= 2 obj = self._created(AMF3Object(class_) if class_.name else AMF3Object(), self.obj_refs) if class_.encoding & AMF3.EXTERNALIZABLE: if not class_ref: self.class_refs.append(class_) obj.__amf_externalized_data = self.read() # TODO: implement externalizeable interface here else: if class_.encoding & AMF3ObjectTypes.VALUE: if not class_ref: self.class_refs.append(class_) attr = self.readString() while attr != '': class_.attrs.append(attr) setattr(obj, attr, self.read()) attr = self.readString() else: if not class_ref: for i in range(type): class_.attrs.append(self.readString()) self.class_refs.append(class_) for attr in class_.attrs: setattr(obj, attr, self.read()) return obj | 9d03762f9f9b1af5f9ff43c01402b044f8e7a2b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10498/9d03762f9f9b1af5f9ff43c01402b044f8e7a2b9/amf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17362,
12,
2890,
4672,
618,
273,
365,
18,
896,
4522,
1435,
309,
618,
473,
374,
92,
1611,
422,
374,
30,
327,
365,
18,
2603,
67,
9316,
63,
723,
1671,
404,
65,
667,
67,
1734,
273,
261,
723,
1671,
404,
13,
473,
374,
92,
1611,
422,
374,
618,
23359,
576,
309,
667,
67,
1734,
30,
667,
67,
273,
365,
18,
1106,
67,
9316,
63,
723,
65,
469,
30,
667,
67,
273,
432,
13542,
23,
797,
5621,
667,
27799,
529,
16,
667,
27799,
5999,
16,
667,
27799,
7039,
273,
365,
18,
896,
780,
9334,
261,
723,
473,
374,
92,
4630,
3631,
5378,
618,
23359,
576,
1081,
273,
365,
6315,
4824,
12,
2192,
42,
23,
921,
12,
1106,
67,
13,
309,
667,
27799,
529,
469,
432,
13542,
23,
921,
9334,
365,
18,
2603,
67,
9316,
13,
309,
667,
27799,
5999,
473,
432,
13542,
23,
18,
2294,
11702,
6867,
2782,
30,
309,
486,
667,
67,
1734,
30,
365,
18,
1106,
67,
9316,
18,
6923,
12,
1106,
67,
13,
1081,
16186,
301,
74,
67,
9375,
1235,
67,
892,
273,
365,
18,
896,
1435,
468,
2660,
30,
2348,
3903,
554,
429,
1560,
2674,
469,
30,
309,
667,
27799,
5999,
473,
432,
13542,
23,
18,
4051,
30,
309,
486,
667,
67,
1734,
30,
365,
18,
1106,
67,
9316,
18,
6923,
12,
1106,
67,
13,
1604,
273,
365,
18,
896,
780,
1435,
1323,
1604,
480,
875,
30,
667,
27799,
7039,
18,
6923,
12,
1747,
13,
9241,
12,
2603,
16,
1604,
16,
365,
18,
896,
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,
17362,
12,
2890,
4672,
618,
273,
365,
18,
896,
4522,
1435,
309,
618,
473,
374,
92,
1611,
422,
374,
30,
327,
365,
18,
2603,
67,
9316,
63,
723,
1671,
404,
65,
667,
67,
1734,
273,
261,
723,
1671,
404,
13,
473,
374,
92,
1611,
422,
374,
618,
23359,
576,
309,
667,
67,
1734,
30,
667,
67,
273,
365,
18,
1106,
67,
9316,
63,
723,
65,
469,
30,
667,
67,
273,
432,
13542,
23,
797,
5621,
667,
27799,
529,
16,
667,
27799,
5999,
16,
667,
27799,
7039,
273,
365,
18,
896,
780,
9334,
261,
723,
473,
374,
92,
4630,
3631,
5378,
618,
23359,
576,
1081,
273,
365,
6315,
4824,
12,
2192,
42,
23,
921,
12,
1106,
67,
13,
309,
2
] |
echo "/usr/share/panda3d" > $RPM_BUILD_ROOT/usr/lib/$PYTHONV/site-packages/panda3d.pth | echo "/usr/share/panda3d" > $RPM_BUILD_ROOT/usr/lib/PYTHONV/site-packages/panda3d.pth | def printUsage(): sys.exit("usage: maketarball [version]") | 8bd6db44da649dd6fdbc553d5d3c634af77202f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/8bd6db44da649dd6fdbc553d5d3c634af77202f2/maketarball.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
5357,
13332,
2589,
18,
8593,
2932,
9167,
30,
29796,
278,
23846,
306,
1589,
4279,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pass | listData += '<value>' + value + '</value>' | def syncToServer(dav, item): from Dav import DAV url = unicode(dav.url) # set them here, even though we have to set them again later item.sharedVersion = item._version kind = item.itsKind # build a giant property string and then do a PROPPATCH props = makePropString('kind', '//core', kind.itsPath) + \ makePropString('uuid', '//core', item.itsUUID.str16()) for (name, value) in item.iterAttributeValues(): # don't export these local attributes if name in ['etag', 'lastModified', 'sharedURL']: continue # the attribute's namespace is its path... namespace = kind.getAttribute(name).itsPath[0:-1] atype = item.getAttributeAspect(name, 'type') acard = item.getAttributeAspect(name, 'cardinality') if acard == 'list': listData = '' for i in value: if isinstance(i, Item): defaultURL = dav.url.join(i.itsUUID.str16()) durl = i.getAttributeValue('sharedURL', default=defaultURL) # mmm, recursion DAV(durl).put(i) listData += '<itemref>' + unicode(durl) + '</itemref>' else: # XXX TODO add literal list stuff here pass props += makePropString(name, namespace, listData) elif acard == 'single': if isinstance(value, Item): defaultURL = dav.url.join(i.itsUUID.str16()) durl = i.getAttributeValue('sharedURL', default=defaultURL) DAV(durl).put(value) props += makePropString(name, namespace, '<itemref>%s</itemref>' % (unicode(durl))) else: atypepath = "%s" % (atype.itsPath) props += makePropString(name, namespace, atype.makeString(value)) elif acard == 'dict': # XXX implement me pass else: raise Exception # # XXX refactor this code with the code above # if item.isItemOf(Globals.repository.findPath('//parcels/osaf/contentmodel/ItemCollection')): listData = '' for i in item: # mmm, recursion defaultURL = dav.url.join(i.itsUUID.str16()) durl = i.getAttributeValue('sharedURL', default=defaultURL) DAV(durl).put(i) listData += '<itemref>' + unicode(durl) + '</itemref>' props += makePropString('results', '//special/case', listData) # # End refactor # r = dav.newConnection().setprops2(url, props) #print url, r.status, r.reason #print r.read() | 382c83efe50ff03d6c701005d031e962aecc3cfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/382c83efe50ff03d6c701005d031e962aecc3cfb/Sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
774,
2081,
12,
20752,
16,
761,
4672,
628,
463,
842,
1930,
463,
5856,
880,
273,
5252,
12,
20752,
18,
718,
13,
225,
468,
444,
2182,
2674,
16,
5456,
11376,
732,
1240,
358,
444,
2182,
3382,
5137,
761,
18,
11574,
1444,
273,
761,
6315,
1589,
225,
3846,
273,
761,
18,
1282,
5677,
225,
468,
1361,
279,
16221,
970,
1272,
533,
471,
1508,
741,
279,
4629,
6584,
5858,
3458,
273,
1221,
4658,
780,
2668,
9224,
2187,
12084,
3644,
2187,
3846,
18,
1282,
743,
13,
397,
521,
1221,
4658,
780,
2668,
7080,
2187,
12084,
3644,
2187,
761,
18,
1282,
5562,
18,
701,
2313,
10756,
225,
364,
261,
529,
16,
460,
13,
316,
761,
18,
2165,
31770,
13332,
468,
2727,
1404,
3359,
4259,
1191,
1677,
309,
508,
316,
10228,
20788,
2187,
296,
2722,
4575,
2187,
296,
11574,
1785,
3546,
30,
1324,
225,
468,
326,
1566,
1807,
1981,
353,
2097,
589,
2777,
1981,
273,
3846,
18,
588,
1499,
12,
529,
2934,
1282,
743,
63,
20,
30,
17,
21,
65,
225,
30965,
273,
761,
18,
588,
1499,
17468,
12,
529,
16,
296,
723,
6134,
1721,
1060,
273,
761,
18,
588,
1499,
17468,
12,
529,
16,
296,
3327,
9232,
6134,
225,
309,
1721,
1060,
422,
296,
1098,
4278,
666,
751,
273,
875,
364,
277,
316,
460,
30,
309,
1549,
12,
77,
16,
4342,
4672,
805,
1785,
273,
302,
842,
18,
718,
18,
5701,
12,
77,
18,
1282,
5562,
18,
701,
2313,
10756,
302,
718,
273,
277,
18,
588,
14942,
2668,
11574,
1785,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
774,
2081,
12,
20752,
16,
761,
4672,
628,
463,
842,
1930,
463,
5856,
880,
273,
5252,
12,
20752,
18,
718,
13,
225,
468,
444,
2182,
2674,
16,
5456,
11376,
732,
1240,
358,
444,
2182,
3382,
5137,
761,
18,
11574,
1444,
273,
761,
6315,
1589,
225,
3846,
273,
761,
18,
1282,
5677,
225,
468,
1361,
279,
16221,
970,
1272,
533,
471,
1508,
741,
279,
4629,
6584,
5858,
3458,
273,
1221,
4658,
780,
2668,
9224,
2187,
12084,
3644,
2187,
3846,
18,
1282,
743,
13,
397,
521,
1221,
4658,
780,
2668,
7080,
2187,
12084,
3644,
2187,
761,
18,
1282,
5562,
18,
701,
2313,
10756,
225,
364,
261,
529,
16,
460,
13,
316,
761,
18,
2165,
31770,
13332,
468,
2727,
1404,
2
] |
queryparser = 'release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/QueryParser.py' | def generateDocs(options, outputDir): if options.verbose: verbosity = 4 else: verbosity = 1 if sys.platform == 'cygwin' or os.name == 'nt': chandlerdb = 'release/bin/Lib/site-packages/chandlerdb' queryparser = 'release/bin/Lib/site-packages/QueryParser.py' pyicu = 'release/bin/Lib/site-packages/PyICU.py' pylucene = 'release/bin/Lib/site-packages/PyLucene.py' elif sys.platform == 'darwin': chandlerdb = 'release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/chandlerdb' queryparser = 'release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/QueryParser.py' pyicu = 'release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyICU.py' pylucene = 'release/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyLucene.py' else: chandlerdb = 'release/lib/python2.4/site-packages/chandlerdb' queryparser = 'release/lib/python2.4/site-packages/QueryParser.py' pyicu = 'release/lib/python2.4/site-packages/PyICU.py' pylucene = 'release/lib/python2.4/site-packages/PyLucene.py' chandlerBin = os.getenv('CHANDLERBIN') chandlerdb = os.path.join(chandlerBin, chandlerdb) queryparser = os.path.join(chandlerBin, queryparser) pyicu = os.path.join(chandlerBin, pyicu) pylucene = os.path.join(chandlerBin, pylucene) targetDir = os.path.join(outputDir, 'api') if not os.path.isdir(targetDir): _mkdirs(targetDir) # This is the options dictionary # It is used by most of the epydoc routines and # the contents were determined by examining epydoc/gui.py # and epydoc/cli.py e_options = { 'target': targetDir, 'verbosity': verbosity, 'prj_name': 'Chandler', 'action': 'html', 'tests': { 'basic': 1 }, 'show_imports': 0, 'frames': 1, 'private': 0, 'debug': 0, 'docformat': None, 'top': None, 'inheritance': "listed", 'alphabetical': 1, 'ignore_param_mismatch': 1, 'list_classes_separately': 0, 'modules': ['application', 'i18n', 'parcels/feeds', 'parcels/osaf', 'parcels/osaf/app', 'parcels/osaf/examples', 'parcels/osaf/framework', 'parcels/osaf/mail', 'parcels/osaf/pim', 'parcels/osaf/servlets', 'parcels/osaf/sharing', 'parcels/osaf/tests', 'parcels/osaf/views', 'parcels/photos', 'repository', 'samples/skeleton', 'tools', 'util', 'Chandler.py', 'version.py', chandlerdb, # This comes from internal queryparser, # This comes from external pyicu, # This comes from external pylucene, # This comes from external ], } # based on the code in epydoc's gui.py # with subtle changes made to make it work :) from epydoc.html import HTMLFormatter from epydoc.objdoc import DocMap, report_param_mismatches from epydoc.imports import import_module, find_modules from epydoc.objdoc import set_default_docformat set_default_docformat('epytext') try: modules = [] module_names = e_options['modules'] # walk thru list of modules and expand # any packages found for name in module_names[:]: if os.path.isdir(name): index = module_names.index(name) new_modules = find_modules(name) if new_modules: module_names[index:index+1] = new_modules elif options.verbose: print 'Error: %s is not a package' % name # basic regex to exclude directories from consideration exc = re.compile(".*tests.*|.*scripts.*") for name in module_names: if exc.match(name): continue if options.verbose: print 'IMPORT: %s' % name # try importing the module and # add it to the list if successful try: module = import_module(name) if module not in modules: modules.append(module) elif options.verbose: print ' (duplicate)' except ImportError, e: if options.verbose: print e if len(modules) == 0: print 'Error: no modules successfully loaded!' sys.exit(1) document_bases = 1 document_autogen_vars = 1 inheritance_groups = (e_options['inheritance'] == 'grouped') inherit_groups = (e_options['inheritance'] != 'grouped') # let epydoc create an empty document map d = DocMap(verbosity, document_bases, document_autogen_vars, inheritance_groups, inherit_groups) # walk the module list and let epydoc build the documentation for (module, num) in zip(modules, range(len(modules))): if options.verbose: print '\n***Building docs for %s***' % module.__name__ try: d.add(module) except Exception, e: print "Internal Error: %s" % e except: print "Internal Error" if not e_options['ignore_param_mismatch']: if not report_param_mismatches(d): print ' (To supress these warnings, use --ignore-param-mismatch)' htmldoc = HTMLFormatter(d, **e_options) numfiles = htmldoc.num_files() def progress_callback(path): (dir, file) = os.path.split(path) (root, d) = os.path.split(dir) if d in ('public', 'private'): fname = os.path.join(d, file) else: fname = file if options.verbose: print '\n***Writing %s***' % fname # Write the documentation. print "\n***Saving to %s" % targetDir htmldoc.write(targetDir, progress_callback) except Exception, e: print 'Internal error: ', e raise except: raise | fb002db03d47b9ce762eb7c6c81d990b789b7a03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/fb002db03d47b9ce762eb7c6c81d990b789b7a03/gen_docs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12656,
12,
2116,
16,
21412,
4672,
309,
702,
18,
11369,
30,
11561,
273,
1059,
469,
30,
11561,
273,
404,
225,
309,
2589,
18,
9898,
422,
296,
2431,
75,
8082,
11,
578,
1140,
18,
529,
422,
296,
496,
4278,
462,
464,
749,
1966,
225,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
343,
464,
749,
1966,
11,
843,
4288,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
1138,
2678,
18,
2074,
11,
2395,
335,
89,
4202,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
9413,
2871,
57,
18,
2074,
11,
2395,
80,
14152,
565,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
9413,
19763,
18,
2074,
11,
1327,
2589,
18,
9898,
422,
296,
28076,
4278,
462,
464,
749,
1966,
225,
273,
296,
9340,
19,
9313,
19,
13701,
87,
19,
15774,
18,
12303,
19,
5940,
19,
22,
18,
24,
19,
2941,
19,
8103,
22,
18,
24,
19,
4256,
17,
10308,
19,
343,
464,
749,
1966,
11,
2395,
335,
89,
4202,
273,
296,
9340,
19,
9313,
19,
13701,
87,
19,
15774,
18,
12303,
19,
5940,
19,
22,
18,
24,
19,
2941,
19,
8103,
22,
18,
24,
19,
4256,
17,
10308,
19,
9413,
2871,
57,
18,
2074,
11,
2395,
80,
14152,
565,
273,
296,
9340,
19,
9313,
19,
13701,
87,
19,
15774,
18,
12303,
19,
5940,
19,
22,
18,
24,
19,
2941,
19,
8103,
22,
18,
24,
19,
4256,
17,
10308,
19,
9413,
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,
2103,
12656,
12,
2116,
16,
21412,
4672,
309,
702,
18,
11369,
30,
11561,
273,
1059,
469,
30,
11561,
273,
404,
225,
309,
2589,
18,
9898,
422,
296,
2431,
75,
8082,
11,
578,
1140,
18,
529,
422,
296,
496,
4278,
462,
464,
749,
1966,
225,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
343,
464,
749,
1966,
11,
843,
4288,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
1138,
2678,
18,
2074,
11,
2395,
335,
89,
4202,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
9413,
2871,
57,
18,
2074,
11,
2395,
80,
14152,
565,
273,
296,
9340,
19,
4757,
19,
5664,
19,
4256,
17,
10308,
19,
2
] | |
xsize = int((lrx - ulx) / geotransform[1]) ysize = int((lry - uly) / geotransform[5]) | xsize = int((lrx - ulx) / geotransform[1] + 0.5) ysize = int((lry - uly) / geotransform[5] + 0.5) | def Usage(): print 'Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]*' print ' [-ps pixelsize_x pixelsize_y] [-separate] [-v] [-pct]' print ' [-ul_lr ulx uly lrx lry] [-n nodata_value] [-init value]' print ' [-ot datatype] [-createonly] input_files' print | b00dee5d2f1e88163e2359e795d6a610a6429260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/b00dee5d2f1e88163e2359e795d6a610a6429260/gdal_merge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
67,
2702,
18,
2074,
23059,
83,
596,
67,
3459,
65,
23059,
792,
596,
67,
2139,
65,
23059,
2894,
6048,
33,
4051,
65,
4035,
1172,
296,
5397,
23059,
1121,
4957,
1467,
67,
92,
4957,
1467,
67,
93,
65,
23059,
16627,
340,
65,
23059,
90,
65,
23059,
23989,
3864,
1172,
296,
5397,
23059,
332,
67,
10826,
7493,
92,
7493,
93,
12226,
92,
328,
1176,
65,
23059,
82,
14003,
396,
67,
1132,
65,
23059,
2738,
460,
3864,
1172,
296,
5397,
23059,
352,
11172,
65,
23059,
2640,
3700,
65,
810,
67,
2354,
11,
1172,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
67,
2702,
18,
2074,
23059,
83,
596,
67,
3459,
65,
23059,
792,
596,
67,
2139,
65,
23059,
2894,
6048,
33,
4051,
65,
4035,
1172,
296,
5397,
23059,
1121,
4957,
1467,
67,
92,
4957,
1467,
67,
93,
65,
23059,
16627,
340,
65,
23059,
90,
65,
23059,
23989,
3864,
1172,
296,
5397,
23059,
332,
67,
10826,
7493,
92,
7493,
93,
12226,
92,
328,
1176,
65,
23059,
82,
14003,
396,
67,
1132,
65,
23059,
2738,
460,
3864,
1172,
296,
5397,
23059,
352,
11172,
65,
23059,
2640,
3700,
65,
810,
67,
2354,
11,
1172,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print db.rjust(25),': Not installed' | print db.rjust( 25 ), ': Not installed' | def do_show(self,args): """ Add a record to the File Catalog usage: show software - show components for which software is available show installed - show components installed in the host show status - show status of the installed components show database - show the status of the databases show mysql - show the status of the MySQL server show log <system> <service|agent> show info - show version of software and setup """ argss = args.split() option = argss[0] del argss[0] if option == 'software': client = SystemAdministratorClient(self.host) result = client.getSoftwareComponents() if not result['OK']: print "ERROR:",result['Message'] else: serviceCount = 0 agentCount = 0 for compType in result['Value']: for system in result['Value'][compType]: for component in result['Value'][compType][system]: print compType.ljust(8),system.ljust(28),component.ljust(28) if compType == 'Services': serviceCount += 1 if compType == 'Agents': agentCount += 1 print "Total: %d services, %d agents" % (serviceCount,agentCount) elif option == 'installed': client = SystemAdministratorClient(self.host) result = client.getSetupComponents() if not result['OK']: print "ERROR:",result['Message'] else: serviceCount = 0 agentCount = 0 for compType in result['Value']: for system in result['Value'][compType]: for component in result['Value'][compType][system]: print compType.ljust(8),system.ljust(28),component.ljust(28) if compType == 'Services': serviceCount += 1 if compType == 'Agents': agentCount += 1 print "Total: %d services, %d agents" % (serviceCount,agentCount) elif option == 'status': client = SystemAdministratorClient(self.host) result = client.getOverallStatus() if not result['OK']: print "ERROR:",result['Message'] else: rDict = result['Value'] print " System",' '*20,'Name',' '*5,'Type',' '*23,'Setup Installed Runit Uptime PID' print '-'*116 for compType in rDict: for system in rDict[compType]: for component in rDict[compType][system]: if rDict[compType][system][component]['Installed']: print system.ljust(28),component.ljust(28),compType.lower()[:-1].ljust(7), if rDict[compType][system][component]['Setup']: print 'SetUp'.rjust(12), else: print 'NotSetup'.rjust(12), if rDict[compType][system][component]['Installed']: print 'Installed'.rjust(12), else: print 'NotInstalled'.rjust(12), print str(rDict[compType][system][component]['RunitStatus']).ljust(7), print str(rDict[compType][system][component]['Timeup']).rjust(7), print str(rDict[compType][system][component]['PID']).rjust(8), print elif option == 'database' or option == 'databases': client = SystemAdministratorClient(self.host) result = client.getDatabases(self.rootPwd) if not result['OK']: print "ERROR:",result['Message'] return if result.has_key('MySQLPassword'): self.rootPwd = result['MySQLPassword'] resultSW = client.getSoftwareDatabases() if not resultSW['OK']: print "ERROR:",resultSW['Message'] return sw = resultSW['Value'] installed = result['Value'] print for db in sw: if db in installed: print db.rjust(25),': Installed' else: print db.rjust(25),': Not installed' if not sw: print "No database found" elif option == 'mysql': client = SystemAdministratorClient(self.host) result = client.getMySQLStatus() if not result['OK']: print "ERROR:",result['Message'] elif result['Value']: for par,value in result['Value'].items(): print par.rjust(28),':',value else: print "No MySQL database found" elif option == "log": self.getLog(argss) elif option == "info": client = SystemAdministratorClient(self.host) result = client.getInfo() if not result['OK']: print "ERROR:",result['Message'] print "Setup:", result['Value']['Setup'] print "DIRAC version:",result['Value']['DIRAC'] if result['Value']['Extensions']: for e,v in result['Value']['Extensions'].items(): print "%s version" % e,v else: print "Unknown option:",option | b68208f4ea74e3c61aead9e641ff73054212c46c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b68208f4ea74e3c61aead9e641ff73054212c46c/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4500,
12,
2890,
16,
1968,
4672,
3536,
1436,
279,
1409,
358,
326,
1387,
14953,
225,
4084,
30,
225,
2405,
17888,
1377,
300,
2405,
4085,
364,
1492,
17888,
353,
2319,
2405,
5876,
377,
300,
2405,
4085,
5876,
316,
326,
1479,
2405,
1267,
3639,
300,
2405,
1267,
434,
326,
5876,
4085,
2405,
2063,
1377,
300,
2405,
326,
1267,
434,
326,
16358,
2405,
7219,
540,
300,
2405,
326,
1267,
434,
326,
13485,
1438,
2405,
613,
411,
4299,
34,
411,
3278,
96,
5629,
34,
2405,
1123,
565,
300,
2405,
1177,
434,
17888,
471,
3875,
3536,
225,
833,
87,
273,
833,
18,
4939,
1435,
1456,
273,
833,
87,
63,
20,
65,
1464,
833,
87,
63,
20,
65,
309,
1456,
422,
296,
9269,
2726,
4278,
1004,
273,
2332,
4446,
14207,
1227,
12,
2890,
18,
2564,
13,
563,
273,
1004,
18,
588,
21742,
7171,
1435,
309,
486,
563,
3292,
3141,
3546,
30,
1172,
315,
3589,
2773,
16,
2088,
3292,
1079,
3546,
469,
30,
1156,
1380,
273,
374,
4040,
1380,
273,
374,
364,
1161,
559,
316,
563,
3292,
620,
3546,
30,
364,
2619,
316,
563,
3292,
620,
3546,
63,
2919,
559,
14542,
364,
1794,
316,
563,
3292,
620,
3546,
63,
2919,
559,
6362,
4299,
14542,
1172,
1161,
559,
18,
80,
3732,
12,
28,
3631,
4299,
18,
80,
3732,
12,
6030,
3631,
4652,
18,
80,
3732,
12,
6030,
13,
309,
1161,
559,
422,
296,
5676,
4278,
1156,
1380,
1011,
404,
309,
1161,
559,
422,
296,
23400,
4278,
4040,
1380,
1011,
404,
1172,
315,
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,
741,
67,
4500,
12,
2890,
16,
1968,
4672,
3536,
1436,
279,
1409,
358,
326,
1387,
14953,
225,
4084,
30,
225,
2405,
17888,
1377,
300,
2405,
4085,
364,
1492,
17888,
353,
2319,
2405,
5876,
377,
300,
2405,
4085,
5876,
316,
326,
1479,
2405,
1267,
3639,
300,
2405,
1267,
434,
326,
5876,
4085,
2405,
2063,
1377,
300,
2405,
326,
1267,
434,
326,
16358,
2405,
7219,
540,
300,
2405,
326,
1267,
434,
326,
13485,
1438,
2405,
613,
411,
4299,
34,
411,
3278,
96,
5629,
34,
2405,
1123,
565,
300,
2405,
1177,
434,
17888,
471,
3875,
3536,
225,
833,
87,
273,
833,
18,
4939,
1435,
1456,
273,
833,
87,
63,
20,
65,
1464,
833,
87,
63,
20,
65,
309,
1456,
422,
296,
2
] |
from trac.Browser import BrowserModule | from trac.versioncontrol.web_ui import BrowserModule | def render_macro(self, req, name, content): # args will be null if the macro is called without parenthesis. if not content: return '' # parse arguments # we expect the 1st argument to be a filename (filespec) args = content.split(',') if len(args) == 0: raise Exception("No argument.") filespec = args[0] size_re = re.compile('^[0-9]+%?$') align_re = re.compile('^(?:left|right|top|bottom)$') keyval_re = re.compile('^([-a-z0-9]+)([=:])(.*)') quoted_re = re.compile("^(?:"|')(.*)(?:"|')$") attr = {} style = {} for arg in args[1:]: arg = arg.strip() if size_re.search(arg): # 'width' keyword attr['width'] = arg continue if align_re.search(arg): # 'align' keyword attr['align'] = arg continue match = keyval_re.search(arg) if match: key = match.group(1) sep = match.group(2) val = match.group(3) m = quoted_re.search(val) # unquote " character " if m: val = m.group(1) if sep == '=': attr[key] = val; elif sep == ':': style[key] = val | 036f8356557b45a69ceb2ac5d9bf8910b5b561ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/036f8356557b45a69ceb2ac5d9bf8910b5b561ab/macros.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
26448,
12,
2890,
16,
1111,
16,
508,
16,
913,
4672,
468,
833,
903,
506,
446,
309,
326,
11522,
353,
2566,
2887,
22311,
18,
309,
486,
913,
30,
327,
875,
468,
1109,
1775,
468,
732,
4489,
326,
404,
334,
1237,
358,
506,
279,
1544,
261,
2354,
705,
13,
833,
273,
913,
18,
4939,
12,
2187,
6134,
309,
562,
12,
1968,
13,
422,
374,
30,
1002,
1185,
2932,
2279,
1237,
1199,
13,
1390,
705,
273,
833,
63,
20,
65,
963,
67,
266,
273,
283,
18,
11100,
2668,
66,
63,
20,
17,
29,
3737,
9,
35,
8,
6134,
5689,
67,
266,
273,
283,
18,
11100,
2668,
66,
6503,
4482,
96,
4083,
96,
3669,
96,
9176,
21877,
6134,
498,
1125,
67,
266,
273,
283,
18,
11100,
2668,
66,
3816,
17,
69,
17,
94,
20,
17,
29,
7941,
3816,
23507,
5717,
7444,
2506,
13,
9298,
67,
266,
273,
283,
18,
11100,
2932,
66,
6503,
18642,
5026,
31,
96,
6134,
14361,
6503,
18642,
5026,
31,
96,
6134,
8,
7923,
1604,
273,
2618,
2154,
273,
2618,
364,
1501,
316,
833,
63,
21,
30,
14542,
1501,
273,
1501,
18,
6406,
1435,
309,
963,
67,
266,
18,
3072,
12,
3175,
4672,
468,
296,
2819,
11,
4932,
1604,
3292,
2819,
3546,
273,
1501,
1324,
309,
5689,
67,
266,
18,
3072,
12,
3175,
4672,
468,
296,
7989,
11,
4932,
1604,
3292,
7989,
3546,
273,
1501,
1324,
845,
273,
498,
1125,
67,
266,
18,
3072,
12,
3175,
13,
309,
845,
30,
498,
273,
845,
18,
1655,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
26448,
12,
2890,
16,
1111,
16,
508,
16,
913,
4672,
468,
833,
903,
506,
446,
309,
326,
11522,
353,
2566,
2887,
22311,
18,
309,
486,
913,
30,
327,
875,
468,
1109,
1775,
468,
732,
4489,
326,
404,
334,
1237,
358,
506,
279,
1544,
261,
2354,
705,
13,
833,
273,
913,
18,
4939,
12,
2187,
6134,
309,
562,
12,
1968,
13,
422,
374,
30,
1002,
1185,
2932,
2279,
1237,
1199,
13,
1390,
705,
273,
833,
63,
20,
65,
963,
67,
266,
273,
283,
18,
11100,
2668,
66,
63,
20,
17,
29,
3737,
9,
35,
8,
6134,
5689,
67,
266,
273,
283,
18,
11100,
2668,
66,
6503,
4482,
96,
4083,
96,
3669,
96,
9176,
21877,
6134,
498,
1125,
2
] |
assert not namespace_module.namespaceGroupModule(), 'Error referencing %s from %s' % (namespace, self) | def referenceNamespace (self, namespace, module_type=None): assert module_type is None if pyxb.namespace.XMLSchema == namespace: return 'pyxb.namespace.XMLSchema' if isinstance(self, NamespaceModule) and (self.namespace() == namespace): return 'Namespace' namespace_module = self.ForNamespace(namespace) if namespace_module is None: return 'pyxb.namespace.NamespaceForURI(%s)' % (repr(namespace.uri()),) self._importModule(namespace_module) assert not namespace_module.namespaceGroupModule(), 'Error referencing %s from %s' % (namespace, self) return '%s.Namespace' % (namespace_module.modulePath(),) | afd1ba8b0b1795162d7736006ab1c8b1cac44ba9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/afd1ba8b0b1795162d7736006ab1c8b1cac44ba9/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2114,
3402,
261,
2890,
16,
1981,
16,
1605,
67,
723,
33,
7036,
4672,
1815,
1605,
67,
723,
353,
599,
309,
2395,
6114,
18,
4937,
18,
4201,
3078,
422,
1981,
30,
327,
296,
2074,
6114,
18,
4937,
18,
4201,
3078,
11,
309,
1549,
12,
2890,
16,
6005,
3120,
13,
471,
261,
2890,
18,
4937,
1435,
422,
1981,
4672,
327,
296,
3402,
11,
1981,
67,
2978,
273,
365,
18,
1290,
3402,
12,
4937,
13,
309,
1981,
67,
2978,
353,
599,
30,
327,
296,
2074,
6114,
18,
4937,
18,
3402,
1290,
3098,
9275,
87,
2506,
738,
261,
12715,
12,
4937,
18,
1650,
1435,
3631,
13,
365,
6315,
5666,
3120,
12,
4937,
67,
2978,
13,
225,
327,
1995,
87,
18,
3402,
11,
738,
261,
4937,
67,
2978,
18,
2978,
743,
9334,
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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
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2114,
3402,
261,
2890,
16,
1981,
16,
1605,
67,
723,
33,
7036,
4672,
1815,
1605,
67,
723,
353,
599,
309,
2395,
6114,
18,
4937,
18,
4201,
3078,
422,
1981,
30,
327,
296,
2074,
6114,
18,
4937,
18,
4201,
3078,
11,
309,
1549,
12,
2890,
16,
6005,
3120,
13,
471,
261,
2890,
18,
4937,
1435,
422,
1981,
4672,
327,
296,
3402,
11,
1981,
67,
2978,
273,
365,
18,
1290,
3402,
12,
4937,
13,
309,
1981,
67,
2978,
353,
599,
30,
327,
296,
2074,
6114,
18,
4937,
18,
3402,
1290,
3098,
9275,
87,
2506,
738,
261,
12715,
12,
4937,
18,
1650,
1435,
3631,
13,
365,
6315,
5666,
3120,
12,
4937,
67,
2978,
13,
225,
327,
1995,
87,
18,
3402,
11,
2
] | |
gLogger.error(errStr,file) return S_ERROR(errStr) | gLogger.error( errStr, file ) return S_ERROR( errStr ) | def putAndRegister(self,lfn,file,diracSE,guid=None,path=None,checksum=None,catalog=None): """ Put a local file to a Storage Element and register in the File Catalogues | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
585,
358,
279,
5235,
3010,
471,
1744,
316,
326,
1387,
14953,
3610,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
585,
358,
279,
5235,
3010,
471,
1744,
316,
326,
1387,
14953,
3610,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
para_start = _BULLET_RE.match(lines[start], bullet_indent).end() bcontents = lines[start][bullet_indent:para_start].strip() | def _tokenize_listart(lines, start, bullet_indent, tokens, warnings): """ Construct L{Token}s for the bullet and the first paragraph of the list item (or field) starting at C{lines[start]}, and append them to C{tokens}. C{bullet_indent} should be the indentation of the list item. Any warnings generated while tokenizing will be appended to C{warnings}. @param lines: The list of lines to be tokenized @param start: The index into C{lines} of the first line of the list item to be tokenized. @param bullet_indent: The indentation of C{lines[start]}. This is the indentation of the list item. @param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragraph will be appended to this list. @return: The line number of the first line following the list item's first paragraph. @type lines: C{list} of C{string} @type start: C{int} @type bullet_indent: C{int} @type tokens: C{list} of L{Token} @type warnings: C{list} of L{ParseError} @rtype: C{int} """ linenum = start + 1 para_indent = None brace_level = lines[start].count('{') - lines[start].count('}') if brace_level < 0: brace_level = 0 while linenum < len(lines): # Find the indentation of this line. line = lines[linenum] indent = len(line) - len(line.lstrip()) # A blank line ends the token if indent == len(line): break # Dedenting past bullet_indent ends the list item. if indent < bullet_indent: break # A line beginning with a bullet ends the token. if brace_level == 0 and _LIST_BULLET_RE.match(line, indent): if para_indent and indent == para_indent: estr = ("Sublists should be indented or separated "+ "by blank lines.") warnings.append(TokenizationError(estr, linenum, line)) break brace_level += line.count('{') brace_level -= line.count('}') if brace_level < 0: brace_level = 0 if indent == bullet_indent: if brace_level == 0 and _BULLET_RE.match(line, indent): # Don't complain if it's a field.?? break else: estr = ("List item contents should be indented; "+ "Paragraphs should be separated from "+ "lists by blank lines.") warnings.append(TokenizationError(estr, linenum, line)) break # If this is the second line, set the paragraph indentation, or # end the token, as appropriate. if para_indent == None: para_indent = indent # A change in indentation ends the token if indent != para_indent: break # Go on to the next line. linenum += 1 # Add the bullet token. para_start = _BULLET_RE.match(lines[start], bullet_indent).end() bcontents = lines[start][bullet_indent:para_start].strip() tokens.append(Token(Token.BULLET, start, bcontents, bullet_indent)) # Add the paragraph token. pcontents = ([lines[start][para_start:].strip()] + [line.strip() for line in lines[start+1:linenum]]) pcontents = ' '.join(pcontents).strip() if pcontents: tokens.append(Token(Token.PARA, start, pcontents, para_indent)) # Return the linenum after the paragraph token ends. return linenum | 151adf65fde535b5a72c9d869ebf835ce8123891 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/151adf65fde535b5a72c9d869ebf835ce8123891/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
67,
1098,
485,
12,
3548,
16,
787,
16,
31650,
67,
9355,
16,
2430,
16,
5599,
4672,
3536,
14291,
511,
95,
1345,
97,
87,
364,
326,
31650,
471,
326,
1122,
10190,
434,
326,
666,
761,
261,
280,
652,
13,
5023,
622,
385,
95,
3548,
63,
1937,
65,
5779,
471,
714,
2182,
358,
385,
95,
7860,
5496,
225,
385,
95,
70,
19994,
67,
9355,
97,
1410,
506,
326,
12018,
434,
326,
666,
761,
18,
225,
5502,
5599,
4374,
1323,
1147,
6894,
903,
506,
12317,
358,
385,
95,
12103,
5496,
225,
632,
891,
2362,
30,
1021,
666,
434,
2362,
358,
506,
26073,
632,
891,
787,
30,
1021,
770,
1368,
385,
95,
3548,
97,
434,
326,
1122,
980,
434,
326,
666,
761,
358,
506,
26073,
18,
632,
891,
31650,
67,
9355,
30,
1021,
12018,
434,
385,
95,
3548,
63,
1937,
65,
5496,
225,
1220,
353,
326,
12018,
434,
326,
666,
761,
18,
632,
891,
5599,
30,
432,
666,
434,
326,
5599,
4374,
635,
5811,
18,
225,
5502,
394,
5599,
4374,
1323,
903,
1147,
6894,
333,
10190,
903,
506,
12317,
358,
333,
666,
18,
632,
2463,
30,
1021,
980,
1300,
434,
326,
1122,
980,
3751,
326,
666,
761,
1807,
1122,
10190,
18,
225,
632,
723,
2362,
30,
385,
95,
1098,
97,
434,
385,
95,
1080,
97,
632,
723,
787,
30,
385,
95,
474,
97,
632,
723,
31650,
67,
9355,
30,
385,
95,
474,
97,
632,
723,
2430,
30,
385,
95,
1098,
97,
434,
511,
95,
1345,
97,
632,
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,
2316,
554,
67,
1098,
485,
12,
3548,
16,
787,
16,
31650,
67,
9355,
16,
2430,
16,
5599,
4672,
3536,
14291,
511,
95,
1345,
97,
87,
364,
326,
31650,
471,
326,
1122,
10190,
434,
326,
666,
761,
261,
280,
652,
13,
5023,
622,
385,
95,
3548,
63,
1937,
65,
5779,
471,
714,
2182,
358,
385,
95,
7860,
5496,
225,
385,
95,
70,
19994,
67,
9355,
97,
1410,
506,
326,
12018,
434,
326,
666,
761,
18,
225,
5502,
5599,
4374,
1323,
1147,
6894,
903,
506,
12317,
358,
385,
95,
12103,
5496,
225,
632,
891,
2362,
30,
1021,
666,
434,
2362,
358,
506,
26073,
632,
891,
787,
30,
1021,
770,
1368,
385,
95,
3548,
97,
434,
326,
1122,
980,
434,
2
] | |
if self.frame is None or filename != filenames[self.frame]: | if self.frame is None or filename != filenames[self.frame] or filename is None: | def set_frame(self, frame=None, focus=False, init=False): if frame is None: frame = self.frame | 1439ca317d3802bb6cf2a1035810de8de5833b0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/1439ca317d3802bb6cf2a1035810de8de5833b0c/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3789,
12,
2890,
16,
2623,
33,
7036,
16,
7155,
33,
8381,
16,
1208,
33,
8381,
4672,
309,
2623,
353,
599,
30,
2623,
273,
365,
18,
3789,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3789,
12,
2890,
16,
2623,
33,
7036,
16,
7155,
33,
8381,
16,
1208,
33,
8381,
4672,
309,
2623,
353,
599,
30,
2623,
273,
365,
18,
3789,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 vh | def previousRevision(self): """Return the revision id for the previous revision of this Page.""" vh = self.getVersionHistory(revCount=2) print vh return vh[1][0] | 27c99c4a91bdb2dd91926c9b8bebd1fbb75a275a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/27c99c4a91bdb2dd91926c9b8bebd1fbb75a275a/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2416,
7939,
12,
2890,
4672,
3536,
990,
326,
6350,
612,
364,
326,
2416,
6350,
434,
333,
3460,
12123,
331,
76,
273,
365,
18,
588,
1444,
5623,
12,
9083,
1380,
33,
22,
13,
327,
331,
76,
63,
21,
6362,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2416,
7939,
12,
2890,
4672,
3536,
990,
326,
6350,
612,
364,
326,
2416,
6350,
434,
333,
3460,
12123,
331,
76,
273,
365,
18,
588,
1444,
5623,
12,
9083,
1380,
33,
22,
13,
327,
331,
76,
63,
21,
6362,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 'HTTPS server started on port %d...' % server.server_port | print 'HTTPS server started on port %d...' % port | def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): print 'specified server cert file not found: ' + options.cert + \ ' exiting...' return for ca_cert in options.ssl_client_ca: if not os.path.isfile(ca_cert): print 'specified trusted client CA file not found: ' + ca_cert + \ ' exiting...' return server = HTTPSServer(('127.0.0.1', port), TestPageHandler, options.cert, options.ssl_client_auth, options.ssl_client_ca, options.ssl_bulk_cipher) print 'HTTPS server started on port %d...' % server.server_port else: server = StoppableHTTPServer(('127.0.0.1', port), TestPageHandler) print 'HTTP server started on port %d...' % server.server_port server.data_dir = MakeDataDir() server.file_root_url = options.file_root_url server._sync_handler = None listen_port = server.server_port # means FTP Server else: my_data_dir = MakeDataDir() # Instantiate a dummy authorizer for managing 'virtual' users authorizer = pyftpdlib.ftpserver.DummyAuthorizer() # Define a new user having full r/w permissions and a read-only # anonymous user authorizer.add_user('chrome', 'chrome', my_data_dir, perm='elradfmw') authorizer.add_anonymous(my_data_dir) # Instantiate FTP handler class ftp_handler = pyftpdlib.ftpserver.FTPHandler ftp_handler.authorizer = authorizer # Define a customized banner (string returned when client connects) ftp_handler.banner = ("pyftpdlib %s based ftpd ready." % pyftpdlib.ftpserver.__ver__) # Instantiate FTP server class and listen to 127.0.0.1:port address = ('127.0.0.1', port) server = pyftpdlib.ftpserver.FTPServer(address, ftp_handler) listen_port = server.socket.getsockname()[1] print 'FTP server started on port %d...' % listen_port # Notify the parent that we've started. (BaseServer subclasses # bind their sockets on construction.) if options.startup_pipe is not None: if sys.platform == 'win32': fd = msvcrt.open_osfhandle(options.startup_pipe, 0) else: fd = options.startup_pipe startup_pipe = os.fdopen(fd, "w") # Write the listening port as a 2 byte value. This is _not_ using # network byte ordering since the other end of the pipe is on the same # machine. startup_pipe.write(struct.pack('@H', listen_port)) startup_pipe.close() try: server.serve_forever() except KeyboardInterrupt: print 'shutting down server' server.stop = True | ea993c2cb08e5e8915b369fb17087d29776cad1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/ea993c2cb08e5e8915b369fb17087d29776cad1f/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
18,
11241,
273,
1387,
8438,
92,
264,
12,
9499,
18,
11241,
16,
15204,
13,
225,
1756,
273,
702,
18,
655,
225,
309,
702,
18,
3567,
67,
723,
422,
15061,
67,
3693,
30,
309,
702,
18,
7593,
30,
468,
2231,
1807,
1221,
3071,
326,
3320,
585,
1704,
18,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
2116,
18,
7593,
4672,
1172,
296,
13827,
1438,
3320,
585,
486,
1392,
30,
296,
397,
702,
18,
7593,
397,
521,
296,
15702,
7821,
327,
364,
3474,
67,
7593,
316,
702,
18,
8157,
67,
2625,
67,
5353,
30,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
5353,
67,
7593,
4672,
1172,
296,
13827,
13179,
1004,
6425,
585,
486,
1392,
30,
296,
397,
3474,
67,
7593,
397,
521,
296,
15702,
7821,
327,
1438,
273,
18904,
2081,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
3631,
7766,
1964,
1503,
16,
702,
18,
7593,
16,
702,
18,
8157,
67,
2625,
67,
1944,
16,
702,
18,
8157,
67,
2625,
67,
5353,
16,
702,
18,
8157,
67,
14597,
67,
17094,
13,
1172,
296,
18657,
1438,
5746,
603,
1756,
738,
72,
7821,
738,
1756,
469,
30,
1438,
273,
5131,
19586,
3693,
2081,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
3631,
7766,
1964,
1503,
13,
1172,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
18,
11241,
273,
1387,
8438,
92,
264,
12,
9499,
18,
11241,
16,
15204,
13,
225,
1756,
273,
702,
18,
655,
225,
309,
702,
18,
3567,
67,
723,
422,
15061,
67,
3693,
30,
309,
702,
18,
7593,
30,
468,
2231,
1807,
1221,
3071,
326,
3320,
585,
1704,
18,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
2116,
18,
7593,
4672,
1172,
296,
13827,
1438,
3320,
585,
486,
1392,
30,
296,
397,
702,
18,
7593,
397,
521,
296,
15702,
7821,
327,
364,
3474,
67,
7593,
2
] |
def NAMESPACEE(self, args): """Returns the name of the namespace the current page resides in. (quoted)""" return urlquote(self.NAMESPACE(args)) | NAMESPACEE = _quoted(NAMESPACE) | def NAMESPACEE(self, args): """Returns the name of the namespace the current page resides in. (quoted)""" return urlquote(self.NAMESPACE(args)) | b84fcb106b1dc6f3f55e2c6f9bde6419128e9fba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/b84fcb106b1dc6f3f55e2c6f9bde6419128e9fba/magics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18494,
41,
12,
2890,
16,
833,
4672,
3536,
1356,
326,
508,
434,
326,
1981,
326,
783,
1363,
400,
4369,
316,
18,
261,
15179,
15574,
327,
880,
6889,
12,
2890,
18,
11368,
12,
1968,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18494,
41,
12,
2890,
16,
833,
4672,
3536,
1356,
326,
508,
434,
326,
1981,
326,
783,
1363,
400,
4369,
316,
18,
261,
15179,
15574,
327,
880,
6889,
12,
2890,
18,
11368,
12,
1968,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print getruntime(),"Server Conn.",remoteip,remoteport | if DEBUG2: print getruntime(),"Server Conn.",remoteip,remoteport | def new_server(remoteip, remoteport, sock, thiscommhandle, listencommhandle): # DEBUG print getruntime(),"Server Conn.",remoteip,remoteport # Get the connection ID id = FORWARDER_STATE["Next_Conn_ID"] # Increment the global ID counter FORWARDER_STATE["Next_Conn_ID"] += 1 # Initialize the multiplexing socket with this socket mux = Multiplexer(sock, {"localip":FORWARDER_STATE["ip"], "localport":SERVER_PORT, "remoteip":remoteip, "remoteport":remoteport}) # Helper wrapper function def rpc_wrapper(remoteip, remoteport, client_sock, thiscommhandle, listencommhandle): new_rpc(id, client_sock) # Set the RPC waitforconn mux.waitforconn(RPC_VIRTUAL_IP, RPC_VIRTUAL_PORT, rpc_wrapper) # Create an entry for the server _connection_entry(id,sock,mux,remoteip,remoteport,"server") | e3dc312b8230075bb3de5f288eaa2936b99fd577 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/e3dc312b8230075bb3de5f288eaa2936b99fd577/forwarder_rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
3567,
12,
7222,
625,
16,
2632,
655,
16,
7313,
16,
333,
5702,
4110,
16,
6514,
5702,
4110,
4672,
468,
6369,
309,
6369,
22,
30,
1172,
336,
9448,
9334,
6,
2081,
6683,
1199,
16,
7222,
625,
16,
7222,
655,
225,
468,
968,
326,
1459,
1599,
612,
273,
12108,
16777,
4179,
67,
7998,
9614,
2134,
67,
3543,
67,
734,
11929,
225,
468,
17883,
326,
2552,
1599,
3895,
12108,
16777,
4179,
67,
7998,
9614,
2134,
67,
3543,
67,
734,
11929,
1011,
404,
225,
468,
9190,
326,
30232,
310,
2987,
598,
333,
2987,
8260,
273,
13531,
92,
264,
12,
15031,
16,
12528,
3729,
625,
6877,
7473,
16777,
4179,
67,
7998,
9614,
625,
6,
6487,
315,
3729,
655,
6877,
4370,
67,
6354,
16,
315,
7222,
625,
6877,
7222,
625,
16,
315,
7222,
655,
6877,
7222,
655,
6792,
225,
468,
9705,
4053,
445,
1652,
6724,
67,
8376,
12,
7222,
625,
16,
2632,
655,
16,
1004,
67,
15031,
16,
333,
5702,
4110,
16,
6514,
5702,
4110,
4672,
394,
67,
7452,
12,
350,
16,
1004,
67,
15031,
13,
225,
468,
1000,
326,
8295,
2529,
1884,
4646,
8260,
18,
7048,
1884,
4646,
12,
8087,
67,
26854,
67,
2579,
16,
8295,
67,
26854,
67,
6354,
16,
6724,
67,
8376,
13,
225,
468,
1788,
392,
1241,
364,
326,
1438,
389,
4071,
67,
4099,
12,
350,
16,
15031,
16,
81,
2616,
16,
7222,
625,
16,
7222,
655,
10837,
3567,
7923,
565,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
3567,
12,
7222,
625,
16,
2632,
655,
16,
7313,
16,
333,
5702,
4110,
16,
6514,
5702,
4110,
4672,
468,
6369,
309,
6369,
22,
30,
1172,
336,
9448,
9334,
6,
2081,
6683,
1199,
16,
7222,
625,
16,
7222,
655,
225,
468,
968,
326,
1459,
1599,
612,
273,
12108,
16777,
4179,
67,
7998,
9614,
2134,
67,
3543,
67,
734,
11929,
225,
468,
17883,
326,
2552,
1599,
3895,
12108,
16777,
4179,
67,
7998,
9614,
2134,
67,
3543,
67,
734,
11929,
1011,
404,
225,
468,
9190,
326,
30232,
310,
2987,
598,
333,
2987,
8260,
273,
13531,
92,
264,
12,
15031,
16,
12528,
3729,
625,
6877,
7473,
16777,
4179,
67,
7998,
9614,
625,
6,
6487,
315,
3729,
655,
6877,
4370,
67,
2
] |
def check_cdata_content(self): | def test_cdata_content(self): | def check_cdata_content(self): s = """<script> <!-- not a comment --> ¬-an-entity-ref; </script>""" self._run_check(s, [ ("starttag", "script", []), ("data", " <!-- not a comment --> ¬-an-entity-ref; "), ("endtag", "script"), ]) s = """<script> <not a='start tag'> </script>""" self._run_check(s, [ ("starttag", "script", []), ("data", " <not a='start tag'> "), ("endtag", "script"), ]) | 742542a88fb7dc018e41593629baf7f75f78c1e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/742542a88fb7dc018e41593629baf7f75f78c1e6/test_htmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
892,
67,
1745,
12,
2890,
4672,
272,
273,
3536,
32,
4263,
34,
5719,
413,
486,
279,
2879,
15431,
473,
902,
17,
304,
17,
1096,
17,
1734,
31,
7765,
4263,
2984,
3660,
365,
6315,
2681,
67,
1893,
12,
87,
16,
306,
7566,
1937,
2692,
3113,
315,
4263,
3113,
5378,
3631,
7566,
892,
3113,
315,
5719,
413,
486,
279,
2879,
15431,
473,
902,
17,
304,
17,
1096,
17,
1734,
31,
315,
3631,
7566,
409,
2692,
3113,
315,
4263,
6,
3631,
308,
13,
272,
273,
3536,
32,
4263,
34,
411,
902,
279,
2218,
1937,
1047,
29256,
7765,
4263,
2984,
3660,
365,
6315,
2681,
67,
1893,
12,
87,
16,
306,
7566,
1937,
2692,
3113,
315,
4263,
3113,
5378,
3631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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
892,
67,
1745,
12,
2890,
4672,
272,
273,
3536,
32,
4263,
34,
5719,
413,
486,
279,
2879,
15431,
473,
902,
17,
304,
17,
1096,
17,
1734,
31,
7765,
4263,
2984,
3660,
365,
6315,
2681,
67,
1893,
12,
87,
16,
306,
7566,
1937,
2692,
3113,
315,
4263,
3113,
5378,
3631,
7566,
892,
3113,
315,
5719,
413,
486,
279,
2879,
15431,
473,
902,
17,
304,
17,
1096,
17,
1734,
31,
315,
3631,
7566,
409,
2692,
3113,
315,
4263,
6,
3631,
308,
13,
272,
273,
3536,
32,
4263,
34,
411,
902,
279,
2218,
1937,
1047,
29256,
7765,
4263,
2984,
3660,
365,
6315,
2681,
67,
1893,
12,
87,
16,
306,
7566,
1937,
2692,
3113,
315,
4263,
3113,
5378,
3631,
2
] |
self.connect(self, SIGNAL('editTextChanged(QString)'), self.text_edited_slot) | def initialize(self, opt_name, colorize=False, help_text=_('Search')): self.as_you_type = config['search_as_you_type'] self.opt_name = opt_name self.addItems(QStringList(list(set(config[opt_name])))) self.help_text = help_text self.colorize = colorize self.clear_to_help() self.connect(self, SIGNAL('editTextChanged(QString)'), self.text_edited_slot) | 544b4648e115ccda84344bf2aec0dde18d661973 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/544b4648e115ccda84344bf2aec0dde18d661973/search_box.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
16,
2153,
67,
529,
16,
21077,
33,
8381,
16,
2809,
67,
955,
33,
67,
2668,
2979,
26112,
30,
365,
18,
345,
67,
19940,
67,
723,
273,
642,
3292,
3072,
67,
345,
67,
19940,
67,
723,
3546,
365,
18,
3838,
67,
529,
273,
2153,
67,
529,
365,
18,
1289,
3126,
12,
53,
780,
682,
12,
1098,
12,
542,
12,
1425,
63,
3838,
67,
529,
22643,
3719,
365,
18,
5201,
67,
955,
273,
2809,
67,
955,
365,
18,
3266,
554,
273,
21077,
365,
18,
8507,
67,
869,
67,
5201,
1435,
365,
18,
3612,
12,
2890,
16,
12057,
1013,
2668,
4619,
1528,
5033,
12,
53,
780,
2506,
3631,
365,
18,
955,
67,
28752,
67,
14194,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
16,
2153,
67,
529,
16,
21077,
33,
8381,
16,
2809,
67,
955,
33,
67,
2668,
2979,
26112,
30,
365,
18,
345,
67,
19940,
67,
723,
273,
642,
3292,
3072,
67,
345,
67,
19940,
67,
723,
3546,
365,
18,
3838,
67,
529,
273,
2153,
67,
529,
365,
18,
1289,
3126,
12,
53,
780,
682,
12,
1098,
12,
542,
12,
1425,
63,
3838,
67,
529,
22643,
3719,
365,
18,
5201,
67,
955,
273,
2809,
67,
955,
365,
18,
3266,
554,
273,
21077,
365,
18,
8507,
67,
869,
67,
5201,
1435,
365,
18,
3612,
12,
2890,
16,
12057,
1013,
2668,
4619,
1528,
5033,
12,
53,
780,
2506,
3631,
365,
18,
955,
67,
28752,
67,
14194,
13,
2,
-100,
-100
] | |
while current_rev: | while current_rev is not None: | def sync(self): self.log.debug("Checking whether sync with repository is needed") youngest_stored = self.repos.get_youngest_rev_in_cache(self.db) if youngest_stored != str(self.repos.youngest_rev): kindmap = dict(zip(_kindmap.values(), _kindmap.keys())) actionmap = dict(zip(_actionmap.values(), _actionmap.keys())) self.log.info("Syncing with repository (%s to %s)" % (youngest_stored, self.repos.youngest_rev)) cursor = self.db.cursor() if youngest_stored: current_rev = self.repos.next_rev(youngest_stored) else: current_rev = self.repos.oldest_rev while current_rev: changeset = self.repos.get_changeset(current_rev) cursor.execute("INSERT INTO revision (rev,time,author,message) " "VALUES (%s,%s,%s,%s)", (current_rev, changeset.date, changeset.author, changeset.message)) for path,kind,action,base_path,base_rev in changeset.get_changes(): self.log.debug("Caching node change in [%s]: %s" % (current_rev, (path, kind, action, base_path, base_rev))) kind = kindmap[kind] action = actionmap[action] cursor.execute("INSERT INTO node_change (rev,path,kind," "change,base_path,base_rev) " "VALUES (%s,%s,%s,%s,%s,%s)", (current_rev, path, kind, action, base_path, base_rev)) current_rev = self.repos.next_rev(current_rev) self.db.commit() | 7916e509f30f1d1c4c9fb71bfb6656b63152336e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/7916e509f30f1d1c4c9fb71bfb6656b63152336e/cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
2890,
4672,
365,
18,
1330,
18,
4148,
2932,
14294,
2856,
3792,
598,
3352,
353,
3577,
7923,
677,
465,
17592,
67,
22601,
273,
365,
18,
15564,
18,
588,
67,
93,
465,
17592,
67,
9083,
67,
267,
67,
2493,
12,
2890,
18,
1966,
13,
309,
677,
465,
17592,
67,
22601,
480,
609,
12,
2890,
18,
15564,
18,
93,
465,
17592,
67,
9083,
4672,
3846,
1458,
273,
2065,
12,
4450,
24899,
9224,
1458,
18,
2372,
9334,
389,
9224,
1458,
18,
2452,
1435,
3719,
1301,
1458,
273,
2065,
12,
4450,
24899,
1128,
1458,
18,
2372,
9334,
389,
1128,
1458,
18,
2452,
1435,
3719,
365,
18,
1330,
18,
1376,
2932,
4047,
310,
598,
3352,
6142,
87,
358,
738,
87,
2225,
738,
261,
93,
465,
17592,
67,
22601,
16,
365,
18,
15564,
18,
93,
465,
17592,
67,
9083,
3719,
3347,
273,
365,
18,
1966,
18,
9216,
1435,
309,
677,
465,
17592,
67,
22601,
30,
783,
67,
9083,
273,
365,
18,
15564,
18,
4285,
67,
9083,
12,
93,
465,
17592,
67,
22601,
13,
469,
30,
783,
67,
9083,
273,
365,
18,
15564,
18,
1673,
395,
67,
9083,
1323,
783,
67,
9083,
353,
486,
599,
30,
22463,
273,
365,
18,
15564,
18,
588,
67,
6329,
278,
12,
2972,
67,
9083,
13,
3347,
18,
8837,
2932,
11356,
12421,
6350,
261,
9083,
16,
957,
16,
4161,
16,
2150,
13,
315,
315,
16386,
6142,
87,
15529,
87,
15529,
87,
15529,
87,
2225,
16,
261,
2972,
67,
9083,
16,
22463,
18,
712,
16,
22463,
18,
4161,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
2890,
4672,
365,
18,
1330,
18,
4148,
2932,
14294,
2856,
3792,
598,
3352,
353,
3577,
7923,
677,
465,
17592,
67,
22601,
273,
365,
18,
15564,
18,
588,
67,
93,
465,
17592,
67,
9083,
67,
267,
67,
2493,
12,
2890,
18,
1966,
13,
309,
677,
465,
17592,
67,
22601,
480,
609,
12,
2890,
18,
15564,
18,
93,
465,
17592,
67,
9083,
4672,
3846,
1458,
273,
2065,
12,
4450,
24899,
9224,
1458,
18,
2372,
9334,
389,
9224,
1458,
18,
2452,
1435,
3719,
1301,
1458,
273,
2065,
12,
4450,
24899,
1128,
1458,
18,
2372,
9334,
389,
1128,
1458,
18,
2452,
1435,
3719,
365,
18,
1330,
18,
1376,
2932,
4047,
310,
598,
3352,
6142,
87,
358,
738,
87,
2225,
738,
2
] |
for vec,color in [ (V(1,0,0),red), (V(0,1,0),green), (V(0,0,1),blue) ]: | for vec, color in [ (V(1,0,0), red), (V(0,1,0), green), (V(0,0,1), blue) ]: | def trans(screenpos): return glpane.pov + oldquat.unrot(screenpos) | 55ac4fdc2a170bd52fcbe417587721669a976b6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/55ac4fdc2a170bd52fcbe417587721669a976b6f/test_animation_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
906,
12,
9252,
917,
4672,
327,
5118,
29009,
18,
84,
1527,
397,
1592,
372,
270,
18,
318,
8342,
12,
9252,
917,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
906,
12,
9252,
917,
4672,
327,
5118,
29009,
18,
84,
1527,
397,
1592,
372,
270,
18,
318,
8342,
12,
9252,
917,
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,
-100
] |
output.trace('Return: %r' % ret) | output.trace('Return: %s' % repr(ret)) | def run(self, output, namespace): handler = namespace.get_handler(self.handler_name) if handler.type == 'user': handler.init_user_keyword(namespace.variables) self.name = self._get_name(handler.longname, namespace.variables) self.doc = handler.shortdoc self.starttime = utils.get_timestamp() output.start_keyword(self) if self.doc.startswith('*DEPRECATED*'): msg = self.doc.replace('*DEPRECATED*', '', 1).strip() name = self.name.split('} = ', 1)[-1] # Remove possible variable output.warn("Keyword '%s' is deprecated. %s" % (name, msg)) try: ret = self._run(handler, output, namespace) output.trace('Return: %r' % ret) except ExecutionFailed, err: self.status = 'FAIL' else: self.status = 'PASS' self.endtime = utils.get_timestamp() self.elapsedtime = utils.get_elapsed_time(self.starttime, self.endtime) output.end_keyword(self) if self.status == 'FAIL': raise err return ret | de93ae4d2f57d96289ac304fdd0a5b938559ffa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/de93ae4d2f57d96289ac304fdd0a5b938559ffa1/keywords.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
876,
16,
1981,
4672,
1838,
273,
1981,
18,
588,
67,
4176,
12,
2890,
18,
4176,
67,
529,
13,
309,
1838,
18,
723,
422,
296,
1355,
4278,
1838,
18,
2738,
67,
1355,
67,
11041,
12,
4937,
18,
7528,
13,
365,
18,
529,
273,
365,
6315,
588,
67,
529,
12,
4176,
18,
5748,
529,
16,
1981,
18,
7528,
13,
365,
18,
2434,
273,
1838,
18,
6620,
2434,
365,
18,
1937,
957,
273,
2990,
18,
588,
67,
5508,
1435,
876,
18,
1937,
67,
11041,
12,
2890,
13,
309,
365,
18,
2434,
18,
17514,
1918,
2668,
14,
17575,
4035,
4672,
1234,
273,
365,
18,
2434,
18,
2079,
2668,
14,
17575,
14,
2187,
10226,
404,
2934,
6406,
1435,
508,
273,
365,
18,
529,
18,
4939,
2668,
97,
273,
2265,
404,
13,
18919,
21,
65,
225,
468,
3581,
3323,
2190,
876,
18,
8935,
2932,
8736,
1995,
87,
11,
353,
6849,
18,
738,
87,
6,
738,
261,
529,
16,
1234,
3719,
775,
30,
325,
273,
365,
6315,
2681,
12,
4176,
16,
876,
16,
1981,
13,
876,
18,
5129,
2668,
990,
30,
738,
87,
11,
738,
8480,
12,
1349,
3719,
1335,
8687,
2925,
16,
393,
30,
365,
18,
2327,
273,
296,
12319,
11,
469,
30,
365,
18,
2327,
273,
296,
10884,
11,
365,
18,
409,
957,
273,
2990,
18,
588,
67,
5508,
1435,
365,
18,
26201,
957,
273,
2990,
18,
588,
67,
26201,
67,
957,
12,
2890,
18,
1937,
957,
16,
365,
18,
409,
957,
13,
876,
18,
409,
67,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
876,
16,
1981,
4672,
1838,
273,
1981,
18,
588,
67,
4176,
12,
2890,
18,
4176,
67,
529,
13,
309,
1838,
18,
723,
422,
296,
1355,
4278,
1838,
18,
2738,
67,
1355,
67,
11041,
12,
4937,
18,
7528,
13,
365,
18,
529,
273,
365,
6315,
588,
67,
529,
12,
4176,
18,
5748,
529,
16,
1981,
18,
7528,
13,
365,
18,
2434,
273,
1838,
18,
6620,
2434,
365,
18,
1937,
957,
273,
2990,
18,
588,
67,
5508,
1435,
876,
18,
1937,
67,
11041,
12,
2890,
13,
309,
365,
18,
2434,
18,
17514,
1918,
2668,
14,
17575,
4035,
4672,
1234,
273,
365,
18,
2434,
18,
2079,
2668,
14,
17575,
14,
2187,
10226,
404,
2934,
6406,
1435,
508,
2
] |
if self.traymenu.get_property('visible') and self.traytips.notif_handler <> -1: | if self.traymenu.get_property('visible') and self.traytips.notif_handler != -1: | def tooltip_show_manually(self): # Since there is no signal to connect to when the user puts their # mouse over the trayicon, we will check the mouse position # manually and show/hide the window as appropriate. This is called # every iteration. Note: This should not occur if self.traytips.notif_ # handler has a value, because that means that the tooltip is already # visible, and we don't want to override that setting simply because # the user's cursor is not over the tooltip. if self.traymenu.get_property('visible') and self.traytips.notif_handler <> -1: self.traytips._remove_timer() elif not self.traytips.notif_handler: pointer_screen, px, py, _ = self.window.get_screen().get_display().get_pointer() icon_screen, icon_rect, icon_orient = self.statusicon.get_geometry() x = icon_rect[0] y = icon_rect[1] width = icon_rect[2] height = icon_rect[3] if px >= x and px <= x+width and py >= y and py <= y+height: self.traytips._start_delay(self.statusicon) else: self.traytips._remove_timer() | 5178d7eb73657d7ee78706340fbf0fc5d779c7ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/5178d7eb73657d7ee78706340fbf0fc5d779c7ee/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11915,
67,
4500,
67,
4728,
3452,
12,
2890,
4672,
468,
7897,
1915,
353,
1158,
4277,
358,
3077,
358,
1347,
326,
729,
8200,
3675,
468,
7644,
1879,
326,
268,
435,
3950,
16,
732,
903,
866,
326,
7644,
1754,
468,
10036,
471,
2405,
19,
11248,
326,
2742,
487,
5505,
18,
1220,
353,
2566,
468,
3614,
6532,
18,
3609,
30,
1220,
1410,
486,
3334,
309,
365,
18,
313,
528,
88,
7146,
18,
902,
430,
67,
468,
1838,
711,
279,
460,
16,
2724,
716,
4696,
716,
326,
11915,
353,
1818,
468,
6021,
16,
471,
732,
2727,
1404,
2545,
358,
3849,
716,
3637,
8616,
2724,
468,
326,
729,
1807,
3347,
353,
486,
1879,
326,
11915,
18,
309,
365,
18,
313,
528,
5414,
18,
588,
67,
4468,
2668,
8613,
6134,
471,
365,
18,
313,
528,
88,
7146,
18,
902,
430,
67,
4176,
480,
300,
21,
30,
365,
18,
313,
528,
88,
7146,
6315,
4479,
67,
12542,
1435,
1327,
486,
365,
18,
313,
528,
88,
7146,
18,
902,
430,
67,
4176,
30,
4407,
67,
9252,
16,
10318,
16,
2395,
16,
389,
273,
365,
18,
5668,
18,
588,
67,
9252,
7675,
588,
67,
5417,
7675,
588,
67,
10437,
1435,
4126,
67,
9252,
16,
4126,
67,
2607,
16,
4126,
67,
14766,
273,
365,
18,
2327,
3950,
18,
588,
67,
14330,
1435,
619,
273,
4126,
67,
2607,
63,
20,
65,
677,
273,
4126,
67,
2607,
63,
21,
65,
1835,
273,
4126,
67,
2607,
63,
22,
65,
2072,
273,
4126,
67,
2607,
63,
23,
65,
309,
10318,
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,
11915,
67,
4500,
67,
4728,
3452,
12,
2890,
4672,
468,
7897,
1915,
353,
1158,
4277,
358,
3077,
358,
1347,
326,
729,
8200,
3675,
468,
7644,
1879,
326,
268,
435,
3950,
16,
732,
903,
866,
326,
7644,
1754,
468,
10036,
471,
2405,
19,
11248,
326,
2742,
487,
5505,
18,
1220,
353,
2566,
468,
3614,
6532,
18,
3609,
30,
1220,
1410,
486,
3334,
309,
365,
18,
313,
528,
88,
7146,
18,
902,
430,
67,
468,
1838,
711,
279,
460,
16,
2724,
716,
4696,
716,
326,
11915,
353,
1818,
468,
6021,
16,
471,
732,
2727,
1404,
2545,
358,
3849,
716,
3637,
8616,
2724,
468,
326,
729,
1807,
3347,
353,
486,
1879,
326,
11915,
18,
309,
365,
18,
313,
528,
5414,
18,
2
] |
"""Work out the current kernel architecture (as a kernel arch)""" | """ Work out the current kernel architecture (as a kernel arch) """ | def get_kernel_build_arch(self, arch=None): """Work out the current kernel architecture (as a kernel arch)""" if not arch: arch = get_current_kernel_arch() if re.match('i.86', arch): return 'i386' elif re.match('sun4u', arch): return 'sparc64' elif re.match('arm.*', arch): return 'arm' elif re.match('sa110', arch): return 'arm' elif re.match('s390x', arch): return 's390' elif re.match('parisc64', arch): return 'parisc' elif re.match('ppc.*', arch): return 'powerpc' elif re.match('mips.*', arch): return 'mips' else: return arch | 6348fc2543d50cb8a902b2d7d91b2093deaf8f94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/6348fc2543d50cb8a902b2d7d91b2093deaf8f94/kernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8111,
67,
3510,
67,
991,
12,
2890,
16,
6637,
33,
7036,
4672,
3536,
4147,
596,
326,
783,
5536,
27418,
261,
345,
279,
5536,
6637,
13,
3536,
309,
486,
6637,
30,
6637,
273,
336,
67,
2972,
67,
8111,
67,
991,
1435,
309,
283,
18,
1916,
2668,
77,
18,
5292,
2187,
6637,
4672,
327,
296,
77,
23,
5292,
11,
1327,
283,
18,
1916,
2668,
16924,
24,
89,
2187,
6637,
4672,
327,
296,
87,
1065,
71,
1105,
11,
1327,
283,
18,
1916,
2668,
4610,
4509,
2187,
6637,
4672,
327,
296,
4610,
11,
1327,
283,
18,
1916,
2668,
13098,
17506,
2187,
6637,
4672,
327,
296,
4610,
11,
1327,
283,
18,
1916,
2668,
87,
5520,
20,
92,
2187,
6637,
4672,
327,
296,
87,
5520,
20,
11,
1327,
283,
18,
1916,
2668,
1065,
291,
71,
1105,
2187,
6637,
4672,
327,
296,
1065,
291,
71,
11,
1327,
283,
18,
1916,
2668,
84,
2436,
4509,
2187,
6637,
4672,
327,
296,
12238,
2436,
11,
1327,
283,
18,
1916,
2668,
81,
7146,
4509,
2187,
6637,
4672,
327,
296,
81,
7146,
11,
469,
30,
327,
6637,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8111,
67,
3510,
67,
991,
12,
2890,
16,
6637,
33,
7036,
4672,
3536,
4147,
596,
326,
783,
5536,
27418,
261,
345,
279,
5536,
6637,
13,
3536,
309,
486,
6637,
30,
6637,
273,
336,
67,
2972,
67,
8111,
67,
991,
1435,
309,
283,
18,
1916,
2668,
77,
18,
5292,
2187,
6637,
4672,
327,
296,
77,
23,
5292,
11,
1327,
283,
18,
1916,
2668,
16924,
24,
89,
2187,
6637,
4672,
327,
296,
87,
1065,
71,
1105,
11,
1327,
283,
18,
1916,
2668,
4610,
4509,
2187,
6637,
4672,
327,
296,
4610,
11,
1327,
283,
18,
1916,
2668,
13098,
17506,
2187,
6637,
4672,
327,
296,
4610,
11,
1327,
283,
18,
1916,
2668,
87,
5520,
20,
92,
2187,
6637,
4672,
327,
2
] |
if not self.propertyMap(): return '' if not allprop and not vals: | if not allprop and not names: | def dav__propstat(self, allprop, vals, join=string.join): # The dav__propstat method returns a chunk of xml containing # one or more propstat elements indicating property names, # values, errors and status codes. This is called by some # of the WebDAV support machinery. If a property set does # not support WebDAV, just override this method to return # an empty string. propstat='<d:propstat%s>\n' \ ' <d:prop>\n' \ '%s\n' \ ' </d:prop>\n' \ ' <d:status>HTTP/1.1 %s</d:status>\n' \ '</d:propstat>\n' result=[] if not self.propertyMap(): return '' if not allprop and not vals: # propname request for name in self.propertyIds(): result.append(' <ns0:%s/>' % name) result=join(result, '\n') nsdef=' xmlns:ns0="%s"' % self.xml_namespace() return propstat % (nsdef, result, '200 OK') elif allprop: for name, value in self.propertyItems(): prop=' <ns0:%s>%s</ns0:%s>' % (name, value, name) result.append(prop) result=join(result, '\n') nsdef=' xmlns:ns0="%s"' % self.xml_namespace() return propstat % (nsdef, result, '200 OK') else: xml_ns=self.xml_namespace() propdict=self.propdict() nsdef=' xmlns:ns0="%s"' % self.xml_namespace() for name, ns in vals: if ns==xml_ns: if propdict.has_key(name): value=self.getProperty(name) prop=' <ns0:%s>%s</ns0:%s>' % (name, value, name) result.append(propstat % (nsdef, prop, '200 OK')) else: prop=' <ns0:%s/>' % name result.append(propstat % (nsdef, prop,'404 Not Found')) return join(result, '\n') | 62ae26da026a782b337b19b00b172786a89e5123 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/62ae26da026a782b337b19b00b172786a89e5123/PropertySheets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
842,
972,
5986,
5642,
12,
2890,
16,
777,
5986,
16,
5773,
16,
1233,
33,
1080,
18,
5701,
4672,
468,
1021,
302,
842,
972,
5986,
5642,
707,
1135,
279,
2441,
434,
2025,
4191,
468,
1245,
578,
1898,
2270,
5642,
2186,
11193,
1272,
1257,
16,
468,
924,
16,
1334,
471,
1267,
6198,
18,
1220,
353,
2566,
635,
2690,
468,
434,
326,
2999,
17735,
2865,
25046,
267,
627,
18,
971,
279,
1272,
444,
1552,
468,
486,
2865,
2999,
17735,
16,
2537,
3849,
333,
707,
358,
327,
468,
392,
1008,
533,
18,
2270,
5642,
2218,
32,
72,
30,
5986,
5642,
9,
87,
5333,
82,
11,
521,
296,
225,
411,
72,
30,
5986,
5333,
82,
11,
521,
1995,
87,
64,
82,
11,
521,
296,
225,
7765,
72,
30,
5986,
5333,
82,
11,
521,
296,
225,
411,
72,
30,
2327,
34,
3693,
19,
21,
18,
21,
738,
87,
1757,
72,
30,
2327,
5333,
82,
11,
521,
4357,
72,
30,
5986,
5642,
5333,
82,
11,
563,
33,
8526,
309,
486,
777,
5986,
471,
486,
1257,
30,
468,
2270,
529,
590,
364,
508,
316,
365,
18,
4468,
2673,
13332,
563,
18,
6923,
2668,
225,
411,
2387,
20,
5319,
87,
18280,
738,
508,
13,
563,
33,
5701,
12,
2088,
16,
2337,
82,
6134,
3153,
536,
2218,
12302,
30,
2387,
20,
11613,
87,
5187,
738,
365,
18,
2902,
67,
4937,
1435,
327,
2270,
5642,
738,
261,
2387,
536,
16,
563,
16,
296,
6976,
7791,
6134,
1327,
777,
5986,
30,
364,
508,
16,
460,
316,
365,
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,
302,
842,
972,
5986,
5642,
12,
2890,
16,
777,
5986,
16,
5773,
16,
1233,
33,
1080,
18,
5701,
4672,
468,
1021,
302,
842,
972,
5986,
5642,
707,
1135,
279,
2441,
434,
2025,
4191,
468,
1245,
578,
1898,
2270,
5642,
2186,
11193,
1272,
1257,
16,
468,
924,
16,
1334,
471,
1267,
6198,
18,
1220,
353,
2566,
635,
2690,
468,
434,
326,
2999,
17735,
2865,
25046,
267,
627,
18,
971,
279,
1272,
444,
1552,
468,
486,
2865,
2999,
17735,
16,
2537,
3849,
333,
707,
358,
327,
468,
392,
1008,
533,
18,
2270,
5642,
2218,
32,
72,
30,
5986,
5642,
9,
87,
5333,
82,
11,
521,
296,
225,
411,
72,
30,
5986,
5333,
82,
11,
521,
1995,
87,
64,
82,
11,
2
] |
if errno != arg[0]: exc, arg = error, (errno, msg) raise exc, arg | if errno != ENOENT and errno != ENOTDIR: raise raise error, (errno, msg) | def _execvpe(file, args, env=None): if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ global _notfound head, tail = path.split(file) if head: apply(func, (file,) + argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath PATH = envpath.split(pathsep) if not _notfound: if sys.platform[:4] == 'beos': # Process handling (fork, wait) under BeOS (up to 5.0) # doesn't interoperate reliably with the thread interlocking # that happens during an import. The actual error we need # is the same on BeOS for posix.open() et al., ENOENT. try: unlink('/_#.# ## #.#') except error, _notfound: pass else: import tempfile t = tempfile.mktemp() # Exec a file that is guaranteed not to exist try: execv(t, ('blah',)) except error, _notfound: pass exc, arg = error, _notfound for dir in PATH: fullname = path.join(dir, file) try: apply(func, (fullname,) + argrest) except error, (errno, msg): if errno != arg[0]: exc, arg = error, (errno, msg) raise exc, arg | fe2895e361895d034781d7843c51a48c3a5c20d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fe2895e361895d034781d7843c51a48c3a5c20d8/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196,
90,
1501,
8792,
273,
261,
1968,
16,
13,
1550,
273,
5473,
2552,
389,
902,
7015,
910,
16,
5798,
273,
589,
18,
4939,
12,
768,
13,
309,
910,
30,
2230,
12,
644,
16,
261,
768,
16,
13,
397,
1501,
8792,
13,
327,
309,
296,
4211,
11,
316,
1550,
30,
1550,
803,
273,
1550,
3292,
4211,
3546,
469,
30,
1550,
803,
273,
1652,
803,
7767,
273,
1550,
803,
18,
4939,
12,
803,
10814,
13,
309,
486,
389,
902,
7015,
30,
309,
2589,
18,
9898,
10531,
24,
65,
422,
296,
2196,
538,
4278,
468,
225,
4389,
5057,
261,
23335,
16,
2529,
13,
3613,
4823,
4618,
261,
416,
358,
1381,
18,
20,
13,
468,
225,
3302,
1404,
1554,
4063,
340,
14719,
6906,
598,
326,
2650,
1554,
739,
310,
468,
225,
716,
10555,
4982,
392,
1930,
18,
225,
1021,
3214,
555,
732,
1608,
468,
225,
353,
326,
1967,
603,
4823,
4618,
364,
16366,
18,
3190,
1435,
3393,
524,
12990,
29018,
18,
775,
30,
8255,
2668,
18510,
7,
18,
7,
7541,
468,
18,
7,
6134,
1335,
555,
16,
389,
902,
7015,
30,
1342,
469,
30,
1930,
13275,
268,
273,
13275,
18,
24816,
5814,
1435,
468,
3889,
279,
585,
716,
353,
15403,
486,
358,
1005,
775,
30,
1196,
90,
12,
88,
16,
7707,
3083,
9795,
2187,
3719,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196,
90,
1501,
8792,
273,
261,
1968,
16,
13,
1550,
273,
5473,
2552,
389,
902,
7015,
910,
16,
5798,
273,
589,
18,
4939,
12,
768,
13,
309,
910,
30,
2230,
12,
644,
16,
261,
768,
16,
13,
397,
1501,
8792,
13,
327,
309,
296,
4211,
11,
316,
1550,
30,
1550,
803,
273,
1550,
3292,
4211,
3546,
469,
30,
1550,
803,
273,
1652,
803,
7767,
273,
1550,
803,
18,
4939,
12,
803,
10814,
13,
309,
486,
389,
902,
7015,
30,
309,
2589,
18,
9898,
2
] |
print >>sys.stderr, '%s: %s' % (error.__class__.__name__, error) try: print >>sys.stderr, """ The specified output encoding (%s) cannot handle all of the output.""" % error.encoding except AttributeError: print >>sys.stderr, """ The specified output encoding cannot handle all of the output.""" print """\ Try setting "--output-encoding-error-handler" to * "xmlcharrefreplace" (for HTML & XML output);""" | sys.stderr.write( '%s: %s\n' '\n' 'The specified output encoding (%s) cannot\n' 'handle all of the output.\n' 'Try setting "--output-encoding-error-handler" to\n' '\n' '* "xmlcharrefreplace" (for HTML & XML output);\n' % (error.__class__.__name__, error, self.settings.output_encoding)) | def report_UnicodeError(self, error): print >>sys.stderr, '%s: %s' % (error.__class__.__name__, error) | 0f66cf23ae004c0fe6e0b8e22fcead8e08f23a32 /local1/tlutelli/issta_data/temp/all_python//python/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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
16532,
668,
12,
2890,
16,
555,
4672,
1172,
1671,
9499,
18,
11241,
16,
1995,
87,
30,
738,
87,
11,
738,
261,
1636,
16186,
1106,
972,
16186,
529,
972,
16,
555,
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
] |
f = _open(self._file_name, "w", self._mode) | f = _open(self._file_name, "wb", self._mode) | def sync(self): self._check_writable() f = _open(self._file_name, "w", self._mode) pickle.dump(self._dict, f, 1) f.close() self._needs_sync = 00000 | f0d4023e13cb15db14bd9d210f50f9a4aa7f8d4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/f0d4023e13cb15db14bd9d210f50f9a4aa7f8d4b/dblite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
2890,
4672,
365,
6315,
1893,
67,
15699,
1435,
284,
273,
389,
3190,
12,
2890,
6315,
768,
67,
529,
16,
315,
9464,
3113,
365,
6315,
3188,
13,
13379,
18,
8481,
12,
2890,
6315,
1576,
16,
284,
16,
404,
13,
284,
18,
4412,
1435,
365,
6315,
20600,
67,
8389,
273,
374,
2787,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
2890,
4672,
365,
6315,
1893,
67,
15699,
1435,
284,
273,
389,
3190,
12,
2890,
6315,
768,
67,
529,
16,
315,
9464,
3113,
365,
6315,
3188,
13,
13379,
18,
8481,
12,
2890,
6315,
1576,
16,
284,
16,
404,
13,
284,
18,
4412,
1435,
365,
6315,
20600,
67,
8389,
273,
374,
2787,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 testSimpleSSLwrap(self): | def test_sslwrap_simple(self): | def testSimpleSSLwrap(self): # A crude test for the legacy API try: ssl.sslwrap_simple(socket.socket(socket.AF_INET)) except IOError, e: if e.errno == 32: # broken pipe when ssl_sock.do_handshake(), this test doesn't care about that pass else: raise try: ssl.sslwrap_simple(socket.socket(socket.AF_INET)._sock) except IOError, e: if e.errno == 32: # broken pipe when ssl_sock.do_handshake(), this test doesn't care about that pass else: raise | f08683542eada763321715f558eac5b2baec28e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f08683542eada763321715f558eac5b2baec28e9/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8157,
4113,
67,
9647,
12,
2890,
4672,
468,
432,
4422,
1317,
1842,
364,
326,
8866,
1491,
775,
30,
5832,
18,
8157,
4113,
67,
9647,
12,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
3719,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
422,
3847,
30,
468,
12933,
6010,
1347,
5832,
67,
15031,
18,
2896,
67,
2349,
7478,
9334,
333,
1842,
3302,
1404,
7671,
2973,
716,
1342,
469,
30,
1002,
775,
30,
5832,
18,
8157,
4113,
67,
9647,
12,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
2934,
67,
15031,
13,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
422,
3847,
30,
468,
12933,
6010,
1347,
5832,
67,
15031,
18,
2896,
67,
2349,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8157,
4113,
67,
9647,
12,
2890,
4672,
468,
432,
4422,
1317,
1842,
364,
326,
8866,
1491,
775,
30,
5832,
18,
8157,
4113,
67,
9647,
12,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
3719,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
422,
3847,
30,
468,
12933,
6010,
1347,
5832,
67,
15031,
18,
2896,
67,
2349,
7478,
9334,
333,
1842,
3302,
1404,
7671,
2973,
716,
1342,
469,
30,
1002,
775,
30,
5832,
18,
8157,
4113,
67,
9647,
12,
7814,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
2934,
67,
15031,
13,
1335,
8340,
16,
425,
30,
309,
425,
18,
19088,
422,
3847,
30,
468,
12933,
6010,
1347,
5832,
67,
15031,
18,
2896,
67,
2349,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.