rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
my_bus = dbus.SystemBus() name = dbus.service.BusName('edu.duke.linux.Yum', bus=my_bus) yum_dbus = YumDbusInterface(name) | if not self.dbusintf: return | def emit_dbus(self, num_updates): """method to emit a dbus event for notice of updates""" # setup the dbus interface my_bus = dbus.SystemBus() name = dbus.service.BusName('edu.duke.linux.Yum', bus=my_bus) yum_dbus = YumDbusInterface(name) if num_updates > 0: msg = "%d updates available" % num_updates yum_dbus.UpdatesAv... | e2d410c6d27e539632284c34aafe0b0bf67c6b04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/e2d410c6d27e539632284c34aafe0b0bf67c6b04/yum-updatesd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
67,
1966,
407,
12,
2890,
16,
818,
67,
14703,
4672,
3536,
2039,
358,
3626,
279,
21866,
871,
364,
11690,
434,
4533,
8395,
468,
3875,
326,
21866,
1560,
430,
486,
365,
18,
1966,
407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
67,
1966,
407,
12,
2890,
16,
818,
67,
14703,
4672,
3536,
2039,
358,
3626,
279,
21866,
871,
364,
11690,
434,
4533,
8395,
468,
3875,
326,
21866,
1560,
430,
486,
365,
18,
1966,
407,
... |
def test_diff_parser(self): parser = diff_parser.DiffParser(self._PATCH) self.assertEquals(2, len(parser.files)) self.assertTrue('WebCore/rendering/style/StyleFlexibleBoxData.h' in parser.files) diff = parser.files['WebCore/rendering/style/StyleFlexibleBoxData.h'] self.assertEquals(7, len(diff.lines)) self.assertEqua... | def match(pattern, string): """Matches the string with the pattern, caching the compiled regexp.""" if not pattern in _regexp_compile_cache: _regexp_compile_cache[pattern] = re.compile(pattern) return _regexp_compile_cache[pattern].match(string) | def test_diff_parser(self): parser = diff_parser.DiffParser(self._PATCH) self.assertEquals(2, len(parser.files)) | 167c85fb814b276a732d1ac61199e0f136195eb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/167c85fb814b276a732d1ac61199e0f136195eb8/diff_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5413,
67,
4288,
12,
2890,
4672,
2082,
273,
3122,
67,
4288,
18,
5938,
2678,
12,
2890,
6315,
20366,
13,
365,
18,
11231,
8867,
12,
22,
16,
562,
12,
4288,
18,
2354,
3719,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5413,
67,
4288,
12,
2890,
4672,
2082,
273,
3122,
67,
4288,
18,
5938,
2678,
12,
2890,
6315,
20366,
13,
365,
18,
11231,
8867,
12,
22,
16,
562,
12,
4288,
18,
2354,
3719,
2,
-1... |
message(' ' + line) | message(line.rstrip()) message(' ' * (offset) + '^') | def check_lines(argument_name, lines, filename): """ Find all checks with matching first argument name and run all of them on each line. """ global state state = {} # {'previous_line': None} error_count = 0 checks = find_checks(argument_name) for location, line in lines: line_muted = mute_comment(mute_strings(line)) fo... | adda59986218256322a485e046eba115a24e34d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/adda59986218256322a485e046eba115a24e34d1/pep8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3548,
12,
3446,
67,
529,
16,
2362,
16,
1544,
4672,
3536,
4163,
777,
4271,
598,
3607,
1122,
1237,
508,
471,
1086,
777,
434,
2182,
603,
1517,
980,
18,
3536,
2552,
919,
919,
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,
67,
3548,
12,
3446,
67,
529,
16,
2362,
16,
1544,
4672,
3536,
4163,
777,
4271,
598,
3607,
1122,
1237,
508,
471,
1086,
777,
434,
2182,
603,
1517,
980,
18,
3536,
2552,
919,
919,
273,... |
self.state.__name__) | self.state_name()) | def join(self, event): if self.state != self.prestart: log.debug(u'Not joining: already in state %s.', self.state.__name__) return | 3f73253d963ee79b32d6c937d7e6fe5dcc6350be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/3f73253d963ee79b32d6c937d7e6fe5dcc6350be/games.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1233,
12,
2890,
16,
871,
4672,
309,
365,
18,
2019,
480,
365,
18,
1484,
1937,
30,
613,
18,
4148,
12,
89,
11,
1248,
21239,
30,
1818,
316,
919,
738,
87,
1093,
16,
365,
18,
2019,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1233,
12,
2890,
16,
871,
4672,
309,
365,
18,
2019,
480,
365,
18,
1484,
1937,
30,
613,
18,
4148,
12,
89,
11,
1248,
21239,
30,
1818,
316,
919,
738,
87,
1093,
16,
365,
18,
2019,
67,
5... |
if type(p) == Integer: | if type(p) == Integer or type(p) == int: | def isotopism(p): """ Returns a Permutation object that represents an isotopism (for rows, columns or symbols of a partial latin square). Since matrices in Sage are indexed from 0, this function translates +1 to agree with the Permutation class. We also handle PermutationGroupElements: EXAMPLES: sage: from sage.combin... | 9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29677,
556,
6228,
12,
84,
4672,
3536,
2860,
279,
13813,
9245,
733,
716,
8686,
392,
29677,
556,
6228,
261,
1884,
2595,
16,
2168,
578,
7963,
434,
279,
4702,
30486,
8576,
2934,
7897,
16415,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29677,
556,
6228,
12,
84,
4672,
3536,
2860,
279,
13813,
9245,
733,
716,
8686,
392,
29677,
556,
6228,
261,
1884,
2595,
16,
2168,
578,
7963,
434,
279,
4702,
30486,
8576,
2934,
7897,
16415,
... |
if not mapper.extensions or self not in mapper.extensions: mapper.extensions.append( self) | if not mapper.extension or self not in mapper.extension: mapper.extension.append( self) | def __init__( self, *aggregations, **kargs): """ *aggregations - _Aggregation-subclass instances, to be maintained for this mapper """ self.off = False self.aggregations_by_table = groups = dict() | ad0416625eaa9aa9db3c69a115e5a24876289843 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/ad0416625eaa9aa9db3c69a115e5a24876289843/aggregation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
380,
10751,
1012,
16,
2826,
79,
1968,
4672,
3536,
380,
10751,
1012,
300,
389,
12089,
17,
10678,
3884,
16,
358,
506,
11566,
8707,
364,
333,
5815,
3536,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
380,
10751,
1012,
16,
2826,
79,
1968,
4672,
3536,
380,
10751,
1012,
300,
389,
12089,
17,
10678,
3884,
16,
358,
506,
11566,
8707,
364,
333,
5815,
3536,
365,
... |
def close(self): | def close(self): | def close(self): | d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
words.append(w[0] + ":*") | words.append(w[0]) | def __init__(self, query): self.options = dict() self.options['matchlimit'] = default_match_limit self.options['scale'] = 1 self.options['tsquery'] = 'name' self.order = "shares.state" self.error = "" self.userquery = query self.sqlcond = [] self.sqlcount_joinpath = False; self.sqlcount_joinshares = False; qext = { 'ty... | 58746403d8deb7fce9265ecb1352f32d08012a55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4762/58746403d8deb7fce9265ecb1352f32d08012a55/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
843,
4672,
365,
18,
2116,
273,
2065,
1435,
365,
18,
2116,
3292,
1916,
3595,
3546,
273,
805,
67,
1916,
67,
3595,
365,
18,
2116,
3292,
5864,
3546,
273,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
843,
4672,
365,
18,
2116,
273,
2065,
1435,
365,
18,
2116,
3292,
1916,
3595,
3546,
273,
805,
67,
1916,
67,
3595,
365,
18,
2116,
3292,
5864,
3546,
273,
404... |
print hg.hex(n) + parentstr | print hg.short(n) + parentstr | def is_reachable(ar, reachable, sha): if len(ar) == 0: return 1 mask = 0 for i in range(len(ar)): if sha in reachable[i]: mask |= 1 << i | 1c5a771c9609237f9deb3e7d05682937d58d4a9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/1c5a771c9609237f9deb3e7d05682937d58d4a9e/hgk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
17246,
12,
297,
16,
19234,
16,
6056,
4672,
309,
562,
12,
297,
13,
422,
374,
30,
327,
404,
3066,
273,
374,
364,
277,
316,
1048,
12,
1897,
12,
297,
3719,
30,
309,
6056,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
17246,
12,
297,
16,
19234,
16,
6056,
4672,
309,
562,
12,
297,
13,
422,
374,
30,
327,
404,
3066,
273,
374,
364,
277,
316,
1048,
12,
1897,
12,
297,
3719,
30,
309,
6056,
316,
... |
skipyes = len(code); emit(0) | skipyes = _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... |
raise ValueError("illegal content-type") | raise ValueError("illegal content-type: %s" % value) | def __new__(cls, value): if value == '*': return value try: type, subtype = value.split('/') except ValueError: raise ValueError("illegal content-type") else: if type == '*': raise ValueError("illegal content-type") return value | 3cae613772a4d83540db51ff77665fd8d690f701 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/3cae613772a4d83540db51ff77665fd8d690f701/datatypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
309,
460,
422,
5306,
30,
327,
460,
775,
30,
618,
16,
12308,
273,
460,
18,
4939,
2668,
2473,
13,
1335,
2068,
30,
1002,
2068,
2932,
31751,
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,
1001,
2704,
972,
12,
6429,
16,
460,
4672,
309,
460,
422,
5306,
30,
327,
460,
775,
30,
618,
16,
12308,
273,
460,
18,
4939,
2668,
2473,
13,
1335,
2068,
30,
1002,
2068,
2932,
31751,
913,
... |
if instance._get_pk_val() is None: return getattr(instance, "__%s_save_defered_tags" % self.name, "") elif instance is not None: tags = Tag.objects.get_for_object(instance) else: tags = Tag.objects.usage_for_model(type(instance)) return " ".join(map(str, tags)) | if instance is None: return tags2str(Tag.objects.usage_for_model(owner)) tags = self._get_instance_tag_cache(instance) if tags is None: if instance._get_pk_val() is None: self._set_instance_tag_cache(instance, "") else: self._set_instance_tag_cache(instance, tags2str(Tag.objects.get_for_object(instance))) return self... | def __get__(self, instance, owner=None): """ Tag getter. Returns an instance's tags if accessed on an instance, and all of a model's tags if called on a class. That is, this model:: | c9e78313901ad0ac40f84965bfc1dc47b3f3bc48 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4290/c9e78313901ad0ac40f84965bfc1dc47b3f3bc48/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
791,
16,
3410,
33,
7036,
4672,
3536,
4034,
7060,
18,
2860,
392,
791,
1807,
2342,
309,
15539,
603,
392,
791,
16,
471,
777,
434,
279,
938,
1807,
2342,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
791,
16,
3410,
33,
7036,
4672,
3536,
4034,
7060,
18,
2860,
392,
791,
1807,
2342,
309,
15539,
603,
392,
791,
16,
471,
777,
434,
279,
938,
1807,
2342,
309,
... |
_tryorder = os.environ["BROWSER"].split(":") | _tryorder = os.environ["BROWSER"].split(os.pathsep) | def open_new(self, url): self.open(url) | 2d32e43217940fb526b9674167b3fce5054cac8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2d32e43217940fb526b9674167b3fce5054cac8c/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
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,
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,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
debug(" effective request-host %s does not domain-match " "%s", erhn, domain) | _debug(" effective request-host %s does not domain-match " "%s", erhn, domain) | def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request... | e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113... |
populate_pkg(pkg, p) | populate_pkg(pkg, p, timestamp=timestamp) | def db_update(archname, pkgs): """ Parses a list and updates the Arch dev database accordingly. Arguments: pkgs -- A list of Pkg objects. """ logger.info('Updating Arch: %s' % archname) repository = Repo.objects.get(name__iexact=pkgs[0].repo) architecture = Arch.objects.get(name__iexact=archname) dbpkgs = Package.obj... | 655b3db1b7a8a78cfd74723bd9ed17011ed0c935 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/655b3db1b7a8a78cfd74723bd9ed17011ed0c935/reporead.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
67,
2725,
12,
991,
529,
16,
16922,
4672,
3536,
2280,
2420,
279,
666,
471,
4533,
326,
16959,
4461,
2063,
15905,
18,
225,
13599,
30,
16922,
1493,
432,
666,
434,
453,
14931,
2184,
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,
1319,
67,
2725,
12,
991,
529,
16,
16922,
4672,
3536,
2280,
2420,
279,
666,
471,
4533,
326,
16959,
4461,
2063,
15905,
18,
225,
13599,
30,
16922,
1493,
432,
666,
434,
453,
14931,
2184,
18,... |
if pygments and self.settings.add_syntax_highlighting and \ self.syntaxhighlighting: source = self._add_syntax_highlighting(source) | if (pygments and self.settings.add_syntax_highlighting and node.get('hilight', False)): language = node.get('language', 'python') source = self._add_syntax_highlighting(source, language) | def visit_literal_block(self, node): #ipshell('At visit_literal_block') source = node.astext() if pygments and self.settings.add_syntax_highlighting and \ self.syntaxhighlighting: source = self._add_syntax_highlighting(source) else: source = escape_cdata(source) lines = source.split('\n') lines1 = ['<wrappertag1 xmlns:... | 9f7a68885ccb5e448f0e1dc04a35bcae79a4721a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/9f7a68885ccb5e448f0e1dc04a35bcae79a4721a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
13107,
67,
2629,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
13107,
67,
2629,
6134,
1084,
273,
756,
18,
689,
408,
1435,
309,
261,
2074,
75,
1346,
471,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
13107,
67,
2629,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
13107,
67,
2629,
6134,
1084,
273,
756,
18,
689,
408,
1435,
309,
261,
2074,
75,
1346,
471,
365,... |
buf = BIO.MemoryBuffer(cleartext) | buf = BIO.MemoryBuffer(self.cleartext) | def check_5_signEncrypt(self): global signedEncrypted s = SMIME.SMIME() buf = BIO.MemoryBuffer(cleartext) s.load_key('signer_key.pem', 'signer.pem') p7 = s.sign(buf) x509 = X509.load_cert('recipient.pem') sk = X509.X509_Stack() sk.push(x509) s.set_x509_stack(sk) s.set_cipher(SMIME.Cipher('des_ede3_cbc')) tmp = BI... | 35dd3ef04f86b49ce0a8c8dd259c6162e42f8b28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/35dd3ef04f86b49ce0a8c8dd259c6162e42f8b28/test_smime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
25,
67,
2977,
13129,
12,
2890,
4672,
2552,
6726,
14678,
225,
272,
273,
12014,
3114,
18,
7303,
3114,
1435,
225,
1681,
273,
605,
4294,
18,
6031,
1892,
12,
2890,
18,
2131,
485,
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,
866,
67,
25,
67,
2977,
13129,
12,
2890,
4672,
2552,
6726,
14678,
225,
272,
273,
12014,
3114,
18,
7303,
3114,
1435,
225,
1681,
273,
605,
4294,
18,
6031,
1892,
12,
2890,
18,
2131,
485,
4... |
packages=['formalchemy', 'formalchemy.tempita', 'formalchemy.ext'], package_data={'formalchemy': ['i18n/*/LC_MESSAGES/formalchemy.mo']}, | packages=['formalchemy', 'formalchemy.tempita', 'formalchemy.ext', 'formalchemy.ext.pylons'], package_data={'formalchemy': ['i18n/*/LC_MESSAGES/formalchemy.mo', 'ext/pylons/*.tmpl']}, | def read(filename): text = open(filename).read() text = unicode(text, 'utf-8').encode('ascii', 'xmlcharrefreplace') return xml.sax.saxutils.escape(text) | 5da82edd76e31a86da0c2fc959de7ec8a6823d7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13203/5da82edd76e31a86da0c2fc959de7ec8a6823d7c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
3459,
4672,
977,
273,
1696,
12,
3459,
2934,
896,
1435,
977,
273,
5252,
12,
955,
16,
296,
3158,
17,
28,
16063,
3015,
2668,
9184,
2187,
296,
2902,
3001,
1734,
2079,
6134,
327,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
3459,
4672,
977,
273,
1696,
12,
3459,
2934,
896,
1435,
977,
273,
5252,
12,
955,
16,
296,
3158,
17,
28,
16063,
3015,
2668,
9184,
2187,
296,
2902,
3001,
1734,
2079,
6134,
327,
2... |
except KeyError: | except KeyError, AttributeError: | def paginate(context, window=DEFAULT_WINDOW): """ Renders the ``pagination/pagination.html`` template, resulting in a Digg-like display of the available pages, given the current page. If there are too many pages to be displayed before and after the current page, then elipses will be used to indicate the undisplayed ga... | 777f6631eeb51a9f8abeeab561b0ff0c93bbbe6f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4362/777f6631eeb51a9f8abeeab561b0ff0c93bbbe6f/pagination_tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15171,
12,
2472,
16,
2742,
33,
5280,
67,
23407,
4672,
3536,
534,
10130,
326,
12176,
17202,
19,
17202,
18,
2620,
10335,
1542,
16,
8156,
316,
279,
11678,
75,
17,
5625,
2562,
434,
326,
2319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15171,
12,
2472,
16,
2742,
33,
5280,
67,
23407,
4672,
3536,
534,
10130,
326,
12176,
17202,
19,
17202,
18,
2620,
10335,
1542,
16,
8156,
316,
279,
11678,
75,
17,
5625,
2562,
434,
326,
2319... |
now = time() | def run(self) : if self.watchDogTime == 0 : return False plugin = self.plugin CoInitialize() | 531fa2a5a972f08eda5305028606976138012f04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/531fa2a5a972f08eda5305028606976138012f04/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
13,
294,
309,
365,
18,
7585,
40,
717,
950,
422,
374,
294,
327,
1083,
1909,
273,
365,
18,
4094,
7695,
7520,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
13,
294,
309,
365,
18,
7585,
40,
717,
950,
422,
374,
294,
327,
1083,
1909,
273,
365,
18,
4094,
7695,
7520,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
self.log.info('%s is a symlink, attempting to copy link target' % subdir) | self.log.info('%s is a symlink, attempting to create link target' % subdir) | def exec_rsync_keep_links(self, source_dir, dst_loc, exclude_list): """rsync a potentially symlinked directory under PGDATA""" keep_symlinks = self.cf.getint("keep_symlinks", 1) | c488b698c160c235e1be01295c1f3d2724872c98 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/c488b698c160c235e1be01295c1f3d2724872c98/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
5453,
1209,
67,
10102,
67,
7135,
12,
2890,
16,
1084,
67,
1214,
16,
3046,
67,
1829,
16,
4433,
67,
1098,
4672,
3536,
5453,
1209,
279,
13935,
10563,
329,
1867,
3613,
22116,
4883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
5453,
1209,
67,
10102,
67,
7135,
12,
2890,
16,
1084,
67,
1214,
16,
3046,
67,
1829,
16,
4433,
67,
1098,
4672,
3536,
5453,
1209,
279,
13935,
10563,
329,
1867,
3613,
22116,
4883,
... |
raise ApplicationConfigurationError(None, 'Container dataset %s has no replica on one site and backend. Please specify individual tid datasets!' % (ds, ds)) | raise ApplicationConfigurationError(None, 'Container dataset %s has no replica on one site and backend. Please specify individual tid datasets!' % (ds)) | def check(self): super(AnaTransform,self).check() if not self.inputdata.dataset: return if not self.backend: logger.warning("Determining backend and cloud...") | 3d3a1b2bdb5bed8bd3d82bbfd7d7de38b93a33cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/3d3a1b2bdb5bed8bd3d82bbfd7d7de38b93a33cb/AnaTransform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2240,
12,
979,
69,
4059,
16,
2890,
2934,
1893,
1435,
309,
486,
365,
18,
2630,
892,
18,
8682,
30,
327,
309,
486,
365,
18,
9993,
30,
1194,
18,
8551,
2932,
9139,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2240,
12,
979,
69,
4059,
16,
2890,
2934,
1893,
1435,
309,
486,
365,
18,
2630,
892,
18,
8682,
30,
327,
309,
486,
365,
18,
9993,
30,
1194,
18,
8551,
2932,
9139,
31... |
_reportTotalNumberOfJobsName = "Share of executed jobs" | _reportTotalNumberOfJobsName = "Pie plot of executed jobs" | def _plotNumberOfJobs( self, reportRequest, plotInfo, filename ): metadata = { 'title' : 'Jobs by %s' % reportRequest[ 'grouping' ], 'starttime' : reportRequest[ 'startTime' ], 'endtime' : reportRequest[ 'endTime' ], 'span' : plotInfo[ 'granularity' ], 'ylabel' : plotInfo[ 'unit' ] } return self._generateStackedLinePl... | 7420772aa36b86a744bdb1d0bcf5158d506a729b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7420772aa36b86a744bdb1d0bcf5158d506a729b/JobPlotter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
9226,
7276,
12,
365,
16,
2605,
691,
16,
3207,
966,
16,
1544,
262,
30,
1982,
273,
288,
296,
2649,
11,
294,
296,
7276,
635,
738,
87,
11,
738,
2605,
691,
63,
296,
25592,
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,
389,
4032,
9226,
7276,
12,
365,
16,
2605,
691,
16,
3207,
966,
16,
1544,
262,
30,
1982,
273,
288,
296,
2649,
11,
294,
296,
7276,
635,
738,
87,
11,
738,
2605,
691,
63,
296,
25592,
11,
... |
def runAdobeCS5PatchInstaller(dmgpath): | def runAdobeCS5PatchInstaller(dmgpath, copylocal=False): | def runAdobeCS5PatchInstaller(dmgpath): munkicommon.display_status("Mounting disk image %s" % os.path.basename(dmgpath)) mountpoints = mountAdobeDmg(dmgpath) if mountpoints: patchinstaller = findAdobePatchInstallerApp(mountpoints[0]) if patchinstaller: # try to find and count the number of payloads # so we can give a r... | d017f8be802d57d1f1e35025b468e64fd1d43ce9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/d017f8be802d57d1f1e35025b468e64fd1d43ce9/adobeutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1871,
947,
73,
4596,
25,
7332,
18678,
12,
10956,
75,
803,
16,
1610,
3729,
33,
8381,
4672,
312,
1683,
335,
362,
2586,
18,
5417,
67,
2327,
2932,
8725,
310,
4234,
1316,
738,
87,
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,
1086,
1871,
947,
73,
4596,
25,
7332,
18678,
12,
10956,
75,
803,
16,
1610,
3729,
33,
8381,
4672,
312,
1683,
335,
362,
2586,
18,
5417,
67,
2327,
2932,
8725,
310,
4234,
1316,
738,
87,
6,
... |
help() | print __doc__ return | def main(): try: opts, args = getopt.getopt(sys.argv[1:], "h") except getopt.error, msg: usage(2, msg) for o, a in opts: if o == "-h": help() if not args: usage(2, "at least one file argument is required") if args[1:]: sys.stderr.write("%s: extra file arguments ignored\n", sys.argv[0]) readwarnings(args[0]) | 1411e89cd48fda4dab58a672e67677772c9670ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1411e89cd48fda4dab58a672e67677772c9670ec/fixdiv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
76,
7923,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
12,
22,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
76,
7923,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
12,
22,
16,
... |
xdata = lxml.etree.parse(self.data + '/config.xml').getroot() | try: xdata = lxml.etree.parse(self.data + '/config.xml').getroot() except IOError, e: print("Failed to read Packages configuration. Have you" " created your config.xml file?") raise Bcfg2.Server.Plugin.PluginInitError | def __init__(self, core, datastore): Bcfg2.Server.Plugin.Plugin.__init__(self, core, datastore) Bcfg2.Server.Plugin.StructureValidator.__init__(self) Bcfg2.Server.Plugin.Generator.__init__(self) cachepath = self.data + '/cache' self.sentinels = set() if not os.path.exists(cachepath): # create cache directory if needed ... | ffff02894d23210fb8d60f85cbdb33ada5b26859 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/ffff02894d23210fb8d60f85cbdb33ada5b26859/Packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2922,
16,
9290,
4672,
605,
7066,
22,
18,
2081,
18,
3773,
18,
3773,
16186,
2738,
972,
12,
2890,
16,
2922,
16,
9290,
13,
605,
7066,
22,
18,
2081,
18,
377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2922,
16,
9290,
4672,
605,
7066,
22,
18,
2081,
18,
3773,
18,
3773,
16186,
2738,
972,
12,
2890,
16,
2922,
16,
9290,
13,
605,
7066,
22,
18,
2081,
18,
377... |
QString error, QString message) | const QString &error, const QString &message) | def do_ifacenode(self, ifacenode): # Extract info name = ifacenode.getAttribute('name').replace('/', '').replace('_', '') + 'Interface' iface, = get_by_path(ifacenode, 'interface') dbusname = iface.getAttribute('name') | 4e350c2e7680904b86e98f60cd563263d899fa5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7593/4e350c2e7680904b86e98f60cd563263d899fa5a/qt4-client-gen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
430,
1077,
20680,
12,
2890,
16,
309,
1077,
20680,
4672,
468,
8152,
1123,
508,
273,
309,
1077,
20680,
18,
588,
1499,
2668,
529,
16063,
2079,
2668,
19,
2187,
875,
2934,
2079,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
430,
1077,
20680,
12,
2890,
16,
309,
1077,
20680,
4672,
468,
8152,
1123,
508,
273,
309,
1077,
20680,
18,
588,
1499,
2668,
529,
16063,
2079,
2668,
19,
2187,
875,
2934,
2079,
2668... |
if bulletRight > style.firstLineIndent: | indent = style.leftIndent+style.firstLineIndent if bulletRight > indent: | def _handleBulletWidth(bulletText,style,maxWidths): '''work out bullet width and adjust maxWidths[0] if neccessary ''' if bulletText <> None: if type(bulletText) is StringType: bulletWidth = stringWidth( bulletText, style.bulletFontName, style.bulletFontSize) else: #it's a list of fragments bulletWidth = 0 for f in bul... | b2cf1e4f93a7f349035e282e7cc45fb5c48720b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b2cf1e4f93a7f349035e282e7cc45fb5c48720b0/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
38,
19994,
2384,
12,
70,
19994,
1528,
16,
4060,
16,
1896,
22407,
4672,
9163,
1252,
596,
31650,
1835,
471,
5765,
17681,
87,
63,
20,
65,
309,
290,
557,
614,
814,
9163,
309,
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,
389,
4110,
38,
19994,
2384,
12,
70,
19994,
1528,
16,
4060,
16,
1896,
22407,
4672,
9163,
1252,
596,
31650,
1835,
471,
5765,
17681,
87,
63,
20,
65,
309,
290,
557,
614,
814,
9163,
309,
31... |
ge = group[-1][2] | ge = group[-1][3] | def combineLoci(record, min_distance): '''combined adjacent loci - this is somewhat cumbersome due to the format of the matches returned from msat (a dict with keys = motif). Essentially, we are running a pairwise comparison across all motifs located to determine which are within a predetermined distance from one anoth... | 0a78b509b15b65a3bba6c888139b7e8b058a0280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10703/0a78b509b15b65a3bba6c888139b7e8b058a0280/microsatellites.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
1333,
77,
12,
3366,
16,
1131,
67,
8969,
4672,
9163,
27458,
16335,
1515,
77,
300,
333,
353,
18016,
11304,
14471,
2210,
1742,
6541,
358,
326,
740,
434,
326,
1885,
2106,
628,
4086,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
1333,
77,
12,
3366,
16,
1131,
67,
8969,
4672,
9163,
27458,
16335,
1515,
77,
300,
333,
353,
18016,
11304,
14471,
2210,
1742,
6541,
358,
326,
740,
434,
326,
1885,
2106,
628,
4086,
27... |
if ifile == '' : | if ifile.strip() == '' : | def collectionApiJdl( self, task, requirements='' ): """ build a collection jdl easy to be handled by the wmproxy API interface and gives back the list of input files for a better handling """ | f8f39e00833147df894cf46d83a4d378392d15c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/f8f39e00833147df894cf46d83a4d378392d15c3/SchedulerGLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1849,
3064,
46,
5761,
12,
365,
16,
1562,
16,
8433,
2218,
11,
262,
30,
3536,
1361,
279,
1849,
525,
5761,
12779,
358,
506,
7681,
635,
326,
18200,
5656,
1491,
1560,
471,
14758,
1473,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1849,
3064,
46,
5761,
12,
365,
16,
1562,
16,
8433,
2218,
11,
262,
30,
3536,
1361,
279,
1849,
525,
5761,
12779,
358,
506,
7681,
635,
326,
18200,
5656,
1491,
1560,
471,
14758,
1473,
326,
... |
logger.notifyChannel('init', netsvc.LOG_ERROR, e) logger.notifyChannel('init', netsvc.LOG_ERROR, 'Could not delete id: %d of model %s\nThere should be some relation that points to this resource\nYou should manually fix this and restart --update=module' % (res_id, model)) | self.__logger.exception( 'Could not delete id: %d of model %s\nThere ' 'should be some relation that points to this ' 'resource\nYou should manually fix this and ' 'restart with --update=module', res_id, model) | def _process_end(self, cr, uid, modules): if not modules: return True modules = list(modules) module_in = ",".join(["%s"] * len(modules)) cr.execute('select id,name,model,res_id,module from ir_model_data where module in (' + module_in + ') and noupdate=%s', modules + [False]) wkf_todo = [] for (id, name, model, res_id,... | ca39947d11c1a94ded13d4bd9b683cec4c6eaab0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ca39947d11c1a94ded13d4bd9b683cec4c6eaab0/ir_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
409,
12,
2890,
16,
4422,
16,
4555,
16,
4381,
4672,
309,
486,
4381,
30,
327,
1053,
4381,
273,
666,
12,
6400,
13,
1605,
67,
267,
273,
5753,
18,
5701,
3816,
28385,
87,
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,
389,
2567,
67,
409,
12,
2890,
16,
4422,
16,
4555,
16,
4381,
4672,
309,
486,
4381,
30,
327,
1053,
4381,
273,
666,
12,
6400,
13,
1605,
67,
267,
273,
5753,
18,
5701,
3816,
28385,
87,
11... |
print 'builtin theme' | def LoadThemeCfg(self): ##current theme type radiobutton self.themeIsBuiltin.set(idleConf.GetOption('main','Theme','default', type='bool',default=1)) ##currently set theme currentOption=idleConf.CurrentTheme() print 'current option',currentOption ##load available theme option menus if self.themeIsBuiltin.get(): #defaul... | dfd0b296d766645bd2e01955a61f52643a483922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dfd0b296d766645bd2e01955a61f52643a483922/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
... | |
iRFmod.setChannel(configElement.value); | iRFmod.setChannel(configElement.value + 30); | def setChannel(configElement): iRFmod.setChannel(configElement.value); | 0a2ebc75611941d43114f7cd07fb944ae098bf7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/0a2ebc75611941d43114f7cd07fb944ae098bf7f/RFmod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
12,
1425,
1046,
4672,
277,
12918,
1711,
18,
542,
2909,
12,
1425,
1046,
18,
1132,
1769,
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,
444,
2909,
12,
1425,
1046,
4672,
277,
12918,
1711,
18,
542,
2909,
12,
1425,
1046,
18,
1132,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return True | return 'comaintainer' | def _user_can_set_acls(self, userid, pkg): '''Check that the current user can set acls. ''' # Find the approved statuscode status = model.StatusTranslation.get_by(statusname='Approved') | baf9463fcca5ed33311fe33d72de3761db871f7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/baf9463fcca5ed33311fe33d72de3761db871f7e/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1355,
67,
4169,
67,
542,
67,
69,
6429,
12,
2890,
16,
6709,
16,
3475,
4672,
9163,
1564,
716,
326,
783,
729,
848,
444,
30906,
18,
9163,
468,
4163,
326,
20412,
1267,
710,
1267,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1355,
67,
4169,
67,
542,
67,
69,
6429,
12,
2890,
16,
6709,
16,
3475,
4672,
9163,
1564,
716,
326,
783,
729,
848,
444,
30906,
18,
9163,
468,
4163,
326,
20412,
1267,
710,
1267,
273,
... |
p = subprocess.Popen([sys.executable, "-c", "import os; os.abort()"]) | old_limit = self._suppress_core_files() try: p = subprocess.Popen([sys.executable, "-c", "import os; os.abort()"]) finally: self._unsuppress_core_files(old_limit) | def test_run_abort(self): # returncode handles signal termination p = subprocess.Popen([sys.executable, "-c", "import os; os.abort()"]) p.wait() self.assertEqual(-p.returncode, signal.SIGABRT) | 4633b74048f94164f8ab26e90df035094f59dadd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4633b74048f94164f8ab26e90df035094f59dadd/test_subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2681,
67,
18623,
12,
2890,
4672,
468,
18125,
7372,
4277,
19650,
1592,
67,
3595,
273,
365,
6315,
10840,
67,
3644,
67,
2354,
1435,
775,
30,
293,
273,
6652,
18,
52,
3190,
3816,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2681,
67,
18623,
12,
2890,
4672,
468,
18125,
7372,
4277,
19650,
1592,
67,
3595,
273,
365,
6315,
10840,
67,
3644,
67,
2354,
1435,
775,
30,
293,
273,
6652,
18,
52,
3190,
3816,
... |
def gradient(self): | def gradient(self, variables=None): | def gradient(self): r""" Compute the gradient of a symbolic function. This function returns a vector whose components are the derivatives of the original function. | b2d24bfd9f40633dd4a53e6d0baf9f476708ffd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b2d24bfd9f40633dd4a53e6d0baf9f476708ffd0/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10292,
12,
2890,
16,
3152,
33,
7036,
4672,
436,
8395,
8155,
326,
10292,
434,
279,
16754,
445,
18,
1220,
445,
1135,
279,
3806,
8272,
4085,
854,
326,
9630,
8785,
434,
326,
2282,
445,
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,
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,
10292,
12,
2890,
16,
3152,
33,
7036,
4672,
436,
8395,
8155,
326,
10292,
434,
279,
16754,
445,
18,
1220,
445,
1135,
279,
3806,
8272,
4085,
854,
326,
9630,
8785,
434,
326,
2282,
445,
18,
... |
print "pyiwlist.py: unknown command '%s' (check 'pyiwlist.py --help')." % (option, ) | print "iwlist.py: unknown command `%s' (check 'iwlist.py --help')." % (option, ) | def main(): if len(sys.argv) < 1: usage() sys.exit(1) try: # Get the interface and command from command line ifname, option = sys.argv[1:] except ValueError: usage() sys.exit(2) # Make sure provided interface is a wireless device try: ifnames = getNICnames() except IOError, (errno, strerror): print "Error: %s" % (stre... | 48376e374c4bd9e1b0646f7fe9461a8b4c60b492 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/48376e374c4bd9e1b0646f7fe9461a8b4c60b492/iwlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
411,
404,
30,
4084,
1435,
2589,
18,
8593,
12,
21,
13,
775,
30,
468,
968,
326,
1560,
471,
1296,
628,
1296,
980,
309,
529,
16,
1456,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
562,
12,
9499,
18,
19485,
13,
411,
404,
30,
4084,
1435,
2589,
18,
8593,
12,
21,
13,
775,
30,
468,
968,
326,
1560,
471,
1296,
628,
1296,
980,
309,
529,
16,
1456,
273... |
dm.pushFile(zipName, '/tests/xpcshell.7z') dm.unpackFile('xpcshell.7z') | if dm.pushFile(zipName, '/tests/xpcshell.7z') == None: raise devicemanager.FileError("failed to copy xpcshell.7z to device") if dm.unpackFile('xpcshell.7z') == None: raise devicemanager.FileError("failed to unpack xpcshell.7z on the device") | def main(): parser = RemoteXPCShellOptions() options, args = parser.parse_args() if len(args) < 2 and options.manifest is None or \ (len(args) < 1 and options.manifest is not None): print "len(args): " + str(len(args)) print >>sys.stderr, """Usage: %s <path to xpcshell> <test dirs> or: %s --manifest=test.manifest <pa... | 8739f00757cb63b2bf8673366c0d4d7737fa2d46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/8739f00757cb63b2bf8673366c0d4d7737fa2d46/remotexpcshelltests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
2082,
273,
6304,
60,
3513,
13220,
1320,
1435,
702,
16,
833,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
309,
562,
12,
1968,
13,
411,
576,
471,
702,
18,
14357,
353,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
2082,
273,
6304,
60,
3513,
13220,
1320,
1435,
702,
16,
833,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
309,
562,
12,
1968,
13,
411,
576,
471,
702,
18,
14357,
353,
599,... |
self.wprefix = self.repo.wjoin('') | self.wprefix = join(repo.root, '') self.prefixlen = len(self.wprefix) | def __init__(self, ui, repo): self.ui = ui self.repo = repo self.wprefix = self.repo.wjoin('') try: self.watcher = watcher.watcher() except OSError, err: raise util.Abort(_('inotify service not available: %s') % err.strerror) self.threshold = watcher.threshold(self.watcher) self.fileno = self.watcher.fileno | 6ff83483504ce4a234866df36ef34927cd9c7a4f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/6ff83483504ce4a234866df36ef34927cd9c7a4f/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
16,
3538,
4672,
365,
18,
4881,
273,
5915,
365,
18,
7422,
273,
3538,
365,
18,
91,
3239,
273,
1233,
12,
7422,
18,
3085,
16,
28707,
365,
18,
3239,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5915,
16,
3538,
4672,
365,
18,
4881,
273,
5915,
365,
18,
7422,
273,
3538,
365,
18,
91,
3239,
273,
1233,
12,
7422,
18,
3085,
16,
28707,
365,
18,
3239,
1... |
return unicode(item, *args) | return unicodedata.normalize("NFC",unicode(item, *args)) | def unic(item, *args): # Based on a recipe from http://code.activestate.com/recipes/466341 try: return unicode(item, *args) except UnicodeError: try: ascii_text = str(item).encode('string_escape') except UnicodeError: return "<unrepresentable object '%s'>" % item.__class__.__name__ else: return unicode(ascii_text) | 431c43694fa3edc1e74c53ef264397f78cd46090 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/431c43694fa3edc1e74c53ef264397f78cd46090/unic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
335,
12,
1726,
16,
380,
1968,
4672,
468,
25935,
603,
279,
16100,
628,
1062,
2207,
710,
18,
11422,
395,
340,
18,
832,
19,
266,
3449,
281,
19,
8749,
4449,
9803,
775,
30,
327,
5252,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
335,
12,
1726,
16,
380,
1968,
4672,
468,
25935,
603,
279,
16100,
628,
1062,
2207,
710,
18,
11422,
395,
340,
18,
832,
19,
266,
3449,
281,
19,
8749,
4449,
9803,
775,
30,
327,
5252,
... |
self._content += '<title type="text">%s</title>' % _title self._content += "<id>%s</id>" % self.revision self._content += "<updated>%s</updated>" % self.date self._content += "<author><name>%s</name></author>" % self.author _summary = escape('<p>%s</p><p>Files:<ul>%s</ul></p>' % | self._content += u'<title type="text">%s</title>' % _title self._content += u"<id>%s:%s</id>" % (ATOM_ID, self.revision) self._content += u"<updated>%s</updated>" % self.date self._content += u'<link rel="alternate" href=" self._content += u"<author><name>%s</name></author>" % self.author _summary = escape(u'<p>%s</p><... | def endElement(self, name): """Reset all the element flags and generate Atom XML if we have reached the end of a logentry.""" if name == 'logentry': self._content += "<entry>" _title = escape("%s: %s" % (self.revision, self.msg.replace('\n', ' '))) self._content += '<title type="text">%s</title>' % _title self._content... | be2976e66a12ae1668007813c2bfe7c4b375aa89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4674/be2976e66a12ae1668007813c2bfe7c4b375aa89/svnlogatom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
3536,
7013,
777,
326,
930,
2943,
471,
2103,
7149,
3167,
309,
732,
1240,
8675,
326,
679,
434,
279,
613,
4099,
12123,
309,
508,
422,
296,
1330,
4099,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
3536,
7013,
777,
326,
930,
2943,
471,
2103,
7149,
3167,
309,
732,
1240,
8675,
326,
679,
434,
279,
613,
4099,
12123,
309,
508,
422,
296,
1330,
4099,
4278,
... |
if x[1] != 'in': | if x[1] == 'inselect': qu1.append('(%s.%s in (%s))' % (table._table, x[0], x[2][0])) qu2 += x[2][1] elif x[1] != 'in': | def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cr, user, [(parent, 'in', ids)], context=context) return ids + _rec_get(ids2, table, parent) | a3c9ba0b90a1e475cede0355ac8d0065165cc44d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/a3c9ba0b90a1e475cede0355ac8d0065165cc44d/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
3353,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
3353,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... |
class DbEvaluationExporter(bulkloader.Exporter): | class AppEngineDbEvaluationExporter(bulkloader.Exporter): | def __init__(self): bulkloader.Loader.__init__(self, 'DbEvaluation', [('who', str), ('designation', str), ('comment', str), ('when', long), ('invocation', db.Key) ]) | f52986380d28d283aa7e99a55fe860d0af45b9b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10256/f52986380d28d283aa7e99a55fe860d0af45b9b6/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
8280,
6714,
18,
2886,
16186,
2738,
972,
12,
2890,
16,
296,
4331,
13468,
2187,
306,
2668,
3350,
83,
2187,
609,
3631,
7707,
16934,
367,
2187,
609,
3631,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
8280,
6714,
18,
2886,
16186,
2738,
972,
12,
2890,
16,
296,
4331,
13468,
2187,
306,
2668,
3350,
83,
2187,
609,
3631,
7707,
16934,
367,
2187,
609,
3631,
77... |
print "showing 'global' help; commands=", self.commands | def parse_command_line (self, args): """Parse the setup script's command line. 'args' must be a list of command-line arguments, most likely 'sys.argv[1:]' (see the 'setup()' function). This list is first processed for "global options" -- options that set attributes of the Distribution instance. Then, it is alternate... | 6f70fdef014f1bda41dd34d1f0df3e698606f2ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6f70fdef014f1bda41dd34d1f0df3e698606f2ed/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
261,
2890,
16,
833,
4672,
3536,
3201,
326,
3875,
2728,
1807,
1296,
980,
18,
225,
296,
1968,
11,
1297,
506,
279,
666,
434,
1296,
17,
1369,
1775,
16,
4486,
1037... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3076,
67,
1369,
261,
2890,
16,
833,
4672,
3536,
3201,
326,
3875,
2728,
1807,
1296,
980,
18,
225,
296,
1968,
11,
1297,
506,
279,
666,
434,
1296,
17,
1369,
1775,
16,
4486,
1037... | |
log.error('imported schema (%s) not-found', self.imp.ns[1]) | log.debug('imported schema (%s) not-found', self.imp.ns[1]) | def __import_local(self): """ import (local) xsd content using a namespace lookup """ result = self.schema.locate(self.imp.ns) if result is None: log.error('imported schema (%s) not-found', self.imp.ns[1]) return result | e9a3ccf9805514277d16bd1382dc58b373c2f22f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5377/e9a3ccf9805514277d16bd1382dc58b373c2f22f/sxbasic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
67,
3729,
12,
2890,
4672,
3536,
1930,
261,
3729,
13,
14802,
913,
1450,
279,
1981,
3689,
3536,
563,
273,
365,
18,
4821,
18,
25450,
12,
2890,
18,
14532,
18,
2387,
13,
309,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5666,
67,
3729,
12,
2890,
4672,
3536,
1930,
261,
3729,
13,
14802,
913,
1450,
279,
1981,
3689,
3536,
563,
273,
365,
18,
4821,
18,
25450,
12,
2890,
18,
14532,
18,
2387,
13,
309,
56... |
return string.join(traceback.format_exception(*err), '') | return ''.join(traceback.format_exception(*err)) | def _exc_info_to_string(self, err): """Converts a sys.exc_info()-style tuple of values into a string.""" return string.join(traceback.format_exception(*err), '') | 0f10f8b8ab4e454af2afa444bd55397be9910a03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/0f10f8b8ab4e454af2afa444bd55397be9910a03/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10075,
67,
1376,
67,
869,
67,
1080,
12,
2890,
16,
393,
4672,
3536,
5692,
279,
2589,
18,
10075,
67,
1376,
1435,
17,
4060,
3193,
434,
924,
1368,
279,
533,
12123,
327,
533,
18,
5701,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
10075,
67,
1376,
67,
869,
67,
1080,
12,
2890,
16,
393,
4672,
3536,
5692,
279,
2589,
18,
10075,
67,
1376,
1435,
17,
4060,
3193,
434,
924,
1368,
279,
533,
12123,
327,
533,
18,
5701,... |
if extension: filename = '%s.%s'%(name, extension) else: filename = name src = os.path.join(self.dir, filename) if not os.path.exists(src): filename = filename + '.html' src = os.path.join(self.dir, filename) if not os.path.exists(src): if not extension: raise NoTemplate, 'Template file "%s" doesn\'t exist'%name ge... | src, filename = find_template(self.dir, name, extension) | def get(self, name, extension=None): ''' Interface to get a template, possibly loading a compiled template. | df205a5557c8fb8ce29017ee92bf2509810c4afa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/df205a5557c8fb8ce29017ee92bf2509810c4afa/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
508,
16,
2710,
33,
7036,
4672,
9163,
6682,
358,
336,
279,
1542,
16,
10016,
7153,
279,
7743,
1542,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
508,
16,
2710,
33,
7036,
4672,
9163,
6682,
358,
336,
279,
1542,
16,
10016,
7153,
279,
7743,
1542,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'categ_id': _get_categ, | def _get_categ(self, cursor, user, context={}): md = self.pool.get('ir.model.data') return md._get_id(cr, uid, 'product', 'cat0') or False | 56e1d1784b52fe7d3eab8bf5db21901d2c53d53a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/56e1d1784b52fe7d3eab8bf5db21901d2c53d53a/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
71,
1287,
12,
2890,
16,
3347,
16,
729,
16,
819,
12938,
4672,
3481,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
327,
3481,
6315,
588,
67,
350,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
71,
1287,
12,
2890,
16,
3347,
16,
729,
16,
819,
12938,
4672,
3481,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
327,
3481,
6315,
588,
67,
350,
12,
... | |
self.merge_id = self.ui_manager.add_ui_from_string(outstream.getvalue()) | self._merge_id = self.ui_manager.add_ui_from_string(outstream.getvalue()) | def _populate_subtitles_menu(self, tracks): if self.merge_id: self.ui_manager.remove_ui(self.merge_id) self.merge_id = 0 | 50a403627892a40143e4db434a55ee7aa3984402 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/50a403627892a40143e4db434a55ee7aa3984402/window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19936,
67,
1717,
17643,
67,
5414,
12,
2890,
16,
13933,
4672,
309,
365,
18,
2702,
67,
350,
30,
365,
18,
4881,
67,
4181,
18,
4479,
67,
4881,
12,
2890,
18,
2702,
67,
350,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19936,
67,
1717,
17643,
67,
5414,
12,
2890,
16,
13933,
4672,
309,
365,
18,
2702,
67,
350,
30,
365,
18,
4881,
67,
4181,
18,
4479,
67,
4881,
12,
2890,
18,
2702,
67,
350,
13,
365,
... |
for user, tag in self.tag_users.items(): if user in self.users: color = self.changecolour(tag, self.getUserStatusColor(self.usersmodel.get_value(self.users[user], 4)) ) else: self.changecolour(tag, "useroffline") | for user in self.tag_users: self.getUserTag(user) | def Rejoined(self, users): # Update user list with an inexpensive sorting function self.usersmodel.set_default_sort_func(lambda *args: -1) self.usersmodel.set_sort_column_id(-1, gtk.SORT_ASCENDING) for user in users.keys(): if user in self.users: self.usersmodel.remove(self.users[user]) img = self.frame.GetStatusImage(... | 1db4621cd68a94f597ac8b46bb362cb67542ba1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/1db4621cd68a94f597ac8b46bb362cb67542ba1b/chatrooms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
5701,
329,
12,
2890,
16,
3677,
4672,
468,
2315,
729,
666,
598,
392,
316,
2749,
14315,
9602,
445,
365,
18,
5577,
2284,
18,
542,
67,
1886,
67,
3804,
67,
644,
12,
14661,
380,
1968,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
5701,
329,
12,
2890,
16,
3677,
4672,
468,
2315,
729,
666,
598,
392,
316,
2749,
14315,
9602,
445,
365,
18,
5577,
2284,
18,
542,
67,
1886,
67,
3804,
67,
644,
12,
14661,
380,
1968,
... |
if BUILD_ARCHIVE_TYPE in ('linux', 'linux-64'): | if BUILD_ARCHIVE_TYPE in ('linux', 'linux-64', 'linux-chromiumos'): | def SetArchiveVars(archive): """Set a bunch of global variables appropriate for the specified archive.""" global BUILD_ARCHIVE_TYPE global BUILD_ARCHIVE_DIR global BUILD_ZIP_NAME global BUILD_DIR_NAME global BUILD_EXE_NAME global BUILD_BASE_URL BUILD_ARCHIVE_TYPE = archive BUILD_ARCHIVE_DIR = 'chromium-rel-' + BUILD_A... | 2bd3b91c6417d02027f746a4af2e97cde3f094e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/2bd3b91c6417d02027f746a4af2e97cde3f094e2/build-bisect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
7465,
5555,
12,
10686,
4672,
3536,
694,
279,
25606,
434,
2552,
3152,
5505,
364,
326,
1269,
5052,
12123,
2552,
30054,
67,
10586,
5354,
67,
2399,
2552,
30054,
67,
10586,
5354,
67,
4537... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
7465,
5555,
12,
10686,
4672,
3536,
694,
279,
25606,
434,
2552,
3152,
5505,
364,
326,
1269,
5052,
12123,
2552,
30054,
67,
10586,
5354,
67,
2399,
2552,
30054,
67,
10586,
5354,
67,
4537... |
self.write(*args, type='sql', **kwargs) | kwargs['type'] = 'sql' self.write(*args, **kwargs) | def sql_write(self, *args, **kwargs): warnings.warn("WARNING: sql_write is deprecated; use write instead") self.write(*args, type='sql', **kwargs) | 2c6a2a7294d59888de10c3350b7a4f182296f4df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13233/2c6a2a7294d59888de10c3350b7a4f182296f4df/basetable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1847,
67,
2626,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
5599,
18,
8935,
2932,
9511,
30,
1847,
67,
2626,
353,
6849,
31,
999,
1045,
3560,
7923,
365,
18,
2626,
30857,
1968,
16,
618... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1847,
67,
2626,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
5599,
18,
8935,
2932,
9511,
30,
1847,
67,
2626,
353,
6849,
31,
999,
1045,
3560,
7923,
365,
18,
2626,
30857,
1968,
16,
618... |
self.trace += " - - External delete of %s\n" %tid | if DEBUG: self.trace += " - - External delete of %s\n" %tid | def __execution_loop(self): while len(self.__updating_queue) > 0: tid,action = self.__updating_queue.pop(0) | d1e2e3781c819eab079c7a3534f1638eeb7d7317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/d1e2e3781c819eab079c7a3534f1638eeb7d7317/filteredtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16414,
67,
6498,
12,
2890,
4672,
1323,
562,
12,
2890,
16186,
5533,
1776,
67,
4000,
13,
405,
374,
30,
11594,
16,
1128,
273,
365,
16186,
5533,
1776,
67,
4000,
18,
5120,
12,
20,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16414,
67,
6498,
12,
2890,
4672,
1323,
562,
12,
2890,
16186,
5533,
1776,
67,
4000,
13,
405,
374,
30,
11594,
16,
1128,
273,
365,
16186,
5533,
1776,
67,
4000,
18,
5120,
12,
20,
13,... |
res_id = email_tool.process_email(cr, uid, server.object_id.model, data[0][1], attach=server.attach, context=context) | res_id = email_tool.process_email(cr, user, server.object_id.model, data[0][1], attach=server.attach, context=context) | def fetch_mail(self, cr, uid, ids, context={}): email_tool = self.pool.get('email.server.tools') action_pool = self.pool.get('ir.actions.server') context.update({'get_server': True}) for server in self.browse(cr, uid, ids, context): count = 0 try: if server.type == 'imap': imap_server = self.button_confirm_login(cr, ui... | 27360ddd7beb3a4fd7ec7cf2ffbc8c0f24a31dc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/27360ddd7beb3a4fd7ec7cf2ffbc8c0f24a31dc1/fetchmail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
4408,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
2699,
67,
6738,
273,
365,
18,
6011,
18,
588,
2668,
3652,
18,
3567,
18,
6642,
6134,
1301,
67,
6011,
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,
2158,
67,
4408,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
2699,
67,
6738,
273,
365,
18,
6011,
18,
588,
2668,
3652,
18,
3567,
18,
6642,
6134,
1301,
67,
6011,
273,
... |
return abs(norm(mu=c,size=self._size)) | return abs(norm.rvs(mu=c,size=self._size)) | def _rvs(self, c): return abs(norm(mu=c,size=self._size)) | 946f237342bf50f49644a9813ca1ee8188f2aa5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/946f237342bf50f49644a9813ca1ee8188f2aa5a/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4962,
87,
12,
2890,
16,
276,
4672,
327,
2417,
12,
7959,
12,
13297,
33,
71,
16,
1467,
33,
2890,
6315,
1467,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4962,
87,
12,
2890,
16,
276,
4672,
327,
2417,
12,
7959,
12,
13297,
33,
71,
16,
1467,
33,
2890,
6315,
1467,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
cast = "" self.emit("value = ast2obj_list(%s, %sast2obj_%s);" % (value, cast, field.type), depth) | self.emit("value = ast2obj_list(%s, ast2obj_%s);" % (value, field.type), depth) | def set(self, field, value, depth): if field.seq: if field.type.value == "cmpop": # XXX check that this cast is safe, i.e. works independent on whether # sizeof(cmpop_ty) != sizeof(void*) cast = "(PyObject*(*)(void*))" else: cast = "" self.emit("value = ast2obj_list(%s, %sast2obj_%s);" % (value, cast, field.type), dept... | 4ec5f347beb2f8d87f0fd07039b0a0614f25dc64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4ec5f347beb2f8d87f0fd07039b0a0614f25dc64/asdl_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
652,
16,
460,
16,
3598,
4672,
309,
652,
18,
5436,
30,
309,
652,
18,
723,
18,
1132,
422,
315,
9625,
556,
6877,
468,
11329,
866,
716,
333,
4812,
353,
4183,
16,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
652,
16,
460,
16,
3598,
4672,
309,
652,
18,
5436,
30,
309,
652,
18,
723,
18,
1132,
422,
315,
9625,
556,
6877,
468,
11329,
866,
716,
333,
4812,
353,
4183,
16,
277,
... |
'scn': u'Discussioni categoria', | 'scn': u'Discussioni Catigurìa', | def __init__(self): self.name = None # Updated from http://meta.wikimedia.org/wiki/Interwiki_sorting_order self.alphabetic = [ 'aa','af','ak','als','am','ang','ab','ar','an','arc','roa-rup','frp','as', 'ast','gn','av','ay','az','bm','bn','zh-min-nan','map-bms','ba','be','be-x-old', 'bh','bi','bar','bo','bs','br','bg','... | 50e42863893a1a4a8cc03199dc0f8384b6016f55 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/50e42863893a1a4a8cc03199dc0f8384b6016f55/family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
468,
19301,
628,
1062,
2207,
3901,
18,
11999,
381,
1980,
18,
3341,
19,
13044,
19,
2465,
13044,
67,
28751,
67,
1019,
365,
18,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
468,
19301,
628,
1062,
2207,
3901,
18,
11999,
381,
1980,
18,
3341,
19,
13044,
19,
2465,
13044,
67,
28751,
67,
1019,
365,
18,
28... |
if str[0] == '"' and str[-1:] == '"': return str[1:-1] if str[0] == '<' and str[-1:] == '>': | if str.startswith('"') and str.endswith('"'): return str[1:-1].replace('\\\\', '\\').replace('\\"', '"') if str.startswith('<') and str.endswith('>'): | def unquote(str): """Remove quotes from a string.""" if len(str) > 1: if str[0] == '"' and str[-1:] == '"': return str[1:-1] if str[0] == '<' and str[-1:] == '>': return str[1:-1] return str | b5085638d81a65b47afa7b8860fd544f68e52549 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b5085638d81a65b47afa7b8860fd544f68e52549/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25611,
12,
701,
4672,
3536,
3288,
10681,
628,
279,
533,
12123,
309,
562,
12,
701,
13,
405,
404,
30,
309,
609,
18,
17514,
1918,
2668,
5187,
13,
471,
609,
18,
5839,
1918,
2668,
5187,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25611,
12,
701,
4672,
3536,
3288,
10681,
628,
279,
533,
12123,
309,
562,
12,
701,
13,
405,
404,
30,
309,
609,
18,
17514,
1918,
2668,
5187,
13,
471,
609,
18,
5839,
1918,
2668,
5187,
467... |
self.on.append(n); | self.on.append(n); | def _handleNode(self,node,end): i = self.o.index(node.lid) self.on.pop(i) self.o.pop(i) self.c.append(node.lid) | 6c6d84c3ad2857d8a0531038f79a0f65cf5df53e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/6c6d84c3ad2857d8a0531038f79a0f65cf5df53e/astar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
907,
12,
2890,
16,
2159,
16,
409,
4672,
277,
273,
365,
18,
83,
18,
1615,
12,
2159,
18,
80,
350,
13,
365,
18,
265,
18,
5120,
12,
77,
13,
365,
18,
83,
18,
5120,
12,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
907,
12,
2890,
16,
2159,
16,
409,
4672,
277,
273,
365,
18,
83,
18,
1615,
12,
2159,
18,
80,
350,
13,
365,
18,
265,
18,
5120,
12,
77,
13,
365,
18,
83,
18,
5120,
12,
77,
... |
if not hasattr(item, attrName) or \ (value != item.getAttributeValue(attrName)): logger.debug( "for %s setting %s to %s" % \ (item.getItemDisplayName().encode('utf8'), attrName, value)) item.setAttributeValue(attrName, value) else: logger.debug( "for %s skipping %s of %s" % \ (item.getItemDisplayName().encode('utf8')... | logger.debug( "for %s setting %s to %s" % \ (item.getItemDisplayName().encode('utf8'), attrName, value)) item.setAttributeValue(attrName, value) | def __importNode(self, node, item=None): | d3a6a79fbf985ab1afb6b465877a01f09dc376ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d3a6a79fbf985ab1afb6b465877a01f09dc376ad/Sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
907,
12,
2890,
16,
756,
16,
761,
33,
7036,
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,
1001,
5666,
907,
12,
2890,
16,
756,
16,
761,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
f = open ( filename, "r") s = f.read() | s = '' try: f = open ( filename, "r") s = f.read() except: s='' | def termlist(self): """Term List for html doc""" c_ids, p_ids = self.vocab.azlist() tl = """<div class="termlist">""" tl = """%s<h3>Classes and Properties (full detail)</h3><div class='termdetails'><br />\n\n""" % tl # first classes, then properties eg = """<div class="specterm" id="term_%s"> <h3>%s: foaf:%s</h3> <em>%... | cf431c62d06b49c2e06bfe33939a73551ad1e137 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3661/cf431c62d06b49c2e06bfe33939a73551ad1e137/libvocab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19272,
781,
376,
12,
2890,
4672,
3536,
4065,
987,
364,
1729,
997,
8395,
276,
67,
2232,
16,
293,
67,
2232,
273,
365,
18,
15913,
18,
1561,
1098,
1435,
8332,
273,
3536,
32,
2892,
667,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19272,
781,
376,
12,
2890,
4672,
3536,
4065,
987,
364,
1729,
997,
8395,
276,
67,
2232,
16,
293,
67,
2232,
273,
365,
18,
15913,
18,
1561,
1098,
1435,
8332,
273,
3536,
32,
2892,
667,
154... |
if values and field_name: self._field_get2(cr, uid, obj, context) relation = obj._name res = {} if type(ids) != type([]): ids=[ids] objlst = obj.browse(cr, uid, ids) for data in objlst: t_id = None t_data = data relation = obj._name for i in range(len(self.arg)): field_detail = self._relations[i] relation = field_detai... | self._field_get2(cr, uid, obj, context) if type(ids) != type([]): ids=[ids] objlst = obj.browse(cr, uid, ids) for data in objlst: t_id = data.id t_data = data for i in range(len(self.arg)): if not t_data: break field_detail = self._relations[i] if not t_data[self.arg[i]]: if self._type not in ('one2many', 'many2many'):... | def _fnct_write(self,obj,cr, uid, ids, field_name, values, args, context=None): if values and field_name: self._field_get2(cr, uid, obj, context) relation = obj._name res = {} if type(ids) != type([]): ids=[ids] objlst = obj.browse(cr, uid, ids) for data in objlst: t_id = None t_data = data relation = obj._name for i i... | 1a4ef0313f7c15ac4cc2e8528b92fad3b6eb021f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1a4ef0313f7c15ac4cc2e8528b92fad3b6eb021f/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4293,
299,
67,
2626,
12,
2890,
16,
2603,
16,
3353,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
924,
16,
833,
16,
819,
33,
7036,
4672,
365,
6315,
1518,
67,
588,
22,
12,
3353,
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,
4293,
299,
67,
2626,
12,
2890,
16,
2603,
16,
3353,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
924,
16,
833,
16,
819,
33,
7036,
4672,
365,
6315,
1518,
67,
588,
22,
12,
3353,
16,... |
reply.getQuerynode().addChild("feature", {"var":"http://jabber.org/protocol/si"}) reply.getQuerynode().addChild("feature", {"var":"http://jabber.org/protocol/si/profile/spade-p2p-messaging"}) | reply.getTag("query").addChild("feature", {"var":"http://jabber.org/protocol/si"}) reply.getTag("query").addChild("feature", {"var":"http://jabber.org/protocol/si/profile/spade-p2p-messaging"}) | def _process(self): self.msg = self._receive(False) if self.msg != None: if self.msg.getType() == "get": #print "DISCO Behaviour called" #print self.myAgent.getName(),": DISCO request from", str(self.msg.getFrom()) # Inform of services reply = self.msg.buildReply("result") if self.myAgent.p2p_ready: reply.getQuerynode(... | 3fd3d787c8af9fa40be6b7e2507de52eb463020d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10121/3fd3d787c8af9fa40be6b7e2507de52eb463020d/Agent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
4672,
365,
18,
3576,
273,
365,
6315,
18149,
12,
8381,
13,
309,
365,
18,
3576,
480,
599,
30,
309,
365,
18,
3576,
18,
588,
559,
1435,
422,
315,
588,
6877,
468,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2567,
12,
2890,
4672,
365,
18,
3576,
273,
365,
6315,
18149,
12,
8381,
13,
309,
365,
18,
3576,
480,
599,
30,
309,
365,
18,
3576,
18,
588,
559,
1435,
422,
315,
588,
6877,
468,
118... |
if not self.useSubjectAltNameOnly and not hostValidationPassed: | if not hostValidationPassed: | def __call__(self, peerCert, host=None): if peerCert is None: raise NoCertificate('peer did not return certificate') | b9413f72d637e192919a806ed51af3844fb01f53 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8055/b9413f72d637e192919a806ed51af3844fb01f53/Checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
4261,
5461,
16,
1479,
33,
7036,
4672,
309,
4261,
5461,
353,
599,
30,
1002,
2631,
4719,
2668,
12210,
5061,
486,
327,
4944,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
4261,
5461,
16,
1479,
33,
7036,
4672,
309,
4261,
5461,
353,
599,
30,
1002,
2631,
4719,
2668,
12210,
5061,
486,
327,
4944,
6134,
2,
-100,
-100,
-100,
-100,
... |
if seenNames.has_key(tmlname): debugInspection('Seen %s already' % tmlname) continue seenNames[tmlname] = 1 if exists(tmlname): result.append(tmlname) debugInspection('Found ' + tmlname) | if isAModule(join((d,plugindir))): seenNames[plugindir] = 1 if exists(tmlname): result.append(tmlname) debugInspection('Found ' + tmlname) else: debugInspection('Failed ' + tmlname) | def getPluginFileList(debugInspection=None, showProgress=None): """Find plugin.tml files in subdirectories of paths in C{sys.path} @type debugInspection: C{None} or a callable taking one argument @param debugInspection: If not None, this is invoked with strings containing debug information about the loading process. ... | cf37cab2907c62030461b721de0c2aaaa2eb26fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cf37cab2907c62030461b721de0c2aaaa2eb26fb/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16319,
26098,
12,
4148,
14985,
33,
7036,
16,
2405,
5491,
33,
7036,
4672,
3536,
3125,
1909,
18,
1419,
1390,
316,
31220,
434,
2953,
316,
385,
95,
9499,
18,
803,
97,
225,
632,
723,
1198,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16319,
26098,
12,
4148,
14985,
33,
7036,
16,
2405,
5491,
33,
7036,
4672,
3536,
3125,
1909,
18,
1419,
1390,
316,
31220,
434,
2953,
316,
385,
95,
9499,
18,
803,
97,
225,
632,
723,
1198,
... |
print "%s watcher %s wants to subscribe to your presence information. Press (a) to allow, (d) to deny, (p) to polite block:" % (pending[0].status, pending[0]) | print "%s watcher %s wants to subscribe to your presence information. Press (a) for allow, (d) for deny or (p) for polite blocking:" % (pending[0].status.capitalize(), pending[0]) | def read_queue(e, username, domain, password, display_name, route, xcap_root, expires, do_siptrace, pjsip_logging): global user_quit, lock, queue, sip_uri, winfo, xcap_client lock.acquire() try: sip_uri = SIPURI(user=username, host=domain, display=display_name) sub = Subscription(Credentials(sip_uri, password), sip_uri... | b61b48f4af98bcbfee2f3264663db7993b4ea827 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/b61b48f4af98bcbfee2f3264663db7993b4ea827/sip_subscribe_winfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
4000,
12,
73,
16,
2718,
16,
2461,
16,
2201,
16,
2562,
67,
529,
16,
1946,
16,
619,
5909,
67,
3085,
16,
7368,
16,
741,
67,
28477,
5129,
16,
293,
2924,
625,
67,
11167,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
4000,
12,
73,
16,
2718,
16,
2461,
16,
2201,
16,
2562,
67,
529,
16,
1946,
16,
619,
5909,
67,
3085,
16,
7368,
16,
741,
67,
28477,
5129,
16,
293,
2924,
625,
67,
11167,
4672,
... |
connection_callable = uowtransaction.mapper_flush_opts['connection_callable'] tups = [(state, _state_mapper(state), connection_callable(self, state.obj())) for state in _sort_states(states)] | connection_callable = \ uowtransaction.mapper_flush_opts['connection_callable'] | def _delete_obj(self, states, uowtransaction): """Issue ``DELETE`` statements for a list of objects. | dfab13e9ae147a7112a23db5abc4e4b7addc00fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/dfab13e9ae147a7112a23db5abc4e4b7addc00fa/mapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3733,
67,
2603,
12,
2890,
16,
5493,
16,
18215,
7958,
4672,
3536,
12956,
12176,
6460,
10335,
6317,
364,
279,
666,
434,
2184,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
3733,
67,
2603,
12,
2890,
16,
5493,
16,
18215,
7958,
4672,
3536,
12956,
12176,
6460,
10335,
6317,
364,
279,
666,
434,
2184,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
CallLater(5, auth_failed) | auth_failed() | def auth_failed(msg="Authentication failed."): if not self._closed: self.attempted_logins += 1 if self.attempted_logins >= self.max_login_attempts: msg = "530 " + msg + " Disconnecting." self.respond(msg) self.log(msg) self.close_when_done() else: self.respond("530 " + msg) self.log(msg) self.sleeping = False | 788a0071ab45a8367ccf5fe97d060b43da1dd666 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/788a0071ab45a8367ccf5fe97d060b43da1dd666/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
67,
7307,
12,
3576,
1546,
6492,
2535,
1199,
4672,
309,
486,
365,
6315,
12204,
30,
365,
18,
11764,
329,
67,
1330,
2679,
1011,
404,
309,
365,
18,
11764,
329,
67,
1330,
2679,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
67,
7307,
12,
3576,
1546,
6492,
2535,
1199,
4672,
309,
486,
365,
6315,
12204,
30,
365,
18,
11764,
329,
67,
1330,
2679,
1011,
404,
309,
365,
18,
11764,
329,
67,
1330,
2679,
1545,
... |
cmd = "/sbin/fsck.ext3 -f -p " + self.partitionPath("1") | cmd = "fsck.ext3 -f -p " + self.partitionPath("1") | def fsck(self): # We autocorrect any failures # TODO: we could check if the fs is actually ext3 cmd = "/sbin/fsck.ext3 -f -p " + self.partitionPath("1") res = system(cmd) return (res >> 8) | 6be8aade7cb66ee77fa3d7c5fb8002789e2efdef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/6be8aade7cb66ee77fa3d7c5fb8002789e2efdef/Harddisk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2662,
363,
12,
2890,
4672,
468,
1660,
23173,
280,
2607,
1281,
11720,
468,
2660,
30,
732,
3377,
866,
309,
326,
2662,
353,
6013,
1110,
23,
1797,
273,
315,
2556,
363,
18,
408,
23,
300,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2662,
363,
12,
2890,
4672,
468,
1660,
23173,
280,
2607,
1281,
11720,
468,
2660,
30,
732,
3377,
866,
309,
326,
2662,
353,
6013,
1110,
23,
1797,
273,
315,
2556,
363,
18,
408,
23,
300,
74... |
doc = etree.fromstring(xml, parser=parser) | try: doc = etree.fromstring(xml, parser=parser) except: self.log.warn('Failed to parse XML. Trying to recover') parser = etree.XMLParser(no_network=True, huge_tree=True, recover=True) doc = etree.fromstring(xml, parser=parser) | def convert(self, stream, options, file_ext, log, accelerators): self.log = log self.log('Generating XML') from calibre.ebooks.lrf.lrfparser import LRFDocument d = LRFDocument(stream) d.parse() xml = d.to_xml(write_files=True) if options.verbose > 2: open('lrs.xml', 'wb').write(xml.encode('utf-8')) parser = etree.XMLPa... | ed5b45164be7656a41c94b65e4acb9167e27c61c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/ed5b45164be7656a41c94b65e4acb9167e27c61c/input.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2890,
16,
1407,
16,
702,
16,
585,
67,
408,
16,
613,
16,
15153,
264,
3062,
4672,
365,
18,
1330,
273,
613,
365,
18,
1330,
2668,
21755,
3167,
6134,
628,
26139,
266,
18,
73,
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,
1765,
12,
2890,
16,
1407,
16,
702,
16,
585,
67,
408,
16,
613,
16,
15153,
264,
3062,
4672,
365,
18,
1330,
273,
613,
365,
18,
1330,
2668,
21755,
3167,
6134,
628,
26139,
266,
18,
73,
12... |
if self.tray_open and self.info: self.tray_open = FALSE | def is_tray_open(self): if self.tray_open and self.info: # if we have an info, the tray can't be open self.tray_open = FALSE return self.tray_open | edee4f15b480e99ca8e08ab0a36353de07e1214d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/edee4f15b480e99ca8e08ab0a36353de07e1214d/rom_drives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
313,
528,
67,
3190,
12,
2890,
4672,
309,
365,
18,
313,
528,
67,
3190,
471,
365,
18,
1376,
30,
468,
309,
732,
1240,
392,
1123,
16,
326,
268,
435,
848,
1404,
506,
1696,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
313,
528,
67,
3190,
12,
2890,
4672,
309,
365,
18,
313,
528,
67,
3190,
471,
365,
18,
1376,
30,
468,
309,
732,
1240,
392,
1123,
16,
326,
268,
435,
848,
1404,
506,
1696,
365,
... | |
'copyright': 'WM/Copyright', | 'copyright': 'Copyright', | def pack_image(mime, data, type=3, description=""): """ Helper function to pack image data for a WM/Picture tag. See unpack_image for a description of the data format. """ tag_data = struct.pack("<bi", type, len(data)) tag_data += mime.encode("utf-16-le") + "\x00\x00" tag_data += description.encode("utf-16-le") + "\x00... | 1f5fd7d5f52706b5109a1cf2cdd2d3b9cb5537e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12415/1f5fd7d5f52706b5109a1cf2cdd2d3b9cb5537e9/asf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
67,
2730,
12,
11757,
16,
501,
16,
618,
33,
23,
16,
2477,
1546,
6,
4672,
3536,
9705,
445,
358,
2298,
1316,
501,
364,
279,
678,
49,
19,
24061,
1047,
18,
2164,
6167,
67,
2730,
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,
2298,
67,
2730,
12,
11757,
16,
501,
16,
618,
33,
23,
16,
2477,
1546,
6,
4672,
3536,
9705,
445,
358,
2298,
1316,
501,
364,
279,
678,
49,
19,
24061,
1047,
18,
2164,
6167,
67,
2730,
364... |
print "***after, self.handlesphereRadius1 =", self.handleSphereRadius1 print "~~~~~~~~~~~" | def updateHandlePositions(self): """ Update handle positions """ | 338f2c14bed8b0958ed4d2c4161152fb760378b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/338f2c14bed8b0958ed4d2c4161152fb760378b2/DnaSegment_EditCommand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3259,
11024,
12,
2890,
4672,
3536,
2315,
1640,
6865,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3259,
11024,
12,
2890,
4672,
3536,
2315,
1640,
6865,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.body.append (self.begin_frametag()) | self.out.append (self.begin_frametag()) | def visit_section (self, node): if has_sub_sections (node): temp = self.section_level + 1 if temp > self.frame_level: self.frame_level = temp else: self.body.append (self.begin_frametag()) LaTeXTranslator.visit_section (self, node) | 37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3464,
261,
2890,
16,
756,
4672,
309,
711,
67,
1717,
67,
11657,
261,
2159,
4672,
1906,
273,
365,
18,
3464,
67,
2815,
397,
404,
309,
1906,
405,
365,
18,
3789,
67,
2815,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3464,
261,
2890,
16,
756,
4672,
309,
711,
67,
1717,
67,
11657,
261,
2159,
4672,
1906,
273,
365,
18,
3464,
67,
2815,
397,
404,
309,
1906,
405,
365,
18,
3789,
67,
2815,
30,
3... |
FixPostInst(options.mounted_dir) if (options.for_qemu == 'true'): | if (options.enable_tablet == 'true'): | def main(): parser = OptionParser(USAGE) parser.add_option('--mounted_dir', dest='mounted_dir', help='directory where the Chromium OS image is mounted') parser.add_option('--for_qemu', dest='for_qemu', default="true", help='fixup image for qemu') (options, args) = parser.parse_args() if not options.mounted_dir: parser... | e79e88eb0ebd00998aa9feb256b8c6aaf21e4842 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/e79e88eb0ebd00998aa9feb256b8c6aaf21e4842/fixup_image_for_qemu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
12,
29550,
13,
2082,
18,
1289,
67,
3482,
2668,
413,
4778,
329,
67,
1214,
2187,
1570,
2218,
4778,
329,
67,
1214,
2187,
2809,
2218,
5149,
1625,
326,
1680,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
12,
29550,
13,
2082,
18,
1289,
67,
3482,
2668,
413,
4778,
329,
67,
1214,
2187,
1570,
2218,
4778,
329,
67,
1214,
2187,
2809,
2218,
5149,
1625,
326,
1680,
52... |
if self.pixbuf.get_height() >= size.height: | if self.pixbuf.get_height() == size.height: | def configure_event_cb(self, widget, size): if self.pixbuf and self.pixbuf.get_width() == size.width: if self.pixbuf.get_height() >= size.height: return self.redraw_thumbnails(size.width, size.height) | 2dbb5d369e4b4c8c2e24744aec7c6232f4bbe6ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7129/2dbb5d369e4b4c8c2e24744aec7c6232f4bbe6ba/brushselectionwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
2575,
67,
7358,
12,
2890,
16,
3604,
16,
963,
4672,
309,
365,
18,
14861,
4385,
471,
365,
18,
14861,
4385,
18,
588,
67,
2819,
1435,
422,
963,
18,
2819,
30,
309,
365,
18,
1486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
2575,
67,
7358,
12,
2890,
16,
3604,
16,
963,
4672,
309,
365,
18,
14861,
4385,
471,
365,
18,
14861,
4385,
18,
588,
67,
2819,
1435,
422,
963,
18,
2819,
30,
309,
365,
18,
1486... |
unittest.main() | testsupport.main() | def test_appmethod(self): bm = BM_with_appmethod(self.space) w_bm = bm.wrap_me() modobj = self.space.unwrap(w_bm) bmd = modobj.__dict__ bmd_kys = bmd.keys() bmd_kys.sort() self.assertEqual(bmd_kys, ['__doc__','__name__','amethod']) self.assertEqual(bmd['__doc__'], BM_with_appmethod.__doc__) self.assertEqual(bmd['__name... | 85ae45c7e8746185cccb31984fb38a4ab665ab6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/85ae45c7e8746185cccb31984fb38a4ab665ab6f/test_extmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2910,
2039,
12,
2890,
4672,
18829,
273,
605,
49,
67,
1918,
67,
2910,
2039,
12,
2890,
18,
2981,
13,
341,
67,
25709,
273,
18829,
18,
4113,
67,
3501,
1435,
681,
2603,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2910,
2039,
12,
2890,
4672,
18829,
273,
605,
49,
67,
1918,
67,
2910,
2039,
12,
2890,
18,
2981,
13,
341,
67,
25709,
273,
18829,
18,
4113,
67,
3501,
1435,
681,
2603,
273,
365,
... |
return(make_uid(_import_module(modname))) | return(make_uid(import_module(modname))) | def findUID(name, container, docmap=None): """ Attempt to find the UID for the object that can be accessed with the name C{name} from the module C{module}. @param name: The name used to identify the object. @type name: C{string} @param container: The UID of the class or module containing the object. @type container: L... | 553ad4bbccbdde516783d26cde58801169258548 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/553ad4bbccbdde516783d26cde58801169258548/uid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3060,
12,
529,
16,
1478,
16,
997,
1458,
33,
7036,
4672,
3536,
12864,
358,
1104,
326,
10034,
364,
326,
733,
716,
848,
506,
15539,
598,
326,
508,
385,
95,
529,
97,
628,
326,
1605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3060,
12,
529,
16,
1478,
16,
997,
1458,
33,
7036,
4672,
3536,
12864,
358,
1104,
326,
10034,
364,
326,
733,
716,
848,
506,
15539,
598,
326,
508,
385,
95,
529,
97,
628,
326,
1605,
... |
return self.__transports.get(transportDomain) | return self.__transports.get(tuple(transportDomain)) | def getTransport(self, transportDomain): return self.__transports.get(transportDomain) | 8735aa5e5e72b12d645ad0cc6772914686da5e8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/8735aa5e5e72b12d645ad0cc6772914686da5e8b/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29801,
12,
2890,
16,
4736,
3748,
4672,
327,
365,
16186,
2338,
4363,
18,
588,
12,
13049,
3748,
13,
225,
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,
29801,
12,
2890,
16,
4736,
3748,
4672,
327,
365,
16186,
2338,
4363,
18,
588,
12,
13049,
3748,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
filecontent = file_upload.stream.read() | filecontent = filecontent.read() | def _do_savedrawing(pagename, request): _ = request.getText if not request.user.may.write(pagename): return _('You are not allowed to save a drawing on this page.') file_upload = request.files.get('filepath') if not file_upload: # This might happen when trying to upload file names # with non-ascii characters on Safar... | d70a3968baad5980718dd0f01d4d6ce5b02552d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/d70a3968baad5980718dd0f01d4d6ce5b02552d3/AttachFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
14077,
1899,
310,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
225,
309,
486,
590,
18,
1355,
18,
24877,
18,
2626,
12,
9095,
1069,
4672,
327,
389,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
14077,
1899,
310,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
225,
309,
486,
590,
18,
1355,
18,
24877,
18,
2626,
12,
9095,
1069,
4672,
327,
389,
2668,
... |
if t in types.IntTypes: self.pytype = int elif t in types.FloatTypes: self.pytype = float elif t in types.StringTypes: self.pytype = str else: raise TypeError, t | self.pytype = types.ToPyType[t] | def __init__(self, *attrs): """ Initialize a new Param element. """ ligolw.Param.__init__(self, *attrs) try: t = self.getAttribute("Type") except KeyError: # default t = "lstring" if t in types.IntTypes: self.pytype = int elif t in types.FloatTypes: self.pytype = float elif t in types.StringTypes: self.pytype = str els... | 8c828a0b995e2a1b625b2d5826cc87032227921a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/8c828a0b995e2a1b625b2d5826cc87032227921a/param.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7039,
4672,
3536,
9190,
279,
394,
3014,
930,
18,
3536,
16917,
355,
91,
18,
786,
16186,
2738,
972,
12,
2890,
16,
380,
7039,
13,
775,
30,
268,
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,
1001,
2738,
972,
12,
2890,
16,
380,
7039,
4672,
3536,
9190,
279,
394,
3014,
930,
18,
3536,
16917,
355,
91,
18,
786,
16186,
2738,
972,
12,
2890,
16,
380,
7039,
13,
775,
30,
268,
273,
... |
d_som5_2 = dr_lib.create_Qvec_vs_E_dgs(d_som5, d_som5.attr_list["Initial_Energy"], config.Q_bins.toNessiList(), corner_geom=config.corner_geom, timer=tim) | d_som5_2 = dr_lib.create_E_vs_Q_dgs(d_som5, config.initial_energy.toValErrTuple(), config.Q_bins.toNessiList(), corner_geom=config.corner_geom, split=config.split, timer=tim) if not config.split: hlr_utils.write_file(config.output, "text/Dave2d", d_som5_2, output_ext="sqe", data_ext=config.ext_replacement, path_repla... | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.Di... | b280fe66097ba6848bde1cb20f35b8c5d8c6cba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/b280fe66097ba6848bde1cb20f35b8c5d8c6cba7/dgs_reduction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
'email': user['mail'], | 'email': user.get('mail', ''), | def handle_unicode(s): if not isinstance(s, unicode): try: return s.decode('utf-8') except: return s.decode('latin-1') else: return s | e2a073ce14367f971c15f59ea278f0c354e3ee88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/e2a073ce14367f971c15f59ea278f0c354e3ee88/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9124,
12,
87,
4672,
309,
486,
1549,
12,
87,
16,
5252,
4672,
775,
30,
327,
272,
18,
3922,
2668,
3158,
17,
28,
6134,
1335,
30,
327,
272,
18,
3922,
2668,
26578,
17,
21,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9124,
12,
87,
4672,
309,
486,
1549,
12,
87,
16,
5252,
4672,
775,
30,
327,
272,
18,
3922,
2668,
3158,
17,
28,
6134,
1335,
30,
327,
272,
18,
3922,
2668,
26578,
17,
21,
6134,
... |
self.body.append('\\includegraphics[]{%s}' % fname) | self.body.append('\\includegraphics{%s}' % fname) | def render_dot_latex(self, node, code, options, prefix='graphviz'): try: fname, outfn = render_dot(self, code, options, 'pdf', prefix) except GraphvizError, exc: self.builder.warn('dot code %r: ' % code + str(exc)) raise nodes.SkipNode if fname is not None: self.body.append('\\includegraphics[]{%s}' % fname) raise nod... | b809740f6613cf2810e8f935749b2beb456f1b95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/b809740f6613cf2810e8f935749b2beb456f1b95/graphviz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
9811,
67,
26264,
12,
2890,
16,
756,
16,
981,
16,
702,
16,
1633,
2218,
4660,
23167,
11,
4672,
775,
30,
5299,
16,
596,
4293,
273,
1743,
67,
9811,
12,
2890,
16,
981,
16,
702,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
9811,
67,
26264,
12,
2890,
16,
756,
16,
981,
16,
702,
16,
1633,
2218,
4660,
23167,
11,
4672,
775,
30,
5299,
16,
596,
4293,
273,
1743,
67,
9811,
12,
2890,
16,
981,
16,
702,
... |
print >> sys.stderr, 'Known formats: %s' % ', '.join(readseq.fdict.keys()) | print >> sys.stderr, '\tKnown formats: %s' % ', '.join(readseq.fdict.keys()) print >> sys.stderr, '\n\te.g. %s eftu.fas fasta eftu.emb embl' % p print >> sys.stderr, '\tor zcat test.aln.gz | %s - clustal - fasta' % p | def Convert(self, informat, outformat, instream = sys.stdin, outstream=sys.stdout): | 3265cf4302e1c729933eb7df4956722d52cc5539 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/3265cf4302e1c729933eb7df4956722d52cc5539/generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4037,
12,
2890,
16,
316,
2139,
16,
596,
2139,
16,
1804,
793,
273,
2589,
18,
21772,
16,
596,
3256,
33,
9499,
18,
10283,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
4037,
12,
2890,
16,
316,
2139,
16,
596,
2139,
16,
1804,
793,
273,
2589,
18,
21772,
16,
596,
3256,
33,
9499,
18,
10283,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/* HACK WARNING: Without this start_update_check, the worksheet often won't update the first time it's loaded or restarted. -- William Stein */ /* start_update_check(); */ | def javascript(): s = r""" | a3ff91a3ace186cba86f20991b852556b86c646a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a3ff91a3ace186cba86f20991b852556b86c646a/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
225,
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,
-... | |
base = self._styles.page.fbase | base = self._stylizer.page.fbase | def normalize_fontsize(value, base=None): result = None factor = None if value == 'inherit': # We should only see this if the root element value = self._stylizer.page.fbase if value in FONT_SIZE_NAMES: result = self._stylizer.page.fnames[value] elif value == 'smaller': factor = 1.0/1.2 for _, _, size in self._stylizer.... | 124eb4cba94f375db965949e071dc4afa6dc4fca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/124eb4cba94f375db965949e071dc4afa6dc4fca/stylizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
23055,
12,
1132,
16,
1026,
33,
7036,
4672,
563,
273,
599,
5578,
273,
599,
309,
460,
422,
296,
6018,
4278,
468,
1660,
1410,
1338,
2621,
333,
309,
326,
1365,
930,
460,
273,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
23055,
12,
1132,
16,
1026,
33,
7036,
4672,
563,
273,
599,
5578,
273,
599,
309,
460,
422,
296,
6018,
4278,
468,
1660,
1410,
1338,
2621,
333,
309,
326,
1365,
930,
460,
273,
365... |
class LogHandler(logging.Handler): def __init__(self): logging.Handler.__init__(self) self.emitted = [] | def notify(self, event): logging.debug('Event: %r' % event) | def setUp(self): | 01c2f93dc7f26d5a63e91f8afd2537a3362473d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/01c2f93dc7f26d5a63e91f8afd2537a3362473d2/debug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.highlightTimer = self.startTimer(100) | from debug_prefs import debug_pref, Choice interval = int( debug_pref("glpane timer interval", Choice([100, 0]), non_debug = True, prefs_key = True) ) self.highlightTimer = self.startTimer(interval) | def enterEvent(self, event): # Mark 060806. """Event handler for when the cursor enters the GLPane. <event> is the mouse event after entering the GLpane. """ self.highlightTimer = self.startTimer(100) # 100-millisecond timer return | 88bc62d1810c02d2b43324d90036bd799fdd80cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/88bc62d1810c02d2b43324d90036bd799fdd80cc/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
1133,
12,
2890,
16,
871,
4672,
468,
6622,
374,
4848,
3672,
26,
18,
3536,
1133,
1838,
364,
1347,
326,
3347,
3281,
414,
326,
10252,
8485,
18,
411,
2575,
34,
353,
326,
7644,
871,
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,
6103,
1133,
12,
2890,
16,
871,
4672,
468,
6622,
374,
4848,
3672,
26,
18,
3536,
1133,
1838,
364,
1347,
326,
3347,
3281,
414,
326,
10252,
8485,
18,
411,
2575,
34,
353,
326,
7644,
871,
18... |
pass | return | def __init__(self,scene): """ Initialisation of ContourPlot class | 705588e48e70a8dec0e8286968b0077d85e8602e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/705588e48e70a8dec0e8286968b0077d85e8602e/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23694,
4672,
3536,
10188,
10742,
434,
1816,
477,
11532,
667,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23694,
4672,
3536,
10188,
10742,
434,
1816,
477,
11532,
667,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"MANDATORYOBJECTS", "OPTIONALOBJECTS", "MANUFACTUREROBJECTS"] | "MANDATORYOBJECTS", "OPTIONALOBJECTS", "MANUFACTUREROBJECTS", "STANDARDDATATYPES"] | def GetDefaultValue(index, subIndex = None): infos = Node.GetEntryInfos(index) if infos["struct"] & node.OD_MultipleSubindexes: # First case entry is a record if infos["struct"] & node.OD_IdenticalSubindexes: subentry_infos = Node.GetSubentryInfos(index, 1) # Second case entry is an array else: subentry_infos = Node.Ge... | a25debfda44734694f093b9f33c588bca362e45f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/116/a25debfda44734694f093b9f33c588bca362e45f/eds_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
15646,
12,
1615,
16,
720,
1016,
273,
599,
4672,
10626,
273,
2029,
18,
967,
1622,
7655,
12,
1615,
13,
309,
10626,
9614,
1697,
11929,
473,
756,
18,
1212,
67,
8438,
1676,
11265,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
15646,
12,
1615,
16,
720,
1016,
273,
599,
4672,
10626,
273,
2029,
18,
967,
1622,
7655,
12,
1615,
13,
309,
10626,
9614,
1697,
11929,
473,
756,
18,
1212,
67,
8438,
1676,
11265,
30,
... |
tag = self.abs_tag_path (tag) parts = tag.split ('/') | tag = self.abs_tag_path(tag) parts = tag.split('/') | def tag_path_split (self, tag): """A bit like os.path.split, this splits any old kind of a FluidDB tag path into a user, a subnamespace (if there is one) and a tag. But unlike os.path.split, if no namespace is given, the one from the user credentials is returned. | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
803,
67,
4939,
261,
2890,
16,
1047,
4672,
3536,
37,
2831,
3007,
1140,
18,
803,
18,
4939,
16,
333,
11019,
1281,
1592,
3846,
434,
279,
3857,
1911,
2290,
1047,
589,
1368,
279,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
803,
67,
4939,
261,
2890,
16,
1047,
4672,
3536,
37,
2831,
3007,
1140,
18,
803,
18,
4939,
16,
333,
11019,
1281,
1592,
3846,
434,
279,
3857,
1911,
2290,
1047,
589,
1368,
279,
7... |
log("Creating index...", True) | print "Creating index...", | def move_phrases(oconn, ocur, lang): global project_names cnt = 0 lid = 0 phrase = "" icur.execute(""" | 47cb06b34badab0d0ebad9f606655a47ddf92c20 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3042/47cb06b34badab0d0ebad9f606655a47ddf92c20/import_step2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
844,
17415,
12,
16550,
82,
16,
320,
1397,
16,
3303,
4672,
2552,
1984,
67,
1973,
7599,
273,
374,
328,
350,
273,
374,
13045,
273,
1408,
225,
277,
1397,
18,
8837,
2932,
3660,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
844,
17415,
12,
16550,
82,
16,
320,
1397,
16,
3303,
4672,
2552,
1984,
67,
1973,
7599,
273,
374,
328,
350,
273,
374,
13045,
273,
1408,
225,
277,
1397,
18,
8837,
2932,
3660,
2,... |
arraysize = None | elemwidth = None | def _to_hdu(self): ''' Return the current table as a pyfits HDU object ''' | cbba50875b469297c6dd336d8781f95cb3fdb5dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13233/cbba50875b469297c6dd336d8781f95cb3fdb5dd/fitstable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
67,
76,
2544,
12,
2890,
4672,
9163,
2000,
326,
783,
1014,
487,
279,
2395,
18352,
670,
16214,
733,
9163,
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,
389,
869,
67,
76,
2544,
12,
2890,
4672,
9163,
2000,
326,
783,
1014,
487,
279,
2395,
18352,
670,
16214,
733,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
P ( contents = [ | P ( contents = [ | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '/images/pointer.png' ), A( _N['home'], href=makeURL( '', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '/images/englishlogo.png' ), A( 'English', href='%(BASE)s' )]), P ( contents = [ Img( src = '/images/g... | 846194f3836b7e3473a516c54c1f17757297aebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/846194f3836b7e3473a516c54c1f17757297aebf/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
if dst_mtime == self.mtime and dst_size != 0: | if int(dst_mtime) == int(self.mtime) and dst_size != 0: | def do_hashes(self, verbose=False, dry_run=False, copy_permissions=True): try: dst_statinfo = os.stat(self.dst) dst_mtime = dst_statinfo.st_mtime dst_size = dst_statinfo.st_size except OSError: dst_mtime = dst_size = 0 # file missing | 1d42a3a7b6453e905dcd2b19f3119604527c5805 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3890/1d42a3a7b6453e905dcd2b19f3119604527c5805/metalink-hasher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
17612,
12,
2890,
16,
3988,
33,
8381,
16,
10299,
67,
2681,
33,
8381,
16,
1610,
67,
9612,
33,
5510,
4672,
775,
30,
3046,
67,
5642,
1376,
273,
1140,
18,
5642,
12,
2890,
18,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
17612,
12,
2890,
16,
3988,
33,
8381,
16,
10299,
67,
2681,
33,
8381,
16,
1610,
67,
9612,
33,
5510,
4672,
775,
30,
3046,
67,
5642,
1376,
273,
1140,
18,
5642,
12,
2890,
18,
110... |
s.__fileSystem = PedFileSystem s._type = s.__fileSystem.type.name s._geometry = s.__fileSystem.geom | self.__fileSystem = PedFileSystem self._type = self.__fileSystem.type.name self._geometry = self.__fileSystem.geom | def __init__(self, type=None, geometry=None, checked=False, PedFileSystem=None): if checked: c = 1 else: c = 0 | c9dad9756d600de8d9c8e744af7e8484bcb46853 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/c9dad9756d600de8d9c8e744af7e8484bcb46853/filesystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
33,
7036,
16,
5316,
33,
7036,
16,
5950,
33,
8381,
16,
453,
329,
11785,
33,
7036,
4672,
309,
5950,
30,
276,
273,
404,
469,
30,
276,
273,
374,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
33,
7036,
16,
5316,
33,
7036,
16,
5950,
33,
8381,
16,
453,
329,
11785,
33,
7036,
4672,
309,
5950,
30,
276,
273,
404,
469,
30,
276,
273,
374,
2,
... |
s = p | def buildDistributionImage(mode, options): if options.platformID == 'iosx': p = 'osx' s = p if options.platformSubID == 'leopard': s = options.platformSubID else: if options.platformID == 'linux': p = 'linux' s = p if options.platformSubID == 'gutsy': s = options.platformSubID else: p = 'win' s = p if mode == 'relea... | 10e7702ecbf2ea8ceef418e4e5b54f328c0374e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/10e7702ecbf2ea8ceef418e4e5b54f328c0374e7/distribute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
9003,
2040,
12,
3188,
16,
702,
4672,
309,
702,
18,
9898,
734,
422,
296,
7441,
92,
4278,
293,
273,
296,
538,
92,
11,
225,
309,
702,
18,
9898,
1676,
734,
422,
296,
298,
556,
1060... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
9003,
2040,
12,
3188,
16,
702,
4672,
309,
702,
18,
9898,
734,
422,
296,
7441,
92,
4278,
293,
273,
296,
538,
92,
11,
225,
309,
702,
18,
9898,
1676,
734,
422,
296,
298,
556,
1060... | |
for taskID in sortLit(taskDict.keys()): | for taskID in sortList(taskDict.keys()): | def submitTasks(self,taskDict): submitted = 0 failed = 0 startTime = time.time() for taskID in sortLit(taskDict.keys()): taskDict[taskID] res = self.submitToExternal(taskDict[taskID]['TaskObject']) if res['OK']: taskDict[taskID]['ExternalID'] = res['Value'] taskDict[taskID]['Success'] = True submitted +=1 else: self.lo... | 7e361d624cd9374c5dec904aad18c8eb176604b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7e361d624cd9374c5dec904aad18c8eb176604b6/TaskManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
6685,
12,
2890,
16,
4146,
5014,
4672,
9638,
273,
374,
2535,
273,
374,
8657,
273,
813,
18,
957,
1435,
364,
29772,
316,
1524,
682,
12,
4146,
5014,
18,
2452,
1435,
4672,
1562,
5014,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
6685,
12,
2890,
16,
4146,
5014,
4672,
9638,
273,
374,
2535,
273,
374,
8657,
273,
813,
18,
957,
1435,
364,
29772,
316,
1524,
682,
12,
4146,
5014,
18,
2452,
1435,
4672,
1562,
5014,
... |
mb.member_functions( "fillProfile").exclude() mb.member_functions( "fillFrequencies").exclude() mb.member_functions( "getMatrix" ).exclude() | exclude_functions = ("fillProfile", "fillFrequencies", "decode", "encode", "col_begin", "col_end", "row_begin", "row_end" ) for f in exclude_functions: try: mb.member_functions(f).exclude() except RuntimeError: print "could not find function %s to exclude" % f | def export_interface_classes( mb ): """export virtual classes. These classes can not instantiated directly from python. """ classes_to_export = set( ['Alignandum', 'MultipleAlignment', 'Alignator', 'Iterator', # 'Dottor', 'Translator', 'SubstitutionMatrix', 'Fragmentor', 'Alignment', 'Alignmen... | 17694f712e3a6083ccc3dcd42f7ac85d1ed3158c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8012/17694f712e3a6083ccc3dcd42f7ac85d1ed3158c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
5831,
67,
4701,
12,
4903,
262,
30,
3536,
6530,
5024,
3318,
18,
225,
8646,
3318,
848,
486,
17651,
5122,
628,
5790,
18,
3536,
3318,
67,
869,
67,
6530,
273,
444,
12,
10228,
1004... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
67,
4701,
12,
4903,
262,
30,
3536,
6530,
5024,
3318,
18,
225,
8646,
3318,
848,
486,
17651,
5122,
628,
5790,
18,
3536,
3318,
67,
869,
67,
6530,
273,
444,
12,
10228,
1004... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.