rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
ddict[(low, high)] = (ctype, proto_str, level) | ddict[(low, high, proto_str)] = (ctype, level) | def get_all(self, locallist = 0): ddict = {} if locallist: (rc, self.plist) = semanage_port_list_local(self.sh) else: (rc, self.plist) = semanage_port_list(self.sh) if rc < 0: raise ValueError(_("Could not list ports")) | 1f60e9b7a3efb70a3128a467188702d6915bd9f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/1f60e9b7a3efb70a3128a467188702d6915bd9f6/seobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
12,
2890,
16,
1515,
454,
376,
273,
374,
4672,
302,
1576,
273,
2618,
309,
1515,
454,
376,
30,
261,
1310,
16,
365,
18,
17842,
13,
273,
6111,
304,
410,
67,
655,
67,
1098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
12,
2890,
16,
1515,
454,
376,
273,
374,
4672,
302,
1576,
273,
2618,
309,
1515,
454,
376,
30,
261,
1310,
16,
365,
18,
17842,
13,
273,
6111,
304,
410,
67,
655,
67,
1098,
... |
replace = rec.hasAttribute('replace') and rec.getAttribute('replace') | replace = rec.hasAttribute('replace') and rec.getAttribute('replace') or True | def ref(str_id): return self.id_get(cr, None, str_id) | 08b662555dc1996415b4f7726ab1cdeef0ad04c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/08b662555dc1996415b4f7726ab1cdeef0ad04c9/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
12,
701,
67,
350,
4672,
327,
365,
18,
350,
67,
588,
12,
3353,
16,
599,
16,
609,
67,
350,
13,
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,
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,
1278,
12,
701,
67,
350,
4672,
327,
365,
18,
350,
67,
588,
12,
3353,
16,
599,
16,
609,
67,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
import appuifw | def __init__(self, bt_address = None): print "in __init__" try: if(bt_address == None): self.address,self.services=socket.bt_discover() else: self.address,self.services=socket.bt_discover(bt_address) print "Discovery successful" print self.address print self.services except: import traceback import appuifw traceback.pr... | 435bc094b33608ee5d7f6b66721af0d38228eb4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2202/435bc094b33608ee5d7f6b66721af0d38228eb4f/istuff_mobile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10921,
67,
2867,
273,
599,
4672,
1172,
315,
267,
1001,
2738,
14437,
775,
30,
309,
12,
23602,
67,
2867,
422,
599,
4672,
365,
18,
2867,
16,
2890,
18,
8387,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10921,
67,
2867,
273,
599,
4672,
1172,
315,
267,
1001,
2738,
14437,
775,
30,
309,
12,
23602,
67,
2867,
422,
599,
4672,
365,
18,
2867,
16,
2890,
18,
8387,... | |
self.feeds.append(CantoFeed(self.shelf, section, URL, rate, keep)) | self.feeds.append(CantoFeed(self.shelf, name, URL, rate, keep)) | def parse_feed(self, section): log.debug("Found feed: %s" % section) try: URL = self.get("", section, "URL", "", 1) except: log.info("ERROR: Missing URL for feed %s" % section) return | ebd32b858c287344c0216a2e6aba5eceabfbedcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12359/ebd32b858c287344c0216a2e6aba5eceabfbedcb/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7848,
12,
2890,
16,
2442,
4672,
613,
18,
4148,
2932,
2043,
4746,
30,
738,
87,
6,
738,
2442,
13,
775,
30,
1976,
273,
365,
18,
588,
2932,
3113,
2442,
16,
315,
1785,
3113,
234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7848,
12,
2890,
16,
2442,
4672,
613,
18,
4148,
2932,
2043,
4746,
30,
738,
87,
6,
738,
2442,
13,
775,
30,
1976,
273,
365,
18,
588,
2932,
3113,
2442,
16,
315,
1785,
3113,
234... |
'actions': req.perm.permissions(), | 'actions': perm.get_actions(), | def render_admin_panel(self, req, cat, page, path_info): perm = PermissionSystem(self.env) all_permissions = perm.get_all_permissions() | 5707ab6dcef01ac9ff366d0d7fe97d96af09ebfb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/5707ab6dcef01ac9ff366d0d7fe97d96af09ebfb/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
4641,
273,
8509,
3163,
12,
2890,
18,
3074,
13,
777,
67,
9612,
273,
4641,
18,
588,
67,
454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
4641,
273,
8509,
3163,
12,
2890,
18,
3074,
13,
777,
67,
9612,
273,
4641,
18,
588,
67,
454,... |
dev.children = [] cfg.Update(instance) | def _ExecD8DiskOnly(self, feedback_fn): """Replace a disk on the primary or secondary for dbrd8. | cff90b79a6d0d95a4694e8c3f4b9fe35f6e54506 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7542/cff90b79a6d0d95a4694e8c3f4b9fe35f6e54506/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
6247,
3386,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
279,
4234,
603,
326,
3354,
578,
9946,
364,
1319,
13623,
28,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1905,
40,
28,
6247,
3386,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
279,
4234,
603,
326,
3354,
578,
9946,
364,
1319,
13623,
28,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if reponame in filters or repositories == ['']: | if default_is_alone or (reponame or '(default)') in filters: | def generate_changesets(reponame, repos): repos_resource = Resource('repository', reponame) for _, changesets in groupby(repos.get_changesets(start, stop), key=collapse_changesets): viewable_changesets = [] for cset in changesets: cset_resource = Resource('changeset', cset.rev, parent=repos_resource) if 'CHANGESET_VIEW... | 7c5d87c92d21dd32544eb111409a21d9ca741686 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/7c5d87c92d21dd32544eb111409a21d9ca741686/changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
6329,
2413,
12,
266,
500,
339,
16,
13686,
4672,
13686,
67,
3146,
273,
2591,
2668,
9071,
2187,
283,
500,
339,
13,
364,
389,
16,
3478,
2413,
316,
13126,
12,
15564,
18,
588,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
6329,
2413,
12,
266,
500,
339,
16,
13686,
4672,
13686,
67,
3146,
273,
2591,
2668,
9071,
2187,
283,
500,
339,
13,
364,
389,
16,
3478,
2413,
316,
13126,
12,
15564,
18,
588,
67,... |
self.CheckGroups( [ name ], batch = True) | self.CheckGroups( [ name ], batch=True) | def SetSharedDirPermissiveness(self, name = None, permissive = True): """ Set permissive or not permissive the shared directory of the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name." | f37209229adf6c038cbf9bb8cdfd028d8ffe04c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/f37209229adf6c038cbf9bb8cdfd028d8ffe04c2/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
7887,
1621,
52,
1840,
31051,
12,
2890,
16,
508,
273,
599,
16,
293,
1840,
688,
273,
1053,
4672,
3536,
1000,
293,
1840,
688,
578,
486,
293,
1840,
688,
326,
5116,
1867,
434,
326,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
7887,
1621,
52,
1840,
31051,
12,
2890,
16,
508,
273,
599,
16,
293,
1840,
688,
273,
1053,
4672,
3536,
1000,
293,
1840,
688,
578,
486,
293,
1840,
688,
326,
5116,
1867,
434,
326,
10... |
RETURN_PDS = markup.parse('Returns', markup='epytext') | RETURN_PDS = markup.parse('Returns:', markup='epytext') | def report_errors(api_doc, docindex, parse_errors, field_warnings): """A helper function for L{parse_docstring()} that reports any markup warnings and field warnings that we encountered while processing C{api_doc}'s docstring.""" if not parse_errors and not field_warnings: return # Get the name of the item containing ... | 7c04ea4a74f09d9288b5a8337b41b01397016295 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/7c04ea4a74f09d9288b5a8337b41b01397016295/docstringparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2425,
67,
2434,
16,
997,
1615,
16,
1109,
67,
4324,
16,
652,
67,
12103,
4672,
3536,
37,
4222,
445,
364,
511,
95,
2670,
67,
24675,
17767,
716,
10557,
1281,
9813,
5599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2425,
67,
2434,
16,
997,
1615,
16,
1109,
67,
4324,
16,
652,
67,
12103,
4672,
3536,
37,
4222,
445,
364,
511,
95,
2670,
67,
24675,
17767,
716,
10557,
1281,
9813,
5599... |
def outgoing(oldoutgoing, ui, repo, source="default", **opts): | def outgoing(oldoutgoing, ui, repo, dest=None, **opts): | def outgoing(oldoutgoing, ui, repo, source="default", **opts): if opts.get('bookmarks'): source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch')) other = hg.repository(hg.remoteui(repo, opts), source) ui.status(_('comparing with %s\n') % url.hidepassword(source)) diffbookmarks(ui, other, repo) else: ol... | 46cbf5262d95e814612d28a11261303ad3d4d284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/46cbf5262d95e814612d28a11261303ad3d4d284/bookmarks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12902,
12,
1673,
31891,
16,
5915,
16,
3538,
16,
1570,
33,
7036,
16,
2826,
4952,
4672,
309,
1500,
18,
588,
2668,
3618,
17439,
11,
4672,
1084,
16,
11483,
273,
22576,
18,
2670,
718,
12,
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,
12902,
12,
1673,
31891,
16,
5915,
16,
3538,
16,
1570,
33,
7036,
16,
2826,
4952,
4672,
309,
1500,
18,
588,
2668,
3618,
17439,
11,
4672,
1084,
16,
11483,
273,
22576,
18,
2670,
718,
12,
4... |
result_data = property(fget=get_result_data, fset=set_result_data, doc="The result data object.") | result_data = property(fget=get_result_data, fset=set_result_data) | def set_result_data(self): self.result_data = result_data | 4a027685521f157b2fda025193e1c041f57af85e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/4a027685521f157b2fda025193e1c041f57af85e/algorithm_drivers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2088,
67,
892,
12,
2890,
4672,
365,
18,
2088,
67,
892,
273,
563,
67,
892,
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,
... | [
1,
1,
1,
1,
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,
67,
2088,
67,
892,
12,
2890,
4672,
365,
18,
2088,
67,
892,
273,
563,
67,
892,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if why: try: source.connectionLost(failure.Failure(why)) except: log.deferr() self.removeReader(source) self.removeWriter(source) break elif source.disconnected: break self.simulate() return 1 | if why: self.removeReader(source) self.removeWriter(source) try: source.connectionLost(failure.Failure(why)) except: log.deferr() log.logOwner.disown(source) self.simulate() return 1 | def callback(self, source, condition): methods = [] cbNames = [] | 08310f9467cdc9f0e5cbeaf8080652c4dd1ff45c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/08310f9467cdc9f0e5cbeaf8080652c4dd1ff45c/gtk2reactor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
2890,
16,
1084,
16,
2269,
4672,
2590,
273,
5378,
2875,
1557,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1348,
12,
2890,
16,
1084,
16,
2269,
4672,
2590,
273,
5378,
2875,
1557,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'StatusBar', 'Icon', 'Title', 'Anchors'] | 'StatusBar', 'StatusBarPane', 'Icon', 'Title', 'Anchors'] | def hideDesignTime(self): return BaseFrameDTC.hideDesignTime(self) + ['ToolBar', 'MenuBar', 'StatusBar', 'Icon', 'Title', 'Anchors'] | 46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6853,
15478,
950,
12,
2890,
4672,
327,
3360,
3219,
9081,
39,
18,
11248,
15478,
950,
12,
2890,
13,
397,
10228,
6364,
5190,
2187,
296,
4599,
5190,
2187,
296,
1482,
5190,
2187,
296,
5554,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6853,
15478,
950,
12,
2890,
4672,
327,
3360,
3219,
9081,
39,
18,
11248,
15478,
950,
12,
2890,
13,
397,
10228,
6364,
5190,
2187,
296,
4599,
5190,
2187,
296,
1482,
5190,
2187,
296,
5554,
2... |
ret = codecs.open(filename, "wt", encoding) | ret = codecs.open(filename, "w", encoding) | def open_writer(self, filename, encoding="mbcs"): # A place to put code to open a file with the appropriate encoding. # Does *not* set self.file - just opens and returns a file. # Actually *deletes* the filename asked for and returns a handle to a # temp file - finish_writer then puts everything back in place. This # ... | 9547ea608b9ec0cf4ac1acc3dc229c0a6ded667d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/992/9547ea608b9ec0cf4ac1acc3dc229c0a6ded667d/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
6299,
12,
2890,
16,
1544,
16,
2688,
1546,
1627,
2143,
6,
4672,
468,
432,
3166,
358,
1378,
981,
358,
1696,
279,
585,
598,
326,
5505,
2688,
18,
468,
9637,
380,
902,
14,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
6299,
12,
2890,
16,
1544,
16,
2688,
1546,
1627,
2143,
6,
4672,
468,
432,
3166,
358,
1378,
981,
358,
1696,
279,
585,
598,
326,
5505,
2688,
18,
468,
9637,
380,
902,
14,
444,
... |
self.target().fastSeek(self.direction) | self.target().suspendAutoHiding() self.fast_seek_func() | def fastSeek_(self, timer): self.target().fastSeek(self.direction) self.resetSeekTimer() | 175dc4d66f4bed8491c1f5b985a2d5dcef6a72bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/175dc4d66f4bed8491c1f5b985a2d5dcef6a72bc/overlay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4797,
16134,
67,
12,
2890,
16,
5441,
4672,
365,
18,
3299,
7675,
87,
18815,
4965,
44,
10415,
1435,
365,
18,
8076,
67,
16508,
67,
644,
1435,
365,
18,
6208,
16134,
6777,
1435,
225,
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,
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,
4797,
16134,
67,
12,
2890,
16,
5441,
4672,
365,
18,
3299,
7675,
87,
18815,
4965,
44,
10415,
1435,
365,
18,
8076,
67,
16508,
67,
644,
1435,
365,
18,
6208,
16134,
6777,
1435,
225,
2,
-10... |
- ``rc`` - number of rows * number of columns in the state array - ``e`` - exponent of base field | - ``rc`` - number of rows * number of columns in the state array (default: ``None``) - ``e`` - exponent of base field (default: ``None``) | def varstrs(self, name, nr, rc = None, e = None): """ Return a list of strings representing variables in ``self``. | 3cd6b553ebc89e43967234049b07b4477c5b3b3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3cd6b553ebc89e43967234049b07b4477c5b3b3d/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
24432,
12,
2890,
16,
508,
16,
9884,
16,
4519,
273,
599,
16,
425,
273,
599,
4672,
3536,
2000,
279,
666,
434,
2064,
5123,
3152,
316,
12176,
2890,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
24432,
12,
2890,
16,
508,
16,
9884,
16,
4519,
273,
599,
16,
425,
273,
599,
4672,
3536,
2000,
279,
666,
434,
2064,
5123,
3152,
316,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100... |
f.write(t.strftime("%Y-%m-%d %H:%M:%S") + "," + "NATCHECK_REQUEST_SENT" + "," + str(show_permid(permid)) + "," + str(self.peer) + "\n") | f.write(t.strftime("%Y-%m-%d %H:%M:%S") + "," + "NATCHECK_REQUEST_SENT" + "," + str(show_permid(permid)) + "\n") | def doNatCheckCallback(self, exc, permid): if exc is not None: return False if DEBUG: print >> sys.stderr, "******* NATCHECK_REQUEST was sent to", show_permid_short(permid), exc # Register peerinfo on file f = open("registerlog.txt", "a") t = datetime.datetime.fromtimestamp(time.time()) f.write(t.strftime("%Y-%m-%d %H:... | bd2c7f39df1ebedcb5f2a5faa637aef7772883c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/bd2c7f39df1ebedcb5f2a5faa637aef7772883c6/NatCheckMsgHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
23779,
1564,
2428,
12,
2890,
16,
3533,
16,
4641,
350,
4672,
309,
3533,
353,
486,
599,
30,
327,
1083,
309,
6369,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
27243,
31395,
10687,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
23779,
1564,
2428,
12,
2890,
16,
3533,
16,
4641,
350,
4672,
309,
3533,
353,
486,
599,
30,
327,
1083,
309,
6369,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
27243,
31395,
10687,
67,
... |
"desc_en": xmlify("Automatically generated on %s" % date), "desc_de": xmlify("Automatisch generiert am %s" % date), | "desc_en": wc.XmlUtils.xmlquote("Automatically generated on %s" % date), "desc_de": wc.XmlUtils.xmlquote("Automatisch generiert am %s" % date), | def write_folder (cat, ftype, data, f): print "write", cat, "folder" d = { "charset": ConfigCharset, "title_en": xmlify("%s %s" % (ftype.capitalize(), cat)), "title_de": xmlify("%s %s" % (transtypes[ftype]['de'].capitalize(), transcats[cat]['de'].capitalize())), "desc_en": xmlify("Automatically generated on %s" % date)... | ea210123cf99e19e452cf01342949f702e718584 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ea210123cf99e19e452cf01342949f702e718584/bl2wc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
5609,
261,
2574,
16,
21219,
16,
501,
16,
284,
4672,
1172,
315,
2626,
3113,
6573,
16,
315,
5609,
6,
302,
273,
288,
315,
9999,
6877,
1903,
9652,
16,
315,
2649,
67,
275,
6877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
5609,
261,
2574,
16,
21219,
16,
501,
16,
284,
4672,
1172,
315,
2626,
3113,
6573,
16,
315,
5609,
6,
302,
273,
288,
315,
9999,
6877,
1903,
9652,
16,
315,
2649,
67,
275,
6877,
... |
tempcache = None | __tempfiles = [] | def urlcleanup(): if _urlopener: _urlopener.cleanup() | 67b01d98cf14689ce7782ebd05e24aa7e8d4825d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/67b01d98cf14689ce7782ebd05e24aa7e8d4825d/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
16732,
13332,
309,
389,
295,
16884,
708,
30,
389,
295,
16884,
708,
18,
16732,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
16732,
13332,
309,
389,
295,
16884,
708,
30,
389,
295,
16884,
708,
18,
16732,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assertEquals('::', f('\x00' * 16)) self.assertEquals('::1', f('\x00' * 15 + '\x01')) | self.assertEquals('::', f(b'\x00' * 16)) self.assertEquals('::1', f(b'\x00' * 15 + b'\x01')) | def testStringToIPv6(self): if not hasattr(socket, 'inet_ntop'): return # No inet_ntop() on this platform try: from socket import inet_ntop, AF_INET6, has_ipv6 if not has_ipv6: return except ImportError: return f = lambda a: inet_ntop(AF_INET6, a) | 061a09d07749ecdb9ab8f78fe955cf33c9c8cf30 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/061a09d07749ecdb9ab8f78fe955cf33c9c8cf30/test_socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
23282,
12775,
26,
12,
2890,
4672,
309,
486,
3859,
12,
7814,
16,
296,
23864,
67,
496,
556,
11,
4672,
327,
468,
2631,
17661,
67,
496,
556,
1435,
603,
333,
4072,
775,
30,
628,
2987,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23282,
12775,
26,
12,
2890,
4672,
309,
486,
3859,
12,
7814,
16,
296,
23864,
67,
496,
556,
11,
4672,
327,
468,
2631,
17661,
67,
496,
556,
1435,
603,
333,
4072,
775,
30,
628,
2987,... |
if isinstance(x, (int, long, sage.rings.integer.Integer, | """ TESTS: sage: polygen(AA) / int(3) 1/3*x sage: AA(int(7)) / AA(long(2)) 7/2 """ if isinstance(x, (sage.rings.integer.Integer, | def __init__(self, x): if isinstance(x, (int, long, sage.rings.integer.Integer, sage.rings.rational.Rational)): self._value = x else: raise TypeError, "Illegal initializer for algebraic number rational" | b9cfedeaaa58de5405ca97e4b1900f5ea0403043 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b9cfedeaaa58de5405ca97e4b1900f5ea0403043/algebraic_real.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
619,
4672,
3536,
22130,
55,
30,
272,
410,
30,
2952,
4338,
275,
12,
5284,
13,
342,
509,
12,
23,
13,
404,
19,
23,
14,
92,
272,
410,
30,
27343,
12,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
619,
4672,
3536,
22130,
55,
30,
272,
410,
30,
2952,
4338,
275,
12,
5284,
13,
342,
509,
12,
23,
13,
404,
19,
23,
14,
92,
272,
410,
30,
27343,
12,
474,... |
if speakContentFirst and not speakWithinForLine and role!=controlTypes.ROLE_EDITABLETEXT and controlTypes.STATE_EDITABLE not in states: | if speakContentFirst and speakExitForOther and not speakWithinForLine and role!=controlTypes.ROLE_EDITABLETEXT and controlTypes.STATE_EDITABLE not in states: | def getControlFieldSpeech(attrs,ancestorAttrs,fieldType,formatConfig=None,extraDetail=False,reason=None): if not formatConfig: formatConfig=config.conf["documentFormatting"] childCount=int(attrs['_childcount']) indexInParent=int(attrs['_indexInParent']) parentChildCount=int(attrs['_parentChildCount']) if reason==REASO... | 2443e5738a505cbcb94222359d10fe9871c6f2b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/2443e5738a505cbcb94222359d10fe9871c6f2b2/speech.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27174,
974,
22334,
12,
7039,
16,
28798,
8262,
16,
1518,
559,
16,
2139,
809,
33,
7036,
16,
7763,
6109,
33,
8381,
16,
10579,
33,
7036,
4672,
309,
486,
740,
809,
30,
740,
809,
33,
1425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27174,
974,
22334,
12,
7039,
16,
28798,
8262,
16,
1518,
559,
16,
2139,
809,
33,
7036,
16,
7763,
6109,
33,
8381,
16,
10579,
33,
7036,
4672,
309,
486,
740,
809,
30,
740,
809,
33,
1425,
... |
(SELECT count(id) FROM mailgate_message WHERE model='crm.helpdesk' AND res_id=c.id AND history=True) AS email, | (SELECT count(id) FROM mailgate_message WHERE model='crm.claim' AND res_id=c.id AND history=True) AS email, (SELECT avg(probability) FROM crm_case_stage WHERE type='claim' AND id=c.stage_id) AS probability, | def init(self, cr): | d1aaeb22512d9ee730e706d950a0421c940f1169 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d1aaeb22512d9ee730e706d950a0421c940f1169/crm_claim_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
p0 = array([0,1,.1,.01,.001]) | p0 = array([1,.1,.01,.001]) | def peval(x, p): return p[0] + p[1]*x + p[2]*x**2 + p[3]*x**3 + p[4]*x**4 | 4ad6dc8d0b920bb640d4e5dad324a90e5165b493 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12245/4ad6dc8d0b920bb640d4e5dad324a90e5165b493/ledFlickFitGamma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2804,
1125,
12,
92,
16,
293,
4672,
327,
293,
63,
20,
65,
397,
293,
63,
21,
5772,
92,
397,
293,
63,
22,
5772,
92,
636,
22,
397,
293,
63,
23,
5772,
92,
636,
23,
397,
293,
63,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2804,
1125,
12,
92,
16,
293,
4672,
327,
293,
63,
20,
65,
397,
293,
63,
21,
5772,
92,
397,
293,
63,
22,
5772,
92,
636,
22,
397,
293,
63,
23,
5772,
92,
636,
23,
397,
293,
63,
24,
... |
for widget in self.glade.get_widget_prefix(""): setattr(self, "_" + widget.get_name(), widget) self._ProgressBar.unmap() self._OKButton.set_sensitive(False) | self.glade.get_widget('ProgressBar').unmap() self.glade.get_widget('OKButton').set_sensitive(False) | def __init__(self): self.glade = glade.XML(sibpath(__file__,"restore_utility.glade")) self.glade.signal_autoconnect(self) | 25189ba51bbf8447fc8dc6c6df68166bd923e18a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13085/25189ba51bbf8447fc8dc6c6df68166bd923e18a/restore_utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
7043,
2486,
273,
5118,
2486,
18,
4201,
12,
6044,
803,
12,
972,
768,
972,
10837,
13991,
67,
1367,
560,
18,
7043,
2486,
6,
3719,
365,
18,
7043,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
7043,
2486,
273,
5118,
2486,
18,
4201,
12,
6044,
803,
12,
972,
768,
972,
10837,
13991,
67,
1367,
560,
18,
7043,
2486,
6,
3719,
365,
18,
7043,
... |
original.get() | original.copy_from_system() | def _execute_events(self, events): original = Clipboard() original.get() | dd6b9ce3e4a4f0b9ea91cd661fb9bb66002512f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6624/dd6b9ce3e4a4f0b9ea91cd661fb9bb66002512f2/action_paste.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
67,
5989,
12,
2890,
16,
2641,
4672,
2282,
273,
385,
3169,
3752,
1435,
2282,
18,
588,
1435,
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,
389,
8837,
67,
5989,
12,
2890,
16,
2641,
4672,
2282,
273,
385,
3169,
3752,
1435,
2282,
18,
588,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Collection area of units: acre are barn hectare rood section square_chain square_meter township | Collection of units of area: acre are barn hectare rood section square_chain square_meter township | def __getattr__(self, name): """ Return the unit with the given name. | 860975ef5915b61f5edf6269dc06fda67c357f91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/860975ef5915b61f5edf6269dc06fda67c357f91/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
3536,
2000,
326,
2836,
598,
326,
864,
508,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
3536,
2000,
326,
2836,
598,
326,
864,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
recent_completion = [] | recent_completion[:] = [] | def onActive(window): recent_completion = [] | 5a481638fe08bf5923637bb7081166a55e65d360 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/5a481638fe08bf5923637bb7081166a55e65d360/keys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3896,
12,
5668,
4672,
8399,
67,
11469,
10531,
65,
273,
5378,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3896,
12,
5668,
4672,
8399,
67,
11469,
10531,
65,
273,
5378,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
EXAMPLES_PATH = '../../../build/JMI/examples' | jmhome = os.environ.get('JMODELICA_HOME') assert jmhome is not None, "You will need to define the JMODELICA_HOME environment variable." EXAMPLES_PATH = '%s/JMI/examples' % jmhome | def get_example_path(examplepath): """Get the relative path (to where this file resides) to the examples directory. @param examplepath: The example path relative the examples directory. """ # Path to example collection root directory EXAMPLES_PATH = '../../../build/JMI/examples' path = os.path.join(EXAMPLES_PATH, exam... | 51cce200bcae1cb17e93d25a05a967a88116f114 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/51cce200bcae1cb17e93d25a05a967a88116f114/jmitest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8236,
67,
803,
12,
8236,
803,
4672,
3536,
967,
326,
3632,
589,
261,
869,
1625,
333,
585,
400,
4369,
13,
358,
326,
10991,
1867,
18,
225,
632,
891,
3454,
803,
30,
1021,
3454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8236,
67,
803,
12,
8236,
803,
4672,
3536,
967,
326,
3632,
589,
261,
869,
1625,
333,
585,
400,
4369,
13,
358,
326,
10991,
1867,
18,
225,
632,
891,
3454,
803,
30,
1021,
3454,
... |
("http://www.foo.com:5000/abc;123?a=b | ("http://www.foo.com:5000/abc;123?a=b | def test_parse_url(self): for mem in ([ ("https://www.foo.com/abc;123?a=b#4", ("https", "www.foo.com", 443, "/abc;123?a=b")), | e30788a9dacabc7a8a0d8e1a962216cf42816d5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/e30788a9dacabc7a8a0d8e1a962216cf42816d5e/httpclienttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
718,
12,
2890,
4672,
364,
1663,
316,
23265,
7566,
4528,
2207,
5591,
18,
11351,
18,
832,
19,
18947,
31,
12936,
35,
69,
33,
70,
7,
24,
3113,
7566,
4528,
3113,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
718,
12,
2890,
4672,
364,
1663,
316,
23265,
7566,
4528,
2207,
5591,
18,
11351,
18,
832,
19,
18947,
31,
12936,
35,
69,
33,
70,
7,
24,
3113,
7566,
4528,
3113,
315,
... |
for w in self.nodes: for wx in w.exits: wx.alpha = LOGZERO if len(w.entries) == 0: wx.alpha = wx.ascr * aw for vx in w.entries: v = vx.src if lm: lscr = lm.prob(baseword(w.sym), baseword(v.sym))[0] * lw else: lscr = 0 wx.alpha = logadd(wx.alpha, vx.alpha + lscr + wx.ascr * aw) | for wx in self.traverse_edges_breadth(): wx.alpha = LOGZERO if len(wx.src.entries) == 0: wx.alpha = wx.ascr * aw for vx in wx.src.entries: if lm: lscr = lm.prob(baseword(wx.src.sym), baseword(vx.src.sym))[0] * lw else: lscr = 0 wx.alpha = logadd(wx.alpha, vx.alpha + lscr + wx.ascr * aw) | def forward(self, lm=None, lw=1.0, aw=1.0): """ Compute forward variable for all arcs in the lattice. | bc85ab40a9ce65398c35d24d154dd993bc81434d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6303/bc85ab40a9ce65398c35d24d154dd993bc81434d/lattice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
12,
2890,
16,
14966,
33,
7036,
16,
14589,
33,
21,
18,
20,
16,
1690,
33,
21,
18,
20,
4672,
3536,
8155,
5104,
2190,
364,
777,
21569,
316,
326,
16690,
18,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5104,
12,
2890,
16,
14966,
33,
7036,
16,
14589,
33,
21,
18,
20,
16,
1690,
33,
21,
18,
20,
4672,
3536,
8155,
5104,
2190,
364,
777,
21569,
316,
326,
16690,
18,
2,
-100,
-100,
-100,
-10... |
self.k0_dkc = npy.empty((self.Ndir, self.Nk, 3), int) | k0_dkc = npy.empty((self.Ndir, self.Nk, 3), int) | def __init__(self, nwannier, calc, nbands=None, occupationenergy=None, fixedstates=None, spin=0, verbose=True): | 2ac4b9fe09b4902e5b1bcc73a3b1bbce7b323ca5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/2ac4b9fe09b4902e5b1bcc73a3b1bbce7b323ca5/wannier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14376,
1072,
2453,
16,
7029,
16,
4264,
5708,
33,
7036,
16,
18928,
367,
15358,
33,
7036,
16,
5499,
7992,
33,
7036,
16,
12490,
33,
20,
16,
3988,
33,
5510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
14376,
1072,
2453,
16,
7029,
16,
4264,
5708,
33,
7036,
16,
18928,
367,
15358,
33,
7036,
16,
5499,
7992,
33,
7036,
16,
12490,
33,
20,
16,
3988,
33,
5510,
... |
self._debug(NIGHTMARE, "wait") | def feed (self, data): """feed some data to the parser""" if self.state=='parse': # look if we must replay something if self.waited: self.waited = 0 waitbuf, self.waitbuf = self.waitbuf, [] self.replay(waitbuf) if self.state!='parse': self.inbuf.write(data) return data = self.inbuf.getvalue() + data self.inbuf.close() ... | 5827a6b2fdf9c1202486a8f36e257a6eab010228 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5827a6b2fdf9c1202486a8f36e257a6eab010228/HtmlParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
261,
2890,
16,
501,
4672,
3536,
7848,
2690,
501,
358,
326,
2082,
8395,
309,
365,
18,
2019,
18920,
2670,
4278,
468,
2324,
309,
732,
1297,
16033,
5943,
309,
365,
18,
7048,
329,
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,
4746,
261,
2890,
16,
501,
4672,
3536,
7848,
2690,
501,
358,
326,
2082,
8395,
309,
365,
18,
2019,
18920,
2670,
4278,
468,
2324,
309,
732,
1297,
16033,
5943,
309,
365,
18,
7048,
329,
30,
... | |
"""Rescans selected Installers.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Refresh')) menu.AppendItem(menuItem) def Execute(self,event): """Handle selection.""" dir = self.data.dir progress = balt.Progress(_("Refreshing Packages..."),'\n'... | """Rescans selected Installers.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Refresh')) menu.AppendItem(menuItem) def Execute(self,event): """Handle selection.""" dir = self.data.dir progress = balt.Progress(_("Refreshing Packages..."),'\n'... | def Execute(self,event): """Handle selection.""" message = _("Attempt to open this as a mod at Fallout3Nexus? This assumes that the trailing digits in the package's name are actually the id number of the mod at Fallout3Nexus. If this assumption is wrong, you'll just get a random mod page (or error notice) at Fallout3Ne... | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3536,
3259,
4421,
12123,
883,
273,
389,
2932,
7744,
358,
1696,
333,
487,
279,
681,
622,
478,
287,
14533,
23,
50,
21029,
35,
1220,
13041,
716,
326,
7341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3536,
3259,
4421,
12123,
883,
273,
389,
2932,
7744,
358,
1696,
333,
487,
279,
681,
622,
478,
287,
14533,
23,
50,
21029,
35,
1220,
13041,
716,
326,
7341,
... |
for obj in (f1, f2, f3, i1, i2, i3, i4, i5, i6): | for obj in (f3, i5, i6): | def test_expired_view(self): f1 = Feed(u'http://example.com/1') f2 = Feed(u'http://example.com/2') f3 = Feed(u'http://example.com/3') f1.setExpiration(u'never', 0) f2.setExpiration(u'system', 0) f3.setExpiration(u'feed', 24) | 94d04beeeccc3c92ef763ec096b6fbe2f678a7c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/94d04beeeccc3c92ef763ec096b6fbe2f678a7c9/itemtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15820,
67,
1945,
12,
2890,
4672,
284,
21,
273,
14013,
12,
89,
11,
2505,
2207,
8236,
18,
832,
19,
21,
6134,
284,
22,
273,
14013,
12,
89,
11,
2505,
2207,
8236,
18,
832,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15820,
67,
1945,
12,
2890,
4672,
284,
21,
273,
14013,
12,
89,
11,
2505,
2207,
8236,
18,
832,
19,
21,
6134,
284,
22,
273,
14013,
12,
89,
11,
2505,
2207,
8236,
18,
832,
19,
... |
depsLogConf = self._job.get("log/dependencies", False) if not depsLogConf: return packages = script.packagesSortedSimple() parts = script.parts variants = script.variants depsLogConf = ExtMap(depsLogConf) | def runLogDependencies(self, script): | 9fe10b42be513df41053afa53e91b1f58d06af21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/9fe10b42be513df41053afa53e91b1f58d06af21/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1343,
8053,
12,
2890,
16,
2728,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1343,
8053,
12,
2890,
16,
2728,
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,
-10... | |
tag = Tag(tagname) | tag = Tag(tagname,save_cllbk=self.save) | def new_tag(self,tagname) : #we create a new tag from a name if not self.store.has_key(tagname) : tag = Tag(tagname) self.add_tag(tag) return tag else : return self.store[tagname] | 13303fcbf7bee804a4a080c995745885e5d57d24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/13303fcbf7bee804a4a080c995745885e5d57d24/tagstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2692,
12,
2890,
16,
2692,
529,
13,
294,
468,
1814,
752,
279,
394,
1047,
628,
279,
508,
309,
486,
365,
18,
2233,
18,
5332,
67,
856,
12,
2692,
529,
13,
294,
1047,
273,
4034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2692,
12,
2890,
16,
2692,
529,
13,
294,
468,
1814,
752,
279,
394,
1047,
628,
279,
508,
309,
486,
365,
18,
2233,
18,
5332,
67,
856,
12,
2692,
529,
13,
294,
1047,
273,
4034,
... |
weight_units = models.CharField(_("Weight units"), max_length=3, choices=weight_units(), null=True, blank=True, validator_list=[weight_validator]) | weight_units = models.CharField(_("Weight units"), max_length=3, choices=weight_units, null=True, blank=True, default=default_weight_unit, validator_list=[weight_validator]) | def active(self): return self.filter(active=True) | f11002c782ba8f417d2af8a4d0b18a7becbcb0e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/f11002c782ba8f417d2af8a4d0b18a7becbcb0e0/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2695,
12,
2890,
4672,
327,
365,
18,
2188,
12,
3535,
33,
5510,
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,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2695,
12,
2890,
4672,
327,
365,
18,
2188,
12,
3535,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.selection = SingleSelectionGroup(self, self.senderMapper, self.inspector, self) | self.selection = \ SelectionTags.SingleSelectionGroup(self, self.senderMapper, self.inspector, self) | def refreshCtrl(self): if self.destroying: return | 2409984574299440bdc4e3c954b3574ca35f84c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2409984574299440bdc4e3c954b3574ca35f84c5/Designer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12418,
12,
2890,
4672,
309,
365,
18,
11662,
310,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4460,
12418,
12,
2890,
4672,
309,
365,
18,
11662,
310,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if all(isinstance(crystal,ClassicalCrystal) for crystal in crystals): return FullTensorProductOfClassicalCrystals(*crystals) else: return FullTensorProductOfCrystals(*crystals) | if all(isinstance(crystal,ClassicalCrystal) for crystal in crystals): return FullTensorProductOfClassicalCrystals(*crystals) else: return FullTensorProductOfCrystals(*crystals) | def TensorProductOfCrystals(*crystals, **options): r""" Tensor product of crystals. EXAMPLES: We construct the type $A_2$-crystal generated by $2\otimes 1\otimes 1$: sage: C = CrystalOfLetters(['A',2]) sage: T = TensorProductOfCrystals(C,C,C,generators=[[C(2),C(1),C(1)]]) It has $8$ elements sage: T.list() [[2, 1,... | c5d941975d8524ea910254f690f372b2fde30bea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c5d941975d8524ea910254f690f372b2fde30bea/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13422,
4133,
951,
12893,
1094,
1031,
30857,
3353,
1094,
1031,
16,
2826,
2116,
4672,
436,
8395,
13422,
3017,
434,
4422,
1094,
1031,
18,
225,
5675,
8900,
11386,
30,
225,
1660,
4872,
326,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13422,
4133,
951,
12893,
1094,
1031,
30857,
3353,
1094,
1031,
16,
2826,
2116,
4672,
436,
8395,
13422,
3017,
434,
4422,
1094,
1031,
18,
225,
5675,
8900,
11386,
30,
225,
1660,
4872,
326,
618... |
"invalid: %(message)s", field=field, message=message)) | "invalid: %(message)s", field=field, message=message)) | def _validate_ticket(self, req, ticket, force_collision_check=False): valid = True resource = ticket.resource | 8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
67,
16282,
12,
2890,
16,
1111,
16,
9322,
16,
2944,
67,
12910,
1951,
67,
1893,
33,
8381,
4672,
923,
273,
1053,
1058,
273,
9322,
18,
3146,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
5662,
67,
16282,
12,
2890,
16,
1111,
16,
9322,
16,
2944,
67,
12910,
1951,
67,
1893,
33,
8381,
4672,
923,
273,
1053,
1058,
273,
9322,
18,
3146,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
abs_set = dict((component, i) for i, component in enumerate(abs_path.split('/'))) for i, component in enumerate(reversed(ref_chain)): if component in abs_set: new_components = i * ['..'] new_components.extend(abs_chain[abs_set[component]+1:]) return '/'.join(new_components) | cut_pos = get_last_agreement(ref_chain, abs_chain) go_up = (len(ref_chain) - cut_pos) * ['..'] go_down = abs_chain[cut_pos:] result = u'/'.join(go_up + go_down) if result == '' and abs_slash != '': return './' else: return result + abs_slash | def get_relative(ref_path, abs_path): ref_chain = strip_trailing_slash(ref_path).split('/') if ref_chain == ['']: return abs_path abs_chain = abs_path.split('/') abs_set = dict((component, i) for i, component in enumerate(abs_path.split('/'))) for i, component in enumerate(reversed(ref_chain)): if component in abs_set:... | aeb3bfb693791705a474407830431b96cfedcb26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/aeb3bfb693791705a474407830431b96cfedcb26/url_manip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11626,
12,
1734,
67,
803,
16,
2417,
67,
803,
4672,
1278,
67,
5639,
273,
2569,
67,
26453,
67,
12877,
12,
1734,
67,
803,
2934,
4939,
2668,
2473,
13,
309,
1278,
67,
5639,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11626,
12,
1734,
67,
803,
16,
2417,
67,
803,
4672,
1278,
67,
5639,
273,
2569,
67,
26453,
67,
12877,
12,
1734,
67,
803,
2934,
4939,
2668,
2473,
13,
309,
1278,
67,
5639,
422,
... |
if course.final.i >= GALSIZE*QUADSIZE: course.final.i = (GALSIZE*QUADSIZE*2) - course.final.i | if icourse.final.i >= GALSIZE*QUADSIZE: icourse.final.i = (GALSIZE*QUADSIZE*2) - icourse.final.i | def newquadrant(noattack): # Leaving quadrant -- allow final enemy attack # Don't do it if being pushed by Nova if len(game.enemies) != 0 and not noattack: newcnd() for enemy in game.enemies: finald = (w - enemy.location).distance() enemy.kavgd = 0.5 * (finald + enemy.kdist) # Stas Sergeev added the condition # that at... | b8ffe91a83c83c29cc1a574e3fc2d857d582df33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/b8ffe91a83c83c29cc1a574e3fc2d857d582df33/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
21733,
6890,
12,
2135,
4558,
484,
4672,
468,
3519,
5339,
9474,
6890,
1493,
1699,
727,
570,
351,
93,
13843,
468,
7615,
1404,
741,
518,
309,
3832,
18543,
635,
423,
16739,
309,
562,
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,
394,
21733,
6890,
12,
2135,
4558,
484,
4672,
468,
3519,
5339,
9474,
6890,
1493,
1699,
727,
570,
351,
93,
13843,
468,
7615,
1404,
741,
518,
309,
3832,
18543,
635,
423,
16739,
309,
562,
12... |
self._mi.Check(False) else: evt.Skip() def OnShowBrowser(self, evt): """Shows the filebrowser""" if evt.GetId() == ID_FILEBROWSE: mgr = self._mw.GetFrameManager() pane = mgr.GetPane(PANE_NAME).Hide() if Profile_Get('SHOW_FB', 'bool', False) and pane.IsShown(): pane.Hide() Profile_Set('SHOW_FB', False) self._mi.Check(F... | def OnPaneClose(self, evt): """Handles when the pane is closed to update the profile""" pane = evt.GetPane() if pane.name == PANE_NAME: Profile_Set('SHOW_FB', False) self._mi.Check(False) else: evt.Skip() | 4d2d5c6e5663d99a3c05e5b2e0520838bb43ee3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/4d2d5c6e5663d99a3c05e5b2e0520838bb43ee3d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8485,
4605,
12,
2890,
16,
6324,
4672,
3536,
8788,
1347,
326,
13618,
353,
4375,
358,
1089,
326,
3042,
8395,
13618,
273,
6324,
18,
967,
8485,
1435,
309,
13618,
18,
529,
422,
453,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8485,
4605,
12,
2890,
16,
6324,
4672,
3536,
8788,
1347,
326,
13618,
353,
4375,
358,
1089,
326,
3042,
8395,
13618,
273,
6324,
18,
967,
8485,
1435,
309,
13618,
18,
529,
422,
453,
125... | |
self.env = trac.env.Environment(path) | self.env = Environment(path) | def __init__(self, path): self.env = trac.env.Environment(path) self._db = self.env.get_db_cnx() self._db.autocommit = False self.loginNameCache = {} self.fieldNameCache = {} | d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
4672,
365,
18,
3074,
273,
7518,
12,
803,
13,
365,
6315,
1966,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
365,
6315,
1966,
18,
585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
589,
4672,
365,
18,
3074,
273,
7518,
12,
803,
13,
365,
6315,
1966,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
365,
6315,
1966,
18,
585... |
self.mode_ = None | self.mode_ = mode | def __init__(self, scene, model=None): self.scene_ = scene self.mode_ = None | 59720e8500c047dc53a2f7acc4138d6750381259 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/142/59720e8500c047dc53a2f7acc4138d6750381259/annotationscene.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9065,
16,
938,
33,
7036,
4672,
365,
18,
23694,
67,
273,
9065,
365,
18,
3188,
67,
225,
273,
599,
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,
1001,
2738,
972,
12,
2890,
16,
9065,
16,
938,
33,
7036,
4672,
365,
18,
23694,
67,
273,
9065,
365,
18,
3188,
67,
225,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
continue matched = True if 'ready' in args: | matched = False if 'ready' in wait_for_not: | def WaitNot(self, *args, **kwargs): """Wait for the window to not be in any of the following states: | 3041c3cbb3a9cba089ef284c77ea17fa506bba68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/3041c3cbb3a9cba089ef284c77ea17fa506bba68/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5838,
1248,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
5480,
364,
326,
2742,
358,
486,
506,
316,
1281,
434,
326,
3751,
5493,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5838,
1248,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
5480,
364,
326,
2742,
358,
486,
506,
316,
1281,
434,
326,
3751,
5493,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
msg += '%-24s' % (self.odesc) | if self.long: msg = "%-27s" % ("%s=%s" % (self.cmd, self.odesc)) else: msg += '%-24s' % (self.odesc) | def buildHelpMessage(self): msg = '' if self.cmd: msg = self.cmd.ljust(3) if self.odesc: msg += '%-24s' % (self.odesc) else: msg += '%-24s' % ('') msg += "%s\n" % self.desc return msg | 69d2e442b110750e432d3f9f3f0de85318ecf967 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/69d2e442b110750e432d3f9f3f0de85318ecf967/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
6696,
1079,
12,
2890,
4672,
1234,
273,
875,
309,
365,
18,
4172,
30,
1234,
273,
365,
18,
4172,
18,
80,
3732,
12,
23,
13,
309,
365,
18,
369,
742,
30,
309,
365,
18,
5748,
30,
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,
1361,
6696,
1079,
12,
2890,
4672,
1234,
273,
875,
309,
365,
18,
4172,
30,
1234,
273,
365,
18,
4172,
18,
80,
3732,
12,
23,
13,
309,
365,
18,
369,
742,
30,
309,
365,
18,
5748,
30,
12... |
for i, identifier in enumerate(name[1:]): | for i, identifier in enumerate(name): | def get_value_from_name(name): """ Given a name, return the corresponding value. """ name = DottedName(name) # Import the module containing `name`. for i in range(len(name)): module = _import('.'.join(name[:i+1])) if (hasattr(module, name[i]) and not isinstance(getattr(module, name[i]), ModuleType)): break # Look up ... | e93f6faba0519a7aedcd73c5d098e56fd1cfebf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/e93f6faba0519a7aedcd73c5d098e56fd1cfebf8/docinspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
67,
2080,
67,
529,
12,
529,
4672,
3536,
16803,
279,
508,
16,
327,
326,
4656,
460,
18,
3536,
508,
273,
17502,
2344,
461,
12,
529,
13,
225,
468,
6164,
326,
1605,
4191,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
67,
2080,
67,
529,
12,
529,
4672,
3536,
16803,
279,
508,
16,
327,
326,
4656,
460,
18,
3536,
508,
273,
17502,
2344,
461,
12,
529,
13,
225,
468,
6164,
326,
1605,
4191,
1... |
def set(self, value): | def str2value(self, value): | def set(self, value): try: _val = float(value) except ValueError: raise OptionValueError(self, value, "Floating point number required") else: Option.set(self, _val) | 092f01b48ed42c60558ac679f8ab88ea5a6f5fbc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/092f01b48ed42c60558ac679f8ab88ea5a6f5fbc/configuration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
22,
1132,
12,
2890,
16,
460,
4672,
775,
30,
389,
1125,
273,
1431,
12,
1132,
13,
1335,
2068,
30,
1002,
2698,
23610,
12,
2890,
16,
460,
16,
315,
28344,
1634,
1300,
1931,
7923,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
609,
22,
1132,
12,
2890,
16,
460,
4672,
775,
30,
389,
1125,
273,
1431,
12,
1132,
13,
1335,
2068,
30,
1002,
2698,
23610,
12,
2890,
16,
460,
16,
315,
28344,
1634,
1300,
1931,
7923,
469,
... |
self.__initialcolor = initialcolor | def __init__(self, master = None, initialcolor = None, databasefile = None, initfile = None, ignore = None, wantspec = None): self.__master = master self.__initialcolor = initialcolor self.__databasefile = databasefile self.__initfile = initfile or os.path.expanduser('~/.pynche') self.__ignore = ignore self.__pw = None... | dfc61ba71a7e98557eb823ebb167910736325c81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dfc61ba71a7e98557eb823ebb167910736325c81/pyColorChooser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
273,
599,
16,
2172,
3266,
273,
599,
16,
2063,
768,
273,
599,
16,
1208,
768,
273,
599,
16,
2305,
273,
599,
16,
2545,
2793,
273,
599,
4672,
365,
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,
1001,
2738,
972,
12,
2890,
16,
4171,
273,
599,
16,
2172,
3266,
273,
599,
16,
2063,
768,
273,
599,
16,
1208,
768,
273,
599,
16,
2305,
273,
599,
16,
2545,
2793,
273,
599,
4672,
365,
16... | |
Triple-quotes are handled as well. | Triple-quotes are handled as well:: | def strip_string_literals(code, state=None): r""" Returns a string with all literal quotes replaced with labels and a dict of labels for re-subsitution. This makes parsing much easier. EXAMPLES: sage: from sage.misc.preparser import strip_string_literals sage: s, literals, state = strip_string_literals(r'''['a', "b", ... | 4c126d261314d7f192093d4142f8479a23988a69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4c126d261314d7f192093d4142f8479a23988a69/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
1080,
67,
80,
11235,
12,
710,
16,
919,
33,
7036,
4672,
436,
8395,
2860,
279,
533,
598,
777,
7158,
10681,
8089,
598,
3249,
471,
279,
2065,
434,
3249,
364,
283,
17,
22284,
305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
1080,
67,
80,
11235,
12,
710,
16,
919,
33,
7036,
4672,
436,
8395,
2860,
279,
533,
598,
777,
7158,
10681,
8089,
598,
3249,
471,
279,
2065,
434,
3249,
364,
283,
17,
22284,
305,... |
x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (entry[1], ""))) | x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (self.pinlength, ""))) | def addEntry(self, list, entry): if entry[0] == "TEXT": #handle every item (text / pin only?) list.append( (entry[1], entry[2]) ) if entry[0] == "PIN": if entry[3] == 1: # masked pins: x = configElement_nonSave("", configSequence, [1234], configsequencearg.get("PINCODE", (entry[1], "*"))) else: # unmasked pins: x = co... | 10bcb34f8993ecc000f027ecc8ce7fc89f0bda2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/10bcb34f8993ecc000f027ecc8ce7fc89f0bda2b/Ci.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1622,
12,
2890,
16,
666,
16,
1241,
4672,
309,
1241,
63,
20,
65,
422,
315,
5151,
6877,
202,
202,
7,
4110,
3614,
761,
261,
955,
342,
7092,
1338,
8535,
666,
18,
6923,
12,
261,
4099... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1622,
12,
2890,
16,
666,
16,
1241,
4672,
309,
1241,
63,
20,
65,
422,
315,
5151,
6877,
202,
202,
7,
4110,
3614,
761,
261,
955,
342,
7092,
1338,
8535,
666,
18,
6923,
12,
261,
4099... |
"""Outputs a method deprecation warning. Uses the stack to determine class and name of calling method | """Decorator to output a method deprecation warning. | def deprecated(instead=None): """Outputs a method deprecation warning. Uses the stack to determine class and name of calling method @param instead: if provided, will be used to specify the replacement @type instead: string """ def decorator(method): def wrapper(*args, **kwargs): funcname = method.func_name classname =... | 62aeeabd9e390a5a4520f37df3c5852b651e4753 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9005/62aeeabd9e390a5a4520f37df3c5852b651e4753/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6849,
12,
8591,
684,
33,
7036,
4672,
3536,
10361,
358,
876,
279,
707,
20097,
3436,
18,
225,
632,
891,
3560,
30,
309,
2112,
16,
903,
506,
1399,
358,
4800,
326,
6060,
632,
723,
3560,
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,
6849,
12,
8591,
684,
33,
7036,
4672,
3536,
10361,
358,
876,
279,
707,
20097,
3436,
18,
225,
632,
891,
3560,
30,
309,
2112,
16,
903,
506,
1399,
358,
4800,
326,
6060,
632,
723,
3560,
30,... |
basepath = self.archivePath + "/" + self.name | basepath = os.path.join(self.archivePath, self.name) | def initializeFromPath(self, path, mode="r"): """ initialize object from the file or path given in path | b091d5d304469ddf0ae567cbb191ef4270848859 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/b091d5d304469ddf0ae567cbb191ef4270848859/OvfSet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
23064,
12,
2890,
16,
589,
16,
1965,
1546,
86,
6,
4672,
3536,
4046,
733,
628,
326,
585,
578,
589,
864,
316,
589,
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,
4046,
23064,
12,
2890,
16,
589,
16,
1965,
1546,
86,
6,
4672,
3536,
4046,
733,
628,
326,
585,
578,
589,
864,
316,
589,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
realMain() | return realMain() | def realMain(): from application import feedback feedback.initRuntimeLog(Globals.options.profileDir) Globals.chandlerDirectory = Utility.locateChandlerDirectory() os.chdir(Globals.chandlerDirectory) Utility.initLogging(Globals.options) | 478758c40b3d2b53ff566c1e5f030905d8a6ee04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/478758c40b3d2b53ff566c1e5f030905d8a6ee04/Chandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
6376,
13332,
225,
628,
2521,
1930,
10762,
10762,
18,
2738,
5576,
1343,
12,
19834,
18,
2116,
18,
5040,
1621,
13,
225,
18901,
1031,
18,
343,
464,
749,
2853,
273,
13134,
18,
25450,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
6376,
13332,
225,
628,
2521,
1930,
10762,
10762,
18,
2738,
5576,
1343,
12,
19834,
18,
2116,
18,
5040,
1621,
13,
225,
18901,
1031,
18,
343,
464,
749,
2853,
273,
13134,
18,
25450,
78... |
raise ParseError('Error during parsing: invalid ' 'syntax (%s, line %d)' % (module_doc.filename, lineno)) | raise ParseError('Error during parsing: invalid syntax ' '(%s, line %d, char %d: %r)' % (module_doc.filename, srow, scol, toktext)) | def process_file(module_doc): """ Read the given C{ModuleDoc}'s file, and add variables corresponding to any objects defined in that file. In particular, read and tokenize C{module_doc.filename}, and process each logical line using L{process_line()}. """ # Keep track of the current line number: lineno = None # Use th... | 76aa87c4f3f84f87b6c947e3387d535503259a2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/76aa87c4f3f84f87b6c947e3387d535503259a2a/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
768,
12,
2978,
67,
2434,
4672,
3536,
2720,
326,
864,
385,
95,
3120,
1759,
1713,
87,
585,
16,
471,
527,
3152,
4656,
358,
1281,
2184,
2553,
316,
716,
585,
18,
225,
657,
6826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
768,
12,
2978,
67,
2434,
4672,
3536,
2720,
326,
864,
385,
95,
3120,
1759,
1713,
87,
585,
16,
471,
527,
3152,
4656,
358,
1281,
2184,
2553,
316,
716,
585,
18,
225,
657,
6826,
... |
interesting = [] indices = [] | def add_navigation_cues(files): """Add index, nextid and previd data to a list of files/chunks""" # FIXME: this modifies in-place right now, which is kind of ugly interesting = [] indices = [] for i, file in enumerate(files): file['index'] = i k = 1 for j, chunk in enumerate(file['chunks']): if chunk['change'] != 'equa... | 7d2f39655e3ed3f54b8c5ee8c6ecc06ecd3bbaa6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/7d2f39655e3ed3f54b8c5ee8c6ecc06ecd3bbaa6/diffutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
19537,
67,
71,
3610,
12,
2354,
4672,
3536,
986,
770,
16,
1024,
350,
471,
675,
1246,
501,
358,
279,
666,
434,
1390,
19,
14691,
8395,
468,
9852,
30,
333,
23934,
316,
17,
964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
19537,
67,
71,
3610,
12,
2354,
4672,
3536,
986,
770,
16,
1024,
350,
471,
675,
1246,
501,
358,
279,
666,
434,
1390,
19,
14691,
8395,
468,
9852,
30,
333,
23934,
316,
17,
964,
... | |
Node.__init__(self, model, parent) def __str__(self): result = self.method + '(' result += dbus_utils.sig_to_string(self.insig) + ')' | if self.outsig: result += ' -> (' + dbus_utils.sig_to_string(self.outsig) + ')' | def __init__(self, model, parent, method, insig, outsig): self.method = method self.insig = insig self.outsig = outsig Node.__init__(self, model, parent) | 29e46f4c980daf59bdf05cd501c0d0ab2f17449d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5682/29e46f4c980daf59bdf05cd501c0d0ab2f17449d/introspect_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
982,
16,
707,
16,
2763,
360,
16,
596,
7340,
4672,
365,
18,
2039,
273,
707,
365,
18,
2679,
360,
273,
2763,
360,
365,
18,
659,
7340,
273,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
982,
16,
707,
16,
2763,
360,
16,
596,
7340,
4672,
365,
18,
2039,
273,
707,
365,
18,
2679,
360,
273,
2763,
360,
365,
18,
659,
7340,
273,
596,
... |
_debug("Checking robot.txt allowance for\n%s\n%s" % (useragent, url)) | _debug("Checking robot.txt allowance for:\n user agent: %s\n url: %s" % (useragent, url)) | def can_fetch(self, useragent, url): """using the parsed robots.txt decide if useragent can fetch url""" _debug("Checking robot.txt allowance for\n%s\n%s" % (useragent, url)) if self.disallow_all: return 0 if self.allow_all: return 1 # search for given user agent matches # the first match counts useragent = useragent.l... | 9f1a9dabf26f85b849a5ad0caf005e90629a024c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9f1a9dabf26f85b849a5ad0caf005e90629a024c/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
5754,
12,
2890,
16,
22649,
16,
880,
4672,
3536,
9940,
326,
2707,
29255,
18,
5830,
16288,
309,
22649,
848,
2158,
880,
8395,
389,
4148,
2932,
14294,
14386,
18,
5830,
1699,
1359,
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,
848,
67,
5754,
12,
2890,
16,
22649,
16,
880,
4672,
3536,
9940,
326,
2707,
29255,
18,
5830,
16288,
309,
22649,
848,
2158,
880,
8395,
389,
4148,
2932,
14294,
14386,
18,
5830,
1699,
1359,
3... |
for k, v in self.timeout.items(): | for k, v in self.timeout.iteritems(): | def check_cache(self): # first check for old ones t = time.time() if self.soonest <= t: for k, v in self.timeout.items(): if v < t: self.cache[k].close() del self.cache[k] del self.timeout[k] self.soonest = min(self.timeout.values()) | 4a475db0fc3dcf0df82a9a200f2e376b30c16cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4a475db0fc3dcf0df82a9a200f2e376b30c16cf4/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2493,
12,
2890,
4672,
468,
1122,
866,
364,
1592,
5945,
268,
273,
813,
18,
957,
1435,
309,
365,
18,
2048,
265,
395,
1648,
268,
30,
364,
417,
16,
331,
316,
365,
18,
4538,
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,
866,
67,
2493,
12,
2890,
4672,
468,
1122,
866,
364,
1592,
5945,
268,
273,
813,
18,
957,
1435,
309,
365,
18,
2048,
265,
395,
1648,
268,
30,
364,
417,
16,
331,
316,
365,
18,
4538,
18,
... |
self.__dict__['validate'] = security.DTMLValidate | if self.__dict__.has_key('validate'): first_time_through = 0 else: self.__dict__['validate'] = security.DTMLValidate first_time_through = 1 | def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): """Render the document given a client object, REQUEST mapping, Response, and key word arguments.""" | 2f458b2919d206ec2ab6d79cd23c9c6ceff43b92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2f458b2919d206ec2ab6d79cd23c9c6ceff43b92/DTMLMethod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1004,
33,
7036,
16,
12492,
28793,
20645,
33,
7036,
16,
2826,
9987,
4672,
3536,
3420,
326,
1668,
864,
279,
1004,
733,
16,
12492,
2874,
16,
2306,
16,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1004,
33,
7036,
16,
12492,
28793,
20645,
33,
7036,
16,
2826,
9987,
4672,
3536,
3420,
326,
1668,
864,
279,
1004,
733,
16,
12492,
2874,
16,
2306,
16,
471,
... |
if ((end - start + 1) != len(data)): raise RegionLengthError, ('Range specified does not match ' 'the length of the data given.') | if ((end - start) != len(data)): raise RegionLengthError, (('Range specified (%d-%d) does not match ' 'the length of the data (%d) given.') % (start, end, len(data))) | def __init__(self, start, end, data): ''' Initializer. Can raise InvalidRegionSpecifiedError and RegionDoesNotMatchLengthError. ''' | 0e78aa9c1a9fe025aa363307313ea4b93b5fce19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/0e78aa9c1a9fe025aa363307313ea4b93b5fce19/dataregion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
787,
16,
679,
16,
501,
4672,
9163,
4378,
3926,
18,
4480,
1002,
1962,
5165,
17068,
668,
471,
9164,
10154,
1248,
2060,
1782,
668,
18,
9163,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
787,
16,
679,
16,
501,
4672,
9163,
4378,
3926,
18,
4480,
1002,
1962,
5165,
17068,
668,
471,
9164,
10154,
1248,
2060,
1782,
668,
18,
9163,
2,
-100,
-100,
... |
cmd_text = '\t' | cmd_text = '' if command.errors_to > '': cmd_text += '\trm -f ' + command.errors_to + '\n' | def get_text(self): dep_text = '' for key in self.dependencies: if dep_text=='': dep_text = '\t' + key else: dep_text = dep_text + ' ' + key dep_text = dep_text + '\n' cmd_text = '\t' for key in self.commands.sort_by('sort_order'): command = self.commands[key] if command.errors_to > '': cmd_text += 'rm ' + command.erro... | a21f3295a49c6467d3614c8da71599e042fcf3e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/a21f3295a49c6467d3614c8da71599e042fcf3e1/Makefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
955,
12,
2890,
4672,
5993,
67,
955,
273,
875,
364,
498,
316,
365,
18,
11037,
30,
309,
5993,
67,
955,
18920,
4278,
5993,
67,
955,
273,
2337,
88,
11,
397,
498,
469,
30,
5993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
955,
12,
2890,
4672,
5993,
67,
955,
273,
875,
364,
498,
316,
365,
18,
11037,
30,
309,
5993,
67,
955,
18920,
4278,
5993,
67,
955,
273,
2337,
88,
11,
397,
498,
469,
30,
5993,
... |
if '%' in cmd: cmd = cmd % filename | if '%s' in cmd: cmd = cmd.replace("%s", filename) | def expandCommandLine(self, cmd): """Expand the command line to include the filename of the buffer""" filename = self.buffer.url.path.get_name() if '%' in cmd: cmd = cmd % filename else: cmd = "%s %s" % (cmd, filename) return cmd | 75b07a205b6b59ee9eedb0df4cf1a4d3d9c94b3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/75b07a205b6b59ee9eedb0df4cf1a4d3d9c94b3a/jobcontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
21391,
12,
2890,
16,
1797,
4672,
3536,
12271,
326,
1296,
980,
358,
2341,
326,
1544,
434,
326,
1613,
8395,
1544,
273,
365,
18,
4106,
18,
718,
18,
803,
18,
588,
67,
529,
1435,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
21391,
12,
2890,
16,
1797,
4672,
3536,
12271,
326,
1296,
980,
358,
2341,
326,
1544,
434,
326,
1613,
8395,
1544,
273,
365,
18,
4106,
18,
718,
18,
803,
18,
588,
67,
529,
1435,
309,... |
log.log( "<eddieElvin>elvinTicker.elvinrrd(), notify successful, key %s" % (key), 8 ) | log.log( "<eddieElvin4>elvinTicker.elvinrrd(), notify successful, key %s" % (key), 8 ) | def send(self, key, data): | aa32b1c20f46510b6908631b429ef7410713743a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/aa32b1c20f46510b6908631b429ef7410713743a/eddieElvin4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
498,
16,
501,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
498,
16,
501,
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,
... |
_USER = 0 | _USER = None | def logout(): global _SOCK, _USER, _USERNAME, _SESSION, _DATABASE, _VIEW_CACHE, SECURE if _SOCK and _USER: try: _SEMAPHORE.acquire() try: args = (_DATABASE, _USER, _SESSION, 'common', 'db', 'logout') logging.getLogger('rpc.request').info(repr(args)) _SOCK.sock.settimeout(pysocket.CONNECT_TIMEOUT) _SOCK.send(args) res =... | 92c76ea05ac98f48b25e166e881fd70ac3180818 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9151/92c76ea05ac98f48b25e166e881fd70ac3180818/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12735,
13332,
2552,
389,
3584,
3507,
16,
389,
4714,
16,
389,
21292,
16,
389,
7042,
16,
389,
22366,
16,
389,
12145,
67,
8495,
16,
31418,
4830,
309,
389,
3584,
3507,
471,
389,
4714,
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,
12735,
13332,
2552,
389,
3584,
3507,
16,
389,
4714,
16,
389,
21292,
16,
389,
7042,
16,
389,
22366,
16,
389,
12145,
67,
8495,
16,
31418,
4830,
309,
389,
3584,
3507,
471,
389,
4714,
30,
... |
self._position = map(float, (x1, y1)) | self._position = (float(x1), float(y1)) | def _goto(self, x1, y1): x0, y0 = self._position self._position = map(float, (x1, y1)) if self._filling: self._path.append(self._position) if self._drawing: if self._tracing: dx = float(x1 - x0) dy = float(y1 - y0) distance = hypot(dx, dy) nhops = int(distance) item = self._canvas.create_line(x0, y0, x0, y0, width=self... | 2f073a68aebfe15f6967ebba4d6d0ba59563fea6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/2f073a68aebfe15f6967ebba4d6d0ba59563fea6/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
75,
6302,
12,
2890,
16,
619,
21,
16,
677,
21,
4672,
619,
20,
16,
677,
20,
273,
365,
6315,
3276,
365,
6315,
3276,
273,
261,
5659,
12,
92,
21,
3631,
1431,
12,
93,
21,
3719,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
75,
6302,
12,
2890,
16,
619,
21,
16,
677,
21,
4672,
619,
20,
16,
677,
20,
273,
365,
6315,
3276,
365,
6315,
3276,
273,
261,
5659,
12,
92,
21,
3631,
1431,
12,
93,
21,
3719,
309,... |
if go_interactive or os.environ.get('PYTHONINSPECT'): python_startup = os.environ.get('PYTHONSTARTUP') | if go_interactive or os.getenv('PYTHONINSPECT'): python_startup = os.getenv('PYTHONSTARTUP') | def run_it(): import runpy runpy.run_module(sys.argv[0], None, '__main__', True) | 0d58b876b1ec78c9bc61907ec8ab0683fbf60bbc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/0d58b876b1ec78c9bc61907ec8ab0683fbf60bbc/app_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
305,
13332,
1930,
1086,
2074,
1086,
2074,
18,
2681,
67,
2978,
12,
9499,
18,
19485,
63,
20,
6487,
599,
16,
4940,
5254,
972,
2187,
1053,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
67,
305,
13332,
1930,
1086,
2074,
1086,
2074,
18,
2681,
67,
2978,
12,
9499,
18,
19485,
63,
20,
6487,
599,
16,
4940,
5254,
972,
2187,
1053,
13,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
zero = pack("I", 0) | def __doVerify(self): if self.rpmgroup not in (None, RPM_STRING, RPM_I18NSTRING): self.printErr("rpmgroup out of range") self.__verifyWriteHeader(self.hdr.hash, rpmtag, "immutable", self.hdrdata, 1, self.rpmgroup) if self.strict: self.__verifyWriteHeader(self.sig.hash, rpmsigtag, "header_signatures", self.sigdata, 0, N... | e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2896,
8097,
12,
2890,
4672,
309,
365,
18,
86,
7755,
1655,
486,
316,
261,
7036,
16,
534,
12728,
67,
5804,
16,
534,
12728,
67,
45,
2643,
50,
5804,
4672,
365,
18,
1188,
2524,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
8097,
12,
2890,
4672,
309,
365,
18,
86,
7755,
1655,
486,
316,
261,
7036,
16,
534,
12728,
67,
5804,
16,
534,
12728,
67,
45,
2643,
50,
5804,
4672,
365,
18,
1188,
2524,
2932,
... | |
fixLDPath(*positionalArgs) | fixLDPath( *positionalArgs ) | def fixLDPath( root, ldpath, directory): """ This is a utility to fix the LD_LIBRARY_PATH on Grid WNs. The shared libraries from the original LD_LIBRARY_PATH are linked to the locally specified directory. For Windows (and in general) this needs some refurbishment. """ if os.path.exists(directory): shutil.rmtree(direc... | 9b8eea7ba28a2770fdfbf806c3e35df73cf645a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9b8eea7ba28a2770fdfbf806c3e35df73cf645a1/dirac-fix-ld-library-path.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
12069,
743,
12,
1365,
16,
16916,
803,
16,
1867,
4672,
3536,
1220,
353,
279,
12788,
358,
2917,
326,
28083,
67,
2053,
28254,
67,
4211,
603,
7145,
678,
10386,
18,
1021,
5116,
14732,
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,
2917,
12069,
743,
12,
1365,
16,
16916,
803,
16,
1867,
4672,
3536,
1220,
353,
279,
12788,
358,
2917,
326,
28083,
67,
2053,
28254,
67,
4211,
603,
7145,
678,
10386,
18,
1021,
5116,
14732,
6... |
self.persistent = True | def save(self): prefix = self.get_fileprefix(saving=True) if self.preview is None: self.preview = gdk.Pixbuf(gdk.COLORSPACE_RGB, False, 8, preview_w, preview_h) self.preview.fill(0xffffffff) # white self.preview.save(prefix + '_prev.png', 'png') brushinfo = self.brushinfo.clone() open(prefix + '.myb', 'w').write(brushi... | 3606ad6d6c04adbfdcddc11a94ae35485e1e5e7c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/3606ad6d6c04adbfdcddc11a94ae35485e1e5e7c/brushmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
1633,
273,
365,
18,
588,
67,
768,
3239,
12,
87,
5339,
33,
5510,
13,
309,
365,
18,
12102,
353,
599,
30,
365,
18,
12102,
273,
314,
2883,
18,
21816,
4385,
12,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
4672,
1633,
273,
365,
18,
588,
67,
768,
3239,
12,
87,
5339,
33,
5510,
13,
309,
365,
18,
12102,
353,
599,
30,
365,
18,
12102,
273,
314,
2883,
18,
21816,
4385,
12,
75,
... | |
os.stat(djvu) if not index: import os.path index = os.path.basename(djvu) | if djvu: os.stat(djvu) if not index: import os.path index = os.path.basename(djvu) | def main(): import os index = None djvu = None pages = None # what would have been changed. debug = False ask = False # Parse command line arguments for arg in wikipedia.handleArgs(): if arg.startswith("-debug"): debug = True elif arg.startswith("-ask"): ask = True elif arg.startswith("-djvu:"): djvu = arg[6:] elif ar... | e9c45dd98a097293a103007d1b44df4e96ec935d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/e9c45dd98a097293a103007d1b44df4e96ec935d/djvutext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
1140,
770,
273,
599,
19754,
90,
89,
273,
599,
4689,
273,
599,
468,
4121,
4102,
1240,
2118,
3550,
18,
1198,
273,
1083,
6827,
273,
1083,
225,
468,
2884,
1296,
980,
1775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1930,
1140,
770,
273,
599,
19754,
90,
89,
273,
599,
4689,
273,
599,
468,
4121,
4102,
1240,
2118,
3550,
18,
1198,
273,
1083,
6827,
273,
1083,
225,
468,
2884,
1296,
980,
1775,... |
self.SCIMarkerDefine(MARKER_BOOKMARK, SC_MARK_ROUNDRECT) self.SCIMarkerSetBack(MARKER_BOOKMARK, win32api.RGB(0, 0xff, 0xff)) self.SCIMarkerSetFore(MARKER_BOOKMARK, win32api.RGB(0x0, 0x0, 0x0)) | self.SCIMarkerDefineAll(MARKER_BOOKMARK, SC_MARK_ROUNDRECT, win32api.RGB(0x0, 0x0, 0x0), win32api.RGB(0, 0xff, 0xff)) | def OnInitialUpdate(self): SyntEditViewParent.OnInitialUpdate(self) | bde2b36427952e5a440b69d730492c25914ed5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/bde2b36427952e5a440b69d730492c25914ed5b9/coloreditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4435,
1891,
12,
2890,
4672,
16455,
496,
4666,
1767,
3054,
18,
1398,
4435,
1891,
12,
2890,
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... | [
1,
1,
1,
1,
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,
2755,
4435,
1891,
12,
2890,
4672,
16455,
496,
4666,
1767,
3054,
18,
1398,
4435,
1891,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for mlist in advertised: table.AddRow( [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)), mlist.description or Italic(_('[no description available]'))]) | highlight = 1 for mlist in advertised: table.AddRow( [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)), mlist.description or Italic(_('[no description available]'))]) if highlight and mm_cfg.WEB_HIGHLIGHT_COLOR: table.AddRowInfo(table.GetCurrentRowIndex(), bgcolor=mm_cfg.WEB_HIGHLIGHT_COLOR) highlight = not ... | def listinfo_overview(msg=''): # Present the general listinfo overview hostname = Utils.get_domain() # Set up the document and assign it the correct language. The only one we # know about at the moment is the server's default. doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) legend = _("%(hostname)s ... | 457309d68529d31bbc8ba1ac3fe2bb43e019908e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/457309d68529d31bbc8ba1ac3fe2bb43e019908e/listinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
1376,
67,
26081,
12,
3576,
2218,
11,
4672,
468,
25130,
326,
7470,
666,
1376,
18471,
5199,
273,
6091,
18,
588,
67,
4308,
1435,
468,
1000,
731,
326,
1668,
471,
2683,
518,
326,
3434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
1376,
67,
26081,
12,
3576,
2218,
11,
4672,
468,
25130,
326,
7470,
666,
1376,
18471,
5199,
273,
6091,
18,
588,
67,
4308,
1435,
468,
1000,
731,
326,
1668,
471,
2683,
518,
326,
3434,
... |
for j in xrange(10): x = matrix.col([ random.uniform(0,1) for k in xrange(3) ]).normalize() | for j in xrange(n_sub_trials): x = matrix.col([ rnd.random() for k in xrange(3) ]).normalize() | def exercise_ellipsoid(): for i in xrange(100): half_lengths = matrix.col([ random.random() for k in xrange(3) ]) r = scitbx.math.euler_angles_as_matrix( [ random.uniform(0, 360) for i in xrange(3) ], deg=True) u_cart = r.transpose() * matrix.diag([ x**2 for x in half_lengths ]) * r es = adptbx.eigensystem(u_cart.as_sy... | 41e8b9223bde751cbbe234221497b2044781b980 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/41e8b9223bde751cbbe234221497b2044781b980/tst_adptbx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
292,
11693,
839,
13332,
364,
277,
316,
12314,
12,
6625,
4672,
8816,
67,
14907,
273,
3148,
18,
1293,
3816,
2744,
18,
9188,
1435,
364,
417,
316,
12314,
12,
23,
13,
308,
13,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
292,
11693,
839,
13332,
364,
277,
316,
12314,
12,
6625,
4672,
8816,
67,
14907,
273,
3148,
18,
1293,
3816,
2744,
18,
9188,
1435,
364,
417,
316,
12314,
12,
23,
13,
308,
13,
43... |
def __init__(self,name): self.name = name self.namespace = '' self.webservice = '' self.typeobj = '' self.ports = [] self.isRequestType = False self.isEmptySequence = False self.isExtension = False self.ExtensionBase = '' | def __init__(self,name): self.name = name self.namespace = '' self.webservice = '' self.typeobj = '' self.ports = [] self.attributes = [] self.hasAttributes = False self.isRequestType = False self.isEmptySequence = False self.isExtension = False self.ExtensionBase = '' | def __init__(self,name): self.name = name self.namespace = '' self.webservice = '' self.typeobj = '' #Enumeration, ComplexType or Method self.ports = [] self.isRequestType = False self.isEmptySequence = False self.isExtension = False self.ExtensionBase = '' | 20aa04df673c3b6b6ec0733936c365b6bf28189a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/20aa04df673c3b6b6ec0733936c365b6bf28189a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
529,
4672,
365,
18,
529,
273,
508,
365,
18,
4937,
273,
875,
365,
18,
1814,
20015,
273,
875,
365,
18,
723,
2603,
273,
875,
282,
468,
21847,
16,
16060,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
529,
4672,
365,
18,
529,
273,
508,
365,
18,
4937,
273,
875,
365,
18,
1814,
20015,
273,
875,
365,
18,
723,
2603,
273,
875,
282,
468,
21847,
16,
16060,
5... |
pos = 1 for id in views: bits[id] = pos pos = pos * 2 print bits | pos = 0 for viewId in views: bits[viewId] = 1<<pos pos += 1 print " - %s has bit %s" % (viewId, bits[viewId]) | def processViews(views, loadDeps, runDeps, output): global classes print ">>> Analysing %s views..." % len(views) classCounts = {} # Generating data structures for possible modules classMods = {} # for id in views: # Hint: IDs # # apiviewer # feedreader # webmail # apiviewer-feedreader # apiviewer-webmail # feedrea... | 81b747f6b630b33c32656070c873a9a09a9e6100 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/81b747f6b630b33c32656070c873a9a09a9e6100/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
9959,
12,
7061,
16,
1262,
14430,
16,
1086,
14430,
16,
876,
4672,
2552,
3318,
225,
1172,
315,
23012,
1922,
3646,
310,
738,
87,
7361,
7070,
738,
562,
12,
7061,
13,
225,
667,
9211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
9959,
12,
7061,
16,
1262,
14430,
16,
1086,
14430,
16,
876,
4672,
2552,
3318,
225,
1172,
315,
23012,
1922,
3646,
310,
738,
87,
7361,
7070,
738,
562,
12,
7061,
13,
225,
667,
9211,
... |
end_time_s = {} end_time_ns = {} | end_time = {} | def populate_inspiral_tables(MBTA_frame, set_keys = MBTA_set_keys, \ event_id_dict = insp_event_id_dict): """ create xml file and populate the SnglInspiral and CoincInspiral tables from a coinc .gwf file from MBTA xmldoc: xml file to append the tables to MBTA_frame: frame file to get info about triggers from set_keys: ... | 786901062b849410a8247f6881002d3dc4e6cee9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/786901062b849410a8247f6881002d3dc4e6cee9/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
267,
1752,
481,
287,
67,
9373,
12,
7969,
9833,
67,
3789,
16,
444,
67,
2452,
273,
17897,
9833,
67,
542,
67,
2452,
16,
521,
871,
67,
350,
67,
1576,
273,
316,
1752,
67,
2575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
267,
1752,
481,
287,
67,
9373,
12,
7969,
9833,
67,
3789,
16,
444,
67,
2452,
273,
17897,
9833,
67,
542,
67,
2452,
16,
521,
871,
67,
350,
67,
1576,
273,
316,
1752,
67,
2575,
... |
verbose_write(str(self) + " started") | def setUp(self): verbose_write(self) self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) verbose_write(str(self) + " socket created") global PORT PORT = test_support.bind_port(self.serv, HOST, PORT) verbose_write(str(self) + " start listening") s... | 94c52b456919e43021e0d219db4595f8bac9df47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/94c52b456919e43021e0d219db4595f8bac9df47/test_socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3988,
67,
2626,
12,
2890,
13,
365,
18,
23039,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
18,
23039,
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,
24292,
12,
2890,
4672,
3988,
67,
2626,
12,
2890,
13,
365,
18,
23039,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
365,
18,
23039,
18,
... | |
if vals.has_key('alarm_id'): | if vals.has_key('alarm_id') or vals.has_key('caldav_alarm_id'): | def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True): if isinstance(ids, (str, int, long)): select = [ids] else: select = ids new_ids = [] for id in select: id = caldav_id2real_id(id) if not id in new_ids: new_ids.append(id) res = super(calendar_event, self).write(cr, uid, new_ids, vals, con... | 1011c0fffa29564de054c4e0235c2e6b107e1fa2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1011c0fffa29564de054c4e0235c2e6b107e1fa2/caldav.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
33,
7036,
16,
866,
33,
5510,
16,
1089,
67,
1893,
33,
5510,
4672,
309,
1549,
12,
2232,
16,
261,
701,
16,
509,
16,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
33,
7036,
16,
866,
33,
5510,
16,
1089,
67,
1893,
33,
5510,
4672,
309,
1549,
12,
2232,
16,
261,
701,
16,
509,
16,
15... |
odata = ''.join(np.out.splitlines()[1:-1]) | odata = ''.join(np.out.splitlines()[1:-2]) | def render(self, req, mimetype, content, filename=None, rev=None): cmdline = self.config.get('mimeviewer', 'php_path') # -n to ignore php.ini so we're using default colors cmdline += ' -sn' self.env.log.debug("PHP command line: %s" % cmdline) content = content_to_unicode(self.env, content, mimetype) content = content.... | c4383fe7f52e581fd7efd65ae9315ec01aec83a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/c4383fe7f52e581fd7efd65ae9315ec01aec83a8/php.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1111,
16,
12595,
16,
913,
16,
1544,
33,
7036,
16,
5588,
33,
7036,
4672,
22877,
273,
365,
18,
1425,
18,
588,
2668,
11757,
25256,
2187,
296,
2684,
67,
803,
6134,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1111,
16,
12595,
16,
913,
16,
1544,
33,
7036,
16,
5588,
33,
7036,
4672,
22877,
273,
365,
18,
1425,
18,
588,
2668,
11757,
25256,
2187,
296,
2684,
67,
803,
6134,
468,... |
sage: sr = mq.SR(10,4,4,8) | sage: sr = mq.SR(10, 4, 4, 8) | def base_ring(self): """ Return the base field of self as determined through self.e. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
8022,
12,
2890,
4672,
3536,
2000,
326,
1026,
652,
434,
365,
487,
11383,
3059,
365,
18,
73,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
8022,
12,
2890,
4672,
3536,
2000,
326,
1026,
652,
434,
365,
487,
11383,
3059,
365,
18,
73,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if disp == diDNACYLINDER \ and not (self.isAxisChunk() or self.isStrandChunk()): return | def setDisplay(self, disp): # TODO: optimize when self.display == disp, since I just reviewed # all calls and this looks safe. (Ditto with Atom version of this # method.) [bruce comment 080305 @@@@] """ change self's display mode """ if self.display == disp: #bruce 080305 optimization; looks safe after review of all ca... | 143d4a0d82a1bf301ef6276e2d7206fe7c8584c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/143d4a0d82a1bf301ef6276e2d7206fe7c8584c4/chunk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23512,
12,
2890,
16,
16232,
4672,
468,
2660,
30,
10979,
1347,
365,
18,
5417,
422,
16232,
16,
3241,
467,
2537,
10725,
329,
468,
777,
4097,
471,
333,
10192,
4183,
18,
261,
40,
305,
869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23512,
12,
2890,
16,
16232,
4672,
468,
2660,
30,
10979,
1347,
365,
18,
5417,
422,
16232,
16,
3241,
467,
2537,
10725,
329,
468,
777,
4097,
471,
333,
10192,
4183,
18,
261,
40,
305,
869,
... | |
if self.find_text(text) == None: | '''Add item to history (if not duplicate)''' if not text: return if self.find_text(text) != None: return try: | def append_text(self, text): if self.find_text(text) == None: | 88d893e9b9e6d9ce389f3a3222d02981eba5c90f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5002/88d893e9b9e6d9ce389f3a3222d02981eba5c90f/filefind.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
955,
12,
2890,
16,
977,
4672,
309,
365,
18,
4720,
67,
955,
12,
955,
13,
422,
599,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
955,
12,
2890,
16,
977,
4672,
309,
365,
18,
4720,
67,
955,
12,
955,
13,
422,
599,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.respond("230 User %s logged in." %self.username) | self.respond("230 User %s logged in." %self.username) | def ftp_PASS(self, line): # TODO - brute force protection: 'freeze'/'sleep' (without blocking the main loop) # PI for a certain amount of time if authentication fails. if not self.username: self.respond("503 Login with USER first") return if self.username == 'anonymous': line = '' if self.authorizer.has_user(self.... | cb01c49a66d7848781b76239960b060d1d7dcf4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/cb01c49a66d7848781b76239960b060d1d7dcf4e/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
10884,
12,
2890,
16,
980,
4672,
468,
2660,
300,
5186,
624,
2944,
17862,
30,
296,
29631,
11,
2473,
19607,
11,
261,
13299,
9445,
326,
2774,
2798,
13,
468,
282,
7024,
364,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
10884,
12,
2890,
16,
980,
4672,
468,
2660,
300,
5186,
624,
2944,
17862,
30,
296,
29631,
11,
2473,
19607,
11,
261,
13299,
9445,
326,
2774,
2798,
13,
468,
282,
7024,
364,
279,
... |
ep = {} ep['season'] = season ep['episodeNumber'] = epNumber | ep = Episode() try: ep['season'] = season ep['episodeNumber'] = epNumber except: pass | def getEpisodes(self, series): self.imdb.update(series, 'episodes') eps = [] for season in series['episodes']: for epNumber, episode in series['episodes'][season].items(): ep = {} ep['season'] = season ep['episodeNumber'] = epNumber self.forwardData(ep, 'title', episode, 'title') self.forwardData(ep, 'synopsis', episod... | e95267c2023089aa52f2b533b286ac9114856a2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/e95267c2023089aa52f2b533b286ac9114856a2a/episodeimdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
84,
27134,
12,
2890,
16,
4166,
4672,
365,
18,
381,
1966,
18,
2725,
12,
10222,
16,
296,
881,
27134,
6134,
7785,
273,
5378,
364,
15874,
316,
4166,
3292,
881,
27134,
3546,
30,
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,
4774,
84,
27134,
12,
2890,
16,
4166,
4672,
365,
18,
381,
1966,
18,
2725,
12,
10222,
16,
296,
881,
27134,
6134,
7785,
273,
5378,
364,
15874,
316,
4166,
3292,
881,
27134,
3546,
30,
364,
... |
You can specify the number of known bits or digits with known_bits=k or known_digits=k; Pari is then told to compute the result using .8\*k of these bits/digits. (The Pari documentation recommends using a factor between .6 and .9, but internally defaults to .8.) Or, you can specify the precision to use directly with us... | You can specify the number of known bits or digits with ``known_bits=k`` or ``known_digits=k``; Pari is then told to compute the result using `0.8\*k` of these bits/digits. (The Pari documentation recommends using a factor between .6 and .9, but internally defaults to .8.) Or, you can specify the precision to use direc... | def algdep(z, n, known_bits=None, use_bits=None, known_digits=None, use_digits=None): """ Returns a polynomial of degree at most `n` which is approximately satisfied by the number `z`. Note that the returned polynomial need not be irreducible, and indeed usually won't be if `z` is a good approximation to an algebraic n... | 08206c95546f1db2a947692b19f3ca4ec939d5d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/08206c95546f1db2a947692b19f3ca4ec939d5d9/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11989,
15037,
12,
94,
16,
290,
16,
4846,
67,
6789,
33,
7036,
16,
999,
67,
6789,
33,
7036,
16,
4846,
67,
16649,
33,
7036,
16,
999,
67,
16649,
33,
7036,
4672,
3536,
2860,
279,
16991,
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,
11989,
15037,
12,
94,
16,
290,
16,
4846,
67,
6789,
33,
7036,
16,
999,
67,
6789,
33,
7036,
16,
4846,
67,
16649,
33,
7036,
16,
999,
67,
16649,
33,
7036,
4672,
3536,
2860,
279,
16991,
4... |
res[p.id] = (data['code'] and ('['+data['code']+'] ') or '') +data['name'] | res[p.id] = (data['code'] and ('['+data['code']+'] ') or '') + \ (data['name'] or '') | def _product_partner_ref(self, cr, uid, ids, name, arg, context={}): res = {} for p in self.browse(cr, uid, ids, context): data = self._get_partner_code_name(cr, uid, [], p.id, context.get('partner_id', None), context) res[p.id] = (data['code'] and ('['+data['code']+'] ') or '') +data['name'] return res | 754955a128b92ffe8d7279097ebe9817e9a608f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/754955a128b92ffe8d7279097ebe9817e9a608f8/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5896,
67,
31993,
67,
1734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
364,
293,
316,
365,
18,
25731,
12,
3353,
16,
4555,
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,
5896,
67,
31993,
67,
1734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
364,
293,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16... |
class ResourceCalendarCrowd(ConfigurableCrowd, LeaderCrowd): | class ResourceViewersCrowd(ConfigurableCrowd): setting_key = 'everyone_can_view_resource_info' class ResourceContainerViewersCrowd(ConfigurableCrowd): setting_key = 'everyone_can_view_resource_list' class ResourceCalendarViewersCrowd(ConfigurableCrowd): | def addResourceContainerToApplication(event): event.object['resources'] = ResourceContainer() | e8ef3fd222ab94134bce5924dd389bb80ac674b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/e8ef3fd222ab94134bce5924dd389bb80ac674b5/resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23812,
2170,
774,
3208,
12,
2575,
4672,
871,
18,
1612,
3292,
4683,
3546,
273,
2591,
2170,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23812,
2170,
774,
3208,
12,
2575,
4672,
871,
18,
1612,
3292,
4683,
3546,
273,
2591,
2170,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
iv_names[dev.iv_name] = (dev, dev.children, minors[idx]) | minors = [None for dev in instance.disks] logging.debug("Allocated minors %s" % (minors,)) | def _ExecD8Secondary(self, feedback_fn): """Replace the secondary node for drbd8. | 468b46f9258cc0753a66d6f643c8f930efdb23a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/468b46f9258cc0753a66d6f643c8f930efdb23a3/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
5081,
16410,
28,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
winInfo = self.getWinInfo( dt.year ) return -( winInfo.bias + self.dst( dt ) ) def dst( self, dt ): | winInfo = self.getWinInfo(dt.year) return -(winInfo.bias + self.dst(dt)) def dst(self, dt): | def utcoffset( self, dt ): "Calculates the utcoffset according to the datetime.tzinfo spec" if dt is None: return winInfo = self.getWinInfo( dt.year ) return -( winInfo.bias + self.dst( dt ) ) | 59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9439,
3348,
12,
365,
16,
3681,
262,
30,
315,
10587,
326,
9439,
3348,
4888,
358,
326,
3314,
18,
12994,
1376,
857,
6,
309,
3681,
353,
599,
30,
327,
5657,
966,
273,
365,
18,
588,
18049,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9439,
3348,
12,
365,
16,
3681,
262,
30,
315,
10587,
326,
9439,
3348,
4888,
358,
326,
3314,
18,
12994,
1376,
857,
6,
309,
3681,
353,
599,
30,
327,
5657,
966,
273,
365,
18,
588,
18049,
... |
this = apply(_quickfix.new_NoPosAmt, args) | this = _quickfix.new_NoPosAmt(*args) | def __init__(self, *args): this = apply(_quickfix.new_NoPosAmt, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
1616,
31787,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
1616,
31787,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
if error is not None: | if not success: parser = None | def parse(text, module=None, support=None, debug=False): create_globals(module, support, debug) lexer.lexdata = [] lexer.lexpos = 0 lexer.lineno = 1 try: parser.parse(text, debug=debug) except Exception, e: global error error = "internal parser error: %s" % str(e) + "\n" + traceback.format_exc() if error is not None:... | 52f9d9f2ad3225e44f9fd55722b49231f060e2f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7147/52f9d9f2ad3225e44f9fd55722b49231f060e2f3/refparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
955,
16,
1605,
33,
7036,
16,
2865,
33,
7036,
16,
1198,
33,
8381,
4672,
752,
67,
16227,
12,
2978,
16,
2865,
16,
1198,
13,
8512,
18,
4149,
892,
273,
5378,
8512,
18,
4149,
917... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
955,
16,
1605,
33,
7036,
16,
2865,
33,
7036,
16,
1198,
33,
8381,
4672,
752,
67,
16227,
12,
2978,
16,
2865,
16,
1198,
13,
8512,
18,
4149,
892,
273,
5378,
8512,
18,
4149,
917... |
try: import simplejson except ImportError: raise ImportError("Unable to import simplejson, needed for ExportToJson.") | def ExportToJson(self, as_object = False): """Exports a GeoJSON object which represents the Feature. The as_object parameter determines whether the returned value should be a Python object instead of a string. Defaults to False.""" output = {'type':'Feature', 'geometry': self.GetGeometryRef().ExportToJson(as_object=Tru... | bf1e2a3fd32658305781e19e94fffbefc9b30e09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/bf1e2a3fd32658305781e19e94fffbefc9b30e09/ogr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11054,
774,
3185,
12,
2890,
16,
487,
67,
1612,
273,
1083,
4672,
3536,
15352,
279,
9385,
2986,
733,
1492,
8686,
326,
7881,
18,
1021,
487,
67,
1612,
1569,
12949,
2856,
326,
2106,
460,
1410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11054,
774,
3185,
12,
2890,
16,
487,
67,
1612,
273,
1083,
4672,
3536,
15352,
279,
9385,
2986,
733,
1492,
8686,
326,
7881,
18,
1021,
487,
67,
1612,
1569,
12949,
2856,
326,
2106,
460,
1410... | |
u = father | u = parent s = "".join([parent, bit]) | def _generate_edges(self, tree, father='', id=''): if father=='': u = 'root' else: u = father try: return self._generate_edges(tree[0], father=father+id, id='0') + \ self._generate_edges(tree[1], father=father+id, id='1') + \ ([(u, father+id)] if (father+id) != '' else []) | 08cf8218c91d92b4dcb4602a7135f1d9d706af1e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/08cf8218c91d92b4dcb4602a7135f1d9d706af1e/huffman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
982,
272,
273,
1408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7163,
67,
8746,
12,
2890,
16,
2151,
16,
284,
4806,
2218,
2187,
612,
2218,
11,
4672,
309,
284,
4806,
18920,
4278,
582,
273,
296,
3085,
11,
469,
30,
582,
273,
982,
272,
273,
1408,
... |
IService(self.store).setServiceParent(self) MultiService.privilegedStartService(self) | def reallyStart(): IService(self.store).setServiceParent(self) MultiService.privilegedStartService(self) self.store.transact(reallyStart) | def privilegedStartService(self): self.store = Store(*self.a, **self.k) IService(self.store).setServiceParent(self) MultiService.privilegedStartService(self) | d301332798e6411d5e9b8cab7ac2e60f1f21e2a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6981/d301332798e6411d5e9b8cab7ac2e60f1f21e2a0/store.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11334,
2423,
1685,
1179,
12,
2890,
4672,
365,
18,
2233,
273,
4994,
30857,
2890,
18,
69,
16,
2826,
2890,
18,
79,
13,
467,
1179,
12,
2890,
18,
2233,
2934,
542,
1179,
3054,
12,
2890,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11334,
2423,
1685,
1179,
12,
2890,
4672,
365,
18,
2233,
273,
4994,
30857,
2890,
18,
69,
16,
2826,
2890,
18,
79,
13,
467,
1179,
12,
2890,
18,
2233,
2934,
542,
1179,
3054,
12,
2890,
13,
... |
BUF_SIZE=512 | def getAttrs (self, headers, url): # weed out the rules that dont apply to this url rules = filter(lambda r, u=url: r.appliesTo(u), self.rules) if not rules: return {} return {'buf': Buf(rules)} | d792f423cab25aa473c86812bb3c8611dd32d0cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/d792f423cab25aa473c86812bb3c8611dd32d0cf/Replacer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
8262,
261,
2890,
16,
1607,
16,
880,
4672,
468,
732,
329,
596,
326,
2931,
716,
14046,
2230,
358,
333,
880,
2931,
273,
1034,
12,
14661,
436,
16,
582,
33,
718,
30,
436,
18,
438,
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,
336,
8262,
261,
2890,
16,
1607,
16,
880,
4672,
468,
732,
329,
596,
326,
2931,
716,
14046,
2230,
358,
333,
880,
2931,
273,
1034,
12,
14661,
436,
16,
582,
33,
718,
30,
436,
18,
438,
52... | |
j = int(random() * (n-i)) | j = _int(random() * (n-i)) | def sample(self, population, k, int=int): """Chooses k unique random elements from a population sequence. | fdbe5223b7402ee34c4f0c06caa6faabd9e73e35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fdbe5223b7402ee34c4f0c06caa6faabd9e73e35/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3296,
12,
2890,
16,
11209,
16,
417,
16,
509,
33,
474,
4672,
3536,
9636,
538,
281,
417,
3089,
2744,
2186,
628,
279,
11209,
3102,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3296,
12,
2890,
16,
11209,
16,
417,
16,
509,
33,
474,
4672,
3536,
9636,
538,
281,
417,
3089,
2744,
2186,
628,
279,
11209,
3102,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
failure() | usagefailure("ERROR: VARIABLE '%s' OF INCOMPATIBLE SHAPES (?) IN FILES" % name) | def compare_vars(nc1, nc2, name, tol): from numpy import squeeze # Find variables: try: var1 = squeeze(nc1.variables[name][:]) var2 = squeeze(nc2.variables[name][:]) except: # This can happen if one of the files does not have the variable. failure() try: delta = abs(var1 - var2).max() except: # This can happen if vari... | 600c993bfecdc1612e545f1cceece934dd01593b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7383/600c993bfecdc1612e545f1cceece934dd01593b/nccmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4699,
12,
14202,
21,
16,
8194,
22,
16,
508,
16,
6085,
4672,
628,
3972,
1930,
17173,
468,
4163,
3152,
30,
775,
30,
569,
21,
273,
17173,
12,
14202,
21,
18,
7528,
63,
529,
636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4699,
12,
14202,
21,
16,
8194,
22,
16,
508,
16,
6085,
4672,
628,
3972,
1930,
17173,
468,
4163,
3152,
30,
775,
30,
569,
21,
273,
17173,
12,
14202,
21,
18,
7528,
63,
529,
636... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.