rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if not res: | if res is None: | def parse_comment(self, i): rawdata = self.rawdata if rawdata[i:i+4] <> '<!--': raise RuntimeError, 'unexpected call to handle_comment' res = commentclose.search(rawdata, i+4) if not res: return -1 if doubledash.search(rawdata, i+4, res.start(0)): self.syntax_error("`--' inside comment") if rawdata[res.start(0)-1] == '... | 6ab07a6994f604145de2212d52c2267c7ebfeb5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6ab07a6994f604145de2212d52c2267c7ebfeb5c/xmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3469,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
309,
1831,
892,
63,
77,
30,
77,
15,
24,
65,
2813,
2368,
22772,
4278,
1002,
7265,
16,
296,
21248,
745,
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,
1109,
67,
3469,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
309,
1831,
892,
63,
77,
30,
77,
15,
24,
65,
2813,
2368,
22772,
4278,
1002,
7265,
16,
296,
21248,
745,
358... |
client=memcache.Client(connargs, False) | client=memcache.Client(servers, False) | def _get_memcache_client(): global _clients servers=C.memcacheCacheBackend if not servers: return None try: return _clients[servers] except KeyError: client=memcache.Client(connargs, False) _clients[servers]=client return client | 81b326cf02a910047bcaaa947639d5c96c303c4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2304/81b326cf02a910047bcaaa947639d5c96c303c4b/aememcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3917,
2493,
67,
2625,
13332,
2552,
389,
16931,
7084,
33,
39,
18,
3917,
2493,
1649,
7172,
309,
486,
7084,
30,
327,
599,
775,
30,
327,
389,
16931,
63,
14247,
65,
1335,
4999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3917,
2493,
67,
2625,
13332,
2552,
389,
16931,
7084,
33,
39,
18,
3917,
2493,
1649,
7172,
309,
486,
7084,
30,
327,
599,
775,
30,
327,
389,
16931,
63,
14247,
65,
1335,
4999... |
{'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr... | {'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr... | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | 36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
self.file.write(line) | self.__write(line) | def read_lines_to_eof(self): """Internal: read lines until EOF.""" while 1: line = self.fp.readline() if not line: self.done = -1 break self.file.write(line) | 52b8c29ca7172b4a6821e3e34b293562f3ae9a3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/52b8c29ca7172b4a6821e3e34b293562f3ae9a3f/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3548,
67,
869,
67,
9339,
12,
2890,
4672,
3536,
3061,
30,
855,
2362,
3180,
6431,
12123,
1323,
404,
30,
980,
273,
365,
18,
7944,
18,
896,
1369,
1435,
309,
486,
980,
30,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3548,
67,
869,
67,
9339,
12,
2890,
4672,
3536,
3061,
30,
855,
2362,
3180,
6431,
12123,
1323,
404,
30,
980,
273,
365,
18,
7944,
18,
896,
1369,
1435,
309,
486,
980,
30,
365,
1... |
f = open(path, "rb") | f = open(file_path, "rb") | def FileHandler(self): """This handler sends the contents of the requested file. Wow, it's like a real webserver!""" | b0dcb9339511b02acbe62c17070415faf1baa7dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/b0dcb9339511b02acbe62c17070415faf1baa7dd/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
1503,
12,
2890,
4672,
3536,
2503,
1838,
9573,
326,
2939,
434,
326,
3764,
585,
18,
225,
678,
543,
16,
518,
1807,
3007,
279,
2863,
732,
2266,
502,
5,
8395,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1387,
1503,
12,
2890,
4672,
3536,
2503,
1838,
9573,
326,
2939,
434,
326,
3764,
585,
18,
225,
678,
543,
16,
518,
1807,
3007,
279,
2863,
732,
2266,
502,
5,
8395,
2,
-100,
-100,
-100,
-10... |
tmp = "/tmp" for file in os.listdir(tmp): try: if file.startswith("Flash"): filepath = os.path.join(tmp, file) | for filepath in commands.getoutput("pgrep -f flashplayer | xargs -I PID find /proc/PID/fd -lname '/tmp/Flash*'").split("\n"): if filepath != "": try: | def _check_for_Flash(self): try: tmp = "/tmp" ## look for filenames that begin with 'Flash' for file in os.listdir(tmp): try: if file.startswith("Flash"): filepath = os.path.join(tmp, file) duration = utils.getFLVLength(filepath) | a84893f830ac0afc45ec7b6a342c7e128c06e74d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1563/a84893f830ac0afc45ec7b6a342c7e128c06e74d/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
775,
30,
1853,
273,
2206,
5645,
6,
7541,
2324,
364,
9066,
716,
2376,
598,
296,
11353,
11,
364,
585,
316,
1140,
18,
1098,
1214,
12,
5645,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
775,
30,
1853,
273,
2206,
5645,
6,
7541,
2324,
364,
9066,
716,
2376,
598,
296,
11353,
11,
364,
585,
316,
1140,
18,
1098,
1214,
12,
5645,... |
gLogger.debug("SRM2Storage.exists: Path exists: %s" % pathSURL) | gLogger.debug( "SRM2Storage.exists: Path exists: %s" % pathSURL ) | def exists(self,path): """ Check if the given path exists. """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
12,
2890,
16,
803,
4672,
3536,
2073,
309,
326,
864,
589,
1704,
18,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
6903,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
12,
2890,
16,
803,
4672,
3536,
2073,
309,
326,
864,
589,
1704,
18,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
6903,
... |
return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---') | queries = { 'Easy bugs': 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---', } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): # Get all bugs that contain any of the keywords 'gnome-love' # or 'documentation' return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---') # FIXME: Query with documentatio... | e18f8d0790dd7a4976e34fcd84482d92c3f9b23f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/e18f8d0790dd7a4976e34fcd84482d92c3f9b23f/bugzilla_instances.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
2902,
67,
925,
67,
3413,
12,
2890,
4672,
468,
968,
777,
22398,
716,
912,
1281,
434,
326,
7093,
296,
1600,
1742,
17,
383,
537,
11,
468,
578,
296,
26941,
11,
327,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
2902,
67,
925,
67,
3413,
12,
2890,
4672,
468,
968,
777,
22398,
716,
912,
1281,
434,
326,
7093,
296,
1600,
1742,
17,
383,
537,
11,
468,
578,
296,
26941,
11,
327,
31... |
'allowable_content_types' : None, | 'allowable_content_types' : ('text/plain',), | def getIndexable(self, instance): # XXX Naive implementation that loads all data contents into # memory. To have this not happening set your field to not # 'searchable' (the default) or define your own 'index_method' # property. transforms = getUtility(IPortalTransformsTool) f = self.get(instance) try: datastream = t... | 7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8088,
429,
12,
2890,
16,
791,
4672,
468,
11329,
16350,
688,
4471,
716,
6277,
777,
501,
2939,
1368,
468,
3778,
18,
225,
2974,
1240,
333,
486,
5865,
310,
444,
3433,
652,
358,
486,
468,
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,
8088,
429,
12,
2890,
16,
791,
4672,
468,
11329,
16350,
688,
4471,
716,
6277,
777,
501,
2939,
1368,
468,
3778,
18,
225,
2974,
1240,
333,
486,
5865,
310,
444,
3433,
652,
358,
486,
468,
2... |
if re.search('TITEL',line): | if line.find('TITEL') != -1: | def atom_types(self): """Method that returns list of atomtypes.""" file=open(self._file_,'r') lines=file.readlines() file.close() atomtypes=[] for line in lines: if re.search('TITEL',line): atomtypes.append(line.split()[3].split('_')[0].split('.')[0]) return atomtypes | 0ef92d0036640a01731a11fd224ec8bb5389da74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/0ef92d0036640a01731a11fd224ec8bb5389da74/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
67,
2352,
12,
2890,
4672,
3536,
1305,
716,
1135,
666,
434,
3179,
2352,
12123,
585,
33,
3190,
12,
2890,
6315,
768,
67,
11189,
86,
6134,
2362,
33,
768,
18,
896,
3548,
1435,
585,
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,
3179,
67,
2352,
12,
2890,
4672,
3536,
1305,
716,
1135,
666,
434,
3179,
2352,
12123,
585,
33,
3190,
12,
2890,
6315,
768,
67,
11189,
86,
6134,
2362,
33,
768,
18,
896,
3548,
1435,
585,
18... |
heights=heights).show(**kwds) | heights=heights, edge_style=edge_style).show(**kwds) | def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, loop_size=.1, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph. | b0885df6c3b16c8b472169635cb99aa46c52e043 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b0885df6c3b16c8b472169635cb99aa46c52e043/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
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,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... |
t = binascii.b2a_hex(s) u = binascii.a2b_hex(t) | t = binascii.b2a_hex(self.type2test(s)) u = binascii.a2b_hex(self.type2test(t)) | def test_hex(self): # test hexlification s = '{s\005\000\000\000worldi\002\000\000\000s\005\000\000\000helloi\001\000\000\0000' t = binascii.b2a_hex(s) u = binascii.a2b_hex(t) self.assertEqual(s, u) self.assertRaises(TypeError, binascii.a2b_hex, t[:-1]) self.assertRaises(TypeError, binascii.a2b_hex, t[:-1] + 'q') | 17a549a67eb93f5303f060fc8481745716520cf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/17a549a67eb93f5303f060fc8481745716520cf0/test_binascii.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7118,
12,
2890,
4672,
468,
1842,
3827,
80,
1480,
272,
273,
2292,
87,
64,
28564,
64,
3784,
64,
3784,
64,
3784,
18179,
77,
64,
24908,
64,
3784,
64,
3784,
64,
3784,
87,
64,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7118,
12,
2890,
4672,
468,
1842,
3827,
80,
1480,
272,
273,
2292,
87,
64,
28564,
64,
3784,
64,
3784,
64,
3784,
18179,
77,
64,
24908,
64,
3784,
64,
3784,
64,
3784,
87,
64,
28... |
"*/%s_RDS_*/%s/*.html"%(sngl.ifo,sngl.time)): if myFile.upper().__contains__("PEM"): indexDict[sngl.ifo].append(myFile) | "*/%s_RDS_*/%s/*html"%(sngl.ifo,sngl.time)): indexDict[sngl.ifo].append(myFile) | def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # # Check to see if wiki file with name already exists # maxCount=0 while os.pat... | b70b4fcde32aaece5660335ff3ea1009958cd810 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/b70b4fcde32aaece5660335ff3ea1009958cd810/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... |
err = self.add_location(rec['name'], rec['description'], rec['address'], rec.get('URL', ''), approved, parent_folder, geo_type, rec.get('latitude', ''), rec.get('longitude', '')) | err = self.add_location(self.utToUnicode(rec['name']), self.utToUnicode(rec['description']), rec['address'], rec.get('URL', ''), approved, parent_folder, geo_type, rec.get('latitude', ''), rec.get('longitude', '')) | def uploadLocations(self, file='', dialect='comma', encoding='utf-8', approved=0, parent_folder='', geo_type='', REQUEST=None): """ """ | 45cf5014bd0f0a617aa397f4d3554e87c3a97b62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/45cf5014bd0f0a617aa397f4d3554e87c3a97b62/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
10985,
12,
2890,
16,
585,
2218,
2187,
10864,
2218,
25034,
2187,
2688,
2218,
3158,
17,
28,
2187,
20412,
33,
20,
16,
982,
67,
5609,
2218,
2187,
7856,
67,
723,
2218,
2187,
12492,
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,
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,
3617,
10985,
12,
2890,
16,
585,
2218,
2187,
10864,
2218,
25034,
2187,
2688,
2218,
3158,
17,
28,
2187,
20412,
33,
20,
16,
982,
67,
5609,
2218,
2187,
7856,
67,
723,
2218,
2187,
12492,
33,
... |
createRsp = testmsg("0200002307") createRspObj = parser.parse(createRsp) assert(createRspObj.opcode == MCAP_MD_CREATE_MDL_RSP) assert(createRspObj.mdlid == 0x0023) assert(createRspObj.rspcode == MCAP_RSP_SUCCESS) assert(createRspObj.config == 0x07) | msg = testmsg("0200002307") msgObj = parser.parse(msg) assert(msgObj.opcode == MCAP_MD_CREATE_MDL_RSP) assert(msgObj.mdlid == 0x0023) assert(msgObj.rspcode == MCAP_RSP_SUCCESS) assert(msgObj.config == 0x07) assert(msgObj.encode() == msg) | def test(): createReq = CreateMDLRequest(0x01, 0x01, 0x0001) assert(createReq.mdlid == 0x01) assert(createReq.mdepid == 0x01) assert(createReq.opcode == MCAP_MD_CREATE_MDL_REQ) reconnectReq = ReconnectMDLRequest(0x01) assert(reconnectReq.mdlid == 0x01) assert(reconnectReq.opcode == MCAP_MD_RECONNECT_MDL_REQ) deleteRe... | 5ab73709fd24f71f38fc2ed06c5d1fbb3996f217 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/5ab73709fd24f71f38fc2ed06c5d1fbb3996f217/mcap_defs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
752,
6113,
273,
1788,
6188,
48,
691,
12,
20,
92,
1611,
16,
374,
92,
1611,
16,
374,
92,
13304,
13,
1815,
12,
2640,
6113,
18,
1264,
80,
350,
422,
374,
92,
1611,
13,
1815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
752,
6113,
273,
1788,
6188,
48,
691,
12,
20,
92,
1611,
16,
374,
92,
1611,
16,
374,
92,
13304,
13,
1815,
12,
2640,
6113,
18,
1264,
80,
350,
422,
374,
92,
1611,
13,
1815,
... |
schema_raw_data['title'] = schema_raw_data['title'].replace(self.id, id) | schema_raw_data['title'] = schema_raw_data.get('title', '').replace(self.id, id) | def process_add(self, REQUEST, **kwargs): """ """ schema_raw_data = dict(REQUEST.form) _lang = schema_raw_data.pop('_lang', schema_raw_data.pop('lang', None)) _releasedate = self.process_releasedate(schema_raw_data.pop('releasedate', ''), self.releasedate) | 39eb78c54193ed903a72ca1074605b1e609fc7c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/39eb78c54193ed903a72ca1074605b1e609fc7c2/document_item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1289,
12,
2890,
16,
12492,
16,
2826,
4333,
4672,
3536,
3536,
1963,
67,
1899,
67,
892,
273,
2065,
12,
5519,
18,
687,
13,
389,
4936,
273,
1963,
67,
1899,
67,
892,
18,
5120,
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,
1207,
67,
1289,
12,
2890,
16,
12492,
16,
2826,
4333,
4672,
3536,
3536,
1963,
67,
1899,
67,
892,
273,
2065,
12,
5519,
18,
687,
13,
389,
4936,
273,
1963,
67,
1899,
67,
892,
18,
5120,
2... |
systemConfig = 'ANY' | systemConfig = gConfig.getValue( '/LocalSite/Architecture', '' ) self.log.info('Setting system config to /LocalSite/Architecture = %s' %systemConfig) | def execute( self ): """The JobAgent execution method. """ jobManager = RPCClient( 'WorkloadManagement/JobManager' ) if self.jobCount: #Only call timeLeft utility after a job has been picked up self.log.info( 'Attempting to check CPU time left for filling mode' ) if self.fillingMode: if self.timeLeftError: self.log.war... | 8c300231f5f8b4aab3545a0da525098d46f45b0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/8c300231f5f8b4aab3545a0da525098d46f45b0e/JobAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
365,
262,
30,
3536,
1986,
3956,
3630,
4588,
707,
18,
3536,
1719,
1318,
273,
8295,
1227,
12,
296,
2421,
945,
10998,
19,
2278,
1318,
11,
262,
309,
365,
18,
4688,
1380,
30,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
365,
262,
30,
3536,
1986,
3956,
3630,
4588,
707,
18,
3536,
1719,
1318,
273,
8295,
1227,
12,
296,
2421,
945,
10998,
19,
2278,
1318,
11,
262,
309,
365,
18,
4688,
1380,
30,
468,... |
pageTxt = pageTxt.replace(ltxt, newTitle) pageTxt = pageTxt.replace(ltxt[0].lower() + ltxt[1:], newTitle[0].lower() + newTitle[1:]) pageTxt = pageTxt.replace(ltxt.replace(u' ', '_'), newTitle) | frmParts = self.wordBreaker.split(ltxt) toParts = self.wordBreaker.split(newTitle) if len(frmParts) != len(toParts): raise u'Splitting parts do not match counts' for i in range(0, len(frmParts)): if len(frmParts[i]) != len(toParts[i]): raise u'Splitting parts do not match word length' if len(frmParts[i]) > 0: pageT... | def Run(self): try: count = 0 for namespace in self.namespaces: self.params['apnamespace'] = namespace self.apfrom = self.apfrom title = None while True: # Get data self.params['apfrom'] = self.apfrom data = query.GetData(self.site.lang, self.params, self.verbose) try: self.apfrom = data['query']['allpages']['next'] e... | d7ae8d783a650481e56e5f8027b09cf5b7a199dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d7ae8d783a650481e56e5f8027b09cf5b7a199dc/casechecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
365,
18,
438,
2080,
273,
365,
18,
438,
2080,
2077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
365,
18,
438,
2080,
273,
365,
18,
438,
2080,
2077,
... |
recent_log = time.strftime('%Y-%m-%d %H%M%S.log') | recent_log = time.strftime('%Y-%m-%d.%H%M%S.log') | def log_file(network, name, new=False): network_dir = os.path.join(LOG_DIR, network.name) if not os.access(network_dir, os.F_OK): os.mkdir(network_dir) name_dir = os.path.join(LOG_DIR, network.name, name) if not os.access(name_dir, os.F_OK): os.mkdir(name_dir) if new: recent_log = time.strftime('%Y-%m-%d.%H%M%S.log')... | 4acd3bc2cb4633d1b9d7992b523ded54c3db1471 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/4acd3bc2cb4633d1b9d7992b523ded54c3db1471/ulogging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
768,
12,
5185,
16,
508,
16,
394,
33,
8381,
4672,
2483,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
4842,
67,
4537,
16,
2483,
18,
529,
13,
309,
486,
1140,
18,
3860,
12,
518... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
768,
12,
5185,
16,
508,
16,
394,
33,
8381,
4672,
2483,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
4842,
67,
4537,
16,
2483,
18,
529,
13,
309,
486,
1140,
18,
3860,
12,
518... |
return space.call(space.getattr(self.w_dir, w('read')), space.newlist([w(filename)])) | return space.call_function(space.getattr(self.w_dir, w('read')), w(filename)) | def get_data(self, space, filename): if ZIPSEP != os.path.sep: filename = filename.replace(os.path.sep, ZIPSEP) w = space.wrap try: return space.call(space.getattr(self.w_dir, w('read')), space.newlist([w(filename)])) except OperationError, e: raise OperationError(space.w_IOError, e.w_value) | 3d02697f6774715af3319534d9fc6e5efda61441 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/3d02697f6774715af3319534d9fc6e5efda61441/interp_zipimport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
16,
3476,
16,
1544,
4672,
309,
18277,
28610,
480,
1140,
18,
803,
18,
10814,
30,
1544,
273,
1544,
18,
2079,
12,
538,
18,
803,
18,
10814,
16,
18277,
28610,
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,
67,
892,
12,
2890,
16,
3476,
16,
1544,
4672,
309,
18277,
28610,
480,
1140,
18,
803,
18,
10814,
30,
1544,
273,
1544,
18,
2079,
12,
538,
18,
803,
18,
10814,
16,
18277,
28610,
13,
... |
print "db lib: using", db_ver, dblib if db_setup_debug: print "db: lib dir", dblib_dir, "inc dir", db_incdir | if db_setup_debug: print "db lib: using", db_ver, dblib print "db: lib dir", dblib_dir, "inc dir", db_incdir | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 87949ecca00b63f3383a2037a83e9f865ca5b733 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/87949ecca00b63f3383a2037a83e9f865ca5b733/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
def _debug(self, args): if tsumufs.debugMode: s = "fusefile <%s>: %s" % (self._path, args) if len(s) > 252: s = s[:252] + "..." syslog.syslog(s) | def _flags2mode(self, flags): """ Borrowed directly from fuse-python's xmp.py script. Credits go to Jeff Epler and Csaba Henk. | 7d79afc546399aefea407102ceb76fb893da65b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/7d79afc546399aefea407102ceb76fb893da65b3/fusefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7133,
22,
3188,
12,
2890,
16,
2943,
4672,
3536,
605,
15318,
329,
5122,
628,
19552,
17,
8103,
1807,
619,
1291,
18,
2074,
2728,
18,
385,
1118,
1282,
1960,
358,
804,
17098,
512,
20728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7133,
22,
3188,
12,
2890,
16,
2943,
4672,
3536,
605,
15318,
329,
5122,
628,
19552,
17,
8103,
1807,
619,
1291,
18,
2074,
2728,
18,
385,
1118,
1282,
1960,
358,
804,
17098,
512,
20728,... | |
def GetConfigInfo(self): info = {} | def GetConfigInfo(self, category, subcat=None): | def GetConfigInfo(self): info = {} for gui in self._gui: if hasattr(gui, 'GetConfigCategory') and \ hasattr(gui, 'GetConfigInfo'): key = gui.GetConfigCategory()[0] value = gui.GetConfigInfo(self) info[key] = value return info | aec38fef609e79c2b930b06a178523c1ab1dc04c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/aec38fef609e79c2b930b06a178523c1ab1dc04c/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26666,
966,
12,
2890,
16,
3150,
16,
720,
2574,
33,
7036,
4672,
364,
13238,
316,
365,
6315,
20292,
30,
309,
3859,
12,
20292,
16,
296,
967,
809,
4457,
6134,
471,
521,
3859,
12,
20292,
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,
26666,
966,
12,
2890,
16,
3150,
16,
720,
2574,
33,
7036,
4672,
364,
13238,
316,
365,
6315,
20292,
30,
309,
3859,
12,
20292,
16,
296,
967,
809,
4457,
6134,
471,
521,
3859,
12,
20292,
16... |
System.setOut(PrintStream(self._capt_java_out)) System.setErr(PrintStream(self._capt_java_err)) | System.setOut(PrintStream(self._capt_java_out, False, 'UTF-8')) System.setErr(PrintStream(self._capt_java_err, False, 'UTF-8')) | def _capture_output(self): sys.stdout = _PythonOutput() sys.stderr = _PythonOutput() if os.name == 'java': self._orig_java_out = System.out self._orig_java_err = System.err self._capt_java_out = _JavaOutput() self._capt_java_err = _JavaOutput() System.setOut(PrintStream(self._capt_java_out)) System.setErr(PrintStream(s... | 1a7e8ea75a1e3b813397c230d0db68d30370f008 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/1a7e8ea75a1e3b813397c230d0db68d30370f008/outputcapture.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19250,
67,
2844,
12,
2890,
4672,
2589,
18,
10283,
273,
389,
15774,
1447,
1435,
2589,
18,
11241,
273,
389,
15774,
1447,
1435,
309,
1140,
18,
529,
422,
296,
6290,
4278,
365,
6315,
494... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19250,
67,
2844,
12,
2890,
4672,
2589,
18,
10283,
273,
389,
15774,
1447,
1435,
2589,
18,
11241,
273,
389,
15774,
1447,
1435,
309,
1140,
18,
529,
422,
296,
6290,
4278,
365,
6315,
494... |
def pageText(url): try: request = urllib2.Request(url) user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' request.add_header("User-Agent", user_agent) response = urllib2.urlopen(request) text = response.read() response.close() except urllib2.HTTPError: wikipedia.out... | def badword_function(raw): list_loaded = list() pos = 0 load_2 = True # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure) while load_2 == True: regl = "(\"|\')(.*?)(\"|\')(, |\))" pl = re.compile(regl, re.UNICODE) xl = pl.search(raw, pos) if xl == Non... | e84f02593b3eb100ad10b8fa43c2d6d5085e2faa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/e84f02593b3eb100ad10b8fa43c2d6d5085e2faa/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
1095,
67,
915,
12,
1899,
4672,
666,
67,
4230,
273,
666,
1435,
949,
273,
374,
1262,
67,
22,
273,
1053,
468,
467,
1623,
598,
279,
3936,
3661,
4906,
729,
1240,
486,
326,
26591,
1363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
1095,
67,
915,
12,
1899,
4672,
666,
67,
4230,
273,
666,
1435,
949,
273,
374,
1262,
67,
22,
273,
1053,
468,
467,
1623,
598,
279,
3936,
3661,
4906,
729,
1240,
486,
326,
26591,
1363... | |
self.assertEqual([deque([self.deps_c['0002_c']]), deque([self.deps_c['0003_c']]), deque([self.deps_c['0004_c']]), deque([self.deps_c['0005_c']]), deque([])], | self.assertEqual([set([self.deps_c['0002_c']]), set([self.deps_c['0003_c']]), set([self.deps_c['0004_c']]), set([self.deps_c['0005_c']]), set([])], | def test_dependents(self): self.assertEqual([deque([self.deps_a['0002_a']]), deque([self.deps_c['0005_c'], self.deps_b['0002_b'], self.deps_a['0003_a']]), deque([self.deps_b['0003_b'], self.deps_a['0004_a']]), deque([self.deps_a['0005_a']]), deque([])], [m.dependents for m in self.deps_a]) self.assertEqual([deque([self... | 0c0f340bc8be175e12f8ac3631b51f8ab31c3f45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/0c0f340bc8be175e12f8ac3631b51f8ab31c3f45/logic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5817,
4877,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
323,
1857,
3816,
2890,
18,
14877,
67,
69,
3292,
17954,
67,
69,
3546,
65,
3631,
21147,
3816,
2890,
18,
14877,
67,
71,
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,
1842,
67,
5817,
4877,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
323,
1857,
3816,
2890,
18,
14877,
67,
69,
3292,
17954,
67,
69,
3546,
65,
3631,
21147,
3816,
2890,
18,
14877,
67,
71,
3... |
if window[-1]=='A': | if window.endswith('A'): | def lcc_mult(seq,wsize,start,end): """Return a list called lccsal, the LCC, a complexity measure | 3d45bf521c4adc9e7c82272c7e26271842ba064f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/3d45bf521c4adc9e7c82272c7e26271842ba064f/lcc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
952,
67,
5421,
12,
5436,
16,
91,
1467,
16,
1937,
16,
409,
4672,
3536,
990,
279,
666,
2566,
328,
952,
21982,
16,
326,
511,
6743,
16,
279,
21610,
6649,
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,
328,
952,
67,
5421,
12,
5436,
16,
91,
1467,
16,
1937,
16,
409,
4672,
3536,
990,
279,
666,
2566,
328,
952,
21982,
16,
326,
511,
6743,
16,
279,
21610,
6649,
2,
-100,
-100,
-100,
-100,
... |
r = self.execute_operation(rop.OOIS, [u1_box, u1_box], 'int') assert r.value == 1 r = self.execute_operation(rop.OOISNOT, [u2_box, u2_box], 'int') | r = self.execute_operation(rop.OOIS, [u1_box, u1_box.clonebox()], 'int') assert r.value == 1 r = self.execute_operation(rop.OOISNOT, [u2_box, u2_box.clonebox()], 'int') | def test_ooops(self): u1_box, U_box = self.alloc_instance(self.U) u2_box, U_box = self.alloc_instance(self.U) r = self.execute_operation(rop.OOIS, [u1_box, u1_box], 'int') assert r.value == 1 r = self.execute_operation(rop.OOISNOT, [u2_box, u2_box], 'int') assert r.value == 0 r = self.execute_operation(rop.OOIS, [u1_bo... | 4fadf64b29ac40fd74c2c7a4371c4679e689355b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/4fadf64b29ac40fd74c2c7a4371c4679e689355b/runner_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5161,
4473,
12,
2890,
4672,
582,
21,
67,
2147,
16,
587,
67,
2147,
273,
365,
18,
9853,
67,
1336,
12,
2890,
18,
57,
13,
582,
22,
67,
2147,
16,
587,
67,
2147,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5161,
4473,
12,
2890,
4672,
582,
21,
67,
2147,
16,
587,
67,
2147,
273,
365,
18,
9853,
67,
1336,
12,
2890,
18,
57,
13,
582,
22,
67,
2147,
16,
587,
67,
2147,
273,
365,
18,
... |
try: body = [output, extra] except NameError: body = [output] | body = [output] | def perform_modifypreferences(req, userID, login_method='', callback='yes', confirm=0): """modify email and password of an account""" (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) subtitle = """<a name="4"></a>4. Modify preferences.   <small>[<a t... | 8e6aa1042563d2e1f44b1ffbe6e50d6cd67dbacc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1931/8e6aa1042563d2e1f44b1ffbe6e50d6cd67dbacc/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1711,
430,
879,
14353,
12,
3658,
16,
16299,
16,
3925,
67,
2039,
2218,
2187,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
17042,
2699,
471,
2201,
434,
392,
2236,
8395,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1711,
430,
879,
14353,
12,
3658,
16,
16299,
16,
3925,
67,
2039,
2218,
2187,
1348,
2218,
9707,
2187,
6932,
33,
20,
4672,
3536,
17042,
2699,
471,
2201,
434,
392,
2236,
8395,
225,... |
return max( (g.longest_path(s = s, t = t, weighted = weighted, algorithm = algorithm) for g in self.connected_components_subgraphs() ), key = lambda x : x.order() ) | return max((g.longest_path(s=s, t=t, weighted=weighted, algorithm=algorithm) for g in self.connected_components_subgraphs()), key=lambda x: x.order()) | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | 851087dd5fd3776eb2db10b18fb5402a16a5dd17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/851087dd5fd3776eb2db10b18fb5402a16a5dd17/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
block1 = link.target | if not block1.exits: break | def visit(link): if isinstance(link, Link): while not link.target.operations: if (len(link.target.exits) != 1 and link.target.exitswitch != c_last_exception): break block1 = link.target exit = block1.exits[0] assert block1 is not exit.target, ( "the graph contains an empty infinite loop") outputargs = [] for v in exit.... | d68330e8b4d6c2754986016c7c2195e2b800a3dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d68330e8b4d6c2754986016c7c2195e2b800a3dd/simplify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
12,
1232,
4672,
309,
1549,
12,
1232,
16,
4048,
4672,
1323,
486,
1692,
18,
3299,
18,
17542,
30,
309,
261,
1897,
12,
1232,
18,
3299,
18,
338,
1282,
13,
480,
404,
471,
1692,
18,
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,
3757,
12,
1232,
4672,
309,
1549,
12,
1232,
16,
4048,
4672,
1323,
486,
1692,
18,
3299,
18,
17542,
30,
309,
261,
1897,
12,
1232,
18,
3299,
18,
338,
1282,
13,
480,
404,
471,
1692,
18,
3... |
CONFIG_DESCRIPTIONS[lastOption] = (lastArg, strippedDescription) | CONFIG_DESCRIPTIONS[lastOption.lower()] = (lastArg, strippedDescription) | def loadOptionDescriptions(loadPath = None): """ Fetches and parses descriptions for tor's configuration options from its man page. This can be a somewhat lengthy call, and raises an IOError if issues occure. If available, this can load the configuration descriptions from a file where they were previously persisted to... | 7440b5490feffac41d851dc9f97491f4fc5563ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13459/7440b5490feffac41d851dc9f97491f4fc5563ff/torConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1895,
16844,
12,
945,
743,
273,
599,
4672,
3536,
8065,
281,
471,
8940,
15550,
364,
8934,
1807,
1664,
702,
628,
2097,
3161,
1363,
18,
1220,
848,
506,
279,
18016,
11304,
769,
93,
745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1895,
16844,
12,
945,
743,
273,
599,
4672,
3536,
8065,
281,
471,
8940,
15550,
364,
8934,
1807,
1664,
702,
628,
2097,
3161,
1363,
18,
1220,
848,
506,
279,
18016,
11304,
769,
93,
745... |
if self.sink: | if self.sink and hasattr(self.sink, "expose"): | def onExpose(self, widget, event): confirmMainThread() if self.sink: self.sink.expose() else: widget.window.draw_rectangle(self.gc, True, 0, 0, widget.allocation.width, widget.allocation.height) return True | e93c006a777cb64354a30ca504bd5f00fdf8424e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/e93c006a777cb64354a30ca504bd5f00fdf8424e/gstreamerrenderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
424,
4150,
12,
2890,
16,
3604,
16,
871,
4672,
6932,
6376,
3830,
1435,
309,
365,
18,
17074,
471,
3859,
12,
2890,
18,
17074,
16,
315,
338,
4150,
6,
4672,
365,
18,
17074,
18,
338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
424,
4150,
12,
2890,
16,
3604,
16,
871,
4672,
6932,
6376,
3830,
1435,
309,
365,
18,
17074,
471,
3859,
12,
2890,
18,
17074,
16,
315,
338,
4150,
6,
4672,
365,
18,
17074,
18,
338,
... |
self._branch_button.hide() | def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """ | 98409d064cdfec158820194ae897a365db78af1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/98409d064cdfec158820194ae897a365db78af1a/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11037,
12,
2890,
16,
770,
4672,
3536,
12949,
309,
783,
8077,
18107,
903,
506,
3260,
635,
326,
3352,
1807,
8077,
18107,
1438,
3536,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11037,
12,
2890,
16,
770,
4672,
3536,
12949,
309,
783,
8077,
18107,
903,
506,
3260,
635,
326,
3352,
1807,
8077,
18107,
1438,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if '__main__' == __name__: option_parser = optparse.OptionParser() option_parser.add_option('--server', type='choice', choices=['start', 'stop'], default='start', help='Server action (start|stop)') option_parser.add_option('-p', '--port', dest='port', default=None, help='Port to listen on') option_parser.add_option... | def stop(self, force=False): if not force and not self.is_running(): return | 558eb3f4446ba3ee8c640986dddc1e6c14958900 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/558eb3f4446ba3ee8c640986dddc1e6c14958900/websocket_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
16,
2944,
33,
8381,
4672,
309,
486,
2944,
471,
486,
365,
18,
291,
67,
8704,
13332,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
12,
2890,
16,
2944,
33,
8381,
4672,
309,
486,
2944,
471,
486,
365,
18,
291,
67,
8704,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
print 'HTTPS server started on port %d...' % port | print 'HTTPS server started on port %d...' % server.server_port | def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): pr... | fd6cfaf721f4da81f4fb19983b73f96c1005f0d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/fd6cfaf721f4da81f4fb19983b73f96c1005f0d8/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... |
mtype = h5t.create(h5t.COMPOUND) | subtypes = {} for idx in range(htype.get_nmembers()): subtypes[htype.get_member_name(idx)] = htype.get_member_type(idx) for name in names: if name not in subtypes: raise ValueError("Field %s does not appear in this type." % name) insertlist = [(name, subtypes[name].get_size()) for name in names] totalsize = sum([x[1... | def __getitem__(self, args): """ Read a slice from the underlying HDF5 array. Takes slices and recarray-style field names (more than one is allowed!) in any order. Examples: | 083acd94cf4f30f16e99cf8a5b9440590dcb72aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10380/083acd94cf4f30f16e99cf8a5b9440590dcb72aa/highlevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
833,
4672,
3536,
2720,
279,
2788,
628,
326,
6808,
21673,
25,
526,
18,
225,
23004,
12390,
471,
1950,
1126,
17,
4060,
652,
1257,
261,
10161,
2353,
1245,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
4672,
3536,
2720,
279,
2788,
628,
326,
6808,
21673,
25,
526,
18,
225,
23004,
12390,
471,
1950,
1126,
17,
4060,
652,
1257,
261,
10161,
2353,
1245,
353... |
line(out, indent, 'if (PyObject_TypeCheck(arg, &FinalizerProxyType) &&') | line(out, indent, 'if (PyObject_TypeCheck(arg, &FinalizerProxy$$Type) &&') | def call(out, indent, cls, inCase, method, names, cardinality, isExtension): if inCase: line(out, indent, '{') indent += 1 name = method.getName() modifiers = method.getModifiers() params = method.getParameterTypes() returnType = method.getReturnType() count = len(params) for i in xrange(count): line(out, indent, '%... | bd30bad5d125561664588e92bf20684eef823d24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4005/bd30bad5d125561664588e92bf20684eef823d24/python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
659,
16,
3504,
16,
2028,
16,
316,
2449,
16,
707,
16,
1257,
16,
14379,
16,
353,
3625,
4672,
225,
309,
316,
2449,
30,
980,
12,
659,
16,
3504,
16,
2292,
6134,
3504,
1011,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
659,
16,
3504,
16,
2028,
16,
316,
2449,
16,
707,
16,
1257,
16,
14379,
16,
353,
3625,
4672,
225,
309,
316,
2449,
30,
980,
12,
659,
16,
3504,
16,
2292,
6134,
3504,
1011,
404,
... |
self.link_shared_object (objects, "lib%s%s" % (output_libname, SO)) | self.link_shared_object (objects, "lib%s%s" % \ (output_libname, self._shared_lib_ext), build_info=build_info) | def link_shared_lib (self, objects, output_libname, libraries=None, library_dirs=None): # XXX should we sanity check the library name? (eg. no # slashes) self.link_shared_object (objects, "lib%s%s" % (output_libname, SO)) | 8c4f097a5c637a4673608d1db14fe675c1b4ea3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8c4f097a5c637a4673608d1db14fe675c1b4ea3b/unixccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
2941,
261,
2890,
16,
2184,
16,
876,
67,
2941,
529,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
4672,
468,
11329,
1410,
732,
16267,
866,
326,
5313,
508,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
2941,
261,
2890,
16,
2184,
16,
876,
67,
2941,
529,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
4672,
468,
11329,
1410,
732,
16267,
866,
326,
5313,
508,
35,
... |
objectDict['vtkActor'].GetMatrix()) for prop in (objectDict['vtkActor'], objectDict['axisActor']): | theProp.GetMatrix()) for prop in (theProp, objectDict['axisLineActor']): | def _axisToSlice(self, tdObject, sliceDirection): """If tdObject has an axis, make the axis lie in the plane defined by sliceDirection. """ | fc0788b84d2d17e23cfbf2eba51bf9dd35371f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/fc0788b84d2d17e23cfbf2eba51bf9dd35371f2d/tdObjects.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4890,
774,
5959,
12,
2890,
16,
6655,
921,
16,
2788,
8212,
4672,
3536,
2047,
6655,
921,
711,
392,
2654,
16,
1221,
326,
2654,
328,
1385,
316,
326,
11017,
2553,
635,
2788,
8212,
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,
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,
4890,
774,
5959,
12,
2890,
16,
6655,
921,
16,
2788,
8212,
4672,
3536,
2047,
6655,
921,
711,
392,
2654,
16,
1221,
326,
2654,
328,
1385,
316,
326,
11017,
2553,
635,
2788,
8212,
18,
... |
if unblock[0] != None: if self.same_source(unblock[0], source_u[VERSION]): | if unblock[0] != None and self.same_source(unblock[0], source_u[VERSION]): | def should_upgrade_src(self, src, suite): """Check if source package should be upgraded | 20621c1a27f8a4f6da24233ea559a07cf583e4db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2784/20621c1a27f8a4f6da24233ea559a07cf583e4db/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
15097,
67,
4816,
12,
2890,
16,
1705,
16,
11371,
4672,
3536,
1564,
309,
1084,
2181,
1410,
506,
31049,
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,
1410,
67,
15097,
67,
4816,
12,
2890,
16,
1705,
16,
11371,
4672,
3536,
1564,
309,
1084,
2181,
1410,
506,
31049,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
debug("NEWargv: %s" % argv) | def process(userData, kind_id, argv): """ Execute system call then updates the database consequently. exit_code != 0 means problem. """ user_id = userData['UserID'] kind = userData['Kind'] # Log file to store storeLog = '_condor_stderr' success = 0 db = DB(host = DATABASE_HOST, user = DATABASE_USER, passwd = DATABASE... | 4386b3fce41e4f947242a074665b6ad7374046ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/4386b3fce41e4f947242a074665b6ad7374046ae/wrapper_processing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
1355,
751,
16,
3846,
67,
350,
16,
5261,
4672,
3536,
7903,
2619,
745,
1508,
4533,
326,
2063,
356,
9116,
715,
18,
2427,
67,
710,
480,
374,
4696,
6199,
18,
3536,
225,
729,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
1355,
751,
16,
3846,
67,
350,
16,
5261,
4672,
3536,
7903,
2619,
745,
1508,
4533,
326,
2063,
356,
9116,
715,
18,
2427,
67,
710,
480,
374,
4696,
6199,
18,
3536,
225,
729,
67,
... | |
actiongroup.add_radio_actions([ | self._actiongroup.add_radio_actions([ | def __init__(self, window): gtk.UIManager.__init__(self) self._window = window | e6a2bb0f854d131baa7feea110f314792ba32c5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14624/e6a2bb0f854d131baa7feea110f314792ba32c5b/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2742,
4672,
22718,
18,
5370,
1318,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
5668,
273,
2742,
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,
1001,
2738,
972,
12,
2890,
16,
2742,
4672,
22718,
18,
5370,
1318,
16186,
2738,
972,
12,
2890,
13,
365,
6315,
5668,
273,
2742,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def create(self, key, directory): | def create(self, key, directory, content=None): | def create(self, key, directory): '''Create a message object from a filename in a directory''' return IMAPFileMessage(key, directory) | c4d7670dff445a1db6fa6542323dae6b3cdc7cdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/c4d7670dff445a1db6fa6542323dae6b3cdc7cdc/sb_pop3dnd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
498,
16,
1867,
16,
913,
33,
7036,
4672,
9163,
1684,
279,
883,
733,
628,
279,
1544,
316,
279,
1867,
26418,
327,
6246,
2203,
812,
1079,
12,
856,
16,
1867,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
498,
16,
1867,
16,
913,
33,
7036,
4672,
9163,
1684,
279,
883,
733,
628,
279,
1544,
316,
279,
1867,
26418,
327,
6246,
2203,
812,
1079,
12,
856,
16,
1867,
13,
2,
-10... |
lowerpart = part.lower() matches = [x for x in set(list) if x.lower().startswith(lowerpart) and len(x) >= len(part)] | matches = GetCompletions(part, list) | def GetCompletion(part, list): lowerpart = part.lower() matches = [x for x in set(list) if x.lower().startswith(lowerpart) and len(x) >= len(part)] if len(matches) == 0: return None, 0 if len(matches) == 1: return matches[0], 1 else: return commonprefix([x.lower() for x in matches]), 0 | 76412353c4971a724d0da8e618e53541118ef1fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8738/76412353c4971a724d0da8e618e53541118ef1fc/chatrooms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
11238,
12,
2680,
16,
666,
4672,
1885,
273,
968,
6297,
1115,
12,
2680,
16,
666,
13,
309,
562,
12,
8436,
13,
422,
374,
30,
327,
599,
16,
374,
309,
562,
12,
8436,
13,
422,
404,
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,
968,
11238,
12,
2680,
16,
666,
4672,
1885,
273,
968,
6297,
1115,
12,
2680,
16,
666,
13,
309,
562,
12,
8436,
13,
422,
374,
30,
327,
599,
16,
374,
309,
562,
12,
8436,
13,
422,
404,
3... |
\\end_document\n""") | \\end_document """ args = {} args["usage"] = "Usage: csv2lyx [options] csvfile [file.lyx]" args["description"] = """This script creates a LyX document containing a table created from a comma-separated-value (CSV) file. The resulting LyX file can be opened with LyX 1.5.0 or any later version. If no options are given... | def error(message): sys.stderr.write(message + '\n') sys.exit(1) | b1faf5366959793a748c24bb8cde052d8931dc1a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/b1faf5366959793a748c24bb8cde052d8931dc1a/csv2lyx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
12,
2150,
4672,
2589,
18,
11241,
18,
2626,
12,
2150,
397,
2337,
82,
6134,
2589,
18,
8593,
12,
21,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
555,
12,
2150,
4672,
2589,
18,
11241,
18,
2626,
12,
2150,
397,
2337,
82,
6134,
2589,
18,
8593,
12,
21,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
try: Util().check_prerequisite_command('losetup') except NotFoundError: sys.exit(1) | Util().check_prerequisite_command('losetup') | def create_loopback(self, image_path): | be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6498,
823,
12,
2890,
16,
1316,
67,
803,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6498,
823,
12,
2890,
16,
1316,
67,
803,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Update handle positions | Update handle positions and also update the resize handle radii and their 'stopper' lengths. @see: self._update_resizeHandle_radius() @see: self._update_resizeHandle_stopper_length() | def updateHandlePositions(self): """ Update handle positions """ | b6328deff5eae78e09a343d950096c6bc9067a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b6328deff5eae78e09a343d950096c6bc9067a14/DnaSegment_EditCommand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3259,
11024,
12,
2890,
4672,
3536,
2315,
1640,
6865,
471,
2546,
1089,
326,
7041,
1640,
28125,
471,
3675,
296,
5681,
457,
11,
10917,
18,
632,
5946,
30,
365,
6315,
2725,
67,
15169,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3259,
11024,
12,
2890,
4672,
3536,
2315,
1640,
6865,
471,
2546,
1089,
326,
7041,
1640,
28125,
471,
3675,
296,
5681,
457,
11,
10917,
18,
632,
5946,
30,
365,
6315,
2725,
67,
15169,
3... |
verticalalignment='bottom', horizontalalignment='center', size = pixelToPoint(plot_title_size,dpi), family=prefs['font_family'], fontname=prefs['font'] | verticalalignment = 'bottom', horizontalalignment = 'center', size = pixelToPoint( plot_title_size, dpi ), family = prefs['font_family'], fontname = prefs['font'] | def draw(self): prefs = self.prefs dpi = self.ax_contain.figure.get_dpi() # Update palette palette = prefs.get('colors',{}) if palette: self.palette.addPalette(palette) xlabel = prefs.get('xlabel','') ylabel = prefs.get('ylabel','') xticks_flag = prefs.get('xticks',True) yticks_flag = prefs.get('yticks',True) text... | 34ec1e9add6e7beaae414fa998b4771d25b40ccb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/34ec1e9add6e7beaae414fa998b4771d25b40ccb/PlotBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
225,
15503,
273,
365,
18,
1484,
2556,
16361,
273,
365,
18,
651,
67,
28744,
18,
19675,
18,
588,
67,
72,
7259,
1435,
225,
468,
2315,
12127,
12127,
273,
15503,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
225,
15503,
273,
365,
18,
1484,
2556,
16361,
273,
365,
18,
651,
67,
28744,
18,
19675,
18,
588,
67,
72,
7259,
1435,
225,
468,
2315,
12127,
12127,
273,
15503,
18,
5... |
extend2(new,newne,newce) | try: extend2(new,newne,newce) except Exception: print "new:",new,newne,newce print "old:",old,ne,ce raise | def extend2(old,ne,ce): """Extend procedure from Bron and Kerbosch""" #print old,ne,ce new=range(ce) minnod,nod=ce,0 | 9aa175fd5a95c4807bd27710c54b693447f75920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11674/9aa175fd5a95c4807bd27710c54b693447f75920/Multialign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2133,
22,
12,
1673,
16,
4644,
16,
311,
4672,
3536,
16675,
12131,
628,
605,
1949,
471,
1475,
264,
70,
538,
343,
8395,
468,
1188,
1592,
16,
4644,
16,
311,
394,
33,
3676,
12,
311,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2133,
22,
12,
1673,
16,
4644,
16,
311,
4672,
3536,
16675,
12131,
628,
605,
1949,
471,
1475,
264,
70,
538,
343,
8395,
468,
1188,
1592,
16,
4644,
16,
311,
394,
33,
3676,
12,
311,
13,
1... |
self._chunks = newchunks return self._encode_chunks() | return self._encode_chunks(newchunks) | def encode(self): """Encode a message header into an RFC-compliant format. | 34ce2bfa48747b0a7f527c61ad82dcfa08c73636 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/34ce2bfa48747b0a7f527c61ad82dcfa08c73636/Header.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
4672,
3536,
5509,
279,
883,
1446,
1368,
392,
8372,
17,
832,
18515,
740,
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... | [
1,
1,
1,
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,
2017,
12,
2890,
4672,
3536,
5509,
279,
883,
1446,
1368,
392,
8372,
17,
832,
18515,
740,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
this = apply(_quickfix.new_QuoteReqID, args) | this = _quickfix.new_QuoteReqID(*args) | def __init__(self, *args): this = apply(_quickfix.new_QuoteReqID, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
10257,
6113,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
10257,
6113,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
params = {'Size': size, 'Zone' : zone} | params = {'Size': size, 'AvailabilityZone' : zone} | def create_volume(self, size, zone, snapshot=None): """ Create a new EBS Volume. | b505be31639a300e54fa0ca7b5ebfc4dfea54d38 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/b505be31639a300e54fa0ca7b5ebfc4dfea54d38/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
9491,
12,
2890,
16,
963,
16,
4157,
16,
4439,
33,
7036,
4672,
3536,
1788,
279,
394,
512,
12692,
7404,
18,
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,
752,
67,
9491,
12,
2890,
16,
963,
16,
4157,
16,
4439,
33,
7036,
4672,
3536,
1788,
279,
394,
512,
12692,
7404,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pkg = create_package(self.project, 'Pkg') self.project.do(FixModuleNames(self.project).get_changes()) | pkg = create_package(self.project, 'xkg') self.project.do(FixModuleNames(self.project).get_changes(_fixer)) | def test_packages_module_renaming(self): pkg = create_package(self.project, 'Pkg') self.project.do(FixModuleNames(self.project).get_changes()) self.assertFalse(pkg.exists()) self.assertTrue(self.project.get_resource('pkg/__init__.py').exists()) | 7fed812d78d571f340e6642aadea368f82e54e8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/7fed812d78d571f340e6642aadea368f82e54e8d/fixmodnamestest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10308,
67,
2978,
67,
1187,
7772,
12,
2890,
4672,
3475,
273,
752,
67,
5610,
12,
2890,
18,
4406,
16,
296,
92,
14931,
6134,
365,
18,
4406,
18,
2896,
12,
8585,
3120,
1557,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10308,
67,
2978,
67,
1187,
7772,
12,
2890,
4672,
3475,
273,
752,
67,
5610,
12,
2890,
18,
4406,
16,
296,
92,
14931,
6134,
365,
18,
4406,
18,
2896,
12,
8585,
3120,
1557,
12,
... |
cursor.execute(sqlCommand) except MySQLdb.Error: self.conn = self.connect(invalidate = True) | cursor.execute(sqlCommand) except MySQLdb.Error: self.conn = self.connect() self.redo() | def getUnmergedFileList(self, datasetId): """ __getUnmergedFileList__ Get the list of unmerged files associated to a dataset organized by fileblock Arguments: datasetId -- the dataset id in database Return: the list of unmerged files in the dataset | f6d38da4b0910650112bd5df8a6e148fb35b760b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/f6d38da4b0910650112bd5df8a6e148fb35b760b/MergeSensorDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10833,
15459,
26098,
12,
2890,
16,
3709,
548,
4672,
3536,
1001,
588,
984,
15459,
26098,
972,
225,
968,
326,
666,
434,
27013,
1390,
3627,
358,
279,
3709,
15501,
1235,
635,
585,
2629,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10833,
15459,
26098,
12,
2890,
16,
3709,
548,
4672,
3536,
1001,
588,
984,
15459,
26098,
972,
225,
968,
326,
666,
434,
27013,
1390,
3627,
358,
279,
3709,
15501,
1235,
635,
585,
2629,
225,
... |
re_nameserver = re.compile(r'nameserver\s([0-9\.]+)$') | def write(self,s): self.wrfun(s) if self.flfun: self.flfun() return | 8fb83025efceaf8c02533faae101f66a1eee2ebc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6933/8fb83025efceaf8c02533faae101f66a1eee2ebc/dnsproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
87,
4672,
365,
18,
91,
5809,
318,
12,
87,
13,
309,
365,
18,
2242,
12125,
30,
365,
18,
2242,
12125,
1435,
327,
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,
1045,
12,
2890,
16,
87,
4672,
365,
18,
91,
5809,
318,
12,
87,
13,
309,
365,
18,
2242,
12125,
30,
365,
18,
2242,
12125,
1435,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if line[i] == "'": if not in_quote(): in_single_quote = True i += 1 continue elif in_single_quote: in_single_quote = False i += 1 continue elif line[i:i+3] == '"""': if not in_quote(): in_triple_quote = True i += 3 continue elif in_triple_quote: in_triple_quote = False i += 3 continue elif line[i] == '"': if not in_quo... | if i == 0 or line[i-1] != "\\": if line[i] == "'": if not in_quote(): in_single_quote = True i += 1 continue elif in_single_quote: in_single_quote = False i += 1 continue elif line[i:i+3] == '"""': if not in_quote(): in_triple_quote = True i += 3 continue elif in_triple_quote: in_triple_quote = False i += 3 continue el... | def wrap_num(i, line, is_real, num_start): zz = line[num_start:i] if is_real or '.' in zz: if zz[-1] == '.' and i < len(line) and line[i].isalpha(): # by popular demand -- this allows, e.g., 173.sqrt(). if '.' in zz[:-1]: O = "RealNumber('"; C="')." else: O = "Integer("; C = ")." zz = zz[:-1] else: O = "RealNumber('"; ... | 505bc16cd4f423ce39a655b7dfe0562f2c6cb51d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/505bc16cd4f423ce39a655b7dfe0562f2c6cb51d/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
2107,
12,
77,
16,
980,
16,
353,
67,
7688,
16,
818,
67,
1937,
4672,
11273,
273,
980,
63,
2107,
67,
1937,
30,
77,
65,
309,
353,
67,
7688,
578,
2611,
316,
11273,
30,
309,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
2107,
12,
77,
16,
980,
16,
353,
67,
7688,
16,
818,
67,
1937,
4672,
11273,
273,
980,
63,
2107,
67,
1937,
30,
77,
65,
309,
353,
67,
7688,
578,
2611,
316,
11273,
30,
309,
11... |
try: return self.__gens.has_key(True) except AttributeError: self.gens() return self.__gens.has_key(True) | return self.__gens.has_key(True) | def gens_certain(self): """ Return True if the generators have been proven correct. """ try: return self.__gens.has_key(True) except AttributeError: self.gens() return self.__gens.has_key(True) | 191c8e1d61e26b049ead6a7ffe9599d513e93fe4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/191c8e1d61e26b049ead6a7ffe9599d513e93fe4/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
67,
7593,
530,
12,
2890,
4672,
3536,
2000,
1053,
309,
326,
13327,
1240,
2118,
450,
3995,
3434,
18,
3536,
775,
30,
327,
365,
16186,
23730,
18,
5332,
67,
856,
12,
5510,
13,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
314,
773,
67,
7593,
530,
12,
2890,
4672,
3536,
2000,
1053,
309,
326,
13327,
1240,
2118,
450,
3995,
3434,
18,
3536,
775,
30,
327,
365,
16186,
23730,
18,
5332,
67,
856,
12,
5510,
13,
133... |
db = anydbm.open(os.path.join(self.dir, 'journals.%s'%classname), 'r') except anydbm.open, error: if error.args[0] != 2: raise | db = self._opendb('journals.%s'%classname, 'r') except anydbm.error, error: if str(error) == "need 'c' or 'n' flag to open new db": return [] elif error.args[0] != 2: raise | def getjournal(self, classname, nodeid): ''' get the journal for id ''' # attempt to open the journal - in some rare cases, the journal may # not exist try: db = anydbm.open(os.path.join(self.dir, 'journals.%s'%classname), 'r') except anydbm.open, error: if error.args[0] != 2: raise return [] journal = marshal.loads(db... | cdcc95291c36576dd9ab369f2e2e949fd9f4fe8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/cdcc95291c36576dd9ab369f2e2e949fd9f4fe8e/back_anydbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
22644,
12,
2890,
16,
7479,
16,
756,
350,
4672,
9163,
336,
326,
13001,
364,
612,
9163,
468,
4395,
358,
1696,
326,
13001,
300,
316,
2690,
25671,
6088,
16,
326,
13001,
2026,
468,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
22644,
12,
2890,
16,
7479,
16,
756,
350,
4672,
9163,
336,
326,
13001,
364,
612,
9163,
468,
4395,
358,
1696,
326,
13001,
300,
316,
2690,
25671,
6088,
16,
326,
13001,
2026,
468,
486,
... |
Assumes cost function is not directly dependent on parameters (in this case - input u). | Assumes cost function is only dependent on state X. | def _shoot(model, start_time, end_time): """ Does a single "shot". Model parameters must be set BEFORE calling this method. @note: Currently written specifically for VDP. @note: Currently only supports inputs. @note: Assumes cost function is not directly dependent on parameters (in this case - input u). @param start_... | 733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
674,
1632,
12,
2284,
16,
787,
67,
957,
16,
679,
67,
957,
4672,
3536,
9637,
279,
2202,
315,
2415,
9654,
3164,
1472,
1297,
506,
444,
21203,
4440,
333,
707,
18,
225,
632,
7652,
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,
674,
1632,
12,
2284,
16,
787,
67,
957,
16,
679,
67,
957,
4672,
3536,
9637,
279,
2202,
315,
2415,
9654,
3164,
1472,
1297,
506,
444,
21203,
4440,
333,
707,
18,
225,
632,
7652,
30,
... |
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | #ifdef __cplusplus | 6daeed854b76a664846bc5236af43e73deff42c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/6daeed854b76a664846bc5236af43e73deff42c8/scons_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
1001,
71,
10103,
10103,
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,
468,
430,
536,
1001,
71,
10103,
10103,
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... |
def get_data_files(path, files = []): l = [] for name in os.listdir(path): if name[0] == ".": | def get_data_files(relpath, files=None): files = files or [] for name in os.listdir(os.path.join(BASEDIR, relpath)): if name.startswith("."): | def get_data_files(path, files = []): l = [] for name in os.listdir(path): if name[0] == ".": continue relpath = os.path.join(path, name) f = os.path.join(BASEDIR, relpath) if os.path.isdir(f): get_data_files(relpath, files) elif os.path.isfile(f): l.append(f) pref = sysconfig.get_python_lib()[len(sysconfig.PREFIX) + 1... | 53a938452116c30143e60661aa56bd20af6f536f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/53a938452116c30143e60661aa56bd20af6f536f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
336,
67,
892,
67,
2354,
12,
2878,
803,
16,
1390,
33,
7036,
4672,
1390,
273,
1390,
578,
5378,
364,
508,
316,
1140,
18,
1098,
1214,
12,
538,
18,
803,
18,
5701,
12,
8369,
4537,
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,
225,
1652,
336,
67,
892,
67,
2354,
12,
2878,
803,
16,
1390,
33,
7036,
4672,
1390,
273,
1390,
578,
5378,
364,
508,
316,
1140,
18,
1098,
1214,
12,
538,
18,
803,
18,
5701,
12,
8369,
4537,
16,... |
if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos' or \ ((sys.platform.startswith('linux') or sys.platform.startswith('gnu')) and sysconfig.get_config_var('Py_ENABLE_SHARED')): | if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos': | def finalize_options (self): from distutils import sysconfig | 523539de5ec2bad125c0fbafb9b02f18d335299a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/523539de5ec2bad125c0fbafb9b02f18d335299a/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
261,
2890,
4672,
628,
2411,
5471,
1930,
2589,
1425,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12409,
67,
2116,
261,
2890,
4672,
628,
2411,
5471,
1930,
2589,
1425,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
text = join(lines[i][1]) | text = join(tx.lines[i][1]) | def _do_under_lines(i, t_off, tx): y = tx.XtraState.cur_y - i*tx.XtraState.style.leading - tx.XtraState.f.fontSize/8.0 # 8.0 factor copied from para.py text = join(lines[i][1]) textlen = tx._canvas.stringWidth(text, tx._fontname, tx._fontsize) tx._canvas.line(t_off, y, t_off+textlen, y) | 05006eb70065415d261e84f00ba1d2566c88a75c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/05006eb70065415d261e84f00ba1d2566c88a75c/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
9341,
67,
3548,
12,
77,
16,
268,
67,
3674,
16,
2229,
4672,
677,
273,
2229,
18,
60,
2033,
1119,
18,
1397,
67,
93,
300,
277,
14,
978,
18,
60,
2033,
1119,
18,
4060,
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,
2896,
67,
9341,
67,
3548,
12,
77,
16,
268,
67,
3674,
16,
2229,
4672,
677,
273,
2229,
18,
60,
2033,
1119,
18,
1397,
67,
93,
300,
277,
14,
978,
18,
60,
2033,
1119,
18,
4060,
18,... |
res = self.checkArgumentFormat(path) | res = self.checkArgumentFormat( path ) | def putDirectory(self,path): """ Put a local directory to the physical storage together with all its files and subdirectories. """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
2853,
12,
2890,
16,
803,
4672,
3536,
4399,
279,
1191,
1867,
358,
326,
11640,
2502,
9475,
598,
777,
2097,
1390,
471,
31220,
18,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1378,
2853,
12,
2890,
16,
803,
4672,
3536,
4399,
279,
1191,
1867,
358,
326,
11640,
2502,
9475,
598,
777,
2097,
1390,
471,
31220,
18,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
589,
... |
tx.setXPos(offset) text = string.join(words) | setXPos(tx,offset) text = join(words) | def _justifyDrawParaLine( tx, offset, extraspace, words, last=0): tx.setXPos(offset) text = string.join(words) if last: #last one, left align tx._textOut(text,1) else: nSpaces = len(words)-1 if nSpaces: tx.setWordSpace(extraspace / float(nSpaces)) tx._textOut(text,1) tx.setWordSpace(0) else: tx._textOut(text,1) | b2cf1e4f93a7f349035e282e7cc45fb5c48720b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b2cf1e4f93a7f349035e282e7cc45fb5c48720b0/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3732,
1164,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
23733,
1616,
12,
978,
16,
3348,
13,
977,
225,
273,
1233,
12,
3753,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3732,
1164,
6493,
23529,
1670,
12,
2229,
16,
1384,
16,
11875,
909,
16,
4511,
16,
1142,
33,
20,
4672,
23733,
1616,
12,
978,
16,
3348,
13,
977,
225,
273,
1233,
12,
3753,
13,
309,
... |
text = replaceExcept(text, categoryR, '', ['nowiki', 'comment', 'math', 'pre']) | text = replaceExcept(text, categoryR, '', ['nowiki', 'comment', 'math', 'pre'], marker = marker) | def removeCategoryLinks(text, site): """Given the wiki-text of a page, return that page with all category links removed. """ # This regular expression will find every link that is possibly an # interwiki link, plus trailing whitespace. The language code is grouped. # NOTE: This assumes that language codes only consist ... | f9c80ef99f35a24fb3c47761699987c6879700b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/f9c80ef99f35a24fb3c47761699987c6879700b2/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
4457,
7100,
12,
955,
16,
2834,
4672,
3536,
6083,
326,
9050,
17,
955,
434,
279,
1363,
16,
327,
716,
1363,
598,
777,
3150,
4716,
3723,
18,
3536,
468,
1220,
6736,
2652,
903,
1104,
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,
1206,
4457,
7100,
12,
955,
16,
2834,
4672,
3536,
6083,
326,
9050,
17,
955,
434,
279,
1363,
16,
327,
716,
1363,
598,
777,
3150,
4716,
3723,
18,
3536,
468,
1220,
6736,
2652,
903,
1104,
3... |
self.body.append('"%s" @ExternalLink { ' % node['refuri']) | self.body.append('{"%s"} @ExternalLink { ' % node['refuri']) | def visit_reference(self, node): if node.has_key('refuri'): self.body.append('"%s" @ExternalLink { ' % node['refuri']) return elif node.has_key('refid'): href = node['refid'] elif node.has_key('refname'): href = node['refid'] = self.document.nameids[node['refname']] self.body.append('%s @CrossLink { ' % href) | 7123a9bf4e3df3d0330f584f8ddb098c789b0185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/7123a9bf4e3df3d0330f584f8ddb098c789b0185/lout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
309,
756,
18,
5332,
67,
856,
2668,
1734,
1650,
11,
4672,
365,
18,
3432,
18,
6923,
2668,
16711,
9,
87,
6,
97,
632,
6841,
2098,
288,
296,
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,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
309,
756,
18,
5332,
67,
856,
2668,
1734,
1650,
11,
4672,
365,
18,
3432,
18,
6923,
2668,
16711,
9,
87,
6,
97,
632,
6841,
2098,
288,
296,
738,
... |
elif compiler[:3] == "gcc" or compiler[:3] == "g++": return "-Wl,-R" + dir | elif sys.platform[:5] == "hp-ux": return "+s -L" + dir elif compiler[:3] == "gcc" or compiler[:3] == "g++": return "-Wl,-R" + dir | def runtime_library_dir_option(self, dir): # XXX Hackish, at the very least. See Python bug #445902: # http://sourceforge.net/tracker/index.php # ?func=detail&aid=445902&group_id=5470&atid=105470 # Linkers on different platforms need different options to # specify that directories need to be added to the list of # d... | b71bcb632260fdb2ee80a45ddce2c724f66edb4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b71bcb632260fdb2ee80a45ddce2c724f66edb4c/unixccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3099,
67,
12083,
67,
1214,
67,
3482,
12,
2890,
16,
1577,
4672,
468,
11329,
670,
484,
1468,
16,
622,
326,
8572,
4520,
18,
225,
2164,
6600,
7934,
468,
6334,
6162,
3103,
30,
468,
1062,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3099,
67,
12083,
67,
1214,
67,
3482,
12,
2890,
16,
1577,
4672,
468,
11329,
670,
484,
1468,
16,
622,
326,
8572,
4520,
18,
225,
2164,
6600,
7934,
468,
6334,
6162,
3103,
30,
468,
1062,
22... |
if deps or self.always_copy: log.info("Processing dependencies for %s", requirement) else: return if self.always_copy: for req in dist.requires(requirement.extras): if req.key not in self.installed_projects: self.easy_install(req) return | elif requirement is not None and dist.key != requirement.key: log.warn("Skipping dependencies for %s", dist) return if requirement is None or dist not in requirement: distreq = dist.as_requirement() requirement = Requirement( distreq.project_name, distreq.specs, requirement.extras ) log.info("Processing dependencies... | def process_distribution(self, requirement, dist, deps=True, *info): self.update_pth(dist) self.package_index.add(dist) self.local_index.add(dist) self.install_egg_scripts(dist) self.installed_projects[dist.key] = dist log.warn(self.installation_report(dist, *info)) | a7477dea697437bdd96bede179913c9d5b9b1220 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/a7477dea697437bdd96bede179913c9d5b9b1220/easy_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
16279,
12,
2890,
16,
12405,
16,
2411,
16,
8740,
33,
5510,
16,
380,
1376,
4672,
365,
18,
2725,
67,
2397,
12,
4413,
13,
365,
18,
5610,
67,
1615,
18,
1289,
12,
4413,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
16279,
12,
2890,
16,
12405,
16,
2411,
16,
8740,
33,
5510,
16,
380,
1376,
4672,
365,
18,
2725,
67,
2397,
12,
4413,
13,
365,
18,
5610,
67,
1615,
18,
1289,
12,
4413,
13,
365,
... |
visit_author = depart_author = lambda self,node: None visit_authors = depart_authors = lambda self,node: None | def visit_author(self, node): raise nodes.SkipNode def visit_authors(self, node): raise nodes.SkipNode | def depart_attention(self, node): self.body.append('</note>\n') | 81818dd428bfab36de0c7775dcdb742978a01329 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/81818dd428bfab36de0c7775dcdb742978a01329/docbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
17899,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
7652,
5333,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
17899,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
7652,
5333,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def commit_factory(classes_mappaths, base_dir=None, message=None): | def commit_factory(paths, base_dir=None, message=None): | def commit_factory(classes_mappaths, base_dir=None, message=None): guess = rabbitvcs.vcs.guess(paths[0]) return classes_map[guess["vcs"]](paths, base_dir, message) | 3a023bd3da4663528b1b1cf368d97ceefc5d4655 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/3a023bd3da4663528b1b1cf368d97ceefc5d4655/commit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
67,
6848,
12,
4481,
16,
1026,
67,
1214,
33,
7036,
16,
883,
33,
7036,
4672,
7274,
273,
767,
70,
3682,
18982,
18,
18982,
18,
20885,
12,
4481,
63,
20,
5717,
327,
3318,
67,
1458,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
67,
6848,
12,
4481,
16,
1026,
67,
1214,
33,
7036,
16,
883,
33,
7036,
4672,
7274,
273,
767,
70,
3682,
18982,
18,
18982,
18,
20885,
12,
4481,
63,
20,
5717,
327,
3318,
67,
1458,
6... |
if acl.acl == 'approveacls' and acl.status == self.approvedStatus.statuscodeid: | if acl.acl == 'approveacls' and acl.status == self.approvedStatus: | def name(self, packageName, collectionName=None, collectionVersion=None): '''Retrieve Packages by their name. | 7186138b2e9701a82eb880f695da6eebeb0fe918 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/7186138b2e9701a82eb880f695da6eebeb0fe918/packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
12,
2890,
16,
9929,
16,
17137,
33,
7036,
16,
1849,
1444,
33,
7036,
4672,
9163,
5767,
7930,
1023,
635,
3675,
508,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
508,
12,
2890,
16,
9929,
16,
17137,
33,
7036,
16,
1849,
1444,
33,
7036,
4672,
9163,
5767,
7930,
1023,
635,
3675,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if name in local_scope: if name.__class__.__name__ == 'ModuleProxy': local_scope[name] = mod elif name in global_scope: if name.__class__.__name__ == 'ModuleProxy': global_scope[name] = mod | moduleParts = name.split('.') names = [ '.'.join(moduleParts[-x:]) for x in range(len(moduleParts)) ] for modulePart in names: if modulePart in local_scope: if local_scope[modulePart].__class__.__name__ == 'ModuleProxy': if pathname in repr(local_scope[modulePart]): local_scope[modulePart] = mod if modulePart in ... | def _loadModule(): """ Load the given module, and insert it into the parent scope, and also the original importing scope. """ | ba626e0dc02e59a404d31809c3224ca3f6e744e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ba626e0dc02e59a404d31809c3224ca3f6e744e5/importer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
3120,
13332,
3536,
4444,
326,
864,
1605,
16,
471,
2243,
518,
1368,
326,
982,
2146,
16,
471,
2546,
326,
2282,
25077,
2146,
18,
3536,
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,
0,
0,
0,
0,
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,
945,
3120,
13332,
3536,
4444,
326,
864,
1605,
16,
471,
2243,
518,
1368,
326,
982,
2146,
16,
471,
2546,
326,
2282,
25077,
2146,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
"python setup.py install " "--root=$RPM_BUILD_ROOT " "--record=INSTALLED_FILES"), | ("%s setup.py install " "--root=$RPM_BUILD_ROOT " "--record=INSTALLED_FILES") % self.python), | def _make_spec_file(self): """Generate the text of an RPM spec file and return it as a list of strings (one per line). """ # definitions and headers spec_file = [ '%define name ' + self.distribution.get_name(), '%define version ' + self.distribution.get_version(), '%define release ' + self.release, '', 'Summary: ' + se... | 64988d2ae018b34f23a3cbdc33a117147f1438da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/64988d2ae018b34f23a3cbdc33a117147f1438da/bdist_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
2793,
67,
768,
12,
2890,
4672,
3536,
4625,
326,
977,
434,
392,
534,
12728,
857,
585,
471,
327,
518,
487,
279,
666,
434,
2064,
261,
476,
1534,
980,
2934,
3536,
468,
6377,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2793,
67,
768,
12,
2890,
4672,
3536,
4625,
326,
977,
434,
392,
534,
12728,
857,
585,
471,
327,
518,
487,
279,
666,
434,
2064,
261,
476,
1534,
980,
2934,
3536,
468,
6377,... |
if not queued_recipes() and not scheduled_recipes(): | queued = queued_recipes() scheduled = scheduled_recipes(): if not queued and not scheduled: | def schedule(): bkr.server.scheduler._start_scheduler() log.debug("starting new recipes Thread") # Create new_recipes Thread add_onetime_task(action=new_recipes_loop, args=[lambda:datetime.now()]) log.debug("starting processed recipes Thread") # Create processed_recipes Thread add_onetime_task(action=processed_recipese... | b083cd828ccbf257d265b4591ce5c8722670e9ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/b083cd828ccbf257d265b4591ce5c8722670e9ed/beakerd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
13332,
22723,
86,
18,
3567,
18,
19972,
6315,
1937,
67,
19972,
1435,
613,
18,
4148,
2932,
18526,
394,
5863,
281,
4884,
7923,
468,
1788,
394,
67,
266,
3449,
281,
4884,
527,
67,
265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
13332,
22723,
86,
18,
3567,
18,
19972,
6315,
1937,
67,
19972,
1435,
613,
18,
4148,
2932,
18526,
394,
5863,
281,
4884,
7923,
468,
1788,
394,
67,
266,
3449,
281,
4884,
527,
67,
265,
... |
container = self.get_handler(path) | self.get_handler(path) | def has_handler(self, path): # Be sure path is a Path if not isinstance(path, Path): path = Path(path) | ac6a508574d14b125e271cb6d5cc4ec4e0e9f2a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/ac6a508574d14b125e271cb6d5cc4ec4e0e9f2a2/folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
4176,
12,
2890,
16,
589,
4672,
468,
4823,
3071,
589,
353,
279,
2666,
309,
486,
1549,
12,
803,
16,
2666,
4672,
589,
273,
2666,
12,
803,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
67,
4176,
12,
2890,
16,
589,
4672,
468,
4823,
3071,
589,
353,
279,
2666,
309,
486,
1549,
12,
803,
16,
2666,
4672,
589,
273,
2666,
12,
803,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
arch.set_promisc(self.ins, i, 0) | set_promisc(self.ins, i, 0) | def close(self): if self.promisc: for i in self.iff: arch.set_promisc(self.ins, i, 0) SuperSocket.close(self) | 14c74c45cca1c3048391b67bd41fd3df4f699bde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/14c74c45cca1c3048391b67bd41fd3df4f699bde/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
17401,
291,
71,
30,
364,
277,
316,
365,
18,
3048,
30,
444,
67,
17401,
291,
71,
12,
2890,
18,
2679,
16,
277,
16,
374,
13,
14845,
4534,
18,
4412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1746,
12,
2890,
4672,
309,
365,
18,
17401,
291,
71,
30,
364,
277,
316,
365,
18,
3048,
30,
444,
67,
17401,
291,
71,
12,
2890,
18,
2679,
16,
277,
16,
374,
13,
14845,
4534,
18,
4412,
... |
dleft_col.set_sort_column_id (self.TASKS_TV_COL_DLEFT) | dleft_col.set_sort_column_id (self.TASK_MODEL_DLEFT) | def __create_task_tview(self): | b116e0ff61274cec3f885f83e48088d3089ac749 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/b116e0ff61274cec3f885f83e48088d3089ac749/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
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,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 191) else quickfix.DoubleField.__init__(self, 191, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
5342,
21,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
5342,
21,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
... |
double_window=None, gi_list='(None)', expect='10', | double_window=None, gi_list='(None)', list_org = None, expect='10', | def blast(program, datalib, sequence, input_type='Sequence in FASTA format', double_window=None, gi_list='(None)', expect='10', filter='L', genetic_code='Standard (1)', mat_param='PAM30 9 1', other_advanced=None, ncbi_gi=None, overview=None, alignment_view='0', descriptions=None, alignments=None, email=None, ... | 9d7ccb5ff588731f0c906f580bd39af30d8291bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/9d7ccb5ff588731f0c906f580bd39af30d8291bc/NCBIWWW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19047,
12,
12890,
16,
18462,
495,
16,
3102,
16,
810,
67,
723,
2218,
4021,
316,
24239,
37,
740,
2187,
1645,
67,
5668,
33,
7036,
16,
16221,
67,
1098,
2218,
12,
7036,
13,
2187,
666,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19047,
12,
12890,
16,
18462,
495,
16,
3102,
16,
810,
67,
723,
2218,
4021,
316,
24239,
37,
740,
2187,
1645,
67,
5668,
33,
7036,
16,
16221,
67,
1098,
2218,
12,
7036,
13,
2187,
666,
67,
... |
def spikes_to_signal_1D(fs, spikes, tmax=None): | def _spikes_to_signal(fs, spikes, tmax=None): | def signal_to_spikes(fs, signals): """ Convert time functions to a list of spike trains. fs: samping frequency in Hz signals: input signals return: spike trains with spike timings >>> fs = 10 >>> s = np.array([[0,0,0,1,0,0], [0,2,1,0,0,0]]).T >>> signal_to_spikes(fs, s) [array([ 300.]), array([ 100., 100., 200.])]... | 2ab363a56510bc9bbc386e65baeaf98d22b44ad8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7039/2ab363a56510bc9bbc386e65baeaf98d22b44ad8/_thorns.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4277,
67,
869,
67,
1752,
25235,
12,
2556,
16,
11505,
4672,
3536,
4037,
813,
4186,
358,
279,
666,
434,
28883,
1284,
2679,
18,
225,
2662,
30,
10747,
310,
8670,
316,
670,
94,
11505,
30,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4277,
67,
869,
67,
1752,
25235,
12,
2556,
16,
11505,
4672,
3536,
4037,
813,
4186,
358,
279,
666,
434,
28883,
1284,
2679,
18,
225,
2662,
30,
10747,
310,
8670,
316,
670,
94,
11505,
30,
8... |
finally: gc.restore_state() | def _render(self, gc, pts): gc.save_state() gc.clip_to_rect(self.x, self.y, self.width, self.height) try: if not self.index: gc.restore_state() return name = self.selection_metadata_name md = self.index.metadata if name in md and md[name] is not None and len(md[name]) > 0: # FIXME: when will we ever encounter multiple ... | eb2be8757a6eaafdc44773a74ea51807fee895a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13167/eb2be8757a6eaafdc44773a74ea51807fee895a7/jitterplot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
16,
8859,
16,
13397,
4672,
8859,
18,
5688,
67,
2019,
1435,
8859,
18,
14161,
67,
869,
67,
2607,
12,
2890,
18,
92,
16,
365,
18,
93,
16,
365,
18,
2819,
16,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
16,
8859,
16,
13397,
4672,
8859,
18,
5688,
67,
2019,
1435,
8859,
18,
14161,
67,
869,
67,
2607,
12,
2890,
18,
92,
16,
365,
18,
93,
16,
365,
18,
2819,
16,
365,
1... | |
self.serverProxy.removeFileInfo(self.cnxId, unicode(filename, self.filesystemEncoding)) | self.serverProxy.removeFileInfo(self.cnxId, filename) | def purgeFiles(self,fileset): for filename in fileset: if self.verbose: print "Requesting unindexation of %s" % filename self.serverProxy.removeFileInfo(self.cnxId, unicode(filename, self.filesystemEncoding)) if self.verbose: print "Requesting cleanup of unreferenced documents" self.serverProxy.removeUnreferencedDocume... | ae82a70867b9703a112398a06be6d55e1f353b36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/ae82a70867b9703a112398a06be6d55e1f353b36/indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
2697,
12,
2890,
16,
2354,
278,
4672,
364,
1544,
316,
1390,
278,
30,
309,
365,
18,
11369,
30,
1172,
315,
691,
310,
640,
1615,
367,
434,
738,
87,
6,
738,
1544,
365,
18,
3567,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
2697,
12,
2890,
16,
2354,
278,
4672,
364,
1544,
316,
1390,
278,
30,
309,
365,
18,
11369,
30,
1172,
315,
691,
310,
640,
1615,
367,
434,
738,
87,
6,
738,
1544,
365,
18,
3567,
38... |
oid = id(module) if oid in _introspecting: return _introspecting[oid] | def introspect_module(module): """ Add API documentation information about the module C{module} to C{module_doc}. """ oid = id(module) if oid in _introspecting: return _introspecting[oid] # Create the ModuleDoc module_doc = ModuleDoc(pyval=module, repr=value_repr(module), canonical_name = get_canonical_name(module)) ... | 8306498614e7db9ddd2c5e78aa700eded3f33a2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8306498614e7db9ddd2c5e78aa700eded3f33a2e/docintrospecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
2978,
12,
2978,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
1605,
385,
95,
2978,
97,
358,
385,
95,
2978,
67,
2434,
5496,
3536,
468,
1788,
326,
5924,
1759,
1605,
67,
2434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
2978,
12,
2978,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
1605,
385,
95,
2978,
97,
358,
385,
95,
2978,
67,
2434,
5496,
3536,
468,
1788,
326,
5924,
1759,
1605,
67,
2434,
... | |
builtin = dict(int=int, long=long, float=float, complex=complex) | def call_function(self, func, *args): return func(*args) | be293e90428d03ba0f8853a112969d284759f0fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/be293e90428d03ba0f8853a112969d284759f0fd/fakes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
915,
12,
2890,
16,
1326,
16,
380,
1968,
4672,
327,
1326,
30857,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
915,
12,
2890,
16,
1326,
16,
380,
1968,
4672,
327,
1326,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
where |*|_2 is the 2 norm of its argument *. | where :math:`|*|_2` is the 2-norm of its argument *. | def cdist(XA, XB, metric='euclidean', p=2, V=None, VI=None, w=None): r""" Computes distance between each pair of observation vectors in the Cartesian product of two collections of vectors. ``XA`` is a :math:`m_A` by :math:`n` array while ``XB`` is a :math:`m_B` by :math:`n` array. A :math:`m_A` by :math:`m_B` array is ... | dcffe95513dbb5a464da95e7b7240d3d4fbb8311 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/dcffe95513dbb5a464da95e7b7240d3d4fbb8311/distance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
4413,
12,
17269,
16,
1139,
38,
16,
3999,
2218,
73,
22392,
2187,
293,
33,
22,
16,
776,
33,
7036,
16,
12596,
33,
7036,
16,
341,
33,
7036,
4672,
436,
8395,
14169,
281,
3888,
3086,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
4413,
12,
17269,
16,
1139,
38,
16,
3999,
2218,
73,
22392,
2187,
293,
33,
22,
16,
776,
33,
7036,
16,
12596,
33,
7036,
16,
341,
33,
7036,
4672,
436,
8395,
14169,
281,
3888,
3086,
... |
os.popen("perl create-ovp.perl gregoria") | system("perl create-ovp.perl gregoria") | def finishCreation(): for i in range(9): print "tftopl gregoria-%d.tfm gregoria-%d.pl" % (i,i) os.popen("tftopl gregoria-%d.tfm gregoria-%d.pl" % (i,i)) print "perl create-ovp.perl gregoria" os.popen("perl create-ovp.perl gregoria") print "ovp2ovf gregoria.ovp gregoria.ovf gregoria.ofm" os.popen("ovp2ovf gregoria.ovp g... | 5793a8d9c69a539fd28403473bebf475356c4700 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7096/5793a8d9c69a539fd28403473bebf475356c4700/gregoria2gregorio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
9906,
13332,
364,
277,
316,
1048,
12,
29,
4672,
1172,
315,
6632,
869,
412,
314,
13430,
1155,
6456,
72,
18,
6632,
81,
314,
13430,
1155,
6456,
72,
18,
412,
6,
738,
261,
77,
16,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
9906,
13332,
364,
277,
316,
1048,
12,
29,
4672,
1172,
315,
6632,
869,
412,
314,
13430,
1155,
6456,
72,
18,
6632,
81,
314,
13430,
1155,
6456,
72,
18,
412,
6,
738,
261,
77,
16,
7... |
self.pool.apply_async(job_runner, args=(job,), callback=job.get_callback(ParallelContext._condition)) | self.processpool.apply_async(job_runner, args=(job,), callback=job.get_callback(ParallelContext._condition)) | def _docallnative(self, module, method, argv, env, cwd, cb, echo, pycommandpath=None): if echo is not None: print echo job = PythonJob(module, method, argv, env, cwd, pycommandpath) self.pool.apply_async(job_runner, args=(job,), callback=job.get_callback(ParallelContext._condition)) self.running.append((job, cb)) | a78031823f3fb6b9f94fd6706c2ed1af8a948e75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7005/a78031823f3fb6b9f94fd6706c2ed1af8a948e75/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2434,
454,
13635,
12,
2890,
16,
1605,
16,
707,
16,
5261,
16,
1550,
16,
7239,
16,
2875,
16,
3376,
16,
2395,
3076,
803,
33,
7036,
4672,
309,
3376,
353,
486,
599,
30,
1172,
3376,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2434,
454,
13635,
12,
2890,
16,
1605,
16,
707,
16,
5261,
16,
1550,
16,
7239,
16,
2875,
16,
3376,
16,
2395,
3076,
803,
33,
7036,
4672,
309,
3376,
353,
486,
599,
30,
1172,
3376,
1... |
eventPair = self._watching[inputSource].pop(token) | name, eventOn, eventOff = self._watching[inputSource].pop(token) | def _ignore(self, token): """ Undo a watch(). Don't call this directly, call release() on the token that watch() returned. """ inputSource = self._token2inputSource.pop(token) eventPair = self._watching[inputSource].pop(token) token.invalidate() eventOn, eventOff = eventPair DirectObject.DirectObject.ignore(self, event... | b8adfe5ae221cc5444ecfeefd4c5c35b187f102a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/b8adfe5ae221cc5444ecfeefd4c5c35b187f102a/InputState.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6185,
12,
2890,
16,
1147,
4672,
3536,
1351,
2896,
279,
4267,
7675,
7615,
1404,
745,
333,
5122,
16,
745,
3992,
1435,
603,
326,
1147,
716,
4267,
1435,
2106,
18,
3536,
810,
1830,
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,
6185,
12,
2890,
16,
1147,
4672,
3536,
1351,
2896,
279,
4267,
7675,
7615,
1404,
745,
333,
5122,
16,
745,
3992,
1435,
603,
326,
1147,
716,
4267,
1435,
2106,
18,
3536,
810,
1830,
273,
... |
elif data[0] == '(': self.announce('''(%s: %s'''%(self.name,data[1:])) | elif data[0] == '(': self.announce('''(%s: %s'''%(self.nick,data[1:])) | def game(self,data): if len(data) == 0: return data = data.decode('utf-8') tok = data.split(' ') if tok[0] == 'TYPING': self.typing = True;self.announce_players() elif tok[0] == 'NOT_TYPING': self.typing = False;self.announce_players() elif tok[0] == '/name': self.setname(" ".join(tok[1:]))#self.name = ;self.regex = re... | 3eeb5803fcaa9200603943617ea56898d709469e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13227/3eeb5803fcaa9200603943617ea56898d709469e/ropeserve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7920,
12,
2890,
16,
892,
4672,
309,
562,
12,
892,
13,
422,
374,
30,
327,
501,
273,
501,
18,
3922,
2668,
3158,
17,
28,
6134,
946,
273,
501,
18,
4939,
2668,
8624,
309,
946,
63,
20,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7920,
12,
2890,
16,
892,
4672,
309,
562,
12,
892,
13,
422,
374,
30,
327,
501,
273,
501,
18,
3922,
2668,
3158,
17,
28,
6134,
946,
273,
501,
18,
4939,
2668,
8624,
309,
946,
63,
20,
6... |
return self.statcmd('STAT ' + id) | return self.statcmd('STAT {0}'.format(id)) | def stat(self, id): """Process a STAT command. Argument: - id: article number or message id Returns: - resp: server response if successful - nr: the article number - id: the message id""" | 933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
12,
2890,
16,
612,
4672,
3536,
2227,
279,
2347,
789,
1296,
18,
225,
5067,
30,
300,
612,
30,
7559,
1300,
578,
883,
612,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
9884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
12,
2890,
16,
612,
4672,
3536,
2227,
279,
2347,
789,
1296,
18,
225,
5067,
30,
300,
612,
30,
7559,
1300,
578,
883,
612,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
9884,
... |
self._dkeys = self._dict.keys() self._dkeys.sort() | def __init__(self, *args): unittest.TestCase.__init__(self, *args) self._dkeys = self._dict.keys() self._dkeys.sort() | c08fe82b32386d2621f4c6c17cc334c7a3a924b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c08fe82b32386d2621f4c6c17cc334c7a3a924b9/test_dumbdbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
6315,
72,
2452,
273,
365,
6315,
1576,
18,
2452,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
365,
6315,
72,
2452,
273,
365,
6315,
1576,
18,
2452,
1435,
36... | |
self.ReleaseMouse() | def OnLeftUp(self, event): if not self.IsEnabled(): return if not self.up: # if the button was down when the mouse was released... self.Notify() self.up = true self.ReleaseMouse() self.Refresh() event.Skip() | 843a4cc675bf53258a2805445f6876ae875e4368 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/843a4cc675bf53258a2805445f6876ae875e4368/buttons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3910,
1211,
12,
2890,
16,
871,
4672,
309,
486,
365,
18,
2520,
1526,
13332,
327,
309,
486,
365,
18,
416,
30,
565,
468,
309,
326,
3568,
1703,
2588,
1347,
326,
7644,
1703,
15976,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3910,
1211,
12,
2890,
16,
871,
4672,
309,
486,
365,
18,
2520,
1526,
13332,
327,
309,
486,
365,
18,
416,
30,
565,
468,
309,
326,
3568,
1703,
2588,
1347,
326,
7644,
1703,
15976,
27... | |
for i in range(55): | for i in range(1, 55): | def setUp(self): try: self.user = os.environ['USER'] except KeyError: self.user = None # Probably Windows... self.node = platform.node() self.name = self.node.replace('.', '_') self.python = find_python() self.cluster = None | 8c9e9f11744b3b9c29b2702463f700af7e659886 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/8c9e9f11744b3b9c29b2702463f700af7e659886/test_resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
775,
30,
365,
18,
1355,
273,
1140,
18,
28684,
3292,
4714,
3546,
1335,
4999,
30,
365,
18,
1355,
273,
599,
225,
468,
14610,
6906,
8202,
2777,
365,
18,
2159,
273,
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,
24292,
12,
2890,
4672,
775,
30,
365,
18,
1355,
273,
1140,
18,
28684,
3292,
4714,
3546,
1335,
4999,
30,
365,
18,
1355,
273,
599,
225,
468,
14610,
6906,
8202,
2777,
365,
18,
2159,
273,
4... |
for kw, (ref, _, _, _) in self.env.modules.iteritems(): rv[kw] = (ref, 0) for kw, (ref, ref_type) in self.env.descrefs.iteritems(): | for fullname, (doc, desctype) in self.env.descrefs.iteritems(): prefix, name = rpartition(fullname, '.') pdict = rv.setdefault(prefix, {}) | def get_keyword_map(self): """Return a dict of all keywords.""" rv = {} dt = self._desctypes for kw, (ref, _, _, _) in self.env.modules.iteritems(): rv[kw] = (ref, 0) for kw, (ref, ref_type) in self.env.descrefs.iteritems(): try: i = dt[ref_type] except KeyError: i = len(dt) dt[ref_type] = i rv[kw] = (ref, i) return rv | 406cbf18870a26a8b9da1e725378ca8af03b1224 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/406cbf18870a26a8b9da1e725378ca8af03b1224/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11041,
67,
1458,
12,
2890,
4672,
3536,
990,
279,
2065,
434,
777,
7093,
12123,
5633,
273,
2618,
3681,
273,
365,
6315,
5489,
299,
989,
364,
13321,
16,
261,
2434,
16,
2832,
12387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11041,
67,
1458,
12,
2890,
4672,
3536,
990,
279,
2065,
434,
777,
7093,
12123,
5633,
273,
2618,
3681,
273,
365,
6315,
5489,
299,
989,
364,
13321,
16,
261,
2434,
16,
2832,
12387,
... |
self.eclipseVersion = "1.1.2" | self.eclipseVersion = "1.1.3" | def __init__(self): if pkgutil.isWindows(): self.packageRoot = "c:/tmp/qtjambi-builder" else: self.packageRoot = "/tmp/qtjambi-builder" self.eclipseVersion = "1.1.2" self.p4User = "qt" self.p4Client = "qt-builder" self.binaryPackageCount = 0 self.packageExtraName = "" | cf2778399c015385417fb8f372bc563c5c875f20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4229/cf2778399c015385417fb8f372bc563c5c875f20/package_builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
309,
3475,
1367,
18,
291,
10399,
13332,
365,
18,
5610,
2375,
273,
315,
71,
27824,
5645,
19,
23311,
78,
2536,
77,
17,
9574,
6,
469,
30,
365,
18,
5610,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
309,
3475,
1367,
18,
291,
10399,
13332,
365,
18,
5610,
2375,
273,
315,
71,
27824,
5645,
19,
23311,
78,
2536,
77,
17,
9574,
6,
469,
30,
365,
18,
5610,
... |
x = E.expect(['@p\d+\.','@@','@[A-Z]','@[123456!" | x = E.expect(['@p\d+\.','@@','@[A-Z]','@[123456!" | def _execute_line(self, line, wait_for_prompt=True, expect_eof=False): E = self._expect try: if len(line) > 4095: raise RuntimeError,"Passing commands this long to gap would hang" E.sendline(line) except OSError: return RuntimeError, "Error evaluating %s in %s"%(line, self) if wait_for_prompt == False: return ('','') i... | 77c24d514a21bb4e9570492494b65d2b8e270c5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/77c24d514a21bb4e9570492494b65d2b8e270c5e/gap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
1369,
12,
2890,
16,
980,
16,
2529,
67,
1884,
67,
13325,
33,
5510,
16,
4489,
67,
9339,
33,
8381,
4672,
512,
273,
365,
6315,
12339,
775,
30,
309,
562,
12,
1369,
13,
405,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
1369,
12,
2890,
16,
980,
16,
2529,
67,
1884,
67,
13325,
33,
5510,
16,
4489,
67,
9339,
33,
8381,
4672,
512,
273,
365,
6315,
12339,
775,
30,
309,
562,
12,
1369,
13,
405,... |
pref = PrefPanel(self.panel, cls) self.panel.GetSizer().Add(pref, 0, wx.EXPAND, border=0) | pref = PrefPanel(self.splitter, cls) | def createPanel(self, cls): pref = PrefPanel(self.panel, cls) self.panel.GetSizer().Add(pref, 0, wx.EXPAND, border=0) self.pref_panels[cls] = pref return pref | 7b8bb8ecb4a7c79f4b6f463f6f011d7fb01d0571 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/7b8bb8ecb4a7c79f4b6f463f6f011d7fb01d0571/userparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
5537,
12,
2890,
16,
2028,
4672,
11307,
273,
28184,
5537,
12,
2890,
18,
4939,
387,
16,
2028,
13,
365,
18,
25724,
67,
7355,
10558,
63,
6429,
65,
273,
11307,
327,
11307,
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,
752,
5537,
12,
2890,
16,
2028,
4672,
11307,
273,
28184,
5537,
12,
2890,
18,
4939,
387,
16,
2028,
13,
365,
18,
25724,
67,
7355,
10558,
63,
6429,
65,
273,
11307,
327,
11307,
2,
-100,
-10... |
def change_file_prop(self, file_baton, name, value, pool): if not file_baton: return (old_path, new_path, pool) = file_baton prefix = 'changeset.changes.%d.props.%s' % (self.fileno, name) | self.prev_path = old_path or new_path self.prefix = 'changeset.changes.%d' % (self.fileno) | def close_file(self, file_baton, pool): self.fileno += 1 | 5d4c14a9ae16d7086c0ba29b263aafad5e909c0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5d4c14a9ae16d7086c0ba29b263aafad5e909c0b/Changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
67,
768,
12,
2890,
16,
585,
67,
70,
16799,
16,
2845,
4672,
365,
18,
7540,
5764,
1011,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
67,
768,
12,
2890,
16,
585,
67,
70,
16799,
16,
2845,
4672,
365,
18,
7540,
5764,
1011,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.