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.mk...
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...
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_n...
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, shortn...
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 exc...
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 a...
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 = "...
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 nam...
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, resul...
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) el...
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_keys...
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_a...
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 ...
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('a...
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:...
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 ...
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, "imp...
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...
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.tit...
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()...
#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, N...
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._handl...
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 Un...
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 ...
"""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 ...
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.askConti...
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: pri...
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_in...
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' * 2...
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&lt;).*?(&gt;.*?)'+declPattern+r'(.*?</tr>)', r'\1...\2\3\4', text)
text = re.sub(r'(<td nowrap align=right valign=top>template&lt;).*?(&gt;.*?)'+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>&nbsp;\1</b><br>&nbsp;'...
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...
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.ST...
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_p...
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', 'surroga...
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...
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'...
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 .c...
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...
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): ret...
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...
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 = strin...
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_de...
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 versio...
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(''' &gt; <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(''' &gt; <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 t...
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 ...
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...
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....
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...
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)'%(se...
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 c...
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 = "...
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 num...
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 ...
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.p...
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 m...
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....
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...
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...