rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
smtp = smtplib.SMTP("localhost", 9091) | smtp = smtplib.SMTP(HOST, PORT) | def testBasic(self): # connects smtp = smtplib.SMTP("localhost", 9091) smtp.sock.close() | 9847a71715dd728b74739fb8399a4650195f789d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9847a71715dd728b74739fb8399a4650195f789d/test_smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8252,
12,
2890,
4672,
468,
23441,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
13,
17660,
18,
15031,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8252,
12,
2890,
4672,
468,
23441,
17660,
273,
272,
1010,
6673,
18,
55,
14636,
12,
8908,
16,
20987,
13,
17660,
18,
15031,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
args = [] | args = ['--no_watchlists'] | def testNormal(self): change_info = gcl.ChangeInfo('naame', 0, 0, 'deescription', ['aa', 'bb']) self.mox.StubOutWithMock(change_info, 'Save') args = [] change_info.Save() gcl.DoPresubmitChecks(change_info, False, True).AndReturn(True) gcl.GetCodeReviewSetting('CODE_REVIEW_SERVER').AndReturn('my_server') gcl.tempfile.mkstemp(text=True).AndReturn((42, 'descfile')) gcl.os.write(42, change_info.description) gcl.os.close(42) gcl.GetCodeReviewSetting('CC_LIST') gcl.os.getcwd().AndReturn('somewhere') gcl.os.chdir(gcl.GetRepositoryRoot().AndReturn(None)) gcl.GenerateDiff(change_info.FileList()) gcl.upload.RealMain(['upload.py', '-y', '--server=my_server', "--description_file=descfile", "--message=deescription"], change_info.patch).AndReturn(("1", "2")) gcl.os.remove('descfile') gcl.SendToRietveld("/lint/issue%s_%s" % ('1', '2'), timeout=0.5) gcl.GetCodeReviewSetting('TRY_ON_UPLOAD').AndReturn('True') gcl.TryChange(change_info, [], swallow_exception=True) gcl.os.chdir('somewhere') self.mox.ReplayAll() | 1e26e2070bef085c5e515cc0a39c36e737e37038 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/1e26e2070bef085c5e515cc0a39c36e737e37038/gcl_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5506,
12,
2890,
4672,
2549,
67,
1376,
273,
314,
830,
18,
3043,
966,
2668,
6582,
339,
2187,
374,
16,
374,
16,
296,
323,
1389,
2187,
10228,
7598,
2187,
296,
9897,
19486,
365,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5506,
12,
2890,
4672,
2549,
67,
1376,
273,
314,
830,
18,
3043,
966,
2668,
6582,
339,
2187,
374,
16,
374,
16,
296,
323,
1389,
2187,
10228,
7598,
2187,
296,
9897,
19486,
365,
18,
8... |
message = "Login via console: /tell %s !login yourpassword" %client.name else: message = "Login via console: /tell %s !login yourpassword" %client.cid client.message(message) | message = "Login via console: /tell %s !login yourpassword" %client.name else: message = "Login via console: /tell %s !login yourpassword" %client.cid client.message(message) | def onAuth(self, client): if client.maxLevel > self.threshold and not client.isvar(self, 'loggedin'): | f333316dfbf17a78474edc67fc9e79b338b4faac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/f333316dfbf17a78474edc67fc9e79b338b4faac/login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1730,
12,
2890,
16,
1004,
4672,
309,
1004,
18,
1896,
2355,
405,
365,
18,
8699,
471,
486,
1004,
18,
291,
1401,
12,
2890,
16,
296,
19385,
267,
11,
4672,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1730,
12,
2890,
16,
1004,
4672,
309,
1004,
18,
1896,
2355,
405,
365,
18,
8699,
471,
486,
1004,
18,
291,
1401,
12,
2890,
16,
296,
19385,
267,
11,
4672,
2,
-100,
-100,
-100,
-100,
... |
pass | return | def on_char(self, event): key_code = event.GetKeyCode() if key_code == wx.WXK_RETURN: item = self.GetSelection() node = self.GetPyData(item) uri = node.uri if uri.startswith('#'): try: n = int(buffer(uri, 1)) except ValueError: pass # TODO: try to handle non-local URIs parent = wx.GetTopLevelParent(self) parent.page_no = n - 1 else: pass # TODO: try to handle non-local URIs | 811b0cd95997a7777d4cfabc112ce7e5f7a0e38f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3683/811b0cd95997a7777d4cfabc112ce7e5f7a0e38f/outline_browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3001,
12,
2890,
16,
871,
4672,
498,
67,
710,
273,
871,
18,
967,
653,
1085,
1435,
309,
498,
67,
710,
422,
7075,
18,
59,
60,
47,
67,
14033,
30,
761,
273,
365,
18,
967,
6233,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3001,
12,
2890,
16,
871,
4672,
498,
67,
710,
273,
871,
18,
967,
653,
1085,
1435,
309,
498,
67,
710,
422,
7075,
18,
59,
60,
47,
67,
14033,
30,
761,
273,
365,
18,
967,
6233,... |
out %= ('<b>' + str(nb_new_mail) + '</b>', create_html_link(weburl + '/yourmessages/', {'ln': ln}, str(total_mail), {}, | out %= ('<b>' + str(nb_new_mail) + '</b>', create_html_link(weburl + '/yourmessages/', {'ln': ln}, str(total_mail), {}, | def tmpl_account_new_mail(self, nb_new_mail=0, total_mail=0, ln=cdslang): """ display infos about inbox (used by myaccount.py) @param nb_new_mail: number of new mails @param ln: language return: html output. """ _ = gettext_set_language(ln) out = _("You have %s new messages out of %s messages") out %= ('<b>' + str(nb_new_mail) + '</b>', create_html_link(weburl + '/yourmessages/', {'ln': ln}, str(total_mail), {}, False, False)) return out + '.' | a67f9538194b020c4165a3831685fc0dff2673bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2876/a67f9538194b020c4165a3831685fc0dff2673bc/webmessage_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4631,
67,
2704,
67,
4408,
12,
2890,
16,
4264,
67,
2704,
67,
4408,
33,
20,
16,
2078,
67,
4408,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
2562,
10626,
2973,
27271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4631,
67,
2704,
67,
4408,
12,
2890,
16,
4264,
67,
2704,
67,
4408,
33,
20,
16,
2078,
67,
4408,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,
3536,
2562,
10626,
2973,
27271,
... |
filename = options.filename | def _array_get_all(a, object_cache): """ Return a 4-tuple containing all the data stored in a given array, in a format that is easy to turn into an actual dictionary. @param a: Array representing a dictionary. @param object_cache: A list of strings referenced by elements in the array. @return: A 4-tuple: (name, shortname, depend, content), in which all members are strings except depend which is a list of strings. """ name = ".".join([object_cache[i] for i in a[a[0]:a[1]]]) shortname = ".".join([object_cache[i] for i in a[a[1]:a[2]]]) content = "".join([object_cache[i] for i in a[a[3]:]]) depend = [] prefix = "" for n, d in zip(a[a[0]:a[1]], a[a[2]:a[3]]): for dep in object_cache[d].split(): depend.append(prefix + dep) prefix += object_cache[n] + "." return name, shortname, depend, content | 28d72e6d0104eee977ffcbc5eb29a27e101f38c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/28d72e6d0104eee977ffcbc5eb29a27e101f38c7/kvm_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1126,
67,
588,
67,
454,
12,
69,
16,
733,
67,
2493,
4672,
3536,
2000,
279,
1059,
17,
8052,
4191,
777,
326,
501,
4041,
316,
279,
864,
526,
16,
316,
279,
740,
716,
353,
12779,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1126,
67,
588,
67,
454,
12,
69,
16,
733,
67,
2493,
4672,
3536,
2000,
279,
1059,
17,
8052,
4191,
777,
326,
501,
4041,
316,
279,
864,
526,
16,
316,
279,
740,
716,
353,
12779,
358,... | |
self.putcmd("ehlo", name or self.local_hostname) | self.putcmd(self.ehlo_msg, name or self.local_hostname) | def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ self.esmtp_features = {} self.putcmd("ehlo", name or self.local_hostname) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # MTA's will disconnect on an ehlo. Toss an exception if # that happens -ddm if code == -1 and len(msg) == 0: self.close() raise SMTPServerDisconnected("Server not connected") self.ehlo_resp=msg if code != 250: return (code,msg) self.does_esmtp=1 #parse the ehlo response -ddm resp=self.ehlo_resp.split('\n') del resp[0] for each in resp: # To be able to communicate with as many SMTP servers as possible, # we have to take the old-style auth advertisement into account, # because: # 1) Else our SMTP feature parser gets confused. # 2) There are some servers that only advertise the auth methods we # support using the old style. auth_match = OLDSTYLE_AUTH.match(each) if auth_match: # This doesn't remove duplicates, but that's no problem self.esmtp_features["auth"] = self.esmtp_features.get("auth", "") \ + " " + auth_match.groups(0)[0] continue | 0ced6049fab7518616e649d3b1a802c684d23823 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0ced6049fab7518616e649d3b1a802c684d23823/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
353... |
if os.path.exists(p): | if os.path.isfile(p): | def getRawArticle(self, title): p = os.path.join(self.basedir, title) if os.path.exists(p): return unicode(open(p, 'rb').read(), 'utf-8') return self.db.getRawArticle(title) | e468a9d9a80e8724eb11ea22359fc636cf32e684 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/e468a9d9a80e8724eb11ea22359fc636cf32e684/overlay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
4672,
293,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
31722,
16,
2077,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
84,
4672,
327,
5252,
12,
3190,
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,
10547,
7880,
12,
2890,
16,
2077,
4672,
293,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
31722,
16,
2077,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
84,
4672,
327,
5252,
12,
3190,
12,
... |
return lib.EVP_MD_CTX_block_size(byref(self._obj)) | return { 'md5': 64, 'sha1': 64, 'sha224': 64, 'sha256': 64, 'sha384': 128, 'sha512': 128, }.get(self.name, 0) | def block_size(self): return lib.EVP_MD_CTX_block_size(byref(self._obj)) | 1d7aee4ff99ed99addc09e6836b32061f89c17c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/1d7aee4ff99ed99addc09e6836b32061f89c17c3/_hashlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
1467,
12,
2890,
4672,
327,
2561,
18,
24427,
52,
67,
6188,
67,
1268,
60,
67,
2629,
67,
1467,
12,
1637,
1734,
12,
2890,
6315,
2603,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
1467,
12,
2890,
4672,
327,
2561,
18,
24427,
52,
67,
6188,
67,
1268,
60,
67,
2629,
67,
1467,
12,
1637,
1734,
12,
2890,
6315,
2603,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
standard_libs = ['mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm', \ 'mwrank', 'gsl', cblas(), 'ntl', 'csage'] | standard_libs = ['mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm', 'curvesntl', \ 'g0nntl', 'jcntl', 'rankntl', 'gsl', cblas(), 'ntl', 'csage'] | def cblas(): if os.environ.has_key('SAGE_CBLAS'): return os.environ['SAGE_CBLAS'] elif os.path.exists('/usr/lib/libcblas.dylib') or \ os.path.exists('/usr/lib/libcblas.so'): return 'cblas' elif os.path.exists('/usr/lib/libblas.dll.a'): # untested. return 'blas' else: # This is very slow (?), but *guaranteed* to be available. return 'gslcblas' | 7063230765a75738e631b5bd157619c287a0d7f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7063230765a75738e631b5bd157619c287a0d7f7/cython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
9521,
13332,
309,
1140,
18,
28684,
18,
5332,
67,
856,
2668,
55,
2833,
67,
8876,
2534,
55,
11,
4672,
327,
1140,
18,
28684,
3292,
55,
2833,
67,
8876,
2534,
55,
3546,
1327,
1140,
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,
2875,
9521,
13332,
309,
1140,
18,
28684,
18,
5332,
67,
856,
2668,
55,
2833,
67,
8876,
2534,
55,
11,
4672,
327,
1140,
18,
28684,
3292,
55,
2833,
67,
8876,
2534,
55,
3546,
1327,
1140,
18... |
return S_OK(version) | return S_OK( version ) | def getCurrentVersion(): """ Get a string corresponding to the current version of the DIRAC package and all the installed extension packages """ import DIRAC version = 'DIRAC '+DIRAC.version extensions = gConfig.getOption('/DIRAC/Extensions',[]) for e in extensions['Value']: try: exec "import %sDIRAC" % e version = "%sDIRAC " % e + eval('%sDIRAC.version' % e) +'; '+ version except ImportError: pass except AttributeError: pass return S_OK(version) | c6ede79fb040cacb57bf55f97b259927e3788236 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c6ede79fb040cacb57bf55f97b259927e3788236/Version.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5175,
1444,
13332,
3536,
968,
279,
533,
4656,
358,
326,
783,
1177,
434,
326,
18544,
2226,
2181,
471,
777,
326,
5876,
2710,
5907,
3536,
225,
1930,
18544,
2226,
1177,
273,
296,
4537,
2226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5175,
1444,
13332,
3536,
968,
279,
533,
4656,
358,
326,
783,
1177,
434,
326,
18544,
2226,
2181,
471,
777,
326,
5876,
2710,
5907,
3536,
225,
1930,
18544,
2226,
1177,
273,
296,
4537,
2226,
... |
self.memory[name]['addresses'] = labels[name] | self.memory[name]['addresses'] = p_copy.deepcopy(labels[name]) | def __init__(self, labels=None): ''' Create an instance of the translator and init with the list of the defined labels and their rules. ''' if labels is None: labels = {} self.recIDs = [] self.recID = 0 self.recID_index = 0 self.record = None self.memory = {} pattern = address_pattern expr = re.compile(pattern) for name in labels.keys(): self.memory[name] = {} self.memory[name]['object'] = None self.memory[name]['parent'] = '' self.memory[name]['children'] = [] self.memory[name]['addresses'] = labels[name] for name in self.memory: for i in range(len(self.memory[name]['addresses'])): address = self.memory[name]['addresses'][i] match = expr.match(address) if not match: print 'Invalid address: ', name, address else: parent_name = match.group('parent') if parent_name: if not self.memory.has_key(parent_name): print CFG_BIBFORMAT_BFX_ERROR_MESSAGES['ERR_BFX_NO_SUCH_FIELD'] % (parent_name) else: self.memory[name]['parent'] = parent_name #now make parent aware of children if not name in self.memory[parent_name]['children']: self.memory[parent_name]['children'].append(name) level = self.determine_level(parent_name) self.memory[name]['addresses'][i] = self.memory[name]['addresses'][i].replace(parent_name, '/'*level) #special case 'record' self.memory['record'] = {} self.memory['record']['object'] = None self.memory['record']['parent'] = '' self.memory['record']['children'] = [] | ddaac5a9cf2e835494a7d5eeea88801877315930 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2763/ddaac5a9cf2e835494a7d5eeea88801877315930/bibformat_bfx_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3249,
33,
7036,
4672,
9163,
1788,
392,
791,
434,
326,
8333,
471,
1208,
598,
326,
666,
434,
326,
2553,
3249,
471,
3675,
2931,
18,
9163,
309,
3249,
353,
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,
1001,
2738,
972,
12,
2890,
16,
3249,
33,
7036,
4672,
9163,
1788,
392,
791,
434,
326,
8333,
471,
1208,
598,
326,
666,
434,
326,
2553,
3249,
471,
3675,
2931,
18,
9163,
309,
3249,
353,
59... |
call_null_m2m = True operator = 'in' | if operator in ['like','ilike','in','=']: call_null_m2m = False self.__exp[i] = ('id','=',0) else: call_null_m2m = True operator = 'in' | def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type) | 915f5b6db79579ac3f3c6a9d35c290b192f01ed3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/915f5b6db79579ac3f3c6a9d35c290b192f01ed3/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
6283,
12,
2232,
4672,
309,
652,
67,
2603,
422,
1014,
30,
327,
3258,
327,
365,
16186,
8837,
67,
10543,
67,
267,
12,
3353,
16,
652,
6315,
350,
21,
16,
652,
6315,
2878,
1... |
if len_nodelist != 2 and isinstance(result, GenExpr): | if len_nodelist != 2 and isinstance(result, GenExpr) \ and len(node) == 3 and node[2][0] == symbol.gen_for: | def com_call_function(self, primaryNode, nodelist): if nodelist[0] == token.RPAR: return CallFunc(primaryNode, [], lineno=extractLineNo(nodelist)) args = [] kw = 0 len_nodelist = len(nodelist) for i in range(1, len_nodelist, 2): node = nodelist[i] if node[0] == token.STAR or node[0] == token.DOUBLESTAR: break kw, result = self.com_argument(node, kw) if len_nodelist != 2 and isinstance(result, GenExpr): raise SyntaxError, 'generator expression needs parenthesis' args.append(result) else: # No broken by star arg, so skip the last one we processed. i = i + 1 if i < len_nodelist and nodelist[i][0] == token.COMMA: # need to accept an application that looks like "f(a, b,)" i = i + 1 star_node = dstar_node = None while i < len_nodelist: tok = nodelist[i] ch = nodelist[i+1] i = i + 3 if tok[0]==token.STAR: if star_node is not None: raise SyntaxError, 'already have the varargs indentifier' star_node = self.com_node(ch) elif tok[0]==token.DOUBLESTAR: if dstar_node is not None: raise SyntaxError, 'already have the kwargs indentifier' dstar_node = self.com_node(ch) else: raise SyntaxError, 'unknown node type: %s' % tok return CallFunc(primaryNode, args, star_node, dstar_node, lineno=extractLineNo(nodelist)) | ce412c97336cb098d845d7cc82905e17d5c6f253 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ce412c97336cb098d845d7cc82905e17d5c6f253/transformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
532,
67,
1991,
67,
915,
12,
2890,
16,
3354,
907,
16,
30068,
4672,
309,
30068,
63,
20,
65,
422,
1147,
18,
54,
2778,
30,
327,
3049,
2622,
12,
8258,
907,
16,
5378,
16,
7586,
33,
8004,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
532,
67,
1991,
67,
915,
12,
2890,
16,
3354,
907,
16,
30068,
4672,
309,
30068,
63,
20,
65,
422,
1147,
18,
54,
2778,
30,
327,
3049,
2622,
12,
8258,
907,
16,
5378,
16,
7586,
33,
8004,
... |
if (connection is not None) and (self._connection is not connection): | if (connection is not None) and \ (getattr(self, '_connection', None) is not connection): | def _init(self, id, connection=None, selectResults=None): assert id is not None # This function gets called only when the object is # created, unlike __init__ which would be called # anytime the object was returned from cache. self.id = id self._SO_writeLock = threading.Lock() | 28669aac41fd4760445adab995c702182ae16c6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6718/28669aac41fd4760445adab995c702182ae16c6f/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12,
2890,
16,
612,
16,
1459,
33,
7036,
16,
2027,
3447,
33,
7036,
4672,
1815,
612,
353,
486,
599,
468,
1220,
445,
5571,
2566,
1338,
1347,
326,
733,
353,
468,
2522,
16,
640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
12,
2890,
16,
612,
16,
1459,
33,
7036,
16,
2027,
3447,
33,
7036,
4672,
1815,
612,
353,
486,
599,
468,
1220,
445,
5571,
2566,
1338,
1347,
326,
733,
353,
468,
2522,
16,
640,
... |
self.set_full_selection(x, y, direction) | self._set_full_selection(x, y, direction) | def select(x, y, direction): """Select the word at (x, y, direction) in the grid.""" self.tools["clue"].settings["use_scrolling"] = False self.set_full_selection(x, y, direction) self.tools["clue"].settings["use_scrolling"] = True | a0e2580f817835eebfb69dab038a155847a764b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6427/a0e2580f817835eebfb69dab038a155847a764b4/editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
92,
16,
677,
16,
4068,
4672,
3536,
3391,
326,
2076,
622,
261,
92,
16,
677,
16,
4068,
13,
316,
326,
3068,
12123,
365,
18,
6642,
9614,
830,
344,
6,
8009,
4272,
9614,
1202,
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,
2027,
12,
92,
16,
677,
16,
4068,
4672,
3536,
3391,
326,
2076,
622,
261,
92,
16,
677,
16,
4068,
13,
316,
326,
3068,
12123,
365,
18,
6642,
9614,
830,
344,
6,
8009,
4272,
9614,
1202,
67... |
self.directories[path] = self.DirStore.append(self.directories[parent], [path.split("\\")[-1], path ] ) | self.directories[path] = self.DirStore.append(self.directories[parent], [self.decode(path.split("\\")[-1]), path ] ) | def BrowseGetDirs(self): sorted = [] for dirs in self.shares.keys(): sorted.append(dirs) sorted.sort() children = [] directory = "" self.directories = {} if sorted != []: for item in sorted: s = item.split("\\") path = '' | e0fa59031b16058b4c91fb570c5318399637c6e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/e0fa59031b16058b4c91fb570c5318399637c6e1/userbrowse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
12481,
967,
9872,
12,
2890,
4672,
3115,
273,
5378,
364,
7717,
316,
365,
18,
30720,
18,
2452,
13332,
3115,
18,
6923,
12,
8291,
13,
3115,
18,
3804,
1435,
2325,
273,
5378,
1867,
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,
605,
12481,
967,
9872,
12,
2890,
4672,
3115,
273,
5378,
364,
7717,
316,
365,
18,
30720,
18,
2452,
13332,
3115,
18,
6923,
12,
8291,
13,
3115,
18,
3804,
1435,
2325,
273,
5378,
1867,
273,
... |
ostream.close() | os.remove(path) | def test_OFS_ObjectManager__importObjectFromFile_xml(self): from OFS.DTMLMethod import DTMLMethod from OFS.Folder import Folder from OFS.XMLExportImport import exportXML | 4630a5bcfe9d964a5e40a9bb146aabf33974b639 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4630a5bcfe9d964a5e40a9bb146aabf33974b639/test_XMLExportImport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3932,
55,
67,
921,
1318,
972,
5666,
921,
13087,
67,
2902,
12,
2890,
4672,
628,
531,
4931,
18,
40,
2838,
1305,
1930,
463,
2838,
1305,
628,
531,
4931,
18,
3899,
1930,
12623,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3932,
55,
67,
921,
1318,
972,
5666,
921,
13087,
67,
2902,
12,
2890,
4672,
628,
531,
4931,
18,
40,
2838,
1305,
1930,
463,
2838,
1305,
628,
531,
4931,
18,
3899,
1930,
12623,
62... |
repr += 'EXPOSURE_TIME %f' % self._header['exposure_time'] | repr += 'EXPOSURE TIME %f\n' % self._header['exposure_time'] | def __repr__(self): if self.get_wavelength(): repr = 'SWEEP %s [WAVELENGTH %s]\n' % \ (self._name, self.get_wavelength().get_name()) else: repr = 'SWEEP %s [WAVELENGTH UNDEFINED]\n' % self._name | 2f12923c787c18882ca16449592c783d529fc6a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/2f12923c787c18882ca16449592c783d529fc6a4/XSweep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
309,
365,
18,
588,
67,
91,
16775,
13332,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
738,
87,
13944,
82,
11,
738,
521,
261,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
309,
365,
18,
588,
67,
91,
16775,
13332,
8480,
273,
296,
55,
6950,
10541,
738,
87,
306,
59,
26714,
7096,
738,
87,
13944,
82,
11,
738,
521,
261,
2890,
... |
return self._idType(value) | return cls._idType(value) | def coerceID(cls, value): if isinstance(value, cls): return value.id else: return self._idType(value) | c4a765e7ce8149c0a5fca9adad68beced46bb586 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/c4a765e7ce8149c0a5fca9adad68beced46bb586/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12270,
734,
12,
6429,
16,
460,
4672,
309,
1549,
12,
1132,
16,
2028,
4672,
327,
460,
18,
350,
469,
30,
327,
365,
6315,
350,
559,
12,
1132,
13,
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,
12270,
734,
12,
6429,
16,
460,
4672,
309,
1549,
12,
1132,
16,
2028,
4672,
327,
460,
18,
350,
469,
30,
327,
365,
6315,
350,
559,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cty.c_int, [cty.POINTER(FL_IMAGE), cty.POINTER(FLIMAGE_TEXT)], | cty.c_int, [cty.POINTER(FL_IMAGE), cty.POINTER(FLIMAGE_TEXT)], | def flimage_add_text(pImage, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11): """ flimage_add_text(pImage, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) -> num. """ retval = _flimage_add_text(pImage, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
1289,
67,
955,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
16,
293,
28,
16,
293,
29,
16,
293,
2163,
16,
293,
249... |
elif axisname=='y': | elif axisname in 'yr': | def addmask(mask,newmask): if mask is None: mask = numpy.empty(U.shape,dtype=numpy.bool) mask.fill(False) return numpy.logical_or(mask,newmask) | 271de62c2f77df529d6498975d1b72bf9e8c1d34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/271de62c2f77df529d6498975d1b72bf9e8c1d34/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4455,
12,
4455,
16,
2704,
4455,
4672,
309,
3066,
353,
599,
30,
3066,
273,
3972,
18,
5531,
12,
57,
18,
4867,
16,
8972,
33,
15974,
18,
6430,
13,
3066,
18,
5935,
12,
8381,
13,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4455,
12,
4455,
16,
2704,
4455,
4672,
309,
3066,
353,
599,
30,
3066,
273,
3972,
18,
5531,
12,
57,
18,
4867,
16,
8972,
33,
15974,
18,
6430,
13,
3066,
18,
5935,
12,
8381,
13,
327,... |
p = gst.Pad("blah", gst.PAD_SRC) | p = gst.Pad("blah", gst.PAD_SINK) | def testStructureChangeMessage(self): if hasattr(gst, 'message_new_structure_change'): p = gst.Pad("blah", gst.PAD_SRC) m = gst.message_new_structure_change(p, gst.STRUCTURE_CHANGE_TYPE_PAD_LINK, self.element, True) | b0898556bb1e2cdcfe30202e2fa2a61ce72cda83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1020/b0898556bb1e2cdcfe30202e2fa2a61ce72cda83/test_message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6999,
3043,
1079,
12,
2890,
4672,
309,
3859,
12,
75,
334,
16,
296,
2150,
67,
2704,
67,
7627,
67,
3427,
11,
4672,
293,
273,
314,
334,
18,
14878,
2932,
3083,
9795,
3113,
314,
334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6999,
3043,
1079,
12,
2890,
4672,
309,
3859,
12,
75,
334,
16,
296,
2150,
67,
2704,
67,
7627,
67,
3427,
11,
4672,
293,
273,
314,
334,
18,
14878,
2932,
3083,
9795,
3113,
314,
334,
... |
pgq.SerialConsumer.__init__(self, 'londiste', 'provider_db', 'subscriber_db', args) self.dst_schema = "londiste" | pgq.SetConsumer.__init__(self, 'londiste', args) | def __init__(self, args): pgq.SerialConsumer.__init__(self, 'londiste', 'provider_db', 'subscriber_db', args) | 3ddea7228bfafc5a18de736c1f98ba769e1d37af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14597/3ddea7228bfafc5a18de736c1f98ba769e1d37af/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
833,
4672,
7184,
85,
18,
6342,
5869,
16186,
2738,
972,
12,
2890,
16,
296,
80,
1434,
376,
73,
2187,
296,
6778,
67,
1966,
2187,
296,
26410,
67,
1966,
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,
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,
833,
4672,
7184,
85,
18,
6342,
5869,
16186,
2738,
972,
12,
2890,
16,
296,
80,
1434,
376,
73,
2187,
296,
6778,
67,
1966,
2187,
296,
26410,
67,
1966,
2187,... |
if self.classTreatment == 3: | if self.classTreatment == 3 and self.data.domain.classVar and self.data.domain.classVar.varType == orange.VarTypes.Discrete: | def sendData(self): if self.data: conzer = orange.DomainContinuizer() conzer.zeroBased = self.zeroBased conzer.continuousTreatment = self.continuousTreatment conzer.multinomialTreatment = self.multinomialTreats[self.multinomialTreatment][1] if self.classTreatment == 3: domain = conzer(self.data, 0, self.targetValue) else: conzer.classTreatment = self.classTreats[self.classTreatment][1] domain = conzer(self.data) data = orange.ExampleTable(domain, self.data) self.send("Classified Examples", data) self.dataChanged = False | 04cbf439d12d5d7af73d3d52e1636eb90c5309d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/04cbf439d12d5d7af73d3d52e1636eb90c5309d3/OWContinuize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
751,
12,
2890,
4672,
309,
365,
18,
892,
30,
356,
24355,
273,
578,
726,
18,
3748,
660,
6860,
1824,
1435,
356,
24355,
18,
7124,
9802,
273,
365,
18,
7124,
9802,
356,
24355,
18,
3105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
751,
12,
2890,
4672,
309,
365,
18,
892,
30,
356,
24355,
273,
578,
726,
18,
3748,
660,
6860,
1824,
1435,
356,
24355,
18,
7124,
9802,
273,
365,
18,
7124,
9802,
356,
24355,
18,
3105... |
para = paragraph_stream(stream, 'p', {}, parameters.getSampleStyleSheet()) | para = paragraph_stream(stream, 'p', {}, parameters) | def test_formatting(self): parameters = Param() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, parameters.getSampleStyleSheet()) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>') | e3c78fc65729ed0a33412c3127995be39d356e50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/e3c78fc65729ed0a33412c3127995be39d356e50/test_rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
1472,
273,
3014,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
1787,
12,
2890,
4672,
1472,
273,
3014,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
... |
try: state = self._do_next() except self.CommandMessage: | state = iterator.next() if isinstance(state, self.CommandMessage): | def _do_control(self, *args, **kargs): with self.running: self.threadid = thread.get_ident() | 243d70ac3a0626799c7d7ac16a74196bb9551e92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/243d70ac3a0626799c7d7ac16a74196bb9551e92/automaton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
7098,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
598,
365,
18,
8704,
30,
365,
18,
5930,
350,
273,
2650,
18,
588,
67,
6392,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
7098,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
598,
365,
18,
8704,
30,
365,
18,
5930,
350,
273,
2650,
18,
588,
67,
6392,
1435,
2,
-100,
-100,
-100,
-100,
-10... |
tmp_keys = keys.copy() | tmp_keys = copy.deepcopy(keys) | def check_keybinding_conflicts(keys): """ check for conflicting keybindings. we have to check twice, because keys for setting picks and magnitudes are allowed to interfere... """ for ignored_key_list in [['setMagMin', 'setMagMax', 'delMagMinMax'], ['setPick', 'setPickError', 'delPick']]: tmp_keys = keys.copy() tmp_keys2 = {} for ignored_key in ignored_key_list: tmp_keys.pop(ignored_key) while tmp_keys: key, item = tmp_keys.popitem() if isinstance(item, dict): while item: k, v = item.popitem() tmp_keys2["_".join([key, str(v)])] = k else: tmp_keys2[key] = item if len(set(tmp_keys2.keys())) != len(set(tmp_keys2.values())): err = "Interfering keybindings. Please check variable KEYS" raise Exception(err) | b72086f0f933ddd2b1def59c702dcd322b918392 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b72086f0f933ddd2b1def59c702dcd322b918392/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
856,
7374,
67,
20340,
87,
12,
2452,
4672,
3536,
866,
364,
21462,
498,
15863,
18,
732,
1240,
358,
866,
13605,
16,
2724,
1311,
364,
3637,
6002,
87,
471,
28160,
24751,
854,
2935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
856,
7374,
67,
20340,
87,
12,
2452,
4672,
3536,
866,
364,
21462,
498,
15863,
18,
732,
1240,
358,
866,
13605,
16,
2724,
1311,
364,
3637,
6002,
87,
471,
28160,
24751,
854,
2935,
... |
self.fileList.SetColumnWidth(1, wx.LIST_AUTOSIZE) self.fileList.SetColumnWidth(0, self.fileList.GetClientSize()[0]-self.fileList.GetColumnWidth(1)-15) self.fileList.ScrollList(-100, 0) | size = self.fileList.GetClientSize() if size[0] > 50 and size[1] > 50: self.fileList.SetColumnWidth(1, wx.LIST_AUTOSIZE) self.fileList.SetColumnWidth(0, self.fileList.GetClientSize()[0]-self.fileList.GetColumnWidth(1)-15) self.fileList.ScrollList(-100, 0) | def onListResize(self, event): self.fileList.SetColumnWidth(1, wx.LIST_AUTOSIZE) self.fileList.SetColumnWidth(0, self.fileList.GetClientSize()[0]-self.fileList.GetColumnWidth(1)-15) self.fileList.ScrollList(-100, 0) # Removes HSCROLLBAR if event: event.Skip() | e29f232f8f59fe410716e6d7a09b9fb08d7e8938 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/e29f232f8f59fe410716e6d7a09b9fb08d7e8938/ContentFrontPanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
682,
12182,
12,
2890,
16,
871,
4672,
963,
273,
365,
18,
768,
682,
18,
967,
1227,
1225,
1435,
309,
963,
63,
20,
65,
405,
6437,
471,
963,
63,
21,
65,
405,
6437,
30,
365,
18,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
682,
12182,
12,
2890,
16,
871,
4672,
963,
273,
365,
18,
768,
682,
18,
967,
1227,
1225,
1435,
309,
963,
63,
20,
65,
405,
6437,
471,
963,
63,
21,
65,
405,
6437,
30,
365,
18,
768... |
self.req.connect("task-added", self.on_task_added) self.req.connect("task-deleted", self.on_task_deleted) | def _init_signal_connections(self): SIGNAL_CONNECTIONS_DIC = { "on_add_task": self.on_add_task, "on_edit_active_task": self.on_edit_active_task, "on_edit_done_task": self.on_edit_done_task, "on_delete_task": self.on_delete_tasks, "on_add_new_tag": self.on_add_new_tag, "on_mark_as_done": self.on_mark_as_done, "on_mark_as_started": self.on_mark_as_started, "on_schedule_for_tomorrow": self.on_schedule_for_tomorrow, "on_schedule_for_next_week": self.on_schedule_for_next_week, "on_schedule_for_next_month": self.on_schedule_for_next_month, "on_schedule_for_next_year": self.on_schedule_for_next_year, "on_dismiss_task": self.on_dismiss_task, "on_move": self.on_move, "on_size_allocate": self.on_size_allocate, "gtk_main_quit": self.on_close, "on_addtag_confirm": self.on_addtag_confirm, "on_addtag_cancel": lambda x: x.hide, "on_tag_entry_key_press_event": self.on_tag_entry_key_press_event, "on_add_subtask": self.on_add_subtask, "on_colorchooser_activate": self.on_colorchooser_activate, "on_resetcolor_activate": self.on_resetcolor_activate, "on_tagcontext_deactivate": self.on_tagcontext_deactivate, "on_workview_toggled": self.on_workview_toggled, "on_view_workview_toggled": self.on_workview_toggled, "on_view_closed_toggled": self.on_closed_toggled, "on_view_sidebar_toggled": self.on_sidebar_toggled, "on_bg_color_toggled": self.on_bg_color_toggled, "on_quickadd_field_activate": self.on_quickadd_activate, "on_quickadd_button_activate": self.on_quickadd_activate, "on_view_quickadd_toggled": self.on_toggle_quickadd, "on_view_toolbar_toggled": self.on_toolbar_toggled, "on_about_clicked": self.on_about_clicked, "on_about_delete": self.on_about_close, "on_about_close": self.on_about_close, "on_documentation_clicked": self.on_documentation_clicked, "on_nonworkviewtag_toggled": self.on_nonworkviewtag_toggled, "on_preferences_activate": self.open_preferences, "on_edit_backends_activate": self.open_edit_backends, } self.builder.connect_signals(SIGNAL_CONNECTIONS_DIC) | 1bfa329f61ae82d2af78d8ff0bc35dc1017cd07d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/1bfa329f61ae82d2af78d8ff0bc35dc1017cd07d/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
10420,
67,
13313,
12,
2890,
4672,
12057,
1013,
67,
15461,
55,
67,
2565,
39,
273,
288,
315,
265,
67,
1289,
67,
4146,
6877,
365,
18,
265,
67,
1289,
67,
4146,
16,
315,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
10420,
67,
13313,
12,
2890,
4672,
12057,
1013,
67,
15461,
55,
67,
2565,
39,
273,
288,
315,
265,
67,
1289,
67,
4146,
6877,
365,
18,
265,
67,
1289,
67,
4146,
16,
315,
26... | |
return int(commands.getoutput(cmd)) / 2 | return int(commands.getoutput(cmd)) | def get_vfs_count(self): """ Get VFs count number according to lspci. """ cmd = "lspci | grep 'Virtual Function' | wc -l" # For each VF we'll see 2 prints of 'Virtual Function', so let's # divide the result per 2 return int(commands.getoutput(cmd)) / 2 | f48d661c8572856109c36ae8c58b469c150a19a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/f48d661c8572856109c36ae8c58b469c150a19a6/kvm_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
90,
2556,
67,
1883,
12,
2890,
4672,
3536,
968,
776,
12432,
1056,
1300,
4888,
358,
328,
1752,
8450,
18,
3536,
1797,
273,
315,
80,
1752,
8450,
571,
23366,
296,
6466,
4284,
11,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
90,
2556,
67,
1883,
12,
2890,
4672,
3536,
968,
776,
12432,
1056,
1300,
4888,
358,
328,
1752,
8450,
18,
3536,
1797,
273,
315,
80,
1752,
8450,
571,
23366,
296,
6466,
4284,
11,
5... |
print "Command: %s" % EscapeCommand(output.command) | def HasRun(self, output): if output.UnexpectedOutput(): self.ClearLine(self.last_status_length) self.PrintFailureHeader(output.test) print "Command: %s" % EscapeCommand(output.command) stdout = output.output.stdout.strip() if len(stdout): print self.templates['stdout'] % stdout stderr = output.output.stderr.strip() if len(stderr): print self.templates['stderr'] % stderr | 839d4f6200ccca94501a3fb96cabfbcd4e29d63a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6651/839d4f6200ccca94501a3fb96cabfbcd4e29d63a/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4393,
1997,
12,
2890,
16,
876,
4672,
309,
876,
18,
7762,
1447,
13332,
365,
18,
9094,
1670,
12,
2890,
18,
2722,
67,
2327,
67,
2469,
13,
365,
18,
5108,
5247,
1864,
12,
2844,
18,
3813,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4393,
1997,
12,
2890,
16,
876,
4672,
309,
876,
18,
7762,
1447,
13332,
365,
18,
9094,
1670,
12,
2890,
18,
2722,
67,
2327,
67,
2469,
13,
365,
18,
5108,
5247,
1864,
12,
2844,
18,
3813,
... | |
dstfinfo = dstfss.GetFInfo() dstfinfo.Flags = dstfinfo.Flags|0x8000 dstfss.SetFInfo(dstfinfo) def main(): dir, ok = macfs.GetDirectory() if not ok: sys.exit(0) os.chdir(dir.as_pathname()) | if __name__ == '__main__': run(1) | def mkalias(src, dst): """Create a finder alias""" srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) alias = srcfss.NewAlias() srcfinfo = srcfss.GetFInfo() Res.FSpCreateResFile(dstfss, srcfinfo.Creator, srcfinfo.Type, -1) h = Res.FSpOpenResFile(dstfss, 3) resource = Res.Resource(alias.data) resource.AddResource('alis', 0, '') Res.CloseResFile(h) dstfinfo = dstfss.GetFInfo() dstfinfo.Flags = dstfinfo.Flags|0x8000 # Alias flag dstfss.SetFInfo(dstfinfo) | d8eb8a79456555385185782df350c39233104341 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d8eb8a79456555385185782df350c39233104341/fixfiletypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
4930,
12,
4816,
16,
3046,
4672,
3536,
1684,
279,
7532,
2308,
8395,
1705,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
4816,
13,
3046,
74,
1049,
273,
5318,
2556,
18,
42,
1260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
4930,
12,
4816,
16,
3046,
4672,
3536,
1684,
279,
7532,
2308,
8395,
1705,
74,
1049,
273,
5318,
2556,
18,
42,
1260,
705,
12,
4816,
13,
3046,
74,
1049,
273,
5318,
2556,
18,
42,
1260... |
return None | return [] | def searchIP(text): """ Search if an IP address if directly available and return it. """ match = re.findall("(?:\d{1,3}\.){3}\d{1,3}", text) if match: return match else: return None | 8312439b4df870685d3e7b1f2c140b8dd54be72e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/8312439b4df870685d3e7b1f2c140b8dd54be72e/dns.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2579,
12,
955,
4672,
3536,
5167,
309,
392,
2971,
1758,
309,
5122,
2319,
471,
327,
518,
18,
3536,
845,
273,
283,
18,
4720,
454,
2932,
15599,
72,
95,
21,
16,
23,
97,
5834,
15329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2579,
12,
955,
4672,
3536,
5167,
309,
392,
2971,
1758,
309,
5122,
2319,
471,
327,
518,
18,
3536,
845,
273,
283,
18,
4720,
454,
2932,
15599,
72,
95,
21,
16,
23,
97,
5834,
15329,
... |
Note: For non-quadratic number fields, this code does return, but it takes a long time. | For non-quadratic number fields, this code does return, but it takes a long time. | def gens(self,verbose=0, lim1=5, lim3=50, limtriv=10, maxprob=20, limbigprime=30): r""" Returns some generators of this elliptic curve. Check rank or rank_bound to verify the number of generators. | 48d8e4e8bbeb4502f0f90ffd33c0a8a99a8e320d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/48d8e4e8bbeb4502f0f90ffd33c0a8a99a8e320d/ell_number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
5082,
4672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
5082,
4672... |
return FieldDescriptions( | return self.__class__( | def main(self): return FieldDescriptions( [(fn, ft) for fn, ft in self._config if not hasattr(ft, 'store')]) | fc60ff2f59c9508ad060fb83cedf14dc97ebed09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/fc60ff2f59c9508ad060fb83cedf14dc97ebed09/qFieldTypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
327,
365,
16186,
1106,
972,
12,
306,
12,
4293,
16,
11038,
13,
364,
2295,
16,
11038,
316,
365,
6315,
1425,
309,
486,
3859,
12,
1222,
16,
296,
2233,
6134,
5717,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
327,
365,
16186,
1106,
972,
12,
306,
12,
4293,
16,
11038,
13,
364,
2295,
16,
11038,
316,
365,
6315,
1425,
309,
486,
3859,
12,
1222,
16,
296,
2233,
6134,
5717,
2,
... |
if ((lot.obj_price==0) and (lot.state=='draft')): | if ((lot.obj_price==0) and (lot.state=='draft')): | def _buyerprice(self, cr, uid, ids, name, args, context): res={} lots=self.pool.get('auction.lots').browse(cr,uid,ids) pt_tax=self.pool.get('account.tax') for lot in lots: amount_total=0.0 if ((lot.obj_price==0) and (lot.state=='draft')): montant=lot.lot_est1 else: montant=lot.obj_price taxes = [] if lot.author_right: taxes.append(lot.author_right) if lot.auction_id: taxes += lot.auction_id.buyer_costs tax=pt_tax.compute(cr,uid,taxes,montant,1) for t in tax: amount_total+=t['amount'] amount_total += montant res[lot.id] = amount_total return res | 83af9d311c1190113a797464e4f3eac921eb3569 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7339/83af9d311c1190113a797464e4f3eac921eb3569/auction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
70,
16213,
8694,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
400,
12938,
328,
6968,
33,
2890,
18,
6011,
18,
588,
2668,
69,
4062,
18,
80,
6968,
16063... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
16213,
8694,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
4672,
400,
12938,
328,
6968,
33,
2890,
18,
6011,
18,
588,
2668,
69,
4062,
18,
80,
6968,
16063... |
("Dutch", "Dutch"), ("Englisch English", "English"), | ("Dutch dut ndl", "Dutch"), ("Englisch English eng", "English"), | def updateDemuxSize(el): enigma.setDemuxSize(int(el.value)) print "[SETTING] getDemuxSize=", enigma.getDemuxSize() | 108f1d657fd403d75206c7a59b02965e4c97e6c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/108f1d657fd403d75206c7a59b02965e4c97e6c2/UsageConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
15058,
2616,
1225,
12,
292,
4672,
570,
17288,
18,
542,
15058,
2616,
1225,
12,
474,
12,
292,
18,
1132,
3719,
1172,
5158,
1090,
12239,
65,
2343,
351,
2616,
1225,
1546,
16,
570,
17288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
15058,
2616,
1225,
12,
292,
4672,
570,
17288,
18,
542,
15058,
2616,
1225,
12,
474,
12,
292,
18,
1132,
3719,
1172,
5158,
1090,
12239,
65,
2343,
351,
2616,
1225,
1546,
16,
570,
17288... |
runsphinx(src, builder, confoverrides) | os.mkdir(_outdir) | def test(): src = '\n'.join(l[4:] for l in func.__doc__.splitlines()[2:]) runsphinx(src, builder, confoverrides) try: func() finally: os.unlink(os.path.join(_srcdir, 'index.rst')) | 4cc8717afa98e403a7e1013a75fafd3253c4787f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9227/4cc8717afa98e403a7e1013a75fafd3253c4787f/test_functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
1705,
273,
2337,
82,
10332,
5701,
12,
80,
63,
24,
26894,
364,
328,
316,
1326,
16186,
2434,
25648,
4939,
3548,
1435,
63,
22,
30,
5717,
1140,
18,
26686,
24899,
659,
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,
1842,
13332,
1705,
273,
2337,
82,
10332,
5701,
12,
80,
63,
24,
26894,
364,
328,
316,
1326,
16186,
2434,
25648,
4939,
3548,
1435,
63,
22,
30,
5717,
1140,
18,
26686,
24899,
659,
1214,
13,
... |
self.append(TOC(href=href, fragment=fragment, text=text, parent=self, base_path=self.base_path)) | play_order = (self[-1].play_order if len(self) else self.play_order) + 1 self.append(TOC(href=href, fragment=fragment, text=text, parent=self, base_path=self.base_path, play_order=play_order)) | def add_item(self, href, fragment, text): self.append(TOC(href=href, fragment=fragment, text=text, parent=self, base_path=self.base_path)) return self[-1] | 6cea84a15f0bd708d0cdd6f3bb4e1dbe754344fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/6cea84a15f0bd708d0cdd6f3bb4e1dbe754344fe/toc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
3897,
16,
5481,
16,
977,
4672,
6599,
67,
1019,
273,
261,
2890,
18919,
21,
8009,
1601,
67,
1019,
309,
562,
12,
2890,
13,
469,
365,
18,
1601,
67,
1019,
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,
527,
67,
1726,
12,
2890,
16,
3897,
16,
5481,
16,
977,
4672,
6599,
67,
1019,
273,
261,
2890,
18919,
21,
8009,
1601,
67,
1019,
309,
562,
12,
2890,
13,
469,
365,
18,
1601,
67,
1019,
13,... |
print a, k | print a, sortdict(k) | def f(*a, **k): print a, k | 08dabf0a7374540637ee637f1b37b8d3cf96d9bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/08dabf0a7374540637ee637f1b37b8d3cf96d9bf/test_extcall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
30857,
69,
16,
2826,
79,
4672,
1172,
279,
16,
1524,
1576,
12,
79,
13,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
30857,
69,
16,
2826,
79,
4672,
1172,
279,
16,
1524,
1576,
12,
79,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.some_problem == True: | if brackets == True and license_found != None: brackets = False return True elif self.some_problem == True: | def checkStep(self): # nothing = Defining an empty image description nothing = ['', ' ', ' ', ' ', '\n', '\n ', '\n ', '\n\n', '\n \n', ' \n', ' \n ', ' \n \n'] # something = Minimal requirements for an image description. # If this fits, no tagging will take place (if there aren't other issues) # MIT license is ok on italian wikipedia, let also this here something = ['{{'] # Don't put "}}" here, please. Useless and can give problems. # Unused file extensions. Does not contain PDF. notallowed = ("xcf", "xls", "sxw", "sxi", "sxc", "sxd") brackets = False delete = False extension = self.imageName.split('.')[-1] # get the extension from the image's name # Load the notification messages HiddenTN = wikipedia.translate(self.site, HiddenTemplateNotification) unvertext = wikipedia.translate(self.site, n_txt) di = wikipedia.translate(self.site, delete_immediately) dih = wikipedia.translate(self.site, delete_immediately_head) din = wikipedia.translate(self.site, delete_immediately_notification) nh = wikipedia.translate(self.site, nothing_head) nn = wikipedia.translate(self.site, nothing_notification) dels = wikipedia.translate(self.site, del_comm) smwl = wikipedia.translate(self.site, second_message_without_license) | d8ca76ad9193119d7b21ee2d0156002355bc4032 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/d8ca76ad9193119d7b21ee2d0156002355bc4032/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4160,
12,
2890,
4672,
468,
5083,
273,
18003,
310,
392,
1008,
1316,
2477,
5083,
273,
10228,
2187,
296,
2265,
296,
225,
2265,
296,
282,
2265,
2337,
82,
2187,
2337,
82,
2265,
2337,
82,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4160,
12,
2890,
4672,
468,
5083,
273,
18003,
310,
392,
1008,
1316,
2477,
5083,
273,
10228,
2187,
296,
2265,
296,
225,
2265,
296,
282,
2265,
2337,
82,
2187,
2337,
82,
2265,
2337,
82,... |
ListStore.__init__(self, str, bool, str, str, str) | ListStore.__init__(self, str, str, str, str, str) | def __init__(self, packages, repo, node): | 8d887e6509e2d71a2f13e91bd822bc9a5fc668ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2654/8d887e6509e2d71a2f13e91bd822bc9a5fc668ca/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5907,
16,
3538,
16,
756,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5907,
16,
3538,
16,
756,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
global parser | global parser, err | def create_records(xmltext, verbose=CFG_BIBRECORD_DEFAULT_VERBOSE_LEVEL, correct=CFG_BIBRECORD_DEFAULT_CORRECT): """ Create list of record from XMLTEXT. Return a list of objects initiated by create_record() function; please see that function's docstring. """ global parser err = [] if parser == -1: err.append((6, "import error")) else: pat = r"<record.*?>.*?</record>" p = re.compile(pat, re.DOTALL) # DOTALL - to ignore whitespaces alist = p.findall(xmltext) listofrec = map((lambda x:create_record(x, verbose, correct)), alist) return listofrec return [] | 2119bd69b614d8b9075462a4ab7baae5364a9144 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/2119bd69b614d8b9075462a4ab7baae5364a9144/bibrecord.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
7094,
12,
2902,
955,
16,
3988,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
21900,
67,
10398,
16,
3434,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
9428,
4512,
4672,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
7094,
12,
2902,
955,
16,
3988,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
21900,
67,
10398,
16,
3434,
33,
19727,
67,
38,
13450,
22261,
67,
5280,
67,
9428,
4512,
4672,
3536... |
tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] | try: tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] except: tp = a[1] | def get_ui(self): t = UI.DataTable() t.append(UI.DataTableRow(UI.Label(text='Name'), UI.Label(text='Type'), UI.Label(text='Value'), UI.Label(), header=True)) for a in self.cfg.acls: tp = filter(lambda x: x[1] == a[1], self.acl_types)[0][0] t.append( UI.DataTableRow( UI.Label(text=a[0]), UI.Label(text=tp), UI.Label(text=a[2]), UI.DataTableCell( UI.HContainer( UI.MiniButton(text='Edit', id='edit_acl/' + a[0]), UI.MiniButton(text='Delete', id='del_acl/' + a[0] + '/' + a[1] + '/' + a[2]) ), hidden=True ) ) ) vc = UI.VContainer(t, UI.HContainer( UI.Button(text='Add', id='add_acl'), UI.Button(text='Shuffle', id='shuffle_acls') ) ) | 011ae0ff7ba797e47166a234b08bfb0ae1501b97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/011ae0ff7ba797e47166a234b08bfb0ae1501b97/ui_acls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
12,
2890,
4672,
268,
273,
6484,
18,
21237,
1435,
268,
18,
6923,
12,
5370,
18,
21237,
1999,
12,
5370,
18,
2224,
12,
955,
2218,
461,
19899,
6484,
18,
2224,
12,
955,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
12,
2890,
4672,
268,
273,
6484,
18,
21237,
1435,
268,
18,
6923,
12,
5370,
18,
21237,
1999,
12,
5370,
18,
2224,
12,
955,
2218,
461,
19899,
6484,
18,
2224,
12,
955,
2218,
... |
def __init__(self, title=None, text=None, bulleted_list=None, binary=None, binary_type=None, binary_subtype=None, binary_alttext=None, application=None, formatted_content=None): if binary: assert (binary_type and binary_subtype and binary_alttext), "Type, subtype and alttext are required for binary alements" self.title = title self.text = text self.bulleted_list = bulleted_list self.binary = binary self.binary_type = binary_type self.binary_subtype = binary_subtype self.binary_alttext = binary_alttext self.application = application self.formatted_content = formatted_content def get_title_xml(self): if self.title is None: return '' else: return "<Title>%s</Title>" % self.title def get_text_xml(self): if self.text is None: return '' else: return "<Text>%s</Text>" % self.text def get_bulleted_list_xml(self): if self.bulleted_list is None: return '' elif type(self.bulleted_list) is list: return "<List>%s</List>" % self.get_bulleted_list_items_xml() else: raise ValueError("QuestionContent bulleted_list argument should be a list.") def get_bulleted_list_items_xml(self): ret = "" for item in self.bulleted_list: ret = ret + "<ListItem>%s</ListItem>" % item return ret def get_binary_xml(self): if self.binary is None: return '' else: return """ <Binary> <MimeType> <Type>%s</Type> <SubType>%s</SubType> </MimeType> <DataURL>%s</DataURL> <AltText>%s</AltText> </Binary>""" %(self.binary_type, self.binary_subtype, self.binary, self.binary_alttext ) def get_application_xml(self): if self.application is None: return '' else: raise NotImplementedError("Application question content is not yet supported.") def get_formatted_content_xml(self): if self.formatted_content is None: return '' else: return "<FormattedContent><![CDATA[%s]]></FormattedContent>" % self.formatted_content def get_as_xml(self): children = self.get_title_xml() + self.get_text_xml() + self.get_bulleted_list_xml() + self.get_binary_xml() + self.get_application_xml() + self.get_formatted_content_xml() return "<QuestionContent>%s</QuestionContent>" % children | QUESTIONCONTENT_XML_TEMPLATE = """<QuestionContent>%s</QuestionContent>""" def __init__(self): self.ordered_content = OrderedContent() def append(self, field, value): self.ordered_content.append(field,value) def get_as_xml(self): ret = QuestionContent.QUESTIONCONTENT_XML_TEMPLATE % (self.ordered_content.get_as_xml()) return ret | #def endElement(self, name, value, connection): | b1333c9dddc515d4d95e6ce0bb217398b2d9d127 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/b1333c9dddc515d4d95e6ce0bb217398b2d9d127/question.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
14840,
12,
2890,
16,
508,
16,
460,
16,
1459,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
14840,
12,
2890,
16,
508,
16,
460,
16,
1459,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
game.join("player %i"%i) | p = game.join("player %i"%i) players.append ( p ) for p in players: p.set_ready() | def game_for(num_players): server = Server() game = server.create_game("the game") for i in range(num_players): game.join("player %i"%i) return game | c5f784369099e34d9475c9f21c59de6626e5e1f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4392/c5f784369099e34d9475c9f21c59de6626e5e1f1/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7920,
67,
1884,
12,
2107,
67,
1601,
414,
4672,
1438,
273,
3224,
1435,
7920,
273,
1438,
18,
2640,
67,
13957,
2932,
5787,
7920,
7923,
364,
277,
316,
1048,
12,
2107,
67,
1601,
414,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7920,
67,
1884,
12,
2107,
67,
1601,
414,
4672,
1438,
273,
3224,
1435,
7920,
273,
1438,
18,
2640,
67,
13957,
2932,
5787,
7920,
7923,
364,
277,
316,
1048,
12,
2107,
67,
1601,
414,
4672,
... |
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. | def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. | def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- if False, each edge is a tuple (u,v) of vertices. EXAMPLES: sage: graphs.DodecahedralGraph().edges() [(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, None), (2, 3, None), (2, 6, None), (3, 19, None), (3, 4, None), (4, 17, None), (4, 5, None), (5, 6, None), (5, 15, None), (6, 7, None), (7, 8, None), (7, 14, None), (8, 9, None), (9, 10, None), (9, 13, None), (10, 11, None), (11, 12, None), (11, 18, None), (12, 16, None), (12, 13, None), (13, 14, None), (14, 15, None), (15, 16, None), (16, 17, None), (17, 18, None), (18, 19, None)] sage: graphs.DodecahedralGraph().edges(labels=False) [(0, 1), (0, 10), (0, 19), (1, 8), (1, 2), (2, 3), (2, 6), (3, 19), (3, 4), (4, 17), (4, 5), (5, 6), (5, 15), (6, 7), (7, 8), (7, 14), (8, 9), (9, 10), (9, 13), (10, 11), (11, 12), (11, 18), (12, 16), (12, 13), (13, 14), (14, 15), (15, 16), (16, 17), (17, 18), (18, 19)] | a93c6f591f8298acfe9c0ed6cb3f79020ee76927 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a93c6f591f8298acfe9c0ed6cb3f79020ee76927/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,... |
raise ValueError, '%s has no node %s'%(link_class, value) | raise IndexError, '%s has no node %s'%(link_class, value) | def create(self, **propvalues): """Create a new node of this class and return its id. | f585d0fd8b97406c94bbd0235dd528198f965caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f585d0fd8b97406c94bbd0235dd528198f965caf/hyperdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
2826,
5986,
2372,
4672,
3536,
1684,
279,
394,
756,
434,
333,
667,
471,
327,
2097,
612,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
2826,
5986,
2372,
4672,
3536,
1684,
279,
394,
756,
434,
333,
667,
471,
327,
2097,
612,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
result = N.zeros( self.lenResidues(), 'i' ) | result = N.zeros( self.lenResidues(), N.Int ) | def atom2resMask( self, atomMask ): """ Mask (0) residues for which all atoms are masked (0) in atomMask. | 5b8e39f937697f6c28699f4873886fbcfc130583 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/5b8e39f937697f6c28699f4873886fbcfc130583/PDBModel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
22,
455,
5796,
12,
365,
16,
3179,
5796,
262,
30,
3536,
16698,
261,
20,
13,
25435,
364,
1492,
777,
9006,
854,
13196,
261,
20,
13,
316,
3179,
5796,
18,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3179,
22,
455,
5796,
12,
365,
16,
3179,
5796,
262,
30,
3536,
16698,
261,
20,
13,
25435,
364,
1492,
777,
9006,
854,
13196,
261,
20,
13,
316,
3179,
5796,
18,
2,
-100,
-100,
-100,
-100,
... |
logging.debug(_('OpenID: handle associate continuation')) | logging.debug('OpenID: handle associate continuation') | def _handle_continuation(self, request): _ = request.getText oidstage = request.values.get('oidstage') if oidstage == '1': logging.debug(_('OpenID: handle verify continuation')) return self._handle_verify_continuation(request) elif oidstage == '2': logging.debug(_('OpenID: handle name continuation')) return self._handle_name_continuation(request) elif oidstage == '3': logging.debug(_('OpenID: handle associate continuation')) return self._handle_associate_continuation(request) logging.debug(_('OpenID: unknown continuation stage')) return CancelLogin(_('OpenID error: unknown continuation stage')) | a7f353b82132401fdd2f67ff3b4e5b91e00f6058 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/a7f353b82132401fdd2f67ff3b4e5b91e00f6058/openidrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
1213,
23946,
12,
2890,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
7764,
12869,
273,
590,
18,
2372,
18,
588,
2668,
839,
12869,
6134,
309,
7764,
12869,
422,
296,
21,
427... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
1213,
23946,
12,
2890,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
7764,
12869,
273,
590,
18,
2372,
18,
588,
2668,
839,
12869,
6134,
309,
7764,
12869,
422,
296,
21,
427... |
flattend = content | flat = content | def _setUpElements(self): """This method ONLY sets up the instance attributes. Dependency instance attribute: mgContent -- expected to be either a complex definition with model group content, a model group, or model group content. TODO: should only support the first two. """ | 5a63ff860ff4ca34a4be7e3546b2601faf89cfd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5a63ff860ff4ca34a4be7e3546b2601faf89cfd7/containers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1211,
3471,
12,
2890,
4672,
3536,
2503,
707,
20747,
1678,
731,
326,
791,
1677,
18,
11993,
791,
1566,
30,
11174,
1350,
1493,
2665,
358,
506,
3344,
279,
7233,
2379,
598,
938,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1211,
3471,
12,
2890,
4672,
3536,
2503,
707,
20747,
1678,
731,
326,
791,
1677,
18,
11993,
791,
1566,
30,
11174,
1350,
1493,
2665,
358,
506,
3344,
279,
7233,
2379,
598,
938,
104... |
e.text = str(resource[key]) | e.text = ustr(resource[key]) | def parameter(self, dico, resource): """ Convert value to a parameter for SOAP query | 226dec90a6bed336497acd4a0c8658009675877a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6641/226dec90a6bed336497acd4a0c8658009675877a/report_soap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1569,
12,
2890,
16,
302,
10764,
16,
1058,
4672,
3536,
4037,
460,
358,
279,
1569,
364,
16434,
843,
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,
1569,
12,
2890,
16,
302,
10764,
16,
1058,
4672,
3536,
4037,
460,
358,
279,
1569,
364,
16434,
843,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
resp = self.shortcmd("XPATH " + id) if resp[:3] != '223': | resp = self.shortcmd('XPATH {0}'.format(id)) if not resp.startswith(b'223'): | def xpath(self,id): """Process an XPATH command (optional server extension) Arguments: - id: Message id of article Returns: resp: server response if successful path: directory path to article""" | 9bd2973908ef080e31fd8a2b44c929188a135cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9bd2973908ef080e31fd8a2b44c929188a135cb0/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6748,
12,
2890,
16,
350,
4672,
3536,
2227,
392,
1139,
4211,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
612,
30,
2350,
612,
434,
7559,
2860,
30,
1718,
30,
1438,
766,
309,
6873,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6748,
12,
2890,
16,
350,
4672,
3536,
2227,
392,
1139,
4211,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
612,
30,
2350,
612,
434,
7559,
2860,
30,
1718,
30,
1438,
766,
309,
6873,
5... |
class AbsenceFrame(wxFrame): | class AbsenceFrame(wxDialog): | def OnOk(self, event): """Verify that all data is entered before closing the dialog.""" rollcall = [] for (entry, present_btn) in self.items: if entry.presence is Unchanged: present_btn.SetFocus() wxBell() return show_resolved = not entry.item.present and entry.presence == True if show_resolved and entry.resolved is Unchanged: wxBell() self.moreInfoDlg(entry) if not entry.presence: entry.resolved = Unchanged rollcall.append(entry) try: self.client.submitRollCall(self.group_path, rollcall) except SchoolToolError, e: wxMessageBox("Could not submit the roll call: %s" % e, self.title, wxICON_ERROR|wxOK) else: self.EndModal(wxID_OK) | 8bfcb893526ff90ecb1436418450327bd4196777 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8bfcb893526ff90ecb1436418450327bd4196777/wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
871,
4672,
3536,
8097,
716,
777,
501,
353,
16219,
1865,
7647,
326,
6176,
12123,
5824,
1991,
273,
5378,
364,
261,
4099,
16,
3430,
67,
11898,
13,
316,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
871,
4672,
3536,
8097,
716,
777,
501,
353,
16219,
1865,
7647,
326,
6176,
12123,
5824,
1991,
273,
5378,
364,
261,
4099,
16,
3430,
67,
11898,
13,
316,
365,
18,
... |
"""Export actor levels from mod to text file.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('NPC Levels')) menu.AppendItem(menuItem) menuItem.Enable(len(self.data)==1) def Execute(self,event): message = (_("This command will export the level info for NPCs whose level is offset with respect to the PC. The exported file can be edited with most spreadsheet programs and then reimported.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLevels.export.continue',_('Export NPC Levels')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_NPC_Levels.csv') textDir = settings.get('bash.workDir',bosh.dirs['app']) textPath = balt.askSave(self.window,_('Export NPC levels to:'), textDir,textName, '*.csv') if not textPath: return (textDir,textName) = textPath.headTail settings['bash.workDir'] = textDir progress = balt.Progress(_("Export NPC Levels")) try: bosh.ActorLevels.dumpText(fileInfo,textPath,progress) finally: progress = progress.Destroy() | """Export actor levels from mod to text file.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('NPC Levels')) menu.AppendItem(menuItem) menuItem.Enable(len(self.data)==1) def Execute(self,event): message = (_("This command will export the level info for NPCs whose level is offset with respect to the PC. The exported file can be edited with most spreadsheet programs and then reimported.\n\nSee the Bash help file for more info.")) if not balt.askContinue(self.window,message,'bash.actorLevels.export.continue',_('Export NPC Levels')): return fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_NPC_Levels.csv') textDir = settings.get('bash.workDir',bosh.dirs['app']) textPath = balt.askSave(self.window,_('Export NPC levels to:'), textDir,textName, '*.csv') if not textPath: return (textDir,textName) = textPath.headTail settings['bash.workDir'] = textDir progress = balt.Progress(_("Export NPC Levels")) try: bosh.ActorLevels.dumpText(fileInfo,textPath,progress) finally: progress = progress.Destroy() | def Execute(self,event): message = (_("Update ArchiveInvalidation.txt? This updates the file that forces the game engine to recognize replaced textures. Note that this feature is experimental and most probably somewhat incomplete. You may prefer to use another program to do AI.txt file updating.")) if not balt.askContinue(self.window,message,'bash.updateAI.continue',_('ArchiveInvalidation.txt')): return bosh.ResourceReplacer.updateInvalidator() balt.showOk(self.window,"ArchiveInvalidation.txt updated.") | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
883,
273,
261,
67,
2932,
1891,
13124,
27946,
18,
5830,
35,
1220,
4533,
326,
585,
716,
26376,
326,
7920,
4073,
358,
21431,
8089,
977,
1823,
18,
3609,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
883,
273,
261,
67,
2932,
1891,
13124,
27946,
18,
5830,
35,
1220,
4533,
326,
585,
716,
26376,
326,
7920,
4073,
358,
21431,
8089,
977,
1823,
18,
3609,
716,
... |
def FirstScan_Button_clicked_cb(self, button, data=None): if self.search_count == 0: self.do_scan() else: self.reset_scan() return True def NextScan_Button_clicked_cb(self, button, data=None): | def Scan_Button_clicked_cb(self, button, data=None): | def FirstScan_Button_clicked_cb(self, button, data=None): if self.search_count == 0: # first scan self.do_scan() else: # new scan self.reset_scan() return True | 78440d3152e6d6ffda16bfdc0ae622d790564364 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4850/78440d3152e6d6ffda16bfdc0ae622d790564364/GameConqueror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5783,
7972,
67,
3616,
67,
7475,
329,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
309,
365,
18,
3072,
67,
1883,
422,
374,
30,
468,
1122,
4135,
365,
18,
2896,
67,
9871,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5783,
7972,
67,
3616,
67,
7475,
329,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
309,
365,
18,
3072,
67,
1883,
422,
374,
30,
468,
1122,
4135,
365,
18,
2896,
67,
9871,
1435... |
self.cars[-i-1].update(queue_length-(i+1)) | self.cars[-i-1].update(queue_length - (i+1)) | def update(self): queue_length = len((self.cars)) for i in range(queue_length): self.cars[-i-1].update(queue_length-(i+1)) | 6e7d5f2b538b57b791a24be47e353bb93f68d00a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4798/6e7d5f2b538b57b791a24be47e353bb93f68d00a/init.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
2389,
67,
2469,
273,
562,
12443,
2890,
18,
71,
5913,
3719,
364,
277,
316,
1048,
12,
4000,
67,
2469,
4672,
365,
18,
71,
5913,
18919,
77,
17,
21,
8009,
2725,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
2389,
67,
2469,
273,
562,
12443,
2890,
18,
71,
5913,
3719,
364,
277,
316,
1048,
12,
4000,
67,
2469,
4672,
365,
18,
71,
5913,
18919,
77,
17,
21,
8009,
2725,
12,
... |
print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." | print >> sys.stderr, "Insufficient command line arguments " print >> sys.stderr, " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print >> sys.stderr, " Exiting ........." | def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: print "Cannot import Config file '",sys.argv[1],"' exiting ...." sys.exit(1) UniqueID = '' # Compute Unique ID Number if(len(sys.argv) >= 3): UniqueID += '_' + sys.argv[2] # Variables Structure/Dictionary Vars = {} # SFT time baseline try: Vars['TSFT'] = config.TSFT except: print "TSFT cannot be read" sys.exit(1) # Strength of signal try: Vars['h0'] = config.h0 except: print "h0 cannot be read" sys.exit(1) # Cosine of iota try: Vars['cosi'] = config.cosi except: try: Vars['cosi'] = random.uniform(config.cosi_min,config.cosi_max) except: print "Cannot read in cosi variable" sys.exit(1) if(math.fabs(Vars['cosi']) > 1): print "abs(cosi) > 1 !!!" sys.exit(1) # Initial Phase try: Vars['phi0'] = config.phi0 except: try: Vars['phi0'] = random.uniform(config.phi0_min,config.phi0_max) except: print "Cannot read in phi0 variable" sys.exit(1) # Polarization Angle try: Vars['psi'] = config.psi except: try: Vars['psi'] = random.uniform(config.psi_min,config.psi_max) except: print "Cannot read in psi variable" sys.exit(1) # Number of Dirichlet terms used. try: Vars['Dterms'] = float(config.Dterms) except: print "Dterms cannot be read" sys.exit(1) # Interferometer try: IFOs = config.IFOs IFOs = IFOs.split(' ') NumofIFOs = len(IFOs) Vars['NumofIFOs'] = NumofIFOs Vars['IFO'] = [] for i in range(NumofIFOs): Vars['IFO'].append(IFOs[i]) except: print "IFO cannot be read" sys.exit(1) # Start Time try: t0 = config.t0 t0 = t0.split(' ') if(len(t0) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['t0'] = [] for i in range(NumofIFOs): Vars['t0'].append(float(t0[i])) except: print "t0 cannot be read" sys.exit(1) # Reference Time in SSB try: Vars['refTime'] = float(config.refTime) refString = ' --refTime ' + str(Vars['refTime']) except: refString = ' ' # Output Directory try: Vars['Out'] = config.Out + UniqueID except: print "Out cannot be read" sys.exit(1) # Ephemeris Directory try: Vars['Ephem'] = config.Ephem except: print "Ephem cannot be read" sys.exit(1) # Ephemeris Year try: Vars['EphemYear'] = config.EphemYear except: print "EphemYear cannot be read" sys.exit(1) # Noise Sh try: Vars['Sh'] = float(config.Sh) except: print "Sh cannot be read" sys.exit(1) # Duration of Analysis try: TSpan = config.TSpan TSpan = TSpan.split(' ') if(len(TSpan) != NumofIFOs): print "Number of TSpans != Number of IFOs" sys.exit(1) Vars['TSpan'] = [] for i in range(NumofIFOs): Vars['TSpan'].append(float(TSpan[i])) except: print "TSpan cannot be read" sys.exit(1) # Number of SFTs to add try: NumSFTs = config.NumSFTs NumSFTs = NumSFTs.split(' ') if(len(NumSFTs) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumSFTs'] = [] for i in range(NumofIFOs): Vars['NumSFTs'].append(int(NumSFTs[i])) except: print "NumSFTs cannot be read" sys.exit(1) # Number of Gaps to add try: NumGaps = config.NumGaps NumGaps = NumGaps.split(' ') if(len(NumGaps) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumGaps'] = [] for i in range(NumofIFOs): Vars['NumGaps'].append(int(NumGaps[i])) except: print "NumGaps cannot be read" sys.exit(1) # Alpha (Right Ascension) try: Vars['Alpha'] = config.Alpha except: try: Vars['Alpha'] = random.uniform(config.Alpha_min,config.Alpha_max) except: print "Cannot read in Alpha variable" sys.exit(1) if(Vars['Alpha'] < 0 or Vars['Alpha'] > 2.0*math.pi): print "Alpha out of bounds !!!" sys.exit(1) # Delta (Declination) try: Vars['Delta'] = config.Delta except: try: Vars['Delta'] = random.uniform(config.Delta_min,config.Delta_max) except: print "Cannot read in Delta variable" sys.exit(1) if(math.fabs(Vars['Delta']) > math.pi/2.0): print "abs(Delta) > pi/2 !!!" sys.exit(1) # Minimum Frequency try: Vars['Fmin'] = config.Fmin except: print "Fmin cannot be read" sys.exit(1) # Band of Analysis try: Vars['Band'] = config.Band except: print "Band cannot be read" sys.exit(1) # Injection Frequency try: Vars['Finj'] = config.Finj except: try: Vars['Finj'] = random.uniform(config.Finj_min,config.Finj_max) except: print "Cannot read in Finj variable" sys.exit(1) if(Vars['Finj'] < 0): print "Finj < 0 !!!" sys.exit(1) # Spindown/ FDOT try: Vars['FDot'] = config.FDot except: try: Vars['FDot'] = random.uniform(config.FDot_min,config.FDot_max) except: print "Cannot read in FDot variable" sys.exit(1) # FDOTBand try: Vars['FDotBand'] = config.FDotBand except: Vars['FDotBand'] = 0 #print "Cannot read in FDot variable" #sys.exit(1) # dFDot try: Vars['dFDot'] = config.dFDot except: Vars['dFDot'] = 10 # Resolution try: Vars['Res'] = config.Res if(Vars['Res'] > 1.0/Vars['TSpan'][0]): print "Resolution too low, set to 1/T" Vars['Res'] = 1.0/Vars['TSpan'][0] if(Vars['Res'] < 0): print "Resolution < 0" sys.exit(1) except: Vars['Res'] = 1.0/Vars['TSpan'][0] current = 0 for i in range(NumofIFOs): if(Vars['TSpan'][i] > Vars['TSpan'][current]): current = i Vars['Res'] = 1.0/Vars['TSpan'][i] # Debug Check try: Vars['debug'] = config.debug except: Vars['debug'] = 1.0 # F Threshold try: Vars['FThres'] = config.FThres except: Vars['FThres'] = 0 # Optional Output Variable from Resamp try: Vars['ResampOutput'] = config.ResampOutput except: Vars['ResampOutput'] = "MyTS" # Optional Use Your Own TimeStampsFile try: Vars['TimeStampsFile'] = config.TimeStampsFile TimeStampsFile_Is_Set = True except: Vars['TimeStampsFile'] = 'TimeStampsFile' + UniqueID TimeStampsFile_Is_Set = False # Print out all the variables (if Debug is on) if(Vars['debug']): print "---------- Configuration Variables --------- " PrintValues(Vars) print "-------------------------------------------- \n \n" # Create the Time Stamp File if(not(TimeStampsFile_Is_Set)): CreateTimeStampFile(Vars,UniqueID) # If running multiple time, delete all the old SFTs if(os.path.exists("./"+Vars['Out'])): try: shutil.rmtree(Vars['Out']) except: print "Could not delete old directory\n" sys.exit(1) try: os.mkdir(Vars['Out']) except: print "Something went wrong creating new directory\n" print "Permission trouble maybe\n" sys.exit(1) # Generate Fake data string for ifo in range(NumofIFOs): FakeDataString = GenFakeDataString(1,Vars,ifo,UniqueID,refString) if(Vars['debug']): print "----------- Makefakedata String ------------" print FakeDataString print "--------------------------------------------\n\n" # Generate the data try: G = commands.getoutput(FakeDataString) os.remove("timestampsFile"+Vars['IFO'][ifo]+UniqueID) except: print "Tried to generate SFTs, failed" sys.exit(1) # Run v2() OutputFileVLoudest = "OutputVLoudest" + UniqueID OutputFileVFstat = "OutputVFstat" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " " endstring = " " + refString V2DataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "----------- V2 String ------------" print V2DataString print "----------------------------------\n\n" print "----------- Running V2 -----------" (status,Voutput) = commands.getstatusoutput(V2DataString) if(status): print "V2 failed, Output was \n\n" print Voutput sys.exit(1) if(Vars['debug']): print "---------- V2 Done ---------------\n\n" # Run Resamp ResampLocation = "/home/ppatel/lalsuite/lalapps/src/pulsar/FDS_isolated/ResamplingFstat/" OutputFileRLoudest = "OutputRLoudest" + UniqueID OutputFileRFstat = "OutputRFstat" + UniqueID startstring = ResampLocation + "lalapps_ComputeFStatistic_resamp --outputFstat " + OutputFileRFstat + " --outputLoudest " + OutputFileRLoudest+ " -F " + str(Vars['FThres']) + " " endstring = " " + refString RDataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "-------- Resamp String -----------" print RDataString print "----------------------------------\n\n" print "--------- Running Resamp ---------" (status,Routput) = commands.getstatusoutput(RDataString) if(status): print "Resamp failed, Output was\n\n" print Routput sys.exit(0) if(Vars['debug']): print "---------- Resamp Done -----------\n\n" if(Vars['debug']): print "---------- Deleting SFT Folder ---------\n\n" try: shutil.rmtree(Vars['Out']) except: print " Could not delete SFT folder \n\n" sys.exit(1) FreqOutput = AnalyzeFreq(OutputFileRFstat,OutputFileVFstat,Vars['Finj'],Vars['Res']) LoudestOutput = AnalyzeLoudest(OutputFileRLoudest,OutputFileVLoudest) os.remove(OutputFileRLoudest) os.remove(OutputFileVLoudest) #os.remove(OutputFileRFstat) #os.remove(OutputFileVFstat) print FreqOutput,LoudestOutput return(0) | 9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
1671,
2589,
18,
11241,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
1671,
2589,
18,
11241,
16,
... |
self.info("adding device",device.get_usn()) | self.info("adding device",device.get_id(),device.get_usn(),device.friendly_device_type) | def add_device(self, device): self.info("adding device",device.get_usn()) self.devices.append(device) | 5f18715c13277788822c20ff6207c06ce8c3e650 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/5f18715c13277788822c20ff6207c06ce8c3e650/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5964,
12,
2890,
16,
2346,
4672,
365,
18,
1376,
2932,
3439,
2346,
3113,
5964,
18,
588,
67,
350,
9334,
5964,
18,
588,
67,
407,
82,
9334,
5964,
18,
29111,
67,
5964,
67,
723,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5964,
12,
2890,
16,
2346,
4672,
365,
18,
1376,
2932,
3439,
2346,
3113,
5964,
18,
588,
67,
350,
9334,
5964,
18,
588,
67,
407,
82,
9334,
5964,
18,
29111,
67,
5964,
67,
723,
13... |
if pvpath not in pv.get_paths(): return False else: return False self.treeview.expand_to_path(path) selection.select_path(path) return True | if pvpath in pv.get_paths(): self.treeview.expand_to_path(path) selection.select_path(path) return True return False | def check_tree_items(self, model, path, iter, *args): # return True to stop foreach, False to continue if len(args) == 0: return True # don't go any further args_internal = [] for arg in args[0]: args_internal.append(arg) while len(args_internal) < 3: args_internal.append('') vgname = args_internal[0] lvpath = args_internal[1] pvpath = args_internal[2] selection = self.treeview.get_selection() type = model.get_value(iter, TYPE_COL) if type == VG_PHYS_TYPE: if vgname != '' and lvpath == '' and pvpath != '': vg = model.get_value(iter, OBJ_COL) if vgname != vg.get_name(): return False elif type == VG_LOG_TYPE: if vgname != '' and lvpath != '' and pvpath == '': vg = model.get_value(iter, OBJ_COL) if vgname != vg.get_name(): return False elif type == VG_TYPE: if vgname != '' and lvpath == '' and pvpath == '': vg = model.get_value(iter, OBJ_COL) if vgname != vg.get_name(): return False elif type == LOG_TYPE: if vgname == '' and lvpath != '' and pvpath == '': lv = model.get_value(iter, OBJ_COL) if lvpath != lv.get_path(): return False elif type == PHYS_TYPE or type == UNALLOCATED_TYPE or type == UNINITIALIZED_TYPE: if vgname == '' and lvpath == '' and pvpath != '': pv = model.get_value(iter, OBJ_COL) if pvpath not in pv.get_paths(): return False else: return False self.treeview.expand_to_path(path) selection.select_path(path) return True | e7d1fe8c3fd2a6e810c95082ec9fd77b841e23e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/e7d1fe8c3fd2a6e810c95082ec9fd77b841e23e1/Volume_Tab_View.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3413,
67,
3319,
12,
2890,
16,
938,
16,
589,
16,
1400,
16,
380,
1968,
4672,
468,
327,
1053,
358,
2132,
936,
16,
1083,
358,
1324,
225,
309,
562,
12,
1968,
13,
422,
374,
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,
866,
67,
3413,
67,
3319,
12,
2890,
16,
938,
16,
589,
16,
1400,
16,
380,
1968,
4672,
468,
327,
1053,
358,
2132,
936,
16,
1083,
358,
1324,
225,
309,
562,
12,
1968,
13,
422,
374,
30,
... |
choice = wikipedia.inputChoice(question, ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') | choice = wikipedia.inputChoice(question, ['Yes', 'No', 'All', 'Quit'], ['y', 'N', 'a', 'q'], 'N') | def prompt(self, question): if not self.always: choice = wikipedia.inputChoice(question, ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice == 'n': return False elif choice == 'a': self.always = True return True | f97bb8ea050b55944ad5a41bb800341f7674f0a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/f97bb8ea050b55944ad5a41bb800341f7674f0a4/redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2890,
16,
5073,
4672,
309,
486,
365,
18,
17737,
30,
6023,
273,
21137,
18,
2630,
10538,
12,
4173,
16,
10228,
22352,
2187,
296,
2279,
2187,
296,
1595,
2187,
296,
25365,
17337,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2890,
16,
5073,
4672,
309,
486,
365,
18,
17737,
30,
6023,
273,
21137,
18,
2630,
10538,
12,
4173,
16,
10228,
22352,
2187,
296,
2279,
2187,
296,
1595,
2187,
296,
25365,
17337,
10... |
assert len(s.c) == 1 and s.c[0][1] == 5 and s.c[0][2] == ['testcode.com'] | def test_close_remote_of_local_start(): up = DummyTransfer() down = DummyTransfer() s = DummyScheduler() c = Connecter(up, down, s, 5, 6) e = DummyEncrypter() c.set_encrypter(e) c.start_connecting(['testcode.com']) assert s.c == [] assert e.c == ['testcode.com'] del e.c[:] assert s.c == [] dc = DummyConnection('a' * 20, 'testcode.com') c.locally_initiated_connection_completed(dc) assert len(down.cs_made) == 1 and down.cs_made[0].get_id() == 'a' * 20 assert len(up.cs_made) == 0 assert s.c == [] assert e.c == ['testcode.com'] del e.c[:] assert dc.m == ['download'] del dc.m[:] down.cs_made[0].send_message('a') assert dc.m == ['a'] c.got_message(dc, 'b') assert down.m == [(down.cs_made[0], 'b')] assert not dc.closed c.connection_lost(dc) assert down.cs_lost == down.cs_made assert len(s.c) == 1 and s.c[0][1] == 5 and s.c[0][2] == ['testcode.com'] | e515f2d77bfcdfdf465f07113b3fb94b00f492ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/e515f2d77bfcdfdf465f07113b3fb94b00f492ad/Connecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4412,
67,
7222,
67,
792,
67,
3729,
67,
1937,
13332,
731,
273,
28622,
5912,
1435,
2588,
273,
28622,
5912,
1435,
272,
273,
28622,
11870,
1435,
276,
273,
8289,
264,
12,
416,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4412,
67,
7222,
67,
792,
67,
3729,
67,
1937,
13332,
731,
273,
28622,
5912,
1435,
2588,
273,
28622,
5912,
1435,
272,
273,
28622,
11870,
1435,
276,
273,
8289,
264,
12,
416,
16,
... | |
ReduceBlockFormat.labelBlock(cur,self.mode) | self.labelBlock(cur,self.mode) | def startElement(self,namespaceURI,localName,qName,atts): | a5e9c67f628fc6c698aaf406222a3db080933992 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/403/a5e9c67f628fc6c698aaf406222a3db080933992/qrxml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
4937,
3098,
16,
3729,
461,
16,
85,
461,
16,
270,
3428,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
4937,
3098,
16,
3729,
461,
16,
85,
461,
16,
270,
3428,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
text = re.sub(r'(<td nowrap align=right valign=top>template<).*?(>.*?)'+declPattern+r'(.*?</tr>)', r'\1...\2\3\4', text) | text = re.sub(r'(<td nowrap align=right valign=top>template<).*?(>.*?)'+declPattern+\ r'(.*?</tr>)', r'\1...\2\3\4', text) | def processFile(fileName): print fileName f = open(fileName) text = f.read() f.close() text = convertHeader(text) if not re.search(r'.*source.html', fileName): text = convertPage(text) else: text = convertSource(text) if re.search(r'.*/group__.*html', fileName): text = typedefField.sub(r'<br><b> \1</b><br> ', text) declPattern = findExplicitDeclarations(text) if declPattern: text = re.sub(r'(<td nowrap align=right valign=top>template<).*?(>.*?)'+declPattern+r'(.*?</tr>)', r'\1...\2\3\4', text) functionSignature = re.compile(r'<table cellpadding="0" cellspacing="0" border="0">\s*'+\ r'<tr>\s*<td class="md".*?>(.*?)'+declPattern+r' *</td>.*?</table>', re.S) text = functionSignature.sub(r'<br><b> \1\2 (...)</b><br> ', text) if re.search(r'.*/index.html', fileName): text = re.sub(r'<h3 align="center">\d+\.\d+\.\d+</h3>', '', text) if re.search(r'.*/namespacevigra.html', fileName): text = re.sub(r"template<.*?>", "template<...>", text) if re.search(r'.*/classes.html', fileName): text = re.sub(r'(<div class="ah">)( . )', r'\1<font color="white"><b>\2</b>', text) text = re.sub(r'\(<a class="el" href="namespace[^\)]*\)', '', text) f = open(fileName, 'w+') f.write(text) f.close() | 88c123fa13334051c00d12e743af5ddd88d74756 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12582/88c123fa13334051c00d12e743af5ddd88d74756/post.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
812,
12,
17812,
4672,
1172,
3968,
284,
273,
1696,
12,
17812,
13,
977,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
225,
977,
273,
1765,
1864,
12,
955,
13,
309,
486,
283,
18,
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,
1207,
812,
12,
17812,
4672,
1172,
3968,
284,
273,
1696,
12,
17812,
13,
977,
273,
284,
18,
896,
1435,
284,
18,
4412,
1435,
225,
977,
273,
1765,
1864,
12,
955,
13,
309,
486,
283,
18,
3... |
self.potentials = cmpotentials.__getattribute(self.potential_func) | self.potentials = cmpotentials.__getattribute__(self.potential_func) | def __init__(self, filename, *args, **kwargs): """Get results from file and instantiate variables. Opens file with handle saved as self._rf. File is closed in __del__""" #Start logging self._log = logging.getLogger('%s.%s' % (__name__, self.__class__.__name__)) #Check file exists if not os.path.isfile(filename): raise IOError("File does not exist!") try: self._log.debug("Opening file " + filename + " to read results.") try: self._rf = tables.openFile(filename, "r") self.yresult = self._rf.root.results.yresult self.tresult = self._rf.root.results.tresult self.fotstart = self._rf.root.results.fotstart self.foystart = self._rf.root.results.foystart params = self._rf.root.results.parameters except tables.NoSuchNodeError: raise ModelError("File does not contain correct model data structure!") #Put params in right slots for ix, val in enumerate(params[0]): self.__setattr__(params.colnames[ix], val) #set correct potential function (only works with cmpotentials currently) self.potentials = cmpotentials.__getattribute(self.potential_func) except IOError: raise | fbfb3bd10f1e28b79d13aaa1ffa69f964c6b3160 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/fbfb3bd10f1e28b79d13aaa1ffa69f964c6b3160/cosmomodels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
967,
1686,
628,
585,
471,
10275,
3152,
18,
6066,
773,
585,
598,
1640,
5198,
487,
365,
6315,
5809,
18,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
967,
1686,
628,
585,
471,
10275,
3152,
18,
6066,
773,
585,
598,
1640,
5198,
487,
365,
6315,
5809,
18,
13... |
dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE, full) | dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE) | def nosave_cancel_save_question(message, details="", line_wrap=True, markup=False): full = apply_template(template, (message, details), not markup) dialog = gtk.MessageDialog(context.parent_window, 0, gtk.MESSAGE_QUESTION, gtk.BUTTONS_NONE, full) dialog.add_button(gtk.STOCK_NO, gtk.RESPONSE_NO) dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL) dialog.add_button(gtk.STOCK_SAVE, gtk.RESPONSE_OK) return run_dialog(dialog, line_wrap) | 9d4d18bad052f25a1877233f866f77fec804794d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/9d4d18bad052f25a1877233f866f77fec804794d/simple.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26628,
836,
67,
10996,
67,
5688,
67,
4173,
12,
2150,
16,
3189,
1546,
3113,
980,
67,
4113,
33,
5510,
16,
9813,
33,
8381,
4672,
1983,
273,
2230,
67,
3202,
12,
3202,
16,
261,
2150,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26628,
836,
67,
10996,
67,
5688,
67,
4173,
12,
2150,
16,
3189,
1546,
3113,
980,
67,
4113,
33,
5510,
16,
9813,
33,
8381,
4672,
1983,
273,
2230,
67,
3202,
12,
3202,
16,
261,
2150,
16,
... |
dupList.append((trove.getName(), trove.getVersion().branch())) | dupList.append((name, version.branch())) | def _createBranchOrShadow(self, newLabel, troveList, shadow, sourceTroves): cs = changeset.ChangeSet() | c34f51cc2fef73ea21ec47717c92f3e52d53eff7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c34f51cc2fef73ea21ec47717c92f3e52d53eff7/conaryclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
7108,
1162,
12957,
12,
2890,
16,
394,
2224,
16,
23432,
537,
682,
16,
10510,
16,
1084,
56,
303,
3324,
4672,
2873,
273,
22463,
18,
21565,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
7108,
1162,
12957,
12,
2890,
16,
394,
2224,
16,
23432,
537,
682,
16,
10510,
16,
1084,
56,
303,
3324,
4672,
2873,
273,
22463,
18,
21565,
1435,
2,
-100,
-100,
-100,
-100,
-100,
... |
this = apply(_quickfix.new_AllocAccountType, args) | this = _quickfix.new_AllocAccountType(*args) | def __init__(self, *args): this = apply(_quickfix.new_AllocAccountType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
3032,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
3032,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... |
logging.info("c=" + str(c)) | def all_unclaimed(request): flat_changes = models.gql(models.Change, ' WHERE closed = FALSE' ' AND claimed = FALSE' ' ORDER BY dest_project DESC,' ' modified DESC').fetch(1000) changes = [] c_list = [] last_project_key = None for c in flat_changes: logging.info("c=" + str(c)) k = c.dest_project.key() if k != last_project_key: if c_list: _optimize_draft_counts(c_list) _prefetch_names(c_list) changes.append({ 'name': c.dest_project.name, 'changes': c_list, }) last_project_key = k c_list = [] c_list.append(c) if c_list: _optimize_draft_counts(c_list) _prefetch_names(c_list) changes.append({ 'name': c.dest_project.name, 'changes': c_list, }) vars = { 'projects': changes, } return respond(request, 'unclaimed.html', vars) | 21dde3dea02192abdd07f8449036a6ee2bf52ca0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7193/21dde3dea02192abdd07f8449036a6ee2bf52ca0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
551,
80,
4581,
329,
12,
2293,
4672,
3569,
67,
6329,
273,
3679,
18,
75,
1217,
12,
7665,
18,
3043,
16,
296,
4852,
4375,
273,
4934,
11,
296,
282,
4116,
7516,
329,
273,
4934,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
551,
80,
4581,
329,
12,
2293,
4672,
3569,
67,
6329,
273,
3679,
18,
75,
1217,
12,
7665,
18,
3043,
16,
296,
4852,
4375,
273,
4934,
11,
296,
282,
4116,
7516,
329,
273,
4934,
11... | |
self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8', 'surrogatepass'), b'\xf0\x90\x80\x82'*1000 ) | if sys.maxunicode == 65535: self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8'), b'\xf0\x90\x80\x82'*1000) | def test_codecs_utf8(self): self.assertEqual(''.encode('utf-8'), b'') self.assertEqual('\u20ac'.encode('utf-8'), b'\xe2\x82\xac') self.assertEqual('\ud800\udc02'.encode('utf-8'), b'\xf0\x90\x80\x82') self.assertEqual('\ud84d\udc56'.encode('utf-8'), b'\xf0\xa3\x91\x96') self.assertEqual('\ud800'.encode('utf-8', 'surrogatepass'), b'\xed\xa0\x80') self.assertEqual('\udc00'.encode('utf-8', 'surrogatepass'), b'\xed\xb0\x80') self.assertEqual( ('\ud800\udc02'*1000).encode('utf-8', 'surrogatepass'), b'\xf0\x90\x80\x82'*1000 ) self.assertEqual( '\u6b63\u78ba\u306b\u8a00\u3046\u3068\u7ffb\u8a33\u306f' '\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u4e00' '\u90e8\u306f\u30c9\u30a4\u30c4\u8a9e\u3067\u3059\u304c' '\u3001\u3042\u3068\u306f\u3067\u305f\u3089\u3081\u3067' '\u3059\u3002\u5b9f\u969b\u306b\u306f\u300cWenn ist das' ' Nunstuck git und'.encode('utf-8'), b'\xe6\xad\xa3\xe7\xa2\xba\xe3\x81\xab\xe8\xa8\x80\xe3\x81' b'\x86\xe3\x81\xa8\xe7\xbf\xbb\xe8\xa8\xb3\xe3\x81\xaf\xe3' b'\x81\x95\xe3\x82\x8c\xe3\x81\xa6\xe3\x81\x84\xe3\x81\xbe' b'\xe3\x81\x9b\xe3\x82\x93\xe3\x80\x82\xe4\xb8\x80\xe9\x83' b'\xa8\xe3\x81\xaf\xe3\x83\x89\xe3\x82\xa4\xe3\x83\x84\xe8' b'\xaa\x9e\xe3\x81\xa7\xe3\x81\x99\xe3\x81\x8c\xe3\x80\x81' b'\xe3\x81\x82\xe3\x81\xa8\xe3\x81\xaf\xe3\x81\xa7\xe3\x81' b'\x9f\xe3\x82\x89\xe3\x82\x81\xe3\x81\xa7\xe3\x81\x99\xe3' b'\x80\x82\xe5\xae\x9f\xe9\x9a\x9b\xe3\x81\xab\xe3\x81\xaf' b'\xe3\x80\x8cWenn ist das Nunstuck git und' ) | 164d99a48e003fbd6b48257ebb57e00eed1d9117 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/164d99a48e003fbd6b48257ebb57e00eed1d9117/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
710,
2143,
67,
3158,
28,
12,
2890,
4672,
365,
18,
11231,
5812,
2668,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
11,
6134,
365,
18,
11231,
5812,
2668,
64,
89,
3462,
1077,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
710,
2143,
67,
3158,
28,
12,
2890,
4672,
365,
18,
11231,
5812,
2668,
10332,
3015,
2668,
3158,
17,
28,
19899,
324,
11,
6134,
365,
18,
11231,
5812,
2668,
64,
89,
3462,
1077,
10... |
assert len(cols) == 3, "I don't understand RX line %s" \ % line | if line[:22] != 'RX MEDLINE; 99132301': assert len(cols) == 3, "I don't understand RX line %s" \ % line | def reference_cross_reference(self, line): assert self.data.references, "RX: missing RN" cols = string.split(line) assert len(cols) == 3, "I don't understand RX line %s" \ % line self.data.references[-1].references.append( (self._chomp(cols[1]), self._chomp(cols[2]))) | 97cab9650c77db8e14e2b14bc9d0c8eb9fc29a26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/97cab9650c77db8e14e2b14bc9d0c8eb9fc29a26/SProt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2114,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
1815,
365,
18,
892,
18,
14353,
16,
315,
54,
60,
30,
3315,
534,
50,
6,
5347,
273,
533,
18,
4939,
12,
1369,
13,
309,
980,
10531,
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,
2114,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
1815,
365,
18,
892,
18,
14353,
16,
315,
54,
60,
30,
3315,
534,
50,
6,
5347,
273,
533,
18,
4939,
12,
1369,
13,
309,
980,
10531,
3... |
IPATH=['pandaapp/src/indexify'] OPTS=['NSPR', 'FREETYPE'] CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='font-samples_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='fontSamples.cxx', obj='font-samples_fontSamples.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='font-samples.exe', obj=[ 'font-samples_default_font.obj', 'font-samples_fontSamples.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ]) CompileC(ipath=IPATH, opts=OPTS, src='default_index_icons.cxx', obj='indexify_default_index_icons.obj') CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='indexify_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexImage.cxx', obj='indexify_indexImage.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexParameters.cxx', obj='indexify_indexParameters.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexify.cxx', obj='indexify_indexify.obj') CompileC(ipath=IPATH, opts=OPTS, src='photo.cxx', obj='indexify_photo.obj') CompileC(ipath=IPATH, opts=OPTS, src='rollDirectory.cxx', obj='indexify_rollDirectory.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='indexify.exe', obj=[ 'indexify_default_index_icons.obj', 'indexify_default_font.obj', 'indexify_indexImage.obj', 'indexify_indexParameters.obj', 'indexify_indexify.obj', 'indexify_photo.obj', 'indexify_rollDirectory.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ]) | if OMIT.count("FREETYPE")==0: IPATH=['pandaapp/src/indexify'] OPTS=['NSPR', 'FREETYPE'] CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='font-samples_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='fontSamples.cxx', obj='font-samples_fontSamples.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='font-samples.exe', obj=[ 'font-samples_default_font.obj', 'font-samples_fontSamples.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ]) CompileC(ipath=IPATH, opts=OPTS, src='default_index_icons.cxx', obj='indexify_default_index_icons.obj') CompileC(ipath=IPATH, opts=OPTS, src='default_font.cxx', obj='indexify_default_font.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexImage.cxx', obj='indexify_indexImage.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexParameters.cxx', obj='indexify_indexParameters.obj') CompileC(ipath=IPATH, opts=OPTS, src='indexify.cxx', obj='indexify_indexify.obj') CompileC(ipath=IPATH, opts=OPTS, src='photo.cxx', obj='indexify_photo.obj') CompileC(ipath=IPATH, opts=OPTS, src='rollDirectory.cxx', obj='indexify_rollDirectory.obj') CompileLink(opts=['ADVAPI', 'NSPR', 'FREETYPE'], dll='indexify.exe', obj=[ 'indexify_default_index_icons.obj', 'indexify_default_font.obj', 'indexify_indexImage.obj', 'indexify_indexParameters.obj', 'indexify_indexify.obj', 'indexify_photo.obj', 'indexify_rollDirectory.obj', 'libpanda.dll', 'libpandaexpress.dll', 'libdtool.dll', 'libdtoolconfig.dll', 'libprogbase.lib', 'libpandatoolbase.lib', 'libpystub.dll', ]) | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | e594b1b5a2c778da65602d37638829ada0570895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e594b1b5a2c778da65602d37638829ada0570895/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if sqlite_setup_debug: | if sqlite_setup_debug: | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 3dc6bb3c25dd2834b198a4bbcff2f9b760d1a2d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3dc6bb3c25dd2834b198a4bbcff2f9b760d1a2d9/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
self.logging.info("Your job identifier is: %s" % jOut['parent']) | self.logging.debug("Your job identifier is: %s" % jOut['parent']) | def submit( self, obj, requirements='', config ='', service='' ): """ submit a jdl to glite ends with a call to retrieve wms and job,gridid asssociation """ | af73757b0c98ae0e16acafa0aa11965bd06b6805 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/af73757b0c98ae0e16acafa0aa11965bd06b6805/SchedulerGLite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
12,
365,
16,
1081,
16,
8433,
2218,
2187,
642,
273,
11,
2187,
1156,
2218,
11,
262,
30,
3536,
4879,
279,
525,
5761,
358,
5118,
1137,
3930,
598,
279,
745,
358,
4614,
341,
959,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
12,
365,
16,
1081,
16,
8433,
2218,
2187,
642,
273,
11,
2187,
1156,
2218,
11,
262,
30,
3536,
4879,
279,
525,
5761,
358,
5118,
1137,
3930,
598,
279,
745,
358,
4614,
341,
959,
471,
... |
build_nsc() except CommandError: print " config.documentElement.removeChild(nsc_config) | try: build_nsc() except CommandError: print " config.documentElement.removeChild(nsc_config) | def main(argv): parser = OptionParser() parser.add_option('--disable-nsc', help=("Don't try to build NSC"), action="store_true", default=False, dest='disable_nsc') (options, args) = parser.parse_args() cwd = os.getcwd() try: dot_config = open(".config", "rt") except IOError: print >> sys.stderr, "** ERROR: missing .config file; you probably need to run the download.py script first." sys.exit(2) config = dom.parse(dot_config) dot_config.close() if options.disable_nsc: print "# Skip NSC (by user request)" for node in config.getElementsByTagName("nsc"): config.documentElement.removeChild(node) elif sys.platform in ['darwin', 'win32']: print "# Skip NSC (platform not supported)" else: nsc_config_elems = config.getElementsByTagName("nsc") if nsc_config_elems: nsc_config, = nsc_config_elems nsc_dir = nsc_config.getAttribute("dir") print "# Build NSC" os.chdir(nsc_dir) print "Entering directory `%s'" % nsc_dir try: build_nsc() except CommandError: print "# Build NSC: failure (ignoring NSC)" config.documentElement.removeChild(nsc_config) finally: os.chdir(cwd) print "Leaving directory `%s'" % nsc_dir print "# Build NS-3" ns3_config, = config.getElementsByTagName("ns-3") d = os.path.join(os.path.dirname(__file__), ns3_config.getAttribute("dir")) print "Entering directory `%s'" % d os.chdir(d) try: build_ns3(config) finally: os.chdir(cwd) print "Leaving directory `%s'" % d return 0 | 3c19bc02ed7a52f80f2ae0ee98ac6baa5372585c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9391/3c19bc02ed7a52f80f2ae0ee98ac6baa5372585c/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2668,
413,
8394,
17,
82,
1017,
2187,
2809,
33,
2932,
22293,
1404,
775,
358,
1361,
423,
2312,
6,
3631,
1301,
1546,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2668,
413,
8394,
17,
82,
1017,
2187,
2809,
33,
2932,
22293,
1404,
775,
358,
1361,
423,
2312,
6,
3631,
1301,
1546,... |
self.enableHandles(['z-post','z-ring','z-disc']) | self.enableHandles(['z-post','z-ring','z-disc', 'z-scale']) | def enableHandles(self, handles): if type(handles) == types.ListType: for handle in handles: self.enableHandle(handle) elif handles == 'x': self.enableHandles(['x-post','x-ring','x-disc']) elif handles == 'y': self.enableHandles(['y-post','y-ring','y-disc']) elif handles == 'z': self.enableHandles(['z-post','z-ring','z-disc']) elif handles == 'post': self.enableHandles(['x-post','y-post','z-post']) elif handles == 'ring': self.enableHandles(['x-ring','y-ring','z-ring']) elif handles == 'disc': self.enableHandles(['x-disc','y-disc','z-disc']) elif handles == 'all': self.enableHandles(['x-post','x-ring','x-disc', 'y-post','y-ring','y-disc', 'z-post','z-ring','z-disc']) | e6d5ec494707be9dddb9b6144cebc352a9bae73c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/e6d5ec494707be9dddb9b6144cebc352a9bae73c/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
8788,
12,
2890,
16,
7372,
4672,
309,
618,
12,
24111,
13,
422,
1953,
18,
19366,
30,
364,
1640,
316,
7372,
30,
365,
18,
7589,
3259,
12,
4110,
13,
1327,
7372,
422,
296,
92,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
8788,
12,
2890,
16,
7372,
4672,
309,
618,
12,
24111,
13,
422,
1953,
18,
19366,
30,
364,
1640,
316,
7372,
30,
365,
18,
7589,
3259,
12,
4110,
13,
1327,
7372,
422,
296,
92,
4278,
... |
DebugInfo(0, 'ERROR: Unable to match ProbeType ' + ProbeType + | DebugPrint(0, 'ERROR: Unable to match ProbeType ' + ProbeType + | def readCertInfo(localJobId, probeName) " Look for and read contents of cert info file if present" global Config if localJobId == None: return # No LocalJobId, so no dice matching_files = glob(Config.get_DataFolder() + 'gratia_certinfo_*_' + localJobId + '*') if matching_files == None or len(matching_files == 0): return # No files if len(matching_files) == 1: certinfo = matching_files[0] # simple else: # Need to whittle it down # Need probe type match = re.search(r'^(?P<Type>.*?):', probeName) if match: ProbeType = string.lower(match.group("Type")) else: DebugPrint(0, 'Error: Unable to ascertain ProbeType to match against multiple certinfo entries') return JobManagers = [] for f in matching_files: match = re.search(r'gratia_certinfo_(?P<JobManger>.*?)_', f) if match: JobManager = string.lower(match.group("JobManager")) JobManagers.append(JobManager) if ProbeType == JobManager or \ (ProbeType == "condor" and \ (JobManager == "condor" or \ JobManager == "managedfork" or \ JobManager == "cemon")) or \ (ProbeType == "pbs-lsf" and \ (JobManager == "pbs" or \ JobManager == "lsf")): cert_info = f break if certinfo == None: # Problem: multiple possibilities but no match. DebugInfo(0, 'ERROR: Unable to match ProbeType ' + ProbeType + ' to JobManagers: ' + string.join(JobManagers, ', ')) return try: certinfo_doc = xml.dom.minimdom.parse(certinfo) except e: DebugInfo(0, 'ERROR: Unable to parse XML file ' + certinfo) return # Next, find the correct information and send it back. certinfo_nodes = certinfo_doc.getElementsByTagName('GratiaCertInfo') if certinfo_nodes.length == 1: return { "DN": GetNodeData(certinfo_nodes[0].getElementsByTagName('DN'), 0), "VO": GetNodeData(certinfo_nodes[0].getElementsByTagName('VO'), 0), "FQAN": GetNodeData(certinfo_nodes[0].getElementsByTagName('FQAN'), 0) } else: DebugInfo(0, 'ERROR: certinfo file ' + certinfo + ' does not contain one valid GratiaCertInfo node') return | 51ede0c708fe8defac686f35f9a8d75038b92238 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/51ede0c708fe8defac686f35f9a8d75038b92238/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
5461,
966,
12,
3729,
23378,
16,
10695,
461,
13,
315,
10176,
364,
471,
855,
2939,
434,
3320,
1123,
585,
309,
3430,
6,
2552,
1903,
225,
309,
1191,
23378,
422,
599,
30,
327,
468,
263... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5461,
966,
12,
3729,
23378,
16,
10695,
461,
13,
315,
10176,
364,
471,
855,
2939,
434,
3320,
1123,
585,
309,
3430,
6,
2552,
1903,
225,
309,
1191,
23378,
422,
599,
30,
327,
468,
263... |
file_id = inv.path2id(dirname) | try: file_id = inv.path2id(dirname) except errors.NoSuchId: raise KeyError | def _get_directory_entry(self, inv, dirname): """Get the inventory entry for a directory. Raises KeyError if dirname is not a directory in inv. """ result = self.directory_entries.get(dirname) if result is None: file_id = inv.path2id(dirname) if file_id is None: raise KeyError result = inv[file_id] # dirname must be a directory for us to return it if result.kind == 'directory': self.directory_entries[dirname] = result else: raise KeyError return result | bf71ea3dd380bba08a387d703f875d737fc56c48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8703/bf71ea3dd380bba08a387d703f875d737fc56c48/bzr_commit_handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
4099,
12,
2890,
16,
2198,
16,
4283,
4672,
3536,
967,
326,
13086,
1241,
364,
279,
1867,
18,
225,
20497,
4999,
309,
4283,
353,
486,
279,
1867,
316,
2198,
18,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
4099,
12,
2890,
16,
2198,
16,
4283,
4672,
3536,
967,
326,
13086,
1241,
364,
279,
1867,
18,
225,
20497,
4999,
309,
4283,
353,
486,
279,
1867,
316,
2198,
18,
3536... |
if archDuplicate(pkg["arch"], r["arch"]): | if archDuplicate(pkg["arch"], r["arch"]) or \ pkg["arch"] == "noarch" or r["arch"] == "noarch": | def _update(self, pkg): key = pkg["name"] | d7906f54f6373f535e1c3d6164c3cf9977435487 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d7906f54f6373f535e1c3d6164c3cf9977435487/rpmlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
2890,
16,
3475,
4672,
498,
273,
3475,
9614,
529,
11929,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
2890,
16,
3475,
4672,
498,
273,
3475,
9614,
529,
11929,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
center = NSPoint(x+0.5, y+0.5) | center = NSPoint(x, y) | def arc(self, x, y, radius, angle1, angle2): angle1 = (angle1 * 360) / (2 * math.pi) angle2 = (angle2 * 360) / (2 * math.pi) center = NSPoint(x+0.5, y+0.5) self.path.appendBezierPathWithArcWithCenter_radius_startAngle_endAngle_(center, radius, angle1, angle2) | 7af73c640649652e07cd279503aaf09d6ef77de1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/7af73c640649652e07cd279503aaf09d6ef77de1/drawing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8028,
12,
2890,
16,
619,
16,
677,
16,
5725,
16,
5291,
21,
16,
5291,
22,
4672,
5291,
21,
273,
261,
4341,
21,
380,
12360,
13,
342,
261,
22,
380,
4233,
18,
7259,
13,
5291,
22,
273,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8028,
12,
2890,
16,
619,
16,
677,
16,
5725,
16,
5291,
21,
16,
5291,
22,
4672,
5291,
21,
273,
261,
4341,
21,
380,
12360,
13,
342,
261,
22,
380,
4233,
18,
7259,
13,
5291,
22,
273,
26... |
key4 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s\\%s\\%s" % (iid, version, lcid)) for platform, dll in EnumKeys(key4): if platform=="win32": major = string.split(version, '.', 1) if len(major) < 2: major.append('0') try: major, minor = string.atoi(major[0], 16), string.atoi(major[1], 16) lcid = string.atoi(lcid,16) except ValueError: continue spec = TypelibSpec(iid, lcid, major, minor, flags) spec.desc = tlbdesc spec.ver_desc = tlbdesc + " (" + version + ")" spec.dll = dll results.append(spec) | try: lcid = int(lcid) except ValueError: continue try: key4 = win32api.RegOpenKey(key3, "%s\win32" % (lcid,)) except win32api.error: continue try: dll = win32api.RegQueryValue(key4, None) except win32api.error: dll = None spec = TypelibSpec(iid, lcid, major, minor, flags) spec.dll = dll spec.desc = tlbdesc spec.ver_desc = tlbdesc + " (" + version + ")" results.append(spec) | def EnumTlbs(excludeFlags = 0): """Return a list of TypelibSpec objects, one for each registered library. """ key = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib") iids = EnumKeys(key) results = [] for iid, crap in iids: key2 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s" % (iid)) for version, tlbdesc in EnumKeys(key2): key3 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s\\%s" % (iid, version)) try: # The "FLAGS" are at this point flags = int(win32api.RegQueryValue(key3, "FLAGS")) except (win32api.error, ValueError): flags = 0 if flags & excludeFlags==0: for lcid, crap in EnumKeys(key3): key4 = win32api.RegOpenKey(win32con.HKEY_CLASSES_ROOT, "Typelib\\%s\\%s\\%s" % (iid, version, lcid)) for platform, dll in EnumKeys(key4): if platform=="win32": major = string.split(version, '.', 1) if len(major) < 2: major.append('0') try: major, minor = string.atoi(major[0], 16), string.atoi(major[1], 16) lcid = string.atoi(lcid,16) except ValueError: # crap in the registry! continue spec = TypelibSpec(iid, lcid, major, minor, flags) spec.desc = tlbdesc spec.ver_desc = tlbdesc + " (" + version + ")" spec.dll = dll results.append(spec) return results | 336fc8bcd82801d4ec1c022b31377a954cd7d147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/336fc8bcd82801d4ec1c022b31377a954cd7d147/selecttlb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6057,
56,
80,
2038,
12,
10157,
5094,
273,
374,
4672,
3536,
990,
279,
666,
434,
16973,
30575,
1990,
2184,
16,
1245,
364,
1517,
4104,
5313,
18,
3536,
498,
273,
5657,
1578,
2425,
18,
1617,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6057,
56,
80,
2038,
12,
10157,
5094,
273,
374,
4672,
3536,
990,
279,
666,
434,
16973,
30575,
1990,
2184,
16,
1245,
364,
1517,
4104,
5313,
18,
3536,
498,
273,
5657,
1578,
2425,
18,
1617,
... |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) | navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) | def kb_edit_mapping(req, kb, key, mapFrom, mapTo, update="", delete="", sortby="to", ln=config.cdslang): """ Edit a mapping to in kb. Edit can be "update old value" or "delete existing value" @param kb the knowledge base id to edit @param key the key of the mapping that will be modified @param mapFrom the new key of the mapping @param mapTo the new value of the mapping @param update contains a value if the mapping is to be updated @param delete contains a value if the mapping is to be deleted @param sortby the sorting criteria ('from' or 'to') """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) (auth_code, auth_msg) = check_user(req, 'cfgbibformat') if not auth_code: kb_id = wash_url_argument(kb, 'int') kb_name = bibformatadminlib.get_kb_name(kb_id) if kb_name is None: return page(title=_("Unknown Knowledge Base"), body = "", language=ln, navtrail = navtrail_previous_links, errors = [("ERR_BIBFORMAT_KB_ID_UNKNOWN", kb)], lastupdated=__lastupdated__, req=req) key = wash_url_argument(key, 'str') if delete != "": #Delete bibformatadminlib.remove_kb_mapping(kb_name, key) else: #Update new_key = wash_url_argument(mapFrom, 'str') new_value = wash_url_argument(mapTo, 'str') bibformatadminlib.update_kb_mapping(kb_name, key, new_key, new_value) redirect_to_url(req, "kb_show?ln=%(ln)s&kb=%(kb)s&sortby=%(sortby)s" % {'ln':ln, 'kb':kb_id, 'sortby':sortby}) else: return page_not_authorized(req=req, text=auth_msg, navtrail=navtrail_previous_links) | f08fe81d00d74f462e6a931c4d621a61c821b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f08fe81d00d74f462e6a931c4d621a61c821b5b1/bibformatadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4619,
67,
6770,
12,
3658,
16,
9182,
16,
498,
16,
852,
1265,
16,
21178,
16,
1089,
1546,
3113,
1430,
1546,
3113,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4619,
67,
6770,
12,
3658,
16,
9182,
16,
498,
16,
852,
1265,
16,
21178,
16,
1089,
1546,
3113,
1430,
1546,
3113,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
53... |
str = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, str def _IDC_SetAttr(object, map, attroffs, value): | errormsg = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, errormsg def _IDC_SetAttr(obj, attrmap, attroffs, value): | def _IDC_GetAttr(object, map, attroffs): """ Internal function to generically get object attributes Do not use unless you know what you are doing """ if attroffs in map and hasattr(object, map[attroffs]): return getattr(object, map[attroffs]) else: str = "attribute with offset %d not found, check the offset and report the problem" % attroffs raise KeyError, str | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
734,
39,
67,
967,
3843,
12,
1612,
16,
852,
16,
2403,
303,
1403,
87,
4672,
3536,
3186,
445,
358,
5210,
1230,
336,
733,
1677,
2256,
486,
999,
3308,
1846,
5055,
4121,
1846,
854,
9957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
734,
39,
67,
967,
3843,
12,
1612,
16,
852,
16,
2403,
303,
1403,
87,
4672,
3536,
3186,
445,
358,
5210,
1230,
336,
733,
1677,
2256,
486,
999,
3308,
1846,
5055,
4121,
1846,
854,
9957... |
block = models.BooleanField(default=False, help_text="Check to temporarily block this show from iTunes.") | block = models.BooleanField(default=False, help_text="Check to block this show from iTunes; show will remain blocked until unchecked.") | def __unicode__(self): return u'%s' % (self.name) | aaf810b6f7544cd10883ed5d4060d0f32f15fc7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7481/aaf810b6f7544cd10883ed5d4060d0f32f15fc7b/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
11,
9,
87,
11,
738,
261,
2890,
18,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
582,
11,
9,
87,
11,
738,
261,
2890,
18,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
result[event] = False | result[datas['id']] = False | def _get_rulestring(self, cr, uid, ids, name, arg, context=None): """ Get rule string. @param self: The object pointer @param cr: the current row, from the database cursor, @param id: List of calendar event's ids. @param context: A standard dictionary for contextual values @return: dictionary of rrule value. """ result = {} for datas in self.read(cr, uid, ids): if datas.get('rrule_type'): if datas.get('rrule_type') == 'none': result[event] = False elif datas.get('rrule_type') == 'custom': rrule_custom = self.compute_rule_string(cr, uid, datas) result[event] = rrule_custom else: result[event] = self.compute_rule_string(cr, uid, {'freq':\ datas.get('rrule_type').upper(), \ 'interval': 1}, context=context) | 45256557dc1239459c984a2a994a7cb3fb7c5eb0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/45256557dc1239459c984a2a994a7cb3fb7c5eb0/base_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7482,
371,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
3536,
968,
1720,
533,
18,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7482,
371,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
3536,
968,
1720,
533,
18,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
... |
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. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES: A couple of examples and test cases, note that for speed reasons a precision is given:: sage: wigner_9j(1,1,1, 1,1,1, 1,1,0 ,prec=64) # ==1/18 0.0555555555555555555 sage: wigner_9j(1,1,1, 1,1,1, 1,1,1) 0 sage: wigner_9j(1,1,1, 1,1,1, 1,1,2 ,prec=64) # ==1/18 0.0555555555555555556 sage: wigner_9j(1,2,1, 2,2,2, 1,2,1 ,prec=64) # ==-1/150 -0.00666666666666666667 sage: wigner_9j(3,3,2, 2,2,2, 3,3,2 ,prec=64) # ==157/14700 0.0106802721088435374 sage: wigner_9j(3,3,2, 3,3,2, 3,3,2 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.00944247746651111739 sage: wigner_9j(3,3,1, 3.5,3.5,2, 3.5,3.5,1 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.0110216678544351364 sage: wigner_9j(100,80,50, 50,100,70, 60,50,100 ,prec=1000)*1.0 1.05597798065761e-7 sage: wigner_9j(30,30,10, 30.5,30.5,20, 30.5,30.5,10 ,prec=1000)*1.0 # ==(80944680186359968990/95103769817469)*sqrt(1/682288158959699477295) 0.0000325841699408828 sage: wigner_9j(64,62.5,114.5, 61.5,61,112.5, 113.5,110.5,60, prec=1000)*1.0 -3.41407910055520e-39 sage: wigner_9j(15,15,15, 15,3,15, 15,18,10, prec=1000)*1.0 -0.0000778324615309539 sage: wigner_9j(1.5,1,1.5, 1,1,1, 1.5,1,1.5) 0 It is an error to have arguments that are not integer or half integer values or do not fulfil the triangle relation:: sage: wigner_9j(0.5,0.5,0.5, 0.5,0.5,0.5, 0.5,0.5,0.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation sage: wigner_9j(1,1,1, 0.5,1,1.5, 0.5,1,2.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) """ imin = 0 imax = min(j_1 + j_9, j_2 + j_6, j_4 + j_8) sumres = 0 for kk in range(imin, imax + 1): sumres = sumres + (2 * kk + 1) * \ racah(j_1, j_2, j_9, j_6, j_3, kk, prec) * \ racah(j_4, j_6, j_8, j_2, j_5, kk, prec) * \ racah(j_1, j_4, j_9, j_8, j_7, kk, prec) return sumres | 7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/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... |
if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(remote_filepath) command_output = stdout.readlines() if remove: ssh.exec_command("rm -f %s" % remote_filepath) | command = remote_filepath else: command = "ls -l %s" % remote_filepath | def attemptConnection(hostname, username, password, timeout=30, command=False, local_filepath=False, remote_filepath='/tmp/', execute=False, remove=False, sudo=False, run_as='root'): """Attempt to login to 'hostname' using 'username'/'password' and execute 'command'. Will excute the command via sudo if 'sudo' is set to True (as root by default) and optionally as a given user (run_as). Returns the connection result as a boolean and the command result as a string.""" debug("attemptConnection(%s, %s, <password>, %s, %s, %s, %s, %s, %s, %s, %s)" % (hostname, username, timeout, command, local_filepath, remote_filepath, execute, remove, sudo, run_as)) connection_result = True # TODO: Add stderr handling if hostname != "": try: ssh = paramikoConnect(hostname, username, password, timeout) if type(ssh) == type(""): # If ssh is a string that means the connection failed and 'ssh' is the detail as to why connection_result = False command_output = ssh return connection_result, command_output if local_filepath: sftpPut(ssh, local_filepath, remote_filepath) if execute: debug("Executing %s on %s" % (filename, hostname)) stdin, stdout, stderr = ssh.exec_command("chmod a+x %s" % remote_filepath) # Make it executable (a+x in case we run as another user via sudo) if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(remote_filepath) command_output = stdout.readlines() if remove: ssh.exec_command("rm -f %s" % remote_filepath) if command: if sudo: stdout, stderr = sudoExecute(transport=ssh, command=command, password=password, run_as=run_as) else: stdin, stdout, stderr = ssh.exec_command(command) command_output = stdout.readlines() elif command is False and execute is False: # If we're not given anything to execute run the uptime command to make sure that we can execute *something* stdin, stdout, stderr = ssh.exec_command('uptime') command_output = stdout.readlines() ssh.close() command_output = "".join(command_output) command_output = normalizeString(command_output) except Exception, detail: # Connection failed #traceback.print_exc() #print "Exception: %s" % detail connection_result = False command_output = detail ssh.close() return connection_result, command_output | b986f87456c68f9f6506070171008c62c0cb9aaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/b986f87456c68f9f6506070171008c62c0cb9aaf/sshpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
1952,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
33,
5082,
16,
1296,
33,
8381,
16,
1191,
67,
10561,
33,
8381,
16,
2632,
67,
10561,
2218,
19,
5645,
19,
2187,
1836,
33,
8381,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
1952,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
33,
5082,
16,
1296,
33,
8381,
16,
1191,
67,
10561,
33,
8381,
16,
2632,
67,
10561,
2218,
19,
5645,
19,
2187,
1836,
33,
8381,
16,
1... |
def test_anonymous_groups(self): kwargs = {'slug': self.slug} response = self.client.get(reverse('groups')) | def test_members(self): response = self.client.get(reverse('groups:members', args=[self.group.slug])) | def test_anonymous_groups(self): kwargs = {'slug': self.slug} | a327dee58d10a4ec17c9610bb86530b1f8514296 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11830/a327dee58d10a4ec17c9610bb86530b1f8514296/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19070,
67,
4650,
12,
2890,
4672,
1205,
273,
13666,
6436,
4278,
365,
18,
6436,
97,
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,
1842,
67,
19070,
67,
4650,
12,
2890,
4672,
1205,
273,
13666,
6436,
4278,
365,
18,
6436,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.wfile.write(cgitb.html()) except: s = StringIO.StringIO() traceback.print_exc(None, s) self.wfile.write("<pre>") self.wfile.write(cgi.escape(s.getvalue())) self.wfile.write("</pre>\n") | ts = time.ctime() self.wfile.write('''<p>%s: An error occurred. Please check the server log for more infomation.</p>'''%ts) print 'EXCEPTION AT', ts traceback.print_exc() | def run_cgi(self): """ Execute the CGI command. Wrap an innner call in an error handler so all errors can be caught. """ save_stdin = sys.stdin sys.stdin = self.rfile try: self.inner_run_cgi() except client.NotFound: self.send_error(404, self.path) except client.Unauthorised, message: self.send_error(403, '%s (%s)'%(self.path, message)) except: exc, val, tb = sys.exc_info() if hasattr(socket, 'timeout') and isinstance(val, socket.timeout): self.log_error('timeout') else: # it'd be nice to be able to detect if these are going to have # any effect... self.send_response(400) self.send_header('Content-Type', 'text/html') self.end_headers() try: reload(cgitb) self.wfile.write(cgitb.breaker()) self.wfile.write(cgitb.html()) except: s = StringIO.StringIO() traceback.print_exc(None, s) self.wfile.write("<pre>") self.wfile.write(cgi.escape(s.getvalue())) self.wfile.write("</pre>\n") sys.stdin = save_stdin | 7a2c2ed71918a0eb5ed56803e74e2aa07443850c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7a2c2ed71918a0eb5ed56803e74e2aa07443850c/roundup_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
7903,
326,
385,
13797,
1296,
18,
4266,
392,
316,
82,
1224,
745,
316,
392,
555,
1838,
1427,
777,
1334,
848,
506,
13537,
18,
3536,
1923,
67,
21772,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
7903,
326,
385,
13797,
1296,
18,
4266,
392,
316,
82,
1224,
745,
316,
392,
555,
1838,
1427,
777,
1334,
848,
506,
13537,
18,
3536,
1923,
67,
21772,
... |
event.arguments['Enable'] = doManage == (collection is not None and Sharing.isShared(collection)) | event.arguments['Enable'] = collection is not None and (doManage == Sharing.isShared(collection)) | def _onShareOrManageSidebarCollectionEventUpdateUI (self, event, doManage): """ Update the menu to reflect the selected collection name """ collection = self.getSidebarSelectedCollection () verb = (doManage and _('Manage') or _('Share')) if collection is not None: # event.arguments['Enable'] = True menuTitle = _('%s collection "%s"') % (verb, collection.displayName) else: menuTitle = _('%s a collection') % verb event.arguments ['Text'] = menuTitle event.arguments['Enable'] = doManage == (collection is not None and Sharing.isShared(collection)) | db37d53342d77250ae9380f604f6a3921c19aeb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/db37d53342d77250ae9380f604f6a3921c19aeb1/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
9535,
1162,
21258,
8895,
3215,
2532,
1133,
1891,
5370,
261,
2890,
16,
871,
16,
741,
21258,
4672,
3536,
2315,
326,
3824,
358,
3037,
326,
3170,
1849,
508,
3536,
1849,
273,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
9535,
1162,
21258,
8895,
3215,
2532,
1133,
1891,
5370,
261,
2890,
16,
871,
16,
741,
21258,
4672,
3536,
2315,
326,
3824,
358,
3037,
326,
3170,
1849,
508,
3536,
1849,
273,
365,
1... |
params += p.serialize() | params += p.serialize('utf-8') | def startTagForNode(node): if not node: return 0 result = node.name params = '' if node.properties: for p in node.properties: if p.type == 'attribute': # FIXME: This part sucks params += p.serialize() return result+params | 776600a08f9c3ed6aa65bda163d86ec3cbba209c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/776600a08f9c3ed6aa65bda163d86ec3cbba209c/xml2po.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
31058,
12,
2159,
4672,
309,
486,
756,
30,
327,
374,
225,
563,
273,
756,
18,
529,
859,
273,
875,
309,
756,
18,
4738,
30,
364,
293,
316,
756,
18,
4738,
30,
309,
293,
18,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
31058,
12,
2159,
4672,
309,
486,
756,
30,
327,
374,
225,
563,
273,
756,
18,
529,
859,
273,
875,
309,
756,
18,
4738,
30,
364,
293,
316,
756,
18,
4738,
30,
309,
293,
18,
7... |
repo = self._getRepo() | def _removePathnames(self, names): """Remove a sequence of entries""" | 17d4767c89d5ca663109b6077b88b94344a2cf34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5981/17d4767c89d5ca663109b6077b88b94344a2cf34/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
743,
1973,
12,
2890,
16,
1257,
4672,
3536,
3288,
279,
3102,
434,
3222,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4479,
743,
1973,
12,
2890,
16,
1257,
4672,
3536,
3288,
279,
3102,
434,
3222,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
canvas.setFont('Times-Bold',16) canvas.drawString(108, layout.PAGE_HEIGHT-108, Title) canvas.setFont('Times-Roman',9) | def myFirstPage(canvas, doc): canvas.saveState() canvas.setFont('Times-Bold',16) canvas.drawString(108, layout.PAGE_HEIGHT-108, Title) canvas.setFont('Times-Roman',9) canvas.restoreState() | a4f41b2bc34b6dbf776d412796f45b7bd6a19152 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a4f41b2bc34b6dbf776d412796f45b7bd6a19152/fodyssey.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
3759,
1964,
12,
15424,
16,
997,
4672,
5953,
18,
5688,
1119,
1435,
5953,
18,
13991,
1119,
1435,
225,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3399,
3759,
1964,
12,
15424,
16,
997,
4672,
5953,
18,
5688,
1119,
1435,
5953,
18,
13991,
1119,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
javaClassPath += classPathSeparator.join(configClassPath) | argv.append(classPathSeparator.join(configClassPath)) | def runSimulation(self): self._console.info("Running Simulation...") javaBin = "java" javaClassPath = "-cp " configClassPath = self._job.get("simulate/java-classpath", []) qxSeleniumPath = self._job.get("simulate/qxselenium-path", False) if qxSeleniumPath: configClassPath.append(qxSeleniumPath) classPathSeparator = ":" if util.getPlatformInfo()[0] == "Windows": classPathSeparator = ";" javaClassPath += classPathSeparator.join(configClassPath) rhinoClass = self._job.get("simulate/rhino-class", "org.mozilla.javascript.tools.shell.Main") runnerScript = self._job.get("simulate/simulator-script") cmd = "%s %s %s %s" %(javaBin, javaClassPath, rhinoClass, runnerScript) self._console.debug("Selenium start command: " + cmd) shell = ShellCmd() shell.execute_logged(cmd, self._console, True) | 82c34a68fb1137b73023eb3e1232d734011d5489 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/82c34a68fb1137b73023eb3e1232d734011d5489/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
18419,
12,
2890,
4672,
365,
6315,
8698,
18,
1376,
2932,
7051,
9587,
6234,
7070,
13,
225,
2252,
9913,
273,
315,
6290,
6,
2252,
22158,
273,
3701,
4057,
315,
642,
22158,
273,
365,
631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
18419,
12,
2890,
4672,
365,
6315,
8698,
18,
1376,
2932,
7051,
9587,
6234,
7070,
13,
225,
2252,
9913,
273,
315,
6290,
6,
2252,
22158,
273,
3701,
4057,
315,
642,
22158,
273,
365,
631... |
'%(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' | 'if NOT "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' 'if "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n' | def copy_scripts(self): """ Create each script listed in 'self.scripts' """ if not self.package_name: raise Exception("You have to inherit build_scripts_create and" " provide a package name") to_module = string.maketrans('-/', '_.') | bab22207d8bf6f2408d07596485d247fb14b6071 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/bab22207d8bf6f2408d07596485d247fb14b6071/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
12,
2890,
4672,
3536,
1788,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
11,
3536,
309,
486,
365,
18,
5610,
67,
529,
30,
1002,
1185,
2932,
6225,
1240,
358,
6811,
1361,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
12,
2890,
4672,
3536,
1788,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
11,
3536,
309,
486,
365,
18,
5610,
67,
529,
30,
1002,
1185,
2932,
6225,
1240,
358,
6811,
1361,
... |
def shortest_path_all_pairs(self): """ Uses the Floyd-Warshall algorithm to find a shortest path for each pair of vertices. | def shortest_path_all_pairs(self, by_weight=True, default_weight=1): """ Uses the Floyd-Warshall algorithm to find a shortest weighted path for each pair of vertices. The weights (labels) on the vertices can be anything that can be compared and can be summed. INPUT: by_weight -- If False, figure distances by the numbers of edges. default_weight -- (defaults to 1) The default weight to assign edges that don't have a weight (i.e., a label). | def shortest_path_all_pairs(self): """ Uses the Floyd-Warshall algorithm to find a shortest path for each pair of vertices. OUTPUT: A tuple (dist, pred). They are both dicts of dicts. The first indicates the length dist[u][v] of the shortest weighted path from u to v. The second is more complicated-- it indicates the predecessor pred[u][v] of v in the shortest path from u to v. EXAMPLE: sage: G = Graph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } ) sage: G.plot(edge_labels=True).show() sage: dist, pred = G.shortest_path_all_pairs() sage: dist {0: {0: 0, 1: 1, 2: 2, 3: 3, 4: 2}, 1: {0: 1, 1: 0, 2: 1, 3: 2, 4: 3}, 2: {0: 2, 1: 1, 2: 0, 3: 1, 4: 3}, 3: {0: 3, 1: 2, 2: 1, 3: 0, 4: 2}, 4: {0: 2, 1: 3, 2: 3, 3: 2, 4: 0}} sage: pred {0: {0: None, 1: 0, 2: 1, 3: 2, 4: 0}, 1: {0: 1, 1: None, 2: 1, 3: 2, 4: 0}, 2: {0: 1, 1: 2, 2: None, 3: 2, 4: 3}, 3: {0: 1, 1: 2, 2: 3, 3: None, 4: 3}, 4: {0: 4, 1: 0, 2: 3, 3: 4, 4: None}} sage: pred[0] {0: None, 1: 0, 2: 1, 3: 2, 4: 0} | 9139b4d0c500a44dc0edeab5a2c064186781a7f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9139b4d0c500a44dc0edeab5a2c064186781a7f6/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20579,
67,
803,
67,
454,
67,
11545,
12,
2890,
16,
635,
67,
4865,
33,
5510,
16,
805,
67,
4865,
33,
21,
4672,
3536,
14854,
326,
478,
2466,
72,
17,
59,
1178,
4886,
358,
1104,
279,
20579... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20579,
67,
803,
67,
454,
67,
11545,
12,
2890,
16,
635,
67,
4865,
33,
5510,
16,
805,
67,
4865,
33,
21,
4672,
3536,
14854,
326,
478,
2466,
72,
17,
59,
1178,
4886,
358,
1104,
279,
20579... |
sitedirs = [makepath(prefix, "lib", "python" + sys.version[:3], "site-packages"), makepath(prefix, "lib", "site-python")] | sitedirs = [os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages"), os.path.join(prefix, "lib", "site-python")] | def addpackage(sitedir, name): fullname = os.path.join(sitedir, name) try: f = open(fullname) except IOError: return while 1: dir = f.readline() if not dir: break if dir[0] == '#': continue if dir.startswith("import"): exec dir continue if dir[-1] == '\n': dir = dir[:-1] dir = makepath(sitedir, dir) if dir not in sys.path and os.path.exists(dir): sys.path.append(dir) | 6e6555e57b217e010de2b7797195ea5d46fe56c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6e6555e57b217e010de2b7797195ea5d46fe56c2/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,... |
shutil.copy(os.path.join(path, file), dest_dir) except shutil.Error: log.verbose("%s already available in dest_dir. Skipping copy!!!\n" % (file)) return True return False def stripper(item): '''Strips extra characters from "item". Breaks "item" into: url - The URL file - The actual package file size - The file size md5_text - The md5 checksum test and returns them.''' item = item.split(' ') url = string.rstrip(string.lstrip(''.join(item[0]), chars="'"), chars="'") file = string.rstrip(string.lstrip(''.join(item[1]), chars="'"), chars="'") size = int(string.rstrip(string.lstrip(''.join(item[2]), chars = "'"), chars="'")) md5_text = string.rstrip(string.lstrip(''.join(item[3]), chars = "'"), chars = "'") md5_text = string.rstrip(md5_text, chars = "\n") return url, file, size, md5_text def errfunc(errno, errormsg, filename): ''' We use errfunc to handler errors. There are some error codes (-3 and 13 as of now) which are temporary codes, they happen when there is a temporary resolution failure, for example. For such situations, we can't abort because the uri file might have other hosts also, which might be well accessible. This function does the job of behaving accordingly as per the error codes. ''' error_codes = [-3, 13, 504, 404, 10060, 104, 101010] if errno in error_codes: log.err("%s - %s - %s.%s\n" % (filename, errno, errormsg, LINE_OVERWRITE_MID)) log.verbose("Will still try with other package uris\n") pass elif errno == 10054: log.verbose("%s - %s - %s.%s\n" % (filename, errno, errormsg, LINE_OVERWRITE_SMALL) ) pass elif errno == 407 or errno == 2: log.err("%s\n" % (errormsg)) sys.exit(errno) elif errno == 1: log.err(errormsg) log.err("Explicit program termination %s\n" % (errno)) sys.exit(errno) else: log.err("I don't understand this error code %s\n" % (errno)) sys.exit(errno) def get_pager_cmd(pager_cmd = None): if os.name == 'posix': default_pager_cmd = 'less -r' elif os.name in ['nt', 'dos']: default_pager_cmd = 'type' if pager_cmd is None: try: pager_cmd = os.environ['PAGER'] except: pager_cmd = default_pager_cmd return pager_cmd class PagerCmd: """ Tries to automatically detect and set the pager on the running OS""" def __init__(self, pager_cmd = None): if os.name == 'posix': self.default_pager_cmd = 'less -r' elif os.name in ['nt', 'dos']: self.default_pager_cmd = 'type' if pager_cmd is None: try: self.pager_cmd = os.environ['PAGER'] except: self.pager_cmd = self.default_pager_cmd def send_to_pager(self, String = None): """Writes the String to the pager""" if String is None: return False else: try: retval = None pager = os.popen(self.pager_cmd, 'w') pager.write(String) retval = pager.close() except IOError,msg: if msg.args == (32,'Broken pipe'): retval = None else: retval = 1 except OSError: retval = 1 return retval def fetcher(ArgumentOptions, arg_type = None): ''' uri - The uri data whill will contain the information path - The path (if any) where the download needs to be done cache - The cache (if any) where we should check before downloading from the net arg_type - arg_type is basically used to identify wether it's a update download or upgrade download ''' cache_dir = ArgumentOptions.cache_dir if cache_dir is not None: if os.path.isdir(cache_dir) is False: log.verbose("WARNING: cache dir is incorrect. Did you give the full path ?\n") class FetcherClass(DownloadFromWeb, MyPythonLib.Archiver, MyPythonLib.Checksum): def __init__(self, width, lock): DownloadFromWeb.__init__(self, width=width) MyPythonLib.Archiver.__init__(self, lock=lock) FetcherInstance = FetcherClass(width=30, lock=True) if ArgumentOptions.download_dir is None: if os.access("pypt-downloads", os.W_OK) is True: download_path = os.path.abspath("pypt-downloads") else: try: os.umask(0002) os.mkdir("pypt-downloads") download_path = os.path.abspath("pypt-downloads") except: log.err("I couldn't create a directory") errfunc(1, '') else: if os.access(ArgumentOptions.download_dir, os.W_OK) is True: download_path = os.path.abspath(ArgumentOptions.download_dir) else: try: os.umask(0002) os.mkdir(ArgumentOptions.download_dir) download_path = os.path.abspath(ArgumentOptions.download_dir) except: log.err("I couldn't create a directory") errfunc(1, '') zip_update_file = os.path.join(os.path.abspath(download_path), ArgumentOptions.zip_update_file) zip_upgrade_file = os.path.join(os.path.abspath(download_path), ArgumentOptions.zip_upgrade_file) if ArgumentOptions.deb_bugs: if DebianBTS is True: if ArgumentOptions.zip_it: FetchBugReportsDebian = FetchBugReports(pypt_bug_file_format, IgnoredBugTypes, zip_upgrade_file, lock=True) else: FetchBugReportsDebian = FetchBugReports(pypt_bug_file_format, IgnoredBugTypes) else: log.err("Couldn't find debianbts module.\n Cannot fetch Bug Reports.\n") FetchData = {} if ArgumentOptions.fetch_update: try: raw_data_list = open(ArgumentOptions.fetch_update, 'r').readlines() except IOError, (errno, strerror): log.err("%s %s\n" % (errno, strerror)) errfunc(errno, '') FetchData['Update'] = [] for item in raw_data_list: FetchData['Update'].append(item) if os.access(os.path.join(download_path, ArgumentOptions.zip_update_file), os.F_OK): log.err("%s already present.\nRemove it first.\n" % (zip_update_file) ) sys.exit(1) if ArgumentOptions.fetch_upgrade: try: raw_data_list = open(ArgumentOptions.fetch_upgrade, 'r').readlines() except IOError, (errno, strerror): log.err("%s %s\n" % (errno, strerror)) errfunc(errno, '') FetchData['Upgrade'] = [] for item in raw_data_list: FetchData['Upgrade'].append(item) if os.access(os.path.join(download_path, ArgumentOptions.zip_upgrade_file), os.F_OK): log.err("%s already present.\nRemove it first.\n" % (zip_upgrade_file) ) sys.exit(1) del raw_data_list if sys.platform == 'darwin': log.verbose("Running on Mac OS! pypt-offline doesn't have proper support for Threads on Mac OS X.\n") log.verbose("Running in the conventional non-threaded way.\n") for key in FetchData.keys(): for item in FetchData.get(key): (url, file, download_size, checksum) = stripper(each_single_item) if key == 'Update': temp_file = file.split("_") PackageName = temp_file[0] PackageName += " - " + temp_file[len(temp_file) - 1] del temp_file log.msg("Downloading %s.%s\n" % (PackageName, LINE_OVERWRITE_MID) ) if FetcherInstance.download_from_web(url, file, download_path) != True: errlist.append(file) else: log.success("%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(zip_update_file, file) != True: log.verbose("%s added to archive %s.\n" % (file, zip_update_file) ) os.unlink(os.path.join(download_path, file) ) pass elif key == 'Upgrade': PackageName = file.split("_")[0] if cache_dir is None: log.msg("Downloading %s - %s %s\n" % (file, size/1024, LINE_OVERWRITE_FULL) ) if FetcherInstance.download_from_web(url, file, download_path) != True: errlist.append(PackageName) else: if ArgumentOptions.deb_bugs: bug_fetched = 0 if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.\n" % (PackageName) ) bug_fetched = 1 else: log.verbose("Couldn't fetch bug reports for package %s.\n" % (PackageName) ) if ArgumentOptions.zip_it: log.success("%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) FetcherInstance.compress_the_file(zip_upgrade_file, file) os.unlink(os.path.join(download_path, file)) if bug_fetched: if FetchBugReportsDebian.AddToArchive(zip_upgrade_file): log.verbose("Archived bug reports for package %s to archive %s\n" % (PackageName, zip_upgrade_file) ) else: if find_first_match(cache_dir, file, download_path, checksum) == False: log.msg("Downloading %s - %d KB%s\n" % (PackageName, size/1024, LINE_OVERWRITE_MID) ) if FetcherInstance.download_from_web(url, file, download_path) != True: errlist.append(PackageName) else: log.success("%s done.%s\n" % (PackageName, LINE_OVERWRITE_FULL) ) if os.access(os.path.join(cache_dir, file), os.F_OK): log.verbose("%s file is already present in cache-dir %s. Skipping copy.\n" % (file, cache_dir) ) else: if os.access(cache_dir, os.W_OK): shutil.copy(file, cache_dir) log.verbose("%s copied to %s\n" % (file, cache_dir)) else: log.verbose("Cannot copy %s to %s. Is %s writeable??\n" % (file, cache_dir)) if ArgumentOptions.deb_bugs: if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.\n" % (PackageName) ) else: log.verbose("Couldn't fetch bug reports for package %s.\n" % (PackageName) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(zip_upgrade_file, file) != True: log.err("Couldn't add %s to archive %s.\n" % (file, zip_upgrade_file) ) sys.exit(1) else: log.verbose("%s added to archive %s.\n" % (file, zip_upgrade_file) ) os.unlink(os.path.join(download_path, file)) elif True: if ArgumentOptions.deb_bugs: bug_fetched = 0 if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]: log.verbose("Fetched bug reports for package %s.\n" % (PackageName) ) bug_fetched = 1 else: log.err("Couldn't fetch bug reports for package %s.\n" % (PackageName) ) if ArgumentOptions.zip_it: if FetcherInstance.compress_the_file(zip_upgrade_file, file) != True: log.err("Couldn't add %s to archive %s.\n" % (file, zip_upgrade_file) ) sys.exit(1) else: log.verbose("%s added to archive %s.\n" % (file, zip_upgrade_file) ) os.unlink(os.path.join(download_path, file)) else: if bug_fetched == 1: for x in os.listdir(os.curdir): if (x.startswith(PackageName) and x.endswith(pypt_bug_file_format) ): shutil.move(x, download_path) log.verbose("Moved %s file to %s folder.\n" % (x, download_path) ) else: raise FetchDataKeyError else: | raw_data_list = open( ArgumentOptions.fetch_upgrade, 'r' ).readlines() except IOError, ( errno, strerror ): log.err( "%s %s\n" % ( errno, strerror ) ) errfunc( errno, '' ) FetchData['Upgrade'] = [] for item in raw_data_list: FetchData['Upgrade'].append( item ) if os.access( os.path.join( download_path, ArgumentOptions.zip_upgrade_file ), os.F_OK ): log.err( "%s already present.\nRemove it first.\n" % ( zip_upgrade_file ) ) sys.exit( 1 ) del raw_data_list | def copy_first_match(cache_dir, filename, dest_dir, checksum): # aka new_walk_tree_copy() '''Walks into "reposiotry" looking for "filename". If found, copies it to "dest_dir" but first verifies their md5 "checksum".''' # If the repository is not given, we'll return None because the user wants to download # it from the web # There's no need to walk also because the user knows that he doesn't have any cache_dir # Earlier implementation of having a default dir (os.curdir()) hit performance badly because # at times it would start the walk from "C:\" or "/" if cache_dir is None: return False for path, file in files(cache_dir): if file == filename: #INFO: md5check is compulsory here # There's no point in checking for the disable-md5 option because # copying a damaged file is of no use if pypt_md5_check.CheckHashDigest(file, checksum, path) == True: try: shutil.copy(os.path.join(path, file), dest_dir) except shutil.Error: log.verbose("%s already available in dest_dir. Skipping copy!!!\n" % (file)) return True return False | 633e729fafe639c8598b2bed45f16557d7c7726b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12499/633e729fafe639c8598b2bed45f16557d7c7726b/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
3645,
67,
1916,
12,
2493,
67,
1214,
16,
1544,
16,
1570,
67,
1214,
16,
6697,
4672,
468,
28105,
394,
67,
11348,
67,
3413,
67,
3530,
1435,
9163,
9463,
87,
1368,
315,
15564,
1594... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
3645,
67,
1916,
12,
2493,
67,
1214,
16,
1544,
16,
1570,
67,
1214,
16,
6697,
4672,
468,
28105,
394,
67,
11348,
67,
3413,
67,
3530,
1435,
9163,
9463,
87,
1368,
315,
15564,
1594... |
raise Invalid("Thanks for your keenness, but you've already registered!") | raise Invalid("Thanks for your keenness, but you've already registered!", value, state) | def validate_python(self, value, state): rego = None if 'signed_in_person_id' in session: rego = Query(model.Registration).get_by(person_id=session['signed_in_person_id']) if rego is not None: raise Invalid("Thanks for your keenness, but you've already registered!") | e117640977d5c2ca413c902e00431bd3a2bf1146 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/e117640977d5c2ca413c902e00431bd3a2bf1146/registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
8103,
12,
2890,
16,
460,
16,
919,
4672,
960,
83,
273,
599,
309,
296,
5679,
67,
267,
67,
12479,
67,
350,
11,
316,
1339,
30,
960,
83,
273,
2770,
12,
2284,
18,
7843,
2934,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
8103,
12,
2890,
16,
460,
16,
919,
4672,
960,
83,
273,
599,
309,
296,
5679,
67,
267,
67,
12479,
67,
350,
11,
316,
1339,
30,
960,
83,
273,
2770,
12,
2284,
18,
7843,
2934,
5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.