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 |
|---|---|---|---|---|---|---|
site = val[0] | lkeys = ["","",""] for iheaders in range(0,what.num_header): lkeys[iheaders] = val[iheaders] | def GenericRange(what, range_end = datetime.date.today(), range_begin = None, output = "text"): factor = 3600 # Convert number of seconds to number of hours if (not range_begin or range_begin == None): range_begin = range_end + datetime.timedelta(days=-1) if (not range_end or range_end == None): range_end = range_beg... | 840d5408521dcd3fd349c48313ce276b0ab91bb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/840d5408521dcd3fd349c48313ce276b0ab91bb4/PSACCTReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7928,
2655,
12,
23770,
16,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
6,
4672,
5578,
273,
12396,
225,
468,
4037,
1300,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7928,
2655,
12,
23770,
16,
1048,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
6,
4672,
5578,
273,
12396,
225,
468,
4037,
1300,
434,
... |
self.send_document(path, html.escape( 'Problem in %s - %s' % (value.filename, value.args))) | self.send_document(path, html.escape(str(value))) | def do_GET(self): path = self.path if path[-5:] == '.html': path = path[:-5] if path[:1] == '/': path = path[1:] if path and path != '.': try: p, x = locate(path) except DocImportError, value: self.send_document(path, html.escape( 'Problem in %s - %s' % (value.filename, value.args))) return if x: self.send_document(des... | 2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3264,
12,
2890,
4672,
589,
273,
365,
18,
803,
309,
589,
18919,
25,
26894,
422,
2418,
2620,
4278,
589,
273,
589,
10531,
17,
25,
65,
309,
589,
10531,
21,
65,
422,
2023,
30,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3264,
12,
2890,
4672,
589,
273,
365,
18,
803,
309,
589,
18919,
25,
26894,
422,
2418,
2620,
4278,
589,
273,
589,
10531,
17,
25,
65,
309,
589,
10531,
21,
65,
422,
2023,
30,
58... |
self.freqstr = self.xdata.freqstr | self.freq = self.xdata.freq | def _check_plot_params(self,*args): """Defines the plot coordinates (and basic plotting arguments).""" remaining = list(args) # No args ? Use defaults, if any if len(args) == 0: if self.xdata is None: raise ValueError, "No date information available!" return (self.xdata, self.ydata) output = [] while len(remaining) > 0... | 4112b0479c1d88be72e39db02bd49cdabdc15a77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/4112b0479c1d88be72e39db02bd49cdabdc15a77/mpl_timeseries_pgm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
4032,
67,
2010,
12,
2890,
16,
14,
1968,
4672,
3536,
15109,
326,
3207,
5513,
261,
464,
5337,
20947,
1775,
13,
12123,
4463,
273,
666,
12,
1968,
13,
468,
2631,
833,
692,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
4032,
67,
2010,
12,
2890,
16,
14,
1968,
4672,
3536,
15109,
326,
3207,
5513,
261,
464,
5337,
20947,
1775,
13,
12123,
4463,
273,
666,
12,
1968,
13,
468,
2631,
833,
692,
26... |
) | )) | def compact_traceback (): t,v,tb = sys.exc_info() tbinfo = [] while 1: tbinfo.append ( tb.tb_frame.f_code.co_filename, tb.tb_frame.f_code.co_name, str(tb.tb_lineno) ) tb = tb.tb_next if not tb: break # just to be safe del tb file, function, line = tbinfo[-1] info = '[' + string.join ( map ( lambda x: string.join (x, ... | 1a2db408820053542eb9c09530d1c00e5cd61f75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1a2db408820053542eb9c09530d1c00e5cd61f75/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6739,
67,
21696,
1832,
30,
268,
16,
90,
16,
18587,
273,
2589,
18,
10075,
67,
1376,
10756,
8739,
1376,
273,
5378,
1323,
404,
30,
8739,
1376,
18,
6923,
261,
8739,
18,
18587,
67,
3789,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6739,
67,
21696,
1832,
30,
268,
16,
90,
16,
18587,
273,
2589,
18,
10075,
67,
1376,
10756,
8739,
1376,
273,
5378,
1323,
404,
30,
8739,
1376,
18,
6923,
261,
8739,
18,
18587,
67,
3789,
18... |
return newMove (king, king_after, KING_CASTLE) | return newMove (king, king_after, castle) | def generateOne (color, rooknum, king_after, rook_after): king = board.ini_kings[color] rook = board.ini_rooks[color][rooknum] blocker = clearBit(board.blocker, king) blocker = clearBit(blocker, rook) stepover = fromToRay[king][king_after] | fromToRay[rook][rook_after] if not stepover & blocker: for cord in xrange(min(... | cf12d672729679d4739167b2a9749bb63ed39559 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/cf12d672729679d4739167b2a9749bb63ed39559/fischerandom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
3335,
261,
3266,
16,
721,
601,
2107,
16,
417,
310,
67,
5205,
16,
721,
601,
67,
5205,
4672,
417,
310,
273,
11094,
18,
8767,
67,
79,
899,
63,
3266,
65,
721,
601,
273,
11094,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3335,
261,
3266,
16,
721,
601,
2107,
16,
417,
310,
67,
5205,
16,
721,
601,
67,
5205,
4672,
417,
310,
273,
11094,
18,
8767,
67,
79,
899,
63,
3266,
65,
721,
601,
273,
11094,
18,
... |
""" for trigger in triggerList: shift = trigger.get_slide_number() * shiftVector[trigger.ifo] ringIndex = rings.find(trigger.end_time) ring = rings[ringIndex] if ringIndex == len(rings): print >> sys.stderr, "DireErrorAboutRounding" sys.exit(1) assert trigger.end_time in ring oldTime = date.LIGOTimeGPS(trigger.... | """ for trigger in triggerList: end_time = trigger.get_end() trigger.set_end(slideTimeOnRing(end_time, trigger.get_slide_number() * shiftVector[trigger.ifo], rings[rings.find(end_time)])) | def slideTriggersOnRingWithVector(triggerList, shiftVector, rings): """ In-place modify trigger_list so that triggers are slid by along their enclosing ring segment by the algorithm given in XXX. Slide numbers are extracted from the event_id of each trigger, and multiplied by the corresponding (ifo-keyed) entry in shif... | 0940c03f9577a1fa78504cf2da9aedf1e61e59a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/0940c03f9577a1fa78504cf2da9aedf1e61e59a8/SnglInspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12701,
15114,
1398,
10369,
1190,
5018,
12,
10668,
682,
16,
4654,
5018,
16,
26537,
4672,
3536,
657,
17,
964,
5612,
3080,
67,
1098,
1427,
716,
11752,
854,
2020,
350,
635,
7563,
3675,
16307,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12701,
15114,
1398,
10369,
1190,
5018,
12,
10668,
682,
16,
4654,
5018,
16,
26537,
4672,
3536,
657,
17,
964,
5612,
3080,
67,
1098,
1427,
716,
11752,
854,
2020,
350,
635,
7563,
3675,
16307,
... |
result = "for(%s in %s)%s" % (compress(node.iterator), compress(node.object), body) | result = "for(%s in %s)%s" % (removeSemicolon(compress(node.iterator)), compress(node.object), body) | def __for_in(node): # Optional variable declarations varDecl = getattr(node, "varDecl", None) # Body is optional - at least in comprehensions tails body = getattr(node, "body", None) if body: body = compress(body) else: body = "" result = "for(%s in %s)%s" % (compress(node.iterator), compress(node.object), body) if ... | 9e38004dac8064b95be3b48380293be6e83223d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/9e38004dac8064b95be3b48380293be6e83223d3/Compressor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1884,
67,
267,
12,
2159,
4672,
468,
4055,
2190,
12312,
569,
3456,
273,
3869,
12,
2159,
16,
315,
1401,
3456,
3113,
599,
13,
225,
468,
5652,
353,
3129,
300,
622,
4520,
316,
1161,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1884,
67,
267,
12,
2159,
4672,
468,
4055,
2190,
12312,
569,
3456,
273,
3869,
12,
2159,
16,
315,
1401,
3456,
3113,
599,
13,
225,
468,
5652,
353,
3129,
300,
622,
4520,
316,
1161,
2... |
length_reduced = length_func(tagless_text) < length line_count_reduced = tagless_text.count("\n") + 1 < line_count | lines = tagless_text.split("\n") length_reduced = max(length_func(x) for x in lines) < length line_count_reduced = len(lines) < line_count | def break_lines(self, indexes, doc, patterns, length_func, max_length, max_lines, max_deviation, skip_legal, register=-1): """Break lines to fit defined maximum line length and count. | ab0fb9cabd20dae6aa6c489fbad493e976521456 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12852/ab0fb9cabd20dae6aa6c489fbad493e976521456/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
67,
3548,
12,
2890,
16,
5596,
16,
997,
16,
6884,
16,
769,
67,
644,
16,
943,
67,
2469,
16,
943,
67,
3548,
16,
943,
67,
323,
13243,
16,
2488,
67,
2013,
16,
1744,
29711,
21,
4672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
898,
67,
3548,
12,
2890,
16,
5596,
16,
997,
16,
6884,
16,
769,
67,
644,
16,
943,
67,
2469,
16,
943,
67,
3548,
16,
943,
67,
323,
13243,
16,
2488,
67,
2013,
16,
1744,
29711,
21,
4672... |
if self._temporary_base: | if self._temporary_changes: | def pack(self, t, referencesf, gc=None): if gc is None: if self._temporary_base: return self.changes.pack(t, referencesf) elif self._temporary_base: return self.changes.pack(t, referencesf, gc=gc) elif gc: raise TypeError( "Garbage collection isn't supported" " when there is a base storage.") | 0ceb7cf7c06b30e08f976fce181bed2d5bafd02a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10048/0ceb7cf7c06b30e08f976fce181bed2d5bafd02a/DemoStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2890,
16,
268,
16,
5351,
74,
16,
8859,
33,
7036,
4672,
309,
8859,
353,
599,
30,
309,
365,
6315,
31143,
67,
6329,
30,
327,
365,
18,
6329,
18,
2920,
12,
88,
16,
5351,
74,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
12,
2890,
16,
268,
16,
5351,
74,
16,
8859,
33,
7036,
4672,
309,
8859,
353,
599,
30,
309,
365,
6315,
31143,
67,
6329,
30,
327,
365,
18,
6329,
18,
2920,
12,
88,
16,
5351,
74,
1... |
self.removeundo(repo) | def _apply(self, repo, series, list=False, update_status=True, strict=False, patchdir=None, merge=None, all_files={}): # TODO unify with commands.py if not patchdir: patchdir = self.path err = 0 n = None for patchname in series: pushable, reason = self.pushable(patchname) if not pushable: self.explain_pushable(patchnam... | 7223a497853b6671a252d74940c411ef9510f064 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/7223a497853b6671a252d74940c411ef9510f064/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
12,
2890,
16,
3538,
16,
4166,
16,
666,
33,
8381,
16,
1089,
67,
2327,
33,
5510,
16,
5490,
33,
8381,
16,
4729,
1214,
33,
7036,
16,
2691,
33,
7036,
16,
777,
67,
2354,
12938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9010,
12,
2890,
16,
3538,
16,
4166,
16,
666,
33,
8381,
16,
1089,
67,
2327,
33,
5510,
16,
5490,
33,
8381,
16,
4729,
1214,
33,
7036,
16,
2691,
33,
7036,
16,
777,
67,
2354,
12938,
... | |
if (optlevel==1): cmd += " /MAP /MAPINFO:EXPORTS" if (optlevel==2): cmd += " /MAP:NUL " if (optlevel==3): cmd += " /MAP:NUL " if (optlevel==4): cmd += " /MAP:NUL /LTCG " | if (optlevel==1): cmd += " /MAP /MAPINFO:EXPORTS /NOD:MSVCRT.LIB" if (optlevel==2): cmd += " /MAP:NUL /NOD:MSVCRT.LIB" if (optlevel==3): cmd += " /MAP:NUL /NOD:MSVCRTD.LIB" if (optlevel==4): cmd += " /MAP:NUL /LTCG /NOD:MSVCRTD.LIB" | def CompileLink(dll, obj, opts): if (COMPILER=="MSVC"): cmd = "link /nologo" if (platform.architecture()[0] == "64bit"): cmd += " /MACHINE:X64" cmd += " /NOD:MFC90.LIB /NOD:MFC80.LIB /NOD:LIBCI.LIB /NOD:MSVCRTD.LIB /DEBUG" cmd += " /nod:libc /nod:libcmtd /nod:atlthunk /nod:atls" if (GetOrigExt(dll) != ".exe"): cmd += "... | 1988a0def18227c103bda4f23b9cdbc345b99d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/1988a0def18227c103bda4f23b9cdbc345b99d9b/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
2098,
12,
27670,
16,
1081,
16,
1500,
4672,
309,
261,
31075,
14668,
31713,
3537,
13464,
6,
4672,
1797,
273,
315,
1232,
342,
82,
3966,
83,
6,
309,
261,
9898,
18,
991,
18123,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16143,
2098,
12,
27670,
16,
1081,
16,
1500,
4672,
309,
261,
31075,
14668,
31713,
3537,
13464,
6,
4672,
1797,
273,
315,
1232,
342,
82,
3966,
83,
6,
309,
261,
9898,
18,
991,
18123,
1435,
... |
phase_script_execution_re = re.compile(phase_script_execution, re.S) | strip_up_to_date_expressions = [ re.compile(phase_script_execution, re.S), re.compile('__________Shutting down distcc-pump include server\n', re.S), ] | def built_lib_must_not_exist(self, name, *args, **kw): configuration = self.configuration or 'Default' lib_path = self.workpath(configuration, 'lib', self.lib_ + name + self._lib) self.must_not_exist(lib_path) | b7cdfb83a959f8da56727b14a7fe11bb6c35fef6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/b7cdfb83a959f8da56727b14a7fe11bb6c35fef6/TestGyp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6650,
67,
2941,
67,
11926,
67,
902,
67,
7398,
12,
2890,
16,
508,
16,
380,
1968,
16,
2826,
9987,
4672,
1664,
273,
365,
18,
7025,
578,
296,
1868,
11,
2561,
67,
803,
273,
365,
18,
1252,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6650,
67,
2941,
67,
11926,
67,
902,
67,
7398,
12,
2890,
16,
508,
16,
380,
1968,
16,
2826,
9987,
4672,
1664,
273,
365,
18,
7025,
578,
296,
1868,
11,
2561,
67,
803,
273,
365,
18,
1252,... |
mirrorbrain.py new -i example.com \ -H http://mirror1.example.com/pub/opensuse/ \ -F ftp://mirror1.example.com/pub/opensuse/ \ -R rsync://mirror1.example.com/opensuse/ \ -a 'He Who Never Sleeps' \ | mirrorbrain.py new -i example.com \\ -H http://mirror1.example.com/pub/opensuse/ \\ -F ftp://mirror1.example.com/pub/opensuse/ \\ -R rsync://mirror1.example.com/opensuse/ \\ -a 'He Who Never Sleeps' \\ | def do_new(self, subcmd, opts): """${cmd_name}: insert a new mirror into the database | a3cd5b59ee97a87910ce04cc4e87ab8e84bd9bc5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3890/a3cd5b59ee97a87910ce04cc4e87ab8e84bd9bc5/mirrordoctor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2704,
12,
2890,
16,
720,
4172,
16,
1500,
4672,
3536,
18498,
4172,
67,
529,
6713,
2243,
279,
394,
15593,
1368,
326,
2063,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2704,
12,
2890,
16,
720,
4172,
16,
1500,
4672,
3536,
18498,
4172,
67,
529,
6713,
2243,
279,
394,
15593,
1368,
326,
2063,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
__version__ = "0.9.9" | def escape(s, replace=string.replace): s = replace(s, "&", "&") s = replace(s, "<", "<") return replace(s, ">", ">",) MAXINT = 2L**31-1 MININT = -2L**31 if unicode: def _stringify(string): try: return str(string) except UnicodeError: return string else: def _stringify(string): return string __version__ =... | def _decode(data, encoding, is8bit=re.compile("[\x80-\xff]").search): # decode non-ascii string (if possible) if unicode and is8bit(data): data = unicode(data, encoding) return data | cd906440fbd0694e165a09262268a608df82deeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cd906440fbd0694e165a09262268a608df82deeb/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
12,
892,
16,
2688,
16,
353,
28,
3682,
33,
266,
18,
11100,
2932,
7438,
92,
3672,
6943,
5297,
4279,
2934,
3072,
4672,
468,
2495,
1661,
17,
9184,
533,
261,
430,
3323,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3922,
12,
892,
16,
2688,
16,
353,
28,
3682,
33,
266,
18,
11100,
2932,
7438,
92,
3672,
6943,
5297,
4279,
2934,
3072,
4672,
468,
2495,
1661,
17,
9184,
533,
261,
430,
3323,
13,
309,
... |
"permitted to use."))) | "permitted to use.") ) ) | def __call__(self, value, *args, **kwargs): html = fromstring(value) text = etree.tostring(html, method="text") character_count = len(text) if character_count <= 4000: return 1 else: return translate(_(u"message_exceeded_characters", default =( u"You have exceeded the maximum number of characters you are " "permitted t... | 5d206ce1459d20cbe7ae07986671f9ec8ef61c6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10560/5d206ce1459d20cbe7ae07986671f9ec8ef61c6f/schemata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
460,
16,
380,
1968,
16,
2826,
4333,
4672,
1729,
273,
21376,
12,
1132,
13,
977,
273,
12031,
18,
14627,
371,
12,
2620,
16,
707,
1546,
955,
7923,
3351,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
460,
16,
380,
1968,
16,
2826,
4333,
4672,
1729,
273,
21376,
12,
1132,
13,
977,
273,
12031,
18,
14627,
371,
12,
2620,
16,
707,
1546,
955,
7923,
3351,
67,
... |
def_date = edit.split('_')[0] | defdate_rexp = re.compile('(\d{4}-\d{2}-\d{2})_') match = defdate_rexp.search(edit) if match: def_date = match.groups()[0] | def show_entryform(request): time_now = datetime.datetime.now() + datetime.timedelta(minutes=30) time_now -= datetime.timedelta(minutes=int(time_now.strftime("%M"))%30) def_date = time_now.strftime("%Y-%m-%d") def_time = time_now.strftime("%H:%M") duration = u'00:00' edit_page = u'' title = u'' time_opts = unicode() ca... | 1636607e83070b1850fefef779872b8fd3bbec85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/1636607e83070b1850fefef779872b8fd3bbec85/editTimeTrackEntry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4099,
687,
12,
2293,
4672,
813,
67,
3338,
273,
3314,
18,
6585,
18,
3338,
1435,
397,
3314,
18,
31295,
12,
17916,
33,
5082,
13,
813,
67,
3338,
3947,
3314,
18,
31295,
12,
17916,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4099,
687,
12,
2293,
4672,
813,
67,
3338,
273,
3314,
18,
6585,
18,
3338,
1435,
397,
3314,
18,
31295,
12,
17916,
33,
5082,
13,
813,
67,
3338,
3947,
3314,
18,
31295,
12,
17916,... |
pos1 = chunk.abs_to_base(atom.posn()) color = atom.drawing_color() | pos1 = atom.posn() if highlighted: color = yellow else: pos1 = chunk.abs_to_base(pos1) color = atom.drawing_color() | def drawchunk_realtime(self, glpane, chunk, highlighted=False): if chunk.protein: for aa in chunk.protein.get_amino_acids(): if chunk.protein.is_expanded(aa): for atom in aa.get_atom_list(): pos1 = chunk.abs_to_base(atom.posn()) color = atom.drawing_color() drawsphere(color, pos1, 0.25, 1) for bond in atom.bonds: if at... | f2cb733ad41bebd3fb250472646d9b0d50601af8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/f2cb733ad41bebd3fb250472646d9b0d50601af8/ProteinChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
6551,
67,
7688,
957,
12,
2890,
16,
5118,
29009,
16,
2441,
16,
24375,
33,
8381,
4672,
309,
2441,
18,
24807,
30,
364,
12391,
316,
2441,
18,
24807,
18,
588,
67,
301,
15020,
67,
1077... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
6551,
67,
7688,
957,
12,
2890,
16,
5118,
29009,
16,
2441,
16,
24375,
33,
8381,
4672,
309,
2441,
18,
24807,
30,
364,
12391,
316,
2441,
18,
24807,
18,
588,
67,
301,
15020,
67,
1077... |
raise NotImplementedError | raise NotImplementedError | def execute_module(self): """This should make the model do whatever processing it was designed to do. | 9c8307aa7ce1ae4cab8f3771902bbbb04d7b172b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/9c8307aa7ce1ae4cab8f3771902bbbb04d7b172b/moduleBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2978,
12,
2890,
4672,
3536,
2503,
1410,
1221,
326,
938,
741,
15098,
4929,
518,
1703,
26584,
358,
741,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2978,
12,
2890,
4672,
3536,
2503,
1410,
1221,
326,
938,
741,
15098,
4929,
518,
1703,
26584,
358,
741,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self('export %s'%options) | self('export %s %s'%(options, ' '.join([str(x) for x in revs]))) | def export(self, filename=None, text=False, options=''): r""" dump the header and diffs for one or more changesets | 26f1ce262139178120e57ecce50a701a3c58d851 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/26f1ce262139178120e57ecce50a701a3c58d851/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
1544,
33,
7036,
16,
977,
33,
8381,
16,
702,
2218,
11,
4672,
436,
8395,
4657,
326,
1446,
471,
15250,
364,
1245,
578,
1898,
3478,
2413,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
1544,
33,
7036,
16,
977,
33,
8381,
16,
702,
2218,
11,
4672,
436,
8395,
4657,
326,
1446,
471,
15250,
364,
1245,
578,
1898,
3478,
2413,
2,
-100,
-100,
-100,
-100,
-10... |
self.refresh(repo, msg=None, short=True) | self.refresh(repo, short=True) | def new(self, repo, patch, msg=None, force=None): if os.path.exists(self.join(patch)): raise util.Abort(_('patch "%s" already exists') % patch) commitfiles = [] (c, a, r, d, u) = repo.changes(None, None) if c or a or d or r: if not force: raise util.Abort(_("local changes found, refresh first")) commitfiles = c + a + r... | cc665da59721a9e3227176be79757544d794638f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/cc665da59721a9e3227176be79757544d794638f/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
3538,
16,
4729,
16,
1234,
33,
7036,
16,
2944,
33,
7036,
4672,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
5701,
12,
2272,
3719,
30,
1002,
1709,
18,
13572,
24899,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
3538,
16,
4729,
16,
1234,
33,
7036,
16,
2944,
33,
7036,
4672,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
5701,
12,
2272,
3719,
30,
1002,
1709,
18,
13572,
24899,
2... |
caller_uri = inv.caller_uri | def _handle_SCInvitationChangedState(self, inv, data): if data.state == "INCOMING": remote_media = [media.media for media in inv.get_offered_remote_sdp().media if media.port != 0] # TODO: check if the To header/request URI is one of ours if not any(supported_media in remote_media for supported_media in ["audio", "messa... | dbdc297236604e2b63fa64299ba3a9fe8b6fa6c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/dbdc297236604e2b63fa64299ba3a9fe8b6fa6c1/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
2312,
19896,
5033,
1119,
12,
2890,
16,
2198,
16,
501,
4672,
309,
501,
18,
2019,
422,
315,
706,
4208,
1360,
6877,
2632,
67,
5829,
273,
306,
5829,
18,
5829,
364,
3539,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4110,
67,
2312,
19896,
5033,
1119,
12,
2890,
16,
2198,
16,
501,
4672,
309,
501,
18,
2019,
422,
315,
706,
4208,
1360,
6877,
2632,
67,
5829,
273,
306,
5829,
18,
5829,
364,
3539,
316... | |
SelfExtractingExe = os.path.join(STAGE, "cm3-min-" + M3OSTYPE + "-" + Target + "-" + CM3VERSION + EXE) | SelfExtractingExe = FormArchiveName(PackageSetName, EXE) | def Callback(Arg, Directory, Names): if (os.path.basename(Directory).endswith("-symbols")): return for Name in Names: Extension = os.path.splitext(Name)[1].lower() if (Extension == ".pdb"): shutil.move(os.path.join(Directory, Name), SymbolsRoot) elif (Extension == ".m3" or Extension == ".m3web" # Can be useful for boot... | 755d5509a1ef6d2b4c0bcd3f4c3aa96d534b8788 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/755d5509a1ef6d2b4c0bcd3f4c3aa96d534b8788/make-dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8444,
12,
4117,
16,
8930,
16,
5276,
4672,
309,
261,
538,
18,
803,
18,
13909,
12,
2853,
2934,
5839,
1918,
2932,
17,
15536,
6,
3719,
30,
327,
364,
1770,
316,
5276,
30,
10021,
273,
1140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8444,
12,
4117,
16,
8930,
16,
5276,
4672,
309,
261,
538,
18,
803,
18,
13909,
12,
2853,
2934,
5839,
1918,
2932,
17,
15536,
6,
3719,
30,
327,
364,
1770,
316,
5276,
30,
10021,
273,
1140,
... |
self.assert_(l.__add__.__self__ is l) self.assert_(l.__add__.__objclass__ is list) | if hasattr(l.__add__, '__self__'): self.assert_(l.__add__.__self__ is l) self.assert_(l.__add__.__objclass__ is list) else: self.assert_(l.__add__.im_self is l) self.assert_(l.__add__.im_class is list) | def test_method_wrapper(self): # Testing method-wrapper objects... # <type 'method-wrapper'> did not support any reflection before 2.5 | 4a0d8c36fabcd955e24a465c9276c005529fa702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4a0d8c36fabcd955e24a465c9276c005529fa702/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2039,
67,
8376,
12,
2890,
4672,
468,
7766,
310,
707,
17,
8376,
2184,
2777,
468,
411,
723,
296,
2039,
17,
8376,
29256,
5061,
486,
2865,
1281,
5463,
1865,
576,
18,
25,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
2039,
67,
8376,
12,
2890,
4672,
468,
7766,
310,
707,
17,
8376,
2184,
2777,
468,
411,
723,
296,
2039,
17,
8376,
29256,
5061,
486,
2865,
1281,
5463,
1865,
576,
18,
25,
2,
-100,... |
self.parser.document.appendChild(Comment(data)) | self.parser.document.appendChild(CommentNode(data)) | def processComment(self, data): self.parser.document.appendChild(Comment(data)) | de0df9923b50d1587617c6add825f12420c4c9ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/de0df9923b50d1587617c6add825f12420c4c9ce/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
4469,
12,
2890,
16,
501,
4672,
365,
18,
4288,
18,
5457,
18,
6923,
1763,
12,
4469,
12,
892,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
4469,
12,
2890,
16,
501,
4672,
365,
18,
4288,
18,
5457,
18,
6923,
1763,
12,
4469,
12,
892,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
GC_PARAMS = {'space_size': llmemory.arena(lltype.Signed, 512)} | GC_PARAMS = {'space_size': 2048} | def setup_class(cls): py.test.skip("in-progress") | 08f98376e896123e2a734830d3d7a5bf2afac109 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/08f98376e896123e2a734830d3d7a5bf2afac109/test_transformed_gc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1106,
12,
6429,
4672,
2395,
18,
3813,
18,
7457,
2932,
267,
17,
8298,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1106,
12,
6429,
4672,
2395,
18,
3813,
18,
7457,
2932,
267,
17,
8298,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
isAvailable = getattr(aq_base(self.tool), 'isSelectorAvailable', None) if isAvailable is not None: return isAvailable() | showSelector = getattr(aq_base(self.tool), 'showSelector', None) if showSelector is not None: return showSelector() | def available(self): if self.tool is not None: # Allow the tool to have a say in viewlet visibility isAvailable = getattr(aq_base(self.tool), 'isSelectorAvailable', None) if isAvailable is not None: return isAvailable() # BBB return bool(self.tool.use_cookie_negotiation) return False | 2ce8bb1888fbb88086f848bbf4511768b9d8d61e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12234/2ce8bb1888fbb88086f848bbf4511768b9d8d61e/selector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
12,
2890,
4672,
309,
365,
18,
6738,
353,
486,
599,
30,
468,
7852,
326,
5226,
358,
1240,
279,
12532,
316,
1476,
1810,
9478,
225,
2405,
4320,
273,
3869,
12,
69,
85,
67,
1969,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2319,
12,
2890,
4672,
309,
365,
18,
6738,
353,
486,
599,
30,
468,
7852,
326,
5226,
358,
1240,
279,
12532,
316,
1476,
1810,
9478,
225,
2405,
4320,
273,
3869,
12,
69,
85,
67,
1969,
12,
... |
'test_singlebond_stretch_H2N_PH2', 'test_reordering_jigs_or_chunks_03_thermo_rmotor_anchor_stat_reordering_8', 'test_motors_001_linearmotor_0_force_and_0_stiffness', 'test_rigid_organics_C10H12', 'test_singlebond_stretch_HO_OH', 'test_singlebond_stretch_H2P_AlH2', | 'test_heteroatom_organics_ADAMframe_S_Cs', 'test_heteroatom_organics_CH3BH2', 'test_floppy_organics_C6H12b', 'test_jigs_to_several_atoms_003_linearmotor_to_50_atoms', 'test_motors_023_rotarymotor_two_planet_gears', 'test_amino_acids_tyr_l_aminoacid', 'test_motors_and_anchors_004_rotorymotor_against_anchor_2', 'test_mot... | def lastLineOfReadings(f): lines = readlines(f) n = None for i in range(len(lines)): if lines[i].startswith("# Done:"): n = i - 1 break if n == None: return None return map(string.atof, lines[n].split()) | 0b789e7ec79dfae45d6cb15c2976c03b0322f72f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0b789e7ec79dfae45d6cb15c2976c03b0322f72f/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31661,
951,
1994,
899,
12,
74,
4672,
2362,
273,
17546,
12,
74,
13,
290,
273,
599,
364,
277,
316,
1048,
12,
1897,
12,
3548,
3719,
30,
309,
2362,
63,
77,
8009,
17514,
1918,
2932,
7,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31661,
951,
1994,
899,
12,
74,
4672,
2362,
273,
17546,
12,
74,
13,
290,
273,
599,
364,
277,
316,
1048,
12,
1897,
12,
3548,
3719,
30,
309,
2362,
63,
77,
8009,
17514,
1918,
2932,
7,
86... |
self.dragCtrl.Show(true) self.dragCtrl = None | self.selection.Show(true) self.dragging = false self.setSelection() | def moveRelease(self): if self.dragTag: # XXX nasty passing a None event self.OnSizeEnd(None) self.showTags() if self.dragCtrl: # XXX Have to hide and show to clean up artifacts, refreshing # XXX is not sufficient. Show/hiding seems to screw up Z order self.dragCtrl.Show(false) | 6a94c8e2a83053605e69b232eebca9f6606a86d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6a94c8e2a83053605e69b232eebca9f6606a86d3/SelectionTags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
7391,
12,
2890,
4672,
309,
365,
18,
15997,
1805,
30,
468,
11329,
290,
689,
93,
9588,
279,
599,
871,
365,
18,
1398,
1225,
1638,
12,
7036,
13,
365,
18,
4500,
3453,
1435,
309,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3635,
7391,
12,
2890,
4672,
309,
365,
18,
15997,
1805,
30,
468,
11329,
290,
689,
93,
9588,
279,
599,
871,
365,
18,
1398,
1225,
1638,
12,
7036,
13,
365,
18,
4500,
3453,
1435,
309,
365,
... |
<form name="step1_form2" action="%s/admin2/bibcirculation/register_ill_article_request_step3" method="get" > | <form name="step1_form2" action="%s/admin2/bibcirculation/register_ill_article_request_step3" method="post" > | def tmpl_register_ill_article_request_step2(self, article_info, request_details, result, key, string, infos, ln): """ @param article_info: information about article @type article_info: tuple | 648f0875a183c65548d6b2535cea8cf25a2a9827 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/648f0875a183c65548d6b2535cea8cf25a2a9827/bibcirculation_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4861,
67,
737,
67,
11480,
67,
2293,
67,
4119,
22,
12,
2890,
16,
7559,
67,
1376,
16,
590,
67,
6395,
16,
563,
16,
498,
16,
533,
16,
10626,
16,
7211,
4672,
3536,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4861,
67,
737,
67,
11480,
67,
2293,
67,
4119,
22,
12,
2890,
16,
7559,
67,
1376,
16,
590,
67,
6395,
16,
563,
16,
498,
16,
533,
16,
10626,
16,
7211,
4672,
3536,
632,
891,
... |
if proxypass != config['proxypass'] and proxypass!='__dummy__': res[0] = 407 config['proxypass'] = base64.encodestring(proxypass) | if proxypass != config['proxypass']: config['proxypass'] = proxypass | def _form_proxypass (proxypass, res): if proxypass != config['proxypass'] and proxypass!='__dummy__': res[0] = 407 config['proxypass'] = base64.encodestring(proxypass) info['proxypass'] = True | 9cd550b557fa30d7960efcc9b95202a9a391f449 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9cd550b557fa30d7960efcc9b95202a9a391f449/config_html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
687,
67,
20314,
25567,
261,
20314,
25567,
16,
400,
4672,
309,
8617,
25567,
480,
642,
3292,
20314,
25567,
3546,
30,
642,
3292,
20314,
25567,
3546,
273,
8617,
25567,
1123,
3292,
20314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
687,
67,
20314,
25567,
261,
20314,
25567,
16,
400,
4672,
309,
8617,
25567,
480,
642,
3292,
20314,
25567,
3546,
30,
642,
3292,
20314,
25567,
3546,
273,
8617,
25567,
1123,
3292,
20314,
... |
self.__frame.grid(row=3, column=0, ipadx=5) | self.__frame.grid(row=3, column=0, ipadx=5, sticky='NSEW') | def __init__(self, switchboard, master=None): self.__sb = switchboard self.__frame = Frame(master, relief=RAISED, borderwidth=1) self.__frame.grid(row=3, column=0, ipadx=5) # create the chip that will display the currently selected color # exactly self.__sframe = Frame(self.__frame) self.__sframe.grid(row=0, column=0) ... | 2ede3ce7418f919952b81559743fc123b620c89a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2ede3ce7418f919952b81559743fc123b620c89a/ChipViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1620,
3752,
16,
4171,
33,
7036,
4672,
365,
16186,
18366,
273,
1620,
3752,
365,
16186,
3789,
273,
8058,
12,
7525,
16,
14719,
10241,
33,
2849,
45,
18204,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1620,
3752,
16,
4171,
33,
7036,
4672,
365,
16186,
18366,
273,
1620,
3752,
365,
16186,
3789,
273,
8058,
12,
7525,
16,
14719,
10241,
33,
2849,
45,
18204,
16,... |
for keysym, code in self._keymap_syms.items(): if code >= first_keycode and code < lastcode: symcodes = self._keymap_syms[keysym] i = 0 while i < len(symcodes): if symcodes[i][1] == code: del symcodes[i] else: i = i + 1 | for keysym, codes in self._keymap_syms.items(): i = 0 while i < len(codes): code = codes[i][1] if code >= first_keycode and code < lastcode: del codes[i] else: i = i + 1 | def _update_keymap(self, first_keycode, count): | 80f735cdc64cf9832b6079c69a006032251351c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8084/80f735cdc64cf9832b6079c69a006032251351c1/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
856,
1458,
12,
2890,
16,
1122,
67,
856,
710,
16,
1056,
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... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
856,
1458,
12,
2890,
16,
1122,
67,
856,
710,
16,
1056,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.entry_from_key[key] = entry assert entry not in self.module_from_name self.loaded_key_pkl.add(key_pkl) | if key not in self.entry_from_key: self.entry_from_key[key] = entry assert entry not in self.module_from_name self.loaded_key_pkl.add(key_pkl) | def refresh(self): """Update self.entry_from_key by walking the cache directory structure. | 50924b236bea384859d05682d80090ba4ce192aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/50924b236bea384859d05682d80090ba4ce192aa/cmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
4672,
3536,
1891,
365,
18,
4099,
67,
2080,
67,
856,
635,
5442,
310,
326,
1247,
1867,
3695,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
4672,
3536,
1891,
365,
18,
4099,
67,
2080,
67,
856,
635,
5442,
310,
326,
1247,
1867,
3695,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
except IndentationError: pass | def tabnanny(self, filename): f = open(filename, 'r') try: tabnanny.process_tokens(tokenize.generate_tokens(f.readline)) except tokenize.TokenError, msg: msgtxt, (lineno, start) = msg self.editwin.gotoline(lineno) self.errorbox("Tabnanny Tokenizing Error", "Token Error: %s" % msgtxt) return False except tabnanny.NannyN... | 6493ade54db699f22cb309024e1d1a93cb509484 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/6493ade54db699f22cb309024e1d1a93cb509484/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
82,
1072,
93,
12,
2890,
16,
1544,
4672,
284,
273,
1696,
12,
3459,
16,
296,
86,
6134,
775,
30,
3246,
82,
1072,
93,
18,
2567,
67,
7860,
12,
2316,
554,
18,
7163,
67,
7860,
12,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3246,
82,
1072,
93,
12,
2890,
16,
1544,
4672,
284,
273,
1696,
12,
3459,
16,
296,
86,
6134,
775,
30,
3246,
82,
1072,
93,
18,
2567,
67,
7860,
12,
2316,
554,
18,
7163,
67,
7860,
12,
7... | |
tag = tag.split(':')[-1] return self.handle_data('<%s%s>' % (tag, ''.join([' %s="%s"' % t for t in attrs])), escape=0) | if tag.find(':') <> -1: prefix, tag = tag.split(':', 1) namespace = self.namespacesInUse.get(prefix, '') if tag=='math' and namespace=='http://www.w3.org/1998/Math/MathML': attrs.append(('xmlns',namespace)) if tag=='svg' and namespace=='http://www.w3.org/2000/svg': attrs.append(('xmlns',namespace)) if tag == 'svg': sel... | def unknown_starttag(self, tag, attrs): if _debug: sys.stderr.write('start %s with %s\n' % (tag, attrs)) # normalize attrs attrs = [(k.lower(), v) for k, v in attrs] attrs = [(k, k in ('rel', 'type') and v.lower() or v) for k, v in attrs] # track xml:base and xml:lang attrsD = dict(attrs) baseuri = attrsD.get('xml:bas... | 44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
4672,
309,
389,
4148,
30,
2589,
18,
11241,
18,
2626,
2668,
1937,
738,
87,
598,
738,
87,
64,
82,
11,
738,
261,
2692,
16,
3422,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5917,
67,
1937,
2692,
12,
2890,
16,
1047,
16,
3422,
4672,
309,
389,
4148,
30,
2589,
18,
11241,
18,
2626,
2668,
1937,
738,
87,
598,
738,
87,
64,
82,
11,
738,
261,
2692,
16,
3422,
3719... |
painter.fillPath(path, QtGui.QBrush(QtGui.QColor(255, 255, 225))) | painter.drawPath(path) | def paintEvent(self, evt): mask = QtGui.QRegion() # 10, 10, self.width() - 20, self.height() - 20) | 2572f9ce3681352f8766a645fd94d06e0c3de8ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1208/2572f9ce3681352f8766a645fd94d06e0c3de8ce/gui_pyqt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
1133,
12,
2890,
16,
6324,
4672,
3066,
273,
23425,
18,
53,
5165,
1435,
468,
1728,
16,
1728,
16,
365,
18,
2819,
1435,
300,
4200,
16,
365,
18,
4210,
1435,
300,
4200,
13,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
1133,
12,
2890,
16,
6324,
4672,
3066,
273,
23425,
18,
53,
5165,
1435,
468,
1728,
16,
1728,
16,
365,
18,
2819,
1435,
300,
4200,
16,
365,
18,
4210,
1435,
300,
4200,
13,
2,
-100,
... |
print Config | def Initialize(customConfig = "ProbeConfig"): "This function initializes the Gratia metering engine" "We connect/register with the collector and load" "this meter's configuration" "We also load the list of record files that have not" "yet been sent" global Config print "Init" print Config if len(BackupDirList) == 0: #... | 56bee758f7cfb2158e4bf6f00e2591f22068707b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/56bee758f7cfb2158e4bf6f00e2591f22068707b/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9190,
12,
3662,
809,
273,
315,
21042,
809,
6,
4672,
315,
2503,
445,
11643,
326,
611,
17048,
1155,
16565,
310,
4073,
6,
315,
3218,
3077,
19,
4861,
598,
326,
8543,
471,
1262,
6,
315,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9190,
12,
3662,
809,
273,
315,
21042,
809,
6,
4672,
315,
2503,
445,
11643,
326,
611,
17048,
1155,
16565,
310,
4073,
6,
315,
3218,
3077,
19,
4861,
598,
326,
8543,
471,
1262,
6,
315,
221... | |
os.path.basename(sys.executable)) | os.path.basename(PYTHON)) | def test_name(self): devnull = open(os.devnull, 'r+') self.proc = subprocess.Popen(sys.executable, stdout=devnull, stderr=devnull) time.sleep(0.1) # XXX: provisional, fix needed self.assertEqual(psutil.Process(self.proc.pid).name, os.path.basename(sys.executable)) | 847d3cb18d5e0c74ad4f89a7562596550b05165c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7296/847d3cb18d5e0c74ad4f89a7562596550b05165c/test_psutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
529,
12,
2890,
4672,
4461,
2011,
273,
1696,
12,
538,
18,
5206,
2011,
16,
296,
86,
15,
6134,
365,
18,
9381,
273,
6652,
18,
52,
3190,
12,
9499,
18,
17751,
16,
3909,
33,
5206,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
529,
12,
2890,
4672,
4461,
2011,
273,
1696,
12,
538,
18,
5206,
2011,
16,
296,
86,
15,
6134,
365,
18,
9381,
273,
6652,
18,
52,
3190,
12,
9499,
18,
17751,
16,
3909,
33,
5206,... |
sqlite_version = int(m.group(1)) if sqlite_version >= MIN_SQLITE_VERSION_NUMBER: | sqlite_version = m.group(1) sqlite_version_tuple = tuple([int(x) for x in sqlite_version.split(".")]) if sqlite_version_tuple >= MIN_SQLITE_VERSION_NUMBER: | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 36d3e6cad82fe428bb75746db0236ad4e54a1cca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/36d3e6cad82fe428bb75746db0236ad4e54a1cca/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
result = self.getRemoteCredentials() user = result['username'] group = result['group'] return fcDB.deleteUser(userName,user,group) | return fcDB.deleteUser(userName,self.getRemoteCredentials()) | def export_deleteUser(self,userName): """ Delete user from the File Catalog """ result = self.getRemoteCredentials() user = result['username'] group = result['group'] return fcDB.deleteUser(userName,user,group) | 5f300b050f8ecf30290e6baab5a4c96459704f50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5f300b050f8ecf30290e6baab5a4c96459704f50/FileCatalogHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
3733,
1299,
12,
2890,
16,
1355,
461,
4672,
3536,
2504,
729,
628,
326,
1387,
14953,
3536,
327,
8036,
2290,
18,
3733,
1299,
12,
1355,
461,
16,
2890,
18,
588,
5169,
6163,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
3733,
1299,
12,
2890,
16,
1355,
461,
4672,
3536,
2504,
729,
628,
326,
1387,
14953,
3536,
327,
8036,
2290,
18,
3733,
1299,
12,
1355,
461,
16,
2890,
18,
588,
5169,
6163,
10756,
... |
- `sat` (int, default 0) --saturate at primes up to sat, or at all primes if sat=0. | - ``sat`` (int, default 0) -- saturate at primes up to ``sat``, or at *all* primes if ``sat`` is zero. | def process(self, v, sat=0): """ This function allows one to add points to a mwrank_MordellWeil object. | c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
331,
16,
5942,
33,
20,
4672,
3536,
1220,
445,
5360,
1245,
358,
527,
3143,
358,
279,
14721,
11500,
67,
49,
517,
1165,
3218,
330,
733,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
331,
16,
5942,
33,
20,
4672,
3536,
1220,
445,
5360,
1245,
358,
527,
3143,
358,
279,
14721,
11500,
67,
49,
517,
1165,
3218,
330,
733,
18,
2,
-100,
-100,
-100,
-100,
... |
del(self.spritedict[sprite]) | del self.spritedict[sprite] | def remove_internal(self, sprite): r = self.spritedict[sprite] if r is not 0: self.lostsprites.append(r) del(self.spritedict[sprite]) | d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
7236,
12,
2890,
16,
16839,
4672,
436,
273,
365,
18,
1752,
583,
329,
933,
63,
1752,
796,
65,
309,
436,
353,
486,
374,
30,
365,
18,
383,
334,
1752,
24047,
18,
6923,
12,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
67,
7236,
12,
2890,
16,
16839,
4672,
436,
273,
365,
18,
1752,
583,
329,
933,
63,
1752,
796,
65,
309,
436,
353,
486,
374,
30,
365,
18,
383,
334,
1752,
24047,
18,
6923,
12,
86,
... |
raise ValueError, "output types must be a string" for char in self.otypes: if char not in typecodes['All']: raise ValueError, "invalid typecode specified" | raise ValueError, "output types must be a string of typecode characters or a list of data-types" | def __init__(self, pyfunc, otypes='', doc=None): self.thefunc = pyfunc self.ufunc = None nin, ndefault = _get_nargs(pyfunc) if nin == 0 and ndefault == 0: self.nin = None self.nin_wo_defaults = None else: self.nin = nin self.nin_wo_defaults = nin - ndefault self.nout = None if doc is None: self.__doc__ = pyfunc.__doc__... | cf818fd06c8a9a7b28f09215eb503372f3bd9373 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/cf818fd06c8a9a7b28f09215eb503372f3bd9373/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2395,
644,
16,
320,
2352,
2218,
2187,
997,
33,
7036,
4672,
365,
18,
5787,
644,
273,
2395,
644,
365,
18,
89,
644,
273,
599,
290,
267,
16,
290,
1886,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2395,
644,
16,
320,
2352,
2218,
2187,
997,
33,
7036,
4672,
365,
18,
5787,
644,
273,
2395,
644,
365,
18,
89,
644,
273,
599,
290,
267,
16,
290,
1886,
273... |
newfile = "%s_%d_%d.%s" % (basecomp[0], self.id, int(time.time()), basecomp[1]) | if len(basecomp) > 1: newfile = "%s_%d_%d.%s" % (basecomp[0], self.id, int(time.time()), basecomp[len(basecomp)-1]) else: newfile = "%s_%d_%d" % (basecomp[0], self.id, int(time.time())) | def addEventFromFile(self, start, file, copyfile=False): ''' Adds an event to this instrument, and attaches the specified file to it. start - The offset time in seconds file - file path copyfile - if True copy file to project audio dir undo : DeleteEvent(%(temp)d) ''' if copyfile: basename = os.path.split(file.repla... | b536c63d4e7fd5dbee6389effa8b8dbac88b2b6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/b536c63d4e7fd5dbee6389effa8b8dbac88b2b6c/Instrument.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21781,
13087,
12,
2890,
16,
787,
16,
585,
16,
29310,
33,
8381,
4672,
9163,
15605,
392,
871,
358,
333,
10353,
16,
471,
31816,
326,
1269,
585,
358,
518,
18,
225,
787,
300,
1021,
1384,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21781,
13087,
12,
2890,
16,
787,
16,
585,
16,
29310,
33,
8381,
4672,
9163,
15605,
392,
871,
358,
333,
10353,
16,
471,
31816,
326,
1269,
585,
358,
518,
18,
225,
787,
300,
1021,
1384,
81... |
pipeline.CondorDAGNode.set_category('housekeeper') | pipeline.CondorDAGNode.set_category(self,'housekeeper') | def __init__(self,job): #Expects to run CondorDAGJob object for tracksearch pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self) pipeline.CondorDAGNode.set_category('housekeeper') | 0ccd8da150ad321e571cab16b1f3938967afeda1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/0ccd8da150ad321e571cab16b1f3938967afeda1/tracksearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4688,
4672,
468,
11988,
87,
358,
1086,
735,
72,
280,
40,
1781,
2278,
733,
364,
3298,
3072,
5873,
18,
12441,
280,
40,
1781,
907,
16186,
2738,
972,
12,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4688,
4672,
468,
11988,
87,
358,
1086,
735,
72,
280,
40,
1781,
2278,
733,
364,
3298,
3072,
5873,
18,
12441,
280,
40,
1781,
907,
16186,
2738,
972,
12,
289... |
if isinstance(reason.value, CertificateError): | if isinstance(reason.value, CertificateError) or self.connection_lost: | def clientConnectionLost(self, connector, reason): if reason.type != ConnectionDone: log.error("Connection with dispatcher at %(host)s:%(port)d was lost: %%s" % connector.__dict__ % reason.value) else: log.msg("Connection with dispatcher at %(host)s:%(port)d was closed" % connector.__dict__) if self.parent.connector_ne... | 44d970c9026c7652a5255ce8af75cfe9976cb4ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3445/44d970c9026c7652a5255ce8af75cfe9976cb4ce/relay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1004,
1952,
19024,
12,
2890,
16,
8703,
16,
3971,
4672,
309,
3971,
18,
723,
480,
4050,
7387,
30,
613,
18,
1636,
2932,
1952,
598,
7393,
622,
8975,
2564,
13,
87,
5319,
12,
655,
13,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1004,
1952,
19024,
12,
2890,
16,
8703,
16,
3971,
4672,
309,
3971,
18,
723,
480,
4050,
7387,
30,
613,
18,
1636,
2932,
1952,
598,
7393,
622,
8975,
2564,
13,
87,
5319,
12,
655,
13,
72,
... |
try: logFile.flush() logFile.seek(0,0) print logFile.read().strip() except IOError: pass | logFile.flush() logFile.seek(0,0) if failed: logFiles.append((patchlevel, logFile)) continue log.info(logFile.read().strip()) | def patchme(self, patch, f, destDir, patchlevels): for patchlevel in patchlevels: patchArgs = [ 'patch', '-d', destDir, '-p%s'%patchlevel, ] if self.backup: patchArgs.extend(['-b', '-z', self.backup]) if self.extraArgs: patchArgs.extend(self.extraArgs) | d435a2698ec2144edd3fa5e5b475ec8461b2eded /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/d435a2698ec2144edd3fa5e5b475ec8461b2eded/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
3501,
12,
2890,
16,
4729,
16,
284,
16,
26231,
16,
4729,
12095,
4672,
364,
4729,
2815,
316,
4729,
12095,
30,
4729,
2615,
273,
306,
296,
2272,
2187,
2400,
72,
2187,
26231,
16,
2400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4729,
3501,
12,
2890,
16,
4729,
16,
284,
16,
26231,
16,
4729,
12095,
4672,
364,
4729,
2815,
316,
4729,
12095,
30,
4729,
2615,
273,
306,
296,
2272,
2187,
2400,
72,
2187,
26231,
16,
2400,
... |
return eval(maxima.eval("bessel_i(%s,%s)"%(RR(nu),RR(z)))) | return eval(maxima.eval("bessel_i(%s,%s)"%(float(nu),float(z)))) | def bessel_I(nu,z,alg = "pari",prec=53): r""" Implements the "I-Bessel function", or "modified Bessel function, 1st kind", with index (or "order") nu and argument z. INPUT: nu -- a real (or complex, for pari) number z -- a real (positive) alg - "pari" or "maxima" prec - real precision (for Pari only) DEFINITION: \be... | 58182f025c83380408aaf42e8d8809df714f6650 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/58182f025c83380408aaf42e8d8809df714f6650/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
45,
12,
13053,
16,
94,
16,
18413,
273,
315,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
29704,
326,
315,
45,
17,
38,
403,
292,
445,
3113,
578,
315,
7342,
605,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
324,
403,
292,
67,
45,
12,
13053,
16,
94,
16,
18413,
273,
315,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
29704,
326,
315,
45,
17,
38,
403,
292,
445,
3113,
578,
315,
7342,
605,... |
def full_tag_path (self, tag): | def full_tag_path(self, tag): | def full_tag_path (self, tag): """Returns the absolute tag path (see above), prefixed with /tag. | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
2692,
67,
803,
12,
2890,
16,
1047,
4672,
3536,
1356,
326,
4967,
1047,
589,
261,
5946,
5721,
3631,
12829,
598,
342,
2692,
18,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
2692,
67,
803,
12,
2890,
16,
1047,
4672,
3536,
1356,
326,
4967,
1047,
589,
261,
5946,
5721,
3631,
12829,
598,
342,
2692,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return q.qseries(repo, start=end, length=1, summary=opts.get('summary')) | q.qseries(repo, start=end, length=1, summary=opts.get('summary')) | def next(ui, repo, **opts): """print the name of the next patch Returns 0 on success.""" q = repo.mq end = q.series_end() if end == len(q.series): ui.write(_("all patches applied\n")) return 1 return q.qseries(repo, start=end, length=1, summary=opts.get('summary')) | f7d19a64abff468b5205ded78992362f06ad58ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/f7d19a64abff468b5205ded78992362f06ad58ea/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
4881,
16,
3538,
16,
2826,
4952,
4672,
3536,
1188,
326,
508,
434,
326,
1024,
4729,
225,
2860,
374,
603,
2216,
12123,
1043,
273,
3538,
18,
11636,
679,
273,
1043,
18,
10222,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1024,
12,
4881,
16,
3538,
16,
2826,
4952,
4672,
3536,
1188,
326,
508,
434,
326,
1024,
4729,
225,
2860,
374,
603,
2216,
12123,
1043,
273,
3538,
18,
11636,
679,
273,
1043,
18,
10222,
67,
... |
if self.colWidths is None\ or param.format_size(width) > self.colWidths[self.current_x]: self.colWidths[self.current_x] = param.format_size(width) | if self.colWidths[self.current_x] is None\ or self.parameters.format_size(width) > self.colWidths[self.current_x]: self.colWidths[self.current_x] = self.parameters.format_size(width) def add_lineHeight(self, value): l = len(self.rowHeights) if l <= self.current_y: none_list = [ None for y in xrange(l, self.current_y+... | def add_colWidth(self, width): l = len(self.colWidths) if not self.current_y and l <= self.current_x: none_list = [ None for x in xrange(l, self.current_x+1) ] self.colWidths.extend(none_list) if self.colWidths is None\ or param.format_size(width) > self.colWidths[self.current_x]: self.colWidths[self.current_x] = param... | 7c10a0f2f4581bb047513862a6d61d125f4322e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/7c10a0f2f4581bb047513862a6d61d125f4322e2/rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1293,
2384,
12,
2890,
16,
1835,
4672,
328,
273,
562,
12,
2890,
18,
1293,
22407,
13,
309,
486,
365,
18,
2972,
67,
93,
471,
328,
1648,
365,
18,
2972,
67,
92,
30,
6555,
67,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1293,
2384,
12,
2890,
16,
1835,
4672,
328,
273,
562,
12,
2890,
18,
1293,
22407,
13,
309,
486,
365,
18,
2972,
67,
93,
471,
328,
1648,
365,
18,
2972,
67,
92,
30,
6555,
67,
1... |
orio_t_total = orio_t_total / REPS write(*,"(A,ES20.13,A)",advance="no") "{'!@ coordinate @!' : ", orio_t_total, "}" | write(*,"(A,ES20.13,A)",advance="no") "{'!@ coordinate @!' : ", orio_delta_time, "}" | typedef struct { int testid; char coord[1024]; double tm; | fc1ef7a9e887e59bf6a1a48f766a9ac26ee4749e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8417/fc1ef7a9e887e59bf6a1a48f766a9ac26ee4749e/skeleton_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
1958,
288,
509,
1842,
350,
31,
1149,
2745,
63,
2163,
3247,
15533,
1645,
6118,
31,
2,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
1958,
288,
509,
1842,
350,
31,
1149,
2745,
63,
2163,
3247,
15533,
1645,
6118,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cur_text = child.tail or '' | def write(self, text, add_p_style=True, add_t_style=True): """ see mixed content http://effbot.org/zone/element-infoset.htm#mixed-content Writing is complicated by requirements of odp to ignore duplicate spaces together. Deal with this by splitting on white spaces then dealing with the '' (empty strings) which would b... | 9876bdcc84778ec44f8a2ec0608c042fd79f81cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/9876bdcc84778ec44f8a2ec0608c042fd79f81cf/preso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
16,
527,
67,
84,
67,
4060,
33,
5510,
16,
527,
67,
88,
67,
4060,
33,
5510,
4672,
3536,
2621,
7826,
913,
1062,
2207,
17098,
4819,
18,
3341,
19,
3486,
19,
2956,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
12,
2890,
16,
977,
16,
527,
67,
84,
67,
4060,
33,
5510,
16,
527,
67,
88,
67,
4060,
33,
5510,
4672,
3536,
2621,
7826,
913,
1062,
2207,
17098,
4819,
18,
3341,
19,
3486,
19,
2956,... | |
) | ) | def configuration(parent_package=''): if parent_package: parent_package += '.' local_path = get_path(__name__) config = default_config_dict() if parent_package: config['packages'].append(parent_package+'integrate') #config['packages'].append(parent_package+'integrate.tests') quadpack = glob(os.path.join(local_path,'q... | 1967d709e5c24c55d63bab3c4571e2599e5ca6db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/1967d709e5c24c55d63bab3c4571e2599e5ca6db/setup_integrate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
11,
4672,
309,
982,
67,
5610,
30,
982,
67,
5610,
1011,
2611,
1191,
67,
803,
273,
336,
67,
803,
12,
972,
529,
972,
13,
642,
273,
805,
67,
1425,
67,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1664,
12,
2938,
67,
5610,
2218,
11,
4672,
309,
982,
67,
5610,
30,
982,
67,
5610,
1011,
2611,
1191,
67,
803,
273,
336,
67,
803,
12,
972,
529,
972,
13,
642,
273,
805,
67,
1425,
67,
1... |
if (sys.platform != "win32" and not win_cross_compiling and | if (sys.platform != "win32" and not win_compiling and | def run (self): if (sys.platform != "win32" and not win_cross_compiling and (self.distribution.has_ext_modules() or self.distribution.has_c_libraries())): raise DistutilsPlatformError \ ("distribution contains extensions and/or C libraries; " "must be compiled on a Windows 32 platform") | 44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
471,
486,
5657,
67,
2919,
4973,
471,
261,
2890,
18,
16279,
18,
5332,
67,
408,
67,
6400,
1435,
578,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
4672,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
471,
486,
5657,
67,
2919,
4973,
471,
261,
2890,
18,
16279,
18,
5332,
67,
408,
67,
6400,
1435,
578,
365,
18,
... |
def test_alignment(image1, image2, imdata, method='ncc', lite=0, smhist=0, alpha=0.0, beta=0.0, gamma=0.0, ret_histo=0): imdata['parms'][0] = alpha imdata['parms'][1] = beta imdata['parms'][2] = gamma M = build_rotate_matrix(imdata['parms']) optfunc_args = (image1, image2, imdata['step'], imdata['fwhm'], lite, smhi... | def callback_cg(x): print 'Parameter Vector from Conjugate Gradient: - ' print x return | 8d5debc93c6bfef915f718a36853c7c37de5967c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/8d5debc93c6bfef915f718a36853c7c37de5967c/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
67,
26275,
12,
92,
4672,
1172,
296,
1662,
5589,
628,
735,
78,
31529,
25846,
30,
300,
296,
1172,
619,
327,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
67,
26275,
12,
92,
4672,
1172,
296,
1662,
5589,
628,
735,
78,
31529,
25846,
30,
300,
296,
1172,
619,
327,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
for x in msg.get_charsets(None): if x is not None: yield 'charset:' + x.lower() | try: for x in msg.get_charsets(None): if x is not None: yield 'charset:' + x.lower() except UnicodeEncodeError: yield 'charset:invalid_unicode' | def crack_content_xyz(msg): yield 'content-type:' + msg.get_content_type() x = msg.get_param('type') if x is not None: yield 'content-type/type:' + x.lower() for x in msg.get_charsets(None): if x is not None: yield 'charset:' + x.lower() x = msg.get('content-disposition') if x is not None: yield 'content-disposition... | 16e2aa2363a18d884b1872fdaac15128aa254cb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/16e2aa2363a18d884b1872fdaac15128aa254cb4/tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
21580,
67,
1745,
67,
17177,
12,
3576,
4672,
2824,
296,
1745,
17,
723,
2497,
397,
1234,
18,
588,
67,
1745,
67,
723,
1435,
225,
619,
273,
1234,
18,
588,
67,
891,
2668,
723,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
276,
21580,
67,
1745,
67,
17177,
12,
3576,
4672,
2824,
296,
1745,
17,
723,
2497,
397,
1234,
18,
588,
67,
1745,
67,
723,
1435,
225,
619,
273,
1234,
18,
588,
67,
891,
2668,
723,
6134,
... |
def __init__(self, observable): Thread.__init__(self) self.observable=observable self.stopEvent = Event() self.stopEvent.clear() self.readers = [] self.setDaemon(True) def run(self): """Runs until stopEvent is notified, and notify observers of all reader insertion/removal. """ while self.stopEvent.isSet()!=1: try: cu... | while not self.stopEvent.isSet(): try: if 0<self.observable.countObservers(): currentReaders = readers() addedReaders = [] removedReaders = [] if currentReaders != self.readers: for reader in currentReaders: if not reader in self.readers: addedReaders.append(reader) for reader in self.readers: if not reader in curren... | def __init__(self, observable): Thread.__init__(self) self.observable=observable self.stopEvent = Event() self.stopEvent.clear() self.readers = [] self.setDaemon(True) | f72e2b245343b2f785c2f49b06cfaa6cc77321e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3537/f72e2b245343b2f785c2f49b06cfaa6cc77321e3/ReaderMonitoring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13875,
4672,
4884,
16186,
2738,
972,
12,
2890,
13,
365,
18,
12199,
16845,
33,
12199,
16845,
365,
18,
5681,
1133,
273,
2587,
1435,
365,
18,
5681,
1133,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
13875,
4672,
4884,
16186,
2738,
972,
12,
2890,
13,
365,
18,
12199,
16845,
33,
12199,
16845,
365,
18,
5681,
1133,
273,
2587,
1435,
365,
18,
5681,
1133,
18,
... |
return folder.getUser(path[-1]).__of__(folder) | u=folder.getUser(path[-1]) if u is None: return u return u.__of__(folder) | def _pathToUser(self, path): if not path: return None folder = self.getPhysicalRoot() for p in path[:-1]: folder = getattr(folder, p) return folder.getUser(path[-1]).__of__(folder) | 4910119a030aba62199bbca06faf30f441383e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/4910119a030aba62199bbca06faf30f441383e2b/Member.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
803,
774,
1299,
12,
2890,
16,
589,
4672,
309,
486,
589,
30,
327,
599,
3009,
273,
365,
18,
588,
18136,
2375,
1435,
364,
293,
316,
589,
10531,
17,
21,
14542,
3009,
273,
3869,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
803,
774,
1299,
12,
2890,
16,
589,
4672,
309,
486,
589,
30,
327,
599,
3009,
273,
365,
18,
588,
18136,
2375,
1435,
364,
293,
316,
589,
10531,
17,
21,
14542,
3009,
273,
3869,
12,
... |
def mark_mipmap_dirty(self, tx, ty, t=None): if t is None: t = self.tiledict.get((tx,ty)) if t is None: t = Tile() self.tiledict[(tx, ty)] = t if not t.mipmap_dirty: t.mipmap_dirty = True if self.mipmap: self.mipmap.mark_mipmap_dirty(tx/2, ty/2) | def mark_mipmap_dirty(self, tx, ty): if self.mipmap_level > 0: self.tiledict[(tx, ty)] = mipmap_dirty_tile if self.mipmap: self.mipmap.mark_mipmap_dirty(tx/2, ty/2) | def mark_mipmap_dirty(self, tx, ty, t=None): if t is None: t = self.tiledict.get((tx,ty)) if t is None: t = Tile() self.tiledict[(tx, ty)] = t if not t.mipmap_dirty: t.mipmap_dirty = True if self.mipmap: self.mipmap.mark_mipmap_dirty(tx/2, ty/2) | ff4732cd4946b295d6a939c9984ef1ab05967962 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/ff4732cd4946b295d6a939c9984ef1ab05967962/tiledsurface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
67,
81,
625,
1458,
67,
18013,
12,
2890,
16,
2229,
16,
13806,
16,
268,
33,
7036,
4672,
309,
268,
353,
599,
30,
268,
273,
365,
18,
88,
1411,
933,
18,
588,
12443,
978,
16,
4098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2267,
67,
81,
625,
1458,
67,
18013,
12,
2890,
16,
2229,
16,
13806,
16,
268,
33,
7036,
4672,
309,
268,
353,
599,
30,
268,
273,
365,
18,
88,
1411,
933,
18,
588,
12443,
978,
16,
4098,
... |
''' | ''' | def checkVideometadataFails(record, flat): '''Verify that the real path exists for both video and graphics for this MythVideo Miro record. return False if there were no failures return True if a failure was found ''' global localhostname, verbose, vid_graphics_dirs, key_trans for field in key_trans.keys(): if not reco... | cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
58,
831,
362,
1175,
30800,
12,
3366,
16,
3569,
4672,
9163,
8097,
716,
326,
2863,
589,
1704,
364,
3937,
6191,
471,
17313,
364,
333,
8005,
451,
10083,
490,
11373,
1409,
18,
327,
1083,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
58,
831,
362,
1175,
30800,
12,
3366,
16,
3569,
4672,
9163,
8097,
716,
326,
2863,
589,
1704,
364,
3937,
6191,
471,
17313,
364,
333,
8005,
451,
10083,
490,
11373,
1409,
18,
327,
1083,... |
return state.procedures[name] | return state.procedures.get(name) | def getObject(state, name): return state.procedures[name] | bfd136ac9ae145198693c941adea2547c628575f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/760/bfd136ac9ae145198693c941adea2547c628575f/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6455,
12,
2019,
16,
508,
4672,
327,
919,
18,
685,
23382,
63,
529,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6455,
12,
2019,
16,
508,
4672,
327,
919,
18,
685,
23382,
63,
529,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
topdir = os.getcwd() + 'build/rpm' | def run (self): | 0e661804b50eec51ca89be25e62a5acc391083e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0e661804b50eec51ca89be25e62a5acc391083e9/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def get_message_id(self, rcpt, time=None): """Generate a predictable, but sufficiently unique message ID.""" s = '%s.%s.%d.%d.%s' % (self.config.get('project', 'url'), self.page.name, self.page.version, to_timestamp(time), rcpt.encode('ascii', 'ignore')) dig = md5.new(s).hexdigest() host = self.from_email[self.from_em... | def notify(self, action, page, version=None, time=None, comment=None, author=None, ipnr=None): self.page = page self.change_author = author self.time = time | 5ee5e47be0d2833751f7aec6f7fda29d45670aad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9414/5ee5e47be0d2833751f7aec6f7fda29d45670aad/notification.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
1301,
16,
1363,
16,
1177,
33,
7036,
16,
813,
33,
7036,
16,
2879,
33,
7036,
16,
2869,
33,
7036,
16,
2359,
11611,
33,
7036,
4672,
365,
18,
2433,
273,
1363,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
1301,
16,
1363,
16,
1177,
33,
7036,
16,
813,
33,
7036,
16,
2879,
33,
7036,
16,
2869,
33,
7036,
16,
2359,
11611,
33,
7036,
4672,
365,
18,
2433,
273,
1363,
365,
18,... | |
ifaddr = construct_source_candidate_set(prefix, plen, devaddrs) | ifaddr = construct_source_candidate_set(prefix, plen, devaddrs, LOOPBACK_NAME) | def make_route(self, dst, gw=None, dev=None): """Internal function : create a route for 'dst' via 'gw'. """ prefix, plen = (dst.split("/")+["128"])[:2] plen = int(plen) | 624c2708d2bc8569e0116584aad8c4f69823d79a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/624c2708d2bc8569e0116584aad8c4f69823d79a/route6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
5547,
12,
2890,
16,
3046,
16,
14662,
33,
7036,
16,
4461,
33,
7036,
4672,
3536,
3061,
445,
294,
752,
279,
1946,
364,
296,
11057,
11,
3970,
296,
28500,
10332,
3536,
1633,
16,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
5547,
12,
2890,
16,
3046,
16,
14662,
33,
7036,
16,
4461,
33,
7036,
4672,
3536,
3061,
445,
294,
752,
279,
1946,
364,
296,
11057,
11,
3970,
296,
28500,
10332,
3536,
1633,
16,
8... |
comDCB.fDtrControl = win32file.DTR_CONTROL_ENABLE; else: comDCB.fDtrControl = win32file.DTR_CONTROL_DISABLE; win32file.SetCommState(self.hComPort, comDCB) | win32file.EscapeCommFunction(self.hComPort, win32file.SETDTR) else: win32file.EscapeCommFunction(self.hComPort, win32file.CLRDTR) | def setDTR(self,level=1): """set terminal status line""" if not self.hComPort: raise portNotOpenError comDCB = win32file.GetCommState(self.hComPort) if level: comDCB.fDtrControl = win32file.DTR_CONTROL_ENABLE; else: comDCB.fDtrControl = win32file.DTR_CONTROL_DISABLE; win32file.SetCommState(self.hComPort, comDCB) | c2bd4e3557ea531de77e4cacaa56070458abea45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/c2bd4e3557ea531de77e4cacaa56070458abea45/serialwin32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
40,
4349,
12,
2890,
16,
2815,
33,
21,
4672,
3536,
542,
8651,
1267,
980,
8395,
309,
486,
365,
18,
76,
799,
2617,
30,
1002,
1756,
1248,
3678,
668,
532,
5528,
38,
273,
5657,
1578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
4349,
12,
2890,
16,
2815,
33,
21,
4672,
3536,
542,
8651,
1267,
980,
8395,
309,
486,
365,
18,
76,
799,
2617,
30,
1002,
1756,
1248,
3678,
668,
532,
5528,
38,
273,
5657,
1578,
... |
self.timeoutTask.remove() | taskMgr.remove(self.timeoutTask) | def delete(self): assert self.notify.debugCall() assert not self.__deleted if __debug__: self.__deleted=True _removeActiveAsyncRequest(self) self.ignoreAll() self.timeoutTask.remove() del self.timeoutTask messenger.send(self.deletingMessage, []) if 0: for i in self.neededObjects.values(): if i is not None: #self.air.un... | ed55792571211fdaa768a414db9f26430156acf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/ed55792571211fdaa768a414db9f26430156acf6/AsyncRequest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
1435,
1815,
486,
365,
16186,
8600,
309,
1001,
4148,
972,
30,
365,
16186,
8600,
33,
5510,
389,
4479,
3896,
2771,
691,
12,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
1435,
1815,
486,
365,
16186,
8600,
309,
1001,
4148,
972,
30,
365,
16186,
8600,
33,
5510,
389,
4479,
3896,
2771,
691,
12,
2890,... |
if len(node.outputs) == 1: return node.outputs[0] | if self.default_output is not None: return node.outputs[self.default_output] | def __call__(self, *inputs): node = self.make_node(*inputs) if len(node.outputs) == 1: return node.outputs[0] else: return node.outputs | 6291e64b62052473d8640dd86c23442ba9240575 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/6291e64b62052473d8640dd86c23442ba9240575/op.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
10029,
4672,
756,
273,
365,
18,
6540,
67,
2159,
30857,
10029,
13,
309,
365,
18,
1886,
67,
2844,
353,
486,
599,
30,
327,
756,
18,
12295,
63,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
10029,
4672,
756,
273,
365,
18,
6540,
67,
2159,
30857,
10029,
13,
309,
365,
18,
1886,
67,
2844,
353,
486,
599,
30,
327,
756,
18,
12295,
63,
2890,
... |
status=2, match=TestSCons.match_re) | status=2) | def mkdir(env, target, source): return None | 3ff61a15fac640a74726d42fcd5a03ddbacd6287 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12817/3ff61a15fac640a74726d42fcd5a03ddbacd6287/not-a-Builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
3074,
16,
1018,
16,
1084,
4672,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
3074,
16,
1018,
16,
1084,
4672,
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,
... |
if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) | def buildChildren(self, child_, nodeName_, from_subclass=False): if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) super(CellSet, self).buildChildren(child_, nodeName_, True) pass | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4212,
12,
2890,
16,
1151,
67,
16,
7553,
67,
16,
628,
67,
10678,
33,
8381,
4672,
2240,
12,
4020,
694,
16,
365,
2934,
3510,
4212,
12,
3624,
67,
16,
7553,
67,
16,
1053,
13,
1342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4212,
12,
2890,
16,
1151,
67,
16,
7553,
67,
16,
628,
67,
10678,
33,
8381,
4672,
2240,
12,
4020,
694,
16,
365,
2934,
3510,
4212,
12,
3624,
67,
16,
7553,
67,
16,
1053,
13,
1342,
... | |
self.name = fileobj.name | self.name = os.path.abspath(fileobj.name) | def __init__(self, name=None, mode="r", fileobj=None): """Open an (uncompressed) tar archive `name'. `mode' is either 'r' to read from an existing archive, 'a' to append data to an existing file or 'w' to create a new file overwriting an existing one. `mode' defaults to 'r'. If `fileobj' is given, it is used for readin... | 70a24c339655d7f552a52c9eea55ff6f9c3fd5d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/70a24c339655d7f552a52c9eea55ff6f9c3fd5d5/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
4672,
3536,
3678,
392,
261,
551,
362,
10906,
13,
8232,
5052,
1375,
529,
10332,
1375,
3188,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
4672,
3536,
3678,
392,
261,
551,
362,
10906,
13,
8232,
5052,
1375,
529,
10332,
1375,
3188,
11,
... |
if self.debug > 0: print 'ncfile = ',self.nc | def calculation_required(self, atoms=None, quantities=None): ''' determines if a calculation is needed. | efb0053a692e68241ce5b5d3e00d105383545b1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/efb0053a692e68241ce5b5d3e00d105383545b1a/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11096,
67,
4718,
12,
2890,
16,
9006,
33,
7036,
16,
10251,
1961,
33,
7036,
4672,
9163,
12949,
309,
279,
11096,
353,
3577,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11096,
67,
4718,
12,
2890,
16,
9006,
33,
7036,
16,
10251,
1961,
33,
7036,
4672,
9163,
12949,
309,
279,
11096,
353,
3577,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
logger.info(p.stdout.read()) | def generate_html(pathtopdf, logger): ''' Convert the pdf into html. @return: A closed PersistentTemporaryFile. ''' if not os.access(pathtopdf, os.R_OK): raise ConversionError, 'Cannot read from ' + pathtopdf pf = PersistentTemporaryFile('.html') pf.close() # This is neccessary as pdftohtml doesn't always (linux) respe... | 901a41389a581ea45d633200640e8c582570e339 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/901a41389a581ea45d633200640e8c582570e339/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2620,
12,
803,
3669,
2180,
16,
1194,
4672,
9163,
4037,
326,
8169,
1368,
1729,
18,
632,
2463,
30,
432,
4375,
11049,
23808,
18,
9163,
309,
486,
1140,
18,
3860,
12,
803,
3669,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2620,
12,
803,
3669,
2180,
16,
1194,
4672,
9163,
4037,
326,
8169,
1368,
1729,
18,
632,
2463,
30,
432,
4375,
11049,
23808,
18,
9163,
309,
486,
1140,
18,
3860,
12,
803,
3669,
2... | |
if not self.attributes.has_key('schemaLocation'): | url = self.attributes.get('schemaLocation') if not url: | def getSchema(self): """if schema is not defined, first look for a Schema class instance in parent Schema. Else if not defined resolve schemaLocation and create a new Schema class instance, and keep a hard reference. """ if not self._schema: ns = self.attributes['namespace'] schema = self._parent().getImportSchemas().... | 22b6e4fd93652fa2a0ec8cb759fbee8aa1f12a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/22b6e4fd93652fa2a0ec8cb759fbee8aa1f12a8d/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11088,
12,
2890,
4672,
3536,
430,
1963,
353,
486,
2553,
16,
1122,
2324,
364,
279,
4611,
667,
791,
316,
982,
4611,
18,
225,
16289,
309,
486,
2553,
2245,
1963,
2735,
471,
752,
279,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11088,
12,
2890,
4672,
3536,
430,
1963,
353,
486,
2553,
16,
1122,
2324,
364,
279,
4611,
667,
791,
316,
982,
4611,
18,
225,
16289,
309,
486,
2553,
2245,
1963,
2735,
471,
752,
279,
394,
... |
else: | elif self._strict: | def _parseheaders(self, container, fp): # Parse the headers, returning a list of header/value pairs. None as # the header means the Unix-From header. lastheader = '' lastvalue = [] lineno = 0 while 1: # Don't strip the line before we test for the end condition, # because whitespace-only header lines are RFC compliant ... | 3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
2485,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1607,
16,
5785,
279,
666,
434,
1446,
19,
1132,
5574,
18,
225,
599,
487,
468,
326,
1446,
4696,
326,
9480,
17,
1265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
2485,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1607,
16,
5785,
279,
666,
434,
1446,
19,
1132,
5574,
18,
225,
599,
487,
468,
326,
1446,
4696,
326,
9480,
17,
1265,
... |
raise FontError('Encoding "%s" already registered with a different name vector!' % enc.Name) | raise FontError('Encoding "%s" already registered with a different name vector!' % enc.name) | def registerEncoding(enc): assert isinstance(enc, Encoding), 'Not an Encoding: %s' % enc if _encodings.has_key(enc.name): # already got one, complain if they are not the same if enc.isEqual(_encodings[enc.name]): enc.freeze() else: raise FontError('Encoding "%s" already registered with a different name vector!' % enc.N... | 59a8f1e0c8cdf385dc862cec19fd1710fa34f5eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3878/59a8f1e0c8cdf385dc862cec19fd1710fa34f5eb/pdfmetrics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
4705,
12,
1331,
4672,
1815,
1549,
12,
1331,
16,
13400,
3631,
296,
1248,
392,
13400,
30,
738,
87,
11,
738,
2446,
309,
389,
1331,
369,
899,
18,
5332,
67,
856,
12,
1331,
18,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
4705,
12,
1331,
4672,
1815,
1549,
12,
1331,
16,
13400,
3631,
296,
1248,
392,
13400,
30,
738,
87,
11,
738,
2446,
309,
389,
1331,
369,
899,
18,
5332,
67,
856,
12,
1331,
18,
529,
... |
if button == self.update_db and self.__is_root__(): | if button == self.update_db: | def on_update_db_clicked(self, button): if button == self.update_db and self.__is_root__(): ret, ret_err = self.shell.updatedb() #print ret, ret_err #self.shell.get_read_pipe() self.update_db_popup = self.all_widgets.get_widget('update_db_popup') #self.update_db_popup.show() response = self.update_db_popup.run() | 69acb429c868aa828d3a55e6bc8bac14c6a839fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/69acb429c868aa828d3a55e6bc8bac14c6a839fb/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2725,
67,
1966,
67,
7475,
329,
12,
2890,
16,
3568,
4672,
225,
309,
3568,
422,
365,
18,
2725,
67,
1966,
30,
325,
16,
325,
67,
370,
273,
365,
18,
10304,
18,
7007,
70,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2725,
67,
1966,
67,
7475,
329,
12,
2890,
16,
3568,
4672,
225,
309,
3568,
422,
365,
18,
2725,
67,
1966,
30,
325,
16,
325,
67,
370,
273,
365,
18,
10304,
18,
7007,
70,
1435,
... |
import imp | def load_dynamic(self, name, filename, file): if name not in self.ok_dynamic_modules: raise ImportError, "untrusted dynamic module: %s" % name if sys.modules.has_key(name): src = sys.modules[name] else: import imp src = imp.load_dynamic(name, filename, file) dst = self.copy_except(src, []) return dst | 8c3569e95d52ce1dec3a037b2de54c615ed0c3dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8c3569e95d52ce1dec3a037b2de54c615ed0c3dd/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
14507,
12,
2890,
16,
508,
16,
1544,
16,
585,
4672,
309,
508,
486,
316,
365,
18,
601,
67,
14507,
67,
6400,
30,
1002,
11308,
16,
315,
318,
25247,
5976,
1605,
30,
738,
87,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
14507,
12,
2890,
16,
508,
16,
1544,
16,
585,
4672,
309,
508,
486,
316,
365,
18,
601,
67,
14507,
67,
6400,
30,
1002,
11308,
16,
315,
318,
25247,
5976,
1605,
30,
738,
87,
6,
... | |
def numeral(n, base=10, size=0, digits=stddigits): | def numeral_gmpy(n, base=10, size=0, digits=stddigits): return gmpy.digits(n, base) def numeral_python(n, base=10, size=0, digits=stddigits): | def numeral(n, base=10, size=0, digits=stddigits): """Represent the integer n as a string of digits in the given base. Recursive division is used to make this function about 3x faster than Python's str() for converting integers to decimal strings. The 'size' parameters specifies the number of digits in n; this number ... | 3803309ec86bf9bad40cc4d8623e22de839cb3ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/3803309ec86bf9bad40cc4d8623e22de839cb3ce/lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
818,
11612,
67,
75,
1291,
93,
12,
82,
16,
1026,
33,
2163,
16,
963,
33,
20,
16,
6815,
33,
334,
449,
360,
1282,
4672,
327,
26811,
93,
18,
16649,
12,
82,
16,
1026,
13,
225,
1652,
818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
818,
11612,
67,
75,
1291,
93,
12,
82,
16,
1026,
33,
2163,
16,
963,
33,
20,
16,
6815,
33,
334,
449,
360,
1282,
4672,
327,
26811,
93,
18,
16649,
12,
82,
16,
1026,
13,
225,
1652,
818,... |
as in Fortran order, the major memory-aligned dimension is the | as in Fortran order, the major memory-aligned dimension is the | def _array_docstring_(name, shape, compat): return ''' Constructor: .. method:: %(name)s(obj, dtype=numpy.float32, order='V', init = True, value = None) :param obj: a data or shape object (see below) :param dtype: desired element type :param order: desired memory layout (see below) :param init: True: initialize the i... | 7142b8e8a5aa0e21c28f74980abb0be6e15b7601 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12582/7142b8e8a5aa0e21c28f74980abb0be6e15b7601/arraytypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
24675,
67,
12,
529,
16,
2179,
16,
4796,
4672,
327,
9163,
11417,
30,
225,
6116,
707,
2866,
8975,
529,
13,
87,
12,
2603,
16,
3182,
33,
15974,
18,
5659,
1578,
16,
1353,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
24675,
67,
12,
529,
16,
2179,
16,
4796,
4672,
327,
9163,
11417,
30,
225,
6116,
707,
2866,
8975,
529,
13,
87,
12,
2603,
16,
3182,
33,
15974,
18,
5659,
1578,
16,
1353,
2... |
self.assertRaises(ValueError, m.move, -1, -1, -1) self.assertRaises(ValueError, m.move, -1, -1, 0) self.assertRaises(ValueError, m.move, -1, 0, -1) self.assertRaises(ValueError, m.move, 0, -1, -1) self.assertRaises(ValueError, m.move, -1, 0, 0) self.assertRaises(ValueError, m.move, 0, -1, 0) self.assertRaises(ValueErro... | offsets = [(-1, -1, -1), (-1, -1, 0), (-1, 0, -1), (0, -1, -1), (-1, 0, 0), (0, -1, 0), (0, 0, -1)] for source, dest, size in offsets: self.assertRaises(ValueError, m.move, source, dest, size) | def test_move(self): # make move works everywhere (64-bit format problem earlier) f = open(TESTFN, 'w+') | 5765161e17863005f79f1f3943bc4c8173765c38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/5765161e17863005f79f1f3943bc4c8173765c38/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8501,
12,
2890,
4672,
468,
1221,
3635,
6330,
3614,
6051,
261,
1105,
17,
3682,
740,
6199,
13805,
13,
284,
273,
1696,
12,
16961,
19793,
16,
296,
91,
15,
6134,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8501,
12,
2890,
4672,
468,
1221,
3635,
6330,
3614,
6051,
261,
1105,
17,
3682,
740,
6199,
13805,
13,
284,
273,
1696,
12,
16961,
19793,
16,
296,
91,
15,
6134,
2,
-100,
-100,
-1... |
while field: | while field is not None: | def _getPath(self): if not self._parent: return '/' names = [] field = self while field: names.append(field._name) field = field._parent names[-1] = '' return '/'.join(reversed(names)) | 49e0048f74af99b500949ef7bc8882ae02f940b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9327/49e0048f74af99b500949ef7bc8882ae02f940b2/field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
743,
12,
2890,
4672,
309,
486,
365,
6315,
2938,
30,
327,
2023,
1257,
273,
5378,
652,
273,
365,
1323,
652,
353,
486,
599,
30,
1257,
18,
6923,
12,
1518,
6315,
529,
13,
652,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
743,
12,
2890,
4672,
309,
486,
365,
6315,
2938,
30,
327,
2023,
1257,
273,
5378,
652,
273,
365,
1323,
652,
353,
486,
599,
30,
1257,
18,
6923,
12,
1518,
6315,
529,
13,
652,
2... |
src_data = (-1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1) expected_data = (1, 1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1) | src_data = (-1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1) expected_result = (1, 1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1) | def test_003_freq_divider (self): src_data = (-1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1) expected_data = (1, 1, -1, -1, 1, 1, -1, -1, 1, 1, -1, -1, 1, 1) src = gr.vector_source_f (src_data) dut = rds.freq_divider(3) dst = gr.vector_sink_f () self.fg.connect(src, dut, dst) self.fg.run() result_data = dst.... | 0bbce183c260c80f9b8cea1c8a6696f1d4bc950a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9733/0bbce183c260c80f9b8cea1c8a6696f1d4bc950a/qa_rds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
25425,
67,
10212,
67,
2892,
3585,
261,
2890,
4672,
1705,
67,
892,
273,
1875,
202,
19236,
21,
16,
404,
16,
300,
21,
16,
225,
404,
16,
300,
21,
16,
404,
16,
300,
21,
16,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
25425,
67,
10212,
67,
2892,
3585,
261,
2890,
4672,
1705,
67,
892,
273,
1875,
202,
19236,
21,
16,
404,
16,
300,
21,
16,
225,
404,
16,
300,
21,
16,
404,
16,
300,
21,
16,
22... |
elif widget == self.listview: | else: | def _on_rename_node(self): """Callback for renaming a node""" nodes = self.get_selected_nodes() | 4e0cb7953af70bb30c09983d69666bbeb2ed3f48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/4e0cb7953af70bb30c09983d69666bbeb2ed3f48/three_pane_viewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
18539,
67,
2159,
12,
2890,
4672,
3536,
2428,
364,
30883,
279,
756,
8395,
2199,
273,
365,
18,
588,
67,
8109,
67,
4690,
1435,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
265,
67,
18539,
67,
2159,
12,
2890,
4672,
3536,
2428,
364,
30883,
279,
756,
8395,
2199,
273,
365,
18,
588,
67,
8109,
67,
4690,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Shafarevich-Tate group for the Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field | Tate-Shafarevich group for the Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field | def update(self): """ Updates some properties from ``curve``. | 8f587510709d0f146a2c60efb13709a5ea985053 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8f587510709d0f146a2c60efb13709a5ea985053/BSD.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
15419,
2690,
1790,
628,
12176,
16683,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
15419,
2690,
1790,
628,
12176,
16683,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
stylesheet = None for item in self.oeb.manifest: if item.media_type.lower() in OEB_STYLES: stylesheet = item break | if stylesheet is not None: from cssutils.css import CSSRule for lb in XPath('//h:ul[@class]|//h:ol[@class]')(root): sel = '.'+lb.get('class') for rule in stylesheet.data.cssRules.rulesOfType(CSSRule.STYLE_RULE): if sel == rule.selectorList.selectorText: val = rule.style.removeProperty('margin-left') pval = rule.style.... | def workaround_ade_quirks(self): ''' Perform various markup transforms to get the output to render correctly in the quirky ADE. ''' from calibre.ebooks.oeb.base import XPath, XHTML, OEB_STYLES, barename, urlunquote | 06d633b5d11dd208c58dbdd430c6a51075456908 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/06d633b5d11dd208c58dbdd430c6a51075456908/output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18975,
67,
2486,
67,
372,
31926,
12,
2890,
4672,
9163,
11217,
11191,
9813,
13680,
358,
336,
326,
876,
358,
1743,
8783,
316,
326,
719,
481,
18465,
432,
1639,
18,
9163,
628,
26139,
266,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18975,
67,
2486,
67,
372,
31926,
12,
2890,
4672,
9163,
11217,
11191,
9813,
13680,
358,
336,
326,
876,
358,
1743,
8783,
316,
326,
719,
481,
18465,
432,
1639,
18,
9163,
628,
26139,
266,
18... |
emails += (case.email_cc or '').split(',') | emails.append(action.act_email_cc) | def _action(self, cr, uid, cases, state_to, scrit=None, context={}): if not scrit: scrit = [] action_ids = self.pool.get('crm.case.rule').search(cr, uid, scrit) level = MAX_LEVEL while len(action_ids) and level: newactions = [] actions = self.pool.get('crm.case.rule').browse(cr, uid, action_ids, context) for case in ca... | c0e0d5bd68eada64ca99d4dd7901eb609e54f36e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c0e0d5bd68eada64ca99d4dd7901eb609e54f36e/crm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1128,
12,
2890,
16,
4422,
16,
4555,
16,
6088,
16,
919,
67,
869,
16,
888,
583,
33,
7036,
16,
819,
12938,
4672,
309,
486,
888,
583,
30,
888,
583,
273,
5378,
1301,
67,
2232,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1128,
12,
2890,
16,
4422,
16,
4555,
16,
6088,
16,
919,
67,
869,
16,
888,
583,
33,
7036,
16,
819,
12938,
4672,
309,
486,
888,
583,
30,
888,
583,
273,
5378,
1301,
67,
2232,
273,
... |
root_path = os.path.join('bleh', 'prout', 'pouet') | root_path = gcl.os.path.join('bleh', 'prout', 'pouet') | def testGetRepositoryRootGood(self): gcl.REPOSITORY_ROOT = None root_path = os.path.join('bleh', 'prout', 'pouet') gcl.os.getcwd().AndReturn(root_path) result1 = { "Repository Root": "Some root" } gcl.gclient.CaptureSVNInfo(root_path, print_error=False).AndReturn(result1) gcl.os.getcwd().AndReturn(root_path) results2 =... | eb12bebc49c62a9d7b5359ea09518c40d497b197 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/eb12bebc49c62a9d7b5359ea09518c40d497b197/gcl_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
3305,
2375,
18195,
12,
2890,
4672,
314,
830,
18,
862,
30986,
67,
9185,
273,
599,
1365,
67,
803,
273,
314,
830,
18,
538,
18,
803,
18,
5701,
2668,
7119,
76,
2187,
296,
685,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
3305,
2375,
18195,
12,
2890,
4672,
314,
830,
18,
862,
30986,
67,
9185,
273,
599,
1365,
67,
803,
273,
314,
830,
18,
538,
18,
803,
18,
5701,
2668,
7119,
76,
2187,
296,
685,
... |
for c in self.children.values(): c.destroy() if self.master.children.has_key(self._name): del self.master.children[self._name] if self.master.subwidget_list.has_key(self._name): del self.master.subwidget_list[self._name] if self.destroy_physically: self.tk.call('destroy', self._w) | for c in self.children.values(): c.destroy() if self.master.children.has_key(self._name): del self.master.children[self._name] if self.master.subwidget_list.has_key(self._name): del self.master.subwidget_list[self._name] if self.destroy_physically: self.tk.call('destroy', self._w) | def destroy(self): | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
error = self.xml_parse_string (data, 0) if error: return error data = input.read (BLOCKSIZE) | if self.xml_parse_string (data, 0): data = input.read (BLOCKSIZE) else: return None | def xml_parse_file (self, input, BLOCKSIZE=4096): data = input.read (BLOCKSIZE) while data: error = self.xml_parse_string (data, 0) if error: return error | 3797277027c69f4d1dd437dacbf52b818e3e01fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/3797277027c69f4d1dd437dacbf52b818e3e01fd/xml_dom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
67,
2670,
67,
768,
261,
2890,
16,
810,
16,
14073,
4574,
33,
24,
5908,
26,
4672,
501,
273,
810,
18,
896,
261,
11403,
4574,
13,
1323,
501,
30,
555,
273,
365,
18,
2902,
67,
2670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2025,
67,
2670,
67,
768,
261,
2890,
16,
810,
16,
14073,
4574,
33,
24,
5908,
26,
4672,
501,
273,
810,
18,
896,
261,
11403,
4574,
13,
1323,
501,
30,
555,
273,
365,
18,
2902,
67,
2670,
... |
r = v.rank() | def jump(v, n=None): "The jump of v across a facet." r = v.rank() cell = v.cell() if cell is None: warning("TODO: Not all expressions have a cell. Is it right to return zero from jump then?") # TODO: Is this right? If v has no cell, it doesn't depend on # anything spatially variable or any form arguments, and thus # th... | 4eea2321c2d40843b28ce28a6b52cf12e5081788 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/4eea2321c2d40843b28ce28a6b52cf12e5081788/operators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11833,
12,
90,
16,
290,
33,
7036,
4672,
315,
1986,
11833,
434,
331,
10279,
279,
11082,
1199,
2484,
273,
331,
18,
3855,
1435,
309,
2484,
353,
599,
30,
3436,
2932,
6241,
30,
2288,
777,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11833,
12,
90,
16,
290,
33,
7036,
4672,
315,
1986,
11833,
434,
331,
10279,
279,
11082,
1199,
2484,
273,
331,
18,
3855,
1435,
309,
2484,
353,
599,
30,
3436,
2932,
6241,
30,
2288,
777,
8... | |
guid=PyRSS2Gen.Guid(config.TESTLOG_URL + datestr), | guid=PyRSS2Gen.Guid(config.TESTLOG_URL + datestr.replace(' ', '_')), | def _create_rss_file(resultslist): failureitems = [] for (runnumber, revision, resulttext) in resultslist: if resulttext[0].strip() != "SUCCESS": datestr = resulttext[1].strip() dateobj = datetime.datetime.strptime(datestr, "%Y-%m-%d %H:%M:%S") # The PyRSS2Gen module expects this to be in GMT, and python is a pain # f... | 346a9937f26f03040011d03b4f6fdb0c698c5f9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/346a9937f26f03040011d03b4f6fdb0c698c5f9f/run_all_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
25151,
67,
768,
12,
4717,
1098,
4672,
225,
5166,
3319,
273,
5378,
364,
261,
2681,
2696,
16,
6350,
16,
563,
955,
13,
316,
1686,
1098,
30,
309,
563,
955,
63,
20,
8009,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
67,
25151,
67,
768,
12,
4717,
1098,
4672,
225,
5166,
3319,
273,
5378,
364,
261,
2681,
2696,
16,
6350,
16,
563,
955,
13,
316,
1686,
1098,
30,
309,
563,
955,
63,
20,
8009,
6... |
msg = string.join(msg, '\n') | msg = '\n'.join(msg) | def open_data(self, url, data=None): """Use "data" URL.""" # ignore POSTed data # # syntax of data URLs: # dataurl := "data:" [ mediatype ] [ ";base64" ] "," data # mediatype := [ type "/" subtype ] *( ";" parameter ) # data := *urlchar # parameter := attribute "=" value import StringIO, mimetools, time try: [ty... | 71b965f6e0b5f68cbaa0e8ee02f092736e43e951 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71b965f6e0b5f68cbaa0e8ee02f092736e43e951/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
892,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
315,
892,
6,
1976,
12123,
468,
2305,
5485,
329,
501,
468,
468,
6279,
434,
501,
10414,
30,
468,
501,
718,
282,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
892,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
315,
892,
6,
1976,
12123,
468,
2305,
5485,
329,
501,
468,
468,
6279,
434,
501,
10414,
30,
468,
501,
718,
282,
5... |
menu.append((_("copy to favourites"), csel.copyCurrentToBouquetList)) | menu.append((_("copy to favourites"), self.copyCurrentToBouquetList)) | def __init__(self, session, csel): Screen.__init__(self, session) self.csel = csel | 82c3d190f3e20cb8d2473be89c1fb1ed5d98cec3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/82c3d190f3e20cb8d2473be89c1fb1ed5d98cec3/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
276,
1786,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
71,
1786,
273,
276,
1786,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
276,
1786,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
71,
1786,
273,
276,
1786,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
parser.error('either the --env_parent_dir option or at least one ' | parser.error('either the --env-parent-dir option or at least one ' | def _validate_callback(option, opt_str, value, parser, valid_values): if value not in valid_values: raise OptionValueError('%s must be one of: %s, not %s' % (opt_str, '|'.join(valid_values), value)) setattr(parser.values, option.dest, value) | d90602b2c6754d60ab9ae13bab8cc75c8b73eeb5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d90602b2c6754d60ab9ae13bab8cc75c8b73eeb5/standalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
67,
3394,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
16,
923,
67,
2372,
4672,
309,
460,
486,
316,
923,
67,
2372,
30,
1002,
2698,
23610,
29909,
87,
1297,
506,
1245,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
67,
3394,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
16,
923,
67,
2372,
4672,
309,
460,
486,
316,
923,
67,
2372,
30,
1002,
2698,
23610,
29909,
87,
1297,
506,
1245,
43... |
self._localeSet = ['en'] | self._localeSet = ['en_US', 'en'] | def setLocaleSet(self, localeSet=None, fallback=True): """ Resets the c{I18nManager locale set c{List}. | 56421d8e0e78b7cbb4f8e9fb940c24150df656c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/56421d8e0e78b7cbb4f8e9fb940c24150df656c5/i18nmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19848,
694,
12,
2890,
16,
2573,
694,
33,
7036,
16,
5922,
33,
5510,
4672,
3536,
1124,
2413,
326,
276,
95,
45,
2643,
82,
1318,
2573,
444,
276,
95,
682,
5496,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19848,
694,
12,
2890,
16,
2573,
694,
33,
7036,
16,
5922,
33,
5510,
4672,
3536,
1124,
2413,
326,
276,
95,
45,
2643,
82,
1318,
2573,
444,
276,
95,
682,
5496,
2,
-100,
-100,
-100,
-100,
... |
self.set_stdout_file( 'logs/tmpltbank-$(channelname)-$(gpsstarttime)-$(gpsendtime).out') self.set_stderr_file( 'logs/tmpltbank-$(channelname)-$(gpsstarttime)-$(gpsendtime).err') | self.set_stdout_file('logs/tmpltbank-$(macrochannelname)-$(macrogpsstarttime)-$(macrogpsendtime).out') self.set_stderr_file('logs/tmpltbank-$(macrochannelname)-$(macrogpsstarttime)-$(macrogpsendtime).err') | def __init__(self,cp): """ cp = ConfigParser object from which options are read. """ self.__executable = cp.get('condor','tmpltbank') self.__universe = cp.get('condor','universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) | da76b55f54fb3d4c9ec554ca55e7b71a6bbea267 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/da76b55f54fb3d4c9ec554ca55e7b71a6bbea267/inspiral.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4057,
4672,
3536,
3283,
273,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
365,
16186,
17751,
273,
3283,
18,
588,
2668,
10013,
280,
17023,
24717,
88,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4057,
4672,
3536,
3283,
273,
25076,
733,
628,
1492,
702,
854,
855,
18,
3536,
365,
16186,
17751,
273,
3283,
18,
588,
2668,
10013,
280,
17023,
24717,
88,
105... |
self.resources.append(Announcement(xml)) | self.resources.append(Announcement(xml, res_num)) | def convert_resources(self): for resource in self.manifest.iterfind('.//resource'): dat_name = resource.attrib['file'] xml = etree.parse(self.zip.open(dat_name)) | 15b79dab64e9d35a840423eaa436a6e35feb7b63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/15b79dab64e9d35a840423eaa436a6e35feb7b63/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
4683,
12,
2890,
4672,
364,
1058,
316,
365,
18,
14357,
18,
2165,
4720,
2668,
18,
759,
3146,
11,
4672,
1150,
67,
529,
273,
1058,
18,
14588,
3292,
768,
3546,
2025,
273,
12031,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
4683,
12,
2890,
4672,
364,
1058,
316,
365,
18,
14357,
18,
2165,
4720,
2668,
18,
759,
3146,
11,
4672,
1150,
67,
529,
273,
1058,
18,
14588,
3292,
768,
3546,
2025,
273,
12031,
1... |
errors[self.getName()] = error = _( u'error_vocabulary', default=u'Value ${val} is not allowed for vocabulary of element ${label}.', mapping={'val': val, 'name': label}) | errors[self.getName()] = error = i18n.translate( 'archetypes', 'error_vocabulary', {'val': val, 'name': label}, instance, default = "Value %s is not allowed for vocabulary " "of element %s." % (val, label), ) | def validate_vocabulary(self, instance, value, errors): """Make sure value is inside the allowed values for a given vocabulary""" error = None if value: # coerce value into a list called values values = value if type(value) in STRING_TYPES: values = [value] elif type(value) not in (TupleType, ListType): raise TypeError... | 4783b5b4c58776802d846f70518c6480cf67411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/4783b5b4c58776802d846f70518c6480cf67411e/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
15913,
13631,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
3536,
6464,
3071,
460,
353,
4832,
326,
2935,
924,
364,
279,
864,
20906,
8395,
555,
273,
599,
309,
460,
30,
468,
1227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
67,
15913,
13631,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
3536,
6464,
3071,
460,
353,
4832,
326,
2935,
924,
364,
279,
864,
20906,
8395,
555,
273,
599,
309,
460,
30,
468,
1227... |
def scan_all(self, msg, *args): | def scan_all(self, msg=None, *args): | def scan_all(self, msg, *args): if self.index_url not in self.fetched_urls: if msg: self.warn(msg,*args) self.warn( "Scanning index of all packages (this may take a while)" ) self.scan_url(self.index_url) | 5cda1e9eb7e5f5f71ba66791846c899cb0a17649 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/5cda1e9eb7e5f5f71ba66791846c899cb0a17649/package_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
454,
12,
2890,
16,
1234,
33,
7036,
16,
380,
1968,
4672,
309,
365,
18,
1615,
67,
718,
486,
316,
365,
18,
5754,
329,
67,
10518,
30,
309,
1234,
30,
365,
18,
8935,
12,
3576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4135,
67,
454,
12,
2890,
16,
1234,
33,
7036,
16,
380,
1968,
4672,
309,
365,
18,
1615,
67,
718,
486,
316,
365,
18,
5754,
329,
67,
10518,
30,
309,
1234,
30,
365,
18,
8935,
12,
3576,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.