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 |
|---|---|---|---|---|---|---|
if _os_has_dup: | if _can_dup_socket: | def accept(self): """Wrap accept() to give the connection the right type.""" conn, addr = _socket.socket.accept(self) fd = conn.fileno() nfd = fd if _os_has_dup: nfd = os.dup(fd) wrapper = socket(self.family, self.type, self.proto, fileno=nfd) if fd == nfd: wrapper._base = conn # Keep the base alive else: conn.close()... | be907ae1158d5378336cc804ca278a7964673c3c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/be907ae1158d5378336cc804ca278a7964673c3c/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
3536,
2964,
2791,
1435,
358,
8492,
326,
1459,
326,
2145,
618,
12123,
1487,
16,
3091,
273,
389,
7814,
18,
7814,
18,
9436,
12,
2890,
13,
5194,
273,
1487,
18,
7540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
3536,
2964,
2791,
1435,
358,
8492,
326,
1459,
326,
2145,
618,
12123,
1487,
16,
3091,
273,
389,
7814,
18,
7814,
18,
9436,
12,
2890,
13,
5194,
273,
1487,
18,
7540,
... |
return get_instance_metadata('ramdisk-id') | return self.get_instance_metadata('ramdisk-id') | def get_instance_ramdisk(self): return get_instance_metadata('ramdisk-id') | 029b994f89afc967007ea7d9fd2532df40c08274 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/029b994f89afc967007ea7d9fd2532df40c08274/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1336,
67,
1940,
10863,
12,
2890,
4672,
327,
336,
67,
1336,
67,
4165,
2668,
1940,
10863,
17,
350,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1336,
67,
1940,
10863,
12,
2890,
4672,
327,
336,
67,
1336,
67,
4165,
2668,
1940,
10863,
17,
350,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def GetNumInvalidValues(self, func): | def GetNumInvalidValues(self): | def GetNumInvalidValues(self, func): """returns the number of invalid values to be tested.""" if 'invalid' in self.enum_info: invalid = self.enum_info['invalid'] return len(invalid) return 0 | 4f0c32d419b2a9783e1458192f5c0d3d79813764 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/4f0c32d419b2a9783e1458192f5c0d3d79813764/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2578,
1941,
1972,
12,
2890,
4672,
3536,
6154,
326,
1300,
434,
2057,
924,
358,
506,
18432,
12123,
309,
296,
5387,
11,
316,
365,
18,
7924,
67,
1376,
30,
2057,
273,
365,
18,
7924,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2578,
1941,
1972,
12,
2890,
4672,
3536,
6154,
326,
1300,
434,
2057,
924,
358,
506,
18432,
12123,
309,
296,
5387,
11,
316,
365,
18,
7924,
67,
1376,
30,
2057,
273,
365,
18,
7924,
67... |
return hex(self.i2h(pkt, x)) | return lhex(self.i2h(pkt, x)) | def i2repr(self, pkt, x): if x is None: x = 0 return hex(self.i2h(pkt, x)) | 28c56dd1d633fbcec3ae911ffb4ed8d85a784c40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/28c56dd1d633fbcec3ae911ffb4ed8d85a784c40/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
22,
12715,
12,
2890,
16,
11536,
16,
619,
4672,
309,
619,
353,
599,
30,
619,
273,
374,
327,
3827,
12,
2890,
18,
77,
22,
76,
12,
5465,
88,
16,
619,
3719,
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,
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,
277,
22,
12715,
12,
2890,
16,
11536,
16,
619,
4672,
309,
619,
353,
599,
30,
619,
273,
374,
327,
3827,
12,
2890,
18,
77,
22,
76,
12,
5465,
88,
16,
619,
3719,
2,
-100,
-100,
-100,
-1... |
skip = len(code); emit(0) | skip = _len(code); emit(0) | def fixup(literal, flags=flags): return _sre.getlower(literal, flags) | 01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
12,
13107,
16,
2943,
33,
7133,
4672,
327,
389,
87,
266,
18,
588,
8167,
12,
13107,
16,
2943,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
12,
13107,
16,
2943,
33,
7133,
4672,
327,
389,
87,
266,
18,
588,
8167,
12,
13107,
16,
2943,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self._order.remove(key) | if not existed: self._order.remove(key) | def __setitem__(self, key, object): """ See `IOrderedContainer`. | a211c6242a802c13666b593f48e0cc0de473f0f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9826/a211c6242a802c13666b593f48e0cc0de473f0f6/ordered.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
733,
4672,
3536,
2164,
1375,
45,
16756,
2170,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
733,
4672,
3536,
2164,
1375,
45,
16756,
2170,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""isinstance(%s, collections.Mapping)""" | def _isMappingType(self, node, results): """isinstance(%s, collections.Mapping)""" return self._handle_type2abc(node, results, "collections", "Mapping") | cbeb9fa6177ce88fef04904295aa2defc9a7a467 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/cbeb9fa6177ce88fef04904295aa2defc9a7a467/fix_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
3233,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
19246,
3113,
315,
3233,
7923,
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,
389,
291,
3233,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
19246,
3113,
315,
3233,
7923,
2,
-100,
-100,
-100,
-100,
... | |
device_rp = rbdir.append("aux") | device_rp = rbdir.append("con") | def set_must_escape_dos_devices(self, rbdir): """If local edd or src edd, then must escape """ if getattr(self, "src_fsa", None) is not None: src_edd = self.src_fsa.escape_dos_devices else: src_edd = 0 try: device_rp = rbdir.append("aux") if device_rp.lstat(): local_edd = 1 else: local_edd = 0 except (OSError): local_e... | b8f014c5a88e24e5cb24e6697cf1365222a957cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8033/b8f014c5a88e24e5cb24e6697cf1365222a957cf/fs_abilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11926,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
1675,
72,
578,
1705,
1675,
72,
16,
1508,
1297,
4114,
3536,
309,
3869,
12,
2890,
16,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11926,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
1675,
72,
578,
1705,
1675,
72,
16,
1508,
1297,
4114,
3536,
309,
3869,
12,
2890,
16,
31... |
print "Creating RDF.Statement object args",args | print "Creating RDF.Statement subject=",subject,"predicate=",predicate,"object=",object,"args=",args | def __init__(self, subject = None, predicate = None, object = None, **args): """Constructor for Statement. | 535636baf0129a73b0e43cfa11003d6f4e300b96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/535636baf0129a73b0e43cfa11003d6f4e300b96/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3221,
273,
599,
16,
5641,
273,
599,
16,
733,
273,
599,
16,
2826,
1968,
4672,
3536,
6293,
364,
8056,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3221,
273,
599,
16,
5641,
273,
599,
16,
733,
273,
599,
16,
2826,
1968,
4672,
3536,
6293,
364,
8056,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
XendNetwork.create_phy(unconfigured_bridge) | if unconfigured_bridge != 'tmpbridge': XendNetwork.create_phy(unconfigured_bridge) | def __init__(self): """Initalises the state of all host specific objects such as | 422f2057c9431a38bfd83cbada4b9708c41597bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/422f2057c9431a38bfd83cbada4b9708c41597bf/XendNode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2570,
287,
6141,
326,
919,
434,
777,
1479,
2923,
2184,
4123,
487,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2570,
287,
6141,
326,
919,
434,
777,
1479,
2923,
2184,
4123,
487,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'font_get_coverage', 'font_get_metrics', 'font_get_font_map', 'color_copy', 'color_free', 'ATTR_INVALID', 'ATTR_LANGUAGE', 'ATTR_FAMILY', 'ATTR_STYLE', 'ATTR_WEIGHT', 'ATTR_VARIANT', 'ATTR_STRETCH', 'ATTR_SIZE', 'ATTR_FONT_DESC', | 'font_get_coverage', 'font_find_shaper', 'font_get_metrics', 'font_get_glyph_extents', 'font_get_font_map', 'color_copy', 'color_free', 'ATTR_INVALID', 'ATTR_LANGUAGE', 'ATTR_FAMILY', 'ATTR_STYLE', 'ATTR_WEIGHT', 'ATTR_VARIANT', 'ATTR_STRETCH', 'ATTR_SIZE', 'ATTR_FONT_DESC', | def __init__(self, *args, **kwargs): self._internal = CairoFontMap.new(*args, **kwargs)._internal | 92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
6315,
7236,
273,
385,
10658,
303,
5711,
863,
18,
2704,
30857,
1968,
16,
2826,
4333,
2934,
67,
7236,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
6315,
7236,
273,
385,
10658,
303,
5711,
863,
18,
2704,
30857,
1968,
16,
2826,
4333,
2934,
67,
7236,
2,
-100,
-100,
... |
def __init__(self,estdomain,estimator): | def __init__(self,coeff,estdomain,estimator): self.coeff = coeff | def __init__(self,estdomain,estimator): self.estdomain = estdomain self.cv = self.estdomain.classVar(0) self.estimator = estimator | 420392ebd14dd1e53f8436f53f14e981b3df853c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/420392ebd14dd1e53f8436f53f14e981b3df853c/orngLinVis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18132,
16,
395,
4308,
16,
395,
12502,
4672,
365,
18,
18132,
273,
11943,
365,
18,
395,
4308,
273,
4387,
4308,
365,
18,
19774,
273,
365,
18,
395,
4308,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18132,
16,
395,
4308,
16,
395,
12502,
4672,
365,
18,
18132,
273,
11943,
365,
18,
395,
4308,
273,
4387,
4308,
365,
18,
19774,
273,
365,
18,
395,
4308,
18,... |
nxt = ' ' * (len(key) - 2) + ': ' return fill(val, width=self.term.columns, initial_indent=key, subsequent_indent=nxt) | keylen = len(key) cols = self.term.columns nxt = ' ' * (keylen - 2) + ': ' ret = fill(val, width=cols, initial_indent=key, subsequent_indent=nxt) if ret.count("\n") > 1 and keylen > (cols / 3): ret = fill(val, width=cols, initial_indent=key, subsequent_indent=' ...: ') return ret | def _outKeyValFill(self, key, val): """ Return a key value pair in the common two column output format. """ nxt = ' ' * (len(key) - 2) + ': ' return fill(val, width=self.term.columns, initial_indent=key, subsequent_indent=nxt) | 6fc5187dfc094f14df8696ce418235f545a769b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/6fc5187dfc094f14df8696ce418235f545a769b0/output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
659,
653,
3053,
8026,
12,
2890,
16,
498,
16,
1244,
4672,
3536,
2000,
279,
498,
460,
3082,
316,
326,
2975,
2795,
1057,
876,
740,
18,
3536,
498,
1897,
273,
562,
12,
856,
13,
5347,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
659,
653,
3053,
8026,
12,
2890,
16,
498,
16,
1244,
4672,
3536,
2000,
279,
498,
460,
3082,
316,
326,
2975,
2795,
1057,
876,
740,
18,
3536,
498,
1897,
273,
562,
12,
856,
13,
5347,
... |
llwapp.append_process_params(doc, process, | ligolw_process.append_process_params(doc, process, | def append_process(doc, **kwargs): process = llwapp.append_process( doc, program = "ligolw_sicluster", version = __version__, cvs_repository = "lscsoft", cvs_entry_time = __date__, comment = kwargs["comment"]) llwapp.append_process_params(doc, process, [("--cluster-window", "lstring", kwargs["cluster_window"])]) if kw... | 3f5e83611be77d2d0fdd50b4889f9cf116ec1bac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/3f5e83611be77d2d0fdd50b4889f9cf116ec1bac/ligolw_sicluster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
2567,
12,
2434,
16,
2826,
4333,
4672,
1207,
273,
6579,
91,
2910,
18,
6923,
67,
2567,
12,
997,
16,
5402,
273,
315,
80,
360,
355,
91,
67,
87,
335,
80,
1722,
3113,
1177,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
2567,
12,
2434,
16,
2826,
4333,
4672,
1207,
273,
6579,
91,
2910,
18,
6923,
67,
2567,
12,
997,
16,
5402,
273,
315,
80,
360,
355,
91,
67,
87,
335,
80,
1722,
3113,
1177,
273,
... |
def getListeningSocket( self, hostAddress, listeningQueueSize=5, reuseAddress=True, **kwargs ): | def getListeningSocket( self, hostAddress, listeningQueueSize = 5, reuseAddress = True, **kwargs ): | def getListeningSocket( self, hostAddress, listeningQueueSize=5, reuseAddress=True, **kwargs ): osSocket = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) if reuseAddress: osSocket.setsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR, 1 ) retVal = self.generateServerInfo( kwargs ) if not retVal[ 'OK' ]: return retVal... | 4a32b9cdc31fcd643805ca4a889cde7fda6ff56a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/4a32b9cdc31fcd643805ca4a889cde7fda6ff56a/SocketInfoFactory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10033,
275,
310,
4534,
12,
365,
16,
1479,
1887,
16,
13895,
3183,
1225,
273,
1381,
16,
11827,
1887,
273,
1053,
16,
2826,
4333,
262,
30,
1140,
4534,
273,
2987,
18,
7814,
12,
2987,
18,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10033,
275,
310,
4534,
12,
365,
16,
1479,
1887,
16,
13895,
3183,
1225,
273,
1381,
16,
11827,
1887,
273,
1053,
16,
2826,
4333,
262,
30,
1140,
4534,
273,
2987,
18,
7814,
12,
2987,
18,
67... |
print "cd", cd; | print "cd", cd | def oscdcmd(cd, cmd): global VERBOSE if VERBOSE >= 1: print "cd", cd; base=os.getcwd() os.chdir(cd) oscmd(cmd) if VERBOSE >= 1: print "cd", base; os.chdir(base) | 4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31476,
72,
4172,
12,
4315,
16,
1797,
4672,
2552,
27857,
309,
27857,
1545,
404,
30,
1172,
315,
4315,
3113,
7976,
1026,
33,
538,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
12,
4315,
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,
31476,
72,
4172,
12,
4315,
16,
1797,
4672,
2552,
27857,
309,
27857,
1545,
404,
30,
1172,
315,
4315,
3113,
7976,
1026,
33,
538,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
12,
4315,
13,
... |
map( lambda a: a.draw(), self) | [a.draw() for a in self] | def draw( self): map( lambda a: a.draw(), self) | 63aa8de15cad833fb626b0c351076ad00b5150de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/63aa8de15cad833fb626b0c351076ad00b5150de/classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
365,
4672,
852,
12,
3195,
279,
30,
279,
18,
9446,
9334,
365,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
365,
4672,
852,
12,
3195,
279,
30,
279,
18,
9446,
9334,
365,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
filter_parts.append("`%s` %s '%s'" % (name, op, val)) | filter_parts.append("`%s` %s '%s'" % (name, op, val.replace("'", "''"))) | def _build_filter_part(self, cls, filters): """ Build the filter part """ import types query_parts = [] for filter in filters: (name, op) = filter[0].split(" ") value = filter[1].replace("'", "''") property = cls.find_property(name) if types.TypeType(value) == types.ListType: filter_parts = [] for val in value: val = s... | 6e15ddcb7cc8ec585a6628c3f3153958ddfe6bba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/6e15ddcb7cc8ec585a6628c3f3153958ddfe6bba/sdbmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
2188,
67,
2680,
12,
2890,
16,
2028,
16,
3415,
4672,
3536,
3998,
326,
1034,
1087,
3536,
1930,
1953,
843,
67,
6019,
273,
5378,
364,
1034,
316,
3415,
30,
261,
529,
16,
1061... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3510,
67,
2188,
67,
2680,
12,
2890,
16,
2028,
16,
3415,
4672,
3536,
3998,
326,
1034,
1087,
3536,
1930,
1953,
843,
67,
6019,
273,
5378,
364,
1034,
316,
3415,
30,
261,
529,
16,
1061... |
res = ir.ir_get(cr, uid, 'default', False, [self._name]) | ir_values_obj = self.pool.get('ir.values') res = ir_values_obj.get(cr, uid, 'default', False, [self._name]) | def default_get(self, cr, uid, fields, context=None): if not context: context={} value = {} # get the default values for the inherited fields for t in self._inherits.keys(): value.update(self.pool.get(t).default_get(cr, uid, fields, context)) | c51ac0093d1781c86ceb00f8c420d23fb1dfa901 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/c51ac0093d1781c86ceb00f8c420d23fb1dfa901/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
460,
273,
2618,
468,
336,
326,
805,
924,
364,
326,
12078,
1466,
364,
268... |
self.checkMessageCount(1) | self.checkMessageCount(2) | def testStop(self): self.checkMessageCount(1) messages.StopTrackingChannels().send_to_backend() self.runUrgentCalls() self.feed1.setTitle(u"Booya") f = Feed(u'http://example.com/3') self.feed2.remove() self.checkMessageCount(1) | 69858501f3380a2140e17bd59f52ef0c473defe6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/69858501f3380a2140e17bd59f52ef0c473defe6/messagetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4947,
12,
2890,
4672,
365,
18,
1893,
1079,
1380,
12,
22,
13,
2743,
18,
4947,
12642,
10585,
7675,
4661,
67,
869,
67,
9993,
1435,
365,
18,
2681,
57,
26876,
319,
10125,
1435,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4947,
12,
2890,
4672,
365,
18,
1893,
1079,
1380,
12,
22,
13,
2743,
18,
4947,
12642,
10585,
7675,
4661,
67,
869,
67,
9993,
1435,
365,
18,
2681,
57,
26876,
319,
10125,
1435,
365,
1... |
raise ConnNotImpError, "Cannot use base class" | def __init__(self): self.matches = None self.match_index = None raise ConnNotImpError, "Cannot use base class" | b6a8cf48ec93af35cd798dd7447c4de8ba46bad1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/b6a8cf48ec93af35cd798dd7447c4de8ba46bad1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8436,
273,
599,
365,
18,
1916,
67,
1615,
273,
599,
1002,
6683,
1248,
22683,
668,
16,
315,
4515,
999,
1026,
667,
6,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8436,
273,
599,
365,
18,
1916,
67,
1615,
273,
599,
1002,
6683,
1248,
22683,
668,
16,
315,
4515,
999,
1026,
667,
6,
2,
-100,
-100,
-100,
-100,
... | |
assert fname=='Prop-content-length' | assert fname=='Prop-content-length', fname | def parse_revision(rev): fname, proplength = parse_field(dump.readline()) assert fname=='Prop-content-length' fname, contentlength = parse_field(dump.readline()) assert dump.readline() == '\n' | b4dd165821a1ebbfd83574cb6848eb993e1b5dca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/b4dd165821a1ebbfd83574cb6848eb993e1b5dca/svndump.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
13057,
12,
9083,
4672,
5299,
16,
450,
412,
1288,
273,
1109,
67,
1518,
12,
8481,
18,
896,
1369,
10756,
1815,
5299,
18920,
4658,
17,
1745,
17,
2469,
2187,
5299,
5299,
16,
913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
13057,
12,
9083,
4672,
5299,
16,
450,
412,
1288,
273,
1109,
67,
1518,
12,
8481,
18,
896,
1369,
10756,
1815,
5299,
18920,
4658,
17,
1745,
17,
2469,
2187,
5299,
5299,
16,
913,
... |
if svntest.actions.run_and_verify_commit (wc_dir, expected_output_tree, expected_status_tree, None, None, None, None, None, wc_dir): return 1 return 0 | return svntest.actions.run_and_verify_commit (wc_dir, expected_output_tree, expected_status_tree, None, None, None, None, None, wc_dir) | def merge_mixed_revisions(sbox): "commit mixed-rev wc (no erronous merge error)" if sbox.build(): return 1 wc_dir = sbox.wc_dir # Make some convenient paths. iota_path = os.path.join(wc_dir, 'iota') H_path = os.path.join(wc_dir, 'A', 'D', 'H') chi_path = os.path.join(wc_dir, 'A', 'D', 'H', 'chi') omega_path = os.pat... | bef715c07d7b6fef7f86f14bcf1250ffbbbc4849 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6036/bef715c07d7b6fef7f86f14bcf1250ffbbbc4849/commit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
19562,
67,
29892,
12,
87,
2147,
4672,
315,
7371,
7826,
17,
9083,
14310,
261,
2135,
393,
265,
1481,
2691,
555,
2225,
225,
309,
272,
2147,
18,
3510,
13332,
327,
404,
225,
14310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
19562,
67,
29892,
12,
87,
2147,
4672,
315,
7371,
7826,
17,
9083,
14310,
261,
2135,
393,
265,
1481,
2691,
555,
2225,
225,
309,
272,
2147,
18,
3510,
13332,
327,
404,
225,
14310,
... |
self.questions['multichoice'].append(MultipleAnswerQuestion(xml)) | self.questions['multichoice'].append(MultipleAnswerQuestion(question)) | def convert_questions(self, xml): questions = xml.findall('.//item') | ca00424d0235227da6026093917f88d7caf76d75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/ca00424d0235227da6026093917f88d7caf76d75/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
9758,
12,
2890,
16,
2025,
4672,
13494,
273,
2025,
18,
4720,
454,
2668,
18,
759,
1726,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
9758,
12,
2890,
16,
2025,
4672,
13494,
273,
2025,
18,
4720,
454,
2668,
18,
759,
1726,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
localsitesrm = TiersOfATLAS.getSiteProperty(os.environ['DQ2_LOCAL_SITE_ID'],'srm') | localsitesrm = TiersOfATLAS.getSiteProperty('SARA-MATRIX_MCDISK','srm') localsitesrm = re.sub('token:*\w*:','', localsitesrm) localsitesrm = re.sub(':*\d*/srm/managerv2\?SFN=','', localsitesrm) | 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 | 3a43b76c9946e1df9d733e36ca1616cc111fccc0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/3a43b76c9946e1df9d733e36ca1616cc111fccc0/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... |
self._pending = ( cookie, defresp ) | self._pending = ( cookie, defresp, defsetup ) | def incomingCall(self, description, cookie, defsetup): defresp = defer.Deferred() self._pending = ( cookie, defresp ) self.transport.write("INCOMING CALL: %s\n"%description) self.transport.write("Type 'accept' to accept, 'reject' to reject\n") defsetup.addCallback(lambda x: defresp) | c98f97553f1c9b33779dd307233c6fc3cd85abb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/c98f97553f1c9b33779dd307233c6fc3cd85abb7/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6935,
1477,
12,
2890,
16,
2477,
16,
3878,
16,
443,
988,
416,
4672,
1652,
12243,
273,
2220,
18,
16886,
1435,
365,
6315,
9561,
273,
261,
3878,
16,
1652,
12243,
16,
443,
988,
416,
262,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6935,
1477,
12,
2890,
16,
2477,
16,
3878,
16,
443,
988,
416,
4672,
1652,
12243,
273,
2220,
18,
16886,
1435,
365,
6315,
9561,
273,
261,
3878,
16,
1652,
12243,
16,
443,
988,
416,
262,
36... |
self.bpmframe.remove(self.bpmeventbox) self.bpmedit = gtk.SpinButton() self.bpmedit.set_range(1, 400) self.bpmedit.set_increments(1, 5) self.bpmedit.set_value(self.project.bpm) self.bpmedit.connect("activate", self.OnAcceptEditBPM) self.bpmframe.add(self.bpmedit) self.bpmedit.show() self.bpmedit.grab_focus() self.bpm... | if not self.bpmeditPacked: self.bpmframe.remove(self.bpmeventbox) self.bpmframe.add(self.bpmedit) self.bpmedit.show() self.bpmedit.grab_focus() self.bpmeditPacked = True | def OnEditBPM(self, widget, event): """ Called when the user clicks the beats per minute box. This method will show a spin button widget with a value inside which the user can change. Parameters: widget -- reserved for GTK callbacks, don't use it explicitly. event -- reserved for GTK callbacks, don't use it explicitly... | 9a77205cc71e22672529f00a800735d1cc9e5b6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/9a77205cc71e22672529f00a800735d1cc9e5b6f/TimeLineBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4666,
38,
12728,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
11782,
1347,
326,
729,
27659,
326,
506,
2323,
1534,
8044,
3919,
18,
1220,
707,
903,
2405,
279,
12490,
3568,
3604,
598,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4666,
38,
12728,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
11782,
1347,
326,
729,
27659,
326,
506,
2323,
1534,
8044,
3919,
18,
1220,
707,
903,
2405,
279,
12490,
3568,
3604,
598,
279... |
for name, path in self.config_vars.iteritems(): | for name, path in self.config_vars.items(): | def create_home_path(self): """Create directories under ~ """ if not self.user: return home = convert_path(os.path.expanduser("~")) for name, path in self.config_vars.iteritems(): if path.startswith(home) and not os.path.isdir(path): self.debug_print("os.makedirs('%s', 0o700)" % path) os.makedirs(path, 0o700) | da06606b6357b2614659b394ab286f317c38f0d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/da06606b6357b2614659b394ab286f317c38f0d1/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
8712,
67,
803,
12,
2890,
4672,
3536,
1684,
6402,
3613,
4871,
3536,
309,
486,
365,
18,
1355,
30,
327,
6382,
273,
1765,
67,
803,
12,
538,
18,
803,
18,
12320,
1355,
2932,
98,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
8712,
67,
803,
12,
2890,
4672,
3536,
1684,
6402,
3613,
4871,
3536,
309,
486,
365,
18,
1355,
30,
327,
6382,
273,
1765,
67,
803,
12,
538,
18,
803,
18,
12320,
1355,
2932,
98,
6... |
map(os.remove, rm_files) | def reset(files = None, tree_id = None): """Revert the tree changes relative to the given tree_id. It removes any local changes """ if not tree_id: tree_id = get_head() cache_files = __tree_status(files, tree_id) rm_files = [x[1] for x in cache_files if x[0] in ['D']] checkout(files, tree_id, True) # checkout doesn'... | 2c4a491648aaf117a6d1b5af23b8b40be0d6dc4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/2c4a491648aaf117a6d1b5af23b8b40be0d6dc4b/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2354,
273,
599,
16,
2151,
67,
350,
273,
599,
4672,
3536,
426,
1097,
326,
2151,
3478,
3632,
358,
326,
864,
2151,
67,
350,
18,
2597,
7157,
1281,
1191,
3478,
3536,
309,
486,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2354,
273,
599,
16,
2151,
67,
350,
273,
599,
4672,
3536,
426,
1097,
326,
2151,
3478,
3632,
358,
326,
864,
2151,
67,
350,
18,
2597,
7157,
1281,
1191,
3478,
3536,
309,
486,
215... | |
print 'Compiling', fullname, '...' | if not quiet: print 'Compiling', fullname, '...' | def compile_dir(dir, maxlevels=10, ddir=None, force=0, rx=None): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default 10) ddir: if given, purported directory name (this is the directory name... | 0f9b0fd3c2a89f138e2ebe25a20280803a090026 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0f9b0fd3c2a89f138e2ebe25a20280803a090026/compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
1214,
12,
1214,
16,
943,
12095,
33,
2163,
16,
302,
1214,
33,
7036,
16,
2944,
33,
20,
16,
8581,
33,
7036,
4672,
3536,
3216,
17,
11100,
777,
4381,
316,
326,
864,
1867,
2151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
1214,
12,
1214,
16,
943,
12095,
33,
2163,
16,
302,
1214,
33,
7036,
16,
2944,
33,
20,
16,
8581,
33,
7036,
4672,
3536,
3216,
17,
11100,
777,
4381,
316,
326,
864,
1867,
2151,
... |
step_size = 2 | step_size = 1 | def grow_density(fmodel, file_name, xray_structures, x_center, y_center, z_center, radius ): """ method to improve local density using dummy atoms """ print "grow density method" | c779d0939127d9b73020e3754ea519a8705f7956 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/c779d0939127d9b73020e3754ea519a8705f7956/grow_density.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
67,
18781,
12,
74,
2284,
16,
585,
67,
529,
16,
619,
435,
67,
27979,
16,
619,
67,
5693,
16,
677,
67,
5693,
16,
998,
67,
5693,
16,
5725,
262,
30,
3536,
707,
358,
21171,
1191,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
67,
18781,
12,
74,
2284,
16,
585,
67,
529,
16,
619,
435,
67,
27979,
16,
619,
67,
5693,
16,
677,
67,
5693,
16,
998,
67,
5693,
16,
5725,
262,
30,
3536,
707,
358,
21171,
1191,
... |
('subject', 'subject_html')): | ('subject', 'subject_html'), ('subject', 'title')): | def _add_decoded(self, d): """Add encoded-word keys to HTML output""" for src, dst in (('author', 'author_html'), ('email', 'email_html'), ('subject', 'subject_html')): if self.decoded.has_key(src): d[dst] = self.quote(self.decoded[src]) | 469b12e8cfc912874019fdd0ddc95060d27b98f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/469b12e8cfc912874019fdd0ddc95060d27b98f4/HyperArch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
26646,
12,
2890,
16,
302,
4672,
3536,
986,
3749,
17,
1095,
1311,
358,
3982,
876,
8395,
364,
1705,
16,
3046,
316,
261,
2668,
4161,
2187,
296,
4161,
67,
2620,
19899,
7707,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
26646,
12,
2890,
16,
302,
4672,
3536,
986,
3749,
17,
1095,
1311,
358,
3982,
876,
8395,
364,
1705,
16,
3046,
316,
261,
2668,
4161,
2187,
296,
4161,
67,
2620,
19899,
7707,
... |
height = val.height - str_h_head - 2 * val.spacing | height = val.height - str_h_label - 2 * val.spacing | def DrawTVGuide_ItemsPerPage(self, settings): items = -1 val = settings.listing | d31c11c3f9777168daab09b7a7cda5ce84134383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d31c11c3f9777168daab09b7a7cda5ce84134383/main1_tv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
15579,
17424,
67,
3126,
13005,
12,
2890,
16,
1947,
4672,
1516,
273,
300,
21,
1244,
273,
1947,
18,
21228,
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,
10184,
15579,
17424,
67,
3126,
13005,
12,
2890,
16,
1947,
4672,
1516,
273,
300,
21,
1244,
273,
1947,
18,
21228,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for path in ('../../../third_party', '../../../../../pylibs'): path = os.path.join(script_path, path) if os.path.exists(path) and os.path.isdir(path): load_path = os.path.abspath(path) break | output = [] if run_tests: output.extend(input_api.canned_checks.RunPythonUnitTests(input_api, output_api, UNIT_TESTS)) return output | def OnTestsLoad(): old_path = sys.path script_path = os.path.dirname(sys.argv[0]) load_path = None global simplejson # This test script should be stored in src/tools/perf_expectations/. That # directory will most commonly live in 2 locations: # # - a regular Chromium checkout, in which case src/third_party # is... | fec974ab6785fd2a4a3c3fcfe3552188fb83e24b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/fec974ab6785fd2a4a3c3fcfe3552188fb83e24b/PRESUBMIT.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
14650,
2563,
13332,
1592,
67,
803,
273,
2589,
18,
803,
2728,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
5717,
1262,
67,
803,
273,
599,
2552,
4143,
1977,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
14650,
2563,
13332,
1592,
67,
803,
273,
2589,
18,
803,
2728,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
5717,
1262,
67,
803,
273,
599,
2552,
4143,
1977,... |
def fl_set_xyplot_alphaxtics(obj, m, s): """ fl_set_xyplot_alphaxtics(obj, m, s) """ _fl_set_xyplot_alphaxtics(obj, m, s) | def fl_set_xyplot_alphaxtics(pObject, m, s): """ fl_set_xyplot_alphaxtics(pObject, m, s) """ _fl_set_xyplot_alphaxtics(pObject, m, s) | def fl_set_xyplot_alphaxtics(obj, m, s): """ fl_set_xyplot_alphaxtics(obj, m, s) """ _fl_set_xyplot_alphaxtics(obj, m, s) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
651,
88,
2102,
12,
84,
921,
16,
312,
16,
272,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
651,
88,
2102,
12,
84,
921,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
651,
88,
2102,
12,
84,
921,
16,
312,
16,
272,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
287,
844,
651,
88,
2102,
12,
84,
921,
16,
... |
removed_items = [item for item in installinfo['removals'] if item.get('installed') == False] | removed_items = [item.get('manifestitem') for item in installinfo['removals'] if item.get('installed') == False] if os.path.exists(selfservemanifest): try: plist = FoundationPlist.readPlist(selfservemanifest) except FoundationPlist.FoundationPlistException: pass else: managed_uninstalls = plist.get('managed_uninsta... | def check(client_id=''): '''Checks for available new or updated managed software, downloading installer items if needed. Returns 1 if there are available updates, 0 if there are no available updates, and -1 if there were errors.''' getMachineFacts() munkicommon.report['MachineInfo'] = machine ManagedInstallDir = munki... | 8fad18788c27ca39aecae85a2501ec3daeb8964f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/8fad18788c27ca39aecae85a2501ec3daeb8964f/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2625,
67,
350,
2218,
11,
4672,
9163,
4081,
364,
2319,
394,
578,
3526,
7016,
17888,
16,
23742,
16050,
1516,
309,
3577,
18,
2860,
404,
309,
1915,
854,
2319,
4533,
16,
374,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2625,
67,
350,
2218,
11,
4672,
9163,
4081,
364,
2319,
394,
578,
3526,
7016,
17888,
16,
23742,
16050,
1516,
309,
3577,
18,
2860,
404,
309,
1915,
854,
2319,
4533,
16,
374,
309,
... |
form = DirCheckForm(rootDir) | form = DirSelector(rootDir) | def flags(self, index): if self.editable[ self.key( index ) ]: return Qt.ItemIsUserCheckable | Qt.ItemIsEnabled else: return Qt.NoItemFlags | e608d6cc8eca05d5252c6906158c079ce36b1020 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/e608d6cc8eca05d5252c6906158c079ce36b1020/dirselector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2943,
12,
2890,
16,
770,
4672,
309,
365,
18,
19653,
63,
365,
18,
856,
12,
770,
262,
308,
30,
327,
7354,
18,
1180,
2520,
1299,
1564,
429,
225,
571,
7354,
18,
1180,
2520,
1526,
469,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2943,
12,
2890,
16,
770,
4672,
309,
365,
18,
19653,
63,
365,
18,
856,
12,
770,
262,
308,
30,
327,
7354,
18,
1180,
2520,
1299,
1564,
429,
225,
571,
7354,
18,
1180,
2520,
1526,
469,
30... |
resp.initResponseFrame(id,STATUS_CONFIRMED) | resp.initResponseFrame(id,MULTIPLEXER_STATUS_CONFIRMED) | def _new_client(self, frame, refID): # If there is no user function to handle this, then just return # # If the client is already connected, then just return if self.callbackFunction == None or self._virtualSock(refID) != None: # Respond to our parter, send a failure message resp = MultiplexerFrame() resp.initResponseF... | 992246c633c09fe5d066f537c0640421e414afac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/992246c633c09fe5d066f537c0640421e414afac/Multiplexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
2625,
12,
2890,
16,
2623,
16,
1278,
734,
4672,
468,
971,
1915,
353,
1158,
729,
445,
358,
1640,
333,
16,
1508,
2537,
327,
468,
468,
971,
326,
1004,
353,
1818,
5840,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
2625,
12,
2890,
16,
2623,
16,
1278,
734,
4672,
468,
971,
1915,
353,
1158,
729,
445,
358,
1640,
333,
16,
1508,
2537,
327,
468,
468,
971,
326,
1004,
353,
1818,
5840,
16,
... |
self.entries[identifier] = TemplateFile(identifier, self.properties) | self.entries[identifier] = TemplateFile( \ self.data + '/' + identifier, self.properties) | def HandleEvent(self, event): '''Unified FAM event handler for DirShadow''' #print "got event %s %s %s" % ( event.code2str(), event.filename, event.requestID) action = event.code2str() if event.filename[0] == '/': return epath = "".join([self.data, self.handles[event.requestID], event.filename]) if event.filename in ['... | 4d10eb3683a20f79521edfd8d9b945bebed01d71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/4d10eb3683a20f79521edfd8d9b945bebed01d71/TCheetah.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1133,
12,
2890,
16,
871,
4672,
9163,
984,
939,
478,
2192,
871,
1838,
364,
8446,
12957,
26418,
468,
1188,
315,
13212,
871,
738,
87,
738,
87,
738,
87,
6,
738,
261,
871,
18,
710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1133,
12,
2890,
16,
871,
4672,
9163,
984,
939,
478,
2192,
871,
1838,
364,
8446,
12957,
26418,
468,
1188,
315,
13212,
871,
738,
87,
738,
87,
738,
87,
6,
738,
261,
871,
18,
710,
... |
'.ps': 'application/postscript', | '.pyo': 'application/x-python-code', | def read_mime_types(file): try: f = open(file) except IOError: return None map = {} while 1: line = f.readline() if not line: break words = line.split() for i in range(len(words)): if words[i][0] == '#': del words[i:] break if not words: continue type, suffixes = words[0], words[1:] for suff in suffixes: map['.'+suff] ... | 30d6066bdd9c1ac5ba976beb30e5c2e7d39355e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/30d6066bdd9c1ac5ba976beb30e5c2e7d39355e9/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
11757,
67,
2352,
12,
768,
4672,
775,
30,
284,
273,
1696,
12,
768,
13,
1335,
8340,
30,
327,
599,
852,
273,
2618,
1323,
404,
30,
980,
273,
284,
18,
896,
1369,
1435,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
11757,
67,
2352,
12,
768,
4672,
775,
30,
284,
273,
1696,
12,
768,
13,
1335,
8340,
30,
327,
599,
852,
273,
2618,
1323,
404,
30,
980,
273,
284,
18,
896,
1369,
1435,
309,
486,
... |
def urlparse(url, scheme = '', allow_framents = 1): key = url, scheme, allow_framents | def urlparse(url, scheme = '', allow_fragments = 1): key = url, scheme, allow_fragments | def urlparse(url, scheme = '', allow_framents = 1): key = url, scheme, allow_framents try: return _parse_cache[key] except KeyError: pass if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth clear_cache() netloc = path = params = query = fragment = '' i = string.find(url, ':') if i > 0: for c in url[:i]: if c... | 4722da6ebf96cbe0e0699e935fecc717c04a4b42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4722da6ebf96cbe0e0699e935fecc717c04a4b42/urlparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15185,
12,
718,
16,
4355,
273,
10226,
1699,
67,
29528,
273,
404,
4672,
498,
273,
880,
16,
4355,
16,
1699,
67,
29528,
775,
30,
327,
389,
2670,
67,
2493,
63,
856,
65,
1335,
4999,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15185,
12,
718,
16,
4355,
273,
10226,
1699,
67,
29528,
273,
404,
4672,
498,
273,
880,
16,
4355,
16,
1699,
67,
29528,
775,
30,
327,
389,
2670,
67,
2493,
63,
856,
65,
1335,
4999,
30,
1... |
self.stale = exp_time >= Configuration.maxDeferStale + time.time() | self.stale = exp_time <= Configuration.maxDeferStale + time.time() | def __init__( self, exp_time, defer_time, output, full_key ): self.full_key = full_key self.exp_time = exp_time self.out = output self.stale = exp_time >= Configuration.maxDeferStale + time.time() self.ttl = self.exp_time - time.time() self.valid = self.ttl >= 0 if self.valid and defer_time != -1: self.valid = defer_ti... | 15f0af174401ce1b9bf0b255281da9a260856881 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/15f0af174401ce1b9bf0b255281da9a260856881/Cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
1329,
67,
957,
16,
2220,
67,
957,
16,
876,
16,
1983,
67,
856,
262,
30,
365,
18,
2854,
67,
856,
273,
1983,
67,
856,
365,
18,
2749,
67,
957,
273,
1329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
16,
1329,
67,
957,
16,
2220,
67,
957,
16,
876,
16,
1983,
67,
856,
262,
30,
365,
18,
2854,
67,
856,
273,
1983,
67,
856,
365,
18,
2749,
67,
957,
273,
1329,
... |
seps=map(lambda s: ang_dist(sample[6],sample[7],s[1],s[0]),skypoints) | seps=map(lambda s: ang_dist(sample[5],sample[6],s[1],s[0]),skypoints) | def sky_hist(skypoints,samples): N=len(skypoints) print 'operating on %d sky points' % (N) bins=zeros(N) j=0 for sample in samples: seps=map(lambda s: ang_dist(sample[6],sample[7],s[1],s[0]),skypoints) minsep=math.pi for i in range(0,N): if seps[i]<minsep: minsep=seps[i] mindx=i bins[mindx]=bins[mindx]+1 j=j+1 print 'D... | 1c7e777c94d676d98831f95002598d58404c4fe8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/1c7e777c94d676d98831f95002598d58404c4fe8/OddsPostProc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15513,
67,
11488,
12,
7771,
879,
763,
87,
16,
7319,
4672,
423,
33,
1897,
12,
7771,
879,
763,
87,
13,
1172,
296,
4063,
1776,
603,
738,
72,
15513,
3143,
11,
738,
261,
50,
13,
8963,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15513,
67,
11488,
12,
7771,
879,
763,
87,
16,
7319,
4672,
423,
33,
1897,
12,
7771,
879,
763,
87,
13,
1172,
296,
4063,
1776,
603,
738,
72,
15513,
3143,
11,
738,
261,
50,
13,
8963,
33,... |
plt.plot(time,T_res,'--') plt.plot(time,T_sim) | plt.plot(time_res,T_res,'--') plt.plot(time_sim,T_sim) | def run_demo(with_plots=True): """This example is based on the Hicks-Ray Continuously Stirred Tank Reactors (CSTR) system. The system has two states, the concentration and the temperature. The control input to the system is the temperature of the cooling flow in the reactor jacket. The chemical reaction in the reactor ... | acad7ddc3bb17efbc06fe9acb0253898aaf6cb81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/acad7ddc3bb17efbc06fe9acb0253898aaf6cb81/cstr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
27928,
12,
1918,
67,
13214,
33,
5510,
4672,
3536,
2503,
3454,
353,
2511,
603,
326,
670,
20642,
17,
54,
528,
1816,
16295,
715,
934,
481,
1118,
399,
2304,
13732,
1383,
261,
39,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
27928,
12,
1918,
67,
13214,
33,
5510,
4672,
3536,
2503,
3454,
353,
2511,
603,
326,
670,
20642,
17,
54,
528,
1816,
16295,
715,
934,
481,
1118,
399,
2304,
13732,
1383,
261,
39,
... |
out["A"][i+13] ^= state["B"][12][i] | out["A"][i+beltLength] ^= state["B"][beltLength-1][i] | def R(state,wl): """Round function R state = the RadioGatun status wl = wordlength of the RadioGatun hash object """ out = stateInit() # Belt function: simple rotation for i in xrange(beltLength): out["B"][i] = state["B"][(i - 1)%beltLength] # Mill to belt feedforward for i in xrange(12): out["B"][i+1][i%beltWidth]... | 7b516f8fe1f3a2988cacd3343c2fa51aae031fd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/7b516f8fe1f3a2988cacd3343c2fa51aae031fd3/pyradiogatun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
534,
12,
2019,
16,
21504,
4672,
3536,
11066,
445,
534,
225,
919,
273,
326,
31552,
43,
270,
318,
1267,
19564,
565,
273,
2076,
2469,
434,
326,
31552,
43,
270,
318,
1651,
733,
3536,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
534,
12,
2019,
16,
21504,
4672,
3536,
11066,
445,
534,
225,
919,
273,
326,
31552,
43,
270,
318,
1267,
19564,
565,
273,
2076,
2469,
434,
326,
31552,
43,
270,
318,
1651,
733,
3536,
596,
... |
Note that while an id is optional, we recommend you supply a | Note that while an id is optional, we strongly recommend you supply a | def __init__(self, seq, id = "<unknown id>", name = "<unknown name>", description = "<unknown description>", dbxrefs = None, features = None): """Create a SeqRecord | 5451932f50bfbfc170c3fd7db96e8e72ab91685d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/5451932f50bfbfc170c3fd7db96e8e72ab91685d/SeqRecord.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3833,
16,
612,
273,
3532,
8172,
612,
2984,
16,
508,
273,
3532,
8172,
508,
2984,
16,
2477,
273,
3532,
8172,
2477,
2984,
16,
1319,
92,
9316,
273,
599,
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,
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,
3833,
16,
612,
273,
3532,
8172,
612,
2984,
16,
508,
273,
3532,
8172,
508,
2984,
16,
2477,
273,
3532,
8172,
2477,
2984,
16,
1319,
92,
9316,
273,
599,
16,
... |
num = '.' + unicode( int( filenameList[-1] ) + 1 ) | num = u'.' + unicodeC( int( filenameList[-1] ) + 1 ) | def findNewFile(filename, directory): u"""find a filename in the given directory that isn't already taken. adds '.1' before the file extension, or just .1 on the end if no file extension""" if os.path.isfile( os.path.join(directory, filename) ): logStatusMsg(u"filename already taken, looking for another: %s" % filename... | 15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
1908,
812,
12,
3459,
16,
1867,
4672,
582,
8395,
4720,
279,
1544,
316,
326,
864,
1867,
716,
5177,
1404,
1818,
9830,
18,
4831,
2418,
21,
11,
1865,
326,
585,
2710,
16,
578,
2537,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
1908,
812,
12,
3459,
16,
1867,
4672,
582,
8395,
4720,
279,
1544,
316,
326,
864,
1867,
716,
5177,
1404,
1818,
9830,
18,
4831,
2418,
21,
11,
1865,
326,
585,
2710,
16,
578,
2537,
26... |
Result: A list of TestRun objects on success or a dictionary containing values for the keys, "faultCode" and "faultString". | Result: A list of TestRun objects on success | def testplan_get_test_runs(self, plan_id): """Get A List of Test Runs For An Existing Test Plan. | 83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7088,
67,
588,
67,
3813,
67,
20152,
12,
2890,
16,
4995,
67,
350,
4672,
3536,
967,
432,
987,
434,
7766,
1939,
87,
2457,
1922,
28257,
7766,
12540,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7088,
67,
588,
67,
3813,
67,
20152,
12,
2890,
16,
4995,
67,
350,
4672,
3536,
967,
432,
987,
434,
7766,
1939,
87,
2457,
1922,
28257,
7766,
12540,
18,
2,
-100,
-100,
-100,
-100,
-1... |
if check_token(i, "monochrome"): | if val == "monochrome": | def convert_display_enum(document): " Convert 'display foo' to 'display false/true'" i = 0 while True: i = find_token(document.body, "display", i) if i == -1: return if check_token(i, "none"): document.body[i] = document.body[i].replace('none', 'false') if check_token(i, "default"): document.body[i] = document.body[i].... | ae760fa72b9d2280ac43d72ac3a9d1638d5775e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/ae760fa72b9d2280ac43d72ac3a9d1638d5775e4/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
5417,
67,
7924,
12,
5457,
4672,
315,
4037,
296,
5417,
8431,
11,
358,
296,
5417,
629,
19,
3767,
4970,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
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,
1765,
67,
5417,
67,
7924,
12,
5457,
4672,
315,
4037,
296,
5417,
8431,
11,
358,
296,
5417,
629,
19,
3767,
4970,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
... |
"Content-Length: 100000000\r\n" "Content-Type: application/x-www-form-urlencoded\r\n\r\n" % (self.host)) | "Content-Length: 10000\r\n" "Content-Type: application/x-www-form-urlencoded\r\n\r\n" % (self.host, self.useragents[random.randrange(1,12)])) | def sendHTTPHeader(self): self.socket.send("POST / HTTP/1.1\r\n" "Host: %s\r\n" "User-Agent: XPN HTTP DOS Tester\r\n" "Connection: keep-alive\r\n" "Keep-Alive: 900\r\n" "Content-Length: 100000000\r\n" "Content-Type: application/x-www-form-urlencoded\r\n\r\n" % (self.host)) #print "thread", self.id, "send header" | ddd2a16aebaf9560ddedd64f1f285dfa1a5a94ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13624/ddd2a16aebaf9560ddedd64f1f285dfa1a5a94ad/HTTPWorkerThread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
3693,
1864,
12,
2890,
4672,
365,
18,
7814,
18,
4661,
2932,
3798,
342,
2239,
19,
21,
18,
21,
64,
86,
64,
82,
6,
315,
2594,
30,
738,
87,
64,
86,
64,
82,
6,
315,
1299,
17,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
3693,
1864,
12,
2890,
4672,
365,
18,
7814,
18,
4661,
2932,
3798,
342,
2239,
19,
21,
18,
21,
64,
86,
64,
82,
6,
315,
2594,
30,
738,
87,
64,
86,
64,
82,
6,
315,
1299,
17,
363... |
return 1 | return True | def allowance(self, filename): """Preconditions: - our agent applies to this entry - filename is URL decoded""" for line in self.rulelines: _debug((filename, str(line), line.allowance)) if line.applies_to(filename): return line.allowance return 1 | 4f422b7384bdfcdd7c2a55e83aaf89d20e9979d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4f422b7384bdfcdd7c2a55e83aaf89d20e9979d1/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1699,
1359,
12,
2890,
16,
1544,
4672,
3536,
1386,
6381,
30,
300,
3134,
4040,
10294,
358,
333,
1241,
300,
1544,
353,
1976,
6383,
8395,
364,
980,
316,
365,
18,
86,
332,
14567,
30,
389,
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,
1699,
1359,
12,
2890,
16,
1544,
4672,
3536,
1386,
6381,
30,
300,
3134,
4040,
10294,
358,
333,
1241,
300,
1544,
353,
1976,
6383,
8395,
364,
980,
316,
365,
18,
86,
332,
14567,
30,
389,
4... |
def __str__(self): return str(self.asTuple()) def __repr__(self): return str(self.asTuple()) | def __str__(self): return str(self.asTuple()) def __repr__(self): return str(self.asTuple()) def __len__(self): return len(self.asTuple()) def __getitem__(self, index): return self.asTuple()[index] def __setitem__(self, index, val): if index == 0: self.width ... | def __str__(self): return str(self.asTuple()) | 211a46cf8271a93ad670effd0d2b742c6050f50f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/211a46cf8271a93ad670effd0d2b742c6050f50f/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
609,
12,
2890,
18,
345,
9038,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
609,
12,
2890,
18,
345,
9038,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
try: exec 'def f(a = 0, a = 1): pass' raise TestFailed, "duplicate keyword arguments" except SyntaxError: pass | def comp_args((a, b)=(3, 4)): return a, b self.assertEqual(comp_args((1, 2)), (1, 2)) self.assertEqual(comp_args(), (3, 4)) | exec 'def f(a, a): pass' | 75f85542b2bfe397d3317ab4cac8ce6b3bf8469a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/75f85542b2bfe397d3317ab4cac8ce6b3bf8469a/test_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1196,
296,
536,
284,
12,
69,
16,
279,
4672,
1342,
11,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1196,
296,
536,
284,
12,
69,
16,
279,
4672,
1342,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
(self._poly + right._poly, \ | (selfpoly + rightpoly, \ | def _add_(self, right): selfpoly = self._poly rightpoly = right._poly if self._valbase > right._valbase: selfpoly = selfpoly * self.base_ring().prime_pow(self._valbase - right._valbase) baseval = right._valbase elif self._valbase < right._valbase: rightpoly = rightpoly * self.base_ring().prime_pow(right._valbase - self... | bb0ec06543ed5f458c3933d609af279ea6ff5773 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bb0ec06543ed5f458c3933d609af279ea6ff5773/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
12,
2890,
16,
2145,
4672,
365,
16353,
273,
365,
6315,
16353,
2145,
16353,
273,
2145,
6315,
16353,
309,
365,
6315,
1125,
1969,
405,
2145,
6315,
1125,
1969,
30,
365,
16353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
12,
2890,
16,
2145,
4672,
365,
16353,
273,
365,
6315,
16353,
2145,
16353,
273,
2145,
6315,
16353,
309,
365,
6315,
1125,
1969,
405,
2145,
6315,
1125,
1969,
30,
365,
16353,
... |
dll.hide(value) | available.hide(value) | def iterator(self): """ An iterator for all permutations of k thinkgs from range(n). | b775262d35204a6c47acb6b30c470910b1c9f340 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/b775262d35204a6c47acb6b30c470910b1c9f340/permutation_nk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
3536,
1922,
2775,
364,
777,
26468,
434,
417,
15507,
564,
628,
1048,
12,
82,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2775,
12,
2890,
4672,
3536,
1922,
2775,
364,
777,
26468,
434,
417,
15507,
564,
628,
1048,
12,
82,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.__skeleton__[new_name] = self.__skeleton__[table] self.__skeleton__.pop(table) | self.__skeleton__[new_name] = self.__skeleton__[table_name] self.__skeleton__.pop(table_name) | def rename_table(self, table, new_name): # Check input: if not self.__skeleton__.has_key(table): raise ValueError("Database has no table %s."%table) if self.__skeleton__.has_key(new_name): raise ValueError("Database already has table %s."%new_name) | ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
67,
2121,
12,
2890,
16,
1014,
16,
394,
67,
529,
4672,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
12,
2121,
4672,
1002,
2068,
2932,
4254,
711,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
67,
2121,
12,
2890,
16,
1014,
16,
394,
67,
529,
4672,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771,
12143,
25648,
5332,
67,
856,
12,
2121,
4672,
1002,
2068,
2932,
4254,
711,
11... |
self.openButton = gtk.Button("Open File") | self.openButton = gtk.Button(stock=gtk.STOCK_OPEN) | def __init__(self): # Game controller. self.controller = Hangman() | c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea/Hangman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
14121,
2596,
18,
365,
18,
5723,
273,
670,
539,
4728,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
14121,
2596,
18,
365,
18,
5723,
273,
670,
539,
4728,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def foo (self, value): | def foo(self, value): | def foo (self, value): raise RuntimeError | d7b4c37c0dbde8e5f6a519893119a3c7af75f7b4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d7b4c37c0dbde8e5f6a519893119a3c7af75f7b4/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8431,
12,
2890,
16,
460,
4672,
1002,
7265,
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,
... | [
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,
8431,
12,
2890,
16,
460,
4672,
1002,
7265,
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... |
if(severity_str): | if (severity_str): | def _get_config(self, config_data): """Get config data from module configuration""" log_file_str = config_data.get('log_file') if(log_file_str): self._log_file = log_file_str severity_str = config_data.get('log_severity') if(severity_str): self._severity = severity_str | 153b6b2c6735f83b37f8d94c65310ce1d7df6263 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/153b6b2c6735f83b37f8d94c65310ce1d7df6263/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1425,
12,
2890,
16,
642,
67,
892,
4672,
3536,
967,
642,
501,
628,
1605,
1664,
8395,
225,
613,
67,
768,
67,
701,
273,
642,
67,
892,
18,
588,
2668,
1330,
67,
768,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1425,
12,
2890,
16,
642,
67,
892,
4672,
3536,
967,
642,
501,
628,
1605,
1664,
8395,
225,
613,
67,
768,
67,
701,
273,
642,
67,
892,
18,
588,
2668,
1330,
67,
768,
6134,
... |
lines = [ line for line in lines if pattern in line ] return '\n'.join(lines) | filtr = lambda line: pattern in line return [ line for line in lines if filtr(line) ] | def grep(self, text, pattern, pattern_type='literal string'): """Returns the text grepped using `pattern`. `pattern_type` defines how the given pattern is interpreted, as explained below. It is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equ... | da7e8376d7281ad08ceebcb876a57e6fcaebf955 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/da7e8376d7281ad08ceebcb876a57e6fcaebf955/BuiltIn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
12,
2890,
16,
977,
16,
1936,
16,
1936,
67,
723,
2218,
13107,
533,
11,
4672,
3536,
1356,
326,
977,
23366,
1845,
1450,
1375,
4951,
8338,
225,
1375,
4951,
67,
723,
68,
11164,
3661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
12,
2890,
16,
977,
16,
1936,
16,
1936,
67,
723,
2218,
13107,
533,
11,
4672,
3536,
1356,
326,
977,
23366,
1845,
1450,
1375,
4951,
8338,
225,
1375,
4951,
67,
723,
68,
11164,
3661,
... |
z = SoapWriter(sys.stdout, header=ps.header_elements, nsdict=nsdict) | sio = StringIO.StringIO() z = SoapWriter(sio, header=ps.header_elements, nsdict=nsdict) | def checkt1(self): for key,val in self.badTests: print "\n", "." * 60, key self.failUnlessRaises(ParseException, ParsedSoap, val) for key,val in self.goodTests: print "\n", "." * 60, key ps = ParsedSoap(val) | c1c6200069e6ca90a6fe85d38d9a3c7df559029f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/c1c6200069e6ca90a6fe85d38d9a3c7df559029f/test_t1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
88,
21,
12,
2890,
4672,
364,
498,
16,
1125,
316,
365,
18,
8759,
14650,
30,
1172,
1548,
82,
3113,
4585,
380,
4752,
16,
498,
365,
18,
6870,
984,
2656,
12649,
6141,
12,
13047,
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,
88,
21,
12,
2890,
4672,
364,
498,
16,
1125,
316,
365,
18,
8759,
14650,
30,
1172,
1548,
82,
3113,
4585,
380,
4752,
16,
498,
365,
18,
6870,
984,
2656,
12649,
6141,
12,
13047,
16,
... |
move_to (un,pos) | pos=move_to (un,pos) | def look_for (fg, faction, numships,myunit, pos, gcd): i=0 un = VS.getUnit (i) while (un): i+=1 un = VS.getUnit (i) i-=1 #now our i is on the last value while ((i>=0)&&(numships>0)): un = VS.getUnit (i) if (un): | 79a4a72427eea78a1eda0edc80d0661f3845c1a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/79a4a72427eea78a1eda0edc80d0661f3845c1a1/launch_recycle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
1884,
261,
2137,
16,
284,
1128,
16,
818,
3261,
87,
16,
4811,
4873,
16,
225,
949,
16,
14876,
4672,
277,
33,
20,
640,
273,
776,
55,
18,
588,
2802,
261,
77,
13,
1323,
261,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
1884,
261,
2137,
16,
284,
1128,
16,
818,
3261,
87,
16,
4811,
4873,
16,
225,
949,
16,
14876,
4672,
277,
33,
20,
640,
273,
776,
55,
18,
588,
2802,
261,
77,
13,
1323,
261,
3... |
"language": self.languagelookup[self.TranslationComboEntry.get_text()], | "language": language, | def GetSettings(self): try: import gettext message = "" if self.TranslationCheck.get_active(): language = self.TranslationComboEntry.get_text() if language not in self.languagelookup.values(): language = self.languagelookup[self.TranslationComboEntry.get_text()] langTranslation = gettext.translation('nicotine', langua... | 6d3fa0422886caf2f0971fbf7dae5513a10dd987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/6d3fa0422886caf2f0971fbf7dae5513a10dd987/settingswindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2628,
12,
2890,
4672,
225,
775,
30,
1930,
24972,
883,
273,
1408,
309,
365,
18,
6717,
1564,
18,
588,
67,
3535,
13332,
2653,
273,
365,
18,
6717,
16156,
1622,
18,
588,
67,
955,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2628,
12,
2890,
4672,
225,
775,
30,
1930,
24972,
883,
273,
1408,
309,
365,
18,
6717,
1564,
18,
588,
67,
3535,
13332,
2653,
273,
365,
18,
6717,
16156,
1622,
18,
588,
67,
955,
1435,... |
imgs = Image.objects.filter(name__startswith = sp[0], checksum = sp[1]) | imgs = Image.objects.filter(name__exact = sp[0], checksum = sp[1]) | def ims_get_image_list_from_file(request): """ Parse content of fileName and returns an image selection """ try: fileName = request.POST['Filename'] onTheFly = json.decode(request.POST['OnTheFly']) except Exception, e: return HttpResponseBadRequest('Incorrect POST data') errMsg = '' try: f = open('/tmp/' + request.use... | 789c69227408fe017150346557d70b71d1818ab3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/789c69227408fe017150346557d70b71d1818ab3/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
709,
87,
67,
588,
67,
2730,
67,
1098,
67,
2080,
67,
768,
12,
2293,
4672,
3536,
2884,
913,
434,
3968,
471,
1135,
392,
1316,
4421,
3536,
775,
30,
3968,
273,
590,
18,
3798,
3292,
5359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
709,
87,
67,
588,
67,
2730,
67,
1098,
67,
2080,
67,
768,
12,
2293,
4672,
3536,
2884,
913,
434,
3968,
471,
1135,
392,
1316,
4421,
3536,
775,
30,
3968,
273,
590,
18,
3798,
3292,
5359,
... |
except AttributeError: | except (AttributeError, io.UnsupportedOperation): | def __init__(self, buffer, encoding=None, newline=None): if newline not in (None, "\n", "\r\n"): raise ValueError("illegal newline value: %r" % (newline,)) if encoding is None: try: encoding = os.device_encoding(buffer.fileno()) except AttributeError: pass if encoding is None: try: import locale except ImportError: # I... | df3dc314cc0fdfeaa50f6773a4255078a9137d24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/df3dc314cc0fdfeaa50f6773a4255078a9137d24/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1613,
16,
2688,
33,
7036,
16,
9472,
33,
7036,
4672,
309,
9472,
486,
316,
261,
7036,
16,
1548,
82,
3113,
1548,
86,
64,
82,
6,
4672,
1002,
2068,
2932,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1613,
16,
2688,
33,
7036,
16,
9472,
33,
7036,
4672,
309,
9472,
486,
316,
261,
7036,
16,
1548,
82,
3113,
1548,
86,
64,
82,
6,
4672,
1002,
2068,
2932,
31... |
data = '%s\n%s\n%s' % (w.backto(), __groups_actions(), w.menu(uri)) | data = w.page_body_start(uri, http_user, ctxtnav, title, False) | def unlock(uri, http_user, name, sure = False): """ Make a shared group dir permissive. """ title = _("Make group %s permissive") % name data = '%s\n%s\n%s' % (w.backto(), __groups_actions(), w.menu(uri)) if not sure: description = _('''This will permit large access to files and folders in the group shared dir, and ... | e74a9415e90d5a3af83e10abed2f1876ae4e528a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/e74a9415e90d5a3af83e10abed2f1876ae4e528a/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7186,
12,
1650,
16,
1062,
67,
1355,
16,
508,
16,
3071,
273,
1083,
4672,
3536,
4344,
279,
5116,
1041,
1577,
293,
1840,
688,
18,
3536,
225,
2077,
273,
389,
2932,
6464,
1041,
738,
87,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7186,
12,
1650,
16,
1062,
67,
1355,
16,
508,
16,
3071,
273,
1083,
4672,
3536,
4344,
279,
5116,
1041,
1577,
293,
1840,
688,
18,
3536,
225,
2077,
273,
389,
2932,
6464,
1041,
738,
87,
293... |
terms = [term for term in split(str_to_unicode(terms).lower()) if term] | terms = [term for term in split(py3_str(terms).lower()) if term] | def _query_inverted_index(self, ivtidx, terms, limit = 100, object_type = None): """ Queries the inverted index ivtidx for the terms supplied in the terms argument. If terms is a string, it is parsed into individual terms based on the split for the given ivtidx. The terms argument may also be a list or tuple, in whic... | e9426547ca9af32665d63969a6426b781cf7f925 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11722/e9426547ca9af32665d63969a6426b781cf7f925/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
67,
267,
25631,
67,
1615,
12,
2890,
16,
4674,
88,
3465,
16,
6548,
16,
1800,
273,
2130,
16,
733,
67,
723,
273,
599,
4672,
3536,
30189,
326,
18150,
770,
4674,
88,
3465,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2271,
67,
267,
25631,
67,
1615,
12,
2890,
16,
4674,
88,
3465,
16,
6548,
16,
1800,
273,
2130,
16,
733,
67,
723,
273,
599,
4672,
3536,
30189,
326,
18150,
770,
4674,
88,
3465,
364,
... |
self.EnsureCharsVisible(notify.position, notify.position + notify.length) | self.EnsureCharsVisible(notify.position) | def OnNeedShown(self, std, extra): notify = self.SCIUnpackNotifyMessage(extra) self.EnsureCharsVisible(notify.position, notify.position + notify.length) | db3528b437bd7fcd94aeb3aea74a4ad80e70f6cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/db3528b437bd7fcd94aeb3aea74a4ad80e70f6cb/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
14112,
27042,
12,
2890,
16,
2044,
16,
2870,
4672,
5066,
273,
365,
18,
2312,
45,
23649,
9168,
1079,
12,
7763,
13,
365,
18,
12512,
7803,
6207,
12,
12336,
18,
3276,
16,
5066,
18,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
14112,
27042,
12,
2890,
16,
2044,
16,
2870,
4672,
5066,
273,
365,
18,
2312,
45,
23649,
9168,
1079,
12,
7763,
13,
365,
18,
12512,
7803,
6207,
12,
12336,
18,
3276,
16,
5066,
18,
32... |
self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) | def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-... | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
364,
1151,
316,
756,
30,
7553,
67,
273,
4034,
67,
4951,
27799,
1916,
12,
3624,
18,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
364,
1151,
316,
756,
30,
7553,
67,
273,
4034,
67,
4951,
27799,
1916,
12,
3624,
18,
269... | |
print "But this is a dry run, so leaving it alone." | print("But this is a dry run, so leaving it alone.") | def check(file): if os.path.isdir(file) and not os.path.islink(file): if verbose: print "listing directory", file names = os.listdir(file) for name in names: fullname = os.path.join(file, name) if ((recurse and os.path.isdir(fullname) and not os.path.islink(fullname)) or name.lower().endswith(".py")): check(fullname) r... | 6247fdbf93a8c72e1be40d396102b7f1a1271c95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/6247fdbf93a8c72e1be40d396102b7f1a1271c95/reindent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
768,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
768,
13,
471,
486,
1140,
18,
803,
18,
291,
1232,
12,
768,
4672,
309,
3988,
30,
1172,
315,
21228,
1867,
3113,
585,
1257,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
768,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
768,
13,
471,
486,
1140,
18,
803,
18,
291,
1232,
12,
768,
4672,
309,
3988,
30,
1172,
315,
21228,
1867,
3113,
585,
1257,
273... |
print dict(to_check) | def authority_lookup(to_check, found, marc_alt): print dict(to_check) found_matches = False for person_key, match in to_check.items(): if len(match) == 1: continue name = ' '.join(v.strip() for k, v in person_key if k != 'd') print 'search:', `name` search_results = authority.search(name) match_dates = dict((get_marc_d... | 5d9fef705ab23d030593d036135f04172a1081d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/5d9fef705ab23d030593d036135f04172a1081d8/identify_people.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11675,
67,
8664,
12,
869,
67,
1893,
16,
1392,
16,
312,
11828,
67,
2390,
4672,
1392,
67,
8436,
273,
1083,
364,
6175,
67,
856,
16,
845,
316,
358,
67,
1893,
18,
3319,
13332,
309,
562,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11675,
67,
8664,
12,
869,
67,
1893,
16,
1392,
16,
312,
11828,
67,
2390,
4672,
1392,
67,
8436,
273,
1083,
364,
6175,
67,
856,
16,
845,
316,
358,
67,
1893,
18,
3319,
13332,
309,
562,
1... | |
def CONTINUE_setLabel(self, node, identifier): node.append(identifier, "label") | def CONTINUE_setLabel(self, node, label): node.label = label | def CONTINUE_setLabel(self, node, identifier): node.append(identifier, "label") | 878dba0d21afb08aca78fe5850c689cd2f1e4767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/878dba0d21afb08aca78fe5850c689cd2f1e4767/VanillaBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8020,
26725,
67,
542,
2224,
12,
2890,
16,
756,
16,
2756,
4672,
756,
18,
6923,
12,
5644,
16,
315,
1925,
7923,
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,
8020,
26725,
67,
542,
2224,
12,
2890,
16,
756,
16,
2756,
4672,
756,
18,
6923,
12,
5644,
16,
315,
1925,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
}))) | })) | def _get_bug_stats(self, package, collection='Fedora'): """ Returns (# of open bugs, # of new bugs, # of closed bugs) """ results = [] last_week = str(datetime.utcnow() - timedelta(days=7)), | db7abe949e3fbab840693ccf5a932baa23e6ea8d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/db7abe949e3fbab840693ccf5a932baa23e6ea8d/bugzillaconnector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
925,
67,
5296,
12,
2890,
16,
2181,
16,
1849,
2218,
42,
15534,
11,
4672,
3536,
2860,
23885,
434,
1696,
22398,
16,
468,
434,
394,
22398,
16,
468,
434,
4375,
22398,
13,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
925,
67,
5296,
12,
2890,
16,
2181,
16,
1849,
2218,
42,
15534,
11,
4672,
3536,
2860,
23885,
434,
1696,
22398,
16,
468,
434,
394,
22398,
16,
468,
434,
4375,
22398,
13,
3536... |
""" If attribute is None, "type" is assumed, return the corresponding | """If attribute is None, "type" is assumed, return the corresponding | def getTypeDefinition(self, attribute=None): """ | 9b9604108342a47b1f98a32a0277031be0cdffbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/9b9604108342a47b1f98a32a0277031be0cdffbe/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3130,
1852,
12,
2890,
16,
1566,
33,
7036,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3130,
1852,
12,
2890,
16,
1566,
33,
7036,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if uri.find('?') > -1: uri += '&gsessionid=%s' % (self.__gsessionid,) else: uri += '?gsessionid=%s' % (self.__gsessionid,) | if uri.find('gsessionid=') < 0: if uri.find('?') > -1: uri += '&gsessionid=%s' % (self.__gsessionid,) else: uri += '?gsessionid=%s' % (self.__gsessionid,) | def Post(self, data, uri, extra_headers=None, url_params=None, escape_params=True, redirects_remaining=4): """Insert data into a GData service at the given URI. | 4d5fe85d01ec7eb842c11e4106cf25eb224af99e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/4d5fe85d01ec7eb842c11e4106cf25eb224af99e/gdata_service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5616,
12,
2890,
16,
501,
16,
2003,
16,
2870,
67,
2485,
33,
7036,
16,
880,
67,
2010,
33,
7036,
16,
4114,
67,
2010,
33,
5510,
16,
18064,
67,
17956,
33,
24,
4672,
3536,
4600,
501,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5616,
12,
2890,
16,
501,
16,
2003,
16,
2870,
67,
2485,
33,
7036,
16,
880,
67,
2010,
33,
7036,
16,
4114,
67,
2010,
33,
5510,
16,
18064,
67,
17956,
33,
24,
4672,
3536,
4600,
501,
1368,... |
atoms = self.get_atoms() | if atoms is None: atoms = self.get_atoms() | def get_dipole_moment(self): ''' return dipole moment of unit cell | 162c94766468906ac2ad19349ed786495fae88e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/162c94766468906ac2ad19349ed786495fae88e7/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24953,
790,
67,
22027,
12,
2890,
4672,
9163,
327,
24408,
790,
10382,
434,
2836,
2484,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24953,
790,
67,
22027,
12,
2890,
4672,
9163,
327,
24408,
790,
10382,
434,
2836,
2484,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For example: | For example:: | def encode_multipart_formdata(fields): """ Given a dictionary field parameters, returns the HTTP request body and the content_type (which includes the boundary string), to be used with an httplib-like call. Normal key/value items are treated as regular parameters, but key/tuple items are treated as files, where a valu... | 8b963ed47f0934568ca58a570a0a09d892fffe9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4547/8b963ed47f0934568ca58a570a0a09d892fffe9d/slave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
67,
16404,
67,
687,
892,
12,
2821,
4672,
3536,
16803,
279,
3880,
652,
1472,
16,
1135,
326,
2239,
590,
1417,
471,
326,
913,
67,
723,
261,
12784,
6104,
326,
7679,
533,
3631,
358,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
67,
16404,
67,
687,
892,
12,
2821,
4672,
3536,
16803,
279,
3880,
652,
1472,
16,
1135,
326,
2239,
590,
1417,
471,
326,
913,
67,
723,
261,
12784,
6104,
326,
7679,
533,
3631,
358,
5... |
tar_file = '%s.tar.gz' % (path + '/' + prefix) | tar_file = '%s.tar.gz' % os.path.join(path, prefix) | def tarzip_image(self, prefix, file, path): print 'Tarring image' tar_file = '%s.tar.gz' % (path + '/' + prefix) tar = tarfile.open(tar_file, "w|gz") tar.add(file, arcname=prefix) tar.close() return tar_file | 02df5857b004e6a8970caf449717d9b46d14387a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/02df5857b004e6a8970caf449717d9b46d14387a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8232,
4450,
67,
2730,
12,
2890,
16,
1633,
16,
585,
16,
589,
4672,
1172,
296,
56,
5399,
310,
1316,
11,
8232,
67,
768,
273,
1995,
87,
18,
11718,
18,
9764,
11,
738,
1140,
18,
803,
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,
8232,
4450,
67,
2730,
12,
2890,
16,
1633,
16,
585,
16,
589,
4672,
1172,
296,
56,
5399,
310,
1316,
11,
8232,
67,
768,
273,
1995,
87,
18,
11718,
18,
9764,
11,
738,
1140,
18,
803,
18,
... |
self.pushBotJoin() | if self.syncd: self.pushBotJoin() | def handleCmd_KICK(self, prefix, args): | e38a2227fa562cc03795e65d4e5263b9ec69e557 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12372/e38a2227fa562cc03795e65d4e5263b9ec69e557/bridge_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
47,
16656,
12,
2890,
16,
1633,
16,
833,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
47,
16656,
12,
2890,
16,
1633,
16,
833,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return str(a.item()) | obj = a.item() if isinstance(obj, tuple): obj = _convert_arrays(obj) return str(obj) | def _formatArray(a, format_function, rank, max_line_len, next_line_prefix, separator, edge_items, summary_insert): """formatArray is designed for two modes of operation: 1. Full output 2. Summarized output """ if rank == 0: return str(a.item()) if summary_insert and 2*edge_items < len(a): leading_items, trailing_it... | 38124a012c043fb2ddc3d2eab90af4c35db619c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/38124a012c043fb2ddc3d2eab90af4c35db619c6/arrayprint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
1076,
12,
69,
16,
740,
67,
915,
16,
6171,
16,
943,
67,
1369,
67,
1897,
16,
1024,
67,
1369,
67,
3239,
16,
4182,
16,
3591,
67,
3319,
16,
4916,
67,
6387,
4672,
3536,
2139,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
1076,
12,
69,
16,
740,
67,
915,
16,
6171,
16,
943,
67,
1369,
67,
1897,
16,
1024,
67,
1369,
67,
3239,
16,
4182,
16,
3591,
67,
3319,
16,
4916,
67,
6387,
4672,
3536,
2139,
... |
params['class'] = "high bandwidth" params['bytes'] = format_bytes(usedi2bytes - self.i2bytes) params['limit'] = format_bytes(self.Maxi2KByte * 1024) params['new_maxexemptrate'] = bwlimit.format_tc_rate(new_maxi2rate) if verbose: logger.log("bwmon: %(slice)s %(class)s " \ "%(bytes)s of %(limit)s (%(new_maxrate)s/s max... | def update(self, runningmaxrate, runningmaxi2rate, usedbytes, usedi2bytes, rspec): """ Update byte counts and check if byte thresholds have been exceeded. If exceeded, cap to remaining bytes in limit over remaining in period. Recalculate every time module runs. """ # Query Node Manager for max rate overrides self.upd... | e17ccfdb44360782bd91e02b3b1df8cafb675f28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6995/e17ccfdb44360782bd91e02b3b1df8cafb675f28/bwmon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
3549,
1896,
5141,
16,
3549,
1896,
77,
22,
5141,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
16,
436,
2793,
4672,
3536,
2315,
1160,
6880,
471,
866,
309,
1160,
19983,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
3549,
1896,
5141,
16,
3549,
1896,
77,
22,
5141,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
16,
436,
2793,
4672,
3536,
2315,
1160,
6880,
471,
866,
309,
1160,
19983,
124... | |
usage: test_argparse.py [-h] [-b B] [--d D] [--w W] [-y Y] a z | usage: {} [-h] [-b B] [--d D] [--w W] [-y Y] a z | def test_parent_help(self): parents = [self.abcd_parent, self.wxyz_parent] parser = ErrorRaisingArgumentParser(parents=parents) parser_help = parser.format_help() self.assertEqual(parser_help, textwrap.dedent('''\ usage: test_argparse.py [-h] [-b B] [--d D] [--w W] [-y Y] a z | 3ee4159b29f0b1b92c06f74304e5f363ce2d9bac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/3ee4159b29f0b1b92c06f74304e5f363ce2d9bac/test_argparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2938,
67,
5201,
12,
2890,
4672,
6298,
273,
306,
2890,
18,
378,
4315,
67,
2938,
16,
365,
18,
91,
17177,
67,
2938,
65,
2082,
273,
1068,
12649,
13734,
1379,
2678,
12,
12606,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2938,
67,
5201,
12,
2890,
4672,
6298,
273,
306,
2890,
18,
378,
4315,
67,
2938,
16,
365,
18,
91,
17177,
67,
2938,
65,
2082,
273,
1068,
12649,
13734,
1379,
2678,
12,
12606,
33,... |
self.debug_trace( "found operator %s", k ) | def operatorTag(self): self.operator_position = self.operator_position + 1 tag = unpack('B', self.data[self.index] )[0] for k in pxl_tags_dict.keys(): if ( pxl_tags_dict[k] == tag ): print "// Operator Position: %d File Offset of operator" % \ self.operator_position, self.begin_attribute_pos print k self.index = self.i... | 56f3b40c49b4c8c2c1bf30f153b578ada70886f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/56f3b40c49b4c8c2c1bf30f153b578ada70886f5/pxldis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3726,
1805,
12,
2890,
4672,
365,
18,
9497,
67,
3276,
273,
365,
18,
9497,
67,
3276,
397,
404,
1047,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
65,
262,
63,
20,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3726,
1805,
12,
2890,
4672,
365,
18,
9497,
67,
3276,
273,
365,
18,
9497,
67,
3276,
397,
404,
1047,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
65,
262,
63,
20,
65,
... | |
return S_ERROR('Page number out of range') | return S_ERROR( 'Page number out of range' ) | def export_getReqPageSummary(self, attrDict, orderAttribute, pageNumber, numberPerPage): """ Get the summary of the fts req information for a given page in the fts monitor """ last_update = None if attrDict.has_key('LastUpdate'): last_update = attrDict['LastUpdate'] del attrDict['LastUpdate'] res = transferDB.selectFTS... | fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22/TransferDBMonitoringHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
6113,
1964,
4733,
12,
2890,
16,
1604,
5014,
16,
1353,
1499,
16,
26484,
16,
1300,
13005,
4672,
3536,
968,
326,
4916,
434,
326,
284,
3428,
1111,
1779,
364,
279,
864,
1363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
6113,
1964,
4733,
12,
2890,
16,
1604,
5014,
16,
1353,
1499,
16,
26484,
16,
1300,
13005,
4672,
3536,
968,
326,
4916,
434,
326,
284,
3428,
1111,
1779,
364,
279,
864,
1363,
... |
owner and owner.get_name(), | owner and owner.name, | def __repr__(self): owner = self.__owner return "<%s(%s, %d)>" % ( self.__class__.__name__, owner and owner.get_name(), self.__count) | ff1261e48676828c9cdaff688866a7fdd0ce2716 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/ff1261e48676828c9cdaff688866a7fdd0ce2716/threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3410,
273,
365,
16186,
8443,
327,
3532,
9,
87,
9275,
87,
16,
738,
72,
13,
2984,
738,
261,
365,
16186,
1106,
972,
16186,
529,
972,
16,
3410,
471,
3410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
12715,
972,
12,
2890,
4672,
3410,
273,
365,
16186,
8443,
327,
3532,
9,
87,
9275,
87,
16,
738,
72,
13,
2984,
738,
261,
365,
16186,
1106,
972,
16186,
529,
972,
16,
3410,
471,
3410,... |
def feedDatabase(self, file): if file.find('WlmProtocol'): | def feedDatabase(self, filepath): if 'WlmProtocol' in filepath: | def feedDatabase(self, file): if file.find('WlmProtocol'): protocol = 'wlm' elif file.find('ICQProtocol'): protocol = 'icq' elif file.find('JabberProtocol'): protocol = 'jabber' else: protocol = '' xmllog = parse(file) for head in xmllog.getiterator('head'): for date in head.getiterator('date'): month=date.attrib['mon... | 32c9ce5a16147a0a40ab7b8ad544368288a0ce69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8537/32c9ce5a16147a0a40ab7b8ad544368288a0ce69/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4254,
12,
2890,
16,
225,
3608,
4672,
309,
296,
59,
25972,
5752,
11,
316,
3608,
30,
1771,
273,
296,
21504,
81,
11,
1327,
585,
18,
4720,
2668,
2871,
53,
5752,
11,
4672,
1771,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4254,
12,
2890,
16,
225,
3608,
4672,
309,
296,
59,
25972,
5752,
11,
316,
3608,
30,
1771,
273,
296,
21504,
81,
11,
1327,
585,
18,
4720,
2668,
2871,
53,
5752,
11,
4672,
1771,
273,
... |
documents = self._search(query) | return self.__search(query) def how_many(self, query=None, **kw): """ Returns the number of documents found. """ return len(self._search(query, **kw)) def search(self, query=None, **kw): documents = self._search(query, **kw) | def search(self, query=None, **kw): # Build the query if it is passed through keyword parameters if query is None: for key, value in kw.items(): atom = Query.Simple(key, value) if query is None: query = atom else: query = Query.Complex(query, 'and', atom) # Check wether there is a query at all if query is None: raise V... | 24f5ae2688285eadb944da262a4798fc6f82877d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/24f5ae2688285eadb944da262a4798fc6f82877d/Catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
843,
33,
7036,
16,
2826,
9987,
4672,
468,
3998,
326,
843,
309,
518,
353,
2275,
3059,
4932,
1472,
309,
843,
353,
599,
30,
364,
498,
16,
460,
316,
5323,
18,
3319,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
843,
33,
7036,
16,
2826,
9987,
4672,
468,
3998,
326,
843,
309,
518,
353,
2275,
3059,
4932,
1472,
309,
843,
353,
599,
30,
364,
498,
16,
460,
316,
5323,
18,
3319,
1... |
i = self.__g._Graph__known_properties.index((self.key_type(), self.__map)) del self.__g._Graph__known_properties[i] | if self.__g() == None: return i = self.__g()._Graph__known_properties.index((self.key_type(), weakref.ref(self.__map))) del self.__g()._Graph__known_properties[i] | def __unregister_map(self): i = self.__g._Graph__known_properties.index((self.key_type(), self.__map)) del self.__g._Graph__known_properties[i] | ccebfe0034da6556a6a4315e06d413bbdc24a74c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3516/ccebfe0034da6556a6a4315e06d413bbdc24a74c/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
318,
4861,
67,
1458,
12,
2890,
4672,
277,
273,
365,
16186,
75,
6315,
4137,
972,
2994,
67,
4738,
18,
1615,
12443,
2890,
18,
856,
67,
723,
9334,
365,
16186,
1458,
3719,
1464,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
318,
4861,
67,
1458,
12,
2890,
4672,
277,
273,
365,
16186,
75,
6315,
4137,
972,
2994,
67,
4738,
18,
1615,
12443,
2890,
18,
856,
67,
723,
9334,
365,
16186,
1458,
3719,
1464,
365,
... |
self.SetSelection(self.GetLineStartPos(sls), self.GetLineStartPos(sle)-1) | self.SetSelection(self.PositionFromLine(sls), self.PositionFromLine(sle)-1) | def processSelectionBlock(self, func): self.BeginUndoAction() try: sls, sle = self.reselectSelectionAsBlock() textLst = func(string.split(self.GetSelectedText(), self.eol))[:-1] self.ReplaceSelection(string.join(textLst, self.eol)+self.eol) if sle > sls: self.SetSelection(self.GetLineStartPos(sls), self.GetLineStartPos... | f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
6233,
1768,
12,
2890,
16,
1326,
4672,
365,
18,
8149,
31224,
1803,
1435,
775,
30,
31325,
16,
272,
298,
273,
365,
18,
455,
13759,
6233,
1463,
1768,
1435,
977,
28134,
273,
1326,
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,
1207,
6233,
1768,
12,
2890,
16,
1326,
4672,
365,
18,
8149,
31224,
1803,
1435,
775,
30,
31325,
16,
272,
298,
273,
365,
18,
455,
13759,
6233,
1463,
1768,
1435,
977,
28134,
273,
1326,
12,
... |
if message == '__ping__': result = (object is not None) else: netResult = object.remoteMessageReceived(self, message, netArgs, netKw) | netResult = object.remoteMessageReceived(self, message, netArgs, netKw) | def _recvMessage(self, findObjMethod, requestID, objectID, message, answerRequired, netArgs, netKw): """Received a message-send. | c0bc4b7519b791390c8aeed1e0a20caf9fb64d14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/c0bc4b7519b791390c8aeed1e0a20caf9fb64d14/pb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18334,
1079,
12,
2890,
16,
1104,
2675,
1305,
16,
590,
734,
16,
23021,
16,
883,
16,
5803,
3705,
16,
2901,
2615,
16,
2901,
31833,
4672,
3536,
8872,
279,
883,
17,
4661,
18,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18334,
1079,
12,
2890,
16,
1104,
2675,
1305,
16,
590,
734,
16,
23021,
16,
883,
16,
5803,
3705,
16,
2901,
2615,
16,
2901,
31833,
4672,
3536,
8872,
279,
883,
17,
4661,
18,
2,
-100,
... |
result.append('raised=%s' % (getattr(self._exc[0], '__name__', self._exc[0]), )) | result.append('raised=%s' % (self._exc, )) | def _repr_helper(self): result = [] result.append(repr(self.name)) if self._result is not _NOT_USED: if self._exc is None: res = repr(self._result) if len(res)>50: res = res[:50]+'...' result.append('result=%s' % res) else: result.append('raised=%s' % (getattr(self._exc[0], '__name__', self._exc[0]), )) result.append('... | e96a4469ab666efe33a20dfcb0f198dcf3c39672 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/e96a4469ab666efe33a20dfcb0f198dcf3c39672/proc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
4759,
12,
2890,
4672,
563,
273,
5378,
563,
18,
6923,
12,
12715,
12,
2890,
18,
529,
3719,
309,
365,
6315,
2088,
353,
486,
389,
4400,
67,
20093,
30,
309,
365,
6315,
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,
389,
12715,
67,
4759,
12,
2890,
4672,
563,
273,
5378,
563,
18,
6923,
12,
12715,
12,
2890,
18,
529,
3719,
309,
365,
6315,
2088,
353,
486,
389,
4400,
67,
20093,
30,
309,
365,
6315,
10075... |
global haveValues, parameditors, paramvalues, parameditortypes, currentitem, filebuttons | global haveValues, parameditors, paramvalues, parameditortypes, currentitem | def shader_draw(): # button global variables global Materials, ShaderTypeMenu, DeleteMaterial, Material, ShaderPath, DeleteShaderPath, BrowseButton, ShaderMenu, ShaderPathMenu, PreviewButton, RestoreButton # event global variables global evt_material_delete, evt_path_delete, evt_browse_button, evt_preview_button, evt_... | 8763f660fb119b9da3aa822caa6034c37e23a5b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/8763f660fb119b9da3aa822caa6034c37e23a5b4/ShaderEditorGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16700,
67,
9446,
13332,
468,
3568,
2552,
3152,
2552,
23436,
87,
16,
2638,
1143,
559,
4599,
16,
2504,
11790,
16,
23436,
16,
2638,
1143,
743,
16,
2504,
19396,
743,
16,
605,
12481,
3616,
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,
16700,
67,
9446,
13332,
468,
3568,
2552,
3152,
2552,
23436,
87,
16,
2638,
1143,
559,
4599,
16,
2504,
11790,
16,
23436,
16,
2638,
1143,
743,
16,
2504,
19396,
743,
16,
605,
12481,
3616,
16... |
except: | except (BaseIMAP.error, socket.gaierror, socket.error): | def __init__(self, server, port, debug=0, do_expunge=False): try: BaseIMAP.__init__(self, server, port) except: # A more specific except would be good here, but I get # (in Python 2.2) a generic 'error' and a 'gaierror' # if I pass a valid domain that isn't an IMAP server # or invalid domain (respectively) print "Inval... | f6c2df5c7f42717a60c8a24dbe861f3e990c2144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/f6c2df5c7f42717a60c8a24dbe861f3e990c2144/sb_imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
16,
1756,
16,
1198,
33,
20,
16,
741,
67,
2749,
25561,
33,
8381,
4672,
775,
30,
3360,
3445,
2203,
16186,
2738,
972,
12,
2890,
16,
1438,
16,
1756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
16,
1756,
16,
1198,
33,
20,
16,
741,
67,
2749,
25561,
33,
8381,
4672,
775,
30,
3360,
3445,
2203,
16186,
2738,
972,
12,
2890,
16,
1438,
16,
1756,
... |
unittest.main() | unittest.main() | def testSetCoords(self): self.c.Translate(self.tr); self.c.AttractEulerRotate(2.0,4.0,5.0) co = Coords3D(3,2,1) self.c.SetCoords(0,co) co2 = self.c.GetCoords(0) self.assertTrue(Norm2(co-co2)<1.0e-6) | fe7ec21756678cb87e9d07f28e09b7b596c30391 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11088/fe7ec21756678cb87e9d07f28e09b7b596c30391/unittest1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
694,
13089,
12,
2890,
4672,
365,
18,
71,
18,
12818,
12,
2890,
18,
313,
1769,
365,
18,
71,
18,
861,
1575,
41,
17040,
16357,
12,
22,
18,
20,
16,
24,
18,
20,
16,
25,
18,
20,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
694,
13089,
12,
2890,
4672,
365,
18,
71,
18,
12818,
12,
2890,
18,
313,
1769,
365,
18,
71,
18,
861,
1575,
41,
17040,
16357,
12,
22,
18,
20,
16,
24,
18,
20,
16,
25,
18,
20,
1... |
for i in dim: | for i in range(dim): | def __init__(self, dim): self.edge_mat = [] for i in dim: self.edge_mat.append([None]*dim) self.edge_to_coord = {} | a2ad0dee0947cbc68b1113dad3dc27777f909fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11717/a2ad0dee0947cbc68b1113dad3dc27777f909fdb/partition_dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2464,
4672,
365,
18,
7126,
67,
7373,
273,
5378,
364,
277,
316,
1048,
12,
3509,
4672,
365,
18,
7126,
67,
7373,
18,
6923,
3816,
7036,
5772,
3509,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2464,
4672,
365,
18,
7126,
67,
7373,
273,
5378,
364,
277,
316,
1048,
12,
3509,
4672,
365,
18,
7126,
67,
7373,
18,
6923,
3816,
7036,
5772,
3509,
13,
365,
... |
self.link('mpeg2dec', 'ffmpegcolorspace') | self.linkPads('mpeg2dec', 'src', 'mpeg2subt', 'video') self.link('mpeg2subt', 'ffmpegcolorspace') | def __init__(self, options, name='videodec'): | a82dc52b69ef94f10363853a761a11ff8b79675b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/a82dc52b69ef94f10363853a761a11ff8b79675b/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
2218,
6768,
390,
71,
11,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
2218,
6768,
390,
71,
11,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
suffixes_map). | suffix_map). | def guess_type(url): """Guess the type of a file based on its URL. Return value is a tuple (type, encoding) where type is None if the type can't be guessed (no or unknown suffix) or a string of the form type/subtype, usable for a MIME Content-type header; and encoding is None for no encoding or the name of the program... | 7ed8a1c5fc58144a2ccdf78ec1f4540ed0365543 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7ed8a1c5fc58144a2ccdf78ec1f4540ed0365543/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
723,
12,
718,
4672,
3536,
15977,
326,
618,
434,
279,
585,
2511,
603,
2097,
1976,
18,
225,
2000,
460,
353,
279,
3193,
261,
723,
16,
2688,
13,
1625,
618,
353,
599,
309,
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,
7274,
67,
723,
12,
718,
4672,
3536,
15977,
326,
618,
434,
279,
585,
2511,
603,
2097,
1976,
18,
225,
2000,
460,
353,
279,
3193,
261,
723,
16,
2688,
13,
1625,
618,
353,
599,
309,
326,
... |
self.__exp[i] = (left, 'in', right) | return (left, 'in', right) m2o_str = False if isinstance(right, basestring): m2o_str = True elif isinstance(right, list) or isinstance(right, tuple): m2o_str = True for ele in right: if not isinstance(ele, basestring): m2o_str = False break if m2o_str: self.__exp[i] = _get_expression(field_obj,cr, uid, left, right, op... | def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type) | c9dcc96cd979cd9aa5f9d8a61e0f77de894bbde6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c9dcc96cd979cd9aa5f9d8a61e0f77de894bbde6/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
1... |
g = QQ['x'](f) return g | return QQ['x'](f) | def hilbert_class_polynomial(self): r""" Returns a polynomial over $\QQ$ whose roots generate the Hilbert class field of this quadratic field. | 56c2eb43c0292afc71757d37d04f5ab52d5f2d1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/56c2eb43c0292afc71757d37d04f5ab52d5f2d1d/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
330,
25925,
67,
1106,
67,
3915,
13602,
12,
2890,
4672,
436,
8395,
2860,
279,
16991,
1879,
271,
64,
53,
53,
8,
8272,
12876,
2103,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
366,
330,
25925,
67,
1106,
67,
3915,
13602,
12,
2890,
4672,
436,
8395,
2860,
279,
16991,
1879,
271,
64,
53,
53,
8,
8272,
12876,
2103,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
6... |
cache_id = Column("cache_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True) cache_key = Column("cache_key", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None) cache_args = Column("cache_args", TEXT(length=None, convert_unicode=False, assert... | cache_id = Column("cache_id", Integer(), nullable=False, unique=True, default=None, primary_key=True) cache_key = Column("cache_key", String(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None) cache_args = Column("cache_args", String(length=None, convert_unicode=False, as... | def __repr__(self): return "<Permission('%s:%s')>" % (self.permission_id, self.permission_name) | 7a1ca75a00cc28c7a6eb02121f2ab91348a59ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/7a1ca75a00cc28c7a6eb02121f2ab91348a59ec4/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
5041,
29909,
87,
5319,
87,
6134,
2984,
738,
261,
2890,
18,
9827,
67,
350,
16,
365,
18,
9827,
67,
529,
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,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
5041,
29909,
87,
5319,
87,
6134,
2984,
738,
261,
2890,
18,
9827,
67,
350,
16,
365,
18,
9827,
67,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.