rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
replace_predicate(license, URIRef(license_uri), NS_DC.source, URIRef(based_on_uri)) | def add_license(license_uri, based_on_uri, version, jurisdiction, legalcode_uri, rdf_dir): """Create a new license based on an existing one. Write the resulting graph to the rdf_dir.""" # make sure the license_uri ends with a slash if license_uri[-1] != '/': license_uri += '/' # load the based on graph based_on = lo... | 6534ed55f7fc8a3145bfa4f6d0d77b7c2a1f43ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4330/6534ed55f7fc8a3145bfa4f6d0d77b7c2a1f43ff/license.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12687,
12,
12687,
67,
1650,
16,
2511,
67,
265,
67,
1650,
16,
1177,
16,
525,
23510,
72,
2228,
16,
19286,
710,
67,
1650,
16,
9160,
67,
1214,
4672,
3536,
1684,
279,
394,
8630,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12687,
12,
12687,
67,
1650,
16,
2511,
67,
265,
67,
1650,
16,
1177,
16,
525,
23510,
72,
2228,
16,
19286,
710,
67,
1650,
16,
9160,
67,
1214,
4672,
3536,
1684,
279,
394,
8630,
... | |
apply(self.tk.call, (self._w, 'yview') + args) | apply(self.tk.call, (self._w, 'yview') + args) | def yview(self, *args): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
677,
1945,
12,
2890,
16,
380,
1968,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
677,
1945,
12,
2890,
16,
380,
1968,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if self._sock: return try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((self.host, self.port)) except socket.timeout as exc: raise ConnectionTimeoutError(*exc.args) except socket.error as exc: raise ConnectionError(*exc.args) sock.setsockopt(socket.SOL_TCP, socket.TCP_NODELAY, 1) sock.settime... | with self._connect_lock: if self._sock: return try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((self.host, self.port)) except socket.timeout as exc: raise ConnectionTimeoutError(*exc.args) except socket.error as exc: raise ConnectionError(*exc.args) sock.setsockopt(socket.SOL_TCP, socket.TCP... | def connect(self): """ Connects to the STOMP server if not already connected. """ if self._sock: return try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((self.host, self.port)) except socket.timeout as exc: raise ConnectionTimeoutError(*exc.args) except socket.error as exc: raise ConnectionErr... | e36e66270bed68066718c499ea66f20218cdd3d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2733/e36e66270bed68066718c499ea66f20218cdd3d9/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
4672,
3536,
8289,
87,
358,
326,
2347,
1872,
52,
1438,
309,
486,
1818,
5840,
18,
3536,
598,
365,
6315,
3612,
67,
739,
30,
309,
365,
6315,
15031,
30,
327,
775,
30,
7313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
3536,
8289,
87,
358,
326,
2347,
1872,
52,
1438,
309,
486,
1818,
5840,
18,
3536,
598,
365,
6315,
3612,
67,
739,
30,
309,
365,
6315,
15031,
30,
327,
775,
30,
7313,
... |
elif l[1] == a[1]: | elif ld[1] == a[1]: | def debug(s, msg, r=""): if r: r = "%s:%s:%s" % r repo.ui.debug(" subrepo %s: %s %s\n" % (s, msg, r)) | ffbe013a272ae3f12702d0aa7b96e2716197852a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/ffbe013a272ae3f12702d0aa7b96e2716197852a/subrepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
87,
16,
1234,
16,
436,
1546,
6,
4672,
309,
436,
30,
436,
273,
2213,
87,
5319,
87,
5319,
87,
6,
738,
436,
3538,
18,
4881,
18,
4148,
2932,
225,
720,
7422,
738,
87,
30,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
87,
16,
1234,
16,
436,
1546,
6,
4672,
309,
436,
30,
436,
273,
2213,
87,
5319,
87,
5319,
87,
6,
738,
436,
3538,
18,
4881,
18,
4148,
2932,
225,
720,
7422,
738,
87,
30,
738,... |
start_response(*start_response_args[0]) | start_response(*start_response_args[-1]) | def dummy_start_response(status, headers, exc_info=None): start_response_args.append((status, headers, exc_info)) return output.write | 01fc2b7e5d8d1a50e097b2b652b5e8a6dc6f8306 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10679/01fc2b7e5d8d1a50e097b2b652b5e8a6dc6f8306/middleware.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9609,
67,
1937,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
787,
67,
2740,
67,
1968,
18,
6923,
12443,
2327,
16,
1607,
16,
3533,
67,
1376,
3719,
327,
876,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9609,
67,
1937,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
787,
67,
2740,
67,
1968,
18,
6923,
12443,
2327,
16,
1607,
16,
3533,
67,
1376,
3719,
327,
876,
18,
26... |
primaryTableList = [] | primaryTableList = [] | def _createTables( self, tableDict, force=False ): """ tableDict: tableName: { 'Fields' : { 'Field': 'Description' }, 'ForeignKeys': {'Field': 'Table' }, 'PrimaryKey': 'Id', 'Indexes': { 'Index': [] }, 'UniqueIndexes': { 'Index': [] }, 'Engine': 'InnoDB' } only 'Fields' is a mandatory key. | 0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
6905,
12,
365,
16,
1014,
5014,
16,
2944,
33,
8381,
262,
30,
3536,
1014,
5014,
30,
4775,
30,
288,
296,
2314,
11,
294,
288,
296,
974,
4278,
296,
3291,
11,
19879,
296,
28285,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
6905,
12,
365,
16,
1014,
5014,
16,
2944,
33,
8381,
262,
30,
3536,
1014,
5014,
30,
4775,
30,
288,
296,
2314,
11,
294,
288,
296,
974,
4278,
296,
3291,
11,
19879,
296,
28285,
... |
self.profile.FileLinesList = [list(s) for s in self.profile.FileLinesList] Rewind() | self.Rewind() | def PreprocessFile(self): # change string to list of chars, as string can NOT be modified self.profile.FileLinesList = [list(s) for s in self.profile.FileLinesList] | 2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2962,
2567,
812,
12,
2890,
4672,
468,
2549,
533,
358,
666,
434,
5230,
16,
487,
533,
848,
4269,
506,
4358,
365,
18,
5040,
18,
812,
5763,
682,
273,
306,
1098,
12,
87,
13,
364,
272,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2962,
2567,
812,
12,
2890,
4672,
468,
2549,
533,
358,
666,
434,
5230,
16,
487,
533,
848,
4269,
506,
4358,
365,
18,
5040,
18,
812,
5763,
682,
273,
306,
1098,
12,
87,
13,
364,
272,
316... |
song.DisplayFilename = "Unknown Singer" | return | def _insert(self, x, y, songs, drag_result): """ Insert songs from drag_index in search results, at given x,y coordinates, used with drag-and-drop. Code from WxPython Wiki """ | 7d6c2cead80b3d812ebc0d6027018fbc93b8714c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/7d6c2cead80b3d812ebc0d6027018fbc93b8714c/pykaraoke.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
12,
2890,
16,
619,
16,
677,
16,
272,
7260,
16,
8823,
67,
2088,
4672,
3536,
8040,
272,
7260,
628,
8823,
67,
1615,
316,
1623,
1686,
16,
622,
864,
619,
16,
93,
5513,
16,
1399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
12,
2890,
16,
619,
16,
677,
16,
272,
7260,
16,
8823,
67,
2088,
4672,
3536,
8040,
272,
7260,
628,
8823,
67,
1615,
316,
1623,
1686,
16,
622,
864,
619,
16,
93,
5513,
16,
1399... |
msg = 'Pidfile %s contains non numeric value' sys.exit(msg % config['pidfile']) try: os.kill(pid, signal) | sys.exit('Pidfile %s contains non numeric value' % config['pidfile']) try: os.kill(pid, 0) | def signalApp(config, signal = 0): if os.path.exists(config['pidfile']): try: pid = int(open(config['pidfile']).read()) except ValueError: msg = 'Pidfile %s contains non numeric value' sys.exit(msg % config['pidfile']) try: os.kill(pid, signal) except OSError, why: if why[0] == errno.ESRCH: # The pid doesnt exists. if... | d5f1c437a076f0fe17db40d9ab92751c20198dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/d5f1c437a076f0fe17db40d9ab92751c20198dd3/twistd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4277,
3371,
12,
1425,
16,
4277,
273,
374,
4672,
309,
1140,
18,
803,
18,
1808,
12,
1425,
3292,
6610,
768,
3546,
4672,
775,
30,
4231,
273,
509,
12,
3190,
12,
1425,
3292,
6610,
768,
3546,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4277,
3371,
12,
1425,
16,
4277,
273,
374,
4672,
309,
1140,
18,
803,
18,
1808,
12,
1425,
3292,
6610,
768,
3546,
4672,
775,
30,
4231,
273,
509,
12,
3190,
12,
1425,
3292,
6610,
768,
3546,... |
self.assertEqual(10, len(l)) | self.assertEqual(10, len(l)) | def testArray(self): with JSContext() as ctxt: array = ctxt.eval(""" var array = new Array(); for (i=0; i<10; i++) { array[i] = 10-i; } array; """) self.assert_(isinstance(array, _PyV8.JSArray)) self.assertEqual(10, len(array)) self.assert_(5 in array) self.assertFalse(15 in array) l = list(array) self.assertEqua... | d76ea3f452d147f051e65b20fdab9b87a8b84413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2065/d76ea3f452d147f051e65b20fdab9b87a8b84413/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1076,
12,
2890,
4672,
598,
6756,
1042,
1435,
487,
14286,
30,
526,
273,
14286,
18,
8622,
2932,
3660,
569,
526,
273,
394,
1510,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1076,
12,
2890,
4672,
598,
6756,
1042,
1435,
487,
14286,
30,
526,
273,
14286,
18,
8622,
2932,
3660,
569,
526,
273,
394,
1510,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
... |
conditions = self.get(key) | try: conditions = self[key] except KeyError: return False | def is_active(self, key, *instances): """ ``gargoyle.is_active('my_feature', request)`` """ conditions = self.get(key) if not conditions: # XXX: option to have default return value? return True | 4c82f0306e870f63a9f3c29b07334f92e52f24dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13486/4c82f0306e870f63a9f3c29b07334f92e52f24dd/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
3535,
12,
2890,
16,
498,
16,
380,
10162,
4672,
3536,
12176,
75,
26999,
1362,
18,
291,
67,
3535,
2668,
4811,
67,
7238,
2187,
590,
13,
10335,
3536,
225,
775,
30,
4636,
273,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
3535,
12,
2890,
16,
498,
16,
380,
10162,
4672,
3536,
12176,
75,
26999,
1362,
18,
291,
67,
3535,
2668,
4811,
67,
7238,
2187,
590,
13,
10335,
3536,
225,
775,
30,
4636,
273,
365,... |
'date_start':_get_new_period_start, | 'date_start': _get_new_period_start, | def _get_new_period_start(self,cr,uid,context={}): cr.execute("select max(date_stop) from stock_period") result=cr.fetchone() last_date = result and result[0] or False if last_date: period_start = mx.DateTime.strptime(last_date,"%Y-%m-%d %H:%M:%S")+ RelativeDateTime(days=1) period_start = period_start - RelativeDateTim... | 6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2704,
67,
6908,
67,
1937,
12,
2890,
16,
3353,
16,
1911,
16,
2472,
12938,
4672,
4422,
18,
8837,
2932,
4025,
943,
12,
712,
67,
5681,
13,
628,
12480,
67,
6908,
7923,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2704,
67,
6908,
67,
1937,
12,
2890,
16,
3353,
16,
1911,
16,
2472,
12938,
4672,
4422,
18,
8837,
2932,
4025,
943,
12,
712,
67,
5681,
13,
628,
12480,
67,
6908,
7923,
563,
... |
child = self.endArray() | self.endArray() | def endElement(self, name): if name == AdcData.tagName: child = self.endAdcData() elif name == AdcInterval.tagName: child = self.endAdcInterval() elif name == Array.tagName: child = self.endArray() elif name == Column.tagName: child = self.endColumn() elif name == Comment.tagName: child = self.endComment() elif name ==... | 19c70d9d2433f3385423e26af544f557b0c477a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/19c70d9d2433f3385423e26af544f557b0c477a4/ligolw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
4052,
71,
751,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
751,
1435,
1327,
508,
422,
4052,
71,
4006,
18,
2692,
461,
30,
1151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
4052,
71,
751,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
751,
1435,
1327,
508,
422,
4052,
71,
4006,
18,
2692,
461,
30,
1151... |
print "len:", cantdata | def server(evt): serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serv.settimeout(3) serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serv.bind(("", 9093)) serv.listen(5) try: conn, addr = serv.accept() conn.send("1 Hola mundo\n") cantdata = 0 while cantdata < 13: print "len:", cantdata data = conn.re... | e312416809b4d0bafacc610760cf5474f0a478f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/e312416809b4d0bafacc610760cf5474f0a478f8/test_urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
73,
11734,
4672,
13515,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
13515,
18,
542,
4538,
12,
23,
13,
13515,
18,
4424,
27844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
73,
11734,
4672,
13515,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
13515,
18,
542,
4538,
12,
23,
13,
13515,
18,
4424,
27844,... | |
stage.install(name + "-lib-shared-cygwin", binaries, libraries, | stage.install(name + "-lib-shared-cygwin", binaries + libraries, | def install(name, package_name=None, requirements=[], binaries=[], libraries=[], headers=[]): requirements = requirements[:] binaries = binaries[:] libraries if not package_name: package_name = name if option.get("prefix"): # If --prefix is explicitly specified on the command line, # then we need wipe away any setti... | 4a99d65979c713183832728cdd9235fd9515518a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/4a99d65979c713183832728cdd9235fd9515518a/package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
529,
16,
2181,
67,
529,
33,
7036,
16,
8433,
22850,
6487,
4158,
5646,
22850,
6487,
14732,
22850,
6487,
1607,
33,
8526,
4672,
225,
8433,
273,
8433,
10531,
65,
4158,
5646,
273,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
529,
16,
2181,
67,
529,
33,
7036,
16,
8433,
22850,
6487,
4158,
5646,
22850,
6487,
14732,
22850,
6487,
1607,
33,
8526,
4672,
225,
8433,
273,
8433,
10531,
65,
4158,
5646,
273,
41... |
end_ifclear = end_ifset | def end_ifclear(self): try: if self.stackinfo[len(self.stack) + 1]: self.skip = self.skip - 1 del self.stackinfo[len(self.stack) + 1] except KeyError: print '*** end_ifclear: KeyError :', len(self.stack) + 1 | def bgn_ifclear(self, args): if args in self.values.keys() \ and self.values[args] is not None: self.skip = self.skip + 1 self.stackinfo[len(self.stack)] = 1 else: self.stackinfo[len(self.stack)] = 0 | 0e58802a83c0ef801f65d198692c71f60b73fb54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0e58802a83c0ef801f65d198692c71f60b73fb54/texi2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
1600,
67,
430,
8507,
12,
2890,
16,
833,
4672,
309,
833,
316,
365,
18,
2372,
18,
2452,
1435,
521,
471,
365,
18,
2372,
63,
1968,
65,
353,
486,
599,
30,
365,
18,
7457,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
1600,
67,
430,
8507,
12,
2890,
16,
833,
4672,
309,
833,
316,
365,
18,
2372,
18,
2452,
1435,
521,
471,
365,
18,
2372,
63,
1968,
65,
353,
486,
599,
30,
365,
18,
7457,
273,
365,
... |
col.set_attributes(cell, text=c[2]) | col.set_attributes(cell, text=c[2]) | def __init__(self): self.__treeview_track = None self.__treeview_file = None self.__device_engine = None self.__transferManager = None | d382ec2a930240988ff9b57599420845a0b6f246 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2271/d382ec2a930240988ff9b57599420845a0b6f246/MTPnavigator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
3413,
1945,
67,
4101,
273,
599,
365,
16186,
3413,
1945,
67,
768,
273,
599,
365,
16186,
5964,
67,
8944,
273,
599,
365,
16186,
13866,
1318,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
3413,
1945,
67,
4101,
273,
599,
365,
16186,
3413,
1945,
67,
768,
273,
599,
365,
16186,
5964,
67,
8944,
273,
599,
365,
16186,
13866,
1318,
273... |
cls.add_constructor([param('ns3::JakesPropagationLossModel const &', 'arg0')]) | def register_Ns3JakesPropagationLossModel_methods(root_module, cls): ## jakes-propagation-loss-model.h: ns3::JakesPropagationLossModel::JakesPropagationLossModel(ns3::JakesPropagationLossModel const & arg0) [copy constructor] cls.add_constructor([param('ns3::JakesPropagationLossModel const &', 'arg0')]) ## jakes-propag... | 513ffb018449433d80ca5969d6d0afd9b0ff2347 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11087/513ffb018449433d80ca5969d6d0afd9b0ff2347/ns3_module_wifi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
10386,
23,
46,
3223,
14225,
20527,
1488,
67,
5163,
12,
3085,
67,
2978,
16,
2028,
4672,
7541,
525,
3223,
17,
5986,
346,
367,
17,
7873,
17,
2284,
18,
76,
30,
3153,
23,
2866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
10386,
23,
46,
3223,
14225,
20527,
1488,
67,
5163,
12,
3085,
67,
2978,
16,
2028,
4672,
7541,
525,
3223,
17,
5986,
346,
367,
17,
7873,
17,
2284,
18,
76,
30,
3153,
23,
2866,
... | |
globals = f.f_globals | if not hasattr(locals, 'has_key'): warnings.warn( "Frame %s has an invalid locals(): %r" % ( globals.get('__name__', 'unknown'), locals)) locals = {} | def collectLine(self, tb, extra_data): f = tb.tb_frame lineno = tb.tb_lineno co = f.f_code filename = co.co_filename name = co.co_name locals = f.f_locals globals = f.f_globals | 30d01e5ca79b1778d16557cdc50f340cbb4c34af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11400/30d01e5ca79b1778d16557cdc50f340cbb4c34af/collector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
1670,
12,
2890,
16,
8739,
16,
2870,
67,
892,
4672,
284,
273,
8739,
18,
18587,
67,
3789,
7586,
273,
8739,
18,
18587,
67,
17782,
1825,
273,
284,
18,
74,
67,
710,
1544,
273,
1825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
1670,
12,
2890,
16,
8739,
16,
2870,
67,
892,
4672,
284,
273,
8739,
18,
18587,
67,
3789,
7586,
273,
8739,
18,
18587,
67,
17782,
1825,
273,
284,
18,
74,
67,
710,
1544,
273,
1825,
... |
return '%b' % size | return '%db' % size | def size_display(self): size = self.size if size < 1024: return '%b' % size elif size < 1024 * 1024: return '%dKb' % int(size / 1024) else: return '%.2fMb' % (size / float(1024 * 1024)) | c114aab6e3ffead3d3b362276b8bf3ebb9e69661 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12938/c114aab6e3ffead3d3b362276b8bf3ebb9e69661/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
67,
5417,
12,
2890,
4672,
963,
273,
365,
18,
1467,
309,
963,
411,
6250,
30,
327,
1995,
1966,
11,
738,
963,
1327,
963,
411,
6250,
380,
6250,
30,
327,
1995,
72,
47,
70,
11,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
67,
5417,
12,
2890,
4672,
963,
273,
365,
18,
1467,
309,
963,
411,
6250,
30,
327,
1995,
1966,
11,
738,
963,
1327,
963,
411,
6250,
380,
6250,
30,
327,
1995,
72,
47,
70,
11,
738,
... |
res = sqrt(self.stats(*args, **kwds)) | res = math.sqrt(self.stats(*args, **kwds)) | def std(self, *args, **kwds): kwds['moments'] = 'v' res = sqrt(self.stats(*args, **kwds)) return res | 8b3a4224a0eebc7cef8c46d42fde0301ea131ef1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/8b3a4224a0eebc7cef8c46d42fde0301ea131ef1/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2044,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
17149,
3292,
81,
22172,
3546,
273,
296,
90,
11,
400,
273,
4233,
18,
24492,
12,
2890,
18,
5296,
30857,
1968,
16,
2826,
25577,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2044,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
17149,
3292,
81,
22172,
3546,
273,
296,
90,
11,
400,
273,
4233,
18,
24492,
12,
2890,
18,
5296,
30857,
1968,
16,
2826,
25577,
3719,
... |
log.msg('[Worker: %s] Got job (%s, %s)' % (self.id, self.job.name, self.job.job_id)) | log.msg(LOG_PREFIX % self.id + 'Processing job %s' % self.job.job_id) | def gotJob(self, jdict): """ gotJob is a callback for the remoteobj's get_job method. Parameters: job -- Job object returned by remote's 'get_job' method """ if self.log_level > 3: log.msg('[Worker %s, gotJob] %s' % (self.id, jdict)) self.job = expand_job(jdict) if not isinstance(self.job, Job): raise NoJobExcepti... | a1e6bea8e524119732e09e5f8726851f8dcc7ab9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a1e6bea8e524119732e09e5f8726851f8dcc7ab9/dsage_worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
2278,
12,
2890,
16,
525,
1576,
4672,
3536,
2363,
2278,
353,
279,
1348,
364,
326,
2632,
2603,
1807,
336,
67,
4688,
707,
18,
225,
7012,
30,
1719,
1493,
3956,
733,
2106,
635,
2632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
2278,
12,
2890,
16,
525,
1576,
4672,
3536,
2363,
2278,
353,
279,
1348,
364,
326,
2632,
2603,
1807,
336,
67,
4688,
707,
18,
225,
7012,
30,
1719,
1493,
3956,
733,
2106,
635,
2632,
... |
result[id] = price | result[id] = price | def price_get(self, cr, uid, ids, prod_id, qty, partner=None, context=None): ''' context = { 'uom': Unit of Measure (int), 'partner': Partner ID (int), 'date': Date of the pricelist (%Y-%m-%d), } ''' context = context or {} currency_obj = self.pool.get('res.currency') product_obj = self.pool.get('product.product') supp... | 4596ba93539994cff7b26b0e45fa4a78664d17f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/4596ba93539994cff7b26b0e45fa4a78664d17f0/pricelist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6205,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
26667,
16,
19170,
33,
7036,
16,
819,
33,
7036,
4672,
9163,
819,
273,
288,
296,
89,
362,
4278,
8380,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6205,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
26667,
16,
19170,
33,
7036,
16,
819,
33,
7036,
4672,
9163,
819,
273,
288,
296,
89,
362,
4278,
8380,
434... |
content = wikipedia.translate(targetPage.site().lang, sd_template)+"\n"+content summ = wikipedia.translate(targetPage.site().lang, sd_tagging_sum) | content = wikipedia.translate( targetPage.site().lang, sd_template)+"\n"+content summ = wikipedia.translate(targetPage.site().lang, sd_tagging_sum) | def fix_1_double_redirect(self, redir_name): redir = wikipedia.Page(self.site, redir_name) # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir.title()) newRedir = redir redirList = [] # bookkeeping to detect loops while... | c499f5c4d7eb66e6b361af0a88786c3f2ea91f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c499f5c4d7eb66e6b361af0a88786c3f2ea91f11/redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
21,
67,
9056,
67,
7590,
12,
2890,
16,
225,
283,
1214,
67,
529,
4672,
283,
1214,
273,
21137,
18,
1964,
12,
2890,
18,
4256,
16,
283,
1214,
67,
529,
13,
468,
9674,
326,
2077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
21,
67,
9056,
67,
7590,
12,
2890,
16,
225,
283,
1214,
67,
529,
4672,
283,
1214,
273,
21137,
18,
1964,
12,
2890,
18,
4256,
16,
283,
1214,
67,
529,
13,
468,
9674,
326,
2077,
... |
else: try: idents = _descr_to_identifiers(descr) except ValueError, e: warnings.append('Bad group identifier list: %s' % e) return self._tmp_groups[arg] = idents self._tmp_group_order.append(arg) | return try: idents = _descr_to_identifiers(descr) except ValueError, e: warnings.append('Bad group identifier list: %s' % e) return if not self._groupmembers.has_key(arg): self._groupnames.append(arg) self._groupmembers[arg] = {} group = self._groupmembers[arg] anygroup = self._anygroup for ident in idents: group[ident... | def _process_field(self, tag, arg, descr, warnings): if tag == 'group': if arg is None: warnings.append(tag+' expected an argument (group name)') else: try: idents = _descr_to_identifiers(descr) except ValueError, e: warnings.append('Bad group identifier list: %s' % e) return self._tmp_groups[arg] = idents self._tmp_gr... | 3483c073f313594e2126bb590c1618ff249ff09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3483c073f313594e2126bb590c1618ff249ff09b/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
1518,
12,
2890,
16,
1047,
16,
1501,
16,
18426,
16,
5599,
4672,
309,
1047,
422,
296,
1655,
4278,
309,
1501,
353,
599,
30,
5599,
18,
6923,
12,
2692,
6797,
2665,
392,
1237,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
1518,
12,
2890,
16,
1047,
16,
1501,
16,
18426,
16,
5599,
4672,
309,
1047,
422,
296,
1655,
4278,
309,
1501,
353,
599,
30,
5599,
18,
6923,
12,
2692,
6797,
2665,
392,
1237,... |
self._color = color | self._set_color(color) | def color(self, *args): if not args: raise Error, "no color arguments" if len(args) == 1: color = args[0] if type(color) == type(""): # Test the color first try: id = self._canvas.create_line(0, 0, 0, 0, fill=color) except Tkinter.TclError: raise Error, "bad color string: %s" % `color` self._color = color return try: r... | 0af30ecb6eefe9189b9f08fc6c1d5a42a0f23363 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0af30ecb6eefe9189b9f08fc6c1d5a42a0f23363/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
12,
2890,
16,
380,
1968,
4672,
309,
486,
833,
30,
1002,
1068,
16,
315,
2135,
2036,
1775,
6,
309,
562,
12,
1968,
13,
422,
404,
30,
2036,
273,
833,
63,
20,
65,
309,
618,
12,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
12,
2890,
16,
380,
1968,
4672,
309,
486,
833,
30,
1002,
1068,
16,
315,
2135,
2036,
1775,
6,
309,
562,
12,
1968,
13,
422,
404,
30,
2036,
273,
833,
63,
20,
65,
309,
618,
12,
32... |
log.warn("Ignoring tell %s: %s" % (parts[0][4:], " ".join(parts[1:]))) | log.log("Ignoring tell %s: %s\n" % (parts[0][4:], " ".join(parts[1:]))) | def parseLine (self, engine, line): parts = whitespaces.split(line.strip()) if parts[0] == "pong": self.lastpong = int(parts[1]) return # Illegal Move if parts[0].lower().find("illegal") >= 0: if parts[-2] == "sd" and parts[-1].isdigit(): print >> self.engine, "depth", parts[-1] return # A Move (Perhaps) if self.boa... | a0af5dadbdd69812a6c3a084a3b1ec62b013f594 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/a0af5dadbdd69812a6c3a084a3b1ec62b013f594/CECPEngine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1670,
261,
2890,
16,
4073,
16,
980,
4672,
2140,
273,
28186,
18,
4939,
12,
1369,
18,
6406,
10756,
225,
309,
2140,
63,
20,
65,
422,
315,
500,
75,
6877,
365,
18,
2722,
500,
75,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1670,
261,
2890,
16,
4073,
16,
980,
4672,
2140,
273,
28186,
18,
4939,
12,
1369,
18,
6406,
10756,
225,
309,
2140,
63,
20,
65,
422,
315,
500,
75,
6877,
365,
18,
2722,
500,
75,
27... |
Ooa = IT_DD(Oa, Ob) | Ooa = IT_DD(Oa, Ob) | def IT (Oa, Ob): """ Inclusion Transform. Return a transformed Oa, named Ooa, such that the impact of the independent operation Ob (against Oa) is efectively included into Oa. Also define the timestamp of the virtual operation. """ if Check_RA(Oa): #print "Check_BO(\n\t%s, \n\t%s \n)\t\t=> %s"%(Oa, Ob, Check_BO(Oa, Ob... | 86f71e8cf633c9ded1b256af34857982171ed0b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2639/86f71e8cf633c9ded1b256af34857982171ed0b7/ConcurrentEditable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24142,
261,
51,
69,
16,
19659,
4672,
3536,
657,
15335,
11514,
18,
2000,
279,
10220,
531,
69,
16,
4141,
531,
11867,
16,
4123,
716,
326,
15800,
434,
326,
14807,
1674,
19659,
261,
23095,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24142,
261,
51,
69,
16,
19659,
4672,
3536,
657,
15335,
11514,
18,
2000,
279,
10220,
531,
69,
16,
4141,
531,
11867,
16,
4123,
716,
326,
15800,
434,
326,
14807,
1674,
19659,
261,
23095,
33... |
raise Exception('Unable to use the cursor after having closing it') | raise psycopg2.ProgrammingError('Unable to use the cursor after having closing it') | def wrapper(self, *args, **kwargs): if not hasattr(self, '_obj'): raise Exception('Unable to use the cursor after having closing it') return f(self, *args, **kwargs) | 6ed12388cd8764499432715facd71c45c9cd2df7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/6ed12388cd8764499432715facd71c45c9cd2df7/sql_db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
2603,
11,
4672,
1002,
4250,
93,
22295,
75,
22,
18,
9459,
11987,
668,
2668,
3370,
358,
999,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
2603,
11,
4672,
1002,
4250,
93,
22295,
75,
22,
18,
9459,
11987,
668,
2668,
3370,
358,
999,
326,... |
self.setRebootIgnored('IGNORED') | self.setRebootStatut('IGNORED') | def setRebootIgnored(self): self.setRebootIgnored('IGNORED') | cc0d89318fdc7616db760b027eaa4dea3da9ba56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/cc0d89318fdc7616db760b027eaa4dea3da9ba56/commands_on_host.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
31569,
15596,
12,
2890,
4672,
365,
18,
542,
31569,
15596,
2668,
3047,
3417,
5879,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
31569,
15596,
12,
2890,
4672,
365,
18,
542,
31569,
15596,
2668,
3047,
3417,
5879,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.cutedges[diredge] = 1 | self.cutedges[diredge] = 1 | def traverse(self, diredge, i): # to optimize(??), pass the instvars rather than self (like for i), and split diredge in two """As this call starts, we're crossing diredge for the first time in either direction, but we don't yet know whether we've previously visited the node N at other side or not. (When this call ends... | 6dbf011241eafd78647bcafe9c1bb5ceba38a6e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/6dbf011241eafd78647bcafe9c1bb5ceba38a6e7/op_select_doubly.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10080,
12,
2890,
16,
302,
2921,
908,
16,
277,
4672,
468,
358,
10979,
3680,
35,
3631,
1342,
326,
1804,
4699,
9178,
2353,
365,
261,
5625,
364,
277,
3631,
471,
1416,
302,
2921,
908,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10080,
12,
2890,
16,
302,
2921,
908,
16,
277,
4672,
468,
358,
10979,
3680,
35,
3631,
1342,
326,
1804,
4699,
9178,
2353,
365,
261,
5625,
364,
277,
3631,
471,
1416,
302,
2921,
908,
316,
... |
self.assertEquals(util.wait(d), self.RESULT) | return d.addCallback(lambda result: self.assertEquals(result, self.RESULT)) return testwith(None).addCallback(lambda ign: testwith(defer.Deferred())) | def testStoppedRejectsNewTasks(self): """Test that Cooperators refuse new tasks when they have been stopped. """ for stuff in (None, defer.Deferred()): c = cooperator.Cooperator() c.stop() d = c.coiterate(iter(()), stuff) d.addCallback(self.cbIter) d.addErrback(self.ebIter) self.assertEquals(util.wait(d), self.RESULT) | f3a56bc136e5b5fa4542bd86397d2b4297734a70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7078/f3a56bc136e5b5fa4542bd86397d2b4297734a70/test_cooperator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
15294,
21705,
87,
1908,
6685,
12,
2890,
4672,
3536,
4709,
716,
7695,
30659,
1278,
1202,
394,
4592,
1347,
2898,
1240,
2118,
9627,
18,
3536,
364,
10769,
316,
261,
7036,
16,
2220,
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,
1842,
15294,
21705,
87,
1908,
6685,
12,
2890,
4672,
3536,
4709,
716,
7695,
30659,
1278,
1202,
394,
4592,
1347,
2898,
1240,
2118,
9627,
18,
3536,
364,
10769,
316,
261,
7036,
16,
2220,
18,
... |
values = reduce(lambda x,y: x+', '+y, self.catData.domain['D_'+att].values) | values = reduce(lambda x,y: x+', '+y, self.discData.domain['D_'+att.name].values) | def setTable(self): self.res.setNumCols(2) self.res.setNumRows(len(self.discretizedAtts) - len(self.removedAtt)) | dd1d765dc3e19161f4c3e8769c6d619e4b07ec77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/dd1d765dc3e19161f4c3e8769c6d619e4b07ec77/OWCategorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
4672,
365,
18,
455,
18,
542,
2578,
8011,
12,
22,
13,
365,
18,
455,
18,
542,
2578,
4300,
12,
1897,
12,
2890,
18,
2251,
71,
1349,
1235,
3075,
87,
13,
300,
562,
12,
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,
30146,
12,
2890,
4672,
365,
18,
455,
18,
542,
2578,
8011,
12,
22,
13,
365,
18,
455,
18,
542,
2578,
4300,
12,
1897,
12,
2890,
18,
2251,
71,
1349,
1235,
3075,
87,
13,
300,
562,
12,
2... |
start = line.find(fields[1]) | start = len(fields[0]) + line[len(fields[0]):].find(fields[1]) | def next(self) : | aa3323c8cd671f106afd606118197928832f631e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/aa3323c8cd671f106afd606118197928832f631e/ClustalIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
13,
294,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
13,
294,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for i in xrange(10): | t = time.time() for i in xrange(3): | def test_naacl_model(iters_per_unsup=10, iters_per_sup=10, optimizer=None, realistic=False): print "BUILDING MODEL" import time t = time.time() mode = theano.Mode(linker='c|py', optimizer=optimizer) if optimizer else default_mode if realistic: m = create_realistic(compile_mode=mode) else: m = create(compile_mode=mode)... | 0d0012e573158777b1935497ae8b0b8343846e3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/0d0012e573158777b1935497ae8b0b8343846e3e/test_naacl09.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6582,
10150,
67,
2284,
12,
27270,
67,
457,
67,
318,
2859,
33,
2163,
16,
1400,
87,
67,
457,
67,
2859,
33,
2163,
16,
13066,
33,
7036,
16,
2863,
5846,
33,
8381,
4672,
1172,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6582,
10150,
67,
2284,
12,
27270,
67,
457,
67,
318,
2859,
33,
2163,
16,
1400,
87,
67,
457,
67,
2859,
33,
2163,
16,
13066,
33,
7036,
16,
2863,
5846,
33,
8381,
4672,
1172,
31... |
self._start = other._end | self._start = other._end.copy() | def setEndPoint(self, other, which): if which == "startToStart": self._start = other._start self._startObj = other._startObj elif which == "startToEnd": self._start = other._end self._startObj = other._endObj elif which == "endToStart": self._end = other._start self._endObj = other._starttObj elif which == "endToEnd": ... | a215f89a67fd5d4904cd6880388790436e209bca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/a215f89a67fd5d4904cd6880388790436e209bca/compoundDocuments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19743,
2148,
12,
2890,
16,
1308,
16,
1492,
4672,
309,
1492,
422,
315,
1937,
28939,
6877,
365,
6315,
1937,
273,
1308,
6315,
1937,
365,
6315,
1937,
2675,
273,
1308,
6315,
1937,
2675,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19743,
2148,
12,
2890,
16,
1308,
16,
1492,
4672,
309,
1492,
422,
315,
1937,
28939,
6877,
365,
6315,
1937,
273,
1308,
6315,
1937,
365,
6315,
1937,
2675,
273,
1308,
6315,
1937,
2675,
1327,
... |
self.api.db.do("INSERT INTO person_site (person_id, site_id)" \ " VALUES(%(person_id)d, %(site_id)d)", locals()) if commit: self.api.db.commit() if 'person_ids' in self and person_id not in self['person_ids']: | if person_id not in self['person_ids']: assert site_id not in person['site_ids'] self.api.db.do("INSERT INTO person_site (person_id, site_id)" \ " VALUES(%(person_id)d, %(site_id)d)", locals()) if commit: self.api.db.commit() | def add_person(self, person, commit = True): """ Add person to existing site. """ | 84507e9f37868966f34f1184f902986b6004a812 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/84507e9f37868966f34f1184f902986b6004a812/Sites.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12479,
12,
2890,
16,
6175,
16,
3294,
273,
1053,
4672,
3536,
1436,
6175,
358,
2062,
2834,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
67,
12479,
12,
2890,
16,
6175,
16,
3294,
273,
1053,
4672,
3536,
1436,
6175,
358,
2062,
2834,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
or _measures.doframe(self, v): | or _measures.do_frame(self, v): | def doframe(self, v): """This method will set the measure specified as part of a frame. | 187b2d51045f54fa34a7e021c22160e45c9dbd75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/187b2d51045f54fa34a7e021c22160e45c9dbd75/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
3789,
12,
2890,
16,
331,
4672,
3536,
2503,
707,
903,
444,
326,
6649,
1269,
487,
1087,
434,
279,
2623,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
3789,
12,
2890,
16,
331,
4672,
3536,
2503,
707,
903,
444,
326,
6649,
1269,
487,
1087,
434,
279,
2623,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def checkSexMode(ms): '''Check the assignment of sex to offspring''' pop = sim.Population(size=[40]) pop.evolve(initOps=sim.InitSex(), matingScheme=ms, gen=1) # return individual sex as a string return ''.join(['M' if ind.sex() == sim.MALE else 'F' for ind in pop.individuals()]) | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
55,
338,
2309,
12,
959,
4672,
9163,
1564,
326,
6661,
434,
19631,
358,
21174,
11638,
26418,
1843,
273,
3142,
18,
31821,
12,
1467,
22850,
7132,
5717,
1843,
18,
14965,
5390,
12,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
55,
338,
2309,
12,
959,
4672,
9163,
1564,
326,
6661,
434,
19631,
358,
21174,
11638,
26418,
1843,
273,
3142,
18,
31821,
12,
1467,
22850,
7132,
5717,
1843,
18,
14965,
5390,
12,
2738,
... |
outputs.extend (self.run_peer (cmd)) | cmd = self.find_peer (cmd_name) outputs.extend (cmd.get_outputs()) | def get_outputs (self): # This command doesn't have any outputs of its own, so just # get the outputs of all its sub-commands. outputs = [] for (func, cmd) in self.sub_commands: if func is None or func(): outputs.extend (self.run_peer (cmd)) | c92e3b3b6b4e86b00e5476831c1d34d048a5ac9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c92e3b3b6b4e86b00e5476831c1d34d048a5ac9e/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12295,
261,
2890,
4672,
468,
1220,
1296,
3302,
1404,
1240,
1281,
6729,
434,
2097,
4953,
16,
1427,
2537,
468,
336,
326,
6729,
434,
777,
2097,
720,
17,
7847,
18,
6729,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12295,
261,
2890,
4672,
468,
1220,
1296,
3302,
1404,
1240,
1281,
6729,
434,
2097,
4953,
16,
1427,
2537,
468,
336,
326,
6729,
434,
777,
2097,
720,
17,
7847,
18,
6729,
273,
5378,
... |
try: prettfyInplace(fileName,bkDir, normalize_use=defaultsDict['normalize-use'], upcase_keywords=defaultsDict['upcase'], interfaces_dir=defaultsDict['interface-dir'], replace=defaultsDict['replace']) except: import traceback sys.stdout.write('-'*60+"\n") traceback.print_exc(file=sys.stdout) sys.stdout.write('-'*60+"\n"... | prettfyInplace(fileName,bkDir, normalize_use=defaultsDict['normalize-use'], upcase_keywords=defaultsDict['upcase'], interfaces_dir=defaultsDict['interface-dir'], replace=defaultsDict['replace']) | def prettfyInplace(fileName,bkDir="preprettify",normalize_use=1, upcase_keywords=1, interfaces_dir=None, replace=None,logFile=sys.stdout): """Same as prettify, but inplace, replaces only if needed""" if not os.path.exists(bkDir): os.mkdir(bkDir) if not os.path.isdir(bkDir): raise Error("bk-dir must be a directory, was ... | d1fef2183aced069fa880442943e9128e08634fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2834/d1fef2183aced069fa880442943e9128e08634fd/prettify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
748,
74,
93,
382,
964,
12,
17812,
16,
24600,
1621,
1546,
1484,
1484,
748,
1164,
3113,
12237,
67,
1202,
33,
21,
16,
731,
3593,
67,
11771,
33,
21,
16,
7349,
67,
1214,
33,
7036,
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,
675,
748,
74,
93,
382,
964,
12,
17812,
16,
24600,
1621,
1546,
1484,
1484,
748,
1164,
3113,
12237,
67,
1202,
33,
21,
16,
731,
3593,
67,
11771,
33,
21,
16,
7349,
67,
1214,
33,
7036,
16... |
zinfo = zipfile.ZipInfo('meta.xml') zfile.writestr(zinfo, s1) | zfile.writestr('meta.xml', s1) | def assemble_my_parts(self): """Assemble the `self.parts` dictionary. Extend in subclasses. """ #ipshell('At assemble_parts') writers.Writer.assemble_parts(self) f = tempfile.NamedTemporaryFile() zfile = zipfile.ZipFile(f, 'w', zipfile.ZIP_DEFLATED) zinfo = zipfile.ZipInfo('content.xml') zfile.writestr(zinfo, self.vis... | 277ba1af817dc725b8179dbbf649a815fdff5939 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/277ba1af817dc725b8179dbbf649a815fdff5939/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
67,
4811,
67,
6019,
12,
2890,
4672,
3536,
1463,
10045,
326,
1375,
2890,
18,
6019,
68,
3880,
18,
225,
27686,
316,
15320,
18,
3536,
468,
625,
10304,
2668,
861,
19540,
67,
6019,
6134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
67,
4811,
67,
6019,
12,
2890,
4672,
3536,
1463,
10045,
326,
1375,
2890,
18,
6019,
68,
3880,
18,
225,
27686,
316,
15320,
18,
3536,
468,
625,
10304,
2668,
861,
19540,
67,
6019,
6134... |
def _getContentsAndSupercats(self, recurse = False, purge = False, startFrom = None): | def _getContentsAndSupercats(self, recurse=0, purge=False, startFrom=None): | def _getContentsAndSupercats(self, recurse = False, purge = False, startFrom = None): """ Cache results of _parseCategory for a second call. | 815d9901434f2ff6d622d0ccf808499026b5da0e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/815d9901434f2ff6d622d0ccf808499026b5da0e/catlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
6323,
1876,
8051,
24750,
12,
2890,
16,
11502,
33,
20,
16,
11668,
33,
8381,
16,
787,
1265,
33,
7036,
4672,
3536,
4379,
1686,
434,
389,
2670,
4457,
364,
279,
2205,
745,
18,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
6323,
1876,
8051,
24750,
12,
2890,
16,
11502,
33,
20,
16,
11668,
33,
8381,
16,
787,
1265,
33,
7036,
4672,
3536,
4379,
1686,
434,
389,
2670,
4457,
364,
279,
2205,
745,
18,
2,
... |
taskObject(InstallScriptControls()) | def actOnWorkflowSpec(self, workflowSpec, workflowCache): """ Create the workflow wide job template for jobs """ logging.info( "BulkGenerator.actOnWorkflowSpec(%s, %s)" % ( workflowSpec, workflowCache) ) wftype = workflowSpec.parameters['WorkflowType'] logging.info("Generating template for %s type jobs" % wftype) wor... | a6ace665dbdba8d171ba66c98dc2fd18e775be74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/a6ace665dbdba8d171ba66c98dc2fd18e775be74/BulkGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1328,
1398,
8484,
1990,
12,
2890,
16,
6095,
1990,
16,
6095,
1649,
4672,
3536,
1788,
326,
6095,
14812,
1719,
1542,
364,
6550,
3536,
2907,
18,
1376,
12,
315,
13112,
3908,
18,
621,
1398,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1328,
1398,
8484,
1990,
12,
2890,
16,
6095,
1990,
16,
6095,
1649,
4672,
3536,
1788,
326,
6095,
14812,
1719,
1542,
364,
6550,
3536,
2907,
18,
1376,
12,
315,
13112,
3908,
18,
621,
1398,
84... | |
"a'b" | "a& | def escape_text(s): """Takes in a string and converts ``'`` to ``'`` and ``"`` to ``"``. Note: if ``s`` is ``None``, then we return ``None``. >>> escape_text(None) None >>> escape_text("") "" >>> escape_text("a'b") "a'b" >>> escape_text('a"b') "a"b" """ if not s: return s for mem in (("&", "&... | 0a6e05f7d56eda3aa55ec98939b2dc9164bbb1e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11836/0a6e05f7d56eda3aa55ec98939b2dc9164bbb1e6/tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
955,
12,
87,
4672,
3536,
11524,
316,
279,
533,
471,
7759,
1375,
11294,
10335,
358,
12176,
10,
438,
538,
31,
10335,
471,
12176,
8366,
68,
358,
12176,
10,
9270,
31,
68,
8338,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
955,
12,
87,
4672,
3536,
11524,
316,
279,
533,
471,
7759,
1375,
11294,
10335,
358,
12176,
10,
438,
538,
31,
10335,
471,
12176,
8366,
68,
358,
12176,
10,
9270,
31,
68,
8338,
2... |
mod_data_seconds = zip(mod_data_dict[mod_time_col_name][mod_comp_ranges[0]:mod_comp_ranges[1]], mod_data_dict[mod_label_temp[3]][mod_comp_ranges[0]:mod_comp_ranges[1]]) | mod_data_seconds = zip(mod_data_dict[mod_Xaxis_column_name][mod_comp_ranges[0]:mod_comp_ranges[1]], mod_data_dict[mod_label_temp[3]][mod_comp_ranges[0]:mod_comp_ranges[1]]) | def extract_comp_data(comp_file_info): ## Read in d line dict from config file and Process data from source .csv files. exp_data = [] mod_data = [] exp_data_dict = {} mod_data_dict = {} exp_scatter_data_labels = [] mod_scatter_data_labels = [] #List of variables from configuration file column names. exp_data_filenam... | c2bd4f556a2ce61eab4e48660ca05fb2aaf49751 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/c2bd4f556a2ce61eab4e48660ca05fb2aaf49751/Validation_Data_Processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5... |
if not self.comps.has_group(group) | if not self.compsobj.has_group(group): | def getPackagesFromGroup(self, group) """Get a list of package names from a comps object | be44e2527d8134ec855e844728a1201a6db6ce2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/be44e2527d8134ec855e844728a1201a6db6ce2b/gather.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
1265,
1114,
12,
2890,
16,
1041,
13,
3536,
967,
279,
666,
434,
2181,
1257,
628,
279,
13979,
733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30401,
1023,
1265,
1114,
12,
2890,
16,
1041,
13,
3536,
967,
279,
666,
434,
2181,
1257,
628,
279,
13979,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
lineR = re.compile(r'<tr>(?:<td>.*?</td>){1,2}<td><a href=".+?">(?P<datetime>.+?)</a></td><td><a href=".+?"(?: class="new"|) title=".+?">(?P<username>.+?)</a>.*?</td><td>(?P<resolution>.*?)</td><td class=".+?">(?P<filesize>.+?)</td><td>(?P<comment>.*?)</td></tr>') | lineR = re.compile(r'<tr>(?:<td>.*?</td>){1,2}<td.*?><a href=".+?">(?P<datetime>.+?)</a></td><td>(?P<resolution>.*?)<span.*?>\((?P<filesize>.+?)\)</span></td><td><a href=".+?"(?: class="new"|) title=".+?">(?P<username>.+?)</a>.*?</td><td>.*?<span class="comment">(?P<comment>.*?)</span></td></tr>') if not lineR.search(h... | def getFileVersionHistory(self): """Return the image file's version history. | 1461bb4b1b75a188d161d512b7708c76e9cb090e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/1461bb4b1b75a188d161d512b7708c76e9cb090e/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
1444,
5623,
12,
2890,
4672,
3536,
990,
326,
1316,
585,
1807,
1177,
4927,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
1444,
5623,
12,
2890,
4672,
3536,
990,
326,
1316,
585,
1807,
1177,
4927,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
with open(support.TESTFN, "rb") as f: | with self.open(support.TESTFN, "rb") as f: | def test_garbage_collection(self): # C BufferedWriter objects are collected, and collecting them flushes # all data to disk. # The Python version has __del__, so it ends into gc.garbage instead rawio = self.FileIO(support.TESTFN, "w+b") f = self.tp(rawio) f.write(b"123xxx") f.x = f wr = weakref.ref(f) del f support.gc_... | c5e8d6ee2b17a975fd7ca8e44a05ff0d8cd106c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c5e8d6ee2b17a975fd7ca8e44a05ff0d8cd106c9/test_io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
75,
12332,
67,
5548,
12,
2890,
4672,
468,
385,
22490,
2184,
854,
12230,
16,
471,
30160,
2182,
3663,
281,
468,
777,
501,
358,
4234,
18,
468,
1021,
6600,
1177,
711,
1001,
3771,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
12332,
67,
5548,
12,
2890,
4672,
468,
385,
22490,
2184,
854,
12230,
16,
471,
30160,
2182,
3663,
281,
468,
777,
501,
358,
4234,
18,
468,
1021,
6600,
1177,
711,
1001,
3771,
... |
ret = ["--ignore=%s" % \ os.path.join(self._source_dir, "tools", "valgrind", "tsan", "ignores.txt")] | ret = [] ignore_files = ["ignores.txt"] platform_suffix = { 'darwin': 'mac', 'linux2': 'linux' }[sys.platform] ignore_files.append("ignores_%s.txt" % platform_suffix) for ignore_file in ignore_files: fullname = os.path.join(self._source_dir, "tools", "valgrind", "tsan", ignore_file) if os.path.exists(fullname): ret +... | def ToolSpecificFlags(self): ret = ["--ignore=%s" % \ os.path.join(self._source_dir, "tools", "valgrind", "tsan", "ignores.txt")] ret += ["--file-prefix-to-cut=%s/" % self._source_dir] | c3e86a745c23deccefd4503075fd890d5737b57f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/c3e86a745c23deccefd4503075fd890d5737b57f/valgrind_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13288,
9969,
5094,
12,
2890,
4672,
325,
273,
5378,
225,
2305,
67,
2354,
273,
8247,
724,
3485,
18,
5830,
11929,
4072,
67,
8477,
273,
288,
296,
28076,
4278,
296,
5821,
2187,
296,
20132,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13288,
9969,
5094,
12,
2890,
4672,
325,
273,
5378,
225,
2305,
67,
2354,
273,
8247,
724,
3485,
18,
5830,
11929,
4072,
67,
8477,
273,
288,
296,
28076,
4278,
296,
5821,
2187,
296,
20132,
22... |
P ( contents = [ | P ( contents = [ | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '/images/pointer.png' ), A( _N['home'], href=makeURL( '', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '/images/englishlogo.png' ), A( 'English', href='%(BASE)s' )]), P ( contents = [ Img( src = '/images/g... | 846194f3836b7e3473a516c54c1f17757297aebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/846194f3836b7e3473a516c54c1f17757297aebf/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
database_name) + tb_s) | database_name) + tb_s.decode('utf-8')) | def dispatch(host, port, protocol, database_name, user, session, object_type, object_name, method, *args, **kargs): if object_type == 'common': if method == 'login': res = security.login(database_name, user, session) Cache.clean(database_name) logger = logging.getLogger('dispatcher') msg = res and 'successful login' o... | afa025fe7a2fb0f470e42221b27176c3c564b2ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/afa025fe7a2fb0f470e42221b27176c3c564b2ea/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2564,
16,
1756,
16,
1771,
16,
2063,
67,
529,
16,
729,
16,
1339,
16,
733,
67,
723,
16,
733,
67,
529,
16,
707,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
225,
309,
733,
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,
3435,
12,
2564,
16,
1756,
16,
1771,
16,
2063,
67,
529,
16,
729,
16,
1339,
16,
733,
67,
723,
16,
733,
67,
529,
16,
707,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
225,
309,
733,
67,
... |
graph = DotGraph('UML class diagram for %s' % class_doc, | graph = DotGraph('UML class diagram for %s' % class_doc.canonical_name, | def uml_class_tree_graph(class_doc, linker, context=None, **options): """ Return a `DotGraph` that graphically displays the class hierarchy for the given class, using UML notation. Options: - max_attributes - max_operations - show_private_vars - show_magic_vars - link_attributes """ nodes = {} # ClassDoc -> DotGraphU... | 87c91ac73c8c2c010f262c553ee24d45b2a8776e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/87c91ac73c8c2c010f262c553ee24d45b2a8776e/dotgraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9570,
80,
67,
1106,
67,
3413,
67,
4660,
12,
1106,
67,
2434,
16,
28058,
16,
819,
33,
7036,
16,
2826,
2116,
4672,
3536,
2000,
279,
1375,
10412,
4137,
68,
716,
2667,
6478,
22461,
326,
667... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9570,
80,
67,
1106,
67,
3413,
67,
4660,
12,
1106,
67,
2434,
16,
28058,
16,
819,
33,
7036,
16,
2826,
2116,
4672,
3536,
2000,
279,
1375,
10412,
4137,
68,
716,
2667,
6478,
22461,
326,
667... |
dayling savings and -08:00 otherwise. Zone is coincides with what | dayling savings and -08:00 otherwise. Zone coincides with what | def gettzd(timeinseconds = None): """Return w3's timezone identification string. Expresed as [+/-]hh:mm. For instance, PDT is -07:00 during dayling savings and -08:00 otherwise. Zone is coincides with what localtime(), etc., use. If no argument given, use the current time. """ if timeinseconds is None: timeinsecon... | 8ae91104c0c9a6f997cb28fc96054c0991646d2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8033/8ae91104c0c9a6f997cb28fc96054c0991646d2a/Time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12994,
72,
12,
957,
267,
7572,
273,
599,
4672,
3536,
990,
341,
23,
1807,
6371,
24739,
533,
18,
225,
1312,
1484,
730,
487,
306,
31298,
17,
65,
21622,
30,
7020,
18,
225,
2457,
791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12994,
72,
12,
957,
267,
7572,
273,
599,
4672,
3536,
990,
341,
23,
1807,
6371,
24739,
533,
18,
225,
1312,
1484,
730,
487,
306,
31298,
17,
65,
21622,
30,
7020,
18,
225,
2457,
791,
... |
return None | return -1 | def FlushAttributes(self): sock = self._Connect() if not sock: return None | 9d2992edf2659b743cc1201f67642788bc4de00b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5754/9d2992edf2659b743cc1201f67642788bc4de00b/sphinxapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11624,
2498,
12,
2890,
4672,
7313,
273,
365,
6315,
5215,
1435,
309,
486,
7313,
30,
327,
599,
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,
11624,
2498,
12,
2890,
4672,
7313,
273,
365,
6315,
5215,
1435,
309,
486,
7313,
30,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pass | def add_grades_stats(self): #self.all_categories = GradesGraph(self.grades_stack, color=graph_bg_color) #self.grades_stack_layout = QVBoxLayout(self.all_categories) #self.grades_stack_layout.addWidget(self.all_categories) pass | f574d16ceb0e53adfb9c04062d5759811b379132 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1240/f574d16ceb0e53adfb9c04062d5759811b379132/statistics_dlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
13088,
67,
5296,
12,
2890,
4672,
468,
2890,
18,
454,
67,
8995,
273,
10812,
5489,
4137,
12,
2890,
18,
13088,
67,
3772,
16,
2036,
33,
4660,
67,
12370,
67,
3266,
13,
468,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
13088,
67,
5296,
12,
2890,
4672,
468,
2890,
18,
454,
67,
8995,
273,
10812,
5489,
4137,
12,
2890,
18,
13088,
67,
3772,
16,
2036,
33,
4660,
67,
12370,
67,
3266,
13,
468,
2890,
... | |
nodeurl = newdata[to].get('meta', {}).get('gwikiURL', set([''])) nodeurl = list(nodeurl)[0] | nodeurl = newdata.get(to, '') if nodeurl: nodeurl = nodeurl.get('meta', {}).get('gwikiURL', set([''])) nodeurl = list(nodeurl)[0] | def execute(pagename, request, text, pagedir, page): # Skip MoinEditorBackups if pagename.endswith('/MoinEditorBackup'): return shelve_present = False if hasattr(request, 'graphdata'): shelve_present = True globaldata = request.graphdata.db else: graphshelve = os.path.join(request.cfg.data_dir, 'graphdata.shelve') # ... | 1290cec08b5cbf0ca44da9281cf8d2d82d4a55e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/1290cec08b5cbf0ca44da9281cf8d2d82d4a55e0/savegraphdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
9095,
1069,
16,
590,
16,
977,
16,
4262,
23210,
16,
1363,
4672,
468,
6611,
490,
885,
6946,
27238,
309,
4262,
1069,
18,
5839,
1918,
2668,
19,
49,
885,
6946,
6248,
11,
4672,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
9095,
1069,
16,
590,
16,
977,
16,
4262,
23210,
16,
1363,
4672,
468,
6611,
490,
885,
6946,
27238,
309,
4262,
1069,
18,
5839,
1918,
2668,
19,
49,
885,
6946,
6248,
11,
4672,
327... |
val = hlr_utils.get_value(obj,i,o_descr,"x",axis) err2 = hlr_utils.get_err2(obj,i,o_descr,"x",axis) | val = hlr_utils.get_value(obj, i, o_descr, "x", axis) err2 = hlr_utils.get_err2(obj, i, o_descr, "x", axis) | def wavelength_to_scalar_k(obj,**kwargs): """ This function converts a primary axis of a SOM or SO from wavelength to scalar_k. The wavelength axis for a SOM must be in units of Angstroms. The primary axis of a SO is assumed to be in units of Angstroms. A tuple of [wavelength, wavelength_err2] (assumed to be in units o... | 4af11b571f056b419760434ea5be641c11847a97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/4af11b571f056b419760434ea5be641c11847a97/hlr_wavelength_to_scalar_k.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21410,
67,
869,
67,
8748,
67,
79,
12,
2603,
16,
636,
4333,
4672,
3536,
1220,
445,
7759,
279,
3354,
2654,
434,
279,
348,
1872,
578,
7460,
628,
21410,
358,
4981,
67,
79,
18,
1021,
21410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21410,
67,
869,
67,
8748,
67,
79,
12,
2603,
16,
636,
4333,
4672,
3536,
1220,
445,
7759,
279,
3354,
2654,
434,
279,
348,
1872,
578,
7460,
628,
21410,
358,
4981,
67,
79,
18,
1021,
21410,... |
if self.opts.fmt == 'mobi' and \ self.opts.output_profile and \ self.opts.output_profile.startswith("kindle"): | if self.generateForKindle: | def generateNCXDescriptions(self, tocTitle): | 073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a78db2be7983d10/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
10346,
60,
16844,
12,
2890,
16,
17919,
4247,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2103,
10346,
60,
16844,
12,
2890,
16,
17919,
4247,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
elif mode == "WAV_DE": | if mode == "WAV_DE": | def Speak(self,parameter_name,mode="DEFAULT") """ Speak sound specified by 'parameter_name' either via TTS or by playing a WAV-File Possible modes are: DEFAULT - use mode set by a global parameter (default) WAV_DE - play wav-Files with German Text WAV_EN - play wav-FIles with English Text FEST_EN - use Text-to-speech w... | e8e936f0a8ee4de6e198abc5a7fd0e0bc97e2294 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12032/e8e936f0a8ee4de6e198abc5a7fd0e0bc97e2294/simple_script_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
348,
10244,
12,
2890,
16,
6775,
67,
529,
16,
3188,
1546,
5280,
7923,
3536,
348,
10244,
14190,
1269,
635,
296,
6775,
67,
529,
11,
3344,
3970,
399,
8047,
578,
635,
23982,
279,
678,
5856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
348,
10244,
12,
2890,
16,
6775,
67,
529,
16,
3188,
1546,
5280,
7923,
3536,
348,
10244,
14190,
1269,
635,
296,
6775,
67,
529,
11,
3344,
3970,
399,
8047,
578,
635,
23982,
279,
678,
5856,
... |
"User-Agent": __name__ + "/" + __version__, | "User-Agent": "pylast" + "/" + __version__, | def execute(self): """Returns a string response of this request.""" connection = httplib.HTTPConnection(self.hostname) | c2f8333c7c459d93d5b6b1373fe80a1aa0624651 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/c2f8333c7c459d93d5b6b1373fe80a1aa0624651/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1356,
279,
533,
766,
434,
333,
590,
12123,
225,
1459,
273,
15851,
6673,
18,
3693,
1952,
12,
2890,
18,
10358,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1836,
12,
2890,
4672,
3536,
1356,
279,
533,
766,
434,
333,
590,
12123,
225,
1459,
273,
15851,
6673,
18,
3693,
1952,
12,
2890,
18,
10358,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print thisnodeIP | print >> outfo, thisnodeIP if len(userinputlist) == 4: outfo.close() | def command_loop(): # we will set this if they call set timeout global globalseashtimeout # things that may be set herein and used in later commands host = None port = None expnum = None filename = None cmdargs = None defaulttarget = None defaultkeyname = None # exit via a return while True: try: prompt = '' if ... | 448c4325d7e4a3188225bc2613435876407aecd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/448c4325d7e4a3188225bc2613435876407aecd0/seash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
6498,
13332,
468,
732,
903,
444,
333,
309,
2898,
745,
444,
2021,
2552,
4715,
544,
345,
647,
494,
659,
282,
468,
9198,
716,
2026,
506,
444,
2674,
267,
471,
1399,
316,
5137,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
6498,
13332,
468,
732,
903,
444,
333,
309,
2898,
745,
444,
2021,
2552,
4715,
544,
345,
647,
494,
659,
282,
468,
9198,
716,
2026,
506,
444,
2674,
267,
471,
1399,
316,
5137,
43... |
binXYXY = [int(binFac[ii]) for ii in (0, 1, 0, 1)] | binWin = self._getWin(binWin, "binWin") binXYXY = self._getBinXYXY(binFac) | def unbinWindow(self, binWin, binFac): """Converts binned window to unbinned. The output is constrained to be in range for the given bin factor. | bc449c514ddbedcc3dbea6e9f61a46eec42f89fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6353/bc449c514ddbedcc3dbea6e9f61a46eec42f89fb/ImageWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
4757,
3829,
12,
2890,
16,
4158,
18049,
16,
4158,
6645,
4672,
3536,
5692,
4158,
11748,
2742,
358,
640,
4757,
11748,
18,
225,
1021,
876,
353,
27666,
358,
506,
316,
1048,
364,
326,
864... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
4757,
3829,
12,
2890,
16,
4158,
18049,
16,
4158,
6645,
4672,
3536,
5692,
4158,
11748,
2742,
358,
640,
4757,
11748,
18,
225,
1021,
876,
353,
27666,
358,
506,
316,
1048,
364,
326,
864... |
sage: EllipticCurve([1,2,3,4,5]) Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field | sage: E=EllipticCurve([1,2,3,4,5]); E._repr_() 'Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field' | def _repr_(self): """ String representation of elliptic curve. | 4f0514b45a47cdf92a6d781876aa0dd2f3653f54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4f0514b45a47cdf92a6d781876aa0dd2f3653f54/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
3536,
514,
4335,
434,
415,
549,
21507,
8882,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
3536,
514,
4335,
434,
415,
549,
21507,
8882,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def _changed_prefs(val): | def _changed_dna_updater_behavior_pref(val): | def _changed_prefs(val): if val: msg = "Note: to use new DNA prefs value on existing atoms, " \ "run \"DNA: rescan all atoms\" in debug->other menu." env.history.message(orangemsg(msg)) return | 74d84827e214c941e90c6b017446eebeed2ecac1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/74d84827e214c941e90c6b017446eebeed2ecac1/dna_updater_prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6703,
67,
5176,
69,
67,
25575,
67,
31936,
67,
25724,
12,
1125,
4672,
309,
1244,
30,
1234,
273,
315,
8067,
30,
358,
999,
394,
463,
11277,
15503,
460,
603,
2062,
9006,
16,
315,
521,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6703,
67,
5176,
69,
67,
25575,
67,
31936,
67,
25724,
12,
1125,
4672,
309,
1244,
30,
1234,
273,
315,
8067,
30,
358,
999,
394,
463,
11277,
15503,
460,
603,
2062,
9006,
16,
315,
521,... |
raise ValueError("Sequence gap characters != alignment gap char") | raise ValueError("Sequence gap char != alignment gap char") | def to_alignment(sequences, alphabet=None, strict=True): """Returns a multiple sequence alignment (OBSOLETE). - sequences -An iterator that returns SeqRecord objects, or simply a list of SeqRecord objects. All the record sequences must be the same length. - alphabet - Optional alphabet. Stongly recommended. - strict... | a2855b4f95e94e4ef816422674d48a89ec6bbe18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/a2855b4f95e94e4ef816422674d48a89ec6bbe18/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
14409,
12,
17190,
16,
10877,
33,
7036,
16,
5490,
33,
5510,
4672,
3536,
1356,
279,
3229,
3102,
8710,
261,
5704,
3584,
4311,
2934,
225,
300,
8463,
300,
979,
2775,
716,
1135,
14367... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
14409,
12,
17190,
16,
10877,
33,
7036,
16,
5490,
33,
5510,
4672,
3536,
1356,
279,
3229,
3102,
8710,
261,
5704,
3584,
4311,
2934,
225,
300,
8463,
300,
979,
2775,
716,
1135,
14367... |
if key == Qt.Key_R: | self.movingPoint = None elif key == Qt.Key_R: | def keyRelease(self,key): basicMode.keyRelease(self, key) | a49fe898f1dc6faf9bfce734ed1cce864d3c97da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a49fe898f1dc6faf9bfce734ed1cce864d3c97da/modifyMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
7391,
12,
2890,
16,
856,
4672,
5337,
2309,
18,
856,
7391,
12,
2890,
16,
498,
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,... | [
1,
1,
1,
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,
498,
7391,
12,
2890,
16,
856,
4672,
5337,
2309,
18,
856,
7391,
12,
2890,
16,
498,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
out.append('\n') | def dump(self,indent='',depth=0): """Diagnostic method for listing out the contents of a ParseResults. Accepts an optional indent argument so that this string can be embedded in a nested display of other data.""" out = [] keys = self.items() keys.sort() for k,v in keys: if out: out.append('\n') out.append( "%s%s- %s: "... | 03cf0b8cfde8b4f6b7358862701b0b73b409310d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/03cf0b8cfde8b4f6b7358862701b0b73b409310d/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
9355,
2218,
2187,
5979,
33,
20,
4672,
3536,
26836,
707,
364,
11591,
596,
326,
2939,
434,
279,
2884,
3447,
18,
27158,
392,
3129,
3504,
1237,
1427,
716,
333,
533,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
9355,
2218,
2187,
5979,
33,
20,
4672,
3536,
26836,
707,
364,
11591,
596,
326,
2939,
434,
279,
2884,
3447,
18,
27158,
392,
3129,
3504,
1237,
1427,
716,
333,
533,
848,
... | |
AAAAAAAAAAAAAAAAAAABAAkEAACoAAAAOKsAAH4BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAJ BAAA0AAAALisAABuAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEACQQAAPgAAAAorgAAWgIAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAABAAkEAAAgAQAAiLAAAFwBAAAAAAAAAAAAAAAAAAAAAAAAAAAA | AAAAAAAAAAAAAAAAAAABAAkEAACoAAAAOKsAAKABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAJ BAAA0AAAANisAABiAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEACQQAAPgAAABArgAAWgIAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAABAAkEAAAgAQAAoLAAAFwBAAAAAAAAAAAAAAAAAAAAAAAAAAAA | def get_exe_bytes (self): import base64 return base64.decodestring (EXEDATA) | 84fe15d65f13d137f4b178e4bc01bed61a1ef00c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/84fe15d65f13d137f4b178e4bc01bed61a1ef00c/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
OWGUI.button(self.buttonBox7, self, "Attribute Ranking", self.attributeAnalysis) OWGUI.button(self.buttonBox7, self, "Attribute Interactions", self.interactionAnalysis) | OWGUI.button(self.buttonBox7, self, "Attribute Ranking", self.attributeAnalysis, debuggingEnabled = 0) OWGUI.button(self.buttonBox7, self, "Attribute Interactions", self.interactionAnalysis, debuggingEnabled = 0) | def __init__(self, parentWidget = None, signalManager = None, graph = None, visualizationMethod = SCATTERPLOT, parentName = "Visualization widget"): VizRank.__init__(self, visualizationMethod, graph) OWBaseWidget.__init__(self, None, signalManager, "Optimization Dialog") | 0e455036d7905fe252ea1c33a7b2b3eb0f3b722a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/0e455036d7905fe252ea1c33a7b2b3eb0f3b722a/OWkNNOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4609,
273,
599,
16,
4277,
1318,
273,
599,
16,
2667,
273,
599,
16,
30056,
1305,
273,
8795,
789,
2560,
20485,
56,
16,
26119,
273,
315,
25780,
1588,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4609,
273,
599,
16,
4277,
1318,
273,
599,
16,
2667,
273,
599,
16,
30056,
1305,
273,
8795,
789,
2560,
20485,
56,
16,
26119,
273,
315,
25780,
1588,
36... |
lifetime = expires - time.time() | lifetime = int(expires - time.time()) | def _set_cookie(self, request, cookie_string, expires): """ Set cookie, raw helper. """ lifetime = expires - time.time() cookie = self._make_cookie(request, self.cookie_name, cookie_string, lifetime, expires) # Set cookie request.setHttpHeader(cookie) # IMPORTANT: Prevent caching of current page and cookie request.disa... | e1e6512168d4452fed473b63bcf8f846f325106a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/e1e6512168d4452fed473b63bcf8f846f325106a/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
8417,
12,
2890,
16,
590,
16,
3878,
67,
1080,
16,
7368,
4672,
3536,
1000,
3878,
16,
1831,
4222,
18,
3536,
12486,
273,
509,
12,
12431,
300,
813,
18,
957,
10756,
3878,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
8417,
12,
2890,
16,
590,
16,
3878,
67,
1080,
16,
7368,
4672,
3536,
1000,
3878,
16,
1831,
4222,
18,
3536,
12486,
273,
509,
12,
12431,
300,
813,
18,
957,
10756,
3878,
273,
... |
def __init__(self, label): | def __init__(self, label=None): | def __init__(self, label): self._label = label | cd26456921c509c06afe7d3f2114cf42bbc24856 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11479/cd26456921c509c06afe7d3f2114cf42bbc24856/clush.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1433,
33,
7036,
4672,
365,
6315,
1925,
273,
1433,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1433,
33,
7036,
4672,
365,
6315,
1925,
273,
1433,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
imageDict=dict() indexDict=dict() thumbDict=dict() zValueDict=dict() imageDictAQ=dict() indexDictAQ=dict() thumbDictAQ=dict() zValueDictAQ=dict() | imageDict,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() | def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex... | 481b556f895e5b0b4caf0acaf35400d2993db8e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/481b556f895e5b0b4caf0acaf35400d2993db8e5/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... |
return "Mapper|" + self.class_.__name__ + "|" + (self.entity_name is not None and "/%s" % self.entity_name or "") + self.mapped_table.name | return "Mapper|" + self.class_.__name__ + "|" + (self.entity_name is not None and "/%s" % self.entity_name or "") + str(self.local_table) | def __str__(self): return "Mapper|" + self.class_.__name__ + "|" + (self.entity_name is not None and "/%s" % self.entity_name or "") + self.mapped_table.name | 6ca6b3552257e40252b619123973e0f40d6fa0f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/6ca6b3552257e40252b619123973e0f40d6fa0f5/mapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
315,
4597,
22317,
397,
365,
18,
1106,
67,
16186,
529,
972,
397,
15710,
397,
261,
2890,
18,
1096,
67,
529,
353,
486,
599,
471,
2206,
9,
87,
6,
738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
327,
315,
4597,
22317,
397,
365,
18,
1106,
67,
16186,
529,
972,
397,
15710,
397,
261,
2890,
18,
1096,
67,
529,
353,
486,
599,
471,
2206,
9,
87,
6,
738... |
title = row[0] try: | title = row[0] | def get_info(self, id, args): cursor = self.db.cursor() | 492b2ab83de258eaaa4c56c6a8ccb4a69e2ae57e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/492b2ab83de258eaaa4c56c6a8ccb4a69e2ae57e/Report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
16,
612,
16,
833,
4672,
3347,
273,
365,
18,
1966,
18,
9216,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
16,
612,
16,
833,
4672,
3347,
273,
365,
18,
1966,
18,
9216,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
locked = windowsAPI.acquireMutex(mutexhandle[lockname], WAIT_TIME) | locked = windowsAPI.acquire_mutex(mutexhandle[lockname], WAIT_TIME) | def getprocesslockmutex(lockname): import _winreg regkeyname = r"runonce."+lockname # traverse registry path registrypath = ["SOFTWARE","UW","Seattle","1.0"] # locked, do we own the mutex? locked = False # Does a handle already exist? if lockname in mutexhandle: # Lets try to get ownership of it locked = windowsAPI.... | 2133f84aae36a402e4c9ad67a8cc0ddc61446669 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/2133f84aae36a402e4c9ad67a8cc0ddc61446669/runonce.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2567,
739,
29946,
12,
739,
529,
4672,
1930,
389,
8082,
1574,
960,
856,
529,
273,
436,
6,
2681,
8243,
1199,
15,
739,
529,
225,
468,
10080,
4023,
589,
4023,
803,
273,
8247,
3584,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2567,
739,
29946,
12,
739,
529,
4672,
1930,
389,
8082,
1574,
960,
856,
529,
273,
436,
6,
2681,
8243,
1199,
15,
739,
529,
225,
468,
10080,
4023,
589,
4023,
803,
273,
8247,
3584,
44... |
try: signal.getsignal(4242) raise TestFailed('expected ValueError for invalid signal 'getsignal()') except ValueError: pass | if test_support.verbose: verboseflag = '-x' else: verboseflag = '+x' | def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-... | 73dd02de154505c1bd9be384ef7bcb0fe31b6db5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/73dd02de154505c1bd9be384ef7bcb0fe31b6db5/test_signal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
67,
3813,
67,
8593,
13332,
468,
348,
2031,
16,
3937,
10095,
19264,
4573,
358,
4543,
1334,
18,
1930,
1140,
12515,
67,
6610,
273,
1140,
18,
23335,
1435,
309,
12515,
67,
6610,
30,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
67,
3813,
67,
8593,
13332,
468,
348,
2031,
16,
3937,
10095,
19264,
4573,
358,
4543,
1334,
18,
1930,
1140,
12515,
67,
6610,
273,
1140,
18,
23335,
1435,
309,
12515,
67,
6610,
30,
468... |
'price_change': customfield.price_change } | 'price_change': price_change } | def add(request, id=0): """Add an item to the cart.""" #TODO: Error checking for invalid combos log.debug('FORM: %s', request.POST) formdata = request.POST.copy() productslug = None if formdata.has_key('productname'): productslug = formdata['productname'] try: product = Product.objects.get(slug=productslug) log.debug('... | 895421440bc75774efbfed5962e97c839091a476 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/895421440bc75774efbfed5962e97c839091a476/cart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2293,
16,
612,
33,
20,
4672,
3536,
986,
392,
761,
358,
326,
7035,
12123,
468,
6241,
30,
1068,
6728,
364,
2057,
3894,
538,
613,
18,
4148,
2668,
4983,
30,
738,
87,
2187,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2293,
16,
612,
33,
20,
4672,
3536,
986,
392,
761,
358,
326,
7035,
12123,
468,
6241,
30,
1068,
6728,
364,
2057,
3894,
538,
613,
18,
4148,
2668,
4983,
30,
738,
87,
2187,
590,
... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 235) else quickfix.StringField.__init__(self, 235, 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,
576,
4763,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
576,
4763,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738,... |
""""Erase the final rubber band window and do zoom if user indeed draws a rubber band window""" | """Erase the final rubber band window and do zoom if user indeed draws a rubber band window""" | def leftUp(self, event): """"Erase the final rubber band window and do zoom if user indeed draws a rubber band window""" cWxy = (event.pos().x(), self.o.height - event.pos().y()) zoomX = (abs(cWxy[0] - self.pWxy[0]) + 0.0) / (self.o.width + 0.0) zoomY = (abs(cWxy[1] - self.pWxy[1]) + 0.0) / (self.o.height + 0.0) | 22361c9172ed9bd5265127a6d19306786a0928a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/22361c9172ed9bd5265127a6d19306786a0928a7/zoomMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
1211,
12,
2890,
16,
871,
4672,
3536,
41,
5648,
326,
727,
24997,
744,
8937,
2742,
471,
741,
7182,
309,
729,
316,
323,
329,
377,
30013,
279,
24997,
744,
8937,
2742,
8395,
276,
59,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
1211,
12,
2890,
16,
871,
4672,
3536,
41,
5648,
326,
727,
24997,
744,
8937,
2742,
471,
741,
7182,
309,
729,
316,
323,
329,
377,
30013,
279,
24997,
744,
8937,
2742,
8395,
276,
59,
... |
body = json.dumps ({'name' : subNS, 'description' : description}) status, result = self.call ('POST', containingNS, body) | body = json.dumps({'name' : subNS, 'description' : description}) status, result = self.call('POST', containingNS, body) | def create_namespace (self, path, description='', createParentIfNeeded=True, verbose=False): """Creates the namespace specified by path using the description given. | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4937,
261,
2890,
16,
589,
16,
2477,
2218,
2187,
752,
3054,
18299,
33,
5510,
16,
3988,
33,
8381,
4672,
3536,
2729,
326,
1981,
1269,
635,
589,
1450,
326,
2477,
864,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4937,
261,
2890,
16,
589,
16,
2477,
2218,
2187,
752,
3054,
18299,
33,
5510,
16,
3988,
33,
8381,
4672,
3536,
2729,
326,
1981,
1269,
635,
589,
1450,
326,
2477,
864,
18,
2,
-100,... |
if not request.user.may.read(unicode(url_unquote(name), config.charset)): | quoted = unicode(url_unquote(name), config.charset) if not request.user.may.read(quoted): | def getvalues(request, globaldata, name, key, display=True, abs_attach=True): if not request.user.may.read(unicode(url_unquote(name), config.charset)): return set([]) page = globaldata.getpage(name) vals = set() # Add values and their sources if key in page.get('meta', {}): for val in page['meta'][key]: val = unicode... | 156ef632eb8dbe1968bd819da8a5ef91fc3a54b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/156ef632eb8dbe1968bd819da8a5ef91fc3a54b6/editing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2372,
12,
2293,
16,
2552,
892,
16,
508,
16,
498,
16,
2562,
33,
5510,
16,
2417,
67,
7331,
33,
5510,
4672,
225,
9298,
273,
5252,
12,
718,
67,
318,
6889,
12,
529,
3631,
642,
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,
336,
2372,
12,
2293,
16,
2552,
892,
16,
508,
16,
498,
16,
2562,
33,
5510,
16,
2417,
67,
7331,
33,
5510,
4672,
225,
9298,
273,
5252,
12,
718,
67,
318,
6889,
12,
529,
3631,
642,
18,
... |
c.addColumn(columnDef, childUpdate=True) | c.addColumn(columnDef, connection=connection, childUpdate=True) | def addColumn(cls, columnDef, changeSchema=False, connection=None, childUpdate=False): #DSM: Try to add parent properties to the current class #DSM: Only do this once if possible at object creation and once for #DSM: each new dynamic column to refresh the current class if childUpdate or cls._parentClass: for col in cls... | 5609a2d60177b4dae762a3b3731ed0974519cc21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/5609a2d60177b4dae762a3b3731ed0974519cc21/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10871,
12,
6429,
16,
1057,
3262,
16,
2549,
3078,
33,
8381,
16,
1459,
33,
7036,
16,
1151,
1891,
33,
8381,
4672,
468,
3948,
49,
30,
6161,
358,
527,
982,
1790,
358,
326,
783,
667,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10871,
12,
6429,
16,
1057,
3262,
16,
2549,
3078,
33,
8381,
16,
1459,
33,
7036,
16,
1151,
1891,
33,
8381,
4672,
468,
3948,
49,
30,
6161,
358,
527,
982,
1790,
358,
326,
783,
667,
468,
... |
sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info()))); | sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info()))) break | def serve_forever(self): # We want this to run in a thread, so we use a slightly # modified version of "forever". self.active = True while self.active: try: self.handle_request() except socket.timeout: pass except KeyboardInterrupt: self.server_close() return except: sys.stdout.write(''.join(traceback.format_exception(... | efbd431ebdb379d5d5aeb5f6f9f5dd47cdac236b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/efbd431ebdb379d5d5aeb5f6f9f5dd47cdac236b/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
12,
2890,
4672,
468,
1660,
2545,
333,
358,
1086,
316,
279,
2650,
16,
1427,
732,
999,
279,
21980,
468,
4358,
1177,
434,
315,
1405,
502,
9654,
365,
18,
3535,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
12,
2890,
4672,
468,
1660,
2545,
333,
358,
1086,
316,
279,
2650,
16,
1427,
732,
999,
279,
21980,
468,
4358,
1177,
434,
315,
1405,
502,
9654,
365,
18,
3535,
273,
1... |
raise TroveSpecError(specStr, "bad flavor spec") | raise TroveSpecError(origSpecStr, "bad flavor spec") | def parseTroveSpec(specStr, allowEmptyName = True): if specStr.find('[') > 0 and specStr[-1] == ']': specStr = specStr[:-1] l = specStr.split('[') if len(l) != 2: raise TroveSpecError(specStr, "bad flavor spec") specStr, flavorSpec = l flavor = deps.parseFlavor(flavorSpec) if flavor is None: raise TroveSpecError(specSt... | 6b6d592e76cbc93994018a704080d06ea374cb14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/6b6d592e76cbc93994018a704080d06ea374cb14/cmdline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
56,
303,
537,
1990,
12,
2793,
1585,
16,
1699,
1921,
461,
273,
1053,
4672,
309,
857,
1585,
18,
4720,
2668,
3292,
13,
405,
374,
471,
857,
1585,
18919,
21,
65,
422,
8641,
30,
857,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
56,
303,
537,
1990,
12,
2793,
1585,
16,
1699,
1921,
461,
273,
1053,
4672,
309,
857,
1585,
18,
4720,
2668,
3292,
13,
405,
374,
471,
857,
1585,
18919,
21,
65,
422,
8641,
30,
857,
... |
0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL |wx.LEFT, 10) | 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL |wx.LEFT|wx.RIGHT, 10) | def __init__(self): wx.Frame.__init__(self, None, -1, "Widget Layout Tester") | 0bdcd2f50750d235bff2766f3d03d7228aa88dff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0bdcd2f50750d235bff2766f3d03d7228aa88dff/widgetLayoutTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
300,
21,
16,
315,
4609,
9995,
399,
7654,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
300,
21,
16,
315,
4609,
9995,
399,
7654,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
text="%s %s %s" % (text, api.SearchableText()) | text="%s %s" % (text, api.SearchableText()) | def SearchableText(self): "The full text of the Help Topic, for indexing purposes" text="%s %s" % (self.title, self.doc) for api in self.apis: text="%s %s %s" % (text, api.SearchableText()) return text | 832f5c636d86bdcb8bef63a1bcffaaeb284b9867 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/832f5c636d86bdcb8bef63a1bcffaaeb284b9867/APIHelpTopic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5167,
429,
1528,
12,
2890,
4672,
315,
1986,
1983,
977,
434,
326,
11288,
11789,
16,
364,
14403,
13694,
6,
977,
11613,
87,
738,
87,
6,
738,
261,
2890,
18,
2649,
16,
365,
18,
2434,
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,
5167,
429,
1528,
12,
2890,
4672,
315,
1986,
1983,
977,
434,
326,
11288,
11789,
16,
364,
14403,
13694,
6,
977,
11613,
87,
738,
87,
6,
738,
261,
2890,
18,
2649,
16,
365,
18,
2434,
13,
... |
evalString = "_pngReader.SetFileName(\"%s\")" % file | evalString = "_pngReader.SetFileName(\"%s\")" % fname | def load(self, file): """ Loads png image data from file. | c44140bd3d918f82e3b4fb0f16f6949f4d7b003e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/c44140bd3d918f82e3b4fb0f16f6949f4d7b003e/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
585,
4672,
3536,
4444,
87,
14476,
1316,
501,
628,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
585,
4672,
3536,
4444,
87,
14476,
1316,
501,
628,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for col in xrange(self.cols, -1, -1): for row in xrange(self.rows, -1, -1): | for row in xrange(0, self.cols): for col in xrange(0, self.rows): | def do_auto_move(self, state): # if auto-moving is turned off, just return if state == []: return | be47457f91d298127231ad75e72f684aa0d1e499 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/be47457f91d298127231ad75e72f684aa0d1e499/classifier_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6079,
67,
8501,
12,
2890,
16,
919,
4672,
468,
309,
3656,
17,
81,
13767,
353,
21826,
3397,
16,
2537,
327,
309,
919,
422,
5378,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6079,
67,
8501,
12,
2890,
16,
919,
4672,
468,
309,
3656,
17,
81,
13767,
353,
21826,
3397,
16,
2537,
327,
309,
919,
422,
5378,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
{'datasets': datasets, }, | {'datasets': datasets, 'projects': projects,}, | def browse(request): datasets = DataSet.objects.all().order_by('-created_at') return render_to_response('core/browse.html', {'datasets': datasets, }, context_instance=RequestContext(request)) | d394a10d84ab228936fb404b284fc82dd86df2b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2706/d394a10d84ab228936fb404b284fc82dd86df2b9/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2293,
4672,
11109,
273,
14065,
18,
6911,
18,
454,
7675,
1019,
67,
1637,
2668,
17,
4824,
67,
270,
6134,
327,
1743,
67,
869,
67,
2740,
2668,
3644,
19,
25731,
18,
2620,
2187,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2293,
4672,
11109,
273,
14065,
18,
6911,
18,
454,
7675,
1019,
67,
1637,
2668,
17,
4824,
67,
270,
6134,
327,
1743,
67,
869,
67,
2740,
2668,
3644,
19,
25731,
18,
2620,
2187,
1... |
req.hdf['config.charts'] = [ {'href': req.href.build(config.name, 'chart/test')}, {'href': req.href.build(config.name, 'chart/coverage')} ] | chart_generators = [] for generator in self.chart_generators: for category in generator.get_supported_categories(): chart_generators.append({ 'href': req.href.build(config.name, 'chart/' + category) }) req.hdf['config.charts'] = chart_generators | def _render_config(self, req, config_name): db = self.env.get_db_cnx() | 0d438a95abb40ac01630bc8579c20ba416acad75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/0d438a95abb40ac01630bc8579c20ba416acad75/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1425,
12,
2890,
16,
1111,
16,
642,
67,
529,
4672,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1425,
12,
2890,
16,
1111,
16,
642,
67,
529,
4672,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sel = self.selection if sel and sel.selection != self: sel.position.x = sel.position.x + 1 sel.startPos.x = sel.startPos.x + 1 sel.resizeCtrl() sel.setSelection() | for sel in self.getSelAsList(): if sel.selection != self: sel.position.x = sel.position.x + 1 sel.startPos.x = sel.startPos.x + 1 self.moveUpdate(sel) | def OnMoveRight(self, event): sel = self.selection if sel and sel.selection != self: sel.position.x = sel.position.x + 1 sel.startPos.x = sel.startPos.x + 1 sel.resizeCtrl() sel.setSelection() | 102ae9e4df0cfddbfdb2acfb7df920a5d291af8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/102ae9e4df0cfddbfdb2acfb7df920a5d291af8c/Designer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
7607,
4726,
12,
2890,
16,
871,
4672,
357,
273,
365,
18,
10705,
309,
357,
471,
357,
18,
10705,
480,
365,
30,
357,
18,
3276,
18,
92,
273,
357,
18,
3276,
18,
92,
397,
404,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
7607,
4726,
12,
2890,
16,
871,
4672,
357,
273,
365,
18,
10705,
309,
357,
471,
357,
18,
10705,
480,
365,
30,
357,
18,
3276,
18,
92,
273,
357,
18,
3276,
18,
92,
397,
404,
357,
... |
r = gl.getgdesc(GL.GD_BITS_NORM_SNG_RED) g = gl.getgdesc(GL.GD_BITS_NORM_SNG_GREEN) b = gl.getgdesc(GL.GD_BITS_NORM_SNG_BLUE) if (r, g, b) <> (3, 3, 2): raise Error, 'Sorry, can only grab rgb8 on 8-bit Indigo' | if not is_entry_indigo(): raise Error, 'Sorry, can only grab rgb8 on entry level Indigo' | def grab_rgb8(w, h, pf): if gl.getdisplaymode() <> DMRGB: raise Error, 'Sorry, can only grab rgb8 in single-buf rgbmode' if pf <> 1 and pf <> 0: raise Error, 'Sorry, can only grab rgb8 with packfactor 1' r = gl.getgdesc(GL.GD_BITS_NORM_SNG_RED) g = gl.getgdesc(GL.GD_BITS_NORM_SNG_GREEN) b = gl.getgdesc(GL.GD_BITS_NORM_... | bc8db65fb865f65620ed14ed45643363560060e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc8db65fb865f65620ed14ed45643363560060e3/VFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
67,
10948,
28,
12,
91,
16,
366,
16,
10811,
4672,
309,
5118,
18,
588,
5417,
3188,
1435,
2813,
30072,
11343,
30,
1002,
1068,
16,
296,
28898,
16,
848,
1338,
11086,
6917,
28,
316,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
67,
10948,
28,
12,
91,
16,
366,
16,
10811,
4672,
309,
5118,
18,
588,
5417,
3188,
1435,
2813,
30072,
11343,
30,
1002,
1068,
16,
296,
28898,
16,
848,
1338,
11086,
6917,
28,
316,
2... |
args = line.split(' ') command = args[0].lower() args = args[1:] | command = line.strip() | def process(self, line, request): """Process a command""" args = line.split(' ') command = args[0].lower() args = args[1:] | 5f4c26c54d0cf19eb2e3177b83871b7276ab9d4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5f4c26c54d0cf19eb2e3177b83871b7276ab9d4d/loadfileserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
980,
16,
590,
4672,
3536,
2227,
279,
1296,
8395,
833,
273,
980,
18,
4939,
2668,
8624,
1296,
273,
833,
63,
20,
8009,
8167,
1435,
833,
273,
833,
63,
21,
26894,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
980,
16,
590,
4672,
3536,
2227,
279,
1296,
8395,
833,
273,
980,
18,
4939,
2668,
8624,
1296,
273,
833,
63,
20,
8009,
8167,
1435,
833,
273,
833,
63,
21,
26894,
2,
-... |
tests.append("railsys") | if not os.uname()[0].startswith('CYGWIN'): tests.append("railsys") | def reorder_tests(tests, first_test): try: n = tests.index(first_test) return [first_test] + tests[:n] + tests[n+1:] except ValueError: return tests | 5f99b86bd1ed20ee53d00558683324665281fc7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5f99b86bd1ed20ee53d00558683324665281fc7c/test_all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19427,
67,
16341,
12,
16341,
16,
1122,
67,
3813,
4672,
775,
30,
290,
273,
7434,
18,
1615,
12,
3645,
67,
3813,
13,
327,
306,
3645,
67,
3813,
65,
397,
7434,
10531,
82,
65,
397,
7434,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19427,
67,
16341,
12,
16341,
16,
1122,
67,
3813,
4672,
775,
30,
290,
273,
7434,
18,
1615,
12,
3645,
67,
3813,
13,
327,
306,
3645,
67,
3813,
65,
397,
7434,
10531,
82,
65,
397,
7434,
6... |
html_header=None, html_footer=None, ln=CFG_SITE_LANG, charset='utf-8'): | html_header=None, html_footer=None, ln=CFG_SITE_LANG): | def forge_email(fromaddr, toaddr, subject, content, html_content='', html_images={}, usebcc=False, header=None, footer=None, html_header=None, html_footer=None, ln=CFG_SITE_LANG, charset='utf-8'): """Prepare email. Add header and footer if needed. @param fromaddr: [string] sender @param toaddr: [string] receivers separ... | 30f72015abc96d96018e6b5f1cc7b3f5b0edaa57 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1780/30f72015abc96d96018e6b5f1cc7b3f5b0edaa57/mailutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21388,
67,
3652,
12,
2080,
4793,
16,
358,
4793,
16,
3221,
16,
913,
16,
1729,
67,
1745,
2218,
2187,
1729,
67,
7369,
28793,
999,
31345,
33,
8381,
16,
1446,
33,
7036,
16,
9860,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21388,
67,
3652,
12,
2080,
4793,
16,
358,
4793,
16,
3221,
16,
913,
16,
1729,
67,
1745,
2218,
2187,
1729,
67,
7369,
28793,
999,
31345,
33,
8381,
16,
1446,
33,
7036,
16,
9860,
33,
7036,
... |
basic_doc_literal() basic_rpc_literal() | def content_source(): global subject, errors try: url = 'http://localhost:7080/rhq-rhq-enterprise-server-ejb3/ContentSourceManagerBean?wsdl' start(url) client = Client(url) print client # # create a configuration # configuration = client.factory.create('configuration') entry = client.factory.create('configuration.tns... | bbf47852d5340bc61a13df1c466ebb90a12bec52 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1242/bbf47852d5340bc61a13df1c466ebb90a12bec52/rhq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
67,
3168,
13332,
225,
2552,
3221,
16,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
67,
3168,
13332,
225,
2552,
3221,
16,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,... | |
if __name__ == '__main__': | def _use( o ): print """ | 0c5e356e35c534017efaeab5a909abcae2b4e101 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/0c5e356e35c534017efaeab5a909abcae2b4e101/align_parallel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1202,
12,
320,
262,
30,
225,
1172,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1202,
12,
320,
262,
30,
225,
1172,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if model[word_iter][0] == word: | if word_iter and model[word_iter][0] == word: | def select_word(self, word, lang): model = self.word_completion.get_model() if len (model) == 0: return lang_iter = None current_lang_iter = model.get_iter_first() while current_lang_iter and model[current_lang_iter][0] != lang: current_lang_iter = model.iter_next(current_lang_iter) if current_lang_iter and model[curre... | 959531726c990fd64610de9a89159e12eb94a90b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/959531726c990fd64610de9a89159e12eb94a90b/pysdic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
1095,
12,
2890,
16,
2076,
16,
3303,
4672,
938,
273,
365,
18,
1095,
67,
11469,
18,
588,
67,
2284,
1435,
309,
562,
261,
2284,
13,
422,
374,
30,
327,
3303,
67,
2165,
273,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
1095,
12,
2890,
16,
2076,
16,
3303,
4672,
938,
273,
365,
18,
1095,
67,
11469,
18,
588,
67,
2284,
1435,
309,
562,
261,
2284,
13,
422,
374,
30,
327,
3303,
67,
2165,
273,
599,... |
cmd = compile_cmd(f, m) queue_compile_med.append(cmd) | queue_compile_med.append([compile_command, f]) | def compile_command_list(ext_modules, deps): """ Computes a list of commands needed to compile and link the extension modules given in 'ext_modules' """ queue_compile_high = [] queue_compile_med = [] queue_compile_low = [] for m in ext_modules: new_sources = [] for f in m.sources: if f.endswith('.pyx'): dep_file, dep_... | 5379ece7a55e3f8468a19f6780c11e73a5a333a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5379ece7a55e3f8468a19f6780c11e73a5a333a8/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3076,
67,
1098,
12,
408,
67,
6400,
16,
8740,
4672,
3536,
14169,
281,
279,
666,
434,
4364,
3577,
358,
4074,
471,
1692,
326,
2710,
4381,
864,
316,
296,
408,
67,
6400,
11,
3536,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3076,
67,
1098,
12,
408,
67,
6400,
16,
8740,
4672,
3536,
14169,
281,
279,
666,
434,
4364,
3577,
358,
4074,
471,
1692,
326,
2710,
4381,
864,
316,
296,
408,
67,
6400,
11,
3536,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.