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 |
|---|---|---|---|---|---|---|
log.success("%s done.\n" % (file) ) if zip_bool: | log.success("\r%s done.%s\n" % (PackageName, " "* 40) ) if ArgumentOptions.zip_it: | def run(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_k... | dc571040cf87102fdc4b4b1660de813cb7fb298e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/dc571040cf87102fdc4b4b1660de813cb7fb298e/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2293,
16,
766,
16,
1326,
33,
4720,
67,
3645,
67,
1916,
4672,
9163,
967,
1516,
628,
326,
590,
7530,
16,
1207,
2182,
598,
1326,
9334,
1378,
326,
1686,
7563,
598,
326,
4884,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2293,
16,
766,
16,
1326,
33,
4720,
67,
3645,
67,
1916,
4672,
9163,
967,
1516,
628,
326,
590,
7530,
16,
1207,
2182,
598,
1326,
9334,
1378,
326,
1686,
7563,
598,
326,
4884,
180... |
filename = get_remote_file(url, verbose=True) | filename = tmp_filename()+".sws" | def render(self, ctx): url = ctx.args['urlField'][0].strip() dir = '' # we will delete the directory below if it is used if url != '': # downloading a file from the internet filename = get_remote_file(url, verbose=True) else: # uploading a file from the user's computer dir = tmp_dir() filename = ctx.files['fileField']... | 63bff0af61658cb5c245d9f61e2a2178f58417cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/63bff0af61658cb5c245d9f61e2a2178f58417cb/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
880,
273,
1103,
18,
1968,
3292,
718,
974,
3546,
63,
20,
8009,
6406,
1435,
1577,
273,
875,
225,
468,
732,
903,
1430,
326,
1867,
5712,
309,
518,
353,
1399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
880,
273,
1103,
18,
1968,
3292,
718,
974,
3546,
63,
20,
8009,
6406,
1435,
1577,
273,
875,
225,
468,
732,
903,
1430,
326,
1867,
5712,
309,
518,
353,
1399... |
print "found", `title[start:m.end()]` | def clean_title(title): title = raisebox_rx.sub("", title) title = hackscore_rx.sub(r"\\_", title) pos = 0 while 1: m = title_rx.search(title, pos) if m: start = m.start() print "found", `title[start:m.end()]` if title[start:start+15] != "\\textunderscore": title = title[:start] + title[m.end():] pos = start + 1 else: ... | db2a519298dc57ed84206491005cbb28496428a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/db2a519298dc57ed84206491005cbb28496428a8/toc2bkm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
2649,
12,
2649,
4672,
2077,
273,
1002,
2147,
67,
20122,
18,
1717,
2932,
3113,
2077,
13,
2077,
273,
11769,
6355,
67,
20122,
18,
1717,
12,
86,
6,
1695,
67,
3113,
2077,
13,
949,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
2649,
12,
2649,
4672,
2077,
273,
1002,
2147,
67,
20122,
18,
1717,
2932,
3113,
2077,
13,
2077,
273,
11769,
6355,
67,
20122,
18,
1717,
12,
86,
6,
1695,
67,
3113,
2077,
13,
949,... | |
except Exception, e: logging.info( traceback.format_exc() ) pass | except BossLiteError, err: msg = "Cannot get information for task %s, BOSS error: %s" % \ (taskSpecId, str(err)) logging.error(msg) | def killTask(self, taskSpecId): """ | 816c7c30814438d8c9489740376256b3aef8ff85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/816c7c30814438d8c9489740376256b3aef8ff85/BossLiteKiller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
2174,
12,
2890,
16,
1562,
1990,
548,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
2174,
12,
2890,
16,
1562,
1990,
548,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import linecache | def formatwarning(message, category, filename, lineno): """Function to format a warning the standard way.""" import linecache s = "%s:%s: %s: %s\n" % (filename, lineno, category.__name__, message) line = linecache.getline(filename, lineno).strip() if line: s = s + " " + line + "\n" return s | a43fd0c8996eec2bdd0ec59edc252cb4f4ff4436 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a43fd0c8996eec2bdd0ec59edc252cb4f4ff4436/warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
8551,
12,
2150,
16,
3150,
16,
1544,
16,
7586,
4672,
3536,
2083,
358,
740,
279,
3436,
326,
4529,
4031,
12123,
272,
273,
225,
2213,
87,
5319,
87,
30,
738,
87,
30,
738,
87,
64,
82,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
8551,
12,
2150,
16,
3150,
16,
1544,
16,
7586,
4672,
3536,
2083,
358,
740,
279,
3436,
326,
4529,
4031,
12123,
272,
273,
225,
2213,
87,
5319,
87,
30,
738,
87,
30,
738,
87,
64,
82,... | |
if obj and revision is None and self.__cache: self.__cache.set( obj.cache_key, obj ) | if obj and cache: cache.set( obj.cache_key, obj ) | def load( self, Object_type, object_id, revision = None ): """ Load the object corresponding to the given object id from the database and return it, or None if the object_id is unknown. If a revision is provided, a specific revision of the object will be loaded. | 2d554551204aafdd7c364a25e684b058fd134fb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/2d554551204aafdd7c364a25e684b058fd134fb0/Database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
365,
16,
1033,
67,
723,
16,
733,
67,
350,
16,
6350,
273,
599,
262,
30,
3536,
4444,
326,
733,
4656,
358,
326,
864,
733,
612,
628,
326,
2063,
471,
327,
518,
16,
578,
599,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
365,
16,
1033,
67,
723,
16,
733,
67,
350,
16,
6350,
273,
599,
262,
30,
3536,
4444,
326,
733,
4656,
358,
326,
864,
733,
612,
628,
326,
2063,
471,
327,
518,
16,
578,
599,
3... |
radii[n_points - 2], 2) | radii[n_points - 2]) | def writecone(color, pos1, pos2, rad1, rad2): file.write("cone {\n") file.write(" " + povpoint(chunk.base_to_abs(pos1))) file.write(", %g\n" % (rad1)) file.write(" " + povpoint(chunk.base_to_abs(pos2))) file.write(", %g\n" % (rad2)) file.write(" pigment {color <%g %g %g>}\n" % (color[0], color[1], color[2])) file.wr... | 7bbcf0a037c1cbe3fc5c09a92f7b9046a289a033 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/7bbcf0a037c1cbe3fc5c09a92f7b9046a289a033/DnaCylinderChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
557,
476,
12,
3266,
16,
949,
21,
16,
949,
22,
16,
6719,
21,
16,
6719,
22,
4672,
585,
18,
2626,
2932,
71,
476,
18890,
82,
7923,
585,
18,
2626,
2932,
225,
315,
397,
293,
1527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
557,
476,
12,
3266,
16,
949,
21,
16,
949,
22,
16,
6719,
21,
16,
6719,
22,
4672,
585,
18,
2626,
2932,
71,
476,
18890,
82,
7923,
585,
18,
2626,
2932,
225,
315,
397,
293,
1527,
... |
run_unittest(AutoFileTests, OtherFileTests) | run_unittest(AutoFileTests, OtherFileTests, StdoutTests) | def test_main(): # Historically, these tests have been sloppy about removing TESTFN. # So get rid of it no matter what. try: run_unittest(AutoFileTests, OtherFileTests) finally: if os.path.exists(TESTFN): os.unlink(TESTFN) | e911c5653cebff4ffa8cf8211517924b3933bff5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/e911c5653cebff4ffa8cf8211517924b3933bff5/test_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
13244,
280,
6478,
16,
4259,
7434,
1240,
2118,
30748,
2074,
2973,
9427,
22130,
19793,
18,
468,
6155,
336,
10911,
434,
518,
1158,
15177,
4121,
18,
775,
30,
1086,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
13332,
468,
13244,
280,
6478,
16,
4259,
7434,
1240,
2118,
30748,
2074,
2973,
9427,
22130,
19793,
18,
468,
6155,
336,
10911,
434,
518,
1158,
15177,
4121,
18,
775,
30,
1086,
... |
def _monthly_finder(locs, freqstr, aslocator): | def _monthly_finder(vmin, vmax, freqstr, aslocator): | def _monthly_finder(locs, freqstr, aslocator): if freqstr != 'M': raise ValueError("unexpected frequency") periodsperyear = 12 locs = N.asarray(locs) (vmin, vmax) = locs[[0,-1]] (vmin, vmax) = (int(vmin), int(vmax+1)) span = vmax - vmin + 1 #............................................ dates = N.arange(vmin, vmax+1) fo... | 7a3c507a500aec86f9240f3a0e8437c36eeb7238 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/7a3c507a500aec86f9240f3a0e8437c36eeb7238/mpl_timeseries_pgm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7496,
715,
67,
15356,
12,
90,
1154,
16,
17831,
16,
7684,
701,
16,
487,
20048,
4672,
309,
7684,
701,
480,
296,
49,
4278,
1002,
2068,
2932,
21248,
8670,
7923,
12777,
457,
6874,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7496,
715,
67,
15356,
12,
90,
1154,
16,
17831,
16,
7684,
701,
16,
487,
20048,
4672,
309,
7684,
701,
480,
296,
49,
4278,
1002,
2068,
2932,
21248,
8670,
7923,
12777,
457,
6874,
273,
... |
token = self.token() token = self.parseBlock(token); elif token[1] == ',': self.comment = None self.index.add(self.name, self.filename, static, | token = self.token() token = self.parseBlock(token); elif token[1] == ',': self.comment = None self.index_add(self.name, self.filename, static, | def parseGlobal(self, token): static = 0 if token[1] == 'extern': token = self.token() if token == None: return token if token[0] == 'string': if token[1] == 'C': token = self.token() if token == None: | c7d1398e49a7858195b4b8e0b9832ded1fb9f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3857/c7d1398e49a7858195b4b8e0b9832ded1fb9f169/apibuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
5160,
12,
2890,
16,
1147,
4672,
760,
273,
374,
309,
1147,
63,
21,
65,
422,
296,
338,
798,
4278,
1147,
273,
365,
18,
2316,
1435,
309,
1147,
422,
599,
30,
327,
1147,
309,
1147,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
5160,
12,
2890,
16,
1147,
4672,
760,
273,
374,
309,
1147,
63,
21,
65,
422,
296,
338,
798,
4278,
1147,
273,
365,
18,
2316,
1435,
309,
1147,
422,
599,
30,
327,
1147,
309,
1147,
6... |
raise ParseError, ("%s:%s: expected <hostglob> <user> " "<password> for configuration value %s" % (file, self.lineno, key)) | raise ParseError("expected <hostglob> <user> [<password>]") | def parseString(self, str): val = str.split() if len(val) < 2 or len(val) > 3: raise ParseError, ("%s:%s: expected <hostglob> <user> " "<password> for configuration value %s" % (file, self.lineno, key)) elif len(val) == 2: return (val[0], val[1], None) else: return tuple(val) | 43b7cc14c033a62aa6644488d21dd6d1c7ca95fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/43b7cc14c033a62aa6644488d21dd6d1c7ca95fa/conarycfg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23659,
12,
2890,
16,
609,
4672,
1244,
273,
609,
18,
4939,
1435,
309,
562,
12,
1125,
13,
411,
576,
578,
562,
12,
1125,
13,
405,
890,
30,
1002,
17372,
2932,
3825,
411,
2564,
10581,
34,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23659,
12,
2890,
16,
609,
4672,
1244,
273,
609,
18,
4939,
1435,
309,
562,
12,
1125,
13,
411,
576,
578,
562,
12,
1125,
13,
405,
890,
30,
1002,
17372,
2932,
3825,
411,
2564,
10581,
34,
... |
writeFile = file(writeFileName, 'w') | try: writeFile = file(writeFileName, 'w') except IOError, ioe: if ioe.errno == errno.EACCES: raise unittest.SkipTest( "No permission to add things to twisted.plugins") else: raise | def _testDetectFilesChanged(self): writeFileName = sibpath(plugins.__file__, 'pluginextra.py') writeFile = file(writeFileName, 'w') try: writeFile.write(begintest) writeFile.flush() plgs = list(plugin.getPlugIns(plugin.ITestPlugin)) # Sanity check self.assertEquals( len(plgs), 2, "Unexpected plugins found: %r" % ( [p._... | b2b7cf44f8ba0e340da4babcd1d3a5e9d2196fe0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b2b7cf44f8ba0e340da4babcd1d3a5e9d2196fe0/test_plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
12081,
2697,
5033,
12,
2890,
4672,
1045,
4771,
273,
12092,
803,
12,
8057,
16186,
768,
972,
16,
296,
4094,
7763,
18,
2074,
6134,
775,
30,
13286,
273,
585,
12,
2626,
4771,
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,
389,
3813,
12081,
2697,
5033,
12,
2890,
4672,
1045,
4771,
273,
12092,
803,
12,
8057,
16186,
768,
972,
16,
296,
4094,
7763,
18,
2074,
6134,
775,
30,
13286,
273,
585,
12,
2626,
4771,
16,
... |
def createTrashFolder(self): | def createTrashFolder(): | def createTrashFolder(self): trash = getTrashFolder() if not os.path.isdir(trash): os.mkdir(trash) return trash | fee0b3ec71008a4dfa0fc91173f3d18b5710db80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/fee0b3ec71008a4dfa0fc91173f3d18b5710db80/Trashcan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
29420,
3899,
13332,
20703,
273,
336,
29420,
3899,
1435,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
28665,
4672,
1140,
18,
26686,
12,
28665,
13,
327,
20703,
225,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
29420,
3899,
13332,
20703,
273,
336,
29420,
3899,
1435,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
28665,
4672,
1140,
18,
26686,
12,
28665,
13,
327,
20703,
225,
2,
-100,
-100,
-100... |
for root, dirs, files in os.walk(sample_path): | for root, dirs, files in sorted_walk(sample_path): | def write_zip(self): """ Writes a zip file containing all of the files in this Sample's dir.""" sample_path = os.path.realpath(os.path.dirname(self._manifest_path)) sample_dirname = os.path.basename(sample_path) sample_parentpath = os.path.dirname(sample_path) | 22fdd46b51c43359ef4db95e499148a85ce371e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/22fdd46b51c43359ef4db95e499148a85ce371e2/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4450,
12,
2890,
4672,
3536,
30053,
279,
3144,
585,
4191,
777,
434,
326,
1390,
316,
333,
11474,
1807,
1577,
12123,
3296,
67,
803,
273,
1140,
18,
803,
18,
7688,
803,
12,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4450,
12,
2890,
4672,
3536,
30053,
279,
3144,
585,
4191,
777,
434,
326,
1390,
316,
333,
11474,
1807,
1577,
12123,
3296,
67,
803,
273,
1140,
18,
803,
18,
7688,
803,
12,
538,
1... |
dbg('ConfigBase::get_item: %s:%s' % (profile, key)) | def get_item(self, key, profile='default', plugin=None): """Look up a configuration item""" dbg('ConfigBase::get_item: %s:%s' % (profile, key)) if self.global_config.has_key(key): dbg('ConfigBase::get_item: found in globals: %s' % self.global_config[key]) return(self.global_config[key]) elif self.profiles[profile].has_... | 14f2522a889c698e69c190644c3738bd4b08154e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/14f2522a889c698e69c190644c3738bd4b08154e/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1726,
12,
2890,
16,
498,
16,
3042,
2218,
1886,
2187,
1909,
33,
7036,
4672,
3536,
9794,
731,
279,
1664,
761,
8395,
309,
365,
18,
6347,
67,
1425,
18,
5332,
67,
856,
12,
856,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1726,
12,
2890,
16,
498,
16,
3042,
2218,
1886,
2187,
1909,
33,
7036,
4672,
3536,
9794,
731,
279,
1664,
761,
8395,
309,
365,
18,
6347,
67,
1425,
18,
5332,
67,
856,
12,
856,
4... | |
for parent, addon_key in plugins.Hook('chandler.domain.inherit_from').query(ob): | for parent, child_key in plugins.Hook('chandler.domain.inherit_from').query(ob): | def __class_call__(cls, ob, *data): parent = None # look for a parent to inherit from for parent, addon_key in plugins.Hook('chandler.domain.inherit_from').query(ob): if parent is not None: # use parent's dict to store inherited AddOns a = parent.__dict__ break else: # normal AddOn behavior a = addons.addons_for(ob) ad... | 1f8b1337e3e45871f37588ca0257057cf473cff6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12987/1f8b1337e3e45871f37588ca0257057cf473cff6/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1106,
67,
1991,
972,
12,
6429,
16,
3768,
16,
380,
892,
4672,
982,
273,
599,
468,
2324,
364,
279,
982,
358,
6811,
628,
364,
982,
16,
1151,
67,
856,
316,
4799,
18,
5394,
2668,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1106,
67,
1991,
972,
12,
6429,
16,
3768,
16,
380,
892,
4672,
982,
273,
599,
468,
2324,
364,
279,
982,
358,
6811,
628,
364,
982,
16,
1151,
67,
856,
316,
4799,
18,
5394,
2668,
34... |
controlOptions=dict(formatter=PostscriptStemSnapFormatter.alloc().init()) | conversionFromUFO=infoListFromUFO, conversionToUFO=postscriptStemSnapToUFO, | def openTypeOS2WeightClassToUFO(value): return value + 1 | 137338eb4051b7c398326eb572215f6342492c38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8848/137338eb4051b7c398326eb572215f6342492c38/fontInfoView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
559,
4618,
22,
6544,
797,
774,
57,
3313,
12,
1132,
4672,
327,
460,
397,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
559,
4618,
22,
6544,
797,
774,
57,
3313,
12,
1132,
4672,
327,
460,
397,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if hasattr(excClass,'__name__'): excName = excClass.__name__ | if hasattr(exception, '__name__'): excName = exception.__name__ | def assertRaisesMessage(self, exception, callable, message, *args, **kwargs): """An extension of assertRaises, which also checks the exception message. We need this because we rely on exception messages when redirecting. """ try: callable(*args, **kwargs) except exception, msg: self.assertEqual(str(msg), message) else:... | 615ded3cb3db77c1ec25db75234fa0bd24d2e052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/615ded3cb3db77c1ec25db75234fa0bd24d2e052/test_actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
12649,
6141,
1079,
12,
2890,
16,
1520,
16,
4140,
16,
883,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
979,
2710,
434,
1815,
12649,
6141,
16,
1492,
2546,
4271,
326,
1520,
883,
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,
1815,
12649,
6141,
1079,
12,
2890,
16,
1520,
16,
4140,
16,
883,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
979,
2710,
434,
1815,
12649,
6141,
16,
1492,
2546,
4271,
326,
1520,
883,
18,
... |
('stereo_view_mode', 'int', stereoViewMode_prefs_key, 0), | ('stereo_view_mode', 'int', stereoViewMode_prefs_key, 1), | def getDefaultWorkingDirectory(): """ Get the default Working Directory. @return: The default working directory, which is platform dependent: - Windows: $HOME\My Documents - MacOS and Linux: $HOME If the default working directory doesn't exist, return ".". @rtype: string """ wd = "" if sys.platform == 'win32': # Windo... | 345dbe5ed97e74210dd53d3511925969f18940d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/345dbe5ed97e74210dd53d3511925969f18940d4/prefs_constants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4829,
14836,
2853,
13332,
3536,
968,
326,
805,
22732,
8930,
18,
225,
632,
2463,
30,
1021,
805,
5960,
1867,
16,
1492,
353,
4072,
10460,
30,
300,
8202,
30,
271,
14209,
64,
12062,
4319,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4829,
14836,
2853,
13332,
3536,
968,
326,
805,
22732,
8930,
18,
225,
632,
2463,
30,
1021,
805,
5960,
1867,
16,
1492,
353,
4072,
10460,
30,
300,
8202,
30,
271,
14209,
64,
12062,
4319,
87,... |
1/(y + 1) - (2/(y + 1)^2) + 1/(y + 1)^3 | 1/(y + 1) - 2/(y + 1)^2 + 1/(y + 1)^3 | def partial_fraction(self, var=None): """ Return the partial fraction expansion of self with respect to the given variable. | c01bc61bd25d9363f0356f86672ff77562a9b5da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c01bc61bd25d9363f0356f86672ff77562a9b5da/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4702,
67,
16744,
12,
2890,
16,
569,
33,
7036,
4672,
3536,
2000,
326,
4702,
8330,
17965,
434,
365,
598,
8762,
358,
326,
864,
2190,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4702,
67,
16744,
12,
2890,
16,
569,
33,
7036,
4672,
3536,
2000,
326,
4702,
8330,
17965,
434,
365,
598,
8762,
358,
326,
864,
2190,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
representation (default=False, `\mathbb{F}_2` only) | representation (default: ``False``, `\mathbb{F}_2` only) | def SR(n=1, r=1, c=1, e=4, star=False, **kwargs): r""" Return a small scale variant of the AES polynomial system constructor subject to the following conditions: INPUT: - ``n`` - the number of rounds (default: 1) - ``r`` - the number of rows in the state array (default: 1) - ``c`` - the number of columns in the st... | e9de4dc45b78ee371d827176c047af2a011b3044 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e9de4dc45b78ee371d827176c047af2a011b3044/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19145,
12,
82,
33,
21,
16,
436,
33,
21,
16,
276,
33,
21,
16,
425,
33,
24,
16,
10443,
33,
8381,
16,
2826,
4333,
4672,
436,
8395,
2000,
279,
5264,
3159,
5437,
434,
326,
15986,
16991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19145,
12,
82,
33,
21,
16,
436,
33,
21,
16,
276,
33,
21,
16,
425,
33,
24,
16,
10443,
33,
8381,
16,
2826,
4333,
4672,
436,
8395,
2000,
279,
5264,
3159,
5437,
434,
326,
15986,
16991,
... |
l,r=outer_set(mleft,mright,l,r) return l,r | l,c,r=outer_set(mleft,mright,l,c,r) return l,c,r | def get_filechanges(repo,revision,parents,mleft): """Given some repository and revision, find all changed/deleted files.""" l,r=[],[] for p in parents: if p<0: continue mright=repo.changectx(p).manifest() dleft=mleft.keys() dleft.sort() dright=mright.keys() dright.sort() l,r=outer_set(mleft,mright,l,r) return l,r | c002051c82e22ca816afd1475885fc38e92693ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12824/c002051c82e22ca816afd1475885fc38e92693ad/hg2git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
6329,
12,
7422,
16,
13057,
16,
12606,
16,
81,
4482,
4672,
3536,
6083,
2690,
3352,
471,
6350,
16,
1104,
777,
3550,
19,
8600,
1390,
12123,
328,
16,
86,
22850,
6487,
8526,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
6329,
12,
7422,
16,
13057,
16,
12606,
16,
81,
4482,
4672,
3536,
6083,
2690,
3352,
471,
6350,
16,
1104,
777,
3550,
19,
8600,
1390,
12123,
328,
16,
86,
22850,
6487,
8526,
3... |
old_text = old_version.field_dict[field_name] new_text = new_version.field_dict[field_name] | old_text = old_version.field_dict[field_name] or "" new_text = new_version.field_dict[field_name] or "" | def generate_diffs(old_version, new_version, field_name): """Generates a diff array for the named field between the two versions.""" # Extract the text from the versions. old_text = old_version.field_dict[field_name] new_text = new_version.field_dict[field_name] # Generate the patch. diffs = dmp.diff_main(old_text, new... | 792b1053624c6c77ae751adb5fe717087780c781 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/792b1053624c6c77ae751adb5fe717087780c781/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11593,
2556,
12,
1673,
67,
1589,
16,
394,
67,
1589,
16,
652,
67,
529,
4672,
3536,
6653,
279,
3122,
526,
364,
326,
4141,
652,
3086,
326,
2795,
5244,
12123,
468,
8152,
326,
977... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11593,
2556,
12,
1673,
67,
1589,
16,
394,
67,
1589,
16,
652,
67,
529,
4672,
3536,
6653,
279,
3122,
526,
364,
326,
4141,
652,
3086,
326,
2795,
5244,
12123,
468,
8152,
326,
977... |
"Could not match expected result row %s!" % rows2[0] | "Could not match expected result row %s!" % (rows2[0],) | def _compare(cols, rows1, rows2, idx2, i=0, blankMap={}): # Finished? if i >= len(rows1): if len(rows2) == 0: return True, "Ok" else: return False, \ "Could not match expected result row %s!" % rows2[0] # Get row to match row1 = rows1[i] # Search match failmsg = None for j, row2 in enumerate(rows2): # Match all var... | f5b80d5cddbe0e39ca23906e2800a457daade99e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5223/f5b80d5cddbe0e39ca23906e2800a457daade99e/result.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9877,
12,
6842,
16,
2595,
21,
16,
2595,
22,
16,
2067,
22,
16,
277,
33,
20,
16,
7052,
863,
12938,
4672,
225,
468,
29745,
35,
309,
277,
1545,
562,
12,
3870,
21,
4672,
309,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9877,
12,
6842,
16,
2595,
21,
16,
2595,
22,
16,
2067,
22,
16,
277,
33,
20,
16,
7052,
863,
12938,
4672,
225,
468,
29745,
35,
309,
277,
1545,
562,
12,
3870,
21,
4672,
309,
562,
... |
raise VersionWriteError( | raise VersionControlError( | def commit(*args, **kw): raise VersionWriteError( 'Old versions of objects cannot be modified.' ) | aee081d4b24b0f41a7b04f4d6338f91a97a287df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9588/aee081d4b24b0f41a7b04f4d6338f91a97a287df/Utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
30857,
1968,
16,
2826,
9987,
4672,
1002,
4049,
3367,
668,
12,
296,
7617,
5244,
434,
2184,
2780,
506,
4358,
1093,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3294,
30857,
1968,
16,
2826,
9987,
4672,
1002,
4049,
3367,
668,
12,
296,
7617,
5244,
434,
2184,
2780,
506,
4358,
1093,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
reg = re.escape(part[:-1]) + '(' + re.escape(part[-1]) + rest + ')?' | reg = re.escape(part[:-1]) + '(' + re.escape(part[-1]) + rest reg += ')?' | def buildnextreg(self, path, clist): """Recursively build our regexp given a path, and a controller list. Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg """ if path: part = path[0] else: part = '' reg = '' # noreqs will remember whether the... | 52ae2d9eaabbf5ff009086347bb090d7048fa505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/52ae2d9eaabbf5ff009086347bb090d7048fa505/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
3536,
12474,
1361,
3134,
7195,
864,
279,
589,
16,
471,
279,
2596,
666,
18,
225,
2860,
326,
6736,
2652,
533,
16,
471,
2795,
3105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
3536,
12474,
1361,
3134,
7195,
864,
279,
589,
16,
471,
279,
2596,
666,
18,
225,
2860,
326,
6736,
2652,
533,
16,
471,
2795,
3105... |
If both ``anchor`` and ``query`` are specified, the anchor element will always follow the query element, | If both ``_anchor`` and ``_query`` are specified, the anchor element will always follow the query element, | def route_url(route_name, request, *elements, **kw): """Generates a fully qualified URL for a named BFG route. Use the route's ``name`` as the first positional argument. Use a request object as the second positional argument. Additional positional arguments are appended to the URL as path segments after it is genera... | 7a65f92404692a28929716a5e56a21d61670e868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/7a65f92404692a28929716a5e56a21d61670e868/url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1946,
67,
718,
12,
5547,
67,
529,
16,
590,
16,
380,
6274,
16,
2826,
9987,
4672,
3536,
6653,
279,
7418,
9348,
1976,
364,
279,
4141,
605,
42,
43,
1946,
18,
225,
2672,
326,
1946,
1807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1946,
67,
718,
12,
5547,
67,
529,
16,
590,
16,
380,
6274,
16,
2826,
9987,
4672,
3536,
6653,
279,
7418,
9348,
1976,
364,
279,
4141,
605,
42,
43,
1946,
18,
225,
2672,
326,
1946,
1807,
... |
def __call__(self, x): | def __call__(self, *args, **kwargs): """ Call self as a function. Since self is a constant function, this just returns self. EXAMPLES: sage: pi(2,3,4) pi sage: pi(pi) pi """ | def __call__(self, x): return self | 2a839b3d50866729418f3c87713bc3adb8f65bac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2a839b3d50866729418f3c87713bc3adb8f65bac/constants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
3049,
365,
487,
279,
445,
18,
225,
7897,
365,
353,
279,
5381,
445,
16,
333,
2537,
1135,
365,
18,
225,
5675,
8900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
3049,
365,
487,
279,
445,
18,
225,
7897,
365,
353,
279,
5381,
445,
16,
333,
2537,
1135,
365,
18,
225,
5675,
8900,
... |
self.sleeping = True | def auth_failed(msg="Authentication failed."): if not self._closed: self.attempted_logins += 1 if self.attempted_logins >= self.max_login_attempts: msg = "530 " + msg + " Disconnecting." self.respond(msg) self.log(msg) self.close_when_done() else: self.respond("530 " + msg) self.log(msg) self.sleeping = False | 788a0071ab45a8367ccf5fe97d060b43da1dd666 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/788a0071ab45a8367ccf5fe97d060b43da1dd666/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
67,
7307,
12,
3576,
1546,
6492,
2535,
1199,
4672,
309,
486,
365,
6315,
12204,
30,
365,
18,
11764,
329,
67,
1330,
2679,
1011,
404,
309,
365,
18,
11764,
329,
67,
1330,
2679,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
67,
7307,
12,
3576,
1546,
6492,
2535,
1199,
4672,
309,
486,
365,
6315,
12204,
30,
365,
18,
11764,
329,
67,
1330,
2679,
1011,
404,
309,
365,
18,
11764,
329,
67,
1330,
2679,
1545,
... | |
preOps = [ | postOps = [ | def drawFrame(r, dim=None, **kwargs): '''Draw a frame around subplot dim. Parameter r is defined in the rpy module and is used for calling R functions. Parameter dim is the dimension index. Other parameters are ignored. ''' r.axis(1) r.axis(2) r.grid() r.mtext({0:'A', 1:'B', 2:'C', 3:'D'}[dim], adj=1) | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
3219,
12,
86,
16,
2464,
33,
7036,
16,
2826,
4333,
4672,
9163,
6493,
279,
2623,
6740,
19826,
2464,
18,
5498,
436,
353,
2553,
316,
326,
436,
2074,
1605,
471,
353,
1399,
364,
4440,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
3219,
12,
86,
16,
2464,
33,
7036,
16,
2826,
4333,
4672,
9163,
6493,
279,
2623,
6740,
19826,
2464,
18,
5498,
436,
353,
2553,
316,
326,
436,
2074,
1605,
471,
353,
1399,
364,
4440,
... |
self.debug_flags.append(DBG_CLIENT) | self.debug_flags.append(self.DBG) | def __init__(self,server,debug=['always', 'nodebuilder']): self.disconnect_handlers=[] self.Namespace='jabber:client' self.Server=server self._DEBUG=Debug.Debug(debug) self.DEBUG=self._DEBUG.Show self.debug_flags=Debug.debug_flags self.debug_flags.append(DBG_CLIENT) self._owner=self self._registered_name=None | 4a0dc64c62f94f1d1cd8b5cb92c2b58deabd4bfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/4a0dc64c62f94f1d1cd8b5cb92c2b58deabd4bfb/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3567,
16,
4148,
33,
3292,
17737,
2187,
296,
2159,
9574,
3546,
4672,
365,
18,
20177,
67,
11046,
33,
8526,
365,
18,
3402,
2218,
78,
378,
744,
30,
2625,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3567,
16,
4148,
33,
3292,
17737,
2187,
296,
2159,
9574,
3546,
4672,
365,
18,
20177,
67,
11046,
33,
8526,
365,
18,
3402,
2218,
78,
378,
744,
30,
2625,
11,... |
prefix = '%s/' % self.id | prefix = '%s/' % self.id[1:] | def load_from_s3(self, bucket, prefix=None): """ Load messages previously saved to S3. """ n = 0 if prefix: prefix = '%s/' % prefix else: prefix = '%s/' % self.id rs = bucket.list(prefix=prefix) for key in rs: n += 1 m = self.new_message(key.get_contents_as_string()) self.write(m) return n | e328a6c80e428fb73e5f4eb2a2cda442445e70a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/e328a6c80e428fb73e5f4eb2a2cda442445e70a1/queue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2080,
67,
87,
23,
12,
2890,
16,
2783,
16,
1633,
33,
7036,
4672,
3536,
4444,
2743,
7243,
5198,
358,
348,
23,
18,
3536,
290,
273,
374,
309,
1633,
30,
1633,
273,
1995,
87,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2080,
67,
87,
23,
12,
2890,
16,
2783,
16,
1633,
33,
7036,
4672,
3536,
4444,
2743,
7243,
5198,
358,
348,
23,
18,
3536,
290,
273,
374,
309,
1633,
30,
1633,
273,
1995,
87,
247... |
raise ValueError("At most 625 can be requested (%d requested)." % | raise ValueError("At most 625 bytes can be requested (%d requested)." % | def __call__(self, num_bytes): if num_bytes > 625: raise ValueError("At most 625 can be requested (%d requested)." % (num_bytes)) | 560e613d1c6a4f937e7e2feb273a6eeb729519f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6416/560e613d1c6a4f937e7e2feb273a6eeb729519f3/hash_drbg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
818,
67,
3890,
4672,
309,
818,
67,
3890,
405,
1666,
2947,
30,
1002,
2068,
2932,
861,
4486,
1666,
2947,
1731,
848,
506,
3764,
6142,
72,
3764,
14944,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
1991,
972,
12,
2890,
16,
818,
67,
3890,
4672,
309,
818,
67,
3890,
405,
1666,
2947,
30,
1002,
2068,
2932,
861,
4486,
1666,
2947,
1731,
848,
506,
3764,
6142,
72,
3764,
14944,
738,
... |
elif wnck.WINDOW_STATE_MINIMIZED & changed_mask: | elif state_minimized & changed_mask: | def window_state_changed(self, window,changed_mask, new_state): if wnck.WINDOW_STATE_MINIMIZED & changed_mask & new_state: if self.locked: self.window_button_icon.set_from_pixbuf(self.icon_locked) else: self.window_button_icon.set_from_pixbuf(self.icon_transp) self.groupbutton.minimized_windows_count+=1 self.groupbutto... | 990c46c563644e67c24067e5fbfb2d9dadc8e0cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/990c46c563644e67c24067e5fbfb2d9dadc8e0cc/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
2019,
67,
6703,
12,
2890,
16,
2742,
16,
6703,
67,
4455,
16,
394,
67,
2019,
4672,
309,
341,
82,
363,
18,
23407,
67,
7998,
67,
6236,
3445,
24131,
473,
3550,
67,
4455,
473,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
2019,
67,
6703,
12,
2890,
16,
2742,
16,
6703,
67,
4455,
16,
394,
67,
2019,
4672,
309,
341,
82,
363,
18,
23407,
67,
7998,
67,
6236,
3445,
24131,
473,
3550,
67,
4455,
473,
39... |
SpecializedSetup<%(name)s, 0>(); | SpecializedSetup<%(name)s, 0>(false); | def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """ | c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/c09b66fa6c9b1cbe85cad7ac28eacb107f5b988d/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
lambda x, master=master, changedFlag=changedFlag, callback=callback: x and getdeepattr(master, changedFlag, True) and callback()) | lambda x, master=master, changedFlag=changedFlag, callback=callback: x and getdeepattr(master, changedFlag, default=True) and callback()) | def setStopper(master, sendButton, stopCheckbox, changedFlag, callback): stopCheckbox.disables.append((-1, sendButton)) sendButton.setDisabled(stopCheckbox.isChecked()) master.connect(stopCheckbox, SIGNAL("toggled(bool)"), lambda x, master=master, changedFlag=changedFlag, callback=callback: x and getdeepattr(master, ch... | 67eb2e47aefc2a45734cf11d9fde925d9fe0bcac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/67eb2e47aefc2a45734cf11d9fde925d9fe0bcac/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4947,
457,
12,
7525,
16,
1366,
3616,
16,
2132,
21272,
16,
3550,
4678,
16,
1348,
4672,
2132,
21272,
18,
2251,
1538,
18,
6923,
12443,
17,
21,
16,
1366,
3616,
3719,
1366,
3616,
18,
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,
444,
4947,
457,
12,
7525,
16,
1366,
3616,
16,
2132,
21272,
16,
3550,
4678,
16,
1348,
4672,
2132,
21272,
18,
2251,
1538,
18,
6923,
12443,
17,
21,
16,
1366,
3616,
3719,
1366,
3616,
18,
5... |
__builtins__._base_super = _base_super | def __getattribute__(self, name): if name.startswith('_around_super__'): return object.__getattribute__(self, name) sup = self.__sup renames = self.__renames if name in renames: name = renames[name] return getattr(sup, name) | b8cea842407cd03626a4d527439c172e14899848 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9024/b8cea842407cd03626a4d527439c172e14899848/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4589,
972,
12,
2890,
16,
508,
4672,
309,
508,
18,
17514,
1918,
2668,
67,
12716,
67,
9565,
7250,
4672,
327,
733,
16186,
588,
4589,
972,
12,
2890,
16,
508,
13,
1169,
377,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4589,
972,
12,
2890,
16,
508,
4672,
309,
508,
18,
17514,
1918,
2668,
67,
12716,
67,
9565,
7250,
4672,
327,
733,
16186,
588,
4589,
972,
12,
2890,
16,
508,
13,
1169,
377,
273,... | |
for pd in pdll: union_map = { } for pdm in pd: union_map = self._MapUnion(union_map, pdm) self.append(union_map) | [ self.extend(_pd) for _pd in pdll ] | def __fromModelGroup (self, model_group): # Start by collecting the data for each of the particles. pdll = [ _PluralityData(_p) for _p in model_group.particles() ] if (ModelGroup.C_CHOICE == model_group.compositor()): # Plurality for choice is simply any of the pluralities of the particles. for pd in pdll: union_map = ... | 9753ac9b33520d9a13f831252522d4c2749e8041 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/9753ac9b33520d9a13f831252522d4c2749e8041/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2080,
1488,
1114,
261,
2890,
16,
938,
67,
1655,
4672,
468,
3603,
635,
30160,
326,
501,
364,
1517,
434,
326,
28312,
18,
4863,
2906,
273,
306,
389,
12968,
560,
751,
24899,
84,
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,
2080,
1488,
1114,
261,
2890,
16,
938,
67,
1655,
4672,
468,
3603,
635,
30160,
326,
501,
364,
1517,
434,
326,
28312,
18,
4863,
2906,
273,
306,
389,
12968,
560,
751,
24899,
84,
13,
... |
columnNameList = Group( delimitedList( columnName ) ) | columnNameList = Group( columnName + ZeroOrMore("," + columnName)) | def __init__(self): # define SQL tokens selectStmt = Forward() selectToken = Keyword("select", caseless=True) fromToken = Keyword("from", caseless=True) asToken = Keyword("as", caseless=True) whereToken = Keyword("where", caseless=True) semicolon = Literal(";") | 89165e4932516195fffe2ec7d85c0e86b062c916 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/89165e4932516195fffe2ec7d85c0e86b062c916/sqlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
4426,
3063,
2430,
2027,
8952,
273,
17206,
1435,
2027,
1345,
273,
18317,
2932,
4025,
3113,
8697,
12617,
33,
5510,
13,
628,
1345,
282,
273,
18317,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
4426,
3063,
2430,
2027,
8952,
273,
17206,
1435,
2027,
1345,
273,
18317,
2932,
4025,
3113,
8697,
12617,
33,
5510,
13,
628,
1345,
282,
273,
18317,
2932,... |
"""Defines a list of commands associated to a breakpoint Those commands will be executed whenever the breakpoint causes the program to stop execution.""" | """Defines a list of commands associated to a breakpoint. Those commands will be executed whenever the breakpoint causes the program to stop execution.""" | def do_commands(self, arg): """Defines a list of commands associated to a breakpoint Those commands will be executed whenever the breakpoint causes the program to stop execution.""" if not arg: bnum = len(bdb.Breakpoint.bpbynumber)-1 else: try: bnum = int(arg) except: print >>self.stdout, "Usage : commands [bnum]\n ... | 5815220a681a8ce636fc52ffe38cdf10fb658194 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/5815220a681a8ce636fc52ffe38cdf10fb658194/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7847,
12,
2890,
16,
1501,
4672,
3536,
15109,
279,
666,
434,
4364,
3627,
358,
279,
18820,
18,
225,
935,
2584,
4364,
903,
506,
7120,
17334,
326,
18820,
14119,
326,
5402,
358,
2132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7847,
12,
2890,
16,
1501,
4672,
3536,
15109,
279,
666,
434,
4364,
3627,
358,
279,
18820,
18,
225,
935,
2584,
4364,
903,
506,
7120,
17334,
326,
18820,
14119,
326,
5402,
358,
2132... |
self.build_dir = self.top_dir + '/build' | self.build_dir = os.path.join(self.top_dir, 'build') | def __init__(self, job, top_directory, base_tree): """Initialize the kernel build environment | d0cbe3ef3e9910ba3893f6cf88408eaf750bec98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/d0cbe3ef3e9910ba3893f6cf88408eaf750bec98/kernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
16,
1760,
67,
5149,
16,
1026,
67,
3413,
4672,
3536,
7520,
326,
5536,
1361,
3330,
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,
1719,
16,
1760,
67,
5149,
16,
1026,
67,
3413,
4672,
3536,
7520,
326,
5536,
1361,
3330,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
lastNode.parent.childNodes.remove(lastNode) | lastNode.parent.removeChild(lastNode) | def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElemen... | 0124737d8d74ed97bd7de89db35d3433fa2eee2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/0124737d8d74ed97bd7de89db35d3433fa2eee2d/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,... |
from glue.ligolw import table | def __init__(self, cache, coireVetoMissedCache, opts, deltaTime=20): """ Initialize this class and sets up all the cache files. @param cache: the cache of all files @param coireVetoMissedCache: the cache that contains the COIRE-files of the missed injections @param opts: The 'opts' from the main code @param deltaTime: ... | 8dea7a7ec45aa499dcbc5b1f60f9add6e030dee2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/8dea7a7ec45aa499dcbc5b1f60f9add6e030dee2/followup_missed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1247,
16,
1825,
577,
58,
11453,
11729,
730,
1649,
16,
1500,
16,
3622,
950,
33,
3462,
4672,
3536,
9190,
333,
667,
471,
1678,
731,
777,
326,
1247,
1390,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1247,
16,
1825,
577,
58,
11453,
11729,
730,
1649,
16,
1500,
16,
3622,
950,
33,
3462,
4672,
3536,
9190,
333,
667,
471,
1678,
731,
777,
326,
1247,
1390,
18... | |
from pprint import pprint pprint(data) | def send_metadata(self): if self.create_user: data = {':action': 'user'} data['name'] = self.username data['password'] = data['email'] = '' data['confirm'] = None while data['password'] != data['confirm']: while not data['password']: data['password'] = getpass('Password: ') while not data['confirm']: data['confirm'] = ... | 29bea66a432631dbf4fa4eefd814e2216eacc397 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/29bea66a432631dbf4fa4eefd814e2216eacc397/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
4165,
12,
2890,
4672,
309,
365,
18,
2640,
67,
1355,
30,
501,
273,
288,
4278,
1128,
4278,
296,
1355,
11,
97,
501,
3292,
529,
3546,
273,
365,
18,
5053,
501,
3292,
3664,
3546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
4165,
12,
2890,
4672,
309,
365,
18,
2640,
67,
1355,
30,
501,
273,
288,
4278,
1128,
4278,
296,
1355,
11,
97,
501,
3292,
529,
3546,
273,
365,
18,
5053,
501,
3292,
3664,
3546,
... | |
redirKeywords = [u'redirect'] + [self.family.redirect[self.lang]] | redirKeywords = [u'redirect'] + self.family.redirect[self.lang] | def redirectRegex(self): """ Regular expression recognizing redirect pages, with a group on the target title. """ try: redirKeywords = [u'redirect'] + [self.family.redirect[self.lang]] redirKeywordsR = r'(?:' + '|'.join(redirKeywords) + ')' except KeyError: # no localized keyword for redirects redirKeywordsR = r'redire... | d35edfdea07b2d75e16d3459b580762e432aded1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/d35edfdea07b2d75e16d3459b580762e432aded1/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
6628,
12,
2890,
4672,
3536,
24544,
2652,
14603,
6894,
3136,
4689,
16,
598,
279,
1041,
603,
326,
1018,
2077,
18,
3536,
775,
30,
283,
1214,
14149,
273,
306,
89,
4565,
7205,
3546,
397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
6628,
12,
2890,
4672,
3536,
24544,
2652,
14603,
6894,
3136,
4689,
16,
598,
279,
1041,
603,
326,
1018,
2077,
18,
3536,
775,
30,
283,
1214,
14149,
273,
306,
89,
4565,
7205,
3546,
397... |
endpoint = RegistrationConsumer() | endpoint = RegistrationConsumer() | def on_registration_complete(self, request): return HttpResponseRedirect('/%s/' % request.user.username) | 330f6ef4797a0f826a4d07793cf2c240aadf05b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9909/330f6ef4797a0f826a4d07793cf2c240aadf05b2/openid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
14170,
67,
6226,
12,
2890,
16,
590,
4672,
327,
31780,
2668,
5258,
87,
2473,
738,
590,
18,
1355,
18,
5053,
13,
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,
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,
603,
67,
14170,
67,
6226,
12,
2890,
16,
590,
4672,
327,
31780,
2668,
5258,
87,
2473,
738,
590,
18,
1355,
18,
5053,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def feature_qualifier_name(self, content): if content.find("/") != 0: content = "/%s" % content if self._cur_qualifier is not None: self._cur_feature.qualifiers.append(self._cur_qualifier) self._cur_qualifier = Record.Qualifier() self._cur_qualifier.key = content | def feature_qualifier_name(self, content_list): """Deal with qualifier names We receive a list of keys, since you can have valueless keys such as /pseudo which would be passed in with the next key (since no other tags separate them in the file) """ for content in content_list: if content.find("/") != 0: content = "/%... | def feature_qualifier_name(self, content): # the record parser keeps the /s -- add them if we don't have 'em if content.find("/") != 0: content = "/%s" % content # add on a qualifier if we've got one if self._cur_qualifier is not None: self._cur_feature.qualifiers.append(self._cur_qualifier) | f666e9d1a49cde171afb9a844de23a79dfc20e95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/f666e9d1a49cde171afb9a844de23a79dfc20e95/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2572,
67,
28157,
67,
529,
12,
2890,
16,
913,
4672,
468,
326,
1409,
2082,
20948,
326,
342,
87,
1493,
527,
2182,
309,
732,
2727,
1404,
1240,
296,
351,
309,
913,
18,
4720,
2932,
4898,
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,
2572,
67,
28157,
67,
529,
12,
2890,
16,
913,
4672,
468,
326,
1409,
2082,
20948,
326,
342,
87,
1493,
527,
2182,
309,
732,
2727,
1404,
1240,
296,
351,
309,
913,
18,
4720,
2932,
4898,
13,... |
response = simplejson.dumps(json) | response = jsonify(json) | def process_submit(request, unit, type): """ Processes submissions and suggestions and stores them in the database. @return: An object in JSON notation that contains the previous and last units for the unit next to unit C{uid}. """ json = {} cantranslate = check_permission("translate", request) cansuggest = check_perm... | af8870802a0b16f33536558129447cc14b242231 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/af8870802a0b16f33536558129447cc14b242231/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
9297,
12,
2293,
16,
2836,
16,
618,
4672,
3536,
4389,
281,
22071,
471,
17969,
471,
9064,
2182,
316,
326,
2063,
18,
225,
632,
2463,
30,
1922,
733,
316,
1796,
12155,
716,
1914,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
9297,
12,
2293,
16,
2836,
16,
618,
4672,
3536,
4389,
281,
22071,
471,
17969,
471,
9064,
2182,
316,
326,
2063,
18,
225,
632,
2463,
30,
1922,
733,
316,
1796,
12155,
716,
1914,
... |
nqtext = entry.get('qtext') | nqtext = entry.get('qtext', '') | def VerifyConfigFile(self, entry, _): '''Install ConfigFile Entry''' # configfile verify is permissions check + content check permissionStatus = self.VerifyDirectory(entry, _) if entry.get('encoding', 'ascii') == 'base64': tempdata = binascii.a2b_base64(entry.text) elif entry.get('empty', 'false') == 'true': tempdata =... | 3162939da7bd489a76f0f117923850bc5025355d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/3162939da7bd489a76f0f117923850bc5025355d/POSIX.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
13705,
12,
2890,
16,
1241,
16,
389,
4672,
9163,
6410,
31988,
3841,
26418,
468,
642,
768,
3929,
353,
4371,
866,
397,
913,
866,
4132,
1482,
273,
365,
18,
8097,
2853,
12,
4099,
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,
8553,
13705,
12,
2890,
16,
1241,
16,
389,
4672,
9163,
6410,
31988,
3841,
26418,
468,
642,
768,
3929,
353,
4371,
866,
397,
913,
866,
4132,
1482,
273,
365,
18,
8097,
2853,
12,
4099,
16,
... |
c.set_status(status,donedate=donedate) | if c.get_status() in ["Active"] : c.set_status(status,donedate=donedate) | def set_status(self,status,donedate=None) : old_status = self.status self.can_be_deleted = False if status : self.status = status #If Done, we set the done date if status in ["Done","Dismiss"] : for c in self.get_subtasks() : c.set_status(status,donedate=donedate) #to the specified date (if any) if donedate : self.clos... | 74fab08bf33071a968ec50517b7d4e5a18665527 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/74fab08bf33071a968ec50517b7d4e5a18665527/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2327,
12,
2890,
16,
2327,
16,
72,
8184,
340,
33,
7036,
13,
294,
1592,
67,
2327,
273,
365,
18,
2327,
365,
18,
4169,
67,
2196,
67,
8600,
273,
1083,
309,
1267,
294,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2327,
12,
2890,
16,
2327,
16,
72,
8184,
340,
33,
7036,
13,
294,
1592,
67,
2327,
273,
365,
18,
2327,
365,
18,
4169,
67,
2196,
67,
8600,
273,
1083,
309,
1267,
294,
365,
18,
... |
s.addIndex('EMA-25', EMA, s, 25) | if EMA: s.addIndex('EMA-25', EMA, s, 25) | def accountData(self, *k): s = Series() s.addIndex('EMA-25', EMA, s, 25) return s | 77586db5172791426fe8f5c7ab4b1aaae6746641 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3979/77586db5172791426fe8f5c7ab4b1aaae6746641/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2236,
751,
12,
2890,
16,
380,
79,
4672,
272,
273,
9225,
1435,
309,
512,
5535,
30,
272,
18,
1289,
1016,
2668,
3375,
37,
17,
2947,
2187,
512,
5535,
16,
272,
16,
6969,
13,
327,
272,
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,
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,
2236,
751,
12,
2890,
16,
380,
79,
4672,
272,
273,
9225,
1435,
309,
512,
5535,
30,
272,
18,
1289,
1016,
2668,
3375,
37,
17,
2947,
2187,
512,
5535,
16,
272,
16,
6969,
13,
327,
272,
2,
... |
cols.append((" %s/%s" % (repoid, rev), str(cur[rev]))) | last_rev = cur[rev] ncols.append((" %s/%s" % (repoid, rev), str(cur[rev]))) if None in cur and (not last_rev or cur[None] != last_rev): cols.append((" %s" % repoid, str(cur[None]))) cols.extend(ncols) | def _append_repos(cols, repo_data): for repoid in sorted(repo_data): cur = repo_data[repoid] if None in cur and len(cur) != 2: cols.append((" %s" % repoid, str(cur[None]))) for rev in sorted(cur): if rev is None: continue cols.append((" %s/%s" % (repoid, rev), str(cur[rev]))) | 907cc05f2de43078e43714808db3fb09b269a3c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/907cc05f2de43078e43714808db3fb09b269a3c5/yumcommands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
15564,
12,
6842,
16,
3538,
67,
892,
4672,
364,
2071,
839,
316,
3115,
12,
7422,
67,
892,
4672,
662,
273,
3538,
67,
892,
63,
14462,
839,
65,
309,
599,
316,
662,
471,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6923,
67,
15564,
12,
6842,
16,
3538,
67,
892,
4672,
364,
2071,
839,
316,
3115,
12,
7422,
67,
892,
4672,
662,
273,
3538,
67,
892,
63,
14462,
839,
65,
309,
599,
316,
662,
471,
562... |
elif cmdutil.findcmd.func_code.co_argcount == 3: | elif cmdutil.findcmd.func_code.co_argcount == 3: | def findcmd(cmd): return cmdutil.findcmd(self._getUI(), cmd) | 58bb0d2746dffe665a361adc67bc15a0ca3728a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5981/58bb0d2746dffe665a361adc67bc15a0ca3728a3/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4172,
12,
4172,
4672,
327,
24884,
18,
4720,
4172,
12,
2890,
6315,
588,
5370,
9334,
1797,
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,... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4172,
12,
4172,
4672,
327,
24884,
18,
4720,
4172,
12,
2890,
6315,
588,
5370,
9334,
1797,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Z = N.zeros(3, dtype=N.float64); | Z = NP.zeros(3, dtype=NP.float64); | def resize_image(imageG, imageF_mat): """ zoom_image = resize_image(source_image, reference_image[mat]) Fractional resample source_image to reference_imagesize. The resample is implemented with 3D cubic spline. The reference image [mat] is the 4x4 voxel-to-physical conversion matrix. Parameters .......... imageG : {... | de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
67,
2730,
12,
2730,
43,
16,
1316,
42,
67,
7373,
4672,
3536,
7182,
67,
2730,
273,
7041,
67,
2730,
12,
3168,
67,
2730,
16,
2114,
67,
2730,
63,
7373,
5717,
225,
478,
5738,
287,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
67,
2730,
12,
2730,
43,
16,
1316,
42,
67,
7373,
4672,
3536,
7182,
67,
2730,
273,
7041,
67,
2730,
12,
3168,
67,
2730,
16,
2114,
67,
2730,
63,
7373,
5717,
225,
478,
5738,
287,
19... |
if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!" | return "/".join(self._short_opts + self._long_opts) | def __str__ (self): if self._short_opts or self._long_opts: return "/".join(self._short_opts + self._long_opts) else: raise RuntimeError, "short_opts and long_opts both empty!" | cdb9ddb9f396d777ecea5b78113fcc9202879129 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cdb9ddb9f396d777ecea5b78113fcc9202879129/optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
309,
365,
6315,
6620,
67,
4952,
578,
365,
6315,
5748,
67,
4952,
30,
327,
4016,
18,
5701,
12,
2890,
6315,
6620,
67,
4952,
397,
365,
6315,
5748,
67,
4952... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
309,
365,
6315,
6620,
67,
4952,
578,
365,
6315,
5748,
67,
4952,
30,
327,
4016,
18,
5701,
12,
2890,
6315,
6620,
67,
4952,
397,
365,
6315,
5748,
67,
4952... |
self.__gens = [self.point(x, check=False) for x in G] | self.__gens = [self.point(x, check=True) for x in G] | def gens(self, verbose=False, rank1_search=10, algorithm='mwrank_shell', only_use_mwrank=True, proof = True): """ Compute and return generators for the Mordell-Weil group E(Q) *modulo* torsion. | 3d69e1adac7c2d85786181ac93578b60d62f59bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/3d69e1adac7c2d85786181ac93578b60d62f59bf/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
3988,
33,
8381,
16,
6171,
21,
67,
3072,
33,
2163,
16,
4886,
2218,
81,
91,
11500,
67,
10304,
2187,
1338,
67,
1202,
67,
81,
91,
11500,
33,
5510,
16,
14601,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
3988,
33,
8381,
16,
6171,
21,
67,
3072,
33,
2163,
16,
4886,
2218,
81,
91,
11500,
67,
10304,
2187,
1338,
67,
1202,
67,
81,
91,
11500,
33,
5510,
16,
14601,
273,... |
print "Failure processing at line", node.line print "Failure is", node.astext() raise NotImplementedError('visiting unimplemented node type: %s' | print "=" * 70 print "Failure due to unknown node type" print "-" * 70 print "Failed node is: %r" % node print "Failed line is:", node.line print "Failed text is:", node.astext() print "=" * 70 raise NotImplementedError('unimplemented node type: %s' | def unknown_visit(self, node): print "Failure processing at line", node.line print "Failure is", node.astext() raise NotImplementedError('visiting unimplemented node type: %s' % node.__class__.__name__) | 4f3175cae1eee1640728f93c57e26392c3a44d52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4f3175cae1eee1640728f93c57e26392c3a44d52/OOwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
11658,
12,
2890,
16,
756,
4672,
1172,
9671,
380,
16647,
1172,
315,
5247,
6541,
358,
5917,
756,
618,
6,
1172,
7514,
380,
16647,
1172,
315,
2925,
756,
353,
30,
738,
86,
6,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
11658,
12,
2890,
16,
756,
4672,
1172,
9671,
380,
16647,
1172,
315,
5247,
6541,
358,
5917,
756,
618,
6,
1172,
7514,
380,
16647,
1172,
315,
2925,
756,
353,
30,
738,
86,
6,
738,... |
print 'type( self.valuesList[i] ) not in self.__validDataValues', type( self.valuesList[i] ) not in self.__validDataValues | print 'type( self.valuesList[i] ) not in self.__validDataValues', str(type( self.valuesList[i] ) not in self.__validDataValues) | def checkValues( self ): """ Check that all values are defined and valid """ errorList = [] for i in range( len( self.valuesList ) ): key = self.fieldsList[i] print 'checkValues',self.fieldsList[i], self.valuesList[i] print 'checkValues', self.valueFieldsList print 'checkValues', self.__validDataValues print 'key in se... | e373241bc2b917681e70967cc0edc027612aee2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e373241bc2b917681e70967cc0edc027612aee2d/BaseAccountingType.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1972,
12,
365,
262,
30,
3536,
2073,
716,
777,
924,
854,
2553,
471,
923,
3536,
29902,
273,
5378,
364,
277,
316,
1048,
12,
562,
12,
365,
18,
2372,
682,
262,
262,
30,
498,
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,
866,
1972,
12,
365,
262,
30,
3536,
2073,
716,
777,
924,
854,
2553,
471,
923,
3536,
29902,
273,
5378,
364,
277,
316,
1048,
12,
562,
12,
365,
18,
2372,
682,
262,
262,
30,
498,
273,
365... |
self.length = None else: self.length = None | pass | def begin(self): if self.msg is not None: # we've already started reading the response return | cdabc9a69539bbd3fe8391dad741e821d10e8f87 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/cdabc9a69539bbd3fe8391dad741e821d10e8f87/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
4672,
309,
365,
18,
3576,
353,
486,
599,
30,
468,
732,
8081,
1818,
5746,
6453,
326,
766,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
4672,
309,
365,
18,
3576,
353,
486,
599,
30,
468,
732,
8081,
1818,
5746,
6453,
326,
766,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this = apply(_quickfix.new_TimeUnit, args) | this = _quickfix.new_TimeUnit(*args) | def __init__(self, *args): this = apply(_quickfix.new_TimeUnit, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
950,
2802,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
950,
2802,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18... |
'addview' : '%s/+/%s' % (baseUrl, p.addview,), | 'addview' : '%s' % p.addview, | def addable_portlets(self): baseUrl = self.__parent__.getAssignmentMappingUrl(self.manager) return [ {'title' : p.title, 'description' : p.description, 'addview' : '%s/+/%s' % (baseUrl, p.addview,), } for p in self.manager.getAddablePortletTypes()] | 2bc1d351de14c67b13afa448b276be95bd54f665 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12194/2bc1d351de14c67b13afa448b276be95bd54f665/editmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
429,
67,
655,
17307,
12,
2890,
4672,
9818,
273,
365,
16186,
2938,
25648,
588,
7729,
3233,
1489,
12,
2890,
18,
4181,
13,
327,
306,
13666,
2649,
11,
294,
293,
18,
2649,
16,
296,
338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
429,
67,
655,
17307,
12,
2890,
4672,
9818,
273,
365,
16186,
2938,
25648,
588,
7729,
3233,
1489,
12,
2890,
18,
4181,
13,
327,
306,
13666,
2649,
11,
294,
293,
18,
2649,
16,
296,
338... |
transferOK = True break | if outFile in result['Value']['Successful']: transferOK = True break else: self.log.error( result['Value']['Failed'][outFile] ) | def __retrieveAndUploadFile( self, file, outputDict ): """ Retrieve, Upload, and remove """ fileName = file inputPath = outputDict['InputPath'] inputFCName = outputDict['InputFC'] inBytes = 0 if inputFCName == 'LocalDisk': inFile = file file = os.path.join( inputPath, file ) else: inputFC = FileCatalog( [inputFCName] ) | a31e5a9bcbb326ae3244947773584006435deb4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/a31e5a9bcbb326ae3244947773584006435deb4c/OutputDataExecutor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17466,
1876,
4777,
812,
12,
365,
16,
585,
16,
876,
5014,
262,
30,
3536,
10708,
16,
9414,
16,
471,
1206,
3536,
3968,
273,
585,
810,
743,
273,
876,
5014,
3292,
1210,
743,
3546,
810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17466,
1876,
4777,
812,
12,
365,
16,
585,
16,
876,
5014,
262,
30,
3536,
10708,
16,
9414,
16,
471,
1206,
3536,
3968,
273,
585,
810,
743,
273,
876,
5014,
3292,
1210,
743,
3546,
810... |
security.declareProtected(permissions.View, 'isBinary') | security.declareProtected(CMFCorePermissions.View, 'isBinary') | def getDefault(self, field): """Return the default value of a field. """ field = self.getField(field) return field.getDefault(self) | 460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4829,
12,
2890,
16,
652,
4672,
3536,
990,
326,
805,
460,
434,
279,
652,
18,
3536,
652,
273,
365,
18,
588,
974,
12,
1518,
13,
327,
652,
18,
588,
1868,
12,
2890,
13,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4829,
12,
2890,
16,
652,
4672,
3536,
990,
326,
805,
460,
434,
279,
652,
18,
3536,
652,
273,
365,
18,
588,
974,
12,
1518,
13,
327,
652,
18,
588,
1868,
12,
2890,
13,
2,
-100,
-100,
-... |
['text', 't', 'terse text output'], | ['text', 't', 'terse text output (default reporter)'], | def remove(self): if self in log.theLogPublisher.observers: log.removeObserver(self) | 589f8d2ed2a40859e027e6ffb1bd79f3e45b6880 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/589f8d2ed2a40859e027e6ffb1bd79f3e45b6880/trial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
316,
613,
18,
5787,
1343,
15960,
18,
12199,
2496,
30,
613,
18,
4479,
11048,
12,
2890,
13,
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,
1206,
12,
2890,
4672,
309,
365,
316,
613,
18,
5787,
1343,
15960,
18,
12199,
2496,
30,
613,
18,
4479,
11048,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
console.warn("%s: | console.warn("%s: | def analyzeClassTree(variantSet): | 03acac23db88b53461a31824d12c8fb37d715667 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/03acac23db88b53461a31824d12c8fb37d715667/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
797,
2471,
12,
8688,
694,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
797,
2471,
12,
8688,
694,
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,
-1... |
def add_default_context (context, filename, lang): | def add_default_context (context, filename, hostname, lang): | def add_default_context (context, filename, lang): """add context variables used by all templates""" # rule macros path, dirs = wc.webgui.get_safe_template_path("macros/rules.html") rulemacros = wc.webgui.templatecache.templates[path] context_add(context, "rulemacros", rulemacros.macros) # standard macros path, dirs = ... | 53b93c33d68ac5e26138e799e719ffc04c434bfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/53b93c33d68ac5e26138e799e719ffc04c434bfa/webconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1886,
67,
2472,
261,
2472,
16,
1544,
16,
5199,
16,
3303,
4672,
3536,
1289,
819,
3152,
1399,
635,
777,
5539,
8395,
468,
1720,
24302,
589,
16,
7717,
273,
14310,
18,
4875,
20292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1886,
67,
2472,
261,
2472,
16,
1544,
16,
5199,
16,
3303,
4672,
3536,
1289,
819,
3152,
1399,
635,
777,
5539,
8395,
468,
1720,
24302,
589,
16,
7717,
273,
14310,
18,
4875,
20292,
... |
sys.path = old_syspath raise ToolNotFound(name) | try: mod = __import__('tools.'+name) mod = getattr(mod, name) except ImportError: sys.path = old_syspath raise ToolNotFound(name) | def import_tool(name, import_dir): """ Import a module based on its name from a list of directories. """ old_syspath = sys.path if tool_path not in sys.path: sys.path.insert(0, tool_path) sys.path = import_dir + sys.path sys.path.insert(0, os.path.dirname(__file__)) try: mod = __import__('tools.'+name) mod = getattr... | c6118951fa4e3b9a7e8d33b2a9b5074cdd427304 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6794/c6118951fa4e3b9a7e8d33b2a9b5074cdd427304/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
6738,
12,
529,
16,
1930,
67,
1214,
4672,
3536,
6164,
279,
1605,
2511,
603,
2097,
508,
628,
279,
666,
434,
6402,
18,
3536,
1592,
67,
9499,
803,
273,
2589,
18,
803,
225,
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,
1930,
67,
6738,
12,
529,
16,
1930,
67,
1214,
4672,
3536,
6164,
279,
1605,
2511,
603,
2097,
508,
628,
279,
666,
434,
6402,
18,
3536,
1592,
67,
9499,
803,
273,
2589,
18,
803,
225,
309,
... |
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}, account=None, account_invert=False): | def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {} | def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context={}, account=None, account_invert=False): if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id], context=... | 237c9091dc9f7becb567ed67ae88fac3e96f5a28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/237c9091dc9f7becb567ed67ae88fac3e96f5a28/res_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
67,
350,
16,
358,
67,
7095,
67,
350,
16,
628,
67,
8949,
16,
3643,
33,
5510,
16,
819,
33,
7036,
16,
2236,
33,
7036,
16,
2236,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
67,
350,
16,
358,
67,
7095,
67,
350,
16,
628,
67,
8949,
16,
3643,
33,
5510,
16,
819,
33,
7036,
16,
2236,
33,
7036,
16,
2236,
... |
self.assert_(ua[0,0,0] == ua2[0,0,0]) self.assert_(ua[-1,-1,-1] == ua2[-1,-1,-1]) | self.assert_(ua[0,0,0] != ua2[0,0,0]) self.assert_(ua[-1,-1,-1] != ua2[-1,-1,-1]) | def check_valuesMD(self): """Check byteorder of multi-dimensional objects""" ua = array([[[self.ucs_value*self.ulen]*2]*3]*4, dtype='U%s' % self.ulen) ua2 = ua.newbyteorder() self.assert_(ua[0,0,0] == ua2[0,0,0]) self.assert_(ua[-1,-1,-1] == ua2[-1,-1,-1]) ua3 = ua2.newbyteorder() # Arrays must be equal after the round... | 9fa5c5a1d36ff690db92fa4b55fc10172f50a1ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/9fa5c5a1d36ff690db92fa4b55fc10172f50a1ad/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2372,
6188,
12,
2890,
4672,
3536,
1564,
1160,
1019,
434,
3309,
17,
31236,
2184,
8395,
10165,
273,
526,
3816,
31128,
2890,
18,
89,
2143,
67,
1132,
14,
2890,
18,
332,
275,
5772,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2372,
6188,
12,
2890,
4672,
3536,
1564,
1160,
1019,
434,
3309,
17,
31236,
2184,
8395,
10165,
273,
526,
3816,
31128,
2890,
18,
89,
2143,
67,
1132,
14,
2890,
18,
332,
275,
5772,
... |
new_price = new_price * to_uom.factor | new_price = new_price * Decimal(str(to_uom.factor)) | def compute_price(self, cursor, user, from_uom, price, to_uom=False): """ Convert price for given uom's. from_uom and to_uom should be browse records. """ if not from_uom or not price or not to_uom: return price if from_uom.category.id <> to_uom.category.id: return price if from_uom.factor >= 1.0: new_price = float(pri... | 6864894139ace8c4aeff87ec481618aeddd0c6d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9285/6864894139ace8c4aeff87ec481618aeddd0c6d1/uom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8694,
12,
2890,
16,
3347,
16,
729,
16,
628,
67,
89,
362,
16,
6205,
16,
358,
67,
89,
362,
33,
8381,
4672,
3536,
4037,
6205,
364,
864,
582,
362,
1807,
18,
628,
67,
89,
362,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8694,
12,
2890,
16,
3347,
16,
729,
16,
628,
67,
89,
362,
16,
6205,
16,
358,
67,
89,
362,
33,
8381,
4672,
3536,
4037,
6205,
364,
864,
582,
362,
1807,
18,
628,
67,
89,
362,... |
UpdateNode(admin, node_id, {'hostname': hostname, 'model': model}) | UpdateNode(admin, node_id, node_fields) | def unicmp(a, b, encoding = "utf-8"): """ When connected directly to the DB, values are returned as raw 8-bit strings that may need to be decoded (as UTF-8 by default) in order to compare them against expected Python Unicode strings. """ is8bit = re.compile("[\x80-\xff]").search if isinstance(a, str) and is8bit(a): a ... | f51dbe12c30f8473b083ea86b3dade41e56f4615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/f51dbe12c30f8473b083ea86b3dade41e56f4615/Test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
335,
1291,
12,
69,
16,
324,
16,
2688,
273,
315,
3158,
17,
28,
6,
4672,
3536,
5203,
5840,
5122,
358,
326,
2383,
16,
924,
854,
2106,
487,
1831,
1725,
17,
3682,
2064,
716,
2026,
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,
640,
335,
1291,
12,
69,
16,
324,
16,
2688,
273,
315,
3158,
17,
28,
6,
4672,
3536,
5203,
5840,
5122,
358,
326,
2383,
16,
924,
854,
2106,
487,
1831,
1725,
17,
3682,
2064,
716,
2026,
16... |
if values != None: entry.set_text(values[row]) else: entry.set_text("") | value = values and values[row] or "" entry.set_text(value) | def MatchChanged(widget, match, entry): entry.set_text(match) | 3e5b998595c7bc924f12039d8adb4be59a72fbf2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7062/3e5b998595c7bc924f12039d8adb4be59a72fbf2/Settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4639,
5033,
12,
6587,
16,
845,
16,
1241,
4672,
1241,
18,
542,
67,
955,
12,
1916,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4639,
5033,
12,
6587,
16,
845,
16,
1241,
4672,
1241,
18,
542,
67,
955,
12,
1916,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
[('code', 'like', name + '%')] + args, | [('code', 'like', name + '%')] + (args or []), | def name_search(self, cursor, user, name='', args=None, operator='ilike', context=None, limit=None): if name: ids = self.search(cursor, user, [('code', 'like', name + '%')] + args, limit=limit, context=context) if not ids: ids = self.search(cursor, user, [(self._rec_name, operator, name)] + args, limit=limit, context=c... | ccd75033ce2688e4e7b95ce46f257a08b15e5738 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/ccd75033ce2688e4e7b95ce46f257a08b15e5738/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
3347,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
7036,
4672,
309,
508,
30,
3258,
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,
508,
67,
3072,
12,
2890,
16,
3347,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
7036,
4672,
309,
508,
30,
3258,
273,
365... |
if not veingem: veingem = createwoodgem( target, pos ) | def response( args ): target = args[0] tool = args[1] char = args[2] socket = char.socket pos = target.pos if not socket: return False if socket.hastag('is_lumberjacking') and ( socket.gettag( 'is_lumberjacking' ) > wolfpack.time.currenttime() ): socket.clilocmessage( 500119, "", GRAY ) return False else: socket.delt... | 51c43553980d27f067d6941661cdfa9a5efc9576 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/51c43553980d27f067d6941661cdfa9a5efc9576/lumberjacking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
833,
262,
30,
1018,
273,
833,
63,
20,
65,
5226,
273,
833,
63,
21,
65,
1149,
273,
833,
63,
22,
65,
2987,
273,
1149,
18,
7814,
949,
273,
1018,
18,
917,
225,
309,
486,
2987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
833,
262,
30,
1018,
273,
833,
63,
20,
65,
5226,
273,
833,
63,
21,
65,
1149,
273,
833,
63,
22,
65,
2987,
273,
1149,
18,
7814,
949,
273,
1018,
18,
917,
225,
309,
486,
2987,
... | |
'repository root %s may not be anonymous' | __doc__ = 'repository root %s may not be anonymous' | def __str__(self): return self.__doc__ %(self.getItem().itsPath, self.args[1]) | 882ec29c58d7c23ddb882075e0f9b8014f465197 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/882ec29c58d7c23ddb882075e0f9b8014f465197/ItemError.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
16186,
2434,
972,
8975,
2890,
18,
588,
1180,
7675,
1282,
743,
16,
365,
18,
1968,
63,
21,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
16186,
2434,
972,
8975,
2890,
18,
588,
1180,
7675,
1282,
743,
16,
365,
18,
1968,
63,
21,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
domain="[('company', '=', parent.company)]") | domain="[('company', '=', _parent_invoice.company)]") | def _refund(self, cursor, user, line, context=None): ''' Return values to refund line. ''' res = {} | 539479e0405abbee5564053fa837d5346bb3c202 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9267/539479e0405abbee5564053fa837d5346bb3c202/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1734,
1074,
12,
2890,
16,
3347,
16,
729,
16,
980,
16,
819,
33,
7036,
4672,
9163,
2000,
924,
358,
16255,
980,
18,
9163,
400,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1734,
1074,
12,
2890,
16,
3347,
16,
729,
16,
980,
16,
819,
33,
7036,
4672,
9163,
2000,
924,
358,
16255,
980,
18,
9163,
400,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
""" Test simulation """ | """Test simulation""" | def testFixedSimulation(self): """ Test simulation """ assert self.m.isFixedStartTime(), "Only fixed times supported." assert self.m.isFixedFinalTime(), "Only fixed times supported." T, ys, sens, ignore = solve_using_sundials(self.m, self.m.getFinalTime(), self.m.getStartTime()) p.plot(T, ys) p.title('testFixedSimul... | 733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7505,
18419,
12,
2890,
4672,
3536,
4709,
14754,
8395,
1815,
365,
18,
81,
18,
291,
7505,
13649,
9334,
315,
3386,
5499,
4124,
3260,
1199,
1815,
365,
18,
81,
18,
291,
7505,
7951,
950,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7505,
18419,
12,
2890,
4672,
3536,
4709,
14754,
8395,
1815,
365,
18,
81,
18,
291,
7505,
13649,
9334,
315,
3386,
5499,
4124,
3260,
1199,
1815,
365,
18,
81,
18,
291,
7505,
7951,
950,... |
'en') | CFG_SITE_LANG) | def test_wash_language(self): """messages - washing single language""" self.assertEqual(messages.wash_language('python'), CFG_SITE_LANG) | aeac88e9e5fa9c2f68b97fe9779d93e4cb4dad31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/aeac88e9e5fa9c2f68b97fe9779d93e4cb4dad31/messages_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
91,
961,
67,
4923,
12,
2890,
4672,
3536,
6833,
300,
341,
961,
310,
2202,
2653,
8395,
365,
18,
11231,
5812,
12,
6833,
18,
91,
961,
67,
4923,
2668,
8103,
19899,
7577,
67,
20609... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
91,
961,
67,
4923,
12,
2890,
4672,
3536,
6833,
300,
341,
961,
310,
2202,
2653,
8395,
365,
18,
11231,
5812,
12,
6833,
18,
91,
961,
67,
4923,
2668,
8103,
19899,
7577,
67,
20609... |
source_path = self.source_path(name) bytecode_path = self.bytecode_path(name) module.__file__ = source_path if source_path else bytecode_path | try: source_path = self.source_path(name) except ImportError: source_path = None try: bytecode_path = self.bytecode_path(name) except ImportError: bytecode_path = None module.__file__ = source_path or bytecode_path | def load_module(self, module): """Load a module from source or bytecode.""" name = module.__name__ source_path = self.source_path(name) bytecode_path = self.bytecode_path(name) module.__file__ = source_path if source_path else bytecode_path return self._load_module(module) | 5e1258e28acaea9a4e67454173ff8e79d9a3facc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/5e1258e28acaea9a4e67454173ff8e79d9a3facc/_bootstrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
1605,
4672,
3536,
2563,
279,
1605,
628,
1084,
578,
22801,
12123,
508,
273,
1605,
16186,
529,
972,
775,
30,
1084,
67,
803,
273,
365,
18,
3168,
67,
803,
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,
1262,
67,
2978,
12,
2890,
16,
1605,
4672,
3536,
2563,
279,
1605,
628,
1084,
578,
22801,
12123,
508,
273,
1605,
16186,
529,
972,
775,
30,
1084,
67,
803,
273,
365,
18,
3168,
67,
803,
12,... |
f = mutagen.mp3.MP3(track, ID3=easyid3.EasyID3) | f = mutagen.mp3.MP3(filename, ID3=easyid3.EasyID3) | def _get_track(filename): f = mutagen.File(track) if f is None: raise Exception("%s caused problems." % (track,)) if isinstance(f, mutagen.mp3.MP3): f = mutagen.mp3.MP3(track, ID3=easyid3.EasyID3) return f | 6fff878ac1377970c30f0253b06cf694c0eb552e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6447/6fff878ac1377970c30f0253b06cf694c0eb552e/offline-submit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4101,
12,
3459,
4672,
284,
273,
4318,
346,
275,
18,
812,
12,
4101,
13,
309,
284,
353,
599,
30,
1002,
1185,
27188,
87,
15848,
9688,
1199,
738,
261,
4101,
16,
3719,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4101,
12,
3459,
4672,
284,
273,
4318,
346,
275,
18,
812,
12,
4101,
13,
309,
284,
353,
599,
30,
1002,
1185,
27188,
87,
15848,
9688,
1199,
738,
261,
4101,
16,
3719,
309,
... |
obj.removeChild(obj.children[0]) | if self.table_size_calc == 0: obj.removeChild(obj.children[0]) | def writeSection(self, obj): lvl = getattr(obj, "level", 4) if self.license_mode: headingStyle = heading_style("license") else: headingStyle = heading_style('section', lvl=lvl+1) if not obj.children: return '' | cc5429af3ccbe9055551fa7d858da75c9f9ec556 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/cc5429af3ccbe9055551fa7d858da75c9f9ec556/rlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
5285,
12,
2890,
16,
1081,
4672,
14864,
273,
3869,
12,
2603,
16,
315,
2815,
3113,
1059,
13,
309,
365,
18,
12687,
67,
3188,
30,
11053,
2885,
273,
11053,
67,
4060,
2932,
12687,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
5285,
12,
2890,
16,
1081,
4672,
14864,
273,
3869,
12,
2603,
16,
315,
2815,
3113,
1059,
13,
309,
365,
18,
12687,
67,
3188,
30,
11053,
2885,
273,
11053,
67,
4060,
2932,
12687,
7923,
... |
def fl_get_decoration_sizes(form, top, right, bottom, left): """ fl_get_decoration_sizes(form, top, right, bottom, left) -> size num. """ retval = _fl_get_decoration_sizes(form, top, right, bottom, left) | def fl_get_decoration_sizes(pForm, top, right, bottom, left): """ fl_get_decoration_sizes(pForm, top, right, bottom, left) -> size num. """ retval = _fl_get_decoration_sizes(pForm, top, right, bottom, left) | def fl_get_decoration_sizes(form, top, right, bottom, left): """ fl_get_decoration_sizes(form, top, right, bottom, left) -> size num. """ retval = _fl_get_decoration_sizes(form, top, right, bottom, left) 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,
588,
67,
11880,
367,
67,
11914,
12,
84,
1204,
16,
1760,
16,
2145,
16,
5469,
16,
2002,
4672,
3536,
1183,
67,
588,
67,
11880,
367,
67,
11914,
12,
84,
1204,
16,
1760,
16,
2145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
67,
11880,
367,
67,
11914,
12,
84,
1204,
16,
1760,
16,
2145,
16,
5469,
16,
2002,
4672,
3536,
1183,
67,
588,
67,
11880,
367,
67,
11914,
12,
84,
1204,
16,
1760,
16,
2145... |
edgeComponent[face.label()] = componentCount | faceComponent[face.label()] = componentCount | def markAlphaShapes(delaunayMap, alpha, beta = 0.0): if not hasattr(delaunayMap, "circumCircles"): print "- reconstructing triangle circumcircles..." delaunayMap.circumCircles = \ delaunay.calculateTriangleCircumcircles(delaunayMap) # store parameters for convenience: delaunayMap.alpha = alpha delaunayMap.beta = beta ... | cf7a993009c79c13865201b5ea4e5b01eeae13fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/cf7a993009c79c13865201b5ea4e5b01eeae13fd/alphashapes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
9690,
30080,
12,
3771,
69,
318,
528,
863,
16,
4190,
16,
6796,
273,
374,
18,
20,
4672,
309,
486,
3859,
12,
3771,
69,
318,
528,
863,
16,
315,
11614,
28538,
10887,
9558,
6,
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,
2267,
9690,
30080,
12,
3771,
69,
318,
528,
863,
16,
4190,
16,
6796,
273,
374,
18,
20,
4672,
309,
486,
3859,
12,
3771,
69,
318,
528,
863,
16,
315,
11614,
28538,
10887,
9558,
6,
4672,
... |
size='tiny' else: size='small' | size='\\tiny\n' else: size='' | def _latex_file_(objects, title='SAGE', expert=True, debug=False, \ sep='', tiny=False, math_left='\\[', math_right='\\]', extra_preamble=''): """ Compute a latex file that defines a representation of each object in objects. INPUT: - ``objects`` - list (or object) - ``title`` - string (default: 'Sage'): title for... | b3f5271ce8ebaef2fd699daf15885cb3c8bcf677 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b3f5271ce8ebaef2fd699daf15885cb3c8bcf677/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
431,
672,
33,
5510,
16,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
431,
672,
33,
5510,
16,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
... |
'uk': u'Обговорення Вікіпедія', | 'uk': u'Обговорення Вікіпедії', | def __init__(self): family.Family.__init__(self) self.name = 'wikipedia' | 808000870a20d801f2032c13ef3f6594821fba1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/808000870a20d801f2032c13ef3f6594821fba1f/wikipedia_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
13744,
11,
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,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
13744,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise repository.PackageMissing(pkgName, version) | raise PackageMissing(pkgName, version) | def getTrove(self, pkgName, version, flavor, pristine = True): | a365cd43920845a9122ecbc3a530b18553b04db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a365cd43920845a9122ecbc3a530b18553b04db4/fsrepos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
303,
537,
12,
2890,
16,
27288,
16,
1177,
16,
19496,
16,
846,
376,
558,
273,
1053,
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,... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
303,
537,
12,
2890,
16,
27288,
16,
1177,
16,
19496,
16,
846,
376,
558,
273,
1053,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom | def compute_compra(self, cr, uid, ids, scl_obj, q_mov,tot,prom,q_des): subtot = 0.0 print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom q_des+=q_mov print 'realizando calculo compra:' subtot = scl_obj.invoice_price_unit*q_mov tot += subtot i... | 62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
2919,
354,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
31648,
67,
2603,
16,
1043,
67,
81,
1527,
16,
3307,
16,
17401,
16,
85,
67,
5489,
4672,
720,
3307,
273,
374,
18,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
2919,
354,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
31648,
67,
2603,
16,
1043,
67,
81,
1527,
16,
3307,
16,
17401,
16,
85,
67,
5489,
4672,
720,
3307,
273,
374,
18,
20,
... | |
self.address_entry.set_width(80) | def __init__(self): widgetset.HBox.__init__(self) | d3b0827a1fafcc41aa843d17d78e5353f165888f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/d3b0827a1fafcc41aa843d17d78e5353f165888f/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3604,
542,
18,
44,
3514,
16186,
2738,
972,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3604,
542,
18,
44,
3514,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
@checkAuth(write = True, admin = True) | @checkAuth(admin = True) | def editPermForm(self, auth, group, label, trove, writeperm, capped, admin): groups = (x[1] for x in self.repServer.auth.iterGroups()) labels = (x[1] for x in self.repServer.auth.iterLabels()) troves = (x[1] for x in self.repServer.auth.iterItems()) | da24c3346d4fa9223ceb3365b4262bfdf7e6ba3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/da24c3346d4fa9223ceb3365b4262bfdf7e6ba3c/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
9123,
1204,
12,
2890,
16,
1357,
16,
1041,
16,
1433,
16,
23432,
537,
16,
1045,
12160,
16,
3523,
1845,
16,
3981,
4672,
3252,
273,
261,
92,
63,
21,
65,
364,
619,
316,
365,
18,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
9123,
1204,
12,
2890,
16,
1357,
16,
1041,
16,
1433,
16,
23432,
537,
16,
1045,
12160,
16,
3523,
1845,
16,
3981,
4672,
3252,
273,
261,
92,
63,
21,
65,
364,
619,
316,
365,
18,
144... |
cfg.read(useroptions) | cfg.readfp(codecs.open(useroptions, "r", "utf8")) | def setUseroptions(self, useroptions): """ Change variables through a user supplied configuration file return False and exit the script if there are issues with the configuration file values """ if useroptions[0]=='~': useroptions=os.path.expanduser("~")+useroptions[1:] if os.path.isfile(useroptions) == False: sys.s... | 3fbe9485470580e3af883e6dc05da0f382e6b158 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/3fbe9485470580e3af883e6dc05da0f382e6b158/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14365,
2116,
12,
2890,
16,
729,
2116,
4672,
3536,
565,
7576,
3152,
3059,
279,
729,
4580,
1664,
585,
327,
1083,
471,
2427,
326,
2728,
309,
1915,
854,
8296,
598,
326,
1664,
585,
924,
3536,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14365,
2116,
12,
2890,
16,
729,
2116,
4672,
3536,
565,
7576,
3152,
3059,
279,
729,
4580,
1664,
585,
327,
1083,
471,
2427,
326,
2728,
309,
1915,
854,
8296,
598,
326,
1664,
585,
924,
3536,... |
else: return len(item.children) > 0 | def outlineView_isItemExpandable_(self, view, item): if item is nil: return len(self.model) > 0 else: return len(item.children) > 0 | 10ebe942bacef2dea768da1d25cb2ee86be8ca84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/10ebe942bacef2dea768da1d25cb2ee86be8ca84/tablemodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16363,
1767,
67,
291,
1180,
12271,
429,
67,
12,
2890,
16,
1476,
16,
761,
4672,
309,
761,
353,
515,
30,
327,
562,
12,
2890,
18,
2284,
13,
405,
374,
469,
30,
327,
562,
12,
1726,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16363,
1767,
67,
291,
1180,
12271,
429,
67,
12,
2890,
16,
1476,
16,
761,
4672,
309,
761,
353,
515,
30,
327,
562,
12,
2890,
18,
2284,
13,
405,
374,
469,
30,
327,
562,
12,
1726,
18,
... | |
node.setAttribute(attr, msgcat[value]) | node.setAttribute(attr, unicode(msgcat[value], 'UTF-8')) | def apply_attributes(self, node, msgcat): """handle Zope-style i18n:attributes""" attrnames = node.getAttributeNS(I18NNS, 'attributes').split(' ') for attr in attrnames: value = node.getAttribute(attr) if value and msgcat.has_key(value): node.setAttribute(attr, msgcat[value]) node.removeAttributeNS(I18NNS, 'attributes'... | cea975deb8fdc5c579d874e46d092f04a62760f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/cea975deb8fdc5c579d874e46d092f04a62760f7/nationalizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
4350,
12,
2890,
16,
756,
16,
1234,
2574,
4672,
3536,
4110,
2285,
1306,
17,
4060,
277,
2643,
82,
30,
4350,
8395,
1604,
1973,
273,
756,
18,
588,
1499,
3156,
12,
45,
2643,
50,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
4350,
12,
2890,
16,
756,
16,
1234,
2574,
4672,
3536,
4110,
2285,
1306,
17,
4060,
277,
2643,
82,
30,
4350,
8395,
1604,
1973,
273,
756,
18,
588,
1499,
3156,
12,
45,
2643,
50,
... |
if cc[x,y] == 15: | if cc[x,y] == CONN_ALL4: | def crackEdgeGraph(labelImage, eightConnectedRegions = True, progressHook = None): result = GeoMap(labelImage.size()) cc = crackConnectionImage(labelImage) if eightConnectedRegions: for y in range(1, cc.height()-1): for x in range(1, cc.width()-1): if cc[x,y] == 15: if labelImage[x,y] == labelImage[x-1,y-1]: cc[x,y] ... | a94194260b0ee2a979b184709c2d70b6c499169d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10394/a94194260b0ee2a979b184709c2d70b6c499169d/crackConvert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
21580,
6098,
4137,
12,
1925,
2040,
16,
425,
750,
8932,
17344,
273,
1053,
16,
4007,
5394,
273,
599,
4672,
563,
273,
9385,
863,
12,
1925,
2040,
18,
1467,
10756,
225,
4946,
273,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
21580,
6098,
4137,
12,
1925,
2040,
16,
425,
750,
8932,
17344,
273,
1053,
16,
4007,
5394,
273,
599,
4672,
563,
273,
9385,
863,
12,
1925,
2040,
18,
1467,
10756,
225,
4946,
273,
276,
... |
return rope.base.evaluate.eval_location(pymodule, offset) new_code = pymodule.source_code | newoffset = self.commenter.transfered_offset(offset) return rope.base.evaluate.eval_location(pymodule, newoffset) | def new_pyname(): return rope.base.evaluate.eval_location(pymodule, offset) | 0b381a74dcc32f76ab9edd868a7d868bb23c152e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/0b381a74dcc32f76ab9edd868a7d868bb23c152e/fixsyntax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2074,
529,
13332,
327,
721,
347,
18,
1969,
18,
21024,
18,
8622,
67,
3562,
12,
2074,
2978,
16,
1384,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2074,
529,
13332,
327,
721,
347,
18,
1969,
18,
21024,
18,
8622,
67,
3562,
12,
2074,
2978,
16,
1384,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
outfile.write("epsilon: %s\n" % material) | outfile.write(("epsilon: %s\n" % material).rjust(32)) | def write_neu(self, outfile, bc={}, periodicity=None, description="MeshPy Output"): """Write the mesh out in (an approximation to) Gambit neutral mesh format. outfile is a file-like object opened for writing. | e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11985/e612e6cba98f1df1a6bc8fc8ec0a96dc35ccf72e/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4644,
89,
12,
2890,
16,
8756,
16,
6533,
28793,
17478,
560,
33,
7036,
16,
2477,
1546,
16748,
9413,
3633,
6,
4672,
3536,
3067,
326,
6986,
596,
316,
261,
304,
24769,
358,
13,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4644,
89,
12,
2890,
16,
8756,
16,
6533,
28793,
17478,
560,
33,
7036,
16,
2477,
1546,
16748,
9413,
3633,
6,
4672,
3536,
3067,
326,
6986,
596,
316,
261,
304,
24769,
358,
13,
61... |
context_company=values.get('context_company',False) | context_company=values.get('company',False) | def write(self, cr, uid, ids, values, *args, **argv): if (ids == [uid]): ok = True for k in values.keys(): if k not in ('password','signature','action_id', 'context_lang', 'context_tz'): ok=False if ok: uid = 1 context_company=values.get('context_company',False) if context_company: values.update({'company_id':context_c... | 9f57df820d1cf494db875ed671ff85b6596451e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/9f57df820d1cf494db875ed671ff85b6596451e1/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
924,
16,
380,
1968,
16,
2826,
19485,
4672,
309,
261,
2232,
422,
306,
1911,
65,
4672,
1529,
273,
1053,
364,
417,
316,
924,
18,
2452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
924,
16,
380,
1968,
16,
2826,
19485,
4672,
309,
261,
2232,
422,
306,
1911,
65,
4672,
1529,
273,
1053,
364,
417,
316,
924,
18,
2452,
... |
else | else: | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 189) else quickfix.DoubleField.__init__(self, 189, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
6549,
29,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
6549,
29,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
2738... |
return table[(fen,board.color)] | if (fen,board.color) in table: return table[(fen,board.color)] return [] | def probeEndGameTable (board): fen = board.asFen().split()[0] + " w - - 0 1" if (fen,board.color) in table: return table[(fen,board.color)] # k4it has all 6-men tables except 5 vs. 1 whites = bitLength(board.friends[WHITE]) blacks = bitLength(board.friends[BLACK]) if whites >= 5 or blacks >= 5 or whites+blacks >= 7: ... | 2938467cb07839fd68786e0e9a310306cfd4652c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/2938467cb07839fd68786e0e9a310306cfd4652c/egtb_k4it.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10695,
1638,
12496,
1388,
261,
3752,
4672,
225,
284,
275,
273,
11094,
18,
345,
42,
275,
7675,
4939,
1435,
63,
20,
65,
397,
315,
341,
300,
300,
374,
404,
6,
309,
261,
74,
275,
16,
375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10695,
1638,
12496,
1388,
261,
3752,
4672,
225,
284,
275,
273,
11094,
18,
345,
42,
275,
7675,
4939,
1435,
63,
20,
65,
397,
315,
341,
300,
300,
374,
404,
6,
309,
261,
74,
275,
16,
375... |
ctypes.wintypes.LPVOID, ctypes.wintypes.LPVOID, | LPVOID, LPVOID, | def _errcheck_dword(value,func,args): if value == 0xFFFFFFFF: raise ctypes.WinError() return args | b48424cc33bd65f08cb7677556bae8ea3bd3ba34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/b48424cc33bd65f08cb7677556bae8ea3bd3ba34/watch_win32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
370,
1893,
67,
72,
1095,
12,
1132,
16,
644,
16,
1968,
4672,
309,
460,
422,
374,
28949,
30,
1002,
6983,
18,
18049,
668,
1435,
327,
833,
282,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
370,
1893,
67,
72,
1095,
12,
1132,
16,
644,
16,
1968,
4672,
309,
460,
422,
374,
28949,
30,
1002,
6983,
18,
18049,
668,
1435,
327,
833,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(fitsinId): config = Plugin_fitsin.objects.filter(id = int(fitsinId))[0] | if len(taskId): config = Plugin_fitsin.objects.filter(task__id = int(taskId))[0] | def __getCondorSubmissionFile(self, request, idList): """ Generates a suitable Condor submission for processing images on the cluster. | cfcfcf6404796a43733b6c544e84111ce5cd6ead /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/cfcfcf6404796a43733b6c544e84111ce5cd6ead/qualityfitsin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
12441,
280,
17865,
812,
12,
2890,
16,
590,
16,
29174,
4672,
3536,
31902,
279,
10631,
735,
72,
280,
8515,
364,
4929,
4602,
603,
326,
2855,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
12441,
280,
17865,
812,
12,
2890,
16,
590,
16,
29174,
4672,
3536,
31902,
279,
10631,
735,
72,
280,
8515,
364,
4929,
4602,
603,
326,
2855,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.