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 |
|---|---|---|---|---|---|---|
continue | def __addImplicitDependenciesWindows(self): """ Walks through the list of files, looking for dll's and exe's that might include implicit dependencies on other dll's and assembly manifests. Tries to determine those dependencies, and adds them back into the filelist. """ | a5303df87a036f0b20960f8124db8cc7983ff683 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/a5303df87a036f0b20960f8124db8cc7983ff683/Packager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
15787,
8053,
10399,
12,
2890,
4672,
3536,
7564,
87,
3059,
326,
666,
434,
1390,
16,
7849,
364,
302,
2906,
1807,
471,
15073,
1807,
716,
4825,
2341,
10592,
5030,
603,
1308,
302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
15787,
8053,
10399,
12,
2890,
4672,
3536,
7564,
87,
3059,
326,
666,
434,
1390,
16,
7849,
364,
302,
2906,
1807,
471,
15073,
1807,
716,
4825,
2341,
10592,
5030,
603,
1308,
302,
... | |
results[jobID] = result['OK']['Value'] | results[jobID] = result['Value'] | def export_getJobsFilesStatus(self,jobIDs): """Allows to retrieve the job file status. """ try: results = {} for jobID in jobIDs: result = stagerDB.getJobFilesStatus(jobID) if result['OK']: results[jobID] = result['OK']['Value'] return S_OK(results) except Exception,x: errorStr = "StagerDBHandler.getJobFilesStatus fail... | 78a4d52b041e101da1c751972f5926f2ce9ca800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/78a4d52b041e101da1c751972f5926f2ce9ca800/StagerHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
7276,
2697,
1482,
12,
2890,
16,
4688,
5103,
4672,
3536,
19132,
358,
4614,
326,
1719,
585,
1267,
18,
3536,
775,
30,
1686,
273,
2618,
364,
28913,
316,
1719,
5103,
30,
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,
3359,
67,
588,
7276,
2697,
1482,
12,
2890,
16,
4688,
5103,
4672,
3536,
19132,
358,
4614,
326,
1719,
585,
1267,
18,
3536,
775,
30,
1686,
273,
2618,
364,
28913,
316,
1719,
5103,
30,
563,
... |
text = ( "Working Hard...", "Hardly Working..." , | text = ( "Working Hard...", "Hardly Working..." , | def test(): import time, sys Message("Testing EasyDialogs.") optionlist = (('v', 'Verbose'), ('verbose', 'Verbose as long option'), ('flags=', 'Valued option'), ('f:', 'Short valued option')) commandlist = (('start', 'Start something'), ('stop', 'Stop something')) argv = GetArgv(optionlist=optionlist, commandlist=comm... | b48dea14d8bf7cc4ae844d70574494af7a698ddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b48dea14d8bf7cc4ae844d70574494af7a698ddb/EasyDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1930,
813,
16,
2589,
225,
2350,
2932,
22218,
29442,
11885,
14072,
1199,
13,
1456,
1098,
273,
261,
2668,
90,
2187,
296,
14489,
19899,
7707,
11369,
2187,
296,
14489,
487,
1525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1930,
813,
16,
2589,
225,
2350,
2932,
22218,
29442,
11885,
14072,
1199,
13,
1456,
1098,
273,
261,
2668,
90,
2187,
296,
14489,
19899,
7707,
11369,
2187,
296,
14489,
487,
1525,
... |
if 0: return copy.deepcopy(self) clone = self.__class__() clone.length = self.length clone.count = [] + self.count[:] clone.input = "" + self.input clone.S = self.S return clone | import copy return copy.deepcopy(self) | def copy(self): """Return a clone object. | 16a238fb526e3ab0e06c5a5e47f4465c6bb0d058 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/16a238fb526e3ab0e06c5a5e47f4465c6bb0d058/pyradiogatun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
3536,
990,
279,
3236,
733,
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,
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,
1610,
12,
2890,
4672,
3536,
990,
279,
3236,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rational number times the square root of a rational number (if prec=None), or real number if a precision is given | Rational number times the square root of a rational number (if ``prec=None``), or real number if a precision is given. | def wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None): r""" Calculate the Wigner 9j symbol `Wigner9j(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)`. INPUT: - ``j_1``, ..., ``j_9`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation.... | 2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
6... |
cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd)) | cr.execute('select count(1) from res_users where id=%s and password=%s and active=%s', (int(uid), passwd, True)) | def check(db, uid, passwd): if _uid_cache.get(db, {}).get(uid) == passwd: return True cr = pooler.get_db(db).cursor() if passwd: cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd)) else: cr.execute('select count(*) from res_users where id=%s and password is null', (int(uid),)) r... | 5fb0001f2968663d3b4c29842c285c3ba8164ca5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/5fb0001f2968663d3b4c29842c285c3ba8164ca5/security.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
1966,
16,
4555,
16,
19093,
4672,
309,
389,
1911,
67,
2493,
18,
588,
12,
1966,
16,
2618,
2934,
588,
12,
1911,
13,
422,
19093,
30,
327,
1053,
4422,
273,
2845,
264,
18,
588,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
1966,
16,
4555,
16,
19093,
4672,
309,
389,
1911,
67,
2493,
18,
588,
12,
1966,
16,
2618,
2934,
588,
12,
1911,
13,
422,
19093,
30,
327,
1053,
4422,
273,
2845,
264,
18,
588,
67... |
self.send_error(501, "Unsupported method (%s)" % `command`) | self.send_error(501, "Unsupported method (%s)" % `self.command`) | def handle(self): """Handle a single HTTP request. | 36007764b971a8256164992682c76a0728c992ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/36007764b971a8256164992682c76a0728c992ec/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
3259,
279,
2202,
2239,
590,
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,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
3259,
279,
2202,
2239,
590,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if existingNotesData == None: existingNotesData = "" formatData = "" else: formatData = "\r\n" if newNotesData != 'None': newData = "%s %s [%s] %s" % (existingNotesData, formatData, formatName, newNotesData) else: newData = existingNotesData return newData | if existingNotesData == None: existingNotesData = "" formatData = "" else: formatData = "\r\n" if newNotesData != 'None': newData = "%s %s [%s] %s" % (existingNotesData, formatData, formatName, newNotesData) else: newData = existingNotesData return newData | def formatNotesField(self, existingNotesData, formatName, newNotesData): | 47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3d5e993c3e/svcpointxml_406_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
18063,
974,
12,
2890,
16,
2062,
18063,
751,
16,
740,
461,
16,
394,
18063,
751,
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,
... | [
1,
1,
1,
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,
740,
18063,
974,
12,
2890,
16,
2062,
18063,
751,
16,
740,
461,
16,
394,
18063,
751,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
del self.dirty_objs[obj] | self.dirty_objs.remove(obj) | def _release_lock(self, obj): """Release the lock on a given object. Raise RepositoryError Raise RegistryAccessError Raise ObjectNotInRegistryError""" if not self._started: raise RegistryAccessError("Cannot manipulate locks of a disconnected repository!") logger.debug("_release_lock(%s)" % obj) self._lock.acquire() try... | f16329d1313b97938adc63a1f7bdac4df20ba0d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/f16329d1313b97938adc63a1f7bdac4df20ba0d2/Registry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9340,
67,
739,
12,
2890,
16,
1081,
4672,
3536,
7391,
326,
2176,
603,
279,
864,
733,
18,
20539,
6281,
668,
20539,
5438,
1862,
668,
20539,
1033,
21855,
4243,
668,
8395,
309,
486,
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,
389,
9340,
67,
739,
12,
2890,
16,
1081,
4672,
3536,
7391,
326,
2176,
603,
279,
864,
733,
18,
20539,
6281,
668,
20539,
5438,
1862,
668,
20539,
1033,
21855,
4243,
668,
8395,
309,
486,
365,... |
self.commandprefix = options.get('commandprefix', 'C') | self.commandprefix = options.get('commandprefix', 'PY') | def __init__(self, **options): Formatter.__init__(self, **options) self.docclass = options.get('docclass', 'article') self.preamble = options.get('preamble', '') self.linenos = get_bool_opt(options, 'linenos', False) self.linenostart = abs(get_int_opt(options, 'linenostart', 1)) self.linenostep = abs(get_int_opt(option... | c1ff3dec7399c0b88356f268039128c6a6e8dc7a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/c1ff3dec7399c0b88356f268039128c6a6e8dc7a/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
14924,
16186,
2738,
972,
12,
2890,
16,
2826,
2116,
13,
365,
18,
2434,
1106,
273,
702,
18,
588,
2668,
2434,
1106,
2187,
296,
11480,
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,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
14924,
16186,
2738,
972,
12,
2890,
16,
2826,
2116,
13,
365,
18,
2434,
1106,
273,
702,
18,
588,
2668,
2434,
1106,
2187,
296,
11480,
6134,
... |
s.bind(hostname, PORT) | s.bind((hostname, PORT)) | def missing_ok(str): try: getattr(socket, str) except AttributeError: pass | 13a283be5c58ba951f45eb5962000d76c265598f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/13a283be5c58ba951f45eb5962000d76c265598f/test_socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3315,
67,
601,
12,
701,
4672,
775,
30,
3869,
12,
7814,
16,
609,
13,
1335,
6394,
30,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3315,
67,
601,
12,
701,
4672,
775,
30,
3869,
12,
7814,
16,
609,
13,
1335,
6394,
30,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
left = '...' + self.token.contents[self.charnum-RANGE:self.charnum] | left = '...'+self.token.contents[self.charnum-RANGE:self.charnum] | def _repr(self, typ): RANGE = 20 if self.charnum <= RANGE: left = self.token.contents[0:self.charnum] else: left = '...' + self.token.contents[self.charnum-RANGE:self.charnum] if (len(self.token.contents)-self.charnum) <= RANGE: right = self.token.contents[self.charnum:] else: right = (self.token.contents[self.charnum:... | 7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
12,
2890,
16,
3815,
4672,
534,
8357,
273,
4200,
309,
365,
18,
343,
1303,
379,
1648,
534,
8357,
30,
2002,
273,
365,
18,
2316,
18,
3980,
63,
20,
30,
2890,
18,
343,
1303,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
12,
2890,
16,
3815,
4672,
534,
8357,
273,
4200,
309,
365,
18,
343,
1303,
379,
1648,
534,
8357,
30,
2002,
273,
365,
18,
2316,
18,
3980,
63,
20,
30,
2890,
18,
343,
1303,
37... |
prob = course.distance*(6.0-game.warpfac)**2/66.666666666 | prob = wcourse.distance*(6.0-game.warpfac)**2/66.666666666 | def warp(course, involuntary): "ove under warp drive." blooey = False; twarp = False if not involuntary: # Not WARPX entry game.ididit = False if game.damage[DWARPEN] > 10.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"The warp engines are damaged, Sir.\"")) return if damaged(DWARPEN) and game.warpfac > 4.0: scan... | b8ffe91a83c83c29cc1a574e3fc2d857d582df33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/b8ffe91a83c83c29cc1a574e3fc2d857d582df33/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
11441,
12,
5566,
16,
29876,
10032,
814,
4672,
315,
841,
3613,
341,
11441,
14316,
1199,
324,
383,
83,
402,
273,
1083,
31,
268,
905,
84,
273,
1083,
309,
486,
29876,
10032,
814,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
11441,
12,
5566,
16,
29876,
10032,
814,
4672,
315,
841,
3613,
341,
11441,
14316,
1199,
324,
383,
83,
402,
273,
1083,
31,
268,
905,
84,
273,
1083,
309,
486,
29876,
10032,
814,
30,
... |
context.transform(invmatrix) | context.transform(invmatrix) | def drawPieces(self, context, r): pieces = self.model.getBoardAtPly(self.shown) xc, yc, square, s = self.square CORD_PADDING = 1.5 parseC = lambda c: (c.red/65535., c.green/65535., c.blue/65535.) fgN = parseC(self.get_style().fg[gtk.STATE_NORMAL]) fgS = fgN fgA = parseC(self.get_style().fg[gtk.STATE_ACTIVE]) fgP = par... | 4670a3389179adf0cc6e6cf1b20040725c8eecf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/4670a3389179adf0cc6e6cf1b20040725c8eecf9/BoardView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
16539,
8610,
12,
2890,
16,
819,
16,
436,
4672,
10167,
273,
365,
18,
2284,
18,
588,
22233,
861,
52,
715,
12,
2890,
18,
674,
995,
13,
15192,
16,
27495,
16,
8576,
16,
272,
273,
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,
3724,
16539,
8610,
12,
2890,
16,
819,
16,
436,
4672,
10167,
273,
365,
18,
2284,
18,
588,
22233,
861,
52,
715,
12,
2890,
18,
674,
995,
13,
15192,
16,
27495,
16,
8576,
16,
272,
273,
36... |
args[x] = argv.value | args[x] = argv.value.replace('\r','') | def real_main(): import sync import Href import perm import auth from util import redirect path_info = os.getenv('PATH_INFO') remote_addr = os.getenv('REMOTE_ADDR') remote_user = os.getenv('REMOTE_USER') http_cookie = os.getenv('HTTP_COOKIE') http_referer = os.getenv('HTTP_REFERER') cgi_location = os.getenv('SCRIPT_NA... | 3674c6fe0864f042053131baedff259e022ceb14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3674c6fe0864f042053131baedff259e022ceb14/trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
67,
5254,
13332,
1930,
3792,
1930,
670,
1734,
1930,
4641,
1930,
1357,
628,
1709,
1930,
3136,
225,
589,
67,
1376,
273,
1140,
18,
588,
3074,
2668,
4211,
67,
5923,
6134,
2632,
67,
479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
67,
5254,
13332,
1930,
3792,
1930,
670,
1734,
1930,
4641,
1930,
1357,
628,
1709,
1930,
3136,
225,
589,
67,
1376,
273,
1140,
18,
588,
3074,
2668,
4211,
67,
5923,
6134,
2632,
67,
479... |
def remove_redundant_vertices(self): | def remove_redundant_vertices(self, cdd_type = 'rational'): | def remove_redundant_vertices(self): """ Removes vertices from the description of the polyhedron which do not affect the convex hull. Now done automatically when a polyhedron is defined by vertices. | ff2469d377f6b8dbf0bce8ee43e9ce75aea16b54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ff2469d377f6b8dbf0bce8ee43e9ce75aea16b54/polyhedra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
1118,
15362,
67,
17476,
12,
2890,
16,
276,
449,
67,
723,
273,
296,
7034,
287,
11,
4672,
3536,
20284,
6928,
628,
326,
2477,
434,
326,
7573,
18550,
1949,
1492,
741,
486,
13418,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
67,
1118,
15362,
67,
17476,
12,
2890,
16,
276,
449,
67,
723,
273,
296,
7034,
287,
11,
4672,
3536,
20284,
6928,
628,
326,
2477,
434,
326,
7573,
18550,
1949,
1492,
741,
486,
13418,
... |
self.title = seginfotab[MATROSKA_TITLE_ID].get_data() | self.title = seginfotab[MATROSKA_TITLE_ID].get_utf8() | def __init__(self, file): mediainfo.AVInfo.__init__(self) self.samplerate = 1 self.media = 'audio' | 30f42dd5e0f2e75840c3aa36aee9975a49c29adf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/30f42dd5e0f2e75840c3aa36aee9975a49c29adf/mkvinfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
4672,
20623,
28935,
18,
5856,
966,
16186,
2738,
972,
12,
2890,
13,
365,
18,
87,
10463,
340,
273,
404,
365,
18,
5829,
273,
296,
11509,
11,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
585,
4672,
20623,
28935,
18,
5856,
966,
16186,
2738,
972,
12,
2890,
13,
365,
18,
87,
10463,
340,
273,
404,
365,
18,
5829,
273,
296,
11509,
11,
2,
-100,
... |
if self._docmap.has_key(c.target().module())] | if is_documented(c.target().module())] | def _write_project_toc(self, public, private): """ @return: An HTML page containing the table of contents page for the whole project. This page lists the classes, exceptions, functions, and variables defined by any module or package in the project. @rtype: C{string} """ # Header and name. str = self._header('Everythin... | dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4406,
67,
1391,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
632,
2463,
30,
1922,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
7339,
1984,
18,
225,
1220,
1363,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4406,
67,
1391,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
632,
2463,
30,
1922,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
7339,
1984,
18,
225,
1220,
1363,
6... |
return redirect(target) | return _redirect(target) | def redirect_back(*args, **kwargs): """Redirect back to the page we are comming from or the URL rule given. """ target = get_redirect_target() if target is None: target = url_for(*args, **kwargs) return redirect(target) | eb9f18f195707f3ac48c88ba701af499771557f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/eb9f18f195707f3ac48c88ba701af499771557f0/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
67,
823,
30857,
1968,
16,
2826,
4333,
4672,
3536,
5961,
1473,
358,
326,
1363,
732,
854,
1543,
310,
628,
578,
326,
1976,
1720,
864,
18,
3536,
1018,
273,
336,
67,
7590,
67,
3299,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
67,
823,
30857,
1968,
16,
2826,
4333,
4672,
3536,
5961,
1473,
358,
326,
1363,
732,
854,
1543,
310,
628,
578,
326,
1976,
1720,
864,
18,
3536,
1018,
273,
336,
67,
7590,
67,
3299,
1... |
logger.notifyChannel("init", netsvc.LOG_ERROR,"SSL Server error in request from %s: %s" % | logger.notifyChannel("init", netsvc.LOG_ERROR,"SSL Server error in request from %s:\n%s" % | def handle_error(self, request, client_address): """ Override the error handler """ import traceback | b1b23473908f460d8f8c5eb0723232ca502a9876 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/b1b23473908f460d8f8c5eb0723232ca502a9876/SecureXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
1439,
326,
555,
1838,
3536,
1930,
10820,
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,
1640,
67,
1636,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
1439,
326,
555,
1838,
3536,
1930,
10820,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"kombu | "kombu", | def run(self, *args, **kwargs): Upgrade().run() install.run(self, *args, **kwargs) | 54e755d0fe9c0c06cfd5e18b52d73145268a272f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/54e755d0fe9c0c06cfd5e18b52d73145268a272f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
17699,
7675,
2681,
1435,
3799,
18,
2681,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
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,
1086,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
17699,
7675,
2681,
1435,
3799,
18,
2681,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self('send %s %s -o tmpdarcs '%(options, url)) | self('send %s -o tmpdarcs %s'%(options, url)) | def send(self, filename, options='', url=None): """ Create a darcs patch bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository). | c447721ed1618578f6e22772803093a9df96d669 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/c447721ed1618578f6e22772803093a9df96d669/darcs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
4672,
3536,
1788,
279,
302,
297,
2143,
4729,
3440,
598,
326,
864,
1544,
5314,
326,
3352,
622,
326,
864,
880,
261,
12784,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
4672,
3536,
1788,
279,
302,
297,
2143,
4729,
3440,
598,
326,
864,
1544,
5314,
326,
3352,
622,
326,
864,
880,
261,
12784,
3... |
TrackPopupMenu(menu, win32con.TPM_LEFTALIGN, pos[0], pos[1], 0, self.hwnd, None) | TrackPopupMenu(self.hmenu, win32con.TPM_LEFTALIGN, pos[0], pos[1], 0, self.hwnd, None) | def OnTaskbarNotify(self, hwnd, msg, wparam, lparam): if lparam==win32con.WM_RBUTTONUP: print "You right clicked me." menu = CreatePopupMenu() # Create our 'Exit' item with the standard, ugly 'close' icon. item, extras = PackMENUITEMINFO(text = "Exit", hbmpItem=win32con.HBMMENU_MBAR_CLOSE, wID=1000) InsertMenuItem(menu... | 380c2dcca98047a125747a9fa5630a1ccb183e9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/380c2dcca98047a125747a9fa5630a1ccb183e9c/win32gui_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2174,
3215,
9168,
12,
2890,
16,
16139,
4880,
16,
1234,
16,
341,
891,
16,
328,
891,
4672,
309,
328,
891,
631,
8082,
1578,
591,
18,
25173,
67,
54,
20068,
3079,
30,
1172,
315,
6225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2174,
3215,
9168,
12,
2890,
16,
16139,
4880,
16,
1234,
16,
341,
891,
16,
328,
891,
4672,
309,
328,
891,
631,
8082,
1578,
591,
18,
25173,
67,
54,
20068,
3079,
30,
1172,
315,
6225,... |
filepath = os.path.join(env.ARCHIVE_OUTPUT_DIR, "eagle3d_"+version_to_filename(version)+".zip") | filepath = os.path.join(env.ARCHIVE_OUTPUT_DIR, "eagle3d_"+release_safename+".zip") | def release(self): quiet = config._get('quiet') version = config._get('version') | 0caba114cd86255dcf1be4e04b0b7cd10933fdd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2758/0caba114cd86255dcf1be4e04b0b7cd10933fdd0/eagle3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
12,
2890,
4672,
10902,
273,
642,
6315,
588,
2668,
20380,
6134,
1177,
273,
642,
6315,
588,
2668,
1589,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3992,
12,
2890,
4672,
10902,
273,
642,
6315,
588,
2668,
20380,
6134,
1177,
273,
642,
6315,
588,
2668,
1589,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def __getitem__(self, key): return self.data[string.upper(key)] else: class _Environ(UserDict.UserDict): def __init__(self, environ): UserDict.UserDict.__init__(self) self.data = environ def __getinitargs__(self): import copy return (copy.copy(self.data),) def __setitem__(self, key, item): putenv(key, item) self.data[... | def __getitem__(self, key): return self.data[string.upper(key)] | f4e72db40428bd47f54ddfb3fd610276a11c72f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f4e72db40428bd47f54ddfb3fd610276a11c72f5/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
327,
365,
18,
892,
63,
1080,
18,
5797,
12,
856,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31571,
972,
12,
2890,
16,
498,
4672,
327,
365,
18,
892,
63,
1080,
18,
5797,
12,
856,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
uname = config.get('uname', '') (typ, subtyp, params, file) = string.split(uname, ':', 3) | uname = config.get('uname', '') try: (typ, subtyp, params, file) = string.split(uname, ':', 3) except: (typ, params, file) = string.split(uname, ':', 2) subtyp = 'tapdisk' | def createDevice(self, config): | d4db93b7974872818bef8ebd6346fe11f73e48d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/d4db93b7974872818bef8ebd6346fe11f73e48d1/BlktapController.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3654,
12,
2890,
16,
642,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3654,
12,
2890,
16,
642,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print self.found, self.mod, self.complete, model.get_value(it, column), key, self.text | def search_func(self, model, column, key, it): if self.mod: cp_text = key else: cp_text = self.text + key self.complete = cp_text if model.get_path(model.get_iter_first()) == model.get_path(it): self.found = False if model.get_value(it, column).startswith(cp_text): self.found = True print self.found, self.mod, self.c... | a718cf2af7a92f5271f218a3cfa71b84805d0ace /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/a718cf2af7a92f5271f218a3cfa71b84805d0ace/edit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
644,
12,
2890,
16,
938,
16,
1057,
16,
498,
16,
518,
4672,
225,
309,
365,
18,
1711,
30,
3283,
67,
955,
273,
498,
469,
30,
3283,
67,
955,
273,
365,
18,
955,
397,
498,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
644,
12,
2890,
16,
938,
16,
1057,
16,
498,
16,
518,
4672,
225,
309,
365,
18,
1711,
30,
3283,
67,
955,
273,
498,
469,
30,
3283,
67,
955,
273,
365,
18,
955,
397,
498,
365,
... | |
arg.decode() | return arg.decode() | def _encodeArg(self, arg, msgForError): """Encode an ascii string/Unicode string to the site's encoding""" try: if isinstance(arg, str): arg.decode() # fails with UnicodeDecodeError if non-ascii except UnicodeDecodeError: raise PageNotSaved("An ascii string or unicode %s is expected" % msgForError) try: return arg.enco... | 294b53de4dadc57dd0d3a4e1911d9ceb192a57db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/294b53de4dadc57dd0d3a4e1911d9ceb192a57db/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3015,
4117,
12,
2890,
16,
1501,
16,
1234,
1290,
668,
4672,
3536,
5509,
392,
11384,
533,
19,
16532,
533,
358,
326,
2834,
1807,
2688,
8395,
775,
30,
309,
1549,
12,
3175,
16,
609,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3015,
4117,
12,
2890,
16,
1501,
16,
1234,
1290,
668,
4672,
3536,
5509,
392,
11384,
533,
19,
16532,
533,
358,
326,
2834,
1807,
2688,
8395,
775,
30,
309,
1549,
12,
3175,
16,
609,
46... |
print 'WTD', wtd, 'GOT', len(rv) | def read(self, wtd): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
elif mydo=="unmerge": return unmerge(settings["CATEGORY"],settings["PF"]) elif mydo=="rpm": return spawn("/usr/sbin/ebuild.sh fetch unpack compile install rpm") | elif mydo=="unmerge": return unmerge(settings["CATEGORY"],settings["PF"]) elif mydo=="rpm": return spawn("/usr/sbin/ebuild.sh fetch unpack compile install rpm") | def doebuild(myebuild,mydo,checkdeps=1): global settings if not os.path.exists(myebuild): print "!!!",myebuild,"not found." return 1 if myebuild[-7:]!=".ebuild": print "!!!",myebuild,"does not appear to be an ebuild file." return 1 settings.reset() settings["ROOT"]=root settings["STARTDIR"]=os.getcwd() settings["EBUILD... | ad12b209068fc579f0d299d84052c4e8e9969d6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/ad12b209068fc579f0d299d84052c4e8e9969d6d/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
73,
3510,
12,
4811,
73,
3510,
16,
4811,
2896,
16,
1893,
14877,
33,
21,
4672,
2552,
1947,
309,
486,
1140,
18,
803,
18,
1808,
12,
4811,
73,
3510,
4672,
1172,
315,
25885,
3113,
4811,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
73,
3510,
12,
4811,
73,
3510,
16,
4811,
2896,
16,
1893,
14877,
33,
21,
4672,
2552,
1947,
309,
486,
1140,
18,
803,
18,
1808,
12,
4811,
73,
3510,
4672,
1172,
315,
25885,
3113,
4811,... |
slice1 = [slice(None)]*nd slice2 = [slice(None)]*nd slice1[axis] = slice(1,None) slice2[axis] = slice(None,-1) | slice1 = tupleset((slice(None),)*nd, axis, slice(1, None)) slice2 = tupleset((slice(None),)*nd, axis, slice(None, -1)) | def cumtrapz(y, x=None, dx=1.0, axis=-1): """Cumulatively integrate y(x) using samples along the given axis and the composite trapezoidal rule. If x is None, spacing given by dx is assumed. """ y = asarray(y) if x is None: d = dx else: d = diff(x,axis=axis) nd = len(y.shape) slice1 = [slice(None)]*nd slice2 = [slice(N... | 704696cd1cef533b4e608563919a4d4ce035a41b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/704696cd1cef533b4e608563919a4d4ce035a41b/quadrature.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14471,
27170,
94,
12,
93,
16,
619,
33,
7036,
16,
6633,
33,
21,
18,
20,
16,
2654,
29711,
21,
4672,
3536,
39,
5283,
17526,
23367,
677,
12,
92,
13,
1450,
5216,
7563,
326,
864,
2654,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14471,
27170,
94,
12,
93,
16,
619,
33,
7036,
16,
6633,
33,
21,
18,
20,
16,
2654,
29711,
21,
4672,
3536,
39,
5283,
17526,
23367,
677,
12,
92,
13,
1450,
5216,
7563,
326,
864,
2654,
471... |
self.win.msgbarLabel.setText("Minimization Failed!") | if not s: s = "exit code %r" % r self.win.msgbarLabel.setText("Minimization Failed!") | def minimize(self): from debug import print_compact_traceback self.win.msgbarLabel.setText( "Minimizing...") # Initial message [mark 040924 via bruce] QApplication.setOverrideCursor( QCursor(Qt.WaitCursor) ) # Put up the hourglass cursor. [mark 040924 via bruce] try: self.win.msgbarLabel.setText("Calculating...") write... | 66dcad5c44132dea96b1093f217e5bc2349955d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/66dcad5c44132dea96b1093f217e5bc2349955d1/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18935,
12,
2890,
4672,
628,
1198,
1930,
1172,
67,
21038,
67,
21696,
365,
18,
8082,
18,
3576,
3215,
2224,
18,
542,
1528,
12,
315,
2930,
381,
6894,
7070,
13,
468,
10188,
883,
306,
3355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18935,
12,
2890,
4672,
628,
1198,
1930,
1172,
67,
21038,
67,
21696,
365,
18,
8082,
18,
3576,
3215,
2224,
18,
542,
1528,
12,
315,
2930,
381,
6894,
7070,
13,
468,
10188,
883,
306,
3355,
... |
return u"%s (%s sur %s)" %(self.instance_name, self.instance_oracle, self.instance_oracle.base_server) | return u"%s (%s)" %(self.instance_name, self.instance_oracle) | def __unicode__(self): return u"%s (%s sur %s)" %(self.instance_name, self.instance_oracle, self.instance_oracle.base_server) | 7b8a456f560f52ca0ce265991e808f90a446b1e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11230/7b8a456f560f52ca0ce265991e808f90a446b1e0/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
28385,
87,
6142,
87,
2225,
8975,
2890,
18,
1336,
67,
529,
16,
365,
18,
1336,
67,
280,
16066,
13,
225,
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,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
28385,
87,
6142,
87,
2225,
8975,
2890,
18,
1336,
67,
529,
16,
365,
18,
1336,
67,
280,
16066,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
cmdrc, output = self.cmd.run("rpm --import %s" % key_arg) if cmdrc != 0: self.logger.debug("Unable to install %s-%s" % \ (self.instance_status[inst].get('pkg').get('name'), \ self.str_evra(inst))) else: self.logger.debug("Installed %s-%s-%s" % \ (self.instance_status[inst].get('pkg').get('name'), \ inst.get('version'),... | self._installGPGKey(inst, key_file) | def Install(self, packages, states): """ Try and fix everything that RPMng.VerifyPackages() found wrong for each Package Entry. This can result in individual RPMs being installed (for the first time), deleted, downgraded or upgraded. | 806c613f255b54d2c580b303361a7934d0324f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/806c613f255b54d2c580b303361a7934d0324f08/YUMng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
6161,
471,
2917,
7756,
716,
534,
12728,
3368,
18,
8097,
11425,
1435,
1392,
7194,
364,
1517,
7508,
3841,
18,
225,
1220,
848,
563,
316,
732... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
6161,
471,
2917,
7756,
716,
534,
12728,
3368,
18,
8097,
11425,
1435,
1392,
7194,
364,
1517,
7508,
3841,
18,
225,
1220,
848,
563,
316,
732... |
trv.troveInfo.buildReqs.add(mark[1].name(), newVersion, mark[1].flavor()) | if newVersion: trv.troveInfo.buildReqs.add(mark[1].name(), newVersion, mark[1].flavor()) | def _updateVersion(trv, mark, newVersion): kind = mark[0] if kind == V_LOADED: trv.troveInfo.loadedTroves.remove(mark[1]) trv.troveInfo.loadedTroves.add(mark[1].name(), newVersion, mark[1].flavor()) elif kind == V_BREQ: trv.troveInfo.buildReqs.remove(mark[1]) trv.troveInfo.buildReqs.add(mark[1].name(), newVersion, mar... | 48090a0a611c5a2a32181ce3ce6d2db11fdc4a5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/48090a0a611c5a2a32181ce3ce6d2db11fdc4a5e/clone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
1444,
12,
313,
90,
16,
2267,
16,
28906,
4672,
3846,
273,
2267,
63,
20,
65,
225,
309,
3846,
422,
776,
67,
31408,
30,
433,
90,
18,
88,
303,
537,
966,
18,
4230,
56,
303,
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,
389,
2725,
1444,
12,
313,
90,
16,
2267,
16,
28906,
4672,
3846,
273,
2267,
63,
20,
65,
225,
309,
3846,
422,
776,
67,
31408,
30,
433,
90,
18,
88,
303,
537,
966,
18,
4230,
56,
303,
33... |
if not callback: callback = print_line | if not callable(callback): callback = print_line | def retrlines(self, cmd, callback = None): '''Retrieve data in line mode. The argument is a RETR or LIST command. The callback function (2nd argument) is called for each line, with trailing CRLF stripped. This creates a new port for you. print_line() is the default callback.''' if not callback: callback = print_line r... | a8dd0941b8becfb48788b333ba2329953a5d90d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a8dd0941b8becfb48788b333ba2329953a5d90d7/ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
3548,
12,
2890,
16,
1797,
16,
1348,
273,
599,
4672,
9163,
5767,
501,
316,
980,
1965,
18,
1021,
1237,
353,
279,
10366,
54,
578,
15130,
1296,
18,
1021,
1348,
445,
261,
22,
4880,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
3548,
12,
2890,
16,
1797,
16,
1348,
273,
599,
4672,
9163,
5767,
501,
316,
980,
1965,
18,
1021,
1237,
353,
279,
10366,
54,
578,
15130,
1296,
18,
1021,
1348,
445,
261,
22,
4880,
1... |
w = weakref.ref( o ) | w = weakref.ref( o, callback ) | def callback( self, w ) : self.callbackCalled = True | 13a2172c20a9c9a42a7124a40eb62bc76b732653 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/13a2172c20a9c9a42a7124a40eb62bc76b732653/WrapperGarbageCollection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
365,
16,
341,
262,
294,
225,
365,
18,
3394,
8185,
273,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
365,
16,
341,
262,
294,
225,
365,
18,
3394,
8185,
273,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.log.message('Screenshot number %d served to %s' % (self.counter, self.ip), ['pixbuf', gtk.gdk.pixbuf_new_from_file(os.path.join(self.itakaglobals.image_dir, "itaka16x16-take.png"))]) | self.log.message('Screenshot served to %s' % (self.ip), ['pixbuf', gtk.gdk.pixbuf_new_from_file(os.path.join(self.itakaglobals.image_dir, "itaka16x16-take.png"))]) | def update_gui(self, counter=False, ip=False, time=False): """ Updates the GUI on request from the server. @type counter: int @param counter: Total number of server hits. | a3e8a8419a40b9aee1dfd5fc5cdc0cbf1daa0fbd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/943/a3e8a8419a40b9aee1dfd5fc5cdc0cbf1daa0fbd/uigtk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
20292,
12,
2890,
16,
3895,
33,
8381,
16,
2359,
33,
8381,
16,
813,
33,
8381,
4672,
3536,
15419,
326,
10978,
603,
590,
628,
326,
1438,
18,
225,
632,
723,
3895,
30,
509,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
67,
20292,
12,
2890,
16,
3895,
33,
8381,
16,
2359,
33,
8381,
16,
813,
33,
8381,
4672,
3536,
15419,
326,
10978,
603,
590,
628,
326,
1438,
18,
225,
632,
723,
3895,
30,
509,
632,
... |
return None, '3 invalid statement length %d' % sp_len | return model, '3 invalid statement length %d' % sp_len | def pns_triple (model, PNS_LENGTH=1024): "validate the length of a triple as fitting a PNS/UDP datagram" assert model[0] sp_len = len (model[0]) + len (model[1]) + len ( '%d%d' % (len (model[0]), len (model[1])) ) if sp_len > PNS_LENGTH/2: return None, '3 invalid statement length %d' % sp_len if model[2]: model = (mod... | 9f06c33dfc5c6de1106dfed0022b98475093fa03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/9f06c33dfc5c6de1106dfed0022b98475093fa03/pns_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
2387,
67,
313,
2444,
261,
2284,
16,
453,
3156,
67,
7096,
33,
2163,
3247,
4672,
315,
5662,
326,
769,
434,
279,
14543,
487,
23591,
279,
453,
3156,
19,
20352,
1150,
17049,
6,
1815,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
2387,
67,
313,
2444,
261,
2284,
16,
453,
3156,
67,
7096,
33,
2163,
3247,
4672,
315,
5662,
326,
769,
434,
279,
14543,
487,
23591,
279,
453,
3156,
19,
20352,
1150,
17049,
6,
1815,
9... |
if SAGE_INCOMING_SERVER == None: | if SAGE_INCOMING_SERVER is None: | def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' Sage repository, unless push_url() is changed in a setup file). If you have internet access, it's best to just do ... | b6cedfc3ec097dfea0a4c9b4ec56a612b77a1fd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b6cedfc3ec097dfea0a4c9b4ec56a612b77a1fd2/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... |
"""[<cheapest|quickest] flight from <departure> to <destination> from <depart_date> [anytime|morning|afternoon|evening|<time>] to <return_date> [anytime|morning|afternoon|evening|<time>]""" | """[<cheapest|quickest]> flight from <departure> to <destination> from <depart_date> [anytime|morning|afternoon|evening|<time>] to <return_date> [anytime|morning|afternoon|evening|<time>]""" | def int_duration(self): hours, minutes = 0, 0 match = re.search(r'(\d+)hr', self.duration) if match: hours = int(match.group(1)) match = re.search(r'(\d+)min', self.duration) if match: minutes = int(match.group(1)) return int(hours)*60 + int(minutes) | e7d1e7dcde93d4333203b67b982caade39874ba6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/e7d1e7dcde93d4333203b67b982caade39874ba6/flight.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
509,
67,
8760,
12,
2890,
4672,
7507,
16,
6824,
273,
374,
16,
374,
845,
273,
283,
18,
3072,
12,
86,
11,
4713,
72,
6975,
7256,
2187,
365,
18,
8760,
13,
309,
845,
30,
7507,
273,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
509,
67,
8760,
12,
2890,
4672,
7507,
16,
6824,
273,
374,
16,
374,
845,
273,
283,
18,
3072,
12,
86,
11,
4713,
72,
6975,
7256,
2187,
365,
18,
8760,
13,
309,
845,
30,
7507,
273,
509,
... |
elif force_type: | elif self.force_type: | def __init__(self, *args, **kwargs): self.__data = {} if 'force_type' in kwargs: self.force_type = kwargs['force_type'] else: self.force_type = convert_lossless if isinstance(args[0], (list, tuple)): if isinstance(args[0][0], (list, tuple)): # interpret nested list as matrix A = args[0] self.__rows = len(A) self.__cols... | df78f23cacb813e430f5e7dd74ac55dcf1e998c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/df78f23cacb813e430f5e7dd74ac55dcf1e998c9/matrices.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
16186,
892,
273,
2618,
309,
296,
5734,
67,
723,
11,
316,
1205,
30,
365,
18,
5734,
67,
723,
273,
1205,
3292,
5734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
16186,
892,
273,
2618,
309,
296,
5734,
67,
723,
11,
316,
1205,
30,
365,
18,
5734,
67,
723,
273,
1205,
3292,
5734,
... |
urls = ('http://dl.sourceforge.net/sourceforge/mysql-python/' 'MySQL-python-%s.tar.gz' % (version,),) | urls = ('http://downloads.sourceforge.net/project/mysql-python/' 'mysql-python/%(version)s/MySQL-python-%(version)s.tar.gz' % dict(version=version),) | def _build_and_install_current_dir(self, install_dir): egg_path = self._build_egg_using_setup_py() if not egg_path: return False | 64d73a537cdcde0f2ce3e20787099cae55a42495 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/64d73a537cdcde0f2ce3e20787099cae55a42495/build_externals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
464,
67,
5425,
67,
2972,
67,
1214,
12,
2890,
16,
3799,
67,
1214,
4672,
25144,
67,
803,
273,
365,
6315,
3510,
67,
23171,
67,
9940,
67,
8401,
67,
2074,
1435,
309,
486,
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,
389,
3510,
67,
464,
67,
5425,
67,
2972,
67,
1214,
12,
2890,
16,
3799,
67,
1214,
4672,
25144,
67,
803,
273,
365,
6315,
3510,
67,
23171,
67,
9940,
67,
8401,
67,
2074,
1435,
309,
486,
2... |
for (vessel, ignored_return_value) in parallel_results["returned"]: | for (ignored_argument_vessel, returned_vessel) in parallel_results["returned"]: | def _acquire_vessels_from_list(lockserver_handle, geniuser, vesselcount, vessel_list): """ This function will try to acquire vesselcount vessels from vessel_list. If less than vesselcount can be acquired, then the partial set of vessels that were acquired will be released by this function before it returns. Returns th... | 07deab39f1405c606bdaa14788874baaa838481f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/07deab39f1405c606bdaa14788874baaa838481f/vessels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1077,
1039,
67,
90,
403,
10558,
67,
2080,
67,
1098,
12,
739,
3567,
67,
4110,
16,
3157,
77,
1355,
16,
331,
403,
292,
1883,
16,
331,
403,
292,
67,
1098,
4672,
3536,
1220,
445,
903... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1077,
1039,
67,
90,
403,
10558,
67,
2080,
67,
1098,
12,
739,
3567,
67,
4110,
16,
3157,
77,
1355,
16,
331,
403,
292,
1883,
16,
331,
403,
292,
67,
1098,
4672,
3536,
1220,
445,
903... |
'description':hist.content | 'description':key['content'] | def _store_bug_history(self, cr, uid,bug_id,bug,context={}): obj = self.pool.get('crm.case.history') for hist in bug.bug.messages.entries: data = { 'name': bug.status, 'user_id': uid, 'case_id': bug_id, 'description':hist.content } obj.create(cr, uid, data, context) return True | 631913389455b184f7350f25af5a005642a35eee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/631913389455b184f7350f25af5a005642a35eee/crm_lp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2233,
67,
925,
67,
8189,
12,
2890,
16,
4422,
16,
4555,
16,
925,
67,
350,
16,
925,
16,
2472,
12938,
4672,
1081,
273,
365,
18,
6011,
18,
588,
2668,
3353,
81,
18,
3593,
18,
8189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2233,
67,
925,
67,
8189,
12,
2890,
16,
4422,
16,
4555,
16,
925,
67,
350,
16,
925,
16,
2472,
12938,
4672,
1081,
273,
365,
18,
6011,
18,
588,
2668,
3353,
81,
18,
3593,
18,
8189,
... |
The entropy dual function equals the negative log likelihood. | The entropy dual function is proportional to the negative log likelihood. | def dual(self, params=None, ignorepenalty=False): """The entropy dual function is defined for conditional models as L(theta) = sum_w q(w) log Z(w; theta) - sum_{w,x} q(w,x) [theta . f(w,x)] | 2b410e32da15949ab05dc2ca96d760da0485cce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2b410e32da15949ab05dc2ca96d760da0485cce5/maxentropy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24557,
12,
2890,
16,
859,
33,
7036,
16,
2305,
1907,
15006,
33,
8381,
4672,
3536,
1986,
15943,
24557,
445,
353,
2553,
364,
11139,
3679,
487,
225,
511,
12,
14482,
13,
273,
2142,
67,
91,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24557,
12,
2890,
16,
859,
33,
7036,
16,
2305,
1907,
15006,
33,
8381,
4672,
3536,
1986,
15943,
24557,
445,
353,
2553,
364,
11139,
3679,
487,
225,
511,
12,
14482,
13,
273,
2142,
67,
91,
... |
self.assertEqual(str(cmdline), prank_exe + " -d=Fasta/f002 -noxml" + \ | self.assertEqual(str(cmdline), prank_exe + " -d=Fasta/fa01 -noxml" + \ | def test_Prank_complex_command_line(self): """Round-trip with complex command line.""" cmdline = PrankCommandline(prank_exe) cmdline.set_parameter("d", self.infile1) cmdline.set_parameter("-noxml") cmdline.set_parameter("notree") cmdline.set_parameter("-gaprate", 0.321) cmdline.set_parameter("gapext", 0.6) cmdline.set_... | a806cfeb9ff5e9ef2e53bda2d6cbf112c26a249f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/a806cfeb9ff5e9ef2e53bda2d6cbf112c26a249f/test_Prank_tool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2050,
2304,
67,
14259,
67,
3076,
67,
1369,
12,
2890,
4672,
3536,
11066,
17,
25125,
598,
7233,
1296,
980,
12123,
22877,
273,
2301,
2304,
2189,
1369,
12,
683,
2304,
67,
14880,
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,
1842,
67,
2050,
2304,
67,
14259,
67,
3076,
67,
1369,
12,
2890,
4672,
3536,
11066,
17,
25125,
598,
7233,
1296,
980,
12123,
22877,
273,
2301,
2304,
2189,
1369,
12,
683,
2304,
67,
14880,
13... |
if gv_y.fits_in_immediate(): | if gv_y.fits_in_simm(): | def op_int_lshift(self, gv_x, gv_y): if gv_y.fits_in_immediate(): if abs(gv_y.value) >= 32: return self.rgenop.genconst(0) else: return self._arg_imm_op(gv_x, gv_y, _PPC.slwi) # computing x << y when you don't know y is <=32 # (we can assume y >= 0 though) # here's the plan: # # z = nltu(y, 32) (as per cwg) # w = x << ... | 1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
67,
474,
67,
80,
4012,
12,
2890,
16,
11404,
67,
92,
16,
11404,
67,
93,
4672,
309,
11404,
67,
93,
18,
18352,
67,
267,
67,
9812,
81,
13332,
309,
2417,
12,
75,
90,
67,
93,
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,
1061,
67,
474,
67,
80,
4012,
12,
2890,
16,
11404,
67,
92,
16,
11404,
67,
93,
4672,
309,
11404,
67,
93,
18,
18352,
67,
267,
67,
9812,
81,
13332,
309,
2417,
12,
75,
90,
67,
93,
18,
... |
chapter = model.get_value(iter, self.VCD_CLMN_CHTR) chapter.props.mp3_name = self.file_chooser_dialog.get_filename() self.ent_music.set_text(chapter.props.mp3_name) | if model.iter_depth(iter) == 1: iter = model.iter_parent(iter) pass name = model.get_value(iter, self.VCD_CLMN_NAME) chapter = self.__find_chapter(name) chapter.mp3_name = self.file_chooser_dialog.get_filename() self.ent_music.set_text(chapter.mp3_name) | def on_btn_choose_music_clicked(self, widget): self.file_chooser_dialog.set_action(gtk.FILE_CHOOSER_ACTION_OPEN) self.file_chooser_dialog.set_title("Choose background music") response = self.file_chooser_dialog.run() self.file_chooser_dialog.hide() if response == gtk.RESPONSE_OK: model, iter = self.tv_vcd_chapters.get_... | 197c33d735d49bab858cd4dda3c7f019e3dd0db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/197c33d735d49bab858cd4dda3c7f019e3dd0db3/VideoCD.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
11898,
67,
25777,
67,
81,
14894,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
365,
18,
768,
67,
2599,
13164,
67,
12730,
18,
542,
67,
1128,
12,
4521,
79,
18,
3776,
67,
22213,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
11898,
67,
25777,
67,
81,
14894,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
365,
18,
768,
67,
2599,
13164,
67,
12730,
18,
542,
67,
1128,
12,
4521,
79,
18,
3776,
67,
22213,
51,... |
self.assertRaises(ValueError, method) | with test_support._check_py3k_warnings(quiet=True): self.assertRaises(ValueError, method) | def testMethods(self): methods = ['fileno', 'flush', 'isatty', 'next', 'read', 'readinto', 'readline', 'readlines', 'seek', 'tell', 'truncate', 'write', 'xreadlines', '__iter__'] if sys.platform.startswith('atheos'): methods.remove('truncate') | f47048e1a5d2cdae907bce267116ba28af8df34b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/f47048e1a5d2cdae907bce267116ba28af8df34b/test_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4712,
12,
2890,
4672,
2590,
273,
10228,
7540,
5764,
2187,
296,
11330,
2187,
296,
291,
270,
4098,
2187,
296,
4285,
2187,
296,
896,
2187,
296,
896,
18591,
2187,
296,
896,
1369,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4712,
12,
2890,
4672,
2590,
273,
10228,
7540,
5764,
2187,
296,
11330,
2187,
296,
291,
270,
4098,
2187,
296,
4285,
2187,
296,
896,
2187,
296,
896,
18591,
2187,
296,
896,
1369,
2187,
... |
preOps = [ | postOps = [ | def randomMove(values): '''Pass parental information fields to offspring''' x1, y1, x2, y2 = values # shift right with high concentration of alleles... x = random.normalvariate((x1+x2)/2., 0.1) y = random.normalvariate((y1+y2)/2., 0.1) return (x, y) | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
7607,
12,
2372,
4672,
9163,
6433,
982,
287,
1779,
1466,
358,
21174,
11638,
26418,
619,
21,
16,
677,
21,
16,
619,
22,
16,
677,
22,
273,
924,
468,
4654,
2145,
598,
3551,
20570,
823... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
7607,
12,
2372,
4672,
9163,
6433,
982,
287,
1779,
1466,
358,
21174,
11638,
26418,
619,
21,
16,
677,
21,
16,
619,
22,
16,
677,
22,
273,
924,
468,
4654,
2145,
598,
3551,
20570,
823... |
p -- a prime (default: 0); just the p-new subspace if given | p -- a prime (default: 0); just the $p$-new subspace if given | def dimension_new_cusp_forms_eps(eps, k=2, p=0): """ Dimension of the new subspace (or p-new subspace) of cusp forms of weight k and character eps. INPUT: eps -- a Dirichlet character k -- an integer (ddefault: 2) p -- a prime (default: 0); just the p-new subspace if given OUTPUT: Integer EXAMPLES: sage: G = Dirichl... | 248019f740827c6c514f1cd94eb6bd825f071218 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/248019f740827c6c514f1cd94eb6bd825f071218/dims.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4968,
67,
2704,
67,
71,
407,
84,
67,
9741,
67,
13058,
12,
13058,
16,
417,
33,
22,
16,
293,
33,
20,
4672,
3536,
13037,
434,
326,
394,
720,
2981,
261,
280,
293,
17,
2704,
720,
2981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4968,
67,
2704,
67,
71,
407,
84,
67,
9741,
67,
13058,
12,
13058,
16,
417,
33,
22,
16,
293,
33,
20,
4672,
3536,
13037,
434,
326,
394,
720,
2981,
261,
280,
293,
17,
2704,
720,
2981,
... |
self.editLabelMapsFrame.collapsed = not mergeVolume | if not self.embedded: self.editLabelMapsFrame.collapsed = not mergeVolume | def updateLabelFrame(self, mergeVolume): self.editLabelMapsFrame.collapsed = not mergeVolume | 887a26a7cfbe7ff2a2100ff443c17af4e6dcf734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12580/887a26a7cfbe7ff2a2100ff443c17af4e6dcf734/Editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2224,
3219,
12,
2890,
16,
2691,
4545,
4672,
365,
18,
4619,
2224,
8903,
3219,
18,
1293,
13886,
273,
486,
2691,
4545,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2224,
3219,
12,
2890,
16,
2691,
4545,
4672,
365,
18,
4619,
2224,
8903,
3219,
18,
1293,
13886,
273,
486,
2691,
4545,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
G = gap(Gmat) | def wtdist(Gmat, F): r""" INPUT: Gmat -- a string representing a GAP generator matrix G of a linear code. F -- a (SAGE) finite field - the base field of the code. OUTPUT: Returns the spectrum of the associated code. EXAMPLES: sage: Gstr = 'Z(2)*[[1,1,1,0,0,0,0], [1,0,0,1,1,0,0], [0,1,0,1,0,1,0], [1,1,0,1,0,0,1]]' sag... | 90ff33abb51043d1baa7fdf15f610546756cd0b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/90ff33abb51043d1baa7fdf15f610546756cd0b7/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18201,
4413,
12,
43,
7373,
16,
478,
4672,
436,
8395,
12943,
30,
611,
7373,
1493,
279,
533,
5123,
279,
611,
2203,
4456,
3148,
611,
434,
279,
9103,
981,
18,
478,
1493,
279,
261,
55,
2833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18201,
4413,
12,
43,
7373,
16,
478,
4672,
436,
8395,
12943,
30,
611,
7373,
1493,
279,
533,
5123,
279,
611,
2203,
4456,
3148,
611,
434,
279,
9103,
981,
18,
478,
1493,
279,
261,
55,
2833... | |
(dir, pattern) = map (native_path, words[1:3]) | dir = native_path(words[1]) pattern_list = map (native_path, words[2:]) | def read_template (self): """Read and parse the manifest template file named by 'self.template' (usually "MANIFEST.in"). Process all file specifications (include and exclude) in the manifest template and add the resulting filenames to 'self.files'.""" | 21e295b8fbea21a3383b789b0f44d59a3c2c9d90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/21e295b8fbea21a3383b789b0f44d59a3c2c9d90/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3202,
261,
2890,
4672,
3536,
1994,
471,
1109,
326,
5643,
1542,
585,
4141,
635,
296,
2890,
18,
3202,
11,
261,
407,
3452,
315,
9560,
30050,
18,
267,
20387,
225,
4389,
777,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3202,
261,
2890,
4672,
3536,
1994,
471,
1109,
326,
5643,
1542,
585,
4141,
635,
296,
2890,
18,
3202,
11,
261,
407,
3452,
315,
9560,
30050,
18,
267,
20387,
225,
4389,
777,
585,
... |
preOps = [ | postOps = [ | def fitness(gen, sp): 'Constant positive selection pressure.' return [1, 1.01, 1.02] | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20351,
12,
4507,
16,
1694,
4672,
296,
6902,
6895,
4421,
17590,
1093,
327,
306,
21,
16,
404,
18,
1611,
16,
404,
18,
3103,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20351,
12,
4507,
16,
1694,
4672,
296,
6902,
6895,
4421,
17590,
1093,
327,
306,
21,
16,
404,
18,
1611,
16,
404,
18,
3103,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
zinfo.flag_bits = 0x08 | zinfo.flag_bits = 0x00 | def write(self, filename, arcname=None, compress_type=None): """Put the bytes from filename into the archive under the name arcname.""" st = os.stat(filename) mtime = time.localtime(st[8]) date_time = mtime[0:6] # Create ZipInfo instance to store file information if arcname is None: zinfo = ZipInfo(filename, date_time)... | 29346d9c058e140d544d54d82567913a1f5ad3fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/29346d9c058e140d544d54d82567913a1f5ad3fd/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
16,
8028,
529,
33,
7036,
16,
8099,
67,
723,
33,
7036,
4672,
3536,
6426,
326,
1731,
628,
1544,
1368,
326,
5052,
3613,
326,
508,
8028,
529,
12123,
384,
273,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
16,
8028,
529,
33,
7036,
16,
8099,
67,
723,
33,
7036,
4672,
3536,
6426,
326,
1731,
628,
1544,
1368,
326,
5052,
3613,
326,
508,
8028,
529,
12123,
384,
273,
114... |
perms = stat(entry.attrib['name'])[ST_MODE] if entry.attrib.get('encoding', 'ascii') == 'base64': | perms = stat(entry.get('name'))[ST_MODE] if entry.get('encoding', 'ascii') == 'base64': | def VerifyConfigFile(self, entry): try: ondisk = stat(entry.attrib['name']) except OSError: return False try: data = open(entry.attrib['name']).read() except IOError: return False try: owner = getpwuid(ondisk[ST_UID])[0] group = getgrgid(ondisk[ST_GID])[0] except KeyError: return False perms = stat(entry.attrib['name']... | 7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
13705,
12,
2890,
16,
1241,
4672,
775,
30,
603,
10863,
273,
610,
12,
4099,
18,
14588,
3292,
529,
19486,
1335,
10002,
30,
327,
1083,
775,
30,
501,
273,
1696,
12,
4099,
18,
14588,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
13705,
12,
2890,
16,
1241,
4672,
775,
30,
603,
10863,
273,
610,
12,
4099,
18,
14588,
3292,
529,
19486,
1335,
10002,
30,
327,
1083,
775,
30,
501,
273,
1696,
12,
4099,
18,
14588,
3... |
def ReadTestData(self, root_key): | def ReadTestData(self, root_key, subkeystr="sub_key"): | def ReadTestData(self, root_key): # Check we can get default value for this key. val = QueryValue(root_key, test_key_name) self.assertEquals(val, "Default value", "Registry didn't give back the correct value") | f82d9b52fae475a132a21d1b7174730f17b735de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f82d9b52fae475a132a21d1b7174730f17b735de/test_winreg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
4709,
751,
12,
2890,
16,
1365,
67,
856,
16,
21949,
701,
1546,
1717,
67,
856,
6,
4672,
468,
2073,
732,
848,
336,
805,
460,
364,
333,
498,
18,
1244,
273,
2770,
620,
12,
3085,
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,
2720,
4709,
751,
12,
2890,
16,
1365,
67,
856,
16,
21949,
701,
1546,
1717,
67,
856,
6,
4672,
468,
2073,
732,
848,
336,
805,
460,
364,
333,
498,
18,
1244,
273,
2770,
620,
12,
3085,
67,... |
entriesbyname.setdefault(e.gr_name, []).append(e) entriesbygid.setdefault(e.gr_gid, []).append(e) | def test_values(self): entries = grp.getgrall() entriesbyname = {} entriesbygid = {} | 06d931f1984c46efd666d05ec8e64fecf08973b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/06d931f1984c46efd666d05ec8e64fecf08973b9/test_grp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
3222,
1637,
529,
273,
2618,
3222,
1637,
15780,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
3222,
1637,
529,
273,
2618,
3222,
1637,
15780,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
def replace_indices(self, old_indices, new_indices): | def apply_tensor(self, indices): if not self.index_slots is None: raise MonomialException, "Expecting scalar-valued expression." self.index_slots = indices def apply_indices(self, indices): print "Applying indices:", self.index_slots, "-->", indices | def replace_indices(self, old_indices, new_indices): for v in self.basis_functions: v.replace_indices(old_indices, new_indices) for f in self.functions: f.replace_indices(old_indices, new_indices) | 77f5b57aca0f4f80bf6d0d5a9436b738045bd57c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/77f5b57aca0f4f80bf6d0d5a9436b738045bd57c/monomials.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
13720,
12,
2890,
16,
4295,
4672,
309,
486,
365,
18,
1615,
67,
18875,
353,
599,
30,
1002,
490,
4708,
649,
503,
16,
315,
24439,
4981,
17,
4531,
329,
2652,
1199,
365,
18,
1615,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
13720,
12,
2890,
16,
4295,
4672,
309,
486,
365,
18,
1615,
67,
18875,
353,
599,
30,
1002,
490,
4708,
649,
503,
16,
315,
24439,
4981,
17,
4531,
329,
2652,
1199,
365,
18,
1615,
... |
"""Process arguments and decide which source files to compile. Merges _fix_compile_args() and _prep_compile(). """ | """Process arguments and decide which source files to compile.""" | def _setup_compile(self, outdir, macros, incdirs, sources, depends, extra): """Process arguments and decide which source files to compile. | b293024314eb7b21eec80dd2cebe28a87661b28b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b293024314eb7b21eec80dd2cebe28a87661b28b/ccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
11100,
12,
2890,
16,
15398,
16,
24302,
16,
7290,
8291,
16,
5550,
16,
10935,
16,
2870,
4672,
3536,
2227,
1775,
471,
16288,
1492,
1084,
1390,
358,
4074,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
11100,
12,
2890,
16,
15398,
16,
24302,
16,
7290,
8291,
16,
5550,
16,
10935,
16,
2870,
4672,
3536,
2227,
1775,
471,
16288,
1492,
1084,
1390,
358,
4074,
18,
2,
-100,
-100,
... |
date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time | date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time[:6] | def printdir(self): """Print a table of contents for the zip file.""" print "%-46s %19s %12s" % ("File Name", "Modified ", "Size") for zinfo in self.filelist: date = "%d-%02d-%02d %02d:%02d:%02d" % zinfo.date_time print "%-46s %s %12d" % (zinfo.filename, date, zinfo.file_size) | c7dbb2122f7c36d242bacf78dddbe183797244be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/c7dbb2122f7c36d242bacf78dddbe183797244be/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1214,
12,
2890,
4672,
3536,
5108,
279,
1014,
434,
2939,
364,
326,
3144,
585,
12123,
1172,
2213,
17,
8749,
87,
738,
3657,
87,
738,
2138,
87,
6,
738,
7566,
812,
1770,
3113,
315,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1214,
12,
2890,
4672,
3536,
5108,
279,
1014,
434,
2939,
364,
326,
3144,
585,
12123,
1172,
2213,
17,
8749,
87,
738,
3657,
87,
738,
2138,
87,
6,
738,
7566,
812,
1770,
3113,
315,
45... |
self.printVerbose("ProcessSignals: calling %s with %s" % (handler, value)) | self.printEvent("ProcessSignals: Calling %s with %s" % (handler, value), eventVerbosity = 2) | def processSignals(self): if self.processingHandler: self.processingHandler(self, 1) # focus on active widget # we define only a way to handle signals that have defined a handler function for key in self.linksIn.keys(): for i in range(len(self.linksIn[key])): (dirty, widgetFrom, handler, signalData) = self.linksIn[... | 0e491378e71212a6a34471826031736d4a3a8cd6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e491378e71212a6a34471826031736d4a3a8cd6/OWBaseWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
23346,
12,
2890,
4672,
309,
365,
18,
10632,
1503,
30,
365,
18,
10632,
1503,
12,
2890,
16,
404,
13,
565,
468,
7155,
603,
2695,
3604,
225,
468,
732,
4426,
1338,
279,
4031,
358,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
23346,
12,
2890,
4672,
309,
365,
18,
10632,
1503,
30,
365,
18,
10632,
1503,
12,
2890,
16,
404,
13,
565,
468,
7155,
603,
2695,
3604,
225,
468,
732,
4426,
1338,
279,
4031,
358,
164... |
del pool del self.pools[pool] | def __checkPlatforms(self): # this method is called at initalization and at the begining of each execution # in this way running parameters can be dynamically changed via the remote # configuration. | 2c8b030e3e540a9a0664ef5f79e465bec0c638a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/2c8b030e3e540a9a0664ef5f79e465bec0c638a8/Director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
8201,
87,
12,
2890,
4672,
468,
333,
707,
353,
2566,
622,
1208,
287,
1588,
471,
622,
326,
2376,
310,
434,
1517,
4588,
468,
316,
333,
4031,
3549,
1472,
848,
506,
18373,
3550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
8201,
87,
12,
2890,
4672,
468,
333,
707,
353,
2566,
622,
1208,
287,
1588,
471,
622,
326,
2376,
310,
434,
1517,
4588,
468,
316,
333,
4031,
3549,
1472,
848,
506,
18373,
3550,
... | |
def send(mfrom, mto, subject, body, composer=NonMultipartComposer(), | def send(mfrom, mto, subject, body, composer=Composer(), | def send(mfrom, mto, subject, body, composer=NonMultipartComposer(), sender=SendmailSender()): message = composer.compose(body, From=mfrom, To=mto, Subject=subject) return sender.send(message) | b1c9b7f37338915f1e0b475520c1f108e559d644 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/b1c9b7f37338915f1e0b475520c1f108e559d644/qMail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
81,
2080,
16,
312,
869,
16,
3221,
16,
1417,
16,
8561,
33,
14404,
9334,
5793,
33,
3826,
4408,
12021,
1435,
4672,
883,
273,
8561,
18,
23658,
12,
3432,
16,
6338,
33,
81,
2080,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
81,
2080,
16,
312,
869,
16,
3221,
16,
1417,
16,
8561,
33,
14404,
9334,
5793,
33,
3826,
4408,
12021,
1435,
4672,
883,
273,
8561,
18,
23658,
12,
3432,
16,
6338,
33,
81,
2080,
... |
height += 12 | sbar = 12 height += sbar else: sbar = 0 | def get_window_size(self): if self.get("[Screen]", "bFullScreen"): print "WARNING: don't start Hatari UI with fullscreened Hatari!" | 69cc5c050c0485cf2169524f40bad5e09d270bcd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8501/69cc5c050c0485cf2169524f40bad5e09d270bcd/hatari.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5668,
67,
1467,
12,
2890,
4672,
309,
365,
18,
588,
2932,
63,
7956,
65,
3113,
315,
70,
5080,
7956,
6,
4672,
1172,
315,
9511,
30,
2727,
1404,
787,
670,
8761,
77,
6484,
598,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5668,
67,
1467,
12,
2890,
4672,
309,
365,
18,
588,
2932,
63,
7956,
65,
3113,
315,
70,
5080,
7956,
6,
4672,
1172,
315,
9511,
30,
2727,
1404,
787,
670,
8761,
77,
6484,
598,
19... |
p.lineto(dx, points[i]) | path.lineto(dx, points[i]) | def parse_path(e): p = BezierPath() d = get_attribute(e, "d", default="") # Divide the path data string into segments. # Each segment starts with a path command, # usually followed by coordinates. segments = [] i = 0 for j in range(len(d)): commands = ["M", "m", "Z", "z", "L", "l", "H", "h", "V", "v", "C","c", "S", "... | 4284758b928e6ce257c68e38e49e8e35b9986569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/612/4284758b928e6ce257c68e38e49e8e35b9986569/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
803,
12,
73,
4672,
225,
293,
273,
4823,
18377,
743,
1435,
302,
273,
336,
67,
4589,
12,
73,
16,
315,
72,
3113,
805,
1546,
7923,
225,
468,
21411,
831,
326,
589,
501,
533,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
803,
12,
73,
4672,
225,
293,
273,
4823,
18377,
743,
1435,
302,
273,
336,
67,
4589,
12,
73,
16,
315,
72,
3113,
805,
1546,
7923,
225,
468,
21411,
831,
326,
589,
501,
533,
136... |
obj = DBHandler.create(self, params, user) | obj = DBHandler.create(self, params, user, request) | def create(self, params, user, request): """Admin only function""" if not user or not user.has_auth_group("admin"): raise Unauthorized() obj = DBHandler.create(self, params, user) if obj.password == "": # Send them a password obj.send_password(request.real_host_url) return obj | dd984d4bd76aa4609405d4e294b05d6c457636b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10599/dd984d4bd76aa4609405d4e294b05d6c457636b0/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
859,
16,
729,
16,
590,
4672,
3536,
4446,
1338,
445,
8395,
309,
486,
729,
578,
486,
729,
18,
5332,
67,
1944,
67,
1655,
2932,
3666,
6,
4672,
1002,
15799,
1435,
1081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
859,
16,
729,
16,
590,
4672,
3536,
4446,
1338,
445,
8395,
309,
486,
729,
578,
486,
729,
18,
5332,
67,
1944,
67,
1655,
2932,
3666,
6,
4672,
1002,
15799,
1435,
1081,
... |
def vector2point(x): r = oopoint(startDictData + [(oov, x[oovar_indexes[i]:oovar_indexes[i+1]]) for i, oov in enumerate(optVars)]) return r | vector2point = lambda x: oopoint(startDictData + [(oov, x[oovar_indexes[i]:oovar_indexes[i+1]]) for i, oov in enumerate(optVars)]) | def vector2point(x): r = oopoint(startDictData + [(oov, x[oovar_indexes[i]:oovar_indexes[i+1]]) for i, oov in enumerate(optVars)]) return r | cfebbf2eea1adaec78560ab1e49906616af99fc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/cfebbf2eea1adaec78560ab1e49906616af99fc0/FDmisc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
22,
1153,
12,
92,
4672,
436,
273,
320,
556,
763,
12,
1937,
5014,
751,
397,
306,
12,
83,
1527,
16,
619,
63,
5161,
1401,
67,
11265,
63,
77,
14542,
5161,
1401,
67,
11265,
63,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
22,
1153,
12,
92,
4672,
436,
273,
320,
556,
763,
12,
1937,
5014,
751,
397,
306,
12,
83,
1527,
16,
619,
63,
5161,
1401,
67,
11265,
63,
77,
14542,
5161,
1401,
67,
11265,
63,
77,
... |
self.assertEqual( r.getAttribute( "gl:textPrimitive:type" ), StringData( "mesh" ) ) | if withFreeType() : self.assertEqual( r.getAttribute( "gl:textPrimitive:type" ), StringData( "mesh" ) ) | def testAttributes( self ) : | 5269537634ed49911911dd1849c9c2143eb63137 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/5269537634ed49911911dd1849c9c2143eb63137/Renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
365,
262,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
365,
262,
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... |
def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False): | def is_circular_planar(self, ordered=True, on_embedding=None, kuratowski=False, set_embedding=False, set_pos=False): | def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False): """ A graph (with nonempty boundary) is circular planar if it has a planar embedding in which all boundary vertices can be drawn in order on a disc boundary, with all the interior vertices drawn inside the disc. Returns T... | 836868c2d31c96e5f08cdfab71945dd066a12d47 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/836868c2d31c96e5f08cdfab71945dd066a12d47/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
16,
603,
67,
23744,
33,
7036,
16,
417,
295,
270,
543,
7771,
77,
33,
8381,
16,
444,
67,
23744,
33,
8381,
16,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
16,
603,
67,
23744,
33,
7036,
16,
417,
295,
270,
543,
7771,
77,
33,
8381,
16,
444,
67,
23744,
33,
8381,
16,
444,
... |
successful[path] = res['Message'] | successful[path] = res['Value'] | def getPathPermissions(self,path): """ Determine the VOMs based ACL information for a supplied path """ res = self.__checkArgumentFormat(path) if not res['OK']: return res lfns = res['Value'] created = self.__openSession() failed = {} successful = {} for path in lfns.keys(): res = self.__getBasePath(path) if not res['O... | d5a520113cf8a47dec2f5fc794d5af90f0245a93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/d5a520113cf8a47dec2f5fc794d5af90f0245a93/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
6521,
12,
2890,
16,
803,
4672,
3536,
10229,
326,
776,
1872,
87,
2511,
10098,
1779,
364,
279,
4580,
589,
3536,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
6521,
12,
2890,
16,
803,
4672,
3536,
10229,
326,
776,
1872,
87,
2511,
10098,
1779,
364,
279,
4580,
589,
3536,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
... |
for indirection in self._indirections: | indirections = self._indirections for indirection in indirections: | def getContainer(self): # try to get a handle on the container by eval'ing and looking things # up in dictionaries, depending on the type of each indirection #import pdb;pdb.set_trace() evalStr = '' curObj = None # make sure the indirections don't go away on us for indirection in self._indirections: indirection.acquire... | 69e4f8ce89f4ff77b26910a79c23f429f0003e58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/69e4f8ce89f4ff77b26910a79c23f429f0003e58/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9272,
12,
2890,
4672,
468,
775,
358,
336,
279,
1640,
603,
326,
1478,
635,
5302,
11,
310,
471,
7849,
9198,
468,
731,
316,
16176,
16,
8353,
603,
326,
618,
434,
1517,
1547,
2769,
468,
566... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9272,
12,
2890,
4672,
468,
775,
358,
336,
279,
1640,
603,
326,
1478,
635,
5302,
11,
310,
471,
7849,
9198,
468,
731,
316,
16176,
16,
8353,
603,
326,
618,
434,
1517,
1547,
2769,
468,
566... |
self._collapseParts(partPackages, packageClasses, collapseParts) | def getPackages(self, partIncludes, smartExclude, classList, collapseParts, variants, jobContext): # Get config settings jobConfig = jobContext["jobconf"] minPackageSize = jobConfig.get("packages/sizes/min-package", 0) minPackageSizeForUnshared = jobConfig.get("packages/sizes/min-package-unshared", None) | e13fa46bae9b46a89002191681f67bac823b3c1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/e13fa46bae9b46a89002191681f67bac823b3c1a/PartBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
12,
2890,
16,
1087,
16815,
16,
13706,
12689,
16,
16035,
16,
13627,
4305,
16,
12935,
16,
1719,
1042,
4672,
468,
968,
642,
1947,
1719,
809,
273,
1719,
1042,
9614,
4688,
3923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
12,
2890,
16,
1087,
16815,
16,
13706,
12689,
16,
16035,
16,
13627,
4305,
16,
12935,
16,
1719,
1042,
4672,
468,
968,
642,
1947,
1719,
809,
273,
1719,
1042,
9614,
4688,
3923,
... | |
self.move(src,dst) | if self.isfile(src): self.move(src,dst) else: self.movedir(src,dst) | def rename(self,src,dst): """Rename the file at 'src' to 'dst'.""" # Actually, in S3 'rename' is exactly the same as 'move' self.move(src,dst) | bd920d62379684e707fa3fd2963bb6123de89e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/bd920d62379684e707fa3fd2963bb6123de89e32/s3fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
4816,
16,
11057,
4672,
3536,
16019,
326,
585,
622,
296,
4816,
11,
358,
296,
11057,
11,
12123,
468,
4603,
3452,
16,
316,
348,
23,
296,
18539,
11,
353,
8950,
326,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
4816,
16,
11057,
4672,
3536,
16019,
326,
585,
622,
296,
4816,
11,
358,
296,
11057,
11,
12123,
468,
4603,
3452,
16,
316,
348,
23,
296,
18539,
11,
353,
8950,
326,
196... |
fil = path + '/' + archivo parser.feed(open(fil).read()) | f = open(path + '/' + contentpage) parser.feed(f.read()) | def content(path, archivo, output): f = formatter.AbstractFormatter(AlmostNullWriter()) parser = TocHlpHtmlParser(f) parser.path = path parser.ft = output fil = path + '/' + archivo parser.feed(open(fil).read()) parser.close() | 29c9f8334992377a2a6594733078b21037410fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/29c9f8334992377a2a6594733078b21037410fb7/prechm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
12,
803,
16,
6637,
20593,
16,
876,
4672,
284,
273,
4453,
18,
7469,
5074,
12,
1067,
10329,
2041,
2289,
10756,
2082,
273,
399,
504,
44,
9953,
4353,
2678,
12,
74,
13,
2082,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
12,
803,
16,
6637,
20593,
16,
876,
4672,
284,
273,
4453,
18,
7469,
5074,
12,
1067,
10329,
2041,
2289,
10756,
2082,
273,
399,
504,
44,
9953,
4353,
2678,
12,
74,
13,
2082,
18,
803,
... |
print "[AutoBackup] result", retval | def doneConfiguring(session, retval): "user has closed configuration, check new values...." print "[AutoBackup] result", retval global autoStartTimer if autoStartTimer is not None: autoStartTimer.update() | a3d8f2c4f33c23ce60252053d181d4d05f4273b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12173/a3d8f2c4f33c23ce60252053d181d4d05f4273b0/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2731,
809,
4017,
12,
3184,
16,
5221,
4672,
315,
1355,
711,
4375,
1664,
16,
866,
394,
924,
6265,
6,
2552,
3656,
1685,
6777,
309,
3656,
1685,
6777,
353,
486,
599,
30,
3656,
1685,
6777,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2731,
809,
4017,
12,
3184,
16,
5221,
4672,
315,
1355,
711,
4375,
1664,
16,
866,
394,
924,
6265,
6,
2552,
3656,
1685,
6777,
309,
3656,
1685,
6777,
353,
486,
599,
30,
3656,
1685,
6777,
1... | |
s.appendExten("*","Goto(%s,s,1)" % self.ivr_ast, self.pbx) | s.appendExten("*","Goto(%s,s,1)" % self.ivr_ast, context) | def createAsteriskConfig(self): s = AstConf("extensions.conf") s.setSection(self.name) if self.pbx: pbx = self.pbx else: pbx = "phones" s.append("include=%s" % pbx) s.appendExten("s","Set(TIMEOUT(digit)=%d)" % self.digittimeout, self.pbx) if self.moh: s.appendExten("s","Setmusiconhold(%s)" % self.moh, self.pbx) s.appen... | e581660927aebaacc03692e1a06a4d11542ff6a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/e581660927aebaacc03692e1a06a4d11542ff6a3/cfg_ivr_treenode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
37,
8190,
10175,
809,
12,
2890,
4672,
272,
273,
16614,
3976,
2932,
9489,
18,
3923,
7923,
272,
18,
542,
5285,
12,
2890,
18,
529,
13,
309,
365,
18,
5733,
92,
30,
6386,
92,
273,
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,
752,
37,
8190,
10175,
809,
12,
2890,
4672,
272,
273,
16614,
3976,
2932,
9489,
18,
3923,
7923,
272,
18,
542,
5285,
12,
2890,
18,
529,
13,
309,
365,
18,
5733,
92,
30,
6386,
92,
273,
36... |
return ''.join(out) | return ''.join(out).decode('utf-8') | def generate_filter_docs(): from pygments.filters import FILTERS out = [] for name, cls in FILTERS.iteritems(): out.append(''' | a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/a7d95ea5bbab68b0f8b8ba275f2b1ae69e40fd83/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2188,
67,
8532,
13332,
628,
2395,
75,
1346,
18,
6348,
1930,
8919,
55,
225,
596,
273,
5378,
364,
508,
16,
2028,
316,
8919,
55,
18,
2165,
3319,
13332,
596,
18,
6923,
2668,
6309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
67,
2188,
67,
8532,
13332,
628,
2395,
75,
1346,
18,
6348,
1930,
8919,
55,
225,
596,
273,
5378,
364,
508,
16,
2028,
316,
8919,
55,
18,
2165,
3319,
13332,
596,
18,
6923,
2668,
6309... |
product = Infsign[self._sign ^ other._sign] | product = _Infsign[self._sign ^ other._sign] | def fma(self, other, third, context=None): """Fused multiply-add. | 335c6f295295ab5b62a80d25d26d89243eb80fb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/335c6f295295ab5b62a80d25d26d89243eb80fb0/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
2540,
12,
2890,
16,
1308,
16,
12126,
16,
819,
33,
7036,
4672,
3536,
42,
3668,
10194,
17,
1289,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
2540,
12,
2890,
16,
1308,
16,
12126,
16,
819,
33,
7036,
4672,
3536,
42,
3668,
10194,
17,
1289,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if opts.new_watch_copy: | if opts.new_watch_copy: | def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, sta... | cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6289,
312,
11373,
18337,
628,
326,
1296,
980,
1135,
1053,
3536,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
1904,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6289,
312,
11373,
18337,
628,
326,
1296,
980,
1135,
1053,
3536,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
1904,
6... |
Either integers `n,d` such that `d>0`, `gcd(n,d)=1`, `n/d=u (mod m)`, and `T*d*|n|< m`, or ``None``. | Either integers `n,d` such that `d>0`, `\mathop{\mathrm{gcd}}(n,d)=1`, `n/d=u \bmod m`, and `T \* d \* |n| < m`, or ``None``. | def mqrr_rational_reconstruction(u, m, T): r""" Maximal Quotient Rational Reconstruction. FOR research purposes only - this is pure Python, so slow. INPUT: - ``u, m, T`` - integers such that `m > u \ge 0,` `T > 0`. OUTPUT: Either integers `n,d` such that `d>0`, `gcd(n,d)=1`, `n/d=u (mod m)`, and `T*d*|n|< m`, or ... | f2370aee3f6f590b914899ff20666b42b979fc93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f2370aee3f6f590b914899ff20666b42b979fc93/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18327,
523,
67,
7034,
287,
67,
266,
591,
4549,
12,
89,
16,
312,
16,
399,
4672,
436,
8395,
4238,
2840,
4783,
352,
1979,
534,
8371,
868,
591,
4549,
18,
225,
12108,
283,
3072,
13694,
1338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18327,
523,
67,
7034,
287,
67,
266,
591,
4549,
12,
89,
16,
312,
16,
399,
4672,
436,
8395,
4238,
2840,
4783,
352,
1979,
534,
8371,
868,
591,
4549,
18,
225,
12108,
283,
3072,
13694,
1338... |
if self.already_submitted == False: self.prepare() | if self.already_submitted == False and self.timeout_id == -1: self.prepare() | def plugin_on_unpaused(self): if self.already_submitted == False: self.prepare() | 6d27e2d9a5ca9423483c68af4424c3c0cde65cb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/6d27e2d9a5ca9423483c68af4424c3c0cde65cb6/qlscrobbler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1909,
67,
265,
67,
318,
8774,
3668,
12,
2890,
4672,
309,
365,
18,
17583,
67,
31575,
422,
1083,
471,
365,
18,
4538,
67,
350,
422,
300,
21,
30,
365,
18,
9366,
1435,
225,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1909,
67,
265,
67,
318,
8774,
3668,
12,
2890,
4672,
309,
365,
18,
17583,
67,
31575,
422,
1083,
471,
365,
18,
4538,
67,
350,
422,
300,
21,
30,
365,
18,
9366,
1435,
225,
2,
-100,
-100,... |
return multiprocessing.cpu_count() | ans = -1 try: ans = multiprocessing.cpu_count() except: from PyQt4.Qt import QThread ans = QThread.idealThreadCount() if ans < 1: ans = 1 return ans | def detect_ncpus(): """Detects the number of effective CPUs in the system""" return multiprocessing.cpu_count() | b89e0ce508a9aa104e1a33e127c63ffe738d8229 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/b89e0ce508a9aa104e1a33e127c63ffe738d8229/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
82,
20696,
13332,
3536,
12081,
87,
326,
1300,
434,
11448,
5181,
3477,
316,
326,
2619,
8395,
4152,
273,
300,
21,
775,
30,
4152,
273,
21828,
18,
11447,
67,
1883,
1435,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
82,
20696,
13332,
3536,
12081,
87,
326,
1300,
434,
11448,
5181,
3477,
316,
326,
2619,
8395,
4152,
273,
300,
21,
775,
30,
4152,
273,
21828,
18,
11447,
67,
1883,
1435,
1335,
30,
... |
return self._outs[key].toString() | output = self._outs[key] output.flush() return output.toString('UTF-8') | def _get_msg(self, key): return self._outs[key].toString() | 0ba2eb9a90aee40554a11f04ca1ccd5ae4543e76 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/0ba2eb9a90aee40554a11f04ca1ccd5ae4543e76/outputcapture.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3576,
12,
2890,
16,
498,
4672,
327,
365,
6315,
20125,
63,
856,
8009,
10492,
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,
... | [
1,
1,
1,
1,
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,
389,
588,
67,
3576,
12,
2890,
16,
498,
4672,
327,
365,
6315,
20125,
63,
856,
8009,
10492,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.lock.release() | def tagHandlerOutput(self, tag, msg, stderr = False): self.lock.acquire() self._message('') self.out.write('[%s] %s\n' % (tag, msg)) self.lock.release() | 96cb9597972f2239714af0c054dbabf0c65c5eab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/96cb9597972f2239714af0c054dbabf0c65c5eab/updatecmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
1503,
1447,
12,
2890,
16,
1047,
16,
1234,
16,
4514,
273,
1083,
4672,
365,
18,
739,
18,
1077,
1039,
1435,
365,
6315,
2150,
2668,
6134,
365,
18,
659,
18,
2626,
2668,
14451,
87,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1047,
1503,
1447,
12,
2890,
16,
1047,
16,
1234,
16,
4514,
273,
1083,
4672,
365,
18,
739,
18,
1077,
1039,
1435,
365,
6315,
2150,
2668,
6134,
365,
18,
659,
18,
2626,
2668,
14451,
87,
65,... | |
'developer' : ["Developers' distribution", "If you're a developer and want to run Chandler in debugging mode, this distribution contains debug versions of the binaries. Assertions are active, the __debug__ global is set to True, and memory leaks are listed upon exit. You can also use this distribution to develop your... | 'developer' : ["Debug distribution", "If you're a developer and want to run Chandler in debugging mode, this distribution contains debug versions of the binaries. It runs a lot slower than the end-users release. Assertions are active, the __debug__ global is set to True, and memory leaks are listed upon exit. You may a... | def main(): parser = OptionParser(usage="%prog [options] type release-num target-dir", version="%prog 2.0") (options, args) = parser.parse_args() if len(args) != 3: parser.print_help() parser.error("You must provide [M | R | C], relase number and a directory name: M 0.5.03 0_5_03") rType = args[0] release = args[1] t... | 6955a3a0fbbfe807b092e54ba3a7f4c5df5cbfb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6955a3a0fbbfe807b092e54ba3a7f4c5df5cbfb8/distIndex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
2082,
273,
18862,
12,
9167,
11613,
14654,
306,
2116,
65,
618,
3992,
17,
2107,
1018,
17,
1214,
3113,
1177,
11613,
14654,
576,
18,
20,
7923,
261,
2116,
16,
833,
13,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
2082,
273,
18862,
12,
9167,
11613,
14654,
306,
2116,
65,
618,
3992,
17,
2107,
1018,
17,
1214,
3113,
1177,
11613,
14654,
576,
18,
20,
7923,
261,
2116,
16,
833,
13,
273,
... |
self.prev_song = CommonBean() | self.prev_title = "" | def __init__(self): BaseController.__init__(self) self.player = self.playerLocal() self.songs = [] self.cIndex = 0 self.time_format = gst.Format(gst.FORMAT_TIME) self.volume = 0 self.mode = self.MODE_PLAY_LIST # TODO: rename playState() to play() and remove this hack self.play = self.playState self.pause = self.paus... | c84bbe586844c72d5c6dc85f7ab487a91305d7ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/c84bbe586844c72d5c6dc85f7ab487a91305d7ed/player_controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3360,
2933,
16186,
2738,
972,
12,
2890,
13,
365,
18,
14872,
273,
365,
18,
14872,
2042,
1435,
225,
365,
18,
816,
564,
273,
5378,
365,
18,
71,
1016,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3360,
2933,
16186,
2738,
972,
12,
2890,
13,
365,
18,
14872,
273,
365,
18,
14872,
2042,
1435,
225,
365,
18,
816,
564,
273,
5378,
365,
18,
71,
1016,
273,... |
"Anchors are drawn as a black wireframe box around each selected atom.</p>" | "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" | def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default... | c9a25d437341caa5f0c88a4ab02c54ebb7627482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c9a25d437341caa5f0c88a4ab02c54ebb7627482/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
... |
for reference in gl_object.references[::-1]: if not reference.check_target(target_object): return | for reference in gl_object.references[::-1]: if not reference.check_target(target_object): return | def replace(self, gl_object): if not gl_object.get_fixed(): state = gl_object.__getstate__() state.pop("name", None) state.pop("transformation", None) new = self.get_new(gl_object.transformation.t) | c08ac42281627da7fb656492be7e10282e1f957b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11052/c08ac42281627da7fb656492be7e10282e1f957b/sketch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
12,
2890,
16,
5118,
67,
1612,
4672,
309,
486,
5118,
67,
1612,
18,
588,
67,
12429,
13332,
919,
273,
5118,
67,
1612,
16186,
588,
2019,
972,
1435,
919,
18,
5120,
2932,
529,
3113,
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,
1453,
12,
2890,
16,
5118,
67,
1612,
4672,
309,
486,
5118,
67,
1612,
18,
588,
67,
12429,
13332,
919,
273,
5118,
67,
1612,
16186,
588,
2019,
972,
1435,
919,
18,
5120,
2932,
529,
3113,
59... |
ifp = open(ifp) | ifp = open(ifp) | def __init__(self, ifp): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
309,
84,
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,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
309,
84,
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,
... |
if __name__ == '__main__': main() | def main(): ConsoleIFace().start() | b5689c1a03356eeb35beeb678f9649fa8fd57715 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/b5689c1a03356eeb35beeb678f9649fa8fd57715/tel_console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
9657,
5501,
623,
7675,
1937,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2774,
13332,
9657,
5501,
623,
7675,
1937,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
for ev in instr.events: size = ev.start + max(ev.duration, ev.loadingLength) | for event in instr.events: size = event.start + max(event.duration, event.loadingLength) | def GetProjectLength(self): """ Returns the length of the project in seconds. """ length = 0 for instr in self.instruments: for ev in instr.events: size = ev.start + max(ev.duration, ev.loadingLength) length = max(length, size) return length | e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4109,
1782,
12,
2890,
4672,
3536,
2860,
326,
769,
434,
326,
1984,
316,
3974,
18,
3536,
769,
273,
374,
364,
16170,
316,
365,
18,
22818,
87,
30,
364,
871,
316,
16170,
18,
5989,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4109,
1782,
12,
2890,
4672,
3536,
2860,
326,
769,
434,
326,
1984,
316,
3974,
18,
3536,
769,
273,
374,
364,
16170,
316,
365,
18,
22818,
87,
30,
364,
871,
316,
16170,
18,
5989,
30,
... |
monthType = monthWidth.attrib["type"] | def extractMonth(calendarElement): data = {} for monthContext in calendarElement.findall(".//monthContext"): for monthWidth in monthContext.findall("monthWidth"): monthType = monthWidth.attrib["type"] for month in monthWidth.findall("month"): if month.attrib.has_key("alt"): continue data["cldr_month_%s_%s" % (monthType... | 073041ba3cae560b40bee3339d671b63e55792f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/073041ba3cae560b40bee3339d671b63e55792f4/cldr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
5445,
12,
11650,
1046,
4672,
501,
273,
2618,
364,
3138,
1042,
316,
5686,
1046,
18,
4720,
454,
2932,
18,
759,
7496,
1042,
6,
4672,
364,
3138,
2384,
316,
3138,
1042,
18,
4720,
454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5445,
12,
11650,
1046,
4672,
501,
273,
2618,
364,
3138,
1042,
316,
5686,
1046,
18,
4720,
454,
2932,
18,
759,
7496,
1042,
6,
4672,
364,
3138,
2384,
316,
3138,
1042,
18,
4720,
454,
... | |
session.save_or_update(pheno_entry) pheno_entry = None pheno_entry = Stock_250kDB.PhenotypeHistPlots(phenotype_method_id=phenotype_method_id) | pheno_entry = Stock_250kDB.PhenotypeHistPlots(phenotype_method_id=phenotype_method_id) else: pheno_entry = PassingData() | def savePlots(self, session, input_dir, call_method_id): """ 2009-2-17 """ files = os.listdir(input_dir) sys.stderr.write("Saving plots: %d files to be processed ...\n"%len(files)) files.sort() #in phenotype_method_id order as phenotype_method_id is the first character of each file. pheno_entry = None call_phen_entry =... | 253069bd1465558b0452098a93e49c7f321a4769 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/253069bd1465558b0452098a93e49c7f321a4769/PutPhenotypeHistAndQQPlotsIntoDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
29311,
12,
2890,
16,
1339,
16,
810,
67,
1214,
16,
745,
67,
2039,
67,
350,
4672,
3536,
4044,
29,
17,
22,
17,
4033,
3536,
1390,
273,
1140,
18,
1098,
1214,
12,
2630,
67,
1214,
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,
1923,
29311,
12,
2890,
16,
1339,
16,
810,
67,
1214,
16,
745,
67,
2039,
67,
350,
4672,
3536,
4044,
29,
17,
22,
17,
4033,
3536,
1390,
273,
1140,
18,
1098,
1214,
12,
2630,
67,
1214,
13,... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 620) else quickfix.StringField.__init__(self, 620, 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,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
3462,
13,
469,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
3462,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
def testNull(self): o = returnNull() self.assert_(o == None) | def testReturnNull(self): '''Function returns a NULL pointer to a primitive type.''' o = returnNullPrimitivePointer() self.assertEqual(o, None) | def testNull(self): o = returnNull() self.assert_(o == None) | da6117eb38e4e9a505a2b5c445551bf7ea4b89e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13343/da6117eb38e4e9a505a2b5c445551bf7ea4b89e1/return_null_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2041,
12,
2890,
4672,
320,
273,
327,
2041,
1435,
365,
18,
11231,
67,
12,
83,
422,
599,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2041,
12,
2890,
4672,
320,
273,
327,
2041,
1435,
365,
18,
11231,
67,
12,
83,
422,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
testRunner = xmlrunner.XMLTestRunner(output='test-results') | testrunner = xmlrunner.XMLTestRunner(output='test-results') | def suite(): suite = unittest.TestSuite() suite.addTest(PidmanRestClientTest("test_search_pids")) suite.addTest(PidmanRestClientTest("test_constructor")) suite.addTest(PidmanRestClientTest("test_list_domains")) suite.addTest(PidmanRestClientTest("test_create_domain")) suite.addTest(PidmanRestClientTest("test_request_do... | ab0c186ec549dbc7ce07d7561b38d7edb571a0f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/817/ab0c186ec549dbc7ce07d7561b38d7edb571a0f9/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
12478,
4728,
31870,
4709,
2932,
3813,
67,
3072,
67,
84,
2232,
6,
3719,
11371,
18,
1289,
4709,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
12478,
4728,
31870,
4709,
2932,
3813,
67,
3072,
67,
84,
2232,
6,
3719,
11371,
18,
1289,
4709,
12,
... |
error ("Expected to find only one channel installed (administrative BEEP channel 0) but found: " + conn.num_channels ()); return False; | error ("Expected to find only one channel installed (administrative BEEP channel 0) but found: " + conn.num_channels ()) return False | def test_04 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find... | 44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3028,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
261,
1769,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3028,
1832,
30,
468,
745,
358,
4046,
279,
819,
1103,
273,
331,
20873,
18,
6442,
261,
1769,
225,
468,
745,
358,
1208,
1103,
309,
486,
1103,
18,
2738,
1832,
30,
555,
7566,
2925... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.