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 |
|---|---|---|---|---|---|---|
os.mkdir(dst, 0777) | try: os.mkdir(dst, 0777) except OSError, e: if e.errno != errno.EEXIST: raise | def mkdirs(dst): """Make directories leading to 'dst' if they don't exist yet""" if dst == '' or os.path.exists(dst): return head, tail = os.path.split(dst) if os.sep == ':' and not ':' in head: head = head + ':' mkdirs(head) os.mkdir(dst, 0777) | abcc168c69868c447dc976841ce1978f2298d4a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/abcc168c69868c447dc976841ce1978f2298d4a0/macostools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18095,
12,
11057,
4672,
3536,
6464,
6402,
7676,
358,
296,
11057,
11,
309,
2898,
2727,
1404,
1005,
4671,
8395,
309,
3046,
422,
875,
578,
1140,
18,
803,
18,
1808,
12,
11057,
4672,
327,
910... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18095,
12,
11057,
4672,
3536,
6464,
6402,
7676,
358,
296,
11057,
11,
309,
2898,
2727,
1404,
1005,
4671,
8395,
309,
3046,
422,
875,
578,
1140,
18,
803,
18,
1808,
12,
11057,
4672,
327,
910... |
line = Line(l) if line.idhex not in nodes: n = Node() nodes[line.idhex] = n else: n = nodes[line.idhex] n.add_line(line) | try: line = Line(l) if line.idhex not in nodes: n = Node() nodes[line.idhex] = n else: n = nodes[line.idhex] n.add_line(line) except ValueError,e: print "Conversion error "+str(e)+" at "+l | def main(argv): for d in argv[1:-1]: # First, create a list of the most recent files in the # scan dirs that are recent enough for root, dirs, files in os.walk(d): for f in files: if f.find("-done-"): fp = file(f, "r") ranks = fp.readline() timestamp = float(fp.readline()) fp.close() if ranks not in bw_files or bw_file... | f83bead330fe47785c58ea75d371332044c48c57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/f83bead330fe47785c58ea75d371332044c48c57/aggregate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
364,
302,
316,
5261,
63,
21,
30,
17,
21,
14542,
468,
5783,
16,
752,
279,
666,
434,
326,
4486,
8399,
1390,
316,
326,
468,
4135,
7717,
716,
854,
8399,
7304,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
364,
302,
316,
5261,
63,
21,
30,
17,
21,
14542,
468,
5783,
16,
752,
279,
666,
434,
326,
4486,
8399,
1390,
316,
326,
468,
4135,
7717,
716,
854,
8399,
7304,
364,
... |
self.subplot = stripChartWdg.getSubplot(subplotInd) | self.subplot = stripChartWdg.subplotArr[subplotInd] | def __init__(self, stripChartWdg, subplotInd, **kargs): """Create a line Inputs: - stripChartWdg: the StripChartWdg to which this _Line belongs - subplotInd: the index of the subplot to which this _Line belongs - doAutoscale: if True then autoscale the y axis - **kargs: keyword arguments for matplotlib Line2D, such as... | 27a58a0112f1fec646c48234c36396c25acdd031 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/27a58a0112f1fec646c48234c36396c25acdd031/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2569,
7984,
59,
72,
75,
16,
19826,
3866,
16,
2826,
79,
1968,
4672,
3536,
1684,
279,
980,
225,
24472,
30,
300,
2569,
7984,
59,
72,
75,
30,
326,
15589,
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,
1001,
2738,
972,
12,
2890,
16,
2569,
7984,
59,
72,
75,
16,
19826,
3866,
16,
2826,
79,
1968,
4672,
3536,
1684,
279,
980,
225,
24472,
30,
300,
2569,
7984,
59,
72,
75,
30,
326,
15589,
7... |
text, _href, frag = elem_to_link(elem, href, counter) | text, _href, frag = elem_to_link(elem, href, counter, look_for_link=False) | def elem_to_link(elem, href, counter): text = (u''.join(elem.xpath('string()'))).strip() if not text: return None, None, None t = elem.xpath('descendant-or-self::a[@href]') if t: _href = 'content/' + t[0].get('href', '') parts = _href.split('#') _href = parts[0] frag = None if len(parts) == 1 else parts[-1] else: _href... | f626ae027098dba64367daa0ad6e264c26b443b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f626ae027098dba64367daa0ad6e264c26b443b7/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3659,
67,
869,
67,
1232,
12,
10037,
16,
3897,
16,
3895,
4672,
977,
273,
261,
89,
6309,
18,
5701,
12,
10037,
18,
18644,
2668,
1080,
11866,
3719,
2934,
6406,
1435,
309,
486,
977,
30,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3659,
67,
869,
67,
1232,
12,
10037,
16,
3897,
16,
3895,
4672,
977,
273,
261,
89,
6309,
18,
5701,
12,
10037,
18,
18644,
2668,
1080,
11866,
3719,
2934,
6406,
1435,
309,
486,
977,
30,
327... |
self.zoomOutAction.setStatusTip('Make the text larger') | self.zoomOutAction.setStatusTip('Make the text smaller') | def createActions(self): self.quitAction = QAction('Quit', self) self.connect(self.quitAction, SIGNAL('triggered()'), QApplication.instance().quit) | 6089727d25b87a865d9ffa5623cfc109f94d53cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/6089727d25b87a865d9ffa5623cfc109f94d53cb/smewg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6100,
12,
2890,
4672,
365,
18,
27176,
1803,
273,
2238,
1803,
2668,
25365,
2187,
365,
13,
365,
18,
3612,
12,
2890,
18,
27176,
1803,
16,
12057,
1013,
2668,
10668,
329,
11866,
3631,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6100,
12,
2890,
4672,
365,
18,
27176,
1803,
273,
2238,
1803,
2668,
25365,
2187,
365,
13,
365,
18,
3612,
12,
2890,
18,
27176,
1803,
16,
12057,
1013,
2668,
10668,
329,
11866,
3631,
22... |
b = repo.branchtags() heads = dict.fromkeys(repo.heads(), 1) l = [((n in heads), repo.changelog.rev(n), n, t) for t, n in b.items()] l.sort() l.reverse() for ishead, r, n, t in l: if active and not ishead: break else: hexfunc = ui.debugflag and hex or short | hexfunc = ui.debugflag and hex or short activebranches = [util.tolocal(repo.changectx(n).branch()) for n in repo.heads()] branches = [(tag in activebranches, repo.changelog.rev(node), tag) for tag, node in repo.branchtags().items()] branches.sort(reverse=True) for isactive, node, tag in branches: if (not active) or is... | def branches(ui, repo, active=False): """list repository named branches List the repository's named branches, indicating which ones are inactive. If active is specified, only show active branches. A branch is considered active if it contains unmerged heads. Use the command 'hg update' to switch to an existing branc... | 8e8d29fe6aed94e83d5d9dfabf0e0f42fbc9c3fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/8e8d29fe6aed94e83d5d9dfabf0e0f42fbc9c3fc/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11483,
12,
4881,
16,
3538,
16,
2695,
33,
8381,
4672,
3536,
1098,
3352,
4141,
11483,
225,
987,
326,
3352,
1807,
4141,
11483,
16,
11193,
1492,
5945,
854,
16838,
18,
225,
971,
2695,
353,
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,
11483,
12,
4881,
16,
3538,
16,
2695,
33,
8381,
4672,
3536,
1098,
3352,
4141,
11483,
225,
987,
326,
3352,
1807,
4141,
11483,
16,
11193,
1492,
5945,
854,
16838,
18,
225,
971,
2695,
353,
12... |
return self.filter(coord__in=list(str(key) for key in square.neighbors().keys()), status=1)\ .order_by('pos_x', 'pos_y') | return self.filter(coord__in=list(str(key)\ for key in square.neighbors().keys()), status=1)\ .order_by('pos_x', 'pos_y') | def neighbors(self, square): return self.filter(coord__in=list(str(key) for key in square.neighbors().keys()), status=1)\ .order_by('pos_x', 'pos_y') | 2844c59fafb2226bf343309e7977c99a4dd07b97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/2844c59fafb2226bf343309e7977c99a4dd07b97/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11003,
12,
2890,
16,
8576,
4672,
327,
365,
18,
2188,
12,
5732,
972,
267,
33,
1098,
12,
701,
12,
856,
13,
364,
498,
316,
8576,
18,
17549,
7675,
2452,
1435,
3631,
1267,
33,
21,
5153,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11003,
12,
2890,
16,
8576,
4672,
327,
365,
18,
2188,
12,
5732,
972,
267,
33,
1098,
12,
701,
12,
856,
13,
364,
498,
316,
8576,
18,
17549,
7675,
2452,
1435,
3631,
1267,
33,
21,
5153,
2... |
return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else []) | left = self._generate_edges(tree[0], parent=s, bit="0") right = self._generate_edges(tree[1], parent=s, bit="1") L = [(u, s)] if s != "" else [] return left + right + L | def _generate_edges(self, tree, father='', id=''): if father=='': u = 'root' else: u = father try: return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else []) | 0aa5d0e07206199e4e64708c13056046cecfe083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0aa5d0e07206199e4e64708c13056046cecfe083/huffman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
284,
4806,
775,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
284,
4806,
775,
30,
... |
try: opts, args = getopt.getopt(sys.argv[1:], 'cd') except getopt.error, msg: print >>sys.stderr, msg print >>sys.stderr, usage sys.exit(1) is_python = pysource.looks_like_python debug = False for o, a in opts: if o == '-c': is_python = pysource.can_be_compiled elif o == '-d': debug = True if not args: print >>sys.s... | paths: a list of files and/or directories to be checked. is_python: a function that takes a file name and checks whether it is a Python source file exclude_dirs: a list of directory base names that should be excluded in the search """ if exclude_dirs is None: exclude_dirs=[] for path in paths: print_debug("testing: %s... | def needs_declaration(fullpath): try: infile = open(fullpath, 'rU') except IOError: # Oops, the file was removed - ignore it return None line1 = infile.readline() line2 = infile.readline() if get_declaration(line1) or get_declaration(line2): # the file does have an encoding declaration, so trust it infile.close() ret... | cf21dba6a3042d2651a66805a6080a3c476ad222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cf21dba6a3042d2651a66805a6080a3c476ad222/pysource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4260,
67,
22448,
12,
2854,
803,
4672,
775,
30,
14568,
273,
1696,
12,
2854,
803,
16,
296,
86,
57,
6134,
1335,
8340,
30,
468,
531,
4473,
16,
326,
585,
1703,
3723,
300,
2305,
518,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4260,
67,
22448,
12,
2854,
803,
4672,
775,
30,
14568,
273,
1696,
12,
2854,
803,
16,
296,
86,
57,
6134,
1335,
8340,
30,
468,
531,
4473,
16,
326,
585,
1703,
3723,
300,
2305,
518,
327,
... |
raise TypeError, "The parameter for the initboot in the\ install section needs to be a Boolean." | raise TypeError,("The parameter for the initboot in the"+ " install section needs to be a Boolean.") | def createInstallSection(self, node, info, infoID=None, initBoot=None, bootStopDelay=None, ident=None): """ This method creates the install section used to describe a virtual system collection. | 1e366dda56653bbe1874c94abe9d80a9b34ba33a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/1e366dda56653bbe1874c94abe9d80a9b34ba33a/OvfFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6410,
5285,
12,
2890,
16,
756,
16,
1123,
16,
1123,
734,
33,
7036,
16,
1208,
15817,
33,
7036,
16,
4835,
4947,
6763,
33,
7036,
16,
3390,
33,
7036,
4672,
3536,
1220,
707,
3414,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6410,
5285,
12,
2890,
16,
756,
16,
1123,
16,
1123,
734,
33,
7036,
16,
1208,
15817,
33,
7036,
16,
4835,
4947,
6763,
33,
7036,
16,
3390,
33,
7036,
4672,
3536,
1220,
707,
3414,
326,
... |
root.tk.call("console", "hide") | tkRoot.tk.call("console", "hide") | def runTUI(): """Run TUI. """ # must do this before setting up preferences root = Tkinter.Tk() root.withdraw() # if console exists, hide it try: root.tk.call("console", "hide") except Tkinter.TclError: pass # create and obtain the TUI model tuiModel = TUI.Models.getModel("tui") # set up background tasks backgroundHan... | b769ae070e888c6afeb6201ae1bdb9ebc2926652 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6236/b769ae070e888c6afeb6201ae1bdb9ebc2926652/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
56,
5370,
13332,
3536,
1997,
399,
5370,
18,
3536,
468,
1297,
741,
333,
1865,
3637,
731,
12750,
1365,
273,
399,
79,
2761,
18,
56,
79,
1435,
1365,
18,
1918,
9446,
1435,
468,
309,
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,
1086,
56,
5370,
13332,
3536,
1997,
399,
5370,
18,
3536,
468,
1297,
741,
333,
1865,
3637,
731,
12750,
1365,
273,
399,
79,
2761,
18,
56,
79,
1435,
1365,
18,
1918,
9446,
1435,
468,
309,
2... |
else return "init_failed" | elif ret == "init_failed": return ret | def Start(hardhatScript, workingDir, cvsVintage, buildVersion, clobber, log): # make sure workingDir is absolute, remove it, and create it workingDir = os.path.abspath(workingDir) if not os.path.exists(workingDir): os.mkdir(workingDir) os.chdir(workingDir) # remove outputDir and create it outputDir = os.path.join(wor... | 53e485568cad74251281e8f5a04bbb66f7c61aa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/53e485568cad74251281e8f5a04bbb66f7c61aa8/chandler-newbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
12,
20379,
11304,
3651,
16,
5960,
1621,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
30152,
16,
613,
4672,
225,
468,
1221,
3071,
5960,
1621,
353,
4967,
16,
1206,
518,
16,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3603,
12,
20379,
11304,
3651,
16,
5960,
1621,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
30152,
16,
613,
4672,
225,
468,
1221,
3071,
5960,
1621,
353,
4967,
16,
1206,
518,
16,
471... |
find_associate_test_module_by_test_classs(project, module) | find_associate_test_module_by_test_class(project, module) | def find_test_module(project, test_class): """Find test module that will be good for the given test case. """ for module in test_class.associated_modules: test_module = find_associate_test_module_by_name(project, module) or \ find_associate_test_module_by_test_classs(project, module) if test_module: return test_module | 3088a24b03acae83f73f6f0d72658d1fed6ae49c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11544/3088a24b03acae83f73f6f0d72658d1fed6ae49c/adder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3813,
67,
2978,
12,
4406,
16,
1842,
67,
1106,
4672,
3536,
3125,
1842,
1605,
716,
903,
506,
7494,
364,
326,
864,
1842,
648,
18,
3536,
364,
1605,
316,
1842,
67,
1106,
18,
28441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
67,
3813,
67,
2978,
12,
4406,
16,
1842,
67,
1106,
4672,
3536,
3125,
1842,
1605,
716,
903,
506,
7494,
364,
326,
864,
1842,
648,
18,
3536,
364,
1605,
316,
1842,
67,
1106,
18,
28441... |
path = os.curdir | path = add_path | def test(): """Run MysteryMachine unit test on the default python""" path=os.getenv("PYTHONPATH") if path == None: path = os.curdir else: path = path+os.pathsep+os.curdir os.putenv("PYTHONPATH",path) for python in PYTHONS: sys.stderr.write( "Testing under %s:\n" % python ) #TODO: should this inner loop go inside test... | d275a4bcb6f0458c70a16103e3bf9c835b71f96d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11984/d275a4bcb6f0458c70a16103e3bf9c835b71f96d/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
1997,
490,
1094,
627,
6981,
2836,
1842,
603,
326,
805,
5790,
8395,
589,
33,
538,
18,
588,
3074,
2932,
16235,
20131,
4211,
7923,
309,
589,
422,
599,
30,
589,
273,
527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
3536,
1997,
490,
1094,
627,
6981,
2836,
1842,
603,
326,
805,
5790,
8395,
589,
33,
538,
18,
588,
3074,
2932,
16235,
20131,
4211,
7923,
309,
589,
422,
599,
30,
589,
273,
527,
... |
new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1) time.sleep(5) | new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1) time.sleep(5) | def proceed(self, url, location): container_id = self.parent.url.split("/")[-1].split("id=")[-1] url = "http://relink.us/view.php?id="+container_id self.html = self.req.load(url, cookies=True) temp_links = [] | ec73cb69f724da8594acad320e0ff1cf9543d131 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/ec73cb69f724da8594acad320e0ff1cf9543d131/RelinkUs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
3... |
rot = [] | rot = [None]*4 | def sendGameStatus(): px,py,pz = ballBody.getPosition() prot = ballBody.getRotation() r1,r2,r3,r4 = row1.getZ(), row2.getZ(), row3.getZ(), row4.getZ() o1,o2,o3,o4 = rrow1.getZ(), rrow2.getZ(), rrow3.getZ(), rrow4.getZ() rot = [] for i in range(0,4): rot[i] = kicker[i].getH() status = PyDatagram() status.addUint1... | 73d04275d5aecffbeaa4958b270fc22e07a236dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/73d04275d5aecffbeaa4958b270fc22e07a236dc/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12496,
1482,
13332,
10318,
16,
2074,
16,
84,
94,
273,
26503,
2250,
18,
588,
2555,
1435,
11121,
377,
273,
26503,
2250,
18,
588,
14032,
1435,
225,
436,
21,
16,
86,
22,
16,
86,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12496,
1482,
13332,
10318,
16,
2074,
16,
84,
94,
273,
26503,
2250,
18,
588,
2555,
1435,
11121,
377,
273,
26503,
2250,
18,
588,
14032,
1435,
225,
436,
21,
16,
86,
22,
16,
86,
23,
... |
if self._pool.full(): self._overflow -= 1 | self._overflow -= 1 | def do_return_invalid(self): if self._pool.full(): self._overflow -= 1 | 7626fc5aab8b625bb6e48e7374d4622efc7f1e5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/7626fc5aab8b625bb6e48e7374d4622efc7f1e5a/pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2463,
67,
5387,
12,
2890,
4672,
365,
6315,
11512,
3947,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2463,
67,
5387,
12,
2890,
4672,
365,
6315,
11512,
3947,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
del netsvc.SERVICES[name] | del netsvc.SERVICES[gname] | def registered_wizard(name): """ Register dynamicaly the wizard """ gname = 'wizard.%s' % name if netsvc.service_exist(gname): if isinstance(netsvc.SERVICES[gname], format_choice): return del netsvc.SERVICES[name] format_choice(name) | ddda596f2e44adb02246bb7d9ad1ecb128240b69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6641/ddda596f2e44adb02246bb7d9ad1ecb128240b69/format_choice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4104,
67,
31837,
12,
529,
4672,
3536,
5433,
19468,
1706,
93,
326,
24204,
3536,
314,
529,
273,
296,
31837,
7866,
87,
11,
738,
508,
309,
21954,
4227,
18,
3278,
67,
7398,
12,
75,
529,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4104,
67,
31837,
12,
529,
4672,
3536,
5433,
19468,
1706,
93,
326,
24204,
3536,
314,
529,
273,
296,
31837,
7866,
87,
11,
738,
508,
309,
21954,
4227,
18,
3278,
67,
7398,
12,
75,
529,
467... |
r = 250; g = 0; b = 0; i = 0; | r = 255 g = 0 b = 0 i = 0 j= time.time() | def run ( self ): global ar global status while 1: if self.readline(): if len(ar) > 3 and ar[0] == 'P': #print #received packet print "%s Sender=%d Rec=%d Seq=%d Data:" % (time.time(),ord(ar[3]),ord(ar[2]),ord(ar[1])) print ar[4:] elif len(ar) > 1 and ar[0] == 'D': #debug info if... | df8f7c831c89b8e1eeb2aa8512fe097e89393d42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11679/df8f7c831c89b8e1eeb2aa8512fe097e89393d42/rfinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
365,
262,
30,
2552,
419,
2552,
1267,
1323,
404,
30,
309,
365,
18,
896,
1369,
13332,
309,
562,
12,
297,
13,
405,
890,
471,
419,
63,
20,
65,
422,
296,
52,
4278,
468,
1188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
262,
30,
2552,
419,
2552,
1267,
1323,
404,
30,
309,
365,
18,
896,
1369,
13332,
309,
562,
12,
297,
13,
405,
890,
471,
419,
63,
20,
65,
422,
296,
52,
4278,
468,
1188,
... |
return self.get_child_iters_by_parent(iter) | return self.get_child_iters_by_parent(model, iter) | def get_all_child_beans_by_selected(self): filter_model, paths = self.get_selection().get_selected_rows() model = filter_model.get_model() iter = model.get_iter(paths[0]) return self.get_child_iters_by_parent(iter) | 3a1eef384846fb294d594329d48b4e92447c6347 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/3a1eef384846fb294d594329d48b4e92447c6347/common_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
3624,
67,
2196,
634,
67,
1637,
67,
8109,
12,
2890,
4672,
1034,
67,
2284,
16,
2953,
273,
365,
18,
588,
67,
10705,
7675,
588,
67,
8109,
67,
3870,
1435,
938,
273,
1034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
3624,
67,
2196,
634,
67,
1637,
67,
8109,
12,
2890,
4672,
1034,
67,
2284,
16,
2953,
273,
365,
18,
588,
67,
10705,
7675,
588,
67,
8109,
67,
3870,
1435,
938,
273,
1034... |
self._AddError(lineno, 'Must have some modifier (e.g. bug number).', line) | self._AddError(lineno, 'Must have some modifier (e.g. bug number).', line) | def _Read(self, path): """For each test in an expectations file, generate the expectations for it. """ lineno = 0 for line in open(path): lineno += 1 line = StripComments(line) if not line: continue | 64e0ec0be0663c7f520c6cb9728c055edc916a89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/64e0ec0be0663c7f520c6cb9728c055edc916a89/test_expectations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
12,
2890,
16,
589,
4672,
3536,
1290,
1517,
1842,
316,
392,
26305,
585,
16,
2103,
326,
26305,
364,
518,
18,
3536,
7586,
273,
374,
364,
980,
316,
1696,
12,
803,
4672,
7586,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
12,
2890,
16,
589,
4672,
3536,
1290,
1517,
1842,
316,
392,
26305,
585,
16,
2103,
326,
26305,
364,
518,
18,
3536,
7586,
273,
374,
364,
980,
316,
1696,
12,
803,
4672,
7586,
10... |
length = length - 2 | length = length - 1 break elif platformId == 1 and encodingId == 0 and languageId == 0 \ and nameId == 6: psName = self.get_chunk(string_data_offset + offset, length) for char in psName: char = ord(char) if char < 33 or char > 126 or chr(char) in \ ('[', ']', '(', ')', '{', '}', '<', '>', '/', '%'): raise TTFError, ... | def extractInfo(self, charInfo=1): """Extract typographic information from the loaded font file. | dc9fc2a23ae8cc092d04aa76950652ec03fc6c00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/dc9fc2a23ae8cc092d04aa76950652ec03fc6c00/ttfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
966,
12,
2890,
16,
1149,
966,
33,
21,
4672,
3536,
4976,
3815,
16983,
1779,
628,
326,
4203,
3512,
585,
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,
2608,
966,
12,
2890,
16,
1149,
966,
33,
21,
4672,
3536,
4976,
3815,
16983,
1779,
628,
326,
4203,
3512,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
filename = self.findFileInDir(u"%s.%s" % (available_metadata['title'], ext), self.config[graphicsDirectories[graphic_type]], suffix=self.graphic_suffix[graphic_type], fuzzy_match=True) | filename = self.findFileInDir(u"%s.%s" % (sanitiseFileName(available_metadata['title']), ext), self.config[graphicsDirectories[graphic_type]], suffix=self.graphic_suffix[graphic_type], fuzzy_match=True) | def processMythTvMetaData(self): '''Check each video file in the mythvideo directories download graphics files and meta data then update MythTV data base meta data with any new information. ''' # If there were directories specified move them and update the MythTV db meta data accordingly if self.config['video_dir']: if... | f132146d19febfbd3e15736f0f51f9e3d1f72607 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/f132146d19febfbd3e15736f0f51f9e3d1f72607/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
... |
global _platform_cache,_platform_aliased_cache if not aliased and (_platform_cache[bool(terse)] is not None): return _platform_cache[bool(terse)] elif _platform_aliased_cache[bool(terse)] is not None: return _platform_aliased_cache[bool(terse)] | global _platform_cache_terse, _platform_cache_not_terse global _platform_aliased_cache_terse, _platform_aliased_cache_not_terse if not aliased and terse and (_platform_cache_terse is not None): return _platform_cache_terse elif not aliased and not terse and (_platform_cache_not_terse is not None): return _platform_cac... | def platform(aliased=0, terse=0): """ Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is ... | 1b1010688617181994c623f282e27d1820adcf26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1b1010688617181994c623f282e27d1820adcf26/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4072,
12,
18083,
8905,
33,
20,
16,
19272,
307,
33,
20,
4672,
225,
3536,
2860,
279,
2202,
533,
29134,
326,
6808,
4072,
598,
487,
9816,
5301,
1779,
487,
3323,
261,
12885,
1158,
1898,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4072,
12,
18083,
8905,
33,
20,
16,
19272,
307,
33,
20,
4672,
225,
3536,
2860,
279,
2202,
533,
29134,
326,
6808,
4072,
598,
487,
9816,
5301,
1779,
487,
3323,
261,
12885,
1158,
1898,
294,
... |
def __init__(self,custom_profile=None, untrusted_certificates=False, custom_args=""): | def __init__(self, custom_profile=None, untrusted_certificates=False, custom_args=""): | def __init__(self,custom_profile=None, untrusted_certificates=False, custom_args=""): self._server = None self._profile_dir = custom_profile self._extension_dir = None self._chrome = None self._untrusted_certificates = " --ignore-certificate-errors " if untrusted_certificates else "" self._custom_args = custom_args | e474f441b10a13d9a67358685e0a01f8158c57a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/215/e474f441b10a13d9a67358685e0a01f8158c57a7/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1679,
67,
5040,
33,
7036,
16,
640,
25247,
67,
71,
7696,
33,
8381,
16,
1679,
67,
1968,
1546,
6,
4672,
365,
6315,
3567,
273,
599,
365,
6315,
5040,
67,
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,
1001,
2738,
972,
12,
2890,
16,
1679,
67,
5040,
33,
7036,
16,
640,
25247,
67,
71,
7696,
33,
8381,
16,
1679,
67,
1968,
1546,
6,
4672,
365,
6315,
3567,
273,
599,
365,
6315,
5040,
67,
12... |
return {'value':{'server':'smtp.gmail.com', 'port':25, 'ssl':True, 'auth':True}} | return {'value':{'server':'smtp.gmail.com', 'port':'25', 'ssl':True, 'auth':True}} | def change_servertype(self, cr, uid, ids, server): if server == 'gmail': return {'value':{'server':'smtp.gmail.com', 'port':25, 'ssl':True, 'auth':True}} elif server== 'yahoo': return {'value':{'server':'smtp.mail.yahoo.co.in', 'ssl':False, 'port':587, 'auth':True}} else: return {'value':{'server':'localhost', 'port':2... | 61394052a2f78d89f3b305801591f8fbdce68a18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/61394052a2f78d89f3b305801591f8fbdce68a18/smtpclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
3567,
723,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1438,
4672,
309,
1438,
422,
296,
75,
4408,
4278,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
20278,
18,
75,
4408,
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,
2549,
67,
3567,
723,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1438,
4672,
309,
1438,
422,
296,
75,
4408,
4278,
327,
13666,
1132,
4278,
27828,
3567,
11,
2497,
20278,
18,
75,
4408,
18... |
if vc_type not in _version_controls: | if not vcs.get_backend(vc_type): | def parse_editable(editable_req): """Parses svn+http://blahblah@rev#egg=Foobar into a requirement (Foobar) and a URL""" url = editable_req if os.path.isdir(url) and os.path.exists(os.path.join(url, 'setup.py')): # Treating it as code that has already been checked out url = filename_to_url(url) if url.lower().startswith... | 404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa/pip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
19653,
12,
19653,
67,
3658,
4672,
3536,
6656,
5893,
82,
15,
2505,
2207,
3083,
9795,
3083,
9795,
36,
9083,
7,
23171,
33,
42,
83,
947,
297,
1368,
279,
12405,
261,
42,
83,
947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
19653,
12,
19653,
67,
3658,
4672,
3536,
6656,
5893,
82,
15,
2505,
2207,
3083,
9795,
3083,
9795,
36,
9083,
7,
23171,
33,
42,
83,
947,
297,
1368,
279,
12405,
261,
42,
83,
947,
... |
w = self.width * scale - 1 h = self.height * scale - 1 | w = self.image.width * scale h = self.image.height * scale | def scale(self, scale=None): scroll_amount = self.scroll_amount scaling = self.scaling if scale == None: scale = scaling w = self.width * scale - 1 h = self.height * scale - 1 origin = [x * self.scroll_amount for x in self.GetViewStart()] x = max(min(origin[0] * scale / scaling + 1, w - self.GetSize().x) - 2, 0) y = ma... | 2933083de4a9e93226072bcc8aa7851a6a2b86c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/2933083de4a9e93226072bcc8aa7851a6a2b86c7/gamera_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
10612,
273,
365,
18,
24576,
309,
3159,
422,
599,
30,
3159,
273,
10612,
341,
273,
365,
18,
2730,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
10612,
273,
365,
18,
24576,
309,
3159,
422,
599,
30,
3159,
273,
10612,
341,
273,
365,
18,
2730,... |
bio = BIO.openfile(filepath, 'wb') | bio = BIO.openfile(filename, 'wb') | def save_pub_key(self, filename): """ Save the DSA public key (with parameters) to a file. @type filename: str @param filename: Save DSA public key (with parameters) to this file. @return: 1 (true) if successful """ bio = BIO.openfile(filepath, 'wb') ret = self.save_pub_key_bio(bio) bio.close() return ret | e4ec01921fcc2d6a2fce49db5dd86c1b64a07ead /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/e4ec01921fcc2d6a2fce49db5dd86c1b64a07ead/DSA.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
10174,
67,
856,
12,
2890,
16,
1544,
4672,
3536,
7074,
326,
463,
5233,
1071,
498,
261,
1918,
1472,
13,
358,
279,
585,
18,
225,
632,
723,
225,
1544,
30,
609,
632,
891,
1544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
67,
10174,
67,
856,
12,
2890,
16,
1544,
4672,
3536,
7074,
326,
463,
5233,
1071,
498,
261,
1918,
1472,
13,
358,
279,
585,
18,
225,
632,
723,
225,
1544,
30,
609,
632,
891,
1544,
... |
*(type_str.split(':'))) | *(type_str.split(':', 2))) | def find_port_types(self): from core.modules.module_registry import get_module_registry, \ ModuleRegistryException registry = get_module_registry() self._descriptors = [] if self.signature: signature_str = self.signature[1:-1].strip() if signature_str != "": try: for type_str in signature_str.split(','): desc = registr... | 58023c9dcc2bffab0cc5e5616ba7822094a4d0fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/58023c9dcc2bffab0cc5e5616ba7822094a4d0fe/port.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
655,
67,
2352,
12,
2890,
4672,
628,
2922,
18,
6400,
18,
2978,
67,
9893,
1930,
336,
67,
2978,
67,
9893,
16,
521,
5924,
4243,
503,
4023,
273,
336,
67,
2978,
67,
9893,
1435,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
67,
655,
67,
2352,
12,
2890,
4672,
628,
2922,
18,
6400,
18,
2978,
67,
9893,
1930,
336,
67,
2978,
67,
9893,
16,
521,
5924,
4243,
503,
4023,
273,
336,
67,
2978,
67,
9893,
1435,
3... |
not link.startswith("__al_gl") and \ not link.startswith("__ALLEGRO_gl") and \ | not link.startswith("_al_gl") and \ not link.startswith("_ALLEGRO_gl") and \ | def check_undocumented_functions(): """ Cross-compare the documentation links with public symbols found in headers. """ print("Checking if each documented function exists...") includes = " -I include -I " + os.path.join(options.path, "include") includes += " -I addons/acodec" headers = ["include/allegro5/allegro5.h", ... | d7087d33615981d54448a8d5b13d2f77abb441b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14418/d7087d33615981d54448a8d5b13d2f77abb441b6/checkdocs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1074,
504,
650,
329,
67,
10722,
13332,
3536,
19742,
17,
9877,
326,
7323,
4716,
598,
1071,
7963,
1392,
316,
1607,
18,
3536,
1172,
2932,
14294,
309,
1517,
23051,
445,
1704,
7070,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1074,
504,
650,
329,
67,
10722,
13332,
3536,
19742,
17,
9877,
326,
7323,
4716,
598,
1071,
7963,
1392,
316,
1607,
18,
3536,
1172,
2932,
14294,
309,
1517,
23051,
445,
1704,
7070,
... |
try: return self._call('commitVersion', src, dest, self._serial) | try: oids=self._call('commitVersion', src, dest, self._serial) invalidate=self._cache.invalidate if dest: for oid in oids: invalidate(oid, src) else: for oid in oids: invalidate(oid, dest) return oids | def commitVersion(self, src, dest, transaction): if transaction is not self._transaction: raise POSException.StorageTransactionError(self, transaction) self._lock_acquire() try: return self._call('commitVersion', src, dest, self._serial) finally: self._lock_release() | c89a419ee8f07b8a33e4840923d2c422b67576aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/c89a419ee8f07b8a33e4840923d2c422b67576aa/ClientStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
1444,
12,
2890,
16,
1705,
16,
1570,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
365,
6315,
739,
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,
3294,
1444,
12,
2890,
16,
1705,
16,
1570,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
365,
6315,
739,
67,
... |
g = open(working_path + self.country + '_mls_report.tex', 'w') | output_filename = working_path + self.country + '_mls_report.tex' output_filename = output_filename.replace(" ","_") g = open(output_filename, 'w') | def finish (self): #"$<$put-a-country-here$>$" #"$<$put-mailing-lists-number$>$" #"$<$put-projects-number$>$" #"$<$put-posters-number$>$" #"$<$put-messages-number$>$" #"$<$put-date$>$" #"$<$put-top10-mailing-lists$>$" #"$<$put-all-mailing-lists$>$" #"$<$put-all-posters$>$" working_path = self.result_path + '../' print ... | 6e6a37ad8059f59d249bc3b6f39f931a82b3a4d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10886/6e6a37ad8059f59d249bc3b6f39f931a82b3a4d2/latex_country_report_transformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
261,
2890,
4672,
31526,
8,
32,
8,
458,
17,
69,
17,
9082,
17,
14852,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
4408,
310,
17,
9772,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4076,
261,
2890,
4672,
31526,
8,
32,
8,
458,
17,
69,
17,
9082,
17,
14852,
8,
34,
12911,
31526,
8,
32,
8,
458,
17,
4408,
310,
17,
9772,
17,
2696,
8,
34,
12911,
31526,
8,
32,
8,
45... |
sqlquery = """ | sqlquery = ''.join([ """ | def clean_using_coinc_table( connection, table_name, verbose = False, clean_experiment_map = True, clean_coinc_event_table = True, clean_coinc_definer = True, clean_coinc_event_map = True, clean_mapped_tables = True, selected_tables = []): """ Clears experiment_map, coinc_event, coinc_event_map, and all tables pointing... | 34e81bb557de4ff75defac4a05e5a94a68af7db0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/34e81bb557de4ff75defac4a05e5a94a68af7db0/ligolw_sqlutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
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,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,... |
"""Called by the protocol to queue it for later writing.""" | """ Called by the protocol to queue it for later writing. """ | def throttledWrites(self, p): """Called by the protocol to queue it for later writing.""" assert p not in self._writeQueue self._writeQueue.append(p) | 58eccda74a195382b889cef4bef5351d7ade115f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/58eccda74a195382b889cef4bef5351d7ade115f/policies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27335,
8368,
12,
2890,
16,
293,
4672,
3536,
11782,
635,
326,
1771,
358,
2389,
518,
364,
5137,
7410,
18,
3536,
1815,
293,
486,
316,
365,
6315,
2626,
3183,
365,
6315,
2626,
3183,
18,
6923,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27335,
8368,
12,
2890,
16,
293,
4672,
3536,
11782,
635,
326,
1771,
358,
2389,
518,
364,
5137,
7410,
18,
3536,
1815,
293,
486,
316,
365,
6315,
2626,
3183,
365,
6315,
2626,
3183,
18,
6923,... |
"Producer wrapper for file[-like] objects." | """Producer wrapper for file[-like] objects.""" | def close(self): debug("DTPHandler.close()") | e1763c9db15d5d6d781646fb0678f3c70d95867a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e1763c9db15d5d6d781646fb0678f3c70d95867a/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1198,
2932,
9081,
52,
1503,
18,
4412,
1435,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1746,
12,
2890,
4672,
1198,
2932,
9081,
52,
1503,
18,
4412,
1435,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
"<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ | "<p>To reselect the atoms in an Atom Set, select "\ "it's context menu in the Model Tree and click the "\ "menu item that states "\ | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
pat = sre.compile('a(?:b|(c|e){1,2}?|d)+?(.)') | pat = sre.compile(r'a(?:b|(c|e){1,2}?|d)+?(.)') | def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1) | 8b3ad8b8937d0e43717e8c99bf18a17752f68db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8b3ad8b8937d0e43717e8c99bf18a17752f68db4/test_sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
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,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
-100,
-100,
-100,
-100,
-10... |
QToolTip.add(self.textLabel1_3_2,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) QWhatsThis.add(self.textLabel1_3_2,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) | def languageChange(self): self.setCaption(self.__tr("Preferences")) self.ok_btn.setText(self.__tr("OK")) self.groupBox7_2.setTitle(self.__tr("Compass and Axes")) self.display_compass_checkbox.setText(self.__tr("Display Compass")) self.display_origin_axis_checkbox.setText(self.__tr("Display Origin Axis")) self.display_p... | e8ed4e8f9c7327a927525490eeab1369d29a338e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e8ed4e8f9c7327a927525490eeab1369d29a338e/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
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,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
365,
18,... | |
'*.ba', '*/.xvpic', '*.ori', | '*.bak', '*/.xvpics', '*.orig', | def notsymlink(pkg, f): files = pkg.files() enreg = files[f] mode = enreg[0] type = (mode>>12)&017 return type != 012 | 941b427d893985d9017f3e8d9e23d3c2d07a36df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10341/941b427d893985d9017f3e8d9e23d3c2d07a36df/CheckFilelist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
21278,
12,
10657,
16,
284,
4672,
1390,
273,
3475,
18,
2354,
1435,
570,
1574,
273,
1390,
63,
74,
65,
1965,
273,
570,
1574,
63,
20,
65,
618,
273,
261,
3188,
9778,
2138,
13,
10,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
21278,
12,
10657,
16,
284,
4672,
1390,
273,
3475,
18,
2354,
1435,
570,
1574,
273,
1390,
63,
74,
65,
1965,
273,
570,
1574,
63,
20,
65,
618,
273,
261,
3188,
9778,
2138,
13,
10,
16... |
self.stream.flush() | if self.stream: self.stream.flush() | def flush(self): """ Flushes the stream. """ self.stream.flush() | 4df367c08d042f2bc6b789d197c86cf4c13a15df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4df367c08d042f2bc6b789d197c86cf4c13a15df/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
11624,
281,
326,
1407,
18,
3536,
365,
18,
3256,
18,
11330,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
11624,
281,
326,
1407,
18,
3536,
365,
18,
3256,
18,
11330,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
aT.translateXBy_yBy_(xA + w -xP, -yP) | aT.translateXBy_yBy_(xA - xP, yA - yP) | def drawRectLeftToRight_(self, rect): self._alternateRects = {} # draw the background bounds = self.bounds() self._backgroundColor.set() NSRectFill(bounds) # create some reusable values scale = self._scale descender = self._descender upm = self._upm scaledBuffer = self._buffer * (1.0 / scale) # offset for the buffer ct... | 5a673ffbd30b8726db9034e60dcc25f5cfad6edf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8848/5a673ffbd30b8726db9034e60dcc25f5cfad6edf/glyphLineView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
6120,
3910,
774,
4726,
67,
12,
2890,
16,
4917,
4672,
365,
6315,
16025,
340,
6120,
87,
273,
2618,
468,
3724,
326,
5412,
4972,
273,
365,
18,
10576,
1435,
365,
6315,
9342,
2957,
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,
3724,
6120,
3910,
774,
4726,
67,
12,
2890,
16,
4917,
4672,
365,
6315,
16025,
340,
6120,
87,
273,
2618,
468,
3724,
326,
5412,
4972,
273,
365,
18,
10576,
1435,
365,
6315,
9342,
2957,
18,
... |
def parseCommandLine( script = False, ignoreErrors = False, initializeMonitor = True ): | def parseCommandLine( script = False, ignoreErrors = False, initializeMonitor = False ): | def parseCommandLine( script = False, ignoreErrors = False, initializeMonitor = True ): initialize( script, ignoreErrors, initializeMonitor, True ) | 40bca44e2115660292372a7187da69b208a4289b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/40bca44e2115660292372a7187da69b208a4289b/Script.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
21391,
12,
2728,
273,
1083,
16,
2305,
4229,
273,
1083,
16,
4046,
7187,
273,
1083,
262,
30,
4046,
12,
2728,
16,
2305,
4229,
16,
4046,
7187,
16,
1053,
262,
225,
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,
1109,
21391,
12,
2728,
273,
1083,
16,
2305,
4229,
273,
1083,
16,
4046,
7187,
273,
1083,
262,
30,
4046,
12,
2728,
16,
2305,
4229,
16,
4046,
7187,
16,
1053,
262,
225,
2,
-100,
-100,
-100... |
result = [self.getPkgByKey(ob.pkgKey) for ob in cur.fetchall()] | result = [self.getPkgByKey(ob["pkgKey"]) for ob in cur.fetchall()] | def getPkgs(self): cur = self._primarydb.cursor() cur.execute('SELECT pkgKey FROM packages') result = [self.getPkgByKey(ob.pkgKey) for ob in cur.fetchall()] return filter(None, result) | 81bddd7eecda01eeb8ff729aefec978b2d68e47b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/81bddd7eecda01eeb8ff729aefec978b2d68e47b/sqliterepodb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
79,
564,
12,
2890,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2668,
4803,
3475,
653,
4571,
5907,
6134,
563,
273,
306,
2890,
18,
588,
11264,
14560,
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,
1689,
79,
564,
12,
2890,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2668,
4803,
3475,
653,
4571,
5907,
6134,
563,
273,
306,
2890,
18,
588,
11264,
14560,
12,
... |
raise socket.error, err | raise socket.error, (err, errorcode[err]) | def connect(self, address): self.connected = False err = self.socket.connect_ex(address) # XXX Should interpret Winsock return values if err in (EINPROGRESS, EALREADY, EWOULDBLOCK): return if err in (0, EISCONN): self.addr = address self.connected = True self.handle_connect() else: raise socket.error, err | 174bdbc999e59363739b1127b0ced4fa8e25b3dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/174bdbc999e59363739b1127b0ced4fa8e25b3dc/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1758,
4672,
365,
18,
8537,
273,
1083,
393,
273,
365,
18,
7814,
18,
3612,
67,
338,
12,
2867,
13,
468,
11329,
9363,
10634,
678,
2679,
975,
327,
924,
309,
393,
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,
3077,
12,
2890,
16,
1758,
4672,
365,
18,
8537,
273,
1083,
393,
273,
365,
18,
7814,
18,
3612,
67,
338,
12,
2867,
13,
468,
11329,
9363,
10634,
678,
2679,
975,
327,
924,
309,
393,
316,
... |
print "WARNING: Missing CGs for InCell dataset: %r" % names | log.warn("Missing CGs for InCell dataset: %r" % names) | def parse_and_populate_roi(self, columns_as_list): # First sanity check our provided columns names = [column.name for column in columns_as_list] cells_expected = [name in names for name in self.CELLS_CG_EXPECTED] nuclei_expected = [name in names for name in self.NUCLEI_CG_EXPECTED] if (False in cells_expected) and (Fal... | 2abc05f6ec4c7dd58ee9bb618f839a4be9554279 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/2abc05f6ec4c7dd58ee9bb618f839a4be9554279/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
464,
67,
19936,
67,
303,
77,
12,
2890,
16,
2168,
67,
345,
67,
1098,
4672,
468,
5783,
16267,
866,
3134,
2112,
2168,
1257,
273,
306,
2827,
18,
529,
364,
1057,
316,
2168,
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,
1109,
67,
464,
67,
19936,
67,
303,
77,
12,
2890,
16,
2168,
67,
345,
67,
1098,
4672,
468,
5783,
16267,
866,
3134,
2112,
2168,
1257,
273,
306,
2827,
18,
529,
364,
1057,
316,
2168,
67,
... |
labels = labels + ['']*i | labels = list(labels) + [''] * i | def makeSectors(self): # normalize slice data if type(self.data) in (ListType, TupleType) and type(self.data[0]) in (ListType, TupleType): #it's a nested list, more than one sequence normData = [] n = [] for l in self.data: t = self.normalizeData(l) normData.append(t) n.append(len(t)) else: normData = self.normalizeDat... | 9f7c4ede4ed7d8a83ed0d01bc510eacc6c4dec3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9f7c4ede4ed7d8a83ed0d01bc510eacc6c4dec3c/doughnut.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366... |
rw = RequestWrapper( request ) | rw = RequestWrapper.getWrapper( request ) | def get_session (self, request): """Proxy method to SessionManager get_session. It converts the mod_python request objects in a SessionManager compatible one and executes the parent implementation passing the compatible object """ rw = RequestWrapper( request ) s = SessionManager.get_session( self, rw ) rw.setSession(... | d8fa029a75c47b3f2fa129c805e875f1188cb1ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/d8fa029a75c47b3f2fa129c805e875f1188cb1ad/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
3886,
707,
358,
3877,
1318,
336,
67,
3184,
18,
2597,
7759,
326,
681,
67,
8103,
590,
2184,
316,
279,
3877,
1318,
7318,
1245,
471,
11997,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
3886,
707,
358,
3877,
1318,
336,
67,
3184,
18,
2597,
7759,
326,
681,
67,
8103,
590,
2184,
316,
279,
3877,
1318,
7318,
1245,
471,
11997,
3... |
def random_element(self, degree, bound=0): | def random_element(self, degree, *args, **kwds): | def random_element(self, degree, bound=0): """ Return a random polynomial. INPUT: degree -- an integer bound -- an integer (default: 0, which tries to spread choice across ring, if implemented) | d7f871f90f66b73e2cff7bbfc8466421a9efed47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d7f871f90f66b73e2cff7bbfc8466421a9efed47/polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
2956,
12,
2890,
16,
10782,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
2000,
279,
2744,
16991,
18,
225,
12943,
30,
10782,
1493,
392,
3571,
2489,
1493,
392,
3571,
261,
1886,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2744,
67,
2956,
12,
2890,
16,
10782,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
2000,
279,
2744,
16991,
18,
225,
12943,
30,
10782,
1493,
392,
3571,
2489,
1493,
392,
3571,
261,
1886,
30,... |
if self.topic_class == 'contents': self.body.append('\n') else: self.body.append('\n') | self.body.append('\n') | def depart_paragraph(self, node): if self.topic_class == 'contents': self.body.append('\n') else: self.body.append('\n') | 3449eb547b826ebeae4cc2d414ffd515229b5a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/3449eb547b826ebeae4cc2d414ffd515229b5a2e/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
22445,
12,
2890,
16,
756,
4672,
309,
365,
18,
10476,
67,
1106,
422,
296,
3980,
4278,
365,
18,
3432,
18,
6923,
2668,
64,
82,
6134,
469,
30,
365,
18,
3432,
18,
6923,
2668,
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,
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,
26000,
67,
22445,
12,
2890,
16,
756,
4672,
309,
365,
18,
10476,
67,
1106,
422,
296,
3980,
4278,
365,
18,
3432,
18,
6923,
2668,
64,
82,
6134,
469,
30,
365,
18,
3432,
18,
6923,
2668,
6... |
author_email='zope3-dev@zope.org', | author_email='zope-dev@zope.org', | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 23f3c871985c0d344d6567fd0c29e668fbe72d21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9823/23f3c871985c0d344d6567fd0c29e668fbe72d21/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,... |
l = "%s\000%s%s\n" % (f, hex(map[f]), flags[f] and "x" or '') | l = "%s\000%s%s\n" % (f, hex(map[f]), flags[f] and "x" or '') | def calcoffsets(addlist): offsets = [0] * (len(addlist) + 1) offset = 0 i = 0 while i < len(addlist): offsets[i] = offset offset += len(addlist[i]) i += 1 offsets[i] = offset return offsets | b74c369a3cda5e3af5f3e7663c06b715452bf139 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/b74c369a3cda5e3af5f3e7663c06b715452bf139/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
16542,
12,
1289,
1098,
4672,
8738,
273,
306,
20,
65,
380,
261,
1897,
12,
1289,
1098,
13,
397,
404,
13,
1384,
273,
374,
277,
273,
374,
1323,
277,
411,
562,
12,
1289,
1098,
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,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
16542,
12,
1289,
1098,
4672,
8738,
273,
306,
20,
65,
380,
261,
1897,
12,
1289,
1098,
13,
397,
404,
13,
1384,
273,
374,
277,
273,
374,
1323,
277,
411,
562,
12,
1289,
1098,
4672,
... |
if not multiline: vstr = vstr.replace('\n', '') vstr = vstr.replace(' ', ' ') vstr = vstr.replace('<span ', '<span ') vstr = self._linewrap_html(vstr, summary_linelen, 1) return '<code>%s</code>\n' % vstr | def pprint_pyval(self, pyval, multiline=True, summary_linelen=0): # Handle the most common cases first. The following types # will never need any line wrapping, etc; and they cover most # variable values (esp int, for constants). I leave out # LongType on purpose, since long values may need line- # wrapping. if (type... | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468... | |
tstart = coinc_ringdown.get_start() | def append_coinc(self, process_id, time_slide_id, coinc_def_id, events): # # populate the coinc_event and coinc_event_map tables # | 33c375988e5fbb955cb57c83b181ddc3e9420c4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/33c375988e5fbb955cb57c83b181ddc3e9420c4e/ligolw_rinca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
12645,
71,
12,
2890,
16,
1207,
67,
350,
16,
813,
67,
26371,
67,
350,
16,
13170,
71,
67,
536,
67,
350,
16,
2641,
4672,
468,
468,
6490,
326,
13170,
71,
67,
2575,
471,
13170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
12645,
71,
12,
2890,
16,
1207,
67,
350,
16,
813,
67,
26371,
67,
350,
16,
13170,
71,
67,
536,
67,
350,
16,
2641,
4672,
468,
468,
6490,
326,
13170,
71,
67,
2575,
471,
13170,
... | |
wkf.setAttribute("model", rec[1][3]) wkf.setAttribute("action", rec[1][4]) | wkf.setAttribute("model", rec[1][2]) wkf.setAttribute("action", rec[1][3]) | def generate_xml(self, cr, uid): # Create the minidom document if len(self.recording_data): self.ids = {} doc = minidom.Document() terp = doc.createElement("openerp") doc.appendChild(terp) for rec in self.recording_data: if rec[0]=='workflow': rec_id,noupdate = self._get_id(cr, uid, rec[1][2], rec[1][4]) if not rec_id:... | e1eeb3549e1229078548489f2c70b6d1d2967d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e1eeb3549e1229078548489f2c70b6d1d2967d9d/base_module_record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
4672,
468,
1788,
326,
1131,
350,
362,
1668,
309,
562,
12,
2890,
18,
3366,
310,
67,
892,
4672,
365,
18,
2232,
273,
2618,
997,
273,
1131,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2902,
12,
2890,
16,
4422,
16,
4555,
4672,
468,
1788,
326,
1131,
350,
362,
1668,
309,
562,
12,
2890,
18,
3366,
310,
67,
892,
4672,
365,
18,
2232,
273,
2618,
997,
273,
1131,
... |
self.assert_(msg.get_sequences() == ['unseen', 'flagged']) | self.assertEqual(msg.get_sequences(), ['unseen', 'flagged']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') se... | 9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... |
if isinstance(dtypechars, basestring) and len(dtypechars) > 1: dtypechars = list(dtypechars) if isinstance(dtypechars, (list,tuple)): if len(dtypechars) != ncols: raise ValueError("When specifying the number of columns, you may either specify a single dtypechar or a list with that many entries.") elif dtypechars is No... | if isinstance(typecodes, basestring) and len(typecodes) > 1: typecodes = list(typecodes) if isinstance(typecodes, (list,tuple)): if len(typecodes) != ncols: raise ValueError("When specifying the number of columns, you may either specify a single typecode or a list with that many entries.") elif typecodes is None: | def __init__(self, data=None, ncols=0, nrows=0, dtypechars=None): """ | d323a0e51c5bfbfe6a5d20c4a492829533562316 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/d323a0e51c5bfbfe6a5d20c4a492829533562316/table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
33,
7036,
16,
21330,
33,
20,
16,
18871,
33,
20,
16,
3182,
7549,
33,
7036,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
501,
33,
7036,
16,
21330,
33,
20,
16,
18871,
33,
20,
16,
3182,
7549,
33,
7036,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def sr(x,filter=None, *args,**kargs): | s.close() def sr(x,filter=None, iface=None, *args,**kargs): | def sendp(x, inter=0, *args, **kargs): """Send packets at layer 2""" if not isinstance(x, Gen): x = SetGen(x) s=conf.L2socket(*args, **kargs) for p in x: s.send(p) time.sleep(inter) | 4ab0830431443d93b512facc592cad2f9ac6ca25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4ab0830431443d93b512facc592cad2f9ac6ca25/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
84,
12,
92,
16,
1554,
33,
20,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
3536,
3826,
12640,
622,
3018,
576,
8395,
309,
486,
1549,
12,
92,
16,
10938,
4672,
619,
273,
1000,
7642,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
84,
12,
92,
16,
1554,
33,
20,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
3536,
3826,
12640,
622,
3018,
576,
8395,
309,
486,
1549,
12,
92,
16,
10938,
4672,
619,
273,
1000,
7642,
1... |
deltah=0 deltas=0 | deltah = 0 deltas = 0 | def tercorr(stri): deltah=0 deltas=0 if rna==0: #DNA/DNA #Allawi and SantaLucia (1997). Biochemistry 36 : 10581-10594 if stri.startswith('G') or stri.startswith('C'): deltah=deltah-0.1 deltas=deltas+2.8 elif stri.startswith('A') or stri.startswith('T'): deltah=deltah-2.3 deltas=deltas-4.1 if stri.endswith('G') or stri.... | 9d20501f87a48e7d08b8c8ab193dd1ec8b75d714 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/9d20501f87a48e7d08b8c8ab193dd1ec8b75d714/MeltingTemp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19272,
17515,
12,
701,
77,
4672,
3622,
76,
273,
374,
20113,
273,
374,
309,
436,
6582,
631,
20,
30,
468,
8609,
37,
19,
8609,
37,
468,
1595,
2219,
77,
471,
348,
27677,
48,
5286,
1155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19272,
17515,
12,
701,
77,
4672,
3622,
76,
273,
374,
20113,
273,
374,
309,
436,
6582,
631,
20,
30,
468,
8609,
37,
19,
8609,
37,
468,
1595,
2219,
77,
471,
348,
27677,
48,
5286,
1155,
... |
graphicx_package(), | self.graphicx_package, | def graphicx_package(): if self.settings.graphicx_option == '': return '\\usepackage{graphicx}\n' if self.settings.graphicx_option.lower() == 'auto': return '\n'.join(('%Check if we are compiling under latex or pdflatex', '\\ifx\\pdftexversion\\undefined', ' \\usepackage{graphicx}', '\\else', ' \\usepackage[pdftex]{g... | 4daf8b3a78815c52f613b59c0ef88a151573a1db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4daf8b3a78815c52f613b59c0ef88a151573a1db/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19548,
92,
67,
5610,
13332,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
422,
875,
30,
327,
3718,
1202,
5610,
95,
4660,
335,
92,
6280,
82,
11,
309,
365,
18,
4272,
18,
4660,
335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19548,
92,
67,
5610,
13332,
309,
365,
18,
4272,
18,
4660,
335,
92,
67,
3482,
422,
875,
30,
327,
3718,
1202,
5610,
95,
4660,
335,
92,
6280,
82,
11,
309,
365,
18,
4272,
18,
4660,
335,
... |
SOCol.__init__(self, **kw) | super(SOTimeCol, self).__init__(**kw) | def __init__(self, **kw): timeFormat = popKey(kw, 'timeFormat') if timeFormat: self.timeFormat = timeFormat SOCol.__init__(self, **kw) | 629bd9cef417a9b39081bf7b5542b86ae165b282 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/629bd9cef417a9b39081bf7b5542b86ae165b282/col.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
9987,
4672,
813,
1630,
273,
1843,
653,
12,
9987,
16,
296,
957,
1630,
6134,
309,
813,
1630,
30,
365,
18,
957,
1630,
273,
813,
1630,
7460,
914,
16186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
9987,
4672,
813,
1630,
273,
1843,
653,
12,
9987,
16,
296,
957,
1630,
6134,
309,
813,
1630,
30,
365,
18,
957,
1630,
273,
813,
1630,
7460,
914,
16186... |
return TransferClient(self.serviceName) | return TransferClient( self.serviceName ) | def __getTransferClient(self): if self.transferClient: return self.transferClient return TransferClient(self.serviceName) | b29a492313d58334c8d949840590cb63407c88cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b29a492313d58334c8d949840590cb63407c88cf/PlottingClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
5912,
1227,
12,
2890,
4672,
309,
365,
18,
13866,
1227,
30,
327,
365,
18,
13866,
1227,
327,
12279,
1227,
12,
2890,
18,
15423,
13,
225,
2,
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,
588,
5912,
1227,
12,
2890,
4672,
309,
365,
18,
13866,
1227,
30,
327,
365,
18,
13866,
1227,
327,
12279,
1227,
12,
2890,
18,
15423,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for importer, modname, ispkg in pkgutil.walk_packages(): | for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror): | def run(self, callback, key=None, completer=None): if key: key = lower(key) self.quit = False seen = {} | cebb32cb13858a32375665c6bff36f42326b1da8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/cebb32cb13858a32375665c6bff36f42326b1da8/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
4672,
309,
498,
30,
498,
273,
2612,
12,
856,
13,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
4672,
309,
498,
30,
498,
273,
2612,
12,
856,
13,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
2,
-100,
-100,
-100,
-1... |
self.sync_container.set_size_request(500, -1) | def __init__(self): self.device = None widgetset.VBox.__init__(self) | 6dec0ec820a8a878afc3f0ba6bbe4bd7e7e41050 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/6dec0ec820a8a878afc3f0ba6bbe4bd7e7e41050/devicecontroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
5964,
273,
599,
3604,
542,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
13,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
5964,
273,
599,
3604,
542,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
EXAMPLES: | EXAMPLES:: | def strip_string_literals(code, state=None): r""" Returns a string with all literal quotes replaced with labels and a dict of labels for re-subsitution. This makes parsing much easier. EXAMPLES: sage: from sage.misc.preparser import strip_string_literals sage: s, literals, state = strip_string_literals(r'''['a', "b", ... | 4012ffc8d6acb2c057c0033e7b20dfb6621a59bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/4012ffc8d6acb2c057c0033e7b20dfb6621a59bc/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
1080,
67,
80,
11235,
12,
710,
16,
919,
33,
7036,
4672,
436,
8395,
2860,
279,
533,
598,
777,
7158,
10681,
8089,
598,
3249,
471,
279,
2065,
434,
3249,
364,
283,
17,
22284,
305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2569,
67,
1080,
67,
80,
11235,
12,
710,
16,
919,
33,
7036,
4672,
436,
8395,
2860,
279,
533,
598,
777,
7158,
10681,
8089,
598,
3249,
471,
279,
2065,
434,
3249,
364,
283,
17,
22284,
305,... |
photo_regex = re.compile('(?P<base_url>http://.+\.adopteunmec\.com/.+/)image(?P<id>.+)\.jpg') photo_max_id = max(int(photo_regex.match(photo['url']).groupdict()['id']) for photo in self.photos) base_url = photo_regex.match(self.photos[0]['url']).groupdict()['base_url'] for id in xrange(1, photo_max_id + 1): url = '%sim... | def on_loaded(self): self.name = u'' self.description = u'' self.table = deepcopy(self.empty_table) self.id = 0 self.photos = [] self.status = '' self.stats = OrderedDict(( ('score', 0), ('visits', 0), ('charms', 0), ('baskets', 0), ('mails', 0), )) | fb01c73028bf5d3ec5a9e44298475a52ff3221d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/fb01c73028bf5d3ec5a9e44298475a52ff3221d0/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4230,
12,
2890,
4672,
365,
18,
529,
273,
582,
6309,
365,
18,
3384,
273,
582,
6309,
365,
18,
2121,
273,
7217,
12,
2890,
18,
5531,
67,
2121,
13,
365,
18,
350,
273,
374,
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,
603,
67,
4230,
12,
2890,
4672,
365,
18,
529,
273,
582,
6309,
365,
18,
3384,
273,
582,
6309,
365,
18,
2121,
273,
7217,
12,
2890,
18,
5531,
67,
2121,
13,
365,
18,
350,
273,
374,
365,
... | |
rows=None, limit=None): | rows=None, limit=0): | def __init__(self, env, report=None, constraints=None, cols=None, order=None, desc=0, group=None, groupdesc=0, verbose=0, rows=None, limit=None): self.env = env self.id = report # if not None, it's the corresponding saved query self.constraints = constraints or {} self.order = order self.desc = desc self.group = group ... | e2f492d2a64a39f12e57faf8be21e4d07e32ef7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/e2f492d2a64a39f12e57faf8be21e4d07e32ef7b/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1550,
16,
2605,
33,
7036,
16,
6237,
33,
7036,
16,
5347,
33,
7036,
16,
1353,
33,
7036,
16,
3044,
33,
20,
16,
1041,
33,
7036,
16,
1041,
5569,
33,
20,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1550,
16,
2605,
33,
7036,
16,
6237,
33,
7036,
16,
5347,
33,
7036,
16,
1353,
33,
7036,
16,
3044,
33,
20,
16,
1041,
33,
7036,
16,
1041,
5569,
33,
20,
1... |
print >>gv.out, ' {(char *)"%s", (getter)%s_get_%s, (setter)%s_get_%s, (char *)"", NULL},' % (var.name, cl.ident, var.name, cl.ident, var.name) | print >>gv.out, ' {(char *)"%s", (getter)%s_get_%s, (setter)%s_set_%s, (char *)"", NULL},' % (var.name, cl.ident, var.name, cl.ident, var.name) | print >>gv.out, 'typedef struct {' | 26fe99e7d2748d71928ab89d5052eb3d136c7d95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/26fe99e7d2748d71928ab89d5052eb3d136c7d95/extmod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
1671,
75,
90,
18,
659,
16,
296,
723,
536,
1958,
13666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1172,
1671,
75,
90,
18,
659,
16,
296,
723,
536,
1958,
13666,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if program == GETENT and mode == 'configuration': FunctionnalTest(program + [mode]).Run() | if program == GET and mode == 'configuration': commands.append(program + [ mode ]) | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27423,
690,
67,
5201,
1832,
30,
3536,
4709,
1110,
773,
4492,
1501,
3684,
550,
2939,
471,
1554,
75,
690,
2809,
12123,
225,
1842,
67,
2150,
2668,
3813,
310,
31121,
2809,
1093,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27423,
690,
67,
5201,
1832,
30,
3536,
4709,
1110,
773,
4492,
1501,
3684,
550,
2939,
471,
1554,
75,
690,
2809,
12123,
225,
1842,
67,
2150,
2668,
3813,
310,
31121,
2809,
1093,
13... |
f = compile_function(two_exceptions, []) assert f() == two_exceptions() | f = compile_function(two_exceptionsB, []) assert f() == two_exceptionsB() | def two_exceptions(): r = 50 try: fn1() r += 1 except: r += 100 try: r += fn2() except: r += 300 r += fn2() return r | e7d027162c2587f9913ba654b37921841dbc5029 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/e7d027162c2587f9913ba654b37921841dbc5029/test_exception.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2795,
67,
11855,
13332,
436,
273,
6437,
775,
30,
2295,
21,
1435,
436,
1011,
404,
1335,
30,
436,
1011,
2130,
775,
30,
436,
1011,
2295,
22,
1435,
1335,
30,
436,
1011,
11631,
436,
1011,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2795,
67,
11855,
13332,
436,
273,
6437,
775,
30,
2295,
21,
1435,
436,
1011,
404,
1335,
30,
436,
1011,
2130,
775,
30,
436,
1011,
2295,
22,
1435,
1335,
30,
436,
1011,
11631,
436,
1011,
2... |
self._set = initset | if initset is None: self._set = set() else: self._set = initset | def __init__(self, handler, initset = set(), translator=empty_translator): self._logger = logging.getLogger('dobject.AddOnlySet') self._set = initset self._lock = threading.Lock() | 7a0e3dca4207c6c41431efecefae5803a08f7dea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4034/7a0e3dca4207c6c41431efecefae5803a08f7dea/dobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1838,
16,
1208,
542,
273,
444,
9334,
8333,
33,
5531,
67,
17879,
4672,
365,
6315,
4901,
273,
2907,
18,
588,
3328,
2668,
72,
1612,
18,
986,
3386,
694,
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,
1001,
2738,
972,
12,
2890,
16,
1838,
16,
1208,
542,
273,
444,
9334,
8333,
33,
5531,
67,
17879,
4672,
365,
6315,
4901,
273,
2907,
18,
588,
3328,
2668,
72,
1612,
18,
986,
3386,
694,
6134... |
self.Show() | def __init__(self, exception=None): # Instead of calling wx.Dialog.__init__ we precreate the dialog # so we can set an extra style that must be set before # creation, and then we create the GUI dialog using the Create # method. pre = wx.PreDialog() style = wx.CAPTION | wx.STAY_ON_TOP pre.Create(None, -1, _(u"Startup Op... | 3b62905dad6319edd112e12463dc1799398bc429 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/3b62905dad6319edd112e12463dc1799398bc429/StartupOptionsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1520,
33,
7036,
4672,
468,
17561,
434,
4440,
7075,
18,
6353,
16186,
2738,
972,
732,
675,
2640,
326,
6176,
468,
1427,
732,
848,
444,
392,
2870,
2154,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1520,
33,
7036,
4672,
468,
17561,
434,
4440,
7075,
18,
6353,
16186,
2738,
972,
732,
675,
2640,
326,
6176,
468,
1427,
732,
848,
444,
392,
2870,
2154,
716,
... | |
self._original_metadata_keys = [] | def __init__(self, config, filename, root): base.EntryBase.__init__(self) self._config = config self._filename = filename self._root = root | 5e03bd54bf01580b6340bce067876121fcdf8825 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/5e03bd54bf01580b6340bce067876121fcdf8825/fileentry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
1544,
16,
1365,
4672,
1026,
18,
1622,
2171,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
1425,
273,
642,
365,
6315,
3459,
273,
1544,
365,
6315,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
642,
16,
1544,
16,
1365,
4672,
1026,
18,
1622,
2171,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
1425,
273,
642,
365,
6315,
3459,
273,
1544,
365,
6315,
30... | |
for setting in self.__default_timing: | for setting in TimeConfig.__default_timing: | def Fast(self): """Set fast timing values | cdf857784836048d1db60b6385971db4e4b6dacd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/cdf857784836048d1db60b6385971db4e4b6dacd/timings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9545,
12,
2890,
4672,
3536,
694,
4797,
15538,
924,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9545,
12,
2890,
4672,
3536,
694,
4797,
15538,
924,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
raise ValueError("illegal content-type") | raise ValueError("illegal content-type: %s" % value) | def __new__(cls, value): if value == '*': return value try: type, subtype = value.split('/') except ValueError: raise ValueError("illegal content-type") else: if type == '*': raise ValueError("illegal content-type") return value | afe0134b526dece313862cedf05d57e9ef79a33c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/afe0134b526dece313862cedf05d57e9ef79a33c/datatypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
309,
460,
422,
5306,
30,
327,
460,
775,
30,
618,
16,
12308,
273,
460,
18,
4939,
2668,
2473,
13,
1335,
2068,
30,
1002,
2068,
2932,
31751,
913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2704,
972,
12,
6429,
16,
460,
4672,
309,
460,
422,
5306,
30,
327,
460,
775,
30,
618,
16,
12308,
273,
460,
18,
4939,
2668,
2473,
13,
1335,
2068,
30,
1002,
2068,
2932,
31751,
913,
... |
if not (contour or plotfield or matrixplot) and axes: if frame: xmin, xmax = self.__xmin, self.__xmax ymin, ymax = self.__ymin, self.__ymax subplot.set_xlim([xmin - 0.05*abs(xmax - xmin), xmax + 0.05*abs(xmax - xmin)]) subplot.set_ylim([ymin - 0.05*abs(ymax - ymin), ymax + 0.05*abs(ymax - ymin)]) sage_axes.add_xy_fra... | if not (contour or plotfield or matrixplot) and axes: if frame: | def save(self, filename=None, xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, figure=None, sub=None, savenow=True, dpi=DEFAULT_DPI, axes=True, axes_label=None, fontsize=None, frame=False, verify=True): """ Save the graphics to an image file of type: PNG, PS, EPS, SVG, SOBJ, depending on the file ex... | 83c3c044d59ca008fb9d6aaec9812ed44fdc9c06 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/83c3c044d59ca008fb9d6aaec9812ed44fdc9c06/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
16,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
15763,
33,
7036,
16,
15275,
33,
7036,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
7837,
33,
7036,
16,
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,
1923,
12,
2890,
16,
1544,
33,
7036,
16,
13777,
33,
7036,
16,
14016,
33,
7036,
16,
15763,
33,
7036,
16,
15275,
33,
7036,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
7837,
33,
7036,
16,
7... |
out.write(" | out.write(" | typedef struct | 90321ec314d468f9cf02fac398a8ceac92f60e1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/90321ec314d468f9cf02fac398a8ceac92f60e1a/GenUCNHash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
1958,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
1958,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
el2 = etree.SubElement(el1, 'text:note-citation', attrib={ | el2 = SubElement(el1, 'text:note-citation', attrib={ | def visit_footnote_reference(self, node): #ipshell('At visit_footnote_reference') id = node.attributes['refid'] el1 = self.append_child('text:note', attrib={ 'text:id': '%s' % (id, ), 'text:note-class': 'footnote', }) child = node.children[0] label = child.astext() el2 = etree.SubElement(el1, 'text:note-citation', attr... | ff5e4f0a960dc872d240ae9d03fa81f22e3cbcce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/ff5e4f0a960dc872d240ae9d03fa81f22e3cbcce/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10923,
7652,
67,
6180,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
10923,
7652,
67,
6180,
6134,
612,
273,
756,
18,
4350,
3292,
1734,
350,
3546,
415,
21,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
67,
10923,
7652,
67,
6180,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
10923,
7652,
67,
6180,
6134,
612,
273,
756,
18,
4350,
3292,
1734,
350,
3546,
415,
21,
27... |
except (AttributeError, TypeError, NameError): | except (AttributeError, TypeError, NameError, SyntaxError): | def __call__(self, x, check=True): """ Coerce \code{x} into this multivariate polynomial ring, possibly non-canonically. | 4d353560c6a6b0a53726fbf6e6555e26e03f1356 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/4d353560c6a6b0a53726fbf6e6555e26e03f1356/multi_polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
866,
33,
5510,
4672,
3536,
7695,
2765,
521,
710,
95,
92,
97,
1368,
333,
1778,
27693,
16991,
9221,
16,
10016,
1661,
17,
4169,
265,
6478,
18,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
619,
16,
866,
33,
5510,
4672,
3536,
7695,
2765,
521,
710,
95,
92,
97,
1368,
333,
1778,
27693,
16991,
9221,
16,
10016,
1661,
17,
4169,
265,
6478,
18,
2,
... |
process = subprocess.Popen(args, stdout=subprocess.PIPE, stdin=stdin, cwd=cwd) | process = subprocess.Popen(args, stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=cwd) | def run_command(args, cwd=None, input=None, raise_on_failure=True, return_exit_code=False): stdin = subprocess.PIPE if input else None process = subprocess.Popen(args, stdout=subprocess.PIPE, stdin=stdin, cwd=cwd) output = process.communicate(input)[0].rstrip() exit_code = process.wait() if raise_on_failure and exit_co... | cbfef173775a18c163a046efa120abeeff3a6751 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/cbfef173775a18c163a046efa120abeeff3a6751/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3076,
12,
1968,
16,
7239,
33,
7036,
16,
810,
33,
7036,
16,
1002,
67,
265,
67,
12251,
33,
5510,
16,
327,
67,
8593,
67,
710,
33,
8381,
4672,
8801,
273,
6652,
18,
27602,
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,
1086,
67,
3076,
12,
1968,
16,
7239,
33,
7036,
16,
810,
33,
7036,
16,
1002,
67,
265,
67,
12251,
33,
5510,
16,
327,
67,
8593,
67,
710,
33,
8381,
4672,
8801,
273,
6652,
18,
27602,
309,
... |
if hasattr(loader,'get_filename'): | if hasattr(loader, 'get_filename'): | def run(self, callback, key=None, completer=None, onerror=None): if key: key = key.lower() self.quit = False seen = {} | 609d5127d66c998c98038c39f009b50740e240cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/609d5127d66c998c98038c39f009b50740e240cb/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
16,
20991,
33,
7036,
4672,
309,
498,
30,
498,
273,
498,
18,
8167,
1435,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
2890,
16,
1348,
16,
498,
33,
7036,
16,
31848,
33,
7036,
16,
20991,
33,
7036,
4672,
309,
498,
30,
498,
273,
498,
18,
8167,
1435,
365,
18,
27176,
273,
1083,
5881,
273,
2618,
... |
self._profileDt = dt | profileInfo.dt = dt | def __executeTask(self, task): task.setCurrentTimeFrame(self.currentTime, self.currentFrame) | 51c598f3d6d44b31957175306331fbe8df200336 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/51c598f3d6d44b31957175306331fbe8df200336/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8837,
2174,
12,
2890,
16,
1562,
4672,
1562,
18,
542,
3935,
950,
3219,
12,
2890,
18,
2972,
950,
16,
365,
18,
2972,
3219,
13,
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,
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,
1001,
8837,
2174,
12,
2890,
16,
1562,
4672,
1562,
18,
542,
3935,
950,
3219,
12,
2890,
18,
2972,
950,
16,
365,
18,
2972,
3219,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
found_cmd = r'tool\cmake\bin\%s' % found_cmd | found_cmd = r'..\tool\cmake\bin\%s' % self.cmake_cmd | def persist_cmake(self): if sys.platform == 'win32': version = '2.8.0' found_cmd = '' for test_cmd in (self.cmake_cmd, r'tool\cmake\bin\%s' % self.cmake_cmd): print 'Testing for CMake version %s at `%s`...' % (version, test_cmd) p = subprocess.Popen([test_cmd, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PI... | cfaa79eaea6a43258621c61c4a209df37653f38f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6688/cfaa79eaea6a43258621c61c4a209df37653f38f/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3898,
67,
71,
6540,
12,
2890,
4672,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
225,
1177,
273,
296,
22,
18,
28,
18,
20,
11,
1392,
67,
4172,
273,
875,
364,
1842,
67,
4172,
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,
3898,
67,
71,
6540,
12,
2890,
4672,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
225,
1177,
273,
296,
22,
18,
28,
18,
20,
11,
1392,
67,
4172,
273,
875,
364,
1842,
67,
4172,
316,
... |
for e in self.root.edits: m = e.obj.parentMod if m not in mods: mods[m] = FileDiff(m) i = e.obj.edits.index(e) mods[m].apply_edit(e.obj.edits[i-1], e.obj.edits[i]) | for m in self.root.editsbymod: l = [e for e in self.root.editsbymod[m] if e is self.root.editsbyob[e.obj][-1]] l.sort(key=lambda x:x.obj.linenumber, reverse=True) mods[m] = FileDiff(m) for e in l: edit0 = self.root.editsbyob[e.obj][0] mods[m].apply_edit(edit0, e) | def render_bigDiff(self, context, data): mods = {} for e in self.root.edits: m = e.obj.parentMod if m not in mods: mods[m] = FileDiff(m) i = e.obj.edits.index(e) mods[m].apply_edit(e.obj.edits[i-1], e.obj.edits[i]) r = [] for mod in sorted(mods, key=lambda x:x.filepath): r.append(tags.pre[mods[mod].diff()]) return r | 28c07c2b942db8de673e0711eddd52fe3fa5e1e9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/28c07c2b942db8de673e0711eddd52fe3fa5e1e9/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
14002,
5938,
12,
2890,
16,
819,
16,
501,
4672,
15546,
273,
2618,
364,
312,
316,
365,
18,
3085,
18,
329,
1282,
1637,
1711,
30,
328,
273,
306,
73,
364,
425,
316,
365,
18,
308... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
14002,
5938,
12,
2890,
16,
819,
16,
501,
4672,
15546,
273,
2618,
364,
312,
316,
365,
18,
3085,
18,
329,
1282,
1637,
1711,
30,
328,
273,
306,
73,
364,
425,
316,
365,
18,
308... |
return iter(self.obsoletes_list) | for name, l in self.obsoletes_list.hash.iteritems(): for f, v, p in l: p = self.getPkgById(p["install_id"]) if p: yield name, f, v, p | def iterObsoletes(self): if self.obsoletes_list is None: self._readObsoletes() return iter(self.obsoletes_list) | 845f48f23a00b90270ce7fa94ef3fb74bfc20685 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/845f48f23a00b90270ce7fa94ef3fb74bfc20685/rpmdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
27637,
355,
278,
281,
12,
2890,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
327,
1400,
12,
2890,
18,
10992,
355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
27637,
355,
278,
281,
12,
2890,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
327,
1400,
12,
2890,
18,
10992,
355,... |
if name == "CA ": | if name == "CA ": | def _buildResiduum(self, mol, zmatrix, n_atoms, phi, psi, init_pos, symbol): """ | 6d9f42d04f54936f2fb6dfba863d4aecde129a85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6d9f42d04f54936f2fb6dfba863d4aecde129a85/PeptideGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
16,
3273,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
16,
3273,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-... |
return open(fn) | return open(fn, *args, **kw) | def open_urlresource(url, *args, **kw): import urllib.request, urllib.parse requires('urlfetch') filename = urllib.parse.urlparse(url)[2].split('/')[-1] # '/': it's URL! fn = os.path.join(os.path.dirname(__file__), "data", filename) if os.path.exists(fn): return open(fn) print('\tfetching %s ...' % url, file=get_ori... | 25e769eb39219f13392df90f7a4c8fc422bdc188 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/25e769eb39219f13392df90f7a4c8fc422bdc188/support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
718,
3146,
12,
718,
16,
380,
1968,
16,
2826,
9987,
4672,
1930,
11527,
18,
2293,
16,
11527,
18,
2670,
225,
4991,
2668,
718,
5754,
6134,
1544,
273,
11527,
18,
2670,
18,
718,
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,
1696,
67,
718,
3146,
12,
718,
16,
380,
1968,
16,
2826,
9987,
4672,
1930,
11527,
18,
2293,
16,
11527,
18,
2670,
225,
4991,
2668,
718,
5754,
6134,
1544,
273,
11527,
18,
2670,
18,
718,
26... |
0.74204877583656470 + 0.19883137022991071*I | 0.742048775836564 + 0.198831370229910*I | def eta(self, omit_frac=False): r""" Return the value of the Dedekind $\eta$ function on self, intelligently computed using $\SL(2,\Z)$ transformations. | 193380da4580283517e8b5d85f0bf8d1c6d47fce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/193380da4580283517e8b5d85f0bf8d1c6d47fce/complex_number.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
12,
2890,
16,
14088,
67,
22187,
33,
8381,
4672,
436,
8395,
2000,
326,
460,
434,
326,
1505,
323,
9224,
271,
64,
1066,
8,
445,
603,
365,
16,
509,
1165,
360,
23351,
8470,
1450,
271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
12,
2890,
16,
14088,
67,
22187,
33,
8381,
4672,
436,
8395,
2000,
326,
460,
434,
326,
1505,
323,
9224,
271,
64,
1066,
8,
445,
603,
365,
16,
509,
1165,
360,
23351,
8470,
1450,
271... |
def writable (self): | def writable(self): | def writable (self): return True | f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
12,
2890,
4672,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9691,
12,
2890,
4672,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Convert a string giving a list of GAP permutations into a list of elements of G. | Convert a string giving a list of GAP permutations into a list of elements of ``G``. | def from_gap_list(G, src): r""" Convert a string giving a list of GAP permutations into a list of elements of G. EXAMPLES:: sage: from sage.groups.perm_gps.permgroup import from_gap_list sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: L = from_gap_list(G, "[(1,2,3)(4,5), (3,4)]"); L [(1,2,3)(4,5), (3,4)] ... | 2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
14048,
67,
1098,
12,
43,
16,
1705,
4672,
436,
8395,
4037,
279,
533,
21057,
279,
666,
434,
611,
2203,
26468,
1368,
279,
666,
434,
2186,
434,
12176,
43,
68,
8338,
225,
5675,
890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
628,
67,
14048,
67,
1098,
12,
43,
16,
1705,
4672,
436,
8395,
4037,
279,
533,
21057,
279,
666,
434,
611,
2203,
26468,
1368,
279,
666,
434,
2186,
434,
12176,
43,
68,
8338,
225,
5675,
890... |
elif child.hasChildNodes(): | if child.hasChildNodes(): | def xml_processnodes(xmlnode,filter,proc): ''' Process with proc all nodes that match filter. ''' node_list = [] for child in xmlnode.childNodes: if filter(child): node_list.append(child) elif child.hasChildNodes(): xml_processnodes(child,filter,proc) if node_list: proc(node_list) | 6ed70e519644bc523299964709e22fbf4d9a6bb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/6ed70e519644bc523299964709e22fbf4d9a6bb0/hb2openais-helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
67,
2567,
4690,
12,
2902,
2159,
16,
2188,
16,
9381,
4672,
9163,
4389,
598,
5418,
777,
2199,
716,
845,
1034,
18,
9163,
756,
67,
1098,
273,
5378,
364,
1151,
316,
2025,
2159,
18,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2025,
67,
2567,
4690,
12,
2902,
2159,
16,
2188,
16,
9381,
4672,
9163,
4389,
598,
5418,
777,
2199,
716,
845,
1034,
18,
9163,
756,
67,
1098,
273,
5378,
364,
1151,
316,
2025,
2159,
18,
36... |
checkdir_script.write(""" | checkdir_script.write(""" | def setup_checkForDir(self): # create a shell script to check for the existence of the qscan output directory and rename it if needed checkdir_script = open('checkForDir.sh','w') checkdir_script.write(""" | e116a0d923e8c0bcb9abf813b64f5839eb5d9fc5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e116a0d923e8c0bcb9abf813b64f5839eb5d9fc5/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1893,
1290,
1621,
12,
2890,
4672,
468,
752,
279,
5972,
2728,
358,
866,
364,
326,
15782,
434,
326,
1043,
9871,
876,
1867,
471,
6472,
518,
309,
3577,
866,
1214,
67,
4263,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1893,
1290,
1621,
12,
2890,
4672,
468,
752,
279,
5972,
2728,
358,
866,
364,
326,
15782,
434,
326,
1043,
9871,
876,
1867,
471,
6472,
518,
309,
3577,
866,
1214,
67,
4263,
273,
... |
assert len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes)==4,len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes) | assert len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes)==2,len(f.maker.env.toposort()[0].env.toposort()[0].op.scalar_op.env.nodes) | def test_local_log_erfc(self): val = [-30,-27,-26,-11,-10,-3,-2,-1,0,1,2,3,10,11,26,27,28,30] if theano.config.mode in ["DebugMode", "DEBUG_MODE", "FAST_COMPILE"]: #python mode don't like the inv(0) val.remove(0) val = numpy.asarray(val) x = T.vector('x') | 5a0d2fb5e310af5c2466d14b27edb0aa1c8114ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/5a0d2fb5e310af5c2466d14b27edb0aa1c8114ed/test_opt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
67,
1330,
67,
264,
7142,
12,
2890,
4672,
1244,
273,
23059,
5082,
16,
17,
5324,
16,
17,
5558,
16,
17,
2499,
16,
17,
2163,
16,
17,
23,
16,
17,
22,
16,
17,
21,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
67,
1330,
67,
264,
7142,
12,
2890,
4672,
1244,
273,
23059,
5082,
16,
17,
5324,
16,
17,
5558,
16,
17,
2499,
16,
17,
2163,
16,
17,
23,
16,
17,
22,
16,
17,
21,
16,
2... |
ctx = cairo.Context(surface) | new = cairo.ImageSurface(cairo.FORMAT_ARGB32, w, h) ctx = cairo.Context(new) ctx.set_source_surface(surface) ctx.paint() | def command_bright(self, surface, strength = None, strenght = None): | 4369f4e84f41c9c7272b6e02593281096b5905e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/4369f4e84f41c9c7272b6e02593281096b5905e6/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
31070,
12,
2890,
16,
9034,
16,
21638,
273,
599,
16,
384,
1187,
75,
647,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
31070,
12,
2890,
16,
9034,
16,
21638,
273,
599,
16,
384,
1187,
75,
647,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
<link rel=icon href="http://www.whatwg.org/images/icon"> | def startFormatting(title, identifier, source): document = """Content-Type:text/html;charset=UTF-8 | f5f4c3ed6200811f1911f1b21ca420f1c2697ec6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5033/f5f4c3ed6200811f1911f1b21ca420f1c2697ec6/trackerlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
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,
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,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
dw.open_file('bigimage.ora') | app.filehandler.open_file('bigimage.ora') | def scroll(app, zoom_func): dw = app.drawWindow dw.fullscreen_cb() dw.open_file('bigimage.ora') zoom_func() yield wait_for_idle t0 = time() N = 20 dx = linspace(-30, 30, N) dy = linspace(-10, 60, N) for i in xrange(N): dw.tdw.scroll(int(dx[i]), int(dy[i])) yield wait_for_idle print 'result = %.3f' % (time() - t0) | e05fe7b8daabcf47c31823aa4043da1a54a7c36e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/e05fe7b8daabcf47c31823aa4043da1a54a7c36e/test_performance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
12,
2910,
16,
7182,
67,
644,
4672,
12394,
273,
595,
18,
9446,
3829,
12394,
18,
2854,
9252,
67,
7358,
1435,
595,
18,
768,
4176,
18,
3190,
67,
768,
2668,
14002,
2730,
18,
10610,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5532,
12,
2910,
16,
7182,
67,
644,
4672,
12394,
273,
595,
18,
9446,
3829,
12394,
18,
2854,
9252,
67,
7358,
1435,
595,
18,
768,
4176,
18,
3190,
67,
768,
2668,
14002,
2730,
18,
10610,
61... |
query += ' and (left_city=\'%s\' or right_city=\'%s\')' % cu | query += ' and (left_city=%s or right_city=%s)' params.extend([cu, cu]) | def search(self,street,number=None,predir=None,suffix=None,postdir=None,city=None,state=None,zipcode=None): query = 'select id, pretty_name, from_num, to_num, left_from_num, left_to_num, right_from_num, right_to_num, ST_AsEWKT(geom) from blocks where street=\'%s\'' % street.upper() if predir: query += ' and predir=\'%s... | 146f5caeba08f177fd122070a140f8a6fb089352 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14234/146f5caeba08f177fd122070a140f8a6fb089352/postgis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
22424,
16,
2696,
33,
7036,
16,
6510,
481,
33,
7036,
16,
8477,
33,
7036,
16,
2767,
1214,
33,
7036,
16,
14240,
33,
7036,
16,
2019,
33,
7036,
16,
4450,
710,
33,
7036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1623,
12,
2890,
16,
22424,
16,
2696,
33,
7036,
16,
6510,
481,
33,
7036,
16,
8477,
33,
7036,
16,
2767,
1214,
33,
7036,
16,
14240,
33,
7036,
16,
2019,
33,
7036,
16,
4450,
710,
33,
7036... |
def find_node (graph, pos): | def find_node (self, graph, pos): | def find_node (graph, pos): vertex_map = graph.representations[VertexMap] for vertex in vertex_map: if vertex.inside (pos): return vertex | b6849e05b71d994e961472503902b3702fb53e36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/b6849e05b71d994e961472503902b3702fb53e36/Interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2159,
261,
2890,
16,
2667,
16,
949,
4672,
5253,
67,
1458,
273,
2667,
18,
28205,
1012,
63,
6475,
863,
65,
364,
5253,
316,
5253,
67,
1458,
30,
309,
5253,
18,
28091,
261,
917,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2159,
261,
2890,
16,
2667,
16,
949,
4672,
5253,
67,
1458,
273,
2667,
18,
28205,
1012,
63,
6475,
863,
65,
364,
5253,
316,
5253,
67,
1458,
30,
309,
5253,
18,
28091,
261,
917,
... |
dflag - if True, display duration (in seconds) below progressbar | show_duration - if True, display duration (in seconds) below progressbar Return value: 0 if file reached desired size, 1 if user hit abort button. | def launch( self , nsteps, filename = '', caption = "Progress", message = "Calculating...", dflag = 0): """Launch a progress bar dialog and update while a file is being written. nsteps - total steps for the progress bar (final size in bytes of filename) filename - name of file we are waiting for. caption - dialog capti... | 6e1c14795243d66eb59048b7f96f992d0197cf29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/6e1c14795243d66eb59048b7f96f992d0197cf29/ProgressBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
365,
269,
290,
8986,
16,
1544,
273,
10226,
11006,
273,
315,
5491,
3113,
883,
273,
315,
30238,
7070,
16,
302,
6420,
273,
374,
4672,
3536,
9569,
279,
4007,
4653,
6176,
471,
1089,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8037,
12,
365,
269,
290,
8986,
16,
1544,
273,
10226,
11006,
273,
315,
5491,
3113,
883,
273,
315,
30238,
7070,
16,
302,
6420,
273,
374,
4672,
3536,
9569,
279,
4007,
4653,
6176,
471,
1089,... |
[major, minor] = version.split('.')[:2] return "%s.%s" % (major, minor) | [major, minor, patchlevel] = version.split('.')[:3] out = "%s.%s.%s" % (major, minor, patchlevel) if out != version: out += "+" return out | def trim_version(self, version = CFG_VERSION): """Take CFG_VERSION and return a sanitized version for display""" | e8c018603a7fd34a430130d15b421223ebe34636 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14116/e8c018603a7fd34a430130d15b421223ebe34636/webstyle_templates_inspire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2209,
67,
1589,
12,
2890,
16,
1177,
273,
7577,
67,
5757,
4672,
3536,
13391,
7577,
67,
5757,
471,
327,
279,
16611,
1177,
364,
2562,
8395,
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,
0,
0,
0,
0,
0,
0,
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,
2209,
67,
1589,
12,
2890,
16,
1177,
273,
7577,
67,
5757,
4672,
3536,
13391,
7577,
67,
5757,
471,
327,
279,
16611,
1177,
364,
2562,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.