rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
for BugType in self.bugTypes: | for BugType in self.IgnoredBugTypes: | def FetchBugsDebian(self, PackageName, Filename=None): if Filename != None: try: file_handle = open(Filename, 'a') except IOError: sys.exit(1) try: (num_of_bugs, header, self.bugs_list) = debianbts.get_reports(PackageName) except socket.timeout: return False if num_of_bugs: atleast_one_bug_report_downloaded = False ... | dbe68c51c5eedd5b34b3221bde84ac25f8cc3e88 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12499/dbe68c51c5eedd5b34b3221bde84ac25f8cc3e88/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8065,
31559,
758,
70,
2779,
12,
2890,
16,
7508,
461,
16,
16671,
33,
7036,
4672,
225,
309,
16671,
480,
599,
30,
775,
30,
585,
67,
4110,
273,
1696,
12,
5359,
16,
296,
69,
6134,
1335,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8065,
31559,
758,
70,
2779,
12,
2890,
16,
7508,
461,
16,
16671,
33,
7036,
4672,
225,
309,
16671,
480,
599,
30,
775,
30,
585,
67,
4110,
273,
1696,
12,
5359,
16,
296,
69,
6134,
1335,
8... |
item = [ '1', "boogy", "spa ace", ["4x", "5", 6], x, {}] | item = [ '1', "\"\"boogy\"\"", "spa ace", ["4x", "5", 6], x, {}] | def parseUnquotedString(): global s, slen, offset #print "parse uqs:", offset start = offset while True: if offset >= slen: break if s[offset] == "\\": s.pop(offset) slen -= 1 offset += 1 elif s[offset] in [",", ":", "]", ")", "}"]: break offset += 1 t = s[start:offset].tostring() if t.isdigit(): return int(t) else: re... | b53c338b34f74636d6b1209dffbbd319cd8d1570 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/b53c338b34f74636d6b1209dffbbd319cd8d1570/compactjson.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
984,
15179,
780,
13332,
2552,
272,
16,
272,
1897,
16,
1384,
468,
1188,
315,
2670,
582,
12926,
2773,
16,
1384,
787,
273,
1384,
1323,
1053,
30,
309,
1384,
1545,
272,
1897,
30,
898,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
984,
15179,
780,
13332,
2552,
272,
16,
272,
1897,
16,
1384,
468,
1188,
315,
2670,
582,
12926,
2773,
16,
1384,
787,
273,
1384,
1323,
1053,
30,
309,
1384,
1545,
272,
1897,
30,
898,
... |
print "Got request for %s" % contentLocation.spec print "Request origin is %s" % requestOrigin.spec print "Content type is %s" % contentType print "context is %s" % context | def shouldLoad(self, contentType, contentLocation, requestOrigin, context, mimeTypeGuess, extra): rv = nsIContentPolicy.ACCEPT print "Got request for %s" % contentLocation.spec print "Request origin is %s" % requestOrigin.spec print "Content type is %s" % contentType print "context is %s" % context if (requestOrigin i... | d3a34c917b31f93bb9f310a9e431cfff861a686d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/d3a34c917b31f93bb9f310a9e431cfff861a686d/mycontentpolicy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
2563,
12,
2890,
16,
5064,
16,
913,
2735,
16,
590,
7571,
16,
819,
16,
10707,
15977,
16,
225,
2870,
4672,
5633,
273,
3153,
45,
1350,
2582,
18,
21417,
309,
261,
2293,
7571,
353,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1410,
2563,
12,
2890,
16,
5064,
16,
913,
2735,
16,
590,
7571,
16,
819,
16,
10707,
15977,
16,
225,
2870,
4672,
5633,
273,
3153,
45,
1350,
2582,
18,
21417,
309,
261,
2293,
7571,
353,
486... | |
main(args) | result = main(args) if not result.wasSuccessful(): return_code = 1 else: return_code = 0 sys.exit(return_code) | def main(args): """Create a TestSuite and run it.""" loader = unittest.TestLoader() suite = unittest.TestSuite() fnames = [os.path.split(f)[-1] for f in args] for fname in os.listdir(os.path.dirname(__file__)): if (not fname.startswith('test_') or not fname.endswith('.py') or (fnames and fname not in fnames)): continue... | b252592eb40263994317d88ced43ddc4669a4975 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11268/b252592eb40263994317d88ced43ddc4669a4975/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
3536,
1684,
279,
7766,
13587,
471,
1086,
518,
12123,
4088,
273,
2836,
3813,
18,
4709,
2886,
1435,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
25294,
273,
306,
538,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
3536,
1684,
279,
7766,
13587,
471,
1086,
518,
12123,
4088,
273,
2836,
3813,
18,
4709,
2886,
1435,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
25294,
273,
306,
538,... |
line = key + ' = ' + self.repr(value) chop = 70 - len(line) line = self.bold(key) + ' = ' + self.repr(value) if chop < 0: line = line[:chop] + '...' contents = contents + line + '\n' result = result + self.section('CONSTANTS', contents) | contents.append(self.docother(value, key, 70)) result = result + self.section('CONSTANTS', join(contents, '\n')) | def docmodule(self, object): """Produce text documentation for a given module object.""" result = '' | 2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
1605,
733,
12123,
563,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
1605,
733,
12123,
563,
273,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print "n[",i,"]",n[i],"not divisable by ncpu[",i,"]=",ncpu[i] | print "ERROR: n[",i,"]",n[i],"not divisable by ncpu[",i,"]=",ncpu[i] | def fullfactor(n): facs=range(3) [nleft,facs[0]]=nfactor(n,2) [nleft,facs[1]]=nfactor(nleft,3) [nleft,facs[2]]=nfactor(nleft,5) if (nleft<>1): print "WARNING: dimension: ",n,"must only have factors of 2,3 and 5" | ec35eb7da65842364761b1d72b3603d38a3d2a61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6983/ec35eb7da65842364761b1d72b3603d38a3d2a61/gridsetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
6812,
12,
82,
4672,
5853,
87,
33,
3676,
12,
23,
13,
306,
82,
4482,
16,
507,
2143,
63,
20,
13563,
33,
82,
6812,
12,
82,
16,
22,
13,
306,
82,
4482,
16,
507,
2143,
63,
21,
135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1983,
6812,
12,
82,
4672,
5853,
87,
33,
3676,
12,
23,
13,
306,
82,
4482,
16,
507,
2143,
63,
20,
13563,
33,
82,
6812,
12,
82,
16,
22,
13,
306,
82,
4482,
16,
507,
2143,
63,
21,
135... |
if list(files) != [os.path.basename(fa)]: ui.write(_(" unexpected patch output!")) ui.write(_(" (you may have an incompatible version of patch)\n")) problems += 1 a = file(fa).read() if a != b: ui.write(_(" patch test failed!")) ui.write(_(" (you may have an incompatible version of patch)\n")) problems += 1 os.unlink(... | ui.write(_(" Internal patcher failure, please report this error" " to http://www.selenic.com/mercurial/bts\n")) problems += patchproblems os.unlink(fa) os.unlink(fd) | def writetemp(contents): (fd, name) = tempfile.mkstemp(prefix="hg-debuginstall-") f = os.fdopen(fd, "wb") f.write(contents) f.close() return name | 4e4520a6f6b05b2b4a5eb8abfbc626666b2f7eaf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/4e4520a6f6b05b2b4a5eb8abfbc626666b2f7eaf/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
278,
30752,
12,
3980,
4672,
261,
8313,
16,
508,
13,
273,
13275,
18,
24816,
19781,
84,
12,
3239,
1546,
26981,
17,
4148,
5425,
17,
7923,
284,
273,
1140,
18,
8313,
3190,
12,
8313,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
278,
30752,
12,
3980,
4672,
261,
8313,
16,
508,
13,
273,
13275,
18,
24816,
19781,
84,
12,
3239,
1546,
26981,
17,
4148,
5425,
17,
7923,
284,
273,
1140,
18,
8313,
3190,
12,
8313,
1... |
program_list.append('-sBOOST_BUILD_PATH=' + boost_build_path) | program_list.append('-sBOOST_BUILD_PATH="' + boost_build_path + '"') | def __init__(self, arguments="", executable="bjam", match=TestCmd.match_exact, boost_build_path=None, translate_suffixes=True, pass_toolset=True, use_test_config=True, ignore_toolset_requirements=True, workdir="", **keywords): | a4fb74303dce0c4346e149dbb77ab2ff37eb3e31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9981/a4fb74303dce0c4346e149dbb77ab2ff37eb3e31/BoostBuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1775,
1546,
3113,
9070,
1546,
441,
301,
3113,
845,
33,
4709,
5931,
18,
1916,
67,
17165,
16,
14994,
67,
3510,
67,
803,
33,
7036,
16,
4204,
67,
8477,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1775,
1546,
3113,
9070,
1546,
441,
301,
3113,
845,
33,
4709,
5931,
18,
1916,
67,
17165,
16,
14994,
67,
3510,
67,
803,
33,
7036,
16,
4204,
67,
8477,
281,
... |
def _clutter_sync_layout(self): """ Layout the widget """ passive = [] for child in self.children: if child.passive: passive.append(child) elif child._sync_layout: | def _clutter_layout_children(self, children): """ Layout the children of the widget """ for child in children: if child._sync_layout: | def _clutter_sync_layout(self): """ Layout the widget """ # sync non-passive children and remember the passive ones for later passive = [] for child in self.children: if child.passive: passive.append(child) elif child._sync_layout: child._sync_layout = False child._clutter_sync_layout() # sync group object super(Group,... | f15ca751831f89f04b88e966ad91314489645343 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11702/f15ca751831f89f04b88e966ad91314489645343/container.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
830,
18220,
67,
8389,
67,
6741,
12,
2890,
4672,
3536,
9995,
326,
3604,
3536,
468,
3792,
1661,
17,
5466,
688,
2325,
471,
11586,
326,
23697,
5945,
364,
5137,
23697,
273,
5378,
364,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
830,
18220,
67,
8389,
67,
6741,
12,
2890,
4672,
3536,
9995,
326,
3604,
3536,
468,
3792,
1661,
17,
5466,
688,
2325,
471,
11586,
326,
23697,
5945,
364,
5137,
23697,
273,
5378,
364,
11... |
self.straightHeading -= dt * self.TURNING_BONUS_REDUCTION | if forward and (self.straightHeading - (dt * self.TURNING_BONUS_REDUCTION) < minStraightSail) and (self.straightHeading >= minStraightSail): self.straightHeading = minStraightSail else: self.straightHeading -= dt * self.TURNING_BONUS_REDUCTION | def handleAvatarControls(self, task): """ Check on the arrow keys and update the "avatar" (ship). """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%( base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar hpr = %s\n"%( base.localAvatar.getHpr().pPrintValu... | 391e901acef6c39a51bba3e7c5286791d18c7780 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/391e901acef6c39a51bba3e7c5286791d18c7780/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... |
try: p=parents[i].aq_self | parent=parents[i] if hasattr(parent,'aq_self'): p=parent.aq_self | def function_with_empty_signature(): pass | 6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1918,
67,
5531,
67,
8195,
13332,
1342,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1918,
67,
5531,
67,
8195,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
assert res == "bar results" | assert_equal(res,"bar results") | def check_std_noargs(self,level=5): a = foo() method = "bar" res = inline_tools.inline('return_val = a.mcall(method);',['a','method']) assert res == "bar results" first = sys.getrefcount(res) del res res = inline_tools.inline('return_val = a.mcall(method);',['a','method']) assert res == "bar results" second = sys.getre... | 267b08d9c3e7613c126729a179f4503c91625e9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/267b08d9c3e7613c126729a179f4503c91625e9c/test_scxx_object.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5084,
67,
2135,
1968,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
8431,
1435,
707,
273,
315,
3215,
6,
400,
273,
6370,
67,
6642,
18,
10047,
2668,
2463,
67,
1125,
273,
279,
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,
866,
67,
5084,
67,
2135,
1968,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
8431,
1435,
707,
273,
315,
3215,
6,
400,
273,
6370,
67,
6642,
18,
10047,
2668,
2463,
67,
1125,
273,
279,
18... |
dirsToSearch.append(pl['IFPkgFlagComponentDirectory']) | componentdir = pl['IFPkgFlagComponentDirectory'] dirsToSearch.append(componentdir) | def getBundlePackageInfo(pkgpath): infoarray = [] if pkgpath.endswith(".pkg"): pkginfo = getOnePackageInfo(pkgpath) if pkginfo: infoarray.append(pkginfo) return infoarray bundlecontents = os.path.join(pkgpath, "Contents") if os.path.exists(bundlecontents): for item in os.listdir(bundlecontents): if item.endswith(".di... | 7556630385226ce39e8048180b9fee2eefda4753 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6241/7556630385226ce39e8048180b9fee2eefda4753/munkicommon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10946,
2261,
966,
12,
10657,
803,
4672,
1123,
1126,
273,
5378,
225,
309,
3475,
803,
18,
5839,
1918,
2932,
18,
10657,
6,
4672,
3475,
1376,
273,
20863,
2261,
966,
12,
10657,
803,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10946,
2261,
966,
12,
10657,
803,
4672,
1123,
1126,
273,
5378,
225,
309,
3475,
803,
18,
5839,
1918,
2932,
18,
10657,
6,
4672,
3475,
1376,
273,
20863,
2261,
966,
12,
10657,
803,
13,
309,
... |
print 'setRuleData, col 2:', content.score.unit, value.toInt()[0] | def __setRuleData(column, content, value): """change rule data in the model""" # pylint: disable-msg=R0912 # allow more than 12 branches dirty = False if column == 0: name = str(value.toString()) if content.name != english(name): dirty = True content.name = english(name) elif column == 1: if content.parType: if conten... | ccbba5e8d5bfd813effddf7ed1bc0eb8ebd7a1c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/ccbba5e8d5bfd813effddf7ed1bc0eb8ebd7a1c3/rulesetselector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2175,
751,
12,
2827,
16,
913,
16,
460,
4672,
3536,
3427,
1720,
501,
316,
326,
938,
8395,
468,
7601,
30,
225,
4056,
17,
3576,
33,
54,
5908,
2138,
468,
1699,
1898,
2353,
2593,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
2175,
751,
12,
2827,
16,
913,
16,
460,
4672,
3536,
3427,
1720,
501,
316,
326,
938,
8395,
468,
7601,
30,
225,
4056,
17,
3576,
33,
54,
5908,
2138,
468,
1699,
1898,
2353,
2593,... | |
pos = line_len - word_number -1 word_size, word_height = self.stringsize(lines[line_number][pos], font,ptsize) self.drawstring(lines[line_number][pos], x0, y0, fgcolor, None, font, ptsize, 'right') x0 -= spacing x0 -= word_size | if word: pos = line_len - word_number -1 word_size, word_height = self.stringsize(lines[line_number][pos], font,ptsize) self.drawstring(lines[line_number][pos], x0, y0, fgcolor, None, font, ptsize, 'right') x0 -= spacing x0 -= word_size | def drawstringframed(self, string, x, y, width, height, fgcolor=None, bgcolor=None, font=None, ptsize=0, align_h='left', align_v='top'): | db8532a0d8416ad857cfce2b4ba7c7cc588d7e39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/db8532a0d8416ad857cfce2b4ba7c7cc588d7e39/osd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1080,
74,
1940,
329,
12,
2890,
16,
533,
16,
619,
16,
677,
16,
1835,
16,
2072,
16,
10186,
3266,
33,
7036,
16,
31509,
33,
7036,
16,
3512,
33,
7036,
16,
5818,
1467,
33,
20,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1080,
74,
1940,
329,
12,
2890,
16,
533,
16,
619,
16,
677,
16,
1835,
16,
2072,
16,
10186,
3266,
33,
7036,
16,
31509,
33,
7036,
16,
3512,
33,
7036,
16,
5818,
1467,
33,
20,
16,
... |
def has_table(self, connection, table_name): cursor = connection.execute("""select relname from pg_class where lower(relname) = %(name)s""", {'name':table_name.lower()}) | def has_table(self, connection, table_name, schema=None): if schema is None: cursor = connection.execute("""select relname from pg_class c join pg_namespace n on n.oid=c.relnamespace where n.nspname=current_schema() and relname=%(name)s""", {'name':table_name.lower()}); else: cursor = connection.execute("""select reln... | def has_table(self, connection, table_name): # TODO: why are we case folding here ? cursor = connection.execute("""select relname from pg_class where lower(relname) = %(name)s""", {'name':table_name.lower()}) return bool( not not cursor.rowcount ) | c117068dbe1cb70538af46988ea0ba0b581a7455 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/c117068dbe1cb70538af46988ea0ba0b581a7455/postgres.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2121,
12,
2890,
16,
1459,
16,
1014,
67,
529,
4672,
468,
2660,
30,
11598,
854,
732,
648,
11590,
310,
2674,
692,
3347,
273,
1459,
18,
8837,
2932,
3660,
4025,
1279,
529,
628,
718... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
67,
2121,
12,
2890,
16,
1459,
16,
1014,
67,
529,
4672,
468,
2660,
30,
11598,
854,
732,
648,
11590,
310,
2674,
692,
3347,
273,
1459,
18,
8837,
2932,
3660,
4025,
1279,
529,
628,
718... |
self.assertRaises(BufferError, operator.imul, a, 2) self.assertRaises(BufferError, operator.imul, a, 0) | self.assertEqual(m.tobytes(), expected) | def test_buffer(self): a = array.array(self.typecode, self.example) m = memoryview(a) b = bytes(m) self.assertEqual(b, a.tostring()) self.assertEqual(b[0], a.tostring()[0]) # Resizing is forbidden when there are buffer exports self.assertRaises(BufferError, a.append, a[0]) self.assertRaises(BufferError, a.extend, a[0:1... | 3e2bdfa1b4f0f0850a83311e4fd9314513326dca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/3e2bdfa1b4f0f0850a83311e4fd9314513326dca/test_array.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4106,
12,
2890,
4672,
279,
273,
526,
18,
1126,
12,
2890,
18,
723,
710,
16,
365,
18,
8236,
13,
312,
273,
3778,
1945,
12,
69,
13,
324,
273,
1731,
12,
81,
13,
365,
18,
11231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4106,
12,
2890,
4672,
279,
273,
526,
18,
1126,
12,
2890,
18,
723,
710,
16,
365,
18,
8236,
13,
312,
273,
3778,
1945,
12,
69,
13,
324,
273,
1731,
12,
81,
13,
365,
18,
11231... |
def __init__(self, fromFiles, toFile, use=None, component=None, allowDangling=False): | def __init__(self, fromFiles, toFile, **keywords): | def __init__(self, fromFiles, toFile, use=None, component=None, allowDangling=False): """ Create a new InstallSymlinks instance | fe27d4ad6ae0ded6abdad24608dcfc91c29d3e4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/fe27d4ad6ae0ded6abdad24608dcfc91c29d3e4d/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
628,
2697,
16,
24381,
16,
2826,
11771,
4672,
3536,
1788,
279,
394,
10284,
18475,
87,
791,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
628,
2697,
16,
24381,
16,
2826,
11771,
4672,
3536,
1788,
279,
394,
10284,
18475,
87,
791,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return True; | return True | def populate_list_from_results (self, treeview_name): """Check and acquire the lock""" if self.entry_lock.acquire (False) == False: if (self.last_pulse + 0.035) < time.time(): self.progress_bar.pulse () self.last_pulse = time.time() return True | 46523ddcd022328735d34c97303e166c1ff3dd97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/46523ddcd022328735d34c97303e166c1ff3dd97/youtube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
1098,
67,
2080,
67,
4717,
261,
2890,
16,
2151,
1945,
67,
529,
4672,
3536,
1564,
471,
10533,
326,
2176,
8395,
309,
365,
18,
4099,
67,
739,
18,
1077,
1039,
261,
8381,
13,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1098,
67,
2080,
67,
4717,
261,
2890,
16,
2151,
1945,
67,
529,
4672,
3536,
1564,
471,
10533,
326,
2176,
8395,
309,
365,
18,
4099,
67,
739,
18,
1077,
1039,
261,
8381,
13,
422,
... |
version = "HTTP/0.9" | def handle(self): | 8268bcaa11f9fa84fdd45982a4f47f2530f16c37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8268bcaa11f9fa84fdd45982a4f47f2530f16c37/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
return 1 | return True | def next(self): """Advance the iterator, if possible. | c2450cd2db47fce45ceeda283ccc45145d72ec81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9778/c2450cd2db47fce45ceeda283ccc45145d72ec81/tales.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
3536,
1871,
5882,
326,
2775,
16,
309,
3323,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1024,
12,
2890,
4672,
3536,
1871,
5882,
326,
2775,
16,
309,
3323,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(values)==1 and isinstance(values, dict): | if len(values)==1 and isinstance(values[0], dict): | def iterfetch(resultSpec, sqlTemplate, *values, **kwargs): """ a method that executes sql and returns rows of tuples of PyDO objects and scalar values, ordered according to a result set specification. resultSpec is a list that may contain: * PyDO classes; * 2-tuples of (PyDO class, alias string), which indicate that... | 139583214ebda060e603eeb731eb2febf5f4bcd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/139583214ebda060e603eeb731eb2febf5f4bcd0/multifetch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
5754,
12,
2088,
1990,
16,
1847,
2283,
16,
380,
2372,
16,
2826,
4333,
4672,
3536,
279,
707,
716,
11997,
1847,
471,
1135,
2595,
434,
10384,
434,
4707,
3191,
2184,
471,
4981,
924,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
5754,
12,
2088,
1990,
16,
1847,
2283,
16,
380,
2372,
16,
2826,
4333,
4672,
3536,
279,
707,
716,
11997,
1847,
471,
1135,
2595,
434,
10384,
434,
4707,
3191,
2184,
471,
4981,
924,
16,... |
for entry in range(0, newEntries): | for entry in range(0, len(newEntries)): | def refresh(self, force=False): if not force and (datetime.utcnow() - self.lastPoll) < self.pollInterval: log.debug("Skipping refresh") return log.debug("Refreshing entries") newEntries = [] regex = re.compile('<img src="(.*)" alt="" />') feed = feedparser.parse(self.url) for entry in feed['entries'][:5]: # FIXME: use ... | 06f1b3704e9e9be9b6fd81d0b059d9dc10a76670 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12732/06f1b3704e9e9be9b6fd81d0b059d9dc10a76670/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
2944,
33,
8381,
4672,
309,
486,
2944,
471,
261,
6585,
18,
17892,
3338,
1435,
300,
365,
18,
2722,
19085,
13,
411,
365,
18,
13835,
4006,
30,
613,
18,
4148,
2932,
1687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
12,
2890,
16,
2944,
33,
8381,
4672,
309,
486,
2944,
471,
261,
6585,
18,
17892,
3338,
1435,
300,
365,
18,
2722,
19085,
13,
411,
365,
18,
13835,
4006,
30,
613,
18,
4148,
2932,
1687... |
def fl_hide_canvas(ob): """ fl_hide_canvas(ob) """ _fl_hide_canvas(ob) _fl_share_canvas_colormap = cfuncproto(so_libforms, "fl_share_canvas_colormap", None, [cty.POINTER(FL_OBJECT), Colormap], | def fl_hide_canvas(pObject): """ fl_hide_canvas(pObject) """ _fl_hide_canvas(pObject) _fl_share_canvas_colormap = cfuncproto(so_libforms, "fl_share_canvas_colormap", None, [cty.POINTER(FL_OBJECT), Colormap], | def fl_hide_canvas(ob): """ fl_hide_canvas(ob) """ _fl_hide_canvas(ob) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
11248,
67,
15424,
12,
947,
4672,
3536,
1183,
67,
11248,
67,
15424,
12,
947,
13,
3536,
225,
389,
2242,
67,
11248,
67,
15424,
12,
947,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
11248,
67,
15424,
12,
947,
4672,
3536,
1183,
67,
11248,
67,
15424,
12,
947,
13,
3536,
225,
389,
2242,
67,
11248,
67,
15424,
12,
947,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,... |
self.REQUEST._hold(CleanupTemp(self)) | u.REQUEST._hold(CleanupTemp(self)) | def wrapUser(self, u): ''' If possible, returns the Member object that corresponds to the given User object. We override this to ensure OUR MemberData class is used ''' id = u.getId() members = self._members if not members.has_key(id): # Get a temporary member that might be # registered later via registerMemberData(). ... | bd02835534d3fc07d9728886544030b51c67f1bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12230/bd02835534d3fc07d9728886544030b51c67f1bd/memberdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
1299,
12,
2890,
16,
582,
4672,
9163,
971,
3323,
16,
1135,
326,
8596,
733,
716,
13955,
358,
326,
864,
2177,
733,
18,
1660,
3849,
333,
358,
3387,
531,
1099,
8596,
751,
667,
353,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
1299,
12,
2890,
16,
582,
4672,
9163,
971,
3323,
16,
1135,
326,
8596,
733,
716,
13955,
358,
326,
864,
2177,
733,
18,
1660,
3849,
333,
358,
3387,
531,
1099,
8596,
751,
667,
353,
13... |
def fit(self, Y, **keywords): | def fit(self, Y): | def fit(self, Y, **keywords): """ Full \'fit\' of the model including estimate of covariance matrix, (whitened) residuals and scale. | 9ddff40881d697c0b8f7657aabf6bd401fbfe489 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/9ddff40881d697c0b8f7657aabf6bd401fbfe489/regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4845,
12,
2890,
16,
1624,
4672,
3536,
11692,
7164,
7216,
3730,
434,
326,
938,
6508,
11108,
434,
17366,
3148,
16,
261,
3350,
305,
275,
329,
13,
29252,
471,
3159,
18,
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,
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,
4845,
12,
2890,
16,
1624,
4672,
3536,
11692,
7164,
7216,
3730,
434,
326,
938,
6508,
11108,
434,
17366,
3148,
16,
261,
3350,
305,
275,
329,
13,
29252,
471,
3159,
18,
2,
-100,
-100,
-100,
... |
def set_escape_dos_devices(self): SetConnections.UpdateGlobal('escape_dos_devices', \ self.dest_fsa.escape_dos_devices) | def set_escape_dos_devices(self): SetConnections.UpdateGlobal('escape_dos_devices', \ self.dest_fsa.escape_dos_devices) | 61533a9990410b5be10962cdefe1b4809d7bf247 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/61533a9990410b5be10962cdefe1b4809d7bf247/fs_abilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
4672,
1000,
9314,
18,
1891,
5160,
2668,
6939,
67,
19219,
67,
12506,
2187,
521,
365,
18,
10488,
67,
2556,
69,
18,
6939,
67,
19219,
67,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
4672,
1000,
9314,
18,
1891,
5160,
2668,
6939,
67,
19219,
67,
12506,
2187,
521,
365,
18,
10488,
67,
2556,
69,
18,
6939,
67,
19219,
67,
125... | |
potions[longid] = (eid,) + tuple(func(field) for func,field in | alch[longid] = (eid,) + tuple(func(field) for func,field in | def readFromText(self,textPath): """Reads stats from specified text file.""" alch, ammo, armor, books, ingredients, keys, lights, misc, weapons = [self.type_stats[type] for type in ('ALCH','AMMO','ARMO','BOOK','INGR','KEYM','LIGH','MISC','WEAP')] aliases = self.aliases ins = bolt.CsvReader(textPath) pack,unpack = struc... | 1b871cebfda4530e6e89778652b04250651add47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/1b871cebfda4530e6e89778652b04250651add47/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20876,
1528,
12,
2890,
16,
955,
743,
4672,
3536,
7483,
3177,
628,
1269,
977,
585,
12123,
524,
343,
16,
2125,
8683,
16,
23563,
280,
16,
6978,
87,
16,
12152,
1118,
5828,
16,
1311,
16,
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,
20876,
1528,
12,
2890,
16,
955,
743,
4672,
3536,
7483,
3177,
628,
1269,
977,
585,
12123,
524,
343,
16,
2125,
8683,
16,
23563,
280,
16,
6978,
87,
16,
12152,
1118,
5828,
16,
1311,
16,
26... |
task = self._remove(reqpkg, changeset, locked, pending, pruneweight, depth) for res in task: yield res | task = trans.TaskRemove(self, reqpkg, changeset, locked, pending, pruneweight, self._yieldweight) for res in task: yield res; pruneweight=min(pruneweight,self._pruneweight); task.setWeights(pruneweight, self._yieldweight) | def _remove(self, pkg, changeset, locked, pending, pruneweight, depth=0): depth += 1 trace(1, depth, "_remove(%s, pw=%f)", (pkg, pruneweight)) | c2ff0e2fa3473e5898baf091e7a39f94abf28732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/c2ff0e2fa3473e5898baf091e7a39f94abf28732/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
12,
2890,
16,
3475,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
4672,
3598,
1011,
404,
2606,
12,
21,
16,
3598,
16,
4192,
4479,
9275,
87,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
12,
2890,
16,
3475,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
4672,
3598,
1011,
404,
2606,
12,
21,
16,
3598,
16,
4192,
4479,
9275,
87,
16,
... |
''' for tok in data.split(' '): if len(tok) == 0: print "funny",data.split(' ');continue if tok[0] == '!': if len(tok) > 2: roll = self.dice(tok) if roll: color.append(ansi(COLOR['red'])) output += color[-1] + roll color.pop() output += color[-1] + ' ' continue ''' | def wrap(self,data): ''' Miten ois v2 mika lukee koko paskan kirjain kirjaimelta -> varien sailytys onnistuis ''' # First talking quote = False offtopic = False dice = False cmode = False output = '' dbuf = '' cbuf = '' color = [ansi(COLOR['white'])] print data ''' for tok in data.split(' '): if len(tok) == 0: print "... | 0c2660358aa59fdccd838709058972b485f435cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13227/0c2660358aa59fdccd838709058972b485f435cd/ropeserve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
2890,
16,
892,
4672,
9163,
490,
305,
275,
320,
291,
331,
22,
312,
21256,
328,
19445,
1340,
417,
601,
83,
293,
835,
304,
417,
481,
78,
530,
417,
481,
78,
4581,
8967,
317,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
2890,
16,
892,
4672,
9163,
490,
305,
275,
320,
291,
331,
22,
312,
21256,
328,
19445,
1340,
417,
601,
83,
293,
835,
304,
417,
481,
78,
530,
417,
481,
78,
4581,
8967,
317,
13... | |
return value.strftime("'%Y-%m-%d %H:%M:%s'") | return value.strftime("'%Y-%m-%d %H:%M:%S'") | def DateTimeConverter(value, db): return value.strftime("'%Y-%m-%d %H:%M:%s'") | 765a46186ad72c7cb6e5ba2156c2216b87df8b9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/765a46186ad72c7cb6e5ba2156c2216b87df8b9a/converters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3716,
5072,
12,
1132,
16,
1319,
4672,
327,
460,
18,
701,
9982,
29823,
9,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
87,
4970,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3716,
5072,
12,
1132,
16,
1319,
4672,
327,
460,
18,
701,
9982,
29823,
9,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
87,
4970,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
res = self._sock.accept() | client, addr = self._sock.accept() break | def accept(self): if self.timeout == 0.0: return self._sock.accept() while True: try: res = self._sock.accept() except error, ex: if ex[0] == errno.EWOULDBLOCK: res = None else: raise if res is not None: client, addr = res return socket(_sock=client), addr wait_read(self._sock.fileno(), timeout=self.timeout) | 35d9f001c11f344d4f3a9926f2c9e198050c89f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/35d9f001c11f344d4f3a9926f2c9e198050c89f1/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
309,
365,
18,
4538,
422,
374,
18,
20,
30,
327,
365,
6315,
15031,
18,
9436,
1435,
1323,
1053,
30,
775,
30,
1004,
16,
3091,
273,
365,
6315,
15031,
18,
9436,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
309,
365,
18,
4538,
422,
374,
18,
20,
30,
327,
365,
6315,
15031,
18,
9436,
1435,
1323,
1053,
30,
775,
30,
1004,
16,
3091,
273,
365,
6315,
15031,
18,
9436,
1435,
... |
print "kind=", kind print "ip,mask=", (ip, mask) | LOG.info( "kind=" + kind ) LOG.info( "ip,mask="+ ip + mask ) | def handleCmd_TKL(self, prefix, args): | 69835a631879faf4f1d962b8382f2deb518e961d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/69835a631879faf4f1d962b8382f2deb518e961d/dtella_bridgeserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
56,
47,
48,
12,
2890,
16,
1633,
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,
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,
1640,
5931,
67,
56,
47,
48,
12,
2890,
16,
1633,
16,
833,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._cvt = lambda s, x,c=self._cvt: self.rateCvt(c(x)) | self._cvt = lambda x,c=self._cvt: self.rateCvt(c(x)) | def __init__(self, fp): self.fp = self.module.open(fp, 'rb') p = self.fp.getparams() print p if (p[4] not in self.allowedComp): raise ValueError("Incorrect file format %r"%(p,)) self.comptype = p[4] if p[0] == 2: self._cvt = lambda x, c=self._cvt: audiop.tomono(c(x)) elif p[0] != 1: raise ValueError("can only handle mo... | a54ab3cca4d8181a46c9543e1f342a47b3491534 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/a54ab3cca4d8181a46c9543e1f342a47b3491534/aufile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
365,
18,
2978,
18,
3190,
12,
7944,
16,
296,
6731,
6134,
293,
273,
365,
18,
7944,
18,
588,
2010,
1435,
1172,
293,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
365,
18,
2978,
18,
3190,
12,
7944,
16,
296,
6731,
6134,
293,
273,
365,
18,
7944,
18,
588,
2010,
1435,
1172,
293,
309,
2... |
ObjDoc.__init__(self, uid, verbosity) if self._uid.is_method(): func = func.im_func | docstring = _getdoc(func) if uid.is_method(): func = func.im_func | def __init__(self, uid, verbosity=0): func = uid.value() self._tmp_param = {} self._tmp_type = {} self._raises = [] self._overrides = None self._matches_override = 0 ObjDoc.__init__(self, uid, verbosity) | d0164ceec6b7c656820c9cc53370c59eb64d4605 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d0164ceec6b7c656820c9cc53370c59eb64d4605/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4555,
16,
11561,
33,
20,
4672,
1326,
273,
4555,
18,
1132,
1435,
365,
6315,
5645,
67,
891,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
365,
6315,
354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4555,
16,
11561,
33,
20,
4672,
1326,
273,
4555,
18,
1132,
1435,
365,
6315,
5645,
67,
891,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
365,
6315,
354,... |
def close(self): self.closed=1 | def close(self): self.closed=1 | def close(self): self.closed=1 | 76e0455e2bbdba0a89ff1c01f4c5df2a797d8288 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/76e0455e2bbdba0a89ff1c01f4c5df2a797d8288/BIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
18,
12204,
33,
21,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
18,
12204,
33,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert_arrays_equal(actual, desired) | self.assertRavelEqual(actual, desired) | def test_antialias_bevel(self): antialias = True width = 3 line_cap = kiva.CAP_BUTT line_join = kiva.JOIN_BEVEL gc = self.helper(antialias, width, line_cap, line_join) actual = gc.bmp_array[:,:,0] desired = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 127, 0, 0, 127, 255], [... | 693c25b8cee266233747e042e57a3325b339258d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/693c25b8cee266233747e042e57a3325b339258d/join_stroke_path_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2196,
941,
12,
2890,
4672,
17841,
649,
1795,
273,
1053,
1835,
273,
890,
980,
67,
5909,
273,
417,
427,
69,
18,
17296,
67,
3000,
1470,
980,
67,
5701,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2196,
941,
12,
2890,
4672,
17841,
649,
1795,
273,
1053,
1835,
273,
890,
980,
67,
5909,
273,
417,
427,
69,
18,
17296,
67,
3000,
1470,
980,
67,
5701,
273,
... |
context.Result(CXX) else: context.Result(0) return | context.Result(CXX) else: context.Result(0) if myplatform['distro'] == 'fc6': sys.stderr.write("Needed package: gcc-c++") sys.exit(1) context.Message("checking if %s works ... " % CXX) | def cxx(context): context.Message("checking C++ compiler ... ") CXX = context.env.get('CXX') if CXX: context.Result(CXX) else: context.Result(0) return text = ''' #include <valarray> int main(int argc,char* argv[]) { return 0; }\n''' context.Message("checking if %s works ... " % CXX) res = context.TryLink(text,'.cc') ... | 48f74b0cc7ad87ff031aeb2e4a6d08e2d4a9ecf3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3143/48f74b0cc7ad87ff031aeb2e4a6d08e2d4a9ecf3/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
5279,
12,
2472,
4672,
819,
18,
1079,
2932,
24609,
385,
9904,
5274,
1372,
9369,
385,
5619,
273,
819,
18,
3074,
18,
588,
2668,
39,
5619,
6134,
309,
385,
5619,
30,
819,
18,
1253,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
5279,
12,
2472,
4672,
819,
18,
1079,
2932,
24609,
385,
9904,
5274,
1372,
9369,
385,
5619,
273,
819,
18,
3074,
18,
588,
2668,
39,
5619,
6134,
309,
385,
5619,
30,
819,
18,
1253,
12,... |
if pkt[TCP].ack != 0: | if pkt.payload.ack != 0: | def packet2p0f(pkt): while pkt.haslayer(IP) and pkt.haslayer(TCP): pkt = pkt.getlayer(IP) if isinstance(pkt.payload, TCP): break pkt = pkt.payload if not isinstance(pkt, IP) or not isinstance(pkt.payload, TCP): raise TypeError("Not a TCP/IP packet") if pkt.payload.flags & 0x13 != 0x02: #S,!A,!F raise TypeError("Not a ... | bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984/p0f.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4414,
22,
84,
20,
74,
12,
5465,
88,
4672,
1323,
11536,
18,
5332,
6363,
12,
2579,
13,
471,
11536,
18,
5332,
6363,
12,
13891,
4672,
11536,
273,
11536,
18,
588,
6363,
12,
2579,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4414,
22,
84,
20,
74,
12,
5465,
88,
4672,
1323,
11536,
18,
5332,
6363,
12,
2579,
13,
471,
11536,
18,
5332,
6363,
12,
13891,
4672,
11536,
273,
11536,
18,
588,
6363,
12,
2579,
13,
309,
... |
return __getPreviousTrackIdx() != -1 | return self.__getPreviousTrackIdx() != -1 | def __hasPreviousTrack(self): """ Return whether there is a previous track """ return __getPreviousTrackIdx() != -1 | 4359f2fded5f084b23609b76706a64f6a7163c68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1737/4359f2fded5f084b23609b76706a64f6a7163c68/Tracklist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5332,
8351,
4402,
12,
2890,
4672,
3536,
2000,
2856,
1915,
353,
279,
2416,
3298,
3536,
327,
1001,
588,
8351,
4402,
4223,
1435,
480,
300,
21,
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,
0,
0,
0,
0,
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,
5332,
8351,
4402,
12,
2890,
4672,
3536,
2000,
2856,
1915,
353,
279,
2416,
3298,
3536,
327,
1001,
588,
8351,
4402,
4223,
1435,
480,
300,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if op == opmap['SET_LINENO'] and i > 0: print | def disassemble_string(code, lasti=-1, varnames=None, names=None, constants=None): labels = findlabels(code) n = len(code) i = 0 while i < n: c = code[i] op = ord(c) if op == opmap['SET_LINENO'] and i > 0: print # Extra blank line if i == lasti: print '-->', else: print ' ', if i in labels: print '>>', else: print ' ... | 52a0f0cf170ebaa5ba24a639e24efeb221313684 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52a0f0cf170ebaa5ba24a639e24efeb221313684/dis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
29676,
67,
1080,
12,
710,
16,
1142,
77,
29711,
21,
16,
569,
1973,
33,
7036,
16,
1257,
33,
7036,
16,
6810,
33,
7036,
4672,
3249,
273,
1104,
5336,
12,
710,
13,
290,
273,
562,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
29676,
67,
1080,
12,
710,
16,
1142,
77,
29711,
21,
16,
569,
1973,
33,
7036,
16,
1257,
33,
7036,
16,
6810,
33,
7036,
4672,
3249,
273,
1104,
5336,
12,
710,
13,
290,
273,
562,
12,... | |
asyncore.dispatcher.close(self) | def close(self): """Close the data channel, first attempting to close any remaining file handles.""" if not self._closed: self._closed = True if self.file_obj is not None and not self.file_obj.closed: self.file_obj.close() if self.idler is not None and not self.idler.cancelled: self.idler.cancel() asyncore.dispatcher.c... | d85284029e7e153ccda240d2f2ac2ff81c2db85c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7236/d85284029e7e153ccda240d2f2ac2ff81c2db85c/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4605,
326,
501,
1904,
16,
1122,
15600,
358,
1746,
1281,
4463,
585,
7372,
12123,
309,
486,
365,
6315,
12204,
30,
365,
6315,
12204,
273,
1053,
309,
365,
18,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1746,
12,
2890,
4672,
3536,
4605,
326,
501,
1904,
16,
1122,
15600,
358,
1746,
1281,
4463,
585,
7372,
12123,
309,
486,
365,
6315,
12204,
30,
365,
6315,
12204,
273,
1053,
309,
365,
18,
768... | |
print "error parsing remote-interface attributes in %s" % iname | def __init__(self, iname, bases=(), attrs=None, __module__=None): if attrs is None: interface.InterfaceClass.__init__(self, iname, bases, attrs, __module__) return | a7ff2851e68ecec1ffcab8127d0144a4951b3772 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a7ff2851e68ecec1ffcab8127d0144a4951b3772/remoteinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
339,
16,
8337,
33,
9334,
3422,
33,
7036,
16,
1001,
2978,
972,
33,
7036,
4672,
309,
3422,
353,
599,
30,
1560,
18,
1358,
797,
16186,
2738,
972,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
339,
16,
8337,
33,
9334,
3422,
33,
7036,
16,
1001,
2978,
972,
33,
7036,
4672,
309,
3422,
353,
599,
30,
1560,
18,
1358,
797,
16186,
2738,
972,
12,
... | |
pixyFM_right = event.area.y + int(event.area.height * (100-self.fadePoints[1]) / 100.0) | pixyFM_right = int(padded_height * (100-self.fadePoints[1]) / 100.0) | def OnDraw(self, widget, event): """ This function blits the waveform data onto the screen, and then draws the play cursor over it. """ c = self.cachedDrawArea e = event.area #check if the expose area is within the already cached rectangle if e.x < c.x or (e.x + e.width > c.x + c.width) or self.redrawWaveform: self.Dr... | e365371eaeb7fba1c7c274012de019f596548adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e365371eaeb7fba1c7c274012de019f596548adb/EventViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6493,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
1220,
445,
2811,
1282,
326,
31511,
501,
10170,
326,
5518,
16,
471,
1508,
30013,
326,
6599,
3347,
1879,
518,
18,
3536,
276,
273,
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,
2755,
6493,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
1220,
445,
2811,
1282,
326,
31511,
501,
10170,
326,
5518,
16,
471,
1508,
30013,
326,
6599,
3347,
1879,
518,
18,
3536,
276,
273,
365,
... |
self._jpeg_file = tempfile.mktemp(suffix='.jpeg', dir=self.directory) | def jpeg_file(self): if self._jpeg_file: return self._jpeg_file else: self._jpeg_file = tempfile.mktemp(suffix='.jpeg', dir=self.directory) | 95859bf7fb9ff3bbd6c0ddd29f85b6d86decdccd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/95859bf7fb9ff3bbd6c0ddd29f85b6d86decdccd/dicom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29726,
67,
768,
12,
2890,
4672,
309,
365,
6315,
14423,
67,
768,
30,
327,
365,
6315,
14423,
67,
768,
469,
30,
365,
6315,
14423,
67,
768,
273,
13275,
18,
24816,
5814,
12,
8477,
2218,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29726,
67,
768,
12,
2890,
4672,
309,
365,
6315,
14423,
67,
768,
30,
327,
365,
6315,
14423,
67,
768,
469,
30,
365,
6315,
14423,
67,
768,
273,
13275,
18,
24816,
5814,
12,
8477,
2218,
18,... | |
- ``'pari'`` - use PARI's factorial function | - ``'pari'`` - use PARI's factorial function | def factorial(n, algorithm='gmp'): r""" Compute the factorial of `n`, which is the product `1\cdot 2\cdot 3 \cdots (n-1)\cdot n`. INPUT: - ``n`` - an integer - ``algorithm`` - string (default: 'gmp') - ``'gmp'`` - use the GMP C-library factorial function - ``'pari'`` - use PARI's factorial function OUTPUT: an... | af57b3b66df3442133d095647bf6a45423ff3bbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/af57b3b66df3442133d095647bf6a45423ff3bbd/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5578,
649,
12,
82,
16,
4886,
2218,
75,
1291,
11,
4672,
436,
8395,
8155,
326,
5578,
649,
434,
1375,
82,
9191,
1492,
353,
326,
3017,
1375,
21,
64,
4315,
352,
576,
64,
4315,
352,
890,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5578,
649,
12,
82,
16,
4886,
2218,
75,
1291,
11,
4672,
436,
8395,
8155,
326,
5578,
649,
434,
1375,
82,
9191,
1492,
353,
326,
3017,
1375,
21,
64,
4315,
352,
576,
64,
4315,
352,
890,
5... |
def __repr__(self): | def _repr_(self): | def __repr__(self): """ TESTS:: sage: repr(StandardTableaux()) 'Standard tableaux' """ return "Standard tableaux" | dc756d26ea922387ee74781c3b99359e739e8c01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/dc756d26ea922387ee74781c3b99359e739e8c01/tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
3536,
22130,
55,
2866,
225,
272,
410,
30,
8480,
12,
8336,
1388,
18196,
10756,
296,
8336,
1014,
18196,
11,
3536,
327,
315,
8336,
1014,
18196,
6,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
67,
12,
2890,
4672,
3536,
22130,
55,
2866,
225,
272,
410,
30,
8480,
12,
8336,
1388,
18196,
10756,
296,
8336,
1014,
18196,
11,
3536,
327,
315,
8336,
1014,
18196,
6,
2,
-100,
... |
file_formset = FileFormSetFactory(prefix='files') | file_formset = FileFormSetFactory(prefix='files', queryset=File.objects.none()) print file_formset.initial | def add(request): context = {} entry_form = EntryForm(prefix='entries') file_forms_excludes = ('entry', 'scribd_link', 'scribd_ak', 'size', 'scribd_id', 'name') FileFormSetFactory = modelformset_factory(File, form=FileForm, extra=8, exclude=file_forms_excludes,) file_formset = FileFormSetFactory(prefix='files') if req... | 955ef00d47a3e538563f8bea6798fe74493d1790 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1776/955ef00d47a3e538563f8bea6798fe74493d1790/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2293,
4672,
819,
273,
2618,
1241,
67,
687,
273,
3841,
1204,
12,
3239,
2218,
8219,
6134,
585,
67,
9741,
67,
338,
8993,
273,
7707,
4099,
2187,
296,
4091,
72,
67,
1232,
2187,
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,
527,
12,
2293,
4672,
819,
273,
2618,
1241,
67,
687,
273,
3841,
1204,
12,
3239,
2218,
8219,
6134,
585,
67,
9741,
67,
338,
8993,
273,
7707,
4099,
2187,
296,
4091,
72,
67,
1232,
2187,
296... |
CPPDEFINES = ['NS3_DEBUG_ENABLE']) | CPPDEFINES = ['NS3_DEBUG_ENABLE', 'NS3_ASSERT_ENABLE']) | def generate_dependencies(self): inheritenv = (ARGUMENTS.get('inheritenv', 'n') in 'yY1') if inheritenv: env = Environment(ENV=os.environ) else: env = Environment() self.gen_mod_config(env) cc = env['CC'] cxx = env.subst(env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split(' ') cxxflags = ARGUMENTS.get('cxxflag... | 076c16e0ba5a28e60dec75ac6f87e8eb478df8f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11087/076c16e0ba5a28e60dec75ac6f87e8eb478df8f5/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11037,
12,
2890,
4672,
6811,
3074,
273,
261,
18311,
55,
18,
588,
2668,
6018,
3074,
2187,
296,
82,
6134,
316,
296,
93,
61,
21,
6134,
309,
6811,
3074,
30,
1550,
273,
7518,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11037,
12,
2890,
4672,
6811,
3074,
273,
261,
18311,
55,
18,
588,
2668,
6018,
3074,
2187,
296,
82,
6134,
316,
296,
93,
61,
21,
6134,
309,
6811,
3074,
30,
1550,
273,
7518,
12,
... |
setupDirectConversions('PTKDemo', 'CMFDefault', demo_conversions, | BEFORE_CONTENT_MOVE = 0 if BEFORE_CONTENT_MOVE: content_product = 'PTKBase' else: content_product = 'PTKDemo' setupDirectConversions(content_product, 'CMFDefault', demo_conversions, | def migrate(self, src_path='', dest_path=''): if not src_path or not dest_path: return ''' <html><body><form action="%s" method="POST"> <h2>Migrate PTK content to CMF site</h2> <p>Path (not including server URL) to PTK instance (source): <input type="text" name="src_path"></p> <p>Path (not including server URL) to CMF ... | 4633d1b5c9f15bd8eccf2975cad17434500555bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/4633d1b5c9f15bd8eccf2975cad17434500555bb/migrate_ptk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
16,
1705,
67,
803,
2218,
2187,
1570,
67,
803,
2218,
11,
4672,
309,
486,
1705,
67,
803,
578,
486,
1570,
67,
803,
30,
327,
9163,
411,
2620,
4438,
3432,
4438,
687,
1301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
1705,
67,
803,
2218,
2187,
1570,
67,
803,
2218,
11,
4672,
309,
486,
1705,
67,
803,
578,
486,
1570,
67,
803,
30,
327,
9163,
411,
2620,
4438,
3432,
4438,
687,
1301,
... |
FL_Coord, STRING], | FL_Coord, STRING], | def fl_create_frame(type, x, y, w, h, label): """ fl_create_frame(type, x, y, w, h, label) -> object """ retval = _fl_create_frame(type, x, y, w, h, label) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
3789,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
3789,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
3789,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
3789,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
13,
... |
def __unicode__ (self): | def __unicode__(self): | def __unicode__ (self): msgs = [] if self.definition(): msgs = [u'it means %s' % self.definition()] | 8dac83005f048fe77ba0896fa6e27bc3611b49ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/8dac83005f048fe77ba0896fa6e27bc3611b49ba/conversions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
8733,
273,
5378,
309,
365,
18,
6907,
13332,
8733,
273,
306,
89,
11,
305,
4696,
738,
87,
11,
738,
365,
18,
6907,
1435,
65,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
8733,
273,
5378,
309,
365,
18,
6907,
13332,
8733,
273,
306,
89,
11,
305,
4696,
738,
87,
11,
738,
365,
18,
6907,
1435,
65,
2,
-100,
-100,
-100,
-100,
... |
tmp = "/tmp/tmp_%s_%s"%(name, n) | tmp = "/temp/tmp_%s_%s"%(name, n) | def tmp_dir(name): r""" Create and return a temporary directory in \code{\$HOME/.sage/tmp/pid/} """ name = str(name) n = 0 while True: tmp = "%s/%s_%s"%(SAGE_TMP, name, n) if not os.path.exists(tmp): break n += 1 try: os.makedirs(tmp) except IOError: # Put in local directory instead, e.g., because user doesn't # have p... | 01bd66be80a216df5cfc453c55b9d98f6a064989 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/01bd66be80a216df5cfc453c55b9d98f6a064989/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1853,
67,
1214,
12,
529,
4672,
436,
8395,
1788,
471,
327,
279,
6269,
1867,
316,
521,
710,
95,
14433,
14209,
15865,
87,
410,
19,
5645,
19,
6610,
19,
97,
3536,
508,
273,
609,
12,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1853,
67,
1214,
12,
529,
4672,
436,
8395,
1788,
471,
327,
279,
6269,
1867,
316,
521,
710,
95,
14433,
14209,
15865,
87,
410,
19,
5645,
19,
6610,
19,
97,
3536,
508,
273,
609,
12,
529,
... |
out = "%s <marc:datafield tag=\"%s\" ind1=\"%s\" ind2=\"%s\">\n" % (out, encode_for_xml(field[0:3]), encode_for_xml(ind1).lower(), encode_for_xml(ind2).lower()) field_number_old = field_number field_old = field if format == "marcxml": value = encode_for_xml(value) if(field[0:2] == "00"): out = "%s %s\n" % ... | out = "%s <marc:subfield code=\"%s\">%s</marc:subfield>\n" % (out, encode_for_xml(field[-1:]), value) if (format == "marcxml") and field_number_old != -999: if field_old[0:2] == "00": out = out + " </marc:controlfield>\n" | def print_record(sysno, format='marcxml', record_exists_result=None): """Prints record 'sysno' formatted according to 'format'. - if record does not exist, return nothing. - if record has been deleted and CFG_OAI_DELETED_POLICY is 'transient' or 'deleted', then return only header, with status 'deleted'. - if record ... | f634c6df34cfde29316a6d343d7dda6d4b78c289 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f634c6df34cfde29316a6d343d7dda6d4b78c289/oai_repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
9499,
2135,
16,
740,
2218,
3684,
71,
2902,
2187,
1409,
67,
1808,
67,
2088,
33,
7036,
4672,
3536,
15402,
1409,
296,
9499,
2135,
11,
4955,
4888,
358,
296,
2139,
10332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
67,
3366,
12,
9499,
2135,
16,
740,
2218,
3684,
71,
2902,
2187,
1409,
67,
1808,
67,
2088,
33,
7036,
4672,
3536,
15402,
1409,
296,
9499,
2135,
11,
4955,
4888,
358,
296,
2139,
10332,
... |
def list_clicked(obj, event, *args, **kargs): | def list_clicked(obj, it): | def list_clicked(obj, event, *args, **kargs): win = elementary.Window("list", elementary.ELM_WIN_BASIC) win.title_set("List") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() li = elementary.List(win) win.re... | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1098,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
682,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1098,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
682,
79... |
register.filter('untaxed_discount_saved', discount_saved) | register.filter('untaxed_discount_saved', untaxed_discount_saved) | def untaxed_discount_saved(product, discount): """Returns the amount saved by the discount""" if discount and discount.valid_for_product(product): price = product.unit_price discounted = untaxed_discount_price(product, discount) saved = price - discounted cents = Decimal("0.01") return saved.quantize(cents) else: retu... | e364b235c0cdf280ff4108f594d51279fc8d056a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/e364b235c0cdf280ff4108f594d51279fc8d056a/satchmo_discounts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
8066,
329,
67,
23650,
67,
14077,
12,
5896,
16,
12137,
4672,
3536,
1356,
326,
3844,
5198,
635,
326,
12137,
8395,
225,
309,
12137,
471,
12137,
18,
877,
67,
1884,
67,
5896,
12,
5896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
8066,
329,
67,
23650,
67,
14077,
12,
5896,
16,
12137,
4672,
3536,
1356,
326,
3844,
5198,
635,
326,
12137,
8395,
225,
309,
12137,
471,
12137,
18,
877,
67,
1884,
67,
5896,
12,
5896,
... |
return object.__new__(cls, *args) | return object.__new__(cls) | def __new__(cls): # set up jobs properly cls._job, cls._postjob = cls.job.onjob, cls.job.postjob | b762f423c2ca2a6cf976c06f21360bbae6c65705 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4543/b762f423c2ca2a6cf976c06f21360bbae6c65705/simulator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
4672,
468,
444,
731,
6550,
8214,
2028,
6315,
4688,
16,
2028,
6315,
2767,
4688,
273,
2028,
18,
4688,
18,
265,
4688,
16,
2028,
18,
4688,
18,
2767,
4688,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
4672,
468,
444,
731,
6550,
8214,
2028,
6315,
4688,
16,
2028,
6315,
2767,
4688,
273,
2028,
18,
4688,
18,
265,
4688,
16,
2028,
18,
4688,
18,
2767,
4688,
2,
-10... |
self.moviePlayerDashboard.setGeometry(QRect(0,19,1087,29)) | self.moviePlayerDashboard.setGeometry(QRect(0,19,1085,29)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 104fa1243ae9fff25c36432a2d178671a1082edb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/104fa1243ae9fff25c36432a2d178671a1082edb/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
msg = '\r\n'.join(msg.splitlines()) | msg = '\n'.join(msg.splitlines()) | def issueViaEmail(self, issuer, email, benefactor, domainName, httpPort=80, templateFileObj=None): """ Send a ticket via email to the supplied address, which, when claimed, will create an avatar and allow the given benefactor to endow it with things. | 5e0d03049f788f226301d6240a2b40b09b39774a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6980/5e0d03049f788f226301d6240a2b40b09b39774a/signup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5672,
21246,
4134,
12,
2890,
16,
9715,
16,
2699,
16,
27641,
6812,
16,
21044,
16,
1062,
2617,
33,
3672,
16,
28215,
2675,
33,
7036,
4672,
3536,
2479,
279,
9322,
3970,
2699,
358,
326,
4580,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5672,
21246,
4134,
12,
2890,
16,
9715,
16,
2699,
16,
27641,
6812,
16,
21044,
16,
1062,
2617,
33,
3672,
16,
28215,
2675,
33,
7036,
4672,
3536,
2479,
279,
9322,
3970,
2699,
358,
326,
4580,... |
if ch == '\r': | if ch == b'\r': | def __init__(self, ifp): if isinstance(ifp, basestring): ifp = open(ifp) # # Find initial colon. # while 1: ch = ifp.read(1) if not ch: raise Error, "No binhex data found" # Cater for \r\n terminated lines (which show up as \n\r, hence # all lines start with \r) if ch == '\r': continue if ch == ':': break if ch != '\n'... | 34a042d301d6ab88645046a6dfa6c38265ca4b39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/34a042d301d6ab88645046a6dfa6c38265ca4b39/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
309,
84,
4672,
309,
1549,
12,
430,
84,
16,
10699,
4672,
309,
84,
273,
1696,
12,
430,
84,
13,
468,
468,
4163,
2172,
13336,
18,
468,
1323,
404,
30,
462,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
84,
4672,
309,
1549,
12,
430,
84,
16,
10699,
4672,
309,
84,
273,
1696,
12,
430,
84,
13,
468,
468,
4163,
2172,
13336,
18,
468,
1323,
404,
30,
462,
... |
def GetNextHashKey(id, idx): | def GetNextHashKey(hashid, idx): | def GetNextHashKey(id, idx): raise DeprecatedIDCError, "Use python pickles instead." | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2134,
31006,
12,
2816,
350,
16,
2067,
4672,
1002,
9336,
734,
39,
668,
16,
315,
3727,
5790,
6002,
1040,
3560,
1199,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2134,
31006,
12,
2816,
350,
16,
2067,
4672,
1002,
9336,
734,
39,
668,
16,
315,
3727,
5790,
6002,
1040,
3560,
1199,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self._poolJobs(dbname) | self.setAlarm(self._poolJobs, time.time(), dbname, dbname) | def restart(self, dbname): self.cancel(dbname) self._poolJobs(dbname) | f1c93872a86f9d8977dcba2b76c2d2ac1bd1d039 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/f1c93872a86f9d8977dcba2b76c2d2ac1bd1d039/ir_cron.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7870,
12,
2890,
16,
18448,
4672,
365,
18,
10996,
12,
20979,
13,
365,
6315,
6011,
7276,
12,
20979,
13,
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,
7870,
12,
2890,
16,
18448,
4672,
365,
18,
10996,
12,
20979,
13,
365,
6315,
6011,
7276,
12,
20979,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. If x-m is an integer we define: | which is defined for $m \in \Z$ and any $x$. We extend this definition to include cases when $x-m$ is an integer but $m$ is not by | def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. If x-m is an integer we define: binomial(x,m)= binomial(x,x-m) (This rule makes sense if x is assumed to be an integer) INPUT:: x,m -- numbers or symbolic expre... | 43a559da00bb0e4ab2f3b278ac348ac5682a13f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/43a559da00bb0e4ab2f3b278ac348ac5682a13f0/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... |
model = property(lambda s: s.__device.model, lambda s, v: s.__device.model = v) path = property(lambda s: s.__device.path, lambda s, v: s.__device.path = v) type = property(lambda s: s.__device.type, lambda s, v: s.__device.type = v) sectorSize = property(lambda s: s.__device.sector_size, lambda s, v: s.__device.sector... | model = property(lambda s: s.__device.model, lambda s, v: setattr(s.__device, "model", v)) path = property(lambda s: s.__device.path, lambda s, v: setattr(s.__device, "path", v)) type = property(lambda s: s.__device.type, lambda s, v: setattr(s.__device, "type", v)) sectorSize = property(lambda s: s.__device.sector_siz... | def __init__(self, path=None, device=None): if path is not None: self.__device = _ped.device_get(path) elif device is not None: self.__device = device else: raise _ped.PartedException, "no path or _ped.Device specified" | 95d8c6590b0d2265714296b9c638ff01f830ad2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/95d8c6590b0d2265714296b9c638ff01f830ad2a/device.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
33,
7036,
16,
2346,
33,
7036,
4672,
309,
589,
353,
486,
599,
30,
365,
16186,
5964,
273,
389,
1845,
18,
5964,
67,
588,
12,
803,
13,
1327,
2346,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
589,
33,
7036,
16,
2346,
33,
7036,
4672,
309,
589,
353,
486,
599,
30,
365,
16186,
5964,
273,
389,
1845,
18,
5964,
67,
588,
12,
803,
13,
1327,
2346,
353... |
builder = docBuilder("libvirt", ["../src", "../include"], | builder = docBuilder("libvirt", ["../src", "../include/libvirt"], | def rebuild(): builder = None if glob.glob("../src/libvirt.c") != [] : print "Rebuilding API description for libvirt" builder = docBuilder("libvirt", ["../src", "../include"], []) elif glob.glob("src/libvirt.c") != [] : print "Rebuilding API description for libvir" builder = docBuilder("libvirt", ["src", "include"], []... | c74976f13952117bb239a6b44f5a1cb26536accb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11279/c74976f13952117bb239a6b44f5a1cb26536accb/apibuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13419,
13332,
2089,
273,
599,
309,
4715,
18,
10581,
2932,
6216,
4816,
19,
2941,
14035,
18,
71,
7923,
480,
5378,
294,
1172,
315,
426,
3510,
310,
1491,
2477,
364,
16388,
6,
2089,
273,
997,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13419,
13332,
2089,
273,
599,
309,
4715,
18,
10581,
2932,
6216,
4816,
19,
2941,
14035,
18,
71,
7923,
480,
5378,
294,
1172,
315,
426,
3510,
310,
1491,
2477,
364,
16388,
6,
2089,
273,
997,... |
if nXvectors == 1 and not getDerivative: r = r.flatten() | if nXvectors == 1 and (not getDerivative or r.size == 1): r = r.flatten() | def wrapped_func(p, x, IND, userFunctionType, ignorePrev, getDerivative): if not getattr(p.userProvided, userFunctionType): return array([]) if p.istop == USER_DEMAND_EXIT: if p.solver.__cannotHandleExceptions__: return nan else: raise killThread if getDerivative and not p.namedVariablesStyle and not DerApproximatorIs... | f5125d45e6345ec0d89ad3054dc21af720eb9673 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6196/f5125d45e6345ec0d89ad3054dc21af720eb9673/nonLinFuncs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
644,
12,
84,
16,
619,
16,
2120,
40,
16,
729,
2083,
559,
16,
2305,
9958,
16,
2343,
264,
427,
1535,
4672,
309,
486,
3869,
12,
84,
18,
1355,
19254,
16,
729,
2083,
559,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
644,
12,
84,
16,
619,
16,
2120,
40,
16,
729,
2083,
559,
16,
2305,
9958,
16,
2343,
264,
427,
1535,
4672,
309,
486,
3869,
12,
84,
18,
1355,
19254,
16,
729,
2083,
559,
4672,
... |
self.assert_(mailbox.MaildirMessage(msg_mboxMMDF).get_subdir() == \ 'cur') | self.assertEqual(mailbox.MaildirMessage(msg_mboxMMDF).get_subdir(), 'cur') | def test_mboxmmdf_to_maildir(self): # Convert mboxMessage and MMDFMessage to MaildirMessage for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage): msg_mboxMMDF = class_(_sample_message) msg_mboxMMDF.set_from('foo@bar', time.gmtime(0.0)) pairs = (('R', 'S'), ('O', ''), ('D', 'T'), ('F', 'F'), ('A', 'R'), ('RODFA', 'F... | 7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
81,
2147,
81,
1264,
74,
67,
869,
67,
2540,
545,
481,
12,
2890,
4672,
468,
4037,
312,
2147,
1079,
471,
18295,
4577,
1079,
358,
490,
69,
545,
481,
1079,
364,
667,
67,
316,
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,
1842,
67,
81,
2147,
81,
1264,
74,
67,
869,
67,
2540,
545,
481,
12,
2890,
4672,
468,
4037,
312,
2147,
1079,
471,
18295,
4577,
1079,
358,
490,
69,
545,
481,
1079,
364,
667,
67,
316,
26... |
if (asClause == ""): out.collectImportClause(importPath, originalFrom = True, isEdit = False) else: out.collectImportClause(importPath + " as " + asClause, originalFrom = True, isEdit = False) | out.collectImportClause(importPath, asClause, originalFrom = True, isEdit = False) | def renameModule(oldPackage, oldModule, newPackage, newModule): """ Iterate through all files in the current directory (recursively), renaming oldPackage.oldModule to newPackage.newModule. """ if (oldPackage == ""): oldPackageDot = "" else: oldPackageDot = oldPackage + "." oldPath = oldPackageDot + oldModule if (newPa... | 1c8e84f8aaefc4e19c3bd678d0c40fc6e1ff1095 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/1c8e84f8aaefc4e19c3bd678d0c40fc6e1ff1095/RenameModule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
3120,
12,
1673,
2261,
16,
1592,
3120,
16,
394,
2261,
16,
394,
3120,
4672,
3536,
11436,
3059,
777,
1390,
316,
326,
783,
1867,
261,
266,
6235,
3631,
30883,
1592,
2261,
18,
1673,
3120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6472,
3120,
12,
1673,
2261,
16,
1592,
3120,
16,
394,
2261,
16,
394,
3120,
4672,
3536,
11436,
3059,
777,
1390,
316,
326,
783,
1867,
261,
266,
6235,
3631,
30883,
1592,
2261,
18,
1673,
3120... |
if len (words) != 3: | if len (words) < 3: | def read_template (self): """Read and parse the manifest template file named by 'self.template' (usually "MANIFEST.in"). Process all file specifications (include and exclude) in the manifest template and add the resulting filenames to 'self.files'.""" | 7785de8f7220463bede0b151e88ccf05497d6802 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7785de8f7220463bede0b151e88ccf05497d6802/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3202,
261,
2890,
4672,
3536,
1994,
471,
1109,
326,
5643,
1542,
585,
4141,
635,
296,
2890,
18,
3202,
11,
261,
407,
3452,
315,
9560,
30050,
18,
267,
20387,
225,
4389,
777,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
3202,
261,
2890,
4672,
3536,
1994,
471,
1109,
326,
5643,
1542,
585,
4141,
635,
296,
2890,
18,
3202,
11,
261,
407,
3452,
315,
9560,
30050,
18,
267,
20387,
225,
4389,
777,
585,
... |
('.',['../source/version2/ChangeLog.txt']), | ('.',['../source/ChangeLog.txt']), | def listdirFull(thedir): """ This is just os.listdir() but it returns the full path names. """ files = os.listdir(thedir) for loop in range(len(files)): files[loop] = thedir+os.sep+files[loop] return files | 6e0cd39c2acb990a60792c700b93909c81207b65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8973/6e0cd39c2acb990a60792c700b93909c81207b65/setup_mac_version2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13529,
5080,
12,
451,
23210,
4672,
3536,
1220,
353,
2537,
1140,
18,
1098,
1214,
1435,
1496,
518,
1135,
326,
1983,
589,
1257,
18,
3536,
1390,
273,
1140,
18,
1098,
1214,
12,
451,
23210,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13529,
5080,
12,
451,
23210,
4672,
3536,
1220,
353,
2537,
1140,
18,
1098,
1214,
1435,
1496,
518,
1135,
326,
1983,
589,
1257,
18,
3536,
1390,
273,
1140,
18,
1098,
1214,
12,
451,
23210,
13... |
:silent au pida FileType * call Async_event("filetype,".bufnr('%').",".expand('<amatch>')) | def vim_globalkp(self, name): self.boss.command('keyboardshortcuts', 'keypress-by-name', kpname=name) | 155882c80f5c4377b93de9ea8190a61f2a9eed93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/155882c80f5c4377b93de9ea8190a61f2a9eed93/vimedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18727,
67,
6347,
79,
84,
12,
2890,
16,
508,
4672,
365,
18,
70,
8464,
18,
3076,
2668,
31486,
24744,
87,
2187,
296,
856,
1028,
17,
1637,
17,
529,
2187,
14061,
529,
33,
529,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18727,
67,
6347,
79,
84,
12,
2890,
16,
508,
4672,
365,
18,
70,
8464,
18,
3076,
2668,
31486,
24744,
87,
2187,
296,
856,
1028,
17,
1637,
17,
529,
2187,
14061,
529,
33,
529,
13,
2,
-100... | |
setattr(self, attr, result) | setattr(self, attr, result) | def __init__(self, foafUri=None): | 13226b82490a57f9ec81ff5c0ba6ae7e5426cd3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2682/13226b82490a57f9ec81ff5c0ba6ae7e5426cd3f/foaf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18261,
1727,
3006,
33,
7036,
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,... | [
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,
2738,
972,
12,
2890,
16,
18261,
1727,
3006,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
failure = True | failure = False | def failOrPass(failure, description): if failure: anyFailed = True print "FAILED: " + description else: print "PASSED: " + description | 0e10cb95e6d10f5396bfec88f205a93ee94634ca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10139/0e10cb95e6d10f5396bfec88f205a93ee94634ca/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
1162,
6433,
12,
12251,
16,
2477,
4672,
309,
5166,
30,
1281,
2925,
273,
1053,
1172,
315,
11965,
30,
315,
397,
2477,
469,
30,
1172,
315,
52,
3033,
18204,
30,
315,
397,
2477,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
1162,
6433,
12,
12251,
16,
2477,
4672,
309,
5166,
30,
1281,
2925,
273,
1053,
1172,
315,
11965,
30,
315,
397,
2477,
469,
30,
1172,
315,
52,
3033,
18204,
30,
315,
397,
2477,
2,
-10... |
self.base = target[:-3] | self.base = source[:-3] | def __init__ (self, target, source, env): leaf = DependLeaf([source]) Depend.__init__(self, [target], {source: leaf}) self.env = env self.base = target[:-3] self.cmd = ["mpost", "--interaction=batchmode", self.base] | cf169fcc124c35355295d36a361cda8c059f55ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/cf169fcc124c35355295d36a361cda8c059f55ba/mpost.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1018,
16,
1084,
16,
1550,
4672,
7839,
273,
10532,
9858,
3816,
3168,
5717,
10532,
16186,
2738,
972,
12,
2890,
16,
306,
3299,
6487,
288,
3168,
30,
7839,
679... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
16,
1018,
16,
1084,
16,
1550,
4672,
7839,
273,
10532,
9858,
3816,
3168,
5717,
10532,
16186,
2738,
972,
12,
2890,
16,
306,
3299,
6487,
288,
3168,
30,
7839,
679... |
<datafield tag="653" ind1=" " ind2=" "> | <datafield tag="653" ind1="1" ind2=" "> | def setUp(self): """Initialize the MARCXML test record.""" self.testrec1_xm = """ <record> <controlfield tag="001">123456789</controlfield> <controlfield tag="003">SzGeCERN</controlfield> <datafield tag="100" ind1=" " ind2=" "> <subfield code="a">Test, Jane</subfield> <subfield code="u">Test Institute</subfield> </data... | e5a8ed1362dcf4e7d6e658b24a104c1765a53d01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e5a8ed1362dcf4e7d6e658b24a104c1765a53d01/bibupload_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
7520,
326,
490,
27206,
4201,
1842,
1409,
12123,
365,
18,
3813,
3927,
21,
67,
92,
81,
273,
3536,
411,
3366,
34,
411,
7098,
1518,
1047,
1546,
11664,
6441,
2846... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7520,
326,
490,
27206,
4201,
1842,
1409,
12123,
365,
18,
3813,
3927,
21,
67,
92,
81,
273,
3536,
411,
3366,
34,
411,
7098,
1518,
1047,
1546,
11664,
6441,
2846... |
if force or expandtemplates: for attr in ['_redirarg', '_getexception', '_contents']: | if force: for attr in ['_redirarg', '_getexception', '_contents', '_expandcontents']: | def get(self, force=False, get_redirect=False, throttle=True, sysop=False, change_edit_time=True, expandtemplates=False): """Return the wiki-text of the page. | 50d8688a97f9101fcdf4f1cd9342ecc45c99e065 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/50d8688a97f9101fcdf4f1cd9342ecc45c99e065/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2944,
33,
8381,
16,
336,
67,
7590,
33,
8381,
16,
18304,
33,
5510,
16,
2589,
556,
33,
8381,
16,
2549,
67,
4619,
67,
957,
33,
5510,
16,
4542,
8502,
33,
8381,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2944,
33,
8381,
16,
336,
67,
7590,
33,
8381,
16,
18304,
33,
5510,
16,
2589,
556,
33,
8381,
16,
2549,
67,
4619,
67,
957,
33,
5510,
16,
4542,
8502,
33,
8381,
4672,
... |
task = self._remove(reqpkg, changeset, locked, pending, pruneweight, depth) for res in task: yield res | task = trans.TaskRemove(self, reqpkg, changeset, locked, pending, self._pruneweight, self._yieldweight) for res in task: yield res; task.setWeights(self._pruneweight, self._yieldweight) | def _pending(self, changeset, locked, pending, pruneweight, depth=0): depth += 1 if traceVerbosity<4: trace(1, depth, "_pending(pw=%f)", (pruneweight)) else: trace(4, depth, "_pending(%s, pw=%f)", (pending, pruneweight)) | c2ff0e2fa3473e5898baf091e7a39f94abf28732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/c2ff0e2fa3473e5898baf091e7a39f94abf28732/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
4672,
3598,
1011,
404,
309,
2606,
30594,
32,
24,
30,
2606,
12,
21,
16,
3598,
16,
4192,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9561,
12,
2890,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
4672,
3598,
1011,
404,
309,
2606,
30594,
32,
24,
30,
2606,
12,
21,
16,
3598,
16,
4192,
... |
Finite subgroup with invariants [5, 5, 5, 5] over QQ of Jacobian of the modular curve associated to the congruence subgroup Gamma0(23) | Finite subgroup with invariants [5, 5, 5, 5] over QQ of Abelian variety J0(23) of dimension 2 | def n_torsion_subgroup(self, n): """ Return the $n$-torsion subgroup of elements of order dividing $n$ of this modular abelian variety $A$, i.e., the group $A[n]$. | f30f87afcce1c095974cd5259aa7272b60928586 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f30f87afcce1c095974cd5259aa7272b60928586/abvar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
67,
88,
1383,
285,
67,
1717,
1655,
12,
2890,
16,
290,
4672,
3536,
2000,
326,
271,
82,
8,
17,
88,
1383,
285,
720,
1655,
434,
2186,
434,
1353,
3739,
10415,
271,
82,
8,
434,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
290,
67,
88,
1383,
285,
67,
1717,
1655,
12,
2890,
16,
290,
4672,
3536,
2000,
326,
271,
82,
8,
17,
88,
1383,
285,
720,
1655,
434,
2186,
434,
1353,
3739,
10415,
271,
82,
8,
434,
333,
... |
self.assertTrue(context.devices is devices) | self.assertTrue(hw_context.devices is devices) | def test_construction_3(self): devices = object() hw_context = HardwareContext(devices=devices) self.assertTrue(context.devices is devices) | 33350b1918e806e4c10a301b469914de84b03dfb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/33350b1918e806e4c10a301b469914de84b03dfb/test_dashboard_bundle_format_1_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
591,
4549,
67,
23,
12,
2890,
4672,
7166,
273,
733,
1435,
16139,
67,
2472,
273,
27438,
1042,
12,
12506,
33,
12506,
13,
365,
18,
11231,
5510,
12,
2472,
18,
12506,
353,
7166,
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,
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,
591,
4549,
67,
23,
12,
2890,
4672,
7166,
273,
733,
1435,
16139,
67,
2472,
273,
27438,
1042,
12,
12506,
33,
12506,
13,
365,
18,
11231,
5510,
12,
2472,
18,
12506,
353,
7166,
13... |
LOG('Transience', WARNING, ('Transient object container %s max subobjects ' 'reached' % self.getId()) ) | LOG.warn('Transient object container %s max subobjects ' 'reached' % self.getId()) | def __setitem__(self, k, v): DEBUG and TLOG('__setitem__: called with key %s, value %s' % (k,v)) if self._timeout_slices: current_ts = getCurrentTimeslice(self._period) else: current_ts = 0 item = self._move_item(k, current_ts, _marker) STRICT and _assert(self._data.has_key(current_ts)) if item is _marker: # the key di... | 791ea4a915270f180becd9581650dc98d0d998e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/791ea4a915270f180becd9581650dc98d0d998e4/Transience.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
417,
16,
331,
4672,
6369,
471,
399,
4842,
2668,
972,
542,
1726,
972,
30,
2566,
598,
498,
738,
87,
16,
460,
738,
87,
11,
738,
261,
79,
16,
90,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
1726,
972,
12,
2890,
16,
417,
16,
331,
4672,
6369,
471,
399,
4842,
2668,
972,
542,
1726,
972,
30,
2566,
598,
498,
738,
87,
16,
460,
738,
87,
11,
738,
261,
79,
16,
90,
37... |
if self._columns[field]._type in ('many2many'): obj = self.pool.get(self._columns[field]._obj) | if fld_def._type in ('many2many'): obj = self.pool.get(fld_def._obj) | def default_get(self, cr, uid, fields, context=None): if not context: context={} value = {} # get the default values for the inherited fields for t in self._inherits.keys(): value.update(self.pool.get(t).default_get(cr, uid, fields, context)) | e1bba990d20dbcf701b1b3da84892bd00122ca77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/e1bba990d20dbcf701b1b3da84892bd00122ca77/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268... |
return [node.__dict__ for node in root.getchildren()] | return [dict(((k, v.pyval) for k, v in node.__dict__.iteritems())) \ for node in root.getchildren()] | def getList(self, network_id=None, station_id=None, **kwargs): """ Gets a list of station information. | 695c3fca9aadb1f3fd4471ec0cc8122ae891189a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/695c3fca9aadb1f3fd4471ec0cc8122ae891189a/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10033,
12,
2890,
16,
2483,
67,
350,
33,
7036,
16,
13282,
67,
350,
33,
7036,
16,
2826,
4333,
4672,
3536,
11881,
279,
666,
434,
13282,
1779,
18,
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,
10033,
12,
2890,
16,
2483,
67,
350,
33,
7036,
16,
13282,
67,
350,
33,
7036,
16,
2826,
4333,
4672,
3536,
11881,
279,
666,
434,
13282,
1779,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def __init__(self, name, callback): | def __init__(self, name, callback, conv_fac): | def __init__(self, name, callback): QSlider.__init__(self) self.name = name self.callback = callback | 186eee357ab9a9a1d91f0651f6a9efcffa5aff79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/186eee357ab9a9a1d91f0651f6a9efcffa5aff79/qt_plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1348,
16,
6292,
67,
11639,
4672,
2238,
21824,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
508,
365,
18,
3394,
273,
1348,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1348,
16,
6292,
67,
11639,
4672,
2238,
21824,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
508,
365,
18,
3394,
273,
1348,
2,
-100,
-100,
... |
def _split_words(text): """ Splits a piece of text into words, separated by whitespace. """ return text.split() | def test_split_paragraphs(self): self.assertEquals(lipsum._split_paragraphs(self.sample), ["One two three four five six. Seven eight nine ten eleven twelve.", "Thirteen fourteen fifteen sixteen. Seventeen eighteen nineteen twenty."]) | def _split_words(text): """ Splits a piece of text into words, separated by whitespace. """ return text.split() | fa9e6662a1f30cb272942f25e233798ee7edac45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3480/fa9e6662a1f30cb272942f25e233798ee7edac45/testlipsum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4939,
67,
22445,
87,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
11693,
379,
6315,
4939,
67,
22445,
87,
12,
2890,
18,
6358,
3631,
8247,
3335,
2795,
8925,
12792,
23714,
5050,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4939,
67,
22445,
87,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
11693,
379,
6315,
4939,
67,
22445,
87,
12,
2890,
18,
6358,
3631,
8247,
3335,
2795,
8925,
12792,
23714,
5050,
18,
... |
def __init__(self, toReading, targetOptions=None): | def __init__(self, toReading=None, targetOptions=None): | def __init__(self, toReading, targetOptions=None): self.toReading = toReading if targetOptions: self.targetOptions = targetOptions else: self.targetOptions = {} | 4c727813531c7579b99ed686160ec93ff63a4db2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/4c727813531c7579b99ed686160ec93ff63a4db2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
358,
15714,
33,
7036,
16,
1018,
1320,
33,
7036,
4672,
365,
18,
869,
15714,
273,
358,
15714,
309,
1018,
1320,
30,
365,
18,
3299,
1320,
273,
1018,
1320,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
15714,
33,
7036,
16,
1018,
1320,
33,
7036,
4672,
365,
18,
869,
15714,
273,
358,
15714,
309,
1018,
1320,
30,
365,
18,
3299,
1320,
273,
1018,
1320,
46... |
self.SetTopWindow(self.main) self.main.inspector.Show(true) | inspector.Show(true) | def OnInit(self): wxInitAllImageHandlers() | 444e2520a8ccc660ae6a418201f1cc173ecc0f01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/444e2520a8ccc660ae6a418201f1cc173ecc0f01/Boa.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
7075,
2570,
1595,
2040,
6919,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
7075,
2570,
1595,
2040,
6919,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
('ExcludeDirectories', policy.REQUIRED_PRIOR), | ('AutoDoc', policy.REQUIRED_SUBSEQUENT), | def candidatePaths(self): d = self.recipe.macros.destdir for path in self.candidates.keys(): fullpath = util.joinPaths(d, path) if os.path.exists(fullpath): yield (path, self.candidates[path]) | e787d42b54f5eefa9ced74682ba7fdb83a764dea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7642/e787d42b54f5eefa9ced74682ba7fdb83a764dea/badpathnames.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5500,
4466,
12,
2890,
4672,
302,
273,
365,
18,
3927,
3151,
18,
5821,
6973,
18,
10488,
1214,
364,
589,
316,
365,
18,
21635,
18,
2452,
13332,
15170,
273,
1709,
18,
5701,
4466,
12,
72,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5500,
4466,
12,
2890,
4672,
302,
273,
365,
18,
3927,
3151,
18,
5821,
6973,
18,
10488,
1214,
364,
589,
316,
365,
18,
21635,
18,
2452,
13332,
15170,
273,
1709,
18,
5701,
4466,
12,
72,
16... |
address, hostname, map, mod, modname, details = data.split('\x00', 5) | address, hostname, map, mod, modname, details = data.split('\x00', 5) | def cs_players(self, event): try: server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | 7a7bc55d6310853f8238b236b8021b8bbb1461ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/7a7bc55d6310853f8238b236b8021b8bbb1461ab/gameservers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2873,
67,
1601,
414,
12,
2890,
16,
871,
4672,
775,
30,
1438,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
40,
15370,
13,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2873,
67,
1601,
414,
12,
2890,
16,
871,
4672,
775,
30,
1438,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
40,
15370,
13,
2,
-100,
-100,
-100,
-10... |
self.pack_start(render) self.set_attributes(render, markup=1) self.set_sensitive(False) | self.combo.pack_start(render) self.combo.set_attributes(render, markup=1) self.combo.set_sensitive(False) self.label = gtk.Label("_Release:") self.label.set_use_underline(True) self.label.set_mnemonic_widget(self.combo) self.pack_start(self.label, expand=False) self.pack_start(self.combo) | def __init__(self): self.model = gtk.ListStore(object, str) super(ReleaseEventComboBox, self).__init__(self.model) render = gtk.CellRendererText() self.pack_start(render) self.set_attributes(render, markup=1) self.set_sensitive(False) | f02dd4bee6a524e5136471a21a81e079fe6300c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/f02dd4bee6a524e5136471a21a81e079fe6300c2/brainz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2284,
273,
22718,
18,
682,
2257,
12,
1612,
16,
609,
13,
2240,
12,
7391,
1133,
22199,
16,
365,
2934,
972,
2738,
972,
12,
2890,
18,
2284,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2284,
273,
22718,
18,
682,
2257,
12,
1612,
16,
609,
13,
2240,
12,
7391,
1133,
22199,
16,
365,
2934,
972,
2738,
972,
12,
2890,
18,
2284,
13,
... |
if getSecurityManager().validate(self, self, id, v): | if getSecurityManager().validate(self, self, id, obj): | def listFolderContents( self, spec=None, contentFilter=None ): """ Hook around 'contentValues' to let 'folder_contents' be protected. Duplicating skip_unauthorized behavior of dtml-in. """ items = self.contentValues(spec=spec, filter=contentFilter) l = [] for obj in items: id = obj.getId() v = obj # validate() can eit... | 05ff84da32b8165cb38e1397d41cbcb57bc4b606 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/05ff84da32b8165cb38e1397d41cbcb57bc4b606/PortalFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
3899,
6323,
12,
365,
16,
857,
33,
7036,
16,
913,
1586,
33,
7036,
262,
30,
3536,
13725,
6740,
296,
1745,
1972,
11,
358,
2231,
296,
5609,
67,
3980,
11,
506,
4750,
18,
225,
463,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
3899,
6323,
12,
365,
16,
857,
33,
7036,
16,
913,
1586,
33,
7036,
262,
30,
3536,
13725,
6740,
296,
1745,
1972,
11,
358,
2231,
296,
5609,
67,
3980,
11,
506,
4750,
18,
225,
463,
38... |
print self.DataLog.addFileRecord(lfn,'AddedToTransformation','Transformation %s' % transID,'',dbname) | ret = self.dataLog.addFileRecord(lfn,'AddedToTransformation','Transformation %s' % transID,'',dbname) if not ret['OK']: gLogger.warning('Unable to add dataLogging record for Transformation %s FileID %s' % (transID, fileID)) | def addFile(self,fileTuples,force=False): """ Add a new file to the TransformationDB together with its first replica. """ gLogger.info("TransformationDB.addFile: Attempting to add %s files." % len(fileTuples)) successful = {} failed = {} for lfn,pfn,size,se,guid,checksum in fileTuples: | ce3d2a2f90a98235c25220f78ad247ce1ac5ca6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/ce3d2a2f90a98235c25220f78ad247ce1ac5ca6a/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18671,
12,
2890,
16,
768,
25813,
16,
5734,
33,
8381,
4672,
3536,
225,
1436,
279,
394,
585,
358,
326,
21274,
2290,
9475,
598,
2097,
1122,
12335,
18,
3536,
314,
3328,
18,
1376,
2932,
15292... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18671,
12,
2890,
16,
768,
25813,
16,
5734,
33,
8381,
4672,
3536,
225,
1436,
279,
394,
585,
358,
326,
21274,
2290,
9475,
598,
2097,
1122,
12335,
18,
3536,
314,
3328,
18,
1376,
2932,
15292... |
"""Saves the values in the widgets to the PriceBarChartScaling object passed in this class's constructor. | """Ensures the values in the widgets are saved to their underlying variables, such that subsequent calls to getPriceBarChartScalings() and getPriceBarChartScalingsIndex() will return valid values for what has changed. | def saveScalings(self): """Saves the values in the widgets to the PriceBarChartScaling object passed in this class's constructor. """ self.log.debug("Entered saveScaling()") | 8d9c9d806d058278cbe724f8fbfbbcb0a9581119 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6120/8d9c9d806d058278cbe724f8fbfbbcb0a9581119/dialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
55,
771,
899,
12,
2890,
4672,
3536,
19869,
326,
924,
316,
326,
10965,
854,
5198,
358,
3675,
6808,
3152,
16,
4123,
716,
10815,
4097,
358,
25930,
5190,
7984,
55,
771,
899,
1435,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
55,
771,
899,
12,
2890,
4672,
3536,
19869,
326,
924,
316,
326,
10965,
854,
5198,
358,
3675,
6808,
3152,
16,
4123,
716,
10815,
4097,
358,
25930,
5190,
7984,
55,
771,
899,
1435,
471,... |
utils.run_cmd("git config remote.origin.url=%s"%self.git_repo) | utils.run_cmd("git config remote.origin.url %s"%self.git_repo) | def pull(self): os.chdir(self.co_path) | 6db6155aeec89813cfd10e9fc08b782780202266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/6db6155aeec89813cfd10e9fc08b782780202266/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6892,
12,
2890,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
2894,
67,
803,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
6892,
12,
2890,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
2894,
67,
803,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if netloc.endswith("svn.python.org"): if netloc == "svn.python.org": if path.startswith("/projects/"): path = path[9:] elif netloc != "pythondev@svn.python.org": ErrorExit("Unrecognized Python URL: %s" % url) base = "http://svn.python.org/view/*checkout*%s/" % path logging.info("Guessed Python base = %s", base) elif ne... | guess = "" if netloc == "svn.python.org" and scheme == "svn+ssh": path = "projects" + path scheme = "http" guess = "Python " | def _GuessBase(self, required): """Returns the SVN base URL. | 8d9e6fdfa4be1189fef2dbcb6daacac225bac5f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/8d9e6fdfa4be1189fef2dbcb6daacac225bac5f1/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15977,
2171,
12,
2890,
16,
1931,
4672,
3536,
1356,
326,
29537,
50,
1026,
1976,
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,... | [
1,
1,
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,
389,
15977,
2171,
12,
2890,
16,
1931,
4672,
3536,
1356,
326,
29537,
50,
1026,
1976,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
their subsections as "Columns". The data is stored in "Rows". | their subsections as "Columns". The data is stored in "Rows". | def row_index_dict(self, clower): """Return a dictionary mapping the value of the row's value in column 'key' to the row itself. If there are multiple rows with the same key value, they will be overwritten with the last found row. """ dictx = dict() for row in self: try: dictx[row.getitem_lower(clower)] = row except K... | 7875e677f8aac91050c2770247e9ca6fcb234e85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/7875e677f8aac91050c2770247e9ca6fcb234e85/mmCIF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1615,
67,
1576,
12,
2890,
16,
276,
8167,
4672,
3536,
990,
279,
3880,
2874,
326,
460,
434,
326,
1027,
1807,
460,
316,
1057,
296,
856,
11,
358,
326,
1027,
6174,
18,
225,
971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1027,
67,
1615,
67,
1576,
12,
2890,
16,
276,
8167,
4672,
3536,
990,
279,
3880,
2874,
326,
460,
434,
326,
1027,
1807,
460,
316,
1057,
296,
856,
11,
358,
326,
1027,
6174,
18,
225,
971,
... |
kettle_wizard() | kettle_wizard() | def action_start_task(self, cr, uid, id, context): wizard = self.read(cr, uid, id,context=context)[0] if wizard['upload_file']: if not wizard['file']: raise osv.except_osv('Error !', 'You have to select a file before starting the task') else: context['input_filename'] = self._save_file(cr, uid, id, wizard, context) sel... | cf94f35ac680108835947de442cd81e891a4aec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/cf94f35ac680108835947de442cd81e891a4aec9/kettle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
1937,
67,
4146,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
819,
4672,
24204,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
612,
16,
2472,
33,
2472,
25146,
20,
65,
309,
24204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1937,
67,
4146,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
819,
4672,
24204,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
612,
16,
2472,
33,
2472,
25146,
20,
65,
309,
24204,
... |
if cannonize(m0.decode('utf8'))==mk['cn']: | if cannonize(m0)==mk['cn']: | def parse_laws(self): mks = Member.objects.values('id','name') for mk in mks: mk['cn'] = cannonize(mk['name']) | 91bf9ac762ad2f241f1668f44a43cf0e08b803df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/91bf9ac762ad2f241f1668f44a43cf0e08b803df/syncdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
80,
6850,
12,
2890,
4672,
5028,
87,
273,
8596,
18,
6911,
18,
2372,
2668,
350,
17023,
529,
6134,
364,
5028,
316,
5028,
87,
30,
5028,
3292,
10305,
3546,
273,
848,
5836,
554,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
80,
6850,
12,
2890,
4672,
5028,
87,
273,
8596,
18,
6911,
18,
2372,
2668,
350,
17023,
529,
6134,
364,
5028,
316,
5028,
87,
30,
5028,
3292,
10305,
3546,
273,
848,
5836,
554,
12... |
elif attr == "ShiftRows": self.ShiftRows = self.shift_rows_matrix() return self.ShiftRows elif attr == "MixColumns": self.MixColumns = self.mix_columns_matrix() return self.MixColumns elif attr == "Lin": self.Lin = self.lin_matrix() return self.Lin raise AttributeError, "%s has no attribute %s"%(type(self),attr) | raise AttributeError, "%s has no attribute %s"%(type(self), attr) | def __getattr__(self, attr): """ EXAMPLE: sage: sr = mq.SR(1,2,1,4,gf2=True) sage: sr.Mstar [0 1 1 0 1 1 0 1] [0 0 1 1 1 1 1 0] [0 0 1 0 1 1 0 0] [1 1 0 0 1 0 1 1] [1 1 0 1 0 1 1 0] [1 1 1 0 0 0 1 1] [1 1 0 0 0 0 1 0] [1 0 1 1 1 1 0 0] """ if attr == "e": return self._e elif attr == "c": return self._c elif attr == "n"... | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
3536,
5675,
21373,
30,
272,
410,
30,
9133,
273,
18327,
18,
10090,
12,
21,
16,
22,
16,
21,
16,
24,
16,
75,
74,
22,
33,
5510,
13,
272,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
3536,
5675,
21373,
30,
272,
410,
30,
9133,
273,
18327,
18,
10090,
12,
21,
16,
22,
16,
21,
16,
24,
16,
75,
74,
22,
33,
5510,
13,
272,... |
def findRpms(dir, uselstat=None, verbose=0): | def findRpms(dirname, uselstat=None, verbose=0): | def findRpms(dir, uselstat=None, verbose=0): s = os.stat if uselstat: s = os.lstat dirs = [dir] files = [] while dirs: d = dirs.pop() for f in os.listdir(d): path = "%s/%s" % (d, f) st = s(path) if S_ISREG(st.st_mode) and f[-4:] == ".rpm": files.append(path) elif S_ISDIR(st.st_mode): dirs.append(path) else: if verbose ... | e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
54,
84,
959,
12,
12287,
16,
584,
292,
5642,
33,
7036,
16,
3988,
33,
20,
4672,
272,
273,
1140,
18,
5642,
309,
584,
292,
5642,
30,
272,
273,
1140,
18,
80,
5642,
7717,
273,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
54,
84,
959,
12,
12287,
16,
584,
292,
5642,
33,
7036,
16,
3988,
33,
20,
4672,
272,
273,
1140,
18,
5642,
309,
584,
292,
5642,
30,
272,
273,
1140,
18,
80,
5642,
7717,
273,
306,
... |
cannot_set_attr(self.b, 'func_globals', 2, TypeError) | self.cannot_set_attr(self.b, 'func_globals', 2, TypeError) | def test_func_globals(self): self.assertEqual(self.b.func_globals, globals()) cannot_set_attr(self.b, 'func_globals', 2, TypeError) | 2ee6190904e398c2485772509b6bf944ab276cbb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/2ee6190904e398c2485772509b6bf944ab276cbb/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
644,
67,
16227,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
16227,
16,
10941,
10756,
2780,
67,
542,
67,
1747,
12,
2890,
18,
70,
16,
296,
644,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
644,
67,
16227,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
16227,
16,
10941,
10756,
2780,
67,
542,
67,
1747,
12,
2890,
18,
70,
16,
296,
644,
67,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.