rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
return string.join(ls,',') | return string.join([str(vsrandom.randrange(0,4194304))]+ls,',') | def makeVarList(ls): """formats a list of variables to be stored in a save game for later reference""" return string.join(ls,',') | 3d999b687e07fad9dd6af794f9c23adad2fe9b2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/3d999b687e07fad9dd6af794f9c23adad2fe9b2a/dynamic_news.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1537,
682,
12,
3251,
4672,
3536,
11962,
279,
666,
434,
3152,
358,
506,
4041,
316,
279,
1923,
7920,
364,
5137,
2114,
8395,
327,
533,
18,
5701,
3816,
701,
12,
6904,
9188,
18,
7884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
1537,
682,
12,
3251,
4672,
3536,
11962,
279,
666,
434,
3152,
358,
506,
4041,
316,
279,
1923,
7920,
364,
5137,
2114,
8395,
327,
533,
18,
5701,
3816,
701,
12,
6904,
9188,
18,
7884,
... |
GnuCompile = "gcc -g -fPIC " | def Boot(): global BuildLocal BuildLocal += " -boot -keep " Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. GnuCompile = "gcc -g -fPIC " SunCompile = "cc -g -mt -xcode=pic32 -xldscope=symbolic " Compile = { ... | e2ca989cc63374abbf00d2cd5424ded9b4f00af5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9328/e2ca989cc63374abbf00d2cd5424ded9b4f00af5/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
315,
225,
4049,
273,
315,
21,
6,
225,
468,
1220,
1779,
353,
16975,
628,
326,
642,
1390,
18,
468,
399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26254,
13332,
225,
2552,
3998,
2042,
3998,
2042,
1011,
315,
300,
7137,
300,
10102,
315,
225,
4049,
273,
315,
21,
6,
225,
468,
1220,
1779,
353,
16975,
628,
326,
642,
1390,
18,
468,
399,
... | |
raise "Empty command" | return | def text_command(self,cmdstring,window): if not cmdstring: raise "Empty command" | 3aca0ae7796ad2f58975b1db764bc6526a744333 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2718/3aca0ae7796ad2f58975b1db764bc6526a744333/wxserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
67,
3076,
12,
2890,
16,
4172,
1080,
16,
5668,
4672,
309,
486,
1797,
1080,
30,
1002,
315,
1921,
1296,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
67,
3076,
12,
2890,
16,
4172,
1080,
16,
5668,
4672,
309,
486,
1797,
1080,
30,
1002,
315,
1921,
1296,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
handler = self.lib.handlers['coercableKeywordWithCompatibleTypes'] assert_equals(handler._arg_coercer(['9999', '-42', 'FaLsE', '31.31']), [9999, -42, False, 31.31]) | self._test_coercion(self._handler_named('coercableKeywordWithCompatibleTypes'), ['9999', '-42', 'FaLsE', '31.31'], [9999, -42, False, 31.31]) | def test_coercion_with_compatible_types(self): handler = self.lib.handlers['coercableKeywordWithCompatibleTypes'] assert_equals(handler._arg_coercer(['9999', '-42', 'FaLsE', '31.31']), [9999, -42, False, 31.31]) | d798a90e3520a631e948b83c29999ddb51ea1790 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/d798a90e3520a631e948b83c29999ddb51ea1790/test_handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2894,
12610,
285,
67,
1918,
67,
10943,
67,
2352,
12,
2890,
4672,
1838,
273,
365,
18,
2941,
18,
11046,
3292,
2894,
12610,
429,
8736,
1190,
14599,
2016,
3546,
1815,
67,
14963,
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,
2894,
12610,
285,
67,
1918,
67,
10943,
67,
2352,
12,
2890,
4672,
1838,
273,
365,
18,
2941,
18,
11046,
3292,
2894,
12610,
429,
8736,
1190,
14599,
2016,
3546,
1815,
67,
14963,
12... |
""" % (b[3], b[1], b[2], b[0], tile.z, base_path, tile.layer.name, tile.z, tile.x, tile.y, b[3], b[1], b[2], b[0], "\n".join(network_links))) | """ % (max_lod_pixels, b[3], b[1], b[2], b[0], tile.z, base_path, tile.layer.name, tile.z, tile.x, tile.y, b[3], b[1], b[2], b[0], "\n".join(network_links))) | def generate_kml_doc(self, tile, base_path="", include_wrapper = True): tiles = [ Layer.Tile(tile.layer, tile.x << 1, tile.y << 1, tile.z + 1), Layer.Tile(tile.layer, (tile.x << 1) + 1, tile.y << 1, tile.z + 1), Layer.Tile(tile.layer, (tile.x << 1) + 1, (tile.y << 1) + 1, tile.z + 1), Layer.Tile(tile.layer, tile.x << 1... | a536f4f61308039e1f4012b0f362496c8dee0dbe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6188/a536f4f61308039e1f4012b0f362496c8dee0dbe/KML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
79,
781,
67,
2434,
12,
2890,
16,
4769,
16,
1026,
67,
803,
1546,
3113,
2341,
67,
8376,
273,
1053,
4672,
12568,
273,
306,
12112,
18,
9337,
12,
15368,
18,
6363,
16,
4769,
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,
2103,
67,
79,
781,
67,
2434,
12,
2890,
16,
4769,
16,
1026,
67,
803,
1546,
3113,
2341,
67,
8376,
273,
1053,
4672,
12568,
273,
306,
12112,
18,
9337,
12,
15368,
18,
6363,
16,
4769,
18,
... |
continue | def near_callback(args, geom1, geom2): global BLOCK1, BLOCK2, kicker, kicker2 contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: if (geom1 in kickerGeom) or (geom2 in kickerGeom) or (geom1 in kickerGeom2) or (geom2 in kickerGeom2): c.setMu(1E5) #kickers have high friction, minimal boun... | 1594fe0ae5fd7ca96da99fe3bb0d1e113aacb831 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12834/1594fe0ae5fd7ca96da99fe3bb0d1e113aacb831/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
2552,
14073,
21,
16,
14073,
22,
16,
417,
5448,
16,
417,
5448,
22,
14841,
33,
390,
18,
1293,
8130,
12,
10049,
21,
16,
7364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
2552,
14073,
21,
16,
14073,
22,
16,
417,
5448,
16,
417,
5448,
22,
14841,
33,
390,
18,
1293,
8130,
12,
10049,
21,
16,
7364... | |
def setProperty(self, id, value, type='string', meta=None): | def _setProperty(self, id, value, type='string', meta=None): | def setProperty(self, id, value, type='string', meta=None): # Set a new property with the given id, value and optional type. # Note that different property sets may support different typing # systems. if not self.valid_property_id(id): raise 'Bad Request', 'Invalid property id.' self=self.v_self() if meta is None: meta... | 4439ae48b5e95794878f9c4bbfbe1eabd161d57e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4439ae48b5e95794878f9c4bbfbe1eabd161d57e/PropertySheets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1396,
12,
2890,
16,
612,
16,
460,
16,
618,
2218,
1080,
2187,
2191,
33,
7036,
4672,
468,
1000,
279,
394,
1272,
598,
326,
864,
612,
16,
460,
471,
3129,
618,
18,
468,
3609,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1396,
12,
2890,
16,
612,
16,
460,
16,
618,
2218,
1080,
2187,
2191,
33,
7036,
4672,
468,
1000,
279,
394,
1272,
598,
326,
864,
612,
16,
460,
471,
3129,
618,
18,
468,
3609,
71... |
dirs_in_sys_path[dircase] = 1 | _dirs_in_sys_path[dircase] = 1 | def makepath(*paths): dir = os.path.abspath(os.path.join(*paths)) return dir, os.path.normcase(dir) | 7f5296e7c06f5a6010960f34ae7db89d8902cddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7f5296e7c06f5a6010960f34ae7db89d8902cddb/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
803,
30857,
4481,
4672,
1577,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
30857,
4481,
3719,
327,
1577,
16,
1140,
18,
803,
18,
7959,
3593,
12,
1214,
13,
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,
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,
1221,
803,
30857,
4481,
4672,
1577,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
30857,
4481,
3719,
327,
1577,
16,
1140,
18,
803,
18,
7959,
3593,
12,
1214,
13,
225,
... |
ecotype_info, strain_id_label_x_offset=0.9, snp_id_label_y_offset=0.9): | ecotype_info, strain_id_label_x_offset=0.9, snp_id_label_y_offset=0.9, strain_snp_label_font_size=1): | def drawSNPMtrix(self, axe_snp_matrix, subSNPData, top_snp_data, StrainID2PCAPosInfo, SNPID2PCAPosInfo, \ ecotype_info, strain_id_label_x_offset=0.9, snp_id_label_y_offset=0.9): """ 2008-10-07 1. allele=1 no color (white), 2(red) 2. snpData.snp_id2index_type. index_type=1(polarized), shape=square. index_type=2(MAF), ci... | 8b01df4ec5dda455ad1b712723f6e5a54471503a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/8b01df4ec5dda455ad1b712723f6e5a54471503a/PlotGroupOfSNPs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
13653,
12728,
313,
697,
12,
2890,
16,
1740,
73,
67,
87,
6782,
67,
5667,
16,
720,
13653,
52,
751,
16,
1760,
67,
87,
6782,
67,
892,
16,
3978,
530,
734,
22,
3513,
37,
1616,
966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13653,
12728,
313,
697,
12,
2890,
16,
1740,
73,
67,
87,
6782,
67,
5667,
16,
720,
13653,
52,
751,
16,
1760,
67,
87,
6782,
67,
892,
16,
3978,
530,
734,
22,
3513,
37,
1616,
966,
... |
name = match.group(2) or match.group(3) or match.group(4) | name = (match.group(2) or match.group(3) or match.group(4)).lower() | def process_request(self, req): req.perm.assert_permission('TIMELINE_VIEW') | ae68aae6f6228aba9a386d9ad430d51549e30cee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/ae68aae6f6228aba9a386d9ad430d51549e30cee/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
11231,
67,
9827,
2668,
4684,
5997,
67,
12145,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
11231,
67,
9827,
2668,
4684,
5997,
67,
12145,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
>>> x = [pickle.PicklingError()] * 2 | >>> from pickletools import _Example >>> x = [_Example(42)] * 2 | def dis(pickle, out=None, memo=None, indentlevel=4): """Produce a symbolic disassembly of a pickle. 'pickle' is a file-like object, or string, containing a (at least one) pickle. The pickle is disassembled from the current position, through the first STOP opcode encountered. Optional arg 'out' is a file-like object ... | 85dabbedd136635394c036f7c1e517b534237084 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/85dabbedd136635394c036f7c1e517b534237084/pickletools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
12,
20847,
16,
596,
33,
7036,
16,
11063,
33,
7036,
16,
3504,
2815,
33,
24,
4672,
3536,
25884,
279,
16754,
1015,
28050,
434,
279,
13379,
18,
225,
296,
20847,
11,
353,
279,
585,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
12,
20847,
16,
596,
33,
7036,
16,
11063,
33,
7036,
16,
3504,
2815,
33,
24,
4672,
3536,
25884,
279,
16754,
1015,
28050,
434,
279,
13379,
18,
225,
296,
20847,
11,
353,
279,
585,
17... |
if globalVars.keyCounter!=lastKeyCount: break | def _speakSpellingGen(text): lastKeyCount=globalVars.keyCounter textLength=len(text) synth=getSynth() synthConfig=config.conf["speech"][synth.name] for count,char in enumerate(text): uppercase=char.isupper() char=processSymbol(char) if uppercase and synthConfig["sayCapForCapitals"]: char=_("cap %s")%char if uppercase a... | cf8afe98c4ab333e0fd150793a9c2012d082d2d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/cf8afe98c4ab333e0fd150793a9c2012d082d2d2/speech.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
10244,
3389,
1165,
310,
7642,
12,
955,
4672,
29928,
1380,
33,
6347,
5555,
18,
856,
4789,
977,
1782,
33,
1897,
12,
955,
13,
6194,
451,
33,
588,
10503,
451,
1435,
6194,
451,
809... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
10244,
3389,
1165,
310,
7642,
12,
955,
4672,
29928,
1380,
33,
6347,
5555,
18,
856,
4789,
977,
1782,
33,
1897,
12,
955,
13,
6194,
451,
33,
588,
10503,
451,
1435,
6194,
451,
809... | |
il=self._items_list num_items = len(il) need_remove = num_items - int(0.75 * self.max_items) for i in range(need_remove): item=il.pop(0) try: del self._items[item.address] except KeyError: pass while il and il[0].update_state()=="purged": item=il.pop(0) try: del self._items[item.address] except KeyError: pass | self._lock.acquire() try: il=self._items_list num_items = len(il) need_remove = num_items - int(0.75 * self.max_items) for i in range(need_remove): item=il.pop(0) try: del self._items[item.address] except KeyError: pass while il and il[0].update_state()=="purged": item=il.pop(0) try: del self._items[item.address] exc... | def purge_items(self): """Remove purged and overlimit items from the cache. | 0565c1af1db0e5a1d306ebc4583856d6a63afa5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/0565c1af1db0e5a1d306ebc4583856d6a63afa5f/cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
67,
3319,
12,
2890,
4672,
3536,
3288,
5405,
2423,
471,
1879,
3595,
1516,
628,
326,
1247,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
67,
3319,
12,
2890,
4672,
3536,
3288,
5405,
2423,
471,
1879,
3595,
1516,
628,
326,
1247,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.terminalProtocol.ps[0] = self.terminalProtocol.ps_init[0] | def copy_input_line(self, line=None): self.terminalProtocol.ps[0] = self.terminalProtocol.ps_init[0] self.terminalProtocol.cursorToBOL() self.terminal.eraseLine() self.terminalProtocol.drawInputLine(line) self.terminal.nextLine() | 1d514a80770cf714ff82d80db5c916c2a6fb1fba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/1d514a80770cf714ff82d80db5c916c2a6fb1fba/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
2630,
67,
1369,
12,
2890,
16,
980,
33,
7036,
4672,
365,
18,
15979,
5752,
18,
9216,
774,
38,
1741,
1435,
365,
18,
15979,
18,
264,
448,
1670,
1435,
365,
18,
15979,
5752,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
2630,
67,
1369,
12,
2890,
16,
980,
33,
7036,
4672,
365,
18,
15979,
5752,
18,
9216,
774,
38,
1741,
1435,
365,
18,
15979,
18,
264,
448,
1670,
1435,
365,
18,
15979,
5752,
18,
... | |
def run(self): | def start(self): | def run(self): # Fix wrong type data from xmltodict when one station (*) if isinstance(self.conf['defuzz']['station'], dict): nb_stations = 1 else: nb_stations = len(self.conf['defuzz']['station']) print 'Number of stations : ' + str(nb_stations) for i in range(0,nb_stations): # Create a Queue #q = Queue.Queue(1) | ab8799f1c339289c045d33156b803d545ac43f7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/ab8799f1c339289c045d33156b803d545ac43f7b/defuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
468,
12139,
7194,
618,
501,
628,
2025,
88,
369,
933,
1347,
1245,
13282,
261,
12437,
309,
1549,
12,
2890,
18,
3923,
3292,
536,
9510,
21712,
17894,
17337,
2065,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
468,
12139,
7194,
618,
501,
628,
2025,
88,
369,
933,
1347,
1245,
13282,
261,
12437,
309,
1549,
12,
2890,
18,
3923,
3292,
536,
9510,
21712,
17894,
17337,
2065,
4672,
... |
call_info_id2fname[call_info.id] = [call_info.array.maternal_ecotype_id, call_info.filename, call_info.array_id] | if input_dir: filename = os.path.join(input_dir, os.path.basename(call_info.filename)) else: filename = call_info.filename call_info_id2fname[call_info.id] = [call_info.array.maternal_ecotype_id, filename, call_info.array_id] | def get_call_info_id2fname(cls, db, QC_method_id, call_method_id, filter_calls_QCed=1, max_call_info_mismatch_rate=1, debug=0, min_no_of_non_NA_pairs=40): """ 2008-09-05 add option min_no_of_non_NA_pairs. change the way to filter out data with too high mismatch rate. previously, if the QC with the most no_of_non_NA_pai... | e8a8bb38f1f872fe801dbb73dd4dc7dbd34bb539 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/e8a8bb38f1f872fe801dbb73dd4dc7dbd34bb539/QC_250k.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1991,
67,
1376,
67,
350,
22,
12749,
12,
6429,
16,
1319,
16,
2238,
39,
67,
2039,
67,
350,
16,
745,
67,
2039,
67,
350,
16,
1034,
67,
12550,
67,
53,
39,
329,
33,
21,
16,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
67,
1376,
67,
350,
22,
12749,
12,
6429,
16,
1319,
16,
2238,
39,
67,
2039,
67,
350,
16,
745,
67,
2039,
67,
350,
16,
1034,
67,
12550,
67,
53,
39,
329,
33,
21,
16,
94... |
curclasses = ClassSection.objects.filter(class__parent_program = self.program, | curclasses = ClassSection.objects.filter(classsubject__parent_program = self.program, | def prepare(self, context=None): import operator | 9b11c85c31c5bb647d90a6c44b958151925c4ec7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/9b11c85c31c5bb647d90a6c44b958151925c4ec7/adminvitals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
819,
33,
7036,
4672,
1930,
3726,
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,
2911,
12,
2890,
16,
819,
33,
7036,
4672,
1930,
3726,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
groups.add(group) | def created_bundle_streams(spec): """ Helper context manager that creates bundle streams according to specification spec is a list of dictionaries with the following keys: user: string indicating user name to create [optional] group: string indicating group name to create [optional] slug: slug-like name [optional] nam... | 1bf7e9c81a8c80c89f5085e57e6b33bd3c945f22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/1bf7e9c81a8c80c89f5085e57e6b33bd3c945f22/fixtures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2522,
67,
9991,
67,
16320,
12,
2793,
4672,
3536,
9705,
819,
3301,
716,
3414,
3440,
8205,
4888,
358,
7490,
225,
857,
353,
279,
666,
434,
16176,
598,
326,
3751,
1311,
30,
729,
30,
533,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2522,
67,
9991,
67,
16320,
12,
2793,
4672,
3536,
9705,
819,
3301,
716,
3414,
3440,
8205,
4888,
358,
7490,
225,
857,
353,
279,
666,
434,
16176,
598,
326,
3751,
1311,
30,
729,
30,
533,
1... | |
if set to 1, it is repainted and then set to 0 again if set to 2 then it is always dirty ( repainted each frame, flag is not reset) 0 means that it is not dirty and therefor not repainted again | If set to 1, it is repainted and then set to 0 again. If set to 2, it is always dirty (repainted each frame; flag is not reset). If set to 0, it is not dirty and therefore not repainted again. | def __repr__(self): return "<%s sprite(in %d groups)>" % (self.__class__.__name__, len(self.__g)) | d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
9,
87,
16839,
12,
267,
738,
72,
3252,
13,
2984,
738,
261,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
562,
12,
2890,
16186,
75,
3719,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
9,
87,
16839,
12,
267,
738,
72,
3252,
13,
2984,
738,
261,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
562,
12,
2890,
16186,
75,
3719,
2,
... |
common.debug("%r.process_key(%r,%r); table=%r" % (self,c,meta,self.keytable)) | def process_key(self,c,meta): common.debug("%r.process_key(%r,%r); table=%r" % (self,c,meta,self.keytable)) fun,arg=self.keytable[(c,meta)] if not isinstance(fun,KeyFunction): common.debug("funtable=%r" % (self.funtable,)) try: fun=self.lookup_function(fun) except KeyError: fun=lookup_function(fun,1) self.keytable[(c,m... | 6c0133a2f415a590263815ca0a1fe928e63badf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/6c0133a2f415a590263815ca0a1fe928e63badf4/keytable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
856,
12,
2890,
16,
71,
16,
3901,
4672,
225,
9831,
16,
3175,
33,
2890,
18,
856,
2121,
63,
12,
71,
16,
3901,
25887,
309,
486,
1549,
12,
12125,
16,
653,
2083,
4672,
2975,
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,
1207,
67,
856,
12,
2890,
16,
71,
16,
3901,
4672,
225,
9831,
16,
3175,
33,
2890,
18,
856,
2121,
63,
12,
71,
16,
3901,
25887,
309,
486,
1549,
12,
12125,
16,
653,
2083,
4672,
2975,
18,
... | |
if char.dead or char.gm or char.polymorph: return if not SKILLS.has_key(skill): char.log(LOG_ERROR, "Is using an unidentified skill: %u\n" % skill) return info = SKILLS[skill] skills = char.skill value = skills[skill] / 10.0 lower /= 10.0 higher /= 10.0 if char.npc and value <= 0.0: return if value < lower or ... | if char.dead or char.gm or char.polymorph: return if not SKILLS.has_key(skill): char.log(LOG_ERROR, "Is using an unidentified skill: %u\n" % skill) return info = SKILLS[skill] skills = char.skill value = skills[skill] / 10.0 lower /= 10.0 higher /= 10.0 if char.npc and value <= 0.0: return if value < lower or ... | def onSkillGain(char, skill, lower, higher, success): # See if we can gain at all # GMs don't gain skills if char.dead or char.gm or char.polymorph: return if not SKILLS.has_key(skill): char.log(LOG_ERROR, "Is using an unidentified skill: %u\n" % skill) return info = SKILLS[skill] skills = char.skill value = skills[s... | 3dadc4cf470cc0c4517e6efa25eab23827fdd82c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/3dadc4cf470cc0c4517e6efa25eab23827fdd82c/skillgain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
9030,
43,
530,
12,
3001,
16,
15667,
16,
2612,
16,
10478,
16,
2216,
4672,
468,
2164,
309,
732,
848,
17527,
622,
777,
468,
611,
6947,
2727,
1404,
17527,
15667,
87,
309,
1149,
18,
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,
603,
9030,
43,
530,
12,
3001,
16,
15667,
16,
2612,
16,
10478,
16,
2216,
4672,
468,
2164,
309,
732,
848,
17527,
622,
777,
468,
611,
6947,
2727,
1404,
17527,
15667,
87,
309,
1149,
18,
22... |
why = os.strerror(err.errno) | why = _strerror(err) | def ftp_RETR(self, line): """Retrieve the specified file (transfer from the server to the client) """ file = self.fs.translate(line) | 93acc72ebc75fdf3b1931c4e1f9e2f2d830514c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/93acc72ebc75fdf3b1931c4e1f9e2f2d830514c9/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
862,
4349,
12,
2890,
16,
980,
4672,
3536,
5767,
326,
1269,
585,
261,
13866,
628,
326,
1438,
358,
326,
1004,
13,
3536,
585,
273,
365,
18,
2556,
18,
13929,
12,
1369,
13,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
862,
4349,
12,
2890,
16,
980,
4672,
3536,
5767,
326,
1269,
585,
261,
13866,
628,
326,
1438,
358,
326,
1004,
13,
3536,
585,
273,
365,
18,
2556,
18,
13929,
12,
1369,
13,
2,
... |
digraph g { rankdir="LR" URL="." concentrate=false edge[fontsize="10" ] | digraph "dependencies_graph" { rankdir=LR charset="utf-8" URL="." concentrate=false edge[fontsize="10"] | def test_dependencies_graph(self): imports.dependencies_graph(self.dest, {'labas': ['hoho', 'yep'], 'hoho': ['yep']}) self.assertEquals(open(self.dest).read().strip(), ''' | be37bb32c08778c63ac8b2224ce032e726240d9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/928/be37bb32c08778c63ac8b2224ce032e726240d9c/test_import_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11037,
67,
4660,
12,
2890,
4672,
10095,
18,
11037,
67,
4660,
12,
2890,
18,
10488,
16,
13666,
7411,
345,
4278,
10228,
15008,
15008,
2187,
296,
93,
881,
17337,
296,
15008,
15008,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11037,
67,
4660,
12,
2890,
4672,
10095,
18,
11037,
67,
4660,
12,
2890,
18,
10488,
16,
13666,
7411,
345,
4278,
10228,
15008,
15008,
2187,
296,
93,
881,
17337,
296,
15008,
15008,
... |
p = app.listenUDP(service.port, factory) | p = reactor.listenUDP(service.port, factory) | def main(options=None): # Parse options, read various config files if not options: options = InetdOptions() options.parseOptions() conf = inetdconf.InetdConf() conf.parseFile(open(options['file'])) rpcConf = inetdconf.RPCServicesConf() try: rpcConf.parseFile() except: # We'll survive even if we can't read /etc/rpc lo... | 5d49965ec059765df7f8195ffeb01285d7f97c16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5d49965ec059765df7f8195ffeb01285d7f97c16/inetd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
33,
7036,
4672,
468,
2884,
702,
16,
855,
11191,
642,
1390,
309,
486,
702,
30,
702,
273,
10040,
72,
1320,
1435,
702,
18,
2670,
1320,
1435,
225,
2195,
273,
17661,
72,
392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33,
7036,
4672,
468,
2884,
702,
16,
855,
11191,
642,
1390,
309,
486,
702,
30,
702,
273,
10040,
72,
1320,
1435,
702,
18,
2670,
1320,
1435,
225,
2195,
273,
17661,
72,
392... |
numtrips = 3 def task2(ident): global running for i in range(numtrips): if ident == 0: delay = 0.001 else: rmutex.acquire() delay = random.random() * numtasks rmutex.release() if verbose: print 'task', ident, 'will run for', round(delay, 1), 'sec' time.sleep(delay) if verbose: print 'task', ident, 'entering barrier'... | def enter(self): checkin, checkout = self.checkin, self.checkout | 2e81a08051b03bbe197fc96e1cbd1035123713e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2e81a08051b03bbe197fc96e1cbd1035123713e2/test_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
12,
2890,
4672,
866,
267,
16,
13926,
273,
365,
18,
1893,
267,
16,
365,
18,
17300,
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,
6103,
12,
2890,
4672,
866,
267,
16,
13926,
273,
365,
18,
1893,
267,
16,
365,
18,
17300,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
self.p.folder().short_issue_names = 1 | def test_short_issue_links(self): # test the full two-step linking procedure link = lambda t: self.p.renderMarkedLinksIn(self.p.markLinksIn(t)) self.p.folder().short_issue_names = 1 self.assertEquals(link('#1')[-6:], '#1</a>') self.p.createNextIssue('b') self.assertEquals(link('[#2]')[-6:], '#2</a>') self.p.createIss... | acf69133db82e469c655bf35fecc93d49ca297d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/acf69133db82e469c655bf35fecc93d49ca297d8/tracker_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6620,
67,
13882,
67,
7135,
12,
2890,
4672,
468,
1842,
326,
1983,
2795,
17,
4119,
27651,
12131,
1692,
273,
3195,
268,
30,
365,
18,
84,
18,
5902,
21486,
7100,
382,
12,
2890,
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,
6620,
67,
13882,
67,
7135,
12,
2890,
4672,
468,
1842,
326,
1983,
2795,
17,
4119,
27651,
12131,
1692,
273,
3195,
268,
30,
365,
18,
84,
18,
5902,
21486,
7100,
382,
12,
2890,
18... | |
name = '/'.join(['/data', entry.internal]) | name = '/'.join(('/data', entry.internal)) | def extract_content(self, output_dir=os.getcwdu()): output_dir = os.path.abspath(output_dir) try: opf_path = os.path.splitext( os.path.basename(self._stream.name))[0] + '.opf' except AttributeError: opf_path = 'content.opf' opf_path = os.path.join(output_dir, opf_path) self._ensure_dir(opf_path) with open(opf_path, 'w'... | a349d763791c48d47cea1f32778b244aef794b5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/a349d763791c48d47cea1f32778b244aef794b5c/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
1745,
12,
2890,
16,
876,
67,
1214,
33,
538,
18,
588,
71,
91,
2544,
1435,
4672,
876,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
2844,
67,
1214,
13,
775,
30,
1061,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
1745,
12,
2890,
16,
876,
67,
1214,
33,
538,
18,
588,
71,
91,
2544,
1435,
4672,
876,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
12,
2844,
67,
1214,
13,
775,
30,
1061,
74... |
try: print 1,oDataOperation.getContents() sys.stdout.flush() except Exception, x: print 'getContents Exception 1' sys.stdout.flush() print x sys.stdout.flush() gLogger.exception('getConntent'+str(x)) print 'Here I am' sys.stdout.flush() | def __gfalturlsfromsurls_wrapper(self,urls,listProtocols): """ This is a function that can be reused everywhere to perform the gfal_turlsfromsurls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['protocols'] = listProtocols gfalDict['srmv2_spacetokendesc'] = self.spaceToken | f5e441c3ab9241d3462727b1b293a681e5bd2781 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/f5e441c3ab9241d3462727b1b293a681e5bd2781/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,... | |
for key, item in form.items(): | for key in form: | def get_prefix_vals (form, prefix): """return a list of (key, value) pairs where ``prefix+key'' is a valid form field""" res = [] for key, item in form.items(): if key.startswith(prefix): res.append(key[len(prefix):], get_item_value(item)) return res | b03ef32dbc89abb14f57dfa6fc222add443662c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/b03ef32dbc89abb14f57dfa6fc222add443662c2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3239,
67,
4524,
261,
687,
16,
1633,
4672,
3536,
2463,
279,
666,
434,
261,
856,
16,
460,
13,
5574,
1625,
12176,
3239,
15,
856,
6309,
353,
279,
923,
646,
652,
8395,
400,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3239,
67,
4524,
261,
687,
16,
1633,
4672,
3536,
2463,
279,
666,
434,
261,
856,
16,
460,
13,
5574,
1625,
12176,
3239,
15,
856,
6309,
353,
279,
923,
646,
652,
8395,
400,
273,
... |
def _cmp_(self, other): | def __cmp__(self, other): | def _cmp_(self, other): """ EXAMPLES: sage: a = axiom(1); b = axiom(2) # optional sage: a == b # optional False sage: a < b # optional True sage: a > b # optional False sage: b < a ... | 6d26ee404de5ca55a472c0aa9236698863e1dee9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/6d26ee404de5ca55a472c0aa9236698863e1dee9/axiom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
279,
273,
1740,
14642,
12,
21,
1769,
324,
273,
1740,
14642,
12,
22,
13,
5375,
468,
3129,
272,
410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
279,
273,
1740,
14642,
12,
21,
1769,
324,
273,
1740,
14642,
12,
22,
13,
5375,
468,
3129,
272,
410,... |
yield portal.portal_linkchecker | for i in portal.objectValues(LinkChecker.meta_type): yield i | def _list_updates(self): """ Return all portals that need update """ utool = self.aq_inner.aq_parent portals = utool.getPortals() for portal in portals: if not self._verify_doc(portal): continue yield portal.portal_linkchecker | 69722a8dd7f3f817dff3adf92308192feeff00ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/69722a8dd7f3f817dff3adf92308192feeff00ea/update_link_checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
67,
14703,
12,
2890,
4672,
3536,
2000,
777,
1756,
1031,
716,
1608,
1089,
3536,
31013,
273,
365,
18,
69,
85,
67,
7872,
18,
69,
85,
67,
2938,
1756,
1031,
273,
31013,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1098,
67,
14703,
12,
2890,
4672,
3536,
2000,
777,
1756,
1031,
716,
1608,
1089,
3536,
31013,
273,
365,
18,
69,
85,
67,
7872,
18,
69,
85,
67,
2938,
1756,
1031,
273,
31013,
18,
588,
... |
represented in Singular. If this is True then this polynomial | represented in Singular, and the polynomial ring has at least one generator. If this is True then this polynomial | def can_convert_to_singular(R): """ Returns True if this ring's base field or ring can be represented in Singular. If this is True then this polynomial ring can be represented in Singular. The following base rings are supported: $GF(p)$, $GF(p^n)$, rationals, number fields, and real and complex fields. """ base_ring ... | e458d8d08d95bda7b525f1f0ea065146a1faccbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e458d8d08d95bda7b525f1f0ea065146a1faccbc/polynomial_singular_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
6283,
67,
869,
67,
17835,
12,
54,
4672,
3536,
2860,
1053,
309,
333,
9221,
1807,
1026,
652,
578,
9221,
848,
506,
10584,
316,
348,
17830,
16,
471,
326,
16991,
9221,
711,
622,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
6283,
67,
869,
67,
17835,
12,
54,
4672,
3536,
2860,
1053,
309,
333,
9221,
1807,
1026,
652,
578,
9221,
848,
506,
10584,
316,
348,
17830,
16,
471,
326,
16991,
9221,
711,
622,
45... |
self.members.append(tarinfo) self.membernames.append(tarinfo.name) self.chunks.append(self.offset) | self._record_member(tarinfo) | def next(self): """Return the next member of the archive as a TarInfo object, when TarFile is opened for reading. Return None if there is no more available. """ self._check("ra") if self.firstmember is not None: m = self.firstmember self.firstmember = None return m | a74b881a4cd6de08399203b7b9fd0fb368fe774c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a74b881a4cd6de08399203b7b9fd0fb368fe774c/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
3536,
990,
326,
1024,
3140,
434,
326,
5052,
487,
279,
20334,
966,
733,
16,
1347,
20334,
812,
353,
10191,
364,
6453,
18,
2000,
599,
309,
1915,
353,
1158,
1898,
2319,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
3536,
990,
326,
1024,
3140,
434,
326,
5052,
487,
279,
20334,
966,
733,
16,
1347,
20334,
812,
353,
10191,
364,
6453,
18,
2000,
599,
309,
1915,
353,
1158,
1898,
2319,... |
yield check_complex_value, ncu._arg, np.nan, 0, np.nan, 0, False yield check_complex_value, ncu._arg, 0, np.nan, np.nan, 0, False yield check_complex_value, ncu._arg, np.nan, np.inf, np.nan, 0, False yield check_complex_value, ncu._arg, np.inf, np.nan, np.nan, 0, False | yield check_real_value, ncu._arg, np.nan, 0, np.nan, False yield check_real_value, ncu._arg, 0, np.nan, np.nan, False yield check_real_value, ncu._arg, np.nan, np.inf, np.nan, False yield check_real_value, ncu._arg, np.inf, np.nan, np.nan, False def check_real_value(f, x1, y1, x, exact=True): z1 = np.array(... | def test_special_values(self): # carg(-np.inf +- yi) returns +-pi for finite y > 0 yield check_complex_value, ncu._arg, -np.inf, 1, np.pi, 0, False yield check_complex_value, ncu._arg, -np.inf, -1, -np.pi, 0, False | 4ad98c9779aec020b8ca848c891ecf5576ed9721 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/4ad98c9779aec020b8ca848c891ecf5576ed9721/test_umath_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
468,
276,
3175,
19236,
6782,
18,
10625,
397,
17,
16805,
13,
1135,
397,
17,
7259,
364,
25922,
677,
405,
374,
2824,
866,
67,
14259,
67,
1132,
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,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
468,
276,
3175,
19236,
6782,
18,
10625,
397,
17,
16805,
13,
1135,
397,
17,
7259,
364,
25922,
677,
405,
374,
2824,
866,
67,
14259,
67,
1132,
16... |
sql += "host_category.hostID = host.id " | sql += "host_category.host_id = host.id " | def _directory_mirrors(directory, country): sql = "SELECT category.id, host_category.id, host.id " sql += "FROM category, host_category, host " sql += "WHERE category.id = host_category.category_id AND " sql += "host_category.hostID = host.id " if country is not None: sql += "AND host.country = '%s' " % country sql +=... | 946431bcc3f8067bccc06701688ec18feaa63669 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13031/946431bcc3f8067bccc06701688ec18feaa63669/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5149,
67,
81,
27026,
12,
5149,
16,
5251,
4672,
225,
1847,
273,
315,
4803,
3150,
18,
350,
16,
1479,
67,
4743,
18,
350,
16,
1479,
18,
350,
315,
1847,
1011,
315,
11249,
3150,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5149,
67,
81,
27026,
12,
5149,
16,
5251,
4672,
225,
1847,
273,
315,
4803,
3150,
18,
350,
16,
1479,
67,
4743,
18,
350,
16,
1479,
18,
350,
315,
1847,
1011,
315,
11249,
3150,
16,
1... |
def _format_titles(self,titles): | def _format_titles(self,titles,colsep='---'): display_window_width = 70 | def _format_titles(self,titles): lengths = [len(name)-name.find('.')-1 for (name,title) in titles] max_length = max(lengths) lines = [] for (name,title) in titles: name = name[name.find('.')+1:] w = max_length - len(name) lines.append('%s%s --- %s' % (name, w*' ', title)) return '\n'.join(lines) | 4fecd1eed369a26d6205c95648b27494965bc7c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/4fecd1eed369a26d6205c95648b27494965bc7c0/_import_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
67,
17643,
12,
2890,
16,
17643,
16,
1293,
10814,
2218,
6062,
11,
4672,
2562,
67,
5668,
67,
2819,
273,
16647,
10917,
273,
306,
1897,
12,
529,
24950,
529,
18,
4720,
2668,
1093,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
67,
17643,
12,
2890,
16,
17643,
16,
1293,
10814,
2218,
6062,
11,
4672,
2562,
67,
5668,
67,
2819,
273,
16647,
10917,
273,
306,
1897,
12,
529,
24950,
529,
18,
4720,
2668,
1093,
... |
r=Gratia.UsageRecord("Batch") r.ProbeName("glexec:%s"%host) | r=Gratia.UsageRecord("Glexec") | def send_one(el, host, # uname -n cename): r=Gratia.UsageRecord("Batch") r.ProbeName("glexec:%s"%host) r.MachineName(cename) r.Host(host) r.LocalUserId(uid2name(el['jobuid'])) # uid number if el.has_key("DN"): r.UserKeyInfo(el["DN"]) if el.has_key("VO"): r.VOName(el["VO"]) r.WallDuration(el['end']-el['start']) r.CpuDur... | 8d1fa257c326ab174b10d0c3867bd3ef6efd6461 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/8d1fa257c326ab174b10d0c3867bd3ef6efd6461/glexec_meter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
476,
12,
292,
16,
1479,
16,
468,
31444,
300,
82,
276,
1069,
4672,
436,
33,
43,
17048,
1155,
18,
5357,
2115,
2932,
43,
4149,
557,
7923,
436,
18,
6981,
461,
12,
71,
1069,
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,
1366,
67,
476,
12,
292,
16,
1479,
16,
468,
31444,
300,
82,
276,
1069,
4672,
436,
33,
43,
17048,
1155,
18,
5357,
2115,
2932,
43,
4149,
557,
7923,
436,
18,
6981,
461,
12,
71,
1069,
13,... |
self.driver.back(); | self.driver.back() | def testNavigation(self): # Loads two pages into chrome's navigation history. self.navigate(self.NEWS) self.navigate(self.SEARCH) | bebf64c3339c8ee243bc822c538d0afdffc4a4dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/bebf64c3339c8ee243bc822c538d0afdffc4a4dc/webdriver_remote_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14301,
12,
2890,
4672,
468,
4444,
87,
2795,
4689,
1368,
18167,
1807,
10394,
4927,
18,
365,
18,
82,
20698,
12,
2890,
18,
5407,
2651,
13,
365,
18,
82,
20698,
12,
2890,
18,
17251,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
14301,
12,
2890,
4672,
468,
4444,
87,
2795,
4689,
1368,
18167,
1807,
10394,
4927,
18,
365,
18,
82,
20698,
12,
2890,
18,
5407,
2651,
13,
365,
18,
82,
20698,
12,
2890,
18,
17251,
1... |
def get_ext_libname (self, ext_name): ext_path = string.split (ext_name, '.') if os.name == 'nt' and self.debug: return apply (os.path.join, ext_path) + '_d.lib' return apply (os.path.join, ext_path) + '.lib' | def get_ext_libname (self, ext_name): # create a filename for the (unneeded) lib-file. # extensions in debug_mode are named 'module_d.pyd' under windows ext_path = string.split (ext_name, '.') if os.name == 'nt' and self.debug: return apply (os.path.join, ext_path) + '_d.lib' return apply (os.path.join, ext_path) + '.l... | 32aff731d5d1af427b5d3c03925d0814cb525144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/32aff731d5d1af427b5d3c03925d0814cb525144/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
408,
67,
2941,
529,
261,
2890,
16,
1110,
67,
529,
4672,
468,
752,
279,
1544,
364,
326,
261,
318,
17471,
13,
2561,
17,
768,
18,
468,
4418,
316,
1198,
67,
3188,
854,
4141,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
408,
67,
2941,
529,
261,
2890,
16,
1110,
67,
529,
4672,
468,
752,
279,
1544,
364,
326,
261,
318,
17471,
13,
2561,
17,
768,
18,
468,
4418,
316,
1198,
67,
3188,
854,
4141,
296... | |
raise GeneralProxyError((1,_generalerrors[1])) | raise GeneralProxyError((1, _generalerrors[1])) | def __negotiatesocks5(self,destaddr,destport): """__negotiatesocks5(self,destaddr,destport) Negotiates a connection through a SOCKS5 server. """ # First we'll send the authentication packages we support. if (self.__proxy[4]!=None) and (self.__proxy[5]!=None): # The username/password details were supplied to the # setpr... | 9c2eaf1c9f74544afe20a86fa591d97eeaa8921c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13138/9c2eaf1c9f74544afe20a86fa591d97eeaa8921c/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... |
if isstring: | if own_fh: | def split_line(line): """Chop off comments, strip, and split at delimiter.""" line = asbytes(line).split(comments)[0].strip() if line: return line.split(delimiter) else: return [] | 8630830bb05bd13aab0fcd869c8339c1515460de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8630830bb05bd13aab0fcd869c8339c1515460de/npyio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
1369,
12,
1369,
4672,
3536,
782,
556,
3397,
5678,
16,
2569,
16,
471,
1416,
622,
5654,
12123,
980,
273,
487,
3890,
12,
1369,
2934,
4939,
12,
9231,
25146,
20,
8009,
6406,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
1369,
12,
1369,
4672,
3536,
782,
556,
3397,
5678,
16,
2569,
16,
471,
1416,
622,
5654,
12123,
980,
273,
487,
3890,
12,
1369,
2934,
4939,
12,
9231,
25146,
20,
8009,
6406,
1435,
... |
user_mem = int(l[1]) mem_free = int((mem_total - user_mem) / (1024*1024)) | user_mem = int(l[1]) / (1024*1024) mem_free = int(mem_total - user_mem) | def get_host_info(self, platform): host_info = {} host_info['os'] = platform if platform in ('linux', 'linux2', 'cygwin'): cpuinfo = open('/proc/cpuinfo','r').readlines() cpus = 0 for line in cpuinfo: if 'processor' in line: cpus += 1 s = line.split(':') if s != ['\n']: host_info[s[0].strip()] = s[1].strip() host_info[... | 8dcbaf617e2d4af9c37822e803b2cc07556fadf0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8dcbaf617e2d4af9c37822e803b2cc07556fadf0/hostinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2564,
67,
1376,
12,
2890,
16,
4072,
4672,
1479,
67,
1376,
273,
2618,
1479,
67,
1376,
3292,
538,
3546,
273,
4072,
309,
4072,
316,
7707,
20132,
2187,
296,
20132,
22,
2187,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2564,
67,
1376,
12,
2890,
16,
4072,
4672,
1479,
67,
1376,
273,
2618,
1479,
67,
1376,
3292,
538,
3546,
273,
4072,
309,
4072,
316,
7707,
20132,
2187,
296,
20132,
22,
2187,
296,
... |
x = wikipedia.Page(self.site, self.settings) | wikiPage = wikipedia.Page(self.site, self.settings) | def takesettings(self): """ Function to take the settings from the wiki. """ try: if self.settings == None: self.settingsData = None else: x = wikipedia.Page(self.site, self.settings) self.settingsData = list() try: testo = x.get() rxp = r"<------- ------->\n\*[Nn]ame ?= ?['\"](.*?)['\"]\n\*([Ff]ind|[Ff]indonly)=(.*?)\... | c3a948c21ee29f736b04595b152c3dc94be1b5e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c3a948c21ee29f736b04595b152c3dc94be1b5e3/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5530,
278,
1256,
12,
2890,
4672,
3536,
4284,
358,
4862,
326,
1947,
628,
326,
9050,
18,
3536,
775,
30,
309,
365,
18,
4272,
422,
599,
30,
365,
18,
4272,
751,
273,
599,
469,
30,
9050,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5530,
278,
1256,
12,
2890,
4672,
3536,
4284,
358,
4862,
326,
1947,
628,
326,
9050,
18,
3536,
775,
30,
309,
365,
18,
4272,
422,
599,
30,
365,
18,
4272,
751,
273,
599,
469,
30,
9050,
1... |
v = [(abs(default - self.values()[j]), j) for j in range(len(self.values()))] | v = [(abs(default[i] - self.values()[j]), j) for j in range(len(self.values()))] | def __init__(self, vmin, vmax=None, step_size=1, default=None, label=None, display_value=True): r""" An interactive slider control, which can be used in conjunction with the interact command. | 9ccf8b49a8a600d5436a55ad38b69bcd69a4619e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9ccf8b49a8a600d5436a55ad38b69bcd69a4619e/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
17501,
16,
17831,
33,
7036,
16,
2235,
67,
1467,
33,
21,
16,
805,
33,
7036,
16,
1433,
33,
7036,
16,
2562,
67,
1132,
33,
5510,
4672,
436,
8395,
1922,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
17501,
16,
17831,
33,
7036,
16,
2235,
67,
1467,
33,
21,
16,
805,
33,
7036,
16,
1433,
33,
7036,
16,
2562,
67,
1132,
33,
5510,
4672,
436,
8395,
1922,
126... |
continue oldpath = oldrev = newpath = newrev = '' oldinfo = line.split(None, 2) if len(oldinfo) > 1: oldpath = oldinfo[1] if len(oldinfo) > 2: oldrev = oldinfo[2] line = lines.next() if not line.startswith('+++ '): self.log.debug('expected +++ after ---, got '+line) return None newinfo = line.split(None, 2) if le... | if not line.startswith('+++ '): self.log.debug('expected +++ after ---, got '+line) return None newinfo = line.split(None, 2) if len(newinfo) > 1: newpath = newinfo[1] if len(newinfo) > 2: newrev = newinfo[2] | def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * ' ' + mod * ' ' | 666a397557fb7a14b59c92551b1b8aa847a0488a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/666a397557fb7a14b59c92551b1b8aa847a0488a/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
... |
self.del_variable(var_dict[name[0]], name[1:]) | self.del_variable(var_dict[name[0]].value, DottedName(*name[1:])) | def del_variable(self, namespace, name): if not isinstance(namespace, NamespaceDoc): return elif isinstance(namespace, ClassDoc): var_dict = namespace.local_variables else: var_dict = namespace.variables | 8ca0444b7e82785ddab055f0d90bed1ddc6cea99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/8ca0444b7e82785ddab055f0d90bed1ddc6cea99/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
6105,
12,
2890,
16,
1981,
16,
508,
4672,
309,
486,
1549,
12,
4937,
16,
6005,
1759,
4672,
327,
1327,
1549,
12,
4937,
16,
27785,
4672,
569,
67,
1576,
273,
1981,
18,
3729,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
6105,
12,
2890,
16,
1981,
16,
508,
4672,
309,
486,
1549,
12,
4937,
16,
6005,
1759,
4672,
327,
1327,
1549,
12,
4937,
16,
27785,
4672,
569,
67,
1576,
273,
1981,
18,
3729,
67,
... |
except BuildError, e: print_("Build aborted:", e) | except BuildError: print_("Build aborted:", geterror()) | def main(dependencies, msvcr90_preparation, msys_preparation): """Build the dependencies according to the command line options.""" options, args = command_line() if options.arg_help: print_("These are the Pygame library dependencies:") for dep in dependencies: print_(" ", dep.name) return 0 try: chosen_deps = choose_d... | 5ed962a58a84830cbe0f649aee7072426feb4c22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/5ed962a58a84830cbe0f649aee7072426feb4c22/msys_link_VC_2008_dlls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
11037,
16,
4086,
90,
3353,
9349,
67,
1484,
20961,
16,
4086,
1900,
67,
1484,
20961,
4672,
3536,
3116,
326,
5030,
4888,
358,
326,
1296,
980,
702,
12123,
225,
702,
16,
833,
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,
2774,
12,
11037,
16,
4086,
90,
3353,
9349,
67,
1484,
20961,
16,
4086,
1900,
67,
1484,
20961,
4672,
3536,
3116,
326,
5030,
4888,
358,
326,
1296,
980,
702,
12123,
225,
702,
16,
833,
273,
... |
self.doclist.Delete(created_entry.GetEditLink().href) | self.editClient.Delete(created_entry.GetEditLink().href) | def testCreateAndDeleteEmptySpreadsheet(self): self.new_entry.title = gdata.atom.Title(text=self.TITLE) self.new_entry.category[0].term = gdata.docs.service.SPREADSHEET_KIND_TERM self.new_entry.category[0].label = 'spreadsheet' created_entry = self.doclist.Post(self.new_entry, '/feeds/documents/private/full') self.docl... | 76de6e666a2dc6ba3f703b89b870266619bcabd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/76de6e666a2dc6ba3f703b89b870266619bcabd4/service_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1684,
1876,
2613,
1921,
28719,
8118,
12,
2890,
4672,
365,
18,
2704,
67,
4099,
18,
2649,
273,
314,
892,
18,
7466,
18,
4247,
12,
955,
33,
2890,
18,
14123,
13,
365,
18,
2704,
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,
1842,
1684,
1876,
2613,
1921,
28719,
8118,
12,
2890,
4672,
365,
18,
2704,
67,
4099,
18,
2649,
273,
314,
892,
18,
7466,
18,
4247,
12,
955,
33,
2890,
18,
14123,
13,
365,
18,
2704,
67,
... |
class C2ScaledRecip recip(C2Function): | class C2ScaledRecip(C2Function): | def value_with_derivatives(self, x): q=_myfuncs.sqrt(x) return native(q, 0.5/q, -0.25/(q*x)) | 32c3750c41e6f7d08d11c46d47fefde584314792 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6028/32c3750c41e6f7d08d11c46d47fefde584314792/C2Functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
67,
1918,
67,
20615,
8785,
12,
2890,
16,
619,
4672,
1043,
33,
67,
4811,
17728,
18,
24492,
12,
92,
13,
327,
225,
6448,
12,
85,
16,
374,
18,
25,
19,
85,
16,
300,
20,
18,
2947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
460,
67,
1918,
67,
20615,
8785,
12,
2890,
16,
619,
4672,
1043,
33,
67,
4811,
17728,
18,
24492,
12,
92,
13,
327,
225,
6448,
12,
85,
16,
374,
18,
25,
19,
85,
16,
300,
20,
18,
2947,
... |
filename = compiler.library_filename(libname, lib_type='shared') result = find_file(filename, std_dirs, paths) if result is not None: return result filename = compiler.library_filename(libname, lib_type='static') result = find_file(filename, std_dirs, paths) return result | result = compiler.find_library_file(std_dirs + paths, libname) if result is None: return None dirname = os.path.dirname(result) for p in std_dirs: if p.endswith(os.sep): p = p.strip(os.sep) if p == dirname: return [ ] for p in paths: if p.endswith(os.sep): p = p.strip(os.sep) if p == dirname: return [p] else: as... | def find_library_file(compiler, libname, std_dirs, paths): filename = compiler.library_filename(libname, lib_type='shared') result = find_file(filename, std_dirs, paths) if result is not None: return result filename = compiler.library_filename(libname, lib_type='static') result = find_file(filename, std_dirs, paths) r... | c43afc96d1c6818977ff7570f0f2992918891c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c43afc96d1c6818977ff7570f0f2992918891c21/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
12,
9576,
16,
2561,
529,
16,
2044,
67,
8291,
16,
2953,
4672,
1544,
273,
5274,
18,
12083,
67,
3459,
12,
2941,
529,
16,
2561,
67,
723,
2218,
11574,
6134,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
12,
9576,
16,
2561,
529,
16,
2044,
67,
8291,
16,
2953,
4672,
1544,
273,
5274,
18,
12083,
67,
3459,
12,
2941,
529,
16,
2561,
67,
723,
2218,
11574,
6134,
563,
... |
def _zapdb(filename): if os.path.exists(filename): db = bsddb.hashopen(filename, 'c') for k in db.keys(): del db[k] db.close() | def _zapdb(filename): if os.path.exists(filename): db = bsddb.hashopen(filename, 'c') for k in db.keys(): del db[k] db.close() | d8d3d0e580cb1a2fb47a8454c25e13ad444faeb5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d8d3d0e580cb1a2fb47a8454c25e13ad444faeb5/Postfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
94,
438,
1966,
12,
3459,
4672,
309,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
1319,
273,
7081,
449,
70,
18,
2816,
3190,
12,
3459,
16,
296,
71,
6134,
364,
417,
316,
1319,
18,
2452... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
94,
438,
1966,
12,
3459,
4672,
309,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
1319,
273,
7081,
449,
70,
18,
2816,
3190,
12,
3459,
16,
296,
71,
6134,
364,
417,
316,
1319,
18,
2452... | |
os.setegid(sprocESS_UID) os.seteuid(sprocESS_GID) | os.setegid(self.PROCESS_UID) os.seteuid(self.PROCESS_GID) | def tearDown(self): os.setegid(sprocESS_UID) os.seteuid(sprocESS_GID) TestCase.tearDown(self) | 850553bd492cffcc2248c5d0dd1347cf938a1996 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/850553bd492cffcc2248c5d0dd1347cf938a1996/test_psutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
1140,
18,
542,
1332,
350,
12,
2890,
18,
16560,
67,
3060,
13,
1140,
18,
542,
73,
1911,
12,
2890,
18,
16560,
67,
28258,
13,
7766,
2449,
18,
736,
297,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
1140,
18,
542,
1332,
350,
12,
2890,
18,
16560,
67,
3060,
13,
1140,
18,
542,
73,
1911,
12,
2890,
18,
16560,
67,
28258,
13,
7766,
2449,
18,
736,
297,
4... |
"""Starts the SchoolTool HTTP server.""" | """Start the SchoolTool HTTP server.""" | def main(): """Starts the SchoolTool HTTP server.""" sys.exit(Server().main(sys.argv[1:])) | da1dca3f77b894f6d64135657128f461356526df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/da1dca3f77b894f6d64135657128f461356526df/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
1685,
326,
348,
343,
1371,
6364,
2239,
1438,
12123,
2589,
18,
8593,
12,
2081,
7675,
5254,
12,
9499,
18,
19485,
63,
21,
30,
22643,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
2774,
13332,
3536,
1685,
326,
348,
343,
1371,
6364,
2239,
1438,
12123,
2589,
18,
8593,
12,
2081,
7675,
5254,
12,
9499,
18,
19485,
63,
21,
30,
22643,
282,
2,
-100,
-100,
-100,
-100,
-100,... |
res.append(klass(dirr.name,self,self.context, dirr, {'active_id': self.res_id})) | res.append(klass(dirr.name,self,self.context, dirr, {'active_id': self.res_id})) | def _child_get(self, cr, name=None, domain=None): dirobj = self.context._dirobj | 0cb5ccb45d72356e72b0fb025b06360d62a3fbf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0cb5ccb45d72356e72b0fb025b06360d62a3fbf6/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
7036,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
7036,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
snmpTrapOID = v1.apiTrapPDU.getEnterprise(v1Pdu) + (0,) + \ (v1.apiTrapPDU.getSpecificTrap(v1Pdu),) | snmpTrapOIDParam = v1.apiTrapPDU.getEnterprise(v1Pdu) + (0,) + \ (v1.apiTrapPDU.getSpecificTrap(v1Pdu),) | def v1ToV2(v1Pdu, origV2Pdu=None): pduType = v1Pdu.tagSet v2Pdu = __v1ToV2PduMap[pduType].clone() v2c.apiPDU.setDefaults(v2Pdu) debug.logger & debug.flagPrx and debug.logger('v1ToV2: v1Pdu %s' % v1Pdu.prettyPrint()) v2VarBinds = [] # 3.1 if rfc3411.notificationClassPDUs.has_key(pduType): # 3.1.1 sysUpTime = v1.apiTr... | 2b5e220c1b98d3f48fa9a4d22ea5425ee5b01b2a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/2b5e220c1b98d3f48fa9a4d22ea5425ee5b01b2a/rfc2576.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
21,
774,
58,
22,
12,
90,
21,
52,
2544,
16,
1647,
58,
22,
52,
2544,
33,
7036,
4672,
21160,
559,
273,
331,
21,
52,
2544,
18,
2692,
694,
331,
22,
52,
2544,
273,
1001,
90,
21,
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,
331,
21,
774,
58,
22,
12,
90,
21,
52,
2544,
16,
1647,
58,
22,
52,
2544,
33,
7036,
4672,
21160,
559,
273,
331,
21,
52,
2544,
18,
2692,
694,
331,
22,
52,
2544,
273,
1001,
90,
21,
7... |
only interior nodes from vertex start to vertex end in the | only interior vertices from vertex start to vertex end in the | def interior_paths(self, start, end): """ Returns an exhaustive list of paths (also lists) through only interior nodes from vertex start to vertex end in the graph. Note -- start and end do not necessarily have to be boundary nodes. INPUT: start -- the vertex of the graph to search for paths from end -- the vertex of... | e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26230,
67,
4481,
12,
2890,
16,
787,
16,
679,
4672,
3536,
2860,
392,
19575,
641,
688,
666,
434,
2953,
261,
31144,
6035,
13,
3059,
1338,
26230,
6928,
628,
5253,
787,
358,
5253,
679,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26230,
67,
4481,
12,
2890,
16,
787,
16,
679,
4672,
3536,
2860,
392,
19575,
641,
688,
666,
434,
2953,
261,
31144,
6035,
13,
3059,
1338,
26230,
6928,
628,
5253,
787,
358,
5253,
679,
316,
... |
msg.params = [sever.hostname] | msg.params = [server.hostname] | def watchConnection(self, connection, sockThread): sockThread.join() if(not connection.closed): # send a quit message if(connection.type == self.IRC_Connection.CLIENT): msg = self.IRC_Message("QUIT :Lost connection") msg.prefix = connection.user.fullUser() self.localBroadcast(msg, connection.user, connection) # this me... | 7a5c24b8ea075a8ea853887e046e2421a561161c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11670/7a5c24b8ea075a8ea853887e046e2421a561161c/IRC_Server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4267,
1952,
12,
2890,
16,
1459,
16,
7313,
3830,
4672,
7313,
3830,
18,
5701,
1435,
309,
12,
902,
1459,
18,
12204,
4672,
468,
1366,
279,
9706,
883,
309,
12,
4071,
18,
723,
422,
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,
4267,
1952,
12,
2890,
16,
1459,
16,
7313,
3830,
4672,
7313,
3830,
18,
5701,
1435,
309,
12,
902,
1459,
18,
12204,
4672,
468,
1366,
279,
9706,
883,
309,
12,
4071,
18,
723,
422,
365,
18,
... |
search_locations.append(src_dir + "/sconsbuild/Debug/test_shell") search_locations.append(src_dir + "/out/Debug/test_shell") | def FindTestShell(): # This is hacky. It is used to guess the location of the test_shell chrome_dir = os.path.normpath(_base_dir + "/../../../") src_dir = os.path.normpath(chrome_dir + "/../") search_locations = [] if (sys.platform in ('cygwin', 'win32')): home_dir = os.path.normpath(os.getenv("HOMEDRIVE") + os.geten... | 416261c9a80c52eb9d5047727bbce605a485cf1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/416261c9a80c52eb9d5047727bbce605a485cf1c/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
4709,
13220,
13332,
468,
1220,
353,
11769,
93,
18,
2597,
353,
1399,
358,
7274,
326,
2117,
434,
326,
1842,
67,
10304,
18167,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
24899,
1969... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
4709,
13220,
13332,
468,
1220,
353,
11769,
93,
18,
2597,
353,
1399,
358,
7274,
326,
2117,
434,
326,
1842,
67,
10304,
18167,
67,
1214,
273,
1140,
18,
803,
18,
7959,
803,
24899,
1969... | |
watchList.extend([(self.item, pim.Stamp.stamp_types.name),]) | watchList.append((self.item, pim.Stamp.stamp_types.name)) | def getWatchList(self): watchList = super(ReminderTypeAreaBlock, self).getWatchList() watchList.extend([(self.item, pim.Stamp.stamp_types.name),]) return watchList | 9ffce02fc80aeed7028d60cda6cd4bba70318784 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/9ffce02fc80aeed7028d60cda6cd4bba70318784/detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5234,
682,
12,
2890,
4672,
4267,
682,
273,
2240,
12,
1933,
14055,
559,
5484,
1768,
16,
365,
2934,
588,
5234,
682,
1435,
4267,
682,
18,
6923,
12443,
2890,
18,
1726,
16,
293,
381,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5234,
682,
12,
2890,
4672,
4267,
682,
273,
2240,
12,
1933,
14055,
559,
5484,
1768,
16,
365,
2934,
588,
5234,
682,
1435,
4267,
682,
18,
6923,
12443,
2890,
18,
1726,
16,
293,
381,
1... |
r1=self.datetime_rect r2=self.service_rect | r1=self.weekday_rect r2=self.datetime_rect r3=self.service_rect | def buildSimilarEntry(self, service, eventId, beginTime, service_name, duration): rec=(self.timer.isInTimer(eventId, beginTime, duration, service) > ((duration/10)*8)) r1=self.datetime_rect r2=self.service_rect res = [ None ] # no private data needed t = localtime(beginTime) res.append((eListboxPythonMultiContent.TYPE... | f509eadbf08d0b7e0d5f369e4ed21a20830ab001 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/f509eadbf08d0b7e0d5f369e4ed21a20830ab001/EpgList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
16891,
1622,
12,
2890,
16,
1156,
16,
26004,
16,
2376,
950,
16,
1156,
67,
529,
16,
3734,
4672,
1950,
28657,
2890,
18,
12542,
18,
291,
382,
6777,
12,
2575,
548,
16,
2376,
950,
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,
1361,
16891,
1622,
12,
2890,
16,
1156,
16,
26004,
16,
2376,
950,
16,
1156,
67,
529,
16,
3734,
4672,
1950,
28657,
2890,
18,
12542,
18,
291,
382,
6777,
12,
2575,
548,
16,
2376,
950,
16,
... |
if parClass in self._classes: rclass, keyval = findClassForMethod(parClass, methodId, variants) elif parClass in lang.BUILTIN: rclass, keyval = True, True | rclass, keyval = findClassForMethod(parClass, methodId, variants) | def classHasOwnMethod(classAttribs, methId): candidates = {} candidates.update(classAttribs.get("members",{})) candidates.update(classAttribs.get("statics",{})) if "construct" in classAttribs: candidates.update(dict((("construct", classAttribs.get("construct")),))) if methId in candidates.keys(): return candidates[meth... | 9ff19efb0410dc81d659f5c53838b203cef9d775 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/9ff19efb0410dc81d659f5c53838b203cef9d775/DependencyLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
5582,
5460,
1305,
12,
1106,
31292,
16,
7917,
548,
4672,
7965,
273,
2618,
7965,
18,
2725,
12,
1106,
31292,
18,
588,
2932,
7640,
3113,
2916,
3719,
7965,
18,
2725,
12,
1106,
31292,
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,
667,
5582,
5460,
1305,
12,
1106,
31292,
16,
7917,
548,
4672,
7965,
273,
2618,
7965,
18,
2725,
12,
1106,
31292,
18,
588,
2932,
7640,
3113,
2916,
3719,
7965,
18,
2725,
12,
1106,
31292,
18,... |
return -1 | mtime = super(FileSimpleDependency, self).get_mtime() | def get_mtime(self): try: mtime = FileSimpleDependency.get_mtime(self) except OSError: # Let's tell that the file is very old, older than 1.1.1970 if it # does not exist. return -1 return mtime | 383daed40753e5a1282c016dfbbb5dda8f9b7385 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/383daed40753e5a1282c016dfbbb5dda8f9b7385/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10838,
12,
2890,
4672,
775,
30,
13158,
273,
1387,
5784,
7787,
18,
588,
67,
10838,
12,
2890,
13,
1335,
10002,
30,
468,
10559,
1807,
9276,
716,
326,
585,
353,
8572,
1592,
16,
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,
336,
67,
10838,
12,
2890,
4672,
775,
30,
13158,
273,
1387,
5784,
7787,
18,
588,
67,
10838,
12,
2890,
13,
1335,
10002,
30,
468,
10559,
1807,
9276,
716,
326,
585,
353,
8572,
1592,
16,
12... |
self.store[entry.tag]['all'].append(child) | self.store['all'].append(child) | def Index(self): '''Store XML data in reasonable structures''' self.store = {'Class':{'all':[]}, 'Image':{'all':[]}, 'all':[]} try: xdata = XML(self.data) except ExpatError: syslog(LOG_ERR, "Failed to parse base.xml") return for entry in xdata.getchildren(): self.store[entry.tag][entry.get('name')] = {'all':[], 'Class'... | ca4407efff20b72ee31fe98fc4eb42eae4550a9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/ca4407efff20b72ee31fe98fc4eb42eae4550a9c/Base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3340,
12,
2890,
4672,
9163,
2257,
3167,
501,
316,
23589,
12597,
26418,
365,
18,
2233,
273,
13666,
797,
4278,
27828,
454,
4278,
8526,
5779,
296,
2040,
4278,
27828,
454,
4278,
8526,
5779,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3340,
12,
2890,
4672,
9163,
2257,
3167,
501,
316,
23589,
12597,
26418,
365,
18,
2233,
273,
13666,
797,
4278,
27828,
454,
4278,
8526,
5779,
296,
2040,
4278,
27828,
454,
4278,
8526,
5779,
29... |
id = self.pool.get('ir.model.data')._update(self.cr, self.uid, \ | id = self.pool.get('ir.model.data')._update(self.cr, 1, \ | def process_act_window(self, node): assert getattr(node, 'id'), "Attribute %s of act_window is empty !" % ('id',) assert getattr(node, 'name'), "Attribute %s of act_window is empty !" % ('name',) assert getattr(node, 'res_model'), "Attribute %s of act_window is empty !" % ('res_model',) self.validate_xml_id(node.id) vi... | 9ec0865f7c8ce62032212bcee73dc1b1f39c2b04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9ec0865f7c8ce62032212bcee73dc1b1f39c2b04/yaml_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
621,
67,
5668,
12,
2890,
16,
756,
4672,
1815,
3869,
12,
2159,
16,
296,
350,
19899,
315,
1499,
738,
87,
434,
1328,
67,
5668,
353,
1008,
29054,
738,
7707,
350,
2187,
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,
1207,
67,
621,
67,
5668,
12,
2890,
16,
756,
4672,
1815,
3869,
12,
2159,
16,
296,
350,
19899,
315,
1499,
738,
87,
434,
1328,
67,
5668,
353,
1008,
29054,
738,
7707,
350,
2187,
13,
1815,
... |
attributes.append(('mpco', 0)) | attributes.append(('mpco', 0)) | def make_daap_playlists(self, items): mappings = [('title', 'minm'), ('id', 'miid'), ('id', 'mper')] for x in items: attributes = [] for p, q in mappings: if isinstance(getattr(x, p), unicode): attributes.append((q, getattr(x, p).encode('utf-8'))) else: attributes.append((q, getattr(x, p))) count = len(self.get_items(p... | d0854cbc42b02a9b723215a904e1eca4bb1bc8e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/d0854cbc42b02a9b723215a904e1eca4bb1bc8e7/sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2414,
438,
67,
1601,
9772,
12,
2890,
16,
1516,
4672,
7990,
273,
306,
2668,
2649,
2187,
296,
1154,
81,
19899,
7707,
350,
2187,
296,
9197,
350,
19899,
7707,
350,
2187,
296,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2414,
438,
67,
1601,
9772,
12,
2890,
16,
1516,
4672,
7990,
273,
306,
2668,
2649,
2187,
296,
1154,
81,
19899,
7707,
350,
2187,
296,
9197,
350,
19899,
7707,
350,
2187,
296,
81,
... |
upgraded[prvpkg].append(pkg) | upgraded[upgpkg].append(pkg) | def runStarting(self): Policy.runStarting(self) self._upgrading = upgrading = {} self._upgraded = upgraded = {} self._bonus = bonus = {} queue = self._trans.getQueue() for pkg in self._trans.getCache().getPackages(): # Precompute upgrade relations. for upg in pkg.upgrades: for prv in upg.providedby: for prvpkg in prv.p... | 776c631e16b1ba88669a4fb8ae57545e09742141 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/776c631e16b1ba88669a4fb8ae57545e09742141/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
11715,
12,
2890,
4672,
7436,
18,
2681,
11715,
12,
2890,
13,
365,
6315,
416,
15210,
273,
731,
15210,
273,
2618,
365,
6315,
416,
19305,
273,
31049,
273,
2618,
365,
6315,
18688,
407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
11715,
12,
2890,
4672,
7436,
18,
2681,
11715,
12,
2890,
13,
365,
6315,
416,
15210,
273,
731,
15210,
273,
2618,
365,
6315,
416,
19305,
273,
31049,
273,
2618,
365,
6315,
18688,
407,
... |
def dual_free_module(self, bound=None, anemic=True): """ | def dual_free_module(self, bound=None, anemic=True, use_star=True): r""" | def dual_free_module(self, bound=None, anemic=True): """ Compute embedded dual free module if possible. In general this won't be possible, e.g., if this space is not Hecke equivariant, possibly if it is not cuspidal, or if the characteristic is not 0. In all these cases we raise a RuntimeError exception. """ try: ret... | 448402c83dbf6e87567edb0de0e4b1f151dd54f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/448402c83dbf6e87567edb0de0e4b1f151dd54f6/submodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24557,
67,
9156,
67,
2978,
12,
2890,
16,
2489,
33,
7036,
16,
392,
351,
335,
33,
5510,
16,
999,
67,
10983,
33,
5510,
4672,
436,
8395,
8155,
7488,
24557,
4843,
1605,
309,
3323,
18,
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,
24557,
67,
9156,
67,
2978,
12,
2890,
16,
2489,
33,
7036,
16,
392,
351,
335,
33,
5510,
16,
999,
67,
10983,
33,
5510,
4672,
436,
8395,
8155,
7488,
24557,
4843,
1605,
309,
3323,
18,
225,
... |
path = "%s/patches/%s/%s/%s/%s_%s" \ % (ROOT, distro, pathhash(source["Package"]), source["Package"], source["Package"], source["Version"]) | path = "%s/%s_%s" % (patch_directory(distro, source), source["Package"], source["Version"]) | def patch_file(distro, source, slipped=False): """Return the location of a local patch file.""" path = "%s/patches/%s/%s/%s/%s_%s" \ % (ROOT, distro, pathhash(source["Package"]), source["Package"], source["Package"], source["Version"]) if slipped: return path + ".slipped-patch" else: return path + ".patch" | 25611a3aa48a730f0d474ca7140e900048fc7433 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1955/25611a3aa48a730f0d474ca7140e900048fc7433/momlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
67,
768,
12,
4413,
303,
16,
1084,
16,
272,
3169,
1845,
33,
8381,
4672,
3536,
990,
326,
2117,
434,
279,
1191,
4729,
585,
12123,
589,
273,
2213,
87,
5258,
87,
10185,
87,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
67,
768,
12,
4413,
303,
16,
1084,
16,
272,
3169,
1845,
33,
8381,
4672,
3536,
990,
326,
2117,
434,
279,
1191,
4729,
585,
12123,
589,
273,
2213,
87,
5258,
87,
10185,
87,
6,
738,
... |
def __init__(self): | def __init__(self, router): | def __init__(self): super(rapidsms.app.App, self).__init__() self.name = 'Logger' | 4170c4625b8092215328fe6c48e4f3dbf453b893 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/4170c4625b8092215328fe6c48e4f3dbf453b893/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4633,
4672,
2240,
12,
1266,
2232,
959,
18,
2910,
18,
3371,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
529,
273,
296,
3328,
11,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4633,
4672,
2240,
12,
1266,
2232,
959,
18,
2910,
18,
3371,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
529,
273,
296,
3328,
11,
2,
-100,
-100,
-100,
... |
if storagegroups.has_key(u'mythvideo'): videometadata[u'host'] = localhostname.lower() | def createVideometadataRecord(item): '''Using the details from a Miro item create a MythTV videometadata record return an dictionary of MythTV an initialised videometadata record ''' global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, flat, image_extensions global videometadata_initialize_reco... | cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
58,
831,
362,
1175,
2115,
12,
1726,
4672,
9163,
7736,
326,
3189,
628,
279,
490,
11373,
761,
752,
279,
8005,
451,
15579,
331,
831,
362,
1175,
1409,
327,
392,
3880,
434,
8005,
451,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
58,
831,
362,
1175,
2115,
12,
1726,
4672,
9163,
7736,
326,
3189,
628,
279,
490,
11373,
761,
752,
279,
8005,
451,
15579,
331,
831,
362,
1175,
1409,
327,
392,
3880,
434,
8005,
451,
... | |
return fields[0]+localeconv()['decimal_point']+fields[1] | res = fields[0]+localeconv()['decimal_point']+fields[1] | def format(f,val,grouping=0): """Formats a value in the same way that the % formatting would use, but takes the current locale into account. Grouping is applied if the third parameter is true.""" result = f % val fields = string.split(result, ".") if grouping: fields[0]=_group(fields[0]) if len(fields)==2: return field... | 0d4d81590f82ee1ba817c28f0a091353a2e69b59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0d4d81590f82ee1ba817c28f0a091353a2e69b59/locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
... |
if stripped_line[0] == ' | if stripped_line and stripped_line[0] == ' | def handle_encoding_declaration(contents, out): """Find a Python encoding declaration in the first line of contents. If found, output it to out and return contents without first line, else output a default utf-8 declaration and return contents. EXAMPLE: sage: from sage.misc.interpreter import handle_encoding_declarati... | af6925ecc1cd00c1b0ddb59f7c545ed9214993a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/af6925ecc1cd00c1b0ddb59f7c545ed9214993a7/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... |
self._intgr_reflections = os.path.join( | self._intgr_hklout = os.path.join( | def _integrate_finish(self): '''Finish off the integration by running correct.''' | 0cca5f409358df88d53bf7b6d9eda83bd5c5fd95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/0cca5f409358df88d53bf7b6d9eda83bd5c5fd95/XDSIntegrater.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14970,
5141,
67,
13749,
12,
2890,
4672,
9163,
11641,
3397,
326,
12040,
635,
3549,
3434,
1093,
6309,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14970,
5141,
67,
13749,
12,
2890,
4672,
9163,
11641,
3397,
326,
12040,
635,
3549,
3434,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""Set up the device layer and then start the messenger | """Set up the agency layer and then start the messenger | def main(self): """Set up the device layer and then start the messenger layer running with the app main. """ self.log.info("main: setting up stomp connection.") | 89c26ae85ea06431a8c3e18f173500e3bf7a509d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12466/89c26ae85ea06431a8c3e18f173500e3bf7a509d/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
3536,
694,
731,
326,
1737,
2075,
3018,
471,
1508,
787,
326,
31086,
3018,
3549,
598,
326,
595,
2774,
18,
225,
3536,
365,
18,
1330,
18,
1376,
2932,
5254,
30,
3637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
12,
2890,
4672,
3536,
694,
731,
326,
1737,
2075,
3018,
471,
1508,
787,
326,
31086,
3018,
3549,
598,
326,
595,
2774,
18,
225,
3536,
365,
18,
1330,
18,
1376,
2932,
5254,
30,
3637,
... |
self.parser = template.parser self.xmldoc = template.root.tostring() | def __init__(self, template): self.code = marshal.dumps(template.func.func_code) self.defaults = len(template.func.func_defaults or ()) self.parser = template.parser self.xmldoc = template.root.tostring() self.stream = template.stream | bc20d5deeff33a4ee1fceef1fe36e55810606835 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9696/bc20d5deeff33a4ee1fceef1fe36e55810606835/translation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1542,
4672,
365,
18,
710,
273,
10893,
18,
13302,
1121,
12,
3202,
18,
644,
18,
644,
67,
710,
13,
365,
18,
7606,
273,
562,
12,
3202,
18,
644,
18,
644,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
1542,
4672,
365,
18,
710,
273,
10893,
18,
13302,
1121,
12,
3202,
18,
644,
18,
644,
67,
710,
13,
365,
18,
7606,
273,
562,
12,
3202,
18,
644,
18,
644,
... | |
plot_names, visible_plots = zip(*sorted(self.plots.items())) | plot_names, visible_plots = map(list, zip(*sorted(self.plots.items()))) | def get_preferred_size(self): """ Computes the size and position of the legend based on the maximum size of the labels, the alignment, and position of the component to overlay. """ # Gather the names of all the labels we will create if len(self.plots) == 0: return [0, 0] | 7afeced96901e486fa828a2a68d4903b1c318622 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/7afeced96901e486fa828a2a68d4903b1c318622/legend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
23616,
67,
1467,
12,
2890,
4672,
3536,
14169,
281,
326,
963,
471,
1754,
434,
326,
7241,
2511,
603,
326,
4207,
963,
434,
326,
3249,
16,
326,
8710,
16,
471,
1754,
434,
326,
1794... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23616,
67,
1467,
12,
2890,
4672,
3536,
14169,
281,
326,
963,
471,
1754,
434,
326,
7241,
2511,
603,
326,
4207,
963,
434,
326,
3249,
16,
326,
8710,
16,
471,
1754,
434,
326,
1794... |
so = open(os.devnull, 'a+', 0) | si = open('/dev/null', 'r') so = open('/dev/null', 'a+') os.dup2(si.fileno(), sys.stdin.fileno()) | def __init__(self,wps): """ wps - parent WPS instance """ | d9c14ac1e2bd1f336bd52a04c340279ea4bb3674 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10967/d9c14ac1e2bd1f336bd52a04c340279ea4bb3674/Execute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
91,
1121,
4672,
3536,
341,
1121,
282,
300,
982,
678,
5857,
791,
3536,
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,
1001,
2738,
972,
12,
2890,
16,
91,
1121,
4672,
3536,
341,
1121,
282,
300,
982,
678,
5857,
791,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
action="store_true", dest="permissive", default = None, | action="store_true", dest="permissive", default=None, | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,... | 461c24b546b5d0469c4e29582a85905d96b60351 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/461c24b546b5d0469c4e29582a85905d96b60351/argparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
681,
67,
1655,
67,
2670,
67,
7099,
12,
2910,
16,
1664,
4672,
225,
4084,
67,
955,
273,
1548,
82,
64,
88,
9,
87,
1041,
1493,
529,
27127,
12306,
67,
621,
20317,
34,
306,
413,
18539,
271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
681,
67,
1655,
67,
2670,
67,
7099,
12,
2910,
16,
1664,
4672,
225,
4084,
67,
955,
273,
1548,
82,
64,
88,
9,
87,
1041,
1493,
529,
27127,
12306,
67,
621,
20317,
34,
306,
413,
18539,
271... |
elif report is not None: print "Backout changes to uuid " + dumpID r = model.Report.get_by(uuid=dumpID) r.delete() r.flush() raise | os.remove(fullpath) os.remove(dumppath) | def processDump(fullpath, dir, basename): # If there is more than one processor, they will race to process dumps # To prevent this from occuring, the processor will first attempt # to insert a record with only the ID. dumpID = basename[:basename.find(config.jsonFileSuffix)] report = None didProcess = False try: report... | 5c0d8309d6e6e31d4fdf210c4fd4e578ec474d50 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12383/5c0d8309d6e6e31d4fdf210c4fd4e578ec474d50/monitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
10628,
12,
2854,
803,
16,
1577,
16,
4882,
4672,
468,
971,
1915,
353,
1898,
2353,
1245,
6659,
16,
2898,
903,
17996,
358,
1207,
6711,
468,
2974,
5309,
333,
628,
3334,
310,
16,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10628,
12,
2854,
803,
16,
1577,
16,
4882,
4672,
468,
971,
1915,
353,
1898,
2353,
1245,
6659,
16,
2898,
903,
17996,
358,
1207,
6711,
468,
2974,
5309,
333,
628,
3334,
310,
16,
326,
... |
name_c = name + 'c' | name_c = cache_from_source(name) | def main(): silent = 0 verbose = 0 if sys.argv[1:]: if sys.argv[1] == '-v': verbose = 1 elif sys.argv[1] == '-s': silent = 1 MAGIC = imp.get_magic() if not silent: print('Using MAGIC word', repr(MAGIC)) for dirname in sys.path: try: names = os.listdir(dirname) except os.error: print('Cannot list directory', repr(dirnam... | c7eaede21ecb5259f2bd9e160a89b82d19cfb19b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/c7eaede21ecb5259f2bd9e160a89b82d19cfb19b/checkpyc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
10404,
273,
374,
3988,
273,
374,
309,
2589,
18,
19485,
63,
21,
30,
14542,
309,
2589,
18,
19485,
63,
21,
65,
422,
2400,
90,
4278,
3988,
273,
404,
1327,
2589,
18,
19485,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
10404,
273,
374,
3988,
273,
374,
309,
2589,
18,
19485,
63,
21,
30,
14542,
309,
2589,
18,
19485,
63,
21,
65,
422,
2400,
90,
4278,
3988,
273,
404,
1327,
2589,
18,
19485,
63,... |
print info.rating | if info: print info.rating | def parse(file, dir, mplayer_files): title = mplayer_options = "" image = None playlist = [] info = [] id = [] mode = 'video' label = [] try: parser = qp_xml.Parser() box = parser.parse(open(file).read()) except: print "XML file %s corrupt" % file else: for c in box.children: if c.name == 'movie': for node in c.child... | f1c8cadfa118ae0149c33f435e2988927a2365a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f1c8cadfa118ae0149c33f435e2988927a2365a9/movie_xml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
768,
16,
1577,
16,
312,
14872,
67,
2354,
4672,
2077,
273,
312,
14872,
67,
2116,
273,
1408,
1316,
273,
599,
16428,
273,
5378,
1123,
273,
5378,
612,
273,
5378,
1965,
273,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
768,
16,
1577,
16,
312,
14872,
67,
2354,
4672,
2077,
273,
312,
14872,
67,
2116,
273,
1408,
1316,
273,
599,
16428,
273,
5378,
1123,
273,
5378,
612,
273,
5378,
1965,
273,
296,
... |
info_files = self._get_info_files() | for path in self.parent_path: info_files.extend(self._get_info_files('*',path)) | def _init_info_modules(self, packages=None): """Initialize info_modules = {<package_name>: <package info.py module>}. """ import imp if packages is None: info_files = self._get_info_files() else: info_files = [] for package in packages: package = os.path.join(*package.split('.')) info_file = os.path.join(self.parent_pa... | f169e88dee50378c8accfb7a67438271a73fcc61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f169e88dee50378c8accfb7a67438271a73fcc61/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
1376,
67,
6400,
12,
2890,
16,
5907,
33,
7036,
4672,
3536,
7520,
1123,
67,
6400,
273,
288,
32,
5610,
67,
529,
28593,
411,
5610,
1123,
18,
2074,
1605,
34,
5496,
3536,
1930... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
1376,
67,
6400,
12,
2890,
16,
5907,
33,
7036,
4672,
3536,
7520,
1123,
67,
6400,
273,
288,
32,
5610,
67,
529,
28593,
411,
5610,
1123,
18,
2074,
1605,
34,
5496,
3536,
1930... |
self.sock.close() | self.flush() | def close(self): self.sock.close() del self.sock | cd259d0b401f8cdd859bd55167610230d9a44f5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cd259d0b401f8cdd859bd55167610230d9a44f5d/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
18,
11330,
1435,
225,
1464,
365,
18,
15031,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
18,
11330,
1435,
225,
1464,
365,
18,
15031,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if isinstance(command, file): | if isinstance(command, types.FileType): | def execute(self, command, *p, **k): """Return the fd of a command; can get output (stdout/err) and exitcode""" # We might be passed a file descriptor for some reason; if so, just return it if isinstance(command, file): return command | 1082a64377c9661763a0ce90257c284a413611c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9035/1082a64377c9661763a0ce90257c284a413611c1/shell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1296,
16,
380,
84,
16,
2826,
79,
4672,
3536,
990,
326,
5194,
434,
279,
1296,
31,
848,
336,
876,
261,
10283,
19,
370,
13,
471,
2427,
710,
8395,
468,
1660,
4825,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1296,
16,
380,
84,
16,
2826,
79,
4672,
3536,
990,
326,
5194,
434,
279,
1296,
31,
848,
336,
876,
261,
10283,
19,
370,
13,
471,
2427,
710,
8395,
468,
1660,
4825,
50... |
self.copy_file("Miro.ico", os.path.join(dist_dir, "%s.ico" % template_vars['shortAppName'])) | shortappname = template_vars["shortAppName"] self.copy_file("Miro.ico", os.path.join(dist_dir, "%s.ico" % shortappname)) | def copy_ico(self): dist_dir = self.get_finalized_command('py2exe').dist_dir self.copy_file("Miro.ico", os.path.join(dist_dir, "%s.ico" % template_vars['shortAppName'])) | 16717514d85be409df247e58637855a19e0ad04f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/16717514d85be409df247e58637855a19e0ad04f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
10764,
12,
2890,
4672,
2411,
67,
1214,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
2074,
22,
14880,
16063,
4413,
67,
1214,
365,
18,
3530,
67,
768,
2932,
49,
11373,
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,
1610,
67,
10764,
12,
2890,
4672,
2411,
67,
1214,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
2074,
22,
14880,
16063,
4413,
67,
1214,
365,
18,
3530,
67,
768,
2932,
49,
11373,
18,... |
if (self.wizard[currStep].has_key("listevaluation")): | if (self.wizard[self.prevStep].has_key("listevaluation")): | def finished(self, gotoStep = None, *args, **kwargs): print "finished" currStep = self.currStep | c9faacfea68f90597fb82504790dc1f7d7b71f3f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/c9faacfea68f90597fb82504790dc1f7d7b71f3f/Wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6708,
12,
2890,
16,
2897,
4160,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
1172,
315,
13527,
6,
4306,
4160,
273,
365,
18,
17016,
4160,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6708,
12,
2890,
16,
2897,
4160,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
1172,
315,
13527,
6,
4306,
4160,
273,
365,
18,
17016,
4160,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
cmd("/bin/bash "+self.settings["livecd/runscript"]+" kernel "+list_bashify(args), "Runscript kernel build failed") | cmd("/bin/bash "+self.settings["livecd/runscript"]+" kernel "+list_bashify(args),\ "Runscript kernel build failed") | def build_kernel(self): mynames=self.settings["boot/kernel"] if type(mynames)==types.StringType: mynames=[mynames] args=[] args.append(`len(mynames)`) for kname in mynames: args.append(kname) args.append(self.settings["boot/kernel/"+kname+"/sources"]) try: if not os.path.exists(self.settings["boot/kernel/"+kname+"/con... | 6d35cdfbf74c77aa0d65fce7ea6dcebad63a32fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/6d35cdfbf74c77aa0d65fce7ea6dcebad63a32fd/livecd_stage2_target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8111,
12,
2890,
4672,
312,
878,
753,
33,
2890,
18,
4272,
9614,
7137,
19,
8111,
11929,
309,
618,
12,
81,
878,
753,
13,
631,
2352,
18,
780,
559,
30,
312,
878,
753,
22850,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8111,
12,
2890,
4672,
312,
878,
753,
33,
2890,
18,
4272,
9614,
7137,
19,
8111,
11929,
309,
618,
12,
81,
878,
753,
13,
631,
2352,
18,
780,
559,
30,
312,
878,
753,
22850,
81,... |
[(inner_r,min_z)] + rz + [(inner_r, max_z)], | [(inner_r,min_z)] + rz + [(inner_r, max_z)], | def make_extrusion_with_fine_core(rz, inner_r, max_volume_inner=1e-4, max_volume_outer=5e-2, radial_subdiv=20): min_z = min(rz_pt[1] for rz_pt in rz) max_z = max(rz_pt[1] for rz_pt in rz) from meshpy.tet import MeshInfo, build from meshpy.geometry import generate_surface_of_revolution MINUS_Z_MARKER = 1 PLUS_Z_MARKE... | 592adeeb615eb5497b4dae9329f92c603720e638 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12869/592adeeb615eb5497b4dae9329f92c603720e638/geometry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
14523,
7063,
67,
1918,
67,
74,
558,
67,
3644,
12,
86,
94,
16,
3443,
67,
86,
16,
943,
67,
9491,
67,
7872,
33,
21,
73,
17,
24,
16,
943,
67,
9491,
67,
14068,
33,
25,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
14523,
7063,
67,
1918,
67,
74,
558,
67,
3644,
12,
86,
94,
16,
3443,
67,
86,
16,
943,
67,
9491,
67,
7872,
33,
21,
73,
17,
24,
16,
943,
67,
9491,
67,
14068,
33,
25,
73,
... |
[{"size": disk_size, }],[{nictype: nicmode, }], memory=ram, os=os, vcpus=2, | [{"size": disk_size, }],[{nicmode: nictype, }], memory=ram, os=os, vcpus=vcpus, | def create(request, cluster_slug=None): """ Create a new instance Store in DB and Create on given cluster """ user = request.user if not(user.is_superuser or user.perms_on_any(Cluster, ['admin', 'create_vm'])): return HttpResponseForbidden() if cluster_slug is not None: cluster = get_object_or_404(Cluster, slug=cluste... | b82c234077400171b9cce6b7f73b8a6cef249e2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/b82c234077400171b9cce6b7f73b8a6cef249e2a/virtual_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2293,
16,
2855,
67,
6436,
33,
7036,
4672,
3536,
1788,
279,
394,
791,
4994,
316,
2383,
471,
1788,
603,
864,
2855,
3536,
729,
273,
590,
18,
1355,
309,
486,
12,
1355,
18,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2293,
16,
2855,
67,
6436,
33,
7036,
4672,
3536,
1788,
279,
394,
791,
4994,
316,
2383,
471,
1788,
603,
864,
2855,
3536,
729,
273,
590,
18,
1355,
309,
486,
12,
1355,
18,
291,
... |
or ( (len(p) > 2) and p[1] == ":") ) : | or ( (len(p) > 2) and p[1] == ":") ): | def expand_path(p): if ( ( (len(p) > 1) and p[0] == "/") \ or ( (len(p) > 2) and p[1] == ":") ) : # Unix or Windows absolute path. return os.path.normpath(p) else: prefix = os.path.dirname(get_config("path")) return os.path.normpath(os.path.join(prefix, p)) | c5b508253841f7cfab857b0678a404ff97d1ef4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1240/c5b508253841f7cfab857b0678a404ff97d1ef4a/mnemosyne_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
803,
12,
84,
4672,
225,
309,
261,
565,
261,
261,
1897,
12,
84,
13,
405,
404,
13,
471,
293,
63,
20,
65,
422,
4016,
13,
521,
578,
261,
261,
1897,
12,
84,
13,
405,
576,
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,
4542,
67,
803,
12,
84,
4672,
225,
309,
261,
565,
261,
261,
1897,
12,
84,
13,
405,
404,
13,
471,
293,
63,
20,
65,
422,
4016,
13,
521,
578,
261,
261,
1897,
12,
84,
13,
405,
576,
13... |
ch2.SetSelectedItemIndex( 0 ) | ch2.SetSelectedItem( 0 ) | def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log | 559e8e9b8c0ac49102810f4a0e2e93d1ea05e238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/559e8e9b8c0ac49102810f4a0e2e93d1ea05e238/ColumnHeader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
... |
notebook.quit_idle_worksheet_processes() | def notebook_idle_check(): notebook.quit_idle_worksheet_processes() global last_idle_time t = walltime() if t > last_idle_time + idle_interval: notebook.save() last_idle_time = t | 331597f66f23f8a0a93d8b1f5d2997a84ebcd8dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/331597f66f23f8a0a93d8b1f5d2997a84ebcd8dc/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
20390,
67,
1893,
13332,
2552,
1142,
67,
20390,
67,
957,
268,
273,
17662,
957,
1435,
309,
268,
405,
1142,
67,
20390,
67,
957,
397,
12088,
67,
6624,
30,
14718,
18,
5688,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
20390,
67,
1893,
13332,
2552,
1142,
67,
20390,
67,
957,
268,
273,
17662,
957,
1435,
309,
268,
405,
1142,
67,
20390,
67,
957,
397,
12088,
67,
6624,
30,
14718,
18,
5688,
1435,
... | |
if not (inhibit_p or self.inhibit_p or self.in_pre or self.formatter.in_p or self.no_862): | if not (inhibit_p or self.inhibit_p or self.in_pre or self.formatter.in_p): | def scan(self, line, inhibit_p=False): """ Scans one line Append text before match, invoke replace() with match, and add text after match. """ result = [] lastpos = 0 # absolute position within line line_length = len(line) | 099b5af37aecdee05032e3a30b1b70efa5ff5eb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/099b5af37aecdee05032e3a30b1b70efa5ff5eb2/text_moin_wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
12,
2890,
16,
980,
16,
316,
31597,
67,
84,
33,
8381,
4672,
3536,
2850,
634,
1245,
980,
6181,
977,
1865,
845,
16,
4356,
1453,
1435,
598,
845,
16,
471,
527,
977,
1839,
845,
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,
4135,
12,
2890,
16,
980,
16,
316,
31597,
67,
84,
33,
8381,
4672,
3536,
2850,
634,
1245,
980,
6181,
977,
1865,
845,
16,
4356,
1453,
1435,
598,
845,
16,
471,
527,
977,
1839,
845,
18,
3... |
Traceback (most recent call last): ... TypeError: Unable to coerce 0.00000000000000000 (<type 'mpfr.RealNumber'>) to Rational | (0 : 0 : 1) | def __cmp__(self, other): if isinstance(other, (int, long, rings.Integer)) and other == 0: if self.is_zero(): return 0 else: return -1 return SchemePoint_projective_abelian_scheme.__cmp__(self, other) | d927ce05d7e52e248c1a7b9cba681d7cca5db79c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/d927ce05d7e52e248c1a7b9cba681d7cca5db79c/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
261,
474,
16,
1525,
16,
26537,
18,
4522,
3719,
471,
1308,
422,
374,
30,
309,
365,
18,
291,
67,
7124,
13332,
327,
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,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
261,
474,
16,
1525,
16,
26537,
18,
4522,
3719,
471,
1308,
422,
374,
30,
309,
365,
18,
291,
67,
7124,
13332,
327,
3... |
for i in range(numtasks): newtask() | def newtask(): global next_ident, running mutex.acquire() next_ident = next_ident + 1 if verbose: print 'creating task', next_ident thread.start_new_thread(task, (next_ident,)) running = running + 1 mutex.release() | 66865d2ebd5a877523dbc87be2d86aafb3cdc59a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/66865d2ebd5a877523dbc87be2d86aafb3cdc59a/test_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4146,
13332,
2552,
1024,
67,
6392,
16,
3549,
9020,
18,
1077,
1039,
1435,
1024,
67,
6392,
273,
1024,
67,
6392,
397,
404,
309,
3988,
30,
1172,
296,
23799,
1562,
2187,
1024,
67,
6392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4146,
13332,
2552,
1024,
67,
6392,
16,
3549,
9020,
18,
1077,
1039,
1435,
1024,
67,
6392,
273,
1024,
67,
6392,
397,
404,
309,
3988,
30,
1172,
296,
23799,
1562,
2187,
1024,
67,
6392,
... | |
self._record_member(tarinfo) | self.members.append(tarinfo) | def proc_sparse(self, tarinfo): """Analyze a GNU sparse header plus extra headers. """ buf = tarinfo.tobuf() sp = _ringbuffer() pos = 386 lastpos = 0L realpos = 0L # There are 4 possible sparse structs in the # first header. for i in xrange(4): try: offset = int(buf[pos:pos + 12], 8) numbytes = int(buf[pos + 12:pos + 2... | c23c3ef50067bbfc7538d3ea9d8f68f85cf0f577 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c23c3ef50067bbfc7538d3ea9d8f68f85cf0f577/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
17472,
12,
2890,
16,
8232,
1376,
4672,
3536,
31984,
279,
611,
50,
57,
9387,
1446,
8737,
2870,
1607,
18,
3536,
1681,
273,
8232,
1376,
18,
869,
4385,
1435,
1694,
273,
389,
8022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
17472,
12,
2890,
16,
8232,
1376,
4672,
3536,
31984,
279,
611,
50,
57,
9387,
1446,
8737,
2870,
1607,
18,
3536,
1681,
273,
8232,
1376,
18,
869,
4385,
1435,
1694,
273,
389,
8022,
... |
ctx = SSL.Context() ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9, self.verify_cb_new) s = SSL.Connection(ctx) try: s.connect(self.srv_addr) except SSL.SSLError, e: assert 0, e data = self.http_get(s) s.close() self.stop_server(pid) | try: ctx = SSL.Context() ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9, self.verify_cb_new) s = SSL.Connection(ctx) try: s.connect(self.srv_addr) except SSL.SSLError, e: assert 0, e data = self.http_get(s) s.close() finally: self.stop_server(pid) | def test_verify_cb_new(self): pid = self.start_server(self.args) ctx = SSL.Context() ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9, self.verify_cb_new) s = SSL.Connection(ctx) try: s.connect(self.srv_addr) except SSL.SSLError, e: assert 0, e data = self.http_get(s) s.close() self.stop_server(pid) ... | 787f56abaf95d4b31f93406cbd1f766e498b370b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/787f56abaf95d4b31f93406cbd1f766e498b370b/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8705,
67,
7358,
67,
2704,
12,
2890,
4672,
4231,
273,
365,
18,
1937,
67,
3567,
12,
2890,
18,
1968,
13,
775,
30,
1103,
273,
7419,
18,
1042,
1435,
1103,
18,
542,
67,
8705,
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,
8705,
67,
7358,
67,
2704,
12,
2890,
4672,
4231,
273,
365,
18,
1937,
67,
3567,
12,
2890,
18,
1968,
13,
775,
30,
1103,
273,
7419,
18,
1042,
1435,
1103,
18,
542,
67,
8705,
12,... |
fd = open(configfile[0:-4]) | fd = open(str(configfile[0:-4])) | def convert_config(self, configfile): """ unpickles the specified file into a hash """ config_hash = None try: fd = open(configfile[0:-4]) config_hash = pickle.load(fd) fd.close() except: return # This is soooooo nasty, way too many if statements.... for key in config_hash.keys(): if key == "blogs": if len(config_hash... | cc7a40d8695d3ec7964e0c14ff1d4ef0e06b3c7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2266/cc7a40d8695d3ec7964e0c14ff1d4ef0e06b3c7c/PyQLoggerConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
1425,
12,
2890,
16,
642,
768,
4672,
3536,
640,
11503,
1040,
326,
1269,
585,
1368,
279,
1651,
3536,
642,
67,
2816,
273,
599,
775,
30,
5194,
273,
1696,
12,
701,
12,
1425,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
1425,
12,
2890,
16,
642,
768,
4672,
3536,
640,
11503,
1040,
326,
1269,
585,
1368,
279,
1651,
3536,
642,
67,
2816,
273,
599,
775,
30,
5194,
273,
1696,
12,
701,
12,
1425,
768,
... |
pb = PasswordInputBox(text=_('Enter Password'), handler=self.pass_cmp_cp) | pb = PasswordInputBox(text=_('Enter Password'), handler=self.pass_cmp_cb) | def check_password_and_build(self, arg=None, menuw=None): """ password checker """ if not self.menuw: self.menuw = menuw | b7088ab556a45d487d78a8c033b6abca6262ef3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/b7088ab556a45d487d78a8c033b6abca6262ef3d/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3664,
67,
464,
67,
3510,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
2201,
12489,
3536,
309,
486,
365,
18,
5414,
91,
30,
365,
18,
5414,
91,
273,
3824,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3664,
67,
464,
67,
3510,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
2201,
12489,
3536,
309,
486,
365,
18,
5414,
91,
30,
365,
18,
5414,
91,
273,
3824,
... |
return True for head in contact.profile: if head.flags & head.HEAD: widget = self.ui.headFrame else: widget = self.ui.profileTab self.process_node(head, widget) return False | missing_fields.add('profile') elif not self.loaded_profile: self.loaded_profile = True for head in contact.profile: if head.flags & head.HEAD: widget = self.ui.headFrame else: widget = self.ui.profileTab self.process_node(head, widget) return missing_fields | def gotProfile(self, backend, contact): if not backend: return | 8be616252166b349297db8cb82c5a76c6137e35c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/8be616252166b349297db8cb82c5a76c6137e35c/contacts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
4029,
12,
2890,
16,
4221,
16,
5388,
4672,
309,
486,
4221,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
4029,
12,
2890,
16,
4221,
16,
5388,
4672,
309,
486,
4221,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.