rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
record_delete_field(record,'FMT') | record_delete_field(record, 'FMT') | def insert_fmt_tags(record, rec_id): """Process and insert FMT tags""" tuple_list = None tuple_list = extract_tag_from_record(record, 'FMT') #If there is a FMT TAG :) if tuple_list != None: for single_tuple in tuple_list: # Get the inside of the FMT file f_value = single_tuple[0][0][1] g_value = single_tuple[0][1][1] ... | c01e7675eac4ac02844b96fe38be4646d43de28c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c01e7675eac4ac02844b96fe38be4646d43de28c/bibupload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
8666,
67,
4156,
12,
3366,
16,
1950,
67,
350,
4672,
3536,
2227,
471,
2243,
478,
6152,
2342,
8395,
225,
3193,
67,
1098,
273,
599,
3193,
67,
1098,
273,
2608,
67,
2692,
67,
2080,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
8666,
67,
4156,
12,
3366,
16,
1950,
67,
350,
4672,
3536,
2227,
471,
2243,
478,
6152,
2342,
8395,
225,
3193,
67,
1098,
273,
599,
3193,
67,
1098,
273,
2608,
67,
2692,
67,
2080,... |
pass | import time, thread, threading class Global: result = [] def add(self, value): with JSUnlocker() as unlocker: time.sleep(0.1) self.result.append(value) g = Global() def run(): with JSContext(g) as ctxt: ctxt.eval(""" for (i=0; i<10; i++) add(i); """) threads = [threading.Thread(target=run), threading.Thread(targe... | def testMultiJavascriptThread(self): pass | 76754aa85736627a1ffac786ae29b90df282facb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2065/76754aa85736627a1ffac786ae29b90df282facb/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5002,
27129,
3830,
12,
2890,
4672,
1930,
813,
16,
2650,
16,
17254,
225,
667,
8510,
30,
563,
273,
5378,
225,
1652,
527,
12,
2890,
16,
460,
4672,
598,
6756,
7087,
264,
1435,
487,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5002,
27129,
3830,
12,
2890,
4672,
1930,
813,
16,
2650,
16,
17254,
225,
667,
8510,
30,
563,
273,
5378,
225,
1652,
527,
12,
2890,
16,
460,
4672,
598,
6756,
7087,
264,
1435,
487,
7... |
elif self.verbosity() & LOGSTACKTRACE: | elif self.verbosity & LOGSTACKTRACE: | def exceptionHandler_shouldLogException_mask_(self, sender, exception, aMask): try: if isPythonException(exception): if self.verbosity() & LOGSTACKTRACE: nsLogObjCException(exception) return nsLogPythonException(exception) elif self.verbosity() & LOGSTACKTRACE: return nsLogObjCException(exception) else: return False ex... | 3dbe5364d1bb1b6f13a97c06192827e669a7ff2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/3dbe5364d1bb1b6f13a97c06192827e669a7ff2f/Debugging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
1503,
67,
13139,
1343,
503,
67,
4455,
67,
12,
2890,
16,
5793,
16,
1520,
16,
279,
5796,
4672,
775,
30,
309,
353,
15774,
503,
12,
4064,
4672,
309,
365,
18,
16629,
8807,
1435,
473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
1503,
67,
13139,
1343,
503,
67,
4455,
67,
12,
2890,
16,
5793,
16,
1520,
16,
279,
5796,
4672,
775,
30,
309,
353,
15774,
503,
12,
4064,
4672,
309,
365,
18,
16629,
8807,
1435,
473,
... |
iff = conf.iff | iff = conf.iface | def send(self, x): if hasattr(x,"dst"): iff,a,gw = choose_route(x.dst) else: iff = conf.iff sdto = (iff, self.type) self.outs.bind(sdto) sn = self.outs.getsockname() if sn[3] == ARPHDR_PPP: sdto = (iff, ETH_P_IP) elif LLTypes.has_key(sn[3]): x = LLTypes[sn[3]]()/x self.outs.sendto(str(x), sdto) | 4ab0830431443d93b512facc592cad2f9ac6ca25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4ab0830431443d93b512facc592cad2f9ac6ca25/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
619,
4672,
309,
3859,
12,
92,
10837,
11057,
6,
4672,
21437,
16,
69,
16,
28500,
273,
9876,
67,
5547,
12,
92,
18,
11057,
13,
469,
30,
21437,
273,
2195,
18,
31479,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
619,
4672,
309,
3859,
12,
92,
10837,
11057,
6,
4672,
21437,
16,
69,
16,
28500,
273,
9876,
67,
5547,
12,
92,
18,
11057,
13,
469,
30,
21437,
273,
2195,
18,
31479,
8... |
c,attrs=result[0] | c, attrs = result[0] | def getDetailedGroupById(self, id, base = None): """ Return raw ldap info on a group | b1d6cc77525df47924a366e236e66d732bea892f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/b1d6cc77525df47924a366e236e66d732bea892f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
6372,
1114,
5132,
12,
2890,
16,
612,
16,
1026,
273,
599,
4672,
3536,
2000,
1831,
8079,
1123,
603,
279,
1041,
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,
2343,
6372,
1114,
5132,
12,
2890,
16,
612,
16,
1026,
273,
599,
4672,
3536,
2000,
1831,
8079,
1123,
603,
279,
1041,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
The coefficient ring must support division by the appropriate denominators, or the function will fail. (It may succeed if you're lucky, in which case the answer is probably not unique.) Time complexity is approximately $M(n) \log n$, where $M(n)$ is the time required for a polynomial multiplication of length $n$. | 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,
... | |
keywords=keywords, license=options.license, directive_vars=dirvars) | keywords=keywords, directive_vars=dirvars) | def main(argv=sys.argv): """ Entry point when the script is called from the command line, not used as a module. """ import optparse usage = """%prog [options] source destination | 37b54849deb6bdf7c00d651f2ae8c531736d4cef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10922/37b54849deb6bdf7c00d651f2ae8c531736d4cef/dfbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
9499,
18,
19485,
4672,
3536,
3841,
1634,
1347,
326,
2728,
353,
2566,
628,
326,
1296,
980,
16,
486,
1399,
487,
279,
1605,
18,
3536,
1930,
2153,
2670,
4084,
273,
3536,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
9499,
18,
19485,
4672,
3536,
3841,
1634,
1347,
326,
2728,
353,
2566,
628,
326,
1296,
980,
16,
486,
1399,
487,
279,
1605,
18,
3536,
1930,
2153,
2670,
4084,
273,
3536,... |
def connect(self, callee_uri, credentials, route, audio=False, chat=False): | def connect(self, *args, **kwargs): | def connect(self, callee_uri, credentials, route, audio=False, chat=False): event_names = ['SCSessionDidStart', 'SCSessionDidFail', 'SCSessionDidEnd'] with self.linked_notifications(event_names) as q: self._obj.connect(callee_uri, credentials, route, audio=audio, chat=chat) while True: notification = q.wait() if notifi... | 7af97fe23c327834e66dfbbfca2430afcdecd0cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/7af97fe23c327834e66dfbbfca2430afcdecd0cd/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
871,
67,
1973,
273,
10228,
2312,
2157,
18250,
1685,
2187,
296,
2312,
2157,
18250,
3754,
2187,
296,
2312,
2157,
18250,
1638,
3546,
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,
3077,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
871,
67,
1973,
273,
10228,
2312,
2157,
18250,
1685,
2187,
296,
2312,
2157,
18250,
3754,
2187,
296,
2312,
2157,
18250,
1638,
3546,
598,
... |
return self.app_make(c) | return self.either(c, 'make') | def app_default(self, c): """How to determine the default application?""" f = c.file | d012468d69a53fe582b3a45f18a6aedb304defb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/d012468d69a53fe582b3a45f18a6aedb304defb3/apps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
67,
1886,
12,
2890,
16,
276,
4672,
3536,
44,
543,
358,
4199,
326,
805,
2521,
35,
8395,
284,
273,
276,
18,
768,
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,
595,
67,
1886,
12,
2890,
16,
276,
4672,
3536,
44,
543,
358,
4199,
326,
805,
2521,
35,
8395,
284,
273,
276,
18,
768,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
fl.post(fl.server_url + "/view_users.faces", params=[ ['j_id192', 'j_id192'], ['javax.faces.ViewState', fl.getLastJsfState()], ['j_id192:j_id194', 'j_id192:j_id194']], description="View create user form") | self.viewDocumentUid(self.getDocUid(), outcome='view_users', description="View create user form") | def createUser(self, username, email, password, firstname='', lastname='', company='', groups=''): """This method does not raise exception if user already exists""" fl = self.fl fl.assert_('j_id192' in fl.getBody()) fl.post(fl.server_url + "/view_users.faces", params=[ ['j_id192', 'j_id192'], ['javax.faces.ViewState', ... | 4f6cb47fd5a0cec6ab39d02a8adc2afbd0a822c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11813/4f6cb47fd5a0cec6ab39d02a8adc2afbd0a822c2/pages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22992,
12,
2890,
16,
2718,
16,
2699,
16,
2201,
16,
1122,
529,
2218,
2187,
1142,
529,
2218,
2187,
9395,
2218,
2187,
3252,
2218,
11,
4672,
3536,
2503,
707,
1552,
486,
1002,
1520,
309,
729,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22992,
12,
2890,
16,
2718,
16,
2699,
16,
2201,
16,
1122,
529,
2218,
2187,
1142,
529,
2218,
2187,
9395,
2218,
2187,
3252,
2218,
11,
4672,
3536,
2503,
707,
1552,
486,
1002,
1520,
309,
729,... |
self._wbuf.append (data) if self._wbufsize == 1: if '\n' in data: self.flush () elif self.__get_wbuf_len() >= self._wbufsize: | data = str(data) if not data: return self._wbuf.append(data) if (self._wbufsize == 0 or self._wbufsize == 1 and '\n' in data or self._get_wbuf_len() >= self._wbufsize): | def write(self, data): self._wbuf.append (data) # A _wbufsize of 1 means we're doing unbuffered IO. # Flush accordingly. if self._wbufsize == 1: if '\n' in data: self.flush () elif self.__get_wbuf_len() >= self._wbufsize: self.flush() | dee4f185d018d143d63db650d2b9ee53fe09c8e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dee4f185d018d143d63db650d2b9ee53fe09c8e9/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
365,
6315,
91,
4385,
18,
6923,
261,
892,
13,
468,
432,
389,
91,
4385,
1467,
434,
404,
4696,
732,
4565,
9957,
640,
26385,
1665,
18,
468,
11624,
15905,
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,
1045,
12,
2890,
16,
501,
4672,
365,
6315,
91,
4385,
18,
6923,
261,
892,
13,
468,
432,
389,
91,
4385,
1467,
434,
404,
4696,
732,
4565,
9957,
640,
26385,
1665,
18,
468,
11624,
15905,
18,... |
"""Return a list of highest weight vectors and multiplicities | """ Returns a list of highest weight vectors and multiplicities | def hlist(self): """Return a list of highest weight vectors and multiplicities of the irreducible characters in self. EXAMPLE: sage: B3 = WeylCharacterRing(['B',3]) sage: B3(1/2,1/2,1/2).hlist() [[(1/2, 1/2, 1/2), 1]] """ return [[self._parent.VS(k),m] for k,m in self._hdict.iteritems()] | af4f5f46d5016de6167398d67987ba1855db181e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af4f5f46d5016de6167398d67987ba1855db181e/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
1098,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
9742,
3119,
10046,
471,
3309,
1780,
1961,
434,
326,
9482,
1118,
5286,
1523,
3949,
316,
365,
18,
5675,
21373,
30,
272,
410,
30,
605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
1098,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
9742,
3119,
10046,
471,
3309,
1780,
1961,
434,
326,
9482,
1118,
5286,
1523,
3949,
316,
365,
18,
5675,
21373,
30,
272,
410,
30,
605,
... |
if re.match(r"http://(www\.)?relink.us/",new_link): new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1) time.sleep(5) | if re.match(r"http://(www\.)?relink.us/",new_link): new_link = re.search("src=['\"]([^'\"]*)['\"](.*)></iframe>", framereq).group(1) time.sleep(5) | def proceed(self, url, location): container_id = self.parent.url.split("/")[-1].split("id=")[-1] url = "http://relink.us/view.php?id="+container_id self.html = self.req.load(url, cookies=True) temp_links = [] | a49bae7ba97ae64f61f38c4e64b671a650203910 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/a49bae7ba97ae64f61f38c4e64b671a650203910/RelinkUs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
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,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
3... |
assert response.find(options.hammie_header_name) != -1 | assert response.find(options.hammie_header_name) >= 0 | def runProxy(): # Name the database in case it ever gets auto-flushed to disk. bayes = hammie.createbayes('_pop3proxy.db') BayesProxyListener('localhost', 8110, 8111, bayes) bayes.learn(tokenizer.tokenize(spam1), True) bayes.learn(tokenizer.tokenize(good1), False) proxyReady.set() asyncore.loop() | 959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3886,
13332,
468,
1770,
326,
2063,
316,
648,
518,
14103,
5571,
3656,
17,
11330,
329,
358,
4234,
18,
324,
528,
281,
273,
366,
301,
81,
1385,
18,
2640,
70,
528,
281,
2668,
67,
5120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3886,
13332,
468,
1770,
326,
2063,
316,
648,
518,
14103,
5571,
3656,
17,
11330,
329,
358,
4234,
18,
324,
528,
281,
273,
366,
301,
81,
1385,
18,
2640,
70,
528,
281,
2668,
67,
5120... |
if self.path[-1] != sep: self.path += sep | if isdir(self.path): if self.path[-1] != sep: self.path += sep | def run(self): """ Run this script! """ if self.path: if not exists(self.path): raise IOError, self.path + " does not exist!" | e799495f2b74a4ff3c4f9f262a278b3757981e64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2399/e799495f2b74a4ff3c4f9f262a278b3757981e64/scripts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1939,
333,
2728,
5,
3536,
309,
365,
18,
803,
30,
309,
486,
1704,
12,
2890,
18,
803,
4672,
1002,
8340,
16,
365,
18,
803,
397,
315,
1552,
486,
1005,
4442,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1939,
333,
2728,
5,
3536,
309,
365,
18,
803,
30,
309,
486,
1704,
12,
2890,
18,
803,
4672,
1002,
8340,
16,
365,
18,
803,
397,
315,
1552,
486,
1005,
4442,
2... |
sys.stdout.write('Importing %s - %d\r'%(classname, n)) sys.stdout.flush() | if self.verbose : sys.stdout.write('Importing %s - %d\r'%(classname, n)) sys.stdout.flush() | def do_import(self, args): ""'''Usage: import import_dir Import a database from the directory containing CSV files, two per class to import. | 65a7eaad5c50f18bb3357b517a1cb9d0d67505f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/65a7eaad5c50f18bb3357b517a1cb9d0d67505f9/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5666,
12,
2890,
16,
833,
4672,
1408,
26418,
5357,
30,
1930,
1930,
67,
1214,
6164,
279,
2063,
628,
326,
1867,
4191,
10381,
1390,
16,
2795,
1534,
667,
358,
1930,
18,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5666,
12,
2890,
16,
833,
4672,
1408,
26418,
5357,
30,
1930,
1930,
67,
1214,
6164,
279,
2063,
628,
326,
1867,
4191,
10381,
1390,
16,
2795,
1534,
667,
358,
1930,
18,
2,
-100,
-1... |
if not n.startswith("_APS_"): print "Duplicate id",i,"for",n,"is", self.names[i] | def parseH(self, file): lex = shlex.shlex(file) lex.commenters = "//" token = " " while token is not None: token = lex.get_token() if token == "" or token is None: token = None else: if token=='define': n = lex.get_token() i = int(lex.get_token()) self.ids[n] = i if self.names.has_key(i): # ignore AppStudio special one... | 4c7ce4aac702da7f45a3728e193d41cf292ed38d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/4c7ce4aac702da7f45a3728e193d41cf292ed38d/win32rcparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
44,
12,
2890,
16,
585,
4672,
5275,
273,
27180,
18,
674,
4149,
12,
768,
13,
5275,
18,
3469,
414,
273,
31828,
1147,
273,
315,
315,
1323,
1147,
353,
486,
599,
30,
1147,
273,
5275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
44,
12,
2890,
16,
585,
4672,
5275,
273,
27180,
18,
674,
4149,
12,
768,
13,
5275,
18,
3469,
414,
273,
31828,
1147,
273,
315,
315,
1323,
1147,
353,
486,
599,
30,
1147,
273,
5275,
... | |
rational number times the square root of a rational number (if prec=None), or real number if a precision is given | Rational number times the square root of a rational number (if ``prec=None``), or real number if a precision is given. | def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat... | 88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... |
return self.redirect_template(request, destination=url, view=self) | return self.redirect_template(request, destination=url, view=self, context=self.context) | def redirect(self, url, request): """Redirect to a URL and return a html page explaining the redirect.""" if '://' not in url: if not url.startswith('/'): url = '/' + url scheme = request.isSecure() and 'https' or 'http' hostname = request.getRequestHostname() port = request.getHost().port url = '%s://%s:%s%s' % (schem... | 5089729339f511f5b70127c72d8c308ce6afef51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5089729339f511f5b70127c72d8c308ce6afef51/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
2890,
16,
880,
16,
590,
4672,
3536,
5961,
358,
279,
1976,
471,
327,
279,
1729,
1363,
22991,
3280,
326,
3136,
12123,
309,
18397,
486,
316,
880,
30,
309,
486,
880,
18,
17514,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
2890,
16,
880,
16,
590,
4672,
3536,
5961,
358,
279,
1976,
471,
327,
279,
1729,
1363,
22991,
3280,
326,
3136,
12123,
309,
18397,
486,
316,
880,
30,
309,
486,
880,
18,
17514,
1... |
print "result", str(ret)[:1000] | log.debug("result %s", str(ret)[:1000]) | def convert(result): if hasattr(result, 'jsonState'): ret = result.jsonState() else: ret = result print "result", str(ret)[:1000] return json.serialize(ret) | aa3d8ba5ce108c9369a3d43a4a3223798de577f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12879/aa3d8ba5ce108c9369a3d43a4a3223798de577f4/mpdweb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2088,
4672,
309,
3859,
12,
2088,
16,
296,
1977,
1119,
11,
4672,
325,
273,
563,
18,
1977,
1119,
1435,
469,
30,
325,
273,
563,
613,
18,
4148,
2932,
2088,
738,
87,
3113,
609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2088,
4672,
309,
3859,
12,
2088,
16,
296,
1977,
1119,
11,
4672,
325,
273,
563,
18,
1977,
1119,
1435,
469,
30,
325,
273,
563,
613,
18,
4148,
2932,
2088,
738,
87,
3113,
609,
... |
str, "\\N{blah}", 'unicode-escape', 'strict' | str, b"\\N{blah}", 'unicode-escape', 'strict' | def test_strict_eror_handling(self): # bogus character name self.assertRaises( UnicodeError, str, "\\N{blah}", 'unicode-escape', 'strict' ) # long bogus character name self.assertRaises( UnicodeError, str, "\\N{%s}" % ("x" * 100000), 'unicode-escape', 'strict' ) # missing closing brace self.assertRaises( UnicodeError, ... | 6db1a548e1fcdacd31049eba931be060bfe26582 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/6db1a548e1fcdacd31049eba931be060bfe26582/test_ucn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13948,
67,
264,
280,
67,
26822,
12,
2890,
4672,
468,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
324,
6,
1695,
50,
95,
3083,
9795,
1532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13948,
67,
264,
280,
67,
26822,
12,
2890,
4672,
468,
324,
28774,
3351,
508,
365,
18,
11231,
12649,
6141,
12,
9633,
668,
16,
609,
16,
324,
6,
1695,
50,
95,
3083,
9795,
1532,
... |
version = "$Id: sax2rdf.py,v 1.11 2001-09-26 02:46:48 connolly Exp $" | version = "$Id: sax2rdf.py,v 1.12 2001-09-27 21:32:37 connolly Exp $" | def __init__(self, sink, thisURI, **kw): self.testdata = "" self._stack =[] # Stack of states self._nsmap = [] # stack of namespace bindings | e7d8fd48f6844615d83d64e50820c68703e48ff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/e7d8fd48f6844615d83d64e50820c68703e48ff2/sax2rdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9049,
16,
333,
3098,
16,
2826,
9987,
4672,
365,
18,
3813,
892,
273,
1408,
365,
6315,
3772,
273,
8526,
225,
468,
7283,
434,
5493,
365,
6315,
2387,
1458,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9049,
16,
333,
3098,
16,
2826,
9987,
4672,
365,
18,
3813,
892,
273,
1408,
365,
6315,
3772,
273,
8526,
225,
468,
7283,
434,
5493,
365,
6315,
2387,
1458,
2... |
del doc.hooks["end{document}"] | def __init__ (self, doc, dict): self.doc = doc doc.add_hook("import", self.import_doc) del doc.hooks["end{document}"] | 2804dacea92d21f3e024947465a123c5a994ff74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10102/2804dacea92d21f3e024947465a123c5a994ff74/combine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
997,
16,
2065,
4672,
365,
18,
2434,
273,
997,
997,
18,
1289,
67,
4476,
2932,
5666,
3113,
365,
18,
5666,
67,
2434,
13,
1464,
997,
18,
10468,
9614,
409,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
261,
2890,
16,
997,
16,
2065,
4672,
365,
18,
2434,
273,
997,
997,
18,
1289,
67,
4476,
2932,
5666,
3113,
365,
18,
5666,
67,
2434,
13,
1464,
997,
18,
10468,
9614,
409,
... | |
turnout = turnouts.getTurnout("IT:xPA:xAPBSC:"+fmtMsg.getSource()) | turnout = turnouts.getTurnout("IT:xAP:xAPBSC:"+fmtMsg.getSource()) | def processTurnout(self, fmtMsg, message) : pair = fmtMsg.getNameValuePair("output.state","Name") if (pair == None) : print "No Name" name = None else : name = pair.getValue() print " Name:", name pair = fmtMsg.getNameValuePair("output.state","Location") if (pair == None) : print "No Location" location = None el... | 5f4f8a86dd453a5e4d1d098210806bc7198f65f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1660/5f4f8a86dd453a5e4d1d098210806bc7198f65f7/xAPadapter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
15858,
659,
12,
2890,
16,
1325,
3332,
16,
883,
13,
294,
3082,
273,
1325,
3332,
18,
17994,
20337,
2932,
2844,
18,
2019,
15937,
461,
7923,
309,
261,
6017,
422,
599,
13,
294,
1172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
15858,
659,
12,
2890,
16,
1325,
3332,
16,
883,
13,
294,
3082,
273,
1325,
3332,
18,
17994,
20337,
2932,
2844,
18,
2019,
15937,
461,
7923,
309,
261,
6017,
422,
599,
13,
294,
1172,
... |
return fmt_str %(value, su) | return fmt_str %(value, round(su)) | def format_float_with_standard_uncertainty(value, standard_uncertainty): precision = -int(round(math.log10(standard_uncertainty))) if precision > -1: su = standard_uncertainty * math.pow(10, precision) if su < 2: su *= 10 precision += 1 fmt_str = "%%.%if(%%i)" %precision return fmt_str %(value, su) else: precision += 1... | d15b4a122bff28fd199082d2d04508905b7edceb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/d15b4a122bff28fd199082d2d04508905b7edceb/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
5659,
67,
1918,
67,
10005,
67,
551,
23777,
12,
1132,
16,
4529,
67,
551,
23777,
4672,
6039,
273,
300,
474,
12,
2260,
12,
15949,
18,
1330,
2163,
12,
10005,
67,
551,
23777,
20349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5659,
67,
1918,
67,
10005,
67,
551,
23777,
12,
1132,
16,
4529,
67,
551,
23777,
4672,
6039,
273,
300,
474,
12,
2260,
12,
15949,
18,
1330,
2163,
12,
10005,
67,
551,
23777,
20349... |
def xrjs_simple_feed(self, key, show, REQUEST): | def xrjs_simple_feed(self, key='', show='', REQUEST=None): | def xrjs_simple_feed(self, key, show, REQUEST): """ """ #if key == self.getSession(MSP_SESSION_KEY, None): res = '' ob = self.unrestrictedTraverse('%s' % show) if ob: if ob.latitude is not None and ob.longitude is not None: res = '%s|%s|%s' % (ob.latitude, ob.longitude, self.utJavaScriptEncode(ob.title_or_id())) #self.... | ee2a0886906d30a287601d06f4de64307b528182 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/ee2a0886906d30a287601d06f4de64307b528182/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20912,
2924,
67,
9647,
67,
7848,
12,
2890,
16,
498,
2218,
2187,
2405,
2218,
2187,
12492,
33,
7036,
4672,
3536,
3536,
468,
430,
498,
422,
365,
18,
588,
2157,
12,
49,
3118,
67,
7042,
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,
20912,
2924,
67,
9647,
67,
7848,
12,
2890,
16,
498,
2218,
2187,
2405,
2218,
2187,
12492,
33,
7036,
4672,
3536,
3536,
468,
430,
498,
422,
365,
18,
588,
2157,
12,
49,
3118,
67,
7042,
67,... |
if failure or not errmsg.startswith('=========='): | if (failure and not errmsg.startswith('==========')) and \ not ".cvspass does not exist - creating new file" in errmsg: | def cat_file(self, filename, revision): # Somehow CVS sometimes seems to write .cvsignore files to current # working directory even though we force stdout with -p. self.tempdir = tempfile.mkdtemp() os.chdir(self.tempdir) | a06c24aa0c131bc66b26580150421b494ccf9d64 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/a06c24aa0c131bc66b26580150421b494ccf9d64/cvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
67,
768,
12,
2890,
16,
1544,
16,
6350,
4672,
468,
10548,
13606,
385,
14640,
16594,
12001,
358,
1045,
263,
19774,
2977,
479,
1390,
358,
783,
468,
5960,
1867,
5456,
11376,
732,
2944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
67,
768,
12,
2890,
16,
1544,
16,
6350,
4672,
468,
10548,
13606,
385,
14640,
16594,
12001,
358,
1045,
263,
19774,
2977,
479,
1390,
358,
783,
468,
5960,
1867,
5456,
11376,
732,
2944,
... |
next = self.index(mark + " lineend +1c") | next = self.index(mark + "+%d lines linestart" % lines_to_get) lines_to_get = min(lines_to_get * 2, 100) | def recolorize_main(self): next = "1.0" was_ok = is_ok = 0 while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0" | 990678d1a571e2abd7063aa19b9a8d8a142d03d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/990678d1a571e2abd7063aa19b9a8d8a142d03d6/ColorDelegator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
3266,
554,
67,
5254,
12,
2890,
4672,
1024,
273,
315,
21,
18,
20,
6,
1703,
67,
601,
273,
353,
67,
601,
273,
374,
1323,
404,
30,
761,
273,
365,
18,
2692,
67,
82,
14523,
726,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
3266,
554,
67,
5254,
12,
2890,
4672,
1024,
273,
315,
21,
18,
20,
6,
1703,
67,
601,
273,
353,
67,
601,
273,
374,
1323,
404,
30,
761,
273,
365,
18,
2692,
67,
82,
14523,
726,
293... |
if item.endswith(suffix): | if fileName.endswith(suffix): | def catalogFSContent(FSfullPath, filetypePhrasesSkipList, catalogTool, mimetypesTool, uidBase, view_roles, effective, expires, meta_type): #zLOG.LOG('PloneLocalFolderNG', zLOG.INFO , \ # "catalogFSContent(%s,%s,%s,%s,%s,%s,%s,%s,%s)" \ # % (FSfullPath, filetypePhrasesSkipList, catalogTool, mimetypesTool, \ # ui... | 3c1fec1da1824c706f6904cf15c41cb4ac625866 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/3c1fec1da1824c706f6904cf15c41cb4ac625866/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
4931,
1350,
12,
4931,
2854,
743,
16,
18902,
28890,
6368,
682,
16,
6222,
6364,
16,
20369,
15180,
6364,
16,
4555,
2171,
16,
1476,
67,
7774,
16,
11448,
16,
7368,
16,
2191,
67,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
4931,
1350,
12,
4931,
2854,
743,
16,
18902,
28890,
6368,
682,
16,
6222,
6364,
16,
20369,
15180,
6364,
16,
4555,
2171,
16,
1476,
67,
7774,
16,
11448,
16,
7368,
16,
2191,
67,
723,
... |
else: | elif tank.status != constants.TANKDEAD and self.status != constants.TANKDEAD: | def collide_tank(self, tank): if tank.team == self.team: if tank.status == constants.TANKDEAD: self.team.respawn(tank) else: base = self.team.map.closest_base(self.pos) if not base:return if base.team == tank.team: self.kill() elif base.team == self.team: tank.kill() | a88763d0651e3694631bd311df26113d428bb8b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/a88763d0651e3694631bd311df26113d428bb8b7/game.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
645,
8130,
67,
88,
2304,
12,
2890,
16,
268,
2304,
4672,
309,
268,
2304,
18,
10035,
422,
365,
18,
10035,
30,
309,
268,
2304,
18,
2327,
422,
6810,
18,
56,
20201,
1639,
1880,
30,
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,
645,
8130,
67,
88,
2304,
12,
2890,
16,
268,
2304,
4672,
309,
268,
2304,
18,
10035,
422,
365,
18,
10035,
30,
309,
268,
2304,
18,
2327,
422,
6810,
18,
56,
20201,
1639,
1880,
30,
365,
1... |
fromSubPop=[0], toSubPop=[nc/2]) | subPops=[0], toSubPops=[nc/2]) | def changeSPSize(gen, oldSize): size = [0]*len(oldSize) for i in range(0, len(size)): size[i] = oldSize[i]*1.2 if size[i] > 1000: size[i] /= 2 return size | ec389c4b39871d3713fc6277ea094a4a496bab6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/ec389c4b39871d3713fc6277ea094a4a496bab6b/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
3118,
1225,
12,
4507,
16,
1592,
1225,
4672,
963,
273,
306,
20,
5772,
1897,
12,
1673,
1225,
13,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
1467,
3719,
30,
963,
63,
77,
65,
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,
2549,
3118,
1225,
12,
4507,
16,
1592,
1225,
4672,
963,
273,
306,
20,
5772,
1897,
12,
1673,
1225,
13,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
1467,
3719,
30,
963,
63,
77,
65,
273,
... |
register.addstmt(cxx.StmtReturn( cxx.ExprCall(cxx.ExprSelect(cxx.ExprVar('mActorMap'), '.', 'Add'), [ cxx.ExprVar('aRouted') ]))) | register.addstmt(cxx.StmtDecl(cxx.Decl(cxx.Type('int'), 'tmp'))) tmpvar = cxx.ExprVar('tmp') register.addstmt(cxx.StmtExpr( cxx.ExprAssn(tmpvar, p._cxx.nextRouteId))) register.addstmt(cxx.StmtExpr( cxx.ExprCall( cxx.ExprSelect(cxx.ExprVar('mActorMap'), '.', 'AddWithID'), [ cxx.ExprVar('aRouted'), tmpvar ]))) register.a... | def addDispatcher(mdefn, dispatchMethod, params): mdefn.addstmt(cxx.StmtDecl(cxx.Decl(cxx.Type('int'), '__route'))) routevar = cxx.ExprVar('__route') mdefn.addstmt(cxx.StmtExpr(cxx.ExprAssn( routevar, cxx.ExprCall(cxx.ExprSelect(cxx.ExprVar('msg'), '.', 'routing_id'))))) routeif = cxx.StmtIf(cxx.ExprBinary( cxx.ExprVar... | a864017a0319c1647f5f43fdebf3ac181d70f464 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/a864017a0319c1647f5f43fdebf3ac181d70f464/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6681,
12,
81,
536,
82,
16,
3435,
1305,
16,
859,
4672,
312,
536,
82,
18,
1289,
10589,
12,
71,
5279,
18,
8952,
3456,
12,
71,
5279,
18,
3456,
12,
71,
5279,
18,
559,
2668,
474,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6681,
12,
81,
536,
82,
16,
3435,
1305,
16,
859,
4672,
312,
536,
82,
18,
1289,
10589,
12,
71,
5279,
18,
8952,
3456,
12,
71,
5279,
18,
3456,
12,
71,
5279,
18,
559,
2668,
474,
19... |
elif encoding.lower() == 'b': | elif encoding == 'b': | def decode(s): """Return a decoded string according to RFC 2047, as a unicode string.""" rtn = [] parts = ecre.split(s, 1) while parts: # If there are less than 4 parts, it can't be encoded and we're done if len(parts) < 5: rtn.extend(parts) break # The first element is any non-encoded leading text rtn.append(parts[0])... | fa4ae2d937f23575cf56440bc1109df04699d23b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fa4ae2d937f23575cf56440bc1109df04699d23b/Utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
87,
4672,
3536,
990,
279,
6383,
533,
4888,
358,
8372,
11492,
27,
16,
487,
279,
5252,
533,
12123,
12119,
273,
5378,
2140,
273,
425,
1793,
18,
4939,
12,
87,
16,
404,
13,
1323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
87,
4672,
3536,
990,
279,
6383,
533,
4888,
358,
8372,
11492,
27,
16,
487,
279,
5252,
533,
12123,
12119,
273,
5378,
2140,
273,
425,
1793,
18,
4939,
12,
87,
16,
404,
13,
1323,
... |
col = gtk.TreeViewColumn ("Desktop", ren, visible=False) | ren.props.visible = False col = gtk.TreeViewColumn ("Desktop", ren) | def make_model(self, uris, treeview): | 5c25c397a1b371607800ad4a804fb2d8d2ba354a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/5c25c397a1b371607800ad4a804fb2d8d2ba354a/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2284,
12,
2890,
16,
21476,
16,
2151,
1945,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2284,
12,
2890,
16,
21476,
16,
2151,
1945,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raised when a symbol is not valid. """ def __init__(self, msg=''): self.message = msg Exception.__init__(self, msg) | def __repr__(self): return self.message | 2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2318/2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3/YahooFinance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
365,
18,
2150,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
365,
18,
2150,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
except: f=fver and (" (%s)" % fver) product=Product(name, 'Installed product %s%s' % (name,f)) | def initializeProduct(productp, name, home, app): # Initialize a levered product products=app.Control_Panel.Products if hasattr(productp, '__import_error__'): ie=productp.__import_error__ else: ie=None try: fver=strip(open(home+'/version.txt').read()) except: fver='' old=None try: if ihasattr(products,name): old=get... | fd1b86e5b35e98c6097731c206ae86be092150fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fd1b86e5b35e98c6097731c206ae86be092150fe/Product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
4133,
12,
5896,
84,
16,
508,
16,
6382,
16,
595,
4672,
468,
9190,
279,
884,
502,
329,
3017,
225,
10406,
33,
2910,
18,
3367,
67,
5537,
18,
13344,
225,
309,
3859,
12,
5896,
84,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
4133,
12,
5896,
84,
16,
508,
16,
6382,
16,
595,
4672,
468,
9190,
279,
884,
502,
329,
3017,
225,
10406,
33,
2910,
18,
3367,
67,
5537,
18,
13344,
225,
309,
3859,
12,
5896,
84,
16... | |
print e | def check_events(self): """Redirects all received events to the correct windows.""" # Print events and display them in the rigth windows. for e in self.get_events(): | 301ea6cfea8635fca60ce82968fe243cc019073d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2718/301ea6cfea8635fca60ce82968fe243cc019073d/wxserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5989,
12,
2890,
4672,
3536,
21978,
777,
5079,
2641,
358,
326,
3434,
9965,
12123,
468,
3038,
2641,
471,
2562,
2182,
316,
326,
436,
360,
451,
9965,
18,
364,
425,
316,
365,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
5989,
12,
2890,
4672,
3536,
21978,
777,
5079,
2641,
358,
326,
3434,
9965,
12123,
468,
3038,
2641,
471,
2562,
2182,
316,
326,
436,
360,
451,
9965,
18,
364,
425,
316,
365,
18,
5... | |
elif template_name == "plain": | elif template_name == constants.DT_PLAIN: | def _GenerateDiskTemplate(cfg, template_name, instance_name, primary_node, secondary_nodes, disk_sz, swap_sz): """Generate the entire disk layout for a given template type. """ #TODO: compute space requirements vgname = cfg.GetVGName() if template_name == "diskless": disks = [] elif template_name == "plain": if len(s... | 3517d9b9aeb4b30d5d46eed81f103af95f595027 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/3517d9b9aeb4b30d5d46eed81f103af95f595027/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
6247,
2283,
12,
7066,
16,
1542,
67,
529,
16,
791,
67,
529,
16,
3354,
67,
2159,
16,
9946,
67,
4690,
16,
4234,
67,
24575,
16,
7720,
67,
24575,
4672,
3536,
4625,
326,
7278,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
6247,
2283,
12,
7066,
16,
1542,
67,
529,
16,
791,
67,
529,
16,
3354,
67,
2159,
16,
9946,
67,
4690,
16,
4234,
67,
24575,
16,
7720,
67,
24575,
4672,
3536,
4625,
326,
7278,
4... |
Stat(pop, numOfAffected=True, vars='propOfAffected') | def assoTest(pop): 'Draw case-control sample and apply association tests' Stat(pop, numOfAffected=True, vars='propOfAffected') sample = CaseControlSample(pop, cases=500, controls=500)[0] Stat(sample, association=(0, 2), vars=['Allele_ChiSq_p', 'Geno_ChiSq_p', 'Armitage_p']) print 'Prevalence: %.2f, Allele_ChiSq: %.5f, ... | 650ee100662438bbc4674967be8ba677a377c7fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/650ee100662438bbc4674967be8ba677a377c7fe/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1551,
83,
4709,
12,
5120,
4672,
296,
6493,
648,
17,
7098,
3296,
471,
2230,
6384,
7434,
11,
3296,
273,
12605,
3367,
8504,
12,
5120,
16,
6088,
33,
12483,
16,
11022,
33,
12483,
25146,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1551,
83,
4709,
12,
5120,
4672,
296,
6493,
648,
17,
7098,
3296,
471,
2230,
6384,
7434,
11,
3296,
273,
12605,
3367,
8504,
12,
5120,
16,
6088,
33,
12483,
16,
11022,
33,
12483,
25146,
20,
... | |
player = playerlib.getPlayer(userid) | def combatCountdown(userid, repeatInfo): # Set health player = playerlib.getPlayer(userid) player.set('health', 999) # Is plural if playerCounters[userid] > 1: gungamelib.centermsg('gg_spawn_protect', userid, 'CombatCountdown_Plural', {'time': playerCounters[userid]}) # Is singular elif playerCounters[userid] == 1: g... | d589705549f51b776b2803e34081246beca658ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/d589705549f51b776b2803e34081246beca658ae/gg_spawn_protect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3894,
270,
1380,
2378,
12,
8339,
16,
7666,
966,
4672,
468,
1000,
8437,
7291,
18,
542,
2668,
13267,
2187,
22249,
13,
225,
468,
2585,
7978,
309,
7291,
18037,
63,
8339,
65,
405,
404,
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,
3894,
270,
1380,
2378,
12,
8339,
16,
7666,
966,
4672,
468,
1000,
8437,
7291,
18,
542,
2668,
13267,
2187,
22249,
13,
225,
468,
2585,
7978,
309,
7291,
18037,
63,
8339,
65,
405,
404,
30,
... | |
buf.append(" Service is %s" % device.user_input) | buf.append(" Device is %s" % device.user_input) | def display_device(device, pidf, buf): # display device ID if device.device_id is not None: buf.append(" Device id: %s" % device.device_id) # display class if device.rpid_class is not None: buf.append(" Class: %s" % person.rpid_class) # display timestamp if device.timestamp is not None: buf.append(" Timestamp:... | e49f3ee65046a9e265ec0ba4f5b62b613bea4020 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/e49f3ee65046a9e265ec0ba4f5b62b613bea4020/sip_subscribe_presence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
5964,
12,
5964,
16,
4231,
74,
16,
1681,
4672,
468,
2562,
2346,
1599,
309,
2346,
18,
5964,
67,
350,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
6077,
612,
30,
738,
87,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
5964,
12,
5964,
16,
4231,
74,
16,
1681,
4672,
468,
2562,
2346,
1599,
309,
2346,
18,
5964,
67,
350,
353,
486,
599,
30,
1681,
18,
6923,
2932,
565,
6077,
612,
30,
738,
87,
6,
... |
assert liveboxes == [b2s, b4s] | assert liveboxes == [b2s, b4s] or liveboxes == [b4s, b2s] | def test_virtual_adder_pending_fields(): b2s, b4s = [BoxPtr(), BoxPtr()] storage = Storage() memo = ResumeDataLoopMemo(FakeMetaInterpStaticData()) modifier = ResumeDataVirtualAdder(storage, memo) modifier.liveboxes_from_env = {} modifier.liveboxes = {} modifier.vfieldboxes = {} v2 = OptValue(b2s) v4 = OptValue(b4s) mo... | e8cc0d624a9520df13228cab4e50520df112a461 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/e8cc0d624a9520df13228cab4e50520df112a461/test_resume.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12384,
67,
361,
765,
67,
9561,
67,
2821,
13332,
324,
22,
87,
16,
324,
24,
87,
273,
306,
3514,
5263,
9334,
8549,
5263,
1435,
65,
2502,
273,
5235,
1435,
11063,
273,
1124,
2066,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12384,
67,
361,
765,
67,
9561,
67,
2821,
13332,
324,
22,
87,
16,
324,
24,
87,
273,
306,
3514,
5263,
9334,
8549,
5263,
1435,
65,
2502,
273,
5235,
1435,
11063,
273,
1124,
2066,... |
Sub(date, "value").text = self.threeDlocEventTime.isoformat() + '.%03i' % self.threeDlocEventTime.microsecond | Sub(date, "value").text = self.threeDlocEventTime.isoformat() | def threeDLoc2XML(self): """ Returns output of 3dloc as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.xmlEventID Sub(Sub(xml, "event_type"), "value").text = "manual" # we save P picks on Z-component and S picks on N-component # XXX standard values for unset keys!!!???!!!??? epidis... | e3cbfd70f9175004acca4efdf96cb210893ee944 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/e3cbfd70f9175004acca4efdf96cb210893ee944/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8925,
40,
1333,
22,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
890,
72,
1829,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
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,
8925,
40,
1333,
22,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
890,
72,
1829,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67... |
@keyword dest: If set, provides the target name of the file in the build | @keyword dest: If set, provides the target name of the file in the build | def __init__(self, recipe, *args, **keywords): | bbf56a2c6ce326846b9cfaed245edce8bd904567 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/bbf56a2c6ce326846b9cfaed245edce8bd904567/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16100,
16,
380,
1968,
16,
2826,
11771,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16100,
16,
380,
1968,
16,
2826,
11771,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fb2_text += '<image xlink:herf=" | fb2_text += '<image xlink:href=" | def dump_text(self, elem, stylizer, tag_stack=[]): if not isinstance(elem.tag, basestring) \ or namespace(elem.tag) != XHTML_NS: return u'' fb2_text = u'' style = stylizer.style(elem) | ae488d72414ff98f651cc7778ec6020ae757111d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/ae488d72414ff98f651cc7778ec6020ae757111d/fb2ml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
955,
12,
2890,
16,
3659,
16,
16253,
80,
1824,
16,
1047,
67,
3772,
33,
8526,
4672,
309,
486,
1549,
12,
10037,
18,
2692,
16,
10699,
13,
521,
578,
1981,
12,
10037,
18,
2692,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
955,
12,
2890,
16,
3659,
16,
16253,
80,
1824,
16,
1047,
67,
3772,
33,
8526,
4672,
309,
486,
1549,
12,
10037,
18,
2692,
16,
10699,
13,
521,
578,
1981,
12,
10037,
18,
2692,
1... |
data.append('<table cellspacing=0>\n') | data.append('<TABLE CELLSPACING="0">\n') | def tpRender(self, md, section): # Check for collapse all, expand all, and state try: collapse_all=md['collapse_all'] except: collapse_all=None if collapse_all: state=[] else: try: expand_all=md['expand_all'] except: expand_all=None if expand_all: # in case of expand all - to maintain state correctly we # have to make... | 8126734c1ab390be0bbe9dafdfc014ddc7232fc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8126734c1ab390be0bbe9dafdfc014ddc7232fc5/TreeTag.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8071,
3420,
12,
2890,
16,
3481,
16,
2442,
4672,
225,
468,
2073,
364,
13627,
777,
16,
4542,
777,
16,
471,
919,
775,
30,
13627,
67,
454,
33,
1264,
3292,
21405,
67,
454,
3546,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8071,
3420,
12,
2890,
16,
3481,
16,
2442,
4672,
225,
468,
2073,
364,
13627,
777,
16,
4542,
777,
16,
471,
919,
775,
30,
13627,
67,
454,
33,
1264,
3292,
21405,
67,
454,
3546,
1335,
30,
... |
return win32functions.GetWindowLong (handle, GWL_USERDATA) | return win32functions.GetWindowLong (handle, GWL_USERDATA) | def userdata(handle): return win32functions.GetWindowLong (handle, GWL_USERDATA) | 2bdae3a49fa9ad42a9628b8679eff4c2bbdb85df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/2bdae3a49fa9ad42a9628b8679eff4c2bbdb85df/handleprops.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21518,
12,
4110,
4672,
327,
5657,
1578,
10722,
18,
967,
3829,
3708,
261,
4110,
16,
611,
59,
48,
67,
4714,
4883,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21518,
12,
4110,
4672,
327,
5657,
1578,
10722,
18,
967,
3829,
3708,
261,
4110,
16,
611,
59,
48,
67,
4714,
4883,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=2$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2)$, $a(1)=3$ and $a(2)=9$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song et al., Extremes... | def __init__(self): r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=2$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2)$, $a(1)=3$ and $a(2)=9$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun S... | def list(self, n): self._eval(n) # force computation return self._b[:n] | 8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
225,
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,
0,
0,
0,
0,
0,
0,
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,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.depart_paragraph(self, node) | self.depart_paragraph(node) | def texinfo_depart_displaymath(self, node): self.depart_paragraph(self, node) | c48b67d3c9a25bf15e92627984ef220c44ec711f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/c48b67d3c9a25bf15e92627984ef220c44ec711f/mathbase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16573,
1376,
67,
323,
2680,
67,
5417,
15949,
12,
2890,
16,
756,
4672,
365,
18,
323,
2680,
67,
22445,
12,
2159,
13,
225,
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,
16573,
1376,
67,
323,
2680,
67,
5417,
15949,
12,
2890,
16,
756,
4672,
365,
18,
323,
2680,
67,
22445,
12,
2159,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
import tkMessageBox answer = tkMessageBox.askyesno(_("%s config purge") % wc.AppName, _("""There are local filter rules in the configuration directory. Do you want to remove them? They can be re-used in other installations of %s, but are useless otherwise.""") % wc.AppName) if answer: | import Tkinter as tk root = tk.Tk() def do_ok (event=None): | def purge_tempfiles (): """ Ask if user wants to purge local config files. """ import wc files = glob.glob(os.path.join(wc.ConfigDir, "local_*.zap")) if not files: return import tkMessageBox answer = tkMessageBox.askyesno(_("%s config purge") % wc.AppName, _("""There are local filter rules in the configuration director... | 907a7809030868f971bd15c6ff7016d0a0333b21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/907a7809030868f971bd15c6ff7016d0a0333b21/install-webcleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
67,
5814,
2354,
1832,
30,
3536,
25747,
309,
729,
14805,
358,
11668,
1191,
642,
1390,
18,
3536,
1930,
14310,
1390,
273,
4715,
18,
10581,
12,
538,
18,
803,
18,
5701,
12,
27594,
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,
11668,
67,
5814,
2354,
1832,
30,
3536,
25747,
309,
729,
14805,
358,
11668,
1191,
642,
1390,
18,
3536,
1930,
14310,
1390,
273,
4715,
18,
10581,
12,
538,
18,
803,
18,
5701,
12,
27594,
18,
... |
for classId in deps["warn"]: if classId not in deps["ignore"]: self._console.warn("! Unknown class referenced: %s (in: %s)" % (classId, item)) | for dep in deps["warn"]: if dep.name not in ignore_names: self._console.warn("! Unknown class referenced: %s (%s:%s)" % (dep.name, item, dep.line)) | def classlistFromClassRecursive(item, excludeWithDeps, variants, result): # support blocking if item in excludeWithDeps: return | 9fcc2e06b607aced774242b3f05d49061c46732e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/9fcc2e06b607aced774242b3f05d49061c46732e/DependencyLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
1098,
1265,
797,
10483,
12,
1726,
16,
4433,
1190,
14430,
16,
12935,
16,
563,
4672,
468,
2865,
9445,
309,
761,
316,
4433,
1190,
14430,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
667,
1098,
1265,
797,
10483,
12,
1726,
16,
4433,
1190,
14430,
16,
12935,
16,
563,
4672,
468,
2865,
9445,
309,
761,
316,
4433,
1190,
14430,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.putsequences() | self.putsequences(sequences) | def removefromallsequences(self, list): if hasattr(self, 'last') and self.last in list: del self.last sequences = self.getsequences() changed = 0 for name, seq in sequences.items(): for n in list: if n in seq: seq.remove(n) changed = 1 if not seq: del sequences[name] if changed: self.putsequences() | 5f47e5752a31dda81e20a21ed9dc33d0fa9b0db7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5f47e5752a31dda81e20a21ed9dc33d0fa9b0db7/mhlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
2080,
454,
17190,
12,
2890,
16,
666,
4672,
309,
3859,
12,
2890,
16,
296,
2722,
6134,
471,
365,
18,
2722,
316,
666,
30,
1464,
365,
18,
2722,
8463,
273,
365,
18,
588,
17190,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
2080,
454,
17190,
12,
2890,
16,
666,
4672,
309,
3859,
12,
2890,
16,
296,
2722,
6134,
471,
365,
18,
2722,
316,
666,
30,
1464,
365,
18,
2722,
8463,
273,
365,
18,
588,
17190,
1435,
... |
self.constrains = {} | def __str__(self): return ' '.join(self.value) | def __init__(self,name,descr=None,choices=[]): Variable.__init__(self,name,descr) self.choices = choices self.constrains = {} | a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
529,
16,
28313,
33,
7036,
16,
11937,
33,
8526,
4672,
7110,
16186,
2738,
972,
12,
2890,
16,
529,
16,
28313,
13,
365,
18,
11937,
273,
7246,
365,
18,
591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
529,
16,
28313,
33,
7036,
16,
11937,
33,
8526,
4672,
7110,
16186,
2738,
972,
12,
2890,
16,
529,
16,
28313,
13,
365,
18,
11937,
273,
7246,
365,
18,
591,
... |
bar = ProgressBar("Progress, progress...", 100) | bar = ProgressBar("Progress, progress...", 0, label="Ramping up...") | def test(): import time, sys Message("Testing EasyDialogs.") optionlist = (('v', 'Verbose'), ('verbose', 'Verbose as long option'), ('flags=', 'Valued option'), ('f:', 'Short valued option')) commandlist = (('start', 'Start something'), ('stop', 'Stop something')) argv = GetArgv(optionlist=optionlist, commandlist=comm... | b48dea14d8bf7cc4ae844d70574494af7a698ddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b48dea14d8bf7cc4ae844d70574494af7a698ddb/EasyDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1930,
813,
16,
2589,
225,
2350,
2932,
22218,
29442,
11885,
14072,
1199,
13,
1456,
1098,
273,
261,
2668,
90,
2187,
296,
14489,
19899,
7707,
11369,
2187,
296,
14489,
487,
1525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
1930,
813,
16,
2589,
225,
2350,
2932,
22218,
29442,
11885,
14072,
1199,
13,
1456,
1098,
273,
261,
2668,
90,
2187,
296,
14489,
19899,
7707,
11369,
2187,
296,
14489,
487,
1525,
... |
throw throw_error(PyExc_ValueError, "the variable 'a' should not be less than 2"); | throw_error(PyExc_ValueError, "the variable 'a' should not be less than 2"); | def check_exceptions(self): a = 3 code = """ if (a < 2) throw throw_error(PyExc_ValueError, "the variable 'a' should not be less than 2"); else return_val = Py::new_reference_to(Py::Int(a+1)); """ result = inline_tools.inline(code,['a']) assert(result == 4) try: a = 1 result = inline_tools.inline(code,['a']) assert(1)... | 3f41d8c569eeff84cf024b7db4393220c050e434 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/3f41d8c569eeff84cf024b7db4393220c050e434/test_inline_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11855,
12,
2890,
4672,
279,
273,
890,
981,
273,
3536,
309,
261,
69,
411,
576,
13,
604,
67,
1636,
12,
9413,
29924,
67,
23610,
16,
315,
5787,
2190,
296,
69,
11,
1410,
486,
506... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11855,
12,
2890,
4672,
279,
273,
890,
981,
273,
3536,
309,
261,
69,
411,
576,
13,
604,
67,
1636,
12,
9413,
29924,
67,
23610,
16,
315,
5787,
2190,
296,
69,
11,
1410,
486,
506... |
def ModifyBootDesc(download_folder, redirect_file=None): """Modifies the boot description of a downloaded image to work with path. | def testGetLatestZipUrl(self): """Test case that tests GetLatestZipUrl with test urls.""" self.mox.StubOutWithMock(urllib, 'urlopen') m_file = self.mox.CreateMock(file) | def ModifyBootDesc(download_folder, redirect_file=None): """Modifies the boot description of a downloaded image to work with path. The default boot.desc from another system is specific to the directory it was created in. This modifies the boot description to be compatiable with the download folder. Args: download_fo... | 2cc5cd41556ea2cdcaf9142c96f440206f1f5867 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/2cc5cd41556ea2cdcaf9142c96f440206f1f5867/ctest_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
18650,
9141,
1489,
12,
2890,
4672,
3536,
4709,
648,
716,
7434,
968,
18650,
9141,
1489,
598,
1842,
6903,
12123,
365,
18,
81,
2409,
18,
11974,
1182,
1190,
9865,
12,
718,
2941,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
18650,
9141,
1489,
12,
2890,
4672,
3536,
4709,
648,
716,
7434,
968,
18650,
9141,
1489,
598,
1842,
6903,
12123,
365,
18,
81,
2409,
18,
11974,
1182,
1190,
9865,
12,
718,
2941,
1... |
output(html) | def unwatchedpages(self, number = 10, repeat = False): throttle = True seen = set() while True: path = self.unwatchedpages_address(n=number) get_throttle() html = self.getUrl(path, sysop = True) output(html) entryR = re.compile('<li><a href=".+?" title="(?P<title>.+?)">.+?</a>.+?</li>') for m in entryR.finditer(html): ... | 19276bfef9b11158286c3443954680a287b11310 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/19276bfef9b11158286c3443954680a287b11310/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
7585,
329,
7267,
12,
2890,
16,
1300,
273,
1728,
16,
7666,
273,
1083,
4672,
18304,
273,
1053,
5881,
273,
444,
1435,
1323,
1053,
30,
589,
273,
365,
18,
318,
7585,
329,
7267,
67,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
7585,
329,
7267,
12,
2890,
16,
1300,
273,
1728,
16,
7666,
273,
1083,
4672,
18304,
273,
1053,
5881,
273,
444,
1435,
1323,
1053,
30,
589,
273,
365,
18,
318,
7585,
329,
7267,
67,
286... | |
except herror: hostaddr = self.server.server_address | except socket.herror: hostaddr = self.server.server_address[0] | def serve_virtual_uri(self): """ Serve dynamic URIs with our own code, and create pages on the fly. """ | af9d2fddfd652e6d06f47693834f54a72046cb4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/af9d2fddfd652e6d06f47693834f54a72046cb4a/wmi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
12384,
67,
1650,
12,
2890,
4672,
3536,
11115,
5976,
24565,
598,
3134,
4953,
981,
16,
471,
752,
4689,
603,
326,
21434,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
12384,
67,
1650,
12,
2890,
4672,
3536,
11115,
5976,
24565,
598,
3134,
4953,
981,
16,
471,
752,
4689,
603,
326,
21434,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
found_hash = self.client.findHash(pkg_path) self.failUnless(found_hash[0] == pkg_hash, "Hashes don't match: %s != %s" % (found_hash[0], pkg_hash)) | d = self.client.findHash(pkg_path) d.addCallback(self.verifyHash, pkg_path, pkg_hash) d.addCallback(lastDefer.callback) return lastDefer def test_findSrcHash(self): lastDefer = defer.Deferred() | def test_findHash(self): idx_hash = os.popen('grep -A 3000 -E "^SHA1:" ' + '/var/lib/apt/lists/' + self.releaseFile + ' | grep -E " main/binary-i386/Packages.bz2$"' ' | head -n 1 | cut -d\ -f 2').read().rstrip('\n') idx_path = self.releaseFile[self.releaseFile.find('_debian_')+1:].replace('_','/')[:-7] + 'main/binary-... | 0ad382b9a8273617c2ee9891c77a2e3fb9d0f2bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/665/0ad382b9a8273617c2ee9891c77a2e3fb9d0f2bd/AptPackages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4720,
2310,
12,
2890,
4672,
2067,
67,
2816,
273,
1140,
18,
84,
3190,
2668,
11556,
84,
300,
37,
29839,
300,
41,
15017,
8325,
21,
2773,
296,
397,
1173,
1401,
19,
2941,
19,
1657... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
2310,
12,
2890,
4672,
2067,
67,
2816,
273,
1140,
18,
84,
3190,
2668,
11556,
84,
300,
37,
29839,
300,
41,
15017,
8325,
21,
2773,
296,
397,
1173,
1401,
19,
2941,
19,
1657... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 49) else quickfix.StringField.__init__(self, 49, 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,
17160,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
17160,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972... |
def _printguid(self,guid): r = "%.8X-%.4X-%.4X-%.2X%.2X-%s" % guid return r | def __init__(self,file): mediainfo.AVInfo.__init__(self) self.context = 'video' self.mime = 'video/asf' self.type = 'asf video' | d42d2cd74da685ad73c3e864799dc062483b0d6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/d42d2cd74da685ad73c3e864799dc062483b0d6f/asfinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
768,
4672,
20623,
28935,
18,
5856,
966,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2472,
273,
296,
9115,
11,
365,
18,
11757,
273,
296,
9115,
19,
345,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
768,
4672,
20623,
28935,
18,
5856,
966,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2472,
273,
296,
9115,
11,
365,
18,
11757,
273,
296,
9115,
19,
345,
74,
... | |
return result | return meta.result | def get_result(self, task_id): """Get the result for a task.""" meta = self._get_task_meta_for(task_id) if meta.status == "FAILURE": return self.exception_to_python(meta.result) else: return result | 1b98a82e6b63077f500eb3350ab62a90496314d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2024/1b98a82e6b63077f500eb3350ab62a90496314d5/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2088,
12,
2890,
16,
1562,
67,
350,
4672,
3536,
967,
326,
563,
364,
279,
1562,
12123,
2191,
273,
365,
6315,
588,
67,
4146,
67,
3901,
67,
1884,
12,
4146,
67,
350,
13,
309,
219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2088,
12,
2890,
16,
1562,
67,
350,
4672,
3536,
967,
326,
563,
364,
279,
1562,
12123,
2191,
273,
365,
6315,
588,
67,
4146,
67,
3901,
67,
1884,
12,
4146,
67,
350,
13,
309,
219... |
self.application.removeIdentity("web") | self.application.authorizer.removeIdentity("web") | def upgradeToVersion2(self): self.application.removeIdentity("web") del self.application.services[self.serviceName] del self.serviceName del self.application del self.perspectiveName | a7f55d3d84feaee3bac062ec7c971a5c2cea4247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a7f55d3d84feaee3bac062ec7c971a5c2cea4247/distrib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
774,
1444,
22,
12,
2890,
4672,
365,
18,
3685,
18,
4161,
1824,
18,
4479,
4334,
2932,
4875,
7923,
1464,
365,
18,
3685,
18,
8387,
63,
2890,
18,
15423,
65,
1464,
365,
18,
15423,
1464... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8400,
774,
1444,
22,
12,
2890,
4672,
365,
18,
3685,
18,
4161,
1824,
18,
4479,
4334,
2932,
4875,
7923,
1464,
365,
18,
3685,
18,
8387,
63,
2890,
18,
15423,
65,
1464,
365,
18,
15423,
1464... |
'li': u'Categorie', | 'li': [u'Categorie', u'Kategorie'], | def __init__(self): self.name = None # Updated from http://meta.wikimedia.org/wiki/Interwiki_sorting_order self.alphabetic = [ 'aa','af','ak','als','am','ang','ab','ar','an','arc','roa-rup','frp','as', 'ast','gn','av','ay','az','bm','bn','zh-min-nan','map-bms','ba','be','be-x-old', 'bh','bi','bar','bo','bs','br','bg','... | 77a75698399478e7dd6f1f45b603622936bc61e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/77a75698399478e7dd6f1f45b603622936bc61e4/family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
468,
19301,
628,
1062,
2207,
3901,
18,
11999,
381,
1980,
18,
3341,
19,
13044,
19,
2465,
13044,
67,
28751,
67,
1019,
365,
18,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
529,
273,
599,
468,
19301,
628,
1062,
2207,
3901,
18,
11999,
381,
1980,
18,
3341,
19,
13044,
19,
2465,
13044,
67,
28751,
67,
1019,
365,
18,
28... |
return 'environ({!r})'.format(self.data) | return 'environ({})'.format(', '.join( ('{!r}: {!r}'.format(self.decodekey(key), self.decodevalue(value)) for key, value in self.data.items()))) | def __repr__(self): return 'environ({!r})'.format(self.data) | d73c1a3009d4bf0212d0d59111c1191066e245e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/d73c1a3009d4bf0212d0d59111c1191066e245e4/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
296,
28684,
12590,
5,
86,
17644,
18,
2139,
12,
2890,
18,
892,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
296,
28684,
12590,
5,
86,
17644,
18,
2139,
12,
2890,
18,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
SL(n); you also some information about representations of E6 | SL(n); you also lose some information about representations of E6 | def WeylCharacterRing(ct, base_ring=ZZ, prefix=None, cache=False, style="lattice"): r""" A class for rings of Weyl characters. The Weyl character is a character of a semisimple (or reductive) Lie group or algebra. They form a ring, in which the addition and multiplication correspond to direct sum and tensor product of ... | 0d2e702325766a8d91d2b05289c8310c3dbe3479 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0d2e702325766a8d91d2b05289c8310c3dbe3479/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
402,
80,
7069,
10369,
12,
299,
16,
1026,
67,
8022,
33,
27096,
16,
1633,
33,
7036,
16,
1247,
33,
8381,
16,
2154,
1546,
80,
24966,
6,
4672,
436,
8395,
432,
667,
364,
26537,
434,
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,
678,
402,
80,
7069,
10369,
12,
299,
16,
1026,
67,
8022,
33,
27096,
16,
1633,
33,
7036,
16,
1247,
33,
8381,
16,
2154,
1546,
80,
24966,
6,
4672,
436,
8395,
432,
667,
364,
26537,
434,
6... |
return (filename, fpath) | return (pagename, filename, fpath) | def _access_file(pagename, request): """ Check form parameter `target` and return a tuple of `(filename, filepath)` for an existing attachment. Return `(None, None)` if an error occurs. """ _ = request.getText error = None if not request.form.get('target', [''])[0]: error = _("Filename of attachment not specified!") ... | 6149c0c2efa5634fb7963ae1facd7d07fd6277e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/6149c0c2efa5634fb7963ae1facd7d07fd6277e9/AttachFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3860,
67,
768,
12,
9095,
1069,
16,
590,
4672,
3536,
2073,
646,
1569,
1375,
3299,
68,
471,
327,
279,
3193,
434,
1375,
12,
3459,
16,
3608,
22025,
364,
392,
2062,
6042,
18,
225,
2000... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3860,
67,
768,
12,
9095,
1069,
16,
590,
4672,
3536,
2073,
646,
1569,
1375,
3299,
68,
471,
327,
279,
3193,
434,
1375,
12,
3459,
16,
3608,
22025,
364,
392,
2062,
6042,
18,
225,
2000... |
if not VALID_SECTOR(w.x, w.y): | if not VALID_SECTOR(w.i, w.j): | def torpedo(origin, course, dispersion, number, nburst): "Let a photon torpedo fly" shoved = False ac = course + 0.25*dispersion angle = (15.0-ac)*0.5235988 bullseye = (15.0 - course)*0.5235988 delta = coord(-math.sin(angle), math.cos(angle)) bigger = max(abs(delta.x), abs(delta.y)) delta /= bigger x = origin.x; y = or... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1845,
83,
12,
10012,
16,
4362,
16,
16232,
722,
16,
1300,
16,
4264,
18593,
4672,
315,
24181,
279,
24542,
265,
8934,
1845,
83,
21434,
6,
699,
9952,
273,
1083,
1721,
273,
4362,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1845,
83,
12,
10012,
16,
4362,
16,
16232,
722,
16,
1300,
16,
4264,
18593,
4672,
315,
24181,
279,
24542,
265,
8934,
1845,
83,
21434,
6,
699,
9952,
273,
1083,
1721,
273,
4362,
397,
... |
copy(path.joinpath(geoexplorer_path,'index.html'),ge_final) copy(path.joinpath(geoexplorer_path,'embed.html'),ge_final) | copy(path.joinpath(geoexplorer_path,'debug.html'),ge_final) | def move(): ''' Move all of the GeoExplorer file into a folder in source ... ''' ge_final = path.joinpath(source_path,path("geoexplorer")) if ge_final.exists(): # hack to get around windows not playing well with svn. # i hope to fix this if sys.platform == 'win32': sh("rd /S /Q %s" % ge_final ) else: rmtree(ge_final) o... | c81999e113ef6d41925a99c0ffb74f5fa90d2e6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3279/c81999e113ef6d41925a99c0ffb74f5fa90d2e6b/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
13332,
9163,
9933,
777,
434,
326,
9385,
20938,
585,
1368,
279,
3009,
316,
1084,
1372,
9163,
8244,
67,
6385,
273,
589,
18,
5701,
803,
12,
3168,
67,
803,
16,
803,
2932,
12376,
338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
13332,
9163,
9933,
777,
434,
326,
9385,
20938,
585,
1368,
279,
3009,
316,
1084,
1372,
9163,
8244,
67,
6385,
273,
589,
18,
5701,
803,
12,
3168,
67,
803,
16,
803,
2932,
12376,
338,
... |
lp = LogicParser().parse parser_obj = local_DrtParser() try: for formula in get_bk(new_discourse, bk): if background_knowledge: try: background_knowledge = AndExpression(background_knowledge, parser_obj.parse(formula).fol()) except ParseException: | if bk: lp = LogicParser().parse parser_obj = local_DrtParser() try: for formula in get_bk(new_discourse, bk): if background_knowledge: | def interpret(self, expr_1, expr_2, bk=False,verbose=False): """Interprets a new expression with respect to some previous discourse and background knowledge. The function first generates relevant background knowledge and then performs inference check on readings generated by the readings() method. It returns a list of ... | 48586a572f3b60392923230579975b2963dd92e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2768/48586a572f3b60392923230579975b2963dd92e0/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10634,
12,
2890,
16,
3065,
67,
21,
16,
3065,
67,
22,
16,
22723,
33,
8381,
16,
11369,
33,
8381,
4672,
3536,
2465,
15089,
87,
279,
394,
2652,
598,
8762,
358,
2690,
2416,
1015,
5566,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10634,
12,
2890,
16,
3065,
67,
21,
16,
3065,
67,
22,
16,
22723,
33,
8381,
16,
11369,
33,
8381,
4672,
3536,
2465,
15089,
87,
279,
394,
2652,
598,
8762,
358,
2690,
2416,
1015,
5566,
471,... |
line_height = font.get_linesize() lines = self.get_lines(font, self.notes, screen_size[0] - (2*margin_x)) | fixed_font = pygame.font.SysFont("Fixed", size=self.font_size) lines, total_height = self.get_lines(font, fixed_font, self.notes, screen_size[0] - (2*margin_x)) | def paint_notes(self): screen_size = self.screen.get_size() margin_x = self.screen.get_size()[0]/50 margin_y = self.screen.get_size()[1]/50 if not self.notes_surface: if self.font_size == None: self.font_size = self.screen.get_size()[1] / 12 font = pygame.font.SysFont("Helvetica, Sans, Arial", size=self.font_size) lin... | 571640c83813b5ab1f297405a6ec6fab9e453edc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3598/571640c83813b5ab1f297405a6ec6fab9e453edc/xpressent-remote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
67,
12903,
12,
2890,
4672,
5518,
67,
1467,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
7333,
67,
92,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
20,
18537,
3361,
7333,
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,
12574,
67,
12903,
12,
2890,
4672,
5518,
67,
1467,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
7333,
67,
92,
273,
365,
18,
9252,
18,
588,
67,
1467,
1435,
63,
20,
18537,
3361,
7333,
6... |
print 'ParsedDate:', time.asctime(date[:-1]), hhmmss = date[-1] | print 'ParsedDate:', time.asctime(date), hhmmss = tz | def formatdate(timeval=None): """Returns time format preferred for Internet standards. Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 """ if timeval is None: timeval = time.time() return "%s" % time.strftime('%a, %d %b %Y %H:%M:%S GMT', time.gmtime(timeval)) | 4a72556ff8529388f6a0f4cb073f7f17e8872c82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4a72556ff8529388f6a0f4cb073f7f17e8872c82/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
712,
12,
957,
1125,
33,
7036,
4672,
3536,
1356,
813,
740,
9119,
364,
21352,
4529,
87,
18,
225,
31608,
16,
13026,
423,
1527,
23673,
24,
16314,
30,
7616,
30,
6418,
21706,
225,
274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
712,
12,
957,
1125,
33,
7036,
4672,
3536,
1356,
813,
740,
9119,
364,
21352,
4529,
87,
18,
225,
31608,
16,
13026,
423,
1527,
23673,
24,
16314,
30,
7616,
30,
6418,
21706,
225,
274,
... |
newURL = 'http://%s/%s' % (self.host, redirTarget) | newURL = '%s://%s/%s' % (self.protocol, self.host, redirTarget) | def resolveRedirect(self): ''' Requests the header from the server. If the page is an HTTP redirect, returns the redirect target URL as a string. Otherwise returns None. ''' conn = httplib.HTTPConnection(self.host) conn.request('HEAD', '%s%s' % (self.path, self.query), None, self.header) response = conn.getresponse() | 46ff32518545c6ad27cd8294f343c9506652ef85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/46ff32518545c6ad27cd8294f343c9506652ef85/weblinkchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
5961,
12,
2890,
4672,
9163,
7090,
326,
1446,
628,
326,
1438,
18,
971,
326,
1363,
353,
392,
2239,
3136,
16,
1135,
326,
3136,
1018,
1976,
487,
279,
533,
18,
5272,
1135,
599,
18,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
5961,
12,
2890,
4672,
9163,
7090,
326,
1446,
628,
326,
1438,
18,
971,
326,
1363,
353,
392,
2239,
3136,
16,
1135,
326,
3136,
1018,
1976,
487,
279,
533,
18,
5272,
1135,
599,
18,
91... |
everything += dir(self.__manager__.libimport(self.__libraries__)) | everything += dir(self.__manager__.libimport(lib)) return everything elif name == "__libraries__": return self.__libraries__ | def __getattr__(self, name): if name == "__all__": everything = [] for lib in self.__libraries__: everything += dir(self.__manager__.libimport(self.__libraries__)) | b3d854e397f8701a00c0d654c358df2941261d4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/b3d854e397f8701a00c0d654c358df2941261d4e/panda3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
309,
508,
422,
10425,
454,
972,
6877,
7756,
273,
5378,
364,
2561,
316,
365,
16186,
31417,
972,
30,
7756,
1011,
1577,
12,
2890,
16186,
4181,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
508,
4672,
309,
508,
422,
10425,
454,
972,
6877,
7756,
273,
5378,
364,
2561,
316,
365,
16186,
31417,
972,
30,
7756,
1011,
1577,
12,
2890,
16186,
4181,... |
TESTFN_UNENCODABLE = TESTFN + "-\u5171\u6709\u3055\u308c\u308b" | TESTFN_UNENCODABLE = TESTFN + "-\u5171\u0141\u2661\u0363\uDC80" | def fcmp(x, y): # fuzzy comparison function if isinstance(x, float) or isinstance(y, float): try: fuzz = (abs(x) + abs(y)) * FUZZ if abs(x-y) <= fuzz: return 0 except: pass elif type(x) == type(y) and isinstance(x, (tuple, list)): for i in range(min(len(x), len(y))): outcome = fcmp(x[i], y[i]) if outcome != 0: return o... | 9a363cf2723295f7914ebe538bcd2cc81a39e78d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/9a363cf2723295f7914ebe538bcd2cc81a39e78d/support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
1291,
12,
92,
16,
677,
4672,
468,
21315,
5826,
445,
309,
1549,
12,
92,
16,
1431,
13,
578,
1549,
12,
93,
16,
1431,
4672,
775,
30,
31839,
273,
261,
5113,
12,
92,
13,
397,
2417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
1291,
12,
92,
16,
677,
4672,
468,
21315,
5826,
445,
309,
1549,
12,
92,
16,
1431,
13,
578,
1549,
12,
93,
16,
1431,
4672,
775,
30,
31839,
273,
261,
5113,
12,
92,
13,
397,
2417,
... |
import IRC prefix = IRC.format("%s:" % message.xml.source.project, 'bold') + " " | from IRC.Formatting import format prefix = format("%s:" % message.xml.source.project, 'bold') + " " | def format(self, message, input): if not input: return if message.xml.source and message.xml.source.project: import IRC prefix = IRC.format("%s:" % message.xml.source.project, 'bold') + " " return "\n".join([prefix + line for line in input.split("\n")]) else: return input | 36bde6f1876b868f6f35d0419ceedf79bc1add09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/36bde6f1876b868f6f35d0419ceedf79bc1add09/Formatters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
883,
16,
810,
4672,
309,
486,
810,
30,
327,
309,
883,
18,
2902,
18,
3168,
471,
883,
18,
2902,
18,
3168,
18,
4406,
30,
628,
467,
11529,
18,
23974,
1930,
740,
1633,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
883,
16,
810,
4672,
309,
486,
810,
30,
327,
309,
883,
18,
2902,
18,
3168,
471,
883,
18,
2902,
18,
3168,
18,
4406,
30,
628,
467,
11529,
18,
23974,
1930,
740,
1633,
... |
"""normalize reduces its operand to its simplest form. | """normalize reduces an operand to its simplest form. | def normalize(self, a): """normalize reduces its operand to its simplest form. | e0f1581babe682552d7eadc4e54636b1c2775f0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e0f1581babe682552d7eadc4e54636b1c2775f0b/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
12,
2890,
16,
279,
4672,
3536,
12237,
30568,
2097,
9886,
358,
2097,
9330,
395,
646,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3883,
12,
2890,
16,
279,
4672,
3536,
12237,
30568,
2097,
9886,
358,
2097,
9330,
395,
646,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
clone = Scheme(newname, 1, 1) | clone = _makeScheme(newname, 1, 1) if clone is None: raise SchemeCreationException(_viewsBundle.formatStringFromName( "schemeFileNotCloned.template", [newname])) | def clone(self, newname): clone = Scheme(newname, 1, 1) clone._commonStyles = copy.deepcopy(self._commonStyles) clone._languageStyles = copy.deepcopy(self._languageStyles) clone._colors = copy.deepcopy(self._colors) clone._booleans = copy.deepcopy(self._booleans) schemeService = components.classes['@activestate.com/koS... | 7e973d73cca5a3f92d5eef46dcdb0bd9e614cf21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9914/7e973d73cca5a3f92d5eef46dcdb0bd9e614cf21/koScintillaSchemeService.p.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
12,
2890,
16,
26722,
4672,
3236,
273,
389,
6540,
9321,
12,
2704,
529,
16,
404,
16,
404,
13,
309,
3236,
353,
599,
30,
1002,
10714,
9906,
503,
24899,
7061,
3405,
18,
2139,
780,
297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
12,
2890,
16,
26722,
4672,
3236,
273,
389,
6540,
9321,
12,
2704,
529,
16,
404,
16,
404,
13,
309,
3236,
353,
599,
30,
1002,
10714,
9906,
503,
24899,
7061,
3405,
18,
2139,
780,
297... |
cont = wx.ComboBox(panel, -1, choices=choices, value=value) | cont = wx.ComboBox(panel, -1, choices=choices2, value=value) | def makeList(self, strict, choices, panel, value, localize=True): choices2 = [] for c in choices: if not localize or c == self.defaultvalue: choices2.append(c) else: choices2.append(DV.l(c)) if strict: cont = wx.Choice(panel, -1, choices=choices2) if value == self.defaultvalue or value == '(default)': cont.SetSelection... | 04f97bdc224c0fd7eea4f0478c1b41aff4d050be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/04f97bdc224c0fd7eea4f0478c1b41aff4d050be/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
682,
12,
2890,
16,
5490,
16,
7246,
16,
6594,
16,
460,
16,
26407,
33,
5510,
4672,
7246,
22,
273,
5378,
364,
276,
316,
7246,
30,
309,
486,
26407,
578,
276,
422,
365,
18,
1886,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
682,
12,
2890,
16,
5490,
16,
7246,
16,
6594,
16,
460,
16,
26407,
33,
5510,
4672,
7246,
22,
273,
5378,
364,
276,
316,
7246,
30,
309,
486,
26407,
578,
276,
422,
365,
18,
1886,
11... |
self.address = ('', port) | self.address = (host, port) | def __init__(self, port, callback): host = 'localhost' self.address = ('', port) self.url = 'http://%s:%d/' % (host, port) self.callback = callback self.base.__init__(self, self.address, self.handler) | 7ff59131f8e5de9a692eb28c3423d95863d583a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/7ff59131f8e5de9a692eb28c3423d95863d583a2/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1756,
16,
1348,
4672,
1479,
273,
296,
13014,
11,
365,
18,
2867,
273,
261,
2564,
16,
1756,
13,
365,
18,
718,
273,
296,
2505,
23155,
87,
5319,
72,
2473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1756,
16,
1348,
4672,
1479,
273,
296,
13014,
11,
365,
18,
2867,
273,
261,
2564,
16,
1756,
13,
365,
18,
718,
273,
296,
2505,
23155,
87,
5319,
72,
2473,
... |
self.cache = [] | self.cache = {} def destroy(self): self.cache = {} | def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx, parent, ftpConn, ftpObj, root): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, parent, props) self.isFolder = isFolder self.ftpConn = ftpConn self.ftpObj = ftpObj self.root = root self.cache = [] | 19e2f43a851b0f5822ffceb6297ed01a369bc1a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/19e2f43a851b0f5822ffceb6297ed01a369bc1a8/FTPExplorer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
3458,
16,
1058,
803,
16,
20304,
16,
31137,
16,
3774,
4223,
16,
982,
16,
13487,
3543,
16,
13487,
2675,
16,
1365,
4672,
1312,
11766,
3205,
18,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
3458,
16,
1058,
803,
16,
20304,
16,
31137,
16,
3774,
4223,
16,
982,
16,
13487,
3543,
16,
13487,
2675,
16,
1365,
4672,
1312,
11766,
3205,
18,
209... |
resultvar = self.graph.getreturnvar() self.lltypes = { id(resultvar): (Void, db.gettype(Void)), } | lltypes = {} | def implementation_begin(self): db = self.db resultvar = self.graph.getreturnvar() self.lltypes = { # default, normally overridden: id(resultvar): (Void, db.gettype(Void)), } for v in self.vars: T = getattr(v, 'concretetype', PyObjPtr) typename = db.gettype(T) self.lltypes[id(v)] = T, typename | 901345358902abdf8d3a0b0709c6007a0562ac83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/901345358902abdf8d3a0b0709c6007a0562ac83/funcgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4471,
67,
10086,
12,
2890,
4672,
1319,
273,
365,
18,
1966,
563,
1401,
273,
365,
18,
4660,
18,
588,
2463,
1401,
1435,
365,
18,
2906,
2352,
273,
288,
468,
805,
16,
15849,
11000,
30,
612,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4471,
67,
10086,
12,
2890,
4672,
1319,
273,
365,
18,
1966,
563,
1401,
273,
365,
18,
4660,
18,
588,
2463,
1401,
1435,
365,
18,
2906,
2352,
273,
288,
468,
805,
16,
15849,
11000,
30,
612,... |
server.start() | client.start() | def main(): global server global commandLine | e31bc9a2c87a67a97d76f41fc1eb65d098c86d2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11436/e31bc9a2c87a67a97d76f41fc1eb65d098c86d2a/crossfire_test_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
1438,
2552,
20894,
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,... | [
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,
2774,
13332,
2552,
1438,
2552,
20894,
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,... |
INPUT:: - ``roots``: a list (or iterable) - ``children``: a function returning a list (or iterable) | Returns the set of nodes of the forest having the given roots, and where ``children(x)`` returns the children of the node ``x`` of the forest. See also :class:`~sage.combinat.backtrack.GenericBacktracker`, :class:`~sage.combinat.backtrack.TransitiveIdeal`, and :class:`~sage.combinat.backtrack.TransitiveIdealGraded`. ... | def search_forest_iterator(roots, children): r""" INPUT: - ``roots``: a list (or iterable) - ``children``: a function returning a list (or iterable) Returns an iterator on the nodes of the forest having the given roots, and where ``children(x)`` returns the children of the node ``x`` of the forest. Note that every ... | aae1e83e9fdb4c91d34c9e6f83a1e7edb7b8e60b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aae1e83e9fdb4c91d34c9e6f83a1e7edb7b8e60b/backtrack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1405,
334,
67,
9838,
12,
22078,
16,
2325,
4672,
436,
8395,
12943,
30,
225,
300,
12176,
22078,
10335,
30,
279,
666,
261,
280,
6087,
13,
225,
300,
12176,
5906,
10335,
30,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1405,
334,
67,
9838,
12,
22078,
16,
2325,
4672,
436,
8395,
12943,
30,
225,
300,
12176,
22078,
10335,
30,
279,
666,
261,
280,
6087,
13,
225,
300,
12176,
5906,
10335,
30,
279,
... |
sage: jacobi_P(2,1,2,1.2) | sage: jacobi_P(2,1,2,1.2) | def jacobi_P(n,a,b,x): """ Returns the Jacobi polynomial $P_n^{(a,b)}(x)$ for integers n > -1 and a and b symbolic or a > -1 and b > -1. The Jacobi polynomials are actually defined for all a and b. However, the Jacobi polynomial weight $(1-x)^a(1+x)^b$ isn't integrable for $a \leq -1$ or $b \leq -1$. EXAMPLES: sage: x... | bf4b51ba1a5519db8532dc58a815c9bff6c56249 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bf4b51ba1a5519db8532dc58a815c9bff6c56249/orthogonal_polys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
67,
52,
12,
82,
16,
69,
16,
70,
16,
92,
4672,
3536,
2860,
326,
804,
1077,
30875,
16991,
271,
52,
67,
82,
66,
95,
12,
69,
16,
70,
16869,
12,
92,
21877,
364,
12321,
290... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
67,
52,
12,
82,
16,
69,
16,
70,
16,
92,
4672,
3536,
2860,
326,
804,
1077,
30875,
16991,
271,
52,
67,
82,
66,
95,
12,
69,
16,
70,
16869,
12,
92,
21877,
364,
12321,
290... |
def get_input (self, index_key) : | def get_input(self, index_key): | def output (self, key) : return self.get_output(key) | 0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
261,
2890,
16,
498,
13,
294,
327,
365,
18,
588,
67,
2844,
12,
856,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
876,
261,
2890,
16,
498,
13,
294,
327,
365,
18,
588,
67,
2844,
12,
856,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print '*** Unknown syntax:', line | self.stdout.write('*** Unknown syntax: %s\n'%line) | def default(self, line): """Called on an input line when the command prefix is not recognized. | 156c8cacd5b24e96aca73a09979e4d4cc9691d70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/156c8cacd5b24e96aca73a09979e4d4cc9691d70/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
12,
2890,
16,
980,
4672,
3536,
8185,
603,
392,
810,
980,
1347,
326,
1296,
1633,
353,
486,
16332,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
12,
2890,
16,
980,
4672,
3536,
8185,
603,
392,
810,
980,
1347,
326,
1296,
1633,
353,
486,
16332,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if reduce: | if reduce and parent.is_exact(): | def __init__(self, parent, numerator, denominator=1, coerce=True, reduce=True): field_element.FieldElement.__init__(self, parent) if coerce: self.__numerator = parent.ring()(numerator) self.__denominator = parent.ring()(denominator) else: self.__numerator = numerator self.__denominator = denominator if reduce: try: sel... | 51ecb5e79df8a660a6378ee75d8569aa4da5d7f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/51ecb5e79df8a660a6378ee75d8569aa4da5d7f1/fraction_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
16730,
16,
15030,
33,
21,
16,
12270,
33,
5510,
16,
5459,
33,
5510,
4672,
652,
67,
2956,
18,
974,
1046,
16186,
2738,
972,
12,
2890,
16,
982,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
16730,
16,
15030,
33,
21,
16,
12270,
33,
5510,
16,
5459,
33,
5510,
4672,
652,
67,
2956,
18,
974,
1046,
16186,
2738,
972,
12,
2890,
16,
982,
13... |
def __init__(self, uri, transport=Transport(), *args, **kwds): | def __init__(self, uri, transport=Transport(), version=VERSION_P1, *args, **kwds): | def __init__(self, uri, transport=Transport(), *args, **kwds): xmlrpclib.ServerProxy.__init__(self, uri, transport, *args, **kwds) | 2671baa1674513ffe6a176870b0d9a26debcadb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11734/2671baa1674513ffe6a176870b0d9a26debcadb0/jsonrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
16,
4736,
33,
6568,
9334,
1177,
33,
5757,
67,
52,
21,
16,
380,
1968,
16,
2826,
25577,
4672,
2025,
13832,
830,
495,
18,
2081,
3886,
16186,
2738,
972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2003,
16,
4736,
33,
6568,
9334,
1177,
33,
5757,
67,
52,
21,
16,
380,
1968,
16,
2826,
25577,
4672,
2025,
13832,
830,
495,
18,
2081,
3886,
16186,
2738,
972... |
v = [c0] | v = [] | def __compute_general_case(self, X): """ General case (except weight 2, trivial character, where this is wrong!) $\chi$ is a primitive character of conductor $L$ $\psi$ is a primitive character of conductor $M$ We have $MLt \mid N$, and $$ E_k(chi,psi,t) = c_0 + sum_{m \geq 1}[sum_{n|m} psi(n) * chi(m/n) * n^(k-1)] q^{... | 2d33a32fff93f73e1fc6e646c27f56f095f15091 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2d33a32fff93f73e1fc6e646c27f56f095f15091/element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9200,
67,
12259,
67,
3593,
12,
2890,
16,
1139,
4672,
3536,
9544,
648,
261,
14137,
3119,
576,
16,
433,
20109,
3351,
16,
1625,
333,
353,
7194,
24949,
271,
64,
24010,
8,
353,
279,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9200,
67,
12259,
67,
3593,
12,
2890,
16,
1139,
4672,
3536,
9544,
648,
261,
14137,
3119,
576,
16,
433,
20109,
3351,
16,
1625,
333,
353,
7194,
24949,
271,
64,
24010,
8,
353,
279,
8... |
self.dbsUrl, | globalDBS, | def importDataset(self): """ _importDataset_ | ebc867cd2d9d0d144c08b859bfe2703475e93f58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/ebc867cd2d9d0d144c08b859bfe2703475e93f58/DatasetIterator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
10656,
12,
2890,
4672,
3536,
389,
5666,
10656,
67,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
10656,
12,
2890,
4672,
3536,
389,
5666,
10656,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.parentWidget.updateGraph(self.arguments[classInd][ind][5]) | if self.parentName == "Radviz": self.parentWidget.updateGraph(self.arguments[classInd][ind][5], setAnchors = 1) else: self.parentWidget.updateGraph(self.arguments[classInd][ind][5]) | def argumentSelected(self): ind = self.argumentList.currentItem() classInd = self.classValueList.currentItem() self.parentWidget.updateGraph(self.arguments[classInd][ind][5]) | 1922e1c90901187992cd760d65376cde614d1a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/1922e1c90901187992cd760d65376cde614d1a7a/OWkNNOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1237,
7416,
12,
2890,
4672,
1547,
273,
365,
18,
3446,
682,
18,
2972,
1180,
1435,
667,
3866,
273,
365,
18,
1106,
24999,
18,
2972,
1180,
1435,
309,
365,
18,
2938,
461,
422,
315,
6621,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1237,
7416,
12,
2890,
4672,
1547,
273,
365,
18,
3446,
682,
18,
2972,
1180,
1435,
667,
3866,
273,
365,
18,
1106,
24999,
18,
2972,
1180,
1435,
309,
365,
18,
2938,
461,
422,
315,
6621,
23... |
if not os.path.isdir(urldir): | if not path.startswith(urldir): | def getURL(self, name): """Return image URL for image with given name @param name: image name (without namespace, i.e. without 'Image:') @type name: unicode @returns: URL to original image @rtype: str """ assert isinstance(name, unicode), 'name must be of type unicode' # first, look for a cached image with that nam... | fe3ad04b28f37013981f2d1461170180fe77cb2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/fe3ad04b28f37013981f2d1461170180fe77cb2b/netdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19341,
12,
2890,
16,
508,
4672,
3536,
990,
1316,
1976,
364,
1316,
598,
864,
508,
225,
632,
891,
508,
30,
1316,
508,
261,
13299,
1981,
16,
277,
18,
73,
18,
2887,
296,
2040,
2497,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19341,
12,
2890,
16,
508,
4672,
3536,
990,
1316,
1976,
364,
1316,
598,
864,
508,
225,
632,
891,
508,
30,
1316,
508,
261,
13299,
1981,
16,
277,
18,
73,
18,
2887,
296,
2040,
2497,
13,
... |
function, module, or package, or a dotted reference to a class or function within a module or module in a package. If <name> contains a '%s', it is used as the path to a Python source file to document. | Python keyword, topic, function, module, or package, or a dotted reference to a class or function within a module or module in a package. If <name> contains a '%s', it is used as the path to a Python source file to document. If name is 'keywords', 'topics', or 'modules', a listing of these things is displayed. | def stopped(): print 'pydoc server stopped' | e10206af4b31a7201237b0753b74ac0e61682e19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e10206af4b31a7201237b0753b74ac0e61682e19/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9627,
13332,
1172,
296,
2074,
2434,
1438,
9627,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9627,
13332,
1172,
296,
2074,
2434,
1438,
9627,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if connect_exception != None: raise connect_exception comminfo[handle]['remotehost']=desthost comminfo[handle]['remoteport']=destport except: _cleanup_socket(handle) raise else: comminfo[handle]['socket'].settimeout(oldtimeout) return thissock | PENDING_SOCKETS.add(identity) finally: PENDING_SOCKETS_LOCK.release() nanny.tattle_quantity('netsend', 0) nanny.tattle_quantity('netrecv', 0) try: gc.collect() nanny.tattle_add_item('outsockets',identity) try: stoptime = timeout + nonportable.getruntime() _timed_conn_cleanup_wait(identity, timeout) sock = _... | def openconnection(destip, destport,localip, localport, timeout): """ <Purpose> Opens a connection, returning a socket-like object <Arguments> destip: The destination ip to open communications with destport: The destination port to use for communication localip: The local ip to use for the communication localport:... | 5886cd5be666f8f7b4c8acec57bd3e5d53bee92b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/5886cd5be666f8f7b4c8acec57bd3e5d53bee92b/emulcomm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
4071,
12,
10488,
625,
16,
1570,
655,
16,
3729,
625,
16,
1191,
655,
16,
2021,
4672,
3536,
411,
10262,
4150,
34,
6066,
773,
279,
1459,
16,
5785,
279,
2987,
17,
5625,
733,
282,
411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
4071,
12,
10488,
625,
16,
1570,
655,
16,
3729,
625,
16,
1191,
655,
16,
2021,
4672,
3536,
411,
10262,
4150,
34,
6066,
773,
279,
1459,
16,
5785,
279,
2987,
17,
5625,
733,
282,
411,... |
return False; | return False | def test_00_a(): ########## # create a queue queue = vortex.AsyncQueue () # call to terminate queue del queue ######### # create a queue queue = vortex.AsyncQueue () # call to unref iterator = 0 while iterator < 100: # unref queue.unref () # next operation iterator += 1 # and now finish del queue ######### now c... | d34a668f7f4d7b4c2afae07eeb6a71333b43854e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/d34a668f7f4d7b4c2afae07eeb6a71333b43854e/vortex-regression-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
713,
67,
69,
13332,
468,
3228,
7,
468,
752,
279,
2389,
2389,
273,
331,
20873,
18,
2771,
3183,
1832,
225,
468,
745,
358,
10850,
2389,
1464,
2389,
225,
468,
3228,
225,
468,
752... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
713,
67,
69,
13332,
468,
3228,
7,
468,
752,
279,
2389,
2389,
273,
331,
20873,
18,
2771,
3183,
1832,
225,
468,
745,
358,
10850,
2389,
1464,
2389,
225,
468,
3228,
225,
468,
752... |
logging.debug("creating userprefs with name %r email %r alias %r" % (username, email, aliasname)) | logging.debug("creating user object with name %r email %r alias %r" % (username, email, aliasname)) | def login(self, request, user_obj, **kw): username = kw.get('username') password = kw.get('password') _ = request.getText | a3abed9f6a6d1ce3aaf22c103b8723184e11099e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/a3abed9f6a6d1ce3aaf22c103b8723184e11099e/ldap_login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
590,
16,
729,
67,
2603,
16,
2826,
9987,
4672,
2718,
273,
5323,
18,
588,
2668,
5053,
6134,
2201,
273,
5323,
18,
588,
2668,
3664,
6134,
389,
273,
590,
18,
588,
1528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3925,
12,
2890,
16,
590,
16,
729,
67,
2603,
16,
2826,
9987,
4672,
2718,
273,
5323,
18,
588,
2668,
5053,
6134,
2201,
273,
5323,
18,
588,
2668,
3664,
6134,
389,
273,
590,
18,
588,
1528,
... |
class B_Dna_PAM3(B_Dna_PAM5): | class B_Dna_PAM3(B_Dna): | def _create_atomLists_for_regrouping(self, dnaGroup): """ Creates and returns the atom lists that will be used to regroup the chunks within the DnaGroup. | 50afd30beb2825a13ad031916e8e1ad1fd933b76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/50afd30beb2825a13ad031916e8e1ad1fd933b76/DnaDuplex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
7466,
7432,
67,
1884,
67,
1574,
656,
310,
12,
2890,
16,
31702,
1114,
4672,
3536,
10210,
471,
1135,
326,
3179,
6035,
716,
903,
506,
1399,
358,
960,
656,
326,
6055,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
7466,
7432,
67,
1884,
67,
1574,
656,
310,
12,
2890,
16,
31702,
1114,
4672,
3536,
10210,
471,
1135,
326,
3179,
6035,
716,
903,
506,
1399,
358,
960,
656,
326,
6055,
225,
3... |
_VERBOSE = ('remote_backend', 'reconnect', 'remote_call', | _VERBOSE = ('stop_remote', 'remote_backend', 'remote_call', | def __init__(self): self.__remotes = {} ExtBackend.__init__(self) self.def_port = config.get_conf('beah-backend').get('DEFAULT', 'PORT') | cb97497af9eceb309d8b089859ff26a2949d5697 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/cb97497af9eceb309d8b089859ff26a2949d5697/forwarder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
2764,
6366,
273,
2618,
6419,
7172,
16186,
2738,
972,
12,
2890,
13,
365,
18,
536,
67,
655,
273,
642,
18,
588,
67,
3923,
2668,
2196,
9795,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
2764,
6366,
273,
2618,
6419,
7172,
16186,
2738,
972,
12,
2890,
13,
365,
18,
536,
67,
655,
273,
642,
18,
588,
67,
3923,
2668,
2196,
9795,
17... |
def __init__ (self): | def __init__ (self, default_lib_dirs=default_lib_dirs, default_include_dirs=default_include_dirs, ): | def get_info(name): cl = {'atlas':atlas_info, 'x11':x11_info, 'fftw':fftw_info}.get(name.lower(),system_info) return cl().get_info() | 5082215ea3a74cc66a0da9e80094ec503d6ef185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5082215ea3a74cc66a0da9e80094ec503d6ef185/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
927,
273,
13666,
270,
9521,
4278,
270,
9521,
67,
1376,
16,
296,
92,
2499,
4278,
92,
2499,
67,
1376,
16,
296,
25174,
91,
4278,
25174,
91,
67,
1376,
5496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
927,
273,
13666,
270,
9521,
4278,
270,
9521,
67,
1376,
16,
296,
92,
2499,
4278,
92,
2499,
67,
1376,
16,
296,
25174,
91,
4278,
25174,
91,
67,
1376,
5496,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.