rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) multicall = xmlrpclib.MultiCall(p) multicall.add(2,3) multicall.pow(6,8) multicall.div(127,42) add_result, pow_result, div_result = multicall() self.assertEqual(add_result, 2+3) self.assertEqual(pow_result, 6**8) self.assertEqual(div_result, 127//42)
try: p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) multicall = xmlrpclib.MultiCall(p) multicall.add(2,3) multicall.pow(6,8) multicall.div(127,42) add_result, pow_result, div_result = multicall() self.assertEqual(add_result, 2+3) self.assertEqual(pow_result, 6**8) self.assertEqual(div_result, 127//42) except x...
def test_multicall(self): p = xmlrpclib.ServerProxy('http://localhost:%d' % PORT) multicall = xmlrpclib.MultiCall(p) multicall.add(2,3) multicall.pow(6,8) multicall.div(127,42) add_result, pow_result, div_result = multicall() self.assertEqual(add_result, 2+3) self.assertEqual(pow_result, 6**8) self.assertEqual(div_resu...
c65a5f1b14ff6bd995d7cb102e5b4577ce0f16e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/c65a5f1b14ff6bd995d7cb102e5b4577ce0f16e2/test_xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5421, 335, 454, 12, 2890, 4672, 293, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 2668, 2505, 2207, 13014, 5319, 72, 11, 738, 20987, 13, 1778, 335, 454, 273, 2025, 13832, 830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5421, 335, 454, 12, 2890, 4672, 293, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 2668, 2505, 2207, 13014, 5319, 72, 11, 738, 20987, 13, 1778, 335, 454, 273, 2025, 13832, 830, ...
return v
return v
def _coset_reduction_data_second_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
eb301dff111c888467560bbc7545e7b8e22d5329 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/eb301dff111c888467560bbc7545e7b8e22d5329/congroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 8538, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 8538, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
return self.xd.domain_usb_add(self.dom.getName(), req)
return self.xd.domain_usb_del(self.dom.getName(), req)
def do_usb_del(self, _, req): return self.xd.domain_usb_add(self.dom.getName(), req)
ed101a7a9400b17b6aa3931339adc5e48bfaf874 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/ed101a7a9400b17b6aa3931339adc5e48bfaf874/SrvDomain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 25525, 67, 3771, 12, 2890, 16, 389, 16, 1111, 4672, 327, 365, 18, 7669, 18, 4308, 67, 25525, 67, 1289, 12, 2890, 18, 9859, 18, 17994, 9334, 1111, 13, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 25525, 67, 3771, 12, 2890, 16, 389, 16, 1111, 4672, 327, 365, 18, 7669, 18, 4308, 67, 25525, 67, 1289, 12, 2890, 18, 9859, 18, 17994, 9334, 1111, 13, 2, -100, -100, -100, -1...
WHERE job_state="%s" ; AND time < ADDTIME(CURRENT_TIMESTAMP,'-%s') """ % (
WHERE job_state="%s" AND time < ADDTIME(CURRENT_TIMESTAMP,'-%s'); """ % (
def getJobsByState(state, cooloff = "00:00:00"): """ _getJobsByState_ Return a dict of job_spec_id : job_index for all jobs in the state specified """ connection = connect() sqlStr = """SELECT job_spec_id, job_index FROM ct_job WHERE job_state="%s" ; AND time < ADDTIME(CURRENT_TIMESTAMP,'-%s') """ % ( state, coolof...
bf41dac80b7f2a2c7332dc20dc6bb87c9caa55f6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/bf41dac80b7f2a2c7332dc20dc6bb87c9caa55f6/CondorTrackerDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7276, 858, 1119, 12, 2019, 16, 27367, 3674, 273, 315, 713, 30, 713, 30, 713, 6, 4672, 3536, 389, 588, 7276, 858, 1119, 67, 225, 2000, 279, 2065, 434, 1719, 67, 2793, 67, 350, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7276, 858, 1119, 12, 2019, 16, 27367, 3674, 273, 315, 713, 30, 713, 30, 713, 6, 4672, 3536, 389, 588, 7276, 858, 1119, 67, 225, 2000, 279, 2065, 434, 1719, 67, 2793, 67, 350, 29...
self.__updateJobStatus('Waiting','Pilot Agent Submission')
self.__updateJobStatus(job,'Waiting','Pilot Agent Submission')
def __preparePilot(self,job,classadJob,attributes): """The pilot agent job can now be formulated for a job that is deemed eligible. """ jdlCPU = 0 if classadJob.lookupAttribute("MaxCPUTime"): jdlCPU = int(string.replace(classadJob.get_expression("MaxCPUTime"),'"','') )
e4e152162784e68280a5aedde1e5bad201fa5992 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e4e152162784e68280a5aedde1e5bad201fa5992/AgentDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9366, 52, 22797, 12, 2890, 16, 4688, 16, 1106, 361, 2278, 16, 4350, 4672, 3536, 1986, 293, 22797, 4040, 1719, 848, 2037, 506, 646, 11799, 364, 279, 1719, 716, 353, 443, 351, 329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9366, 52, 22797, 12, 2890, 16, 4688, 16, 1106, 361, 2278, 16, 4350, 4672, 3536, 1986, 293, 22797, 4040, 1719, 848, 2037, 506, 646, 11799, 364, 279, 1719, 716, 353, 443, 351, 329, ...
"""Add a button with given name to box.""" btn = apply(self.tk.call, (self._w, 'add', name) + self._options(cnf, kw)) self.subwidget_list[name] = _dummyButton(self, name) return btn
"""Add a button with given name to box.""" btn = apply(self.tk.call, (self._w, 'add', name) + self._options(cnf, kw)) self.subwidget_list[name] = _dummyButton(self, name) return btn
def add(self, name, cnf={}, **kw):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if print_descr:
if print_desc:
def _cfg_string(self, prefix, print_descr=True): ret = [] desc = self._descr.encode(ENCODING, 'replace').replace('\n', '\n# ') if prefix: if print_descr: ret.append('#\n# %s\n# %s\n#\n' % (prefix, desc)) prefix += '.' for name in self._vars: var = self._dict[name] ret.append(var._cfg_string(prefix, print_descr)) retur...
513f97ca83b44ea792b8e169cb28ed0b3e8c402e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/513f97ca83b44ea792b8e169cb28ed0b3e8c402e/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 1080, 12, 2890, 16, 1633, 16, 1172, 67, 28313, 33, 5510, 4672, 325, 225, 273, 5378, 3044, 273, 365, 6315, 28313, 18, 3015, 12, 14672, 16, 296, 2079, 16063, 2079, 2668, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 1080, 12, 2890, 16, 1633, 16, 1172, 67, 28313, 33, 5510, 4672, 325, 225, 273, 5378, 3044, 273, 365, 6315, 28313, 18, 3015, 12, 14672, 16, 296, 2079, 16063, 2079, 2668, 6...
'Semistandard tableaux of size 3' """ return "Semistandard tableaux of size %s"%str(self.n)
'Semistandard tableaux of size 3 and maximum entry 3' sage: repr(SemistandardTableaux(3, max_entry=6)) 'Semistandard tableaux of size 3 and maximum entry 6' """ return "Semistandard tableaux of size %s and maximum entry %s"%(str(self.n), str(self.max_entry))
def __repr__(self): """ TESTS:: sage: repr(SemistandardTableaux(3)) 'Semistandard tableaux of size 3' """ return "Semistandard tableaux of size %s"%str(self.n)
6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 8480, 12, 13185, 376, 2958, 1388, 18196, 12, 23, 3719, 296, 13185, 376, 2958, 1014, 18196, 434, 963, 890, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 22130, 55, 2866, 225, 272, 410, 30, 8480, 12, 13185, 376, 2958, 1388, 18196, 12, 23, 3719, 296, 13185, 376, 2958, 1014, 18196, 434, 963, 890, 11, ...
101197: 'cvsadmin'}
101197: 'cvsadmin', 'cvsextras': 100300, 'cvsadmin': 101197}
def __init__(self, fas = None): self.fas = fas controllers.Controller.__init__(self) # We want to expose a list of public methods to the outside world so # they know what RPC's they can make ### FIXME: It seems like there should be a better way. self.methods = [ m for m in dir(self) if hasattr(getattr(self, m), 'expose...
a1aa3d99c4e22dd1b3ff8a1c604c1595f3d3898f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/a1aa3d99c4e22dd1b3ff8a1c604c1595f3d3898f/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 345, 273, 599, 4672, 365, 18, 74, 345, 273, 284, 345, 12403, 18, 2933, 16186, 2738, 972, 12, 2890, 13, 468, 1660, 2545, 358, 15722, 279, 666, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 345, 273, 599, 4672, 365, 18, 74, 345, 273, 284, 345, 12403, 18, 2933, 16186, 2738, 972, 12, 2890, 13, 468, 1660, 2545, 358, 15722, 279, 666, 434, ...
TerminateProcess(self._handle, 1)
_subprocess.TerminateProcess(self._handle, 1)
def terminate(self): """Terminates the process """ TerminateProcess(self._handle, 1)
bfcbec5091d1f60c18c1f9c12171de7a06cc742c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/bfcbec5091d1f60c18c1f9c12171de7a06cc742c/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10850, 12, 2890, 4672, 3536, 4065, 4174, 326, 1207, 3536, 23945, 2227, 12, 2890, 6315, 4110, 16, 404, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10850, 12, 2890, 4672, 3536, 4065, 4174, 326, 1207, 3536, 23945, 2227, 12, 2890, 6315, 4110, 16, 404, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
shit = list(re.search(r"& for i in range(len(shit)): shit[i] = int(shit[i]) - 48
def anti_obusfaction(text): shit = list(re.search(r"&#([0-9]{2}?);", text).groups()) for i in range(len(shit)): shit[i] = int(shit[i]) - 48 # replacing "&#[two digits number];" with "[number - 48]" out = "" i = 0 while i < len(text): if i + 3 < len(text) and text[i] == "&" and text[i+1] == "#": for j in str(shit.pop(0...
707c7814ccd4ca1dec8fe3c1a8a474993edb76c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14156/707c7814ccd4ca1dec8fe3c1a8a474993edb76c0/novgorod-temperature.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30959, 67, 947, 407, 507, 349, 12, 955, 4672, 699, 305, 273, 666, 12, 266, 18, 3072, 12, 86, 6, 18642, 3816, 20, 17, 29, 7073, 22, 15622, 1769, 3113, 977, 2934, 4650, 10756, 364, 277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30959, 67, 947, 407, 507, 349, 12, 955, 4672, 699, 305, 273, 666, 12, 266, 18, 3072, 12, 86, 6, 18642, 3816, 20, 17, 29, 7073, 22, 15622, 1769, 3113, 977, 2934, 4650, 10756, 364, 277...
summary_format = "Note: [N] DnaLadder(s) were already in desired PAM model"
summary_format = "Note: [N] DnaLadder(s) were/was already in desired PAM model"
def _convert_to_pam(self, pam_model): #bruce 080401 """ [private helper for _f_convert_pam_if_desired; other calls might be added] Assume self is not already in pam_model but wants to be. If conversion to pam_model can succeed, then do it by destructively modifying self's atoms, but preserve their identity (except fo...
9d979540a0255d403c6eaa76166854a9192ef953 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/9d979540a0255d403c6eaa76166854a9192ef953/DnaLadder_pam_conversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 67, 869, 67, 84, 301, 12, 2890, 16, 293, 301, 67, 2284, 4672, 468, 2848, 3965, 16314, 3028, 1611, 3536, 306, 1152, 4222, 364, 389, 74, 67, 6283, 67, 84, 301, 67, 430, 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, 389, 6283, 67, 869, 67, 84, 301, 12, 2890, 16, 293, 301, 67, 2284, 4672, 468, 2848, 3965, 16314, 3028, 1611, 3536, 306, 1152, 4222, 364, 389, 74, 67, 6283, 67, 84, 301, 67, 430, 67, ...
write_element(writer, 4, 'Resource type', metadata.resource_type)
row = metadata.resource_type if row and not isinstance(row, Exception): row = [vocab2row(row, [])] writer.writerows(iter_element_values(4, 'Resource type', row))
def write_element(writer, number, name, element): if isinstance(element, Exception): row = [number, name, 'ERROR', element.message, element.detail] else: row = [number, name, element]
01c6922505889d13c76f9c0fbd50f05cd367fc67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12122/01c6922505889d13c76f9c0fbd50f05cd367fc67/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2956, 12, 6299, 16, 1300, 16, 508, 16, 930, 4672, 309, 1549, 12, 2956, 16, 1185, 4672, 1027, 273, 306, 2696, 16, 508, 16, 296, 3589, 2187, 930, 18, 2150, 16, 930, 18, 8992,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2956, 12, 6299, 16, 1300, 16, 508, 16, 930, 4672, 309, 1549, 12, 2956, 16, 1185, 4672, 1027, 273, 306, 2696, 16, 508, 16, 296, 3589, 2187, 930, 18, 2150, 16, 930, 18, 8992,...
currect, QuickDraw.srcCopy, None)
currect, QuickDraw.srcCopy+QuickDraw.ditherCopy, None)
def do_update(self, *args): pass currect = self.fitrect() print 'PICT:', self.pictrect print 'WIND:', currect print 'ARGS:', (self.pixmap, self.wid.GetWindowPort().portBits, self.pictrect, currect, QuickDraw.srcCopy, None) self.info() Qd.CopyBits(self.pixmap, self.wid.GetWindowPort().portBits, self.pictrect, currect, Q...
0bb9c932ddbcba865bca7dfe03150b41fdfbf3a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0bb9c932ddbcba865bca7dfe03150b41fdfbf3a3/imgbrowse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2725, 12, 2890, 16, 380, 1968, 4672, 1342, 662, 2607, 273, 365, 18, 7216, 2607, 1435, 1172, 296, 1102, 1268, 30, 2187, 365, 18, 84, 933, 2607, 1172, 296, 16597, 30, 2187, 662,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2725, 12, 2890, 16, 380, 1968, 4672, 1342, 662, 2607, 273, 365, 18, 7216, 2607, 1435, 1172, 296, 1102, 1268, 30, 2187, 365, 18, 84, 933, 2607, 1172, 296, 16597, 30, 2187, 662,...
server_response = atom.service.AtomService.Put(self, http_data, uri,
server_response = self.handler.Put(self, http_data, uri,
def Put(self, data, uri, extra_headers=None, url_params=None, escape_params=True, redirects_remaining=3, media_source=None, converter=None): """Updates an entry at the given URI. Args: data: string, ElementTree._Element, or xml_wrapper.ElementWrapper The XML containing the updated data. uri: string A URI indicating en...
f4e4fa7b0eaaccc3212e3dc01e8717614dbe64ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10620/f4e4fa7b0eaaccc3212e3dc01e8717614dbe64ac/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4399, 12, 2890, 16, 501, 16, 2003, 16, 2870, 67, 2485, 33, 7036, 16, 880, 67, 2010, 33, 7036, 16, 4114, 67, 2010, 33, 5510, 16, 18064, 67, 17956, 33, 23, 16, 3539, 67, 3168, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4399, 12, 2890, 16, 501, 16, 2003, 16, 2870, 67, 2485, 33, 7036, 16, 880, 67, 2010, 33, 7036, 16, 4114, 67, 2010, 33, 5510, 16, 18064, 67, 17956, 33, 23, 16, 3539, 67, 3168, 33, 70...
result = s.recv(1024)
result = self.s.recv(1024)
def testSocketNotConnected(self): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.send(MSG) except socket.error, se: self.failUnlessEqual(se[0], errno.ENOTCONN) except Exception, x: self.fail("Send on unconnected socket raised wrong exception: %s" % x) else: self.fail("Send on unconnected socket raised exc...
c75e71ddaa629b10becc0eb9d61b274962f35edf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/c75e71ddaa629b10becc0eb9d61b274962f35edf/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4534, 1248, 8932, 12, 2890, 4672, 272, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 775, 30, 272, 18, 4661, 12, 11210, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4534, 1248, 8932, 12, 2890, 4672, 272, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 775, 30, 272, 18, 4661, 12, 11210, 13, 1335, ...
self.id = ''
self.hierarchy = ''
def __init__(self): self.pdb = '' self.domain = '' self.id = '' self.locations = [] self.klass = '' self.fold = '' self.superfamily = '' self.family = '' self.protein = '' self.species = ''
9bf1c4c6c486210d0627b3e8feda842ff96939a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/9bf1c4c6c486210d0627b3e8feda842ff96939a2/Lin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 17414, 273, 875, 365, 18, 4308, 273, 875, 365, 18, 17937, 273, 875, 365, 18, 12352, 273, 5378, 365, 18, 22626, 273, 875, 365, 18, 16007, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 17414, 273, 875, 365, 18, 4308, 273, 875, 365, 18, 17937, 273, 875, 365, 18, 12352, 273, 5378, 365, 18, 22626, 273, 875, 365, 18, 16007, 273, ...
if not(hasattr(node, "tag")): node = node.getroot() if node.tag in ("<DOCUMENT_ROOT>", "<DOCUMENT_FRAGMENT>"):
elif isinstance(node, Root):
def getNodeDetails(self, node): if isinstance(node, tuple): # Text node node, key = node assert key in ("text", "tail"), _("Text nodes are text or tail, found %s") % key return _base.TEXT, getattr(node, key)
9f8929b3c1aa45dde04c67104c4080ea766a208b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9368/9f8929b3c1aa45dde04c67104c4080ea766a208b/lxmletree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5973, 3790, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 3193, 4672, 468, 3867, 756, 756, 16, 498, 273, 756, 1815, 498, 316, 7566, 955, 3113, 315, 13101, 6, 3631, 389, 2932, 1528,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5973, 3790, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 3193, 4672, 468, 3867, 756, 756, 16, 498, 273, 756, 1815, 498, 316, 7566, 955, 3113, 315, 13101, 6, 3631, 389, 2932, 1528,...
( '/etc/fstab', '/path/to/existing/file', '../path/to/existing/file' ),
( '/etc/hosts', '/path/to/existing/file', '../path/to/existing/file' ),
def test_get_link_path(self): if os.sep == '/': inputs = [ ( '/tmp/', '/tmp/bar.txt', 'bar.txt' ), ( '/tmp', '/tmp/x/bar.txt', 'x/bar.txt' ), ( '/tmp/', '/tmp/x/y/bar.txt', 'x/y/bar.txt' ), ( '/tmp/', '/tmp/x/y/z/bar.txt', 'x/y/z/bar.txt' ), ( '/tmp', '/x/y/z/bar.txt', '../x/y/z/bar.txt' ), ( '/tmp/', '/x/y/z/bar.txt',...
846b6eb966794ffe37f06f7e2b6c720d1e51b1da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/846b6eb966794ffe37f06f7e2b6c720d1e51b1da/test_misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 1232, 67, 803, 12, 2890, 4672, 309, 1140, 18, 10814, 422, 2023, 30, 4540, 273, 306, 261, 1173, 5645, 19, 2187, 1173, 5645, 19, 3215, 18, 5830, 2187, 296, 3215, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 1232, 67, 803, 12, 2890, 4672, 309, 1140, 18, 10814, 422, 2023, 30, 4540, 273, 306, 261, 1173, 5645, 19, 2187, 1173, 5645, 19, 3215, 18, 5830, 2187, 296, 3215, 18, ...
return c._get() & ~self._n != 0
return c._get() & self._n != 0
def get(self): c = self._control return c._get() & ~self._n != 0
1b369544bed44835043fbfbfd9257284768ac8e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3428/1b369544bed44835043fbfbfd9257284768ac8e2/keyboardleds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 276, 273, 365, 6315, 7098, 327, 276, 6315, 588, 1435, 473, 4871, 2890, 6315, 82, 480, 374, 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, 336, 12, 2890, 4672, 276, 273, 365, 6315, 7098, 327, 276, 6315, 588, 1435, 473, 4871, 2890, 6315, 82, 480, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
msgs = getexportmsgs()
patches = [] commands.export(ui, repo, *revs, **{'output': exportee(patches), 'switch_parent': False, 'text': None, 'git': opts.get('git')}) msgs = getpatchmsgs(patches)
def getbundlemsgs(bundle): subj = (opts.get('subject') or prompt('Subject:', default='A bundle for your repository'))
5f8789270dde0ad495a09fe99904cd9d88a6585b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/5f8789270dde0ad495a09fe99904cd9d88a6585b/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9991, 27439, 12, 9991, 4672, 15333, 273, 261, 4952, 18, 588, 2668, 7857, 6134, 578, 6866, 2668, 6638, 30, 2187, 805, 2218, 37, 3440, 364, 3433, 3352, 26112, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 9991, 27439, 12, 9991, 4672, 15333, 273, 261, 4952, 18, 588, 2668, 7857, 6134, 578, 6866, 2668, 6638, 30, 2187, 805, 2218, 37, 3440, 364, 3433, 3352, 26112, 2, -100, -100, -100, -10...
if self.manager.debug_flag: self.log('POSTING Feed to GSA %s ' % self.manager.gsa)
if self._manager.debug_flag: self.log('POSTING Feed to GSA %s ' % self._manager.gsa)
def encode_multipart_formdata(xmldata): BOUNDARY = '<<' CRLF = '\r\n' L = [] L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="datasource"') L.append('Content-Type: text/plain') L.append('') L.append(self.name)
961821a20ae2dbd3026d4f99905a647760874cd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6393/961821a20ae2dbd3026d4f99905a647760874cd0/connectormanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 16404, 67, 687, 892, 12, 2902, 892, 4672, 9784, 5240, 6043, 273, 2368, 32, 11, 21791, 273, 2337, 86, 64, 82, 11, 511, 273, 5378, 511, 18, 6923, 2668, 413, 11, 397, 9784, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 16404, 67, 687, 892, 12, 2902, 892, 4672, 9784, 5240, 6043, 273, 2368, 32, 11, 21791, 273, 2337, 86, 64, 82, 11, 511, 273, 5378, 511, 18, 6923, 2668, 413, 11, 397, 9784, 52...
- [Edmonds74] 'Angular Momentum in Quantum Mechanics',
.. [Edmonds74] 'Angular Momentum in Quantum Mechanics',
def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat...
88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
server = Server("http://betty.userland.com")
server = ServerProxy("http://betty.userland.com")
def __getattr__(self, name): # magic method dispatcher return _Method(self.__request, name)
78eedce3ffabc0c8d5af988ab7f72d3749f995db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78eedce3ffabc0c8d5af988ab7f72d3749f995db/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 468, 8146, 707, 7393, 327, 389, 1305, 12, 2890, 16186, 2293, 16, 508, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 468, 8146, 707, 7393, 327, 389, 1305, 12, 2890, 16186, 2293, 16, 508, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def append_fields(base, names, data=None, dtypes=None,
def append_fields(base, names, data=None, dtypes=None,
def append_fields(base, names, data=None, dtypes=None, fill_value=-1, usemask=True, asrecarray=False): """ Add new fields to an existing array. The names of the fields are given with the `names` arguments, the corresponding values with the `data` arguments. If a single field is appended, `names`, `data` and `dtypes` d...
8d227b3f6d8e882676ce43a6651c20409b01bd96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/8d227b3f6d8e882676ce43a6651c20409b01bd96/recfunctions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 2821, 12, 1969, 16, 1257, 16, 501, 33, 7036, 16, 22441, 33, 7036, 16, 3636, 67, 1132, 29711, 21, 16, 999, 4455, 33, 5510, 16, 487, 3927, 1126, 33, 8381, 4672, 3536, 1436, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 2821, 12, 1969, 16, 1257, 16, 501, 33, 7036, 16, 22441, 33, 7036, 16, 3636, 67, 1132, 29711, 21, 16, 999, 4455, 33, 5510, 16, 487, 3927, 1126, 33, 8381, 4672, 3536, 1436, 39...
individual_test_timings: List of dump_render_tree_thread.TestStats for all tests.
individual_test_timings: List of dump_render_tree_thread.TestStats for all tests.
def _print_individual_test_times(self, write, individual_test_timings, result_summary): """Prints the run times for slow, timeout and crash tests. Args: write: A callback to write info to (e.g., a LoggingWriter) or sys.stdout.write. individual_test_timings: List of dump_render_tree_thread.TestStats for all tests. resul...
26394c49216e73c421310e10692ee2f0b897ce41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/26394c49216e73c421310e10692ee2f0b897ce41/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 22032, 5557, 67, 3813, 67, 8293, 12, 2890, 16, 1045, 16, 7327, 67, 3813, 67, 8584, 899, 16, 563, 67, 7687, 4672, 3536, 15402, 326, 1086, 4124, 364, 11816, 16, 2021, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 22032, 5557, 67, 3813, 67, 8293, 12, 2890, 16, 1045, 16, 7327, 67, 3813, 67, 8584, 899, 16, 563, 67, 7687, 4672, 3536, 15402, 326, 1086, 4124, 364, 11816, 16, 2021, 471,...
self.window.connect("destroy", self.destroy) self.window.connect("size-allocate", self.window_resized) self.window.connect('key-press-event', self.topwindow_keypress) self.layout.drag_dest_set(gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP, [("text/uri-list", 0, 80)], gtk.gdk.ACTION_DEFAULT) self.layout.connect('dr...
self.window.connect("destroy", self.destroy) self.window.connect("size-allocate", self.window_resized) self.window.connect('key-press-event', self.topwindow_keypress) self.layout.drag_dest_set(gtk.DEST_DEFAULT_HIGHLIGHT | gtk.DEST_DEFAULT_DROP, [("text/uri-list", 0, 80)], gtk.gdk.ACTION_DEFAULT) self.layout.connect('dr...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
gp.path = line[8:].rstrip()
gp.path = line[8:]
def readgitpatch(lr): """extract git-style metadata about patches from <patchname>""" # Filter patch for git information gp = None gitpatches = [] # Can have a git patch with only metadata, causing patch to complain dopatch = 0 lineno = 0 for line in lr: lineno += 1 if line.startswith('diff --git'): m = gitre.match(l...
be5497a5fc601c2dd2fa6a4688b100383b0f1202 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/be5497a5fc601c2dd2fa6a4688b100383b0f1202/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 6845, 2272, 12, 10826, 4672, 3536, 8004, 5071, 17, 4060, 1982, 2973, 16482, 628, 411, 2272, 529, 2984, 3660, 225, 468, 4008, 4729, 364, 5071, 1779, 4178, 273, 599, 5071, 30278, 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, 855, 6845, 2272, 12, 10826, 4672, 3536, 8004, 5071, 17, 4060, 1982, 2973, 16482, 628, 411, 2272, 529, 2984, 3660, 225, 468, 4008, 4729, 364, 5071, 1779, 4178, 273, 599, 5071, 30278, 273, ...
self.msg('IAC %s %d', c == DO and 'DO' or 'DONT', ord(c)) self.sock.send(IAC + WONT + opt)
self.msg('IAC %s %d', c == DO and 'DO' or 'DONT', ord(opt)) if self.option_callback: self.option_callback(self.sock, c, opt) else: self.sock.send(IAC + WONT + opt)
def process_rawq(self): """Transfer from raw queue to cooked queue.
d2885b8a9e3ae78af6d5f84c978c5203af54cb8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d2885b8a9e3ae78af6d5f84c978c5203af54cb8e/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 1207, 67, 1899, 85, 12, 2890, 4672, 3536, 5912, 628, 1831, 2389, 358, 15860, 329, 2389, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return ''.join(visitor.body)
return ''.join(visitor.body).strip()+'\n'
def to_latex(self, docstring_linker, **options): # Inherit docs visitor = _EpydocLaTeXTranslator(self._document, docstring_linker) self._document.walkabout(visitor) return ''.join(visitor.body)
d75dd9d593bbf9e48bfc9461562489c1768a9f2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3512/d75dd9d593bbf9e48bfc9461562489c1768a9f2e/restructuredtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 26264, 12, 2890, 16, 14525, 67, 1232, 264, 16, 2826, 2116, 4672, 468, 25953, 3270, 8000, 273, 389, 41, 2074, 2434, 30745, 21575, 60, 12233, 12, 2890, 6315, 5457, 16, 14525, 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, 358, 67, 26264, 12, 2890, 16, 14525, 67, 1232, 264, 16, 2826, 2116, 4672, 468, 25953, 3270, 8000, 273, 389, 41, 2074, 2434, 30745, 21575, 60, 12233, 12, 2890, 6315, 5457, 16, 14525, 67, ...
if prefix in self.prefixuri: uri = self.prefixuri[prefix] del self.uriprefix[uri] del self.prefixuri[prefix] else: self.error("Removing unknown prefix mapping %r" % prefix)
if not self.ns_stack or self.ns_stack[-1][0] != prefix: self.error("Removing unknown prefix mapping (%r)" % prefix) del self.ns_stack[-1] def find_namespace (self, uri): for prefix, nsuri in reversed(self.ns_stack): if nsuri == uri: return (prefix, uri) return None
def endPrefixMapping (self, prefix): if prefix in self.prefixuri: uri = self.prefixuri[prefix] del self.uriprefix[uri] del self.prefixuri[prefix] else: self.error("Removing unknown prefix mapping %r" % prefix)
857bd7fe261ab64e4383a47818282d5ebf04d521 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/857bd7fe261ab64e4383a47818282d5ebf04d521/XmlFilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2244, 3233, 261, 2890, 16, 1633, 4672, 309, 1633, 316, 365, 18, 3239, 1650, 30, 2003, 273, 365, 18, 3239, 1650, 63, 3239, 65, 1464, 365, 18, 295, 625, 266, 904, 63, 1650, 65, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2244, 3233, 261, 2890, 16, 1633, 4672, 309, 1633, 316, 365, 18, 3239, 1650, 30, 2003, 273, 365, 18, 3239, 1650, 63, 3239, 65, 1464, 365, 18, 295, 625, 266, 904, 63, 1650, 65, 14...
self.topFile.storeXml(xarchive)
self.currentFile.storeXml(xarchive)
def writeDescFile(self): """ Rewrites the desc file with the new patch information. """
6b0f19f13eaefba82c196a0b6b9074980a4bdbba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/6b0f19f13eaefba82c196a0b6b9074980a4bdbba/PatchMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4217, 812, 12, 2890, 4672, 3536, 534, 359, 24047, 326, 3044, 585, 598, 326, 394, 4729, 1779, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4217, 812, 12, 2890, 4672, 3536, 534, 359, 24047, 326, 3044, 585, 598, 326, 394, 4729, 1779, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
former works only in Robot Framework 2.1 and newer.
former works only in Robot Framework 2.1 and newer. See also note from `Set Suite Variable`.
def variable_should_exist(self, name, msg=None): """Fails unless the given variable exists within the current scope. The name of the variable can be given either as a normal variable name (e.g. ${NAME}) or in escaped format (e.g. \\${NAME}). Notice that the former works only in Robot Framework 2.1 and newer. The defa...
04e490ab9137971b630d5ce11309abd6b0f0663b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/04e490ab9137971b630d5ce11309abd6b0f0663b/BuiltIn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2190, 67, 13139, 67, 7398, 12, 2890, 16, 508, 16, 1234, 33, 7036, 4672, 3536, 30800, 3308, 326, 864, 2190, 1704, 3470, 326, 783, 2146, 18, 225, 1021, 508, 434, 326, 2190, 848, 506, 864...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2190, 67, 13139, 67, 7398, 12, 2890, 16, 508, 16, 1234, 33, 7036, 4672, 3536, 30800, 3308, 326, 864, 2190, 1704, 3470, 326, 783, 2146, 18, 225, 1021, 508, 434, 326, 2190, 848, 506, 864...
self.unselect(menuw)
self.unselect()
def eventhandler(self, event, menuw=None): if event == "MENU_BACK_ONE_MENU": self.unselect(menuw)
afa2dc399ecb3d599918a653eeb8dc3e48378e98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/afa2dc399ecb3d599918a653eeb8dc3e48378e98/uvswitch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 16, 3824, 91, 33, 7036, 4672, 309, 871, 422, 315, 29227, 67, 8720, 67, 5998, 67, 29227, 6877, 365, 18, 318, 4025, 12, 5414, 91, 13, 2, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 16, 3824, 91, 33, 7036, 4672, 309, 871, 422, 315, 29227, 67, 8720, 67, 5998, 67, 29227, 6877, 365, 18, 318, 4025, 12, 5414, 91, 13, 2, -100, -100, -100,...
c = Client("hooks_runner", params) self._ConnectList(c, node_list) result = c.GetResults() return result
return self._MultiNodeCall(node_list, "hooks_runner", params)
def call_hooks_runner(self, node_list, hpath, phase, env): """Call the hooks runner.
9a525d83b2a75f44cc1171e7d715b5bee7a76756 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/9a525d83b2a75f44cc1171e7d715b5bee7a76756/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 10468, 67, 18156, 12, 2890, 16, 756, 67, 1098, 16, 366, 803, 16, 6855, 16, 1550, 4672, 3536, 1477, 326, 9153, 8419, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 10468, 67, 18156, 12, 2890, 16, 756, 67, 1098, 16, 366, 803, 16, 6855, 16, 1550, 4672, 3536, 1477, 326, 9153, 8419, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'repos_rev' : '1'}])
'repos_rev' : '2'}])
def update_ignores_added(): "ensure update is not reporting additions" sbox = sandbox(update_ignores_added) wc_dir = os.path.join (svntest.main.general_wc_dir, sbox) if svntest.actions.make_repo_and_wc(sbox): return 1 # Create a new file, 'zeta', and schedule it for addition. zeta_path = os.path.join(wc_dir, 'A', 'B...
3512cf5ebaceba466e5a8bb341037db35dd1d776 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6036/3512cf5ebaceba466e5a8bb341037db35dd1d776/update_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 724, 3485, 67, 9665, 13332, 315, 15735, 1089, 353, 486, 16096, 26260, 6, 225, 272, 2147, 273, 15202, 12, 2725, 67, 724, 3485, 67, 9665, 13, 14310, 67, 1214, 273, 1140, 18, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 724, 3485, 67, 9665, 13332, 315, 15735, 1089, 353, 486, 16096, 26260, 6, 225, 272, 2147, 273, 15202, 12, 2725, 67, 724, 3485, 67, 9665, 13, 14310, 67, 1214, 273, 1140, 18, 80...
_MAXCACHE = 500 def _shrink_cache(cache_dict, max_length, divisor=5): """Make room in the given cache. Args: cache_dict: The cache dictionary to modify. max_length: Maximum divisor: Cache will shrink to max_length - 1/divisor*max_length items. """ cache_keys = tuple(cache_dict.keys()) overage = len(cache_keys) -...
def _compile(pattern, flags): return _compile_typed(type(pattern), pattern, flags) @functools.lru_cache(maxsize=500) def _compile_typed(text_bytes_type, pattern, flags):
def escape(pattern): "Escape all non-alphanumeric characters in pattern." if isinstance(pattern, str): alphanum = _alphanum_str s = list(pattern) for i in range(len(pattern)): c = pattern[i] if c not in alphanum: if c == "\000": s[i] = "\\000" else: s[i] = "\\" + c return "".join(s) else: alphanum = _alphanum_bytes s =...
0d3b208634ed32cf19f03dd82fb93ff942bd9b5a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/0d3b208634ed32cf19f03dd82fb93ff942bd9b5a/re.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4114, 12, 4951, 4672, 315, 8448, 777, 1661, 17, 287, 21183, 3949, 316, 1936, 1199, 309, 1549, 12, 4951, 16, 609, 4672, 524, 17560, 273, 389, 287, 17560, 67, 701, 272, 273, 666, 12, 495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4114, 12, 4951, 4672, 315, 8448, 777, 1661, 17, 287, 21183, 3949, 316, 1936, 1199, 309, 1549, 12, 4951, 16, 609, 4672, 524, 17560, 273, 389, 287, 17560, 67, 701, 272, 273, 666, 12, 495...
assert False
def __processHasFacetAndProperty (self, variety): """Identify the facets and properties for this stype.
97a23ffbe2ae0cfebd28adc717e68c09e968c8d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/97a23ffbe2ae0cfebd28adc717e68c09e968c8d8/structures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2567, 5582, 11137, 1876, 1396, 261, 2890, 16, 1394, 14369, 4672, 3536, 25787, 326, 21681, 471, 1790, 364, 333, 29365, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2567, 5582, 11137, 1876, 1396, 261, 2890, 16, 1394, 14369, 4672, 3536, 25787, 326, 21681, 471, 1790, 364, 333, 29365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return plot
return (lks, plot)
def get_plot(self, end_date, report_days, host=None, user=None, email=None): if email: return None
0732c62c3b6bc9538e81f4c0b89f9e6ccbdf83fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/0732c62c3b6bc9538e81f4c0b89f9e6ccbdf83fc/untangle_base_virus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -100, -100, ...
states = { 'init': { 'actions': [_default_values], 'result': {'type': 'form', 'arch': case_form, 'fields': case_fields, 'state' : [('end', 'Cancel','gtk-cancel'),('order', 'Schedule Phone Call','gtk-go-forward')]} }, 'order': { 'actions': [], 'result': {'type': 'action', 'action': _doIt, 'state': 'end'} } }
job2phonecall()
def _doIt(self, cr, uid, data, context): form = data['form'] pool = pooler.get_pool(cr.dbname) mod_obj = pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'hr', 'view_hr_case_phonecalls_filter') res = mod_obj.read(cr, uid, result, ['res_id']) phonecall_case_obj = pool.get('hr.phonecall') job_case_obj = pool.g...
567b6069ac51ee03f2b7252d505366880abd77b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/567b6069ac51ee03f2b7252d505366880abd77b3/hr_recruitment_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 7193, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 646, 273, 501, 3292, 687, 3546, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 681, 67, 2603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 7193, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 646, 273, 501, 3292, 687, 3546, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 681, 67, 2603...
eng.stop()
self.stop()
def runScript(self): eng = self # eng.result is None if nothing's been run yet # it would be error or exception if dotWeblibPy had a problem if (eng.result is None) or (eng.result == eng.SUCCESS): if os.path.exists(self.getScriptName()): eng.execute(open(self.getScriptName())) else: eng.stop() print "Status: 404" sys.e...
e0f9303e0c1e7cf79b8170fcea8430311a6c6405 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/e0f9303e0c1e7cf79b8170fcea8430311a6c6405/Engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 12, 2890, 4672, 24691, 273, 365, 468, 24691, 18, 2088, 353, 599, 309, 5083, 1807, 2118, 1086, 4671, 468, 518, 4102, 506, 555, 578, 1520, 309, 3928, 4079, 2941, 9413, 9323, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 12, 2890, 4672, 24691, 273, 365, 468, 24691, 18, 2088, 353, 599, 309, 5083, 1807, 2118, 1086, 4671, 468, 518, 4102, 506, 555, 578, 1520, 309, 3928, 4079, 2941, 9413, 9323, 27...
If provided, the result will be inserted into this array. It should be of the appropriate shape and dtype
If provided, the result will be inserted into this array. It should be of the appropriate shape and dtype
def choose(a, choices, out=None, mode='raise'): """Use an index array to construct a new array from a set of choices. Given an array of integers in {0, 1, ..., n-1} and a set of n choice arrays, this function will create a new array that merges each of the choice arrays. Where a value in `a` is i, then the new array w...
fe2f8b811f8f87475f51396eca9a848d2746ab2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/fe2f8b811f8f87475f51396eca9a848d2746ab2b/fromnumeric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 12, 69, 16, 7246, 16, 596, 33, 7036, 16, 1965, 2218, 11628, 11, 4672, 3536, 3727, 392, 770, 526, 358, 4872, 279, 394, 526, 628, 279, 444, 434, 7246, 18, 225, 16803, 392, 526, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 12, 69, 16, 7246, 16, 596, 33, 7036, 16, 1965, 2218, 11628, 11, 4672, 3536, 3727, 392, 770, 526, 358, 4872, 279, 394, 526, 628, 279, 444, 434, 7246, 18, 225, 16803, 392, 526, 4...
xml += '<label name="%s"/><field name="%s"/>' % (field, field)
xml += '<label name="%s"/><field name="%s"/>' % \ (field.decode('utf-8'), field.decode('utf-8'))
def get_preferences_fields_view(self, cursor, user, context=None): res = {} fields_names = self._preferences_fields + self._context_fields fields_names.pop(fields_names.index('status_bar')) fields = self.fields_get(cursor, user, fields_names=fields_names, context=context)
9381da5b0c7dfc036cc6284fb09460227fca4f26 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/9381da5b0c7dfc036cc6284fb09460227fca4f26/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 23219, 67, 2821, 67, 1945, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 400, 273, 2618, 1466, 67, 1973, 273, 365, 6315, 23219, 67, 2821, 397, 365, 6315, 2472, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 23219, 67, 2821, 67, 1945, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 400, 273, 2618, 1466, 67, 1973, 273, 365, 6315, 23219, 67, 2821, 397, 365, 6315, 2472, 67, 2...
val = self.get_int('User', name)
val = self.getint('User', name)
def get_int_user(self, name, default=0): try: val = self.get_int('User', name) except: val = default return val
0ba0252f10f1fad5dae48158b355d33626b7fe3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/0ba0252f10f1fad5dae48158b355d33626b7fe3f/startup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 474, 67, 1355, 12, 2890, 16, 508, 16, 805, 33, 20, 4672, 775, 30, 1244, 273, 365, 18, 588, 474, 2668, 1299, 2187, 508, 13, 1335, 30, 1244, 273, 805, 327, 1244, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 474, 67, 1355, 12, 2890, 16, 508, 16, 805, 33, 20, 4672, 775, 30, 1244, 273, 365, 18, 588, 474, 2668, 1299, 2187, 508, 13, 1335, 30, 1244, 273, 805, 327, 1244, 2, -100, -1...
try: sortOids except NameError: def sortOids(x): x = list(x) x.sort(cmp=cmpOids) return x
def sortOids(x): x = list(x) x.sort(cmp=cmpOids) return x
def cmpOids(a, b): "Compare two oid strings numerically" return cmp(map(int, a.strip('.').split('.')), map(int, b.strip('.').split('.')))
504006b9e098570ab56dbc9aceefeb5e8e15de80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9117/504006b9e098570ab56dbc9aceefeb5e8e15de80/tableretriever.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 51, 2232, 12, 69, 16, 324, 4672, 315, 8583, 2795, 7764, 2064, 6389, 1230, 6, 327, 9411, 12, 1458, 12, 474, 16, 279, 18, 6406, 2668, 1093, 2934, 4939, 2668, 1093, 13, 3631, 852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9411, 51, 2232, 12, 69, 16, 324, 4672, 315, 8583, 2795, 7764, 2064, 6389, 1230, 6, 327, 9411, 12, 1458, 12, 474, 16, 279, 18, 6406, 2668, 1093, 2934, 4939, 2668, 1093, 13, 3631, 852, ...
r"""Return n terms of the sequence: sequence[offset], sequence[offset+1], ... , sequence[offset+n].
r"""Return n terms of the sequence: sequence[offset], sequence[offset+1], ... , sequence[offset+n-1].
def list(self, n): r"""Return n terms of the sequence: sequence[offset], sequence[offset+1], ... , sequence[offset+n]. """ return [self._eval(i) for i in srange(self.offset, n+self.offset)]
3bdc1a99f92faed809d8eb8ff53eeefe23b247f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3bdc1a99f92faed809d8eb8ff53eeefe23b247f7/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 436, 8395, 990, 290, 6548, 434, 326, 3102, 30, 3102, 63, 3348, 6487, 3102, 63, 3348, 15, 21, 6487, 1372, 269, 3102, 63, 3348, 15, 82, 17, 21, 8009, 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, 666, 12, 2890, 16, 290, 4672, 436, 8395, 990, 290, 6548, 434, 326, 3102, 30, 3102, 63, 3348, 6487, 3102, 63, 3348, 15, 21, 6487, 1372, 269, 3102, 63, 3348, 15, 82, 17, 21, 8009, 3536...
$x = u^2 X +r$ and $y = u^3 Y +s u^2 X +t$
$x = u^2 X +r$ and $y = u^3 Y +s u^2 X +t$.
def _inverse_isomorphism(self,prec=20): """ Returns the isomorphism between the given curve and self.curve() in the form of a vector $[u,r,s,t]$ of $p$-adic numbers. For this to exist the given curve has to have split multiplicative reduction over Q_p.
a0b2f3a87f8a65b3060f87ecbcd0ac37d3fe0415 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a0b2f3a87f8a65b3060f87ecbcd0ac37d3fe0415/ell_tate_curve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22552, 67, 291, 362, 7657, 6228, 12, 2890, 16, 4036, 33, 3462, 4672, 3536, 2860, 326, 353, 362, 7657, 6228, 3086, 326, 864, 8882, 471, 365, 18, 16683, 1435, 316, 326, 646, 434, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22552, 67, 291, 362, 7657, 6228, 12, 2890, 16, 4036, 33, 3462, 4672, 3536, 2860, 326, 353, 362, 7657, 6228, 3086, 326, 864, 8882, 471, 365, 18, 16683, 1435, 316, 326, 646, 434, 27...
self.myException.msg = self.errmsg
def __init__( self ): super(LineEnd,self).__init__() self.setWhitespaceChars( " \t" ) self.errmsg = "Expected end of line" self.myException.msg = self.errmsg
bb0e6c1d8894ec4cade5f95640e793eeb8be8f10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3693/bb0e6c1d8894ec4cade5f95640e793eeb8be8f10/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 262, 30, 2240, 12, 1670, 1638, 16, 2890, 2934, 972, 2738, 972, 1435, 365, 18, 542, 9431, 7803, 12, 315, 521, 88, 6, 262, 365, 18, 24409, 273, 315, 6861, 679...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 262, 30, 2240, 12, 1670, 1638, 16, 2890, 2934, 972, 2738, 972, 1435, 365, 18, 542, 9431, 7803, 12, 315, 521, 88, 6, 262, 365, 18, 24409, 273, 315, 6861, 679...
if 'password1' in formdata
if 'password1' in formdata:
def clean_password2(self): # XXX Compatibility with Django 0.96 and 1.0 formdata = getattr(self, "cleaned_data", getattr(self, "clean_data", None))
a01168e195176f67ae954abf72f754a6e154a857 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6757/a01168e195176f67ae954abf72f754a6e154a857/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 3664, 22, 12, 2890, 4672, 468, 11329, 5427, 270, 3628, 598, 18480, 374, 18, 10525, 471, 404, 18, 20, 30642, 273, 3869, 12, 2890, 16, 315, 6200, 329, 67, 892, 3113, 3869, 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, 2721, 67, 3664, 22, 12, 2890, 4672, 468, 11329, 5427, 270, 3628, 598, 18480, 374, 18, 10525, 471, 404, 18, 20, 30642, 273, 3869, 12, 2890, 16, 315, 6200, 329, 67, 892, 3113, 3869, 12, ...
def addCurrentServiceToBouquet(self, dest):
def addCurrentServiceToBouquet(self, dest, closeBouquetSelection = True):
def addCurrentServiceToBouquet(self, dest): self.csel.addServiceToBouquet(dest) if self.bsel is not None: self.bsel.close(True) else: self.close(True) # close bouquet selection
8646cfe67f006cbec63cfe8fbbff50b6aa5ba811 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/8646cfe67f006cbec63cfe8fbbff50b6aa5ba811/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3935, 1179, 774, 38, 1395, 28357, 12, 2890, 16, 1570, 16, 1746, 38, 1395, 28357, 6233, 273, 1053, 4672, 365, 18, 71, 1786, 18, 1289, 1179, 774, 38, 1395, 28357, 12, 10488, 13, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3935, 1179, 774, 38, 1395, 28357, 12, 2890, 16, 1570, 16, 1746, 38, 1395, 28357, 6233, 273, 1053, 4672, 365, 18, 71, 1786, 18, 1289, 1179, 774, 38, 1395, 28357, 12, 10488, 13, 309...
self.logger.debug("YUMng: installed_action = %s" \ % self.installed_action) self.logger.debug("YUMng: pkg_checks = %s" % self.pkg_checks) self.logger.debug("YUMng: pkg_verify = %s" % self.pkg_verify) self.logger.debug("YUMng: version_fail_action = %s" \ % self.version_fail_action) self.logger.debug("YUMng: verify_fail_...
self.logger.debug("YUMng: Install missing: %s" \ % self.doInstall) self.logger.debug("YUMng: pkg_checks: %s" % self.pkg_checks) self.logger.debug("YUMng: pkg_verify: %s" % self.pkg_verify) self.logger.debug("YUMng: Upgrade on version fail: %s" \ % self.doUpgrade) self.logger.debug("YUMng: Reinstall on verify fail: %s" ...
def _loadConfig(self): # Process the YUMng section from the config file. CP = Parser() CP.read(self.setup.get('setup'))
fa828a85c54e0e883cfac6ad19227776c95ecb68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/fa828a85c54e0e883cfac6ad19227776c95ecb68/YUMng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 809, 12, 2890, 4672, 468, 4389, 326, 1624, 2799, 3368, 2442, 628, 326, 642, 585, 18, 5181, 273, 6783, 1435, 5181, 18, 896, 12, 2890, 18, 8401, 18, 588, 2668, 8401, 26112, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 809, 12, 2890, 4672, 468, 4389, 326, 1624, 2799, 3368, 2442, 628, 326, 642, 585, 18, 5181, 273, 6783, 1435, 5181, 18, 896, 12, 2890, 18, 8401, 18, 588, 2668, 8401, 26112, 2, ...
'File name in Central Directory "%s" and File Header "%s" differ.' % ( data.filename, fname)
'File name in directory "%s" and header "%s" differ.' % ( data.filename, fname)
def _GetContents(self): "Read in the table of contents for the zip file" fp = self.fp fp.seek(-22, 2) # Start of end-of-archive record filesize = fp.tell() + 22 # Get file size endrec = fp.read(22) # Archive must not end with a comment! if endrec[0:4] != stringEndArchive or endrec[-2:] != "\000\000": raise BadZipfile,...
22171cafae2345fe7bc544232932e6979cc26f17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/22171cafae2345fe7bc544232932e6979cc26f17/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 6323, 12, 2890, 4672, 315, 1994, 316, 326, 1014, 434, 2939, 364, 326, 3144, 585, 6, 4253, 273, 365, 18, 7944, 4253, 18, 16508, 19236, 3787, 16, 576, 13, 202, 202, 7, 3603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 6323, 12, 2890, 4672, 315, 1994, 316, 326, 1014, 434, 2939, 364, 326, 3144, 585, 6, 4253, 273, 365, 18, 7944, 4253, 18, 16508, 19236, 3787, 16, 576, 13, 202, 202, 7, 3603, ...
sys.exit(1)
sys.exit(0)
def searchseries(t, opts, series_season_ep): global SID series_name='' if opts.configure != "" and override.has_key(series_season_ep[0].lower()): series_name=override[series_season_ep[0].lower()][0] # Override series name else: series_name=series_season_ep[0] # Leave the series name alone try: # Search for the series o...
eb58b190282da8d7954014e0c0375253e3aea418 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/eb58b190282da8d7954014e0c0375253e3aea418/ttvdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 10222, 12, 88, 16, 1500, 16, 4166, 67, 30321, 67, 881, 4672, 2552, 23150, 4166, 67, 529, 2218, 11, 309, 1500, 18, 14895, 480, 1408, 471, 3849, 18, 5332, 67, 856, 12, 10222, 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, 1623, 10222, 12, 88, 16, 1500, 16, 4166, 67, 30321, 67, 881, 4672, 2552, 23150, 4166, 67, 529, 2218, 11, 309, 1500, 18, 14895, 480, 1408, 471, 3849, 18, 5332, 67, 856, 12, 10222, 67, ...
task = self.req.get_task(tid) if task: task.delete() else: print "trying to delete task already deleted"
task = self.req.delete_task(tid)
def on_delete_confirm(self, widget): """if we pass a tid as a parameter, we delete directly otherwise, we will look which tid is selected""" for tid in self.tids_todelete: task = self.req.get_task(tid) if task: task.delete() else: print "trying to delete task already deleted" self.tids_todelete = []
344e206e92baddfc63fb1dd152a6a836edd8253c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/344e206e92baddfc63fb1dd152a6a836edd8253c/delete_dialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3733, 67, 10927, 12, 2890, 16, 3604, 4672, 3536, 430, 732, 1342, 279, 11594, 487, 279, 1569, 16, 732, 1430, 5122, 3541, 16, 732, 903, 2324, 1492, 11594, 353, 3170, 8395, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3733, 67, 10927, 12, 2890, 16, 3604, 4672, 3536, 430, 732, 1342, 279, 11594, 487, 279, 1569, 16, 732, 1430, 5122, 3541, 16, 732, 903, 2324, 1492, 11594, 353, 3170, 8395, 364, ...
image.save(avatar.image.path, "JPEG")
image.convert("RGB").save(avatar.image.path, "JPEG")
def avatarchoose(request): """ Avatar choose """ profile, created = Profile.objects.get_or_create(user = request.user) if not request.method == "POST": form = AvatarForm() else: form = AvatarForm(request.POST, request.FILES) if form.is_valid(): image = form.cleaned_data.get('url') or form.cleaned_data.get('photo') avat...
5faeccb40d18ca8fca91da95454a4318ea223ea2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12976/5faeccb40d18ca8fca91da95454a4318ea223ea2/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1712, 270, 991, 22494, 12, 2293, 4672, 3536, 8789, 8761, 9876, 3536, 3042, 16, 2522, 273, 11357, 18, 6911, 18, 588, 67, 280, 67, 2640, 12, 1355, 273, 590, 18, 1355, 13, 309, 486, 590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1712, 270, 991, 22494, 12, 2293, 4672, 3536, 8789, 8761, 9876, 3536, 3042, 16, 2522, 273, 11357, 18, 6911, 18, 588, 67, 280, 67, 2640, 12, 1355, 273, 590, 18, 1355, 13, 309, 486, 590, ...
self.fail("%s should be nan" % repr(b))
self.fail(msg or '{!r} should be nan'.format(b))
def rAssertAlmostEqual(self, a, b, rel_err = 2e-15, abs_err = 5e-323): """Check that two floating-point numbers are almost equal."""
603ae9e371fee4e2f61375cd9738559acacae987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/603ae9e371fee4e2f61375cd9738559acacae987/test_cmath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8213, 1067, 10329, 5812, 12, 2890, 16, 279, 16, 324, 16, 1279, 67, 370, 273, 576, 73, 17, 3600, 16, 2417, 67, 370, 273, 1381, 73, 17, 1578, 23, 4672, 3536, 1564, 716, 2795, 1386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8213, 1067, 10329, 5812, 12, 2890, 16, 279, 16, 324, 16, 1279, 67, 370, 273, 576, 73, 17, 3600, 16, 2417, 67, 370, 273, 1381, 73, 17, 1578, 23, 4672, 3536, 1564, 716, 2795, 1386...
suites += unittest.makeSuite(IrsSdqaStageTestCase)
suites += unittest.makeSuite(IsrSdqaStageTestCase)
def suite(): """Returns a suite containing all the test cases in this module.""" utilsTests.init() suites = [] if not eups.productDir("sdqa"): print >> sys.stderr, "sdqa is not setting up; skipping test" else: suites += unittest.makeSuite(IrsSdqaStageTestCase) suites += unittest.makeSuite(utilsTests.MemoryTestCase)...
2799c6ff1a872023719dcc4597446ac62e75eb45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6509/2799c6ff1a872023719dcc4597446ac62e75eb45/isrSdqaStageTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 3536, 1356, 279, 11371, 4191, 777, 326, 1842, 6088, 316, 333, 1605, 12123, 225, 2990, 14650, 18, 2738, 1435, 225, 27208, 273, 5378, 225, 309, 486, 425, 18294, 18, 5896, 1621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 3536, 1356, 279, 11371, 4191, 777, 326, 1842, 6088, 316, 333, 1605, 12123, 225, 2990, 14650, 18, 2738, 1435, 225, 27208, 273, 5378, 225, 309, 486, 425, 18294, 18, 5896, 1621,...
sage: R = WeylCharacterRing(['B',3], prefix = "R") sage: [R(w) for w in R.lattice().fundamental_weights()] [R(1,0,0), R(1,1,0), R(1/2,1/2,1/2)]
sage: R = WeylCharacterRing(['B',3], prefix = "R") sage: [R(w) for w in R.lattice().fundamental_weights()] [R(1,0,0), R(1,1,0), R(1/2,1/2,1/2)]
def __repr__(self): """ EXAMPLES: sage: R = WeylCharacterRing(['B',3], prefix = "R") sage: [R(w) for w in R.lattice().fundamental_weights()] [R(1,0,0), R(1,1,0), R(1/2,1/2,1/2)] """ if self._hdict == {}: return "0" v = self._hdict.keys() v.sort() ret = "" return repr_lincomb([self._parent.irr_repr(k) for k in v], [self...
af4f5f46d5016de6167398d67987ba1855db181e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af4f5f46d5016de6167398d67987ba1855db181e/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 534, 273, 678, 402, 80, 7069, 10369, 12, 3292, 38, 2187, 23, 6487, 1633, 273, 315, 54, 7923, 272, 410, 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, 1001, 12715, 972, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 534, 273, 678, 402, 80, 7069, 10369, 12, 3292, 38, 2187, 23, 6487, 1633, 273, 315, 54, 7923, 272, 410, 30, ...
yield(", ".join(allopts), desc)
yield (", ".join(allopts), desc)
def get_opts(opts): for opt in opts: if len(opt) == 5: shortopt, longopt, default, desc, optlabel = opt else: shortopt, longopt, default, desc = opt allopts = [] if shortopt: allopts.append("-%s" % shortopt) if longopt: allopts.append("--%s" % longopt) desc += default and _(" (default: %s)") % default or "" yield(", "....
3102c45aae9edc1f1f752cefba2f9fd6ba3628b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/3102c45aae9edc1f1f752cefba2f9fd6ba3628b2/gendoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4952, 12, 4952, 4672, 364, 2153, 316, 1500, 30, 309, 562, 12, 3838, 13, 422, 1381, 30, 3025, 3838, 16, 1525, 3838, 16, 805, 16, 3044, 16, 2153, 1925, 273, 2153, 469, 30, 302...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4952, 12, 4952, 4672, 364, 2153, 316, 1500, 30, 309, 562, 12, 3838, 13, 422, 1381, 30, 3025, 3838, 16, 1525, 3838, 16, 805, 16, 3044, 16, 2153, 1925, 273, 2153, 469, 30, 302...
self._schedule_expiration)
self._schedule_expiration)
def _schedule_expiration(self): """ Sets up a timer that will call _expire_old_connections when the oldest connection currently in the free pool is ready to expire. This is the earliest possible time that a connection could expire, thus, the timer will be running as infrequently as possible without missing a possible ...
198e6052b67f53d9b25c1f08c9f70ded53e9df01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/198e6052b67f53d9b25c1f08c9f70ded53e9df01/db_pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10676, 67, 19519, 12, 2890, 4672, 3536, 11511, 731, 279, 5441, 716, 903, 745, 389, 14070, 67, 1673, 67, 13313, 1347, 326, 17067, 1459, 4551, 316, 326, 4843, 2845, 353, 5695, 358, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10676, 67, 19519, 12, 2890, 4672, 3536, 11511, 731, 279, 5441, 716, 903, 745, 389, 14070, 67, 1673, 67, 13313, 1347, 326, 17067, 1459, 4551, 316, 326, 4843, 2845, 353, 5695, 358, 69...
if has(o, 'im_self'):
if aq_base(o) is not o: container = aq_parent(aq_inner(o)) elif has(o, 'im_self'):
def restrictedTraverse(self, path, securityManager, get=getattr, has=hasattr, N=None, M=[], TupleType=type(()) ): REQUEST = {'path': path} REQUEST['TraversalRequestNameStack'] = path = path[:] # Copy! if not path[0]: # If the path starts with an empty string, go to the root first. self = self.getPhysicalRoot() if not ...
910efb13e8cd45a7f45cee8895b5e20a8403c2ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/910efb13e8cd45a7f45cee8895b5e20a8403c2ef/Expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15693, 29654, 12, 2890, 16, 589, 16, 4373, 1318, 16, 336, 33, 588, 1747, 16, 711, 33, 5332, 1747, 16, 423, 33, 7036, 16, 490, 22850, 6487, 7257, 559, 33, 723, 12, 10756, 262, 30, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15693, 29654, 12, 2890, 16, 589, 16, 4373, 1318, 16, 336, 33, 588, 1747, 16, 711, 33, 5332, 1747, 16, 423, 33, 7036, 16, 490, 22850, 6487, 7257, 559, 33, 723, 12, 10756, 262, 30, 225...
handshake = client.recv(1024) print "Handshake [%s]" % handshake
client.close() return False
def handshake(client): handshake = client.recv(1024) print "Handshake [%s]" % handshake if handshake.startswith("<policy-file-request/>"): print "Sending:", policy_response client.send(policy_response) handshake = client.recv(1024) print "Handshake [%s]" % handshake req_lines = handshake.split("\r\n") _, path, _ = req_...
1e633bc8eeef5e92f134ec0cf705a1f7644b9f93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13207/1e633bc8eeef5e92f134ec0cf705a1f7644b9f93/wstest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11942, 12, 2625, 4672, 1004, 18, 4412, 1435, 327, 1083, 309, 11942, 18, 17514, 1918, 2932, 32, 5086, 17, 768, 17, 2293, 26293, 4672, 1172, 315, 16322, 2773, 16, 3329, 67, 2740, 1004, 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, 11942, 12, 2625, 4672, 1004, 18, 4412, 1435, 327, 1083, 309, 11942, 18, 17514, 1918, 2932, 32, 5086, 17, 768, 17, 2293, 26293, 4672, 1172, 315, 16322, 2773, 16, 3329, 67, 2740, 1004, 18,...
if line.find("Exception") != -1:
if line.find("Exception") != -1 or \ line.find("does not exist") != -1:
def simpleOutputCheck(self, outLines): """ parse line by line the outLines text looking for Exceptions """ problems = [] lines = outLines.split("\n") for line in lines: if line.find("Exception") != -1: cacheP = line.split(":")[-1] if cacheP not in problems: problems.append(cacheP) return problems
a52a98359b71b3155caf20a1d50a84793f565f9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/a52a98359b71b3155caf20a1d50a84793f565f9a/ProtocolSrmv2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 1447, 1564, 12, 2890, 16, 596, 5763, 4672, 3536, 1109, 980, 635, 980, 326, 596, 5763, 977, 7849, 364, 12781, 3536, 9688, 273, 5378, 2362, 273, 596, 5763, 18, 4939, 31458, 82, 7923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 1447, 1564, 12, 2890, 16, 596, 5763, 4672, 3536, 1109, 980, 635, 980, 326, 596, 5763, 977, 7849, 364, 12781, 3536, 9688, 273, 5378, 2362, 273, 596, 5763, 18, 4939, 31458, 82, 7923,...
self.out_drv.CreateCopy(tilefilename, dstile, strict=0)
if self.options.resampling != 'antialias': self.out_drv.CreateCopy(tilefilename, dstile, strict=0)
def generate_overview_tiles(self): """Generation of the overview tiles (higher in the pyramid) based on existing tiles""" print "Generating Overview Tiles:" tilebands = self.dataBandsCount + 1 # Usage of existing tiles: from 4 underlying tiles generate one as overview. tcount = 0 for tz in range(self.tmaxz-1, self....
c3d8df74eef052268add49773dc5efec101e76b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/c3d8df74eef052268add49773dc5efec101e76b2/gdal2tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 26081, 67, 28366, 12, 2890, 4672, 3536, 13842, 434, 326, 18471, 12568, 261, 76, 9421, 316, 326, 2395, 23083, 13, 2511, 603, 2062, 12568, 8395, 225, 1172, 315, 21755, 10752, 1945,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 26081, 67, 28366, 12, 2890, 4672, 3536, 13842, 434, 326, 18471, 12568, 261, 76, 9421, 316, 326, 2395, 23083, 13, 2511, 603, 2062, 12568, 8395, 225, 1172, 315, 21755, 10752, 1945,...
self.failUnless(doc.UID() == UID)
self.assertEquals(doc.UID(), UID)
def test_renamedontchangeUID( self ): catalog = self.portal.uid_catalog
86089dd5ecda849baf4811c4a444c82c5f916c42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/86089dd5ecda849baf4811c4a444c82c5f916c42/test_referenceable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1187, 2808, 1580, 3427, 3060, 12, 365, 262, 30, 6222, 273, 365, 18, 24386, 18, 1911, 67, 7199, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1187, 2808, 1580, 3427, 3060, 12, 365, 262, 30, 6222, 273, 365, 18, 24386, 18, 1911, 67, 7199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print url print result = parse(url) pprint(result) print
results = parse(url, etag=options.etag, modified=options.modified, agent=options.agent, referrer=options.referrer) serializer(results).write(sys.stdout)
def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None, handlers=[]): '''Parse a feed from a URL, file, stream, or string''' result = FeedParserDict() result['feed'] = FeedParserDict() result['entries'] = [] if _XML_AVAILABLE: result['bozo'] = 0 if type(handlers) == types.InstanceType:...
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 7036, 16, 4358, 33, 7036, 16, 4040, 33, 7036, 16, 14502, 33, 7036, 16, 4919, 33, 8526, 4672, 9163, 3201, 279, 4746...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 7036, 16, 4358, 33, 7036, 16, 4040, 33, 7036, 16, 14502, 33, 7036, 16, 4919, 33, 8526, 4672, 9163, 3201, 279, 4746...
def _create_gnulong(self, name, type): """Write a GNU longname/longlink member to the TarFile. It consists of an extended tar header, with the length of the longname as size, followed by data blocks, which contain the longname as a null terminated string. """ name += NUL tarinfo = TarInfo() tarinfo.name = "././@LongL...
def __iter__(self): """Provide an iterator object. """ if self._loaded: return iter(self.members) else: return TarIter(self)
3354f285b958bbe8fa99b0091fcd4335251dec71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3354f285b958bbe8fa99b0091fcd4335251dec71/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 20632, 392, 2775, 733, 18, 3536, 309, 365, 6315, 4230, 30, 327, 1400, 12, 2890, 18, 7640, 13, 469, 30, 327, 20334, 2360, 12, 2890, 13, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 20632, 392, 2775, 733, 18, 3536, 309, 365, 6315, 4230, 30, 327, 1400, 12, 2890, 18, 7640, 13, 469, 30, 327, 20334, 2360, 12, 2890, 13, 2, -100, ...
def _cmd(self, output, dir, *cmditems): """Internal routine to run a shell command in a given directory.""" cmd = ("cd \"%s\"; " % dir) + " ".join(cmditems) if output: output.write("+ %s\n" % cmd) if NO_EXECUTE: return 0 child = popen2.Popen4(cmd) child.tochild.close() while 1: line = child.fromchild.readline() if not...
def _cmd(self, output, dir, *cmditems): """Internal routine to run a shell command in a given directory.""" cmd = ("cd \"%s\"; " % dir) + " ".join(cmditems) if output: output.write("+ %s\n" % cmd) if NO_EXECUTE: return 0 child = popen2.Popen4(cmd) child.tochild.close() while 1: line = child.fromchild.readline() if not...
f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return self.__class__(self.parent(), list)
return self.__class__(self.parent(), list=list)
def sibling(self, list): # Makes some hypothesis on the constructor! # of subclasses return self.__class__(self.parent(), list)
4ddbeae3cb7ccbd8c327bf1e551703e517d09a71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4ddbeae3cb7ccbd8c327bf1e551703e517d09a71/tensor_product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10841, 12, 2890, 16, 666, 4672, 468, 490, 3223, 2690, 28350, 16786, 603, 326, 3885, 5, 468, 434, 15320, 327, 365, 16186, 1106, 972, 12, 2890, 18, 2938, 9334, 666, 13, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10841, 12, 2890, 16, 666, 4672, 468, 490, 3223, 2690, 28350, 16786, 603, 326, 3885, 5, 468, 434, 15320, 327, 365, 16186, 1106, 972, 12, 2890, 18, 2938, 9334, 666, 13, 2, -100, -100, -1...
parts = c[:-1] self.assertEquals((1,2,3), parts)
self.assertEquals((1,2,3,4), c[:]) self.assertEquals((1,2,3), c[:-1]) self.assertEquals((), c[:-5]) self.assertEquals((1,2,3,4), c[:4]) self.assertEquals((1,2,3,4), c[:5]) self.assertEquals((1,2), c[:2]) self.assertEquals((1,), c[:1]) self.assertEquals((), c[:0]) self.assertEquals((2,), c[1:-2]) self.assertEquals(...
def test_slice(self): #TODO: do all sorts of slice combinations. c = pygame.Color(1,2,3,4) parts = c[:-1] self.assertEquals((1,2,3), parts)
b1da8729e23f03925969ae86f3a6b2f3ec450ee2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1298/b1da8729e23f03925969ae86f3a6b2f3ec450ee2/color_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6665, 12, 2890, 4672, 468, 6241, 30, 741, 777, 18524, 434, 2788, 17265, 18, 276, 273, 2395, 13957, 18, 2957, 12, 21, 16, 22, 16, 23, 16, 24, 13, 2140, 273, 276, 10531, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6665, 12, 2890, 4672, 468, 6241, 30, 741, 777, 18524, 434, 2788, 17265, 18, 276, 273, 2395, 13957, 18, 2957, 12, 21, 16, 22, 16, 23, 16, 24, 13, 2140, 273, 276, 10531, 17, ...
local_sdp = SDPSession.new(self._invitation.sdp.active_local) local_sdp.version += 1 removed_streams = [stream for stream in self.streams if stream.index in removed_media_indexes] prev_on_hold_streams = set(stream for stream in self.streams if stream.hold_supported and stream.on_hold_by_remote) for stream in removed_st...
self.state = 'connected' elif notification.data.state == 'disconnected': if self.state == 'incoming': self.state = 'terminated' if notification.data.originator == 'remote': notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', co...
def _NH_SIPInvitationChangedState(self, notification): notification_center = NotificationCenter() if self.greenlet is not None and self.greenlet is not api.getcurrent(): if notification.data.state == 'disconnected' and notification.data.prev_state != 'disconnecting': self._channel.send_exception(InvitationDidFailError(...
849b83b8269b2356a6cabd3ba71c0c5cacb998d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/849b83b8269b2356a6cabd3ba71c0c5cacb998d3/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 19896, 5033, 1119, 12, 2890, 16, 3851, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 365, 18, 11571, 1810, 353, 486, 599, 471, 365, 18, 11571, 1810, 353, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 17739, 19896, 5033, 1119, 12, 2890, 16, 3851, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 365, 18, 11571, 1810, 353, 486, 599, 471, 365, 18, 11571, 1810, 353, 48...
usage = "%prog [options] user@domain.com password [target-user@target-domain.com]"
usage = "%prog [options] [target-user@target-domain.com]"
def parse_options(): retval = {} description = "This example script will REGISTER using the specified credentials and either sit idle waiting for an incoming MSRP session, or attempt to start a MSRP session with the specified target. The program will close the session and quit when CTRL+D is pressed." usage = "%prog [o...
fcae0a19fb0f946a7d1adaa11c6d1e8e92c14450 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/fcae0a19fb0f946a7d1adaa11c6d1e8e92c14450/sip_msrp_im_session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2116, 13332, 5221, 273, 2618, 2477, 273, 315, 2503, 3454, 2728, 903, 11980, 19957, 1450, 326, 1269, 4448, 471, 3344, 10982, 12088, 7336, 364, 392, 6935, 9238, 54, 52, 1339, 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, 1109, 67, 2116, 13332, 5221, 273, 2618, 2477, 273, 315, 2503, 3454, 2728, 903, 11980, 19957, 1450, 326, 1269, 4448, 471, 3344, 10982, 12088, 7336, 364, 392, 6935, 9238, 54, 52, 1339, 16, ...
1 This confirms that ad has degree 8 and is orthogonal, hence factors through SO(8)=D4.
1 This confirms that `ad` has degree 8 and is orthogonal, hence factors through SO(8)=D4::
def branching_rule_from_plethysm(chi, cartan_type, return_matrix = False): """ INPUT: - ``chi`` - the character of an irreducible representation pi of a group G - ``cartan_type`` - a classical Cartan type (A,B,C or D). It is assumed that the image of the irreducible representation pi naturally has its image in the gr...
40a1bdf0c8a0dea7ba5d2dd2b4dcc1a210f7c884 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/40a1bdf0c8a0dea7ba5d2dd2b4dcc1a210f7c884/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 310, 67, 5345, 67, 2080, 67, 412, 546, 1900, 81, 12, 24010, 16, 7035, 304, 67, 723, 16, 327, 67, 5667, 273, 1083, 4672, 3536, 12943, 30, 225, 300, 12176, 24010, 10335, 300, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 310, 67, 5345, 67, 2080, 67, 412, 546, 1900, 81, 12, 24010, 16, 7035, 304, 67, 723, 16, 327, 67, 5667, 273, 1083, 4672, 3536, 12943, 30, 225, 300, 12176, 24010, 10335, 300, 326, ...
return points._plot_(**kwds)
return points.plot(**kwds)
def __call__(self, points, coerce=True, **kwds): try: return points._plot_(**kwds) except AttributeError: pass options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v
9718d524f22894a5e3380560c54b60229833b317 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/9718d524f22894a5e3380560c54b60229833b317/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3143, 16, 12270, 33, 5510, 16, 2826, 25577, 4672, 775, 30, 327, 3143, 18, 4032, 12, 636, 25577, 13, 1335, 6394, 30, 1342, 702, 273, 2065, 12, 2890, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3143, 16, 12270, 33, 5510, 16, 2826, 25577, 4672, 775, 30, 327, 3143, 18, 4032, 12, 636, 25577, 13, 1335, 6394, 30, 1342, 702, 273, 2065, 12, 2890, 18, ...
self.handle_request()
with self.active_lock: if not self.active: break self.handle_request()
def serve_forever(self): # We want this to run in a thread, so we use a slightly # modified version of "forever". self.active = True while self.active: try: self.handle_request() except socket.timeout: pass except KeyboardInterrupt: self.server_close() return except: sys.stdout.write(''.join(traceback.format_exception(...
0098c9d60997f40c8e75714db9963337dc834378 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/0098c9d60997f40c8e75714db9963337dc834378/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 12, 2890, 4672, 468, 1660, 2545, 333, 358, 1086, 316, 279, 2650, 16, 1427, 732, 999, 279, 21980, 468, 4358, 1177, 434, 315, 1405, 502, 9654, 365, 18, 3535, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 12, 2890, 4672, 468, 1660, 2545, 333, 358, 1086, 316, 279, 2650, 16, 1427, 732, 999, 279, 21980, 468, 4358, 1177, 434, 315, 1405, 502, 9654, 365, 18, 3535, 273, 1...
localSize = getSize(localPath) if localSize == protocolSize: infoStr ="StorageElement.getFile: Local file size correct." gLogger.info(infoStr,'%s with protocol %s' % (localPath,protocolName)) return S_OK(localPath) if os.path.exists(localPath): os.remove(localPath) else: infoStr = "StorageElement.getFile%s" % res['...
if os.path.exists(localPath): os.remove(localPath) else: infoStr = "StorageElement.getFile%s" % res['Message'] gLogger.error(infoStr)
def getFile(self,pfn,catalogueFileSize): """ This method will obtain a local copy of a file from the SE
7103ee9939a5a7ab45b51df34eb263621ec53a2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/7103ee9939a5a7ab45b51df34eb263621ec53a2c/StorageElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 12, 2890, 16, 84, 4293, 16, 7199, 344, 15100, 4672, 3536, 1220, 707, 903, 7161, 279, 1191, 1610, 434, 279, 585, 628, 326, 3174, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 12, 2890, 16, 84, 4293, 16, 7199, 344, 15100, 4672, 3536, 1220, 707, 903, 7161, 279, 1191, 1610, 434, 279, 585, 628, 326, 3174, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
""" Events:
""" Events:
def __init__(self,sizer, frame,text="&ok"):
34ce64727d61b659d4a5bac27f0a1d0ce0a7b81f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2956/34ce64727d61b659d4a5bac27f0a1d0ce0a7b81f/wxguiParts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 87, 1824, 16, 2623, 16, 955, 1546, 10, 601, 6, 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, ...
[ 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 87, 1824, 16, 2623, 16, 955, 1546, 10, 601, 6, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
saytext2(' {'player': es.getplayername(userid),
saytext2(' {'player': es.getplayername(leader), 'level': self.leaderlevel}, False) else: msg(' {'players': ", ".join( [es.getplayername(x) for x in self.current]),
def disconnected_leader(self, userid): """Handles the disconnection of players.""" userid = int(userid)
9ee19c90e5ec168bcaebcedb469667c2bfda337e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/9ee19c90e5ec168bcaebcedb469667c2bfda337e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17853, 67, 27863, 12, 2890, 16, 6709, 4672, 3536, 8788, 326, 1015, 4071, 434, 18115, 12123, 6709, 273, 509, 12, 8339, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17853, 67, 27863, 12, 2890, 16, 6709, 4672, 3536, 8788, 326, 1015, 4071, 434, 18115, 12123, 6709, 273, 509, 12, 8339, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for item in _entries_from_toctree(toctreenode):
for item in _entries_from_toctree(toctreenode, subtree=True):
def _entries_from_toctree(toctreenode, separate=False): """Return TOC entries for a toctree node.""" includefiles = map(str, toctreenode['includefiles'])
5d05ffc883d8d99407a8970952f31cf95f8f9957 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/5d05ffc883d8d99407a8970952f31cf95f8f9957/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8219, 67, 2080, 67, 869, 299, 992, 12, 869, 299, 2842, 390, 16, 9004, 33, 8381, 4672, 3536, 990, 8493, 39, 3222, 364, 279, 358, 299, 992, 756, 12123, 2823, 89, 536, 1449, 273, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8219, 67, 2080, 67, 869, 299, 992, 12, 869, 299, 2842, 390, 16, 9004, 33, 8381, 4672, 3536, 990, 8493, 39, 3222, 364, 279, 358, 299, 992, 756, 12123, 2823, 89, 536, 1449, 273, 8...
if self.min <= x <= self.max:
if x == self.max: return self.n - 1 if self.min <= x < self.max:
def __getitem__(self, x): if isinstance(x, segments.segment): return slice(self[x[0]], self[x[1]] + 1) if isinstance(x, slice): if x.step != None: raise NotImplementedError, "slices with steps not yet supported" return slice(self[x.start], self[x.stop]) if self.min <= x <= self.max: return int((x - self.min) / self.del...
d0f712ea8636e2ae1eeeb2f1705504cb3d8206ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/d0f712ea8636e2ae1eeeb2f1705504cb3d8206ea/rate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 619, 4672, 309, 1549, 12, 92, 16, 5155, 18, 9273, 4672, 327, 2788, 12, 2890, 63, 92, 63, 20, 65, 6487, 365, 63, 92, 63, 21, 13563, 397, 404, 13, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 619, 4672, 309, 1549, 12, 92, 16, 5155, 18, 9273, 4672, 327, 2788, 12, 2890, 63, 92, 63, 20, 65, 6487, 365, 63, 92, 63, 21, 13563, 397, 404, 13, 309...
if bae_url:
if base_url:
def do_render(self, collection_id, post_data, is_new=False): metabook_data = post_data.get('metabook') if is_new and not metabook_data: return self.error_response('POST argument metabook or collection_id required') if not is_new and metabook_data: return self.error_response('Specify either metabook or collection_id, no...
57133ec58d3ae9b05498cf8bf3fbf4fd9656dc63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/57133ec58d3ae9b05498cf8bf3fbf4fd9656dc63/serve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5902, 12, 2890, 16, 1849, 67, 350, 16, 1603, 67, 892, 16, 353, 67, 2704, 33, 8381, 4672, 5100, 378, 1184, 67, 892, 273, 1603, 67, 892, 18, 588, 2668, 10578, 378, 1184, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5902, 12, 2890, 16, 1849, 67, 350, 16, 1603, 67, 892, 16, 353, 67, 2704, 33, 8381, 4672, 5100, 378, 1184, 67, 892, 273, 1603, 67, 892, 18, 588, 2668, 10578, 378, 1184, 6134,...
self.ndiffAssertEqual(f(s), '\n'.join(['case when foo = 1 then 2', ' when foo = 3 then 4', ' else 5',
self.ndiffAssertEqual(f(s), '\n'.join(['case', ' when foo = 1 then 2', ' when foo = 3 then 4', ' else 5',
def test_case(self): f = lambda sql: sqlparse.format(sql, reindent=True) s = 'case when foo = 1 then 2 when foo = 3 then 4 else 5 end' self.ndiffAssertEqual(f(s), '\n'.join(['case when foo = 1 then 2', ' when foo = 3 then 4', ' else 5', 'end']))
f5086aacc638ef077d01542e1a636f2bbd9aa7ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11268/f5086aacc638ef077d01542e1a636f2bbd9aa7ba/test_format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3593, 12, 2890, 4672, 284, 273, 3195, 1847, 30, 1847, 2670, 18, 2139, 12, 4669, 16, 283, 9355, 33, 5510, 13, 272, 273, 296, 3593, 1347, 8431, 273, 404, 1508, 576, 1347, 8431,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3593, 12, 2890, 4672, 284, 273, 3195, 1847, 30, 1847, 2670, 18, 2139, 12, 4669, 16, 283, 9355, 33, 5510, 13, 272, 273, 296, 3593, 1347, 8431, 273, 404, 1508, 576, 1347, 8431,...
self.vboxlayout3.addLayout(self.hboxlayout3) self.vboxlayout4 = QtGui.QVBoxLayout() self.vboxlayout4.setObjectName("vboxlayout4")
self.vboxlayout4.addLayout(self.hboxlayout3) self.vboxlayout5 = QtGui.QVBoxLayout() self.vboxlayout5.setObjectName("vboxlayout5")
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" "))
63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
p-adic ring. This is typically slower, but more numerically stable.
`p`-adic ring. This is typically slower, but more numerically stable.
def eigenfunctions(self, n, F = None, exact_arith=True): """ Calculate approximations to eigenfunctions of self. These are the eigenfunctions of self.hecke_matrix(p, n), which are approximations to the true eigenfunctions. Returns a list of OverconvergentModularFormElement objects, in increasing order of slope.
d7c9d61652cabcfb658c91a720989214f7a469bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d7c9d61652cabcfb658c91a720989214f7a469bd/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16719, 10722, 12, 2890, 16, 290, 16, 478, 273, 599, 16, 5565, 67, 297, 483, 33, 5510, 4672, 3536, 9029, 26962, 1012, 358, 16719, 10722, 434, 365, 18, 8646, 854, 326, 16719, 10722, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16719, 10722, 12, 2890, 16, 290, 16, 478, 273, 599, 16, 5565, 67, 297, 483, 33, 5510, 4672, 3536, 9029, 26962, 1012, 358, 16719, 10722, 434, 365, 18, 8646, 854, 326, 16719, 10722, 434, ...
if unsubscribe_errors:
if errors:
def ChangeOptions(mlist, category, cgi_info, document): confirmed = 0 if cgi_info.has_key('newpw'): if cgi_info.has_key('confirmpw'): if cgi_info.has_key('adminpw'): try: mlist.ConfirmAdminPassword(cgi_info['adminpw'].value) confirmed = 1 except Errors.MMBadPasswordError: m = "Error: incorrect administrator password" d...
adf39770b727dd9bb8ba933c8fef8a62759decfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/adf39770b727dd9bb8ba933c8fef8a62759decfb/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7576, 1320, 12, 781, 376, 16, 3150, 16, 276, 10052, 67, 1376, 16, 1668, 4672, 19979, 273, 374, 309, 276, 10052, 67, 1376, 18, 5332, 67, 856, 2668, 2704, 14921, 11, 4672, 309, 276, 1005...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7576, 1320, 12, 781, 376, 16, 3150, 16, 276, 10052, 67, 1376, 16, 1668, 4672, 19979, 273, 374, 309, 276, 10052, 67, 1376, 18, 5332, 67, 856, 2668, 2704, 14921, 11, 4672, 309, 276, 1005...
reffile.write("\n".join(lines)) print "wrote %d references to %r" %(len(lines), reffile)
reffile.write("\n".join(lines)) print "wrote %d references to %r" %(len(lines), reffile) makeref(pypydir.join('doc')) makeref(pypydir.join('doc').join('jit'))
def addlink(linkname, linktarget): assert linkname and linkname != '/' if linktarget in name2target: if linkname in name2target[linktarget]: return name2target.setdefault(linktarget, []).append(linkname)
725b75eded22275b6be92a7549983e27d0340b0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/725b75eded22275b6be92a7549983e27d0340b0b/makeref.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1232, 12, 1232, 529, 16, 1692, 3299, 4672, 1815, 1692, 529, 471, 1692, 529, 480, 2023, 309, 1692, 3299, 316, 508, 22, 3299, 30, 309, 1692, 529, 316, 508, 22, 3299, 63, 1232, 3299,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1232, 12, 1232, 529, 16, 1692, 3299, 4672, 1815, 1692, 529, 471, 1692, 529, 480, 2023, 309, 1692, 3299, 316, 508, 22, 3299, 30, 309, 1692, 529, 316, 508, 22, 3299, 63, 1232, 3299,...
([(0 : -1 : 1)], '5', 0.0511114075779915)
([(0 : 0 : 1)], '5', 0.0511114075779915)
def saturation(self, points, verbose=False, max_prime=0, odd_primes_only=False): """ Given a list of rational points on E, compute the saturation in E(Q) of the subgroup they generate.
2d358660a37f1e7b7e62f90b4a0ea2c1e77e91bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2d358660a37f1e7b7e62f90b4a0ea2c1e77e91bd/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22824, 12, 2890, 16, 3143, 16, 3988, 33, 8381, 16, 943, 67, 16382, 33, 20, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 3536, 16803, 279, 666, 434, 436, 8371, 3143, 603, 512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22824, 12, 2890, 16, 3143, 16, 3988, 33, 8381, 16, 943, 67, 16382, 33, 20, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 3536, 16803, 279, 666, 434, 436, 8371, 3143, 603, 512, ...
"Cancels the current operation and enters Select Chunks mode."\
"Cancels the current operation and enters the default mode."\
def createWhatsThis(self): # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThi...
5629481425ea3a857ce80d2576c1cbecf1add05a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/5629481425ea3a857ce80d2576c1cbecf1add05a/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 468, 468, 1387, 13288, 3215, 468, 225, 468, 3502, 1387, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 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, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 468, 468, 1387, 13288, 3215, 468, 225, 468, 3502, 1387, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 3...
def check6x6border(*args): return _micropolisengine.Micropolis_check6x6border(*args)
def check6x6border(*args): return _micropolisengine.Micropolis_check6x6border(*args)
03c21c78bb21eb1b4a4ddfc117101aeeba1374c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12485/03c21c78bb21eb1b4a4ddfc117101aeeba1374c5/micropolisengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 26, 92, 26, 8815, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 1893, 26, 92, 26, 8815, 30857, 1968, 13, 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, 866, 26, 92, 26, 8815, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 1893, 26, 92, 26, 8815, 30857, 1968, 13, 2, -100, -100, -100, -100, ...
rootNode = visible.parent.sgNode
rootNode = visible.parent.childGroup
def clearDragger(self): if self.dragSelection != None: visible = self.selectedVisibles[0] if isinstance(visible.client, Stimulus): visible = self.visibleForObject(visible.client) if visible.parent is None: rootNode = self.rootNode else: rootNode = visible.parent.sgNode self.commandMgr.disconnect(self.simpleDragger) s...
2f38bc508263ffd9c22ed7e9c98a0342aa095db6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/2f38bc508263ffd9c22ed7e9c98a0342aa095db6/Display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 11728, 693, 12, 2890, 4672, 309, 365, 18, 15997, 6233, 480, 599, 30, 6021, 273, 365, 18, 8109, 3282, 495, 1040, 63, 20, 65, 309, 1549, 12, 8613, 18, 2625, 16, 934, 381, 17284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 11728, 693, 12, 2890, 4672, 309, 365, 18, 15997, 6233, 480, 599, 30, 6021, 273, 365, 18, 8109, 3282, 495, 1040, 63, 20, 65, 309, 1549, 12, 8613, 18, 2625, 16, 934, 381, 17284, ...
def __str__(self): return self.pp()
__str__ = pp
def pp(self, doublespace=0, depth=5, exclude=(), include=()): """ Return a pretty-printed string representation for the information contained in this C{APIDoc}. """ return pp_apidoc(self, doublespace, depth, exclude, include)
6658f223e3e512fd6232c0f14da73c6e49bf2067 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/6658f223e3e512fd6232c0f14da73c6e49bf2067/apidoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8228, 12, 2890, 16, 31446, 909, 33, 20, 16, 3598, 33, 25, 16, 4433, 33, 9334, 2341, 33, 1435, 4672, 3536, 2000, 279, 7517, 17, 1188, 329, 533, 4335, 364, 326, 1779, 7542, 316, 333, 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, 8228, 12, 2890, 16, 31446, 909, 33, 20, 16, 3598, 33, 25, 16, 4433, 33, 9334, 2341, 33, 1435, 4672, 3536, 2000, 279, 7517, 17, 1188, 329, 533, 4335, 364, 326, 1779, 7542, 316, 333, 3...
if target in self.failed_deps:
if self.build_names_index.index(target) in self.failed_deps:
def get_unresolved_build_targets(self, dataCache): """ Return a list of build targets who's providers are unknown. """ unresolved = [] for target in self.build_names_index: if target in dataCache.ignored_dependencies: continue if target in self.failed_deps: continue if not self.have_build_target(target): unresolved.app...
9ac364b81c2edab2978f49fb5eb978e3d6d55c3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/9ac364b81c2edab2978f49fb5eb978e3d6d55c3c/taskdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 318, 11792, 67, 3510, 67, 11358, 12, 2890, 16, 501, 1649, 4672, 3536, 2000, 279, 666, 434, 1361, 5774, 10354, 1807, 9165, 854, 5917, 18, 3536, 20573, 273, 5378, 364, 1018, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 318, 11792, 67, 3510, 67, 11358, 12, 2890, 16, 501, 1649, 4672, 3536, 2000, 279, 666, 434, 1361, 5774, 10354, 1807, 9165, 854, 5917, 18, 3536, 20573, 273, 5378, 364, 1018, 316, ...
win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func)
win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func)
def EVT_TREE_ITEM_COLLAPSED(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func)
4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27917, 67, 26557, 67, 12674, 67, 4935, 48, 2203, 18204, 12, 8082, 16, 612, 16, 1326, 4672, 5657, 18, 5215, 12, 350, 16, 300, 21, 16, 7075, 24427, 56, 67, 19104, 67, 26557, 67, 12674, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27917, 67, 26557, 67, 12674, 67, 4935, 48, 2203, 18204, 12, 8082, 16, 612, 16, 1326, 4672, 5657, 18, 5215, 12, 350, 16, 300, 21, 16, 7075, 24427, 56, 67, 19104, 67, 26557, 67, 12674, ...
b = time.clock()
b = timer()
def initialize(self, mode = 'serial'): b = time.clock() #same as galg self.test_settings(self.settings) self.gen = 0 sd = self.settings['rand_seed']; alg = self.settings['rand_alg'] rv.initialize(seed = sd, algorithm = alg) self.settings['seed_used'] = rv.initial_seed() self._print('initializing... seed = %d' % self.se...
8418b2938a491bb6a337b1fba872055375ef3547 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8418b2938a491bb6a337b1fba872055375ef3547/algorithm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 1965, 273, 296, 8818, 11, 4672, 324, 273, 5441, 1435, 468, 14307, 487, 314, 18413, 365, 18, 3813, 67, 4272, 12, 2890, 18, 4272, 13, 365, 18, 4507, 273, 374, 8349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 1965, 273, 296, 8818, 11, 4672, 324, 273, 5441, 1435, 468, 14307, 487, 314, 18413, 365, 18, 3813, 67, 4272, 12, 2890, 18, 4272, 13, 365, 18, 4507, 273, 374, 8349, ...
print 'seq despues operac: ',seq
def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[p...
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
return [self.cells[x][y] for x in range(x1, x2) for y in range(y1, y2)]
return [self.cells[x][y] for x in range(int(x1), int(x2)) for y in range(int(y1), int(y2))]
def get_in_region(self, x1, y1, x2, y2): '''Return cells (in [column][row]) that are within the pixel bounds specified by the bottom-left (x1, y1) and top-right (x2, y2) corners.
da112f8921e8bd32cb54cde8c286be04c27f2bcf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/da112f8921e8bd32cb54cde8c286be04c27f2bcf/tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 267, 67, 6858, 12, 2890, 16, 619, 21, 16, 677, 21, 16, 619, 22, 16, 677, 22, 4672, 9163, 990, 5983, 261, 267, 306, 2827, 6362, 492, 5717, 716, 854, 3470, 326, 4957, 4972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 267, 67, 6858, 12, 2890, 16, 619, 21, 16, 677, 21, 16, 619, 22, 16, 677, 22, 4672, 9163, 990, 5983, 261, 267, 306, 2827, 6362, 492, 5717, 716, 854, 3470, 326, 4957, 4972, ...
self._priorValuesStack.push({
self._priorValuesStack.append({
def setterStub(param, setterFunc, self, value): # should we apply the value now or should we wait? # if this obj's params are locked, we track which values have # been set, and on unlock, we'll call the applyers for those # values if self._paramLockRefCount > 0: setterFunc(value) priorValues = self._priorValuesStack.to...
bc118592712a1b70a0b9a248ebe439604a6431c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/bc118592712a1b70a0b9a248ebe439604a6431c3/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7794, 11974, 12, 891, 16, 7794, 2622, 16, 365, 16, 460, 4672, 468, 1410, 732, 2230, 326, 460, 2037, 578, 1410, 732, 2529, 35, 468, 309, 333, 1081, 1807, 859, 854, 8586, 16, 732, 3298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7794, 11974, 12, 891, 16, 7794, 2622, 16, 365, 16, 460, 4672, 468, 1410, 732, 2230, 326, 460, 2037, 578, 1410, 732, 2529, 35, 468, 309, 333, 1081, 1807, 859, 854, 8586, 16, 732, 3298, ...
return None self._dir = tempfile.mkdtemp() coverage_file = os.path.join(self._dir, 'chrome_win32_%s.coverage' % (self.revision)) logging.info('.coverage file: %s' % (coverage_file)) counters_command = ('%s -start:coverage -output:%s' % (os.path.join(self.tools_path, 'vsperfcmd.exe'), coverage_file)) retcode = su...
return False
def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage.
cb5ba75cf843f2c74de2f7116b0c7ad99b95596b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/cb5ba75cf843f2c74de2f7116b0c7ad99b95596b/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.recall(self.text.get(next[0], next[1]))
self.recall(self.text.get(next[0], next[1]), event)
def enter_callback(self, event): if self.executing and not self.reading: return # Let the default binding (insert '\n') take over # If some text is selected, recall the selection # (but only if this before the I/O mark) try: sel = self.text.get("sel.first", "sel.last") if sel: if self.text.compare("sel.last", "<=", "io...
a7daba6866136d1c554ba6bf278e9ddaf52ecac6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a7daba6866136d1c554ba6bf278e9ddaf52ecac6/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 871, 4672, 309, 365, 18, 4177, 8490, 471, 486, 365, 18, 21803, 30, 327, 468, 10559, 326, 805, 5085, 261, 6387, 2337, 82, 6134, 4862, 1879, 468, 971, 2690,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 871, 4672, 309, 365, 18, 4177, 8490, 471, 486, 365, 18, 21803, 30, 327, 468, 10559, 326, 805, 5085, 261, 6387, 2337, 82, 6134, 4862, 1879, 468, 971, 2690,...
dout(" generator %s is active, discarning" % g.id())
dout(" generator %s is active, discarding" % g.id())
def find_viable_generators (target_type, prop_set): key = target_type + '.' + str (prop_set) l = __viable_generators_cache.get (key, None) if not l: l = [] if not l: l = find_viable_generators_aux (target_type, prop_set) __viable_generators_cache [key] = l viable_generators = [] for g in l: # Avoid trying the same ...
fe858bb5d392ae045d1c6844a6baedf55daa0eeb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/fe858bb5d392ae045d1c6844a6baedf55daa0eeb/generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 522, 429, 67, 25959, 261, 3299, 67, 723, 16, 2270, 67, 542, 4672, 498, 273, 1018, 67, 723, 397, 2611, 397, 609, 261, 5986, 67, 542, 13, 225, 328, 273, 1001, 522, 429, 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, 1104, 67, 522, 429, 67, 25959, 261, 3299, 67, 723, 16, 2270, 67, 542, 4672, 498, 273, 1018, 67, 723, 397, 2611, 397, 609, 261, 5986, 67, 542, 13, 225, 328, 273, 1001, 522, 429, 67, ...