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 |
|---|---|---|---|---|---|---|
cls.dprint("%s: layout=%s" % (url, layout)) | cls.dprint("%s: layout=%s" % (unicode(url), unicode(layout))) | def getLayoutSubsequent(cls, major_mode_keyword, url): #dprint("getLayoutSubsequent") ukey = unicode(url).encode("utf-8") if major_mode_keyword in cls.layout: try: key = str(url) # Convert old style string keyword to unicode keyword if ukey != key and key in cls.layout[major_mode_keyword]: cls.layout[major_mode_keyword... | 9bdec4c0b5dc03b247a33ca307b905d71f07cb38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/9bdec4c0b5dc03b247a33ca307b905d71f07cb38/major.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17670,
1676,
9116,
12,
6429,
16,
7888,
67,
3188,
67,
11041,
16,
880,
4672,
468,
72,
1188,
2932,
588,
3744,
1676,
9116,
7923,
582,
856,
273,
5252,
12,
718,
2934,
3015,
2932,
3158,
17,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17670,
1676,
9116,
12,
6429,
16,
7888,
67,
3188,
67,
11041,
16,
880,
4672,
468,
72,
1188,
2932,
588,
3744,
1676,
9116,
7923,
582,
856,
273,
5252,
12,
718,
2934,
3015,
2932,
3158,
17,
2... |
rgenop1.currently_writing = builder | self.currently_writing = builder | def newgraph(self, (ARGS_gv, gv_RESULT, gv_FUNCTYPE), name): gv_func = llimpl.newgraph(gv_FUNCTYPE.v, name) rgenop1 = RGenOp() builder = LLBuilder(rgenop1, gv_func, llimpl.getstartblock(gv_func)) inputargs_gv = [LLVar(llimpl.getinputarg(builder.b, i)) for i in range(len(ARGS_gv))] rgenop1.currently_writing = builder re... | 790d8533df57458b6d4b896057fbc157dc1e1267 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/790d8533df57458b6d4b896057fbc157dc1e1267/rgenop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4660,
12,
2890,
16,
261,
22439,
67,
75,
90,
16,
11404,
67,
12289,
16,
11404,
67,
42,
2124,
17331,
3631,
508,
4672,
11404,
67,
644,
273,
6579,
11299,
18,
2704,
4660,
12,
75,
90,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4660,
12,
2890,
16,
261,
22439,
67,
75,
90,
16,
11404,
67,
12289,
16,
11404,
67,
42,
2124,
17331,
3631,
508,
4672,
11404,
67,
644,
273,
6579,
11299,
18,
2704,
4660,
12,
75,
90,
... |
self.annotationText[i*2 + 1].setPos(self.offsetX, self.offsetY + maxWidth + 3 + (i+0.5)*self.CellHeight) | self.annotationText[i*2 + 1].setPos(self.offsetX, self.offsetY + maxWidth + 3 + (i+0.5)*self.CellHeight +\ fontmetrics_col.height()/2.0) | def drawDistanceMap(self): """renders distance map object on canvas""" if not self.matrix: return self.clearScene() | 82590f7ee3f57926cdeae289078286911746fe6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/82590f7ee3f57926cdeae289078286911746fe6e/OWDistanceMap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
7200,
863,
12,
2890,
4672,
3536,
1187,
6794,
3888,
852,
733,
603,
5953,
8395,
225,
309,
486,
365,
18,
5667,
30,
327,
225,
365,
18,
8507,
14370,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
3724,
7200,
863,
12,
2890,
4672,
3536,
1187,
6794,
3888,
852,
733,
603,
5953,
8395,
225,
309,
486,
365,
18,
5667,
30,
327,
225,
365,
18,
8507,
14370,
1435,
2,
-100,
-100,
-100,
-100,
-... |
attr.append( '%s=\'%s\'' % (attrNames[i],value)) | attr.append( "%s='%s'" % (attrNames[i],value)) | def setJobAttributes(self, jobID, attrNames, attrValues, update=False, datetime=None ): """ Set an attribute value for job specified by jobID. The LastUpdate time stamp is refreshed if explicitely requested """ | 4b76c1f62e5024f130a3d2095a37c35a93ee9390 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/4b76c1f62e5024f130a3d2095a37c35a93ee9390/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2278,
2498,
12,
2890,
16,
28913,
16,
1604,
1557,
16,
1604,
1972,
16,
1089,
33,
8381,
16,
3314,
33,
7036,
262,
30,
3536,
1000,
392,
1566,
460,
364,
1719,
1269,
635,
28913,
18,
1021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2278,
2498,
12,
2890,
16,
28913,
16,
1604,
1557,
16,
1604,
1972,
16,
1089,
33,
8381,
16,
3314,
33,
7036,
262,
30,
3536,
1000,
392,
1566,
460,
364,
1719,
1269,
635,
28913,
18,
1021... |
d = get_descriptor(mpkg, mname, mnamespace) | def attempt_automatic_upgrade(controller, pipeline, module_id): """attempt_automatic_upgrade(module_id, pipeline): [Action] | c81ad48015ef142ef70a6e43f742b4357258ca46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/c81ad48015ef142ef70a6e43f742b4357258ca46/upgradeworkflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
67,
5854,
4941,
67,
15097,
12,
5723,
16,
5873,
16,
1605,
67,
350,
4672,
3536,
11764,
67,
5854,
4941,
67,
15097,
12,
2978,
67,
350,
16,
5873,
4672,
306,
1803,
65,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
67,
5854,
4941,
67,
15097,
12,
5723,
16,
5873,
16,
1605,
67,
350,
4672,
3536,
11764,
67,
5854,
4941,
67,
15097,
12,
2978,
67,
350,
16,
5873,
4672,
306,
1803,
65,
2,
-100,
-100,
... | |
Matched.provInstId as provInstanceId FROM ( %s ) AS Matched | Matched.provInstId as provInstanceId, DepCheck.flagCount as flagCount FROM ( %s ) AS Matched | def _resolveStmt(self, requiresTable, providesTableList, depTableList, restrictBy = None, restrictor=None): subselect = "" | c3870e643626054f9dc7fe38751e71be00f92f1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c3870e643626054f9dc7fe38751e71be00f92f1b/deptable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10828,
8952,
12,
2890,
16,
4991,
1388,
16,
8121,
1388,
682,
16,
5993,
1388,
682,
16,
13108,
858,
273,
599,
16,
13108,
280,
33,
7036,
4672,
720,
4025,
273,
1408,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10828,
8952,
12,
2890,
16,
4991,
1388,
16,
8121,
1388,
682,
16,
5993,
1388,
682,
16,
13108,
858,
273,
599,
16,
13108,
280,
33,
7036,
4672,
720,
4025,
273,
1408,
2,
-100,
-100,
-10... |
FL_Coord, STRING], | FL_Coord, STRING], | def fl_create_scrollbar(type, x, y, w, h, label): """ fl_create_scrollbar(type, x, y, w, h, label) -> object """ retval = _fl_create_scrollbar(type, x, y, w, h, label) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
12033,
3215,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
12033,
3215,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
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,
1183,
67,
2640,
67,
12033,
3215,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
12033,
3215,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16... |
for fileid in self.core.get_package_files(packdata['id']): fileinfo = self.core.get_file_info(fileid) | for fileid in self.sm.get_package_files(packdata['id']): fileinfo = self.sm.get_file_info(fileid) | def event_packinfo(self, args): if not args: return ['ERROR: Use packinfo like this: packinfo <id>'] lines = [] packdata = self.core.get_package_data(int(args[0])) lines.append('PACKAGE: Package "%s" with id #%d' % (packdata['package_name'], packdata['id'])) for fileid in self.core.get_package_files(packdata['id']): f... | f6597059303316c4ff1c6e04602082b1c3184c14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/f6597059303316c4ff1c6e04602082b1c3184c14/IRCInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
2920,
1376,
12,
2890,
16,
833,
4672,
309,
486,
833,
30,
327,
10228,
3589,
30,
2672,
2298,
1376,
3007,
333,
30,
2298,
1376,
411,
350,
1870,
65,
225,
2362,
273,
5378,
2298,
892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
2920,
1376,
12,
2890,
16,
833,
4672,
309,
486,
833,
30,
327,
10228,
3589,
30,
2672,
2298,
1376,
3007,
333,
30,
2298,
1376,
411,
350,
1870,
65,
225,
2362,
273,
5378,
2298,
892,... |
print content | def __parseJSON(self, data): maxlag = True while maxlag: try: maxlag = False parsed = json.loads(data.read()) content = None if isinstance(parsed, dict): content = APIResult(parsed) content.response = self.response.items() elif isinstance(parsed, list): content = APIListResult(parsed) content.response = self.response.i... | 31e9c8f9b96011acf7ec7c5a5dd327849a4ceb56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8398/31e9c8f9b96011acf7ec7c5a5dd327849a4ceb56/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
2986,
12,
2890,
16,
501,
4672,
943,
22532,
273,
1053,
1323,
943,
22532,
30,
775,
30,
943,
22532,
273,
1083,
2707,
273,
1163,
18,
17135,
12,
892,
18,
896,
10756,
913,
273,
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,
1001,
2670,
2986,
12,
2890,
16,
501,
4672,
943,
22532,
273,
1053,
1323,
943,
22532,
30,
775,
30,
943,
22532,
273,
1083,
2707,
273,
1163,
18,
17135,
12,
892,
18,
896,
10756,
913,
273,
5... | |
cmd(self.settings["sharedir"]+"/targets/livecd-stage2/livecd-stage2.sh run "+args)) | cmd(self.settings["sharedir"]+"/targets/livecd-stage2/livecd-stage2.sh run "+args) | def run(self): self.dir_setup() self.unpack_and_bind() try: self.chroot_setup() except: self.unbind() raise #modify the current environment. This is an ugly hack that should be fixed. We need this #to use the os.system() call since we can't specify our own environ: for x in self.settings.keys(): if type(self.settings[x... | 63c55ce8265098763d129b7565cc9afdbd506963 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/63c55ce8265098763d129b7565cc9afdbd506963/targets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
1214,
67,
8401,
1435,
365,
18,
17309,
67,
464,
67,
4376,
1435,
775,
30,
365,
18,
343,
3085,
67,
8401,
1435,
1335,
30,
365,
18,
318,
4376,
1435,
1002,
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,
1086,
12,
2890,
4672,
365,
18,
1214,
67,
8401,
1435,
365,
18,
17309,
67,
464,
67,
4376,
1435,
775,
30,
365,
18,
343,
3085,
67,
8401,
1435,
1335,
30,
365,
18,
318,
4376,
1435,
1002,
4... |
tt = line | # Look for a machine, default, or macdef top-level keyword | 366a1df7f1a940a77d2d3b8ac6425fe7353f43c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/366a1df7f1a940a77d2d3b8ac6425fe7353f43c6/netrc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
10176,
364,
279,
5228,
16,
805,
16,
578,
5318,
536,
1760,
17,
2815,
4932,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
10176,
364,
279,
5228,
16,
805,
16,
578,
5318,
536,
1760,
17,
2815,
4932,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
cookie_str += '$Version="1"; ' + biscuit.getAttribute("name") + '="' + biscuit.getAttribute("value") + '"; ' | if biscuit.getAttribute("version") < version_min: version_min = int( biscuit.getAttribute("version") ) cookie_str += biscuit.getAttribute("name") + '="' + biscuit.getAttribute("value") + '"; ' | def headers(self, hostname, path): if self.cookies == None: return {} curr = self.cookies cookie_str = "" found = 1 | dc72c34609c007cf5b00328d2a693b9b37523f05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6330/dc72c34609c007cf5b00328d2a693b9b37523f05/libcookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1607,
12,
2890,
16,
5199,
16,
589,
4672,
309,
365,
18,
16240,
422,
599,
30,
327,
2618,
4306,
273,
365,
18,
16240,
3878,
67,
701,
273,
1408,
1392,
273,
404,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1607,
12,
2890,
16,
5199,
16,
589,
4672,
309,
365,
18,
16240,
422,
599,
30,
327,
2618,
4306,
273,
365,
18,
16240,
3878,
67,
701,
273,
1408,
1392,
273,
404,
2,
-100,
-100,
-100,
-100,
... |
fdout, outfile = tempfile.mkstemp() os.close(fdout) fd = os.popen(cmd) trace = fd.read() err = fd.close() | f = os.popen(cmd) trace = f.read() f.close() | def _findLib_gcc(name): expr = '[^\(\)\s]*lib%s\.[^\(\)\s]*' % name fdout, ccout = tempfile.mkstemp() os.close(fdout) cmd = 'if type gcc &>/dev/null; then CC=gcc; else CC=cc; fi;' \ '$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name try: fdout, outfile = tempfile.mkstemp() os.close(fdout) fd = os.popen(cmd) trace = fd.read(... | 19f87553b42882b9e3bd2d7bdb0c6d39e29eb2a7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/19f87553b42882b9e3bd2d7bdb0c6d39e29eb2a7/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
5664,
67,
75,
952,
12,
529,
4672,
3065,
273,
5271,
17134,
4713,
5153,
87,
5772,
2941,
9,
87,
5834,
15441,
4713,
5153,
87,
65,
4035,
738,
508,
5194,
659,
16,
4946,
659,
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,
4720,
5664,
67,
75,
952,
12,
529,
4672,
3065,
273,
5271,
17134,
4713,
5153,
87,
5772,
2941,
9,
87,
5834,
15441,
4713,
5153,
87,
65,
4035,
738,
508,
5194,
659,
16,
4946,
659,
273,
... |
def comparePop(self, pop1, pop2, inds, loci=None, infoFields=None, gen=0): pop1.useAncestralGen(gen) pop2.useAncestralGen(gen) if loci is None: for idx, ind in enumerate(inds): if infoFields is None: self.assertEqual(pop1.individual(ind), pop2.individual(idx)) else: self.assertEqual(pop1.individual(ind).genotype(), po... | def comparePop(self, pop1, pop2, inds, loci=None, infoFields=None, gen=0): #inds should be original pop1 index of individuals in pop2 pop1.useAncestralGen(gen) pop2.useAncestralGen(gen) if loci is None: for idx, ind in enumerate(inds): if infoFields is None: self.assertEqual(pop1.individual(ind), pop2.individual(idx)) ... | c7d558aa3b487b5b498af30f3723e3b4500b5591 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/c7d558aa3b487b5b498af30f3723e3b4500b5591/test_02_population.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
7049,
12,
2890,
16,
1843,
21,
16,
1843,
22,
16,
19173,
16,
1515,
77,
33,
7036,
16,
1123,
2314,
33,
7036,
16,
3157,
33,
20,
4672,
468,
15882,
1410,
506,
2282,
1843,
21,
770,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
7049,
12,
2890,
16,
1843,
21,
16,
1843,
22,
16,
19173,
16,
1515,
77,
33,
7036,
16,
1123,
2314,
33,
7036,
16,
3157,
33,
20,
4672,
468,
15882,
1410,
506,
2282,
1843,
21,
770,
434... | |
elif (item.description.find('Professional') > -1 or item.description.startswith('Kororo')): | elif (item.description.find('Professional') > -1 or item.description.startswith('Korora')): | def _registration_badge_data(self, registration, stamp = False): if registration: dinner_tickets = 0 ticket = '' for invoice in registration.person.invoices: if invoice.paid() and not invoice.is_void(): for item in invoice.items: if item.description.startswith('Penguin Dinner'): dinner_tickets += item.qty elif item.des... | 3ca7517eb0b6fc8a79c0535bd9f787d74a035476 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/3ca7517eb0b6fc8a79c0535bd9f787d74a035476/registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14170,
67,
21245,
67,
892,
12,
2890,
16,
7914,
16,
14429,
273,
1083,
4672,
309,
7914,
30,
302,
7872,
67,
6470,
2413,
273,
374,
9322,
273,
875,
364,
9179,
316,
7914,
18,
12479,
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,
389,
14170,
67,
21245,
67,
892,
12,
2890,
16,
7914,
16,
14429,
273,
1083,
4672,
309,
7914,
30,
302,
7872,
67,
6470,
2413,
273,
374,
9322,
273,
875,
364,
9179,
316,
7914,
18,
12479,
18,... |
data = data.replace(b'\n', b'\r\n') | if os.linesep == b'\n': data = data.replace(b'\n', b'\r\n') else: data = data.replace(b'\r\n', b'\n') | def test_line_endings(self): # test for bug #1172763: dumbdbm would die if the line endings # weren't what was expected. f = dumbdbm.open(_fname) f[b'1'] = b'hello' f[b'2'] = b'hello2' f.close() | 7d4503d9c70d15050791577fa44a937dbe6b0884 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7d4503d9c70d15050791577fa44a937dbe6b0884/test_dumbdbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1369,
67,
409,
899,
12,
2890,
4672,
468,
1842,
364,
7934,
468,
23454,
5324,
4449,
30,
302,
3592,
1966,
81,
4102,
10387,
309,
326,
980,
679,
899,
468,
22646,
275,
1404,
4121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1369,
67,
409,
899,
12,
2890,
4672,
468,
1842,
364,
7934,
468,
23454,
5324,
4449,
30,
302,
3592,
1966,
81,
4102,
10387,
309,
326,
980,
679,
899,
468,
22646,
275,
1404,
4121,
... |
coinc_event_id = coinc_event_id_base + str(UID) | def populate_burst_tables(datafile, UID, set_keys = Omega_set_keys, \ process_id = 'process:process_id:0', \ coinc_event_id_base=BurstCoincIdBase): """ """ #initialize xml document xmldoc = ligolw.Document() xmldoc.appendChild(ligolw.LIGO_LW()) #extract the data from the intial Omega file f = open(datafile, 'r') vars ... | af257218e83ac728902869fa75f174902babf41f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/af257218e83ac728902869fa75f174902babf41f/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
70,
18593,
67,
9373,
12,
892,
768,
16,
10034,
16,
444,
67,
2452,
273,
25645,
11061,
67,
542,
67,
2452,
16,
521,
1207,
67,
350,
273,
296,
2567,
30,
2567,
67,
350,
30,
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,
6490,
67,
70,
18593,
67,
9373,
12,
892,
768,
16,
10034,
16,
444,
67,
2452,
273,
25645,
11061,
67,
542,
67,
2452,
16,
521,
1207,
67,
350,
273,
296,
2567,
30,
2567,
67,
350,
30,
20,
... | |
self.mount_points = [(mp.rstrip("/"), app) for mp, app in wsgi_app] self.mount_points.sort() self.mount_points.reverse() | self.wsgi_app = WSGIPathInfoDispatcher(wsgi_app) | def __init__(self, bind_addr, wsgi_app, numthreads=10, server_name=None, max=-1, request_queue_size=5, timeout=10, shutdown_timeout=5): self.requests = Queue.Queue(max) if callable(wsgi_app): # We've been handed a single wsgi_app, in CP-2.1 style. # Assume it's mounted at "". self.mount_points = [("", wsgi_app)] else:... | acc42149c6f09db3b7c163286ba44aeeee07fb89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/acc42149c6f09db3b7c163286ba44aeeee07fb89/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1993,
67,
4793,
16,
341,
17537,
67,
2910,
16,
818,
12495,
33,
2163,
16,
1438,
67,
529,
33,
7036,
16,
943,
29711,
21,
16,
590,
67,
4000,
67,
1467,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1993,
67,
4793,
16,
341,
17537,
67,
2910,
16,
818,
12495,
33,
2163,
16,
1438,
67,
529,
33,
7036,
16,
943,
29711,
21,
16,
590,
67,
4000,
67,
1467,
33,
... |
import pdb;pdb.set_trace() | def may_share_memory(a,b): import pdb;pdb.set_trace() #when this is called with a an ndarray and b #a sparce matrix, numpy.may_share_memory fail. if a.__class__ is b.__class__: return numpy.may_share_memory(a,b) else: return False | 382cb4d320c038ef771c08623cfa467ddde07bfa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/382cb4d320c038ef771c08623cfa467ddde07bfa/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2026,
67,
14419,
67,
7858,
12,
69,
16,
70,
4672,
468,
13723,
333,
353,
2566,
598,
279,
392,
8304,
471,
324,
468,
69,
272,
1065,
311,
3148,
16,
3972,
18,
24877,
67,
14419,
67,
7858,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2026,
67,
14419,
67,
7858,
12,
69,
16,
70,
4672,
468,
13723,
333,
353,
2566,
598,
279,
392,
8304,
471,
324,
468,
69,
272,
1065,
311,
3148,
16,
3972,
18,
24877,
67,
14419,
67,
7858,
2... | |
expected = self.end(self.count() - 1) | expected = max(0, self.end(self.count() - 1)) | def checksize(self): expected = 0 if self.count(): expected = self.end(self.count() - 1) | c2eed022559ad58fb1d54249976a9904b9660fbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/c2eed022559ad58fb1d54249976a9904b9660fbf/revlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1467,
12,
2890,
4672,
2665,
273,
374,
309,
365,
18,
1883,
13332,
2665,
273,
365,
18,
409,
12,
2890,
18,
1883,
1435,
300,
404,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1467,
12,
2890,
4672,
2665,
273,
374,
309,
365,
18,
1883,
13332,
2665,
273,
365,
18,
409,
12,
2890,
18,
1883,
1435,
300,
404,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
dw = DefsWriter(methods, prefix=modulename, verbose=verbose, defsfilter=defsfilter) | dw = DefsWriter(methods, prefix=modulename, ns=namespace, verbose=verbose, defsfilter=defsfilter) | def main(args): verbose = False onlyenums = False onlyobjdefs = False separate = False modulename = None defsfilter = None opts, args = getopt.getopt(args[1:], 'vs:m:f:', ['onlyenums', 'onlyobjdefs', 'modulename=', 'separate=', 'defsfilter=']) for o, v in opts: if o == '-v': verbose = True if o == '--onlyenums': onlyen... | 2311187824d1b48a996ee2620fd3c9a63e3edd66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8659/2311187824d1b48a996ee2620fd3c9a63e3edd66/h2def.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
3988,
273,
1083,
1338,
7924,
87,
273,
1083,
1338,
2603,
12537,
273,
1083,
9004,
273,
1083,
31961,
273,
599,
17588,
2188,
273,
599,
1500,
16,
833,
273,
336,
3838,
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,
2774,
12,
1968,
4672,
3988,
273,
1083,
1338,
7924,
87,
273,
1083,
1338,
2603,
12537,
273,
1083,
9004,
273,
1083,
31961,
273,
599,
17588,
2188,
273,
599,
1500,
16,
833,
273,
336,
3838,
18... |
return Dec_p1 | return _Dec_p1 | def compare_total(self, other): """Compares self to other using the abstract representations. | 335c6f295295ab5b62a80d25d26d89243eb80fb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/335c6f295295ab5b62a80d25d26d89243eb80fb0/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
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,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
x, previous_value = currency_values[0] | previous_value = target | def count_game(self, values, target): """ Verifies the values of the counting game. | 180d07006a2a411041cf1730e3c99cf4f1a2d015 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11269/180d07006a2a411041cf1730e3c99cf4f1a2d015/LemonadeMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
67,
13957,
12,
2890,
16,
924,
16,
1018,
4672,
3536,
6160,
5032,
326,
924,
434,
326,
22075,
7920,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
67,
13957,
12,
2890,
16,
924,
16,
1018,
4672,
3536,
6160,
5032,
326,
924,
434,
326,
22075,
7920,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
shutil.rmtree( workingDirectory ) | try: shutil.rmtree( workingDirectory ) except: pass | def submitPilot(self, jobDict, director): """ Submit pilot for the given job, this is done from the Thread Pool job """ self.log.verbose( 'Submitting Pilot' ) ceMask = self.__resolveCECandidates( jobDict ) if not ceMask: return S_ERROR( 'No CE available for job' ) job = jobDict['JobID'] self.workDir = director.workDir ... | b15337ded2e1853f743d32d0a70f93e7354ce220 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/b15337ded2e1853f743d32d0a70f93e7354ce220/Director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
52,
22797,
12,
2890,
16,
1719,
5014,
16,
2657,
280,
4672,
3536,
17320,
293,
22797,
364,
326,
864,
1719,
16,
333,
353,
2731,
628,
326,
4884,
8828,
1719,
3536,
365,
18,
1330,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
52,
22797,
12,
2890,
16,
1719,
5014,
16,
2657,
280,
4672,
3536,
17320,
293,
22797,
364,
326,
864,
1719,
16,
333,
353,
2731,
628,
326,
4884,
8828,
1719,
3536,
365,
18,
1330,
18,
1... |
def _test_urls(self, urls, handlers): | def _test_urls(self, urls, handlers, urlopen=_urlopen_with_retry): | def _test_urls(self, urls, handlers): import socket import time import logging debug = logging.getLogger("test_urllib2").debug | 77becf87a4ab41f96c4ed8c8bd87c21fb457be95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/77becf87a4ab41f96c4ed8c8bd87c21fb457be95/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
19613,
33,
67,
295,
18589,
67,
1918,
67,
9620,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
19613,
33,
67,
295,
18589,
67,
1918,
67,
9620,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
38... |
run_and_check(True) run_and_check(True) | run_and_check(False) run_and_check(False) | def test_timeout_exit(self): run_and_check(True) run_and_check(True) | 9576e7f7050c536d709b11bed9da1d2aaa86eff9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/9576e7f7050c536d709b11bed9da1d2aaa86eff9/test__refcount.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4538,
67,
8593,
12,
2890,
4672,
1086,
67,
464,
67,
1893,
12,
5510,
13,
1086,
67,
464,
67,
1893,
12,
5510,
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,
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,
1842,
67,
4538,
67,
8593,
12,
2890,
4672,
1086,
67,
464,
67,
1893,
12,
5510,
13,
1086,
67,
464,
67,
1893,
12,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def modify_dbinstance(self, id, param_group=None, security_group=None, | def modify_dbinstance(self, id, param_group=None, security_groups=None, | def modify_dbinstance(self, id, param_group=None, security_group=None, preferred_maintenance_window=None, master_password=None, allocated_storage=None): """ Modify an existing DBInstance. | 0de9387d433f1588981b85fd6480bf101bda7fab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/0de9387d433f1588981b85fd6480bf101bda7fab/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
67,
1966,
1336,
12,
2890,
16,
612,
16,
579,
67,
1655,
33,
7036,
16,
4373,
67,
4650,
33,
7036,
16,
9119,
67,
29715,
67,
5668,
33,
7036,
16,
4171,
67,
3664,
33,
7036,
16,
11977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
67,
1966,
1336,
12,
2890,
16,
612,
16,
579,
67,
1655,
33,
7036,
16,
4373,
67,
4650,
33,
7036,
16,
9119,
67,
29715,
67,
5668,
33,
7036,
16,
4171,
67,
3664,
33,
7036,
16,
11977,
... |
except gclient_utils.Error, e: | except gclient.gclient_utils.Error, e: | def testRunOnDepsConflictingRevisions(self): # Fake .gclient file. name = 'testRunOnDepsConflictingRevisions_solution_name' gclient_config = """solutions = [ { | 90ba161b70b445eba62b2a376e4fa2f508854e13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/90ba161b70b445eba62b2a376e4fa2f508854e13/gclient_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1997,
1398,
14430,
10732,
310,
21208,
12,
2890,
4672,
468,
11551,
263,
75,
2625,
585,
18,
508,
273,
296,
3813,
1997,
1398,
14430,
10732,
310,
21208,
67,
13385,
67,
529,
11,
314,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1997,
1398,
14430,
10732,
310,
21208,
12,
2890,
4672,
468,
11551,
263,
75,
2625,
585,
18,
508,
273,
296,
3813,
1997,
1398,
14430,
10732,
310,
21208,
67,
13385,
67,
529,
11,
314,
26... |
class MenuViewDiffOverRevisions(MenuItem): identifier = "RabbitVCS::View_Diff_Over_Revisions" label = _("View diff over selected revisions") icon = "rabbitvcs-diff" | def empty(self): self.cache = {} | ad5521587456ebb741ee574a52047df0b8e70698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/ad5521587456ebb741ee574a52047df0b8e70698/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1008,
12,
2890,
4672,
365,
18,
2493,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1008,
12,
2890,
4672,
365,
18,
2493,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
global LOADED_MYSQL_DRIVER | def _getConnection (self): | cd7d72d1a12cf2861e60d2feb3bdce46a83d02a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/536/cd7d72d1a12cf2861e60d2feb3bdce46a83d02a3/dbManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1952,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1952,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
valueMax = 1.0 valueMax.append(valueMax) | value = 1.0 valueMax.append(value) | def createGLSlot(self): bgColor = str(self._bgColorButton.palette().color(QtGui.QPalette.Background).name()) bgColor = bgColor[1:] sync = 'on' if self.field('syncButton').toBool() else 'off' glcellMode = self.field('glcellMode').toBool() port = str(self.field('port').toString()) glclient = str(self.field('glclient').to... | 4229ce9af91c73d6be8afae266fb1821c1515648 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2961/4229ce9af91c73d6be8afae266fb1821c1515648/glwizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
43,
3045,
23372,
12,
2890,
4672,
7611,
2957,
273,
609,
12,
2890,
6315,
12370,
2957,
3616,
18,
26474,
7675,
3266,
12,
23310,
18070,
18,
53,
25863,
18,
8199,
2934,
529,
10756,
7611,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
43,
3045,
23372,
12,
2890,
4672,
7611,
2957,
273,
609,
12,
2890,
6315,
12370,
2957,
3616,
18,
26474,
7675,
3266,
12,
23310,
18070,
18,
53,
25863,
18,
8199,
2934,
529,
10756,
7611,
2... |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def IsExpanded(self, item): """Returns whether the item is expanded or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
17957,
12,
2890,
16,
761,
4672,
3536,
1356,
2856,
326,
761,
353,
8406,
578,
486,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
2585,
17957,
12,
2890,
16,
761,
4672,
3536,
1356,
2856,
326,
761,
353,
8406,
578,
486,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
warn_msg = _("You selected a quantity of %d Units.\nBut it's not compatible with the selected packaging.\nHere is a proposition of quantities according to the packaging: ") % (qty) warn_msg = warn_msg + "\n\n" + _("EAN: ") + str(ean) + _(" Quantity: ") + str(qty_pack) + _(" Type of ul: ") + str(type_ul.name) | warn_msg = _("You selected a quantity of %d Units.\n" "But it's not compatible with the selected packaging.\n" "Here is a proposition of quantities according to the packaging:\n\n" "EAN: %s Quantity: %s Type of ul: %s") % \ (qty, ean, qty_pack, type_ul.name) | def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False): if not partner_id: raise osv.except_osv(_('No Customer Defined !'), _('You have to select ... | e37f0384f8048782e51c70cb7637aebc3b214eaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e37f0384f8048782e51c70cb7637aebc3b214eaf/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
... |
text = cgi.escape(text) | def alpm_install_targets(self, targets, repo = None): # TODO: check if there's something searched for or a repo selected, and # update the pkg_treeview accordingly self.busy_status_label = self.all_widgets.get_widget('busy_status_label') number_pkgs_to_download =\ self.alpm_get_number_of_packages_to_download(targets) | e3a2e4486d7a2734be0004681f6488176d4a351e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/e3a2e4486d7a2734be0004681f6488176d4a351e/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
524,
7755,
67,
5425,
67,
11358,
12,
2890,
16,
5774,
16,
3538,
273,
599,
4672,
468,
2660,
30,
866,
309,
1915,
1807,
5943,
19242,
364,
578,
279,
3538,
3170,
16,
471,
468,
1089,
326,
3475... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
524,
7755,
67,
5425,
67,
11358,
12,
2890,
16,
5774,
16,
3538,
273,
599,
4672,
468,
2660,
30,
866,
309,
1915,
1807,
5943,
19242,
364,
578,
279,
3538,
3170,
16,
471,
468,
1089,
326,
3475... | |
<form action='/shutdown'> | <form action='/shutdown' method='POST'> | def __init__(self, uiPort, bayes): uiArgs = (bayes,) Listener.__init__(self, uiPort, UserInterface, uiArgs) | bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
324,
528,
281,
4672,
5915,
2615,
273,
261,
70,
528,
281,
16,
13,
10652,
16186,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
21369,
16,
5915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
324,
528,
281,
4672,
5915,
2615,
273,
261,
70,
528,
281,
16,
13,
10652,
16186,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
21369,
16,
5915,
... |
if not use_cache: | def main(argv=None): if not argv: argv = sys.argv usage = 'usage: muttlearn [options] [-o file] mbox1 [mbox2...]\n'\ ' muttlearn [options]\n'\ ' muttlearn -D\n'\ ' muttlearn --output-only' version = u'muttlearn %s\nCopyright (C) 2010 Johannes Weißl\n'\ 'License GPLv3+: GNU GPL version 3 or later '\... | f7009b828775d6be8a38eb7e061ecf786e457a3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13988/f7009b828775d6be8a38eb7e061ecf786e457a3a/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
225,
309,
486,
5261,
30,
5261,
273,
2589,
18,
19485,
225,
4084,
273,
296,
9167,
30,
4318,
5929,
1303,
306,
2116,
65,
23059,
83,
585,
65,
312,
2147,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
225,
309,
486,
5261,
30,
5261,
273,
2589,
18,
19485,
225,
4084,
273,
296,
9167,
30,
4318,
5929,
1303,
306,
2116,
65,
23059,
83,
585,
65,
312,
2147,
21,... | |
self.slices = 0 | self.nslices = 0 | def __init__(self): # key: # (dicom.patient.name, dicom.patient.id) self.key = () self.groups_dict = {} # group_key: DicomGroup self.slices = 0 | 852d34153b682b5b505b32ed53e14721ca96e67a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/852d34153b682b5b505b32ed53e14721ca96e67a/dicom_grouper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
498,
30,
468,
261,
15859,
362,
18,
16330,
1979,
18,
529,
16,
29357,
18,
16330,
1979,
18,
350,
13,
365,
18,
856,
273,
1832,
365,
18,
4650,
67,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
972,
12,
2890,
4672,
468,
498,
30,
468,
261,
15859,
362,
18,
16330,
1979,
18,
529,
16,
29357,
18,
16330,
1979,
18,
350,
13,
365,
18,
856,
273,
1832,
365,
18,
4650,
67,
15... |
raise httpexceptions.Forbidden( | raise httpexceptions.HTTPForbidden( | def find_method(self, servlet, ret_value): possible_actions = [] for name, value in servlet.fields.items(): if name == self.action_name: possible_actions.append(value) elif name.startswith(self.action_name): possible_actions.append(name[len(self.action_name):]) if not possible_actions: return event.Continue if len(poss... | 0ad1d06afdb557bc633cee847d518570970947d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/0ad1d06afdb557bc633cee847d518570970947d4/dispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2039,
12,
2890,
16,
8100,
16,
325,
67,
1132,
4672,
3323,
67,
4905,
273,
5378,
364,
508,
16,
460,
316,
8100,
18,
2821,
18,
3319,
13332,
309,
508,
422,
365,
18,
1128,
67,
529... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2039,
12,
2890,
16,
8100,
16,
325,
67,
1132,
4672,
3323,
67,
4905,
273,
5378,
364,
508,
16,
460,
316,
8100,
18,
2821,
18,
3319,
13332,
309,
508,
422,
365,
18,
1128,
67,
529... |
new_args = [] if len(args) > 1: new_args = [args[0]] if args[1][0] == 'res_id': new_args.append((args[1][0], args[1][1], caldevIDs2readIDs(args[1][2]))) if new_args: args = new_args return super(ir_attachment, self).search(cr, uid, args, offset=offset, limit=limit, order=order, | new_args = args for i, arg in enumerate(new_args): if arg[0] == 'res_id': new_args[i] = (arg[0], arg[1], caldevIDs2readIDs(arg[2])) return super(ir_attachment, self).search(cr, uid, new_args, offset=offset, limit=limit, order=order, | def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): new_args = [] if len(args) > 1: new_args = [args[0]] if args[1][0] == 'res_id': new_args.append((args[1][0], args[1][1], caldevIDs2readIDs(args[1][2]))) if new_args: args = new_args return super(ir_attachment, self).search(cr,... | d0381fa3a3d0f1fdcff3c6a93f38e7421bca0b53 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d0381fa3a3d0f1fdcff3c6a93f38e7421bca0b53/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
394,
67,
1968,
273,
833,
364,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
394,
67,
1968,
273,
833,
364,
27... |
with self._lock: | with phil: | def __getitem__(self, name): """ Open an object attached to this group. """ with self._lock: | b1a598a2d723040490bcce9fa07057de259dfbab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/b1a598a2d723040490bcce9fa07057de259dfbab/highlevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
508,
4672,
3536,
3502,
392,
733,
7495,
358,
333,
1041,
18,
3536,
598,
365,
6315,
739,
30,
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,
31571,
972,
12,
2890,
16,
508,
4672,
3536,
3502,
392,
733,
7495,
358,
333,
1041,
18,
3536,
598,
365,
6315,
739,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
attrName = "`"+ ret['Value'][1:-1]+"`" if type(attrValue) == types.ListType: | attrName = "`" + ret['Value'][1:-1] + "`" if type( attrValue ) == types.ListType: | def __buildCondition(self, condDict, older=None, newer=None, timeStamp='LastUpdateTime' ): """ build SQL condition statement from provided condDict and other extra conditions """ condition = '' conjunction = "WHERE" | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
3418,
12,
2890,
16,
6941,
5014,
16,
12156,
33,
7036,
16,
16069,
33,
7036,
16,
18198,
2218,
3024,
1891,
950,
11,
262,
30,
3536,
1361,
3063,
2269,
3021,
628,
2112,
6941,
5014,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3510,
3418,
12,
2890,
16,
6941,
5014,
16,
12156,
33,
7036,
16,
16069,
33,
7036,
16,
18198,
2218,
3024,
1891,
950,
11,
262,
30,
3536,
1361,
3063,
2269,
3021,
628,
2112,
6941,
5014,
... |
if f is not None: setattr(type_, '__getattribute__', f) | if __getattribute__ is not None: setattr(type_, '__getattribute__', __getattribute__) if __getattr__ is not None: setattr(type_, '__getattr__', __getattr__) | def attr_matches(self, text): """Taken from rlcompleter.py and bent to my will.""" | 0bbabdea366d87f5e776e22d9ae829d00b66cf41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/0bbabdea366d87f5e776e22d9ae829d00b66cf41/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1604,
67,
8436,
12,
2890,
16,
977,
4672,
3536,
27486,
628,
11618,
832,
17754,
18,
2074,
471,
324,
319,
358,
3399,
903,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
1604,
67,
8436,
12,
2890,
16,
977,
4672,
3536,
27486,
628,
11618,
832,
17754,
18,
2074,
471,
324,
319,
358,
3399,
903,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return len(self.index) | return self.n | def __len__(self): "Return the number of movable atoms." return len(self.index) | a30567dfb7f5d0ce2babbc254a029cc2e9f4d06d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/a30567dfb7f5d0ce2babbc254a029cc2e9f4d06d/constraints.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
315,
990,
326,
1300,
434,
5730,
429,
9006,
1199,
327,
562,
12,
2890,
18,
1615,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
315,
990,
326,
1300,
434,
5730,
429,
9006,
1199,
327,
562,
12,
2890,
18,
1615,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if 'time_limit' in params.keys(): self.time_limit = params['time_limit'] | if 'search_time_limit' in params.keys(): self.time_limit = params['search_time_limit'] | def __init__(self, params): '''To instantiate a search engine''' | 3a44716588786e2d5ceb7639eaa53714f3013856 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8417/3a44716588786e2d5ceb7639eaa53714f3013856/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
859,
4672,
9163,
774,
10275,
279,
1623,
4073,
26418,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
859,
4672,
9163,
774,
10275,
279,
1623,
4073,
26418,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def documentPackage0(path, builder=DocBuilder0()): | def documentPackage0(pathOrName, builder=PdfDocBuilder0()): | def documentPackage0(path, builder=DocBuilder0()): """Generate documentation for one Python package in some format. Rigiht now, 'path' must be a filesystem path, later it will also be a package name whose path will be resolved by importing the top-level module. The doc file will always be saved in the current directo... | 9ddc7f3e5a55d990df726a399c74e3167a73b014 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9ddc7f3e5a55d990df726a399c74e3167a73b014/docpy0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1668,
2261,
20,
12,
803,
29239,
16,
2089,
33,
18562,
1759,
1263,
20,
1435,
4672,
3536,
4625,
7323,
364,
1245,
6600,
2181,
316,
2690,
740,
18,
225,
534,
360,
77,
647,
2037,
16,
296,
803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1668,
2261,
20,
12,
803,
29239,
16,
2089,
33,
18562,
1759,
1263,
20,
1435,
4672,
3536,
4625,
7323,
364,
1245,
6600,
2181,
316,
2690,
740,
18,
225,
534,
360,
77,
647,
2037,
16,
296,
803... |
__slots__ = ["instance_name", "ignore_ip", "new_name"] | __slots__ = OpCode.__slots__ + [ "instance_name", "ignore_ip", "new_name", ] | def Summary(self): """Generates a summary description of this opcode. | 4f05fd3bdb49a9f1628b9915afde3c0d83367f6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/4f05fd3bdb49a9f1628b9915afde3c0d83367f6d/opcodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17967,
12,
2890,
4672,
3536,
6653,
279,
4916,
2477,
434,
333,
11396,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17967,
12,
2890,
4672,
3536,
6653,
279,
4916,
2477,
434,
333,
11396,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if get_verbose() >= 2: print "R[%02d].s_row %s"%(r+1,self.hex_str_vector(P)) | if get_verbose() >= 2: print "R[%02d].s_row %s"%(r+1, self.hex_str_vector(P)) | def __call__(self, P, K): r""" Encrypts the plaintext $P$ using the key $K$. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
453,
16,
1475,
4672,
436,
8395,
8594,
20261,
326,
11917,
271,
52,
8,
1450,
326,
498,
271,
47,
8,
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,
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,
1991,
972,
12,
2890,
16,
453,
16,
1475,
4672,
436,
8395,
8594,
20261,
326,
11917,
271,
52,
8,
1450,
326,
498,
271,
47,
8,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
newid = struct.pack('ll', random.randint(0, 2147483647) | 0x01010101, random.randint(0, 2147483647) | 0x01010101) | blist = [] for x in xrange(_rowid_str_len): blist.append(random.randint(1,255)) newid = struct.pack('B'*_rowid_str_len, *blist) | def __new_rowid(self, table, txn) : """Create a new unique row identifier""" unique = 0 while not unique: # Generate a random 64-bit row ID string # (note: this code has <56 bits of randomness # but it's plenty for our database id needs!) # The | 0x01010101 is to ensure no null bytes are in the value newid = struct.pac... | 499413711520674d1481df7f1199c8e2a63934c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/499413711520674d1481df7f1199c8e2a63934c7/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
67,
492,
350,
12,
2890,
16,
1014,
16,
7827,
13,
294,
3536,
1684,
279,
394,
3089,
1027,
2756,
8395,
3089,
273,
374,
1323,
486,
3089,
30,
468,
6654,
279,
2744,
5178,
17,
3682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
67,
492,
350,
12,
2890,
16,
1014,
16,
7827,
13,
294,
3536,
1684,
279,
394,
3089,
1027,
2756,
8395,
3089,
273,
374,
1323,
486,
3089,
30,
468,
6654,
279,
2744,
5178,
17,
3682... |
if discover: primaryLocale = "en_US" if fallback: for lc in self._localeSet: if self.hasTranslation(self._DEFAULT_PROJECT, self._DEFAULT_CATALOG, lc) or \ (hasCountryCode(lc) and \ self.hasTranslation(self._DEFAULT_PROJECT, self._DEFAULT_CATALOG, stripCountryCode(lc))): primaryLocale = lc if primaryLocal... | primaryLocale = "en_US" if fallback: for lc in self._localeSet: if (self.hasTranslation(self._DEFAULT_PROJECT, self._DEFAULT_CATALOG, lc) or (hasCountryCode(lc) and self.hasTranslation(self._DEFAULT_PROJECT, self._DEFAULT_CATALOG, stripCountryCode(lc)))): primaryLocale = lc if primaryLocale == "en_US": ... | def setLocaleSet(self, localeSet=None, fallback=True): """ Resets the c{I18nManager locale set c{List}. | c9efc6d061529bd9cd11f7029c50fd2b6b69b7d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9228/c9efc6d061529bd9cd11f7029c50fd2b6b69b7d9/i18nmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19848,
694,
12,
2890,
16,
2573,
694,
33,
7036,
16,
5922,
33,
5510,
4672,
3536,
1124,
2413,
326,
276,
95,
45,
2643,
82,
1318,
2573,
444,
276,
95,
682,
5496,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19848,
694,
12,
2890,
16,
2573,
694,
33,
7036,
16,
5922,
33,
5510,
4672,
3536,
1124,
2413,
326,
276,
95,
45,
2643,
82,
1318,
2573,
444,
276,
95,
682,
5496,
2,
-100,
-100,
-100,
-100,
... |
OptString(), | def optimize_loop_1(metainterp_sd, loop, virtuals=True): """Optimize loop.operations to make it match the input of loop.specnodes and to remove internal overheadish operations. Note that loop.specnodes must be applicable to the loop; you will probably get an AssertionError if not. """ optimizations = [OptIntBounds(), ... | a48f6673b2fd8b07309813ff1a2077132dd6a0a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/a48f6673b2fd8b07309813ff1a2077132dd6a0a3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
67,
6498,
67,
21,
12,
10578,
11606,
84,
67,
6427,
16,
2798,
16,
331,
2714,
12588,
33,
5510,
4672,
3536,
6179,
10153,
2798,
18,
17542,
358,
1221,
518,
845,
326,
810,
434,
2798,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
67,
6498,
67,
21,
12,
10578,
11606,
84,
67,
6427,
16,
2798,
16,
331,
2714,
12588,
33,
5510,
4672,
3536,
6179,
10153,
2798,
18,
17542,
358,
1221,
518,
845,
326,
810,
434,
2798,
1... | |
return swi.swi('OS_File', '5s;i', p)!=0 | try: return swi.swi('OS_File', '5s;i', p)!=0 except swi.error: return 0 | def exists(p): """ | 1b98592a77c77df4b3dffbab159ee7f4958e0e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1b98592a77c77df4b3dffbab159ee7f4958e0e9f/riscospath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
12,
84,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
12,
84,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
PRESERVE_WHITESPACE_TAGS = [] | def parse_declaration(self, i): """Treat a bogus SGML declaration as raw data. Treat a CDATA declaration as a CData object.""" j = None if self.rawdata[i:i+9] == '<![CDATA[': k = self.rawdata.find(']]>', i) if k == -1: k = len(self.rawdata) data = self.rawdata[i+9:k] j = k+3 self._toStringSubclass(data, CData) else: tr... | 7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
22448,
12,
2890,
16,
277,
4672,
3536,
56,
6150,
279,
324,
28774,
348,
43,
1495,
8266,
487,
1831,
501,
18,
26564,
279,
28294,
8266,
487,
279,
385,
751,
733,
12123,
525,
273,
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,
1109,
67,
22448,
12,
2890,
16,
277,
4672,
3536,
56,
6150,
279,
324,
28774,
348,
43,
1495,
8266,
487,
1831,
501,
18,
26564,
279,
28294,
8266,
487,
279,
385,
751,
733,
12123,
525,
273,
5... | |
version = Version(self.__env, name) | version = Version(self.env_open(), name) | def _do_version_remove(self, name): version = Version(self.__env, name) version.delete() | 132f03448459e7c8907500129479bb5f6c5bc47a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/132f03448459e7c8907500129479bb5f6c5bc47a/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
1589,
67,
4479,
12,
2890,
16,
508,
4672,
1177,
273,
4049,
12,
2890,
18,
3074,
67,
3190,
9334,
508,
13,
1177,
18,
3733,
1435,
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,
2896,
67,
1589,
67,
4479,
12,
2890,
16,
508,
4672,
1177,
273,
4049,
12,
2890,
18,
3074,
67,
3190,
9334,
508,
13,
1177,
18,
3733,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
c.addElement("item-not-found") | def onActivateStream(self, iq): sid = hashSID(iq.query["sid"], iq["from"], str(iq.query.activate)) log.msg("Activation requested for: ", sid) | 94bdb83c491d4eaf4defb0e0bb1457355ce9df23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5317/94bdb83c491d4eaf4defb0e0bb1457355ce9df23/proxy65.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
21370,
1228,
12,
2890,
16,
24288,
4672,
7348,
273,
1651,
30287,
12,
18638,
18,
2271,
9614,
7453,
6,
6487,
24288,
9614,
2080,
6,
6487,
609,
12,
18638,
18,
2271,
18,
10014,
3719,
613,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
21370,
1228,
12,
2890,
16,
24288,
4672,
7348,
273,
1651,
30287,
12,
18638,
18,
2271,
9614,
7453,
6,
6487,
24288,
9614,
2080,
6,
6487,
609,
12,
18638,
18,
2271,
18,
10014,
3719,
613,... | |
wx.PopupWindow.__init__(self, parent, style) self.SetBackgroundColour(colour) | def __init__(self, parent, utility, peer, style = wx.SIMPLE_BORDER, colour = "CADET BLUE"): wx.PopupWindow.__init__(self, parent, style) self.SetBackgroundColour(colour) self.utility = utility self.peer = peer self.enter = False self.info = self.getPeerInfo() try: st = wx.StaticText(self, -1, self.info, pos=(10,10)) ... | d27ca84d609b7bdec5a280b89e15fce313d9ba8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9686/d27ca84d609b7bdec5a280b89e15fce313d9ba8f/abcdetailframe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
12788,
16,
4261,
16,
2154,
273,
7075,
18,
31669,
900,
67,
38,
7954,
16,
15046,
273,
315,
39,
1880,
1584,
19238,
1821,
6,
4672,
365,
18,
1367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
16,
12788,
16,
4261,
16,
2154,
273,
7075,
18,
31669,
900,
67,
38,
7954,
16,
15046,
273,
315,
39,
1880,
1584,
19238,
1821,
6,
4672,
365,
18,
1367,
... | |
del ctx | print ("Returning from test..") | def test_05 (): # call to initialize a context ctx = vortex.Ctx () # call to init ctx if not ctx.init (): error ("Failed to init Vortex context") return False # call to create a connection conn = vortex.Connection (ctx, host, port) # check connection status after if if not conn.is_ok (): error ("Expected to find pro... | ccecbdfc46667fa03b6de19665b5ac15d0f3e316 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/ccecbdfc46667fa03b6de19665b5ac15d0f3e316/vortex-regression-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6260,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
1832,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6260,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
1832,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925,
358... |
width = 500 height = 500 | width = 450 height = 450 | def renderToPNG(request): import cairo if request.method == 'POST': # If the form has been submitted form = PlotForm(request.POST) # A form bound to the POST data if form.is_valid(): # All validation rules pass data = form.cleaned_data svg, bins = drawGraph( request, data['x'], data['y'], data['x1'], data['y1'], data[... | 29369efcb698022e11c3c1503b781a33276d2219 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6163/29369efcb698022e11c3c1503b781a33276d2219/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
774,
23092,
12,
2293,
4672,
1930,
14503,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
468,
971,
326,
646,
711,
2118,
9638,
646,
273,
15211,
1204,
12,
2293,
18,
3798,
13,
468,
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,
1743,
774,
23092,
12,
2293,
4672,
1930,
14503,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
468,
971,
326,
646,
711,
2118,
9638,
646,
273,
15211,
1204,
12,
2293,
18,
3798,
13,
468,
4... |
osAPI = nonportable.osAPI | os_api = nonportable.os_api | def run_network_test(name, args): logstream.write("INFO: Running: "+name+"\n") # Run the tests (testout, testerr) = exec_repy_script(name, "restrictions.default", args) # Check for output if testout != "" or testerr != "": logstream.write("FAILURE: Out:\n"+testout+"\n\nErr:\n"+testerr+"\n") | 7da9da1249dd9ae18b3c718af4a25413e2778d68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/7da9da1249dd9ae18b3c718af4a25413e2778d68/run_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
5185,
67,
3813,
12,
529,
16,
833,
4672,
613,
3256,
18,
2626,
2932,
5923,
30,
20480,
30,
13773,
529,
9078,
64,
82,
7923,
468,
1939,
326,
7434,
261,
3813,
659,
16,
1842,
370,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
5185,
67,
3813,
12,
529,
16,
833,
4672,
613,
3256,
18,
2626,
2932,
5923,
30,
20480,
30,
13773,
529,
9078,
64,
82,
7923,
468,
1939,
326,
7434,
261,
3813,
659,
16,
1842,
370,
... |
if __debug__ and self.debug >= 4: _mesg('< %s' % line) | if __debug__: if self.debug >= 4: _mesg('< %s' % line) else: _log('< %s' % line) | def _get_line(self): | 8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
389,
588,
67,
1369,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
watched = unwatched = downloaded = downloading = available = \ paused = uploadable = expiring = 0 | watched = [] unwatched = [] downloaded = [] downloading = [] available = [] paused = [] uploadable = [] expiring = [] | def _make_context_menu_multiple(self, selection): """Make the context menu for multiple items.""" watched = unwatched = downloaded = downloading = available = \ paused = uploadable = expiring = 0 for info in selection: if info.downloaded: downloaded += 1 if info.video_watched: watched += 1 if info.expiration_date: expi... | 841888bd2d8fb6b7cd9bf7de6ed4a4a6328edb5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/841888bd2d8fb6b7cd9bf7de6ed4a4a6328edb5c/itemcontextmenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
2472,
67,
5414,
67,
9622,
12,
2890,
16,
4421,
4672,
3536,
6464,
326,
819,
3824,
364,
3229,
1516,
12123,
23135,
273,
5378,
640,
7585,
329,
273,
5378,
13549,
273,
5378,
2374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
67,
2472,
67,
5414,
67,
9622,
12,
2890,
16,
4421,
4672,
3536,
6464,
326,
819,
3824,
364,
3229,
1516,
12123,
23135,
273,
5378,
640,
7585,
329,
273,
5378,
13549,
273,
5378,
2374... |
__swig_setmethods__["PowerStackNum"] = _micropolisengine.Micropolis_PowerStackNum_set __swig_getmethods__["PowerStackNum"] = _micropolisengine.Micropolis_PowerStackNum_get if _newclass:PowerStackNum = _swig_property(_micropolisengine.Micropolis_PowerStackNum_get, _micropolisengine.Micropolis_PowerStackNum_set) __swig_s... | __swig_setmethods__["powerStackNum"] = _micropolisengine.Micropolis_powerStackNum_set __swig_getmethods__["powerStackNum"] = _micropolisengine.Micropolis_powerStackNum_get if _newclass:powerStackNum = _swig_property(_micropolisengine.Micropolis_powerStackNum_get, _micropolisengine.Micropolis_powerStackNum_set) __swig_s... | def DoWinGame(*args): return _micropolisengine.Micropolis_DoWinGame(*args) | 042efdbc14576987266b02bd652be3f94dec4046 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12485/042efdbc14576987266b02bd652be3f94dec4046/micropolisengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
18049,
12496,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
3244,
18049,
12496,
30857,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
18049,
12496,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
3244,
18049,
12496,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if part.get('recipe') in supported_recipes: | if part and part.get('recipe') in supported_recipes: | def _configure(self, buildout): """Called by the unload extension if mrsd.developer is defined in the extension of the buildout. This method looks up instance parts in buildout and stores host, port, username and password in the mrsd config file, which is then used as default values. """ | 1cbea72a4cc6134ec543b7e66641f74522ba3a07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14549/1cbea72a4cc6134ec543b7e66641f74522ba3a07/reload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
12,
2890,
16,
1361,
659,
4672,
3536,
8185,
635,
326,
27060,
2710,
309,
312,
5453,
72,
18,
23669,
353,
2553,
316,
326,
2710,
434,
326,
1361,
659,
18,
1220,
707,
10192,
731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14895,
12,
2890,
16,
1361,
659,
4672,
3536,
8185,
635,
326,
27060,
2710,
309,
312,
5453,
72,
18,
23669,
353,
2553,
316,
326,
2710,
434,
326,
1361,
659,
18,
1220,
707,
10192,
731,
... |
print "%.8x\t%.8x\t%.8x\t" % \ | print "%.8x\t%.8x\t%.8x" % \ | def print_heap_blocks( pid ): print "Heaps for process %d:" % pid print "Heap ID\tAddress\tSize" # Create a snapshot of the process, only take the heap list hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPHEAPLIST, pid ) # Catch exceptions so we can call CloseHandle always before returning try: # Enumerate the heap... | b60192bcc04bffb4038cb121035861463ebec936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/b60192bcc04bffb4038cb121035861463ebec936/example3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
25506,
67,
7996,
12,
4231,
262,
30,
1172,
315,
5256,
6679,
364,
1207,
738,
72,
2773,
738,
4231,
1172,
315,
15648,
1599,
64,
88,
1887,
64,
88,
1225,
6,
225,
468,
1788,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
25506,
67,
7996,
12,
4231,
262,
30,
1172,
315,
5256,
6679,
364,
1207,
738,
72,
2773,
738,
4231,
1172,
315,
15648,
1599,
64,
88,
1887,
64,
88,
1225,
6,
225,
468,
1788,
279,
... |
Decode file/path string. Return `nodes.reprunicode` object. Convert to Unicode without the UnicodeDecode error of the implicit 'ascii:strict' decoding. | Ensure `path` is Unicode. Return `nodes.reprunicode` object. Decode file/path string in a failsave manner if not already done. | def decode_path(path): """ Decode file/path string. Return `nodes.reprunicode` object. Convert to Unicode without the UnicodeDecode error of the implicit 'ascii:strict' decoding. """ # see also http://article.gmane.org/gmane.text.docutils.user/2905 try: path = path.decode(sys.getfilesystemencoding(), 'strict') except ... | b25f8dfc77365827bf3d7e0529fa70ea6693c45c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/b25f8dfc77365827bf3d7e0529fa70ea6693c45c/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
803,
12,
803,
4672,
3536,
7693,
1375,
803,
68,
353,
9633,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
6209,
585,
19,
803,
533,
316,
279,
2321,
5688,
21296,
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,
2495,
67,
803,
12,
803,
4672,
3536,
7693,
1375,
803,
68,
353,
9633,
18,
2000,
1375,
4690,
18,
12715,
9124,
68,
733,
18,
225,
6209,
585,
19,
803,
533,
316,
279,
2321,
5688,
21296,
309,
... |
def addTransformation(self, name, description, long_description, authorDN, authorGroup, type, mode, agentType, status, fileMask): | def getName(self): """ Get the database name """ return self.dbname def addTransformation(self, name, description, longDescription, authorDN, authorGroup, type, plugin, agentType,fileMask): | def addTransformation(self, name, description, long_description, authorDN, authorGroup, type, mode, agentType, status, fileMask): """ Add new transformation definition including its input streams """ inFields = ['TransformationName', 'Description', 'LongDescription', 'CreationDate', 'AuthorDN', 'AuthorGroup', 'Type', '... | d1afb271a8b0ccf92b67dfa3afc748418f55f0ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/d1afb271a8b0ccf92b67dfa3afc748418f55f0ce/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1652,
1723,
12,
2890,
4672,
3536,
225,
968,
326,
2063,
508,
3536,
327,
365,
18,
20979,
225,
1652,
527,
15292,
12,
2890,
16,
508,
16,
2477,
16,
1525,
3291,
16,
2869,
8609,
16,
2869,
111... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1652,
1723,
12,
2890,
4672,
3536,
225,
968,
326,
2063,
508,
3536,
327,
365,
18,
20979,
225,
1652,
527,
15292,
12,
2890,
16,
508,
16,
2477,
16,
1525,
3291,
16,
2869,
8609,
16,
2869,
111... |
def memdump_cb(self, widget): if widget.get_active(): print "Dumpmode on MEMDUMP" self.dumpmode = self._MEMDUMP else: print "Dumpmode on DISASM" self.dumpmode = self._DISASM self.dump_address(self.address) def registers_cb(self, widget): print "TODO: show these in window and allow changing registers" self.hatari.debug... | def memdump_cb(self, widget): if widget.get_active(): print "Dumpmode on MEMDUMP" self.dumpmode = self._MEMDUMP else: print "Dumpmode on DISASM" self.dumpmode = self._DISASM self.dump_address(self.address) | a839da0699cb05f1e3add20b29be66d8dc90680a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/a839da0699cb05f1e3add20b29be66d8dc90680a/debugui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1663,
8481,
67,
7358,
12,
2890,
16,
3604,
4672,
309,
3604,
18,
588,
67,
3535,
13332,
1172,
315,
10628,
3188,
603,
18990,
40,
23942,
6,
365,
18,
8481,
3188,
273,
365,
6315,
958,
6188,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1663,
8481,
67,
7358,
12,
2890,
16,
3604,
4672,
309,
3604,
18,
588,
67,
3535,
13332,
1172,
315,
10628,
3188,
603,
18990,
40,
23942,
6,
365,
18,
8481,
3188,
273,
365,
6315,
958,
6188,
2... | |
notification_data = TimeStampedNotificationData(originator="local") | notification_data = TimestampedNotificationData(originator="local") | def _do_reject_proposal(self, reason=None): self._inv.respond_to_reinvite(488) self._change_state("ESTABLISHED") notification_data = TimeStampedNotificationData(originator="local") if reason is not None: notification_data.reason = reason self.notification_center.post_notification("SCSessionRejectedStreamProposal", self... | 01388ec4746e0692ca1e2ea41b21b8130074d47f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/01388ec4746e0692ca1e2ea41b21b8130074d47f/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
24163,
67,
685,
8016,
12,
2890,
16,
3971,
33,
7036,
4672,
365,
6315,
5768,
18,
17863,
67,
869,
67,
266,
27154,
12,
24,
5482,
13,
365,
6315,
3427,
67,
2019,
2932,
11027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
24163,
67,
685,
8016,
12,
2890,
16,
3971,
33,
7036,
4672,
365,
6315,
5768,
18,
17863,
67,
869,
67,
266,
27154,
12,
24,
5482,
13,
365,
6315,
3427,
67,
2019,
2932,
11027,
... |
self.say('%s has %s %s' % (nick, k, self.pl('point', k))) | self.say('%s has %s %s' % (nick, k, self.pl('point', k, 's'))) | def cmd_karma(self, m): if (m == ""): self.say("Chart is at http://jibot.joi.ito.com:8080/karmadump.rpy") else: words = m.split() nick = words[0] try: k = self.karma[nick.lower()] self.say('%s has %s %s' % (nick, k, self.pl('point', k))) except: self.say('%s has no karma points' % nick) | 30f2762f55bc514dd7f58b4f6a7117fcc2e00e13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9641/30f2762f55bc514dd7f58b4f6a7117fcc2e00e13/jibot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
79,
297,
2540,
12,
2890,
16,
312,
4672,
309,
261,
81,
422,
1408,
4672,
365,
18,
87,
528,
2932,
7984,
353,
622,
1062,
2207,
78,
495,
352,
18,
78,
11359,
18,
11250,
18,
832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
79,
297,
2540,
12,
2890,
16,
312,
4672,
309,
261,
81,
422,
1408,
4672,
365,
18,
87,
528,
2932,
7984,
353,
622,
1062,
2207,
78,
495,
352,
18,
78,
11359,
18,
11250,
18,
832,
... |
newButton.SetBitmapLabel(bmp, false) | try: newButton.SetBitmapLabel(bmp, false) except TypeError: newButton.SetBitmapLabel(bmp) | def addButton(self, widgetName, wxClass, constrClass, clickEvt, hintFunc, hintLeaveFunc, btnType): mID = wxNewId() | 877f2bbb403a9c66af4a41148141206f90cd686f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/877f2bbb403a9c66af4a41148141206f90cd686f/Palette.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3616,
12,
2890,
16,
3604,
461,
16,
7075,
797,
16,
14472,
797,
16,
4682,
30990,
16,
7380,
2622,
16,
7380,
21300,
2622,
16,
10638,
559,
4672,
312,
734,
273,
7075,
1908,
548,
1435,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3616,
12,
2890,
16,
3604,
461,
16,
7075,
797,
16,
14472,
797,
16,
4682,
30990,
16,
7380,
2622,
16,
7380,
21300,
2622,
16,
10638,
559,
4672,
312,
734,
273,
7075,
1908,
548,
1435,
2... |
db, pool = pooler.restart_pool(cr.dbname,update_module=True) return { 'view_type': 'form', "view_mode": 'form', 'res_model': 'ir.actions.configuration.wizard', 'type': 'ir.actions.act_window', 'target':'new', } | db, pool = pooler.restart_pool(cr.dbname, update_module=True) | def action_install(self, cr, uid, ids, context=None): result=self.read(cr,uid,ids) mod_obj = self.pool.get('ir.module.module') for res in result: for r in res: if r<>'id' and res[r]: ids = mod_obj.search(cr, uid, [('name', '=', r)]) mod_obj.button_install(cr, uid, ids, context=context) cr.commit() db, pool = pooler.res... | 75b145e6c9883d4be332a32c7a7d9083ddf3f39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/75b145e6c9883d4be332a32c7a7d9083ddf3f39e/profile_manufacturing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
5425,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
563,
33,
2890,
18,
896,
12,
3353,
16,
1911,
16,
2232,
13,
681,
67,
2603,
273,
365,
18,
6011,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
5425,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
563,
33,
2890,
18,
896,
12,
3353,
16,
1911,
16,
2232,
13,
681,
67,
2603,
273,
365,
18,
6011,
18,
58... |
return 'Chandler/%s (%s; U; %s; %s)' % (version.version, platform, cpu, locale) | return 'Chandler/%s (%s; U; %s; %s; %s)' % (version.version, platform, osname, cpu, locale) | def getUserAgent(): """ Construct a rfc spec'd UserAgent string from the platform and version information """ platformID = getPlatformID() locale = i18n.getLocale() if platformID == 'win' or platformID == 'win-cygwin': platform = 'Windows' cpu = 'i386' elif platformID == 'osx-intel': platform = 'Macintosh' cp... | f418acef6a2af46f5d2fbee2b802f0ed08ae8045 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/f418acef6a2af46f5d2fbee2b802f0ed08ae8045/Utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
3630,
13332,
3536,
14291,
279,
16590,
857,
14271,
21917,
533,
628,
326,
4072,
471,
1177,
1779,
3536,
4072,
734,
273,
24921,
734,
1435,
2573,
377,
273,
277,
2643,
82,
18,
588,
3916,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
3630,
13332,
3536,
14291,
279,
16590,
857,
14271,
21917,
533,
628,
326,
4072,
471,
1177,
1779,
3536,
4072,
734,
273,
24921,
734,
1435,
2573,
377,
273,
277,
2643,
82,
18,
588,
3916,
... |
if not is_valid_ip_address(localip): raise Exception("Local IP address is invalid.") | def waitforconn(localip, localport,function): """ <Purpose> Waits for a connection to a port. Calls function with a socket-like object if it succeeds. <Arguments> localip: The local IP to listen on localport: The local port to bind to function: The function to call. It should take five arguments: (remoteip, remote... | 86d29537aa93ae6d463ba0845d7be285b0ad21e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/86d29537aa93ae6d463ba0845d7be285b0ad21e5/emulcomm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
1884,
4646,
12,
3729,
625,
16,
1191,
655,
16,
915,
4672,
3536,
411,
10262,
4150,
34,
678,
12351,
364,
279,
1459,
358,
279,
1756,
18,
282,
23665,
445,
598,
279,
2987,
17,
5625,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
1884,
4646,
12,
3729,
625,
16,
1191,
655,
16,
915,
4672,
3536,
411,
10262,
4150,
34,
678,
12351,
364,
279,
1459,
358,
279,
1756,
18,
282,
23665,
445,
598,
279,
2987,
17,
5625,
73... | |
def _dorewrite(match, connection, sessionDict, replacement): | def _dorewrite(match, connection, sessionDict, replacement, key): | def _dorewrite(match, connection, sessionDict, replacement): if callable(replacement): if isinstance(replacement, DynamicRewriter): replacement.refresh(connection, sessionDict) connection.uri = match.re.sub(replacement, connection.uri) else: connection.uri = match.expand(replacement) groupdict=m.groupdict() if Configur... | 5ae0732fb824d575ffcea4915e183a3c99164ca5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/5ae0732fb824d575ffcea4915e183a3c99164ca5/rewrite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
72,
479,
2626,
12,
1916,
16,
1459,
16,
1339,
5014,
16,
6060,
16,
498,
4672,
309,
4140,
12,
24394,
4672,
309,
1549,
12,
24394,
16,
12208,
17631,
1091,
4672,
6060,
18,
9144,
12,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
72,
479,
2626,
12,
1916,
16,
1459,
16,
1339,
5014,
16,
6060,
16,
498,
4672,
309,
4140,
12,
24394,
4672,
309,
1549,
12,
24394,
16,
12208,
17631,
1091,
4672,
6060,
18,
9144,
12,
407... |
return [] | return [] | def readComments(entry, config): """ @param: a file entry @type: dict @returns: a list of comment dicts """ filelist = glob.glob(cmtExpr(entry, config)) filelist.sort() if not entry.has_key('num_comments'): entry['num_comments'] = len(filelist) try: return [ readComment(f) for f in filelist ] except: tools.log("Couldn... | 59972aef9f52edd02a5cbd1983164e1d90cf90ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/59972aef9f52edd02a5cbd1983164e1d90cf90ba/comments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
9051,
12,
4099,
16,
642,
4672,
3536,
632,
891,
30,
279,
585,
1241,
632,
723,
30,
2065,
225,
632,
6154,
30,
279,
666,
434,
2879,
15838,
3536,
26204,
273,
4715,
18,
10581,
12,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
9051,
12,
4099,
16,
642,
4672,
3536,
632,
891,
30,
279,
585,
1241,
632,
723,
30,
2065,
225,
632,
6154,
30,
279,
666,
434,
2879,
15838,
3536,
26204,
273,
4715,
18,
10581,
12,
71,
... |
tm.add(_monitorDoLaterUponDeath, 'monitorDoLaterUponDeath') | tm.add(_monitorDoLaterUponDeath, 'monitorDoLaterUponDeath', priority=10) | def _monitorDoLaterUponDeath(task, tm=tm, l=l, doLaterTests=doLaterTests): if task.time > .02: assert l == [10,] doLaterTests[0] -= 1 return task.done return task.cont | d0c4d4f8fc308811e5e29043a0ac1583739f959c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/d0c4d4f8fc308811e5e29043a0ac1583739f959c/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10259,
3244,
20607,
57,
500,
758,
421,
12,
4146,
16,
6118,
33,
16925,
16,
328,
33,
80,
16,
741,
20607,
14650,
33,
2896,
20607,
14650,
4672,
309,
1562,
18,
957,
405,
263,
3103,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10259,
3244,
20607,
57,
500,
758,
421,
12,
4146,
16,
6118,
33,
16925,
16,
328,
33,
80,
16,
741,
20607,
14650,
33,
2896,
20607,
14650,
4672,
309,
1562,
18,
957,
405,
263,
3103,
30,... |
if isinstance(result, list): for rec in result: if not rec.get('action_id',True): rec['action_id'] = (self._get_menu(cr, uid),'Menu') else: if not result.get('action_id',True): result['action_id'] = (self._get_menu(cr, uid),'Menu') | def override_password(o): if 'password' in o and ( 'id' not in o or o['id'] != uid ): o['password'] = '********' return o | d6695975bd9d50499d52415a162c35624bf43124 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d6695975bd9d50499d52415a162c35624bf43124/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3849,
67,
3664,
12,
83,
4672,
309,
296,
3664,
11,
316,
320,
471,
261,
296,
350,
11,
486,
316,
320,
578,
320,
3292,
350,
3546,
480,
4555,
262,
30,
320,
3292,
3664,
3546,
273,
296,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3849,
67,
3664,
12,
83,
4672,
309,
296,
3664,
11,
316,
320,
471,
261,
296,
350,
11,
486,
316,
320,
578,
320,
3292,
350,
3546,
480,
4555,
262,
30,
320,
3292,
3664,
3546,
273,
296,
164... | |
company_id=None | company_id = None | def validate(self, cr, uid, ids, context={}): if context and ('__last_update' in context): del context['__last_update'] ok = True for move in self.browse(cr, uid, ids, context): #unlink analytic lines on move_lines for obj_line in move.line_id: for obj in obj_line.analytic_lines: self.pool.get('account.analytic.line').... | 65ddf755de8d52191634fd06a82995da790eef5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/65ddf755de8d52191634fd06a82995da790eef5e/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
309,
819,
471,
7707,
972,
2722,
67,
2725,
11,
316,
819,
4672,
1464,
819,
3292,
972,
2722,
67,
2725,
3546,
1529,
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,
1954,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
309,
819,
471,
7707,
972,
2722,
67,
2725,
11,
316,
819,
4672,
1464,
819,
3292,
972,
2722,
67,
2725,
3546,
1529,
273,... |
if n > 1: | if type(n) in (ListType,TupleType): | def makeSectors(self): # normalize slice data if type(self.data) in (ListType, TupleType) and type(self.data[0]) in (ListType, TupleType): #it's a nested list, more than one sequence normData = [] for l in self.data: t = self.normalizeData(l) normData.append(t) else: normData = self.normalizeData(self.data) n = len(nor... | ae98fe1a4e38594839cd1a4dc3f19a361611dcf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/ae98fe1a4e38594839cd1a4dc3f19a361611dcf1/doughnut.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366... |
def test_getitem(self): class GetItem(object): | def _getitem_helper(self, base): class GetItem(base): | def test_getitem(self): class GetItem(object): def __len__(self): return maxint def __getitem__(self, key): return key def __getslice__(self, i, j): return i, j x = GetItem() self.assertEqual(x[self.pos], self.pos) self.assertEqual(x[self.neg], self.neg) self.assertEqual(x[self.neg:self.pos], (-1, maxint)) self.assertE... | 1872b1c01f343f4cbfa7696ce95beae8278ce210 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1872b1c01f343f4cbfa7696ce95beae8278ce210/test_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
31571,
67,
4759,
12,
2890,
16,
1026,
4672,
667,
968,
1180,
12,
1969,
4672,
1652,
1001,
1897,
972,
12,
2890,
4672,
327,
943,
474,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
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,
389,
31571,
67,
4759,
12,
2890,
16,
1026,
4672,
667,
968,
1180,
12,
1969,
4672,
1652,
1001,
1897,
972,
12,
2890,
4672,
327,
943,
474,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
3... |
next_position: ; | next_position: /* nothing */ ; | def hitmiss(binimg,struct_elem): ''' Implementation of hit-or-miss operation ''' | d5488d1a9fbeaeb25715a9915de7fa06745e9d3c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/d5488d1a9fbeaeb25715a9915de7fa06745e9d3c/mmthin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6800,
3105,
12,
4757,
6081,
16,
1697,
67,
10037,
4672,
9163,
25379,
434,
6800,
17,
280,
17,
3105,
1674,
9163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6800,
3105,
12,
4757,
6081,
16,
1697,
67,
10037,
4672,
9163,
25379,
434,
6800,
17,
280,
17,
3105,
1674,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def traversePandaObjects(self, item, objNodePath): itemId = self.tree.GetItemPyData(item) | def traversePandaObjects(self, parent, objNodePath): itemId = self.tree.GetItemPyData(parent) | def __init__(self, parent, editor): wx.Panel.__init__(self, parent) | 4c963911ae77789c683ea00b008f4a4e67b108d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/4c963911ae77789c683ea00b008f4a4e67b108d1/SceneGraphUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
4858,
4672,
7075,
18,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
4858,
4672,
7075,
18,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
key,value=pair.split('=') | key,value=pair.split('=', 1) | def SASLHandler(self,conn,challenge): """ Perform next SASL auth step. Used internally. """ if challenge.getNamespace()<>NS_SASL: return if challenge.getName()=='failure': self.startsasl='failure' try: reason=challenge.getChildren()[0] except: reason=challenge self.DEBUG('Failed SASL authentification: %s'%reason,'error... | 615705e914bf88212a931953251b36624ec99c25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/615705e914bf88212a931953251b36624ec99c25/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24380,
48,
1503,
12,
2890,
16,
4646,
16,
25092,
4672,
3536,
11217,
1024,
24380,
48,
1357,
2235,
18,
10286,
12963,
18,
3536,
309,
12948,
18,
588,
3402,
1435,
29667,
3156,
67,
55,
3033,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24380,
48,
1503,
12,
2890,
16,
4646,
16,
25092,
4672,
3536,
11217,
1024,
24380,
48,
1357,
2235,
18,
10286,
12963,
18,
3536,
309,
12948,
18,
588,
3402,
1435,
29667,
3156,
67,
55,
3033,
48... |
self.parser.phase.insertionModes["inHead"](self.parser).processStartTag(name, attributes) | self.parser.phase.insertionModes["inHead"](self.parser).\ processStartTag(name, attributes) | def startTagScript(self, name, attributes): self.parser.phase.insertionModes["inHead"](self.parser).processStartTag(name, attributes) | 14d32ff13a1e485034b3d2170cde39db587bf593 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/14d32ff13a1e485034b3d2170cde39db587bf593/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
3651,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
4288,
18,
13961,
18,
6387,
285,
18868,
9614,
267,
1414,
11929,
12,
2890,
18,
4288,
2934,
2567,
30512,
12,
529,
16,
1677,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
3651,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
4288,
18,
13961,
18,
6387,
285,
18868,
9614,
267,
1414,
11929,
12,
2890,
18,
4288,
2934,
2567,
30512,
12,
529,
16,
1677,
13... |
def __str__(self): | def __repr__(self): | def __str__(self): '''Returns: A string representation of this lfs.DataBlock instance. ''' return self.__dict__.__str__() | a9eca91b1968c6f25831ffd1d453046ec1a7596a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4650/a9eca91b1968c6f25831ffd1d453046ec1a7596a/lfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
9163,
1356,
30,
432,
533,
4335,
434,
333,
328,
2556,
18,
751,
1768,
791,
18,
9163,
327,
365,
16186,
1576,
972,
16186,
701,
972,
1435,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
9163,
1356,
30,
432,
533,
4335,
434,
333,
328,
2556,
18,
751,
1768,
791,
18,
9163,
327,
365,
16186,
1576,
972,
16186,
701,
972,
1435,
2,
-100,
-100,
-... |
if self.getState() == "on": | state = self.getState() self.debug("VM state is %s" % state) if state == "on": self.debug("Suspending VM.") | def backup(self, tarfile): """Back up VM to given tarball file.""" restartVM = False if self.getState() == "on": self.suspend() restartVM = True dir = os.path.dirname(self._configFile) # Path to parent directory of the VM directory parent = os.path.normpath(os.path.join(dir, "..")) # If we just run tar with the directo... | 43240a8c8be1df83c59dce4a90dbf8c1a0bfc4c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14343/43240a8c8be1df83c59dce4a90dbf8c1a0bfc4c8/vm-backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
12,
2890,
16,
25857,
4672,
3536,
2711,
731,
8251,
358,
864,
29441,
585,
12123,
7870,
7397,
273,
1083,
919,
273,
365,
18,
588,
1119,
1435,
365,
18,
4148,
2932,
7397,
919,
353,
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,
5114,
12,
2890,
16,
25857,
4672,
3536,
2711,
731,
8251,
358,
864,
29441,
585,
12123,
7870,
7397,
273,
1083,
919,
273,
365,
18,
588,
1119,
1435,
365,
18,
4148,
2932,
7397,
919,
353,
738,
... |
if not self.is_active: | if self.is_active: | def cleanup(self): if not self.is_active: self.is_active = False self.caller.cleanup() self.callee.cleanup() self.rtp.cleanup() self.rtcp.cleanup() | e6a5d50b756098fbfd44a19cf81568f3bcb9d92b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/e6a5d50b756098fbfd44a19cf81568f3bcb9d92b/mediacontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
2890,
4672,
309,
365,
18,
291,
67,
3535,
30,
365,
18,
291,
67,
3535,
273,
1083,
365,
18,
16140,
18,
16732,
1435,
365,
18,
771,
11182,
18,
16732,
1435,
365,
18,
3797,
84,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
2890,
4672,
309,
365,
18,
291,
67,
3535,
30,
365,
18,
291,
67,
3535,
273,
1083,
365,
18,
16140,
18,
16732,
1435,
365,
18,
771,
11182,
18,
16732,
1435,
365,
18,
3797,
84,
18... |
l = 2.0 * radius * sin(w2*self._invradian) | l = 2.0 * radius * sin(w2*self._invradian) | def circle(self, radius, extent = None): """ Draw a circle with given radius. The center is radius units left of the turtle; extent determines which part of the circle is drawn. If not given, the entire circle is drawn. | 42ac85a14f95c2a1af38c3c9ba047c4646261f7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/42ac85a14f95c2a1af38c3c9ba047c4646261f7f/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12470,
12,
2890,
16,
5725,
16,
11933,
273,
599,
4672,
3536,
10184,
279,
12470,
598,
864,
5725,
18,
1021,
4617,
353,
5725,
4971,
2002,
434,
326,
268,
295,
5929,
31,
11933,
12949,
1492,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12470,
12,
2890,
16,
5725,
16,
11933,
273,
599,
4672,
3536,
10184,
279,
12470,
598,
864,
5725,
18,
1021,
4617,
353,
5725,
4971,
2002,
434,
326,
268,
295,
5929,
31,
11933,
12949,
1492,
10... |
if dirname == '.svn' or dirname in localConfig.excludes: continue | subdirs[:] = [d for d in subdirs if (d != '.svn' and d not in localConfig.excludes)] | def getTestsInDirectory(self, testSuite, path_in_suite, litConfig, localConfig): for dirname,subdirs,filenames in os.walk(self.dir): if not self.recursive: subdirs[:] = [] | 0b3f26dbec6c2ca5a680f7d42795408f3a044bee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6277/0b3f26dbec6c2ca5a680f7d42795408f3a044bee/TestFormats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
25563,
382,
2853,
12,
2890,
16,
1842,
13587,
16,
589,
67,
267,
67,
30676,
16,
16297,
809,
16,
1191,
809,
4672,
364,
4283,
16,
1717,
8291,
16,
19875,
316,
1140,
18,
11348,
12,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
25563,
382,
2853,
12,
2890,
16,
1842,
13587,
16,
589,
67,
267,
67,
30676,
16,
16297,
809,
16,
1191,
809,
4672,
364,
4283,
16,
1717,
8291,
16,
19875,
316,
1140,
18,
11348,
12,
289... |
return _Dialog._fixresult(widget, result) | return _Dialog._fixresult(self, widget, result) | def _fixresult(self, widget, result): if isinstance(result, tuple): # multiple results: result = tuple([getattr(r, "string", r) for r in result]) if result: import os path, file = os.path.split(result[0]) self.options["initialdir"] = path # don't set initialfile or filename, as we have multiple of these return result i... | 02857c1278d1a81a932ad904e0a731667e9c0cb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/02857c1278d1a81a932ad904e0a731667e9c0cb7/tkFileDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
2088,
12,
2890,
16,
3604,
16,
563,
4672,
309,
1549,
12,
2088,
16,
3193,
4672,
468,
3229,
1686,
30,
563,
273,
3193,
3816,
588,
1747,
12,
86,
16,
315,
1080,
3113,
436,
13,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
2088,
12,
2890,
16,
3604,
16,
563,
4672,
309,
1549,
12,
2088,
16,
3193,
4672,
468,
3229,
1686,
30,
563,
273,
3193,
3816,
588,
1747,
12,
86,
16,
315,
1080,
3113,
436,
13,
36... |
if 'hashlib' in sys.modules: digest_size = hashfn().digest_size else: digest_size = hashfn.digest_size l = keylen / digest_size if keylen % digest_size != 0: l += 1 | try: digest_size = hashfn().digest_size except TypeError: digest_size = hashfn.digest_size l = keylen / digest_size if keylen % digest_size != 0: l += 1 | def pbkdf2( password, salt, itercount, keylen, hashfn = sha ): if 'hashlib' in sys.modules: digest_size = hashfn().digest_size else: digest_size = hashfn.digest_size # l - number of output blocks to produce l = keylen / digest_size if keylen % digest_size != 0: l += 1 h = hmac.new( password, None, hashfn ) T = "" for... | adc8746dabba5a5936767cddc028f6c33b858a4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/adc8746dabba5a5936767cddc028f6c33b858a4c/pbkdf2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6386,
27767,
22,
12,
2201,
16,
4286,
16,
1400,
1883,
16,
498,
1897,
16,
1651,
4293,
273,
6056,
262,
30,
309,
296,
2816,
2941,
11,
316,
2589,
18,
6400,
30,
5403,
67,
1467,
273,
1651,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6386,
27767,
22,
12,
2201,
16,
4286,
16,
1400,
1883,
16,
498,
1897,
16,
1651,
4293,
273,
6056,
262,
30,
309,
296,
2816,
2941,
11,
316,
2589,
18,
6400,
30,
5403,
67,
1467,
273,
1651,
... |
self.SetKeywords(0, hypertext_elements + hypertext_attributes + \ ' public !doctype '+zope_elements) | if old_stc: self.SetKeywords(0, hypertext_elements + hypertext_attributes + \ ' public !doctype '+zope_elements) else: self.SetKeyWords(0, hypertext_elements + hypertext_attributes + \ ' public !doctype '+zope_elements) | def __init__(self, wId): self.SetEOLMode(wxSTC_EOL_LF) self.eol = wxSTC_EOL_LF #endOfLines[self.GetEOLMode()] | 89eb19653f42afd80f73c01b18538a7b5352c0fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/89eb19653f42afd80f73c01b18538a7b5352c0fc/StyledTextCtrls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
341,
548,
4672,
365,
18,
694,
5842,
2309,
12,
27226,
882,
39,
67,
5842,
67,
9105,
13,
365,
18,
30951,
273,
7075,
882,
39,
67,
5842,
67,
9105,
468,
409,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
341,
548,
4672,
365,
18,
694,
5842,
2309,
12,
27226,
882,
39,
67,
5842,
67,
9105,
13,
365,
18,
30951,
273,
7075,
882,
39,
67,
5842,
67,
9105,
468,
409,... |
f2 = run_pipe("nice --10 %s %s %s" % (avmtt, vmargs, abc)) | f2 = run_pipe("%s %s %s" % (avmtt, vmargs, abc)) | def compile_test(as): asc, globalabc, ascargs = globs['asc'], globs['globalabc'], globs['ascargs'] if not isfile(asc): exit("ERROR: cannot build %s, ASC environment variable or --asc must be set to asc.jar" % as) if not isfile(globalabc): exit("ERROR: global.abc %s does not exist, GLOBALABC environment variable or --gl... | 68b6133821f6b6c51adea5af774e4e78942156cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13395/68b6133821f6b6c51adea5af774e4e78942156cc/runtests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3813,
12,
345,
4672,
6972,
16,
2552,
18947,
16,
6972,
1968,
273,
4715,
87,
3292,
3691,
17337,
4715,
87,
3292,
6347,
18947,
17337,
4715,
87,
3292,
3691,
1968,
3546,
309,
486,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3813,
12,
345,
4672,
6972,
16,
2552,
18947,
16,
6972,
1968,
273,
4715,
87,
3292,
3691,
17337,
4715,
87,
3292,
6347,
18947,
17337,
4715,
87,
3292,
3691,
1968,
3546,
309,
486,
88... |
else | else: | def get_html(self, link): try: url = link user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' headers = {'User-Agent': user_agent} req = urllib2.Request(url, None, headers) | 46dda812286e18ac589b9f43b0cec44969f9a597 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4021/46dda812286e18ac589b9f43b0cec44969f9a597/ifcmgtool_spider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2620,
12,
2890,
16,
1692,
4672,
775,
30,
880,
273,
1692,
729,
67,
5629,
273,
296,
49,
11142,
10745,
19,
24,
18,
20,
261,
10943,
31,
490,
2320,
41,
1381,
18,
25,
31,
8202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2620,
12,
2890,
16,
1692,
4672,
775,
30,
880,
273,
1692,
729,
67,
5629,
273,
296,
49,
11142,
10745,
19,
24,
18,
20,
261,
10943,
31,
490,
2320,
41,
1381,
18,
25,
31,
8202,
... |
return other != None and self.x == other.y and self.x == other.y | return other != None and self.x == other.y and self.y == other.y | def __eq__(self, other): return other != None and self.x == other.y and self.x == other.y | 5e4808d47c1a7df1ef6bc18f008240dbd7f10fcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/5e4808d47c1a7df1ef6bc18f008240dbd7f10fcf/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
1308,
480,
599,
471,
365,
18,
92,
422,
1308,
18,
93,
471,
365,
18,
92,
422,
1308,
18,
93,
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,
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,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
1308,
480,
599,
471,
365,
18,
92,
422,
1308,
18,
93,
471,
365,
18,
92,
422,
1308,
18,
93,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
query = VideoPlaylist.gql("WHERE playlist = :1 AND live_association = TRUE", video_playlist.playlist) | query = VideoPlaylist.gql("WHERE playlist = :1 AND live_association = TRUE ORDER BY video_position", video_playlist.playlist) | def get(self): user_data = UserData.get_for_current_user() logout_url = users.create_logout_url(self.request.uri) video_id = self.request.get('v') if video_id: query = Video.all() query.filter('youtube_id =', video_id) video = query.get() if video is None: error_message = "No video found for YouTube ID '%s'" % video_id... | 1eeed16e6cf42588e633c542ad494fd1526cf6d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/1eeed16e6cf42588e633c542ad494fd1526cf6d8/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
729,
67,
892,
273,
31109,
18,
588,
67,
1884,
67,
2972,
67,
1355,
1435,
12735,
67,
718,
273,
3677,
18,
2640,
67,
21229,
67,
718,
12,
2890,
18,
2293,
18,
1650,
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,
336,
12,
2890,
4672,
729,
67,
892,
273,
31109,
18,
588,
67,
1884,
67,
2972,
67,
1355,
1435,
12735,
67,
718,
273,
3677,
18,
2640,
67,
21229,
67,
718,
12,
2890,
18,
2293,
18,
1650,
13,... |
amount = fields.Numeric('Amount', digits="(16, parent.currency_digits)") | amount = fields.Numeric('Amount', digits="(16, _parent_invoice.currency_digits)") | 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,... |
'SAGE Scripts', | 'Sage Scripts', | def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file). | 020bc5a17817481601e8ed113c19ee97bf3f96b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/020bc5a17817481601e8ed113c19ee97bf3f96b0/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... |
print list(ufl_objs(f)) | print list(iter_ufl_objs(f)) | def test_iterators(self): polygon = "triangle" fe1 = FiniteElement("Lagrange", polygon, 1) fe2 = FiniteElement("Lagrange", polygon, 2) a = BasisFunction(fe1) b = Constant(polygon, "b") c = BasisFunction(fe2) d = Constant(fe1, "d") e = BasisFunction(fe2) g = Function(fe2, "b") f = exp(a+b*c/d)**g-e print f print "" prin... | 8bdb4b816f8daf8d4178a857ceded4d35ff51587 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/624/8bdb4b816f8daf8d4178a857ceded4d35ff51587/olduglytestcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2165,
3062,
12,
2890,
4672,
7154,
273,
315,
16857,
4341,
6,
1656,
21,
273,
9458,
1137,
1046,
2932,
26093,
3676,
3113,
7154,
16,
404,
13,
1656,
22,
273,
9458,
1137,
1046,
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,
1842,
67,
2165,
3062,
12,
2890,
4672,
7154,
273,
315,
16857,
4341,
6,
1656,
21,
273,
9458,
1137,
1046,
2932,
26093,
3676,
3113,
7154,
16,
404,
13,
1656,
22,
273,
9458,
1137,
1046,
2932,
... |
cattitle="%s:%s" % (site.category_namespace(), p) | cattitle = "%s:%s" % (site.category_namespace(), p) | def make_categories(page, list, site = None): if site is None: site = wikipedia.getSite() pllist=[] for p in list: cattitle="%s:%s" % (site.category_namespace(), p) pllist.append(wikipedia.Page(site,cattitle)) page.put(wikipedia.replaceCategoryLinks(page.get(), pllist), comment = wikipedia.translate(site.lang, msg)) | 188da8c210889294c76ba2dce6fd22781cf41ee3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/188da8c210889294c76ba2dce6fd22781cf41ee3/catall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8995,
12,
2433,
16,
666,
16,
2834,
273,
599,
4672,
309,
2834,
353,
599,
30,
2834,
273,
21137,
18,
588,
4956,
1435,
886,
1098,
33,
8526,
364,
293,
316,
666,
30,
6573,
2649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8995,
12,
2433,
16,
666,
16,
2834,
273,
599,
4672,
309,
2834,
353,
599,
30,
2834,
273,
21137,
18,
588,
4956,
1435,
886,
1098,
33,
8526,
364,
293,
316,
666,
30,
6573,
2649,
... |
return -1 self.handle_data("&") i = self.updatepos(i, i + 1) | break elif (i + 1) < n: self.handle_data("&") i = self.updatepos(i, i + 1) else: break | def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: match = self.interesting.search(rawdata, i) # < or & if match: j = match.start() else: j = n if i < j: self.handle_data(rawdata[i:j]) i = self.updatepos(i, j) if i == n: break if rawdata[i] == '<': if starttagopen.match(rawdata, i): # < ... | e1f1b158a9a19e3889890db85d5e537716820815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e1f1b158a9a19e3889890db85d5e537716820815/HTMLParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
845,
273,
365,
18,
2761,
10100,
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,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
845,
273,
365,
18,
2761,
10100,
18... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.