rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
yMin, yMax = self.axes.get_ylim() | yMin, yMax = subplot.get_ylim() | def addConstantLine(self, name, y, subplotInd=0, doLabel=False, **kargs): """Add a new constant to plot Inputs: - name: name for constant line - y: value of constant line - doLabel: if True then the Line's label is set to name. Set True if you want the line to show up in the legend using name. Set False if you want no... | 8f0db37bc375c56ac27469781575815f4f3b008d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/8f0db37bc375c56ac27469781575815f4f3b008d/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6902,
1670,
12,
2890,
16,
508,
16,
677,
16,
19826,
3866,
33,
20,
16,
741,
2224,
33,
8381,
16,
2826,
79,
1968,
4672,
3536,
986,
279,
394,
5381,
358,
3207,
225,
24472,
30,
300,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6902,
1670,
12,
2890,
16,
508,
16,
677,
16,
19826,
3866,
33,
20,
16,
741,
2224,
33,
8381,
16,
2826,
79,
1968,
4672,
3536,
986,
279,
394,
5381,
358,
3207,
225,
24472,
30,
300,
50... |
nofill=True, fig=fig) | nofill=True, fig=fig, edgecolor='k', linewidth=1., alpha=0.3) | def showFocMec(self): if self.dictFocalMechanism == {}: print "no focal mechanism data." return # make up the figure: fig = plt.figure(1002, figsize=(2, 2)) fig.clear() fig.subplots_adjust(left=0, bottom=0, right=1, top=1) # plot the selected solution Beachball([self.dictFocalMechanism['Strike'], self.dictFocalMechani... | 2237df47fe6c100a62cb6d42142ae3c752cee829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/2237df47fe6c100a62cb6d42142ae3c752cee829/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
42,
504,
49,
557,
12,
2890,
4672,
309,
365,
18,
1576,
42,
23735,
31546,
422,
16648,
1172,
315,
2135,
284,
23735,
12860,
501,
1199,
327,
468,
1221,
731,
326,
7837,
30,
4291,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
42,
504,
49,
557,
12,
2890,
4672,
309,
365,
18,
1576,
42,
23735,
31546,
422,
16648,
1172,
315,
2135,
284,
23735,
12860,
501,
1199,
327,
468,
1221,
731,
326,
7837,
30,
4291,
273,
... |
""" % { 'inputFileList' : inputFileList } | """ % { 'inputFileList' : inputFileList, 'inputFileListPeeker' : inputFileListPeeker } | def _dummyGet_Value(*argv): return %(inputFileList)s | 745a033981d56ffc61797eb8029f7b6c74676870 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/745a033981d56ffc61797eb8029f7b6c74676870/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21050,
967,
67,
620,
30857,
19485,
4672,
327,
8975,
2630,
26098,
13,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21050,
967,
67,
620,
30857,
19485,
4672,
327,
8975,
2630,
26098,
13,
87,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return enclosure["text"] except: try: | if "text" in enclosure: return enclosure["text"] if hasattr(self.entry, "description"): | def getRawDescription(self): self.confirmDBThread() try: enclosure = self.getFirstVideoEnclosure() return enclosure["text"] except: try: return self.entry.description except: return u'' | 377941a22f6262fbfde1dc6d63e1ac7eaed76b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/377941a22f6262fbfde1dc6d63e1ac7eaed76b15/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
3291,
12,
2890,
4672,
365,
18,
10927,
2290,
3830,
1435,
775,
30,
23423,
273,
365,
18,
588,
3759,
10083,
4280,
5919,
1435,
309,
315,
955,
6,
316,
23423,
30,
327,
23423,
9614,
955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10547,
3291,
12,
2890,
4672,
365,
18,
10927,
2290,
3830,
1435,
775,
30,
23423,
273,
365,
18,
588,
3759,
10083,
4280,
5919,
1435,
309,
315,
955,
6,
316,
23423,
30,
327,
23423,
9614,
955,
... |
s.tk.call( s.plf._w, CMD, 'pladv', page ) | s.cmd( 'pladv', page ) | def pladv( s, page ): | 5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
886,
28107,
12,
272,
16,
1363,
262,
30,
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... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
886,
28107,
12,
272,
16,
1363,
262,
30,
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,
... |
def QpCR(p, prec = 20, print_mode = None, halt = 40, check=True): | def QpCR(p, prec = twenty, print_mode = None, halt = forty, check=True): | def QpCR(p, prec = 20, print_mode = None, halt = 40, check=True): return Qp(p=p, prec=prec, print_mode=print_mode, halt=halt, check=check, type = 'capped-rel') | b92340ea12db03897b3c1888cbbf80913f1ff7f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b92340ea12db03897b3c1888cbbf80913f1ff7f8/factory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2238,
84,
5093,
12,
84,
16,
13382,
273,
2339,
319,
93,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
364,
4098,
16,
866,
33,
5510,
4672,
327,
2238,
84,
12,
84,
33,
84,
16,
13382,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2238,
84,
5093,
12,
84,
16,
13382,
273,
2339,
319,
93,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
364,
4098,
16,
866,
33,
5510,
4672,
327,
2238,
84,
12,
84,
33,
84,
16,
13382,
3... |
_('hg tag [-l -m <text> -d <datecode> -u <user> -r <rev>] <name>')), | _('hg tag [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME')), | def verify(ui, repo): """verify the integrity of the repository Verify the integrity of the current repository. This will perform an extensive check of the repository's integrity, validating the hashes and checksums of each entry in the changelog, manifest, and tracked files, as well as the integrity of their crossli... | ce846e629f86d4f87e7b3fe7952bf5fbac3da7b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/ce846e629f86d4f87e7b3fe7952bf5fbac3da7b2/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
4881,
16,
3538,
4672,
3536,
8705,
326,
24425,
434,
326,
3352,
225,
8553,
326,
24425,
434,
326,
783,
3352,
18,
225,
1220,
903,
3073,
392,
1110,
14315,
866,
434,
326,
3352,
1807,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
12,
4881,
16,
3538,
4672,
3536,
8705,
326,
24425,
434,
326,
3352,
225,
8553,
326,
24425,
434,
326,
783,
3352,
18,
225,
1220,
903,
3073,
392,
1110,
14315,
866,
434,
326,
3352,
1807,... |
avail_list = [None] return avail_list | return self._worker_list | def get_available_workers(self): avail_list = [None] return avail_list | 59e43bcbd4268227c074c57e24b291856aa6f88f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8868/59e43bcbd4268227c074c57e24b291856aa6f88f/grid_simulator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5699,
67,
15625,
12,
2890,
4672,
327,
365,
6315,
10124,
67,
1098,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5699,
67,
15625,
12,
2890,
4672,
327,
365,
6315,
10124,
67,
1098,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
old = self.elements[id] | try: old = self.elements[id] except KeyError: logging.warn("KeyError for element %s in " "HTMLChangeOptimizer.calcChanges()", id) return [ (id, html, None) ] | def calcChanges(self, id, html): """Calculate a list of arguments to pass to HTMLArea.changeItems().""" old = self.elements[id] new = OptimizedElement(id, html) self.elements[id] = new return new.calcChanges(old) | 341e21d3656c9f396c355b773c00254f7f8379f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/341e21d3656c9f396c355b773c00254f7f8379f4/templateoptimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
7173,
12,
2890,
16,
612,
16,
1729,
4672,
3536,
8695,
279,
666,
434,
1775,
358,
1342,
358,
3982,
5484,
18,
3427,
3126,
1435,
12123,
775,
30,
1592,
273,
365,
18,
6274,
63,
350,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
7173,
12,
2890,
16,
612,
16,
1729,
4672,
3536,
8695,
279,
666,
434,
1775,
358,
1342,
358,
3982,
5484,
18,
3427,
3126,
1435,
12123,
775,
30,
1592,
273,
365,
18,
6274,
63,
350,
65,... |
self.history.add(text) self.history.reset() | self.history.append(text) | def key_Return(self, entry, event): text = self.getText() # Figure out if that Return meant "next line" or "execute." try: c = code.compile_command(text) except SyntaxError, e: # This could conceivably piss you off if the client's python # doesn't accept keywords that are known to the manhole's # python. point = buffer... | a3e9507567dbcf44a6309492453c5f3d574ec572 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a3e9507567dbcf44a6309492453c5f3d574ec572/gtk2manhole.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
990,
12,
2890,
16,
1241,
16,
871,
4672,
977,
273,
365,
18,
588,
1528,
1435,
468,
18818,
596,
309,
716,
2000,
20348,
315,
4285,
980,
6,
578,
315,
8837,
1199,
775,
30,
276,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
990,
12,
2890,
16,
1241,
16,
871,
4672,
977,
273,
365,
18,
588,
1528,
1435,
468,
18818,
596,
309,
716,
2000,
20348,
315,
4285,
980,
6,
578,
315,
8837,
1199,
775,
30,
276,
27... |
ballBody.setLinearVel((ax/3, ay, mouseAy2)) | ballBody.setLinearVel((ax/3, ay, mouseAy[2])) | def near_callback(args, geom1, geom2): ##TODO: 4P generalization global BLOCK, kicker #global called #called = called + 1 contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: #if not ((geom1 == ballGeom) or (geom2 == ballGeom)): # print "rong collision!" if (geom1 in kickerGeom) or (geo... | 73d04275d5aecffbeaa4958b270fc22e07a236dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/73d04275d5aecffbeaa4958b270fc22e07a236dc/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
468,
6347,
2566,
225,
468,
11777,
273,
2566,
397,
404,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
468,
6347,
2566,
225,
468,
11777,
273,
2566,
397,
404,
22... |
uid=uid, | uid=auid, | def comments(req, ln=cdslang, uid="", comid="", reviews=0): """ View reported comments, filter by either user or a specific comment (only one given at a time) @param ln: language @param uid: user id @param comid: comment id @param reviews: boolean enabled for reviews, disabled for comments """ navtrail_previous_links =... | b0056ed17a8560e8a0db7b05ab945435b27f6e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/b0056ed17a8560e8a0db7b05ab945435b27f6e45/webcommentadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5678,
12,
3658,
16,
7211,
33,
4315,
2069,
539,
16,
4555,
1546,
3113,
532,
350,
1546,
3113,
283,
7061,
33,
20,
4672,
3536,
4441,
14010,
5678,
16,
1034,
635,
3344,
729,
578,
279,
2923,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5678,
12,
3658,
16,
7211,
33,
4315,
2069,
539,
16,
4555,
1546,
3113,
532,
350,
1546,
3113,
283,
7061,
33,
20,
4672,
3536,
4441,
14010,
5678,
16,
1034,
635,
3344,
729,
578,
279,
2923,
2... |
if ( (input.level() == self.prime() or input.level() == 1) | if ( (input.level() == 1 or input.level().prime_factors() == [self.prime()]) | def __call__(self, input): r""" Create an element of this space. Allowable inputs are: - elements of compatible spaces of modular forms or overconvergent modular forms - arbitrary power series in q - lists of elements of the base ring (interpreted as vectors in the basis given by self.gens()). | ed0a3ce8f392224845d699a88cf40b90f375c64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ed0a3ce8f392224845d699a88cf40b90f375c64a/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
810,
4672,
436,
8395,
1788,
392,
930,
434,
333,
3476,
18,
7852,
429,
4540,
854,
30,
225,
300,
2186,
434,
7318,
7292,
434,
681,
2490,
10138,
578,
1879,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
810,
4672,
436,
8395,
1788,
392,
930,
434,
333,
3476,
18,
7852,
429,
4540,
854,
30,
225,
300,
2186,
434,
7318,
7292,
434,
681,
2490,
10138,
578,
1879,
59... |
if m.profile('relASA', 0) != 0: | if m.profile('relAS', 0) != 0: | def __addSurface( self, m ): """ Add surface area to model. | 2f7d0718ebf56c6dbe199c060b2aceb58e133c19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/2f7d0718ebf56c6dbe199c060b2aceb58e133c19/ContactMaster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
11508,
12,
365,
16,
312,
262,
30,
3536,
1436,
9034,
5091,
358,
938,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
11508,
12,
365,
16,
312,
262,
30,
3536,
1436,
9034,
5091,
358,
938,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
heading_depth = depth + 1 | heading_depth = depth | def heading(self, on, depth, id = None, **kw): # remember depth of first heading, and adapt counting depth accordingly if not self._base_depth: self._base_depth = depth | b8f16098349c9446a5cdc1537150ec4d59183a3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/b8f16098349c9446a5cdc1537150ec4d59183a3c/text_html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11053,
12,
2890,
16,
603,
16,
3598,
16,
612,
273,
599,
16,
2826,
9987,
4672,
468,
11586,
3598,
434,
1122,
11053,
16,
471,
5855,
22075,
3598,
15905,
309,
486,
365,
6315,
1969,
67,
5979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11053,
12,
2890,
16,
603,
16,
3598,
16,
612,
273,
599,
16,
2826,
9987,
4672,
468,
11586,
3598,
434,
1122,
11053,
16,
471,
5855,
22075,
3598,
15905,
309,
486,
365,
6315,
1969,
67,
5979,
... |
if self.has("duration") and "movie/size" in avi: self.bit_rate = float(avi["movie/size"].value) * 8 / timedelta2seconds(self.get('duration')) | if self.has("duration") and "/movie/size" in headers: self.bit_rate = float(headers["/movie/size"].value) * 8 / timedelta2seconds(self.get('duration')) | def extractAVI(self, headers): audio_index = 1 for stream in headers.array("stream"): if "stream_hdr/stream_type" not in stream: continue stream_type = stream["stream_hdr/stream_type"].value if stream_type == "vids": if "stream_hdr" in stream: meta = Metadata(self) self.extractAVIVideo(stream["stream_hdr"], meta) self.... | 65246d39e7f61f60de5e5126a9646cb20bd2985f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/65246d39e7f61f60de5e5126a9646cb20bd2985f/riff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
37,
4136,
12,
2890,
16,
1607,
4672,
7447,
67,
1615,
273,
404,
364,
1407,
316,
1607,
18,
1126,
2932,
3256,
6,
4672,
309,
315,
3256,
67,
16587,
19,
3256,
67,
723,
6,
486,
316,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2608,
37,
4136,
12,
2890,
16,
1607,
4672,
7447,
67,
1615,
273,
404,
364,
1407,
316,
1607,
18,
1126,
2932,
3256,
6,
4672,
309,
315,
3256,
67,
16587,
19,
3256,
67,
723,
6,
486,
316,
14... |
soup = unicode(BeautifulSoup(urllib2.urlopen(url).read(), convertEntities=BeautifulSoup.ALL_ENTITIES)) try: start = soup.index('thumbnailViewUrl: "')+19 except ValueError: print >> stderr, 'Error: when parsing the page' self.results[self.page-1] = [] return url = DOMAIN + soup[start:soup.index('"', start)] + QUERY_STRI... | def allvideo(self, arg): '''get a list of videos for given event''' v = int(arg) - 1 if not self.more: self.page = 0 self.results = [] try: url = DOMAIN + self.allvideos[v][1] soup = unicode(BeautifulSoup(urllib2.urlopen(url).read(), convertEntities=BeautifulSoup.ALL_ENTITIES)) try: start = soup.index('thumbnailViewUrl... | 79cf11f15f743217615c27cf0cac806464dfc287 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11589/79cf11f15f743217615c27cf0cac806464dfc287/arteVIDEOS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
9115,
12,
2890,
16,
1501,
4672,
9163,
588,
279,
666,
434,
24752,
364,
864,
871,
26418,
331,
273,
509,
12,
3175,
13,
300,
404,
309,
486,
365,
18,
10161,
30,
365,
18,
2433,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
9115,
12,
2890,
16,
1501,
4672,
9163,
588,
279,
666,
434,
24752,
364,
864,
871,
26418,
331,
273,
509,
12,
3175,
13,
300,
404,
309,
486,
365,
18,
10161,
30,
365,
18,
2433,
273,
3... | |
- [D] - I. Duursma, "Extremal weight enumerators and ultraspherical polynomials" | .. [D] I. Duursma, "Extremal weight enumerators and ultraspherical polynomials" | def sd_duursma_data(C, i): r""" Returns the Duursama data `v` and `m` of this formally s.d. code `C` and the type number `i` in (1,2,3,4). Does *not* check if this code is actually sd. | 4dc974cc0477a4b87cefa14e19bab1ed6473070d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/4dc974cc0477a4b87cefa14e19bab1ed6473070d/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
2544,
25152,
2540,
67,
892,
12,
39,
16,
277,
4672,
436,
8395,
2860,
326,
463,
89,
295,
20353,
69,
501,
1375,
90,
68,
471,
1375,
81,
68,
434,
333,
646,
1230,
272,
18,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
2544,
25152,
2540,
67,
892,
12,
39,
16,
277,
4672,
436,
8395,
2860,
326,
463,
89,
295,
20353,
69,
501,
1375,
90,
68,
471,
1375,
81,
68,
434,
333,
646,
1230,
272,
18,
72,
... |
self.Counter = pickle.load (fo) self.Jobs = pickle.load (fo) self.Workers = pickle.load (fo) | self.Counter = cPickle.load (fo) self.Jobs = cPickle.load (fo) self.Workers = cPickle.load (fo) | def read (self, fo): version = pickle.load(fo) if version == DBVersion: self.Counter = pickle.load (fo) self.Jobs = pickle.load (fo) self.Workers = pickle.load (fo) self._refresh () #self.dump () else: raise Exception ("Database too old, erase the master_db file") self.clear () | 20fa391431a1b90b1c3b6ef9899a92a7762119ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1233/20fa391431a1b90b1c3b6ef9899a92a7762119ad/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
261,
2890,
16,
18261,
4672,
1177,
273,
13379,
18,
945,
12,
617,
13,
309,
1177,
422,
2383,
1444,
30,
365,
18,
4789,
273,
276,
17968,
298,
18,
945,
261,
617,
13,
365,
18,
7276,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
261,
2890,
16,
18261,
4672,
1177,
273,
13379,
18,
945,
12,
617,
13,
309,
1177,
422,
2383,
1444,
30,
365,
18,
4789,
273,
276,
17968,
298,
18,
945,
261,
617,
13,
365,
18,
7276,
27... |
readsize = 100 | orig_size = size readsize = min(100, size) | def readline(self): bufs = [] readsize = 100 while 1: c = self.read(readsize) i = string.find(c, '\n') if i >= 0 or c == '': bufs.append(c[:i+1]) self._unread(c[i+1:]) return string.join(bufs, '') bufs.append(c) readsize = readsize * 2 | 41616ee194e65b23fa508326d7b3788f2d63f362 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/41616ee194e65b23fa508326d7b3788f2d63f362/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
4672,
1681,
87,
273,
5378,
1647,
67,
1467,
273,
963,
855,
1467,
273,
1131,
12,
6625,
16,
963,
13,
1323,
404,
30,
276,
273,
365,
18,
896,
12,
896,
1467,
13,
277,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
4672,
1681,
87,
273,
5378,
1647,
67,
1467,
273,
963,
855,
1467,
273,
1131,
12,
6625,
16,
963,
13,
1323,
404,
30,
276,
273,
365,
18,
896,
12,
896,
1467,
13,
277,
273,... |
def cutcoupling_bfs(self, bfs): | def cutcoupling_bfs(self, bfs, apply=False): | def cutcoupling_bfs(self, bfs): self.initialize() bfs = np.array(bfs) p = self.input_parameters h_pp = p['h'].copy() s_pp = p['s'].copy() cutcoupling(h_pp, s_pp, bfs) for alpha, sigma in enumerate(self.selfenergies): for m in bfs: sigma.h_im[:, m] = 0.0 sigma.s_im[:, m] = 0.0 p['hc%i' % (alpha+1)] = sigma.h_im p['sc%i'... | 2a4069ffa989e5eeef88cad20553f9b5d7f51558 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/2a4069ffa989e5eeef88cad20553f9b5d7f51558/calculators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6391,
71,
28322,
67,
70,
2556,
12,
2890,
16,
324,
2556,
16,
2230,
33,
8381,
4672,
365,
18,
11160,
1435,
324,
2556,
273,
1130,
18,
1126,
12,
70,
2556,
13,
293,
273,
365,
18,
2630,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6391,
71,
28322,
67,
70,
2556,
12,
2890,
16,
324,
2556,
16,
2230,
33,
8381,
4672,
365,
18,
11160,
1435,
324,
2556,
273,
1130,
18,
1126,
12,
70,
2556,
13,
293,
273,
365,
18,
2630,
67,... |
dprint(client.response) | def _save_file(cls, ref, data): ref, client = cls._get_client(ref) path = str(ref.path) dprint(path) try: responses = client.put(path, data) except: dprint(client.response) raise dprint(repr(data)) print client.response.status cls._purge_cache(ref) | 86f487d201afc0c26ccca3cb3fdfd7f84807d2f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/86f487d201afc0c26ccca3cb3fdfd7f84807d2f7/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5688,
67,
768,
12,
6429,
16,
1278,
16,
501,
4672,
1278,
16,
1004,
273,
2028,
6315,
588,
67,
2625,
12,
1734,
13,
589,
273,
609,
12,
1734,
18,
803,
13,
302,
1188,
12,
803,
13,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5688,
67,
768,
12,
6429,
16,
1278,
16,
501,
4672,
1278,
16,
1004,
273,
2028,
6315,
588,
67,
2625,
12,
1734,
13,
589,
273,
609,
12,
1734,
18,
803,
13,
302,
1188,
12,
803,
13,
7... | |
sql=""" insert into run (run_id, batch_id, bstart,bend,bgroup, status_file_name) values (null,%s,%s,%s,%s,%s)""" bindings = [run[x] for x in ( 'batch_id','start','end','group_or_null','status_file_name')] | if run["group_or_null"] is None: sql = ("insert into run " "(run_id, batch_id, bstart, bend, bgroup, status_file_name) " "values (null, %s, %s, %s, null, %s)") binding_names = ('batch_id', 'start', 'end', 'status_file_name') else: sql= ("insert into run " "(run_id, batch_id, bstart,bend,bgroup, status_file_name)" "valu... | def CreateRunRecord(batch_id, run): """Create a run record within the current batch """ run["batch_id"]=batch_id pack_group(run) cursor = connection.cursor() sql=""" insert into run (run_id, batch_id, bstart,bend,bgroup, status_file_name) values (null,%s,%s,%s,%s,%s)""" bindings = [run[x] for x in ( 'batch_id','start'... | fe41d6472864862ddc6c5f76ad63b4d4b7c88370 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2870/fe41d6472864862ddc6c5f76ad63b4d4b7c88370/RunBatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1997,
2115,
12,
5303,
67,
350,
16,
1086,
4672,
3536,
1684,
279,
1086,
1409,
3470,
326,
783,
2581,
225,
3536,
1086,
9614,
5303,
67,
350,
11929,
33,
5303,
67,
350,
2298,
67,
1655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1788,
1997,
2115,
12,
5303,
67,
350,
16,
1086,
4672,
3536,
1684,
279,
1086,
1409,
3470,
326,
783,
2581,
225,
3536,
1086,
9614,
5303,
67,
350,
11929,
33,
5303,
67,
350,
2298,
67,
1655,
... |
if len(Functs[f][1]) == 0: | numRanges = len(Functs[f][1]) if numRanges == 0: | typedef xmlChRangeGroup *xmlChRangeGroupPtr; | c4b8189aa746926a31722287db10cddc8d89a315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/c4b8189aa746926a31722287db10cddc8d89a315/genChRanges.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
2025,
782,
2655,
1114,
380,
2902,
782,
2655,
1114,
5263,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
2025,
782,
2655,
1114,
380,
2902,
782,
2655,
1114,
5263,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise IOError, "end of file reached" | raise IOError("end of file reached") | def copyfileobj(src, dst, length=None): """Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. """ if length == 0: return if length is None: shutil.copyfileobj(src, dst) return BUFSIZE = 16 * 1024 blocks, remainder = divmod(length, BUFSIZE) for b in xrange(blocks): buf = src.... | a080e25938abc4d1161007bb915b3848123a4f64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a080e25938abc4d1161007bb915b3848123a4f64/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29310,
2603,
12,
4816,
16,
3046,
16,
769,
33,
7036,
4672,
3536,
2951,
769,
1731,
628,
17041,
1705,
358,
17041,
3046,
18,
971,
769,
353,
599,
16,
1610,
326,
7278,
913,
18,
3536,
309,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29310,
2603,
12,
4816,
16,
3046,
16,
769,
33,
7036,
4672,
3536,
2951,
769,
1731,
628,
17041,
1705,
358,
17041,
3046,
18,
971,
769,
353,
599,
16,
1610,
326,
7278,
913,
18,
3536,
309,
76... |
frameRun=Frame(frame,borderwidth=2,relief=GROOVE) frameSave=Frame(frame,borderwidth=2,relief=GROOVE) | frameRun=LabelFrame(frame,borderwidth=2,relief=GROOVE, text=' Startup Preferences ') frameSave=LabelFrame(frame,borderwidth=2,relief=GROOVE, text=' Autosave Preferences ') | def CreatePageGeneral(self): #tkVars self.winWidth=StringVar(self) self.winHeight=StringVar(self) self.paraWidth=StringVar(self) self.startupEdit=IntVar(self) self.autoSave=IntVar(self) self.encoding=StringVar(self) self.userHelpBrowser=BooleanVar(self) self.helpBrowser=StringVar(self) #widget creation #body frame=self... | cb3fac2e967e9ef77ede3f9945cfed8702f7e0a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb3fac2e967e9ef77ede3f9945cfed8702f7e0a5/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1964,
12580,
12,
2890,
4672,
468,
16099,
5555,
365,
18,
8082,
2384,
33,
780,
1537,
12,
2890,
13,
365,
18,
8082,
2686,
33,
780,
1537,
12,
2890,
13,
365,
18,
25072,
2384,
33,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1788,
1964,
12580,
12,
2890,
4672,
468,
16099,
5555,
365,
18,
8082,
2384,
33,
780,
1537,
12,
2890,
13,
365,
18,
8082,
2686,
33,
780,
1537,
12,
2890,
13,
365,
18,
25072,
2384,
33,
780,
... |
"""Runs an scene, entering in the Director's main loop. | """Runs a scene, entering in the Director's main loop. | def run(self, scene): """Runs an scene, entering in the Director's main loop. | d6a11bcf3a6cc3d78556f7155ceebc0f3615a5e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/d6a11bcf3a6cc3d78556f7155ceebc0f3615a5e9/director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
9065,
4672,
3536,
9361,
392,
9065,
16,
19014,
316,
326,
29701,
1807,
2774,
2798,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
9065,
4672,
3536,
9361,
392,
9065,
16,
19014,
316,
326,
29701,
1807,
2774,
2798,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
newjobname = createNewJobName() | newjobname = createNewJobName(extJobEntry) | def clashProcess(): # check whether the local job is protected jobMap = self.getJobsMap() if ((self.OVERRIDE_KEY not in jobMap) or (l.clashname not in jobMap[self.OVERRIDE_KEY])): # put shaddowed job in the local 'extend' if not newJob: raise Error, "unsuitable new job" localjob = self.getJob(l.clashname) extList = loc... | e9f54b0f3b7c89346f4afd1778fed9819cf13abf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/e9f54b0f3b7c89346f4afd1778fed9819cf13abf/Config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
927,
961,
2227,
13332,
468,
866,
2856,
326,
1191,
1719,
353,
4750,
1719,
863,
273,
365,
18,
588,
7276,
863,
1435,
309,
14015,
2890,
18,
31514,
67,
3297,
486,
316,
1719,
863,
13,
578,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
927,
961,
2227,
13332,
468,
866,
2856,
326,
1191,
1719,
353,
4750,
1719,
863,
273,
365,
18,
588,
7276,
863,
1435,
309,
14015,
2890,
18,
31514,
67,
3297,
486,
316,
1719,
863,
13,
578,
2... |
for i in rpmtagrequired: | for i in ("name", "version", "release", "arch", "rpmversion"): | def __doVerify(self): self.__verifyWriteHeader(self.hdr.hash, rpmtag, "immutable", self.hdrdata, 1, self.rpmgroup) if self.strict: self.__verifyWriteHeader(self.sig.hash, rpmsigtag, "header_signatures", self.sigdata, 0, None) # disable the utf-8 test per default, should check against self.verbose: if self.strict and No... | 427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2896,
8097,
12,
2890,
4672,
365,
16186,
8705,
3067,
1864,
12,
2890,
18,
16587,
18,
2816,
16,
8715,
1010,
346,
16,
315,
381,
5146,
3113,
365,
18,
16587,
892,
16,
404,
16,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2896,
8097,
12,
2890,
4672,
365,
16186,
8705,
3067,
1864,
12,
2890,
18,
16587,
18,
2816,
16,
8715,
1010,
346,
16,
315,
381,
5146,
3113,
365,
18,
16587,
892,
16,
404,
16,
365,
18,... |
this = apply(_quickfix.new_InterestAccrualDate, args) | this = _quickfix.new_InterestAccrualDate(*args) | def __init__(self, *args): this = apply(_quickfix.new_InterestAccrualDate, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
29281,
8973,
86,
1462,
1626,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
29281,
8973,
86,
1462,
1626,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
... |
print_warning(req, "Nested or mismatched parethneses. Continue search ignoring paretheses.") | print_warning(req, _("Nested or mismatched parentheses detected. Ignoring all parentheses in the query...")) | def search_pattern_parenthesised(req=None, p=None, f=None, m=None, ap=0, of="id", verbose=0, ln=CFG_SITE_LANG): """Search for complex pattern 'p' containing parenthesis within field 'f' according to matching type 'm'. Return hitset of recIDs. For more details on the parameters see 'search_pattern' """ # Try searching... | ff1e2379f29a74718983650ab5431a39bbbc3dad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/ff1e2379f29a74718983650ab5431a39bbbc3dad/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4951,
67,
13012,
7915,
5918,
12,
3658,
33,
7036,
16,
293,
33,
7036,
16,
284,
33,
7036,
16,
312,
33,
7036,
16,
513,
33,
20,
16,
434,
1546,
350,
3113,
3988,
33,
20,
16,
721... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4951,
67,
13012,
7915,
5918,
12,
3658,
33,
7036,
16,
293,
33,
7036,
16,
284,
33,
7036,
16,
312,
33,
7036,
16,
513,
33,
20,
16,
434,
1546,
350,
3113,
3988,
33,
20,
16,
721... |
self.mcp._schedule_next_run(jo) | self.mcp.schedule_next_run(jo) | def call_now(time, func, next): next.start() next.runs[0].succeed() | 17e2fcbf877ffacf227333eb3668168470abae66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/17e2fcbf877ffacf227333eb3668168470abae66/mcp_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
3338,
12,
957,
16,
1326,
16,
1024,
4672,
1024,
18,
1937,
1435,
1024,
18,
20152,
63,
20,
8009,
87,
5286,
5288,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
745,
67,
3338,
12,
957,
16,
1326,
16,
1024,
4672,
1024,
18,
1937,
1435,
1024,
18,
20152,
63,
20,
8009,
87,
5286,
5288,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
elif v.lower () in ('false', 'f'): | elif v.lower() in ('false', 'f'): | def get_typed_tag_value (v): """Uses some simple rules to extract simple typed values from strings. Specifically: true and t (any case) return True (boolean) false and f (any case) return False (boolean) simple integers (possibly signed) are returned as ints simple floats (possibly signed) are returned as floats (suppo... | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11585,
67,
2692,
67,
1132,
261,
90,
4672,
3536,
15128,
2690,
4143,
2931,
358,
2608,
4143,
9092,
924,
628,
2064,
18,
23043,
1230,
30,
638,
471,
268,
261,
2273,
648,
13,
327,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11585,
67,
2692,
67,
1132,
261,
90,
4672,
3536,
15128,
2690,
4143,
2931,
358,
2608,
4143,
9092,
924,
628,
2064,
18,
23043,
1230,
30,
638,
471,
268,
261,
2273,
648,
13,
327,
10... |
raise NoSuchNode(new_path, new_rev, 'The Target for Diff is invalid') | raise NoSuchNode(new_path, new_rev, 'The Target for Diff is invalid') | def get_changes(self, old_path, old_rev, new_path, new_rev, ignore_ancestry=0): old_node = new_node = None old_rev = self.normalize_rev(old_rev) new_rev = self.normalize_rev(new_rev) if self.has_node(old_path, old_rev): old_node = self.get_node(old_path, old_rev) else: raise NoSuchNode(old_path, old_rev, 'The Base for ... | 3dd37faa9ebf0aaf1d3a2ee519e52fb03d0756d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/3dd37faa9ebf0aaf1d3a2ee519e52fb03d0756d0/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6329,
12,
2890,
16,
1592,
67,
803,
16,
1592,
67,
9083,
16,
394,
67,
803,
16,
394,
67,
9083,
16,
2305,
67,
6872,
698,
33,
20,
4672,
1592,
67,
2159,
273,
394,
67,
2159,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6329,
12,
2890,
16,
1592,
67,
803,
16,
1592,
67,
9083,
16,
394,
67,
803,
16,
394,
67,
9083,
16,
2305,
67,
6872,
698,
33,
20,
4672,
1592,
67,
2159,
273,
394,
67,
2159,
273,... |
def history(self, direction='descending', dre=re.compile('^\d+$')): | def history(self, direction='descending', dre=re.compile('^\d+$'), limit=None): | def history(self, direction='descending', dre=re.compile('^\d+$')): if not self.is_view_ok(): return self._('[hidden]') | e6efd941449ea57a93db7fd4968d107b6c2f3b78 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1906/e6efd941449ea57a93db7fd4968d107b6c2f3b78/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
12,
2890,
16,
4068,
2218,
5569,
2846,
2187,
302,
266,
33,
266,
18,
11100,
2668,
17134,
72,
15,
9227,
3631,
1800,
33,
7036,
4672,
309,
486,
365,
18,
291,
67,
1945,
67,
601,
13332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4927,
12,
2890,
16,
4068,
2218,
5569,
2846,
2187,
302,
266,
33,
266,
18,
11100,
2668,
17134,
72,
15,
9227,
3631,
1800,
33,
7036,
4672,
309,
486,
365,
18,
291,
67,
1945,
67,
601,
13332,... |
srcdir = os.path.normpath ( os.path.join (GPS.Project.root().file().directory(), "..", "docs", "gtkada_rm")) | srcdir = os.path.normpath (GPS.Project.root().file().directory()) | def on_match (self, docgen, attrs, value, entity_name, entity_href): file = docgen.get_current_file() srcdir = os.path.normpath ( os.path.join (GPS.Project.root().file().directory(), "..", "docs", "gtkada_rm")) fullfile = os.path.join (srcdir, value) | 72870e5aa42e0184e76fca67775fabf10005f013 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6808/72870e5aa42e0184e76fca67775fabf10005f013/docgen_gtkada.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1916,
261,
2890,
16,
997,
4507,
16,
3422,
16,
460,
16,
1522,
67,
529,
16,
1522,
67,
7547,
4672,
585,
273,
997,
4507,
18,
588,
67,
2972,
67,
768,
1435,
1705,
1214,
273,
1140,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1916,
261,
2890,
16,
997,
4507,
16,
3422,
16,
460,
16,
1522,
67,
529,
16,
1522,
67,
7547,
4672,
585,
273,
997,
4507,
18,
588,
67,
2972,
67,
768,
1435,
1705,
1214,
273,
1140,... |
def __init__(self, ssl_context=None): | def __init__(self, ssl_context=None, *args, **kw): if getattr(Transport, '__init__', None) is not None: Transport.__init__(self, *args, **kw) | def __init__(self, ssl_context=None): if ssl_context is None: self.ssl_ctx=SSL.Context('sslv23') else: self.ssl_ctx=ssl_context | 43f2755b61e059b0f28e2879b24517802cbb8ffe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10522/43f2755b61e059b0f28e2879b24517802cbb8ffe/m2xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5832,
67,
2472,
33,
7036,
16,
380,
1968,
16,
2826,
9987,
4672,
309,
3869,
12,
6568,
16,
4940,
2738,
972,
2187,
599,
13,
353,
486,
599,
30,
9514,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5832,
67,
2472,
33,
7036,
16,
380,
1968,
16,
2826,
9987,
4672,
309,
3869,
12,
6568,
16,
4940,
2738,
972,
2187,
599,
13,
353,
486,
599,
30,
9514,
16186,
... |
if self.InterestDebug: print 'INTEREST DEBUG: addInterest(): handle=%s, parent=%s, zoneIds=%s, description=%s, event=%s, auto=%s' % ( | if self.__verbose(): print 'CR::INTEREST.addInterest(handle=%s, parentId=%s, zoneIdList=%s, description=%s, event=%s, auto=%s)' % ( | def addInterest(self, parentId, zoneIdList, description, event=None, auto=False): """ Look into a (set of) zone(s). """ assert DoInterestManager.notify.debugCall() #assert not self._noNewInterests handle = self._getNextHandle() if self._noNewInterests: DoInterestManager.notify.warning( "addInterest: addingInterests on... | 0ad3bac423d39b998827d489a97d947c4e85743a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/0ad3bac423d39b998827d489a97d947c4e85743a/DoInterestManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
29281,
12,
2890,
16,
11582,
16,
4157,
22117,
16,
2477,
16,
871,
33,
7036,
16,
3656,
33,
8381,
4672,
3536,
10176,
1368,
279,
261,
542,
434,
13,
4157,
12,
87,
2934,
3536,
225,
1815,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
29281,
12,
2890,
16,
11582,
16,
4157,
22117,
16,
2477,
16,
871,
33,
7036,
16,
3656,
33,
8381,
4672,
3536,
10176,
1368,
279,
261,
542,
434,
13,
4157,
12,
87,
2934,
3536,
225,
1815,... |
fslabel=data[4].split('=')[1] fsvendor=data[6].split('=')[1] | fslabel=self.get_value(data, "ID_FS_LABEL") fsvendor=self.get_value(data, "ID_VENDOR") | def get_local_mountpoint(self, line): print_debug( line ) desktop=os.path.expanduser("~/Desktop") data=line.split('#') fslabel=data[4].split('=')[1] fsvendor=data[6].split('=')[1] counter=1 if fslabel != "": print_debug ( "get_local_mountpoint() have label...." ) if not os.path.isdir(desktop + "/" + fslabel): print_deb... | e062fae2efc2130227b7a2218ed381f3b24530ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/e062fae2efc2130227b7a2218ed381f3b24530ac/tcos-devices.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3729,
67,
4778,
1153,
12,
2890,
16,
980,
4672,
1172,
67,
4148,
12,
980,
262,
21304,
33,
538,
18,
803,
18,
12320,
1355,
2932,
98,
19,
27583,
7923,
501,
33,
1369,
18,
4939,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3729,
67,
4778,
1153,
12,
2890,
16,
980,
4672,
1172,
67,
4148,
12,
980,
262,
21304,
33,
538,
18,
803,
18,
12320,
1355,
2932,
98,
19,
27583,
7923,
501,
33,
1369,
18,
4939,
26... |
class ILinkSet(Interface): """A set of links. Raises ValueError on an attempt to add duplicate members. Links with the same reltype, role and target are considered to be equal, for purposes of set membership. So, a link is a duplicate member if it has the same reltype, role and target as an existing member. """ d... | def replacedBy(link): """The placeholder was replaced in the link set by the given link.""" | 915f7ac30714b8ae022b61aa0d4f518ca4012a2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/915f7ac30714b8ae022b61aa0d4f518ca4012a2a/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8089,
858,
12,
1232,
4672,
3536,
1986,
6695,
1703,
8089,
316,
326,
1692,
444,
635,
326,
864,
1692,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8089,
858,
12,
1232,
4672,
3536,
1986,
6695,
1703,
8089,
316,
326,
1692,
444,
635,
326,
864,
1692,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
f.write(data[0]) f.write(data[1]) f.close() f = self.opener(self.indexfile, "a") else: f = self.opener(self.indexfile, "a+") f.seek(0, 2) transaction.add(self.indexfile, f.tell(), self.count() - 1) | dfh.write(data[0]) dfh.write(data[1]) dfh.flush() else: ifh.seek(0, 2) transaction.add(self.indexfile, ifh.tell(), self.count() - 1) | def addrevision(self, text, transaction, link, p1=None, p2=None, d=None): """add a revision to the log | 7331974d3fca91704af17f0e8306f87bbf410fe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/7331974d3fca91704af17f0e8306f87bbf410fe8/revlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13057,
12,
2890,
16,
977,
16,
2492,
16,
1692,
16,
293,
21,
33,
7036,
16,
293,
22,
33,
7036,
16,
302,
33,
7036,
4672,
3536,
1289,
279,
6350,
358,
326,
613,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13057,
12,
2890,
16,
977,
16,
2492,
16,
1692,
16,
293,
21,
33,
7036,
16,
293,
22,
33,
7036,
16,
302,
33,
7036,
4672,
3536,
1289,
279,
6350,
358,
326,
613,
2,
-100,
-100,
-100,
... |
d[label] = [flavor] else: | for affIdx, flavorList in enumerate(flavorItems[label]): if len(affQueries) <= affIdx: queryList = [] affQueries.append(queryList) else: queryList = affQueries[affIdx] for idx, flavor in enumerate(flavorList): if len(queryList) <= idx: d = {} queryList.append(d) else: d = queryList[idx] d[label] = [flavor] self.query[n... | def addQuery(self, troveTup, labelPath, flavorList): name = troveTup[0] self.map[name] = [troveTup, labelPath] self.exactFlavorMap[name] = flavorList | a7b181180c87f3f2da48cfc25d9da64b76052710 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/a7b181180c87f3f2da48cfc25d9da64b76052710/findtrove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24087,
12,
2890,
16,
23432,
537,
56,
416,
16,
1433,
743,
16,
19496,
682,
4672,
508,
273,
23432,
537,
56,
416,
63,
20,
65,
365,
18,
1458,
63,
529,
65,
273,
306,
88,
303,
537,
56,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24087,
12,
2890,
16,
23432,
537,
56,
416,
16,
1433,
743,
16,
19496,
682,
4672,
508,
273,
23432,
537,
56,
416,
63,
20,
65,
365,
18,
1458,
63,
529,
65,
273,
306,
88,
303,
537,
56,
41... |
self.disableHandles(['z-post','z-ring','z-disc']) | self.disableHandles(['z-post','z-ring','z-disc','z-scale']) | def disableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.disableHandle(handle) elif handles == 'x': self.disableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.disableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.disableHandles(['z-post','z-rin... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
8788,
12,
2890,
16,
7372,
4672,
309,
618,
12,
24111,
13,
422,
1953,
18,
19366,
30,
364,
1640,
316,
7372,
30,
365,
18,
8394,
3259,
12,
4110,
13,
1327,
7372,
422,
296,
92,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4056,
8788,
12,
2890,
16,
7372,
4672,
309,
618,
12,
24111,
13,
422,
1953,
18,
19366,
30,
364,
1640,
316,
7372,
30,
365,
18,
8394,
3259,
12,
4110,
13,
1327,
7372,
422,
296,
92,
4278,
... |
changelog = open("./../../../CHANGELOG", 'r') | def __init__(self): BaseParentWindow.__init__(self, "About Window") | 2adf0e0fea0794d2c0e1c7330ea4a817621e6efa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/2adf0e0fea0794d2c0e1c7330ea4a817621e6efa/about.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3360,
3054,
3829,
16186,
2738,
972,
12,
2890,
16,
315,
24813,
6076,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3360,
3054,
3829,
16186,
2738,
972,
12,
2890,
16,
315,
24813,
6076,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.inLearner = learner | self.in_learner = learner | def setLearner(self, learner): self.inLearner = learner | cd667906d81f50c59a31a1d4e98077bb9b404cc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/cd667906d81f50c59a31a1d4e98077bb9b404cc7/OWPythonScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1682,
24834,
12,
2890,
16,
884,
24834,
4672,
365,
18,
267,
67,
298,
24834,
273,
884,
24834,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1682,
24834,
12,
2890,
16,
884,
24834,
4672,
365,
18,
267,
67,
298,
24834,
273,
884,
24834,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if cp.has_option('followup-triggers','hipe-output-cache'): cacheString = string.strip(cp.get('followup-triggers','hipe-output-cache')) else: cacheString = '' if cp.has_option('followup-triggers','triggers-tag'): self.triggerTag = string.strip(cp.get('followup-triggers','triggers-tag')) else: self.triggerTag = '' if ... | def __init__(self, options,cp, currentPath): UserDict.__init__(self) self.dir = os.listdir(os.getcwd()) self.options = options self.types = ['TMPLTBANK', 'TRIGBANK', 'INSPIRAL_FIRST', \ 'INSPIRAL_SECOND', 'THINCA_FIRST', 'THINCA_SECOND'] self.iniNames = ['tmpltbank-path', 'trigbank-path', 'first-inspiral-path', \ 'seco... | c7b7ecdeb6da0bf763f6689f64a704da6b52d0f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/c7b7ecdeb6da0bf763f6689f64a704da6b52d0f3/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
4057,
16,
18027,
4672,
2177,
5014,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1214,
273,
1140,
18,
1098,
1214,
12,
538,
18,
588,
11089,
10756,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
4057,
16,
18027,
4672,
2177,
5014,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1214,
273,
1140,
18,
1098,
1214,
12,
538,
18,
588,
11089,
10756,
365... | |
result.append(value[0]) result.append(value[1]) tuple(result) | result.append((value[0],value[1])) | def result_insert(result,descr,value,map_so,axis="y",pap=0,xvals=None): """ This function takes value and puts it into the result in an appropriate fashion. The description is used for decision making. Parameters: ---------- -> result is a SOM, SO, list or tuple -> descr is the object descriptor -> value is a tuple co... | 5d0216e70017301affdcf752a30a885d7fc5240e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/5d0216e70017301affdcf752a30a885d7fc5240e/hlr_data_helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
67,
6387,
12,
2088,
16,
28313,
16,
1132,
16,
1458,
67,
2048,
16,
4890,
1546,
93,
3113,
84,
438,
33,
20,
16,
92,
4524,
33,
7036,
4672,
3536,
1220,
445,
5530,
460,
471,
8200,
518,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
563,
67,
6387,
12,
2088,
16,
28313,
16,
1132,
16,
1458,
67,
2048,
16,
4890,
1546,
93,
3113,
84,
438,
33,
20,
16,
92,
4524,
33,
7036,
4672,
3536,
1220,
445,
5530,
460,
471,
8200,
518,... |
A->A B->G C->F D->G E->G F->F G->G H->G I->K J->G K->K L->A M->G | A->A B->G C->F D->G E->G F->F G->G H->G I->K J->G K->K L->A M->G | ... def __str__(self): | 944a38a57407e7641b7c63f5341e83cbe0da7480 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/944a38a57407e7641b7c63f5341e83cbe0da7480/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
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... |
aa_rows[row['aa']] = row | aa_rows[row[aa_field]] = row | def _execute(self): """ Private method for executing query, always runs query and then updates cache """ annotations = {} aa_rows = {} # main aggregate functions for field in self.angles: annotations['min_%s' % field] = Min(field) annotations['max_%s' % field] = Max(field) annotations['avg_%s' % field] = DirectionalAv... | 74f9b2a1bd92e5595f4550b8f493b12de94b2b27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/74f9b2a1bd92e5595f4550b8f493b12de94b2b27/directional_stddev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
12,
2890,
4672,
3536,
8726,
707,
364,
11274,
843,
16,
3712,
7597,
843,
471,
1508,
4533,
1247,
3536,
5617,
273,
2618,
12391,
67,
3870,
273,
2618,
225,
468,
2774,
7047,
4186,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
12,
2890,
4672,
3536,
8726,
707,
364,
11274,
843,
16,
3712,
7597,
843,
471,
1508,
4533,
1247,
3536,
5617,
273,
2618,
12391,
67,
3870,
273,
2618,
225,
468,
2774,
7047,
4186,
36... |
return "Plain%s%s" % (read, needsReply) | return "Plain%s%s%s" % (draft, read, needsReply) | def getCommStateName(commState): """ Return the actual name for this state """ read = (commState & CommunicationStatus.READ) and "Read" or "Unread" needsReply = (commState & CommunicationStatus.NEEDS_REPLY) and "NeedsReply" or "" # These don't depend on in vs out, so check them first. if commState & CommunicationStat... | e885fccf4c01b0b01ccc580491779502d9e1fafd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/e885fccf4c01b0b01ccc580491779502d9e1fafd/summaryblocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12136,
1119,
461,
12,
5702,
1119,
4672,
3536,
2000,
326,
3214,
508,
364,
333,
919,
3536,
225,
855,
273,
261,
5702,
1119,
473,
31598,
1482,
18,
6949,
13,
471,
315,
1994,
6,
578,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12136,
1119,
461,
12,
5702,
1119,
4672,
3536,
2000,
326,
3214,
508,
364,
333,
919,
3536,
225,
855,
273,
261,
5702,
1119,
473,
31598,
1482,
18,
6949,
13,
471,
315,
1994,
6,
578,
31... |
@bigmemtest(minsize=_2G // 3 + 2, memuse=8 + 3) | @bigmemtest(minsize=_2G // 3 + 2, memuse=8 + 3 * character_size) | def basic_test_repr(self, size): l = [0] * size s = repr(l) # The repr of a list of 0's is exactly three times the list length. self.assertEquals(len(s), size * 3) self.assertEquals(s[:5], '[0, 0') self.assertEquals(s[-5:], '0, 0]') self.assertEquals(s.count('0'), size) | f34c9b95c8f8623e46987da3a8f3e25145d03836 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/f34c9b95c8f8623e46987da3a8f3e25145d03836/test_bigmem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5337,
67,
3813,
67,
12715,
12,
2890,
16,
963,
4672,
328,
273,
306,
20,
65,
380,
963,
272,
273,
8480,
12,
80,
13,
468,
1021,
8480,
434,
279,
666,
434,
374,
1807,
353,
8950,
8925,
4124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5337,
67,
3813,
67,
12715,
12,
2890,
16,
963,
4672,
328,
273,
306,
20,
65,
380,
963,
272,
273,
8480,
12,
80,
13,
468,
1021,
8480,
434,
279,
666,
434,
374,
1807,
353,
8950,
8925,
4124... |
cmd_opts[command] = ("command line", value) | cmd_opts[name] = ("command line", value) | def _parse_command_opts (self, parser, args): | 83524a79f442571b7411524d49f6f5fa8e189c0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/83524a79f442571b7411524d49f6f5fa8e189c0d/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
3076,
67,
4952,
261,
2890,
16,
2082,
16,
833,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
3076,
67,
4952,
261,
2890,
16,
2082,
16,
833,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
f = open(os.path.expanduser('~/.bpython.ini')) | f = open(os.path.expanduser('~/.bpython.ini'), 'w') | def migrate_rc(path): """Use the shlex module to convert the old configuration file to the new format""" import shlex f = open(path) parser = shlex.shlex(f) bools = { 'true': True, 'yes': True, 'on': True, 'false': False, 'no': False, 'off': False } config = ConfigParser() config.add_section('general') while True: k... | bbf1cab3a0dd93834f1159784740570cbc010c93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/bbf1cab3a0dd93834f1159784740570cbc010c93/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
67,
1310,
12,
803,
4672,
3536,
3727,
326,
27180,
1605,
358,
1765,
326,
1592,
1664,
585,
358,
326,
394,
740,
8395,
1930,
27180,
284,
273,
1696,
12,
803,
13,
2082,
273,
27180,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
67,
1310,
12,
803,
4672,
3536,
3727,
326,
27180,
1605,
358,
1765,
326,
1592,
1664,
585,
358,
326,
394,
740,
8395,
1930,
27180,
284,
273,
1696,
12,
803,
13,
2082,
273,
27180,
18,
... |
BaseRef = None def __init__(self, other=None, indirection=None): | def __init__(self, indirection, other=None): | def __repr__(self): return self.getString() | 88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
365,
18,
588,
780,
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,
... | [
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,
1001,
12715,
972,
12,
2890,
4672,
327,
365,
18,
588,
780,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
descent. Default strongloy recommended. | descent. *Default strongly recommended.* | def two_descent(self, verbose = True, selmer_only = False, first_limit = 20, second_limit = 8, n_aux = -1, second_descent = True): """ Compute 2-descent data for this curve. | 9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2795,
67,
5569,
319,
12,
2890,
16,
3988,
273,
1053,
16,
357,
6592,
67,
3700,
273,
1083,
16,
1122,
67,
3595,
273,
4200,
16,
2205,
67,
3595,
273,
1725,
16,
290,
67,
18196,
273,
300,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2795,
67,
5569,
319,
12,
2890,
16,
3988,
273,
1053,
16,
357,
6592,
67,
3700,
273,
1083,
16,
1122,
67,
3595,
273,
4200,
16,
2205,
67,
3595,
273,
1725,
16,
290,
67,
18196,
273,
300,
21... |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) | navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) | def kb_show_dependencies(req, kb, ln=config.cdslang, sortby="to"): """ Shows the dependencies of a given kb @param ln language @param kb the kb id to show @param sortby the sorting criteria ('from' or 'to') """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(... | f08fe81d00d74f462e6a931c4d621a61c821b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f08fe81d00d74f462e6a931c4d621a61c821b5b1/bibformatadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4500,
67,
11037,
12,
3658,
16,
9182,
16,
7211,
33,
1425,
18,
4315,
2069,
539,
16,
1524,
1637,
1546,
869,
6,
4672,
3536,
9674,
87,
326,
5030,
434,
279,
864,
9182,
225,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9182,
67,
4500,
67,
11037,
12,
3658,
16,
9182,
16,
7211,
33,
1425,
18,
4315,
2069,
539,
16,
1524,
1637,
1546,
869,
6,
4672,
3536,
9674,
87,
326,
5030,
434,
279,
864,
9182,
225,
632,
... |
self.client.login(username=self.username, password=self.password) | self.client.login(username=self.user, password=self.passwords[self.user]) | def setUp(self): """ The set up here makes the test use the repository and backup directory specified in the module. Once I find out how to switch databases on the fly to pull it out from the main database instead of the one that's created temporarily for tests, you won't have to specify my_repo_dir and my_backup_dir i... | 8ca24efef675a4beadfcdf43741de08c4d4cba3f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14843/8ca24efef675a4beadfcdf43741de08c4d4cba3f/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
1021,
444,
731,
2674,
7297,
326,
1842,
999,
326,
3352,
471,
5114,
1867,
1269,
316,
326,
1605,
18,
12419,
467,
1104,
596,
3661,
358,
1620,
16358,
603,
326,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
12,
2890,
4672,
3536,
1021,
444,
731,
2674,
7297,
326,
1842,
999,
326,
3352,
471,
5114,
1867,
1269,
316,
326,
1605,
18,
12419,
467,
1104,
596,
3661,
358,
1620,
16358,
603,
326,
21... |
def f_iter(tokens, s): | def _many(tokens, s): | def f_iter(tokens, s): 'Iterative implementation preventing the stack overflow.' res = [] try: while True: (v, s) = p.run(tokens, s) res.append(v) except NoParseError, e: return (res, e.state) | a98e7a502632761f6288209a1068fea4b06004b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11574/a98e7a502632761f6288209a1068fea4b06004b2/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9353,
12,
7860,
16,
272,
4672,
296,
2360,
1535,
4471,
5309,
310,
326,
2110,
9391,
1093,
400,
273,
5378,
775,
30,
1323,
1053,
30,
261,
90,
16,
272,
13,
273,
293,
18,
2681,
12,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9353,
12,
7860,
16,
272,
4672,
296,
2360,
1535,
4471,
5309,
310,
326,
2110,
9391,
1093,
400,
273,
5378,
775,
30,
1323,
1053,
30,
261,
90,
16,
272,
13,
273,
293,
18,
2681,
12,
78... |
if int(val) <= 1: | if val <= 1: | def _psr_start(self, name, attrs): | 06d3f3314467b15776b824d03beb76fe28b69f46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/06d3f3314467b15776b824d03beb76fe28b69f46/form.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1121,
86,
67,
1937,
12,
2890,
16,
508,
16,
3422,
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,
... | [
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,
389,
1121,
86,
67,
1937,
12,
2890,
16,
508,
16,
3422,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
s = SeqDict() s[10] = 'ten' s[20] = 'twenty' s[30] = 'thirty' del s[20] verify(s[10] == 'ten') verify(s.keys() == [10, 30]) verify(s.has_key(10)) verify(not s.has_key(20)) verify(10 in s) verify(20 not in s) verify([k for k in s] == [10, 30]) verify(len(s) == 2) verify(list(s.iteritems()) == [(10,'ten'), (30, 't... | class UserDictMixinTest(unittest.TestCase): def test_all(self): s = SeqDict() s[10] = 'ten' s[20] = 'twenty' s[30] = 'thirty' del s[20] self.assertEqual(s[10], 'ten') self.assertEqual(s.keys(), [10, 30]) self.assert_(s.has_key(10)) self.assert_(not s.has_key(20)) self.assert_(10 in s) self.assert_(20 not ... | def keys(self): return list(self.keylist) | e28be5968683241e4a785108a0023fc49ecbb03a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e28be5968683241e4a785108a0023fc49ecbb03a/test_userdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
666,
12,
2890,
18,
856,
1098,
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,... | [
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,
1311,
12,
2890,
4672,
327,
666,
12,
2890,
18,
856,
1098,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
iVBORwoaCgAAAA1JSERSAAAARgAAAAsIAgAAAE2KbGEAAAABc1JHQgCuzhzpAAAABGdBTUEAALGP\nC /xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABOElEQVRI\nS92 UPQ6DMAyF29tyCI7ACbgAOzsza1dGRjZuQD/1SZblJFDaSlXrARnHdt6Lf67btl3+TIwSStBl\n8SLuh 24KqaoK52VZ0Od5Rh/HEX1dV3RO0/w7N2ZhZDNEfAY6732GUtd1RqPve/S2bUkLMXROv0BJ\nmAyKL... | iVBORw0KGgoAAAANSUhEUgAAAEYAAAALCAIAAABNimxhAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAThJREFU SEvdlD0OgzAMhdvbcgiOwAm4ADs7M2tXRkY2bkA/9UmW5SRQ2kpV6wEZx3bei3+u27Zd/kyMEkrQ ZfEi7oduCqmqCudlWdDneUYfxxF9XVd0TtP8OzdmYWQzRHwGOu99hlLXdUaj73v0tm1JCzF0Tr9A SZgMii+OZ25u... | def run(self): methods = [ method for method in dir(self) if callable(getattr(self, method)) and method.startswith("test")] for method in methods: print ".", sys.stdout.flush() test_member_function = getattr(self, method) try: self.description = str(test_member_function.__doc__) self.context = method test_member_functi... | 18efe4af4d181273dd00ce311d4181c733cc29e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/18efe4af4d181273dd00ce311d4181c733cc29e1/appclienttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2590,
273,
306,
707,
364,
707,
316,
1577,
12,
2890,
13,
309,
4140,
12,
588,
1747,
12,
2890,
16,
707,
3719,
471,
707,
18,
17514,
1918,
2932,
3813,
7923,
65,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2590,
273,
306,
707,
364,
707,
316,
1577,
12,
2890,
13,
309,
4140,
12,
588,
1747,
12,
2890,
16,
707,
3719,
471,
707,
18,
17514,
1918,
2932,
3813,
7923,
65,
364,
... |
if True or item not in (x.name for x in load): load.append(dep) | load.append(dep) | def buildShallowDeps(): | 555ffb8bf8e09ae5e2daa910173022d519bc6381 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/555ffb8bf8e09ae5e2daa910173022d519bc6381/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1555,
5965,
14430,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1361,
1555,
5965,
14430,
13332,
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,... |
rois = self.parse_roi() | rois = self.parse_roi(columns) | def parse_and_populate(self): """ Calls parse and populate, updating the OmeroTables instance backing our results and the OMERO database itself. """ columns = self.parse() rois = self.parse_roi() if columns is not None: self.populate(columns, rois) | 2349d3dce3df3d5c74a92d50939c7530f02f708b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/2349d3dce3df3d5c74a92d50939c7530f02f708b/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
464,
67,
19936,
12,
2890,
4672,
3536,
23665,
1109,
471,
6490,
16,
9702,
326,
25645,
2439,
6905,
791,
15394,
3134,
1686,
471,
326,
28839,
13309,
2063,
6174,
18,
3536,
2168,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
464,
67,
19936,
12,
2890,
4672,
3536,
23665,
1109,
471,
6490,
16,
9702,
326,
25645,
2439,
6905,
791,
15394,
3134,
1686,
471,
326,
28839,
13309,
2063,
6174,
18,
3536,
2168,
273,
... |
justSet=False prev = None ref = eServiceReference('%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types)) if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: justSet=True self.clearPath() self.enterPath(ref, True) if justSet: serviceHandler = eService... | refstr = '%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types) if not self.preEnterPath(refstr): ref = eServiceReference(refstr) justSet=False prev = None if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: currentRoot = self.getRoot() if currentRoo... | def showSatellites(self): justSet=False prev = None ref = eServiceReference('%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types)) if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: justSet=True self.clearPath() self.enterPath(ref, True) if justSet:... | 784137020888a4be481b786d2feddf6537663ec8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/784137020888a4be481b786d2feddf6537663ec8/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
15163,
1165,
2997,
12,
2890,
4672,
2537,
694,
33,
8381,
2807,
273,
599,
1278,
273,
425,
1179,
2404,
29909,
87,
4571,
348,
1777,
4503,
1285,
3991,
10205,
6953,
25344,
2555,
11,
17105,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
15163,
1165,
2997,
12,
2890,
4672,
2537,
694,
33,
8381,
2807,
273,
599,
1278,
273,
425,
1179,
2404,
29909,
87,
4571,
348,
1777,
4503,
1285,
3991,
10205,
6953,
25344,
2555,
11,
17105,... |
print "Extra node added to avoid new clips." | def _routeLine(self, line): # we have to get a list of all coGlyphs allGlyphs = self._graphFrame.canvas.getObjectsOfClass(wxpc.coGlyph) | 432bb9f36bcf2f22e46da966b8044c171ca3392b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/432bb9f36bcf2f22e46da966b8044c171ca3392b/graphEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5547,
1670,
12,
2890,
16,
980,
4672,
225,
468,
732,
1240,
358,
336,
279,
666,
434,
777,
1825,
25399,
777,
25399,
273,
365,
6315,
4660,
3219,
18,
15424,
18,
588,
4710,
951,
797,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5547,
1670,
12,
2890,
16,
980,
4672,
225,
468,
732,
1240,
358,
336,
279,
666,
434,
777,
1825,
25399,
777,
25399,
273,
365,
6315,
4660,
3219,
18,
15424,
18,
588,
4710,
951,
797,
12... | |
compile_dir(dir, maxlevels, ddir, force) | success = success and compile_dir(dir, maxlevels, ddir, force) | def main(): """Script main program.""" import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'lfd:') except getopt.error, msg: print msg print "usage: compileall [-l] [-f] [-d destdir] [directory ...]" print "-l: don't recurse down" print "-f: force rebuild even if timestamps are up-to-date" print "-d destdir: pu... | da80c130def30dd3e1fcbaac1638e42aac965d31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/da80c130def30dd3e1fcbaac1638e42aac965d31/compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
3651,
2774,
5402,
12123,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
80,
8313,
2497,
13,
1335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
3651,
2774,
5402,
12123,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
80,
8313,
2497,
13,
1335... |
return self._DictIterator(3,self) | return self._DictIterator(3) | def iteritems(self): """ obj.iteritems() -> an iterator of over the (key,value) pairs of obj ordered by self.field_order """ return self._DictIterator(3,self) | 579d2b0d74c64f5c9a73587dd87d4cda3aafef04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/579d2b0d74c64f5c9a73587dd87d4cda3aafef04/MythBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7674,
12,
2890,
4672,
3536,
1081,
18,
2165,
3319,
1435,
317,
392,
2775,
434,
1879,
326,
261,
856,
16,
1132,
13,
5574,
434,
1081,
5901,
635,
365,
18,
1518,
67,
1019,
3536,
327,
365,
631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7674,
12,
2890,
4672,
3536,
1081,
18,
2165,
3319,
1435,
317,
392,
2775,
434,
1879,
326,
261,
856,
16,
1132,
13,
5574,
434,
1081,
5901,
635,
365,
18,
1518,
67,
1019,
3536,
327,
365,
631... |
style |= {wx.LIST_FORMAT_LEFT: wx.TE_LEFT, wx.LIST_FORMAT_RIGHT: wx.TE_RIGHT, wx.LIST_FORMAT_CENTRE : wx.TE_CENTRE}[col_style] | style |= {wx.LIST_FORMAT_LEFT: wx.TE_LEFT, wx.LIST_FORMAT_RIGHT: wx.TE_RIGHT, wx.LIST_FORMAT_CENTRE : wx.TE_CENTRE }[col_style] | def make_editor(self, col_style=wx.LIST_FORMAT_LEFT): editor = wx.PreTextCtrl() style =wx.TE_PROCESS_ENTER|wx.TE_PROCESS_TAB|wx.TE_RICH2 style |= {wx.LIST_FORMAT_LEFT: wx.TE_LEFT, wx.LIST_FORMAT_RIGHT: wx.TE_RIGHT, wx.LIST_FORMAT_CENTRE : wx.TE_CENTRE}[col_style] editor.Create(self, -1, style=style) editor.SetBackgro... | 27ed367cb23b71ba64c7176044f4b8dc33e753dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/27ed367cb23b71ba64c7176044f4b8dc33e753dd/listctrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9177,
12,
2890,
16,
645,
67,
4060,
33,
27226,
18,
7085,
67,
7254,
67,
10066,
4672,
4858,
273,
7075,
18,
1386,
1528,
12418,
1435,
225,
2154,
273,
27226,
18,
1448,
67,
16560,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9177,
12,
2890,
16,
645,
67,
4060,
33,
27226,
18,
7085,
67,
7254,
67,
10066,
4672,
4858,
273,
7075,
18,
1386,
1528,
12418,
1435,
225,
2154,
273,
27226,
18,
1448,
67,
16560,
6... |
self.__gens[True] = [iso(P) for P in E.gens(use_database=False)] return self.__gens[True] | try: self.__gens[True] = [iso(P) for P in E.__gens[True]] return self.__gens[True] except KeyError: pass | def gens(self, verbose=False, rank1_search=10, algorithm='mwrank_shell', only_use_mwrank=True, proof = None, use_database = True): """ Compute and return generators for the Mordell-Weil group E(Q) *modulo* torsion. | f7a64cf6494e6bba1d939cbb3cbba8332d4d2789 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f7a64cf6494e6bba1d939cbb3cbba8332d4d2789/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
3988,
33,
8381,
16,
6171,
21,
67,
3072,
33,
2163,
16,
4886,
2218,
81,
91,
11500,
67,
10304,
2187,
1338,
67,
1202,
67,
81,
91,
11500,
33,
5510,
16,
14601,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
3988,
33,
8381,
16,
6171,
21,
67,
3072,
33,
2163,
16,
4886,
2218,
81,
91,
11500,
67,
10304,
2187,
1338,
67,
1202,
67,
81,
91,
11500,
33,
5510,
16,
14601,
273,... |
modified_since = stringToDatetime(modified_since) | modified_since = stringToDatetime(modified_since.split(';', 1)[0]) | def setLastModified(self, when): """Set the X{Last-Modified} time for the response to this request. | b38c7162c376ab08ae6186f01d8af93857870bef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b38c7162c376ab08ae6186f01d8af93857870bef/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
14747,
12,
2890,
16,
1347,
4672,
3536,
694,
326,
1139,
95,
3024,
17,
4575,
97,
813,
364,
326,
766,
358,
333,
590,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
14747,
12,
2890,
16,
1347,
4672,
3536,
694,
326,
1139,
95,
3024,
17,
4575,
97,
813,
364,
326,
766,
358,
333,
590,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
output) | output, 'TIMEOUT') | def PrintRegressions(self, output): """Write the regressions computed by _CalculateRegressions() to output. """ | 4cbe0a9c3971f44c85c837d71040dcb37f112b1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/4cbe0a9c3971f44c85c837d71040dcb37f112b1c/compare_failures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3038,
1617,
663,
1115,
12,
2890,
16,
876,
4672,
3536,
3067,
326,
960,
663,
1115,
8470,
635,
389,
8695,
1617,
663,
1115,
1435,
358,
876,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3038,
1617,
663,
1115,
12,
2890,
16,
876,
4672,
3536,
3067,
326,
960,
663,
1115,
8470,
635,
389,
8695,
1617,
663,
1115,
1435,
358,
876,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
check('AbC', 'abc', 0) check('abc', 'AbC', 0) | check('AbC', 'abc', 0, fnmatchcase) check('abc', 'AbC', 0, fnmatchcase) | def test_fnmatchcase(self): check = self.check_match check('AbC', 'abc', 0) check('abc', 'AbC', 0) | 6eedef60a28512007bf6f78072a197530a961b57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/6eedef60a28512007bf6f78072a197530a961b57/test_fnmatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4293,
1916,
3593,
12,
2890,
4672,
866,
273,
365,
18,
1893,
67,
1916,
866,
2668,
5895,
39,
2187,
296,
18947,
2187,
374,
13,
866,
2668,
18947,
2187,
296,
5895,
39,
2187,
374,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4293,
1916,
3593,
12,
2890,
4672,
866,
273,
365,
18,
1893,
67,
1916,
866,
2668,
5895,
39,
2187,
296,
18947,
2187,
374,
13,
866,
2668,
18947,
2187,
296,
5895,
39,
2187,
374,
1... |
menupgc.appendChild(button) del button | endbuttons.append(button) | def createDVDAuthorXML(screensize, numberofitems): """Creates the xml file for dvdauthor to use the MythBurn menus.""" #Get the main menu node (we must only have 1) menunode=themeDOM.getElementsByTagName("menu") if menunode.length!=1: fatalError("Cannot find the menu element in the theme file") menunode=menunode[0] m... | 49206bf7f206be3336f41ca9b0edcf135b218f2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/49206bf7f206be3336f41ca9b0edcf135b218f2c/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
40,
21544,
3594,
4201,
12,
1017,
266,
773,
554,
16,
1300,
792,
3319,
4672,
3536,
2729,
326,
2025,
585,
364,
12494,
72,
4161,
358,
999,
326,
8005,
451,
38,
321,
21374,
12123,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
21544,
3594,
4201,
12,
1017,
266,
773,
554,
16,
1300,
792,
3319,
4672,
3536,
2729,
326,
2025,
585,
364,
12494,
72,
4161,
358,
999,
326,
8005,
451,
38,
321,
21374,
12123,
225,
... |
{}, cgi.escape(term), | {}, cgi.escape(term), | def tmpl_search_no_boolean_hits(self, ln, nearestterms): """No hits found, proposes alternative boolean queries | d80e9e5b545268d60103014de3d2c09f38531285 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/d80e9e5b545268d60103014de3d2c09f38531285/websearch_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
3072,
67,
2135,
67,
6494,
67,
15173,
12,
2890,
16,
7211,
16,
11431,
10112,
4672,
3536,
2279,
11076,
1392,
16,
450,
10522,
10355,
1250,
6218,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
10720,
67,
3072,
67,
2135,
67,
6494,
67,
15173,
12,
2890,
16,
7211,
16,
11431,
10112,
4672,
3536,
2279,
11076,
1392,
16,
450,
10522,
10355,
1250,
6218,
2,
-100,
-100,
-100,
-100,
-100,
-... |
return (self.menuCallback != None) | return (self.menu != None) | def hasMenu(self): return (self.menuCallback != None) | d411d8cd4ee9ab090c9597ec7f76c7f2d2e5170e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/d411d8cd4ee9ab090c9597ec7f76c7f2d2e5170e/gungamelib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
4599,
12,
2890,
4672,
327,
261,
2890,
18,
5414,
480,
599,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
4599,
12,
2890,
4672,
327,
261,
2890,
18,
5414,
480,
599,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.sendMessage(obj['sender'], self.google(obj['msg'])) | self.sendMessage(obj['sender'], "'%s'\n%s" % (self.autotranslate(obj['msg']), self.google(obj['msg']))) | def on_message_event(self, obj): #avoid infinite loop if obj['sender'] == self.login_data['primaryLoginId']: return if obj['msg'] == "dodysw:quit": self.shutdown = True return if obj['msg'] == "dodysw:friends": self.fetchContactList() print self.contacts return print "=======%s: %s" % (obj['sender'], obj['msg']) self.s... | 435285d03d5af802b43c041f62cd46ec98058266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2802/435285d03d5af802b43c041f62cd46ec98058266/gtym.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2150,
67,
2575,
12,
2890,
16,
1081,
4672,
468,
842,
839,
14853,
2798,
309,
1081,
3292,
15330,
3546,
422,
365,
18,
5819,
67,
892,
3292,
8258,
5358,
548,
3546,
30,
327,
309,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
2150,
67,
2575,
12,
2890,
16,
1081,
4672,
468,
842,
839,
14853,
2798,
309,
1081,
3292,
15330,
3546,
422,
365,
18,
5819,
67,
892,
3292,
8258,
5358,
548,
3546,
30,
327,
309,
108... |
API.unbind(id, data['repoid']) | API.unbind(id, data) | def POST(self, id): """ Unbind (unsubscribe) a user to a repository. @param id: consumer id @return: True on successful unbind """ data = self.input() API.unbind(id, data['repoid']) return self.output(True) | be3174bca5e8cb1825ad3e5c56ab898cf7777056 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/be3174bca5e8cb1825ad3e5c56ab898cf7777056/consumers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
612,
4672,
3536,
1351,
4376,
261,
318,
9174,
13,
279,
729,
358,
279,
3352,
18,
632,
891,
612,
30,
4765,
612,
632,
2463,
30,
1053,
603,
6873,
17449,
3536,
501,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
16,
612,
4672,
3536,
1351,
4376,
261,
318,
9174,
13,
279,
729,
358,
279,
3352,
18,
632,
891,
612,
30,
4765,
612,
632,
2463,
30,
1053,
603,
6873,
17449,
3536,
501,
273,
... |
modules = self.find_modules() else: modules = [] | modules.extend(self.find_modules()) if self.packages: | def find_all_modules (self): """Compute the list of all modules that will be built, whether they are specified one-module-at-a-time ('self.py_modules') or by whole packages ('self.packages'). Return a list of tuples (package, module, module_file), just like 'find_modules()' and 'find_package_modules()' do.""" | bb7ab6f2da512ae49ba5305c52bfb2e3d073391c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bb7ab6f2da512ae49ba5305c52bfb2e3d073391c/build_py.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
454,
67,
6400,
261,
2890,
4672,
3536,
7018,
326,
666,
434,
777,
4381,
716,
903,
506,
6650,
16,
2856,
2898,
854,
1269,
1245,
17,
2978,
17,
270,
17,
69,
17,
957,
7707,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
454,
67,
6400,
261,
2890,
4672,
3536,
7018,
326,
666,
434,
777,
4381,
716,
903,
506,
6650,
16,
2856,
2898,
854,
1269,
1245,
17,
2978,
17,
270,
17,
69,
17,
957,
7707,
2890,
... |
page_template = PageTemplate(id=id, frames=page_template_data['frame']) | template_attrs = {'id': id, 'frames': page_template_data['frame'], 'pagesize': page_size} page_template = PageTemplate(**template_attrs) | def template_stream(stream, _tag_uri, _tag_name, _attributes, _ns_decls, document_attrs): """ """ stack = [] stack.append((_tag_name, _attributes, None)) page_templates = [] page_template_data = None show_boundary = False for key in document_attrs.keys(): if _attributes.has_key((None, key)): document_attrs[key] = _att... | 51b02e012792ad1fcdef1300580c1d6a58548c1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/51b02e012792ad1fcdef1300580c1d6a58548c1f/rml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
1668,
67,
7039,
4672,
3536,
3536,
2110,
273,
5378,
2110,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1542,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
1668,
67,
7039,
4672,
3536,
3536,
2110,
273,
5378,
2110,
1... |
g = Generator(s, mangle_from_=1) | g = Generator(s, mangle_from_=True) | def test_mangled_from(self): s = StringIO() g = Generator(s, mangle_from_=1) g.flatten(self.msg) self.assertEqual(s.getvalue(), """\ | a0a00761a500478223f0e076983fddcdfb4ac587 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a0a00761a500478223f0e076983fddcdfb4ac587/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
81,
539,
1259,
67,
2080,
12,
2890,
4672,
272,
273,
15777,
1435,
314,
273,
10159,
12,
87,
16,
312,
4341,
67,
2080,
67,
33,
5510,
13,
314,
18,
16940,
12,
2890,
18,
3576,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
81,
539,
1259,
67,
2080,
12,
2890,
4672,
272,
273,
15777,
1435,
314,
273,
10159,
12,
87,
16,
312,
4341,
67,
2080,
67,
33,
5510,
13,
314,
18,
16940,
12,
2890,
18,
3576,
13,
... |
else: lastPlayed = self.db.getLastPlayedLocalTime(track) | def populateDetails(self, track): if self.db.getLastPlayedLocalTime(track) == None: lastPlayed = "-" else: lastPlayed = self.db.getLastPlayedLocalTime(track) ## should be time from last play self.clearDetails() self.addDetail("Artist: "+self.db.getArtist(track)) self.addDetail("Title: "+self.db.getTitle(track)) sel... | 09ece80ad26c6521d0c61771f8c5b4674f2299cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/09ece80ad26c6521d0c61771f8c5b4674f2299cc/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
3790,
12,
2890,
16,
3298,
4672,
309,
365,
18,
1966,
18,
588,
3024,
11765,
329,
2042,
950,
12,
4101,
13,
422,
599,
30,
1142,
11765,
329,
273,
7514,
7541,
1410,
506,
813,
628,
1142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
3790,
12,
2890,
16,
3298,
4672,
309,
365,
18,
1966,
18,
588,
3024,
11765,
329,
2042,
950,
12,
4101,
13,
422,
599,
30,
1142,
11765,
329,
273,
7514,
7541,
1410,
506,
813,
628,
1142... | |
pindices[i * 3] = c_int(f.v[0].index) pindices[i * 3 + 1] = c_int(f.v[1].index) pindices[i * 3 + 2] = c_int(f.v[2].index) i += 1 | pindices[i] = c_int(f.v[0].index) pindices[i + 1] = c_int(f.v[1].index) pindices[i + 2] = c_int(f.v[2].index) i += 3 | def file_callback(filename): if not filename.lower().endswith('.ctm'): filename += '.ctm' # Get object mesh from the selected object scn = bpy.data.scenes.active ob = scn.objects.active if not ob: Blender.Draw.PupMenu('Error%t|Select 1 active object') return mesh = BPyMesh.getMeshFromObject(ob, None, False, False, sc... | 97daef3528cb865209407be86e74cc9517b79903 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11511/97daef3528cb865209407be86e74cc9517b79903/openctm_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
3394,
12,
3459,
4672,
225,
309,
486,
1544,
18,
8167,
7675,
5839,
1918,
2668,
18,
299,
81,
11,
4672,
1544,
1011,
2418,
299,
81,
11,
225,
468,
968,
733,
6986,
628,
326,
3170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
585,
67,
3394,
12,
3459,
4672,
225,
309,
486,
1544,
18,
8167,
7675,
5839,
1918,
2668,
18,
299,
81,
11,
4672,
1544,
1011,
2418,
299,
81,
11,
225,
468,
968,
733,
6986,
628,
326,
3170,
... |
ch1 = wx.colheader.ColumnHeader( self, 1001, (20, 40), (350, colHeight), 0 ) ch1.AppendItem("Sun", wx.colheader.COLUMNHEADER_JUST_Center, 50, 1, 0, 1) ch1.AppendItem("Mon", wx.colheader.COLUMNHEADER_JUST_Center, 50, 0, 0, 1) ch1.AppendItem("Tue", wx.colheader.COLUMNHEADER_JUST_Center, 50, 0, 0, 1) ch1.AppendItem("Wed",... | ch1 = wx.colheader.ColumnHeader( self, cntlID, (20, 40), (350, colHeight), 0 ) dow = [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ] for v in dow: ch1.AppendItem( v, wx.colheader.COLUMNHEADER_JUST_Center, 50, 0, 0, 1 ) ch1.SetSelectedItemIndex( 0 ) | def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log | 97785f3f33dd20f2b36619b4084b435cbedc5e2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/97785f3f33dd20f2b36619b4084b435cbedc5e2e/ColumnHeader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
... |
sage: plot([solnx,solny],0,1) sage: parametric_plot((solnx,solny),0,1) | sage: plot([solnx,solny],(0,1)) sage: parametric_plot((solnx,solny),(0,1)) | def desolve_system(des, vars, ics=None, ivar=None): """ Solves any size system of 1st order odes using maxima. Initials conditions are optional. INPUT: des -- list of ODEs vars -- list of dependent variables ics -- (optional) list of initial values for ivar and vars ivar -- (optional) the independent variable, w... | d2bdcfc682cb6ee11af743343c4213b2d97b06ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d2bdcfc682cb6ee11af743343c4213b2d97b06ae/desolvers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2832,
5390,
67,
4299,
12,
5489,
16,
4153,
16,
277,
2143,
33,
7036,
16,
277,
1401,
33,
7036,
4672,
3536,
348,
355,
3324,
1281,
963,
2619,
434,
404,
334,
1353,
320,
5489,
1450,
943,
1388... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2832,
5390,
67,
4299,
12,
5489,
16,
4153,
16,
277,
2143,
33,
7036,
16,
277,
1401,
33,
7036,
4672,
3536,
348,
355,
3324,
1281,
963,
2619,
434,
404,
334,
1353,
320,
5489,
1450,
943,
1388... |
self.TrainFolder(fol, True) | folder = IMAPFolder(fol) folder.Train(self.classifier, True) | def Train(self): if options.verbose: t = time.time() if options.imap_ham_train_folders != "": ham_training_folders = options.imap_ham_train_folders.split() for fol in ham_training_folders: self.TrainFolder(fol, False) if options.imap_spam_train_folders != "": spam_training_folders = options.imap_spam_train_folders.spli... | 2457cec0eaf41f9285d252974e2f4c340ddc6ed2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/2457cec0eaf41f9285d252974e2f4c340ddc6ed2/imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2197,
267,
12,
2890,
4672,
309,
702,
18,
11369,
30,
268,
273,
813,
18,
957,
1435,
309,
702,
18,
12161,
67,
31698,
67,
9754,
67,
16064,
480,
1408,
30,
366,
301,
67,
17584,
67,
16064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2197,
267,
12,
2890,
4672,
309,
702,
18,
11369,
30,
268,
273,
813,
18,
957,
1435,
309,
702,
18,
12161,
67,
31698,
67,
9754,
67,
16064,
480,
1408,
30,
366,
301,
67,
17584,
67,
16064,
... |
AbelianGroup( 2, [0, 64]) | Abelian Group isomorphic to Z x Z/64Z | def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) AbelianGroup( 2, [0, 0]) sage: F.subgroup([c]) AbelianGroup( 3, [2, 3, 5]) sage: F.subgroup([a,c]) AbelianGroup( 4, [0, 2, 3, 5]) sage: F.subgroup... | 474e9cd21e5543c10385340d5e9747ad7d0f1773 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/474e9cd21e5543c10385340d5e9747ad7d0f1773/abelian_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... |
STRING '"ABC"' (1, 13) (1, 19) >>> dump_tokens("x = r'abc' + r'ABC' + R'ABC' + R'ABC'") NAME 'x' (1, 0) (1, 1) OP '=' (1, 2) (1, 3) STRING "r'abc'" (1, 4) (1, 11) OP '+' (1, 12) (1, 13) STRING "r'ABC'" (1, 14) (1, 21) OP '+' ... | STRING "r'ABC'" (1, 13) (1, 19) OP '+' (1, 20) (1, 21) STRING "R'ABC'" (1, 22) (1, 28) OP '+' (1, 29) (1, 30) STRING "R'ABC'" (1, 31) (1, 37) | ... " def y(m): # A whitespace after the colon\\n" | 06160749de86348e8e0743d0ff468f96f0c89d4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/06160749de86348e8e0743d0ff468f96f0c89d4c/test_tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return result and result != 1 and _compare_available | return _compare_available | def GeneratePNGDiff(file1, file2, output_file): _compare_available = False; try: executable = path_utils.ImageDiffPath("Debug") cmd = [executable, '--diff', file1, file2, output_file] _compare_available = True; except Exception, e: print "No command line to compare %s and %s : %s" % (file1, file2, e) result = 1 if _co... | 1765462345f54da8f4beafbc742493a2d8d30bbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/1765462345f54da8f4beafbc742493a2d8d30bbc/failure_finder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
23092,
5938,
12,
768,
21,
16,
585,
22,
16,
876,
67,
768,
4672,
389,
9877,
67,
5699,
273,
1083,
31,
775,
30,
9070,
273,
589,
67,
5471,
18,
2040,
5938,
743,
2932,
2829,
7923,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6654,
23092,
5938,
12,
768,
21,
16,
585,
22,
16,
876,
67,
768,
4672,
389,
9877,
67,
5699,
273,
1083,
31,
775,
30,
9070,
273,
589,
67,
5471,
18,
2040,
5938,
743,
2932,
2829,
7923,
179... |
acc = l.product_id.categ_id.property_account_expense_categ.id | acc = l.product_id.categ_id.property_account_expense_categ | def action_invoice_create(self, cr, uid, ids): res = False invoice_obj = self.pool.get('account.invoice') for exp in self.browse(cr, uid, ids): lines = [] for l in exp.line_ids: tax_id = [] if l.product_id: acc = l.product_id.product_tmpl_id.property_account_expense.id if not acc: acc = l.product_id.categ_id.property_a... | 22ba7bca40c89e239ee701497860421e5e244866 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/22ba7bca40c89e239ee701497860421e5e244866/hr_expense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
16119,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
400,
273,
1083,
9179,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
6134,
364,
1329,
316,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
16119,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
400,
273,
1083,
9179,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
6134,
364,
1329,
316,
365,
... |
p = subprocess.Popen( cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE ) | p = subprocess.Popen( cmd, shell=True, stdout=subprocess.PIPE ) | def __init__( self ): self.url = 'svn://nowhere.com/project/unknown' self.root = 'svn://nowhere.com/project' self.branch = 'unknown' self.uuid = '00000000-0000-0000-0000-000000000000'; self.rev = 0 self.date = '0000-00-00 00:00:00 -0000' self.wcversion = 'exported' self.official = 0 self.... | 914b9b7604abc6d54ae1ad7bf95f381663d14ec4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13161/914b9b7604abc6d54ae1ad7bf95f381663d14ec4/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
262,
30,
365,
18,
718,
4202,
273,
296,
31505,
2207,
3338,
14852,
18,
832,
19,
4406,
19,
8172,
11,
365,
18,
3085,
1377,
273,
296,
31505,
2207,
3338,
14852,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
262,
30,
365,
18,
718,
4202,
273,
296,
31505,
2207,
3338,
14852,
18,
832,
19,
4406,
19,
8172,
11,
365,
18,
3085,
1377,
273,
296,
31505,
2207,
3338,
14852,
18,... |
logger.debug(sql) | def getTimestampOfMostRecentlyCompletedReport(cursor, logger, nowFunction=datetime.datetime.now): """ get the date of the earliest unfinished job from the 'reports' table. Only look back as far as seven days plus fifteen minutes. If the oldest job is in that final fifteen minute time segment refuse to continue becaus... | 98e1a819d757d2fba97177a926e390b99a561e7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/98e1a819d757d2fba97177a926e390b99a561e7e/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11940,
951,
18714,
17076,
715,
9556,
4820,
12,
9216,
16,
1194,
16,
2037,
2083,
33,
6585,
18,
6585,
18,
3338,
4672,
3536,
336,
326,
1509,
434,
326,
20674,
640,
13527,
1719,
628,
326,
296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11940,
951,
18714,
17076,
715,
9556,
4820,
12,
9216,
16,
1194,
16,
2037,
2083,
33,
6585,
18,
6585,
18,
3338,
4672,
3536,
336,
326,
1509,
434,
326,
20674,
640,
13527,
1719,
628,
326,
296,... | |
DoDeleteAction(item) | for sbCollection in sidebarCollections: if item in sbCollection: collection.remove(item) break else: trash.add(item) | def DoDeleteAction(item): # useful as a separate function so we can return at any point | 766284c11afc705a58f5a2cb424c8a837e7b69ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/766284c11afc705a58f5a2cb424c8a837e7b69ba/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
2613,
1803,
12,
1726,
4672,
468,
5301,
487,
279,
9004,
445,
1427,
732,
848,
327,
622,
1281,
1634,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2256,
2613,
1803,
12,
1726,
4672,
468,
5301,
487,
279,
9004,
445,
1427,
732,
848,
327,
622,
1281,
1634,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
try: for filename in crazy_filenames: utf8_filename = filename.encode('utf-8') file_path = os.path.join(temp_dir, utf8_filename) _CreateFile(os.path.join(temp_dir, filename)) file_url = self.GetFileURLForPath(file_path) downloaded_file = os.path.join(download_dir, filename) os.path.exists(downloaded_file) and os.remove... | for filename in crazy_filenames: utf8_filename = filename.encode('utf-8') file_path = os.path.join(temp_dir, utf8_filename) _CreateFile(os.path.join(temp_dir, filename)) file_url = self.GetFileURLForPath(file_path) downloaded_file = os.path.join(download_dir, filename) os.path.exists(downloaded_file) and os.remove(down... | def _CreateFile(name): """Create and fill the given file with some junk.""" fp = open(name, 'w') # name could be unicode print >>fp, 'This is a junk file named %s. ' % repr(name) * 100 fp.close() | b305895514a6affd4ba076d5655fe86eb71be9cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/b305895514a6affd4ba076d5655fe86eb71be9cc/downloads.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1684,
812,
12,
529,
4672,
3536,
1684,
471,
3636,
326,
864,
585,
598,
2690,
525,
1683,
12123,
4253,
273,
1696,
12,
529,
16,
296,
91,
6134,
225,
468,
508,
3377,
506,
5252,
1172,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1684,
812,
12,
529,
4672,
3536,
1684,
471,
3636,
326,
864,
585,
598,
2690,
525,
1683,
12123,
4253,
273,
1696,
12,
529,
16,
296,
91,
6134,
225,
468,
508,
3377,
506,
5252,
1172,
167... |
return "%s(%s)" % (self.__class__, repr(self.position)) | return "%s(%s)" % (self.__class__.__name__, repr(self.position)) | def __repr__(self) : """A string representation of the location for debugging.""" assert self.extension == 0 return "%s(%s)" % (self.__class__, repr(self.position)) | 34fbf98369b53f32c18676dcd11873bcdf336bb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/34fbf98369b53f32c18676dcd11873bcdf336bb6/SeqFeature.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
13,
294,
3536,
37,
533,
4335,
434,
326,
2117,
364,
10450,
12123,
1815,
365,
18,
6447,
422,
374,
327,
2213,
87,
9275,
87,
2225,
738,
261,
2890,
16186,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
13,
294,
3536,
37,
533,
4335,
434,
326,
2117,
364,
10450,
12123,
1815,
365,
18,
6447,
422,
374,
327,
2213,
87,
9275,
87,
2225,
738,
261,
2890,
16186,
1106,
... |
return "Linear 2nd order recurrence, a(n) = 3 a(n-1) + 4 a(n-2)." def _precompute(self, how_many=150): try: f = self._f except AttributeError: self._f = recur_gen2(0,1,3,4) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) retur... | """ EXAMPLES: sage: sloane.A015551._repr_() 'Linear 2nd order recurrence, a(n) = 6 a(n-1) + 5 a(n-2).' """ return "Linear 2nd order recurrence, a(n) = 6 a(n-1) + 5 a(n-2)." | def _repr_(self): return "Linear 2nd order recurrence, a(n) = 3 a(n-1) + 4 a(n-2)." | d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
15982,
576,
4880,
1353,
25939,
16,
279,
12,
82,
13,
273,
890,
279,
12,
82,
17,
21,
13,
397,
1059,
279,
12,
82,
17,
22,
14944,
2,
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,
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,
12715,
67,
12,
2890,
4672,
327,
315,
15982,
576,
4880,
1353,
25939,
16,
279,
12,
82,
13,
273,
890,
279,
12,
82,
17,
21,
13,
397,
1059,
279,
12,
82,
17,
22,
14944,
2,
-100,
-10... |
self.matches['voip'] = self._vte.match_add(lboundry + | self.matches['voip'] = self.vte.match_add(lboundry + | def update_url_matches(self, posix = True): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" hostchars = "-A-Za-z0-9" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'\"" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars... | 9e4be9ef76f3370fe7ab026103622649755a4ef9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/9e4be9ef76f3370fe7ab026103622649755a4ef9/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1... |
elif path == '' or path[-1:] == '/': path = path + b | elif path == '' or path.endswith('/'): path += b | def join(a, *p): """Join two or more pathname components, inserting '/' as needed""" path = a for b in p: if b[:1] == '/': path = b elif path == '' or path[-1:] == '/': path = path + b else: path = path + '/' + b return path | 77cdeaff556447a980fe8632e8cd010499ade2d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/77cdeaff556447a980fe8632e8cd010499ade2d0/posixpath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1233,
12,
69,
16,
380,
84,
4672,
3536,
4572,
2795,
578,
1898,
9806,
4085,
16,
21079,
2023,
487,
3577,
8395,
589,
273,
279,
364,
324,
316,
293,
30,
309,
324,
10531,
21,
65,
422,
2023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1233,
12,
69,
16,
380,
84,
4672,
3536,
4572,
2795,
578,
1898,
9806,
4085,
16,
21079,
2023,
487,
3577,
8395,
589,
273,
279,
364,
324,
316,
293,
30,
309,
324,
10531,
21,
65,
422,
2023,
... |
(s,b,p,q,f,o) = urlparse.urlparse(thisrepo.proxy) if s not in ('http', 'ftp', 'https'): raise Errors.ConfigError, 'proxy must be ftp or http[s] URL: %s' % thisrepo.proxy thisrepo.set('proxy', None) | if thisrepo.proxy: (s,b,p,q,f,o) = urlparse.urlparse(thisrepo.proxy) if s not in ('http', 'ftp', 'https'): raise Errors.ConfigError, 'proxy must be ftp or http[s] URL: %s' % thisrepo.proxy thisrepo.set('proxy', None) | def cfgParserRepo(section, yumconfig, cfgparser): """take a configparser object and extract repository information from it. section: section name to grab from cfgparser object data yumconfig: the global yumconfig to apply to this repo cfgparser: cfgparser object Returns a repos.Repository object """ thisrepo = Repos... | 7fd773825d309f6a3078424ca0450d91ae9409d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/7fd773825d309f6a3078424ca0450d91ae9409d1/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2776,
2678,
8791,
12,
3464,
16,
677,
379,
1425,
16,
2776,
4288,
4672,
3536,
22188,
279,
642,
4288,
733,
471,
2608,
3352,
1779,
628,
518,
18,
225,
2442,
30,
2442,
508,
358,
11086,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2776,
2678,
8791,
12,
3464,
16,
677,
379,
1425,
16,
2776,
4288,
4672,
3536,
22188,
279,
642,
4288,
733,
471,
2608,
3352,
1779,
628,
518,
18,
225,
2442,
30,
2442,
508,
358,
11086,
628,
... |
suite = U.TestLoader().loadTestsFromTestCase( test ) | suite.addTests( U.TestLoader().loadTestsFromTestCase( test ) ) | def localTest( testclass=None, verbosity=2 ): """ Perform the BiskitTest(s) found in the scope of the calling module. After the test run, all fields of the BiskitTest instance are pushed into the global namespace so that they can be inspected in the interactive interpreter. @param testclass: BiskitTest-derived class [... | 4c19e08506a9ff4be6773ecd6bf934adadeda8a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/4c19e08506a9ff4be6773ecd6bf934adadeda8a2/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
4709,
12,
1842,
1106,
33,
7036,
16,
11561,
33,
22,
262,
30,
3536,
11217,
326,
605,
291,
8691,
4709,
12,
87,
13,
1392,
316,
326,
2146,
434,
326,
4440,
1605,
18,
7360,
326,
1842,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1191,
4709,
12,
1842,
1106,
33,
7036,
16,
11561,
33,
22,
262,
30,
3536,
11217,
326,
605,
291,
8691,
4709,
12,
87,
13,
1392,
316,
326,
2146,
434,
326,
4440,
1605,
18,
7360,
326,
1842,
... |
log(msg) | if not self.found_type: log("Mime type skipped: %s (mail us if this is an error)" % mime_type) | def have_type(self, typefind, probability, caps): mime_type = caps.to_string() msg = "mime type: %s" % mime_type for t in mime_whitelist: if t in mime_type: msg += " -> accepted!" self.found_type = mime_type log(msg) | 379396c6578d6b0d4b61f3821f039f5fb9768a5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/379396c6578d6b0d4b61f3821f039f5fb9768a5f/soundconverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1240,
67,
723,
12,
2890,
16,
618,
4720,
16,
11331,
16,
15788,
4672,
4892,
67,
723,
273,
15788,
18,
869,
67,
1080,
1435,
1234,
273,
315,
11757,
618,
30,
738,
87,
6,
738,
4892,
67,
723... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1240,
67,
723,
12,
2890,
16,
618,
4720,
16,
11331,
16,
15788,
4672,
4892,
67,
723,
273,
15788,
18,
869,
67,
1080,
1435,
1234,
273,
315,
11757,
618,
30,
738,
87,
6,
738,
4892,
67,
723... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.