rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
log_filename = ("scp-%s-%s.log" % (self.name, kvm_utils.generate_random_string(4)))
|
def copy_files_from(self, remote_path, local_path, nic_index=0, timeout=600): """ Transfer files from the guest.
|
e2977ee903f7ba9df5910096ad0633a51b664b36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/e2977ee903f7ba9df5910096ad0633a51b664b36/kvm_vm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
2354,
67,
2080,
12,
2890,
16,
2632,
67,
803,
16,
1191,
67,
803,
16,
11562,
67,
1615,
33,
20,
16,
2021,
33,
28133,
4672,
3536,
12279,
1390,
628,
326,
13051,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
filenames.extend(tlines)
|
if tlines: filenames = tlines
|
def OnData(self, x, y, d): # when we are a drag source, we get blocked throughout the # drag, which means that our picked_cobject doesn't get # updated, which means that drops on glyphs don't get handled. # so here we make sure that the correct picked_cobject is # selected right before we actually handle the drop: self._graphEditor.canvas.update_picked_cobject_at_drop(x, y) if self.GetData(): # single line starting with 'module:' OR # single line starting with 'segment:' OR # multiple lines (with newlines), each specifying a # filename (URI) text = self._tdo.GetText() # array of unicode filenames filenames = self._fdo.GetFilenames() if len(text) > 0: # set the string to zero so we know what to do when self._tdo.SetText('') tlines = self._graphEditor.canvasDropText(x,y,text) # if text is NOT a segment or module spec, # canvasDropText will return an array of text lines # we assume that these could be filenames filenames.extend(tlines)
|
504f26146a701d7a86cb4abeab22a412290c9db7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4494/504f26146a701d7a86cb4abeab22a412290c9db7/graph_editor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
751,
12,
2890,
16,
619,
16,
677,
16,
302,
4672,
468,
1347,
732,
854,
279,
8823,
1084,
16,
732,
336,
14547,
3059,
659,
326,
468,
8823,
16,
1492,
4696,
716,
3134,
25534,
67,
71,
1612,
3302,
1404,
336,
468,
3526,
16,
1492,
4696,
716,
29535,
603,
23404,
2727,
1404,
336,
7681,
18,
468,
1427,
2674,
732,
1221,
3071,
716,
326,
3434,
25534,
67,
71,
1612,
353,
468,
3170,
2145,
1865,
732,
6013,
1640,
326,
3640,
30,
365,
6315,
4660,
6946,
18,
15424,
18,
2725,
67,
11503,
329,
67,
71,
1612,
67,
270,
67,
7285,
12,
92,
16,
677,
13,
225,
309,
365,
18,
967,
751,
13332,
468,
2202,
980,
5023,
598,
296,
2978,
2497,
4869,
468,
2202,
980,
5023,
598,
296,
9273,
2497,
4869,
468,
3229,
2362,
261,
1918,
19181,
3631,
1517,
13664,
279,
468,
1544,
261,
3098,
13,
977,
273,
365,
6315,
88,
2896,
18,
967,
1528,
1435,
468,
526,
434,
5252,
9066,
9066,
273,
365,
6315,
74,
2896,
18,
967,
25579,
6809,
1435,
225,
309,
562,
12,
955,
13,
405,
374,
30,
468,
444,
326,
533,
358,
3634,
1427,
732,
5055,
4121,
358,
741,
1347,
365,
6315,
88,
2896,
18,
694,
1528,
2668,
6134,
268,
3548,
273,
365,
6315,
4660,
6946,
18,
15424,
7544,
1528,
12,
92,
16,
93,
16,
955,
13,
468,
309,
977,
353,
4269,
279,
3267,
578,
1605,
857,
16,
468,
5953,
7544,
1528,
903,
327,
392,
526,
434,
977,
2362,
468,
732,
6750,
716,
4259,
3377,
506,
9066,
9066,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
751,
12,
2890,
16,
619,
16,
677,
16,
302,
4672,
468,
1347,
732,
854,
279,
8823,
1084,
16,
732,
336,
14547,
3059,
659,
326,
468,
8823,
16,
1492,
4696,
716,
3134,
25534,
67,
71,
1612,
3302,
1404,
336,
468,
3526,
16,
1492,
4696,
716,
29535,
603,
23404,
2727,
1404,
336,
7681,
18,
468,
1427,
2674,
732,
1221,
3071,
716,
326,
3434,
25534,
67,
71,
1612,
353,
468,
3170,
2145,
1865,
732,
6013,
1640,
326,
3640,
30,
365,
6315,
4660,
6946,
18,
15424,
18,
2725,
67,
11503,
329,
67,
71,
1612,
67,
270,
67,
7285,
12,
92,
16,
677,
13,
225,
309,
365,
18,
967,
751,
13332,
468,
2202,
980,
5023,
598,
296,
2978,
2497,
4869,
468,
2202,
2
] |
table:style-name="table-default.cell-C4">
|
table:style-name="table-default.cell-C2">
|
def test_table_thead_no_tbody(self): """Test <thead> tag without <tbody>""" html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <thead> <tr> <th>Cell1</th> <th>Cell2</th> </tr> </thead> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re.sub('(xmlns:[a-z0-9=:".-]+\s+)*', '', str(odt)) # remove comments odt = re.sub('(<!--[a-z0-9=-]+-->)*', '', odt) print odt assert re.search(r""" <table:table \s+ table:style-name="table-default"> \s* <table:table-column \s+ table:number-columns-repeated="2"/> \s* <table:table-header-rows> \s* <table:table-row> \s*
|
3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c/test_tables.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
24604,
67,
2135,
67,
20779,
12,
2890,
4672,
3536,
4709,
411,
24604,
34,
1047,
2887,
411,
20779,
2984,
3660,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
6441,
411,
2121,
34,
411,
24604,
34,
411,
313,
34,
411,
451,
34,
4020,
21,
1757,
451,
34,
411,
451,
34,
4020,
22,
1757,
451,
34,
7765,
313,
34,
7765,
24604,
34,
411,
313,
34,
411,
4465,
34,
4020,
23,
1757,
4465,
34,
411,
4465,
34,
4020,
24,
1757,
4465,
34,
7765,
313,
34,
7765,
2121,
34,
7765,
2620,
34,
3536,
320,
7510,
273,
619,
2620,
22,
369,
88,
12,
2620,
13,
468,
1206,
7728,
320,
7510,
273,
283,
18,
1717,
2668,
12,
16741,
30,
63,
69,
17,
94,
20,
17,
29,
33,
2773,
18,
23238,
64,
87,
6975,
14,
2187,
10226,
609,
12,
369,
88,
3719,
468,
1206,
5678,
320,
7510,
273,
283,
18,
1717,
2668,
12,
5586,
413,
63,
69,
17,
94,
20,
17,
29,
33,
23238,
413,
34,
17653,
2187,
10226,
320,
7510,
13,
1172,
320,
7510,
1815,
283,
18,
3072,
12,
86,
8395,
411,
2121,
30,
2121,
521,
87,
15,
1014,
30,
4060,
17,
529,
1546,
2121,
17,
1886,
6441,
521,
87,
14,
411,
2121,
30,
2121,
17,
2827,
521,
87,
15,
1014,
30,
2696,
17,
5112,
17,
266,
9061,
1546,
22,
6,
21259,
521,
87,
14,
411,
2121,
30,
2121,
17,
3374,
17,
3870,
34,
521,
87,
14,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
24604,
67,
2135,
67,
20779,
12,
2890,
4672,
3536,
4709,
411,
24604,
34,
1047,
2887,
411,
20779,
2984,
3660,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
6441,
411,
2121,
34,
411,
24604,
34,
411,
313,
34,
411,
451,
34,
4020,
21,
1757,
451,
34,
411,
451,
34,
4020,
22,
1757,
451,
34,
7765,
313,
34,
7765,
24604,
34,
411,
313,
34,
411,
4465,
34,
4020,
23,
1757,
4465,
34,
411,
4465,
34,
4020,
24,
1757,
4465,
34,
7765,
313,
34,
7765,
2121,
34,
7765,
2620,
34,
3536,
320,
7510,
273,
619,
2620,
22,
369,
88,
12,
2620,
13,
468,
1206,
7728,
2
] |
assy.addmol(mol) mol.moveto(curgrp) mol = None
|
mol = _addMolecule(mol, assy, curgrp)
|
def _readmmp(assy, filnam, isInsert = False): """The routine to actually reading a mmp file and save data into data structure """ #bruce 041011: added 'U' to file mode, for universal newline support. l=open(filnam,"rU").readlines() if not isInsert: assy.filename=filnam mol = None ndix={} assy.alist = [] #assy.tree = Group("Root", assy, None) groupstack = [] grouplist = [] opengroup = None for card in l: key=keypat.match(card) if not key: continue key = key.group(0) if key == "group": # Group of Molecules and/or Groups name = getname(card, "Grp") opengroup = Group(name, assy, opengroup)#assy.tree) if not groupstack: grouplist += [opengroup] groupstack = [(opengroup, name)] + groupstack if key == "egroup": # Group of Molecules and/or Groups name = getname(card, "Grp") curgrp, curnam = groupstack[0] if name != curnam: print "mismatched group records:", name, curnam break if mol: assy.addmol(mol) mol.moveto(curgrp) mol = None groupstack = groupstack[1:] if groupstack: opengroup, junk = groupstack[0] else: opengroup = None elif key=="mol": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None name = getname(card, "Mole") mol=molecule(assy, name) disp = molpat.match(card) if disp: try: mol.setDisplay(dispNames.index(disp.group(1))) except ValueError: pass else: mol.setDisplay(diDEFAULT) elif key == "atom": m=atom1pat.match(card) if not m: print card n=int(m.group(1)) sym=PeriodicTable[int(m.group(2))].symbol xyz=A(map(float, [m.group(3),m.group(4),m.group(5)]))/1000.0 a = atom(sym, xyz, mol) disp = atom2pat.match(card) if disp: try: a.setDisplay(dispNames.index(disp.group(1))) except ValueError: pass assy.alist += [a] ndix[n]=a prevatom=a prevcard = card elif key == "bond1": list=map(int, re.findall("\d+",card[5:])) try: for a in map((lambda n: ndix[n]), list): mol.bond(prevatom, a) except KeyError: print "error in MMP file: atom ", prevcard print card # Read the MMP record for a Rotary Motor as: # rmotor (name) (r, g, b) torque speed (cx, cy, cz) (ax, ay, az) elif key == "rmotor": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=rmotpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) torq=float(m.group(5)) sped=float(m.group(6)) cxyz=A(map(float, [m.group(7),m.group(8),m.group(9)]))/1000.0 axyz=A(map(float, [m.group(10),m.group(11),m.group(12)]))/1000.0 prevmotor=RotaryMotor(assy) prevmotor.setProps(name, col, torq, sped, cxyz, axyz) opengroup.addmember(prevmotor) elif key == "shaft": list = map(int, re.findall("\d+",card[6:])) list = map((lambda n: ndix[n]), list) prevmotor.setShaft(list) # Read the MMP record for a Linear Motor as: # lmotor (name) (r, g, b) force stiffness (cx, cy, cz) (ax, ay, az) elif key == "lmotor": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=lmotpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) force=float(m.group(5)) stiffness=float(m.group(6)) cxyz=A(map(float, [m.group(7),m.group(8),m.group(9)]))/1000.0 axyz=A(map(float, [m.group(10),m.group(11),m.group(12)]))/1000.0 prevmotor=LinearMotor(assy) prevmotor.setProps(name, col, force, stiffness, cxyz, axyz) opengroup.addmember(prevmotor) # Read the MMP record for a Ground as: # ground (name) (r, g, b) atom1 atom2 ... atom25 {up to 25} elif key == "ground": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=grdpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) # Read in the list of atoms card =card[card.index(")")+1:] # skip past the color field list = map(int, re.findall("\d+",card[card.index(")")+1:])) list = map((lambda n: ndix[n]), list) gr = Ground(assy, list) # create ground and set props gr.name=name gr.color=col opengroup.addmember(gr) # Read the MMP record for a Thermostat as: # stat (name) (r, g, b) (temp) atom1 atom2 ... atom25 {up to 25} elif key == "stat": if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=statpat.match(card) name = m.group(1) col=map(lambda (x): int(x)/255.0, [m.group(2),m.group(3),m.group(4)]) temp=m.group(5) # Read in the list of atoms card =card[card.index(")")+1:] # skip past the color field card =card[card.index(")")+1:] # skip past the temp field list = map(int, re.findall("\d+",card[card.index(")")+1:])) list = map((lambda n: ndix[n]), list) sr = Stat(assy, list) # create stat and set props sr.name=name sr.color=col sr.temp=temp opengroup.addmember(sr) elif key == "shaft": list = map(int, re.findall("\d+",card[6:])) list = map((lambda n: ndix[n]), list) prevmotor.setShaft(list) elif key=="csys": # Coordinate System if not isInsert: #Skip this record if inserting m=re.match(csyspat,card) name=m.group(1) wxyz = A(map(float, [m.group(2), m.group(3), m.group(4), m.group(5)])) scale=float(m.group(6)) assy.csys = Csys(assy, name, scale, wxyz) opengroup.addmember(assy.csys) elif key=="datum": # Datum object if not isInsert: #Skip this record if inserting if mol: assy.addmol(mol) mol.moveto(opengroup) mol = None m=re.match(datumpat,card) if not m: print card continue name=m.group(1) type=m.group(5) col = tuple(map(int, [m.group(2), m.group(3), m.group(4)])) vec1 = A(map(float, [m.group(6), m.group(7), m.group(8)])) vec2 = A(map(float, [m.group(9), m.group(10), m.group(11)])) vec3 = A(map(float, [m.group(12), m.group(13), m.group(14)])) new = Datum(assy,name,type,vec1,vec2,vec3) opengroup.addmember(new) new.rgb = col elif key=="waals": # van der Waals Interactions pass # code was wrong -- to be implemented later elif key=="kelvin": # Temperature in Kelvin if not isInsert: #Skip this record if inserting m = re.match("kelvin (\d+)",card) n = int(m.group(1)) assy.temperature = n return grouplist
|
fb6c9c504f671cac1731613196f6f8f4e6c84063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/fb6c9c504f671cac1731613196f6f8f4e6c84063/fileIO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
81,
1291,
12,
428,
93,
16,
661,
17808,
16,
353,
4600,
273,
1083,
4672,
3536,
1986,
12245,
358,
6013,
6453,
279,
312,
1291,
585,
471,
1923,
501,
1368,
501,
3695,
3536,
468,
2848,
3965,
374,
9803,
1611,
21,
30,
3096,
296,
57,
11,
358,
585,
1965,
16,
364,
26182,
9472,
2865,
18,
328,
33,
3190,
12,
7540,
17808,
10837,
86,
57,
20387,
896,
3548,
1435,
309,
486,
353,
4600,
30,
1551,
93,
18,
3459,
33,
7540,
17808,
12629,
273,
599,
5346,
697,
12938,
1551,
93,
18,
287,
376,
273,
5378,
468,
428,
93,
18,
3413,
273,
3756,
2932,
2375,
3113,
1551,
93,
16,
599,
13,
1041,
3772,
273,
5378,
314,
14004,
17842,
273,
5378,
1696,
1655,
273,
599,
225,
364,
5270,
316,
328,
30,
498,
33,
856,
16330,
18,
1916,
12,
3327,
13,
309,
486,
498,
30,
1324,
498,
273,
498,
18,
1655,
12,
20,
13,
225,
309,
498,
422,
315,
1655,
6877,
468,
3756,
434,
490,
29466,
471,
19,
280,
14712,
508,
273,
336,
529,
12,
3327,
16,
315,
43,
13832,
7923,
1696,
1655,
273,
3756,
12,
529,
16,
1551,
93,
16,
1696,
1655,
13,
7,
428,
93,
18,
3413,
13,
309,
486,
1041,
3772,
30,
314,
14004,
17842,
1011,
306,
3190,
1655,
65,
1041,
3772,
273,
306,
12,
3190,
1655,
16,
508,
25887,
397,
1041,
3772,
225,
309,
498,
422,
315,
1332,
656,
6877,
468,
3756,
434,
490,
29466,
471,
19,
280,
14712,
508,
273,
336,
529,
12,
3327,
16,
315,
43,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
81,
1291,
12,
428,
93,
16,
661,
17808,
16,
353,
4600,
273,
1083,
4672,
3536,
1986,
12245,
358,
6013,
6453,
279,
312,
1291,
585,
471,
1923,
501,
1368,
501,
3695,
3536,
468,
2848,
3965,
374,
9803,
1611,
21,
30,
3096,
296,
57,
11,
358,
585,
1965,
16,
364,
26182,
9472,
2865,
18,
328,
33,
3190,
12,
7540,
17808,
10837,
86,
57,
20387,
896,
3548,
1435,
309,
486,
353,
4600,
30,
1551,
93,
18,
3459,
33,
7540,
17808,
12629,
273,
599,
5346,
697,
12938,
1551,
93,
18,
287,
376,
273,
5378,
468,
428,
93,
18,
3413,
273,
3756,
2932,
2375,
3113,
1551,
93,
16,
599,
13,
1041,
3772,
273,
5378,
314,
14004,
17842,
273,
5378,
1696,
1655,
2
] |
pos3 = self.fp.tell()
|
def close(self): """Close the file, and for mode "w" and "a" write the ending records.""" if self.fp is None: return
|
1606943723c6c2fa513288a138401c1a8d31c650 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1606943723c6c2fa513288a138401c1a8d31c650/zipfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
585,
16,
471,
364,
1965,
315,
91,
6,
471,
315,
69,
6,
1045,
326,
11463,
3853,
12123,
309,
365,
18,
7944,
353,
599,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3536,
4605,
326,
585,
16,
471,
364,
1965,
315,
91,
6,
471,
315,
69,
6,
1045,
326,
11463,
3853,
12123,
309,
365,
18,
7944,
353,
599,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
log.debug(cmd)
|
log.info(cmd)
|
def execute(cmd, destDir=None, verbose=True): if verbose: log.debug(cmd) if destDir: rc = os.system('cd %s; %s' %(destDir, cmd)) else: rc = os.system(cmd) _handle_rc(rc, cmd)
|
ebb95a47b84d08505a99f15de6f577d7e037a8fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ebb95a47b84d08505a99f15de6f577d7e037a8fd/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
4172,
16,
26231,
33,
7036,
16,
3988,
33,
5510,
4672,
309,
3988,
30,
613,
18,
1376,
12,
4172,
13,
309,
26231,
30,
4519,
273,
1140,
18,
4299,
2668,
4315,
738,
87,
31,
738,
87,
11,
8975,
10488,
1621,
16,
1797,
3719,
469,
30,
4519,
273,
1140,
18,
4299,
12,
4172,
13,
389,
4110,
67,
1310,
12,
1310,
16,
1797,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
4172,
16,
26231,
33,
7036,
16,
3988,
33,
5510,
4672,
309,
3988,
30,
613,
18,
1376,
12,
4172,
13,
309,
26231,
30,
4519,
273,
1140,
18,
4299,
2668,
4315,
738,
87,
31,
738,
87,
11,
8975,
10488,
1621,
16,
1797,
3719,
469,
30,
4519,
273,
1140,
18,
4299,
12,
4172,
13,
389,
4110,
67,
1310,
12,
1310,
16,
1797,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pen = self.loadItemPen(item) item.setPen(pen)
|
def addSeries(self, name, series, parent=None): """ Creates new controls and curve for an individual series.
|
14ad4626440885b949068a9ed1513d52a79f0e96 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3979/14ad4626440885b949068a9ed1513d52a79f0e96/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6485,
12,
2890,
16,
508,
16,
4166,
16,
982,
33,
7036,
4672,
3536,
10210,
394,
11022,
471,
8882,
364,
392,
7327,
4166,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6485,
12,
2890,
16,
508,
16,
4166,
16,
982,
33,
7036,
4672,
3536,
10210,
394,
11022,
471,
8882,
364,
392,
7327,
4166,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
gLogger.info("ReplicaManager.putAndRegister: Checksum information not provided. Calculating adler32.") checksum = fileAdler(file) gLogger.info("ReplicaManager.putAndRegister: Checksum calculated to be %s." % checksum) res = self.fileCatalogue.exists({lfn:guid})
|
gLogger.info( "ReplicaManager.putAndRegister: Checksum information not provided. Calculating adler32." ) checksum = fileAdler( file ) gLogger.info( "ReplicaManager.putAndRegister: Checksum calculated to be %s." % checksum ) res = self.fileCatalogue.exists( {lfn:guid} )
|
def putAndRegister(self,lfn,file,diracSE,guid=None,path=None,checksum=None,catalog=None): """ Put a local file to a Storage Element and register in the File Catalogues
|
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
585,
358,
279,
5235,
3010,
471,
1744,
316,
326,
1387,
14953,
3610,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
1876,
3996,
12,
2890,
16,
80,
4293,
16,
768,
16,
3211,
8836,
1090,
16,
14066,
33,
7036,
16,
803,
33,
7036,
16,
15149,
33,
7036,
16,
7199,
33,
7036,
4672,
3536,
4399,
279,
1191,
585,
358,
279,
5235,
3010,
471,
1744,
316,
326,
1387,
14953,
3610,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
store.add((URIRef(uri), RDF['type'], SIOC['Post']))
|
store.add((URIRef(uri), RDF.type, SIOC['Post']))
|
def __toRDF(self): """ Dump mailing list into a RDF file """
|
fc657599e6e8dc5f41369b49f4acca66ed2532f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5712/fc657599e6e8dc5f41369b49f4acca66ed2532f8/mailinglist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
869,
30137,
12,
2890,
4672,
3536,
18242,
4791,
310,
666,
1368,
279,
13539,
585,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
869,
30137,
12,
2890,
4672,
3536,
18242,
4791,
310,
666,
1368,
279,
13539,
585,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tls_calcs.phenix_prep(pdbin, tlsins, phenixout)
|
tls_calcs.phenix_prep(pdbin, tlsins, phenixout)
|
def Refmac5RefinementPrep(webtlsmdd, job_id, chain_ntls): """Called with a list of tuples (chain_id, ntls). Generates PDB and TLSIN files for refinement with REFMAC5. Returns a single string if there is an error, otherwise a dictionary of results is returned. """ struct_id = webtlsmdd.job_get_structure_id(job_id) analysis_dir = webtlsmdd.job_get_analysis_dir(job_id) analysis_base_url = webtlsmdd.job_get_analysis_base_url(job_id) if not os.path.isdir(analysis_dir): return "Job analysis directory does not exist" old_dir = os.getcwd() os.chdir(analysis_dir) ## input structure pdbin = "%s.pdb" % (struct_id) if not os.path.isfile(pdbin): pdbin = None for pdbx in glob.glob("*.pdb"): if len(pdbx) == 8: struct_id = pdbx[:4] pdbin = pdbx break if pdbin is None: os.chdir(old_dir) return "Input PDB File %s Not Found" % (pdbin) ## the per-chain TLSOUT files from TLSMD must be merged tlsins = [] for chain_id, ntls in chain_ntls: tlsin = "%s_CHAIN%s_NTLS%d.tlsout" % (struct_id, chain_id, ntls) if not os.path.isfile(tlsin): os.chdir(old_dir) return "Input TLSIN File %s Not Found" % (tlsin) tlsins.append(tlsin) ## form unique pdbout/tlsout filenames listx = [struct_id] #for chain_id, ntls in chain_ntls: # ## FIXME: Filename lengths must be less than 255 characters. # listx.append("CHAIN%s" % (chain_id)) # listx.append("NTLS%d" % (ntls)) # #listx.append("%s%d" % (chain_id, ntls)) #outbase ="_".join(listx) outbase = job_id pdbout = "%s.pdb" % (outbase) ## the tlsout from this program is going to be the tlsin ## for refinement, so it's important for the filename to have ## the tlsin extension so the user is not confused tlsout = "%s.tlsin" % (outbase) phenixout = "%s.phenix" % (outbase) ## PHENIX, Christoph Champ, 2007-11-06 ## make urls for linking pdbout_url = "%s/%s" % (analysis_base_url, pdbout) tlsout_url = "%s/%s" % (analysis_base_url, tlsout) phenixout_url = "%s/%s" % (analysis_base_url, phenixout) ## PHENIX, Christoph Champ, 2007-11-06 ## create the files tls_calcs.refmac5_prep(pdbin, tlsins, pdbout, tlsout) tls_calcs.phenix_prep(pdbin, tlsins, phenixout) ## PHENIX, Christoph Champ, 2007-11-06 os.chdir(old_dir) return dict(pdbout = pdbout, pdbout_url = pdbout_url, tlsout = tlsout, tlsout_url = tlsout_url, phenixout = phenixout, phenixout_url = phenixout_url)
|
0049fea0a8babe00b08f3932abf09fa0bc010db6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/0049fea0a8babe00b08f3932abf09fa0bc010db6/webtlsmdd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3941,
5821,
25,
426,
926,
820,
15543,
12,
4875,
17116,
81,
449,
16,
1719,
67,
350,
16,
2687,
67,
496,
3251,
4672,
3536,
8185,
598,
279,
666,
434,
10384,
261,
5639,
67,
350,
16,
9513,
3251,
2934,
31902,
21601,
471,
8098,
706,
1390,
364,
25994,
820,
598,
20557,
10875,
25,
18,
2860,
279,
2202,
533,
309,
1915,
353,
392,
555,
16,
3541,
279,
3880,
434,
1686,
353,
2106,
18,
3536,
1958,
67,
350,
273,
3311,
17116,
81,
449,
18,
4688,
67,
588,
67,
7627,
67,
350,
12,
4688,
67,
350,
13,
6285,
67,
1214,
273,
3311,
17116,
81,
449,
18,
4688,
67,
588,
67,
12746,
67,
1214,
12,
4688,
67,
350,
13,
6285,
67,
1969,
67,
718,
273,
3311,
17116,
81,
449,
18,
4688,
67,
588,
67,
12746,
67,
1969,
67,
718,
12,
4688,
67,
350,
13,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
12746,
67,
1214,
4672,
327,
315,
2278,
6285,
1867,
1552,
486,
1005,
6,
225,
1592,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
12,
12746,
67,
1214,
13,
225,
7541,
810,
3695,
10892,
267,
273,
2213,
87,
18,
17414,
6,
738,
261,
1697,
67,
350,
13,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
17414,
267,
4672,
10892,
267,
273,
599,
364,
10892,
92,
316,
4715,
18,
10581,
2932,
11146,
17414,
6,
4672,
309,
562,
12,
17414,
92,
13,
422,
1725,
30,
1958,
67,
350,
273,
10892,
92,
10531,
24,
65,
10892,
267,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3941,
5821,
25,
426,
926,
820,
15543,
12,
4875,
17116,
81,
449,
16,
1719,
67,
350,
16,
2687,
67,
496,
3251,
4672,
3536,
8185,
598,
279,
666,
434,
10384,
261,
5639,
67,
350,
16,
9513,
3251,
2934,
31902,
21601,
471,
8098,
706,
1390,
364,
25994,
820,
598,
20557,
10875,
25,
18,
2860,
279,
2202,
533,
309,
1915,
353,
392,
555,
16,
3541,
279,
3880,
434,
1686,
353,
2106,
18,
3536,
1958,
67,
350,
273,
3311,
17116,
81,
449,
18,
4688,
67,
588,
67,
7627,
67,
350,
12,
4688,
67,
350,
13,
6285,
67,
1214,
273,
3311,
17116,
81,
449,
18,
4688,
67,
588,
67,
12746,
67,
1214,
12,
4688,
67,
350,
13,
6285,
67,
1969,
67,
718,
273,
2
] |
hlr_utils.result_insert(result,res_descr,so2,None,"all")
|
hlr_utils.result_insert(result, res_descr, so2, None, "all")
|
def create_E_vs_Q(obj,E,k,px_separate=True,*args,**kwargs): """ This functions takes a SOM with a wavelength axis, energy and wavevector tuples and turns the SOs contained in the SOM to 2D SOs with E and Q axes. Parameters: ---------- -> obj is the input SOM -> E (E_f for IGS) is an energy tuple (value, err2) -> k (k_f for IGS) is an wavevector tuple (value, err2) Returns: ------- <- A SOM containing 2D SOs with E and Q axes Exceptions: ---------- <- RuntimeError is raised if anything other than a SOM is passed to the function <- RuntimeError is raised if an instrument is not contained in the SOM """ import hlr_utils # set up for working through data (result,res_descr)=hlr_utils.empty_result(obj) o_descr=hlr_utils.get_descr(obj) if o_descr != "SOM": raise RuntimeError, "This function only accepts SOMs" # Have a SOM, go on else: pass if o_descr == "SOM": try: obj.attr_list.instrument.get_primary() inst = obj.attr_list.instrument except RuntimeError: raise RuntimeError, "An instrument was not provided!" # Got the instrument, go on else: pass axis = hlr_utils.hlr_1D_units(obj, "Angstroms") result=hlr_utils.copy_som_attr(result,res_descr,obj,o_descr) result.setYLabel("counts") result.setYUnits("counts / (ueV * A^-1)") result.setAllAxisLabels(["Q transfer","energy transfer"]) result.setAllAxisUnits(["A^-1","ueV"]) # iterate through the values import array_manip import axis_manip import nessi_list import SOM y_len = len(obj[0]) y2d_len = y_len * y_len for j in range(hlr_utils.get_length(obj)): xval = hlr_utils.get_value(obj,j,o_descr,"x",axis) xerr2 = hlr_utils.get_err2(obj,j,o_descr,"x",axis) k_j=axis_manip.wavelength_to_scalar_k(xval, xerr2) E_j=axis_manip.wavelength_to_energy(xval, xerr2) yval = hlr_utils.get_value(obj,j,o_descr,"y") yerr2 = hlr_utils.get_err2(obj,j,o_descr,"y") yval = axis_manip.reverse_array_cp(yval) yerr2 = axis_manip.reverse_array_cp(yerr2) so = hlr_utils.get_value(obj,j,o_descr,"all") (angle,angle_err2) = hlr_utils.get_parameter("polar",so,inst) E_t=axis_manip.energy_transfer(E_j[0], E_j[1], E[0], E[1]) E_t=axis_manip.frequency_to_energy(E_t[0], E_t[1]) E_t=array_manip.mult_ncerr(E_t[0], E_t[1], 1000.0, 0.0) Q=axis_manip.init_scatt_wavevector_to_scalar_Q(k_j[0], k_j[1], k[0], k[1], angle, angle_err2) so2 = SOM.SO(2) so2.id = so.id so2.y = nessi_list.NessiList(y2d_len) so2.var_y = nessi_list.NessiList(y2d_len) for m in range(y_len): so2.y[m*(y_len+1)] = yval[m] so2.var_y[m*(y_len+1)] = yerr2[m] so2.axis[0].val = Q[0] so2.axis[1].val = E_t[0] if so.axis[0].var != None: so2.axis[0].var = Q[1] so2.axis[1].var = E_t[1] # Do nothing else: pass hlr_utils.result_insert(result,res_descr,so2,None,"all") return result
|
cf46b3f0500e4ffd75f0e930b33e4c4cb1695688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/cf46b3f0500e4ffd75f0e930b33e4c4cb1695688/hlr_create_E_vs_Q.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
41,
67,
6904,
67,
53,
12,
2603,
16,
41,
16,
79,
16,
4430,
67,
16627,
340,
33,
5510,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
4186,
5530,
279,
348,
1872,
598,
279,
21410,
2654,
16,
12929,
471,
10794,
7737,
10384,
471,
20748,
326,
7460,
87,
7542,
316,
326,
348,
1872,
358,
576,
40,
7460,
87,
598,
512,
471,
2238,
6515,
18,
225,
7012,
30,
12181,
317,
1081,
353,
326,
810,
348,
1872,
317,
512,
261,
41,
67,
74,
364,
13102,
55,
13,
353,
392,
12929,
3193,
261,
1132,
16,
393,
22,
13,
317,
417,
261,
79,
67,
74,
364,
13102,
55,
13,
353,
392,
10794,
7737,
3193,
261,
1132,
16,
393,
22,
13,
225,
2860,
30,
18365,
3290,
432,
348,
1872,
4191,
576,
40,
7460,
87,
598,
512,
471,
2238,
6515,
225,
12781,
30,
12181,
3290,
7265,
353,
11531,
309,
6967,
1308,
2353,
279,
348,
1872,
353,
2275,
358,
326,
445,
3290,
7265,
353,
11531,
309,
392,
10353,
353,
486,
7542,
316,
326,
348,
1872,
3536,
225,
1930,
366,
10826,
67,
5471,
225,
468,
444,
731,
364,
5960,
3059,
501,
261,
2088,
16,
455,
67,
28313,
13,
33,
76,
10826,
67,
5471,
18,
5531,
67,
2088,
12,
2603,
13,
320,
67,
28313,
33,
76,
10826,
67,
5471,
18,
588,
67,
28313,
12,
2603,
13,
225,
309,
320,
67,
28313,
480,
315,
55,
1872,
6877,
1002,
7265,
16,
315,
2503,
445,
1338,
8104,
348,
1872,
87,
6,
468,
21940,
279,
348,
1872,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
41,
67,
6904,
67,
53,
12,
2603,
16,
41,
16,
79,
16,
4430,
67,
16627,
340,
33,
5510,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
4186,
5530,
279,
348,
1872,
598,
279,
21410,
2654,
16,
12929,
471,
10794,
7737,
10384,
471,
20748,
326,
7460,
87,
7542,
316,
326,
348,
1872,
358,
576,
40,
7460,
87,
598,
512,
471,
2238,
6515,
18,
225,
7012,
30,
12181,
317,
1081,
353,
326,
810,
348,
1872,
317,
512,
261,
41,
67,
74,
364,
13102,
55,
13,
353,
392,
12929,
3193,
261,
1132,
16,
393,
22,
13,
317,
417,
261,
79,
67,
74,
364,
13102,
55,
13,
353,
392,
10794,
7737,
3193,
261,
1132,
16,
393,
22,
13,
225,
2
] |
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context)
|
if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context)
|
def max_mag(self, other, context=None): """Compares the values numerically with their sign ignored.""" other = _convert_other(other, raiseit=True)
|
3f122784a35b5a60fac3e946d1a99941b3f116c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/3f122784a35b5a60fac3e946d1a99941b3f116c9/decimal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
67,
4527,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
19199,
326,
924,
6389,
1230,
598,
3675,
1573,
5455,
12123,
1308,
273,
389,
6283,
67,
3011,
12,
3011,
16,
1002,
305,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
events = client.get_events(cal_user, start_date=dates[2], end_date=dates[3], title=options.title, query=options.query, expand_recurrence=False) try: client.delete_events(events, options.date, cal_user) except EventsNotFound: print 'No events found that match your options!'
|
for cal in cal_user_list: print 'For calendar ' + str(cal) events = client.get_events(cal.user, start_date=dates[2], end_date=dates[3], title=options.title, query=options.query, expand_recurrence=False) try: client.delete_events(events, options.date, cal.user) except EventsNotFound: print 'No events found that match your options!'
|
def _run_delete(client, options, args): cal_user = client.get_calendar_user(options.cal) if not cal_user: print 'No calendar matches "' + options.cal + '"' return dates = get_start_and_end(options.date) events = client.get_events(cal_user, start_date=dates[2], end_date=dates[3], title=options.title, query=options.query, expand_recurrence=False) try: client.delete_events(events, options.date, cal_user) except EventsNotFound: print 'No events found that match your options!'
|
f846a2afa8ac791418b89ed03bd00a3c62cf31be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/f846a2afa8ac791418b89ed03bd00a3c62cf31be/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
3733,
12,
2625,
16,
702,
16,
833,
4672,
1443,
67,
1355,
273,
1004,
18,
588,
67,
11650,
67,
1355,
12,
2116,
18,
771,
13,
309,
486,
1443,
67,
1355,
30,
1172,
296,
2279,
5686,
1885,
2491,
397,
702,
18,
771,
397,
4754,
327,
7811,
273,
336,
67,
1937,
67,
464,
67,
409,
12,
2116,
18,
712,
13,
364,
1443,
316,
1443,
67,
1355,
67,
1098,
30,
1172,
296,
1290,
5686,
296,
397,
609,
12,
771,
13,
2641,
273,
1004,
18,
588,
67,
5989,
12,
771,
18,
1355,
16,
787,
67,
712,
33,
9683,
63,
22,
6487,
679,
67,
712,
33,
9683,
63,
23,
6487,
2077,
33,
2116,
18,
2649,
16,
843,
33,
2116,
18,
2271,
16,
4542,
67,
266,
17131,
33,
8381,
13,
775,
30,
1004,
18,
3733,
67,
5989,
12,
5989,
16,
702,
18,
712,
16,
1443,
18,
1355,
13,
1335,
9043,
2768,
30,
1172,
296,
2279,
2641,
1392,
716,
845,
3433,
702,
5124,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
3733,
12,
2625,
16,
702,
16,
833,
4672,
1443,
67,
1355,
273,
1004,
18,
588,
67,
11650,
67,
1355,
12,
2116,
18,
771,
13,
309,
486,
1443,
67,
1355,
30,
1172,
296,
2279,
5686,
1885,
2491,
397,
702,
18,
771,
397,
4754,
327,
7811,
273,
336,
67,
1937,
67,
464,
67,
409,
12,
2116,
18,
712,
13,
364,
1443,
316,
1443,
67,
1355,
67,
1098,
30,
1172,
296,
1290,
5686,
296,
397,
609,
12,
771,
13,
2641,
273,
1004,
18,
588,
67,
5989,
12,
771,
18,
1355,
16,
787,
67,
712,
33,
9683,
63,
22,
6487,
679,
67,
712,
33,
9683,
63,
23,
6487,
2077,
33,
2116,
18,
2649,
16,
843,
33,
2116,
18,
2271,
2
] |
scaling_term -- default is 0.05. if nodes are getting chopped off, increase; if graph
|
scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph
|
def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph.
|
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5253,
67,
9724,
33,
7036,
16,
3591,
67,
9724,
33,
7036,
16,
3590,
33,
7036,
16,
10612,
67,
6408,
33,
20,
18,
6260,
16,
26591,
33,
8381,
16,
11316,
33,
3361,
16,
2036,
67,
1637,
67,
1925,
33,
8381,
16,
24779,
33,
7036,
16,
2826,
25577,
4672,
3536,
9674,
87,
326,
261,
3211,
13,
4660,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5253,
67,
9724,
33,
7036,
16,
3591,
67,
9724,
33,
7036,
16,
3590,
33,
7036,
16,
10612,
67,
6408,
33,
20,
18,
6260,
16,
26591,
33,
8381,
16,
11316,
33,
3361,
16,
2036,
67,
1637,
67,
1925,
33,
8381,
16,
24779,
33,
7036,
16,
2826,
25577,
4672,
3536,
9674,
87,
326,
261,
3211,
13,
4660,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.info("after configread at " + time.ctime())
|
def testSwampInterface(): logging.basicConfig(level=logging.DEBUG) wholelist = open("full_resamp.swamp").readlines() portionlist = wholelist[:10] test = [ "".join(portionlist), "".join(wholelist), testScript4] c = Config("swamp.conf") c.read() log.info("after configread at " + time.ctime()) fe = FakeExecutor() le = LocalExecutor(NcoBinaryFinder(c), FileMapper("swampTest%d"%os.getpid(), c.execSourcePath, c.execScratchPath, c.execBulkPath)) #si = SwampInterface(fe) si = SwampInterface(c, le) #evilly force the interface to use a remote executor assert len(si.remote) > 0 si.executor = si.remote[0] taskid = si.submit(test[2]) log.info("finish at " + time.ctime()) print "submitted with taskid=", taskid
|
2156f04bd5fc29e60fd70189ecd66684b607d5ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5203/2156f04bd5fc29e60fd70189ecd66684b607d5ed/swamp_common.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6050,
931,
1358,
13332,
2907,
18,
13240,
809,
12,
2815,
33,
11167,
18,
9394,
13,
600,
355,
5449,
273,
1696,
2932,
2854,
67,
455,
931,
18,
5328,
931,
20387,
896,
3548,
1435,
14769,
1098,
273,
600,
355,
5449,
10531,
2163,
65,
1842,
273,
306,
1408,
18,
5701,
12,
17564,
1098,
3631,
1408,
18,
5701,
12,
3350,
355,
5449,
3631,
1842,
3651,
24,
65,
225,
276,
273,
1903,
2932,
5328,
931,
18,
3923,
7923,
276,
18,
896,
1435,
1656,
273,
11551,
6325,
1435,
884,
273,
3566,
6325,
12,
50,
2894,
5905,
8441,
12,
71,
3631,
1387,
4597,
2932,
5328,
931,
4709,
9,
72,
28385,
538,
18,
588,
6610,
9334,
276,
18,
4177,
1830,
743,
16,
276,
18,
4177,
1541,
86,
505,
743,
16,
276,
18,
4177,
13112,
743,
3719,
225,
468,
7722,
273,
5434,
931,
1358,
12,
3030,
13,
7533,
273,
5434,
931,
1358,
12,
71,
16,
884,
13,
225,
468,
14965,
330,
715,
2944,
326,
1560,
358,
999,
279,
2632,
6601,
1815,
562,
12,
7722,
18,
7222,
13,
405,
374,
7533,
18,
21097,
273,
7533,
18,
7222,
63,
20,
65,
29035,
273,
7533,
18,
9297,
12,
3813,
63,
22,
5717,
613,
18,
1376,
2932,
13749,
622,
315,
397,
813,
18,
21261,
10756,
1172,
315,
31575,
598,
29035,
1546,
16,
29035,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
6050,
931,
1358,
13332,
2907,
18,
13240,
809,
12,
2815,
33,
11167,
18,
9394,
13,
600,
355,
5449,
273,
1696,
2932,
2854,
67,
455,
931,
18,
5328,
931,
20387,
896,
3548,
1435,
14769,
1098,
273,
600,
355,
5449,
10531,
2163,
65,
1842,
273,
306,
1408,
18,
5701,
12,
17564,
1098,
3631,
1408,
18,
5701,
12,
3350,
355,
5449,
3631,
1842,
3651,
24,
65,
225,
276,
273,
1903,
2932,
5328,
931,
18,
3923,
7923,
276,
18,
896,
1435,
1656,
273,
11551,
6325,
1435,
884,
273,
3566,
6325,
12,
50,
2894,
5905,
8441,
12,
71,
3631,
1387,
4597,
2932,
5328,
931,
4709,
9,
72,
28385,
538,
18,
588,
6610,
9334,
276,
18,
4177,
1830,
743,
16,
276,
18,
4177,
2
] |
|
safe_remove(zipfile) safe_remove(tarfile) if src_files==[]: return src_files = string.join(src_files)
|
def find_src_files(L,d,N): if string.upper(os.path.basename(d))=='CVS': return #ignore all CVS for n in N: fn = os.path.normcase(os.path.normpath(os.path.join(d,n))) if os.path.isfile(fn): L.append(fn)
|
5c2936a55fe3894aa5b9cc5719900acb6e5b8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/5c2936a55fe3894aa5b9cc5719900acb6e5b8e57/daily.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4816,
67,
2354,
12,
48,
16,
72,
16,
50,
4672,
309,
533,
18,
5797,
12,
538,
18,
803,
18,
13909,
12,
72,
3719,
18920,
39,
14640,
4278,
327,
202,
7,
6185,
777,
385,
14640,
364,
290,
316,
423,
30,
2295,
273,
1140,
18,
803,
18,
7959,
3593,
12,
538,
18,
803,
18,
7959,
803,
12,
538,
18,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4816,
67,
2354,
12,
48,
16,
72,
16,
50,
4672,
309,
533,
18,
5797,
12,
538,
18,
803,
18,
13909,
12,
72,
3719,
18920,
39,
14640,
4278,
327,
202,
7,
6185,
777,
385,
14640,
364,
290,
316,
423,
30,
2295,
273,
1140,
18,
803,
18,
7959,
3593,
12,
538,
18,
803,
18,
7959,
803,
12,
538,
18,
803,
18,
5701,
12,
72,
16,
82,
20349,
309,
1140,
18,
803,
18,
291,
768,
12,
4293,
4672,
511,
18,
6923,
12,
4293,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print self.data['pub_date']
|
def save_changes(self): """Save the changes back to the database. This also adds a redirect if the slug changes. """ old_slug = self.post.slug old_parser = self.post.parser forms.set_fields(self.post, self.data, 'title', 'author', 'parser') if (self.data['text'] != self.post.text or self.data['parser'] != old_parser): self.post.text = self.data['text'] add_redirect = self.post.is_published and old_slug != self.post.slug
|
f234fd379bc184d633cdf3d884a4a1a16466165a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/f234fd379bc184d633cdf3d884a4a1a16466165a/forms.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6329,
12,
2890,
4672,
3536,
4755,
326,
3478,
1473,
358,
326,
2063,
18,
225,
1220,
2546,
4831,
279,
3136,
309,
326,
4959,
3478,
18,
3536,
1592,
67,
6436,
273,
365,
18,
2767,
18,
6436,
1592,
67,
4288,
273,
365,
18,
2767,
18,
4288,
10138,
18,
542,
67,
2821,
12,
2890,
18,
2767,
16,
365,
18,
892,
16,
296,
2649,
2187,
296,
4161,
2187,
296,
4288,
6134,
309,
261,
2890,
18,
892,
3292,
955,
3546,
480,
365,
18,
2767,
18,
955,
578,
365,
18,
892,
3292,
4288,
3546,
480,
1592,
67,
4288,
4672,
365,
18,
2767,
18,
955,
273,
365,
18,
892,
3292,
955,
3546,
527,
67,
7590,
273,
365,
18,
2767,
18,
291,
67,
12614,
471,
1592,
67,
6436,
480,
365,
18,
2767,
18,
6436,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6329,
12,
2890,
4672,
3536,
4755,
326,
3478,
1473,
358,
326,
2063,
18,
225,
1220,
2546,
4831,
279,
3136,
309,
326,
4959,
3478,
18,
3536,
1592,
67,
6436,
273,
365,
18,
2767,
18,
6436,
1592,
67,
4288,
273,
365,
18,
2767,
18,
4288,
10138,
18,
542,
67,
2821,
12,
2890,
18,
2767,
16,
365,
18,
892,
16,
296,
2649,
2187,
296,
4161,
2187,
296,
4288,
6134,
309,
261,
2890,
18,
892,
3292,
955,
3546,
480,
365,
18,
2767,
18,
955,
578,
365,
18,
892,
3292,
4288,
3546,
480,
1592,
67,
4288,
4672,
365,
18,
2767,
18,
955,
273,
365,
18,
892,
3292,
955,
3546,
527,
67,
7590,
273,
365,
18,
2767,
18,
291,
67,
12614,
471,
2
] |
|
def test_init_alternate_auth_port(self):
|
def test_init_alternate_dns_port(self):
|
def test_init_alternate_auth_port(self): bob = BoB(None, 9999) self.assertEqual(bob.verbose, False) self.assertEqual(bob.msgq_socket_file, None) self.assertEqual(bob.auth_port, 9999) self.assertEqual(bob.cc_session, None) self.assertEqual(bob.address, None) self.assertEqual(bob.processes, {}) self.assertEqual(bob.dead_processes, {}) self.assertEqual(bob.runnable, False)
|
4cf1bd8a3477a1a7c68d0f7cdc7dedc4e9d40a77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/4cf1bd8a3477a1a7c68d0f7cdc7dedc4e9d40a77/bind10_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2738,
67,
16025,
340,
67,
14926,
67,
655,
12,
2890,
4672,
800,
70,
273,
17980,
38,
12,
7036,
16,
30082,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
11369,
16,
1083,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
3576,
85,
67,
7814,
67,
768,
16,
599,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
1944,
67,
655,
16,
30082,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
952,
67,
3184,
16,
599,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
2867,
16,
599,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
18675,
16,
2618,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
22097,
67,
18675,
16,
2618,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
2681,
6914,
16,
1083,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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231,
5812,
12,
70,
947,
18,
11369,
16,
1083,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
3576,
85,
67,
7814,
67,
768,
16,
599,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
1944,
67,
655,
16,
30082,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
952,
67,
3184,
16,
599,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
2867,
16,
599,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
18675,
16,
2618,
13,
365,
18,
11231,
5812,
12,
70,
947,
18,
22097,
67,
18675,
16,
2618,
13,
2
] |
self.connect(stage2, ddc, demod, dst)
|
self.connect(stage2, ddc) self.connect(ddc, demod) self.connect(demod, dst)
|
def __init__(self): gr.top_block.__init__(self)
|
7eaa02555fa1f04ad4e8d854fbb03226267c73f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9155/7eaa02555fa1f04ad4e8d854fbb03226267c73f0/btrx.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3821,
18,
3669,
67,
2629,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3821,
18,
3669,
67,
2629,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return S_OK()
|
return
|
def initialize( script = False, ignoreErrors = False, initializeMonitor = False, enableCommandLine = False ): global localCfg, scriptName, _isAlreadyInitialized #Please do not call initialize in every file if _isAlreadyInitialized: return S_OK() _isAlreadyInitialized = True userDisabled = not localCfg.isCSEnabled() if not userDisabled: localCfg.disableCS() if not enableCommandLine: localCfg.disableParsingCommandLine() if script: scriptName = script scriptSection = localCfg.setConfigurationForScript( scriptName ) if not ignoreErrors: localCfg.addMandatoryEntry( "/DIRAC/Setup" ) resultDict = localCfg.loadUserData() if not ignoreErrors and not resultDict[ 'OK' ]: gLogger.error( "There were errors when loading configuration", resultDict[ 'Message' ] ) sys.exit( 1 ) if not userDisabled: localCfg.enableCS() if initializeMonitor: gMonitor.setComponentType( gMonitor.COMPONENT_SCRIPT ) gMonitor.setComponentName( scriptName ) gMonitor.setComponentLocation( "script" ) gMonitor.initialize() else: gMonitor.disable()
|
2ed659d24506e42ee8a85f3b991ed45e45688960 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2ed659d24506e42ee8a85f3b991ed45e45688960/Script.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2728,
273,
1083,
16,
2305,
4229,
273,
1083,
16,
4046,
7187,
273,
1083,
16,
4237,
21391,
273,
1083,
262,
30,
2552,
1191,
8198,
16,
31008,
16,
389,
291,
9430,
11459,
225,
468,
8496,
741,
486,
745,
4046,
316,
3614,
585,
309,
389,
291,
9430,
11459,
30,
327,
389,
291,
9430,
11459,
273,
1053,
225,
729,
8853,
273,
486,
1191,
8198,
18,
291,
4596,
1526,
1435,
309,
486,
729,
8853,
30,
1191,
8198,
18,
8394,
4596,
1435,
225,
309,
486,
4237,
21391,
30,
1191,
8198,
18,
8394,
13963,
21391,
1435,
225,
309,
2728,
30,
31008,
273,
2728,
2728,
5285,
273,
1191,
8198,
18,
542,
1750,
1290,
3651,
12,
31008,
262,
225,
309,
486,
2305,
4229,
30,
1191,
8198,
18,
1289,
49,
10018,
1622,
12,
2206,
4537,
2226,
19,
7365,
6,
262,
563,
5014,
273,
1191,
8198,
18,
945,
19265,
1435,
309,
486,
2305,
4229,
471,
486,
563,
5014,
63,
296,
3141,
11,
308,
30,
314,
3328,
18,
1636,
12,
315,
9828,
4591,
1334,
1347,
7153,
1664,
3113,
563,
5014,
63,
296,
1079,
11,
308,
262,
2589,
18,
8593,
12,
404,
262,
225,
309,
486,
729,
8853,
30,
1191,
8198,
18,
7589,
4596,
1435,
225,
309,
4046,
7187,
30,
314,
7187,
18,
542,
28116,
12,
314,
7187,
18,
22922,
67,
10885,
262,
314,
7187,
18,
542,
1841,
461,
12,
31008,
262,
314,
7187,
18,
542,
1841,
2735,
12,
315,
4263,
6,
262,
314,
7187,
18,
11160,
1435,
469,
30,
314,
7187,
18,
8394,
1435,
225,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2728,
273,
1083,
16,
2305,
4229,
273,
1083,
16,
4046,
7187,
273,
1083,
16,
4237,
21391,
273,
1083,
262,
30,
2552,
1191,
8198,
16,
31008,
16,
389,
291,
9430,
11459,
225,
468,
8496,
741,
486,
745,
4046,
316,
3614,
585,
309,
389,
291,
9430,
11459,
30,
327,
389,
291,
9430,
11459,
273,
1053,
225,
729,
8853,
273,
486,
1191,
8198,
18,
291,
4596,
1526,
1435,
309,
486,
729,
8853,
30,
1191,
8198,
18,
8394,
4596,
1435,
225,
309,
486,
4237,
21391,
30,
1191,
8198,
18,
8394,
13963,
21391,
1435,
225,
309,
2728,
30,
31008,
273,
2728,
2728,
5285,
273,
1191,
8198,
18,
542,
1750,
1290,
3651,
12,
31008,
262,
225,
309,
486,
2305,
4229,
30,
1191,
2
] |
return DAVConnection(self.url)
|
acct = osaf.framework.sharing.Sharing.getWebDavAccount() if acct.useSSL: return SSLDAVConnection(self.url, acct) return DAVConnection(self.url, acct)
|
def newConnection(self): return DAVConnection(self.url)
|
e3cfc89067d78a3e4b0063b94671a3d124dfcc8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e3cfc89067d78a3e4b0063b94671a3d124dfcc8d/Dav.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
1952,
12,
2890,
4672,
327,
463,
5856,
1952,
12,
2890,
18,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if my_ftype == "symlink" and ftype == "file":
|
if my_ftype == "symlink" and pf.ftype == "file":
|
def _ftype(mode): """ Given a "mode" return the name of the type of file. """ if stat.S_ISREG(mode): return "file" if stat.S_ISDIR(mode): return "directory" if stat.S_ISLNK(mode): return "symlink" if stat.S_ISFIFO(mode): return "fifo" if stat.S_ISCHR(mode): return "character device" if stat.S_ISBLK(mode): return "block device" return "<unknown>"
|
1f1a9c8f653cd8cc3aa77f966051de6095bdd390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/1f1a9c8f653cd8cc3aa77f966051de6095bdd390/packages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
723,
12,
3188,
4672,
3536,
16803,
279,
315,
3188,
6,
327,
326,
508,
434,
326,
618,
434,
585,
18,
3536,
309,
610,
18,
55,
67,
5127,
5937,
12,
3188,
4672,
225,
327,
315,
768,
6,
309,
610,
18,
55,
67,
5127,
4537,
12,
3188,
4672,
225,
327,
315,
5149,
6,
309,
610,
18,
55,
67,
45,
4559,
50,
47,
12,
3188,
4672,
225,
327,
315,
21278,
6,
309,
610,
18,
55,
67,
5127,
1653,
3313,
12,
3188,
4672,
327,
315,
74,
20299,
6,
309,
610,
18,
55,
67,
5127,
1792,
54,
12,
3188,
4672,
225,
327,
315,
11560,
2346,
6,
309,
610,
18,
55,
67,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
723,
12,
3188,
4672,
3536,
16803,
279,
315,
3188,
6,
327,
326,
508,
434,
326,
618,
434,
585,
18,
3536,
309,
610,
18,
55,
67,
5127,
5937,
12,
3188,
4672,
225,
327,
315,
768,
6,
309,
610,
18,
55,
67,
5127,
4537,
12,
3188,
4672,
225,
327,
315,
5149,
6,
309,
610,
18,
55,
67,
45,
4559,
50,
47,
12,
3188,
4672,
225,
327,
315,
21278,
6,
309,
610,
18,
55,
67,
5127,
1653,
3313,
12,
3188,
4672,
327,
315,
74,
20299,
6,
309,
610,
18,
55,
67,
5127,
1792,
54,
12,
3188,
4672,
225,
327,
315,
11560,
2346,
6,
309,
610,
18,
55,
67,
5127,
14618,
47,
12,
3188,
4672,
225,
327,
315,
2629,
2346,
2
] |
self.message.set('\n'.join(rows))
|
return '\n'.join(rows) class EditorError(Exception): pass cmdargs = [editor, name] try: try: retcode = subprocess.call(" ".join(cmdargs), shell=True, stderr=subprocess.PIPE) except OSError, e: raise EditorError if retcode != 0: raise EditorError except EditorError: msg = _getMessageNoEditor() if msg is None: return False self.message.set(msg)
|
def getMessageFromUser(self, prompt=''):
|
8cc5e38355fa1132b21bd8eb7d3007291efd377f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/8cc5e38355fa1132b21bd8eb7d3007291efd377f/changelog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2381,
1265,
1299,
12,
2890,
16,
6866,
2218,
11,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2381,
1265,
1299,
12,
2890,
16,
6866,
2218,
11,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.socket.bind (addr) def connect (self, address):
|
return self.socket.bind(addr) def connect(self, address):
|
def bind (self, addr): self.addr = addr return self.socket.bind (addr)
|
f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/tem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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
261,
2890,
16,
3091,
4672,
365,
18,
4793,
273,
3091,
327,
365,
18,
7814,
18,
4376,
261,
4793,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if isinstance(self.parent.vals[self.parent.value], str): returnValue = _(self.parent.vals[self.parent.value]) else: returnValue = _(self.parent.vals[self.parent.value][1])
|
returnValue = _(self.parent.vals[self.parent.value]) if not isinstance(returnValue, str): returnValue = returnValue[0] if returnValue: returnValue = _(returnValue)
|
def __call__(self, selected): #needed by configlist self.checkValues() if isinstance(self.parent.vals[self.parent.value], str): returnValue = _(self.parent.vals[self.parent.value]) else: returnValue = _(self.parent.vals[self.parent.value][1]) return ("text", returnValue)
|
334e49f88bb558bb2f07d47c77c7900074d5b7b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/334e49f88bb558bb2f07d47c77c7900074d5b7b8/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
3170,
4672,
1082,
202,
7,
17471,
635,
642,
1098,
365,
18,
1893,
1972,
1435,
225,
7750,
273,
389,
12,
2890,
18,
2938,
18,
4524,
63,
2890,
18,
2938,
18,
1132,
5717,
309,
486,
1549,
12,
2463,
620,
16,
609,
4672,
7750,
273,
7750,
63,
20,
65,
1377,
309,
7750,
30,
7750,
273,
389,
12,
2463,
620,
13,
225,
327,
7566,
955,
3113,
7750,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4672,
1082,
202,
7,
17471,
635,
642,
1098,
365,
18,
1893,
1972,
1435,
225,
7750,
273,
389,
12,
2890,
18,
2938,
18,
4524,
63,
2890,
18,
2938,
18,
1132,
5717,
309,
486,
1549,
12,
2463,
620,
16,
609,
4672,
7750,
273,
7750,
63,
20,
65,
1377,
309,
7750,
30,
7750,
273,
389,
12,
2463,
620,
13,
225,
327,
7566,
955,
3113,
7750,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return map(str, re.split(r'\s+', flat)) if flat != "" else []
|
return map(int, re.split(r'\s+', flat)) if flat != "" else []
|
def cookie_recips(status): flat = urllib.unquote(req.COOKIES.get("recip-%s" % status, "")) return map(str, re.split(r'\s+', flat)) if flat != "" else []
|
314aa17b58695a5c9eaf80d92f66be919ca5a46d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/314aa17b58695a5c9eaf80d92f66be919ca5a46d/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3878,
67,
266,
3449,
87,
12,
2327,
4672,
3569,
273,
11527,
18,
318,
6889,
12,
3658,
18,
3865,
3141,
8805,
18,
588,
2932,
266,
3449,
6456,
87,
6,
738,
1267,
16,
1408,
3719,
327,
852,
12,
701,
16,
283,
18,
4939,
12,
86,
8314,
87,
15,
2187,
3569,
3719,
309,
3569,
480,
1408,
469,
5378,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3878,
67,
266,
3449,
87,
12,
2327,
4672,
3569,
273,
11527,
18,
318,
6889,
12,
3658,
18,
3865,
3141,
8805,
18,
588,
2932,
266,
3449,
6456,
87,
6,
738,
1267,
16,
1408,
3719,
327,
852,
12,
701,
16,
283,
18,
4939,
12,
86,
8314,
87,
15,
2187,
3569,
3719,
309,
3569,
480,
1408,
469,
5378,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'OC':(()),
|
'OC':(None,),
|
def __str__(self): result = [str(self.ruleid)] result.append(self.key_list('NAME',self.names,quoted=1)) result.append(self.key_attr('DESC',self.desc,quoted=1)) result.append({0:'',1:' OBSOLETE'}[self.obsolete]) result.append(self.key_attr('FORM',self.form,quoted=0)) result.append(self.key_list('SUP',self.sup,sep=' $ ')) return '( %s )' % ''.join(result)
|
c72dca7955a21f0514dbdfa740ea8df04bf75f44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4610/c72dca7955a21f0514dbdfa740ea8df04bf75f44/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
563,
273,
306,
701,
12,
2890,
18,
5345,
350,
25887,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
1985,
2187,
2890,
18,
1973,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
10964,
2187,
2890,
18,
5569,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12590,
20,
2497,
2187,
21,
2497,
9730,
3584,
4311,
11,
20294,
2890,
18,
10992,
19513,
5717,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
4983,
2187,
2890,
18,
687,
16,
15179,
33,
20,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
13272,
2187,
2890,
18,
2859,
16,
10814,
2218,
271,
296,
3719,
327,
7747,
738,
87,
262,
11,
738,
875,
18,
5701,
12,
2088,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
563,
273,
306,
701,
12,
2890,
18,
5345,
350,
25887,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
1985,
2187,
2890,
18,
1973,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
10964,
2187,
2890,
18,
5569,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12590,
20,
2497,
2187,
21,
2497,
9730,
3584,
4311,
11,
20294,
2890,
18,
10992,
19513,
5717,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
4983,
2187,
2890,
18,
687,
16,
15179,
33,
20,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
13272,
2187,
2890,
18,
2859,
16,
10814,
2218,
271,
296,
3719,
327,
7747,
2
] |
ori t1, t1, (1 << 9)
|
limm t5, (1 << 9) or t1, t1, t5
|
def macroop LTR_R
|
eec6bfaa9de23b075762a62e57e46c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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
511,
4349,
67,
54,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP, HOST, PORT)
|
self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP, HOST, PORT, 'localhost', 3)
|
def testFailingHELO(self): self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP, HOST, PORT)
|
221b34d59e4109e6912d6d0a112231b29655742d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/221b34d59e4109e6912d6d0a112231b29655742d/test_smtplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3754,
310,
3900,
1502,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
87,
1010,
6673,
18,
55,
14636,
5215,
668,
16,
272,
1010,
6673,
18,
55,
14636,
16,
21425,
16,
20987,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.updating = True self.package.setText(_("Package list update")) self.ipkg.startCmd(IpkgComponent.CMD_UPDATE)
|
self.updating = False
|
def __init__(self, session, args = None): Screen.__init__(self, session)
|
0fe25bffe34c9a5fd50528d5ff2eb576b149163b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/0fe25bffe34c9a5fd50528d5ff2eb576b149163b/plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
833,
273,
599,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
833,
273,
599,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
from PyQt4.QtGui import QDialog, QStringListModel, QListView, QSplitter
|
from PyQt4.QtGui import QDialog, QStringListModel, QListView, QSplitter, QValidator
|
def handle(self, info=None): """handling the exception: show backtrace in browser""" cgitb.Hook.handle(self, info) webbrowser.open(self.tmpFileName)
|
93bf41dcf49cae215afcd24ea1052237ec6a25e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/93bf41dcf49cae215afcd24ea1052237ec6a25e0/playfield.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
225,
1123,
33,
7036,
4672,
3536,
26822,
326,
1520,
30,
2405,
13902,
316,
4748,
8395,
276,
6845,
70,
18,
5394,
18,
4110,
12,
2890,
16,
1123,
13,
3311,
11213,
18,
3190,
12,
2890,
18,
5645,
4771,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
225,
1123,
33,
7036,
4672,
3536,
26822,
326,
1520,
30,
2405,
13902,
316,
4748,
8395,
276,
6845,
70,
18,
5394,
18,
4110,
12,
2890,
16,
1123,
13,
3311,
11213,
18,
3190,
12,
2890,
18,
5645,
4771,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
allmatchingseries = self.config['tvdb_api']._getSeries(self.config['series_name'])
|
try: allmatchingseries = self.config['tvdb_api']._getSeries(self.config['series_name']) except Exception: sys.stderr.write(u"\nErrors while trying to contact thetvbd.com for Series (%s)\ntherefore a file rename is not possible.\n\n" % self.config['series_name']) return False
|
def returnFilename(self): """Return a single file name (excluding file extension and directory), limited by the current variables (sid, season name, season number ... etc). Typically used when writing a meta file or naming/renaming a video file after a TV show recording. return False and out put an error if there not either a series id (SID) or series name return False and out put an error if there proper episode information (numbers or name) return False if the option (-MGF) used and there is not exact TV series name match return a specific episode filename """ sid=self.config['sid'] series_name=self.config['series_name'] season_num=self.config['season_num'] episode_num=self.config['episode_num'] episode_name=self.config['episode_name']
|
881a9111c0613ff73ff321ac94e0e0ed204b9de1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/881a9111c0613ff73ff321ac94e0e0ed204b9de1/jamu.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
5359,
12,
2890,
4672,
3536,
990,
279,
2202,
585,
508,
261,
338,
18596,
585,
2710,
471,
1867,
3631,
13594,
635,
326,
783,
3152,
261,
7453,
16,
15874,
508,
16,
15874,
1300,
1372,
5527,
2934,
30195,
1399,
1347,
7410,
279,
2191,
585,
578,
14634,
19,
1187,
7772,
279,
6191,
585,
1839,
279,
399,
58,
2405,
14949,
18,
327,
1083,
471,
596,
1378,
392,
555,
309,
1915,
486,
3344,
279,
4166,
612,
261,
30287,
13,
578,
4166,
508,
327,
1083,
471,
596,
1378,
392,
555,
309,
1915,
5338,
17054,
1779,
261,
13851,
578,
508,
13,
327,
1083,
309,
326,
1456,
24927,
49,
43,
42,
13,
1399,
471,
1915,
353,
486,
5565,
399,
58,
4166,
508,
845,
327,
279,
2923,
17054,
1544,
3536,
7348,
33,
2890,
18,
1425,
3292,
7453,
3546,
4166,
67,
529,
33,
2890,
18,
1425,
3292,
10222,
67,
529,
3546,
15874,
67,
2107,
33,
2890,
18,
1425,
3292,
30321,
67,
2107,
3546,
17054,
67,
2107,
33,
2890,
18,
1425,
3292,
29687,
67,
2107,
3546,
17054,
67,
529,
33,
2890,
18,
1425,
3292,
29687,
67,
529,
3546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
2191,
585,
578,
14634,
19,
1187,
7772,
279,
6191,
585,
1839,
279,
399,
58,
2405,
14949,
18,
327,
1083,
471,
596,
1378,
392,
555,
309,
1915,
486,
3344,
279,
4166,
612,
261,
30287,
13,
578,
4166,
508,
327,
1083,
471,
596,
1378,
392,
555,
309,
1915,
5338,
17054,
1779,
261,
13851,
578,
508,
13,
327,
1083,
309,
326,
1456,
24927,
49,
43,
42,
13,
1399,
471,
1915,
353,
486,
5565,
399,
58,
4166,
508,
845,
327,
279,
2923,
2
] |
if errors != []:
|
if len([e for e in errors if e.is_fatal()]) > 0:
|
def parse(str, errors = None, warnings = None): """ Return a DOM tree encoding the contents of an epytext string. Any errors or warnings generated during parsing will be stored in the C{errors} and C{warnings} parameters. @param str: The epytext string to parse. @type str: C{string} @param errors: A list where any errors generated during parsing will be stored. If no list is specified, then errors will generate exceptions. @type errors: C{list} of L{ParseError} @param warnings: A list where any warnings generated during parsing will be stored. If no list is specified, then warnings will be silently ignored. @type warnings: C{list} of L{ParseError} @return: a DOM tree encoding the contents of an epytext string. @rtype: L{xml.dom.minidom.Document} @raise ParseError: If C{errors} is C{None} and an error is encountered while parsing. @see: L{xml.dom.minidom.Document} """ # Initialize warning and error lists. if warnings == None: warnings = [] if errors == None: errors = [] raise_on_error = 1 else: raise_on_error = 0 # Preprocess the string. str = re.sub('\015\012', '\012', str) str = string.expandtabs(str) # Tokenize the input string. tokens = _tokenize(str, warnings, errors) # Have we encountered a field yet? encountered_field = 0 # Create an XML document to hold the epytext. doc = Document() # Maintain two parallel stacks: one contains DOM elements, and # gives the ancestors of the current block. The other contains # indentation values, and gives the indentation of the # corresponding DOM elements. An indentation of "None" reflects # an unknown indentation. However, the indentation must be # greater than, or greater than or equal to, the indentation of # the prior element (depending on what type of DOM element it # corresponds to). No 2 consecutive indent_stack values will be # ever be "None." Use initial dummy elements in the stack, so we # don't have to worry about bounds checking. stack = [None, doc.createElement('epytext')] indent_stack = [-1, None] for token in tokens: # Uncomment these for debugging: #print ''.join(['%11s' % (t and t.tagName) for t in stack]),':',token.tag #print ''.join(['%11s' % i for i in indent_stack]),':',token.indent # Pop any completed blocks off the stack. _pop_completed_blocks(token, stack, indent_stack) # If Token has type PARA, colorize and add the new paragraph if token.tag == Token.PARA: _add_para(doc, token, stack, indent_stack, errors, warnings) # If Token has type HEADING, add the new section elif token.tag == Token.HEADING: _add_section(doc, token, stack, indent_stack, errors, warnings) # If Token has type LBLOCK, add the new literal block elif token.tag == Token.LBLOCK: stack[-1].appendChild(token.to_dom(doc)) # If Token has type DTBLOCK, add the new doctest block elif token.tag == Token.DTBLOCK: stack[-1].appendChild(token.to_dom(doc)) # If Token has type BULLET, add the new list/list item/field elif token.tag == Token.BULLET: _add_list(doc, token, stack, indent_stack, errors, warnings) else: assert 0, 'Unknown token type: '+token.tag # Check if the DOM element we just added was a field.. if stack[-1].tagName == 'field': encountered_field = 1 elif encountered_field == 1: if len(stack) <= 3: estr = ("Fields must be the final elements in an "+ "epytext string.") errors.append(StructuringError(estr, token)) # If there was an error, then signal it! if errors != []: if raise_on_error: raise errors[0] else: return None # Return the top-level epytext DOM element. doc.appendChild(stack[1]) return doc
|
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
701,
16,
1334,
273,
599,
16,
5599,
273,
599,
4672,
3536,
2000,
279,
4703,
2151,
2688,
326,
2939,
434,
392,
425,
2074,
955,
533,
18,
5502,
1334,
578,
5599,
4374,
4982,
5811,
903,
506,
4041,
316,
326,
385,
95,
4324,
97,
471,
385,
95,
12103,
97,
1472,
18,
225,
632,
891,
609,
30,
1021,
425,
2074,
955,
533,
358,
1109,
18,
632,
723,
609,
30,
385,
95,
1080,
97,
225,
632,
891,
1334,
30,
432,
666,
1625,
1281,
1334,
4374,
4982,
5811,
903,
506,
4041,
18,
225,
971,
1158,
666,
353,
1269,
16,
1508,
1334,
903,
2103,
4798,
18,
632,
723,
1334,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
225,
632,
891,
5599,
30,
432,
666,
1625,
1281,
5599,
4374,
4982,
5811,
903,
506,
4041,
18,
225,
971,
1158,
666,
353,
1269,
16,
1508,
5599,
903,
506,
22274,
5455,
18,
632,
723,
5599,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
225,
632,
2463,
30,
279,
4703,
2151,
2688,
326,
2939,
434,
392,
425,
2074,
955,
533,
18,
632,
86,
723,
30,
511,
95,
2902,
18,
9859,
18,
1154,
350,
362,
18,
2519,
97,
225,
632,
11628,
17372,
30,
971,
385,
95,
4324,
97,
353,
385,
95,
7036,
97,
471,
392,
555,
353,
9919,
1323,
5811,
18,
225,
632,
5946,
30,
511,
95,
2902,
18,
9859,
18,
1154,
350,
362,
18,
2519,
97,
3536,
468,
9190,
3436,
471,
555,
6035,
18,
309,
5599,
422,
599,
30,
5599,
273,
5378,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
701,
16,
1334,
273,
599,
16,
5599,
273,
599,
4672,
3536,
2000,
279,
4703,
2151,
2688,
326,
2939,
434,
392,
425,
2074,
955,
533,
18,
5502,
1334,
578,
5599,
4374,
4982,
5811,
903,
506,
4041,
316,
326,
385,
95,
4324,
97,
471,
385,
95,
12103,
97,
1472,
18,
225,
632,
891,
609,
30,
1021,
425,
2074,
955,
533,
358,
1109,
18,
632,
723,
609,
30,
385,
95,
1080,
97,
225,
632,
891,
1334,
30,
432,
666,
1625,
1281,
1334,
4374,
4982,
5811,
903,
506,
4041,
18,
225,
971,
1158,
666,
353,
1269,
16,
1508,
1334,
903,
2103,
4798,
18,
632,
723,
1334,
30,
385,
95,
1098,
97,
434,
511,
95,
21004,
97,
225,
632,
891,
5599,
2
] |
def restoreMapList(self, list): self.write(('mapList.clear',)) for l in list: self.write(('mapList.append', l)) self.write(('mapList.save',))
|
def restoreMapList(self, list): self.write(('mapList.clear',)) for l in list: self.write(('mapList.append', l)) self.write(('mapList.save',))
|
1b468cfdf08d399f830fcbb1e4c4adae994cbac8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/1b468cfdf08d399f830fcbb1e4c4adae994cbac8/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
hider.setWidgets([box6, box7])
|
box3.syncControls()
|
def __init__(self,parent=None, signalManager = None, name = "Linear Projection", graphClass = None): OWVisWidget.__init__(self, parent, signalManager, name, TRUE)
|
cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b/OWLinProj.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
15982,
21288,
3113,
2667,
797,
273,
599,
4672,
18233,
3282,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
508,
16,
5383,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
15982,
21288,
3113,
2667,
797,
273,
599,
4672,
18233,
3282,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
508,
16,
5383,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else: rev, path = chgset, None reponame = rm.get_default_repository(formatter.context) repos = rm.get_repository(reponame, authname)
|
if path == '/': path = None
|
def _format_changeset_link(self, formatter, ns, chgset, label, fullmatch=None): intertrac = formatter.shorthand_intertrac_helper(ns, chgset, label, fullmatch) if intertrac: return intertrac
|
3a32e2f48232fdd756bcbee44b126be6658a54c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/3a32e2f48232fdd756bcbee44b126be6658a54c1/changeset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
67,
6329,
278,
67,
1232,
12,
2890,
16,
4453,
16,
3153,
16,
462,
75,
542,
16,
1433,
16,
1983,
1916,
33,
7036,
4672,
1554,
313,
1077,
273,
4453,
18,
674,
15830,
67,
2761,
313,
1077,
67,
4759,
12,
2387,
16,
462,
75,
542,
16,
1433,
16,
1983,
1916,
13,
309,
1554,
313,
1077,
30,
327,
1554,
313,
1077,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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16,
1983,
1916,
33,
7036,
4672,
1554,
313,
1077,
273,
4453,
18,
674,
15830,
67,
2761,
313,
1077,
67,
4759,
12,
2387,
16,
462,
75,
542,
16,
1433,
16,
1983,
1916,
13,
309,
1554,
313,
1077,
30,
327,
1554,
313,
1077,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""
|
"""
|
def getParameters(self): """ Created: 15.04.2006, KP Description: Return the list of parameters needed for configuring this GUI """ return [["Minimum object size (in pixels)", ("Threshold", )]]
|
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10028,
12,
2890,
4672,
3536,
12953,
30,
4711,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
2000,
326,
666,
434,
1472,
3577,
364,
642,
4017,
333,
10978,
3536,
327,
306,
9614,
13042,
733,
963,
261,
267,
8948,
2225,
16,
7566,
7614,
3113,
262,
13563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10028,
12,
2890,
4672,
3536,
12953,
30,
4711,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
2000,
326,
666,
434,
1472,
3577,
364,
642,
4017,
333,
10978,
3536,
327,
306,
9614,
13042,
733,
963,
261,
267,
8948,
2225,
16,
7566,
7614,
3113,
262,
13563,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, type = ETH_P_IP, filter=None):
|
def __init__(self, type = ETH_P_IP, filter=None, promisc=None, iface=None):
|
def __init__(self, type = ETH_P_IP, filter=None): self.type = type self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type)) self.ins.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, 2**30) if filter is not None: attach_filter(self.ins, filter) self.outs = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
|
ea674572065aeef03a6af7f9dcde6c13656862d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/ea674572065aeef03a6af7f9dcde6c13656862d2/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
273,
512,
2455,
67,
52,
67,
2579,
16,
1034,
33,
7036,
16,
3012,
291,
71,
33,
7036,
16,
9751,
33,
7036,
4672,
365,
18,
723,
273,
618,
365,
18,
2679,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
12231,
1584,
16,
2987,
18,
3584,
3507,
67,
10821,
16,
2987,
18,
647,
7008,
12,
723,
3719,
365,
18,
2679,
18,
4424,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
11529,
58,
3000,
42,
16,
576,
636,
5082,
13,
309,
1034,
353,
486,
599,
30,
3306,
67,
2188,
12,
2890,
18,
2679,
16,
1034,
13,
365,
18,
20125,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
12231,
1584,
16,
2987,
18,
3584,
3507,
67,
10821,
16,
2987,
18,
647,
7008,
12,
723,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
273,
512,
2455,
67,
52,
67,
2579,
16,
1034,
33,
7036,
16,
3012,
291,
71,
33,
7036,
16,
9751,
33,
7036,
4672,
365,
18,
723,
273,
618,
365,
18,
2679,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
12231,
1584,
16,
2987,
18,
3584,
3507,
67,
10821,
16,
2987,
18,
647,
7008,
12,
723,
3719,
365,
18,
2679,
18,
4424,
27844,
12,
7814,
18,
19815,
67,
25699,
16,
2987,
18,
3584,
67,
11529,
58,
3000,
42,
16,
576,
636,
5082,
13,
309,
1034,
353,
486,
599,
30,
3306,
67,
2188,
12,
2890,
18,
2679,
16,
1034,
13,
365,
18,
20125,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
12231,
2
] |
self.components.append(Variator(self.gcomprisBoard.canvas, self.rootitem,
|
self.components.append(Rheostat(self.gcomprisBoard.canvas, self.rootitem,
|
def create_components(self):
|
a7fd9b10536f478ff50f802a77f6b1aeb3b67be0 /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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
8119,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (1, "%s %s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], (called_from and "%s %s" % (CFG_WEBACCESS_MSGS[0] % quote(user_info['uri']), CFG_WEBACCESS_MSGS[1]) or ""), make_apache_message(name_action, arguments, user_info.get('referer', None))))
|
return (1, "%s %s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], (called_from and "%s %s" % (CFG_WEBACCESS_MSGS[0] % quote(user_info['uri']), CFG_WEBACCESS_MSGS[1]) or ""), make_apache_message(name_action, arguments, user_info['uri'])))
|
def acc_authorize_action(req, name_action, verbose=0, check_only_uid_p=False, **arguments): """Check if user is allowed to perform action with given list of arguments. Return (0, message) if authentication succeeds, (error code, error message) if it fails. The arguments are as follows: req - could be either one of these three things: id_user of the current user user_info dictionary built against the user details req mod_python request object name_action - the name of the action arguments - dictionary with keyword=value pairs created automatically by python on the extra arguments. these depend on the given action.
|
65ea7094ab75e683f85f6867dca65a9d596afbcc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/65ea7094ab75e683f85f6867dca65a9d596afbcc/access_control_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4078,
67,
22488,
67,
1128,
12,
3658,
16,
508,
67,
1128,
16,
3988,
33,
20,
16,
866,
67,
3700,
67,
1911,
67,
84,
33,
8381,
16,
2826,
7099,
4672,
3536,
1564,
309,
729,
353,
2935,
358,
3073,
1301,
598,
864,
666,
434,
1775,
18,
2000,
261,
20,
16,
883,
13,
309,
5107,
21933,
16,
261,
1636,
981,
16,
555,
883,
13,
309,
518,
6684,
18,
225,
1021,
1775,
854,
487,
13040,
30,
225,
1111,
300,
3377,
506,
3344,
1245,
434,
4259,
8925,
9198,
30,
612,
67,
1355,
434,
326,
783,
729,
729,
67,
1376,
3880,
6650,
5314,
326,
729,
3189,
1111,
681,
67,
8103,
590,
733,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4078,
67,
22488,
67,
1128,
12,
3658,
16,
508,
67,
1128,
16,
3988,
33,
20,
16,
866,
67,
3700,
67,
1911,
67,
84,
33,
8381,
16,
2826,
7099,
4672,
3536,
1564,
309,
729,
353,
2935,
358,
3073,
1301,
598,
864,
666,
434,
1775,
18,
2000,
261,
20,
16,
883,
13,
309,
5107,
21933,
16,
261,
1636,
981,
16,
555,
883,
13,
309,
518,
6684,
18,
225,
1021,
1775,
854,
487,
13040,
30,
225,
1111,
300,
3377,
506,
3344,
1245,
434,
4259,
8925,
9198,
30,
612,
67,
1355,
434,
326,
783,
729,
729,
67,
1376,
3880,
6650,
5314,
326,
729,
3189,
1111,
681,
67,
8103,
590,
733,
225,
508,
67,
1128,
300,
326,
508,
434,
326,
1301,
225,
1775,
2
] |
keymap = {'channel': 'feed', 'items': 'entries', 'guid': 'id', 'date': 'updated', 'date_parsed': 'updated_parsed', 'description': ['subtitle', 'summary'], 'url': ['href'], 'modified': 'updated', 'modified_parsed': 'updated_parsed', 'issued': 'published', 'issued_parsed': 'published_parsed', 'copyright': 'rights', 'copyright_detail': 'rights_detail', 'tagline': 'subtitle', 'tagline_detail': 'subtitle_detail'}
|
def __getitem__(self, key): keymap = {'channel': 'feed', 'items': 'entries', 'guid': 'id', 'date': 'updated', 'date_parsed': 'updated_parsed', 'description': ['subtitle', 'summary'], 'url': ['href'], 'modified': 'updated', 'modified_parsed': 'updated_parsed', 'issued': 'published', 'issued_parsed': 'published_parsed', 'copyright': 'rights', 'copyright_detail': 'rights_detail', 'tagline': 'subtitle', 'tagline_detail': 'subtitle_detail'} if key == 'category': return UserDict.__getitem__(self, 'tags')[0]['term'] if key == 'categories': return [(tag['scheme'], tag['term']) for tag in UserDict.__getitem__(self, 'tags')] realkey = keymap.get(key, key) if type(realkey) == types.ListType: for k in realkey: if UserDict.has_key(self, k): return UserDict.__getitem__(self, k) if UserDict.has_key(self, key): return UserDict.__getitem__(self, key) return UserDict.__getitem__(self, realkey)
|
50cbe5fb44dbff087e8cca95d332bb7b7cc15747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/50cbe5fb44dbff087e8cca95d332bb7b7cc15747/feedparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
309,
498,
422,
296,
4743,
4278,
327,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
296,
4156,
6134,
63,
20,
23962,
6408,
3546,
309,
498,
422,
296,
8995,
4278,
327,
306,
12,
2692,
3292,
9068,
17337,
1047,
3292,
6408,
19486,
364,
1047,
316,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
296,
4156,
6134,
65,
2863,
856,
273,
498,
1458,
18,
588,
12,
856,
16,
498,
13,
309,
618,
12,
7688,
856,
13,
422,
1953,
18,
19366,
30,
364,
417,
316,
2863,
856,
30,
309,
2177,
5014,
18,
5332,
67,
856,
12,
2890,
16,
417,
4672,
327,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
417,
13,
309,
2177,
5014,
18,
5332,
67,
856,
12,
2890,
16,
498,
4672,
327,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
498,
13,
327,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
2863,
856,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20,
23962,
6408,
3546,
309,
498,
422,
296,
8995,
4278,
327,
306,
12,
2692,
3292,
9068,
17337,
1047,
3292,
6408,
19486,
364,
1047,
316,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
296,
4156,
6134,
65,
2863,
856,
273,
498,
1458,
18,
588,
12,
856,
16,
498,
13,
309,
618,
12,
7688,
856,
13,
422,
1953,
18,
19366,
30,
364,
417,
316,
2863,
856,
30,
309,
2177,
5014,
18,
5332,
67,
856,
12,
2890,
16,
417,
4672,
327,
2177,
5014,
16186,
31571,
972,
12,
2890,
16,
417,
13,
309,
2177,
5014,
2
] |
|
help="URL of DOM Inspector repository to pull from (default: use hg default in mozilla/extensions/inspector/.hg/hgrc; or if that file doesn't exist, use \"" + DEFAULT_INSPECTOR_REPO + "\".)")
|
help="URL of DOM Inspector repository to pull from (default: use hg default in mozilla/extensions/inspector/.hg/hgrc; or if that file doesn't exist, use \"" + DEFAULTS['INSPECTOR_REPO'] + "\".)")
|
def check_retries_option(option, opt_str, value, parser): if value < 0: raise OptionValueError("%s option value needs to be positive (not '%d')" % (opt_str, value)) setattr(parser.values, option.dest, value)
|
bb77714db9931969ccbda06021d80525b7562c7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/bb77714db9931969ccbda06021d80525b7562c7a/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
15215,
67,
3482,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
309,
460,
411,
374,
30,
1002,
2698,
23610,
27188,
87,
1456,
460,
4260,
358,
506,
6895,
261,
902,
1995,
72,
23291,
738,
261,
3838,
67,
701,
16,
460,
3719,
9241,
12,
4288,
18,
2372,
16,
1456,
18,
10488,
16,
460,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
15215,
67,
3482,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
309,
460,
411,
374,
30,
1002,
2698,
23610,
27188,
87,
1456,
460,
4260,
358,
506,
6895,
261,
902,
1995,
72,
23291,
738,
261,
3838,
67,
701,
16,
460,
3719,
9241,
12,
4288,
18,
2372,
16,
1456,
18,
10488,
16,
460,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'%s failed, found error pattern: ' '"%s"' % (command, regexp), result)
|
'%s failed, found error pattern: "%s"' % (command, regexp), result)
|
def run_grep(self, command, timeout=30, ignore_status=False, stdout_ok_regexp=None, stdout_err_regexp=None, stderr_ok_regexp=None, stderr_err_regexp=None, connect_timeout=30): """ Run a command on the remote host and look for regexp in stdout or stderr to determine if the command was successul or not.
|
5c04916cd0e1aca2cffa2895da52eaba47458edb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/5c04916cd0e1aca2cffa2895da52eaba47458edb/ssh_host.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
11556,
84,
12,
2890,
16,
1296,
16,
2021,
33,
5082,
16,
2305,
67,
2327,
33,
8381,
16,
3909,
67,
601,
67,
17745,
33,
7036,
16,
3909,
67,
370,
67,
17745,
33,
7036,
16,
4514,
67,
601,
67,
17745,
33,
7036,
16,
4514,
67,
370,
67,
17745,
33,
7036,
16,
3077,
67,
4538,
33,
5082,
4672,
3536,
1939,
279,
1296,
603,
326,
2632,
1479,
471,
2324,
364,
7195,
316,
3909,
578,
4514,
358,
4199,
309,
326,
1296,
1703,
2216,
332,
578,
486,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
11556,
84,
12,
2890,
16,
1296,
16,
2021,
33,
5082,
16,
2305,
67,
2327,
33,
8381,
16,
3909,
67,
601,
67,
17745,
33,
7036,
16,
3909,
67,
370,
67,
17745,
33,
7036,
16,
4514,
67,
601,
67,
17745,
33,
7036,
16,
4514,
67,
370,
67,
17745,
33,
7036,
16,
3077,
67,
4538,
33,
5082,
4672,
3536,
1939,
279,
1296,
603,
326,
2632,
1479,
471,
2324,
364,
7195,
316,
3909,
578,
4514,
358,
4199,
309,
326,
1296,
1703,
2216,
332,
578,
486,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
udays = -1
|
udays = 10000
|
def split(self,job):
|
42396e8a8734fd697e4bd46d75a7d260f5b13284 /local1/tlutelli/issta_data/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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
orig_request=request, extra_args=args,
|
orig_request=rq.request, extra_args=rq.args,
|
def ExpireRequests(self): """Delete all the expired requests.
|
71e114da4ce07bcbe76516069b621ac459da3d69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/71e114da4ce07bcbe76516069b621ac459da3d69/client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7784,
577,
6421,
12,
2890,
4672,
3536,
2613,
777,
326,
7708,
3285,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7784,
577,
6421,
12,
2890,
4672,
3536,
2613,
777,
326,
7708,
3285,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
notebook.append_page(windowbutton_box, gtk.Label(_("Window Button")))
|
notebook.append_page(windowbutton_box, gtk.Label(_("Window Item")))
|
def __init__ (self):
|
25580906cd313a0ce8d618137f7433f0450896b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/25580906cd313a0ce8d618137f7433f0450896b2/dbx_preference.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EXAMPLES: These computations use pseudo-random numbers, so we set
|
EXAMPLES: These computations use pseudo-random numbers, so we set
|
def lower_central_series(self): """ Return the lower central series of this group as a list of permutation groups.
|
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,
2612,
67,
71,
12839,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
2612,
18291,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2612,
67,
71,
12839,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
2612,
18291,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
build = None
|
def get_build_for_slave(self, name, properties): """Check whether one of the pending builds can be built by the build slave. :param name: the name of the slave :type name: `basestring` :param properties: the slave configuration :type properties: `dict` :return: the allocated build, or `None` if no build was found :rtype: `Build` """ self.log.debug('Checking for pending builds...')
|
c94787f5d7c70e1690f0a3dddd5ef573c2d72b7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/c94787f5d7c70e1690f0a3dddd5ef573c2d72b7b/queue.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3510,
67,
1884,
67,
27352,
12,
2890,
16,
508,
16,
1790,
4672,
3536,
1564,
2856,
1245,
434,
326,
4634,
10736,
848,
506,
6650,
635,
326,
1361,
11735,
18,
225,
294,
891,
508,
30,
326,
508,
434,
326,
11735,
294,
723,
508,
30,
1375,
18602,
371,
68,
294,
891,
1790,
30,
326,
11735,
1664,
294,
723,
1790,
30,
1375,
1576,
68,
294,
2463,
30,
326,
11977,
1361,
16,
578,
1375,
7036,
68,
309,
1158,
1361,
1703,
1392,
294,
86,
723,
30,
1375,
3116,
68,
3536,
365,
18,
1330,
18,
4148,
2668,
14294,
364,
4634,
10736,
7821,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3510,
67,
1884,
67,
27352,
12,
2890,
16,
508,
16,
1790,
4672,
3536,
1564,
2856,
1245,
434,
326,
4634,
10736,
848,
506,
6650,
635,
326,
1361,
11735,
18,
225,
294,
891,
508,
30,
326,
508,
434,
326,
11735,
294,
723,
508,
30,
1375,
18602,
371,
68,
294,
891,
1790,
30,
326,
11735,
1664,
294,
723,
1790,
30,
1375,
1576,
68,
294,
2463,
30,
326,
11977,
1361,
16,
578,
1375,
7036,
68,
309,
1158,
1361,
1703,
1392,
294,
86,
723,
30,
1375,
3116,
68,
3536,
365,
18,
1330,
18,
4148,
2668,
14294,
364,
4634,
10736,
7821,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
'stopcomm':emulcomm.stopcomm,
|
'stopcomm':emulcomm.stopcomm,
|
def nonSafe_fork(): val = __orig_fork() if val == 0 and safe._builtin_globals_r != None: safe._builtin_restore() return val
|
67fd8a8a159df939f3417ec6b61891f1231d0db8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/67fd8a8a159df939f3417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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
9890,
67,
23335,
13332,
1244,
273,
1001,
4949,
67,
23335,
1435,
309,
1244,
422,
374,
471,
4183,
6315,
24553,
67,
16227,
67,
86,
480,
599,
30,
4183,
6315,
24553,
67,
13991,
1435,
327,
1244,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
room = self.current_room()
|
def command_topic(self, args): """ /topic [new topic] """ subject = ' '.join(args) room = self.current_room() if not room.joined or room.name == "Info": return self.muc.change_subject(room.name, subject)
|
75c058dafc8dc13883168b413d22b31de1638148 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/75c058dafc8dc13883168b413d22b31de1638148/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
10476,
12,
2890,
16,
833,
4672,
3536,
342,
10476,
306,
2704,
3958,
65,
3536,
3221,
273,
296,
2418,
5701,
12,
1968,
13,
309,
486,
7725,
18,
5701,
329,
578,
7725,
18,
529,
422,
315,
966,
6877,
327,
365,
18,
81,
5286,
18,
3427,
67,
7857,
12,
13924,
18,
529,
16,
3221,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
10476,
12,
2890,
16,
833,
4672,
3536,
342,
10476,
306,
2704,
3958,
65,
3536,
3221,
273,
296,
2418,
5701,
12,
1968,
13,
309,
486,
7725,
18,
5701,
329,
578,
7725,
18,
529,
422,
315,
966,
6877,
327,
365,
18,
81,
5286,
18,
3427,
67,
7857,
12,
13924,
18,
529,
16,
3221,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
data = decoder._decode_string(node.attributes[attr])
|
data = decoder._decode_string(node.attributes[attr].nodeValue)
|
def _decode_into_dict(self, node): diction = {None:[]} for child in node.childNodes: if child.nodeType is child.TEXT_NODE or child.nodeType == child.CDATA_SECTION_NODE: diction[None].append(decoder._decode_string(child.data)) elif node.nodeType is child.ELEMENT_NODE: data = self._decode_into_dict(child) self._add_to_dict(diction, child.tagName, data) else: #TODO !! pass for attr in node.attributes.keys(): data = decoder._decode_string(node.attributes[attr]) self._add_to_dict(diction, attr, data) if len(diction[None]) == 0: del diction[None] return self._reduce_diction(diction)
|
aa701f9cc79648fdd166a7c1748b9a9fdf829398 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10801/aa701f9cc79648fdd166a7c1748b9a9fdf829398/tools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
67,
18591,
67,
1576,
12,
2890,
16,
756,
4672,
302,
2228,
273,
288,
7036,
30,
8526,
97,
364,
1151,
316,
756,
18,
3624,
3205,
30,
309,
1151,
18,
2159,
559,
353,
1151,
18,
5151,
67,
8744,
578,
1151,
18,
2159,
559,
422,
1151,
18,
18375,
67,
19082,
67,
8744,
30,
302,
2228,
63,
7036,
8009,
6923,
12,
21070,
6315,
3922,
67,
1080,
12,
3624,
18,
892,
3719,
1327,
756,
18,
2159,
559,
353,
1151,
18,
10976,
67,
8744,
30,
501,
273,
365,
6315,
3922,
67,
18591,
67,
1576,
12,
3624,
13,
365,
6315,
1289,
67,
869,
67,
1576,
12,
72,
2228,
16,
1151,
18,
2692,
461,
16,
501,
13,
469,
30,
468,
6241,
401,
5,
1342,
364,
1604,
316,
756,
18,
4350,
18,
2452,
13332,
501,
273,
8320,
6315,
3922,
67,
1080,
12,
2159,
18,
4350,
63,
1747,
8009,
2159,
620,
13,
365,
6315,
1289,
67,
869,
67,
1576,
12,
72,
2228,
16,
1604,
16,
501,
13,
309,
562,
12,
72,
2228,
63,
7036,
5717,
422,
374,
30,
1464,
302,
2228,
63,
7036,
65,
327,
365,
6315,
12498,
67,
72,
2228,
12,
72,
2228,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
67,
18591,
67,
1576,
12,
2890,
16,
756,
4672,
302,
2228,
273,
288,
7036,
30,
8526,
97,
364,
1151,
316,
756,
18,
3624,
3205,
30,
309,
1151,
18,
2159,
559,
353,
1151,
18,
5151,
67,
8744,
578,
1151,
18,
2159,
559,
422,
1151,
18,
18375,
67,
19082,
67,
8744,
30,
302,
2228,
63,
7036,
8009,
6923,
12,
21070,
6315,
3922,
67,
1080,
12,
3624,
18,
892,
3719,
1327,
756,
18,
2159,
559,
353,
1151,
18,
10976,
67,
8744,
30,
501,
273,
365,
6315,
3922,
67,
18591,
67,
1576,
12,
3624,
13,
365,
6315,
1289,
67,
869,
67,
1576,
12,
72,
2228,
16,
1151,
18,
2692,
461,
16,
501,
13,
469,
30,
468,
6241,
401,
5,
1342,
2
] |
[255, 0, 0, 0, 0, 0, 0, 32, 223, 255],
|
[255, 0, 0, 0, 0, 0, 0, 31, 223, 255],
|
def test_antialias_bevel(self): antialias = True width = 3 line_cap = kiva.CAP_BUTT line_join = kiva.JOIN_BEVEL gc = self.helper(antialias, width, line_cap, line_join) actual = gc.bmp_array[:,:,0] desired = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 127, 0, 0, 127, 255], [255, 255, 255, 255, 255, 127, 0, 0, 127, 255], [255, 255, 255, 255, 255, 127, 0, 0, 127, 255], [255, 255, 255, 255, 255, 127, 0, 0, 127, 255], [255, 127, 127, 127, 127, 0, 0, 0, 127, 255], [255, 0, 0, 0, 0, 0, 0, 0, 127, 255], [255, 0, 0, 0, 0, 0, 0, 32, 223, 255], [255, 127, 127, 127, 127, 127, 127, 223, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]) assert_arrays_equal(actual, desired)
|
693c25b8cee266233747e042e57a3325b339258d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/693c25b8cee266233747e042e57a3325b339258d/join_stroke_path_test_case.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2196,
941,
12,
2890,
4672,
17841,
649,
1795,
273,
1053,
1835,
273,
890,
980,
67,
5909,
273,
417,
427,
69,
18,
17296,
67,
3000,
1470,
980,
67,
5701,
273,
417,
427,
69,
18,
18800,
67,
5948,
7900,
225,
8859,
273,
365,
18,
4759,
12,
970,
649,
1795,
16,
1835,
16,
980,
67,
5909,
16,
980,
67,
5701,
13,
3214,
273,
8859,
18,
70,
1291,
67,
1126,
10531,
16,
30,
16,
20,
65,
6049,
273,
526,
3816,
63,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
6487,
306,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
12331,
16,
282,
374,
16,
282,
374,
16,
12331,
16,
4561,
6487,
306,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
12331,
16,
282,
374,
16,
282,
374,
16,
12331,
16,
4561,
6487,
306,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
12331,
16,
282,
374,
16,
282,
374,
16,
12331,
16,
4561,
6487,
306,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
12331,
16,
282,
374,
16,
282,
374,
16,
12331,
16,
4561,
6487,
306,
10395,
16,
12331,
16,
12331,
16,
12331,
16,
12331,
16,
282,
374,
16,
282,
374,
16,
282,
374,
16,
12331,
16,
4561,
6487,
306,
10395,
16,
282,
374,
16,
282,
374,
16,
282,
374,
16,
282,
374,
16,
282,
374,
16,
282,
374,
16,
282,
374,
16,
12331,
16,
4561,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2196,
941,
12,
2890,
4672,
17841,
649,
1795,
273,
1053,
1835,
273,
890,
980,
67,
5909,
273,
417,
427,
69,
18,
17296,
67,
3000,
1470,
980,
67,
5701,
273,
417,
427,
69,
18,
18800,
67,
5948,
7900,
225,
8859,
273,
365,
18,
4759,
12,
970,
649,
1795,
16,
1835,
16,
980,
67,
5909,
16,
980,
67,
5701,
13,
3214,
273,
8859,
18,
70,
1291,
67,
1126,
10531,
16,
30,
16,
20,
65,
6049,
273,
526,
3816,
63,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
6487,
306,
10395,
16,
4561,
16,
4561,
16,
4561,
16,
4561,
16,
12331,
16,
282,
374,
2
] |
uri = req.uri if uri == '/': path = [''] else: uri = re_slashes.sub('/', uri) path = uri[1:].split('/') return root._traverse(req, path) except TraversalError:
|
if re_bibdoc_uri.match(req.uri): allowed_methods = ("GET", "POST", "HEAD", "OPTIONS") else: allowed_methods = ("GET", "POST", "OPTIONS") req.allow_methods(allowed_methods) if req.method not in allowed_methods: raise apache.SERVER_RETURN, apache.HTTP_METHOD_NOT_ALLOWED if req.method == 'OPTIONS': req.headers_out['Allow'] = ', '.join(allowed_methods) raise apache.SERVER_RETURN, apache.OK os.environ["HTTP_USER_AGENT"] = req.headers_in.get('User-Agent', '') guest_p = isGuestUser(getUid(req)) if guest_p: cache_control = "public" else: cache_control = "private" req.headers_out['Cache-Control'] = cache_control try: uri = req.uri if uri == '/': path = [''] else: uri = re_slashes.sub('/', uri) path = uri[1:].split('/') return root._traverse(req, path) except TraversalError: return apache.HTTP_NOT_FOUND except apache.SERVER_RETURN: raise except IOError, exc: if 'Write failed, client closed connection' in "%s" % exc: raise else: register_exception(req=req, alert_admin=True) except Exception: register_exception(req=req, alert_admin=True) raise
|
def _handler(req): """ This handler is invoked by mod_python with the apache request."""
|
e246d40ba02e9019cdc9b040122014b1d1a2b1d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e246d40ba02e9019cdc9b040122014b1d1a2b1d3/webinterface_handler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4176,
12,
3658,
4672,
3536,
1220,
1838,
353,
8187,
635,
681,
67,
8103,
598,
326,
12291,
590,
12123,
2,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4176,
12,
3658,
4672,
3536,
1220,
1838,
353,
8187,
635,
681,
67,
8103,
598,
326,
12291,
590,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
users_online = User.objects.filter(id__in = users_cached.keys()) and users_cached or []
|
users_online = users_cached and User.objects.filter(id__in = users_cached.keys()) or []
|
def index(request, full=True): users_cached = cache.get('users_online', {}) users_online = User.objects.filter(id__in = users_cached.keys()) and users_cached or [] guests_cached = cache.get('guests_online', {}) guest_count = len(guests_cached) users_count = len(users_online) #users_total_online = guest_count + users_count cats = {} forums = {} for forum in Forum.objects.all().select_related(): cat = cats.setdefault(forum.category.id, {'cat': forum.category, 'forums': []}) cat['forums'].append(forum) forums[forum.id] = forum cmpdef = lambda a, b: cmp(a['cat'].position, b['cat'].position) cats = sorted(cats.values(), cmpdef) if full: return {'cats': cats, 'posts': Post.objects.count(), 'topics': Topic.objects.count(), 'users': User.objects.count(), 'users_online': users_online, 'online_count': users_count, 'guest_count': guest_count, 'last_user': User.objects.order_by('-date_joined')[0], } else: return {'cats': cats, 'posts': Post.objects.count(), 'topics': Topic.objects.count(), 'users': User.objects.count(), 'users_online': users_online, 'online_count': users_count, 'guest_count': guest_count, 'last_user': User.objects.order_by('-date_joined')[0], }, 'forum/lofi/index.html'
|
885343d571bd6dbb8c5b43a652fe979988cadbd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/885343d571bd6dbb8c5b43a652fe979988cadbd2/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2293,
16,
1983,
33,
5510,
4672,
3677,
67,
7097,
273,
1247,
18,
588,
2668,
5577,
67,
21026,
2187,
2618,
13,
3677,
67,
21026,
273,
3677,
67,
7097,
471,
2177,
18,
6911,
18,
2188,
12,
350,
972,
267,
273,
3677,
67,
7097,
18,
2452,
10756,
578,
5378,
13051,
87,
67,
7097,
273,
1247,
18,
588,
2668,
18908,
87,
67,
21026,
2187,
2618,
13,
13051,
67,
1883,
273,
562,
12,
18908,
87,
67,
7097,
13,
3677,
67,
1883,
273,
562,
12,
5577,
67,
21026,
13,
468,
5577,
67,
4963,
67,
21026,
273,
13051,
67,
1883,
397,
3677,
67,
1883,
27525,
273,
2618,
11283,
87,
273,
2618,
225,
364,
11283,
316,
2457,
379,
18,
6911,
18,
454,
7675,
4025,
67,
9243,
13332,
6573,
273,
27525,
18,
542,
1886,
12,
11725,
18,
4743,
18,
350,
16,
13666,
2574,
4278,
11283,
18,
4743,
16,
296,
11725,
87,
4278,
5378,
6792,
6573,
3292,
11725,
87,
29489,
6923,
12,
11725,
13,
11283,
87,
63,
11725,
18,
350,
65,
273,
11283,
225,
9411,
536,
273,
3195,
279,
16,
324,
30,
9411,
12,
69,
3292,
2574,
29489,
3276,
16,
324,
3292,
2574,
29489,
3276,
13,
27525,
273,
3115,
12,
24750,
18,
2372,
9334,
9411,
536,
13,
309,
1983,
30,
327,
13666,
24750,
4278,
27525,
16,
296,
11660,
4278,
5616,
18,
6911,
18,
1883,
9334,
296,
17905,
4278,
11789,
18,
6911,
18,
1883,
9334,
296,
5577,
4278,
2177,
18,
6911,
18,
1883,
9334,
296,
5577,
67,
21026,
4278,
3677,
67,
21026,
16,
296,
21026,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2293,
16,
1983,
33,
5510,
4672,
3677,
67,
7097,
273,
1247,
18,
588,
2668,
5577,
67,
21026,
2187,
2618,
13,
3677,
67,
21026,
273,
3677,
67,
7097,
471,
2177,
18,
6911,
18,
2188,
12,
350,
972,
267,
273,
3677,
67,
7097,
18,
2452,
10756,
578,
5378,
13051,
87,
67,
7097,
273,
1247,
18,
588,
2668,
18908,
87,
67,
21026,
2187,
2618,
13,
13051,
67,
1883,
273,
562,
12,
18908,
87,
67,
7097,
13,
3677,
67,
1883,
273,
562,
12,
5577,
67,
21026,
13,
468,
5577,
67,
4963,
67,
21026,
273,
13051,
67,
1883,
397,
3677,
67,
1883,
27525,
273,
2618,
11283,
87,
273,
2618,
225,
364,
11283,
316,
2457,
379,
18,
6911,
18,
454,
7675,
4025,
2
] |
l = sum(self.readStats())
|
stats = self.readStats() print "nr_read", stats[0], "nr_write", stats[1] l = sum(stats) print "sum", l, "prev_sum", self.last_stat
|
def runIdle(self): if not self.max_idle_time: return t = time.time()
|
b6b788b0f8da7e1adcde03cebb464da484f48508 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/b6b788b0f8da7e1adcde03cebb464da484f48508/Harddisk.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13834,
12,
2890,
4672,
309,
486,
365,
18,
1896,
67,
20390,
67,
957,
30,
327,
268,
273,
813,
18,
957,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13834,
12,
2890,
4672,
309,
486,
365,
18,
1896,
67,
20390,
67,
957,
30,
327,
268,
273,
813,
18,
957,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
scriptRef=weakref.ref(script) if (scriptTime-_lastScriptTime)<=0.5 and script==lastScriptRef:
|
scriptRef=weakref.ref(script.im_func) if (scriptTime-_lastScriptTime)<=0.5 and script.im_func==lastScriptRef:
|
def executeScript(script,keyPress): """Executes a given script (function) passing it the given keyPress. It also keeps track of the execution of duplicate scripts with in a certain amount of time, and counts how many times this happens. Use L{getLastScriptRepeatCount} to find out this count value. @param script: the function or method that should be executed. The function or method must take an argument of 'keyPress'. @type script: callable. @param keyPress: the key press that activated this script @type keyPress: an NVDA keyPress """ global _lastScriptTime, _lastScriptCount, _lastScriptRef, _isScriptRunning lastScriptRef=_lastScriptRef() if _lastScriptRef else None #We don't allow the same script to be executed from with in itself, but we still should pass the key through if _isScriptRunning and lastScriptRef==script: return sendKey(keyPress) _isScriptRunning=True try: scriptTime=time.time() scriptRef=weakref.ref(script) if (scriptTime-_lastScriptTime)<=0.5 and script==lastScriptRef: _lastScriptCount+=1 else: _lastScriptCount=0 _lastScriptRef=scriptRef _lastScriptTime=scriptTime script(keyPress) finally: _isScriptRunning=False
|
03dd0faa19290339da970a1055812f437292b60a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/03dd0faa19290339da970a1055812f437292b60a/scriptHandler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
3651,
12,
4263,
16,
856,
11840,
4672,
3536,
9763,
279,
864,
2728,
261,
915,
13,
9588,
518,
326,
864,
498,
11840,
18,
2597,
2546,
20948,
3298,
434,
326,
4588,
434,
6751,
8873,
598,
316,
279,
8626,
3844,
434,
813,
16,
471,
6880,
3661,
4906,
4124,
333,
10555,
18,
2672,
511,
95,
588,
3024,
3651,
16750,
1380,
97,
358,
1104,
596,
333,
1056,
460,
18,
632,
891,
2728,
30,
326,
445,
578,
707,
716,
1410,
506,
7120,
18,
1021,
445,
578,
707,
1297,
4862,
392,
1237,
434,
296,
856,
11840,
10332,
632,
723,
2728,
30,
4140,
18,
632,
891,
498,
11840,
30,
326,
498,
11779,
716,
14892,
333,
2728,
632,
723,
498,
11840,
30,
392,
423,
58,
9793,
498,
11840,
3536,
2552,
389,
2722,
3651,
950,
16,
389,
2722,
3651,
1380,
16,
389,
2722,
3651,
1957,
16,
389,
291,
3651,
7051,
1142,
3651,
1957,
33,
67,
2722,
3651,
1957,
1435,
309,
389,
2722,
3651,
1957,
469,
599,
468,
3218,
2727,
1404,
1699,
326,
1967,
2728,
358,
506,
7120,
628,
598,
316,
6174,
16,
1496,
732,
4859,
1410,
1342,
326,
498,
3059,
309,
389,
291,
3651,
7051,
471,
1142,
3651,
1957,
631,
4263,
30,
327,
1366,
653,
12,
856,
11840,
13,
389,
291,
3651,
7051,
33,
5510,
775,
30,
2728,
950,
33,
957,
18,
957,
1435,
2728,
1957,
33,
26008,
1734,
18,
1734,
12,
4263,
18,
381,
67,
644,
13,
309,
261,
4263,
950,
17,
67,
2722,
3651,
950,
13,
32,
33,
20,
18,
25,
471,
2728,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
3651,
12,
4263,
16,
856,
11840,
4672,
3536,
9763,
279,
864,
2728,
261,
915,
13,
9588,
518,
326,
864,
498,
11840,
18,
2597,
2546,
20948,
3298,
434,
326,
4588,
434,
6751,
8873,
598,
316,
279,
8626,
3844,
434,
813,
16,
471,
6880,
3661,
4906,
4124,
333,
10555,
18,
2672,
511,
95,
588,
3024,
3651,
16750,
1380,
97,
358,
1104,
596,
333,
1056,
460,
18,
632,
891,
2728,
30,
326,
445,
578,
707,
716,
1410,
506,
7120,
18,
1021,
445,
578,
707,
1297,
4862,
392,
1237,
434,
296,
856,
11840,
10332,
632,
723,
2728,
30,
4140,
18,
632,
891,
498,
11840,
30,
326,
498,
11779,
716,
14892,
333,
2728,
632,
723,
498,
11840,
30,
392,
423,
58,
9793,
2
] |
role = endmatch.group(suffix)[1:-1]
|
role = endmatch.group('suffix')[1:-1]
|
def interpreted(self, before, after, endmatch, role, position, lineno, escaped, rawsource, text): suffix = self.groups.interpreted_or_phrase_ref.suffix if endmatch.group(suffix): if role: msg = self.reporter.warning('Multiple roles in interpreted ' 'text at line %s.' % lineno) return (before + rawsource, [], after, [msg]) role = endmatch.group(suffix)[1:-1] position = 'suffix' if role: atts = {'role': role, 'position': position} else: atts = {} return before, [nodes.interpreted(rawsource, text, **atts)], after, []
|
6782c922e166489b456fc617b1d5765e9532726e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/6782c922e166489b456fc617b1d5765e9532726e/states.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19898,
12,
2890,
16,
1865,
16,
1839,
16,
679,
1916,
16,
2478,
16,
1754,
16,
7586,
16,
8345,
16,
1831,
3168,
16,
977,
4672,
3758,
273,
365,
18,
4650,
18,
24713,
329,
67,
280,
67,
9429,
67,
1734,
18,
8477,
309,
679,
1916,
18,
1655,
12,
8477,
4672,
309,
2478,
30,
1234,
273,
365,
18,
266,
7988,
18,
8551,
2668,
8438,
4900,
316,
19898,
296,
296,
955,
622,
980,
738,
87,
1093,
738,
7586,
13,
327,
261,
5771,
397,
1831,
3168,
16,
5378,
16,
1839,
16,
306,
3576,
5717,
2478,
273,
679,
1916,
18,
1655,
2668,
8477,
6134,
63,
21,
30,
17,
21,
65,
1754,
273,
296,
8477,
11,
309,
2478,
30,
15687,
273,
13666,
4615,
4278,
2478,
16,
296,
3276,
4278,
1754,
97,
469,
30,
15687,
273,
2618,
327,
1865,
16,
306,
4690,
18,
24713,
329,
12,
1899,
3168,
16,
977,
16,
2826,
270,
3428,
13,
6487,
1839,
16,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19898,
12,
2890,
16,
1865,
16,
1839,
16,
679,
1916,
16,
2478,
16,
1754,
16,
7586,
16,
8345,
16,
1831,
3168,
16,
977,
4672,
3758,
273,
365,
18,
4650,
18,
24713,
329,
67,
280,
67,
9429,
67,
1734,
18,
8477,
309,
679,
1916,
18,
1655,
12,
8477,
4672,
309,
2478,
30,
1234,
273,
365,
18,
266,
7988,
18,
8551,
2668,
8438,
4900,
316,
19898,
296,
296,
955,
622,
980,
738,
87,
1093,
738,
7586,
13,
327,
261,
5771,
397,
1831,
3168,
16,
5378,
16,
1839,
16,
306,
3576,
5717,
2478,
273,
679,
1916,
18,
1655,
2668,
8477,
6134,
63,
21,
30,
17,
21,
65,
1754,
273,
296,
8477,
11,
309,
2478,
30,
15687,
273,
13666,
4615,
4278,
2478,
2
] |
self._init_utils() self.SetClientSize(wxSize(451, 455))
|
self.SetClientSize(wx.Size(485, 455))
|
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(True) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
|
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776,
8914,
43,
16,
508,
2218,
882,
39,
2885,
4666,
40,
23623,
2187,
982,
33,
683,
496,
16,
949,
33,
27226,
2148,
12,
8204,
23,
16,
576,
12416,
3631,
963,
33,
27226,
1225,
12,
24,
6162,
16,
9934,
22,
3631,
2154,
33,
27226,
59,
6856,
55,
67,
21666,
571,
7075,
5280,
67,
2565,
18683,
67,
15066,
571,
7075,
862,
4574,
67,
38,
7954,
16,
2077,
33,
2890,
18,
334,
71,
67,
2649,
13,
365,
18,
694,
1227,
1225,
12,
27226,
18,
1225,
12,
24,
7140,
16,
1059,
2539,
3719,
365,
18,
694,
4965,
3744,
12,
5510,
13,
365,
18,
694,
1225,
13368,
12,
24,
2947,
16,
7409,
16,
300,
21,
16,
300,
21,
13,
365,
18,
8449,
12,
91,
20029,
18307,
13,
27917,
67,
4574,
12,
2890,
16,
365,
18,
1398,
510,
71,
4060,
4619,
5761,
75,
1225,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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666,
40,
23623,
2187,
982,
33,
683,
496,
16,
949,
33,
27226,
2148,
12,
8204,
23,
16,
576,
12416,
3631,
963,
33,
27226,
1225,
12,
24,
6162,
16,
9934,
22,
3631,
2154,
33,
27226,
59,
6856,
55,
67,
21666,
571,
7075,
5280,
67,
2565,
18683,
67,
15066,
571,
7075,
862,
4574,
67,
38,
7954,
16,
2077,
33,
2890,
18,
334,
71,
67,
2649,
13,
365,
18,
694,
1227,
1225,
12,
27226,
18,
1225,
12,
24,
2
] |
def writeinitialdefs(self): self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
def writeinitialdefs(self): self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
9b8b720d39a675b26c7ee02ef1bf901b835b2139 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9b8b720d39a675b26c7ee02ef1bf901b835b2139/mltesupport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
6769,
12537,
12,
2890,
4672,
365,
18,
12537,
768,
18,
2626,
2932,
536,
17634,
1099,
67,
7305,
67,
5572,
12,
92,
4672,
327,
619,
64,
82,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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1045,
6769,
12537,
12,
2890,
4672,
365,
18,
12537,
768,
18,
2626,
2932,
536,
17634,
1099,
67,
7305,
67,
5572,
12,
92,
4672,
327,
619,
64,
82,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def on_row_deleted(self, model, path):
|
def on_row_deleted(self, model, path):
|
def on_row_deleted(self, model, path): parent_path = path[:-1] if len(parent_path) > 0: it = model.get_iter(parent_path) else: it = model.get_iter_root() nrows = model.iter_n_children(it) for i in xrange(path[-1], nrows): self.data2path[parent_path + (i,)] = \ self[parent_path + (i,)][self.data_col]
|
594f1c108ffe3bf5b4c53f58baae8e98bcb5a9b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/594f1c108ffe3bf5b4c53f58baae8e98bcb5a9b3/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
492,
67,
8600,
12,
2890,
16,
938,
16,
589,
4672,
982,
67,
803,
273,
589,
10531,
17,
21,
65,
225,
309,
562,
12,
2938,
67,
803,
13,
405,
374,
30,
518,
273,
938,
18,
588,
67,
2165,
12,
2938,
67,
803,
13,
469,
30,
518,
273,
938,
18,
588,
67,
2165,
67,
3085,
1435,
18871,
273,
938,
18,
2165,
67,
82,
67,
5906,
12,
305,
13,
364,
277,
316,
12314,
12,
803,
18919,
21,
6487,
18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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
492,
67,
8600,
12,
2890,
16,
938,
16,
589,
4672,
982,
67,
803,
273,
589,
10531,
17,
21,
65,
225,
309,
562,
12,
2938,
67,
803,
13,
405,
374,
30,
518,
273,
938,
18,
588,
67,
2165,
12,
2938,
67,
803,
13,
469,
30,
518,
273,
938,
18,
588,
67,
2165,
67,
3085,
1435,
18871,
273,
938,
18,
2165,
67,
82,
67,
5906,
12,
305,
13,
364,
277,
316,
12314,
12,
803,
18919,
21,
6487,
18871,
4672,
365,
18,
892,
22,
803,
63,
2938,
67,
803,
397,
261,
77,
16,
25887,
273,
521,
365,
63,
2938,
67,
803,
397,
261,
77,
16,
13,
6362,
2890,
18,
892,
67,
1293,
65,
225,
2,
-100,
-100,
-100,
-100,
-100
] |
print "New nick already exists!"
|
LOG.debug( "New nick already exists!" )
|
def changeNick(self, oldnick, newnick): try: u = self.users.pop(oldnick) except KeyError: print "Nick doesn't exist" return
|
1a57390c60627da9e810a0212997b3f88d2873a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/1a57390c60627da9e810a0212997b3f88d2873a4/dtella_bridgeserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
29756,
12,
2890,
16,
1592,
17091,
16,
394,
17091,
4672,
775,
30,
582,
273,
365,
18,
5577,
18,
5120,
12,
1673,
17091,
13,
1335,
4999,
30,
1172,
315,
29756,
3302,
1404,
1005,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
29756,
12,
2890,
16,
1592,
17091,
16,
394,
17091,
4672,
775,
30,
582,
273,
365,
18,
5577,
18,
5120,
12,
1673,
17091,
13,
1335,
4999,
30,
1172,
315,
29756,
3302,
1404,
1005,
6,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""Initialize master list menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Save Order')) sortMenu.links.append(Files_SortBy('Status')) MasterList.mainMenu.append(sortMenu) MasterList.itemMenu.append(Master_ChangeTo()) MasterList.itemMenu.append(Master_Disable())
|
"""Initialize master list menus.""" if True: sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Save Order')) sortMenu.links.append(Files_SortBy('Status')) MasterList.mainMenu.append(sortMenu) MasterList.itemMenu.append(Master_ChangeTo()) MasterList.itemMenu.append(Master_Disable())
|
def InitMasterLinks(): """Initialize master list menus.""" #--MasterList: Column Links if True: #--Sort by sortMenu = MenuLink(_("Sort by")) sortMenu.links.append(Mods_EsmsFirst()) sortMenu.links.append(SeparatorLink()) sortMenu.links.append(Files_SortBy('File')) sortMenu.links.append(Files_SortBy('Author')) sortMenu.links.append(Files_SortBy('Group')) sortMenu.links.append(Files_SortBy('Load Order')) sortMenu.links.append(Files_SortBy('Modified')) sortMenu.links.append(Files_SortBy('Save Order')) sortMenu.links.append(Files_SortBy('Status')) MasterList.mainMenu.append(sortMenu) #--MasterList: Item Links MasterList.itemMenu.append(Master_ChangeTo()) MasterList.itemMenu.append(Master_Disable())
|
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
7786,
7100,
13332,
3536,
7520,
4171,
666,
21374,
12123,
468,
413,
7786,
682,
30,
4753,
21771,
309,
1053,
30,
468,
413,
4416,
635,
1524,
4599,
273,
9809,
2098,
24899,
2932,
4416,
635,
6,
3719,
1524,
4599,
18,
7135,
18,
6923,
12,
1739,
87,
67,
6705,
959,
3759,
10756,
1524,
4599,
18,
7135,
18,
6923,
12,
6581,
2098,
10756,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
812,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
3594,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
1114,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
2563,
4347,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
4575,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
4755,
4347,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
1482,
26112,
13453,
682,
18,
5254,
4599,
18,
6923,
12,
3804,
4599,
13,
225,
468,
413,
7786,
682,
30,
4342,
21771,
13453,
682,
18,
1726,
4599,
18,
6923,
12,
7786,
67,
3043,
774,
10756,
13453,
682,
18,
1726,
4599,
18,
6923,
12,
7786,
67,
11879,
10756,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
7786,
7100,
13332,
3536,
7520,
4171,
666,
21374,
12123,
468,
413,
7786,
682,
30,
4753,
21771,
309,
1053,
30,
468,
413,
4416,
635,
1524,
4599,
273,
9809,
2098,
24899,
2932,
4416,
635,
6,
3719,
1524,
4599,
18,
7135,
18,
6923,
12,
1739,
87,
67,
6705,
959,
3759,
10756,
1524,
4599,
18,
7135,
18,
6923,
12,
6581,
2098,
10756,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
812,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
3594,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
1114,
26112,
1524,
4599,
18,
7135,
18,
6923,
12,
2697,
67,
4416,
858,
2668,
2563,
4347,
26112,
1524,
4599,
2
] |
try: del e.__dict__ except (TypeError, AttributeError): pass else: self.fail("%r's __dict__ can be deleted" % e)
|
self.assertEqual(can_delete_dict(e), can_delete_dict(ValueError()))
|
def verify_dict_readonly(x): """ x has to be an instance of a class inheriting from Base. """ cant(x, {}) try: del x.__dict__ except (AttributeError, TypeError): pass else: self.fail("shouldn't allow del %r.__dict__" % x) dict_descr = Base.__dict__["__dict__"] try: dict_descr.__set__(x, {}) except (AttributeError, TypeError): pass else: self.fail("dict_descr allowed access to %r's dict" % x)
|
4a0d8c36fabcd955e24a465c9276c005529fa702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4a0d8c36fabcd955e24a465c9276c005529fa702/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
1576,
67,
16365,
12,
92,
4672,
3536,
619,
711,
358,
506,
392,
791,
434,
279,
667,
6811,
310,
628,
3360,
18,
3536,
848,
88,
12,
92,
16,
2618,
13,
775,
30,
1464,
619,
16186,
1576,
972,
1335,
261,
1499,
668,
16,
3580,
4672,
1342,
469,
30,
365,
18,
6870,
2932,
13139,
82,
1404,
1699,
1464,
738,
86,
16186,
1576,
14437,
738,
619,
13,
2065,
67,
28313,
273,
3360,
16186,
1576,
972,
9614,
972,
1576,
972,
11929,
775,
30,
2065,
67,
28313,
16186,
542,
972,
12,
92,
16,
2618,
13,
1335,
261,
1499,
668,
16,
3580,
4672,
1342,
469,
30,
365,
18,
6870,
2932,
1576,
67,
28313,
2935,
2006,
358,
738,
86,
1807,
2065,
6,
738,
619,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
16,
2618,
13,
775,
30,
1464,
619,
16186,
1576,
972,
1335,
261,
1499,
668,
16,
3580,
4672,
1342,
469,
30,
365,
18,
6870,
2932,
13139,
82,
1404,
1699,
1464,
738,
86,
16186,
1576,
14437,
738,
619,
13,
2065,
67,
28313,
273,
3360,
16186,
1576,
972,
9614,
972,
1576,
972,
11929,
775,
30,
2065,
67,
28313,
16186,
542,
972,
12,
92,
16,
2618,
13,
1335,
261,
1499,
668,
16,
3580,
4672,
1342,
469,
30,
365,
18,
6870,
2932,
1576,
67,
28313,
2935,
2006,
358,
738,
86,
1807,
2065,
6,
738,
619,
2
] |
self.bistream_prefix = 'smb-'
|
def __init__ (self): connection.__init__(self,"tcp") self.state = { 'lastcmd': None, 'readcount': 0, 'stop': False, } self.buf = b'' self.outbuf = None self.fids = {} self.bistream_prefix = 'smb-' self.printer = b'' # spoolss file "queue"
|
25421a24103a2dc32edc55a3aeaa6a6f22c72e4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/25421a24103a2dc32edc55a3aeaa6a6f22c72e4b/smb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
1459,
16186,
2738,
972,
12,
2890,
10837,
14832,
7923,
365,
18,
2019,
273,
288,
296,
2722,
4172,
4278,
599,
16,
296,
896,
1883,
4278,
374,
16,
296,
5681,
4278,
1083,
16,
289,
365,
18,
4385,
273,
324,
6309,
365,
18,
659,
4385,
273,
599,
365,
18,
74,
2232,
273,
2618,
365,
18,
30439,
273,
324,
6309,
468,
1694,
1371,
1049,
585,
315,
4000,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
1459,
16186,
2738,
972,
12,
2890,
10837,
14832,
7923,
365,
18,
2019,
273,
288,
296,
2722,
4172,
4278,
599,
16,
296,
896,
1883,
4278,
374,
16,
296,
5681,
4278,
1083,
16,
289,
365,
18,
4385,
273,
324,
6309,
365,
18,
659,
4385,
273,
599,
365,
18,
74,
2232,
273,
2618,
365,
18,
30439,
273,
324,
6309,
468,
1694,
1371,
1049,
585,
315,
4000,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
@param capability: enumeration with the following options: - DRIVERVERSION - TECHNOLOGY - HORZSIZE - VERTSIZE - HORZRES - VERTRES - LOGPIXELSX - LOGPIXELSY @return: device capability @rtype: int @type capability: int
|
@return: Capability dictionary; note that to conform with ECMA documentation, the key names are in upper case: - B{DRIVERVERSION} - Device driver version number. Value is always 1. - B{TECHNOLOGY} - Device technology available. Always returns DT_METAFILE - B{HORZSIZE} - Horizontal size of reference device in millimeters. - B{VERTSIZE} - Vertical size in millimeters. - B{HORZRES} - Horizontal size in device units (pixels). - B{VERTRES} - Vertical size in device units (pixels). - B{LOGPIXELSX} - Number of horizontal pixels per inch. - B{LOGPIXELSY} - Number of vertical pixels per inch. @rtype: C{dict}
|
def GetDeviceCaps(self,capability): """
|
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31102,
24193,
12,
2890,
16,
13568,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Container(id,SERIES_CONTAINER_ID, brand.find('./{http://purl.org/dc/elements/1.1/}title').text)
|
Container(id,self,SERIES_CONTAINER_ID,brand.find('./{http://purl.org/dc/elements/1.1/}title').text)
|
def parse_data(self, xml_data): root = xml_data.getroot()
|
b05ff0a9e7f655cfa0f1e793ec877c71f81adbdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11626/b05ff0a9e7f655cfa0f1e793ec877c71f81adbdc/bbc_storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
892,
12,
2890,
16,
2025,
67,
892,
4672,
1365,
273,
2025,
67,
892,
18,
588,
3085,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
892,
12,
2890,
16,
2025,
67,
892,
4672,
1365,
273,
2025,
67,
892,
18,
588,
3085,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if connType & self.CONN_SSL and proxy.requestProtocol == 'conary':
|
if connType * self.CONN_SSL and proxy.protocol == 'http':
|
def _getConnectionTypeEndpointProxy(self, endpoint, proxy): m = URLOpener.ConnectionManager._getConnectionTypeEndpointProxy connType, selector = m(self, endpoint, proxy) if proxy.requestProtocol in self.ConaryProxyProtocols: if connType & self.CONN_TUNNEL: # Conary proxies don't implement tunneling, so clear the bit connType = connType ^ self.CONN_TUNNEL if connType & self.CONN_SSL and proxy.requestProtocol == 'conary': # Endpoint is SSL, but we're mapping to a plain Conary # proxy connType = connType ^ self.CONN_SSL if connType & self.CONN_PROXY: selector = endpoint.url return connType, selector
|
e580ae3c2b33c030aa37e6519cdca52e7f68f63b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/e580ae3c2b33c030aa37e6519cdca52e7f68f63b/transport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1952,
559,
3293,
3886,
12,
2890,
16,
2494,
16,
2889,
4672,
312,
273,
225,
1618,
1502,
84,
708,
18,
1952,
1318,
6315,
588,
1952,
559,
3293,
3886,
1487,
559,
16,
3451,
273,
312,
12,
2890,
16,
2494,
16,
2889,
13,
309,
2889,
18,
2293,
5752,
316,
365,
18,
442,
814,
3886,
21657,
30,
309,
1487,
559,
473,
365,
18,
27733,
67,
56,
2124,
50,
2247,
30,
468,
735,
814,
13263,
2727,
1404,
2348,
14825,
310,
16,
1427,
2424,
326,
2831,
1487,
559,
273,
1487,
559,
3602,
365,
18,
27733,
67,
56,
2124,
50,
2247,
309,
1487,
559,
380,
365,
18,
27733,
67,
6745,
471,
2889,
18,
8373,
422,
296,
2505,
4278,
468,
6961,
353,
7419,
16,
1496,
732,
4565,
2874,
358,
279,
7351,
735,
814,
468,
2889,
1487,
559,
273,
1487,
559,
3602,
365,
18,
27733,
67,
6745,
309,
1487,
559,
473,
365,
18,
27733,
67,
16085,
30,
3451,
273,
2494,
18,
718,
327,
1487,
559,
16,
3451,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1952,
559,
3293,
3886,
12,
2890,
16,
2494,
16,
2889,
4672,
312,
273,
225,
1618,
1502,
84,
708,
18,
1952,
1318,
6315,
588,
1952,
559,
3293,
3886,
1487,
559,
16,
3451,
273,
312,
12,
2890,
16,
2494,
16,
2889,
13,
309,
2889,
18,
2293,
5752,
316,
365,
18,
442,
814,
3886,
21657,
30,
309,
1487,
559,
473,
365,
18,
27733,
67,
56,
2124,
50,
2247,
30,
468,
735,
814,
13263,
2727,
1404,
2348,
14825,
310,
16,
1427,
2424,
326,
2831,
1487,
559,
273,
1487,
559,
3602,
365,
18,
27733,
67,
56,
2124,
50,
2247,
309,
1487,
559,
380,
365,
18,
27733,
67,
6745,
471,
2889,
18,
8373,
422,
296,
2505,
4278,
468,
6961,
353,
7419,
16,
2
] |
preOps = [
|
postOps = [
|
def infSitesMutate(pop, param): '''Apply an infinite mutation model''' (startPos, endPos, rate) = param # for each individual for ind in pop.individuals(): # for each homologous copy of chromosomes for p in range(2): # using a geometric distribution to determine # the first mutation location loc = GetRNG().randGeometric(rate) # if a mutation happens, record the mutated location if startPos + loc < endPos: try: # find the first non-zero location idx = ind.genotype(p).index(0) # record mutation here ind.setAllele(startPos + loc, idx, ploidy=p) except: print 'Warning: more than %d mutations have accumulated' % pop.totNumLoci() pass return True
|
505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
17055,
7420,
340,
12,
5120,
16,
579,
4672,
9163,
7001,
392,
14853,
11934,
938,
26418,
261,
1937,
1616,
16,
19809,
16,
4993,
13,
273,
579,
468,
364,
1517,
7327,
364,
1547,
316,
1843,
18,
22032,
30910,
13332,
468,
364,
1517,
13995,
3966,
1481,
1610,
434,
8123,
538,
21912,
364,
293,
316,
1048,
12,
22,
4672,
468,
1450,
279,
7364,
1591,
7006,
358,
4199,
468,
326,
1122,
11934,
2117,
1515,
273,
968,
54,
4960,
7675,
7884,
16972,
1591,
12,
5141,
13,
468,
309,
279,
11934,
10555,
16,
1409,
326,
27414,
2117,
309,
16013,
397,
1515,
411,
19809,
30,
775,
30,
468,
1104,
326,
1122,
1661,
17,
7124,
2117,
2067,
273,
1547,
18,
4507,
10570,
12,
84,
2934,
1615,
12,
20,
13,
468,
1409,
11934,
2674,
1547,
18,
542,
1595,
6516,
12,
1937,
1616,
397,
1515,
16,
2067,
16,
293,
383,
29609,
33,
84,
13,
1335,
30,
1172,
296,
6210,
30,
1898,
2353,
738,
72,
18302,
1240,
24893,
11,
738,
1843,
18,
3307,
2578,
1333,
77,
1435,
1342,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
17055,
7420,
340,
12,
5120,
16,
579,
4672,
9163,
7001,
392,
14853,
11934,
938,
26418,
261,
1937,
1616,
16,
19809,
16,
4993,
13,
273,
579,
468,
364,
1517,
7327,
364,
1547,
316,
1843,
18,
22032,
30910,
13332,
468,
364,
1517,
13995,
3966,
1481,
1610,
434,
8123,
538,
21912,
364,
293,
316,
1048,
12,
22,
4672,
468,
1450,
279,
7364,
1591,
7006,
358,
4199,
468,
326,
1122,
11934,
2117,
1515,
273,
968,
54,
4960,
7675,
7884,
16972,
1591,
12,
5141,
13,
468,
309,
279,
11934,
10555,
16,
1409,
326,
27414,
2117,
309,
16013,
397,
1515,
411,
19809,
30,
775,
30,
468,
1104,
326,
1122,
1661,
17,
7124,
2117,
2067,
273,
1547,
18,
4507,
10570,
12,
84,
2934,
1615,
2
] |
def set_playlist(self):
|
def get_playlist(self):
|
def set_playlist(self): file_list = [] for root, dirs, files in os.walk(self.media_dir): for file in files: s = file.split('.') ext = s[len(s)-1] if ext.lower() == self.channel.format and not '/.' in file: file_list.append(root + os.sep + file) file_list.sort() self.playlist = file_list
|
b5e9ba95fb119a579c4d9baa04a915d54abc16d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/b5e9ba95fb119a579c4d9baa04a915d54abc16d6/deefuzzer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1601,
1098,
12,
2890,
4672,
585,
67,
1098,
273,
5378,
364,
1365,
16,
7717,
16,
1390,
316,
1140,
18,
11348,
12,
2890,
18,
5829,
67,
1214,
4672,
364,
585,
316,
1390,
30,
272,
273,
585,
18,
4939,
2668,
1093,
13,
1110,
273,
272,
63,
1897,
12,
87,
24950,
21,
65,
309,
1110,
18,
8167,
1435,
422,
365,
18,
4327,
18,
2139,
471,
486,
1173,
1093,
316,
585,
30,
585,
67,
1098,
18,
6923,
12,
3085,
397,
1140,
18,
10814,
397,
585,
13,
585,
67,
1098,
18,
3804,
1435,
365,
18,
1601,
1098,
273,
585,
67,
1098,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
1214,
4672,
364,
585,
316,
1390,
30,
272,
273,
585,
18,
4939,
2668,
1093,
13,
1110,
273,
272,
63,
1897,
12,
87,
24950,
21,
65,
309,
1110,
18,
8167,
1435,
422,
365,
18,
4327,
18,
2139,
471,
486,
1173,
1093,
316,
585,
30,
585,
67,
1098,
18,
6923,
12,
3085,
397,
1140,
18,
10814,
397,
585,
13,
585,
67,
1098,
18,
3804,
1435,
365,
18,
1601,
1098,
273,
585,
67,
1098,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cleaner = CleanerBackend.Cleaner()
|
cleaner = bleachbit.CleanerBackend.Cleaner()
|
def cb_shred_file(self, action): """Callback for shredding a file"""
|
172134923f18cf7e444d183a0a73ebddceee0fa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/172134923f18cf7e444d183a0a73ebddceee0fa3/GUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
674,
1118,
67,
768,
12,
2890,
16,
1301,
4672,
3536,
2428,
364,
699,
266,
449,
310,
279,
585,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
674,
1118,
67,
768,
12,
2890,
16,
1301,
4672,
3536,
2428,
364,
699,
266,
449,
310,
279,
585,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def load_cache(filename):
|
def mangle_key(key): return key def load_cache(filename,get_key=mangle_key):
|
def load_cache(filename): cache={} if not os.path.exists(filename): return cache f=open(filename,'r') l=0 for line in f.readlines(): l+=1 fields=line.split(' ') if fields==None or not len(fields)==2 or fields[0][0]!=':': sys.stderr.write('Invalid file format in [%s], line %d\n' % (filename,l)) continue # put key:value in cache, key without ^: cache[fields[0][1:]]=fields[1].split('\n')[0] f.close() return cache
|
8551771d2b3ce508a6d901f7cde6818d4e20e361 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12824/8551771d2b3ce508a6d901f7cde6818d4e20e361/hg2git.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
4341,
67,
856,
12,
856,
4672,
327,
498,
225,
1652,
1262,
67,
2493,
12,
3459,
16,
588,
67,
856,
33,
81,
4341,
67,
856,
4672,
1247,
12938,
309,
486,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
327,
1247,
284,
33,
3190,
12,
3459,
11189,
86,
6134,
328,
33,
20,
364,
980,
316,
284,
18,
896,
3548,
13332,
328,
15,
33,
21,
1466,
33,
1369,
18,
4939,
2668,
8624,
309,
1466,
631,
7036,
578,
486,
562,
12,
2821,
13,
631,
22,
578,
1466,
63,
20,
6362,
20,
65,
5,
2218,
2497,
30,
2589,
18,
11241,
18,
2626,
2668,
1941,
585,
740,
316,
9799,
87,
6487,
980,
738,
72,
64,
82,
11,
738,
261,
3459,
16,
80,
3719,
1324,
468,
1378,
498,
30,
1132,
316,
1247,
16,
498,
2887,
3602,
30,
1247,
63,
2821,
63,
20,
6362,
21,
30,
13563,
33,
2821,
63,
21,
8009,
4939,
2668,
64,
82,
6134,
63,
20,
65,
284,
18,
4412,
1435,
327,
1247,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
4341,
67,
856,
12,
856,
4672,
327,
498,
225,
1652,
1262,
67,
2493,
12,
3459,
16,
588,
67,
856,
33,
81,
4341,
67,
856,
4672,
1247,
12938,
309,
486,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
327,
1247,
284,
33,
3190,
12,
3459,
11189,
86,
6134,
328,
33,
20,
364,
980,
316,
284,
18,
896,
3548,
13332,
328,
15,
33,
21,
1466,
33,
1369,
18,
4939,
2668,
8624,
309,
1466,
631,
7036,
578,
486,
562,
12,
2821,
13,
631,
22,
578,
1466,
63,
20,
6362,
20,
65,
5,
2218,
2497,
30,
2589,
18,
11241,
18,
2626,
2668,
1941,
585,
740,
316,
9799,
87,
6487,
980,
738,
72,
64,
82,
11,
738,
261,
3459,
16,
80,
3719,
2
] |
self._append(Failure())
|
self._buffer.append(Failure())
|
def _process(self): """ pull values from the iterable and add them to the buffer """ try: self._iterable = iter(self._iterable) except: self._append(Failure()) else: try: while 1: self._buffer.append(self._iterable.next()) except StopIteration: pass except: self._append(Failure()) self._stop = 1
|
6dea9c8aa51573693da7fc94c124b0fba9dc7b06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/6dea9c8aa51573693da7fc94c124b0fba9dc7b06/flow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
4672,
3536,
6892,
924,
628,
326,
6087,
471,
527,
2182,
358,
326,
1613,
3536,
775,
30,
365,
6315,
15364,
273,
1400,
12,
2890,
6315,
15364,
13,
1335,
30,
365,
6315,
4106,
18,
6923,
12,
5247,
10756,
469,
30,
775,
30,
1323,
404,
30,
365,
6315,
4106,
18,
6923,
12,
2890,
6315,
15364,
18,
4285,
10756,
1335,
16179,
30,
1342,
1335,
30,
365,
6315,
4106,
18,
6923,
12,
5247,
10756,
365,
6315,
5681,
273,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
4672,
3536,
6892,
924,
628,
326,
6087,
471,
527,
2182,
358,
326,
1613,
3536,
775,
30,
365,
6315,
15364,
273,
1400,
12,
2890,
6315,
15364,
13,
1335,
30,
365,
6315,
4106,
18,
6923,
12,
5247,
10756,
469,
30,
775,
30,
1323,
404,
30,
365,
6315,
4106,
18,
6923,
12,
2890,
6315,
15364,
18,
4285,
10756,
1335,
16179,
30,
1342,
1335,
30,
365,
6315,
4106,
18,
6923,
12,
5247,
10756,
365,
6315,
5681,
273,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not self.headers.has_key("Proxy-Authorization"):
|
if not self.check_proxy_auth():
|
def __init__(self, client, request, headers, content, nofilter): self.client = client self.request = request self.headers = headers if config["proxyuser"]: if not self.headers.has_key("Proxy-Authorization"): self.error(407, _("Proxy Authentication Required")) return auth = self.headers['Proxy-Authorization'] # XXX more self.content = content self.nofilter = nofilter self.url = "" try: self.method, self.url, protocol = request.split() except: config['requests']['error'] += 1 self.error(400, _("Can't parse request")) return if not self.url: config['requests']['error'] += 1 self.error(400, _("Empty URL")) return scheme, hostname, port, document = wc.proxy.spliturl(self.url) #debug(HURT_ME_PLENTY, "splitted url", scheme, hostname, port, document) if scheme=='file': # a blocked url is a local file:// link # this means we should _not_ use this proxy for local # file links :) mtype = mimetypes.guess_type(self.url)[0] config['requests']['valid'] += 1 config['requests']['blocked'] += 1 ServerHandleDirectly(self.client, 'HTTP/1.0 200 OK\r\n', 'Content-Type: %s\r\n\r\n' % (mtype or 'application/octet-stream'), open(document, 'rb').read()) return
|
d6835cc5191913e3d2e6a5c36b16f6b076d9fc6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/d6835cc5191913e3d2e6a5c36b16f6b076d9fc6c/ClientServerMatchmaker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1004,
16,
590,
16,
1607,
16,
913,
16,
290,
792,
1088,
4672,
365,
18,
2625,
273,
1004,
365,
18,
2293,
273,
590,
365,
18,
2485,
273,
1607,
309,
642,
9614,
5656,
1355,
11929,
30,
309,
486,
365,
18,
1893,
67,
5656,
67,
1944,
13332,
365,
18,
1636,
12,
7132,
27,
16,
389,
2932,
3886,
8665,
10647,
6,
3719,
327,
1357,
273,
365,
18,
2485,
3292,
3886,
17,
6063,
3546,
468,
11329,
1898,
365,
18,
1745,
273,
913,
365,
18,
82,
792,
1088,
273,
290,
792,
1088,
365,
18,
718,
273,
1408,
775,
30,
365,
18,
2039,
16,
365,
18,
718,
16,
1771,
273,
590,
18,
4939,
1435,
1335,
30,
642,
3292,
11420,
21712,
1636,
3546,
1011,
404,
365,
18,
1636,
12,
16010,
16,
389,
2932,
2568,
1404,
1109,
590,
6,
3719,
327,
309,
486,
365,
18,
718,
30,
642,
3292,
11420,
21712,
1636,
3546,
1011,
404,
365,
18,
1636,
12,
16010,
16,
389,
2932,
1921,
1976,
6,
3719,
327,
4355,
16,
5199,
16,
1756,
16,
1668,
273,
14310,
18,
5656,
18,
4939,
718,
12,
2890,
18,
718,
13,
468,
4148,
12,
44,
1099,
56,
67,
958,
67,
30099,
1784,
61,
16,
315,
4939,
2344,
880,
3113,
4355,
16,
5199,
16,
1756,
16,
1668,
13,
309,
4355,
18920,
768,
4278,
468,
279,
14547,
880,
353,
279,
1191,
585,
2207,
1692,
468,
333,
4696,
732,
1410,
389,
902,
67,
999,
333,
2889,
364,
1191,
468,
585,
4716,
294,
13,
22189,
273,
20369,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1004,
16,
590,
16,
1607,
16,
913,
16,
290,
792,
1088,
4672,
365,
18,
2625,
273,
1004,
365,
18,
2293,
273,
590,
365,
18,
2485,
273,
1607,
309,
642,
9614,
5656,
1355,
11929,
30,
309,
486,
365,
18,
1893,
67,
5656,
67,
1944,
13332,
365,
18,
1636,
12,
7132,
27,
16,
389,
2932,
3886,
8665,
10647,
6,
3719,
327,
1357,
273,
365,
18,
2485,
3292,
3886,
17,
6063,
3546,
468,
11329,
1898,
365,
18,
1745,
273,
913,
365,
18,
82,
792,
1088,
273,
290,
792,
1088,
365,
18,
718,
273,
1408,
775,
30,
365,
18,
2039,
16,
365,
18,
718,
16,
1771,
273,
590,
18,
4939,
1435,
1335,
30,
642,
3292,
11420,
2
] |
"task-specific-name=", "runtime-limit=",
|
"name=", "limit=",
|
def _task_build_params( task_name, argv, description="", help_specific_usage="", version=__revision__, specific_params=("", []), task_submit_elaborate_specific_parameter_fnc=None, task_submit_check_options_fnc=None): """ Build the BibTask params. @param argv a list of string as in sys.argv @param description is the generic description printed in the usage page; @param help_specific_usage is the specific parameter help @param task_submit_elaborate_specific_parameter_fnc will be called passing a key and a value, for parsing specific cli parameters. Must return True if it has recognized the parameter. Must eventually update the options with bibtask_set_option; @param task_submit_check_options must check the validity of options (via bibtask_get_option) once all the options where parsed; """ global _task_params, _options _options = {} if task_name in CFG_BIBTASK_DEFAULT_TASK_SETTINGS: _options.update(CFG_BIBTASK_DEFAULT_TASK_SETTINGS[task_name]) # set user-defined options: try: (short_params, long_params) = specific_params opts, args = getopt.gnu_getopt(argv[1:], "hVv:u:s:t:P:N:L:" + short_params, [ "help", "version", "verbose=", "user=", "sleep=", "time=", "priority=", "task-specific-name=", "runtime-limit=", "profile=" ] + long_params) except getopt.GetoptError, err: _usage(1, err, help_specific_usage=help_specific_usage, description=description) try: for opt in opts: if opt[0] in ("-h", "--help"): _usage(0, help_specific_usage=help_specific_usage, description=description) elif opt[0] in ("-V", "--version"): print _task_params["version"] sys.exit(0) elif opt[0] in ("-u", "--user"): _task_params["user"] = opt[1] elif opt[0] in ("-v", "--verbose"): _task_params["verbose"] = int(opt[1]) elif opt[0] in ("-s", "--sleeptime"): if task_name not in CFG_TASK_IS_NOT_A_DEAMON: get_datetime(opt[1]) # see if it is a valid shift _task_params["sleeptime"] = opt[1] elif opt[0] in ("-t", "--runtime"): _task_params["runtime"] = get_datetime(opt[1]) elif opt[0] in ("-P", "--priority"): _task_params["priority"] = int(opt[1]) elif opt[0] in ("-N", "--task-specific-name"): _task_params["task_specific_name"] = opt[1] elif opt[0] in ("-L", "--runtime-limit"): _task_params["runtime_limit"] = parse_runtime_limit(opt[1]) elif opt[0] in ("--profile", ): _task_params["profile"] += opt[1].split(',') elif not callable(task_submit_elaborate_specific_parameter_fnc) or \ not task_submit_elaborate_specific_parameter_fnc(opt[0], opt[1], opts, args): _usage(1, help_specific_usage=help_specific_usage, description=description) except StandardError, e: _usage(e, help_specific_usage=help_specific_usage, description=description) if callable(task_submit_check_options_fnc): if not task_submit_check_options_fnc(): _usage(1, help_specific_usage=help_specific_usage, description=description)
|
83bf104f28b02316d29d8cf6f2faa75ad4726d30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/83bf104f28b02316d29d8cf6f2faa75ad4726d30/bibtask.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4146,
67,
3510,
67,
2010,
12,
1562,
67,
529,
16,
5261,
16,
2477,
1546,
3113,
2809,
67,
12524,
67,
9167,
1546,
3113,
1177,
33,
972,
13057,
972,
16,
2923,
67,
2010,
33,
2932,
3113,
5378,
3631,
1562,
67,
9297,
67,
28765,
280,
340,
67,
12524,
67,
6775,
67,
4293,
71,
33,
7036,
16,
1562,
67,
9297,
67,
1893,
67,
2116,
67,
4293,
71,
33,
7036,
4672,
3536,
3998,
326,
605,
495,
2174,
859,
18,
632,
891,
5261,
279,
666,
434,
533,
487,
316,
2589,
18,
19485,
632,
891,
2477,
353,
326,
5210,
2477,
14099,
316,
326,
4084,
1363,
31,
632,
891,
2809,
67,
12524,
67,
9167,
353,
326,
2923,
1569,
2809,
632,
891,
1562,
67,
9297,
67,
28765,
280,
340,
67,
12524,
67,
6775,
67,
4293,
71,
903,
506,
2566,
9588,
279,
498,
471,
279,
460,
16,
364,
5811,
2923,
4942,
1472,
18,
6753,
327,
1053,
309,
518,
711,
16332,
326,
1569,
18,
6753,
18011,
1089,
326,
702,
598,
25581,
4146,
67,
542,
67,
3482,
31,
632,
891,
1562,
67,
9297,
67,
1893,
67,
2116,
1297,
866,
326,
13800,
434,
702,
261,
21985,
25581,
4146,
67,
588,
67,
3482,
13,
3647,
777,
326,
702,
1625,
2707,
31,
3536,
2552,
389,
4146,
67,
2010,
16,
389,
2116,
389,
2116,
273,
2618,
225,
309,
1562,
67,
529,
316,
7577,
67,
38,
13450,
15580,
67,
5280,
67,
15580,
67,
19428,
30,
389,
2116,
18,
2725,
12,
19727,
67,
38,
13450,
15580,
67,
5280,
67,
15580,
67,
19428,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4146,
67,
3510,
67,
2010,
12,
1562,
67,
529,
16,
5261,
16,
2477,
1546,
3113,
2809,
67,
12524,
67,
9167,
1546,
3113,
1177,
33,
972,
13057,
972,
16,
2923,
67,
2010,
33,
2932,
3113,
5378,
3631,
1562,
67,
9297,
67,
28765,
280,
340,
67,
12524,
67,
6775,
67,
4293,
71,
33,
7036,
16,
1562,
67,
9297,
67,
1893,
67,
2116,
67,
4293,
71,
33,
7036,
4672,
3536,
3998,
326,
605,
495,
2174,
859,
18,
632,
891,
5261,
279,
666,
434,
533,
487,
316,
2589,
18,
19485,
632,
891,
2477,
353,
326,
5210,
2477,
14099,
316,
326,
4084,
1363,
31,
632,
891,
2809,
67,
12524,
67,
9167,
353,
326,
2923,
1569,
2809,
632,
891,
1562,
67,
9297,
67,
2
] |
self.top.wm_deiconify() self.top.tkraise()
|
def close(self): self.top.wm_deiconify() self.top.tkraise() reply = self.maybesave() if reply != "cancel": self._close() return reply
|
68bb5d8c6ac691185a1e0d23e1b9e98464d8fd68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/68bb5d8c6ac691185a1e0d23e1b9e98464d8fd68/EditorWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
4332,
273,
365,
18,
24877,
70,
281,
836,
1435,
309,
4332,
480,
315,
10996,
6877,
365,
6315,
4412,
1435,
327,
4332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
4332,
273,
365,
18,
24877,
70,
281,
836,
1435,
309,
4332,
480,
315,
10996,
6877,
365,
6315,
4412,
1435,
327,
4332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def VisualizeNet(net,xy,coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'):
|
def VisualizeNet(net,xy,figsize=(6,6),coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'):
|
def VisualizeNet(net,xy,coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'): ''' Visualizes a network. Inputs: net = network to be visualized (of type SymmNet() ). xy = coordinates (usually originating from visuals.Himmeli, e.g. h=visuals.Himmeli(net,...,...) followed by xy=h.getCoordinates() coloredvertices = (True/False). If True, i) IF dict nodeColors was given, these colors are used, ii) IF NOT, vcolor is used if given, and if not, nodes are white. If False, node colors are based on strength. equalsize = (True/False) True: all vertices are of same size, input as vsize, default 1.0. False: sizes are based on vertex strength. showAllNodes = (True/False) something of a quick hack; if True, displays disconnected components and nodes which have no edges left after e.g. thresholding bgcolor = [r g b], r/g/b between 0.0 and 1.0. Background color, default is black. maxwidth = max width of edges as plotted, default 2.0 minwidth = min width of edges as plotted, default 0.2 uselabels = ('none','all') Determines if node labels are shown. 'none' shows none, 'all' shows all. Note: any labels input in dict labels ({nodename:labelstring}) are always shown; use this dict to show labels next to your chosen nodes of interest. edgeColorMap=myMap allows the user to set color scheme for edges. Edges are always colored according to edge weights, which are first normalized to the range (0,1) and then transformed to colors using edgeColorMap. There are 150 colormaps available in pylab; for a full listing, please see help(pylab.cm) (and look for DATA). Or try, for example, edgeColorMap='orange' or edgeColorMap='primary', two colormaps of our own that are not available in pylab. weightLimits=(0,5) The tuple (minWeight, maxWeight) provides the minimum and maximum value for weights. If none are given, (nearly) the true min and max weights in the network will be used. The weightLimits are used for setting edge colors and width. They enable the user to plot several networks (which may have different min and max weights) such that a certain color and width always correspond to a certain edge weight. Thus, the color and width in the visualization can be used to infer edge weight. If the network turns out to contain weights above the given maxWeight (below minWeight) these will be rounded downwards (upwards) to the given limit. It is more reasonable however for the user to provide limits that can accommodate all weights, this is just a necessary precaution for the case where the given limits are too tight. Usage examples: m=pynet.SymmNet() m[0][1]=1.0 m[1][2]=3.5 m[0][2]=5.0 Here are the coordinates, a dictionary that contains 2-tuples xy={} xy[0]=(0,0) xy[1]=(4,0) xy[2]=(2,3) f=FigureCanvasBase(visuals.VisualizeNet(m,xy)) f.print_eps("tmp.eps",dpi=80.0) f=FigureCanvasBase(visuals.VisualizeNet(m,xy,edgeColorMap='orange')) f.print_eps("tmp2.eps",dpi=80.0) f=FigureCanvasBase(visuals.VisualizeNet(m,xy,edgeColorMap='orange',equalsize=True,vsize=16)) f.print_eps("tmp3.eps",dpi=80.0) (General questions: Is there a neater way to output the figures than using FigureCanvasBase? How can I have a look at the figures from within python, without saving them to .eps files?) ''' thisfigure=Figure(figsize=(6,6),dpi=100,facecolor=bgcolor) axes=thisfigure.add_subplot(111) axes.set_axis_bgcolor(bgcolor) # sets the color for node labels fontcolor='w' if bgcolor=='white': fontcolor='k' # first draw all edges edges=list(net.edges) wlist=[] for edge in edges: wlist.append(edge[2]) wmin=min(wlist) wmax=max(wlist) # If weightLimits were not given, use (almost) the true min # and max weights in the network. Note: using a value slightly # below wmin, because otherwise when normalizing the weights, # the minimum weights would be transformed to zero and the # edges not visible at all. - Riitta if weightLimits=='none': if wmin==0: weightLimits=(wmin,wmax) else: weightLimits=(wmin-0.00001,wmax) myEdgeColorMap=setEdgeColorMap(edgeColorMap) for edge in edges: width=setEdgeWidth(edge[2],weightLimits,minwidth,maxwidth) colour=setEdgeColor(edge[2],weightLimits,myEdgeColorMap) xcoords=[xy[edge[0]][0],xy[edge[1]][0]] ycoords=[xy[edge[0]][1],xy[edge[1]][1]] plot_edge(axes,xcoords,ycoords,width=width,colour=colour) # then draw nodes, depending on given options # showAllNodes displays also nodes who do not have any edges # left after e.g. thresholding nodelist=[] if showAllNodes: for node in xy.keys(): nodelist.append(node) else: for node in net: nodelist.append(node) minnode=2.0 maxnode=6.0 strengths=netext.strengths(net) maxs=max(strengths.values()) mins=min(strengths.values()) if not(equalsize): A=(maxnode-minnode)/(maxs-mins) B=maxnode-A*maxs for node in nodelist: # first define size if equalsize: nodesize=vsize if (nodesize<1.0): # hack: Himmeli wants size <1.0 nodesize=nodesize*maxnode # if Himmeli-type size used, scale up else: if node in net: nodestrength=strengths[node] nodesize=A*strengths[node]+B else: nodestrength=mins nodesize=minnode # then determine color if coloredvertices: if len(nodeColors)>0: ctemp=nodeColors[node] if len(ctemp)==6: # recognize as Himmeli-type string ('999999') rc=float(ctemp[0:2])/99.0 gc=float(ctemp[2:4])/99.0 bc=float(ctemp[4:6])/99.0 # this is a stupid hack; sometimes rounding errors result # in rc=1.0 + epsilon and matplotlib complains... if (rc<0.0): rc=0.0 elif rc>1.0: rc=1.0 if (bc<0.0): bc=0.0 elif bc>1.0: bc=1.0 if (gc<0.0): gc=0.0 elif gc>1.0: gc=1.0 color=(rc,gc,bc) else: color=nodeColors[node] #othrwise assume it is a RGB tuple else: if len(vcolor)==6: rc=float(vcolor[0:2])/99.0 gc=float(vcolor[2:4])/99.0 bc=float(vcolor[4:6])/99.0 if (rc<0.0): rc=0.0 elif rc>1.0: rc=1.0 if (bc<0.0): bc=0.0 elif bc>1.0: bc=1.0 if (gc<0.0): gc=0.0 elif gc>1.0: gc=1.0 color=(rc,gc,bc) else: color=vcolor else: color=setEdgeColor(nodestrength,(mins,maxs),myEdgeColorMap) # use the same colormap for nodes as for edges (now the name edgeColorMap is a bit misleading... Could change it to just colorMap, or alternatively add another input option, 'nodeColorMap') #color=colortuple(nodestrength,mins,maxs) plot_node(axes,x=xy[node][0],y=xy[node][1],color=color,size=nodesize) if uselabels=='all': axes.annotate(str(node),(xy[node][0],xy[node][1]),color=fontcolor,size=7) elif node in labels: axes.annotate(labels[node],(xy[node][0],xy[node][1]),color=fontcolor,size=7) setp(axes,'xticks','','xticklabels','','yticks','','yticklabels','') xylist=xy.values() xlist=[] ylist=[] for elem in xylist: xlist.append(elem[0]) ylist.append(elem[1]) minx=min(xlist) maxx=max(xlist) miny=min(ylist) maxy=max(ylist) xdelta=0.05*(maxx-minx) ydelta=0.05*(maxy-miny) setp(axes,'xlim',(minx-xdelta,maxx+xdelta),'ylim',(miny-ydelta,maxy+ydelta)) return thisfigure
|
c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553/visuals.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26832,
554,
7308,
12,
2758,
16,
1698,
16,
470,
1467,
28657,
26,
16,
26,
3631,
1293,
7653,
17476,
33,
8381,
16,
14963,
554,
33,
8381,
16,
5336,
28793,
4500,
1595,
3205,
33,
5510,
16,
90,
3266,
22850,
21,
18,
20,
16,
21,
18,
20,
16,
21,
18,
20,
6487,
90,
1467,
33,
21,
18,
20,
16,
2159,
12570,
28793,
12370,
3266,
2218,
14739,
2187,
1896,
2819,
33,
22,
18,
20,
16,
1154,
2819,
33,
20,
18,
22,
16,
407,
292,
873,
87,
2218,
6102,
2187,
7126,
2957,
863,
2218,
91,
2761,
2187,
4865,
12768,
2218,
6102,
11,
4672,
225,
9163,
26832,
3128,
279,
2483,
18,
24472,
30,
225,
2901,
273,
2483,
358,
506,
11623,
1235,
261,
792,
618,
10042,
81,
7308,
1435,
262,
18,
225,
7668,
273,
5513,
261,
407,
3452,
4026,
1776,
628,
2281,
12588,
18,
44,
381,
81,
292,
77,
16,
425,
18,
75,
18,
366,
33,
3516,
12588,
18,
44,
381,
81,
292,
77,
12,
2758,
16,
2777,
16,
21846,
10860,
635,
7668,
33,
76,
18,
588,
13431,
1435,
225,
19757,
17476,
273,
261,
5510,
19,
8381,
2934,
971,
1053,
16,
277,
13,
11083,
2065,
756,
12570,
1703,
864,
16,
4259,
5740,
854,
1399,
16,
6072,
13,
11083,
4269,
16,
331,
3266,
353,
1399,
309,
864,
16,
471,
309,
486,
16,
2199,
854,
9578,
18,
971,
1083,
16,
756,
5740,
854,
2511,
603,
21638,
18,
225,
1606,
554,
273,
261,
5510,
19,
8381,
13,
1053,
30,
777,
6928,
854,
434,
1967,
963,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26832,
554,
7308,
12,
2758,
16,
1698,
16,
470,
1467,
28657,
26,
16,
26,
3631,
1293,
7653,
17476,
33,
8381,
16,
14963,
554,
33,
8381,
16,
5336,
28793,
4500,
1595,
3205,
33,
5510,
16,
90,
3266,
22850,
21,
18,
20,
16,
21,
18,
20,
16,
21,
18,
20,
6487,
90,
1467,
33,
21,
18,
20,
16,
2159,
12570,
28793,
12370,
3266,
2218,
14739,
2187,
1896,
2819,
33,
22,
18,
20,
16,
1154,
2819,
33,
20,
18,
22,
16,
407,
292,
873,
87,
2218,
6102,
2187,
7126,
2957,
863,
2218,
91,
2761,
2187,
4865,
12768,
2218,
6102,
11,
4672,
225,
9163,
26832,
3128,
279,
2483,
18,
24472,
30,
225,
2901,
273,
2483,
358,
506,
11623,
1235,
261,
792,
618,
2
] |
bpnum = int(args[0].strip())
|
try: bpnum = int(args[0].strip()) except ValueError: print >>self.stdout, \ 'Breakpoint index %r is not a number' % args[0]
|
def do_ignore(self,arg): """arg is bp number followed by ignore count.""" args = arg.split() bpnum = int(args[0].strip()) try: count = int(args[1].strip()) except: count = 0 bp = bdb.Breakpoint.bpbynumber[bpnum] if bp: bp.ignore = count if count > 0: reply = 'Will ignore next ' if count > 1: reply = reply + '%d crossings' % count else: reply = reply + '1 crossing' print >>self.stdout, reply + ' of breakpoint %d.' % bpnum else: print >>self.stdout, 'Will stop next time breakpoint', print >>self.stdout, bpnum, 'is reached.'
|
1e4bb440488e7b982c62fe117cd5409402818d02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/1e4bb440488e7b982c62fe117cd5409402818d02/pdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6185,
12,
2890,
16,
3175,
4672,
3536,
3175,
353,
9107,
1300,
10860,
635,
2305,
1056,
12123,
833,
273,
1501,
18,
4939,
1435,
775,
30,
9107,
2107,
273,
509,
12,
1968,
63,
20,
8009,
6406,
10756,
1335,
2068,
30,
225,
1172,
1671,
2890,
18,
10283,
16,
521,
296,
20552,
770,
738,
86,
353,
486,
279,
1300,
11,
738,
833,
63,
20,
65,
775,
30,
1056,
273,
509,
12,
1968,
63,
21,
8009,
6406,
10756,
1335,
30,
1056,
273,
374,
9107,
273,
324,
1966,
18,
20552,
18,
70,
5733,
878,
1226,
63,
17152,
2107,
65,
309,
9107,
30,
9107,
18,
6185,
273,
1056,
309,
1056,
405,
374,
30,
4332,
273,
296,
13670,
2305,
1024,
296,
309,
1056,
405,
404,
30,
4332,
273,
4332,
397,
1995,
72,
6828,
899,
11,
738,
1056,
469,
30,
4332,
273,
4332,
397,
296,
21,
6828,
310,
11,
1172,
1671,
2890,
18,
10283,
16,
4332,
397,
296,
434,
18820,
738,
72,
1093,
738,
9107,
2107,
469,
30,
1172,
1671,
2890,
18,
10283,
16,
296,
13670,
2132,
1024,
813,
18820,
2187,
1172,
1671,
2890,
18,
10283,
16,
9107,
2107,
16,
296,
291,
8675,
1093,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6185,
12,
2890,
16,
3175,
4672,
3536,
3175,
353,
9107,
1300,
10860,
635,
2305,
1056,
12123,
833,
273,
1501,
18,
4939,
1435,
775,
30,
9107,
2107,
273,
509,
12,
1968,
63,
20,
8009,
6406,
10756,
1335,
2068,
30,
225,
1172,
1671,
2890,
18,
10283,
16,
521,
296,
20552,
770,
738,
86,
353,
486,
279,
1300,
11,
738,
833,
63,
20,
65,
775,
30,
1056,
273,
509,
12,
1968,
63,
21,
8009,
6406,
10756,
1335,
30,
1056,
273,
374,
9107,
273,
324,
1966,
18,
20552,
18,
70,
5733,
878,
1226,
63,
17152,
2107,
65,
309,
9107,
30,
9107,
18,
6185,
273,
1056,
309,
1056,
405,
374,
30,
4332,
273,
296,
13670,
2305,
1024,
296,
309,
1056,
405,
2
] |
product = self.pool.get('product.product').read(cr, uid, r['product_id'], [field_to_read,'standard_price'], context=c)
|
product = self.pool.get('product.product').read(cr, uid, r['product_id'], [field_to_read, 'standard_price'], context=c)
|
def product_detail(self, cr, uid, id, field, context={}): res = {} res[id] = {} final_value = 0.0 field_to_read = 'virtual_available' if field == 'stock_real_value': field_to_read = 'qty_available' cr.execute('select distinct product_id from stock_move where (location_id=%s) or (location_dest_id=%s)',(id,id)) result = cr.dictfetchall() if result: for r in result: c = (context or {}).copy() c['location'] = id product = self.pool.get('product.product').read(cr, uid, r['product_id'], [field_to_read,'standard_price'], context=c) final_value += (product[field_to_read] * product['standard_price']) return final_value
|
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
8992,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
652,
16,
819,
12938,
4672,
400,
273,
2618,
400,
63,
350,
65,
273,
2618,
727,
67,
1132,
273,
374,
18,
20,
652,
67,
869,
67,
896,
273,
296,
12384,
67,
5699,
11,
309,
652,
422,
296,
15381,
67,
7688,
67,
1132,
4278,
652,
67,
869,
67,
896,
273,
296,
85,
4098,
67,
5699,
11,
4422,
18,
8837,
2668,
4025,
10217,
3017,
67,
350,
628,
12480,
67,
8501,
1625,
261,
3562,
67,
350,
5095,
87,
13,
578,
261,
3562,
67,
10488,
67,
350,
5095,
87,
13,
2187,
12,
350,
16,
350,
3719,
563,
273,
4422,
18,
1576,
5754,
454,
1435,
309,
563,
30,
364,
436,
316,
563,
30,
276,
273,
261,
2472,
578,
2618,
2934,
3530,
1435,
276,
3292,
3562,
3546,
273,
612,
3017,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
5896,
16063,
896,
12,
3353,
16,
4555,
16,
436,
3292,
5896,
67,
350,
17337,
306,
1518,
67,
869,
67,
896,
16,
296,
10005,
67,
8694,
17337,
819,
33,
71,
13,
727,
67,
1132,
1011,
261,
5896,
63,
1518,
67,
869,
67,
896,
65,
380,
3017,
3292,
10005,
67,
8694,
19486,
327,
727,
67,
1132,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
8992,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
652,
16,
819,
12938,
4672,
400,
273,
2618,
400,
63,
350,
65,
273,
2618,
727,
67,
1132,
273,
374,
18,
20,
652,
67,
869,
67,
896,
273,
296,
12384,
67,
5699,
11,
309,
652,
422,
296,
15381,
67,
7688,
67,
1132,
4278,
652,
67,
869,
67,
896,
273,
296,
85,
4098,
67,
5699,
11,
4422,
18,
8837,
2668,
4025,
10217,
3017,
67,
350,
628,
12480,
67,
8501,
1625,
261,
3562,
67,
350,
5095,
87,
13,
578,
261,
3562,
67,
10488,
67,
350,
5095,
87,
13,
2187,
12,
350,
16,
350,
3719,
563,
273,
4422,
18,
1576,
5754,
454,
1435,
309,
563,
30,
364,
436,
316,
563,
2
] |
if os.access(chapter.props.video_name, os.F_OK): print " video %s already exists" % chapter.props.video_name
|
if not chapter.remake and os.access(chapter.video_name, os.F_OK): print " video %s already exists" % chapter.video_name
|
def __check_video(self, chapter): print " creating video %s" % chapter.props.video_name yuv_cmd = "jpeg2yuv -v 0 -f 25 -I p -j '%s' " mpeg_cmd = "mpeg2enc -v 0 -a 2 -n p -f 4 -o '%s'" if os.access(chapter.props.video_name, os.F_OK): print " video %s already exists" % chapter.props.video_name return
|
197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
9115,
12,
2890,
16,
23580,
4672,
1172,
315,
4979,
6191,
738,
87,
6,
738,
23580,
18,
9693,
18,
9115,
67,
529,
677,
16303,
67,
4172,
273,
315,
14423,
22,
93,
16303,
300,
90,
374,
300,
74,
6969,
300,
45,
293,
300,
78,
1995,
87,
11,
315,
312,
9001,
67,
4172,
273,
315,
19951,
22,
1331,
300,
90,
374,
300,
69,
576,
300,
82,
293,
300,
74,
1059,
300,
83,
1995,
87,
4970,
309,
486,
23580,
18,
2764,
911,
471,
1140,
18,
3860,
12,
31254,
18,
9115,
67,
529,
16,
1140,
18,
42,
67,
3141,
4672,
1172,
315,
6191,
738,
87,
1818,
1704,
6,
738,
23580,
18,
9115,
67,
529,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
9115,
12,
2890,
16,
23580,
4672,
1172,
315,
4979,
6191,
738,
87,
6,
738,
23580,
18,
9693,
18,
9115,
67,
529,
677,
16303,
67,
4172,
273,
315,
14423,
22,
93,
16303,
300,
90,
374,
300,
74,
6969,
300,
45,
293,
300,
78,
1995,
87,
11,
315,
312,
9001,
67,
4172,
273,
315,
19951,
22,
1331,
300,
90,
374,
300,
69,
576,
300,
82,
293,
300,
74,
1059,
300,
83,
1995,
87,
4970,
309,
486,
23580,
18,
2764,
911,
471,
1140,
18,
3860,
12,
31254,
18,
9115,
67,
529,
16,
1140,
18,
42,
67,
3141,
4672,
1172,
315,
6191,
738,
87,
1818,
1704,
6,
738,
23580,
18,
9115,
67,
529,
327,
2,
-100,
-100,
-100,
-100,
-100
] |
The method name will be the lowercase version of field name. The method would return relationships in the same format of the PkgRel' rels property.
|
The method name will be the lowercase version of field name; '-' will be mangled as '_'. The method would return relationships in the same format of the PkgRel' rels property.
|
def rels(self): """Get raw package relationships
|
9a8f1b1d3c6e47c614d72d400455e2e43580e865 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19214,
12,
2890,
4672,
3536,
967,
1831,
2181,
11499,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC)
|
return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC,'')
|
def _process_output(self, s): s = re.sub('\x08.','',s) s = self._strip_synchro_from_start_of_output(s) if SAGE_ERROR in s: i = s.rfind('>>>') if i >= 0: return s[:i-1] # Remove any control codes that might have not got stripped out. return s.replace(SAGE_BEGIN,'').replace(SAGE_END,'').replace(SC)
|
51910203590d9891b39901ce860aa12bc977ea30 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/51910203590d9891b39901ce860aa12bc977ea30/worksheet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
2844,
12,
2890,
16,
272,
4672,
272,
273,
283,
18,
1717,
2668,
64,
92,
6840,
1093,
11189,
2187,
87,
13,
272,
273,
365,
6315,
6406,
67,
87,
2515,
303,
67,
2080,
67,
1937,
67,
792,
67,
2844,
12,
87,
13,
309,
348,
2833,
67,
3589,
316,
272,
30,
277,
273,
272,
18,
86,
4720,
2668,
9778,
1870,
13,
309,
277,
1545,
374,
30,
327,
272,
10531,
77,
17,
21,
65,
468,
3581,
1281,
3325,
6198,
716,
4825,
1240,
486,
2363,
13300,
596,
18,
327,
272,
18,
2079,
12,
55,
2833,
67,
16061,
16,
6309,
2934,
2079,
12,
55,
2833,
67,
4415,
16,
6309,
2934,
2079,
12,
2312,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
92,
6840,
1093,
11189,
2187,
87,
13,
272,
273,
365,
6315,
6406,
67,
87,
2515,
303,
67,
2080,
67,
1937,
67,
792,
67,
2844,
12,
87,
13,
309,
348,
2833,
67,
3589,
316,
272,
30,
277,
273,
272,
18,
86,
4720,
2668,
9778,
1870,
13,
309,
277,
1545,
374,
30,
327,
272,
10531,
77,
17,
21,
65,
468,
3581,
1281,
3325,
6198,
716,
4825,
1240,
486,
2363,
13300,
596,
18,
327,
272,
18,
2079,
12,
55,
2833,
67,
16061,
16,
6309,
2934,
2079,
12,
55,
2833,
67,
4415,
16,
6309,
2934,
2079,
12,
2312,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
\end{enumerate} \item Currently this function seems to allow you to ask for exp to
|
-- Currently this function seems to allow you to ask for exp to
|
def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision.
|
0c96eb02e071f5846596c353978e1e2460db622c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/0c96eb02e071f5846596c353978e1e2460db622c/power_series_ring_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
12,
2890,
16,
13382,
273,
27272,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
12,
2890,
16,
13382,
273,
27272,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return result
|
return result
|
def fleet_id_change(self, cr, uid, ids, order_fleet_id=False, fleet_id=False, product_id=False, maintenance_start_date=False, maintenance_product_qty=False): result = {} result['value'] = {} fleet_id = order_fleet_id or fleet_id if fleet_id: fleet = self.pool.get('stock.location').browse(cr, uid, fleet_id) if fleet.expire_time and not fleet.is_expired: start_date = DateTime.strptime(fleet.expire_time, '%Y-%m-%d') + RelativeDateTime(days=fixed_days_before_month_end + 1) else: start_date = maintenance_start_date and DateTime.strptime(maintenance_start_date, '%Y-%m-%d') or DateTime.strptime(self.default_maintenance_start_date(cr, uid, {}), '%Y-%m-%d') end_date = self._get_end_date_from_start_date(cr, uid, start_date, fleet) result['value'].update({'fleet_id': fleet_id}) if product_id: product = self.pool.get('product.product').browse(cr, uid, product_id) if product.is_maintenance: maintenance_month_qty = self._get_maintenance_month_qty_from_start_end(cr, uid, start_date, end_date) result['value'].update({'maintenance_start_date': start_date.strftime('%Y-%m-%d')}) result['value'].update({'maintenance_end_date': end_date.strftime('%Y-%m-%d')}) result['value'].update({'maintenance_month_qty': maintenance_month_qty}) result['value'].update({'product_uom_qty': maintenance_product_qty * maintenance_month_qty}) result['value'].update({'product_uos_qty': maintenance_product_qty * maintenance_month_qty}) # TODO * product_obj.uos_coeff return result
|
1bb7cb71fd72ec0532c769a8014f977fe3ab88c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/1bb7cb71fd72ec0532c769a8014f977fe3ab88c2/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19764,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1353,
67,
74,
8270,
67,
350,
33,
8381,
16,
19764,
67,
350,
33,
8381,
16,
3017,
67,
350,
33,
8381,
16,
18388,
67,
1937,
67,
712,
33,
8381,
16,
18388,
67,
5896,
67,
85,
4098,
33,
8381,
4672,
563,
273,
2618,
225,
563,
3292,
1132,
3546,
273,
2618,
19764,
67,
350,
273,
1353,
67,
74,
8270,
67,
350,
578,
19764,
67,
350,
225,
309,
19764,
67,
350,
30,
19764,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3562,
16063,
25731,
12,
3353,
16,
4555,
16,
19764,
67,
350,
13,
309,
19764,
18,
14070,
67,
957,
471,
486,
19764,
18,
291,
67,
15820,
30,
787,
67,
712,
273,
3716,
18,
701,
10650,
12,
74,
8270,
18,
14070,
67,
957,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
397,
19873,
5096,
12,
9810,
33,
12429,
67,
9810,
67,
5771,
67,
7496,
67,
409,
397,
404,
13,
469,
30,
787,
67,
712,
273,
18388,
67,
1937,
67,
712,
471,
3716,
18,
701,
10650,
12,
29715,
67,
1937,
67,
712,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
578,
3716,
18,
701,
10650,
12,
2890,
18,
1886,
67,
29715,
67,
1937,
67,
712,
12,
3353,
16,
4555,
16,
2618,
3631,
1995,
61,
6456,
81,
6456,
72,
6134,
679,
67,
712,
273,
365,
6315,
588,
67,
409,
67,
712,
67,
2080,
67,
1937,
67,
712,
12,
3353,
16,
4555,
16,
787,
67,
712,
16,
19764,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19764,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1353,
67,
74,
8270,
67,
350,
33,
8381,
16,
19764,
67,
350,
33,
8381,
16,
3017,
67,
350,
33,
8381,
16,
18388,
67,
1937,
67,
712,
33,
8381,
16,
18388,
67,
5896,
67,
85,
4098,
33,
8381,
4672,
563,
273,
2618,
225,
563,
3292,
1132,
3546,
273,
2618,
19764,
67,
350,
273,
1353,
67,
74,
8270,
67,
350,
578,
19764,
67,
350,
225,
309,
19764,
67,
350,
30,
19764,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3562,
16063,
25731,
12,
3353,
16,
4555,
16,
19764,
67,
350,
13,
309,
19764,
18,
14070,
67,
957,
471,
486,
19764,
18,
291,
67,
15820,
30,
2
] |
['C1_1S', 'C1_2S', 'C1_3S', 'C1_4XXXX', 'C2_1S']
|
['C1_S', 'C1_S', 'C1_S', 'C1_XXXX', 'C2_S', 'Si1_S']
|
def normalise_aonames(self,listoflines): """Normalise the aonames attribute to agree with the other parsers.
|
cf56ff91267bc593fd401851bb342d43a84b71c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/cf56ff91267bc593fd401851bb342d43a84b71c2/gamessparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25475,
67,
69,
265,
753,
12,
2890,
16,
1098,
792,
3548,
4672,
3536,
5506,
784,
326,
279,
265,
753,
1566,
358,
1737,
992,
598,
326,
1308,
14212,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25475,
67,
69,
265,
753,
12,
2890,
16,
1098,
792,
3548,
4672,
3536,
5506,
784,
326,
279,
265,
753,
1566,
358,
1737,
992,
598,
326,
1308,
14212,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.raw.tofile(str(url))
|
self.raw.tofile(str(url.path))
|
def save(self, url): if self.mmap: self.mmap.flush() self.mmap.sync() else: self.raw.tofile(str(url))
|
afd2203340ef7575d24329f58d8d35adc5a63ed2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/afd2203340ef7575d24329f58d8d35adc5a63ed2/cube.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
880,
4672,
309,
365,
18,
81,
1458,
30,
365,
18,
81,
1458,
18,
11330,
1435,
365,
18,
81,
1458,
18,
8389,
1435,
469,
30,
365,
18,
1899,
18,
869,
768,
12,
701,
12,
718,
18,
803,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
880,
4672,
309,
365,
18,
81,
1458,
30,
365,
18,
81,
1458,
18,
11330,
1435,
365,
18,
81,
1458,
18,
8389,
1435,
469,
30,
365,
18,
1899,
18,
869,
768,
12,
701,
12,
718,
18,
803,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.setup_form()
|
def __init__(self, *args): base.Renderer.__init__(self, *args) self.setup_form()
|
3df24dfa5b26980d27bd0bae9649ed8069f962a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9843/3df24dfa5b26980d27bd0bae9649ed8069f962a7/channelsubscribe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
1026,
18,
6747,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
18,
8401,
67,
687,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
1026,
18,
6747,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
18,
8401,
67,
687,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y)
|
try: cd, id = v.GetCaptureData() except RuntimeError: time.millisleep(10) continue id = id + 2*rate lastid = id data = cd.InterleaveFields(1)
|
def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' + filename) v.StartCapture() t0 = time.millitimer() while not gl.qtest(): if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) buffer.append(None) # Sentinel gl.wintitle('(done) ' + filename)
|
15728b345d96a6162fd564e1c123ee9961ee23dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15728b345d96a6162fd564e1c123ee9961ee23dc/Vrec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,
331,
659,
18,
2139,
273,
296,
10948,
28,
11,
331,
659,
18,
2819,
273,
619,
331,
659,
18,
4210,
273,
677,
331,
659,
18,
2626,
3374,
1435,
1613,
273,
5378,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
5688,
10278,
16,
261,
90,
659,
16,
1613,
3719,
309,
20232,
77,
792,
2550,
30,
1208,
11509,
12,
24901,
77,
792,
2550,
16,
1613,
13,
5118,
18,
91,
474,
1280,
2668,
12,
3927,
13,
296,
397,
1544,
13,
331,
18,
1685,
12372,
1435,
268,
20,
273,
813,
18,
81,
737,
305,
4417,
1435,
1323,
486,
5118,
18,
85,
3813,
13332,
775,
30,
7976,
16,
612,
273,
331,
18,
967,
12372,
751,
1435,
1335,
7265,
30,
813,
18,
81,
3503,
4265,
12,
2163,
13,
1324,
612,
273,
612,
397,
576,
14,
5141,
282,
1142,
350,
273,
612,
501,
273,
7976,
18,
2465,
19574,
2314,
12,
21,
13,
7976,
18,
7087,
12372,
751,
1435,
1613,
18,
6923,
12,
892,
16,
268,
13,
1613,
18,
6923,
12,
7036,
13,
468,
16695,
12927,
5118,
18,
91,
474,
1280,
2668,
12,
8734,
13,
296,
397,
1544,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,
331,
659,
18,
2139,
273,
296,
10948,
28,
11,
331,
659,
18,
2819,
273,
619,
331,
659,
18,
4210,
273,
677,
331,
659,
18,
2626,
3374,
1435,
1613,
273,
5378,
2650,
18,
1937,
67,
2704,
67,
5930,
12,
5688,
10278,
16,
261,
90,
659,
16,
1613,
3719,
309,
20232,
77,
792,
2550,
30,
1208,
11509,
12,
24901,
77,
792,
2550,
16,
1613,
13,
5118,
18,
91,
474,
1280,
2668,
12,
3927,
13,
296,
397,
1544,
13,
331,
18,
1685,
12372,
1435,
268,
2
] |
a : array_like of string_ or unicode_ Returns ------- out : ndarray Output array of booleans
|
a : array_like of str or unicode Returns ------- out : ndarray Output array of bools
|
def isspace(a): """ Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. Calls `str.isspace` element-wise. For 8-bit strings, this method is locale-dependent. Parameters ---------- a : array_like of string_ or unicode_ Returns ------- out : ndarray Output array of booleans See also -------- str.isspace """ return _vec_string(a, bool_, 'isspace')
|
05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
2981,
12,
69,
4672,
3536,
2860,
638,
364,
1517,
930,
309,
1915,
854,
1338,
7983,
3949,
316,
326,
533,
471,
1915,
353,
622,
4520,
1245,
3351,
16,
629,
3541,
18,
225,
23665,
1375,
701,
18,
1054,
909,
68,
930,
17,
2460,
18,
225,
2457,
1725,
17,
3682,
2064,
16,
333,
707,
353,
2573,
17,
10891,
18,
225,
7012,
12181,
279,
294,
526,
67,
5625,
434,
609,
578,
5252,
225,
2860,
18365,
596,
294,
8304,
3633,
526,
434,
1426,
87,
225,
2164,
2546,
27093,
609,
18,
1054,
909,
3536,
327,
389,
8799,
67,
1080,
12,
69,
16,
1426,
67,
16,
296,
1054,
909,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
2981,
12,
69,
4672,
3536,
2860,
638,
364,
1517,
930,
309,
1915,
854,
1338,
7983,
3949,
316,
326,
533,
471,
1915,
353,
622,
4520,
1245,
3351,
16,
629,
3541,
18,
225,
23665,
1375,
701,
18,
1054,
909,
68,
930,
17,
2460,
18,
225,
2457,
1725,
17,
3682,
2064,
16,
333,
707,
353,
2573,
17,
10891,
18,
225,
7012,
12181,
279,
294,
526,
67,
5625,
434,
609,
578,
5252,
225,
2860,
18365,
596,
294,
8304,
3633,
526,
434,
1426,
87,
225,
2164,
2546,
27093,
609,
18,
1054,
909,
3536,
327,
389,
8799,
67,
1080,
12,
69,
16,
1426,
67,
16,
296,
1054,
909,
6134,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise Error, 'either pass a family arguement or call set_family on this object'
|
raise Error, 'either pass a family argument or call set_family on this object'
|
def _check_family(self, family): if family is not None: return family else: family = self.current if family is None: raise Error, 'either pass a family arguement or call set_family on this object' return family
|
2cc9feb07806c2cc82ccda483b99a1f4d8349049 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2558/2cc9feb07806c2cc82ccda483b99a1f4d8349049/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
9309,
12,
2890,
16,
6755,
4672,
309,
6755,
353,
486,
599,
30,
327,
6755,
469,
30,
6755,
273,
365,
18,
2972,
309,
6755,
353,
599,
30,
1002,
1068,
16,
296,
73,
2927,
1342,
279,
6755,
1237,
578,
745,
444,
67,
9309,
603,
333,
733,
11,
327,
6755,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
9309,
12,
2890,
16,
6755,
4672,
309,
6755,
353,
486,
599,
30,
327,
6755,
469,
30,
6755,
273,
365,
18,
2972,
309,
6755,
353,
599,
30,
1002,
1068,
16,
296,
73,
2927,
1342,
279,
6755,
1237,
578,
745,
444,
67,
9309,
603,
333,
733,
11,
327,
6755,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseOneOf']), sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, width=40, selectmode=tk.SINGLE, \ exportselection=0, height=len(opt['chooseOneOf'])) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseOneOf'])) colCount += len(opt['chooseOneOf'])
|
self.labelWidgets[g].grid(column=colIndex*2, row=rowIndex%numRows+1, padx=5, rowspan = height, sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, selectmode=tk.SINGLE, exportselection=0, height = height) self.entryWidgets[g].grid(column=colIndex*2+1, row=rowIndex%numRows+1, padx=5, rowspan = height) rowIndex += height
|
def createDialog(self): self.app = tk.Tk() self.app.protocol('WM_DELETE_WINDOW', self.denyWindowManagerClose) self.app.title(self.title) self.app.iconname('Dialog') self.app.geometry("+300+200") # # the main window # self.entryWidgets = [None]*len(self.options) self.labelWidgets = [None]*len(self.options) self.app.bind("<Escape>", self.doCancel) # all use grid management # top message # do not use a very long description please tk.Message(self.app, text=self.description, width=600).grid(row=0, column=0, columnspan = 2 * self.nCol, sticky=tk.N+tk.E+tk.S+tk.W, pady=20) # find out number of items etc colParam = 0 for opt in self.options: if opt.has_key('label'): colParam += 1 if opt.has_key('chooseFrom'): colParam += len( opt['chooseFrom']) -1 if opt.has_key('chooseOneOf'): colParam += len( opt['chooseOneOf']) -1 if colParam / self.nCol * self.nCol == colParam: colParam /= self.nCol else: colParam = colParam/self.nCol + 1 colCount = 0 colIndex = 0 # all entries for g in range(len(self.options)): opt = self.options[g] if not opt.has_key('label'): continue # --------- entryWidget ---------------------------------------------- # use different entry method for different types if opt.has_key('chooseOneOf'): # single choice self.labelWidgets[g] = tk.Label(self.app, text=opt['label']) self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseOneOf']), sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, width=40, selectmode=tk.SINGLE, \ exportselection=0, height=len(opt['chooseOneOf'])) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseOneOf'])) colCount += len(opt['chooseOneOf']) for entry in opt['chooseOneOf']: self.entryWidgets[g].insert(tk.END, str(entry)) if self.values[g] is not None: self.entryWidgets[g].select_set( opt['chooseOneOf'].index(self.values[g])) elif opt.has_key('chooseFrom'): # multiple choice self.labelWidgets[g] = tk.Label(self.app, text=opt['label']) self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseFrom']), sticky=tk.E) self.entryWidgets[g] = tk.Listbox(self.app, width=40, selectmode=tk.EXTENDED, \ exportselection=0, height=len( opt['chooseFrom'])) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%colParam+1, padx=10, rowspan = len(opt['chooseFrom'])) colCount += len(opt['chooseFrom']) for entry in opt['chooseFrom']: self.entryWidgets[g].insert(tk.END, str(entry)) if self.values[g] is not None: if type(self.values[g]) in [types.TupleType, types.ListType]: for val in self.values[g]: self.entryWidgets[g].select_set( opt['chooseFrom'].index(val)) else: self.entryWidgets[g].select_set( opt['chooseFrom'].index( self.values[g] )) elif (opt.has_key('arg') and opt['arg'][-1] != ':') or \ (opt.has_key('longarg') and opt['longarg'][-1] != '='): # true or false self.labelWidgets[g] = tk.Label(self.app, text=opt['label']) self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, rowspan = 1, sticky=tk.E) # replace self.values[g] by a tk IntVar() because tk.Checkbutton has to store # its value in such a variable. self.values[g].get() will be used to return the # state of this Checkbutton. # c.f. http://infohost.nmt.edu/tcc/help/pubs/tkinter/control-variables.html iv = tk.IntVar() iv.set(self.values[g] == True) # self.values[g] can be None, True or False self.values[g] = iv self.entryWidgets[g] = tk.Checkbutton(self.app, height=1, text = "Yes / No", variable=self.values[g]) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%colParam+1, padx=10, rowspan = 1) colCount += 1 self.entryWidgets[g].deselect() else: self.labelWidgets[g] = tk.Label(self.app, text=opt['label']) self.labelWidgets[g].grid(column=colIndex*2, row=colCount%colParam+1, padx=10, sticky=tk.E) self.entryWidgets[g] = tk.Entry(self.app, width=40) self.entryWidgets[g].grid(column=colIndex*2+1, row=colCount%colParam+1, padx=10) colCount += 1 # put default value into the entryWidget if self.values[g] is not None: self.entryWidgets[g].insert(0, prettyOutput(self.values[g])) colIndex = colCount /colParam self.entryWidgets[g].bind("<Return>", self.doGetText) self.entryWidgets[g].bind("<Escape>", self.doCancel) # help button helpButton = tk.Button(self.app, takefocus=1, text="Help") helpButton.bind("<Return>", self.doHelp) helpButton.bind("<Button-1>", self.doHelp) helpButton.grid(column=0, columnspan=self.nCol, row = colParam+1, pady=20) # ok button okButton = tk.Button(self.app, takefocus=1, text="Run!") okButton.bind("<Return>", self.doGetText) okButton.bind("<Button-1>", self.doGetText) okButton.grid( column=self.nCol, columnspan=self.nCol, row = colParam+1, pady=20) # cancel button cancelButton = tk.Button(self.app, takefocus=1, text="Cancel") cancelButton.bind("<Return>", self.doCancel) cancelButton.bind("<Button-1>", self.doCancel) cancelButton.grid( column=0, columnspan=2*self.nCol, row = colParam+1, pady=20)
|
b8dc92ef8ad792606f004235722b9585e2bbe014 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/b8dc92ef8ad792606f004235722b9585e2bbe014/simuOpt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6353,
12,
2890,
4672,
365,
18,
2910,
273,
13030,
18,
56,
79,
1435,
365,
18,
2910,
18,
8373,
2668,
25173,
67,
6460,
67,
23407,
2187,
365,
18,
13002,
93,
3829,
1318,
4605,
13,
365,
18,
2910,
18,
2649,
12,
2890,
18,
2649,
13,
365,
18,
2910,
18,
3950,
529,
2668,
6353,
6134,
365,
18,
2910,
18,
14330,
2932,
15,
19249,
15,
6976,
7923,
468,
468,
326,
2774,
2742,
468,
365,
18,
4099,
16166,
273,
306,
7036,
5772,
1897,
12,
2890,
18,
2116,
13,
365,
18,
1925,
16166,
273,
306,
7036,
5772,
1897,
12,
2890,
18,
2116,
13,
365,
18,
2910,
18,
4376,
2932,
32,
8448,
2984,
16,
365,
18,
2896,
6691,
13,
468,
777,
999,
3068,
11803,
468,
1760,
883,
468,
741,
486,
999,
279,
8572,
1525,
2477,
9582,
13030,
18,
1079,
12,
2890,
18,
2910,
16,
977,
33,
2890,
18,
3384,
16,
1835,
33,
28133,
2934,
5222,
12,
492,
33,
20,
16,
1057,
33,
20,
16,
1057,
3969,
273,
576,
380,
365,
18,
82,
914,
16,
21750,
33,
16099,
18,
50,
15,
16099,
18,
41,
15,
16099,
18,
55,
15,
16099,
18,
59,
16,
4627,
93,
33,
3462,
13,
468,
1104,
596,
1300,
434,
1516,
5527,
645,
786,
273,
374,
364,
2153,
316,
365,
18,
2116,
30,
309,
2153,
18,
5332,
67,
856,
2668,
1925,
11,
4672,
645,
786,
1011,
404,
309,
2153,
18,
5332,
67,
856,
2668,
25777,
1265,
11,
4672,
645,
786,
1011,
562,
12,
2153,
3292,
25777,
1265,
19486,
300,
21,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6353,
12,
2890,
4672,
365,
18,
2910,
273,
13030,
18,
56,
79,
1435,
365,
18,
2910,
18,
8373,
2668,
25173,
67,
6460,
67,
23407,
2187,
365,
18,
13002,
93,
3829,
1318,
4605,
13,
365,
18,
2910,
18,
2649,
12,
2890,
18,
2649,
13,
365,
18,
2910,
18,
3950,
529,
2668,
6353,
6134,
365,
18,
2910,
18,
14330,
2932,
15,
19249,
15,
6976,
7923,
468,
468,
326,
2774,
2742,
468,
365,
18,
4099,
16166,
273,
306,
7036,
5772,
1897,
12,
2890,
18,
2116,
13,
365,
18,
1925,
16166,
273,
306,
7036,
5772,
1897,
12,
2890,
18,
2116,
13,
365,
18,
2910,
18,
4376,
2932,
32,
8448,
2984,
16,
365,
18,
2896,
6691,
13,
468,
777,
999,
3068,
11803,
2
] |
print 2
|
def undoMoves (self, moves, gamemodel): if self.ready: if self.mode not in (ANALYZING, INVERSE_ANALYZING): if self.board: print 1 self.movecon.acquire() print 2 try: self.hurry() self.force() self.movecon.wait() finally: self.movecon.release() else: self.force() self.changeLock.acquire() try: for i in xrange(moves): print >> self.engine, "undo" if self.mode not in (ANALYZING, INVERSE_ANALYZING): if gamemodel.curplayer.color == self.color: self.board = gamemodel.boards[-1] self.go() else: self.board = None else: self.board = gamemodel.boards[-1] finally: self.changeLock.release() else: self.runWhenReady(self.undoMoves, moves, gamemodel)
|
5d88ea2ebdb97e54fd069ee3310d267ec4c8deba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/5d88ea2ebdb97e54fd069ee3310d267ec4c8deba/CECPEngine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
19297,
261,
2890,
16,
13934,
16,
7920,
2284,
4672,
309,
365,
18,
1672,
30,
309,
365,
18,
3188,
486,
316,
261,
1258,
19448,
62,
1360,
16,
2120,
28489,
67,
1258,
19448,
62,
1360,
4672,
309,
365,
18,
3752,
30,
1172,
404,
365,
18,
8501,
591,
18,
1077,
1039,
1435,
775,
30,
365,
18,
76,
295,
1176,
1435,
365,
18,
5734,
1435,
365,
18,
8501,
591,
18,
7048,
1435,
3095,
30,
365,
18,
8501,
591,
18,
9340,
1435,
469,
30,
365,
18,
5734,
1435,
225,
365,
18,
3427,
2531,
18,
1077,
1039,
1435,
775,
30,
225,
364,
277,
316,
12314,
12,
81,
10829,
4672,
1172,
1671,
365,
18,
8944,
16,
315,
31226,
6,
225,
309,
365,
18,
3188,
486,
316,
261,
1258,
19448,
62,
1360,
16,
2120,
28489,
67,
1258,
19448,
62,
1360,
4672,
309,
7920,
2284,
18,
1397,
14872,
18,
3266,
422,
365,
18,
3266,
30,
365,
18,
3752,
273,
7920,
2284,
18,
3752,
87,
18919,
21,
65,
365,
18,
3240,
1435,
469,
30,
365,
18,
3752,
273,
599,
469,
30,
365,
18,
3752,
273,
7920,
2284,
18,
3752,
87,
18919,
21,
65,
3095,
30,
365,
18,
3427,
2531,
18,
9340,
1435,
469,
30,
365,
18,
2681,
9434,
8367,
12,
2890,
18,
31226,
19297,
16,
13934,
16,
7920,
2284,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
19297,
261,
2890,
16,
13934,
16,
7920,
2284,
4672,
309,
365,
18,
1672,
30,
309,
365,
18,
3188,
486,
316,
261,
1258,
19448,
62,
1360,
16,
2120,
28489,
67,
1258,
19448,
62,
1360,
4672,
309,
365,
18,
3752,
30,
1172,
404,
365,
18,
8501,
591,
18,
1077,
1039,
1435,
775,
30,
365,
18,
76,
295,
1176,
1435,
365,
18,
5734,
1435,
365,
18,
8501,
591,
18,
7048,
1435,
3095,
30,
365,
18,
8501,
591,
18,
9340,
1435,
469,
30,
365,
18,
5734,
1435,
225,
365,
18,
3427,
2531,
18,
1077,
1039,
1435,
775,
30,
225,
364,
277,
316,
12314,
12,
81,
10829,
4672,
1172,
1671,
365,
18,
8944,
16,
315,
31226,
6,
225,
309,
365,
18,
3188,
2
] |
|
result=self.getUser(id) return result.__of__(self)
|
return self.getUser(id)
|
def getUserById(self, id, default=_marker): """Return the user corresponding to the given id. """ # The connection between getting by ID and by name is not a strong # one try: result=self.getUser(id) return result.__of__(self) # Wrap in our context except: if default is _marker: raise return default
|
99272e487ca4223ec3efc995fdf17d7add020fdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/99272e487ca4223ec3efc995fdf17d7add020fdd/User.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
5132,
12,
2890,
16,
612,
16,
805,
33,
67,
11145,
4672,
3536,
990,
326,
729,
4656,
358,
326,
864,
612,
18,
3536,
468,
1021,
1459,
3086,
8742,
635,
1599,
471,
635,
508,
353,
486,
279,
11773,
468,
1245,
775,
30,
327,
365,
18,
588,
1299,
12,
350,
13,
468,
4266,
316,
3134,
819,
1335,
30,
309,
805,
353,
389,
11145,
30,
1002,
327,
805,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
5132,
12,
2890,
16,
612,
16,
805,
33,
67,
11145,
4672,
3536,
990,
326,
729,
4656,
358,
326,
864,
612,
18,
3536,
468,
1021,
1459,
3086,
8742,
635,
1599,
471,
635,
508,
353,
486,
279,
11773,
468,
1245,
775,
30,
327,
365,
18,
588,
1299,
12,
350,
13,
468,
4266,
316,
3134,
819,
1335,
30,
309,
805,
353,
389,
11145,
30,
1002,
327,
805,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
h = hash(a) h, d = divmod(h, 256) h = h & 0xffffff x = (x^h^d) & 255 h = h>>8 y = (y^h^d) & 255 h = h>>8 z = (z^h^d) & 255 whrandom.seed(x, y, z)
|
x = 69069 * x + hash(a) random.seed(x)
|
def main(): """Main program when invoked as a script. One argument: tabulate a single row. Two arguments: tabulate a range (inclusive). Extra arguments are used to seed the random generator. """ # default range (inclusive) k1 = 15 k2 = 19 if sys.argv[1:]: # one argument: single point k1 = k2 = int(sys.argv[1]) if sys.argv[2:]: # two arguments: specify range k2 = int(sys.argv[2]) if sys.argv[3:]: # derive random seed from remaining arguments x, y, z = 0, 0, 0 for a in sys.argv[3:]: h = hash(a) h, d = divmod(h, 256) h = h & 0xffffff x = (x^h^d) & 255 h = h>>8 y = (y^h^d) & 255 h = h>>8 z = (z^h^d) & 255 whrandom.seed(x, y, z) r = range(k1, k2+1) # include the end point tabulate(r)
|
8b6ec79b74284873696b24ab979fb1cb579b86f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8b6ec79b74284873696b24ab979fb1cb579b86f8/sortperf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
1347,
8187,
487,
279,
2728,
18,
225,
6942,
1237,
30,
3246,
6243,
279,
2202,
1027,
18,
16896,
1775,
30,
3246,
6243,
279,
1048,
261,
267,
9173,
2934,
13592,
1775,
854,
1399,
358,
5009,
326,
2744,
4456,
18,
225,
3536,
468,
805,
1048,
261,
267,
9173,
13,
417,
21,
273,
4711,
417,
22,
273,
5342,
309,
2589,
18,
19485,
63,
21,
30,
14542,
468,
1245,
1237,
30,
2202,
1634,
417,
21,
273,
417,
22,
273,
509,
12,
9499,
18,
19485,
63,
21,
5717,
309,
2589,
18,
19485,
63,
22,
30,
14542,
468,
2795,
1775,
30,
4800,
1048,
417,
22,
273,
509,
12,
9499,
18,
19485,
63,
22,
5717,
309,
2589,
18,
19485,
63,
23,
30,
14542,
468,
14763,
2744,
5009,
628,
4463,
1775,
619,
16,
677,
16,
998,
273,
374,
16,
374,
16,
374,
364,
279,
316,
2589,
18,
19485,
63,
23,
30,
14542,
619,
273,
20963,
7677,
29,
380,
619,
397,
1651,
12,
69,
13,
2744,
18,
12407,
12,
92,
13,
436,
273,
1048,
12,
79,
21,
16,
417,
22,
15,
21,
13,
1171,
468,
2341,
326,
679,
1634,
3246,
6243,
12,
86,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
1347,
8187,
487,
279,
2728,
18,
225,
6942,
1237,
30,
3246,
6243,
279,
2202,
1027,
18,
16896,
1775,
30,
3246,
6243,
279,
1048,
261,
267,
9173,
2934,
13592,
1775,
854,
1399,
358,
5009,
326,
2744,
4456,
18,
225,
3536,
468,
805,
1048,
261,
267,
9173,
13,
417,
21,
273,
4711,
417,
22,
273,
5342,
309,
2589,
18,
19485,
63,
21,
30,
14542,
468,
1245,
1237,
30,
2202,
1634,
417,
21,
273,
417,
22,
273,
509,
12,
9499,
18,
19485,
63,
21,
5717,
309,
2589,
18,
19485,
63,
22,
30,
14542,
468,
2795,
1775,
30,
4800,
1048,
417,
22,
273,
509,
12,
9499,
18,
19485,
63,
22,
5717,
309,
2589,
18,
19485,
63,
23,
2
] |
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
|
security.declareProtected(permissions.ModifyPortalContent,
|
def _editMetadata(self , title=_marker , subject=_marker , description=_marker , contributors=_marker , effective_date=_marker , expiration_date=_marker , format=_marker , language=_marker , rights=_marker ): """ Update the editable metadata for this resource. """ if title is not _marker: self.setTitle( title ) if subject is not _marker: self.setSubject( subject ) if description is not _marker: self.setDescription( description ) if contributors is not _marker: self.setContributors( contributors ) if effective_date is not _marker: self.setEffectiveDate( effective_date ) if expiration_date is not _marker: self.setExpirationDate( expiration_date ) if format is not _marker: self.setFormat( format ) if language is not _marker: self.setLanguage( language ) if rights is not _marker: self.setRights( rights )
|
bffbf06ccb0e344dcf82f7addf15838da46c2ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/bffbf06ccb0e344dcf82f7addf15838da46c2ba5/ExtensibleMetadata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4619,
2277,
12,
2890,
269,
2077,
33,
67,
11145,
269,
3221,
33,
67,
11145,
269,
2477,
33,
67,
11145,
269,
13608,
13595,
33,
67,
11145,
269,
11448,
67,
712,
33,
67,
11145,
269,
7686,
67,
712,
33,
67,
11145,
269,
740,
33,
67,
11145,
269,
2653,
33,
67,
11145,
269,
14989,
33,
67,
11145,
262,
30,
3536,
2315,
326,
13754,
1982,
364,
333,
1058,
18,
3536,
309,
2077,
353,
486,
389,
11145,
30,
365,
18,
542,
4247,
12,
2077,
262,
309,
3221,
353,
486,
389,
11145,
30,
365,
18,
542,
6638,
12,
3221,
262,
309,
2477,
353,
486,
389,
11145,
30,
365,
18,
542,
3291,
12,
2477,
262,
309,
13608,
13595,
353,
486,
389,
11145,
30,
365,
18,
542,
442,
665,
13595,
12,
13608,
13595,
262,
309,
11448,
67,
712,
353,
486,
389,
11145,
30,
365,
18,
542,
28531,
1626,
12,
11448,
67,
712,
262,
309,
7686,
67,
712,
353,
486,
389,
11145,
30,
365,
18,
542,
12028,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
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4619,
2277,
12,
2890,
269,
2077,
33,
67,
11145,
269,
3221,
33,
67,
11145,
269,
2477,
33,
67,
11145,
269,
13608,
13595,
33,
67,
11145,
269,
11448,
67,
712,
33,
67,
11145,
269,
7686,
67,
712,
33,
67,
11145,
269,
740,
33,
67,
11145,
269,
2653,
33,
67,
11145,
269,
14989,
33,
67,
11145,
262,
30,
3536,
2315,
326,
13754,
1982,
364,
333,
1058,
18,
3536,
309,
2077,
353,
486,
389,
11145,
30,
365,
18,
542,
4247,
12,
2077,
262,
309,
3221,
353,
486,
389,
11145,
30,
365,
18,
542,
6638,
12,
3221,
262,
309,
2477,
353,
486,
389,
11145,
30,
365,
18,
542,
3291,
12,
2477,
262,
309,
13608,
13595,
353,
486,
389,
11145,
30,
365,
2
] |
FROM ticket t,enum p WHERE p.name=t.priority AND p.type='priority'
|
FROM ticket t LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
|
def get_reports(db): owner = db.concat('owner', "' *'") return (
|
ca75c5c2fb49333cbc034a710106bdf6d9009566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/ca75c5c2fb49333cbc034a710106bdf6d9009566/db_default.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20195,
12,
1966,
4672,
3410,
273,
1319,
18,
16426,
2668,
8443,
2187,
2491,
380,
4970,
13,
327,
261,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20195,
12,
1966,
4672,
3410,
273,
1319,
18,
16426,
2668,
8443,
2187,
2491,
380,
4970,
13,
327,
261,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
debug(HURT_ME_PLENTY, "JS: read", len(data))
|
debug(HURT_ME_PLENTY, "JS: read", len(data), "<=", url)
|
def jsScriptData (self, data, url, ver): assert self.state=='wait' if data is None: if not self.script: print >> sys.stderr, "empty JS src", url elif self.jsScript(self.script, ver): print >> sys.stderr, "JS popup src", url else: self.buf.append([STARTTAG, "script", {'type': 'text/javascript'}]) self.buf.append([DATA, "<!--\n%s\n//-->"%self.script]) self.state = 'parse' self.script = '' debug(NIGHTMARE, "XXX switching back to parse with") debug(NIGHTMARE, "self.buf", `self.buf`) #debug(NIGHTMARE, "self.outbuf", `self.outbuf.getvalue()`) debug(NIGHTMARE, "self.inbuf", `self.inbuf.getvalue()`) debug(NIGHTMARE, "self.waitbuf", `self.waitbuf.getvalue()`) else: debug(HURT_ME_PLENTY, "JS: read", len(data)) self.script += data
|
89b79386924e75b2a16ac8ce4c732a86c3d9ed2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/89b79386924e75b2a16ac8ce4c732a86c3d9ed2d/Rewriter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3651,
751,
261,
2890,
16,
501,
16,
880,
16,
1924,
4672,
1815,
365,
18,
2019,
18920,
7048,
11,
309,
501,
353,
599,
30,
309,
486,
365,
18,
4263,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
5531,
6756,
1705,
3113,
880,
1327,
365,
18,
2924,
3651,
12,
2890,
18,
4263,
16,
1924,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
6479,
10431,
1705,
3113,
880,
469,
30,
365,
18,
4385,
18,
6923,
3816,
20943,
1470,
1781,
16,
315,
4263,
3113,
13666,
723,
4278,
296,
955,
19,
11242,
11,
97,
5717,
365,
18,
4385,
18,
6923,
3816,
4883,
16,
3532,
22772,
64,
82,
9,
87,
64,
82,
759,
413,
2984,
9,
2890,
18,
4263,
5717,
365,
18,
2019,
273,
296,
2670,
11,
365,
18,
4263,
273,
875,
1198,
12,
50,
7700,
5535,
862,
16,
315,
15639,
30882,
1473,
358,
1109,
598,
7923,
1198,
12,
50,
7700,
5535,
862,
16,
315,
2890,
18,
4385,
3113,
1375,
2890,
18,
4385,
24065,
468,
4148,
12,
50,
7700,
5535,
862,
16,
315,
2890,
18,
659,
4385,
3113,
1375,
2890,
18,
659,
4385,
18,
588,
1132,
20338,
13,
1198,
12,
50,
7700,
5535,
862,
16,
315,
2890,
18,
267,
4385,
3113,
1375,
2890,
18,
267,
4385,
18,
588,
1132,
20338,
13,
1198,
12,
50,
7700,
5535,
862,
16,
315,
2890,
18,
7048,
4385,
3113,
1375,
2890,
18,
7048,
4385,
18,
588,
1132,
20338,
13,
469,
30,
1198,
12,
44,
1099,
56,
67,
958,
67,
30099,
1784,
61,
16,
315,
6479,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
3651,
751,
261,
2890,
16,
501,
16,
880,
16,
1924,
4672,
1815,
365,
18,
2019,
18920,
7048,
11,
309,
501,
353,
599,
30,
309,
486,
365,
18,
4263,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
5531,
6756,
1705,
3113,
880,
1327,
365,
18,
2924,
3651,
12,
2890,
18,
4263,
16,
1924,
4672,
1172,
1671,
2589,
18,
11241,
16,
315,
6479,
10431,
1705,
3113,
880,
469,
30,
365,
18,
4385,
18,
6923,
3816,
20943,
1470,
1781,
16,
315,
4263,
3113,
13666,
723,
4278,
296,
955,
19,
11242,
11,
97,
5717,
365,
18,
4385,
18,
6923,
3816,
4883,
16,
3532,
22772,
64,
82,
9,
87,
64,
82,
759,
413,
2984,
9,
2890,
18,
4263,
5717,
365,
18,
2019,
2
] |
hash_a1 = md5.new(':'.join([pairs['username'], realm, password])).hexdigest() hash_a2 = md5.new(':'.join([self.command, pairs['uri']])).hexdigest()
|
hash_a1 = _new_md5(':'.join([pairs['username'], realm, password])).hexdigest() hash_a2 = _new_md5(':'.join([self.command, pairs['uri']])).hexdigest()
|
def AuthDigestHandler(self): """This handler tests 'Digest' authentication. It just sends a page with title 'user/pass' if you succeed."""
|
827fe44000f83d9801e04fd169054b99f5dc7068 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/827fe44000f83d9801e04fd169054b99f5dc7068/testserver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3123,
9568,
1503,
12,
2890,
4672,
3536,
2503,
1838,
7434,
296,
9568,
11,
5107,
18,
225,
2597,
2537,
9573,
279,
1363,
598,
2077,
296,
1355,
19,
5466,
11,
309,
1846,
12897,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3123,
9568,
1503,
12,
2890,
4672,
3536,
2503,
1838,
7434,
296,
9568,
11,
5107,
18,
225,
2597,
2537,
9573,
279,
1363,
598,
2077,
296,
1355,
19,
5466,
11,
309,
1846,
12897,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
document.body[i : i+4] = substi
|
document.body[i:i + 4] = substi
|
def revert_vphantom(document): " Reverts vphantom to ERT " i = 0 j = 0 while True: i = find_token(document.body, "\\begin_inset Phantom VPhantom", i) if i == -1: return substi = document.body[i].replace('\\begin_inset Phantom VPhantom', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Plain Layout\n\n\n\\backslash\n' \ 'vphantom{\n\\end_layout\n\n\\end_inset\n') substi = substi.split('\n') document.body[i : i+4] = substi i += len(substi) j = find_token(document.body, "\\end_layout", i) if j == -1: document.warning("Malformed LyX document: Could not find end of VPhantom inset.") return substj = document.body[j].replace('\\end_layout', \ '\\size default\n\n\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Plain Layout\n\n' \ '}\n\\end_layout\n\n\\end_inset\n') substj = substj.split('\n') document.body[j : j+4] = substj i += len(substj)
|
bcd8b9a1f1241c461beb5db1d5a69424a9a25950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bcd8b9a1f1241c461beb5db1d5a69424a9a25950/lyx_2_0.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
90,
844,
16317,
12,
5457,
4672,
315,
868,
31537,
331,
844,
16317,
358,
4232,
56,
315,
277,
273,
374,
525,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
10086,
67,
267,
542,
4360,
16317,
776,
3731,
16317,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
27750,
77,
273,
1668,
18,
3432,
63,
77,
8009,
2079,
2668,
1695,
10086,
67,
267,
542,
4360,
16317,
776,
3731,
16317,
2187,
521,
3718,
10086,
67,
267,
542,
4232,
56,
64,
82,
2327,
17027,
64,
82,
64,
82,
11,
521,
3718,
10086,
67,
6741,
17367,
9995,
64,
82,
64,
82,
64,
82,
1695,
823,
12877,
64,
82,
11,
521,
296,
90,
844,
16317,
23241,
82,
1695,
409,
67,
6741,
64,
82,
64,
82,
1695,
409,
67,
267,
542,
64,
82,
6134,
27750,
77,
273,
27750,
77,
18,
4939,
2668,
64,
82,
6134,
1668,
18,
3432,
63,
77,
30,
77,
397,
1059,
65,
273,
27750,
77,
277,
1011,
562,
12,
1717,
334,
77,
13,
525,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
409,
67,
6741,
3113,
277,
13,
309,
525,
422,
300,
21,
30,
1668,
18,
8551,
2932,
18695,
511,
93,
60,
1668,
30,
14312,
486,
1104,
679,
434,
776,
3731,
16317,
316,
542,
1199,
13,
327,
27750,
78,
273,
1668,
18,
3432,
63,
78,
8009,
2079,
2668,
1695,
409,
67,
6741,
2187,
521,
3718,
1467,
805,
64,
82,
64,
82,
1695,
10086,
67,
267,
542,
4232,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
90,
844,
16317,
12,
5457,
4672,
315,
868,
31537,
331,
844,
16317,
358,
4232,
56,
315,
277,
273,
374,
525,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
8422,
10086,
67,
267,
542,
4360,
16317,
776,
3731,
16317,
3113,
277,
13,
309,
277,
422,
300,
21,
30,
327,
27750,
77,
273,
1668,
18,
3432,
63,
77,
8009,
2079,
2668,
1695,
10086,
67,
267,
542,
4360,
16317,
776,
3731,
16317,
2187,
521,
3718,
10086,
67,
267,
542,
4232,
56,
64,
82,
2327,
17027,
64,
82,
64,
82,
11,
521,
3718,
10086,
67,
6741,
17367,
9995,
64,
82,
64,
82,
64,
82,
1695,
823,
12877,
64,
82,
11,
521,
296,
90,
2
] |
def sendCreateAccountEmail(self, p_name, p_email, p_username, REQUEST):
|
def sendCreateAccountEmail(self, p_to, p_name, p_email, p_organisation, p_username, p_location_path, p_location_title, p_comments):
|
def sendCreateAccountEmail(self, p_name, p_email, p_username, REQUEST): #sends a confirmation email to the newlly created account's owner email_template = self.getEmailTool()._getOb('email_createaccount') l_subject = email_template.title l_content = email_template.body l_content = l_content.replace('@@PORTAL_URL@@', self.portal_url) l_content = l_content.replace('@@PORTAL_TITLE@@', self.site_title) l_content = l_content.replace('@@NAME@@', p_name) l_content = l_content.replace('@@EMAIL@@', p_email) l_content = l_content.replace('@@USERNAME@@', p_username) l_content = l_content.replace('@@TIMEOFPOST@@', str(self.utGetTodayDate())) mail_from = self.mail_address_from self.getEmailTool().sendEmail(l_content, p_email, mail_from, l_subject)
|
5fdb194b5cc07d6dac0cf0ddee3d4bfd8e6e814f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3287/5fdb194b5cc07d6dac0cf0ddee3d4bfd8e6e814f/CHMSite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
1684,
3032,
4134,
12,
2890,
16,
293,
67,
869,
16,
293,
67,
529,
16,
293,
67,
3652,
16,
293,
67,
22543,
10742,
16,
293,
67,
5053,
16,
293,
67,
3562,
67,
803,
16,
293,
67,
3562,
67,
2649,
16,
293,
67,
9231,
4672,
468,
4661,
87,
279,
14296,
2699,
358,
326,
394,
80,
715,
2522,
2236,
1807,
3410,
2699,
67,
3202,
273,
365,
18,
588,
4134,
6364,
1435,
6315,
588,
10516,
2668,
3652,
67,
2640,
4631,
6134,
328,
67,
7857,
273,
2699,
67,
3202,
18,
2649,
328,
67,
1745,
273,
2699,
67,
3202,
18,
3432,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
6354,
1013,
67,
1785,
30989,
2187,
365,
18,
24386,
67,
718,
13,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
6354,
1013,
67,
14123,
30989,
2187,
365,
18,
4256,
67,
2649,
13,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
1985,
30989,
2187,
293,
67,
529,
13,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
14686,
30989,
2187,
293,
67,
3652,
13,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
21292,
30989,
2187,
293,
67,
5053,
13,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
4684,
3932,
3798,
30989,
2187,
609,
12,
2890,
18,
322,
967,
56,
20136,
1626,
1435,
3719,
4791,
67,
2080,
273,
365,
18,
4408,
67,
2867,
67,
2080,
365,
18,
588,
4134,
6364,
7675,
4661,
4134,
12,
80,
67,
1745,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
1684,
3032,
4134,
12,
2890,
16,
293,
67,
869,
16,
293,
67,
529,
16,
293,
67,
3652,
16,
293,
67,
22543,
10742,
16,
293,
67,
5053,
16,
293,
67,
3562,
67,
803,
16,
293,
67,
3562,
67,
2649,
16,
293,
67,
9231,
4672,
468,
4661,
87,
279,
14296,
2699,
358,
326,
394,
80,
715,
2522,
2236,
1807,
3410,
2699,
67,
3202,
273,
365,
18,
588,
4134,
6364,
1435,
6315,
588,
10516,
2668,
3652,
67,
2640,
4631,
6134,
328,
67,
7857,
273,
2699,
67,
3202,
18,
2649,
328,
67,
1745,
273,
2699,
67,
3202,
18,
3432,
328,
67,
1745,
273,
328,
67,
1745,
18,
2079,
2668,
30989,
6354,
1013,
67,
1785,
30989,
2187,
365,
18,
24386,
67,
718,
2
] |
self.ssl = self.metadata['url'].startswith('https:') url = self.metadata['url'][7:] path_start = url.find('/') if path_start == -1: self.host = url self.path = '/' else: self.host = url[:path_start] self.path = url[path_start:]
|
def __init__(self, input_file): try: # Read the configuration file config_path = os.path.expanduser('~/.zope-external-edit') self.config = Configuration(config_path)
|
8e7910ad15aeebcf5888219fb97f14d30975b27f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/8e7910ad15aeebcf5888219fb97f14d30975b27f/zopeedit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
67,
768,
4672,
775,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
67,
768,
4672,
775,
30,
468,
2720,
326,
1664,
585,
642,
67,
803,
273,
1140,
18,
803,
18,
12320,
1355,
2668,
98,
15865,
94,
1306,
17,
9375,
17,
4619,
6134,
365,
18,
1425,
273,
4659,
12,
1425,
67,
803,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.