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 |
|---|---|---|---|---|---|---|
self.assertEqual(len(w.warnings), 1) self.assertWarning(None, w, "Overriding __cmp__ blocks inheritance of __hash__ in 3.x") | self.assertEqual(len(w.warnings), 0) | def __cmp__(self, other): pass | ec27d91741d93f3307208bb3faff590446eac0b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/ec27d91741d93f3307208bb3faff590446eac0b7/test_py3kwarn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.assertEquals({'status': 'closed'}, closed['qry_args'], 'qry_args incorrect') | self.assertEquals({'status': 'closed', 'group': 'resolution'}, closed['qry_args'], 'qry_args incorrect') | def test_closed_interval(self): closed = self.stats.intervals[0] self.assertEquals('closed', closed['title'], 'closed title incorrect') self.assertEquals('closed', closed['css_class'], 'closed class incorrect') self.assertEquals(True, closed['countsToProg'], 'closed not count to prog') self.assertEquals({'status': 'clo... | 9cad2d7cbb5a087d0a00f643390ab5eb3f3bc4ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/9cad2d7cbb5a087d0a00f643390ab5eb3f3bc4ae/roadmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12204,
67,
6624,
12,
2890,
4672,
4375,
273,
365,
18,
5296,
18,
19812,
63,
20,
65,
365,
18,
11231,
8867,
2668,
12204,
2187,
4375,
3292,
2649,
17337,
296,
12204,
2077,
11332,
613... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12204,
67,
6624,
12,
2890,
4672,
4375,
273,
365,
18,
5296,
18,
19812,
63,
20,
65,
365,
18,
11231,
8867,
2668,
12204,
2187,
4375,
3292,
2649,
17337,
296,
12204,
2077,
11332,
613... |
if next_level > item.level: | if next_level is None: context['css_class'] += ' last' elif next_level > item.level: | def get_next_item(item, remaining, prev_level=-1, extra_context=None): context.push() | 743625eff23ed497bc476be757fc2f630d0a2f14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10899/743625eff23ed497bc476be757fc2f630d0a2f14/incunafein_tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
1726,
12,
1726,
16,
4463,
16,
2807,
67,
2815,
29711,
21,
16,
2870,
67,
2472,
33,
7036,
4672,
819,
18,
6206,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
1726,
12,
1726,
16,
4463,
16,
2807,
67,
2815,
29711,
21,
16,
2870,
67,
2472,
33,
7036,
4672,
819,
18,
6206,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
u = str(self.__unit) | u = repr(self.__unit) | def _repr_(self): cr = self._cr() if len(self) == 0: return str(self.__unit) try: atomic = ((isinstance(self[0][0], (int, long)) or \ self.base_ring().is_atomic_repr())) except AttributeError: atomic = False s = '' mul = ' * ' if cr: mul += '\n' for i in range(len(self)): t = str(self[i][0]) n = self[i][1] if (n>1 or ... | 69d1b9326bfec0216fc83a96fec3511e3703230c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69d1b9326bfec0216fc83a96fec3511e3703230c/factorization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
4422,
273,
365,
6315,
3353,
1435,
309,
562,
12,
2890,
13,
422,
374,
30,
327,
609,
12,
2890,
16186,
4873,
13,
775,
30,
7960,
273,
14015,
291,
1336,
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,
389,
12715,
67,
12,
2890,
4672,
4422,
273,
365,
6315,
3353,
1435,
309,
562,
12,
2890,
13,
422,
374,
30,
327,
609,
12,
2890,
16186,
4873,
13,
775,
30,
7960,
273,
14015,
291,
1336,
12,
... |
container = result | def run(self): try: ids = self._leakDetector.getContainerIds() for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except: # reference is invalid, remove it self._leakDetector.removeContainerById(id) except Exception, e: print 'PruneContainerRefs job ca... | d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
2170,
2673,
1435,
364,
612,
316,
3258,
30,
2824,
599,
775,
30,
364,
563,
316,
365,
6315,
298,
581,
12594,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
2170,
2673,
1435,
364,
612,
316,
3258,
30,
2824,
599,
775,
30,
364,
563,
316,
365,
6315,
298,
581,
12594,... | |
def self.validate_hook(self, module): | def validate_hook(self, module): | def self.validate_hook(self, module): if self.debug_output >= DEBUG_ALL: print "Validating execution hooks: %s" % True return True | 75dbf626c3b697e568752995866893479a555cae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/75dbf626c3b697e568752995866893479a555cae/moduleloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4476,
12,
2890,
16,
1605,
4672,
309,
365,
18,
4148,
67,
2844,
1545,
6369,
67,
4685,
30,
1172,
315,
31496,
4588,
9153,
30,
738,
87,
6,
738,
1053,
327,
1053,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
67,
4476,
12,
2890,
16,
1605,
4672,
309,
365,
18,
4148,
67,
2844,
1545,
6369,
67,
4685,
30,
1172,
315,
31496,
4588,
9153,
30,
738,
87,
6,
738,
1053,
327,
1053,
2,
-100,
-100,
-... |
tests.remove("test_file") tests.insert(tests.index("test_optparse"), "test_file") | def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False, exclude=False, single=False, randomize=False, fromfile=None, findleaks=False, use_resources=None, trace=False, coverdir='coverage', runleaks=False, huntrleaks=False, verbose2=False): """Execute a test suite. This also parses command-line option... | b94ebb1c610f0c6347fd988a4740e747b006de56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b94ebb1c610f0c6347fd988a4740e747b006de56/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
8381,
16,
2103,
33,
8381,
16,
4433,
33,
8381,
16,
2202,
33,
8381,
16,
2744,
554,
33,
8381,
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,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
8381,
16,
2103,
33,
8381,
16,
4433,
33,
8381,
16,
2202,
33,
8381,
16,
2744,
554,
33,
8381,
16,
... | |
if string.find(style, txt) != -1: | if style.find(txt) != -1: | def findInStyles(self, txt, styles): for style in styles: if string.find(style, txt) != -1: return True return False | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
382,
9725,
12,
2890,
16,
6463,
16,
5687,
4672,
364,
2154,
316,
5687,
30,
309,
2154,
18,
4720,
12,
5830,
13,
480,
300,
21,
30,
327,
1053,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
382,
9725,
12,
2890,
16,
6463,
16,
5687,
4672,
364,
2154,
316,
5687,
30,
309,
2154,
18,
4720,
12,
5830,
13,
480,
300,
21,
30,
327,
1053,
327,
1083,
2,
-100,
-100,
-100,
-100,
-... |
imageviewer().cache(self) | viewer.cache(self) | def cache(self): """ caches (loads) the next image """ imageviewer().cache(self) | 0710989ab5e31436736f020e1e3d5ba0dfecca41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/0710989ab5e31436736f020e1e3d5ba0dfecca41/imageitem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
12,
2890,
4672,
3536,
12535,
261,
17135,
13,
326,
1024,
1316,
3536,
1316,
25256,
7675,
2493,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1247,
12,
2890,
4672,
3536,
12535,
261,
17135,
13,
326,
1024,
1316,
3536,
1316,
25256,
7675,
2493,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if "pickle" in result: result.update(attrs_defaults[type_name]) if result["pickle"]: pickle = cPickle.loads(str(result["pickle"])) result.update(pickle) del result["pickle"] | if result["pickle"]: pickle = cPickle.loads(str(result["pickle"])) result.update(pickle) del result["pickle"] | def normalize_query_results(self, (query_info, results)): """ Takes a results tuple as returned from query() and converts to a list of dicts. Each result dict is given a "type" entry which corresponds to the type name of that object. This function also unpickles the pickle contained in the row, and creates a "parent"... | 558097a03f36101ed3955cb593f3c2e895dbb2bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/558097a03f36101ed3955cb593f3c2e895dbb2bf/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2271,
67,
4717,
12,
2890,
16,
261,
2271,
67,
1376,
16,
1686,
3719,
30,
3536,
23004,
279,
1686,
3193,
487,
2106,
628,
843,
1435,
471,
7759,
358,
279,
666,
434,
15838,
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,
3883,
67,
2271,
67,
4717,
12,
2890,
16,
261,
2271,
67,
1376,
16,
1686,
3719,
30,
3536,
23004,
279,
1686,
3193,
487,
2106,
628,
843,
1435,
471,
7759,
358,
279,
666,
434,
15838,
18,
225,... |
self.progress = current_status | self.progress = 1 - current_status | def tick_operation(self, op): """ Op handler for regular tick op """ print "Logging.tick" res=Message() | b4c3fdf21e7d1b3e24f6012c031162cabdd9b546 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/b4c3fdf21e7d1b3e24f6012c031162cabdd9b546/Logging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
67,
7624,
12,
2890,
16,
1061,
4672,
3536,
6066,
1838,
364,
6736,
4024,
1061,
3536,
1172,
315,
7735,
18,
6470,
6,
400,
33,
1079,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
4024,
67,
7624,
12,
2890,
16,
1061,
4672,
3536,
6066,
1838,
364,
6736,
4024,
1061,
3536,
1172,
315,
7735,
18,
6470,
6,
400,
33,
1079,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
class Proxy (Object): | class Proxy (object): | def handle_close (self): self.close () while self.sql_defered: self.async_net_continue ('N.') | e15d558cd54fa2d57a860415973cbaf0f8c5da0f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2577/e15d558cd54fa2d57a860415973cbaf0f8c5da0f/ansqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4412,
261,
2890,
4672,
365,
18,
4412,
1832,
1323,
365,
18,
4669,
67,
18974,
329,
30,
365,
18,
3810,
67,
2758,
67,
17143,
7707,
50,
1093,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4412,
261,
2890,
4672,
365,
18,
4412,
1832,
1323,
365,
18,
4669,
67,
18974,
329,
30,
365,
18,
3810,
67,
2758,
67,
17143,
7707,
50,
1093,
13,
2,
-100,
-100,
-100,
-100,
-100,
... |
if self.olddb is not None: pd = QProgressDialog('', '', 0, 100, self) pd.setWindowModality(Qt.ApplicationModal) pd.setCancelButton(None) pd.setWindowTitle(_('Migrating database')) pd.show() number_of_books = db.migrate_old(self.olddb, pd) self.olddb.close() if number_of_books == 0: os.remove(self.olddb.dbpath) self.old... | prefs['library_path'] = self.library_path | def default_sync(checked): config.set('send_to_storage_card_by_default', bool(checked)) QObject.disconnect(self.action_sync, SIGNAL("triggered(bool)"), self.sync_to_main_memory) QObject.disconnect(self.action_sync, SIGNAL("triggered(bool)"), self.sync_to_card) QObject.connect(self.action_sync, SIGNAL("triggered(bool)")... | 6b1d2571c1cff06fae9a975bebc5cf7784553814 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/6b1d2571c1cff06fae9a975bebc5cf7784553814/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
8389,
12,
4532,
4672,
642,
18,
542,
2668,
4661,
67,
869,
67,
5697,
67,
3327,
67,
1637,
67,
1886,
2187,
1426,
12,
4532,
3719,
2238,
921,
18,
20177,
12,
2890,
18,
1128,
67,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
8389,
12,
4532,
4672,
642,
18,
542,
2668,
4661,
67,
869,
67,
5697,
67,
3327,
67,
1637,
67,
1886,
2187,
1426,
12,
4532,
3719,
2238,
921,
18,
20177,
12,
2890,
18,
1128,
67,
83... |
/.../release/RunChandler --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests=TestAllDayEvent.py -F -D2 -M0 | /.../chandler --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --chandlerTests=TestAllDayEvent.py -F -D2 -M0 | def runFuncTest(options, test='FunctionalTestSuite.py'): """ Run functional test >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release', 'debug'] >>> runFuncTest(options) /.../release/RunChandler... --create --catch=tests --profile... | 2268248f0e4728b63ca1842648cbad866d679472 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/2268248f0e4728b63ca1842648cbad866d679472/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2622,
4709,
12,
2116,
16,
1842,
2218,
2083,
287,
4709,
13587,
18,
2074,
11,
4672,
3536,
1939,
18699,
1842,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
408... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2622,
4709,
12,
2116,
16,
1842,
2218,
2083,
287,
4709,
13587,
18,
2074,
11,
4672,
3536,
1939,
18699,
1842,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
408... |
if i.path and config["transfers"]["shownotification"] or config["transfers"]["afterfolder"]: | if i.path and (config["transfers"]["shownotificationperfolder"] or config["transfers"]["afterfolder"]): | def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is N... | b8a66b7d2b7dcb72cec6980c8053118074f05f85 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/b8a66b7d2b7dcb72cec6980c8053118074f05f85/transfers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
7109,
12,
2890,
16,
1234,
4672,
3536,
432,
585,
4224,
353,
316,
4007,
8395,
1608,
2725,
273,
404,
642,
273,
365,
18,
2575,
8700,
18,
1425,
18,
11657,
364,
277,
316,
365,
18,
7813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
7109,
12,
2890,
16,
1234,
4672,
3536,
432,
585,
4224,
353,
316,
4007,
8395,
1608,
2725,
273,
404,
642,
273,
365,
18,
2575,
8700,
18,
1425,
18,
11657,
364,
277,
316,
365,
18,
7813... |
yield String(self, "name", self.NAME_SIZE, strip='\0') | yield String(self, "name", 28, strip='\0') | def createFields(self): yield self.getType() yield String(self, "filename", 12, strip='\0') | 9ef711ca7fb1d8fd1e3824891eb445ebdc0eb9e9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/9ef711ca7fb1d8fd1e3824891eb445ebdc0eb9e9/s3m.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
365,
18,
588,
559,
1435,
2824,
514,
12,
2890,
16,
315,
3459,
3113,
2593,
16,
2569,
2218,
64,
20,
6134,
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,
752,
2314,
12,
2890,
4672,
2824,
365,
18,
588,
559,
1435,
2824,
514,
12,
2890,
16,
315,
3459,
3113,
2593,
16,
2569,
2218,
64,
20,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
define_macros = [('_CRT_[SECURE_NO_WARNINGS', '1')] | macros = [('_CRT_SECURE_NO_WARNINGS', '1')] | def __init__(self, *args, **kwargs): Extension.__init__(self, *args, **kwargs) self.export_symbols = finallist(self.export_symbols) | f217719b204f6daa90050f47cca7c6295d3bddff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/f217719b204f6daa90050f47cca7c6295d3bddff/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
10021,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
6530,
67,
15536,
273,
574,
454,
376,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
10021,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
6530,
67,
15536,
273,
574,
454,
376,
12,
... |
mp = self.__namespace.modulePath() if mp is not None: self._setModulePath(mp) | self._setModulePath(self.__namespace.modulePath()) | def __init__ (self, generator, namespace, ns_scc, components=None, **kw): super(NamespaceModule, self).__init__(generator, **kw) self._initializeUniqueInModule(self._UniqueInModule) self.__namespace = namespace self.defineNamespace(namespace, 'Namespace', require_unique=False) print 'NSM Namespace %s module path %s' % ... | 8bb76cad88838122aa395cb75ff97c58226e68ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/8bb76cad88838122aa395cb75ff97c58226e68ca/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
4456,
16,
1981,
16,
3153,
67,
87,
952,
16,
4085,
33,
7036,
16,
2826,
9987,
4672,
2240,
12,
3402,
3120,
16,
365,
2934,
972,
2738,
972,
12,
8812,
16,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
4456,
16,
1981,
16,
3153,
67,
87,
952,
16,
4085,
33,
7036,
16,
2826,
9987,
4672,
2240,
12,
3402,
3120,
16,
365,
2934,
972,
2738,
972,
12,
8812,
16,
28... |
if bodyrefs and stride != 0: bodyrefs.add(None) | if stride != 0: bodyrefs.addunsure(None) | def prereferences(self): bodyrefs = self.bodyprereferences() stride = self.stride() if bodyrefs and stride != 0: bodyrefs.add(None) return bodyrefs | 71e0598bb7dc6d9b90f66161eeb283e8ddccc073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/71e0598bb7dc6d9b90f66161eeb283e8ddccc073/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30328,
2980,
12,
2890,
4672,
1417,
9316,
273,
365,
18,
3432,
683,
822,
2980,
1435,
11084,
273,
365,
18,
27937,
1435,
309,
11084,
480,
374,
30,
1417,
9316,
18,
1289,
318,
2055,
12,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30328,
2980,
12,
2890,
4672,
1417,
9316,
273,
365,
18,
3432,
683,
822,
2980,
1435,
11084,
273,
365,
18,
27937,
1435,
309,
11084,
480,
374,
30,
1417,
9316,
18,
1289,
318,
2055,
12,
7036,
... |
celist = TiersOfATLAS.listCEsInCloudByDomain('*'+domainname) | try: celist = TiersOfATLAS.listCEsInCloudByDomain('*'+domainname) except: celist = [] | def findsetype(sitesrm): setype= 'NULL' if sitesrm.find('castor')>=0: setype = 'CASTOR' elif sitesrm.find('dpm')>=0: setype = 'DPM' elif sitesrm.find('pnfs')>=0: setype = 'DCACHE' elif sitesrm.find('/nfs/')>=0: setype = 'NFS' return setype | b10964954d6f20e39fbcc62461b1516ca8a022e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/b10964954d6f20e39fbcc62461b1516ca8a022e0/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9... |
""" Returns the number of n-colorings of the graph G for n from 0 to |V|. EXAMPLES: | r""" Returns the number of `n`-colorings of the graph `G` for `n` from `0` to `|V|`. EXAMPLES:: | def numbers_of_colorings(G): """ Returns the number of n-colorings of the graph G for n from 0 to |V|. EXAMPLES: sage: from sage.graphs.graph_coloring import numbers_of_colorings sage: G = Graph({0:[1,2,3],1:[2]}) sage: numbers_of_colorings(G) [0, 0, 0, 12, 72] """ o = G.order() return [number_of_n_colorings(G,i) for ... | 7056b61dfa30c6705aab69c7fdf3017463c8aae2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7056b61dfa30c6705aab69c7fdf3017463c8aae2/graph_coloring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5600,
67,
792,
67,
3266,
899,
12,
43,
4672,
436,
8395,
2860,
326,
1300,
434,
1375,
82,
68,
17,
3266,
899,
434,
326,
2667,
1375,
43,
68,
364,
1375,
82,
68,
628,
1375,
20,
68,
358,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5600,
67,
792,
67,
3266,
899,
12,
43,
4672,
436,
8395,
2860,
326,
1300,
434,
1375,
82,
68,
17,
3266,
899,
434,
326,
2667,
1375,
43,
68,
364,
1375,
82,
68,
628,
1375,
20,
68,
358,
1... |
sender = (opts['from'] or ui.config('email', 'from') or ui.config('patchbomb', 'from') or prompt('From', ui.username())) def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs ... | def genmsgid(id): return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn()) | d8c81408241bab99886793f520fe8073ffce12d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/d8c81408241bab99886793f520fe8073ffce12d2/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
3576,
350,
12,
350,
4672,
327,
2368,
9,
87,
7866,
87,
36,
9,
87,
1870,
738,
261,
350,
10531,
3462,
6487,
509,
12,
1937,
67,
957,
63,
20,
65,
3631,
2987,
18,
588,
19206,
5176,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
3576,
350,
12,
350,
4672,
327,
2368,
9,
87,
7866,
87,
36,
9,
87,
1870,
738,
261,
350,
10531,
3462,
6487,
509,
12,
1937,
67,
957,
63,
20,
65,
3631,
2987,
18,
588,
19206,
5176,
... | |
print "Changing hierarchy for %s..." % repr(data) | def changeHierarchy(self, data, x, y): print "Changing hierarchy for %s..." % repr(data) | ca32727cc5bb3298e217074ff838c7a9f8ab45a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/ca32727cc5bb3298e217074ff838c7a9f8ab45a0/SceneGraphUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12074,
12,
2890,
16,
501,
16,
619,
16,
677,
4672,
1172,
315,
782,
18183,
9360,
364,
738,
87,
7070,
738,
8480,
12,
892,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12074,
12,
2890,
16,
501,
16,
619,
16,
677,
4672,
1172,
315,
782,
18183,
9360,
364,
738,
87,
7070,
738,
8480,
12,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
defaultIcon = getResource('pygame_icon.tiff') | defaultIcon = getResource('pygame_icon.tiff').read() | def setIcon(app): try: defaultIcon = getResource('pygame_icon.tiff') except IOError: return data = NSData.dataWithBytes_length_(defaultIcon, len(defaultIcon)) if data is None: return img = NSImage.alloc().initWithData_(data) if img is None: return app.setApplicationIconImage_(img) | f5065554b547e2a8f1626849951ac42dd750b8a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/f5065554b547e2a8f1626849951ac42dd750b8a4/macosx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21481,
12,
2910,
4672,
775,
30,
805,
5554,
273,
5070,
2668,
2074,
13957,
67,
3950,
18,
88,
3048,
16063,
896,
1435,
1335,
8340,
30,
327,
501,
273,
11472,
751,
18,
892,
1190,
2160,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21481,
12,
2910,
4672,
775,
30,
805,
5554,
273,
5070,
2668,
2074,
13957,
67,
3950,
18,
88,
3048,
16063,
896,
1435,
1335,
8340,
30,
327,
501,
273,
11472,
751,
18,
892,
1190,
2160,
67,
2... |
return AlgebraicReal(self.norm(self)).sqrt()._descr | return AlgebraicReal(self.norm(n)).sqrt()._descr | def abs(self, n): return AlgebraicReal(self.norm(self)).sqrt()._descr | 9d6efb294179e77392be48f56eb8344fa9b9a003 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9d6efb294179e77392be48f56eb8344fa9b9a003/qqbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2417,
12,
2890,
16,
290,
4672,
327,
2262,
29087,
335,
6955,
12,
2890,
18,
7959,
12,
2890,
13,
2934,
24492,
1435,
6315,
28313,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2417,
12,
2890,
16,
290,
4672,
327,
2262,
29087,
335,
6955,
12,
2890,
18,
7959,
12,
2890,
13,
2934,
24492,
1435,
6315,
28313,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return items | return sorted(items, key=lambda v:v[0].lower()) | def build_term_index(self): items = [] for doc in self.indexed_docs: url = self.url(doc) items += self._terms_from_docstring(url, doc, doc.descr) for (field, arg, descr) in doc.metadata: items += self._terms_from_docstring(url, doc, descr) if hasattr(doc, 'type_descr'): items += self._terms_from_docstring(url, doc, doc... | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
6408,
67,
1615,
12,
2890,
4672,
1516,
273,
5378,
364,
997,
316,
365,
18,
19626,
67,
8532,
30,
880,
273,
365,
18,
718,
12,
2434,
13,
1516,
1011,
365,
6315,
10112,
67,
2080,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6408,
67,
1615,
12,
2890,
4672,
1516,
273,
5378,
364,
997,
316,
365,
18,
19626,
67,
8532,
30,
880,
273,
365,
18,
718,
12,
2434,
13,
1516,
1011,
365,
6315,
10112,
67,
2080,
... |
outputpath = self.fspath.dirpath('output', self.name) | outputpath = self.fspath.dirpath('output', self.fspath.purebasename) | def run(self): outputpath = self.fspath.dirpath('output', self.name) if not outputpath.check(): py.test.fail("expected outputfile at %s" %(outputpath,)) | 8d4abe111f248e7c6e79c861bc62a17bc6d8f3e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/8d4abe111f248e7c6e79c861bc62a17bc6d8f3e6/conftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
876,
803,
273,
365,
18,
2556,
803,
18,
1214,
803,
2668,
2844,
2187,
365,
18,
2556,
803,
18,
84,
594,
13909,
13,
309,
486,
876,
803,
18,
1893,
13332,
2395,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
876,
803,
273,
365,
18,
2556,
803,
18,
1214,
803,
2668,
2844,
2187,
365,
18,
2556,
803,
18,
84,
594,
13909,
13,
309,
486,
876,
803,
18,
1893,
13332,
2395,
18,
3... |
does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional xmldoc argument is provided and not None, the parsed XML tree will be appended to that document, otherwise a new document will be created. The return value is a tuple, the first element of the tuple is the... | does not need to be seekable. If the gz parameter is None (the default) then gzip compressed data will be automatically detected and decompressed, otherwise decompression can be forced on or off by setting gz to True or False respectively. If the optional xmldoc argument is provided and not None, the parsed XML tree ... | def load_fileobj(fileobj, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file object fileobj, and return the contents as a LIGO Light Weight document tree. The file object does not need to be seekable. The file is gzip decompressed while reading if gz is set to True. If the optional... | a6609b0e22abdcb993241fb93f7d83d0e32abf28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/a6609b0e22abdcb993241fb93f7d83d0e32abf28/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
768,
2603,
12,
768,
2603,
16,
14136,
273,
1083,
16,
2025,
2434,
273,
599,
16,
913,
4176,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
733,
17041,
16,
471,
327,
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,
1262,
67,
768,
2603,
12,
768,
2603,
16,
14136,
273,
1083,
16,
2025,
2434,
273,
599,
16,
913,
4176,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
733,
17041,
16,
471,
327,
326,
... |
... SyntaxError: 'return' with argument inside generator (<string>, line 3) | .. SyntaxError: 'return' with argument inside generator (..., line 3) | >>> def f(): | ff60a559da3fcbad664672d8df57092e63bbc05c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ff60a559da3fcbad664672d8df57092e63bbc05c/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sys.last_type and sys.last_value. The return value is a list of | sys.exc_info()[0] and sys.exc_info()[1]. The return value is a list of | def format_exception_only(etype, value): """Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError... | 0fd195c81d2eb354e2bdb2e86dfd2c2c47844135 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/0fd195c81d2eb354e2bdb2e86dfd2c2c47844135/traceback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
10075... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
10075... |
def bind(self, sequence=None, command=None): return self.canvas.tag_bind(self.id, sequence, command) def unbind(self, sequence): self.canvas.tag_bind(self.id, sequence, '') | def bind(self, sequence=None, command=None, add=None): return self.canvas.tag_bind(self.id, sequence, command, add) def unbind(self, sequence, funcid=None): self.canvas.tag_unbind(self.id, sequence, funcid) | def bind(self, sequence=None, command=None): return self.canvas.tag_bind(self.id, sequence, command) | 00236f38dabd16ffe5da4d75664f051c37833aa5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/00236f38dabd16ffe5da4d75664f051c37833aa5/Canvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
12,
2890,
16,
3102,
33,
7036,
16,
1296,
33,
7036,
4672,
327,
365,
18,
15424,
18,
2692,
67,
4376,
12,
2890,
18,
350,
16,
3102,
16,
1296,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
12,
2890,
16,
3102,
33,
7036,
16,
1296,
33,
7036,
4672,
327,
365,
18,
15424,
18,
2692,
67,
4376,
12,
2890,
18,
350,
16,
3102,
16,
1296,
13,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
frozendllmain_c, extensions_c] + files | frozendllmain_c, os.path.basename(extensions_c)] + files | def main(): # overridable context prefix = None # settable with -p option exec_prefix = None # settable with -P option extensions = [] exclude = [] # settable with -x option addn_link = [] # settable with -l, but only honored under Windows. path = sys.p... | 94f9614360fc8ebe4364718f3af599c648d629f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/94f9614360fc8ebe4364718f3af599c648d629f7/freeze.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
4433,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
4433,
... |
elif long(prefSite) in ceMap.keys(): | elif str(prefSite).isdigit() and long(prefSite) in ceMap.keys(): | def preferredSite(self): """ Generate command line option for ngsub for submitting to a preferred site, if such exist. | 195403efd43037c80686893fe9692788fe7d033a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/195403efd43037c80686893fe9692788fe7d033a/ARCSubmitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9119,
4956,
12,
2890,
4672,
3536,
6654,
1296,
980,
1456,
364,
290,
564,
373,
364,
4879,
1787,
358,
279,
9119,
2834,
16,
309,
4123,
1005,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9119,
4956,
12,
2890,
4672,
3536,
6654,
1296,
980,
1456,
364,
290,
564,
373,
364,
4879,
1787,
358,
279,
9119,
2834,
16,
309,
4123,
1005,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.setViewPerspecAction.setText(QtGui.QApplication.translate("MainWindow", "Perspective", None, QtGui.QApplication.UnicodeUTF8)) self.setViewPerspecAction.setCheckable(True) | self.setViewPerspecAction.setText(QtGui.QApplication.translate("MainWindow", "Perspective", None, QtGui.QApplication.UnicodeUTF8)) self.setViewPerspecAction.setCheckable(True) | def __init__(self, parent = None, name = None): | c25263540add024396d4bcf7631292f1fd2d50bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c25263540add024396d4bcf7631292f1fd2d50bb/MWsemantics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
508,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
982,
273,
599,
16,
508,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
- ``sort`` - bool (default: True), if True return the point list sorted. If False, returns the points in the order computed by Singular. | - ``D`` - a divisor OUTPUT: A list of function field elements that form a basis of the Riemann-Roch space | def riemann_roch_basis(self, D): r""" Return a basis for the Riemann-Roch space corresponding to `D`. | 45f8022bf1ce8a03a200902d10a41e0e02d6cbbd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/45f8022bf1ce8a03a200902d10a41e0e02d6cbbd/projective_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12347,
351,
1072,
67,
303,
343,
67,
23774,
12,
2890,
16,
463,
4672,
436,
8395,
2000,
279,
10853,
364,
326,
21688,
351,
1072,
17,
54,
9842,
3476,
4656,
358,
1375,
40,
8338,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12347,
351,
1072,
67,
303,
343,
67,
23774,
12,
2890,
16,
463,
4672,
436,
8395,
2000,
279,
10853,
364,
326,
21688,
351,
1072,
17,
54,
9842,
3476,
4656,
358,
1375,
40,
8338,
2,
-100,
-10... |
if os.path.exists(iconPath): self.setIcon(geticon(iconPath)) self.setIconSize(QSize(22, 22)) | self.setIcon(geticon(iconPath)) self.setIconSize(QSize(22, 22)) | def __init__(self, parentWidget, label = '', labelColumn = 0, text = '', iconPath = '', setAsDefault = True, spanWidth = False ): """ Appends a QToolButton (Qt) widget to the bottom of I{parentWidget}, a Property Manager group box. @param parentWidget: The parent group box containing this widget... | de95e12f4fd67df46c5e09820c6e5e9e0302d55c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/de95e12f4fd67df46c5e09820c6e5e9e0302d55c/PM_ToolButton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4609,
16,
1433,
3639,
273,
10226,
1433,
1494,
225,
273,
374,
16,
977,
540,
273,
10226,
4126,
743,
377,
273,
10226,
444,
1463,
1868,
273,
1053,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4609,
16,
1433,
3639,
273,
10226,
1433,
1494,
225,
273,
374,
16,
977,
540,
273,
10226,
4126,
743,
377,
273,
10226,
444,
1463,
1868,
273,
1053,
16,
4... |
if not self[opt]: | if not self.has_key(opt): | def parse(self, filename): self["filename"] = filename try: _fd = open(filename, "r") except: raise IOError, "Unable to open '%s'" % filename | 8ca46dfa1d8eed62ea49a09ee900ea152ab7b9a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/8ca46dfa1d8eed62ea49a09ee900ea152ab7b9a3/kickstart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
1544,
4672,
365,
9614,
3459,
11929,
273,
1544,
775,
30,
389,
8313,
273,
1696,
12,
3459,
16,
315,
86,
7923,
1335,
30,
1002,
8340,
16,
315,
3370,
358,
1696,
1995,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
2890,
16,
1544,
4672,
365,
9614,
3459,
11929,
273,
1544,
775,
30,
389,
8313,
273,
1696,
12,
3459,
16,
315,
86,
7923,
1335,
30,
1002,
8340,
16,
315,
3370,
358,
1696,
1995,
87,... |
self.warnings = warnings | def __init__(self, connection, warnings=1): self.connection = connection self.description = None self.rowcount = -1 self.result = None self.arraysize = 100 self.warnings = warnings | 4dcca6779b980ae173a387375f0f35be5e3fead3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10477/4dcca6779b980ae173a387375f0f35be5e3fead3/MySQLdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1459,
16,
5599,
33,
21,
4672,
365,
18,
4071,
273,
1459,
365,
18,
3384,
273,
599,
365,
18,
492,
1883,
273,
300,
21,
365,
18,
2088,
273,
599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1459,
16,
5599,
33,
21,
4672,
365,
18,
4071,
273,
1459,
365,
18,
3384,
273,
599,
365,
18,
492,
1883,
273,
300,
21,
365,
18,
2088,
273,
599,
365,
18,
... | |
options.tools_path) | options.tools_path, options.archive) | def main(): # Command line parsing parser = optparse.OptionParser() # Path where the .coverage to .lcov converter tools are stored. parser.add_option('-t', '--tools_path', dest='tools_path', default=None, help='Location of the coverage tools (windows only)') parser.add_option('-u', '--upload', dest='upload_path', defau... | 1581ad170e9c9d3a92c66b377c35a5abc747dc4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/1581ad170e9c9d3a92c66b377c35a5abc747dc4c/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
3498,
980,
5811,
2082,
273,
2153,
2670,
18,
1895,
2678,
1435,
468,
2666,
1625,
326,
263,
16356,
358,
263,
80,
14014,
6027,
8513,
854,
4041,
18,
2082,
18,
1289,
67,
3482... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
3498,
980,
5811,
2082,
273,
2153,
2670,
18,
1895,
2678,
1435,
468,
2666,
1625,
326,
263,
16356,
358,
263,
80,
14014,
6027,
8513,
854,
4041,
18,
2082,
18,
1289,
67,
3482... |
types.TypeType, types.CodeType, types.FunctionType): | types.TypeType, types.CodeType, types.FunctionType, types.StringType, types.UnicodeType): return True if id(obj) in self._id2ref: | def _isDeadEnd(self, obj): if type(obj) in (types.BooleanType, types.BuiltinFunctionType, types.BuiltinMethodType, types.ComplexType, types.FloatType, types.IntType, types.LongType, types.NoneType, types.NotImplementedType, types.TypeType, types.CodeType, types.FunctionType): return True # if it's an internal object, i... | 88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
11852,
1638,
12,
2890,
16,
1081,
4672,
309,
618,
12,
2603,
13,
316,
261,
2352,
18,
5507,
559,
16,
1953,
18,
28032,
2083,
559,
16,
1953,
18,
28032,
21988,
16,
1953,
18,
12795,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
291,
11852,
1638,
12,
2890,
16,
1081,
4672,
309,
618,
12,
2603,
13,
316,
261,
2352,
18,
5507,
559,
16,
1953,
18,
28032,
2083,
559,
16,
1953,
18,
28032,
21988,
16,
1953,
18,
12795,... |
newdir.linkChild(newname, oldfile) | newdir.linkChild(posixpath.basename(new), oldfile) | def rename(old, new): old = _makeAbsPath(old) new = _makeAbsPath(new) oldfile = _findFileFromPath(old) newdir = None newname = None # foo bar (explicit newname == bar) # foo bar/ (implicit newname == foo) try: newdir = _findFileFromPath(new) newname = posixpath.basename(new) except OSError, e: if e.errno == err... | aa20dce7c6d5bb9f33d932aab3323692451f4886 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/aa20dce7c6d5bb9f33d932aab3323692451f4886/os_mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
1673,
16,
394,
4672,
1592,
273,
389,
6540,
9382,
743,
12,
1673,
13,
394,
273,
389,
6540,
9382,
743,
12,
2704,
13,
225,
1592,
768,
273,
389,
4720,
812,
23064,
12,
1673,
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,
6472,
12,
1673,
16,
394,
4672,
1592,
273,
389,
6540,
9382,
743,
12,
1673,
13,
394,
273,
389,
6540,
9382,
743,
12,
2704,
13,
225,
1592,
768,
273,
389,
4720,
812,
23064,
12,
1673,
13,
... |
return query.group_by(self.commands.c.id).order_by(asc(params['order_by'])) | return query.group_by(self.commands.c.id).order_by(desc(params['order_by'])) | def __displayLogsQuery(self, ctx, params, session): query = session.query(Commands).select_from(self.commands.join(self.commands_on_host).join(self.target)) if params['gid'] != None: query = query.filter(self.target.c.id_group == params['gid']) if params['uuid'] != None: query = query.filter(self.target.c.target_uuid =... | f0786077fc96513fb6c0976321f26a8b859f6371 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/f0786077fc96513fb6c0976321f26a8b859f6371/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5417,
7777,
1138,
12,
2890,
16,
1103,
16,
859,
16,
1339,
4672,
843,
273,
1339,
18,
2271,
12,
9127,
2934,
4025,
67,
2080,
12,
2890,
18,
7847,
18,
5701,
12,
2890,
18,
7847,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5417,
7777,
1138,
12,
2890,
16,
1103,
16,
859,
16,
1339,
4672,
843,
273,
1339,
18,
2271,
12,
9127,
2934,
4025,
67,
2080,
12,
2890,
18,
7847,
18,
5701,
12,
2890,
18,
7847,
67,
2... |
startdate = utils.parsedate(self.input['start-date']).replace(day=1) | startdate = utils.parsedate( self.input['start-date']).replace(day=1) | def format_minimester_sortkey(self, value): """The minimester sortkey is based on the ordinal value of the start date of a course in the minimester. The start date is normalized by replacing its day of the month with a 1 (e.g. 08/03/2006 -> 08/01/2006). | 20eab91c91a9f72ec790d8c5d1fb9261b7b89028 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4025/20eab91c91a9f72ec790d8c5d1fb9261b7b89028/formatters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
1154,
4485,
387,
67,
3804,
856,
12,
2890,
16,
460,
4672,
3536,
1986,
1131,
4485,
387,
1524,
856,
353,
2511,
603,
326,
12675,
460,
434,
326,
787,
1509,
434,
279,
4362,
316,
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,
740,
67,
1154,
4485,
387,
67,
3804,
856,
12,
2890,
16,
460,
4672,
3536,
1986,
1131,
4485,
387,
1524,
856,
353,
2511,
603,
326,
12675,
460,
434,
326,
787,
1509,
434,
279,
4362,
316,
326... |
for ii in range(imin, imax + 1): | for ii in range(imin, imax + 1): | def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat... | c6a90d820f57455b2ff6063db98cb5e6f7a11f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c6a90d820f57455b2ff6063db98cb5e6f7a11f83/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
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,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... |
self.assertTrue(site.getuserbase().startswith('xoxo')) | self.assertTrue(site.getuserbase().startswith('xoxo'), site.getuserbase()) | def test_getuserbase(self): site.USER_BASE = None user_base = site.getuserbase() | c866588d2bb7dde3fc14ec64c6fe3ce476a08353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/c866588d2bb7dde3fc14ec64c6fe3ce476a08353/test_site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
1355,
1969,
12,
2890,
4672,
2834,
18,
4714,
67,
8369,
273,
599,
729,
67,
1969,
273,
2834,
18,
588,
1355,
1969,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
1355,
1969,
12,
2890,
4672,
2834,
18,
4714,
67,
8369,
273,
599,
729,
67,
1969,
273,
2834,
18,
588,
1355,
1969,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self._note("%s.wait(%s): timed out", self, timeout) try: self.__waiters.remove(waiter) except ValueError: pass | self._note("%s.wait(): got it", self) | def wait(self, timeout=None): me = currentThread() assert self._is_owned(), "wait() of un-acquire()d lock" waiter = _allocate_lock() waiter.acquire() self.__waiters.append(waiter) saved_state = self._release_save() if timeout is None: waiter.acquire() if __debug__: self._note("%s.wait(): got it", self) else: endtime = ... | 8e1ff6cb6ed43197ef43022e05c15595c6db4f9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8e1ff6cb6ed43197ef43022e05c15595c6db4f9b/threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
12,
2890,
16,
2021,
33,
7036,
4672,
1791,
273,
11800,
1435,
1815,
365,
6315,
291,
67,
995,
329,
9334,
315,
7048,
1435,
434,
640,
17,
1077,
1039,
1435,
72,
2176,
6,
17522,
273,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
12,
2890,
16,
2021,
33,
7036,
4672,
1791,
273,
11800,
1435,
1815,
365,
6315,
291,
67,
995,
329,
9334,
315,
7048,
1435,
434,
640,
17,
1077,
1039,
1435,
72,
2176,
6,
17522,
273,
38... |
color("green") left(130) | left(120) | def demo2(): # exercises some new and improved features speed('fast') width(3) # draw a segmented half-circle setheading(towards(0,0)) x,y = position() r = (x**2+y**2)**.5/2.0 right(90) pendown = True for i in range(18): if pendown: up() pendown = False else: down() pendown = True circle(r,10) sleep(2) reset() left(9... | 940f668a51bf98e56ee02b2398c53324deae8c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/940f668a51bf98e56ee02b2398c53324deae8c87/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
22,
13332,
468,
431,
12610,
6141,
2690,
394,
471,
13069,
2155,
4467,
8632,
2668,
8076,
6134,
1835,
12,
23,
13,
225,
468,
3724,
279,
3267,
329,
8816,
17,
18970,
444,
19948,
12,
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,
21477,
22,
13332,
468,
431,
12610,
6141,
2690,
394,
471,
13069,
2155,
4467,
8632,
2668,
8076,
6134,
1835,
12,
23,
13,
225,
468,
3724,
279,
3267,
329,
8816,
17,
18970,
444,
19948,
12,
310... |
(out, unused_err) = proc.communicate() | (out, err) = proc.communicate() if proc.returncode: display_error("installer -query failed: %s" % ( out.decode('UTF-8') + err.decode('UTF-8'))) return None | def getInstallerPkgInfo(filename): """Uses Apple's installer tool to get basic info about an installer item.""" installerinfo = {} proc = subprocess.Popen(['/usr/sbin/installer', '-pkginfo', '-verbose', '-plist', '-pkg', filename], bufsize=1, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (out, unused_err) = proc.comm... | 33ffe3bffb1d0cbbbe667d1fdcfe912ad8117dfe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/33ffe3bffb1d0cbbbe667d1fdcfe912ad8117dfe/munkicommon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
18678,
11264,
966,
12,
3459,
4672,
3536,
15128,
1716,
1802,
1807,
16050,
5226,
358,
336,
5337,
1123,
2973,
392,
16050,
761,
12123,
16050,
1376,
273,
2618,
5418,
273,
6652,
18,
52,
319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18678,
11264,
966,
12,
3459,
4672,
3536,
15128,
1716,
1802,
1807,
16050,
5226,
358,
336,
5337,
1123,
2973,
392,
16050,
761,
12123,
16050,
1376,
273,
2618,
5418,
273,
6652,
18,
52,
319... |
:raise: a `RuleError` if the expression is malformed | :raise RuleError: if the expression is malformed | def to_python(rule): """Convert a list/dict of rules or a `PluralRule` object into a regular Python function. This is useful in situations where you need a real function and don't are about the actual rule object: >>> func = to_python({'one': 'n is 1', 'few': 'n in 2..4'}) >>> func(1) 'one' >>> func(3) 'few' :param ... | fb93d5e6a281a832dcc919a243c028872a58df92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8909/fb93d5e6a281a832dcc919a243c028872a58df92/plural.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8103,
12,
5345,
4672,
3536,
2723,
279,
666,
19,
1576,
434,
2931,
578,
279,
1375,
29497,
68,
733,
1368,
279,
6736,
6600,
445,
18,
225,
1220,
353,
5301,
316,
28474,
1625,
1846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8103,
12,
5345,
4672,
3536,
2723,
279,
666,
19,
1576,
434,
2931,
578,
279,
1375,
29497,
68,
733,
1368,
279,
6736,
6600,
445,
18,
225,
1220,
353,
5301,
316,
28474,
1625,
1846,
... |
editR = re.compile('<li>.*?<a href=".*?" title=".*?">([^<]*)</a> <span class=\'user\'><a href=".*?" title=".*?">([^<]*?)</a></span>.*?(?:<span class=\'comment\'>(.*?)</span>)?</li>') | if self.site().version() < "1.4": editR = re.compile('<li>.*?<a href=".*?" title=".*?">([^<]*)</a> <span class=\'user\'><a href=".*?" title=".*?">([^<]*?)</a></span>.*?(?:<span class=\'comment\'>(.*?)</span>)?</li>') else: editR = re.compile('<li>.*?<a href=".*?" title=".*?">([^<]*)</a> <span class=\'history-user\'><a ... | def getVersionHistory(self, forceReload = False): """ Loads the version history page and returns a list of tuples, where each tuple represents one edit and is built of edit date/time, user name, and edit summary. """ site = self.site() path = site.family.version_history_address(self.site().language(), self.urlname()) | 9cbd57b9fdad927d1182cfa986212a93ea08464f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/9cbd57b9fdad927d1182cfa986212a93ea08464f/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8343,
5623,
12,
2890,
16,
2944,
13013,
273,
1083,
4672,
3536,
4444,
87,
326,
1177,
4927,
1363,
471,
1135,
279,
666,
434,
10384,
16,
1625,
1517,
3193,
8686,
1245,
3874,
471,
353,
6650,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8343,
5623,
12,
2890,
16,
2944,
13013,
273,
1083,
4672,
3536,
4444,
87,
326,
1177,
4927,
1363,
471,
1135,
279,
666,
434,
10384,
16,
1625,
1517,
3193,
8686,
1245,
3874,
471,
353,
6650,
43... |
if name.startswith('DEFAULTSORT:') or name.startswith(' continue | defaultKeys = self.site().siteinfo('magicwords')['defaultsort'] found = False for key in defaultKeys: if name.startswith(key): found = True break if found: continue | def templatesWithParams(self, thistxt=None, get_redirect=False): """Return a list of templates used on this Page. | 2c08e67912446a2945f3174757a5e48185a1c0e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/2c08e67912446a2945f3174757a5e48185a1c0e7/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5539,
19591,
12,
2890,
16,
333,
5830,
33,
7036,
16,
336,
67,
7590,
33,
8381,
4672,
3536,
990,
279,
666,
434,
5539,
1399,
603,
333,
3460,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5539,
19591,
12,
2890,
16,
333,
5830,
33,
7036,
16,
336,
67,
7590,
33,
8381,
4672,
3536,
990,
279,
666,
434,
5539,
1399,
603,
333,
3460,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return self.get() | pid = self.get() | def wrapper(self): """abstract the process of choosing an existing record or adding a new one""" try: return self.get() except NoneFound: return self.add() except TooManyFound: return self.choose() | 4e7c2028c973be5602a17c99abebb9efdd625c29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/750/4e7c2028c973be5602a17c99abebb9efdd625c29/importrasta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
4672,
3536,
17801,
326,
1207,
434,
24784,
310,
392,
2062,
1409,
578,
6534,
279,
394,
1245,
8395,
775,
30,
4231,
273,
365,
18,
588,
1435,
1335,
599,
2043,
30,
327,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
4672,
3536,
17801,
326,
1207,
434,
24784,
310,
392,
2062,
1409,
578,
6534,
279,
394,
1245,
8395,
775,
30,
4231,
273,
365,
18,
588,
1435,
1335,
599,
2043,
30,
327,
365,
... |
query = model.meta.Session.query(model.Proposal) query = query.filter(model.Proposal.instance==self.instance) query = query.filter(model.Proposal.delete_time==None) return query.count() | if self.__proposals_count is None: query = model.meta.Session.query(model.Proposal) query = query.filter(model.Proposal.instance==self.instance) query = query.filter(model.Proposal.delete_time==None) self.__proposals_count = query.count() return self.__proposals_count | def _num_proposals(self): query = model.meta.Session.query(model.Proposal) query = query.filter(model.Proposal.instance==self.instance) query = query.filter(model.Proposal.delete_time==None) return query.count() | 17cefb046f682a215e1568dbfc71559a73c3939a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/17cefb046f682a215e1568dbfc71559a73c3939a/instance_tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2107,
67,
685,
22536,
12,
2890,
4672,
309,
365,
16186,
685,
22536,
67,
1883,
353,
599,
30,
843,
273,
938,
18,
3901,
18,
2157,
18,
2271,
12,
2284,
18,
14592,
13,
843,
273,
843,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2107,
67,
685,
22536,
12,
2890,
4672,
309,
365,
16186,
685,
22536,
67,
1883,
353,
599,
30,
843,
273,
938,
18,
3901,
18,
2157,
18,
2271,
12,
2284,
18,
14592,
13,
843,
273,
843,
1... |
raise Exception("Implemented in subclasses") | if platform.architecture()[0] == '64bit' and path.isdir('/usr/lib64/virtualbox'): conf.BIN = '/usr/lib64/virtualbox' elif platform.architecture()[0] == '32bit' and path.isdir('/usr/lib/virtualbox'): conf.BIN = '/usr/lib/virtualbox' else: conf.BIN = path.dirname(self.call(["which", "VirtualBox"], output=True)[1].strip()... | def look_for_virtualbox(self): raise Exception("Implemented in subclasses") | 0b8f257b05178bfc46cf1ab8a677c74ccd1ca05e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/0b8f257b05178bfc46cf1ab8a677c74ccd1ca05e/linuxbackend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
1884,
67,
12384,
2147,
12,
2890,
4672,
1002,
1185,
2932,
8644,
316,
15320,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2324,
67,
1884,
67,
12384,
2147,
12,
2890,
4672,
1002,
1185,
2932,
8644,
316,
15320,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.check_sizeof(s, basicsize,\ size2=basicsize + sys.getsizeof(str(s))) | check(s, basicsize, size2=basicsize + sys.getsizeof(str(s))) | def test_specialtypes(self): h = self.header size = self.calcsize # dict self.check_sizeof({}, size(h + '3P2P') + 8*size('P2P')) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, size(h + '3P2P') + (8+16)*size('P2P')) # unicode usize = len(u'\0'.encode('unicode-internal')) samples = [u'', ... | 2a9c012d274c588c51bc5660baff9bd0676bd399 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2a9c012d274c588c51bc5660baff9bd0676bd399/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
2352,
12,
2890,
4672,
366,
273,
365,
18,
3374,
963,
273,
365,
18,
12448,
1467,
468,
2065,
365,
18,
1893,
67,
1467,
792,
23506,
16,
963,
12,
76,
397,
296,
23,
52,
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,
1842,
67,
9371,
2352,
12,
2890,
4672,
366,
273,
365,
18,
3374,
963,
273,
365,
18,
12448,
1467,
468,
2065,
365,
18,
1893,
67,
1467,
792,
23506,
16,
963,
12,
76,
397,
296,
23,
52,
22,
... |
if len(r)<8: return None | if len(r)<8: return None | def socks5ParseResponse(r): if len(r)<8: return None version, reply, rsv, atype = struct.unpack("!BBBB",r[:4]) assert version==5 assert rsv==0 if reply != 0x00: return "ERROR" assert atype in (0x01,0x04) expected_len = 4 + ({1:4,4:16}[atype]) + 2 if len(r) < expected_len: return None elif len(r) > expected_len: raise V... | ba578f0ed63128d4d245b1d40c0ac01d90f8a0da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7483/ba578f0ed63128d4d245b1d40c0ac01d90f8a0da/tor-resolve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7313,
87,
25,
3201,
1064,
12,
86,
4672,
309,
562,
12,
86,
13,
32,
28,
30,
327,
599,
1177,
16,
4332,
16,
3597,
90,
16,
30965,
273,
1958,
18,
17309,
2932,
5,
9676,
9676,
3113,
86,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7313,
87,
25,
3201,
1064,
12,
86,
4672,
309,
562,
12,
86,
13,
32,
28,
30,
327,
599,
1177,
16,
4332,
16,
3597,
90,
16,
30965,
273,
1958,
18,
17309,
2932,
5,
9676,
9676,
3113,
86,
10... |
self.assertTrue(u.fp.fp._sock.gettimeout() is None) | self.assertTrue(u.fp.fp.raw._sock.gettimeout() is None) | def test_ftp_basic(self): u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/") self.assertTrue(u.fp.fp._sock.gettimeout() is None) | cf2f41919c226d1ac04ea74a0138eae3af030554 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/cf2f41919c226d1ac04ea74a0138eae3af030554/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
13240,
12,
2890,
4672,
582,
273,
11527,
22,
18,
295,
18589,
2932,
11727,
2207,
11727,
18,
27197,
18,
14039,
19,
10174,
19,
27197,
19,
1600,
89,
4898,
13,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
13240,
12,
2890,
4672,
582,
273,
11527,
22,
18,
295,
18589,
2932,
11727,
2207,
11727,
18,
27197,
18,
14039,
19,
10174,
19,
27197,
19,
1600,
89,
4898,
13,
365,
18,
... |
self.calc.xStr == ' 0' and self.calc.flag == Mode.entryMode \ and letter in ('X', 'O', 'B', 'D'): | (self.calc.xStr == ' 0' or \ (self.calc.stack[0] == 0.0 and self.calc.base != 10)) and \ self.calc.flag == Mode.entryMode and \ letter in ('X', 'O', 'B', 'D'): | def keyPressEvent(self, keyEvent): """Event handler for keys - checks for numbers and typed commands""" button = self.mainDict.get(keyEvent.key()) if not self.entryStr and button: button.clickEvent() button.setDown(True) return letter = str(keyEvent.text()).upper() if not self.entryStr and self.calc.base == 16 and \ 'A... | 2a379d5ed877d4bdad1ac9e468bf5879c2f17ae6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3071/2a379d5ed877d4bdad1ac9e468bf5879c2f17ae6/calcdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
498,
1133,
4672,
3536,
1133,
1838,
364,
1311,
300,
4271,
364,
5600,
471,
9092,
4364,
8395,
3568,
273,
365,
18,
5254,
5014,
18,
588,
12,
856,
1133,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
498,
1133,
4672,
3536,
1133,
1838,
364,
1311,
300,
4271,
364,
5600,
471,
9092,
4364,
8395,
3568,
273,
365,
18,
5254,
5014,
18,
588,
12,
856,
1133,
18,
8... |
raise ParseError("Could not find %s" % name) | return _proxy_base(parse_repr=str(name)) | def find_base(name, parent_docs): assert isinstance(name, DottedName) # Find the variable containing the base. base_var = lookup_variable(name, parent_docs) if base_var is None: # If it looks like it's in an external module, then try # "importing" it. if (lookup_name(name[0], parent_docs).imported_from not in (None, U... | 492a96145d3bf6e5fb5c6e9919cd061994c164e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/492a96145d3bf6e5fb5c6e9919cd061994c164e1/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
1969,
12,
529,
16,
982,
67,
8532,
4672,
1815,
1549,
12,
529,
16,
17502,
2344,
461,
13,
225,
468,
4163,
326,
2190,
4191,
326,
1026,
18,
1026,
67,
1401,
273,
3689,
67,
6105,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1969,
12,
529,
16,
982,
67,
8532,
4672,
1815,
1549,
12,
529,
16,
17502,
2344,
461,
13,
225,
468,
4163,
326,
2190,
4191,
326,
1026,
18,
1026,
67,
1401,
273,
3689,
67,
6105,
... |
if authors: authors_text = ', '.join([a for a in authors if a != 'ANONIPEDITS:0']) authors_text = re.sub(u'ANONIPEDITS:(?P<num>\d+)', u'\g<num> %s' % _(u'anonymous edits'), authors_text) authors_text = self.font_switcher.fontifyText(xmlescape(authors_text)) else: authors_text = '-' | authors_text = self._filterAnonIpEdits(authors) | def writeImageMetainfo(self): if not self.img_meta_info: return [] elements = [] elements.append(Paragraph(_('Image Sources, Licenses and Contributors'), heading_style(mode='article'))) for _id, title, url, license, authors in sorted(self.img_meta_info.values()): if authors: authors_text = ', '.join([a for a in authors... | 8353d3a775298949e60828db5b05c98244cdf570 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/8353d3a775298949e60828db5b05c98244cdf570/rlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2040,
12244,
28935,
12,
2890,
4672,
309,
486,
365,
18,
6081,
67,
3901,
67,
1376,
30,
327,
5378,
2186,
273,
5378,
2186,
18,
6923,
12,
17719,
24899,
2668,
2040,
30825,
16,
511,
16548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2040,
12244,
28935,
12,
2890,
4672,
309,
486,
365,
18,
6081,
67,
3901,
67,
1376,
30,
327,
5378,
2186,
273,
5378,
2186,
18,
6923,
12,
17719,
24899,
2668,
2040,
30825,
16,
511,
16548... |
self._obj.tectValue = rbool(not not val) | self._obj.textValue = rbool(not not val) | def setValue (self, val): self._obj.tectValue = rbool(not not val) | c622165a677f4cb965b5553b8e94e56053d0e0ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/c622165a677f4cb965b5553b8e94e56053d0e0ab/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5524,
261,
2890,
16,
1244,
4672,
365,
6315,
2603,
18,
955,
620,
273,
436,
6430,
12,
902,
486,
1244,
13,
225,
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,
5524,
261,
2890,
16,
1244,
4672,
365,
6315,
2603,
18,
955,
620,
273,
436,
6430,
12,
902,
486,
1244,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ret = hook.hook(lui, repo, "pre-%s" % cmd, False, args=" ".join(fullargs)) if ret: return ret ret = _runcommand(ui, options, cmd, d) hook.hook(lui, repo, "post-%s" % cmd, False, args=" ".join(fullargs), result = ret) return ret | return runcommand(lui, repo, cmd, fullargs, ui, options, d) | def print_time(): t = get_times() ui.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) | 090150447cc41e6c0091d7fab15bc6a6b5db17b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/090150447cc41e6c0091d7fab15bc6a6b5db17b7/dispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
5915,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
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,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
5915,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
7... |
staticdir = cdict.get("static_dir", "") if not staticdir: raise Exception("You must set static_dir in your config file.") | def render_url(cdict, pathinfo, querystring=""): """ Takes a url and a querystring and renders the page that corresponds with that by creating a Request and a PyBlosxom object and passing it through. It then returns the resulting Response. This returns a PyBlosxom ``Response`` object. :param cdict: the config.py dic... | 0a6e05f7d56eda3aa55ec98939b2dc9164bbb1e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11836/0a6e05f7d56eda3aa55ec98939b2dc9164bbb1e6/tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
718,
12,
71,
1576,
16,
11629,
16,
20741,
1546,
6,
4672,
3536,
23004,
279,
880,
471,
279,
20741,
471,
19567,
326,
1363,
716,
13955,
598,
716,
635,
4979,
279,
1567,
471,
279,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
718,
12,
71,
1576,
16,
11629,
16,
20741,
1546,
6,
4672,
3536,
23004,
279,
880,
471,
279,
20741,
471,
19567,
326,
1363,
716,
13955,
598,
716,
635,
4979,
279,
1567,
471,
279,
4... | |
res[event.id]['register_current'] = number and number[0] or 0.0 | res[event.id]['register_current'] = number and number[0] | def _get_register(self, cr, uid, ids, fields, args, context=None): """Get Confirm or uncofirm register value. @param ids: List of Event registration type's id @param fields: List of function fields(register_current and register_prospect). @param context: A standard dictionary for contextual values @return: Dictionary o... | 39655a3578b18c3aac36322c556e4b06d5203a00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/39655a3578b18c3aac36322c556e4b06d5203a00/event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4861,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
16,
833,
16,
819,
33,
7036,
4672,
3536,
967,
17580,
578,
6301,
792,
3985,
1744,
460,
18,
632,
891,
3258,
30,
987... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4861,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
16,
833,
16,
819,
33,
7036,
4672,
3536,
967,
17580,
578,
6301,
792,
3985,
1744,
460,
18,
632,
891,
3258,
30,
987... |
edje_obj.signal_callback_add("mouse,clicked,1", p + "_area", icon_clicked_cb) | edje_obj.signal_callback_add("mouse,clicked,1", p + "_area", icon_clicked_cb, p) | def icon_clicked_cb(edje_obj, emission, source): icon = source.replace("_area", "") if edje_obj.part_state_get(icon) == ("default", 0.0): global stop_pulsing_id if stop_pulsing_id is not None: stop_pulsing_id.stop() stop_pulsing_id = ecore.timer_add(STOP_PULSING_TIMEOUT, stop_pulsing, edje_obj, icon) edje_obj.signal_em... | 2dfffb71f0dd80311fb5ff861e7f1f5e4ee58cae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12343/2dfffb71f0dd80311fb5ff861e7f1f5e4ee58cae/01-app_launcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4126,
67,
7475,
329,
67,
7358,
12,
329,
78,
73,
67,
2603,
16,
801,
19710,
16,
1084,
4672,
4126,
273,
1084,
18,
2079,
2932,
67,
5036,
3113,
1408,
13,
309,
1675,
78,
73,
67,
2603,
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,
4126,
67,
7475,
329,
67,
7358,
12,
329,
78,
73,
67,
2603,
16,
801,
19710,
16,
1084,
4672,
4126,
273,
1084,
18,
2079,
2932,
67,
5036,
3113,
1408,
13,
309,
1675,
78,
73,
67,
2603,
18,
... |
if newname is None: return None, None return newname, objects[newname] | if newname is not None: matches.append((newname, objects[newname])) return matches | def find_obj(self, env, modname, classname, name, type, searchorder=0): """ Find a Python object for "name", perhaps using the given module and/or classname. """ # skip parens if name[-2:] == '()': name = name[:-2] | 09e6001e7a99990880a17325c1be36dcdae82d78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/09e6001e7a99990880a17325c1be36dcdae82d78/python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2603,
12,
2890,
16,
1550,
16,
16037,
16,
7479,
16,
508,
16,
618,
16,
1623,
1019,
33,
20,
4672,
3536,
4163,
279,
6600,
733,
364,
315,
529,
3113,
26282,
1450,
326,
864,
1605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2603,
12,
2890,
16,
1550,
16,
16037,
16,
7479,
16,
508,
16,
618,
16,
1623,
1019,
33,
20,
4672,
3536,
4163,
279,
6600,
733,
364,
315,
529,
3113,
26282,
1450,
326,
864,
1605,
... |
if data.get('negate', 'false') == 'true': | if data.get('negate', 'false') == 'true' data.get('negate', 'false') == 'True': | def __init__(self, data, idict, parent=None): self.data = data self.contents = {} if parent == None: self.predicate = lambda x:True else: predicate = parent.predicate if data.get('negate', 'false') == 'true': psrc = self.nraw else: psrc = self.raw if data.tag in psrc.keys(): self.predicate = eval(psrc[data.tag] % (data... | 2b822c36ae87802b744a908e57e1ef7bdc485d16 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/2b822c36ae87802b744a908e57e1ef7bdc485d16/Plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
612,
933,
16,
982,
33,
7036,
4672,
365,
18,
892,
273,
501,
365,
18,
3980,
273,
2618,
309,
982,
422,
599,
30,
365,
18,
18344,
273,
3195,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
612,
933,
16,
982,
33,
7036,
4672,
365,
18,
892,
273,
501,
365,
18,
3980,
273,
2618,
309,
982,
422,
599,
30,
365,
18,
18344,
273,
3195,
619,
... |
tar.add("image/"+slide.image.rpartition('/')[2]) | tar.add(slide.image, os.path.join("image", os.path.split(slide.image)[1])) | def export_lib(self, *args): 'Export the full library to file.' dlg = gtk.FileChooserDialog(_("Export Library"), exposong.application.main, gtk.FILE_CHOOSER_ACTION_SAVE, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_OK, gtk.RESPONSE_ACCEPT)) dlg.add_filter(_FILTER) dlg.set_do_overwrite_confirmation(True) dlg.set_cu... | b0a70f3c24377ecc55b17a2ae8333a6adf01843f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5029/b0a70f3c24377ecc55b17a2ae8333a6adf01843f/export_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
2941,
12,
2890,
16,
380,
1968,
4672,
296,
6144,
326,
1983,
5313,
358,
585,
1093,
25840,
273,
22718,
18,
812,
17324,
6353,
24899,
2932,
6144,
18694,
6,
3631,
431,
917,
932,
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,
3359,
67,
2941,
12,
2890,
16,
380,
1968,
4672,
296,
6144,
326,
1983,
5313,
358,
585,
1093,
25840,
273,
22718,
18,
812,
17324,
6353,
24899,
2932,
6144,
18694,
6,
3631,
431,
917,
932,
18,
... |
def writeTraceableResultConv(f, type, paramNum, result): | def writeTraceableResultConv(f, type, paramNum): | def writeTraceableResultConv(f, type, paramNum, result): typeName = getBuiltinOrNativeTypeName(type) if typeName is not None: template = traceableResultConvTemplates.get(typeName) if template is not None: values = { 'result': result, 'errorStr': getFailureString( getTraceInfoDefaultReturn(type), 2) } f.write(substitute... | d4894752c17d8324526f58a8ae8c82f1bcfbecae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/d4894752c17d8324526f58a8ae8c82f1bcfbecae/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3448,
429,
1253,
17467,
12,
74,
16,
618,
16,
579,
2578,
4672,
8173,
273,
2882,
4853,
267,
1162,
9220,
7947,
12,
723,
13,
309,
8173,
353,
486,
599,
30,
1542,
273,
2606,
429,
1253,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3448,
429,
1253,
17467,
12,
74,
16,
618,
16,
579,
2578,
4672,
8173,
273,
2882,
4853,
267,
1162,
9220,
7947,
12,
723,
13,
309,
8173,
353,
486,
599,
30,
1542,
273,
2606,
429,
1253,... |
if not isSelected and self.lbVals.count() > 0: self.lbVals.setSelected(0, True) | if not isSelected: if self.lbVals.count() > 0: self.lbVals.setSelected(0, True) else: self.currentVals = [] | def updateValuesStack(self): """Raises appropriate widget for values from stack, fills listBox for discrete attributes, shows statistics for continuous attributes. """ if self.currentVar: varType = self.currentVar.varType else: varType = 0 currentOper = self.currentOperatorDict.get(varType,None) if currentOper: # raise... | 16c678170b87bb285a80f189d13fb437d1c27ecb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/16c678170b87bb285a80f189d13fb437d1c27ecb/OWSelectData.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1972,
2624,
12,
2890,
4672,
3536,
12649,
6141,
5505,
3604,
364,
924,
628,
2110,
16,
21652,
666,
3514,
364,
20035,
1677,
16,
17975,
7691,
364,
17235,
1677,
18,
3536,
309,
365,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1972,
2624,
12,
2890,
4672,
3536,
12649,
6141,
5505,
3604,
364,
924,
628,
2110,
16,
21652,
666,
3514,
364,
20035,
1677,
16,
17975,
7691,
364,
17235,
1677,
18,
3536,
309,
365,
18,
2... |
return self.get_cell(cell.x, cell.y - 1) | return self.get_cell(cell.i, cell.j - 1) | def get_neighbor(self, cell, direction): '''Get the neighbor HexCell in the given direction which is one of self.UP, self.DOWN, self.UP_LEFT, self.UP_RIGHT, self.DOWN_LEFT or self.DOWN_RIGHT. | ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
18168,
12,
2890,
16,
2484,
16,
4068,
4672,
9163,
967,
326,
10553,
15734,
4020,
316,
326,
864,
4068,
1492,
353,
1245,
434,
365,
18,
3079,
16,
365,
18,
12711,
16,
365,
18,
3079,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18168,
12,
2890,
16,
2484,
16,
4068,
4672,
9163,
967,
326,
10553,
15734,
4020,
316,
326,
864,
4068,
1492,
353,
1245,
434,
365,
18,
3079,
16,
365,
18,
12711,
16,
365,
18,
3079,... |
titleTag.insert(0,self.title + self.title) | titleTag.insert(0,self.title) | def generateOPF(self): | 073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a78db2be7983d10/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
3665,
42,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
3665,
42,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return str +'</UL>\n' | return str +'</ul>\n' | def _class_tree(self): str = '<UL>\n' docs = self._docmap.items() docs.sort() for (uid, doc) in docs: if not isinstance(doc, ClassDoc): continue hasbase = 0 for base in doc.bases(): if self._docmap.has_key(base.target()): hasbase = 1 if not hasbase: str += self._class_tree_item(uid) return str +'</UL>\n' | 1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1106,
67,
3413,
12,
2890,
4672,
609,
273,
2368,
1506,
5333,
82,
11,
3270,
273,
365,
6315,
2434,
1458,
18,
3319,
1435,
3270,
18,
3804,
1435,
364,
261,
1911,
16,
997,
13,
316,
3270,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1106,
67,
3413,
12,
2890,
4672,
609,
273,
2368,
1506,
5333,
82,
11,
3270,
273,
365,
6315,
2434,
1458,
18,
3319,
1435,
3270,
18,
3804,
1435,
364,
261,
1911,
16,
997,
13,
316,
3270,... |
this = apply(_quickfix.new_OrdRejReason, args) | this = _quickfix.new_OrdRejReason(*args) | def __init__(self, *args): this = apply(_quickfix.new_OrdRejReason, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
15383,
426,
78,
8385,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
15383,
426,
78,
8385,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... |
p = 10**(event.xdata) pdot = 10**(event.ydata) | p = event.xdata pdot = event.ydata | def mousepress(event): """Event handler for MouseEvent ('button_press_event'). """ if event.inaxes and event.button == 2: p = 10**(event.xdata) pdot = 10**(event.ydata) bfield, age, edot = params_from_ppdot(p, pdot) print "Coordinates:" print "\tPeriod (s): %g, P-dot (s/s): %g" % (p, pdot) print "\tB-field (G): %g" % b... | eea39b5ffa200e203a272a577114678d00cc2707 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3485/eea39b5ffa200e203a272a577114678d00cc2707/pyppdot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
1028,
12,
2575,
4672,
3536,
1133,
1838,
364,
17013,
1133,
7707,
5391,
67,
1028,
67,
2575,
16063,
3536,
309,
871,
18,
267,
10855,
471,
871,
18,
5391,
422,
576,
30,
293,
273,
871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
1028,
12,
2575,
4672,
3536,
1133,
1838,
364,
17013,
1133,
7707,
5391,
67,
1028,
67,
2575,
16063,
3536,
309,
871,
18,
267,
10855,
471,
871,
18,
5391,
422,
576,
30,
293,
273,
871,
... |
def writexml(self, writer): | def writexml(self, writer, indent="", addindent="", newl=""): | def writexml(self, writer): writer.write('<?xml version="1.0" ?>\n') for node in self.childNodes: node.writexml(writer) | 46fa39ab1d1e2f14c1b44c5e81c34c5f6cfb9a58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/46fa39ab1d1e2f14c1b44c5e81c34c5f6cfb9a58/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
16,
3504,
1546,
3113,
527,
9355,
1546,
3113,
394,
80,
1546,
6,
4672,
2633,
18,
2626,
2668,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
692,
5333,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
16,
3504,
1546,
3113,
527,
9355,
1546,
3113,
394,
80,
1546,
6,
4672,
2633,
18,
2626,
2668,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
692,
5333,
82,
... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 897) else quickfix.IntField.__init__(self, 897, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10580,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10580,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2... |
server = buf[1].strip() | url = buf[1].strip() | def build(self, server, pkg): # maybe later support protocolls (the first item) other than git? scm = pkg.split('/')[0][:-1] tree = pkg.split('/')[2] pkgarr = pkg.split('/')[3].split('-') pkgname = "-".join(pkgarr[:-3]) pkgver = "-".join(pkgarr[-3:-1]) arch = pkgarr[-1] self.log(pkg, "starting build") sock = os.popen("... | 6e1a504052dad00646ff82cb8e1afeadccf8dcf5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11991/6e1a504052dad00646ff82cb8e1afeadccf8dcf5/syncpkgcd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
1438,
16,
3475,
4672,
468,
6944,
5137,
2865,
1771,
3251,
261,
5787,
1122,
761,
13,
1308,
2353,
5071,
35,
29207,
273,
3475,
18,
4939,
2668,
2473,
25146,
20,
6362,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
1438,
16,
3475,
4672,
468,
6944,
5137,
2865,
1771,
3251,
261,
5787,
1122,
761,
13,
1308,
2353,
5071,
35,
29207,
273,
3475,
18,
4939,
2668,
2473,
25146,
20,
6362,
30,
... |
analysis_url = "http://veritas.yiqiang.net/~yi/pdb/%s/ANALYSIS" % (pdbid) | analysis_url = "http://skuld.bmsc.washington.edu/~tlsmd/pdb/%s/ANALYSIS" % (pdbid) | def redirect_page(self, pdbid): # check to see if this job is still running try: os.chdir(conf.WEBTLSMDD_PDB_DIR + '/' + pdbid) except OSError: title = "This structure is currently being analyzed, please check back later." page = [self.html_head(title), html_title(title), self.html_foot()] return "".join(page) | baa591abc91d0ad43d45719554da1e6ed072356b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/baa591abc91d0ad43d45719554da1e6ed072356b/webtlsmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
67,
2433,
12,
2890,
16,
10892,
350,
4672,
468,
866,
358,
2621,
309,
333,
1719,
353,
4859,
3549,
775,
30,
1140,
18,
343,
1214,
12,
3923,
18,
14778,
9905,
49,
5698,
67,
52,
2290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
67,
2433,
12,
2890,
16,
10892,
350,
4672,
468,
866,
358,
2621,
309,
333,
1719,
353,
4859,
3549,
775,
30,
1140,
18,
343,
1214,
12,
3923,
18,
14778,
9905,
49,
5698,
67,
52,
2290,
... |
return print "\nEXAMPLE 1:" example_1() print "\nEXAMPLE 2:" example_2() print "\nEXAMPLE 3:" example_3() | else: print "\nEXAMPLE 1:" example_1() print "\nEXAMPLE 2:" example_2() print "\nEXAMPLE 3:" example_3() | def example_3(): # show selected characteristics, apply default selection # d_min comes from the structure that we are comparing against database pr, unused_definitions = polygon.master_params.fetch(sources = [params2], track_unused_definitions = True) polygon.polygon(params = pr.extract(), d_min = 2.0) | 4e5bc589aab44514a242b40a85d60bfa79152e24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/4e5bc589aab44514a242b40a85d60bfa79152e24/tst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3454,
67,
23,
13332,
468,
2405,
3170,
29385,
16,
2230,
805,
4421,
468,
302,
67,
1154,
14535,
628,
326,
3695,
716,
732,
854,
17553,
5314,
2063,
846,
16,
10197,
67,
13314,
273,
7154,
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,
3454,
67,
23,
13332,
468,
2405,
3170,
29385,
16,
2230,
805,
4421,
468,
302,
67,
1154,
14535,
628,
326,
3695,
716,
732,
854,
17553,
5314,
2063,
846,
16,
10197,
67,
13314,
273,
7154,
18,
... |
sage: len(L) | sage: len(L) | def __call__(self, vertices, property=lambda x: True, augment='edges'): """ Accesses the generator of isomorphism class representatives. Iterates over distinct, exhaustive representatives. | d81b5e7b91084ae954dbaee810a0da704510ae21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d81b5e7b91084ae954dbaee810a0da704510ae21/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
6928,
16,
1272,
33,
14661,
619,
30,
1053,
16,
18260,
2218,
8746,
11,
4672,
3536,
5016,
281,
326,
4456,
434,
353,
362,
7657,
6228,
667,
2406,
8785,
18,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
6928,
16,
1272,
33,
14661,
619,
30,
1053,
16,
18260,
2218,
8746,
11,
4672,
3536,
5016,
281,
326,
4456,
434,
353,
362,
7657,
6228,
667,
2406,
8785,
18,
30... |
self.rAssertAlmostEqual(cmath.e, e_expected, 9, | self.assertAlmostEqual(cmath.e, e_expected, 9, | def test_constants(self): e_expected = 2.71828182845904523536 pi_expected = 3.14159265358979323846 self.rAssertAlmostEqual(cmath.pi, pi_expected, 9, "cmath.pi is %s; should be %s" % (cmath.pi, pi_expected)) self.rAssertAlmostEqual(cmath.e, e_expected, 9, "cmath.e is %s; should be %s" % (cmath.e, e_expected)) | 6e0ef926343218d4437b277412f2a913d6964f3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/6e0ef926343218d4437b277412f2a913d6964f3f/test_cmath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13358,
12,
2890,
4672,
425,
67,
3825,
273,
576,
18,
27,
2643,
6030,
28246,
5193,
6162,
3028,
25,
30803,
5718,
4790,
67,
3825,
273,
890,
18,
3461,
24872,
30281,
4763,
6675,
7235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13358,
12,
2890,
4672,
425,
67,
3825,
273,
576,
18,
27,
2643,
6030,
28246,
5193,
6162,
3028,
25,
30803,
5718,
4790,
67,
3825,
273,
890,
18,
3461,
24872,
30281,
4763,
6675,
7235... |
arguments in each of any two columns, i. e. | arguments in each of any two columns, i.e. | def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number ... | 2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
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,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... |
return (2,) + self.build_gemm_version() | return (3,) + self.build_gemm_version() | def c_code_cache_version(self): return (2,) + self.build_gemm_version() | a5256ba2c40614a069040dbec774df5c09684923 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/a5256ba2c40614a069040dbec774df5c09684923/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
327,
261,
22,
16,
13,
397,
365,
18,
3510,
67,
23465,
81,
67,
1589,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
67,
2493,
67,
1589,
12,
2890,
4672,
327,
261,
22,
16,
13,
397,
365,
18,
3510,
67,
23465,
81,
67,
1589,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
doc = PDFDocument() font = TTFont("Vera", "Vera.ttf") font.splitString('a', doc) internalName = font.getSubsetInternalName(0, doc)[1:] font.addObjects(doc) pdfFont = doc.idToObject[internalName] self.assertEquals(doc.idToObject['BasicFonts'].dict[internalName], pdfFont) self.assertEquals(pdfFont.Name, internalName) sel... | ttfAsciiReadable = rl_config.ttfAsciiReadable try: rl_config.ttfAsciiReadable = 1 doc = PDFDocument() font = TTFont("Vera", "Vera.ttf") font.splitString('a', doc) internalName = font.getSubsetInternalName(0, doc)[1:] font.addObjects(doc) pdfFont = doc.idToObject[internalName] self.assertEquals(doc.idToObject['BasicFont... | def testAddObjects(self): "Test TTFont.addObjects" # Actually generate some subsets doc = PDFDocument() font = TTFont("Vera", "Vera.ttf") font.splitString('a', doc) # create some subset internalName = font.getSubsetInternalName(0, doc)[1:] font.addObjects(doc) pdfFont = doc.idToObject[internalName] self.asse... | 9b00011f0c2f6693e4cfbfc1b4cff7b7c0a7bdb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/9b00011f0c2f6693e4cfbfc1b4cff7b7c0a7bdb8/test_pdfbase_ttfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
986,
4710,
12,
2890,
4672,
315,
4709,
19912,
5711,
18,
1289,
4710,
6,
468,
4603,
3452,
2103,
2690,
30760,
997,
273,
12667,
2519,
1435,
3512,
273,
19912,
5711,
2932,
3945,
69,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
986,
4710,
12,
2890,
4672,
315,
4709,
19912,
5711,
18,
1289,
4710,
6,
468,
4603,
3452,
2103,
2690,
30760,
997,
273,
12667,
2519,
1435,
3512,
273,
19912,
5711,
2932,
3945,
69,
3113,
... |
func = name[3:] func = string.lower(func[0:1]) + func[1:] | func = name[3:] func = string.lower(func[0:1]) + func[1:] | def nameFixup(name, classe, type, file): # avoid a desastrous clash listname = classe + "List" ll = len(listname) l = len(classe) if name[0:l] == listname: func = name[l:] func = string.lower(func[0:1]) + func[1:] elif name[0:16] == "virNetworkLookup": func = name[3:] func = string.lower(func[0:1]) + func[1:] elif name... | ccee35cbb028125de2f3085a04bdd56f95ea052c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11279/ccee35cbb028125de2f3085a04bdd56f95ea052c/generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
8585,
416,
12,
529,
16,
23268,
307,
16,
618,
16,
585,
4672,
468,
4543,
279,
2832,
689,
303,
407,
927,
961,
666,
529,
273,
23268,
307,
397,
315,
682,
6,
6579,
273,
562,
12,
1098,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
8585,
416,
12,
529,
16,
23268,
307,
16,
618,
16,
585,
4672,
468,
4543,
279,
2832,
689,
303,
407,
927,
961,
666,
529,
273,
23268,
307,
397,
315,
682,
6,
6579,
273,
562,
12,
1098,... |
or (isinstance(exc, comtypes.COMError) and exc.hresult in (E_ACCESSDENIED, RPC_E_CALL_REJECTED, RPC_E_CALL_CANCELED)) | or (isinstance(exc, comtypes.COMError) and exc.hresult in (E_ACCESSDENIED, EVENT_E_ALL_SUBSCRIBERS_FAILED, RPC_E_CALL_REJECTED, RPC_E_CALL_CANCELED)) | def exception(self, msg="", exc_info=True): """Log an exception at an appropriate levle. Normally, it will be logged at level "ERROR". However, certain exceptions which aren't considered errors (or aren't errors that we can fix) are expected and will therefore be logged at a lower level. """ import comtypes if exc_info... | caf383ccae51d4e550f23f592cac30694f53f2f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/caf383ccae51d4e550f23f592cac30694f53f2f1/logHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
12,
2890,
16,
1234,
1546,
3113,
3533,
67,
1376,
33,
5510,
4672,
3536,
1343,
392,
1520,
622,
392,
5505,
18565,
298,
18,
24773,
1230,
16,
518,
903,
506,
7545,
622,
1801,
315,
3589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
12,
2890,
16,
1234,
1546,
3113,
3533,
67,
1376,
33,
5510,
4672,
3536,
1343,
392,
1520,
622,
392,
5505,
18565,
298,
18,
24773,
1230,
16,
518,
903,
506,
7545,
622,
1801,
315,
3589,
... |
self.processStartTag(self, name, attributes) | self.processStartTag(name, attributes) | def startTagNoframes(self, name, attributes): self.parser.switchInsertionMode("inBody") self.processStartTag(self, name, attributes) | 2a3965276b7b0b922773b962df7914ef25499f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/2a3965276b7b0b922773b962df7914ef25499f97/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
50,
792,
86,
753,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
2250,
7923,
365,
18,
2567,
30512,
12,
2890,
16,
508,
16,
1677,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
50,
792,
86,
753,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
2250,
7923,
365,
18,
2567,
30512,
12,
2890,
16,
508,
16,
1677,
13,
2,... |
self.timeout = timeout | def communicate(self, input=None, timeout=None): """Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be a string to be sent to the child process, or None, if no data should be sent to the child... | 190e1d7e5f93bc5e6ae85b81866ff360671bfa24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/190e1d7e5f93bc5e6ae85b81866ff360671bfa24/SubProcess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15541,
12,
2890,
16,
810,
33,
7036,
16,
2021,
33,
7036,
4672,
3536,
2465,
621,
598,
1207,
30,
2479,
501,
358,
8801,
18,
225,
2720,
501,
628,
3909,
471,
4514,
16,
3180,
679,
17,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15541,
12,
2890,
16,
810,
33,
7036,
16,
2021,
33,
7036,
4672,
3536,
2465,
621,
598,
1207,
30,
2479,
501,
358,
8801,
18,
225,
2720,
501,
628,
3909,
471,
4514,
16,
3180,
679,
17,
792,
... | |
for (t,id,author),field_changes,comment,summary in updates: | for (t,id,author,summary),field_changes,comment in updates: | def get_timeline_events(self, req, start, stop, filters): if 'ticket_details' in filters: db = self.env.get_db_cnx() cursor = db.cursor() cursor.execute("SELECT tc.time,tc.ticket,tc.field, " " tc.oldvalue,tc.newvalue,tc.author,t.summary " "FROM ticket_change tc" " LEFT JOIN ticket t ON t.id = tc.ticket " "AND t... | 864c57e24bc80b542bc9f91a63c08830962b5d0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/864c57e24bc80b542bc9f91a63c08830962b5d0c/Ticket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26237,
67,
5989,
12,
2890,
16,
1111,
16,
787,
16,
2132,
16,
3415,
4672,
309,
296,
16282,
67,
6395,
11,
316,
3415,
30,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26237,
67,
5989,
12,
2890,
16,
1111,
16,
787,
16,
2132,
16,
3415,
4672,
309,
296,
16282,
67,
6395,
11,
316,
3415,
30,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,... |
if sys.argv[1] == "build": podir = os.path.join (os.path.realpath ("."), "po") if os.path.isdir (podir): buildcmd = "msgfmt -o build/locale/%s/ccsm.mo po/%s.po" mopath = "build/locale/%s/ccsm.mo" destpath = "share/locale/%s/LC_MESSAGES" for name in os.listdir (podir): if name[-2:] == "po": name = name[:-3] | podir = os.path.join (os.path.realpath ("."), "po") if os.path.isdir (podir): buildcmd = "msgfmt -o build/locale/%s/ccsm.mo po/%s.po" mopath = "build/locale/%s/ccsm.mo" destpath = "share/locale/%s/LC_MESSAGES" for name in os.listdir (podir): if name[-2:] == "po": name = name[:-3] if sys.argv[1] == "build": | def filter_images (image): return image.startswith ("plugin-") or image.startswith ("category-") | 9af6fbb5cb775736c7539a236c8822d35cd7d4bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1272/9af6fbb5cb775736c7539a236c8822d35cd7d4bd/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
7369,
261,
2730,
4672,
327,
1316,
18,
17514,
1918,
7566,
4094,
17,
7923,
578,
1316,
18,
17514,
1918,
7566,
4743,
17,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
7369,
261,
2730,
4672,
327,
1316,
18,
17514,
1918,
7566,
4094,
17,
7923,
578,
1316,
18,
17514,
1918,
7566,
4743,
17,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
ID_TO_UPPER, ID_UNDO, ID_REDO, ID_CUT, ID_COPY, ID_PASTE, ID_SELECTALL]) | ID_TO_UPPER, ID_SELECTALL, ID_UNDO, ID_REDO, ID_CUT, ID_COPY, ID_PASTE]) | def DispatchToControl(self, evt): """Catches events that need to be passed to the current text control for processing. @param evt: Event fired that called this handler @type evt: wxMenuEvent | 01f3f92c6e71b13dcb13ff41b9708dce08a037ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/01f3f92c6e71b13dcb13ff41b9708dce08a037ae/ed_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
774,
3367,
12,
2890,
16,
6324,
4672,
3536,
14842,
281,
2641,
716,
1608,
358,
506,
2275,
358,
326,
783,
977,
3325,
364,
4929,
18,
632,
891,
6324,
30,
2587,
15950,
716,
2566,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
774,
3367,
12,
2890,
16,
6324,
4672,
3536,
14842,
281,
2641,
716,
1608,
358,
506,
2275,
358,
326,
783,
977,
3325,
364,
4929,
18,
632,
891,
6324,
30,
2587,
15950,
716,
2566,
333,
... |
z = np.zeros(self.m) ; z[i] = 1 | z = np.zeros(self.m) ; z[i] = -1 | def hiprod(self, i, v, **kwargs): """ Evaluate matrix-vector product Hi(x) * v. Returns a Numpy array. """ z = np.zeros(self.m) ; z[i] = 1 self.Hprod += 1 return _amplpy.H_prod(z, v, 0.) | 5dc66d894de4e8eef1065a807a6da43f36f0a827 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13857/5dc66d894de4e8eef1065a807a6da43f36f0a827/amplpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
625,
303,
72,
12,
2890,
16,
277,
16,
331,
16,
2826,
4333,
4672,
3536,
18176,
3148,
17,
7737,
3017,
670,
77,
12,
92,
13,
380,
331,
18,
2860,
279,
6805,
2074,
526,
18,
3536,
998,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
625,
303,
72,
12,
2890,
16,
277,
16,
331,
16,
2826,
4333,
4672,
3536,
18176,
3148,
17,
7737,
3017,
670,
77,
12,
92,
13,
380,
331,
18,
2860,
279,
6805,
2074,
526,
18,
3536,
998,
... |
yield 23 def __len__(self): | def __iter__(self): yield 23 | 4e2f714031654eb4174393454c008961b636f539 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4e2f714031654eb4174393454c008961b636f539/list_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
2824,
10213,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2165,
972,
12,
2890,
4672,
2824,
10213,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
dateFiled = trTags[i].td.contents.strip() splitDate = dateFiled[0].split("-") | dateFiled = trTags[i].td.contents[0].strip() splitDate = dateFiled.split("-") | def scrapeCourt(courtID, result, verbosity, daemonmode): if verbosity >= 1: result += "NOW SCRAPING COURT: " + str(courtID) + "\n" if verbosity >= 2: print "NOW SCRAPING COURT: " + str(courtID) if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shal... | bb2449c1a8141bd53a8e2339af75ec01a177eba5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/bb2449c1a8141bd53a8e2339af75ec01a177eba5/scrape_and_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
25360,
29328,
88,
12,
71,
477,
88,
734,
16,
563,
16,
11561,
16,
8131,
3188,
4672,
309,
11561,
1545,
404,
30,
563,
1011,
315,
27091,
348,
5093,
2203,
1360,
7910,
1099,
56,
30,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
25360,
29328,
88,
12,
71,
477,
88,
734,
16,
563,
16,
11561,
16,
8131,
3188,
4672,
309,
11561,
1545,
404,
30,
563,
1011,
315,
27091,
348,
5093,
2203,
1360,
7910,
1099,
56,
30,
315,... |
print "Checking whether TeX allows spaces in file names... ", | def checkProg(description, progs, rc_entry = [], path = [] ): ''' This function will search a program in $PATH plus given path If found, return directory and program name (not the options). description: description of the program progs: check programs, for each prog, the first word is used for searching but the whole... | 41dd4f0be3188829e0dccd1c1ec13e281f4fc00d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/41dd4f0be3188829e0dccd1c1ec13e281f4fc00d/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
626,
75,
12,
3384,
16,
450,
564,
16,
4519,
67,
4099,
273,
5378,
16,
589,
273,
5378,
262,
30,
9163,
1220,
445,
903,
1623,
279,
5402,
316,
271,
4211,
8737,
864,
589,
971,
1392,
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,
866,
626,
75,
12,
3384,
16,
450,
564,
16,
4519,
67,
4099,
273,
5378,
16,
589,
273,
5378,
262,
30,
9163,
1220,
445,
903,
1623,
279,
5402,
316,
271,
4211,
8737,
864,
589,
971,
1392,
16... | |
self.prj.projects_db['launcher'].full_name) + ext_exec, | self.prj.projects_db['launcher'].full_name) + ext_exec, | def install (self, opts = ['rc', 'deps'] ): result = self.result(deps_results = 'deps' in opts) | 292e122d832953f0a5eca4a962c0b1089ab52802 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/292e122d832953f0a5eca4a962c0b1089ab52802/ide_project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
261,
2890,
16,
1500,
273,
10228,
1310,
2187,
296,
14877,
3546,
262,
30,
563,
273,
365,
18,
2088,
12,
14877,
67,
4717,
273,
296,
14877,
11,
316,
1500,
13,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3799,
261,
2890,
16,
1500,
273,
10228,
1310,
2187,
296,
14877,
3546,
262,
30,
563,
273,
365,
18,
2088,
12,
14877,
67,
4717,
273,
296,
14877,
11,
316,
1500,
13,
2,
-100,
-100,
-100,
-10... |
return self.get_handler('/ui/aruni/template.xhtml') | except LookupError: return self.get_handler('/ui/aruni/template.xhtml') | def get_template(self): if self.has_handler('template.xhtml'): return self.get_handler('template.xhtml') # Default, aruni return self.get_handler('/ui/aruni/template.xhtml') | 561b04b86500f7f67e69de0f03a500447abb6080 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/561b04b86500f7f67e69de0f03a500447abb6080/skins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3202,
12,
2890,
4672,
309,
365,
18,
5332,
67,
4176,
2668,
3202,
18,
26341,
11,
4672,
327,
365,
18,
588,
67,
4176,
2668,
3202,
18,
26341,
6134,
468,
2989,
16,
419,
318,
77,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3202,
12,
2890,
4672,
309,
365,
18,
5332,
67,
4176,
2668,
3202,
18,
26341,
11,
4672,
327,
365,
18,
588,
67,
4176,
2668,
3202,
18,
26341,
6134,
468,
2989,
16,
419,
318,
77,
3... |
t_start = startOfInterval(t, t_length) print timestamp_to_string(t), t_length, timestamp_to_string(t_start) assert(time.localtime(t_start)[0:6] == (2009, 3, 4, 1, 55, 00)) t = time.mktime((2009, 3, 4, 1, 0, 0, 0, 0, 0)) | t_test = time.mktime((2009, 3, 4, 1, 57, 17, 0, 0, 0)) t_ans = time.mktime((2009, 3, 4, 1, 55, 0, 0, 0, 0)) t_start = startOfInterval(t_test, t_length) print timestamp_to_string(t_test), t_length, timestamp_to_string(t_start) assert(t_start == t_ans) | def _get_object(module_class, *args, **kwargs): """Given a path to a class, instantiates an instance of the class with the given args and returns it.""" # Split the path into its parts parts = module_class.split('.') # Strip off the classname: module = '.'.join(parts[:-1]) # Import the top level module mod = __import_... | 19b04500cd89d5b1697673f832aae81e1515f674 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1013/19b04500cd89d5b1697673f832aae81e1515f674/weeutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1612,
12,
2978,
67,
1106,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
6083,
279,
589,
358,
279,
667,
16,
5934,
16020,
392,
791,
434,
326,
667,
598,
326,
864,
833,
471,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1612,
12,
2978,
67,
1106,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
6083,
279,
589,
358,
279,
667,
16,
5934,
16020,
392,
791,
434,
326,
667,
598,
326,
864,
833,
471,
1... |
Default is 1000./80 where 80 is the fps I want to switch to full screen mode. | Defaults to 1000.0 / 80.0. This means that the screen will be painted using the flip method rather than the update method if the update method is taking so long to update the screen that the frame rate falls below 80 frames per second. | def set_timing_treshold(self, time_ms): """sets the treshold in milliseconds set_timing_treshold(time_ms): return None | 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,
444,
67,
8584,
310,
67,
88,
3444,
12,
2890,
16,
813,
67,
959,
4672,
3536,
4424,
326,
268,
3444,
316,
10993,
444,
67,
8584,
310,
67,
88,
3444,
12,
957,
67,
959,
4672,
327,
599,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
8584,
310,
67,
88,
3444,
12,
2890,
16,
813,
67,
959,
4672,
3536,
4424,
326,
268,
3444,
316,
10993,
444,
67,
8584,
310,
67,
88,
3444,
12,
957,
67,
959,
4672,
327,
599,
2,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.