rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
directlyProvides(request, iface) | alsoProvides(request, iface) | def __call__(self, request): try: # As of BFG 1.1a9, a root factory is now typically called # with a request object (instead of a WSGI environ, as in # previous versions) by the router. Simultaneously, as of # 1.1a9, the RoutesRootFactory *requires* that the object # passed to it be a request, instead of an environ, a... | c37d6ac18aaeb839fd38b2ef4a1a66b264ba3888 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/c37d6ac18aaeb839fd38b2ef4a1a66b264ba3888/urldispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
590,
4672,
775,
30,
468,
2970,
434,
605,
42,
43,
404,
18,
21,
69,
29,
16,
279,
1365,
3272,
353,
2037,
14755,
2566,
468,
598,
279,
590,
733,
261,
8591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
590,
4672,
775,
30,
468,
2970,
434,
605,
42,
43,
404,
18,
21,
69,
29,
16,
279,
1365,
3272,
353,
2037,
14755,
2566,
468,
598,
279,
590,
733,
261,
8591,
... |
if asking.has_key(self): | if self in asking: | def wait_stable(self): w("WAIT_STABLE on space", id(self), "from space", id(str(get_current_cspace(self.space)))) if self.is_stable(): return curr = ClonableCoroutine.w_getcurrent(self.space) assert isinstance(curr, ClonableCoroutine) asking = sched.uler._asking if asking.has_key(self): asking[self][curr] = True else: ... | 54881f56e7aa03371aaad14bdbbf78baa2d4d1e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/54881f56e7aa03371aaad14bdbbf78baa2d4d1e9/scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
67,
15021,
12,
2890,
4672,
341,
2932,
19046,
67,
882,
2782,
603,
3476,
3113,
612,
12,
2890,
3631,
315,
2080,
3476,
3113,
612,
12,
701,
12,
588,
67,
2972,
67,
2143,
909,
12,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
67,
15021,
12,
2890,
4672,
341,
2932,
19046,
67,
882,
2782,
603,
3476,
3113,
612,
12,
2890,
3631,
315,
2080,
3476,
3113,
612,
12,
701,
12,
588,
67,
2972,
67,
2143,
909,
12,
2890,... |
deps[f] = set(this_deps) visited.add(f) for d in this_deps: if d not in visited: deps_graph(deps, d, visited) def need_to_build(deps, f, outfile): if is_newer(f, outfile): print '\nBuilding %s because it depends on %s.' % (outfile, f) return True | pass | def deps_graph(deps, f, visited=set([])): # first we find all the dependencies of f f = module_path(f) this_deps = search_all_includes(f) try: deps[f] = deps[f].union(set(this_deps)) except KeyError: deps[f] = set(this_deps) visited.add(f) for d in this_deps: if d not in visited: deps_graph(deps, d, visited) | 697d48ce28ff4d12606adf26a8fb095216c31678 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/697d48ce28ff4d12606adf26a8fb095216c31678/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8740,
67,
4660,
12,
14877,
16,
284,
16,
9711,
33,
542,
3816,
22643,
30,
468,
1122,
732,
1104,
777,
326,
5030,
434,
284,
284,
273,
1605,
67,
803,
12,
74,
13,
333,
67,
14877,
273,
1623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8740,
67,
4660,
12,
14877,
16,
284,
16,
9711,
33,
542,
3816,
22643,
30,
468,
1122,
732,
1104,
777,
326,
5030,
434,
284,
284,
273,
1605,
67,
803,
12,
74,
13,
333,
67,
14877,
273,
1623... |
bytes_recv = 0 | def test_rein_during_transfer(self): self.client.login(user=USER, passwd=PASSWD) data = 'abcde12345' * 100000 self.f1.write(data) self.f1.close() | 01b9245edb7880250424a1f6998bed3fcf477d7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3782/01b9245edb7880250424a1f6998bed3fcf477d7c/test_ftpd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
266,
267,
67,
72,
4017,
67,
13866,
12,
2890,
4672,
365,
18,
2625,
18,
5819,
12,
1355,
33,
4714,
16,
19093,
33,
10884,
16006,
13,
501,
273,
296,
18947,
323,
2138,
25574,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
266,
267,
67,
72,
4017,
67,
13866,
12,
2890,
4672,
365,
18,
2625,
18,
5819,
12,
1355,
33,
4714,
16,
19093,
33,
10884,
16006,
13,
501,
273,
296,
18947,
323,
2138,
25574,
11,
... | |
self.label.set_markup("<span foreground=\"dark gray\"><b>%s</b></span>" % text) | self.label.set_markup("<b>%s</b>" % text) | def parse_paramlist(self): try: paramlist = self.content.type_paramlist except: paramlist = [] name = self.content.name text = types["HOME"] | a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
891,
1098,
12,
2890,
4672,
775,
30,
579,
1098,
273,
365,
18,
1745,
18,
723,
67,
891,
1098,
1335,
30,
579,
1098,
273,
5378,
508,
273,
365,
18,
1745,
18,
529,
977,
273,
1953,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
67,
891,
1098,
12,
2890,
4672,
775,
30,
579,
1098,
273,
365,
18,
1745,
18,
723,
67,
891,
1098,
1335,
30,
579,
1098,
273,
5378,
508,
273,
365,
18,
1745,
18,
529,
977,
273,
1953,... |
pos *= 2 return super(StringIO, self).truncate(pos)//2 | pos *= self.charsize return super(StringIO, self).truncate(pos)//self.charsize | def truncate(self, pos=None): if pos is not None: pos *= 2 return super(StringIO, self).truncate(pos)//2 | 4540b95add4ed46c4b3627954a5524baa0151301 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/4540b95add4ed46c4b3627954a5524baa0151301/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
12,
2890,
16,
949,
33,
7036,
4672,
309,
949,
353,
486,
599,
30,
949,
6413,
576,
327,
2240,
12,
780,
4294,
16,
365,
2934,
27201,
12,
917,
13,
759,
22,
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,
10310,
12,
2890,
16,
949,
33,
7036,
4672,
309,
949,
353,
486,
599,
30,
949,
6413,
576,
327,
2240,
12,
780,
4294,
16,
365,
2934,
27201,
12,
917,
13,
759,
22,
2,
-100,
-100,
-100,
-100... |
self.clip = self.book.GetPage(sel).text.Copy(True) | self.clip = self.book.GetPage(sel).text.Cut() | def OnCut(self, evt): sel = self.book.GetSelection() if sel != -1: self.clip = self.book.GetPage(sel).text.Copy(True) | 2947bcd65ade14a0876289c7282975361342b4ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2678/2947bcd65ade14a0876289c7282975361342b4ea/bride.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
15812,
12,
2890,
16,
6324,
4672,
357,
273,
365,
18,
3618,
18,
967,
6233,
1435,
309,
357,
480,
300,
21,
30,
365,
18,
14161,
273,
365,
18,
3618,
18,
967,
1964,
12,
1786,
2934,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
15812,
12,
2890,
16,
6324,
4672,
357,
273,
365,
18,
3618,
18,
967,
6233,
1435,
309,
357,
480,
300,
21,
30,
365,
18,
14161,
273,
365,
18,
3618,
18,
967,
1964,
12,
1786,
2934,
95... |
-2061914958 """ return hash(self._repr_(simplify=False)) | -2061914958 In this example hashing is important otherwise the answer is wrong: sage: uniq([x-x, -x+x]) [0] """ return hash(self._repr_(simplify=True)) | def __hash__(self): """ Returns the hash of this symbolic expression. | d40468a6bc783c6d9eb15f12ef7143cc4bbc538f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d40468a6bc783c6d9eb15f12ef7143cc4bbc538f/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
3536,
2860,
326,
1651,
434,
333,
16754,
2652,
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,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
3536,
2860,
326,
1651,
434,
333,
16754,
2652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for fd, obj in map.iteritems(): | for fd, obj in map.items(): | def poll3 (timeout=0.0, map=None): # Use the poll() support added to the select module in Python 2.0 if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) pollster = select.poll() if map: for fd, obj in map.iteritems(): flags = 0 if obj.readable(): flags = selec... | f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
23,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
468,
2672,
326,
7672,
1435,
2865,
3096,
358,
326,
2027,
1605,
316,
6600,
576,
18,
20,
309,
852,
353,
599,
30,
852,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
23,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
468,
2672,
326,
7672,
1435,
2865,
3096,
358,
326,
2027,
1605,
316,
6600,
576,
18,
20,
309,
852,
353,
599,
30,
852,
33,
... |
'it has changes.\n') % self._path) | 'it has changes.\n') % self._relpath) | def remove(self): if self.dirty(): self._ui.warn(_('not removing repo %s because ' 'it has changes.\n') % self._path) return # we can't fully delete the repository as it may contain # local-only history self._ui.note(_('removing subrepo %s\n') % self._path) self._gitcommand(['config', 'core.bare', 'true']) for f in os.... | 51b86ca31bbe6bb9d97c098b43cb9fa45776b689 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/51b86ca31bbe6bb9d97c098b43cb9fa45776b689/subrepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
18,
18013,
13332,
365,
6315,
4881,
18,
8935,
24899,
2668,
902,
9427,
3538,
738,
87,
2724,
296,
296,
305,
711,
3478,
8403,
82,
6134,
738,
365,
6315,
2878,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
4672,
309,
365,
18,
18013,
13332,
365,
6315,
4881,
18,
8935,
24899,
2668,
902,
9427,
3538,
738,
87,
2724,
296,
296,
305,
711,
3478,
8403,
82,
6134,
738,
365,
6315,
2878,
... |
if set(['auth.password', 'auth.username', 'sip.outbound_proxy', 'sip.transport_list', 'sip.register_interval']).intersection(notification.data.modified) and self.sip.register: self._registrar.reload_settings() if set(['auth.password', 'auth.username', 'sip.outbound_proxy', 'sip.transport_list', 'sip.subscribe_interval'... | registrar_attributes = ['auth.password', 'auth.username', 'sip.outbound_proxy', 'sip.transport_list', 'sip.register_interval'] voicemail_attributes = ['auth.password', 'auth.username', 'sip.outbound_proxy', 'sip.transport_list', 'sip.subscribe_interval', 'message_summary.voicemail_uri'] if 'sip.register' in notificatio... | def _NH_CFGSettingsObjectDidChange(self, notification): # activate/deactivate the account or start/stop/reload the registration process if self._started: if 'enabled' in notification.data.modified: if self.enabled: self._activate() else: self._deactivate() elif self.enabled and 'sip.register' in notification.data.modif... | e1fb0c6e3bda370a7d79a74983fc4c4255e621b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/e1fb0c6e3bda370a7d79a74983fc4c4255e621b0/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
19727,
2628,
921,
18250,
3043,
12,
2890,
16,
3851,
4672,
468,
10235,
19,
323,
10014,
326,
2236,
578,
787,
19,
5681,
19,
17517,
326,
7914,
1207,
309,
365,
6315,
14561,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
50,
44,
67,
19727,
2628,
921,
18250,
3043,
12,
2890,
16,
3851,
4672,
468,
10235,
19,
323,
10014,
326,
2236,
578,
787,
19,
5681,
19,
17517,
326,
7914,
1207,
309,
365,
6315,
14561,
... |
self.rpcpid = os.spawnv(os.P_NOWAIT, args[0], args) | self.rpcpid = os.spawnv(os.P_NOWAIT, sys.executable, args) | def spawn_subprocess(self): args = self.subprocess_arglist self.rpcpid = os.spawnv(os.P_NOWAIT, args[0], args) | 60fddd0161c3ebd91fd93c179228a0f50458838f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/60fddd0161c3ebd91fd93c179228a0f50458838f/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
67,
1717,
2567,
12,
2890,
4672,
833,
273,
365,
18,
1717,
2567,
67,
3175,
1098,
365,
18,
7452,
6610,
273,
1140,
18,
1752,
9533,
90,
12,
538,
18,
52,
67,
3417,
19046,
16,
833,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
67,
1717,
2567,
12,
2890,
4672,
833,
273,
365,
18,
1717,
2567,
67,
3175,
1098,
365,
18,
7452,
6610,
273,
1140,
18,
1752,
9533,
90,
12,
538,
18,
52,
67,
3417,
19046,
16,
833,
6... |
return Popen(["git", "fast-export", "--all"] + extra_args, | return Popen(["git", "fast-export", "--all", "--topo-order"] + extra_args, | def FastExportOutput(source_repo, extra_args = []): return Popen(["git", "fast-export", "--all"] + extra_args, stdout = PIPE, cwd = source_repo).stdout | 32d680bd9bc2f2737294d4decc7e310d13137e66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10384/32d680bd9bc2f2737294d4decc7e310d13137e66/git_fast_filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9545,
6144,
1447,
12,
3168,
67,
7422,
16,
2870,
67,
1968,
273,
5378,
4672,
327,
14339,
3816,
6,
6845,
3113,
315,
8076,
17,
6530,
3113,
5238,
454,
3113,
5238,
3669,
83,
17,
1019,
11929,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9545,
6144,
1447,
12,
3168,
67,
7422,
16,
2870,
67,
1968,
273,
5378,
4672,
327,
14339,
3816,
6,
6845,
3113,
315,
8076,
17,
6530,
3113,
5238,
454,
3113,
5238,
3669,
83,
17,
1019,
11929,
... |
""" | TESTS: sage: R.<X>=QQ[] sage: a=R(1) sage: b=X sage: lcm(b,a) X sage: lcm(a,b) X """ if self.is_constant() and not right.is_constant(): self, right = right, self | def lcm_func(self, right, have_ring=False): """ Returns the least common multiple of this element and the right element. INPUT: right -- multivariate polynomial have_ring -- see self._singular_() (default:False) OUTPUT: multivariate polynomial representing the least common multiple of self and right ALGORITHM: Singu... | 9d65730efbf31e0c139f230c5c9c5a1fb8adcbed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9d65730efbf31e0c139f230c5c9c5a1fb8adcbed/polynomial_singular_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
7670,
67,
644,
12,
2890,
16,
2145,
16,
1240,
67,
8022,
33,
8381,
4672,
225,
22130,
55,
30,
272,
410,
30,
534,
22782,
60,
34,
33,
53,
53,
8526,
272,
410,
30,
279,
33,
54,
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,
328,
7670,
67,
644,
12,
2890,
16,
2145,
16,
1240,
67,
8022,
33,
8381,
4672,
225,
22130,
55,
30,
272,
410,
30,
534,
22782,
60,
34,
33,
53,
53,
8526,
272,
410,
30,
279,
33,
54,
12,
... |
if self.extensions.has_key(extype) and \ | if self.extensions and \ self.extensions.has_key(extype) and \ | def __getattr__(self,name): if self.attr2extype.has_key(name): extype = self.attr2extype[name] if self.extensions.has_key(extype) and \ not self.extensions[extype].exvalue is None: result = unquote(self.extensions[extype].exvalue) else: return None else: raise AttributeError,"%s has no attribute %s" % ( self.__class__.... | ef3632156ae9474ba393804f5141630f30b763c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4610/ef3632156ae9474ba393804f5141630f30b763c3/ldapurl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
529,
4672,
309,
365,
18,
1747,
22,
408,
388,
18,
5332,
67,
856,
12,
529,
4672,
1110,
388,
273,
365,
18,
1747,
22,
408,
388,
63,
529,
65,
309,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
529,
4672,
309,
365,
18,
1747,
22,
408,
388,
18,
5332,
67,
856,
12,
529,
4672,
1110,
388,
273,
365,
18,
1747,
22,
408,
388,
63,
529,
65,
309,
36... |
rpcStub = subRequestAttributes['Arguments'] | rpcStubString = subRequestAttributes['Arguments'] rpcStub = DEncode.decode(rpcStubString)[0] | def execute(self): """ Takes the DISET requests and forwards to destination service """ gMonitor.addMark("Iteration",1) res = self.RequestDBClient.getRequest('DISET',url=self.local) if not res['OK']: gLogger.error("DISETForwardingAgent.execute: Failed to get request from database.",self.local) return S_OK() elif not re... | 19b2f367bc8effd956e7411b8b85ca733e1c3087 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/19b2f367bc8effd956e7411b8b85ca733e1c3087/DISETForwardingAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
23004,
326,
3690,
4043,
3285,
471,
24578,
358,
2929,
1156,
3536,
314,
7187,
18,
1289,
3882,
2932,
10795,
3113,
21,
13,
400,
273,
365,
18,
691,
2290,
1227,
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,
1836,
12,
2890,
4672,
3536,
23004,
326,
3690,
4043,
3285,
471,
24578,
358,
2929,
1156,
3536,
314,
7187,
18,
1289,
3882,
2932,
10795,
3113,
21,
13,
400,
273,
365,
18,
691,
2290,
1227,
18,... |
sigkeys = [rpmtag["dsaheader"], rpmtag["gpg"]] sigkeys2 = [rpmtag["pgp"], rpmtag["badsha1_2"]] reqsig = [rpmtag["header_signatures"], rpmtag["payloadsize"], rpmtag["size_in_sig"], rpmtag["sha1header"], rpmtag["md5"]] | def getTag(tag): """Find the integer tag.""" import types if isinstance(tag, types.IntType): return tag elif isinstance(tag, types.StringType): if tag[:3] == "RPM": return eval("rpmconstants.%s" % tag) else: if rpmtag.has_key(tag): return rpmtag[tag] return eval("rpmconstants.RPMTAG_%s" % tag.upper()) return None | c819e0dd29dbf709cbbec0e33ea73798da3642da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/c819e0dd29dbf709cbbec0e33ea73798da3642da/pyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11362,
12,
2692,
4672,
3536,
3125,
326,
3571,
1047,
12123,
1930,
1953,
309,
1549,
12,
2692,
16,
1953,
18,
1702,
559,
4672,
327,
1047,
1327,
1549,
12,
2692,
16,
1953,
18,
780,
559,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11362,
12,
2692,
4672,
3536,
3125,
326,
3571,
1047,
12123,
1930,
1953,
309,
1549,
12,
2692,
16,
1953,
18,
1702,
559,
4672,
327,
1047,
1327,
1549,
12,
2692,
16,
1953,
18,
780,
559,
4672,
... | |
def test_float_in_ptr(self): TestGI.float_in_ptr(Number(self.MAX)) self.assertRaises(TypeError, TestGI.float_in_ptr, None) | def test_float_in_ptr(self): TestGI.float_in_ptr(Number(self.MAX)) self.assertRaises(TypeError, TestGI.float_in_ptr, None) | aefac8c5f64bf059dd6652f8a843d17b34fa0854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/aefac8c5f64bf059dd6652f8a843d17b34fa0854/test_gi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5659,
67,
267,
67,
6723,
12,
2890,
4672,
7766,
13797,
18,
5659,
67,
267,
67,
6723,
12,
1854,
12,
2890,
18,
6694,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
7766,
13797... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5659,
67,
267,
67,
6723,
12,
2890,
4672,
7766,
13797,
18,
5659,
67,
267,
67,
6723,
12,
1854,
12,
2890,
18,
6694,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
7766,
13797... | |
APP_FADE_EFFECT = "/apps/avant-window-navigator/app/fade_effect" | def make_color_string(color, alpha): """makes avant-readable string from gdk.color & alpha (0-65535) """ string = "" string = string + dec2hex(int( (float(color.red) / 65535)*255)) string = string + dec2hex(int( (float(color.green) / 65535)*255)) string = string + dec2hex(int( (float(color.blue) / 65535)*255)) string ... | a6a88c46442394d318d14f37ea1dc8aca9994e08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8416/a6a88c46442394d318d14f37ea1dc8aca9994e08/awnPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
3266,
67,
1080,
12,
3266,
16,
4190,
4672,
3536,
81,
3223,
1712,
970,
17,
11018,
533,
628,
314,
2883,
18,
3266,
473,
4190,
261,
20,
17,
26,
2539,
4763,
13,
3536,
533,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
3266,
67,
1080,
12,
3266,
16,
4190,
4672,
3536,
81,
3223,
1712,
970,
17,
11018,
533,
628,
314,
2883,
18,
3266,
473,
4190,
261,
20,
17,
26,
2539,
4763,
13,
3536,
533,
273,
1... | |
networks = dict([(record['name_label'], record['uuid']) for record in server.xenapi.network.get_all_records()]) | networks = dict([(record['name_label'], ref) for ref, record in server.xenapi.network.get_all_records().items()]) | def create_vif(self, vm_ref, vif, networks): log(DEBUG, "create_vif") | f122c842b95f28e8d4885c6df13014e7727114f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/f122c842b95f28e8d4885c6df13014e7727114f2/xenapi_create.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
90,
430,
12,
2890,
16,
4268,
67,
1734,
16,
331,
430,
16,
13884,
4672,
613,
12,
9394,
16,
315,
2640,
67,
90,
430,
7923,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
90,
430,
12,
2890,
16,
4268,
67,
1734,
16,
331,
430,
16,
13884,
4672,
613,
12,
9394,
16,
315,
2640,
67,
90,
430,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
all_repos = self.sa.query(Repository).all() | all_repos = self.sa.query(Repository)\ .order_by(Repository.repo_name).all() | def get_repos(self, all_repos=None): """ Get all repos from db and for each repo create it's backend instance. and fill that backed with information from database :param all_repos: give specific repositories list, good for filtering """ if not all_repos: all_repos = self.sa.query(Repository).all() | fd989d903535a4766509e97f9de5ba63ddbe9a79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/fd989d903535a4766509e97f9de5ba63ddbe9a79/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15564,
12,
2890,
16,
777,
67,
15564,
33,
7036,
4672,
3536,
968,
777,
13686,
628,
1319,
471,
364,
1517,
3538,
752,
518,
1807,
4221,
791,
18,
471,
3636,
716,
20732,
598,
1779,
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,
336,
67,
15564,
12,
2890,
16,
777,
67,
15564,
33,
7036,
4672,
3536,
968,
777,
13686,
628,
1319,
471,
364,
1517,
3538,
752,
518,
1807,
4221,
791,
18,
471,
3636,
716,
20732,
598,
1779,
6... |
def block_unwrap(node): hasBlock = False if node.type == "block": if len(node) == 0: result = ";" elif len(node) == 1: result = compress(node[0]) else: result = compress(node) hasBlock = True else: result = compress(node) return result, hasBlock | def compress(node): type = node.type if type in simple: return type elif type in prefixes: return prefixes[node.type] + compress(node[0]) elif type in postfixes: return compress(node[0]) + postfixes[node.type] elif type in dividers: return dividers[node.type].join(map(compress, node)) else: try: return globals()["__" ... | aa08ce4c8b8d7e115947659d1485252ed4883126 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/aa08ce4c8b8d7e115947659d1485252ed4883126/Compressor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8099,
12,
2159,
4672,
618,
273,
756,
18,
723,
225,
309,
618,
316,
4143,
30,
327,
618,
1327,
618,
316,
9419,
30,
327,
9419,
63,
2159,
18,
723,
65,
397,
8099,
12,
2159,
63,
20,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8099,
12,
2159,
4672,
618,
273,
756,
18,
723,
225,
309,
618,
316,
4143,
30,
327,
618,
1327,
618,
316,
9419,
30,
327,
9419,
63,
2159,
18,
723,
65,
397,
8099,
12,
2159,
63,
20,
5717,
... | |
troveset.findByName(sourceName) | troveset.findBySourceName(sourceName) | def findBySourceName(self, sourceName): """ troveset.findByName(sourceName) | d644430354b44130bb406b8ba0f5f6e7a6f15e3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/d644430354b44130bb406b8ba0f5f6e7a6f15e3c/groupsetrecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6224,
1830,
461,
12,
2890,
16,
28337,
4672,
3536,
23432,
3324,
278,
18,
4720,
5911,
12,
3168,
461,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6224,
1830,
461,
12,
2890,
16,
28337,
4672,
3536,
23432,
3324,
278,
18,
4720,
5911,
12,
3168,
461,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.ca_passphrases[ca] = cp.get('sslca', ca+'_passphrase') | self.CAs[ca] = dict(cp.items('sslca_'+ca)) | def HandleEvent(self, event=None): """ Updates which files this plugin handles based upon filesystem events. Allows configuration items to be added/removed without server restarts. """ action = event.code2str() if event.filename[0] == '/' or event.filename.startswith('CAs'): return epath = "".join([self.data, self.hand... | 6bbd4d6797d763777188d3984808f1ff692b2376 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/6bbd4d6797d763777188d3984808f1ff692b2376/SSLCA.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1133,
12,
2890,
16,
871,
33,
7036,
4672,
3536,
15419,
1492,
1390,
333,
1909,
7372,
2511,
12318,
6496,
2641,
18,
25619,
1664,
1516,
358,
506,
3096,
19,
14923,
2887,
1438,
7870,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1133,
12,
2890,
16,
871,
33,
7036,
4672,
3536,
15419,
1492,
1390,
333,
1909,
7372,
2511,
12318,
6496,
2641,
18,
25619,
1664,
1516,
358,
506,
3096,
19,
14923,
2887,
1438,
7870,
87,
... |
threadpool.append(threading.Thread(target=self.move_contents, args=(cat_title, catmap[cat]), kwargs=dict(editSummary=comment))) while len(counts) < len(catlist): | threadpool.append( threading.Thread(target=self.move_contents, args=(cat_title, catmap[cat]), kwargs=dict(editSummary=comment))) while len(counts) < len(cats_to_empty): | def run(self): """Run the bot""" self.site = wikipedia.getSite() self.catprefix = self.site.namespace(14)+":" self.result_queue = Queue.Queue() self.log_text = [] | ca6eab2770b59d8de16a37e0a8778c56d5e52a34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ca6eab2770b59d8de16a37e0a8778c56d5e52a34/category_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
2512,
8395,
365,
18,
4256,
273,
21137,
18,
588,
4956,
1435,
365,
18,
2574,
3239,
273,
365,
18,
4256,
18,
4937,
12,
3461,
13,
9078,
2773,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
2512,
8395,
365,
18,
4256,
273,
21137,
18,
588,
4956,
1435,
365,
18,
2574,
3239,
273,
365,
18,
4256,
18,
4937,
12,
3461,
13,
9078,
2773,
365,
18,... |
self.settings.dummy = ConfigNothing() conflist.append(getConfigListEntry("", self.settings.dummy)) | conflist.append(('',)) | def fillList(self, arg=None): streams = [] conflist = [] selectedidx = 0 service = self.session.nav.getCurrentService() self.audioTracks = audio = service and service.audioTracks() n = audio and audio.getNumberOfTracks() or 0 if self.settings.menupage.getValue() == PAGE_AUDIO: self.setTitle(_("Select audio track")) i... | e9be0f345b0237bd60e12b7ffc36c5dbd1a09cec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/e9be0f345b0237bd60e12b7ffc36c5dbd1a09cec/AudioSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
682,
12,
2890,
16,
1501,
33,
7036,
4672,
8205,
273,
5378,
2195,
1098,
273,
5378,
3170,
3465,
273,
374,
225,
1156,
273,
365,
18,
3184,
18,
11589,
18,
588,
3935,
1179,
1435,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
682,
12,
2890,
16,
1501,
33,
7036,
4672,
8205,
273,
5378,
2195,
1098,
273,
5378,
3170,
3465,
273,
374,
225,
1156,
273,
365,
18,
3184,
18,
11589,
18,
588,
3935,
1179,
1435,
365,
1... |
assert ap == u'/foo[1]/baz[1]' | assert ap == u'/foo/baz' | def test_abspath_with_ns(): doc = parse(XML1) baz2 = doc.xml_first_child.xml_first_child ap = abspath(baz2) assert ap == u'/foo[1]/baz[1]' ap = abspath(baz2.xml_following_sibling) assert ap == u'/foo[1]/bar:baz[1]' | a2e357919857ad41e629083b96743665e09b2981 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14078/a2e357919857ad41e629083b96743665e09b2981/test_abs_path.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5113,
803,
67,
1918,
67,
2387,
13332,
997,
273,
1109,
12,
4201,
21,
13,
29025,
22,
273,
997,
18,
2902,
67,
3645,
67,
3624,
18,
2902,
67,
3645,
67,
3624,
513,
273,
9488,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5113,
803,
67,
1918,
67,
2387,
13332,
997,
273,
1109,
12,
4201,
21,
13,
29025,
22,
273,
997,
18,
2902,
67,
3645,
67,
3624,
18,
2902,
67,
3645,
67,
3624,
513,
273,
9488,
12,... |
loc.coordinates = me_xyz + (dist_vect * multiply) | loc.coordinates = me.location.coordinates + (dist_vect * multiply) | def run(self, me): lst_of_what = me.mem.recall_place(me.location,self.range,self.what) if lst_of_what==[]: return dist_vect=distance_to(me.location,lst_of_what[0].location).unit_vector() multiply = const.base_velocity * self.direction loc = Location(me.location.parent) loc.coordinates = me_xyz + (dist_vect * multiply)... | 37178eb88e65e68457f21adda5b69e7f5081be6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/37178eb88e65e68457f21adda5b69e7f5081be6c/move.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1791,
4672,
9441,
67,
792,
67,
23770,
273,
1791,
18,
3917,
18,
266,
1991,
67,
964,
12,
3501,
18,
3562,
16,
2890,
18,
3676,
16,
2890,
18,
23770,
13,
309,
9441,
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,
1086,
12,
2890,
16,
1791,
4672,
9441,
67,
792,
67,
23770,
273,
1791,
18,
3917,
18,
266,
1991,
67,
964,
12,
3501,
18,
3562,
16,
2890,
18,
3676,
16,
2890,
18,
23770,
13,
309,
9441,
67,... |
self.ImportSettings('Mozilla Firefox', False, ['ALL']) self.ImportSettings('Safari', False, ['ALL']) | self.ImportSettings('Mozilla Firefox', False, self._to_import) self.ImportSettings('Safari', False, self._to_import) | def testImportFromFirefoxAndSafari(self): """Verify importing from Firefox and then Safari.""" # This test is for Mac only. if not self.IsMac(): return | 98d75b89680c12c09bb081ebf1cdbbeed7c61eb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/98d75b89680c12c09bb081ebf1cdbbeed7c61eb6/imports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5010,
1265,
9723,
13873,
1876,
55,
19328,
12,
2890,
4672,
3536,
8097,
25077,
628,
22950,
471,
1508,
26690,
12123,
468,
1220,
1842,
353,
364,
13217,
1338,
18,
309,
486,
365,
18,
2520,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
5010,
1265,
9723,
13873,
1876,
55,
19328,
12,
2890,
4672,
3536,
8097,
25077,
628,
22950,
471,
1508,
26690,
12123,
468,
1220,
1842,
353,
364,
13217,
1338,
18,
309,
486,
365,
18,
2520,... |
SELECT avg(viruses_"""+self.__vendor_name+"""_blocked), max(viruses_"""+self.__vendor_name+"""_blocked) FROM (select date_trunc('day', trunc_time) AS day, sum(viruses_"""+self.__vendor_name+"""_blocked) AS viruses_"""+self.__vendor_name+"""_blocked FROM reports.n_http_totals WHERE trunc_time >= %s AND trunc_time < %s""... | SELECT m.virus_"""+self.__vendor_name+"""_name as name, (h.virus_"""+self.__vendor_name+"""_detected + m.virus_"""+self.__vendor_name+"""_detected) AS foo FROM reports.n_virus_mail_totals AS m, reports.n_virus_http_totals AS h WHERE m.trunc_time >= %s AND m.trunc_time < %s AND h.trunc_time >= %s AND h.trunc_time < %s ... | def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None | 105b5e27bf63d007da247194879b178db12c5076 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/105b5e27bf63d007da247194879b178db12c5076/untangle_base_virus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
-100,
-100,
-1... |
formats.append(self.source.get(offset, token_start)) | formats.append(self.source[offset:token_start]) | def _handle(self, node, base_children, eat_parens=False, eat_spaces=False): if hasattr(node, 'region'): # ???: The same node was seen twice; what should we do? warnings.warn( 'Node <%s> has been already patched; please report!' % node.__class__.__name__, RuntimeWarning) return base_children = collections.deque(base_chi... | ba0d2a04c4d268c70f121c7ad4cb029e38c84324 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/ba0d2a04c4d268c70f121c7ad4cb029e38c84324/patchedast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
12,
2890,
16,
756,
16,
1026,
67,
5906,
16,
20729,
67,
1848,
2387,
33,
8381,
16,
20729,
67,
9554,
33,
8381,
4672,
309,
3859,
12,
2159,
16,
296,
6858,
11,
4672,
468,
5317,
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,
389,
4110,
12,
2890,
16,
756,
16,
1026,
67,
5906,
16,
20729,
67,
1848,
2387,
33,
8381,
16,
20729,
67,
9554,
33,
8381,
4672,
309,
3859,
12,
2159,
16,
296,
6858,
11,
4672,
468,
5317,
3... |
list.append('%s: %s\n' % (str(stype), str(value))) return list | list.append('%s: %s\n' % (str(stype), _some_str(value))) return list def _some_str(value): try: return str(value) except: return '<unprintable %s object>' % type(value).__name__ | def format_exception_only(etype, value): """Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError... | 4938bce6577cf8214b739a4a83fc4b608dd5967d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4938bce6577cf8214b739a4a83fc4b608dd5967d/traceback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,... |
prefix = 'http://gdata.youtube.com/feeds/api/videos?racy=include&orderby=viewCount&vq=' | prefix = u'http://gdata.youtube.com/feeds/api/videos?racy=include&orderby=viewCount&vq=' | def search(self, event=None, search=u''): Damnlog('YouTube browser is now searching for', search, 'from event', event) self.scrollpanel.Hide() self.waitingpanel.Show() self.toppanel.Layout() if not search: search = self.searchbox.GetValue() if not search: return search=DamnUnicode(search) self.searchbutton.LoadFile(DV.... | 371889325452e864707c025214d1b8c204b791d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/371889325452e864707c025214d1b8c204b791d0/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
871,
33,
7036,
16,
1623,
33,
89,
6309,
4672,
463,
301,
82,
1330,
2668,
6225,
27195,
4748,
353,
2037,
15300,
364,
2187,
1623,
16,
296,
2080,
871,
2187,
871,
13,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
871,
33,
7036,
16,
1623,
33,
89,
6309,
4672,
463,
301,
82,
1330,
2668,
6225,
27195,
4748,
353,
2037,
15300,
364,
2187,
1623,
16,
296,
2080,
871,
2187,
871,
13,
365,... |
dict = {} | def readmodule(module, path=[], inpackage=0): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module.''' i = string.rfind(module, '.') if i >= 0: # Dotted module name package ... | 4d5c0343252aa15051a12da5ee8efeac3f3ea387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4d5c0343252aa15051a12da5ee8efeac3f3ea387/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
12,
2978,
16,
589,
22850,
6487,
316,
5610,
33,
20,
4672,
9163,
1994,
279,
1605,
585,
471,
327,
279,
3880,
434,
3318,
18,
225,
5167,
364,
14057,
316,
7767,
471,
2589,
18,
803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
12,
2978,
16,
589,
22850,
6487,
316,
5610,
33,
20,
4672,
9163,
1994,
279,
1605,
585,
471,
327,
279,
3880,
434,
3318,
18,
225,
5167,
364,
14057,
316,
7767,
471,
2589,
18,
803... | |
\begin{itemize} \item There are even faster ways to do this; for some coefficient | -- There are even faster ways to do this; for some coefficient | def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision. | e3da1adc8389e7da0a376ad725e9a58a421ff673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/e3da1adc8389e7da0a376ad725e9a58a421ff673/power_series_ring_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
12,
2890,
16,
13382,
273,
27272,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1329,
12,
2890,
16,
13382,
273,
27272,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if path.startswith(self.scope): | if rev > 0 and path.startswith(self.scope): | def get_history(self): history = _get_history(self.scope + self.path, self.authz, self.fs_ptr, self.pool, self.rev) for path, rev in history: if path.startswith(self.scope): yield path[len(self.scope):], rev | be5729e969e69fa7555860360e34c03711d8cd1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/be5729e969e69fa7555860360e34c03711d8cd1f/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8189,
12,
2890,
4672,
4927,
273,
389,
588,
67,
8189,
12,
2890,
18,
4887,
397,
365,
18,
803,
16,
365,
18,
1944,
94,
16,
365,
18,
2556,
67,
6723,
16,
365,
18,
6011,
16,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8189,
12,
2890,
4672,
4927,
273,
389,
588,
67,
8189,
12,
2890,
18,
4887,
397,
365,
18,
803,
16,
365,
18,
1944,
94,
16,
365,
18,
2556,
67,
6723,
16,
365,
18,
6011,
16,
365,... |
user = users_obj.browse(cr, uid, uid) context['currency_id'] = move.company_id.currency_id.id | user = users_obj.browse(cr, uid, uid) context['currency_id'] = move.company_id.currency_id.id | def do_partial(self, cr, uid, ids, partial_datas, context={}): """ @ partial_datas : dict. contain details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom """ res = {} picking_obj = self.pool.get('stock.picking') delivery_obj = self.pool.get('stock.deliver... | 18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
11601,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4702,
67,
13178,
16,
819,
12938,
4672,
3536,
632,
4702,
67,
13178,
294,
2065,
18,
912,
3189,
434,
4702,
6002,
310,
3007,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
11601,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4702,
67,
13178,
16,
819,
12938,
4672,
3536,
632,
4702,
67,
13178,
294,
2065,
18,
912,
3189,
434,
4702,
6002,
310,
3007,
191... |
TargetAdd('libpandagl.dll', opts=['MODULE', 'WINGDI', 'OPENGL', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NVIDIACG', 'CGGL']) | TargetAdd('libpandagl.dll', opts=['MODULE', 'WINGDI', 'GL', 'WINKERNEL', 'WINOLDNAMES', 'WINUSER', 'WINMM', 'NVIDIACG', 'CGGL']) if (PkgSkip("EGL")==0 and PkgSkip("GLES")==0 and PkgSkip("X11")==0 and not RUNTIME): DefSymbol('GLES', 'OPENGLES_1', '') OPTS=['DIR:panda/src/egldisplay', 'DIR:panda/src/glstuff', 'BUIL... | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 4d498acfe5ebc9517e624dc710c2b46a7217beb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/4d498acfe5ebc9517e624dc710c2b46a7217beb8/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif folddown and ans._exp > Etop: context._raise_error(Clamped) ans = ans._rescale(Etop, context=context) elif ans.adjusted() > Emax: if not ans: ans._exp = Emax | else: Etop = context.Etop() if folddown and ans._exp > Etop: | def _fixexponents(self, prec=None, rounding=None, folddown=None, context=None): """Fix the exponents and return a copy with the exponent in bounds.""" if self._isinfinity(): return self if context is None: context = getcontext() if prec is None: prec = context.prec if folddown is None: folddown = context._clamp Emin, E... | 1a63da64df2af26e1f050749c19281f1de9084fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1a63da64df2af26e1f050749c19281f1de9084fa/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
24045,
87,
12,
2890,
16,
13382,
33,
7036,
16,
13885,
33,
7036,
16,
28420,
449,
995,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
8585,
326,
9100,
87,
471,
327,
279,
1610,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
904,
24045,
87,
12,
2890,
16,
13382,
33,
7036,
16,
13885,
33,
7036,
16,
28420,
449,
995,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
8585,
326,
9100,
87,
471,
327,
279,
1610,
598,
... |
if verbosity >= 1: | if verbosity >= 2: | def scrapeCourt(courtID, result, verbosity, daemonmode): if verbosity >= 1: result += "NOW SCRAPING COURT: " + str(courtID) + "\n" if verbosity >= 2: print "NOW SCRAPING COURT: " + str(courtID) if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shal... | 5f8ab0dce527e0f00d170a17505b959be1785525 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/5f8ab0dce527e0f00d170a17505b959be1785525/scrape_and_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
25360,
29328,
88,
12,
71,
477,
88,
734,
16,
563,
16,
11561,
16,
8131,
3188,
4672,
309,
11561,
1545,
576,
30,
563,
1011,
315,
27091,
348,
5093,
2203,
1360,
7910,
1099,
56,
30,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
25360,
29328,
88,
12,
71,
477,
88,
734,
16,
563,
16,
11561,
16,
8131,
3188,
4672,
309,
11561,
1545,
576,
30,
563,
1011,
315,
27091,
348,
5093,
2203,
1360,
7910,
1099,
56,
30,
315,... |
"""class to hold iwquality data """ | """ Class to hold iwquality data. """ | def _parse(self, data): """ unpacks iwstruct data """ iwstruct = Iwstruct() iwqual = Iwquality() iwstats_data = iwstruct.parse_data(self.fmt, data) self.status = iwstats_data[0:2] self.qual.quality, self.qual.siglevel, self.qual.nlevel, \ self.qual.updated = iwstats_data[2:6] nwid, code, frag, retries, iwflags = iwsta... | 05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
501,
4672,
3536,
6167,
87,
25522,
1697,
501,
3536,
25522,
1697,
273,
467,
91,
1697,
1435,
25522,
3369,
273,
467,
91,
16495,
1435,
25522,
5296,
67,
892,
273,
2552... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
12,
2890,
16,
501,
4672,
3536,
6167,
87,
25522,
1697,
501,
3536,
25522,
1697,
273,
467,
91,
1697,
1435,
25522,
3369,
273,
467,
91,
16495,
1435,
25522,
5296,
67,
892,
273,
2552... |
except AttributeError: | except: | def get_list_nodes(self, list_id): """ Return a list with the items of the selection list, first try RefLists then try RefTrees""" ptool = self.getPortletsTool() try: return ptool.getRefListById(list_id).get_list() except AttributeError: try: tree_thread = ptool.getRefTreeById(list_id).get_tree_thread() return [x['ob']... | 7c25ff5a8e2782a6bc2f98840cb04f4a3bec7b43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7c25ff5a8e2782a6bc2f98840cb04f4a3bec7b43/NySite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1098,
67,
4690,
12,
2890,
16,
666,
67,
350,
4672,
3536,
2000,
279,
666,
598,
326,
1516,
434,
326,
4421,
666,
16,
1122,
775,
3941,
7432,
1508,
775,
3941,
26590,
8395,
293,
6738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1098,
67,
4690,
12,
2890,
16,
666,
67,
350,
4672,
3536,
2000,
279,
666,
598,
326,
1516,
434,
326,
4421,
666,
16,
1122,
775,
3941,
7432,
1508,
775,
3941,
26590,
8395,
293,
6738... |
raise ValueError( 'Invalid character in operation string') | raise ValueError('Invalid character in operation string') | def _render_record(self, status_code, subdir, operation, status='', epoch_time=None, record_prefix=None, optional_fields=None): """ Internal Function to generate a record to be written into a status log. For use by server_job.* classes only. """ if subdir: if re.match(r'[\n\t]', subdir): raise ValueError( 'Invalid char... | de3b947fa13191b5aa3e650f64a2581f6921c95c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/de3b947fa13191b5aa3e650f64a2581f6921c95c/server_job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3366,
12,
2890,
16,
1267,
67,
710,
16,
16921,
16,
1674,
16,
1267,
2218,
2187,
7632,
67,
957,
33,
7036,
16,
1409,
67,
3239,
33,
7036,
16,
3129,
67,
2821,
33,
7036,
4672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3366,
12,
2890,
16,
1267,
67,
710,
16,
16921,
16,
1674,
16,
1267,
2218,
2187,
7632,
67,
957,
33,
7036,
16,
1409,
67,
3239,
33,
7036,
16,
3129,
67,
2821,
33,
7036,
4672... |
L{VERSION}; and L{SEE}. | and L{VERSION}. | def _is_private(str): """ @return: True if C{str} is the name of a public object. @rtype: C{boolean} @param str: The name to check. @type str: C{string} """ if str == '...': return 0 for piece in str.split('.'): if piece[0] == '_' and piece[-1] != '_': return 1 return 0 | 31a49639abf72b18b5c72d645c2a76cbb0c7a4f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/31a49639abf72b18b5c72d645c2a76cbb0c7a4f1/checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
67,
1152,
12,
701,
4672,
3536,
632,
2463,
30,
1053,
309,
385,
95,
701,
97,
353,
326,
508,
434,
279,
1071,
733,
18,
632,
86,
723,
30,
385,
95,
6494,
97,
632,
891,
609,
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,
389,
291,
67,
1152,
12,
701,
4672,
3536,
632,
2463,
30,
1053,
309,
385,
95,
701,
97,
353,
326,
508,
434,
279,
1071,
733,
18,
632,
86,
723,
30,
385,
95,
6494,
97,
632,
891,
609,
30,... |
py_pjsua.im_send(g_acc_id, url, "", message, None, 0) | py_pjsua.im_send(g_acc_id, url, None, message, None, 0) | def app_menu(): global g_acc_id global g_current_call quit = 0 while quit == 0: print_menu() choice = sys.stdin.readline() if choice[0] == "q": quit = 1 elif choice[0] == "i": # Sending IM print "Send IM to SIP URL: ", url = sys.stdin.readline() if url == "\n": continue # Send typing indication py_pjsua.im_typing(g... | 5c9aeadb11f3b2a00f4fc7d5ab63a9562b269d04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1549/5c9aeadb11f3b2a00f4fc7d5ab63a9562b269d04/pjsua_app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
67,
5414,
13332,
2552,
314,
67,
8981,
67,
350,
2552,
314,
67,
2972,
67,
1991,
225,
9706,
273,
374,
1323,
9706,
422,
374,
30,
1172,
67,
5414,
1435,
6023,
273,
2589,
18,
21772,
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,
595,
67,
5414,
13332,
2552,
314,
67,
8981,
67,
350,
2552,
314,
67,
2972,
67,
1991,
225,
9706,
273,
374,
1323,
9706,
422,
374,
30,
1172,
67,
5414,
1435,
6023,
273,
2589,
18,
21772,
18,
... |
logging.exception("child process failed") | logging.error("child process failed") | def fork_start(tmp, l): sys.stdout.flush() sys.stderr.flush() pid = os.fork() if pid: # Parent return pid try: try: l() except error.AutotestError: raise except Exception, e: raise error.UnhandledTestError(e) except Exception, detail: try: try: logging.exception("child process failed") finally: ename = tmp + "/debug/e... | b2ec643ab7b0bd5a2b678baf5cf80836d0d4012f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/b2ec643ab7b0bd5a2b678baf5cf80836d0d4012f/parallel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12515,
67,
1937,
12,
5645,
16,
328,
4672,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
11241,
18,
11330,
1435,
4231,
273,
1140,
18,
23335,
1435,
309,
4231,
30,
468,
9520,
327,
4231,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12515,
67,
1937,
12,
5645,
16,
328,
4672,
2589,
18,
10283,
18,
11330,
1435,
2589,
18,
11241,
18,
11330,
1435,
4231,
273,
1140,
18,
23335,
1435,
309,
4231,
30,
468,
9520,
327,
4231,
225,
... |
self.callback.log("Ending %s db creation: %s" % (ftype, time.ctime())) | self.callback.log("Ending %s db creation: %s" % (ftype, time.ctime())) | def doRepoMetadata(self): """wrapper to generate the repomd.xml file that stores the info on the other files""" repodoc = libxml2.newDoc("1.0") reporoot = repodoc.newChild(None, "repomd", None) repons = reporoot.newNs('http://linux.duke.edu/metadata/repo', None) reporoot.setNs(repons) rpmns = reporoot.newNs("http://lin... | 473cb91d36b5c88e3a55fa60404eb172a1c6e32b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9557/473cb91d36b5c88e3a55fa60404eb172a1c6e32b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
8791,
2277,
12,
2890,
4672,
3536,
8376,
358,
2103,
326,
2071,
362,
72,
18,
2902,
585,
716,
9064,
326,
1123,
603,
326,
1308,
1390,
8395,
2071,
369,
504,
273,
16394,
22,
18,
2704,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8791,
2277,
12,
2890,
4672,
3536,
8376,
358,
2103,
326,
2071,
362,
72,
18,
2902,
585,
716,
9064,
326,
1123,
603,
326,
1308,
1390,
8395,
2071,
369,
504,
273,
16394,
22,
18,
2704,
1... |
.......... | ---------- | def build_2d_kernel(aperature=21, hiFilterCutoff=10.0): """ FIRFilter = build_2d_kernel(aperature, hiFilterCutoff) build hamming-windowed FIR filter with sinc kernel Parameters .......... aperature : {int}, optional the number of coefficients in the filter. default is 21. needs to be ODD hiFilterCutoff : {float} t... | 2e15b86a5b91fd399ef0d981713b1fbce76051f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/2e15b86a5b91fd399ef0d981713b1fbce76051f1/_segmenter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
22,
72,
67,
8111,
12,
7294,
1231,
33,
5340,
16,
10118,
1586,
15812,
3674,
33,
2163,
18,
20,
4672,
3536,
225,
4011,
54,
1586,
273,
1361,
67,
22,
72,
67,
8111,
12,
7294,
1231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
22,
72,
67,
8111,
12,
7294,
1231,
33,
5340,
16,
10118,
1586,
15812,
3674,
33,
2163,
18,
20,
4672,
3536,
225,
4011,
54,
1586,
273,
1361,
67,
22,
72,
67,
8111,
12,
7294,
1231... |
self.out.write(obj) | try: self.out.write(obj) except IOError: pass | def write(self, obj): """Wraps the output stream, encoding Unicode strings with the specified encoding""" if isinstance(obj, unicode): self.out.write(obj.encode(self.encoding)) else: self.out.write(obj) | c18f59040f454307fb2782f09341ab9f7721eb25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/c18f59040f454307fb2782f09341ab9f7721eb25/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1081,
4672,
3536,
20785,
326,
876,
1407,
16,
2688,
9633,
2064,
598,
326,
1269,
2688,
8395,
309,
1549,
12,
2603,
16,
5252,
4672,
365,
18,
659,
18,
2626,
12,
2603,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1081,
4672,
3536,
20785,
326,
876,
1407,
16,
2688,
9633,
2064,
598,
326,
1269,
2688,
8395,
309,
1549,
12,
2603,
16,
5252,
4672,
365,
18,
659,
18,
2626,
12,
2603,
18... |
local_sdp.media[self._chat_sdp_index] = msrp_chat.local_media | media[self._chat_sdp_index] = msrp_chat.local_media | def _accept_continue(self, audio_rtp, msrp_chat): self._lock.acquire() try: if self.state != "ACCEPTING": return remote_sdp = self._inv.offered_remote_sdp local_ip = self.settings.rtp.local_ip.normalized media = len(remote_sdp.media)*[None] sdp_media_todo = range(len(media)) if audio_rtp: sdp_media_todo.remove(self._au... | 518f28e4550befc72960734bd49023d5cc71dbf0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/518f28e4550befc72960734bd49023d5cc71dbf0/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9436,
67,
17143,
12,
2890,
16,
7447,
67,
3797,
84,
16,
4086,
13832,
67,
10880,
4672,
365,
6315,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
2019,
480,
315,
21417,
1360,
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,
389,
9436,
67,
17143,
12,
2890,
16,
7447,
67,
3797,
84,
16,
4086,
13832,
67,
10880,
4672,
365,
6315,
739,
18,
1077,
1039,
1435,
775,
30,
309,
365,
18,
2019,
480,
315,
21417,
1360,
6877... |
print key | def keyPressEvent(self, event): ####@@@@ Delete might need revision, and belongs in the subclass key = event.key() import platform key = platform.filter_key(key) #bruce 041220 (needed for bug 93) ####@@@@ as of 050126 this delete binding doesn't seem to work: if key == Qt.Key_Delete: ####@@@@ belongs in the subclass # ... | 0334d6a985efda43d9933117ea39cf5d0f9f5b9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0334d6a985efda43d9933117ea39cf5d0f9f5b9f/TreeWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
11849,
7,
30989,
30989,
2504,
4825,
1608,
6350,
16,
471,
11081,
316,
326,
10177,
498,
273,
871,
18,
856,
1435,
1930,
4072,
498,
273,
4072,
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,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
11849,
7,
30989,
30989,
2504,
4825,
1608,
6350,
16,
471,
11081,
316,
326,
10177,
498,
273,
871,
18,
856,
1435,
1930,
4072,
498,
273,
4072,
18,
... | |
except DateTime.DateTimeError: | except Exception: | def validate_required(self, instance, value, errors): try: DateTime(value.isoformat()) except DateTime.DateTimeError: result = False else: result = value is not None return ObjectField.validate_required(self, instance, result, errors) | d82f561e3e183b08ea11acf9dc6118085384d7a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5657/d82f561e3e183b08ea11acf9dc6118085384d7a1/field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
775,
30,
3716,
12,
1132,
18,
9699,
2139,
10756,
1335,
1185,
30,
563,
273,
1083,
469,
30,
563,
273,
460,
353,
486,
599,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
775,
30,
3716,
12,
1132,
18,
9699,
2139,
10756,
1335,
1185,
30,
563,
273,
1083,
469,
30,
563,
273,
460,
353,
486,
599,
327... |
env = {"PYTHONPATH": os.getenv("PYTHONPATH")} | def preprocess(result): return sorted([x.strip() for x in result.strip().split("\n")]) | b460e23d21a93c2827c56a0344b44732d7039ebb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11734/b460e23d21a93c2827c56a0344b44732d7039ebb/runExamples.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
12,
2088,
4672,
327,
3115,
3816,
92,
18,
6406,
1435,
364,
619,
316,
563,
18,
6406,
7675,
4939,
31458,
82,
7923,
5717,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
12,
2088,
4672,
327,
3115,
3816,
92,
18,
6406,
1435,
364,
619,
316,
563,
18,
6406,
7675,
4939,
31458,
82,
7923,
5717,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
opts, args = getopt.getopt(sys.argv[1:], 'htcvei:d:D:') | opts, args = getopt.getopt(sys.argv[1:], 'htcvl:e:i:d:D:') | def Logout(self, expunge): # sign off if expunge: imap.expunge() imap.logout() | 0e80a3e70882721471ad33c42e1558b717462aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/0e80a3e70882721471ad33c42e1558b717462aa3/imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29381,
12,
2890,
16,
1329,
25561,
4672,
468,
1573,
3397,
309,
1329,
25561,
30,
20226,
18,
2749,
25561,
1435,
20226,
18,
21229,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
29381,
12,
2890,
16,
1329,
25561,
4672,
468,
1573,
3397,
309,
1329,
25561,
30,
20226,
18,
2749,
25561,
1435,
20226,
18,
21229,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
out(' <h2 class="tocheading">%s</h2>\n' % name) | out(' <h2 class="toc">%s</h2>\n' % name) | def write_toc_section(self, out, name, docs, fullname=True): if not docs: return | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1391,
67,
3464,
12,
2890,
16,
596,
16,
508,
16,
3270,
16,
13321,
33,
5510,
4672,
309,
486,
3270,
30,
327,
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,
1045,
67,
1391,
67,
3464,
12,
2890,
16,
596,
16,
508,
16,
3270,
16,
13321,
33,
5510,
4672,
309,
486,
3270,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
elif line.amount_type == 'fix': value = 0.0 if line.category_id.amount_type == 'func': value = self.pool.get('hr.allounce.deduction.categoty').execute_function(cr, uid, line.category_id.id, contract.wage, context) slip_line_pool.write(cr, uid, [line.id], {'amount':value}) if line.category_id.contribute and line.catego... | ded_fix += com_value | def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids... | 141651ca39fe619b710e09c88b7a98313e1f96e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/141651ca39fe619b710e09c88b7a98313e1f96e4/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... |
if H>=availHeight: | if H>=availHeight or w>availWidth: | def _findSplit(self,canv,availWidth,availHeight,mergeSpace=1,obj=None): '''return max width, required height for a list of flowables F''' W = 0 H = 0 pS = sB = 0 atTop = 1 F = self._content for i,f in enumerate(F): w,h = f.wrapOn(canv,availWidth,0xfffffff) if w<=_FUZZ or h<=_FUZZ: continue W = max(W,w) if not atTop: s ... | 5c2984c62b4e8b7c9b548eb52e0706dc27d6705f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/5c2984c62b4e8b7c9b548eb52e0706dc27d6705f/flowables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
5521,
12,
2890,
16,
4169,
90,
16,
842,
671,
2384,
16,
842,
671,
2686,
16,
2702,
3819,
33,
21,
16,
2603,
33,
7036,
4672,
9163,
2463,
943,
1835,
16,
1931,
2072,
364,
279,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
5521,
12,
2890,
16,
4169,
90,
16,
842,
671,
2384,
16,
842,
671,
2686,
16,
2702,
3819,
33,
21,
16,
2603,
33,
7036,
4672,
9163,
2463,
943,
1835,
16,
1931,
2072,
364,
279,
66... |
if not details: | if addform: | def sigterm_handler(signum, frame, mlist=mlist): # Make sure the list gets unlocked... mlist.Unlock() # ...and ensure we exit, otherwise race conditions could cause us to # enter MailList.Save() while we're in the unlocked state, and that # could be bad! sys.exit(0) | de2b0a316aefed98021f372a05cbd97b3651e0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/de2b0a316aefed98021f372a05cbd97b3651e0b4/admindb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
6408,
67,
4176,
12,
2977,
379,
16,
2623,
16,
312,
1098,
33,
781,
376,
4672,
468,
4344,
3071,
326,
666,
5571,
25966,
2777,
312,
1098,
18,
7087,
1435,
468,
1372,
464,
3387,
732,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
6408,
67,
4176,
12,
2977,
379,
16,
2623,
16,
312,
1098,
33,
781,
376,
4672,
468,
4344,
3071,
326,
666,
5571,
25966,
2777,
312,
1098,
18,
7087,
1435,
468,
1372,
464,
3387,
732,
24... |
if self.single_img_in_dir: | if self.single_img_in_dir and self.songinfo: songdir = os.path.dirname(self.songinfo.file) | def filename_is_for_current_song(self, filename): # Since there can be multiple threads that are getting album art, # this will ensure that only the artwork for the currently playing # song is displayed if self.conn and self.status and self.status.state in ['play', 'pause']: if filename == self.target_image_filename(se... | 48b67fcc80970d59270b275335d2299d4464b303 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/48b67fcc80970d59270b275335d2299d4464b303/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1544,
67,
291,
67,
1884,
67,
2972,
67,
816,
75,
12,
2890,
16,
1544,
4672,
468,
7897,
1915,
848,
506,
3229,
7403,
716,
854,
8742,
14844,
3688,
16,
468,
333,
903,
3387,
716,
1338,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1544,
67,
291,
67,
1884,
67,
2972,
67,
816,
75,
12,
2890,
16,
1544,
4672,
468,
7897,
1915,
848,
506,
3229,
7403,
716,
854,
8742,
14844,
3688,
16,
468,
333,
903,
3387,
716,
1338,
326,
... |
_append_node('date', time.strftime('%d/%m/%Y')) | _append_node('date', time.strftime(str(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y')))) | def _append_node(name, text): n = etree.Element(name) n.text = text config.append(n) | 494049220e7ebf139f9cc0f1ea0ca6378f4fb18c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/494049220e7ebf139f9cc0f1ea0ca6378f4fb18c/ps_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1046,
12,
529,
13,
290,
18,
955,
273,
977,
642,
18,
6923,
12,
82,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1046,
12,
529,
13,
290,
18,
955,
273,
977,
642,
18,
6923,
12,
82,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
require_matching_strides = bool(int(os.getenv('THEANO_DEBUGMODE_CHECK_STRIDES', 0))) | require_matching_strides = bool(int(os.getenv('THEANO_DEBUGMODE_CHECK_STRIDES', 1))) | def _pickle_DebugMode_Maker(maker): raise NotImplementedError('DebugMode is not picklable (yet)') | 46b095c0e7ff8443f597aafb093374e91179f1cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/46b095c0e7ff8443f597aafb093374e91179f1cc/debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
20847,
67,
2829,
2309,
67,
12373,
12,
29261,
4672,
1002,
11206,
2668,
2829,
2309,
353,
486,
6002,
80,
429,
261,
24404,
2506,
13,
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,
0,
0,
0,
0,
0,
0,
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,
20847,
67,
2829,
2309,
67,
12373,
12,
29261,
4672,
1002,
11206,
2668,
2829,
2309,
353,
486,
6002,
80,
429,
261,
24404,
2506,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
elem_cahce = order < 500 | elem_cache = order < 500 | def FiniteField(order, name=None, modulus=None, names=None, elem_cache=False, check_irreducible=True): """ Return the globally unique finite field of given order with generator labeled by the given name and possibly with given modulus. INPUT: order -- int name -- string; must be specified in not a prime field mod... | 8be0bd4a4bc6853abc7f92c6c7d38c5b99698e9f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8be0bd4a4bc6853abc7f92c6c7d38c5b99698e9f/finite_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9458,
1137,
974,
12,
1019,
16,
508,
33,
7036,
16,
24770,
33,
7036,
16,
1257,
33,
7036,
16,
3659,
67,
2493,
33,
8381,
16,
866,
67,
481,
1118,
5286,
1523,
33,
5510,
4672,
3536,
2000,
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,
9458,
1137,
974,
12,
1019,
16,
508,
33,
7036,
16,
24770,
33,
7036,
16,
1257,
33,
7036,
16,
3659,
67,
2493,
33,
8381,
16,
866,
67,
481,
1118,
5286,
1523,
33,
5510,
4672,
3536,
2000,
3... |
"""Checks if a netmask is expressable as e prefixlen.""" | """Checks if a netmask is expressable as a prefixlen.""" | def _checkNetmask(netmask, masklen): """Checks if a netmask is expressable as e prefixlen.""" num = long(netmask) bits = masklen # remove zero bits at the end while (num & 1) == 0 and bits != 0: num = num >> 1 bits -= 1 if bits == 0: break # now check if the rest consists only of ones while bits > 0: if (num & 1) == ... | beeb5ca0480c8d1ae505244beb56772f807ba70e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14367/beeb5ca0480c8d1ae505244beb56772f807ba70e/IPy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
7308,
4455,
12,
2758,
4455,
16,
3066,
1897,
4672,
3536,
4081,
309,
279,
24172,
353,
16947,
429,
487,
279,
1633,
1897,
12123,
225,
818,
273,
1525,
12,
2758,
4455,
13,
4125,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
7308,
4455,
12,
2758,
4455,
16,
3066,
1897,
4672,
3536,
4081,
309,
279,
24172,
353,
16947,
429,
487,
279,
1633,
1897,
12123,
225,
818,
273,
1525,
12,
2758,
4455,
13,
4125,
273... |
if firstUnit: | if firstUnit and not swapExpSign: | def unitString(self, unitList=None, swapExpSign=False): """Return the full string for this group or a given group""" if unitList == None: unitList = self.unitList fullText = '' if unitList: firstUnit = True for unit in unitList: if not firstUnit: if hasattr(unit, 'exp'): expSign = unit.exp > 0 else: expSign = unit.unit... | 425c740f6691d78a1761458d99423041ff4ec1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3070/425c740f6691d78a1761458d99423041ff4ec1f2/unitgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2836,
780,
12,
2890,
16,
2836,
682,
33,
7036,
16,
7720,
2966,
2766,
33,
8381,
4672,
3536,
990,
326,
1983,
533,
364,
333,
1041,
578,
279,
864,
1041,
8395,
309,
2836,
682,
422,
599,
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,
2836,
780,
12,
2890,
16,
2836,
682,
33,
7036,
16,
7720,
2966,
2766,
33,
8381,
4672,
3536,
990,
326,
1983,
533,
364,
333,
1041,
578,
279,
864,
1041,
8395,
309,
2836,
682,
422,
599,
30,
... |
def cp(f1, f2, l): read=f1.read write=f2.write n=8192 while l > 0: if n > l: n=l d=read(n) write(d) l = l - len(d) | def u64(v, unpack=struct.unpack): h, v = unpack(">ii", v) if v < 0: v=t32-v if h: if h < 0: h=t32-h v=h*t32+v return v | b3044d78409b750569423711b47a47edfd53dde3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b3044d78409b750569423711b47a47edfd53dde3/ppml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
582,
1105,
12,
90,
16,
6167,
33,
1697,
18,
17309,
4672,
366,
16,
331,
273,
6167,
2932,
34,
2835,
3113,
331,
13,
309,
331,
411,
374,
30,
331,
33,
88,
1578,
17,
90,
309,
366,
30,
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,
582,
1105,
12,
90,
16,
6167,
33,
1697,
18,
17309,
4672,
366,
16,
331,
273,
6167,
2932,
34,
2835,
3113,
331,
13,
309,
331,
411,
374,
30,
331,
33,
88,
1578,
17,
90,
309,
366,
30,
309... | |
def setup_color(self, group, key, colorbut): | def setup_color(self, group, key, colorbut, show_opacity_scale = True): | def setup_color(self, group, key, colorbut): try: color, alpha = make_color(self.client.get_string(group, key)) except TypeError: raise "\nKey: [%s]%s isn't set.\nRestarting AWN usually solves this issue\n" % (group, key) colorbut.set_color(color) colorbut.set_alpha(alpha) colorbut.connect("color-set", self.color_chang... | c368ae8eb10e34d030b4e614f782019798752130 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8416/c368ae8eb10e34d030b4e614f782019798752130/awnPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
3266,
12,
2890,
16,
1041,
16,
498,
16,
2036,
12885,
16,
2405,
67,
19515,
67,
5864,
273,
1053,
4672,
775,
30,
2036,
16,
4190,
273,
1221,
67,
3266,
12,
2890,
18,
2625,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
3266,
12,
2890,
16,
1041,
16,
498,
16,
2036,
12885,
16,
2405,
67,
19515,
67,
5864,
273,
1053,
4672,
775,
30,
2036,
16,
4190,
273,
1221,
67,
3266,
12,
2890,
18,
2625,
18,
58... |
if self.lights: | if self.vlights: | def writeObjects (self, theObjects): | fc0647cfb44770e83ed6ca7bcb72153ba6720464 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10896/fc0647cfb44770e83ed6ca7bcb72153ba6720464/XPlaneExport8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
4710,
261,
2890,
16,
326,
4710,
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,
1045,
4710,
261,
2890,
16,
326,
4710,
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... |
{3/35, 9/10, 9/14, 11/35, 3/14, 9/35, 3/10, 11/14, 8/35, 4/7, 8/15, Infinity, 13/14, 16/35, 13/35, 0, 4/15, 1/13, 2/35, 1/11, 1/10, 1/17, 1/16, 1/15, 1/14, 1/7, 1/6, 1/5, 1/4, 1/3, 1/2, 6/35, 1/9, 1/8, 6/7, 3/5, 3/7, 7/10, 4/35, 2/5, 17/35, 2/7, 5/7, 1/12, 4/5, 5/14, 12/35, 2/15} | {4/7, 1/3, 3/35, 16/35, 1/17, 1/15, 6/35, 1/6, 11/14, 3/7, 2/5, 1/11, 4/35, 3/14, 1/2, 6/7, 3/10, 1/14, 1/5, 2/35, 7/10, 5/7, 1/10, 8/15, 0, 9/14, 13/35, 4/5, 1/13, 1/4, 11/35, 9/10, 1/9, 8/35, Infinity, 12/35, 3/5, 2/7, 1/12, 13/14, 4/15, 9/35, 5/14, 1/8, 17/35, 1/7, 2/15, 1/16} | def _find_cusps(self): r""" Return a set of inequivalent cusps for self, i.e. a set of representatives for the orbits of self on $\mathbf{P}^1(\mathbf{Q})$. These are returned in a reduced form; see self.reduce_cusp for the definition of reduced. ALGORITHM: Lemma 3.2 in Cremona's 1997 book shows that for the action o... | 53362b0caf2b36e6e5b2a421539f8059e09a5140 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/53362b0caf2b36e6e5b2a421539f8059e09a5140/congroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
71,
407,
1121,
12,
2890,
4672,
436,
8395,
2000,
279,
444,
434,
316,
14298,
6505,
27964,
1121,
364,
365,
16,
277,
18,
73,
18,
279,
444,
434,
2406,
8785,
364,
326,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
67,
71,
407,
1121,
12,
2890,
4672,
436,
8395,
2000,
279,
444,
434,
316,
14298,
6505,
27964,
1121,
364,
365,
16,
277,
18,
73,
18,
279,
444,
434,
2406,
8785,
364,
326,
578,
... |
tables.append(table_join) return order_by, tables, clause | tables.insert(0, table_join) return order_by, tables, tables_args | def _order_calc(self, cursor, user, field, otype, context=None): order_by = [] tables = [] field_name = None table_name = None link_field = None clause = '' | 6355baff406cd491895e75541e7f8188f68d5687 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/6355baff406cd491895e75541e7f8188f68d5687/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1019,
67,
12448,
12,
2890,
16,
3347,
16,
729,
16,
652,
16,
320,
723,
16,
819,
33,
7036,
4672,
1353,
67,
1637,
273,
5378,
4606,
273,
5378,
652,
67,
529,
273,
599,
1014,
67,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1019,
67,
12448,
12,
2890,
16,
3347,
16,
729,
16,
652,
16,
320,
723,
16,
819,
33,
7036,
4672,
1353,
67,
1637,
273,
5378,
4606,
273,
5378,
652,
67,
529,
273,
599,
1014,
67,
529,
... |
return rv | return rv | def check(self): """Check that the preferences make sense: directories exist and are writable, the install directory is on sys.path, etc.""" rv = "" RWX_OK = os.R_OK|os.W_OK|os.X_OK if not os.path.exists(self.downloadDir): rv += "Warning: Download directory \"%s\" does not exist\n" % self.downloadDir elif not os.acces... | f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
1564,
716,
326,
12750,
1221,
12764,
30,
6402,
1005,
471,
854,
9691,
16,
326,
3799,
1867,
353,
603,
2589,
18,
803,
16,
5527,
12123,
225,
5633,
273,
1408,
25920,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
1564,
716,
326,
12750,
1221,
12764,
30,
6402,
1005,
471,
854,
9691,
16,
326,
3799,
1867,
353,
603,
2589,
18,
803,
16,
5527,
12123,
225,
5633,
273,
1408,
25920,... |
params = ref[ pI: ] | params = ref[ pI+1: ] | def __mapReferer(self): ref = request.environ[ 'HTTP_REFERER' ] ref = ref[ ref.find( "/", 8 ) : ] scriptName = request.environ[ 'SCRIPT_NAME' ] if scriptName: if scriptName[0] != "/": scriptName = "/%s" % scriptName if ref.find( scriptName ) == 0: ref = ref[ len( scriptName ): ] pI = ref.find( '?' ); if pI > -1: params... | 7fdd2b25545b2191e8117126c58b078dab82274d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/7fdd2b25545b2191e8117126c58b078dab82274d/userdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1458,
426,
18459,
12,
2890,
4672,
1278,
273,
590,
18,
28684,
63,
296,
3693,
67,
30269,
654,
11,
308,
1278,
273,
1278,
63,
1278,
18,
4720,
12,
2206,
3113,
1725,
262,
294,
308,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1458,
426,
18459,
12,
2890,
4672,
1278,
273,
590,
18,
28684,
63,
296,
3693,
67,
30269,
654,
11,
308,
1278,
273,
1278,
63,
1278,
18,
4720,
12,
2206,
3113,
1725,
262,
294,
308,
310... |
list_tasks(data) | if "list" == action: list_tasks(data, critical) return if "add" == action: add_task(data, action_param) elif "kill" == action: kill_task(data, action_param) elif "work" == action: add_work_unit_to_task(data, action_param) else: assert "Unknown action '%s', params '%s'" % (action, action_param) pass list_tasks(data, ... | def main_process(action, action_param, critical): """Does the main task of running the program. Action is a string of: list, add, kill, work. action_param is the related parameter to the action. If critical is true, only actions that have pending work units will be displayed in the output. """ file_name = os.path.expa... | deca39e93de50a548409509c29a51ebdd1ae093e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2730/deca39e93de50a548409509c29a51ebdd1ae093e/frequent-trask-reminder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
2567,
12,
1128,
16,
1301,
67,
891,
16,
11239,
4672,
3536,
10154,
326,
2774,
1562,
434,
3549,
326,
5402,
18,
225,
4382,
353,
279,
533,
434,
30,
666,
16,
527,
16,
8673,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
2567,
12,
1128,
16,
1301,
67,
891,
16,
11239,
4672,
3536,
10154,
326,
2774,
1562,
434,
3549,
326,
5402,
18,
225,
4382,
353,
279,
533,
434,
30,
666,
16,
527,
16,
8673,
16,
1... |
self.vboxlayout3.addWidget(self.minimize_all_rbtn) | self.vboxlayout2.addWidget(self.minimize_all_rbtn) | def setupUi(self, MinimizeEnergyPropDialog): MinimizeEnergyPropDialog.setObjectName("MinimizeEnergyPropDialog") MinimizeEnergyPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,400,842).size()).expandedTo(MinimizeEnergyPropDialog.minimumSizeHint())) | 4cf7d69a606c10cf896a0045c5df06ba517408f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4cf7d69a606c10cf896a0045c5df06ba517408f0/MinimizeEnergyPropDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5444,
10153,
664,
31920,
4658,
6353,
4672,
5444,
10153,
664,
31920,
4658,
6353,
18,
542,
16707,
2932,
2930,
10153,
664,
31920,
4658,
6353,
7923,
5444,
10153,
664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5444,
10153,
664,
31920,
4658,
6353,
4672,
5444,
10153,
664,
31920,
4658,
6353,
18,
542,
16707,
2932,
2930,
10153,
664,
31920,
4658,
6353,
7923,
5444,
10153,
664,
... |
class LibraryManager(HGManager): | class LibraryManager(HGRepoManager): | def find_files(): """ Use the hg command to recursively find versioned files in dirname. """ try: proc = subprocess.Popen( ['hg', 'locate'], stdout=subprocess.PIPE, cwd=self.location, ) stdout, stderr = proc.communicate() except: # Let's behave a bit nicer and return nothing if something fails. return [] return stdout.... | 4338058b6c9050f594e35747f2ec2621d5622f30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/4338058b6c9050f594e35747f2ec2621d5622f30/setuptools_hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2354,
13332,
3536,
2672,
326,
22576,
1296,
358,
8536,
1104,
17083,
1390,
316,
4283,
18,
3536,
775,
30,
5418,
273,
6652,
18,
52,
3190,
12,
10228,
26981,
2187,
296,
25450,
17337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2354,
13332,
3536,
2672,
326,
22576,
1296,
358,
8536,
1104,
17083,
1390,
316,
4283,
18,
3536,
775,
30,
5418,
273,
6652,
18,
52,
3190,
12,
10228,
26981,
2187,
296,
25450,
17337,
... |
options.buildMac = True; options.buildWindows = True; options.buildLinux = True; options.build32 = True; options.build64 = True; options.buildEval = True; options.buildGpl = True; options.buildCommercial = True; | def main(): options.buildMac = True; options.buildWindows = True; options.buildLinux = True; options.build32 = True; options.build64 = True; options.buildEval = True; options.buildGpl = True; options.buildCommercial = True; for i in range(0, len(sys.argv)): arg = sys.argv[i]; if arg == "--qt-version": options.qtVersio... | 9ac47f9ecf789734865da2c0706a0c3dc2eb6813 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4229/9ac47f9ecf789734865da2c0706a0c3dc2eb6813/package_builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
9499,
18,
19485,
3719,
30,
1501,
273,
2589,
18,
19485,
63,
77,
15533,
309,
1501,
422,
5238,
23311,
17,
1589,
6877,
702,
18,
23311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
9499,
18,
19485,
3719,
30,
1501,
273,
2589,
18,
19485,
63,
77,
15533,
309,
1501,
422,
5238,
23311,
17,
1589,
6877,
702,
18,
23311... | |
return (self.x * self.width + self.width // 2, self.y * self.height) | return (self.i * self.width + self.width // 2, self.j * self.height) | def get_midbottom(self): return (self.x * self.width + self.width // 2, self.y * self.height) | ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13138,
9176,
12,
2890,
4672,
327,
261,
2890,
18,
92,
380,
365,
18,
2819,
397,
365,
18,
2819,
368,
576,
16,
365,
18,
93,
380,
365,
18,
4210,
13,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
13138,
9176,
12,
2890,
4672,
327,
261,
2890,
18,
92,
380,
365,
18,
2819,
397,
365,
18,
2819,
368,
576,
16,
365,
18,
93,
380,
365,
18,
4210,
13,
2,
-100,
-100,
-100,
-100,
... |
self.insertTempProjection(projections, acc, proj) tempDict[tuple(proj)] = 1 | self.insertTempProjection(projections, acc, testProj) tempDict[tuple(testProj)] = 1 | def optimizeBestProjections(self, restartWhenImproved = 1): random.seed(0) # always use the same seed to make results repeatable count = min(len(self.results), self.locOptProjCount) if not count: return self.correctSettingsIfNecessary() self.optimizedProjectionsCount = 0 """ if self.optimizeTimeLimit == self.optim... | b9e52e096e6043bf925f92bc9842c2a83b088af5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/b9e52e096e6043bf925f92bc9842c2a83b088af5/orngVizRank.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
14173,
14789,
87,
12,
2890,
16,
7870,
9434,
1170,
685,
2155,
273,
404,
4672,
2744,
18,
12407,
12,
20,
13,
1377,
468,
3712,
999,
326,
1967,
5009,
358,
1221,
1686,
7666,
429,
1056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
14173,
14789,
87,
12,
2890,
16,
7870,
9434,
1170,
685,
2155,
273,
404,
4672,
2744,
18,
12407,
12,
20,
13,
1377,
468,
3712,
999,
326,
1967,
5009,
358,
1221,
1686,
7666,
429,
1056,
... |
gp.fout.write('Command: %s\n' % (result)) | def send_id_map_to_hipd(gp, nam): cmd = "hipconf dnsproxy " + nam + " 2>&1" gp.fout.write("cmd - %s\n" % (cmd,)) | 780302e929c6a79d8c929d54859097746eefda98 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6933/780302e929c6a79d8c929d54859097746eefda98/dnsproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
350,
67,
1458,
67,
869,
67,
5310,
72,
12,
6403,
16,
15135,
4672,
1797,
273,
315,
5310,
3923,
6605,
5656,
315,
397,
15135,
397,
315,
576,
22393,
21,
6,
4178,
18,
617,
322,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
350,
67,
1458,
67,
869,
67,
5310,
72,
12,
6403,
16,
15135,
4672,
1797,
273,
315,
5310,
3923,
6605,
5656,
315,
397,
15135,
397,
315,
576,
22393,
21,
6,
4178,
18,
617,
322,
1... | |
if re_label.match(label) and movie_info_t.name: | if re_label.match(label): | def identify(self, media): | 3656a170ef9195c135fdfd73f56510cb317150b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3656a170ef9195c135fdfd73f56510cb317150b7/identifymedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9786,
12,
2890,
16,
3539,
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,
9786,
12,
2890,
16,
3539,
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... |
"""class for GLsizei and GLsizeiptr.""" | def GetImmediateVersion(self): """Gets the immediate version of this argument.""" return self | 4f0c32d419b2a9783e1458192f5c0d3d79813764 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/4f0c32d419b2a9783e1458192f5c0d3d79813764/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
22651,
1444,
12,
2890,
4672,
3536,
3002,
326,
14483,
1177,
434,
333,
1237,
12123,
327,
365,
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,
968,
22651,
1444,
12,
2890,
4672,
3536,
3002,
326,
14483,
1177,
434,
333,
1237,
12123,
327,
365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
warn("read_init_file: %s" % (filename,), NotImplementedWarning) | warn("read_init_file: %s" % (filename,), NotImplementedWarning, "module", 2) | def read_init_file(filename=None): warn("read_init_file: %s" % (filename,), NotImplementedWarning) | e657c86b35634da65fd0efe9f5916a48de464068 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/e657c86b35634da65fd0efe9f5916a48de464068/readline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2738,
67,
768,
12,
3459,
33,
7036,
4672,
1894,
2932,
896,
67,
2738,
67,
768,
30,
738,
87,
6,
738,
261,
3459,
16,
3631,
10051,
6210,
16,
315,
2978,
3113,
576,
13,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2738,
67,
768,
12,
3459,
33,
7036,
4672,
1894,
2932,
896,
67,
2738,
67,
768,
30,
738,
87,
6,
738,
261,
3459,
16,
3631,
10051,
6210,
16,
315,
2978,
3113,
576,
13,
225,
2,
-... |
classes = processViews(views, require, use) | processViews(views, require, use, script) | def generateBuildScript(config): global classes global modules outputFilename = config["buildScript"] classPaths = config["classPath"] print ">>> Generate build script: %s" % outputFilename scanClassPaths(classPaths) scanModules() # 1. Loading include list -> Resolving # 2. Removing variant code # 3. Reloading incl... | 0695d5fc7db251d077ab56c9991eee69ced5d073 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/0695d5fc7db251d077ab56c9991eee69ced5d073/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
3116,
3651,
12,
1425,
4672,
2552,
3318,
2552,
4381,
225,
876,
5359,
273,
642,
9614,
3510,
3651,
11929,
667,
4466,
273,
642,
9614,
1106,
743,
11929,
225,
1172,
315,
23012,
6654,
1361,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3116,
3651,
12,
1425,
4672,
2552,
3318,
2552,
4381,
225,
876,
5359,
273,
642,
9614,
3510,
3651,
11929,
667,
4466,
273,
642,
9614,
1106,
743,
11929,
225,
1172,
315,
23012,
6654,
1361,... |
'--tracking_branch="cros/master"', 'clean'], | '--tracking_branch="%s"' % tracking_branch, 'clean'], | def _GitCleanup(buildroot, board): """Clean up git branch after previous uprev attempt.""" cwd = os.path.join(buildroot, 'src', 'scripts') if os.path.exists(cwd): RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--board=%s' % board, '--tracking_branch="cros/master"', 'clean'], cwd=cwd, error_ok=True) | d2b72f7c2f8979275fa38944c34852fab76c722e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/d2b72f7c2f8979275fa38944c34852fab76c722e/cbuildbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11540,
15007,
12,
3510,
3085,
16,
11094,
4672,
3536,
7605,
731,
5071,
3803,
1839,
2416,
731,
9083,
4395,
12123,
7239,
273,
1140,
18,
803,
18,
5701,
12,
3510,
3085,
16,
296,
4816,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11540,
15007,
12,
3510,
3085,
16,
11094,
4672,
3536,
7605,
731,
5071,
3803,
1839,
2416,
731,
9083,
4395,
12123,
7239,
273,
1140,
18,
803,
18,
5701,
12,
3510,
3085,
16,
296,
4816,
21... |
self.set_default_formatter('table') | def do_backends(self, line): """ backends [CAPS ...] | f51bd5b7d429ce81c3b0e9f5d31f0410877bd6a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/f51bd5b7d429ce81c3b0e9f5d31f0410877bd6a3/weboobcfg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
823,
5839,
12,
2890,
16,
980,
4672,
3536,
18015,
306,
17296,
55,
1372,
65,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
823,
5839,
12,
2890,
16,
980,
4672,
3536,
18015,
306,
17296,
55,
1372,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
if iinfo.watched: | watched = iinfo.watched for wp in watch_prefixes: if id_path.startswith(wp): watched = True if watched: | def add_var(prefix, var_label, value_str, id_path=None, attr_prefix=None): iinfo = id_path_to_iinfo.get(id_path, InspectInfo()) if iinfo.highlighted: attr_prefix = "highlighted var" | 145abe8c9b84e5a1023c5c5e702e6df0e8cf7cd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12738/145abe8c9b84e5a1023c5c5e702e6df0e8cf7cd4/debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1401,
12,
3239,
16,
569,
67,
1925,
16,
460,
67,
701,
16,
612,
67,
803,
33,
7036,
16,
1604,
67,
3239,
33,
7036,
4672,
277,
1376,
273,
612,
67,
803,
67,
869,
67,
77,
1376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1401,
12,
3239,
16,
569,
67,
1925,
16,
460,
67,
701,
16,
612,
67,
803,
33,
7036,
16,
1604,
67,
3239,
33,
7036,
4672,
277,
1376,
273,
612,
67,
803,
67,
869,
67,
77,
1376,
... |
config.add_library('c_misc',sources=[join('c_misc','*.c')]) config.add_library('cephes',sources=[join('cephes','*.c')], | config.add_library('sc_c_misc',sources=[join('c_misc','*.c')]) config.add_library('sc_cephes',sources=[join('cephes','*.c')], | def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('special', parent_package, top_path) define_macros = [] if sys.platform=='win32': | 23ae9977267f9c38304c633798ed014516310694 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/23ae9977267f9c38304c633798ed014516310694/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
2187,
3669,
67,
803,
33,
7036,
4672,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
642,
273,
4659,
2668,
9371,
2187,
982,
67,
5610,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
2187,
3669,
67,
803,
33,
7036,
4672,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
642,
273,
4659,
2668,
9371,
2187,
982,
67,
5610,
16,
17... |
'''Download Moby texts. | '''Download Moby xml texts. moby-download {path-to-download-to} If path not specified download to %(cachedir)s/moby/xml | def eb11(self): item = model.Material.by_name('shakespeare_eb11') if item is None: item = model.Material( name='shakespeare_eb11', title='William Shakespeare Entry in Encyclopaedia Brittanica 11th Edition (1911)', creator='Encylopaedia Britannica', src_pkg = pkg, src_locator = '/ancillary/britannica-11th.txt', format='... | 23e808be522f2b27bb74055d8362963ab25f605f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11652/23e808be522f2b27bb74055d8362963ab25f605f/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20371,
2499,
12,
2890,
4672,
761,
273,
938,
18,
11790,
18,
1637,
67,
529,
2668,
674,
3223,
347,
834,
67,
24008,
2499,
6134,
309,
761,
353,
599,
30,
761,
273,
938,
18,
11790,
12,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20371,
2499,
12,
2890,
4672,
761,
273,
938,
18,
11790,
18,
1637,
67,
529,
2668,
674,
3223,
347,
834,
67,
24008,
2499,
6134,
309,
761,
353,
599,
30,
761,
273,
938,
18,
11790,
12,
508,
... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 873) else quickfix.StringField.__init__(self, 873, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
9036,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
9036,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
self.graph_instance_get(cursor, graph, instance_id, | self.graph_instance_get(cursor, user, graph, instance_id, | def execute(self, cursor, user, ids, datas, context=None): import pydot workflow_obj = self.pool.get('workflow') instance_obj = self.pool.get('workflow.instance') workflow_id = workflow_obj.search(cursor, user, [ ('osv', '=', datas['model']), ], limit=1, context=context) if not workflow_id: raise ExceptOSV('UserError',... | 0be16e5868ad4a3ea0858e980ed4f4f5f44a99b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/0be16e5868ad4a3ea0858e980ed4f4f5f44a99b9/workflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
5386,
16,
819,
33,
7036,
4672,
1930,
2395,
9811,
6095,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
13815,
6134,
791,
67,
2603,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
5386,
16,
819,
33,
7036,
4672,
1930,
2395,
9811,
6095,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
13815,
6134,
791,
67,
2603,
273,
... |
for string_id, string in source_strings.items(): | for string_id, source_string in source_strings.items(): | def main(argv): if len(argv) < 4: print __doc__ % argv[0] sys.exit(1) locales = [] translation_dir = argv.pop(-1) source_file = argv.pop(-1) target_file = argv.pop(-1) defines = getDefines(argv) # If this is an official build, warnings are treated as errors. treat_warnings_as_errors = defines.get('OFFICIAL_BUILD') !... | 00ea35b9791951af01325916fb87ff7ff1bbf5a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/00ea35b9791951af01325916fb87ff7ff1bbf5a5/parse_stab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
309,
562,
12,
19485,
13,
411,
1059,
30,
1172,
1001,
2434,
972,
738,
5261,
63,
20,
65,
2589,
18,
8593,
12,
21,
13,
225,
6922,
273,
5378,
225,
4794,
67,
1214,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
309,
562,
12,
19485,
13,
411,
1059,
30,
1172,
1001,
2434,
972,
738,
5261,
63,
20,
65,
2589,
18,
8593,
12,
21,
13,
225,
6922,
273,
5378,
225,
4794,
67,
1214,
27... |
self.write_footer(out, 'Help') | self.write_footer(out) | def write_help(self, out): """ Write an HTML help file to the given stream. If C{self._helpfile} contains a help file, then use it; otherwise, use the default helpfile from L{epydoc.docwriter.html_help}. @param public: The output stream for the public version of the page. @param private: The output stream for the pri... | 5ea84ea1e02846da0e350f57e8e105a8b121c2da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/5ea84ea1e02846da0e350f57e8e105a8b121c2da/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
5201,
12,
2890,
16,
596,
4672,
3536,
2598,
392,
3982,
2809,
585,
358,
326,
864,
1407,
18,
225,
971,
385,
95,
2890,
6315,
5201,
768,
97,
1914,
279,
2809,
585,
16,
1508,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5201,
12,
2890,
16,
596,
4672,
3536,
2598,
392,
3982,
2809,
585,
358,
326,
864,
1407,
18,
225,
971,
385,
95,
2890,
6315,
5201,
768,
97,
1914,
279,
2809,
585,
16,
1508,
999,
... |
def test_returns_unicode(self): for x, y in self.set_get_pairs: self.parser.returns_unicode = x self.assertEquals(self.parser.returns_unicode, y) | def test_returns_unicode(self): for x, y in self.set_get_pairs: self.parser.returns_unicode = x self.assertEquals(self.parser.returns_unicode, y) | f6f6daa781627c64792b65963803cef79810e96e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f6f6daa781627c64792b65963803cef79810e96e/test_pyexpat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6154,
67,
9124,
12,
2890,
4672,
364,
619,
16,
677,
316,
365,
18,
542,
67,
588,
67,
11545,
30,
365,
18,
4288,
18,
6154,
67,
9124,
273,
619,
365,
18,
11231,
8867,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
6154,
67,
9124,
12,
2890,
4672,
364,
619,
16,
677,
316,
365,
18,
542,
67,
588,
67,
11545,
30,
365,
18,
4288,
18,
6154,
67,
9124,
273,
619,
365,
18,
11231,
8867,
12,
2890,
... | |
print "fo:inline" attrs = dict( inline.attributes.items() ) print attrs return "<i>%s</i>" % unicode( self.getText( inline ) ) | return Inline( inline ) | def handle_inline(self, inline ): print "fo:inline" attrs = dict( inline.attributes.items() ) print attrs return "<i>%s</i>" % unicode( self.getText( inline ) ) | a2277304bbb73a2085be6a05d6ee61af69cb0cf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2494/a2277304bbb73a2085be6a05d6ee61af69cb0cf8/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
10047,
12,
2890,
16,
6370,
262,
30,
327,
16355,
12,
6370,
262,
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,
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,
1640,
67,
10047,
12,
2890,
16,
6370,
262,
30,
327,
16355,
12,
6370,
262,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
<p>This function returns nothing on success, and raises a <code>MailError</code> on any mail failure.</p> """ | <p>This function returns nothing on success, and raises a <code>MailError</code> on any mail failure.</p> <p> The From: and To: headers are always built from supplied parameters. Cc: and Bcc: headers in the supplied mail text are not touched and not used. </p> <p> The sendmail function adds a correct Date: header, ensu... | def sendmail ( to_addrs, subj, msg, from_addr = Configuration.FromAddress ): """** <p>The general-purpose sendmail function, which is called by the STML <:sendmail:> tag, or directly by Python code.</p> <p><tt>to_addrs</tt> should be a list or tuple of email address strings. <tt>subj</tt> must be a string, althou... | 5aaf09af19f1815efbe786252684a482132aa94b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/5aaf09af19f1815efbe786252684a482132aa94b/MailServices.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
261,
358,
67,
23305,
16,
15333,
16,
1234,
16,
628,
67,
4793,
273,
4659,
18,
1265,
1887,
262,
30,
3536,
636,
411,
84,
34,
1986,
7470,
17,
22987,
1366,
4408,
445,
16,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
261,
358,
67,
23305,
16,
15333,
16,
1234,
16,
628,
67,
4793,
273,
4659,
18,
1265,
1887,
262,
30,
3536,
636,
411,
84,
34,
1986,
7470,
17,
22987,
1366,
4408,
445,
16,
1492,
... |
def __init__(self, name="myvelmodel"): | def __init__(self, name="geogridvelmodel"): | def __init__(self, name="myvelmodel"): """ Constructor. """ SpatialDB.__init__(self, name) import spatialdb as bindings self.cppHandle = bindings.MyVelModel() # Change this self.cppHandle.label = "My velocity model" # Change this return | 5939cb3d5188130bb4abdf42d6e0f49298208f29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8643/5939cb3d5188130bb4abdf42d6e0f49298208f29/GeoGridVelModel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
1546,
908,
717,
1691,
941,
2284,
6,
4672,
3536,
11417,
18,
3536,
21874,
2290,
16186,
2738,
972,
12,
2890,
16,
508,
13,
1930,
15010,
1966,
487,
7394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
1546,
908,
717,
1691,
941,
2284,
6,
4672,
3536,
11417,
18,
3536,
21874,
2290,
16186,
2738,
972,
12,
2890,
16,
508,
13,
1930,
15010,
1966,
487,
7394,
... |
saveRoot = os.path.dirname(savePath) saveFile = os.path.basename(savePath) | self.fileRoot = os.path.dirname(fileRoot) | def wget(url, optMap, maxDepth=100): if optMap['saveTo']: savePath = optMap['saveTo'] else: savePath = os.curdir if not 'recursive' in optMap or not optMap['recursive']: maxDepth = 0 | 9d1220abfbcbc31806deb9a0809fb045a329b4e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/9d1220abfbcbc31806deb9a0809fb045a329b4e4/Wget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
588,
12,
718,
16,
2153,
863,
16,
22074,
33,
6625,
4672,
309,
2153,
863,
3292,
5688,
774,
3546,
30,
1923,
743,
273,
2153,
863,
3292,
5688,
774,
3546,
469,
30,
1923,
743,
273,
1140,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
588,
12,
718,
16,
2153,
863,
16,
22074,
33,
6625,
4672,
309,
2153,
863,
3292,
5688,
774,
3546,
30,
1923,
743,
273,
2153,
863,
3292,
5688,
774,
3546,
469,
30,
1923,
743,
273,
1140,... |
one_week = DateFromMx(start_date) conn = sql_helper.get_connection() try: lks = [] | lks = [] conn = sql_helper.get_connection() try: | def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email or host or user: return None | 0664df1f0b17740be9637ecca86984eaa336f0dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/0664df1f0b17740be9637ecca86984eaa336f0dd/untangle_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
578,
1479,
578,
729,
30,
327,
599,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
578,
1479,
578,
729,
30,
327,
599,
2,
-10... |
vars[name] = value.replace("\\", "\\\\") | vars[name] = _escape_backslash(value) | def parse_config(filename, dirs=None): if dirs: filenames = [os.path.join(d, filename) for d in dirs] else: filenames = [filename] config = SafeConfigParser() n = config.read(filenames) if not len(n) >= 1: raise PkgNotFound("Could not find file(s) %s" % str(filenames)) # Parse meta and variables sections meta = parse... | 68179584d3277daaef57d079f82bb5976de9d5d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/68179584d3277daaef57d079f82bb5976de9d5d1/npy_pkg_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1425,
12,
3459,
16,
7717,
33,
7036,
4672,
309,
7717,
30,
9066,
273,
306,
538,
18,
803,
18,
5701,
12,
72,
16,
1544,
13,
364,
302,
316,
7717,
65,
469,
30,
9066,
273,
306,
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,
1109,
67,
1425,
12,
3459,
16,
7717,
33,
7036,
4672,
309,
7717,
30,
9066,
273,
306,
538,
18,
803,
18,
5701,
12,
72,
16,
1544,
13,
364,
302,
316,
7717,
65,
469,
30,
9066,
273,
306,
3... |
contents = contents.replace("c:/devel/target/9c384abfa28a3e070eb60fc2972f823b/", "") | contents = contents.replace( "c:/devel/target/9c384abfa28a3e070eb60fc2972f823b/", "") | def install_gdk_pixbuf_loaders(self): basename = os.path.join('etc', 'gtk-2.0', 'gdk-pixbuf.loaders') source = os.path.join(GTK_ROOT_PATH, basename) dest = os.path.join(self.install_dir, basename) contents = open(source).read() # Not sure why they have paths like this in the file, but we need to # change them. contents... | 16717514d85be409df247e58637855a19e0ad04f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/16717514d85be409df247e58637855a19e0ad04f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
75,
2883,
67,
14861,
4385,
67,
945,
414,
12,
2890,
4672,
4882,
273,
1140,
18,
803,
18,
5701,
2668,
14175,
2187,
296,
4521,
79,
17,
22,
18,
20,
2187,
296,
75,
2883,
17,
1486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
75,
2883,
67,
14861,
4385,
67,
945,
414,
12,
2890,
4672,
4882,
273,
1140,
18,
803,
18,
5701,
2668,
14175,
2187,
296,
4521,
79,
17,
22,
18,
20,
2187,
296,
75,
2883,
17,
1486... |
sage: J.ramified_at(101) | sage: J.ramified_at(101) | def ramified_at(self, S, d=None, var='a'): """ Return all fields in the database of degree d ramified exactly at the primes in S. The fields are ordered by degree and discriminant. | 9c3ee48f2eec12f9efc6b027d023ad93464093f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9c3ee48f2eec12f9efc6b027d023ad93464093f1/jones.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24975,
939,
67,
270,
12,
2890,
16,
348,
16,
302,
33,
7036,
16,
569,
2218,
69,
11,
4672,
3536,
2000,
777,
1466,
316,
326,
2063,
434,
10782,
302,
24975,
939,
8950,
622,
326,
846,
4485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24975,
939,
67,
270,
12,
2890,
16,
348,
16,
302,
33,
7036,
16,
569,
2218,
69,
11,
4672,
3536,
2000,
777,
1466,
316,
326,
2063,
434,
10782,
302,
24975,
939,
8950,
622,
326,
846,
4485,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.