rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
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 xmlrpclib.ProtocolError, e: self.fail("%s\n%s" % (e, e.headers))
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_result, 127//42)
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, 495, 18, 5002, 1477, 12, 84, 13, 1778, 335, 454, 18, 1289, 12, 22, 16, 23, 13, 1778, 335, 454, 18, 23509, 12, 26, 16, 28, 13, 1778, 335, 454, 18, 2892, 12, 14260, 16, 9452, 13, 527, 67, 2088, 16, 7602, 67, 2088, 16, 3739, 67, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 495, 18, 5002, 1477, 12, 84, 13, 1778, 335, 454, 18, 1289, 12, 22, 16, 23, 13, 1778, 335, 454, 18, 23509, 12, 26, 16, 28, 13, 1778, 335, 454, 18, 2892, 12, 14260, 16, 9452, 13, 527, 67, 2088, 16, 7602, 67, 2088, 16, 3739, 67, 2088, 273, 1778, 335, 454, 1435, 365, 18, 11231, 5812, 12, 1289, 67, 2088, 16, 576, 15, 23, 13, 365, 18, 11231, 5812, 12, 23509, 67, 2088, 16, 1666, 636, 28, 13, 365, 18, 11231, 5812, 12, 2 ]
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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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 62, 13, 26109, 611, 18, 225, 1220, 445, 857, 74, 6478, 1135, 501, 3577, 364, 326, 1122, 1087, 434, 326, 20176, 2235, 261, 5787, 1122, 7799, 2934, 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, -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.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
[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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, cooloff) dbCur = connection.cursor() dbCur.execute(sqlStr) pairs = dbCur.fetchall() dbCur.close() result = {} for pair in pairs: result[str(pair[0])] = int(pair[1]) return result
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, 294, 1719, 67, 1615, 364, 777, 6550, 316, 326, 919, 1269, 225, 3536, 1459, 273, 3077, 1435, 225, 1847, 1585, 273, 3536, 4803, 1719, 67, 2793, 67, 350, 16, 1719, 67, 1615, 4571, 5691, 67, 4688, 4852, 1719, 67, 2019, 11613, 87, 6, 4116, 813, 411, 11689, 4684, 12, 15487, 67, 17201, 11189, 6456, 87, 8284, 3536, 738, 261, 919, 16, 27367, 3674, 13, 225, 1319, 2408, 273, 1459, 18, 9216, 1435, 1319, 2408, 18, 8837, 12, 4669, 1585, 13, 5574, 273, 1319, 2408, 18, 5754, 454, 1435, 1319, 2408, 18, 4412, 1435, 563, 273, 2618, 364, 3082, 316, 5574, 30, 563, 63, 701, 12, 6017, 63, 20, 5717, 65, 273, 509, 12, 6017, 63, 21, 5717, 327, 563, 1377, 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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 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, 294, 1719, 67, 1615, 364, 777, 6550, 316, 326, 919, 1269, 225, 3536, 1459, 273, 3077, 1435, 225, 1847, 1585, 273, 3536, 4803, 1719, 67, 2793, 67, 350, 16, 1719, 67, 1615, 4571, 5691, 67, 4688, 4852, 1719, 67, 2019, 11613, 87, 6, 4116, 813, 411, 11689, 4684, 12, 15487, 67, 17201, 11189, 6456, 87, 8284, 3536, 738, 261, 919, 16, 27367, 3674, 13, 225, 1319, 2408, 273, 1459, 18, 9216, 1435, 1319, 2408, 18, 8837, 12, 4669, 1585, 13, 5574, 273, 1319, 2 ]
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, 21351, 18, 3536, 525, 5761, 15222, 273, 374, 309, 667, 361, 2278, 18, 8664, 1499, 2932, 2747, 15222, 950, 6, 4672, 525, 5761, 15222, 273, 509, 12, 1080, 18, 2079, 12, 1106, 361, 2278, 18, 588, 67, 8692, 2932, 2747, 15222, 950, 6, 3631, 4970, 17023, 6134, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 21351, 18, 3536, 525, 5761, 15222, 273, 374, 309, 667, 361, 2278, 18, 8664, 1499, 2932, 2747, 15222, 950, 6, 4672, 525, 5761, 15222, 273, 509, 12, 1080, 18, 2079, 12, 1106, 361, 2278, 18, 588, 67, 8692, 2932, 2747, 15222, 950, 6, 3631, 4970, 17023, 6134, 262, 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, -100, -100, -100, -100, -100 ]
"""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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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)) return '\n'.join(ret)
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, 64, 82, 2187, 2337, 82, 7, 8624, 309, 1633, 30, 309, 1172, 67, 5569, 30, 325, 18, 6923, 2668, 7, 64, 82, 7, 738, 87, 64, 82, 7, 738, 87, 64, 82, 7, 64, 82, 11, 738, 261, 3239, 16, 3044, 3719, 1633, 1011, 2611, 364, 508, 316, 365, 6315, 4699, 30, 569, 273, 365, 6315, 1576, 63, 529, 65, 325, 18, 6923, 12, 1401, 6315, 7066, 67, 1080, 12, 3239, 16, 1172, 67, 28313, 3719, 327, 2337, 82, 10332, 5701, 12, 1349, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 64, 82, 2187, 2337, 82, 7, 8624, 309, 1633, 30, 309, 1172, 67, 5569, 30, 325, 18, 6923, 2668, 7, 64, 82, 7, 738, 87, 64, 82, 7, 738, 87, 64, 82, 7, 64, 82, 11, 738, 261, 3239, 16, 3044, 3719, 1633, 1011, 2611, 364, 508, 316, 365, 6315, 4699, 30, 569, 273, 365, 6315, 1576, 63, 529, 65, 325, 18, 6923, 12, 1401, 6315, 7066, 67, 1080, 12, 3239, 16, 1172, 67, 28313, 3719, 327, 2337, 82, 10332, 5701, 12, 1349, 13, 2 ]
'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, 3536, 327, 315, 13185, 376, 2958, 1014, 18196, 434, 963, 738, 87, 28385, 701, 12, 2890, 18, 82, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 272, 410, 30, 8480, 12, 13185, 376, 2958, 1388, 18196, 12, 23, 3719, 296, 13185, 376, 2958, 1014, 18196, 434, 963, 890, 11, 3536, 327, 315, 13185, 376, 2958, 1014, 18196, 434, 963, 738, 87, 28385, 701, 12, 2890, 18, 82, 13, 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, -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, -100, -100, -100 ]
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), 'exposed') and getattr(self, m).exposed]
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, 1071, 2590, 358, 326, 8220, 9117, 1427, 468, 2898, 5055, 4121, 8295, 1807, 2898, 848, 1221, 11849, 9852, 30, 2597, 12001, 3007, 1915, 1410, 506, 279, 7844, 4031, 18, 365, 18, 5163, 273, 306, 312, 364, 312, 316, 1577, 12, 2890, 13, 309, 3859, 12, 588, 1747, 12, 2890, 16, 312, 3631, 296, 338, 7423, 6134, 471, 3869, 12, 2890, 16, 312, 2934, 338, 7423, 65, 2, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1071, 2590, 358, 326, 8220, 9117, 1427, 468, 2898, 5055, 4121, 8295, 1807, 2898, 848, 1221, 11849, 9852, 30, 2597, 12001, 3007, 1915, 1410, 506, 279, 7844, 4031, 18, 365, 18, 5163, 273, 306, 312, 364, 312, 316, 1577, 12, 2890, 13, 309, 3859, 12, 588, 1747, 12, 2890, 16, 312, 3631, 296, 338, 7423, 6134, 471, 3869, 12, 2890, 16, 312, 2934, 338, 7423, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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)): out += j i += 5 else: out += text[i] i += 1 return out
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, 316, 1048, 12, 1897, 12, 674, 305, 3719, 30, 699, 305, 63, 77, 65, 273, 509, 12, 674, 305, 63, 77, 5717, 300, 9934, 225, 468, 13993, 31235, 63, 15415, 6815, 1300, 65, 4868, 598, 5158, 2696, 300, 9934, 4279, 596, 273, 1408, 277, 273, 374, 1323, 277, 411, 562, 12, 955, 4672, 309, 277, 397, 890, 411, 562, 12, 955, 13, 471, 977, 63, 77, 65, 422, 16347, 471, 977, 63, 77, 15, 21, 65, 422, 6619, 6877, 364, 525, 316, 609, 12, 674, 305, 18, 5120, 12, 20, 3719, 30, 596, 1011, 525, 277, 1011, 1381, 469, 30, 596, 1011, 977, 63, 77, 65, 277, 1011, 404, 327, 596, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 316, 1048, 12, 1897, 12, 674, 305, 3719, 30, 699, 305, 63, 77, 65, 273, 509, 12, 674, 305, 63, 77, 5717, 300, 9934, 225, 468, 13993, 31235, 63, 15415, 6815, 1300, 65, 4868, 598, 5158, 2696, 300, 9934, 4279, 596, 273, 1408, 277, 273, 374, 1323, 277, 411, 562, 12, 955, 4672, 309, 277, 397, 890, 411, 562, 12, 955, 13, 471, 977, 63, 77, 65, 422, 16347, 471, 977, 63, 77, 15, 21, 65, 422, 6619, 6877, 364, 525, 316, 2 ]
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 for Pl) and the identity of self, and return True. (This usually or always runs during the dna updater, which means that the changes to atoms in self will be ignored, rather than causing self to be remade.) If conversion can't succeed due to an error, return False. Or if it should not run, or need not run, or is not yet implemented, return -1. Don't modify self or its atoms in these cases. """ # various reasons for conversion to not succeed; # most emit a deferred_summary_message if not self.valid: # caller should have rejected self before this point # (but safer to not assert this, but just debug print for now) print "bug?: _convert_to_pam on invalid ladder:", self summary_format = "Bug: PAM conversion attempted on [N] invalid DnaLadder(s)" env.history.deferred_summary_message( redmsg( summary_format )) return -1 if self.error: # cmenu caller should have rejected self before this point # (but safer to not assert this, but just debug print for now); # but when called from the ui actions, self.error # is not a bug or even really an error... ## print "bug?: _convert_to_pam on ladder with error:", self summary_format = "Warning: PAM conversion refused for [N] DnaLadder(s) with errors" env.history.deferred_summary_message( redmsg( summary_format )) # red warning is intended return -1 if self.pam_model() == MODEL_MIXED: summary_format = "Warning: PAM conversion not implemented for [N] DnaLadder(s) with mixed PAM models" env.history.deferred_summary_message( orangemsg( summary_format )) return -1 if self.axis_rail: element = self.axis_rail.baseatoms[0].element if element not in (Gv5, Ax3): # e.g. it might be Ax5 summary_format = "Warning: PAM conversion not implemented for [N] DnaLadder(s) with %s axis" % \ element.symbol env.history.deferred_summary_message( orangemsg( summary_format )) print "conversion from PAM axis element %r is not yet implemented (in %r)" % \ (self.axis_rail.baseatoms[0].element, self) return -1 pass if self.pam_model() == pam_model: # note: should never happen (AFAIK) since caller handles it, # but preserve this just in case; meanwhile this code is copied into caller, # with a slight text revision here so we can figure out if this one happens summary_format = "Note: [N] DnaLadder(s) were already in desired PAM model" env.history.deferred_summary_message( summary_format ) return -1 # fail gracefully for not yet implemented cases; # keep this in sync with self.can_make_up_Pl_abs_position_for() if not self.axis_rail: summary_format = "Warning: PAM conversion not implemented for [N] DnaSingleStrandDomain(s)" env.history.deferred_summary_message( orangemsg( summary_format )) return -1
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, 30458, 31, 1308, 4097, 4825, 506, 3096, 65, 225, 15983, 365, 353, 486, 1818, 316, 293, 301, 67, 2284, 1496, 14805, 358, 506, 18, 225, 971, 4105, 358, 293, 301, 67, 2284, 848, 12897, 16, 1508, 741, 518, 635, 23819, 4492, 21920, 365, 1807, 9006, 16, 1496, 9420, 3675, 4215, 261, 14137, 364, 3008, 13, 471, 326, 4215, 434, 365, 16, 471, 327, 1053, 18, 225, 261, 2503, 11234, 578, 3712, 7597, 4982, 326, 31702, 7760, 16, 1492, 4696, 716, 326, 3478, 358, 9006, 316, 365, 903, 506, 5455, 16, 9178, 2353, 25416, 365, 358, 506, 849, 2486, 12998, 225, 971, 4105, 848, 1404, 12897, 6541, 358, 392, 555, 16, 327, 1083, 18, 2965, 309, 518, 1410, 486, 1086, 16, 578, 1608, 486, 1086, 16, 578, 353, 486, 4671, 8249, 16, 327, 300, 21, 18, 7615, 1404, 5612, 365, 578, 2097, 9006, 316, 4259, 6088, 18, 3536, 468, 11191, 14000, 364, 4105, 358, 486, 12897, 31, 468, 4486, 3626, 279, 7045, 67, 7687, 67, 2150, 309, 486, 365, 18, 877, 30, 468, 4894, 1410, 1240, 11876, 365, 1865, 333, 1634, 468, 261, 12885, 7864, 586, 358, 486, 1815, 333, 16, 1496, 2537, 1198, 1172, 364, 2037, 13, 1172, 315, 925, 35, 30, 389, 6283, 67, 869, 67, 84, 301, 603, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30458, 31, 1308, 4097, 4825, 506, 3096, 65, 225, 15983, 365, 353, 486, 1818, 316, 293, 301, 67, 2284, 1496, 14805, 358, 506, 18, 225, 971, 4105, 358, 293, 301, 67, 2284, 848, 12897, 16, 1508, 741, 518, 635, 23819, 4492, 21920, 365, 1807, 9006, 16, 1496, 9420, 3675, 4215, 261, 14137, 364, 3008, 13, 471, 326, 4215, 434, 365, 16, 471, 327, 1053, 18, 225, 261, 2503, 11234, 578, 3712, 7597, 4982, 326, 31702, 7760, 16, 1492, 4696, 716, 326, 3478, 2 ]
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, 65, 469, 30, 1027, 273, 306, 2696, 16, 508, 16, 930, 65, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 65, 469, 30, 1027, 273, 306, 2696, 16, 508, 16, 930, 65, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, QuickDraw.srcCopy, None)
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, 2607, 1172, 296, 22439, 30, 2187, 261, 2890, 18, 14861, 1458, 16, 365, 18, 30902, 18, 967, 3829, 2617, 7675, 655, 6495, 16, 365, 18, 84, 933, 2607, 16, 662, 2607, 16, 19884, 6493, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 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, 2607, 1172, 296, 22439, 30, 2187, 261, 2890, 18, 14861, 1458, 16, 365, 18, 30902, 18, 967, 3829, 2617, 7675, 655, 6495, 16, 365, 18, 84, 933, 2607, 16, 662, 2607, 16, 19884, 6493, 18, 4816, 2951, 15, 13663, 6493, 18, 72, 2927, 2951, 16, 599, 13, 365, 18, 1376, 1435, 2238, 72, 18, 2951, 6495, 12, 2890, 18, 14861, 1458, 16, 365, 18, 30902, 18, 967, 3829, 2617, 7675, 655, 6495, 16, 365, 18, 84, 933, 2607, 16, 662, 2607, 16, 19884, 2 ]
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 entry to which the update will be applied. Example: '/base/feeds/items/ITEM-ID' extra_headers: dict (optional) HTTP headers which are to be included. The client automatically sets the Content-Type, Authorization, and Content-Length headers. url_params: dict (optional) Additional URL parameters to be included in the URI. These are translated into query arguments in the form '&dict_key=value&...'. Example: {'max-results': '250'} becomes &max-results=250 escape_params: boolean (optional) If false, the calling code has already ensured that the query will form a valid URL (all reserved characters have been escaped). If true, this method will escape the query and any URL parameters provided. converter: func (optional) A function which will be executed on the server's response. Often this is a function like GDataEntryFromString which will parse the body of the server's response and return a GDataEntry.
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, 7036, 16, 6027, 33, 7036, 4672, 3536, 5121, 392, 1241, 622, 326, 864, 3699, 18, 225, 6634, 30, 501, 30, 533, 16, 22566, 6315, 1046, 16, 578, 2025, 67, 8376, 18, 1046, 3611, 1021, 3167, 4191, 326, 3526, 501, 18, 2003, 30, 533, 432, 3699, 11193, 1241, 358, 1492, 326, 1089, 903, 506, 6754, 18, 5090, 30, 1173, 1969, 19, 7848, 87, 19, 3319, 19, 12674, 17, 734, 11, 2870, 67, 2485, 30, 2065, 261, 10444, 13, 2239, 1607, 1492, 854, 358, 506, 5849, 18, 1021, 1004, 6635, 1678, 326, 3697, 17, 559, 16, 10234, 16, 471, 3697, 17, 1782, 1607, 18, 880, 67, 2010, 30, 2065, 261, 10444, 13, 15119, 1976, 1472, 358, 506, 5849, 316, 326, 3699, 18, 8646, 854, 9955, 1368, 843, 1775, 316, 326, 646, 5183, 1576, 67, 856, 33, 1132, 10, 7821, 18, 5090, 30, 13666, 1896, 17, 4717, 4278, 296, 26520, 11, 97, 12724, 473, 1896, 17, 4717, 33, 26520, 4114, 67, 2010, 30, 1250, 261, 10444, 13, 971, 629, 16, 326, 4440, 981, 711, 1818, 3387, 72, 716, 326, 843, 903, 646, 279, 923, 1976, 261, 454, 8735, 3949, 1240, 2118, 8345, 2934, 971, 638, 16, 333, 707, 903, 4114, 326, 843, 471, 1281, 1976, 1472, 2112, 18, 6027, 30, 1326, 261, 10444, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7036, 16, 6027, 33, 7036, 4672, 3536, 5121, 392, 1241, 622, 326, 864, 3699, 18, 225, 6634, 30, 501, 30, 533, 16, 22566, 6315, 1046, 16, 578, 2025, 67, 8376, 18, 1046, 3611, 1021, 3167, 4191, 326, 3526, 501, 18, 2003, 30, 533, 432, 3699, 11193, 1241, 358, 1492, 326, 1089, 903, 506, 6754, 18, 5090, 30, 1173, 1969, 19, 7848, 87, 19, 3319, 19, 12674, 17, 734, 11, 2870, 67, 2485, 30, 2065, 261, 10444, 13, 2239, 1607, 1492, 854, 358, 2 ]
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 exception") try: result = s.recv(1024) except socket.error, se: self.failUnlessEqual(se[0], errno.ENOTCONN) except Exception, x: self.fail("Receive on unconnected socket raised wrong exception: %s" % x) else: self.fail("Receive on unconnected socket raised exception")
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, 2987, 18, 1636, 16, 695, 30, 365, 18, 6870, 984, 2656, 5812, 12, 307, 63, 20, 6487, 8402, 18, 1157, 1974, 27733, 13, 1335, 1185, 16, 619, 30, 365, 18, 6870, 2932, 3826, 603, 23980, 82, 828, 2987, 11531, 7194, 1520, 30, 738, 87, 6, 738, 619, 13, 469, 30, 365, 18, 6870, 2932, 3826, 603, 23980, 82, 828, 2987, 11531, 1520, 7923, 775, 30, 563, 273, 365, 18, 87, 18, 18334, 12, 2163, 3247, 13, 1335, 2987, 18, 1636, 16, 695, 30, 365, 18, 6870, 984, 2656, 5812, 12, 307, 63, 20, 6487, 8402, 18, 1157, 1974, 27733, 13, 1335, 1185, 16, 619, 30, 365, 18, 6870, 2932, 11323, 603, 23980, 82, 828, 2987, 11531, 7194, 1520, 30, 738, 87, 6, 738, 619, 13, 469, 30, 365, 18, 6870, 2932, 11323, 603, 23980, 82, 828, 2987, 11531, 1520, 7923, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2987, 18, 1636, 16, 695, 30, 365, 18, 6870, 984, 2656, 5812, 12, 307, 63, 20, 6487, 8402, 18, 1157, 1974, 27733, 13, 1335, 1185, 16, 619, 30, 365, 18, 6870, 2932, 3826, 603, 23980, 82, 828, 2987, 11531, 7194, 1520, 30, 738, 87, 6, 738, 619, 13, 469, 30, 365, 18, 6870, 2932, 3826, 603, 23980, 82, 828, 2987, 11531, 1520, 7923, 775, 30, 563, 273, 365, 18, 87, 18, 18334, 12, 2163, 3247, 13, 1335, 2987, 18, 1636, 16, 695, 30, 2 ]
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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 875, 365, 18, 9565, 9309, 273, 875, 365, 18, 9309, 273, 875, 365, 18, 24807, 273, 875, 365, 18, 22657, 273, 875, 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, -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 ]
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, 2199, 854, 977, 578, 5798, 16, 1392, 738, 87, 7923, 738, 498, 327, 389, 1969, 18, 5151, 16, 3869, 12, 2159, 16, 498, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 2199, 854, 977, 578, 5798, 16, 1392, 738, 87, 7923, 738, 498, 327, 389, 1969, 18, 5151, 16, 3869, 12, 2159, 16, 498, 13, 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, -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 ]
( '/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', '../x/y/z/bar.txt' ), ( '/tmp', '/x/bar.txt', '../x/bar.txt' ), ( '/tmp', '/x/y/z/bar.txt', '../x/y/z/bar.txt' ), ( '/', '/x/bar.txt', 'x/bar.txt' ), ( '/path/to', '/path/to/result_in_same_dir.html', 'result_in_same_dir.html' ), ( '/path/to/dir', '/path/to/result_in_parent_dir.html', '../result_in_parent_dir.html' ), ( '/path/to', '/path/to/dir/result_in_sub_dir.html', 'dir/result_in_sub_dir.html' ), ( '/commonprefix/sucks/baR', '/commonprefix/sucks/baZ.txt', '../baZ.txt' ), ( '/a/very/long/path', '/no/depth/limitation', '../../../../no/depth/limitation' ), ( '/etc/fstab', '/path/to/existing/file', '../path/to/existing/file' ), ( '/path/to/identity', '/path/to/identity', 'identity' ), ] else: inputs = [ ( 'c:\\temp\\', 'c:\\temp\\bar.txt', 'bar.txt' ), ( 'c:\\temp', 'c:\\temp\\x\\bar.txt', 'x/bar.txt' ), ( 'c:\\temp\\', 'c:\\temp\\x\\y\\bar.txt', 'x/y/bar.txt' ), ( 'c:\\temp', 'c:\\temp\\x\\y\\z\\bar.txt', 'x/y/z/bar.txt' ), ( 'c:\\temp\\', 'c:\\x\\y\\bar.txt', '../x/y/bar.txt' ), ( 'c:\\temp', 'c:\\x\\y\\bar.txt', '../x/y/bar.txt' ), ( 'c:\\temp', 'c:\\x\\bar.txt', '../x/bar.txt' ), ( 'c:\\temp', 'c:\\x\\y\\z\\bar.txt', '../x/y/z/bar.txt' ), ( 'c:\\temp\\', 'r:\\x\\y\\bar.txt', 'file:///r:/x/y/bar.txt' ), ( 'c:\\', 'c:\\x\\bar.txt', 'x/bar.txt' ), ( 'c:\\path\\to', 'c:\\path\\to\\result_in_same_dir.html', 'result_in_same_dir.html' ), ( 'c:\\path\\to\\dir', 'c:\\path\\to\\result_in_parent_dir.html', '../result_in_parent_dir.html' ), ( 'c:\\path\\to', 'c:\\path\\to\\dir\\result_in_sub_dir.html', 'dir/result_in_sub_dir.html' ), ( 'c:\\commonprefix\\sucks\\baR', 'c:\\commonprefix\\sucks\\baZ.txt', '../baz.txt' ), ( 'c:\\a\\very\\long\\path', 'c:\\no\\depth\\limitation', '../../../../no/depth/limitation' ), ( 'c:\\boot.ini', 'c:\\path\\to\\existing\\file', 'path/to/existing/file' ), ( 'c:\\path\\to\\identity', 'c:\\path\\to\\identity', 'identity' ), ]
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, 5830, 11, 262, 16, 261, 1173, 5645, 2187, 1173, 5645, 19, 92, 19, 3215, 18, 5830, 2187, 296, 92, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 19, 2187, 1173, 5645, 19, 92, 19, 93, 19, 3215, 18, 5830, 2187, 296, 92, 19, 93, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 19, 2187, 1173, 5645, 19, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 2187, 296, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 2187, 1173, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 2187, 25226, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 19, 2187, 1173, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 2187, 25226, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 2187, 1173, 92, 19, 3215, 18, 5830, 2187, 25226, 92, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 2187, 1173, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 2187, 25226, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 11, 262, 16, 261, 2023, 16, 1173, 92, 19, 3215, 18, 5830, 2187, 296, 92, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 803, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5830, 11, 262, 16, 261, 1173, 5645, 2187, 1173, 5645, 19, 92, 19, 3215, 18, 5830, 2187, 296, 92, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 19, 2187, 1173, 5645, 19, 92, 19, 93, 19, 3215, 18, 5830, 2187, 296, 92, 19, 93, 19, 3215, 18, 5830, 11, 262, 16, 261, 1173, 5645, 19, 2187, 1173, 5645, 19, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 2187, 296, 92, 19, 93, 19, 94, 19, 3215, 18, 5830, 11, 262, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.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, 5240, 6043, 13, 511, 18, 6923, 2668, 1350, 17, 15087, 30, 646, 17, 892, 31, 508, 1546, 13178, 552, 5187, 13, 511, 18, 6923, 2668, 1350, 17, 559, 30, 977, 19, 7446, 6134, 511, 18, 6923, 2668, 6134, 511, 18, 6923, 12, 2890, 18, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 5240, 6043, 13, 511, 18, 6923, 2668, 1350, 17, 15087, 30, 646, 17, 892, 31, 508, 1546, 13178, 552, 5187, 13, 511, 18, 6923, 2668, 1350, 17, 559, 30, 977, 19, 7446, 6134, 511, 18, 6923, 2668, 6134, 511, 18, 6923, 12, 2890, 18, 529, 13, 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, -100, -100, -100, -100, -100, -100 ]
- [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 calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES:: sage: wigner_3j(2, 6, 4, 0, 0, 0) sqrt(5/143) sage: wigner_3j(2, 6, 4, 0, 0, 1) 0 sage: wigner_3j(0.5, 0.5, 1, 0.5, -0.5, 0) sqrt(1/6) sage: wigner_3j(40, 100, 60, -10, 60, -50) 95608/18702538494885*sqrt(21082735836735314343364163310/220491455010479533763) sage: wigner_3j(2500, 2500, 5000, 2488, 2400, -4888, prec=64) 7.60424456883448589e-12 It is an error to have arguments that are not integer or half integer values:: sage: wigner_3j(2.1, 6, 4, 0, 0, 0) Traceback (most recent call last): ... ValueError: j values must be integer or half integer sage: wigner_3j(2, 6, 4, 1, 0, -1.1) Traceback (most recent call last): ... ValueError: m values must be integer or half integer NOTES: The Wigner 3j symbol obeys the following symmetry rules: - invariant under any permutation of the columns (with the exception of a sign change where `J:=j_1+j_2+j_3`): .. math:: Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3) =Wigner3j(j_3,j_1,j_2,m_3,m_1,m_2) =Wigner3j(j_2,j_3,j_1,m_2,m_3,m_1) =(-1)^J Wigner3j(j_3,j_2,j_1,m_3,m_2,m_1) =(-1)^J Wigner3j(j_1,j_3,j_2,m_1,m_3,m_2) =(-1)^J Wigner3j(j_2,j_1,j_3,m_2,m_1,m_3) - invariant under space inflection, i. e. .. math:: Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3) =(-1)^J Wigner3j(j_1,j_2,j_3,-m_1,-m_2,-m_3) - symmetric with respect to the 72 additional symmetries based on the work by [Regge58] - zero for `j_1`, `j_2`, `j_3` not fulfilling triangle relation - zero for `m_1+m_2+m_3\neq 0` - zero for violating any one of the conditions `j_1\ge|m_1|`, `j_2\ge|m_2|`, `j_3\ge|m_3|` ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Regge58] 'Symmetry Properties of Clebsch-Gordan Coefficients', T. Regge, Nuovo Cimento, Volume 10, pp. 544 (1958) - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) AUTHORS: - Jens Rasch (2009-03-24): initial version """ if int(j_1 * 2) != j_1 * 2 or int(j_2 * 2) != j_2 * 2 or \ int(j_3 * 2) != j_3 * 2: raise ValueError("j values must be integer or half integer") if int(m_1 * 2) != m_1 * 2 or int(m_2 * 2) != m_2 * 2 or \ int(m_3 * 2) != m_3 * 2: raise ValueError("m values must be integer or half integer") if (m_1 + m_2 + m_3 <> 0): return 0 prefid = Integer((-1) ** (int(j_1 - j_2 - m_3))) m_3 = -m_3 a1 = j_1 + j_2 - j_3 if (a1 < 0): return 0 a2 = j_1 - j_2 + j_3 if (a2 < 0): return 0 a3 = -j_1 + j_2 + j_3 if (a3 < 0): return 0 if (abs(m_1) > j_1) or (abs(m_2) > j_2) or (abs(m_3) > j_3): return 0 maxfact = max(j_1 + j_2 + j_3 + 1, j_1 + abs(m_1), j_2 + abs(m_2), \ j_3 + abs(m_3)) _calc_factlist(maxfact) argsqrt = Integer(_Factlist[int(j_1 + j_2 - j_3)] * \ _Factlist[int(j_1 - j_2 + j_3)] * \ _Factlist[int(-j_1 + j_2 + j_3)] * \ _Factlist[int(j_1 - m_1)] * \ _Factlist[int(j_1 + m_1)] * \ _Factlist[int(j_2 - m_2)] * \ _Factlist[int(j_2 + m_2)] * \ _Factlist[int(j_3 - m_3)] * \ _Factlist[int(j_3 + m_3)]) / \ _Factlist[int(j_1 + j_2 + j_3 + 1)] ressqrt = argsqrt.sqrt(prec) if type(ressqrt) is ComplexNumber: ressqrt = ressqrt.real() imin = max(-j_3 + j_1 + m_2, -j_3 + j_2 - m_1, 0) imax = min(j_2 + m_2, j_1 - m_1, j_1 + j_2 - j_3) sumres = 0 for ii in range(imin, imax + 1): den = _Factlist[ii] * \ _Factlist[int(ii + j_3 - j_1 - m_2)] * \ _Factlist[int(j_2 + m_2 - ii)] * \ _Factlist[int(j_1 - ii - m_1)] * \ _Factlist[int(ii + j_3 - j_2 + m_1)] * \ _Factlist[int(j_1 + j_2 - j_3 - ii)] sumres = sumres + Integer((-1) ** ii) / den res = ressqrt * sumres * prefid return res
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, 678, 724, 264, 890, 78, 3273, 1375, 59, 724, 264, 23, 78, 12, 78, 67, 21, 16, 78, 67, 22, 16, 78, 67, 23, 16, 81, 67, 21, 16, 81, 67, 22, 16, 81, 67, 23, 13, 8338, 225, 12943, 30, 225, 300, 225, 12176, 78, 67, 21, 68, 9191, 12176, 78, 67, 22, 68, 9191, 12176, 78, 67, 23, 68, 9191, 12176, 81, 67, 21, 68, 9191, 12176, 81, 67, 22, 68, 9191, 12176, 81, 67, 23, 10335, 300, 3571, 578, 8816, 3571, 225, 300, 225, 12176, 4036, 10335, 300, 6039, 16, 805, 30, 599, 18, 1186, 1246, 310, 279, 6039, 848, 302, 354, 334, 6478, 8632, 731, 326, 11096, 18, 225, 11550, 30, 225, 436, 8371, 1300, 4124, 326, 8576, 1365, 434, 279, 436, 8371, 1300, 261, 430, 13382, 33, 7036, 3631, 578, 2863, 1300, 309, 279, 6039, 353, 864, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 341, 724, 264, 67, 23, 78, 12, 22, 16, 1666, 16, 1059, 16, 374, 16, 374, 16, 374, 13, 5700, 12, 25, 19, 28643, 13, 225, 272, 410, 30, 341, 724, 264, 67, 23, 78, 12, 22, 16, 1666, 16, 1059, 16, 374, 16, 374, 16, 404, 13, 374, 225, 272, 410, 30, 341, 724, 264, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 678, 724, 264, 890, 78, 3273, 1375, 59, 724, 264, 23, 78, 12, 78, 67, 21, 16, 78, 67, 22, 16, 78, 67, 23, 16, 81, 67, 21, 16, 81, 67, 22, 16, 81, 67, 23, 13, 8338, 225, 12943, 30, 225, 300, 225, 12176, 78, 67, 21, 68, 9191, 12176, 78, 67, 22, 68, 9191, 12176, 78, 67, 23, 68, 9191, 12176, 81, 67, 21, 68, 9191, 12176, 81, 67, 22, 68, 9191, 12176, 81, 67, 23, 10335, 2 ]
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, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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` do not have to be lists but just values. Parameters ---------- base : array Input array to extend. names : string, sequence String or sequence of strings corresponding to the names of the new fields. data : array or sequence of arrays Array or sequence of arrays storing the fields to add to the base. dtypes : sequence of datatypes Datatype or sequence of datatypes. If None, the datatypes are estimated from the `data`. fill_value : {float}, optional Filling value used to pad missing data on the shorter arrays. usemask : {False, True}, optional Whether to return a masked array or not. asrecarray : {False, True}, optional Whether to return a recarray (MaskedRecords) or not. """ # Check the names if isinstance(names, (tuple, list)): if len(names) != len(data): err_msg = "The number of arrays does not match the number of names" raise ValueError(err_msg) elif isinstance(names, basestring): names = [names,] data = [data,] # if dtypes is None: data = [np.array(a, copy=False, subok=True) for a in data] data = [a.view([(name, a.dtype)]) for (name, a) in zip(names, data)] elif not hasattr(dtypes, '__iter__'): dtypes = [dtypes,] if len(data) != len(dtypes): if len(dtypes) == 1: dtypes = dtypes * len(data) else: msg = "The dtypes argument must be None, "\ "a single dtype or a list." raise ValueError(msg) data = [np.array(a, copy=False, subok=True, dtype=d).view([(n, d)]) for (a, n, d) in zip(data, names, dtypes)] # base = merge_arrays(base, usemask=usemask, fill_value=fill_value) if len(data) > 1: data = merge_arrays(data, flatten=True, usemask=usemask, fill_value=fill_value) else: data = data.pop() # output = ma.masked_all(max(len(base), len(data)), dtype=base.dtype.descr + data.dtype.descr) output = recursive_fill_fields(base, output) output = recursive_fill_fields(data, output) # return _fix_output(output, usemask=usemask, asrecarray=asrecarray)
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, 394, 1466, 358, 392, 2062, 526, 18, 225, 1021, 1257, 434, 326, 1466, 854, 864, 598, 326, 1375, 1973, 68, 1775, 16, 326, 4656, 924, 598, 326, 1375, 892, 68, 1775, 18, 971, 279, 2202, 652, 353, 12317, 16, 1375, 1973, 9191, 1375, 892, 68, 471, 1375, 72, 2352, 68, 741, 486, 1240, 358, 506, 6035, 1496, 2537, 924, 18, 225, 7012, 12181, 1026, 294, 526, 2741, 526, 358, 2133, 18, 1257, 294, 533, 16, 3102, 514, 578, 3102, 434, 2064, 4656, 358, 326, 1257, 434, 326, 394, 1466, 18, 501, 294, 526, 578, 3102, 434, 5352, 1510, 578, 3102, 434, 5352, 15729, 326, 1466, 358, 527, 358, 326, 1026, 18, 22441, 294, 3102, 434, 14760, 21168, 578, 3102, 434, 14760, 18, 971, 599, 16, 326, 14760, 854, 13137, 628, 326, 1375, 892, 8338, 3636, 67, 1132, 294, 288, 5659, 5779, 3129, 478, 5789, 460, 1399, 358, 4627, 3315, 501, 603, 326, 19623, 5352, 18, 999, 4455, 294, 288, 8381, 16, 1053, 5779, 3129, 17403, 358, 327, 279, 13196, 526, 578, 486, 18, 487, 3927, 1126, 294, 288, 8381, 16, 1053, 5779, 3129, 17403, 358, 327, 279, 1950, 1126, 261, 5796, 329, 6499, 13, 578, 486, 18, 225, 3536, 468, 2073, 326, 1257, 309, 1549, 12, 1973, 16, 261, 8052, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 1466, 358, 392, 2062, 526, 18, 225, 1021, 1257, 434, 326, 1466, 854, 864, 598, 326, 1375, 1973, 68, 1775, 16, 326, 4656, 924, 598, 326, 1375, 892, 68, 1775, 18, 971, 279, 2202, 652, 353, 12317, 16, 1375, 1973, 9191, 1375, 892, 68, 471, 1375, 72, 2352, 68, 741, 486, 1240, 358, 506, 6035, 1496, 2537, 924, 18, 225, 7012, 12181, 1026, 294, 526, 2741, 526, 358, 2133, 18, 1257, 294, 533, 16, 3102, 514, 578, 3102, 434, 2064, 4656, 358, 2 ]
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. result_summary: summary object for test run """ # Reverse-sort by the time spent in DumpRenderTree. individual_test_timings.sort(lambda a, b: cmp(b.test_run_time, a.test_run_time))
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, 17053, 7434, 18, 6634, 30, 1045, 30, 432, 1348, 358, 1045, 1123, 358, 261, 73, 18, 75, 12990, 279, 10253, 2289, 13, 578, 2589, 18, 10283, 18, 2626, 18, 7327, 67, 3813, 67, 8584, 899, 30, 987, 434, 4657, 67, 5902, 67, 3413, 67, 5930, 18, 4709, 4195, 364, 777, 7434, 18, 563, 67, 7687, 30, 4916, 733, 364, 1842, 1086, 3536, 468, 18469, 17, 3804, 635, 326, 813, 26515, 316, 18242, 3420, 2471, 18, 7327, 67, 3813, 67, 8584, 899, 18, 3804, 12, 14661, 279, 16, 324, 30, 9411, 12, 70, 18, 3813, 67, 2681, 67, 957, 16, 279, 18, 3813, 67, 2681, 67, 957, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 17053, 7434, 18, 6634, 30, 1045, 30, 432, 1348, 358, 1045, 1123, 358, 261, 73, 18, 75, 12990, 279, 10253, 2289, 13, 578, 2589, 18, 10283, 18, 2626, 18, 7327, 67, 3813, 67, 8584, 899, 30, 987, 434, 4657, 67, 5902, 67, 3413, 67, 5930, 18, 4709, 4195, 364, 777, 7434, 18, 563, 67, 7687, 30, 4916, 733, 364, 1842, 1086, 3536, 468, 18469, 17, 3804, 635, 326, 813, 26515, 316, 18242, 3420, 2471, 18, 7327, 67, 3813, 67, 8584, 899, 18, 3804, 2 ]
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('drag_motion', self.motion_cb) self.layout.connect('drag_data_received', self.drop_cb) self.layout.add_events(gtk.gdk.KEY_PRESS_MASK | gtk.gdk.POINTER_MOTION_MASK | gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.BUTTON_MOTION_MASK | gtk.gdk.SCROLL_MASK) self.layout.connect("scroll-event", self.mousewheel_scrolled) self.layout.add_events(gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.KEY_PRESS_MASK) self.layout.connect("button_press_event", self.button_pressed) self.layout.add_events(gtk.gdk.POINTER_MOTION_MASK | gtk.gdk.POINTER_MOTION_HINT_MASK | gtk.gdk.BUTTON_RELEASE_MASK) self.layout.connect("motion-notify-event", self.mouse_moved) self.layout.connect("button-release-event", self.button_released)
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('drag_motion', self.motion_cb) self.layout.connect('drag_data_received', self.drop_cb) self.layout.add_events(gtk.gdk.KEY_PRESS_MASK | gtk.gdk.POINTER_MOTION_MASK | gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.BUTTON_MOTION_MASK | gtk.gdk.SCROLL_MASK) self.layout.connect("scroll-event", self.mousewheel_scrolled) self.layout.add_events(gtk.gdk.BUTTON_PRESS_MASK | gtk.gdk.KEY_PRESS_MASK) self.layout.connect("button_press_event", self.button_pressed) self.layout.add_events(gtk.gdk.POINTER_MOTION_MASK | gtk.gdk.POINTER_MOTION_HINT_MASK | gtk.gdk.BUTTON_RELEASE_MASK) self.layout.connect("motion-notify-event", self.mouse_moved) self.layout.connect("button-release-event", self.button_released)
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -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 ]
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(line) if m: if gp: gitpatches.append(gp) src, dst = m.group(1, 2) gp = patchmeta(dst) gp.lineno = lineno elif gp: if line.startswith('--- '): if gp.op in ('COPY', 'RENAME'): dopatch |= GP_FILTER gitpatches.append(gp) gp = None dopatch |= GP_PATCH continue if line.startswith('rename from '): gp.op = 'RENAME' gp.oldpath = line[12:].rstrip() elif line.startswith('rename to '): gp.path = line[10:].rstrip() elif line.startswith('copy from '): gp.op = 'COPY' gp.oldpath = line[10:].rstrip() elif line.startswith('copy to '): gp.path = line[8:].rstrip() elif line.startswith('deleted file'): gp.op = 'DELETE' # is the deleted file a symlink? gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('new file mode '): gp.op = 'ADD' gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('new mode '): gp.setmode(int(line.rstrip()[-6:], 8)) elif line.startswith('GIT binary patch'): dopatch |= GP_BINARY gp.binary = True if gp: gitpatches.append(gp) if not gitpatches: dopatch = GP_PATCH return (dopatch, gitpatches)
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, 5378, 468, 4480, 1240, 279, 5071, 4729, 598, 1338, 1982, 16, 25416, 4729, 358, 532, 7446, 302, 556, 505, 273, 374, 225, 7586, 273, 374, 364, 980, 316, 12226, 30, 7586, 1011, 404, 309, 980, 18, 17514, 1918, 2668, 5413, 1493, 6845, 11, 4672, 312, 273, 5071, 266, 18, 1916, 12, 1369, 13, 309, 312, 30, 309, 4178, 30, 5071, 30278, 18, 6923, 12, 6403, 13, 1705, 16, 3046, 273, 312, 18, 1655, 12, 21, 16, 576, 13, 4178, 273, 4729, 3901, 12, 11057, 13, 4178, 18, 17782, 273, 7586, 1327, 4178, 30, 309, 980, 18, 17514, 1918, 2668, 6062, 296, 4672, 309, 4178, 18, 556, 316, 7707, 24875, 2187, 296, 862, 1985, 11, 4672, 302, 556, 505, 5626, 4948, 67, 11126, 5071, 30278, 18, 6923, 12, 6403, 13, 4178, 273, 599, 302, 556, 505, 5626, 4948, 67, 20366, 1324, 309, 980, 18, 17514, 1918, 2668, 18539, 628, 296, 4672, 4178, 18, 556, 273, 296, 862, 1985, 11, 4178, 18, 1673, 803, 273, 980, 63, 2138, 30, 8009, 86, 6406, 1435, 1327, 980, 18, 17514, 1918, 2668, 18539, 358, 296, 4672, 4178, 18, 803, 273, 980, 63, 2163, 30, 8009, 86, 6406, 1435, 1327, 980, 18, 17514, 1918, 2668, 3530, 628, 296, 4672, 4178, 18, 556, 273, 296, 24875, 11, 4178, 18, 1673, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5378, 468, 4480, 1240, 279, 5071, 4729, 598, 1338, 1982, 16, 25416, 4729, 358, 532, 7446, 302, 556, 505, 273, 374, 225, 7586, 273, 374, 364, 980, 316, 12226, 30, 7586, 1011, 404, 309, 980, 18, 17514, 1918, 2668, 5413, 1493, 6845, 11, 4672, 312, 273, 5071, 266, 18, 1916, 12, 1369, 13, 309, 312, 30, 309, 4178, 30, 5071, 30278, 18, 6923, 12, 6403, 13, 1705, 16, 3046, 273, 312, 18, 1655, 12, 21, 16, 576, 13, 4178, 273, 4729, 3901, 12, 11057, 13, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -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 ''.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, 1232, 264, 13, 365, 6315, 5457, 18, 11348, 21071, 12, 3516, 1811, 13, 327, 875, 18, 5701, 12, 3516, 1811, 18, 3432, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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000, 273, 389, 41, 2074, 2434, 30745, 21575, 60, 12233, 12, 2890, 6315, 5457, 16, 14525, 67, 1232, 264, 13, 365, 6315, 5457, 18, 11348, 21071, 12, 3516, 1811, 13, 327, 875, 18, 5701, 12, 3516, 1811, 18, 3432, 13, 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, -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 ]
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, 1464, 365, 18, 3239, 1650, 63, 3239, 65, 469, 30, 365, 18, 1636, 2932, 18939, 5917, 1633, 2874, 738, 86, 6, 738, 1633, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1464, 365, 18, 3239, 1650, 63, 3239, 65, 469, 30, 365, 18, 1636, 2932, 18939, 5917, 1633, 2874, 738, 86, 6, 738, 1633, 13, 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, -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 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 default error message can be overridden with the `msg` argument. """ name = self._get_var_name(name) variables = self._get_variables() if msg: msg = variables.replace_string(msg) else: msg = "Variable %s does not exist" % name asserts.fail_unless(variables.has_key(name), msg)
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, 3344, 487, 279, 2212, 2190, 508, 261, 73, 18, 75, 18, 3531, 1985, 6792, 578, 316, 8345, 740, 261, 73, 18, 75, 18, 1736, 18498, 1985, 97, 2934, 24914, 716, 326, 27313, 6330, 1338, 316, 19686, 352, 13472, 576, 18, 21, 471, 16069, 18, 2164, 2546, 4721, 628, 1375, 694, 348, 9519, 7110, 8338, 225, 1021, 805, 555, 883, 848, 506, 11000, 598, 326, 1375, 3576, 68, 1237, 18, 3536, 508, 273, 365, 6315, 588, 67, 1401, 67, 529, 12, 529, 13, 3152, 273, 365, 6315, 588, 67, 7528, 1435, 309, 1234, 30, 1234, 273, 3152, 18, 2079, 67, 1080, 12, 3576, 13, 469, 30, 1234, 273, 315, 3092, 738, 87, 1552, 486, 1005, 6, 738, 508, 26124, 18, 6870, 67, 28502, 12, 7528, 18, 5332, 67, 856, 12, 529, 3631, 1234, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 3344, 487, 279, 2212, 2190, 508, 261, 73, 18, 75, 18, 3531, 1985, 6792, 578, 316, 8345, 740, 261, 73, 18, 75, 18, 1736, 18498, 1985, 97, 2934, 24914, 716, 326, 27313, 6330, 1338, 316, 19686, 352, 13472, 576, 18, 21, 471, 16069, 18, 2164, 2546, 4721, 628, 1375, 694, 348, 9519, 7110, 8338, 225, 1021, 805, 555, 883, 848, 506, 11000, 598, 326, 1375, 3576, 68, 1237, 18, 3536, 508, 273, 365, 6315, 588, 67, 1401, 67, 529, 12, 529, 13, 3152, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 8419, 18, 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, -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, -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 ]
'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', 'zeta') svntest.main.file_append(zeta_path, "This is the file 'zeta'.") svntest.main.run_svn(None, 'add', zeta_path) # Now update. "zeta at revision 0" should *not* be reported. # Create expected output tree for an update of the wc_backup. output_list = [] expected_output_tree = svntest.tree.build_generic_tree(output_list) # Create expected disk tree for the update. my_greek_tree = svntest.main.copy_greek_tree() my_greek_tree.append(['A/B/zeta', "This is the file 'zeta'.", {}, {}]) expected_disk_tree = svntest.tree.build_generic_tree(my_greek_tree) # Create expected status tree for the update. status_list = svntest.actions.get_virginal_status_list(wc_dir, '1') status_list.append([zeta_path, None, {}, {'status' : 'A ', 'wc_rev' : '0', 'repos_rev' : '1'}]) expected_status_tree = svntest.tree.build_generic_tree(status_list) # Do the update and check the results in three ways. return svntest.actions.run_and_verify_update(wc_dir, expected_output_tree, expected_disk_tree, expected_status_tree)
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, 803, 18, 5701, 261, 5751, 496, 395, 18, 5254, 18, 12259, 67, 27594, 67, 1214, 16, 272, 2147, 13, 225, 309, 5893, 496, 395, 18, 4905, 18, 6540, 67, 7422, 67, 464, 67, 27594, 12, 87, 2147, 4672, 327, 404, 225, 468, 1788, 279, 394, 585, 16, 296, 94, 1066, 2187, 471, 4788, 518, 364, 2719, 18, 998, 1066, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 27594, 67, 1214, 16, 296, 37, 2187, 296, 38, 2187, 296, 94, 1066, 6134, 5893, 496, 395, 18, 5254, 18, 768, 67, 6923, 12, 94, 1066, 67, 803, 16, 315, 2503, 353, 326, 585, 296, 94, 1066, 14550, 13, 5893, 496, 395, 18, 5254, 18, 2681, 67, 31505, 12, 7036, 16, 296, 1289, 2187, 998, 1066, 67, 803, 13, 225, 468, 4494, 1089, 18, 225, 315, 94, 1066, 622, 6350, 374, 6, 1410, 380, 902, 14, 506, 14010, 18, 225, 468, 1788, 2665, 876, 2151, 364, 392, 1089, 434, 326, 14310, 67, 9572, 18, 876, 67, 1098, 273, 5378, 2665, 67, 2844, 67, 3413, 273, 5893, 496, 395, 18, 3413, 18, 3510, 67, 13540, 67, 3413, 12, 2844, 67, 1098, 13, 225, 468, 1788, 2665, 4234, 2151, 364, 326, 1089, 18, 3399, 67, 75, 992, 79, 67, 3413, 273, 5893, 496, 395, 18, 5254, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 803, 18, 5701, 261, 5751, 496, 395, 18, 5254, 18, 12259, 67, 27594, 67, 1214, 16, 272, 2147, 13, 225, 309, 5893, 496, 395, 18, 4905, 18, 6540, 67, 7422, 67, 464, 67, 27594, 12, 87, 2147, 4672, 327, 404, 225, 468, 1788, 279, 394, 585, 16, 296, 94, 1066, 2187, 471, 4788, 518, 364, 2719, 18, 998, 1066, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 27594, 67, 1214, 16, 296, 37, 2187, 296, 38, 2187, 296, 94, 1066, 6134, 5893, 496, 2 ]
_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) - max_length if overage < 0: return number_to_toss = max_length // divisor + overage import random if not hasattr(random, 'sample'): return for doomed_key in random.sample(cache_keys, number_to_toss): try: del cache_dict[doomed_key] except KeyError: pass def _compile(*args): return _compile_typed(type(args[0]), *args) @functools.lru_cache(maxsize=_MAXCACHE) def _compile_typed(type, *key):
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 = [] esc = ord(b"\\") for c in pattern: if c in alphanum: s.append(c) else: if c == 0: s.extend(b"\\000") else: s.append(esc) s.append(c) return 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, 4951, 13, 364, 277, 316, 1048, 12, 1897, 12, 4951, 3719, 30, 276, 273, 1936, 63, 77, 65, 309, 276, 486, 316, 524, 17560, 30, 309, 276, 422, 1548, 3784, 6877, 272, 63, 77, 65, 273, 8422, 3784, 6, 469, 30, 272, 63, 77, 65, 273, 14520, 397, 276, 327, 1408, 18, 5701, 12, 87, 13, 469, 30, 524, 17560, 273, 389, 287, 17560, 67, 3890, 272, 273, 5378, 2904, 273, 4642, 12, 70, 6, 1695, 7923, 364, 276, 316, 1936, 30, 309, 276, 316, 524, 17560, 30, 272, 18, 6923, 12, 71, 13, 469, 30, 309, 276, 422, 374, 30, 272, 18, 14313, 12, 70, 6, 1695, 3784, 7923, 469, 30, 272, 18, 6923, 12, 742, 13, 272, 18, 6923, 12, 71, 13, 327, 1731, 12, 87, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 4951, 13, 364, 277, 316, 1048, 12, 1897, 12, 4951, 3719, 30, 276, 273, 1936, 63, 77, 65, 309, 276, 486, 316, 524, 17560, 30, 309, 276, 422, 1548, 3784, 6877, 272, 63, 77, 65, 273, 8422, 3784, 6, 469, 30, 272, 63, 77, 65, 273, 14520, 397, 276, 327, 1408, 18, 5701, 12, 87, 13, 469, 30, 524, 17560, 273, 389, 287, 17560, 67, 3890, 272, 273, 5378, 2904, 273, 4642, 12, 70, 6, 1695, 7923, 364, 276, 316, 1936, 30, 309, 276, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -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 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.get('hr.applicant') # Select the view
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, 273, 2845, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 563, 273, 681, 67, 2603, 6315, 588, 67, 350, 12, 3353, 16, 4555, 16, 296, 7256, 2187, 296, 1945, 67, 7256, 67, 3593, 67, 10540, 12550, 67, 2188, 6134, 400, 273, 681, 67, 2603, 18, 896, 12, 3353, 16, 4555, 16, 563, 16, 10228, 455, 67, 350, 19486, 7353, 1991, 67, 3593, 67, 2603, 273, 2845, 18, 588, 2668, 7256, 18, 10540, 1991, 6134, 1719, 67, 3593, 67, 2603, 273, 2845, 18, 588, 2668, 7256, 18, 438, 1780, 970, 6134, 468, 6766, 326, 1476, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 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, 273, 2845, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 563, 273, 681, 67, 2603, 6315, 588, 67, 350, 12, 3353, 16, 4555, 16, 296, 7256, 2187, 296, 1945, 67, 7256, 67, 3593, 67, 10540, 12550, 67, 2188, 6134, 400, 273, 681, 67, 2603, 18, 896, 12, 3353, 16, 4555, 16, 563, 16, 10228, 455, 67, 350, 19486, 7353, 1991, 67, 3593, 67, 2603, 273, 2845, 18, 588, 2668, 7256, 18, 10540, 1991, 6134, 1719, 67, 3593, 67, 2603, 273, 2845, 2 ]
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.exit()
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, 279, 6199, 309, 261, 24688, 18, 2088, 353, 599, 13, 578, 261, 24688, 18, 2088, 422, 24691, 18, 12778, 4672, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 588, 3651, 461, 1435, 4672, 24691, 18, 8837, 12, 3190, 12, 2890, 18, 588, 3651, 461, 1435, 3719, 469, 30, 365, 18, 5681, 1435, 1172, 315, 1482, 30, 7709, 6, 2589, 18, 8593, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 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, 279, 6199, 309, 261, 24688, 18, 2088, 353, 599, 13, 578, 261, 24688, 18, 2088, 422, 24691, 18, 12778, 4672, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 588, 3651, 461, 1435, 4672, 24691, 18, 8837, 12, 3190, 12, 2890, 18, 588, 3651, 461, 1435, 3719, 469, 30, 365, 18, 5681, 1435, 1172, 315, 1482, 30, 7709, 6, 2589, 18, 8593, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 will have the value that choices[i] contains in the same place. :Parameters: - `a` : int array This array must contain integers in [0, n-1], where n is the number of choices. - `choices` : sequence of arrays Each of the choice arrays should have the same shape as the index array. - `out` : array, optional If provided, the result will be inserted into this array. It should be of the appropriate shape and dtype - `mode` : one of 'raise', 'wrap', or 'clip', optional (default='raise') Specifies how out-of-bounds indices will behave. - 'raise' : raise an error - 'wrap' : wrap around - 'clip' : clip to the range :Returns: - `merged_array` : array :See also: numpy.ndarray.choose() is the equivalent method. :Example: >>> choices = [[0, 1, 2, 3], [10, 11, 12, 13], ... [20, 21, 22, 23], [30, 31, 32, 33]] >>> choose([2, 3, 1, 0], choices) array([20, 31, 12, 3]) >>> choose([2, 4, 1, 0], choices, mode='clip') array([20, 31, 12, 3]) >>> choose([2, 4, 1, 0], choices, mode='wrap') array([20, 1, 12, 3]) """ try: choose = a.choose except AttributeError: return _wrapit(a, 'choose', choices, out=out, mode=mode) return choose(choices, out=out, mode=mode)
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, 434, 12321, 316, 288, 20, 16, 404, 16, 1372, 16, 290, 17, 21, 97, 471, 279, 444, 434, 290, 6023, 5352, 16, 333, 445, 903, 752, 279, 394, 526, 716, 19037, 1517, 434, 326, 6023, 5352, 18, 12177, 279, 460, 316, 1375, 69, 68, 353, 277, 16, 1508, 326, 394, 526, 903, 1240, 326, 460, 716, 7246, 63, 77, 65, 1914, 316, 326, 1967, 3166, 18, 225, 294, 2402, 30, 300, 1375, 69, 68, 294, 509, 526, 1220, 526, 1297, 912, 12321, 316, 306, 20, 16, 290, 17, 21, 6487, 1625, 290, 353, 326, 1300, 434, 7246, 18, 300, 1375, 11937, 68, 294, 3102, 434, 5352, 8315, 434, 326, 6023, 5352, 1410, 1240, 326, 1967, 2179, 487, 326, 770, 526, 18, 300, 1375, 659, 68, 294, 526, 16, 3129, 971, 2112, 16, 326, 563, 903, 506, 9564, 1368, 333, 526, 18, 2597, 1410, 506, 434, 326, 5505, 2179, 471, 3182, 300, 1375, 3188, 68, 294, 1245, 434, 296, 11628, 2187, 296, 4113, 2187, 578, 296, 14161, 2187, 3129, 261, 1886, 2218, 11628, 6134, 4185, 5032, 3661, 596, 17, 792, 17, 10576, 4295, 903, 31085, 18, 300, 296, 11628, 11, 294, 1002, 392, 555, 300, 296, 4113, 11, 294, 2193, 6740, 300, 296, 14161, 11, 294, 6807, 358, 326, 1048, 225, 294, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 434, 12321, 316, 288, 20, 16, 404, 16, 1372, 16, 290, 17, 21, 97, 471, 279, 444, 434, 290, 6023, 5352, 16, 333, 445, 903, 752, 279, 394, 526, 716, 19037, 1517, 434, 326, 6023, 5352, 18, 12177, 279, 460, 316, 1375, 69, 68, 353, 277, 16, 1508, 326, 394, 526, 903, 1240, 326, 460, 716, 7246, 63, 77, 65, 1914, 316, 326, 1967, 3166, 18, 225, 294, 2402, 30, 300, 1375, 69, 68, 294, 509, 526, 1220, 526, 1297, 912, 12321, 316, 2 ]
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, 2821, 1466, 67, 1973, 18, 5120, 12, 2821, 67, 1973, 18, 1615, 2668, 2327, 67, 3215, 26112, 1466, 273, 365, 18, 2821, 67, 588, 12, 9216, 16, 729, 16, 1466, 67, 1973, 33, 2821, 67, 1973, 16, 819, 33, 2472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, 2821, 1466, 67, 1973, 18, 5120, 12, 2821, 67, 1973, 18, 1615, 2668, 2327, 67, 3215, 26112, 1466, 273, 365, 18, 2821, 67, 588, 12, 9216, 16, 729, 16, 1466, 67, 1973, 33, 2821, 67, 1973, 16, 819, 33, 2472, 13, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 12, 474, 16, 324, 18, 6406, 2668, 1093, 2934, 4939, 2668, 1093, 20349, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 12, 474, 16, 324, 18, 6406, 2668, 1093, 2934, 4939, 2668, 1093, 20349, 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, -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, -100, -100, -100, -100, -100, -100, -100 ]
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, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 327, 306, 2890, 6315, 8622, 12, 77, 13, 364, 277, 316, 272, 3676, 12, 2890, 18, 3348, 16, 290, 15, 2890, 18, 3348, 25887, 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, -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 ]
$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, 279, 3806, 271, 63, 89, 16, 86, 16, 87, 16, 88, 65, 8, 434, 271, 84, 8, 17, 20333, 5600, 18, 2457, 333, 358, 1005, 326, 864, 8882, 711, 358, 1240, 1416, 3309, 28884, 20176, 1879, 2238, 67, 84, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 279, 3806, 271, 63, 89, 16, 86, 16, 87, 16, 88, 65, 8, 434, 271, 84, 8, 17, 20333, 5600, 18, 2457, 333, 358, 1005, 326, 864, 8882, 711, 358, 1240, 1416, 3309, 28884, 20176, 1879, 2238, 67, 84, 18, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 434, 980, 6, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 434, 980, 6, 282, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 2890, 16, 315, 6200, 67, 892, 3113, 599, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 3869, 12, 2890, 16, 315, 6200, 329, 67, 892, 3113, 3869, 12, 2890, 16, 315, 6200, 67, 892, 3113, 599, 3719, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 365, 18, 70, 1786, 353, 486, 599, 30, 365, 18, 70, 1786, 18, 4412, 12, 5510, 13, 469, 30, 365, 18, 4412, 12, 5510, 13, 468, 1746, 800, 89, 28357, 4421, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 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, 365, 18, 70, 1786, 353, 486, 599, 30, 365, 18, 70, 1786, 18, 4412, 12, 5510, 13, 469, 30, 365, 18, 4412, 12, 5510, 13, 468, 1746, 800, 89, 28357, 4421, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_action = %s" \ % self.verify_fail_action) self.logger.debug("YUMng: installOnlyPkgs = %s" \
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" \ % self.doReinst) self.logger.debug("YUMng: installOnlyPkgs: %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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'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, "File is not a zip file, or ends with a comment" endrec = struct.unpack(structEndArchive, endrec) if self.debug > 1: print endrec size_cd = endrec[5] # bytes in central directory offset_cd = endrec[6] # offset of central directory x = filesize - 22 - size_cd # "concat" is zero, unless zip was concatenated to another file concat = x - offset_cd if self.debug > 2: print "given, inferred, offset", offset_cd, x, concat # self.start_dir: Position of start of central directory self.start_dir = offset_cd + concat fp.seek(self.start_dir, 0) total = 0 while total < size_cd: centdir = fp.read(46) total = total + 46 if centdir[0:4] != stringCentralDir: raise BadZipfile, "Bad magic number for central directory" centdir = struct.unpack(structCentralDir, centdir) if self.debug > 2: print centdir filename = fp.read(centdir[12]) # Create ZipInfo instance to store file information x = ZipInfo(filename) x.extra = fp.read(centdir[13]) x.comment = fp.read(centdir[14]) total = total + centdir[12] + centdir[13] + centdir[14] x.header_offset = centdir[18] + concat x.file_offset = x.header_offset + 30 + centdir[12] + centdir[13] (x.create_version, x.create_system, x.extract_version, x.reserved, x.flag_bits, x.compress_type, t, d, x.CRC, x.compress_size, x.file_size) = centdir[1:12] x.volume, x.internal_attr, x.external_attr = centdir[15:18] # Convert date/time code to (year, month, day, hour, min, sec) x.date_time = ( (d>>9)+1980, (d>>5)&0xF, d&0x1F, t>>11, (t>>5)&0x3F, (t&0x1F) * 2 ) self.filelist.append(x) self.NameToInfo[x.filename] = x if self.debug > 2: print "total", total for data in self.filelist: fp.seek(data.header_offset, 0) fheader = fp.read(30) if fheader[0:4] != stringFileHeader: raise BadZipfile, "Bad magic number for file header" fheader = struct.unpack(structFileHeader, fheader) fname = fp.read(fheader[10]) if fname != data.filename: raise RuntimeError, \
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, 434, 679, 17, 792, 17, 10686, 1409, 14104, 273, 4253, 18, 88, 1165, 1435, 397, 11201, 202, 7, 968, 585, 963, 679, 3927, 273, 4253, 18, 896, 12, 3787, 13, 202, 7, 13124, 1297, 486, 679, 598, 279, 2879, 5, 309, 679, 3927, 63, 20, 30, 24, 65, 480, 533, 1638, 7465, 578, 679, 3927, 18919, 22, 26894, 480, 1548, 3784, 64, 3784, 6877, 1002, 6107, 9141, 768, 16, 315, 812, 353, 486, 279, 3144, 585, 16, 578, 3930, 598, 279, 2879, 6, 679, 3927, 273, 1958, 18, 17309, 12, 1697, 1638, 7465, 16, 679, 3927, 13, 309, 365, 18, 4148, 405, 404, 30, 1172, 679, 3927, 963, 67, 4315, 273, 679, 3927, 63, 25, 65, 202, 202, 7, 1731, 316, 18291, 1867, 1384, 67, 4315, 273, 679, 3927, 63, 26, 65, 202, 7, 1384, 434, 18291, 1867, 619, 273, 14104, 300, 11201, 300, 963, 67, 4315, 468, 315, 16426, 6, 353, 3634, 16, 3308, 3144, 1703, 22080, 358, 4042, 585, 3835, 273, 619, 300, 1384, 67, 4315, 309, 365, 18, 4148, 405, 576, 30, 1172, 315, 10822, 16, 13662, 16, 1384, 3113, 1384, 67, 4315, 16, 619, 16, 3835, 468, 365, 18, 1937, 67, 1214, 30, 225, 11010, 434, 787, 434, 18291, 1867, 365, 18, 1937, 67, 1214, 273, 1384, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 434, 679, 17, 792, 17, 10686, 1409, 14104, 273, 4253, 18, 88, 1165, 1435, 397, 11201, 202, 7, 968, 585, 963, 679, 3927, 273, 4253, 18, 896, 12, 3787, 13, 202, 7, 13124, 1297, 486, 679, 598, 279, 2879, 5, 309, 679, 3927, 63, 20, 30, 24, 65, 480, 533, 1638, 7465, 578, 679, 3927, 18919, 22, 26894, 480, 1548, 3784, 64, 3784, 6877, 1002, 6107, 9141, 768, 16, 315, 812, 353, 486, 279, 3144, 585, 16, 578, 3930, 598, 279, 2879, 6, 2 ]
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 or series & season or series & season & episode if len(series_season_ep)>1: if len(series_season_ep)>2: # series & season & episode seriesfound=search_for_series(t, series_name)[ int(series_season_ep[1]) ][ int(series_season_ep[2]) ] else: seriesfound=search_for_series(t, series_name)[ int(series_season_ep[1]) ] # series & season else: seriesfound=search_for_series(t, series_name) # Series only except tvdb_shownotfound: # No such show found. # Use the show-name from the files name, and None as the ep name sys.stderr.write("! Warning: Series (%s) not found\n" % ( series_name ) ) sys.exit(1) except (tvdb_seasonnotfound, tvdb_episodenotfound, tvdb_attributenotfound): # The season, episode or name wasn't found, but the show was. # Use the corrected show-name, but no episode name. if len(series_season_ep)>2: sys.stderr.write("! Warning: For Series (%s), season (%s) or Episode (%s) not found \n" % ( series_name, series_season_ep[1], series_season_ep[2] ) ) else: sys.stderr.write("! Warning: For Series (%s), season (%s) not found \n" % ( series_name, series_season_ep[1] ) ) sys.exit(1) except tvdb_error, errormsg: # Error communicating with thetvdb.com if SID == True: # Maybe the digits were a series name (e.g. 90210) SID = False return searchseries(t, opts, series_season_ep) sys.stderr.write( "! Warning: Error contacting www.thetvdb.com:\n%s\n" % (errormsg) ) sys.exit(1) except tvdb_userabort, errormsg: # User aborted selection (q or ^c) print "\n", errormsg sys.exit(1) else: if opts.raw==True: print "="*20 print "Raw Series Data:\n" if len(series_season_ep)>1: print t[ series_name ][ int(series_season_ep[1]) ] else: print t[ series_name ] print "="*20 return(seriesfound)
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, 30321, 67, 881, 63, 20, 8009, 8167, 1435, 4672, 4166, 67, 529, 33, 10601, 63, 10222, 67, 30321, 67, 881, 63, 20, 8009, 8167, 1435, 6362, 20, 65, 468, 1439, 4166, 508, 469, 30, 4166, 67, 529, 33, 10222, 67, 30321, 67, 881, 63, 20, 65, 468, 21131, 326, 4166, 508, 24068, 775, 30, 468, 5167, 364, 326, 4166, 578, 4166, 473, 15874, 578, 4166, 473, 15874, 473, 17054, 309, 562, 12, 10222, 67, 30321, 67, 881, 13, 34, 21, 30, 309, 562, 12, 10222, 67, 30321, 67, 881, 13, 34, 22, 30, 468, 4166, 473, 15874, 473, 17054, 4166, 7015, 33, 3072, 67, 1884, 67, 10222, 12, 88, 16, 4166, 67, 529, 25146, 509, 12, 10222, 67, 30321, 67, 881, 63, 21, 5717, 308, 63, 509, 12, 10222, 67, 30321, 67, 881, 63, 22, 5717, 308, 469, 30, 4166, 7015, 33, 3072, 67, 1884, 67, 10222, 12, 88, 16, 4166, 67, 529, 25146, 509, 12, 10222, 67, 30321, 67, 881, 63, 21, 5717, 308, 468, 4166, 473, 15874, 469, 30, 4166, 7015, 33, 3072, 67, 1884, 67, 10222, 12, 88, 16, 4166, 67, 529, 13, 468, 9225, 1338, 1335, 13521, 1966, 67, 4500, 902, 7015, 30, 468, 2631, 4123, 2405, 1392, 18, 468, 2672, 326, 2405, 17, 529, 628, 326, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30321, 67, 881, 63, 20, 8009, 8167, 1435, 4672, 4166, 67, 529, 33, 10601, 63, 10222, 67, 30321, 67, 881, 63, 20, 8009, 8167, 1435, 6362, 20, 65, 468, 1439, 4166, 508, 469, 30, 4166, 67, 529, 33, 10222, 67, 30321, 67, 881, 63, 20, 65, 468, 21131, 326, 4166, 508, 24068, 775, 30, 468, 5167, 364, 326, 4166, 578, 4166, 473, 15874, 578, 4166, 473, 15874, 473, 17054, 309, 562, 12, 10222, 67, 30321, 67, 881, 13, 34, 21, 30, 309, 562, 2 ]
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, 11594, 316, 365, 18, 88, 2232, 67, 88, 369, 929, 30, 1562, 273, 365, 18, 3658, 18, 3733, 67, 4146, 12, 18081, 13, 365, 18, 88, 2232, 67, 88, 369, 929, 273, 5378, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 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, 11594, 316, 365, 18, 88, 2232, 67, 88, 369, 929, 30, 1562, 273, 365, 18, 3658, 18, 3733, 67, 4146, 12, 18081, 13, 365, 18, 88, 2232, 67, 88, 369, 929, 273, 5378, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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') avatar = Avatar(user=request.user, image=image, valid=False) avatar.image.save("%s.jpg" % request.user.username, image) image = Image.open(avatar.image.path) image.thumbnail((480, 480), Image.ANTIALIAS) image.save(avatar.image.path, "JPEG") avatar.save() return HttpResponseRedirect('%scrop/' % request.path_info) base, filename = os.path.split(avatar_path) generic, extension = os.path.splitext(filename) if DEFAULT_AVATAR: base, filename = os.path.split(DEFAULT_AVATAR) filename, extension = os.path.splitext(filename) generic96 = "%s/%s.96%s" % (base, filename, extension) generic96 = generic96.replace(settings.MEDIA_ROOT, settings.MEDIA_URL) else: generic96 = "" template = "userprofile/avatar/choose.html" data = { 'generic96': generic96, 'form': form, 'AVATAR_WEBSEARCH': AVATAR_WEBSEARCH, 'section': 'avatar', } return render_to_response(template, data, context_instance=RequestContext(request))
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, 18, 2039, 422, 315, 3798, 6877, 646, 273, 8789, 8761, 1204, 1435, 469, 30, 646, 273, 8789, 8761, 1204, 12, 2293, 18, 3798, 16, 590, 18, 12669, 13, 309, 646, 18, 291, 67, 877, 13332, 1316, 273, 646, 18, 6200, 329, 67, 892, 18, 588, 2668, 718, 6134, 578, 646, 18, 6200, 329, 67, 892, 18, 588, 2668, 17232, 6134, 16910, 273, 8789, 8761, 12, 1355, 33, 2293, 18, 1355, 16, 1316, 33, 2730, 16, 923, 33, 8381, 13, 16910, 18, 2730, 18, 5688, 27188, 87, 18, 14362, 6, 738, 590, 18, 1355, 18, 5053, 16, 1316, 13, 1316, 273, 3421, 18, 3190, 12, 19660, 18, 2730, 18, 803, 13, 1316, 18, 14904, 12443, 24, 3672, 16, 1059, 3672, 3631, 3421, 18, 6856, 31119, 13, 1316, 18, 6283, 2932, 11343, 20387, 5688, 12, 19660, 18, 2730, 18, 803, 16, 315, 28698, 7923, 16910, 18, 5688, 1435, 327, 31780, 29909, 1017, 1764, 2473, 738, 590, 18, 803, 67, 1376, 13, 225, 1026, 16, 1544, 273, 1140, 18, 803, 18, 4939, 12, 19660, 67, 803, 13, 5210, 16, 2710, 273, 1140, 18, 803, 18, 4939, 408, 12, 3459, 13, 225, 309, 3331, 67, 5856, 789, 985, 30, 1026, 16, 1544, 273, 1140, 18, 803, 18, 4939, 12, 5280, 67, 5856, 789, 985, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18, 2039, 422, 315, 3798, 6877, 646, 273, 8789, 8761, 1204, 1435, 469, 30, 646, 273, 8789, 8761, 1204, 12, 2293, 18, 3798, 16, 590, 18, 12669, 13, 309, 646, 18, 291, 67, 877, 13332, 1316, 273, 646, 18, 6200, 329, 67, 892, 18, 588, 2668, 718, 6134, 578, 646, 18, 6200, 329, 67, 892, 18, 588, 2668, 17232, 6134, 16910, 273, 8789, 8761, 12, 1355, 33, 2293, 18, 1355, 16, 1316, 33, 2730, 16, 923, 33, 8381, 13, 16910, 18, 2730, 18, 2 ]
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, 13861, 17, 1153, 5600, 854, 23889, 3959, 12123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 13861, 17, 1153, 5600, 854, 23889, 3959, 12123, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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) return unittest.TestSuite(suites)
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, 2932, 6427, 7588, 6, 4672, 1172, 1671, 2589, 18, 11241, 16, 315, 6427, 7588, 353, 486, 3637, 731, 31, 14195, 1842, 6, 469, 30, 27208, 1011, 2836, 3813, 18, 6540, 13587, 12, 2520, 86, 55, 72, 7588, 8755, 4709, 2449, 13, 225, 27208, 1011, 2836, 3813, 18, 6540, 13587, 12, 5471, 14650, 18, 6031, 4709, 2449, 13, 327, 2836, 3813, 18, 4709, 13587, 12, 26560, 2997, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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14650, 18, 2738, 1435, 225, 27208, 273, 5378, 225, 309, 486, 425, 18294, 18, 5896, 1621, 2932, 6427, 7588, 6, 4672, 1172, 1671, 2589, 18, 11241, 16, 315, 6427, 7588, 353, 486, 3637, 731, 31, 14195, 1842, 6, 469, 30, 27208, 1011, 2836, 3813, 18, 6540, 13587, 12, 2520, 86, 55, 72, 7588, 8755, 4709, 2449, 13, 225, 27208, 1011, 2836, 3813, 18, 6540, 13587, 12, 5471, 14650, 18, 6031, 4709, 2449, 13, 327, 2836, 3813, 18, 4709, 13587, 12, 26560, 2997, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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._hdict[k] for k in v])
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, 306, 54, 12, 91, 13, 364, 341, 316, 534, 18, 80, 24966, 7675, 74, 1074, 14773, 287, 67, 9727, 1435, 65, 306, 54, 12, 21, 16, 20, 16, 20, 3631, 534, 12, 21, 16, 21, 16, 20, 3631, 534, 12, 21, 19, 22, 16, 21, 19, 22, 16, 21, 19, 22, 25887, 3536, 309, 365, 6315, 76, 1576, 422, 16648, 327, 315, 20, 6, 331, 273, 365, 6315, 76, 1576, 18, 2452, 1435, 331, 18, 3804, 1435, 325, 273, 1408, 327, 8480, 67, 7511, 9301, 3816, 2890, 6315, 2938, 18, 7439, 67, 12715, 12, 79, 13, 364, 417, 316, 331, 6487, 306, 2890, 6315, 76, 1576, 63, 79, 65, 364, 417, 316, 331, 5717, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 306, 54, 12, 91, 13, 364, 341, 316, 534, 18, 80, 24966, 7675, 74, 1074, 14773, 287, 67, 9727, 1435, 65, 306, 54, 12, 21, 16, 20, 16, 20, 3631, 534, 12, 21, 16, 21, 16, 20, 3631, 534, 12, 21, 19, 22, 16, 21, 19, 22, 16, 21, 19, 22, 25887, 3536, 309, 365, 6315, 76, 1576, 422, 16648, 327, 315, 20, 6, 331, 273, 365, 6315, 76, 1576, 18, 2452, 1435, 331, 18, 3804, 1435, 325, 273, 1408, 327, 8480, 67, 2 ]
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(", ".join(allopts), desc)
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, 3025, 3838, 16, 1525, 3838, 16, 805, 16, 3044, 273, 2153, 524, 383, 1092, 273, 5378, 309, 3025, 3838, 30, 524, 383, 1092, 18, 6923, 2932, 6456, 87, 6, 738, 3025, 3838, 13, 309, 1525, 3838, 30, 524, 383, 1092, 18, 6923, 2932, 413, 9, 87, 6, 738, 1525, 3838, 13, 3044, 1011, 805, 471, 389, 2932, 261, 1886, 30, 738, 87, 2225, 13, 738, 805, 578, 1408, 2824, 261, 3113, 3552, 5701, 12, 287, 383, 1092, 3631, 3044, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, 3025, 3838, 16, 1525, 3838, 16, 805, 16, 3044, 273, 2153, 524, 383, 1092, 273, 5378, 309, 3025, 3838, 30, 524, 383, 1092, 18, 6923, 2932, 6456, 87, 6, 738, 3025, 3838, 13, 309, 1525, 3838, 30, 524, 383, 1092, 18, 6923, 2932, 413, 9, 87, 6, 738, 1525, 3838, 13, 3044, 1011, 805, 471, 389, 2932, 261, 1886, 30, 738, 87, 2225, 13, 738, 805, 578, 1408, 2824, 261, 3113, 3552, 5701, 12, 287, 383, 1092, 3631, 3044, 13, 225, 2, -100, -100 ]
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 expiration. If this function is called when a timer is already scheduled, it does nothing. If max_age or max_idle is 0, _schedule_expiration likewise does nothing. """ if self.max_age is 0 or self.max_idle is 0: # expiration is unnecessary because all connections will be expired # on put return if ( self._expiration_timer is not None and not getattr(self._expiration_timer, 'called', False) and not getattr(self._expiration_timer, 'cancelled', False) ): # the next timer is already scheduled return try: now = time.time() self._expire_old_connections(now) # the last item in the list, because of the stack ordering, # is going to be the most-idle idle_delay = (self.free_items[-1][0] - now) + self.max_idle oldest = min([t[1] for t in self.free_items]) age_delay = (oldest - now) + self.max_age next_delay = min(idle_delay, age_delay) except IndexError, ValueError: # no free items, unschedule ourselves self._expiration_timer = None return if next_delay > 0: # set up a continuous self-calling loop self._expiration_timer = api.call_after(next_delay, self._schedule_expiration)
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, 6930, 18, 225, 1220, 353, 326, 20674, 3323, 813, 716, 279, 1459, 3377, 6930, 16, 12493, 16, 326, 5441, 903, 506, 3549, 487, 8286, 4523, 23351, 487, 3323, 2887, 3315, 279, 3323, 7686, 18, 225, 971, 333, 445, 353, 2566, 1347, 279, 5441, 353, 1818, 9755, 16, 518, 1552, 5083, 18, 225, 971, 943, 67, 410, 578, 943, 67, 20390, 353, 374, 16, 389, 10676, 67, 19519, 7906, 359, 784, 1552, 5083, 18, 3536, 309, 365, 18, 1896, 67, 410, 353, 374, 578, 365, 18, 1896, 67, 20390, 353, 374, 30, 468, 7686, 353, 19908, 2724, 777, 5921, 903, 506, 7708, 468, 603, 1378, 327, 225, 309, 261, 365, 6315, 19519, 67, 12542, 353, 486, 599, 471, 486, 3869, 12, 2890, 6315, 19519, 67, 12542, 16, 296, 11777, 2187, 1083, 13, 471, 486, 3869, 12, 2890, 6315, 19519, 67, 12542, 16, 296, 10996, 1259, 2187, 1083, 13, 262, 30, 468, 326, 1024, 5441, 353, 1818, 9755, 327, 225, 775, 30, 2037, 273, 813, 18, 957, 1435, 365, 6315, 14070, 67, 1673, 67, 13313, 12, 3338, 13, 468, 326, 1142, 761, 316, 326, 666, 16, 2724, 434, 326, 2110, 9543, 16, 468, 353, 8554, 358, 506, 326, 4486, 17, 20390, 12088, 67, 10790, 273, 261, 2890, 18, 9156, 67, 3319, 18919, 21, 6362, 20, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6930, 18, 225, 1220, 353, 326, 20674, 3323, 813, 716, 279, 1459, 3377, 6930, 16, 12493, 16, 326, 5441, 903, 506, 3549, 487, 8286, 4523, 23351, 487, 3323, 2887, 3315, 279, 3323, 7686, 18, 225, 971, 333, 445, 353, 2566, 1347, 279, 5441, 353, 1818, 9755, 16, 518, 1552, 5083, 18, 225, 971, 943, 67, 410, 578, 943, 67, 20390, 353, 374, 16, 389, 10676, 67, 19519, 7906, 359, 784, 1552, 5083, 18, 3536, 309, 365, 18, 1896, 67, 410, 353, 374, 578, 365, 18, 2 ]
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 securityManager.validateValue(self): raise Unauthorized, name path.pop(0) path.reverse() validate = securityManager.validate object = self while path: __traceback_info__ = REQUEST name = path.pop() if isinstance(name, TupleType): object = apply(object, name) continue if name[0] == '_': # Never allowed in a URL. raise AttributeError, name if name=='..': o = get(object, 'aq_parent', M) if o is not M: if not validate(object, object, name, o): raise Unauthorized, name object=o continue t=get(object, '__bobo_traverse__', N) if t is not N: o=t(REQUEST, name) container = None if has(o, 'im_self'): container = o.im_self elif (has(get(object, 'aq_base', object), name) and get(object, name) == o): container = object if not validate(object, container, name, o): raise Unauthorized, name else: # Try an attribute. o = get(object, name, M) if o is not M: # Check access to the attribute. if has(object, 'aq_acquire'): object.aq_acquire( name, validate2, validate) else: if not validate(object, object, name, o): raise Unauthorized, name else: # Try an item. try: # XXX maybe in Python 2.2 we can just check whether # the object has the attribute "__getitem__" # instead of blindly catching exceptions. o = object[name] except AttributeError, exc: if str(exc).find('__getitem__') >= 0: # The object does not support the item interface. # Try to re-raise the original attribute error. # XXX I think this only happens with # ExtensionClass instances. get(object, name) raise except TypeError, exc: if str(exc).find('unsubscriptable') >= 0: # The object does not support the item interface. # Try to re-raise the original attribute error. # XXX This is sooooo ugly. get(object, name) raise else: # Check access to the item. if not validate(object, object, name, o): raise Unauthorized, name object = o return object
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, 12492, 273, 13666, 803, 4278, 589, 97, 12492, 3292, 25087, 691, 461, 2624, 3546, 273, 589, 273, 589, 10531, 65, 468, 5631, 5, 309, 486, 589, 63, 20, 14542, 468, 971, 326, 589, 2542, 598, 392, 1008, 533, 16, 1960, 358, 326, 1365, 1122, 18, 365, 273, 365, 18, 588, 18136, 2375, 1435, 309, 486, 4373, 1318, 18, 5662, 620, 12, 2890, 4672, 1002, 15799, 16, 508, 589, 18, 5120, 12, 20, 13, 225, 589, 18, 9845, 1435, 1954, 273, 4373, 1318, 18, 5662, 733, 273, 365, 1323, 589, 30, 1001, 21696, 67, 1376, 972, 273, 12492, 508, 273, 589, 18, 5120, 1435, 225, 309, 1549, 12, 529, 16, 7257, 559, 4672, 733, 273, 2230, 12, 1612, 16, 508, 13, 1324, 225, 309, 508, 63, 20, 65, 422, 2070, 4278, 468, 24496, 2935, 316, 279, 1976, 18, 1002, 6394, 16, 508, 225, 309, 508, 18920, 838, 4278, 320, 273, 336, 12, 1612, 16, 296, 69, 85, 67, 2938, 2187, 490, 13, 309, 320, 353, 486, 490, 30, 309, 486, 1954, 12, 1612, 16, 733, 16, 508, 16, 320, 4672, 1002, 15799, 16, 508, 733, 33, 83, 1324, 225, 268, 33, 588, 12, 1612, 16, 4940, 70, 947, 83, 67, 2033, 2476, 972, 2187, 423, 13, 309, 268, 353, 486, 423, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12492, 273, 13666, 803, 4278, 589, 97, 12492, 3292, 25087, 691, 461, 2624, 3546, 273, 589, 273, 589, 10531, 65, 468, 5631, 5, 309, 486, 589, 63, 20, 14542, 468, 971, 326, 589, 2542, 598, 392, 1008, 533, 16, 1960, 358, 326, 1365, 1122, 18, 365, 273, 365, 18, 588, 18136, 2375, 1435, 309, 486, 4373, 1318, 18, 5662, 620, 12, 2890, 4672, 1002, 15799, 16, 508, 589, 18, 5120, 12, 20, 13, 225, 589, 18, 9845, 1435, 1954, 273, 4373, 1318, 2 ]
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_lines[0].split(" ") _, origin = req_lines[4].split(" ") _, host = req_lines[3].split(" ") client.send(server_handshake % (origin, host, path))
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, 4661, 12, 5086, 67, 2740, 13, 1004, 18, 4412, 1435, 327, 1083, 1111, 67, 3548, 273, 11942, 18, 4939, 31458, 86, 64, 82, 7923, 389, 16, 589, 16, 389, 273, 1111, 67, 3548, 63, 20, 8009, 4939, 2932, 9369, 389, 16, 4026, 273, 1111, 67, 3548, 63, 24, 8009, 4939, 2932, 9369, 389, 16, 1479, 273, 1111, 67, 3548, 63, 23, 8009, 4939, 2932, 9369, 1004, 18, 4661, 12, 3567, 67, 2349, 7478, 738, 261, 10012, 16, 1479, 16, 589, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 4661, 12, 5086, 67, 2740, 13, 1004, 18, 4412, 1435, 327, 1083, 1111, 67, 3548, 273, 11942, 18, 4939, 31458, 86, 64, 82, 7923, 389, 16, 589, 16, 389, 273, 1111, 67, 3548, 63, 20, 8009, 4939, 2932, 9369, 389, 16, 4026, 273, 1111, 67, 3548, 63, 24, 8009, 4939, 2932, 9369, 389, 16, 1479, 273, 1111, 67, 3548, 63, 23, 8009, 4939, 2932, 9369, 1004, 18, 4661, 12, 3567, 67, 2349, 7478, 738, 261, 10012, 16, 1479, 16, 589, 3719, 225, 2, -100, -100 ]
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, 364, 980, 316, 2362, 30, 309, 980, 18, 4720, 2932, 503, 7923, 480, 300, 21, 578, 521, 980, 18, 4720, 2932, 20657, 486, 1005, 7923, 480, 300, 21, 30, 1247, 52, 273, 980, 18, 4939, 2932, 2773, 13, 18919, 21, 65, 309, 1247, 52, 486, 316, 9688, 30, 9688, 18, 6923, 12, 2493, 52, 13, 327, 9688, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 364, 980, 316, 2362, 30, 309, 980, 18, 4720, 2932, 503, 7923, 480, 300, 21, 578, 521, 980, 18, 4720, 2932, 20657, 486, 1005, 7923, 480, 300, 21, 30, 1247, 52, 273, 980, 18, 4939, 2932, 2773, 13, 18919, 21, 65, 309, 1247, 52, 486, 316, 9688, 30, 9688, 18, 6923, 12, 2493, 52, 13, 327, 9688, 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 ]
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.tminz-1, -1): tminx, tminy, tmaxx, tmaxy = self.tminmax[tz] tcount += (1+abs(tmaxx-tminx)) * (1+abs(tmaxy-tminy))
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, 399, 1449, 2773, 225, 4769, 29714, 273, 365, 18, 892, 26554, 1380, 397, 404, 225, 468, 10858, 434, 2062, 12568, 30, 628, 1059, 6808, 12568, 2103, 1245, 487, 18471, 18, 225, 1715, 592, 273, 374, 364, 6016, 316, 1048, 12, 2890, 18, 88, 1896, 94, 17, 21, 16, 365, 18, 88, 1154, 94, 17, 21, 16, 300, 21, 4672, 268, 1154, 92, 16, 268, 1154, 93, 16, 28986, 92, 16, 28986, 93, 273, 365, 18, 88, 1154, 1896, 63, 12994, 65, 1715, 592, 1011, 261, 21, 15, 5113, 12, 88, 1896, 92, 17, 88, 1154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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 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, 399, 1449, 2773, 225, 4769, 29714, 273, 365, 18, 892, 26554, 1380, 397, 404, 225, 468, 10858, 434, 2062, 12568, 30, 628, 1059, 6808, 12568, 2103, 1245, 487, 18471, 18, 225, 1715, 592, 273, 374, 364, 6016, 316, 1048, 12, 2890, 18, 88, 1896, 94, 17, 21, 16, 365, 18, 88, 1154, 94, 17, 21, 16, 300, 21, 4672, 268, 1154, 92, 16, 268, 1154, 93, 16, 28986, 92, 16, 28986, 93, 273, 365, 18, 88, 1154, 1896, 63, 12994, 65, 1715, 592, 1011, 261, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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: handlers = [handlers] try: f = _open_resource(url_file_stream_or_string, etag, modified, agent, referrer, handlers) data = f.read() except Exception, e: result['bozo'] = 1 result['bozo_exception'] = e data = '' f = None # if feed is gzip-compressed, decompress it if f and data and hasattr(f, 'headers'): if gzip and f.headers.get('content-encoding', '') == 'gzip': try: data = gzip.GzipFile(fileobj=_StringIO(data)).read() except Exception, e: # Some feeds claim to be gzipped but they're not, so # we get garbage. Ideally, we should re-request the # feed without the 'Accept-encoding: gzip' header, # but we don't. result['bozo'] = 1 result['bozo_exception'] = e data = '' elif zlib and f.headers.get('content-encoding', '') == 'deflate': try: data = zlib.decompress(data, -zlib.MAX_WBITS) except Exception, e: result['bozo'] = 1 result['bozo_exception'] = e data = '' # save HTTP headers if hasattr(f, 'info'): info = f.info() result['etag'] = info.getheader('ETag') last_modified = info.getheader('Last-Modified') if last_modified: result['modified'] = _parse_date(last_modified) if hasattr(f, 'url'): result['href'] = f.url result['status'] = 200 if hasattr(f, 'status'): result['status'] = f.status if hasattr(f, 'headers'): result['headers'] = f.headers.dict if hasattr(f, 'close'): f.close() # there are four encodings to keep track of: # - http_encoding is the encoding declared in the Content-Type HTTP header # - xml_encoding is the encoding declared in the <?xml declaration # - sniffed_encoding is the encoding sniffed from the first 4 bytes of the XML data # - result['encoding'] is the actual encoding, as per RFC 3023 and a variety of other conflicting specifications http_headers = result.get('headers', {}) result['encoding'], http_encoding, xml_encoding, sniffed_xml_encoding, acceptable_content_type = \ _getCharacterEncoding(http_headers, data) if http_headers and (not acceptable_content_type): if http_headers.has_key('content-type'): bozo_message = '%s is not an XML media type' % http_headers['content-type'] else: bozo_message = 'no Content-type specified' result['bozo'] = 1 result['bozo_exception'] = NonXMLContentType(bozo_message) result['version'], data = _stripDoctype(data) baseuri = http_headers.get('content-location', result.get('href')) baselang = http_headers.get('content-language', None) # if server sent 304, we're done if result.get('status', 0) == 304: result['version'] = '' result['debug_message'] = 'The feed has not changed since you last checked, ' + \ 'so the server sent no data. This is a feature, not a bug!' return result # if there was a problem downloading, we're done if not data: return result # determine character encoding use_strict_parser = 0 known_encoding = 0 tried_encodings = [] # try: HTTP encoding, declared XML encoding, encoding sniffed from BOM for proposed_encoding in (result['encoding'], xml_encoding, sniffed_xml_encoding): if not proposed_encoding: continue if proposed_encoding in tried_encodings: continue tried_encodings.append(proposed_encoding) try: data = _toUTF8(data, proposed_encoding) known_encoding = use_strict_parser = 1 break except: pass # if no luck and we have auto-detection library, try that if (not known_encoding) and chardet: try: proposed_encoding = chardet.detect(data)['encoding'] if proposed_encoding and (proposed_encoding not in tried_encodings): tried_encodings.append(proposed_encoding) data = _toUTF8(data, proposed_encoding) known_encoding = use_strict_parser = 1 except: pass # if still no luck and we haven't tried utf-8 yet, try that if (not known_encoding) and ('utf-8' not in tried_encodings): try: proposed_encoding = 'utf-8' tried_encodings.append(proposed_encoding) data = _toUTF8(data, proposed_encoding) known_encoding = use_strict_parser = 1 except: pass # if still no luck and we haven't tried windows-1252 yet, try that if (not known_encoding) and ('windows-1252' not in tried_encodings): try: proposed_encoding = 'windows-1252' tried_encodings.append(proposed_encoding) data = _toUTF8(data, proposed_encoding) known_encoding = use_strict_parser = 1 except: pass # if still no luck, give up if not known_encoding: result['bozo'] = 1 result['bozo_exception'] = CharacterEncodingUnknown( \ 'document encoding unknown, I tried ' + \ '%s, %s, utf-8, and windows-1252 but nothing worked' % \ (result['encoding'], xml_encoding)) result['encoding'] = '' elif proposed_encoding != result['encoding']: result['bozo'] = 1 result['bozo_exception'] = CharacterEncodingOverride( \ 'documented declared as %s, but parsed as %s' % \ (result['encoding'], proposed_encoding)) result['encoding'] = proposed_encoding if not _XML_AVAILABLE: use_strict_parser = 0 if use_strict_parser: # initialize the SAX parser feedparser = _StrictFeedParser(baseuri, baselang, 'utf-8') saxparser = xml.sax.make_parser(PREFERRED_XML_PARSERS) saxparser.setFeature(xml.sax.handler.feature_namespaces, 1) saxparser.setContentHandler(feedparser) saxparser.setErrorHandler(feedparser) source = xml.sax.xmlreader.InputSource() source.setByteStream(_StringIO(data)) if hasattr(saxparser, '_ns_stack'): # work around bug in built-in SAX parser (doesn't recognize xml: namespace) # PyXML doesn't have this problem, and it doesn't have _ns_stack either saxparser._ns_stack.append({'http://www.w3.org/XML/1998/namespace':'xml'}) try: saxparser.parse(source) except Exception, e: if _debug: import traceback traceback.print_stack() traceback.print_exc() sys.stderr.write('xml parsing failed\n') result['bozo'] = 1 result['bozo_exception'] = feedparser.exc or e use_strict_parser = 0 if not use_strict_parser: feedparser = _LooseFeedParser(baseuri, baselang, known_encoding and 'utf-8' or '') feedparser.feed(data) result['feed'] = feedparser.feeddata result['entries'] = feedparser.entries result['version'] = result['version'] or feedparser.version result['namespaces'] = feedparser.namespacesInUse return result
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, 628, 279, 1976, 16, 585, 16, 1407, 16, 578, 533, 26418, 563, 273, 14013, 2678, 5014, 1435, 563, 3292, 7848, 3546, 273, 14013, 2678, 5014, 1435, 563, 3292, 8219, 3546, 273, 5378, 309, 389, 4201, 67, 23222, 30, 563, 3292, 1075, 94, 83, 3546, 273, 374, 309, 618, 12, 11046, 13, 422, 1953, 18, 29123, 30, 4919, 273, 306, 11046, 65, 775, 30, 284, 273, 389, 3190, 67, 3146, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 16, 4358, 16, 4040, 16, 14502, 16, 4919, 13, 501, 273, 284, 18, 896, 1435, 1335, 1185, 16, 425, 30, 563, 3292, 1075, 94, 83, 3546, 273, 404, 563, 3292, 1075, 94, 83, 67, 4064, 3546, 273, 425, 501, 273, 875, 284, 273, 599, 225, 468, 309, 4746, 353, 10331, 17, 15385, 16, 16824, 518, 309, 284, 471, 501, 471, 3859, 12, 74, 16, 296, 2485, 11, 4672, 309, 10331, 471, 284, 18, 2485, 18, 588, 2668, 1745, 17, 5999, 2187, 28707, 422, 296, 17380, 4278, 775, 30, 501, 273, 10331, 18, 27825, 812, 12, 768, 2603, 33, 67, 780, 4294, 12, 892, 13, 2934, 896, 1435, 1335, 1185, 16, 425, 30, 468, 10548, 27684, 7516, 358, 506, 10331, 1845, 1496, 2898, 4565, 486, 16, 1427, 468, 732, 336, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 628, 279, 1976, 16, 585, 16, 1407, 16, 578, 533, 26418, 563, 273, 14013, 2678, 5014, 1435, 563, 3292, 7848, 3546, 273, 14013, 2678, 5014, 1435, 563, 3292, 8219, 3546, 273, 5378, 309, 389, 4201, 67, 23222, 30, 563, 3292, 1075, 94, 83, 3546, 273, 374, 309, 618, 12, 11046, 13, 422, 1953, 18, 29123, 30, 4919, 273, 306, 11046, 65, 775, 30, 284, 273, 389, 3190, 67, 3146, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 16, 2 ]
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 = "././@LongLink" tarinfo.type = type tarinfo.mode = 0 tarinfo.size = len(name) self.fileobj.write(tarinfo.tobuf()) self.offset += BLOCKSIZE self.fileobj.write(name) blocks, remainder = divmod(tarinfo.size, BLOCKSIZE) if remainder > 0: self.fileobj.write(NUL * (BLOCKSIZE - remainder)) blocks += 1 self.offset += blocks * BLOCKSIZE
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 line: break if output: output.write(line) return child.wait()
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 line: break if output: output.write(line) return child.wait()
f8bf4615a43803c5eb5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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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((3, 4), c[-2:]) self.assertEquals((4,), c[-1:])
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, 21, 65, 365, 18, 11231, 8867, 12443, 21, 16, 22, 16, 23, 3631, 2140, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, 21, 65, 365, 18, 11231, 8867, 12443, 21, 16, 22, 16, 23, 3631, 2140, 13, 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, -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, -100, -100, -100, -100, -100 ]
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_streams:
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', code=487, reason='Session Canceled', ack_received='unknown')) notification_center.post_notification('SIPSessionDidFail', self, TimestampedNotificationData(originator='remote', code=487, reason='Session Canceled', failure_reason='user request', redirect_identities=None)) else: notification_center.post_notification('SIPSessionDidFail', self, TimestampedNotificationData(originator='local', code=0, reason=None, failure_reason=notification.data.disconnect_reason, redirect_identities=None)) else: notification_center.post_notification('SIPSessionWillEnd', self, TimestampedNotificationData(originator=notification.data.originator)) for stream in self.streams:
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(notification.sender, notification.data)) else: self._channel.send(notification) else: if notification.data.state == 'connected' and notification.data.sub_state == 'received_proposal': self.state = 'received_proposal' try: proposed_remote_sdp = self._invitation.sdp.proposed_remote active_remote_sdp = self._invitation.sdp.active_remote for stream in self.streams: if not stream.validate_update(proposed_remote_sdp, stream.index): engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Failed to update media stream index %d' % stream.index)]) self.state = 'connected' notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) return # These tests are here because some ALGs mess up the SDP and the behaviour # of pjsip in these situations is unexpected (eg. loss of audio). -Luci for attr in ('user', 'net_type', 'address_type', 'address'): if getattr(proposed_remote_sdp, attr) != getattr(active_remote_sdp, attr): engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Difference in contents of o= line')]) self.state = 'connected' notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) return added_media_indexes = set() removed_media_indexes = set() for index, media_stream in enumerate(proposed_remote_sdp.media): if index >= len(active_remote_sdp.media): added_media_indexes.add(index) elif media_stream.media != active_remote_sdp.media[index].media: added_media_indexes.add(index) removed_media_indexes.add(index) elif not media_stream.port and active_remote_sdp.media[index].port: removed_media_indexes.add(index) removed_media_indexes.update(xrange(len(proposed_remote_sdp.media), len(active_remote_sdp.media))) if added_media_indexes and removed_media_indexes: engine = Engine() self._invitation.send_response(488, extra_headers=[WarningHeader(399, engine.user_agent, 'Both removing AND adding a media stream is currently not supported')]) notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) elif added_media_indexes: self.proposed_streams = [] for index in added_media_indexes: media_stream = proposed_remote_sdp.media[index] if media_stream.port != 0: for stream_type in MediaStreamRegistry(): try: stream = stream_type.new_from_sdp(self.account, proposed_remote_sdp, index) except InvalidStreamError: break except UnknownStreamError: continue else: stream.index = index self.proposed_streams.append(stream) break if self.proposed_streams: self._invitation.send_response(100) notification_center.post_notification('SIPSessionGotProposal', sender=self, data=TimestampedNotificationData(originator='remote', streams=self.proposed_streams)) return else: self._invitation.send_response(488) notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=488, reason=sip_status_messages[488], ack_received='unknown')) else: 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_streams: notification_center.remove_observer(self, sender=stream) stream.deactivate() self.streams.remove(stream) local_sdp.media[stream.index].port = 0 for stream in self.streams: local_sdp.media[stream.index] = stream.get_local_media(for_offer=False) self._invitation.send_response(200, sdp=local_sdp) for stream in removed_streams: stream.end() notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', code=200, reason=sip_status_messages[200], ack_received='unknown'))
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, 486, 1536, 18, 588, 2972, 13332, 309, 3851, 18, 892, 18, 2019, 422, 296, 2251, 8537, 11, 471, 3851, 18, 892, 18, 10001, 67, 2019, 480, 296, 20177, 310, 4278, 365, 6315, 4327, 18, 4661, 67, 4064, 12, 19896, 18250, 3754, 668, 12, 9927, 18, 15330, 16, 3851, 18, 892, 3719, 469, 30, 365, 6315, 4327, 18, 4661, 12, 9927, 13, 469, 30, 309, 3851, 18, 892, 18, 2019, 422, 296, 8537, 11, 471, 3851, 18, 892, 18, 1717, 67, 2019, 422, 296, 15213, 67, 685, 8016, 4278, 365, 18, 2019, 273, 296, 15213, 67, 685, 8016, 11, 775, 30, 20084, 67, 7222, 67, 6427, 84, 273, 365, 6315, 5768, 8773, 18, 6427, 84, 18, 685, 7423, 67, 7222, 2695, 67, 7222, 67, 6427, 84, 273, 365, 6315, 5768, 8773, 18, 6427, 84, 18, 3535, 67, 7222, 364, 1407, 316, 365, 18, 16320, 30, 309, 486, 1407, 18, 5662, 67, 2725, 12, 685, 7423, 67, 7222, 67, 6427, 84, 16, 1407, 18, 1615, 4672, 4073, 273, 10507, 1435, 365, 6315, 5768, 8773, 18, 4661, 67, 2740, 12, 24, 5482, 16, 2870, 67, 2485, 22850, 6210, 1864, 12, 23, 2733, 16, 4073, 18, 1355, 67, 5629, 16, 296, 2925, 358, 1089, 3539, 1407, 770, 738, 72, 11, 738, 1407, 18, 1615, 13, 5717, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 486, 1536, 18, 588, 2972, 13332, 309, 3851, 18, 892, 18, 2019, 422, 296, 2251, 8537, 11, 471, 3851, 18, 892, 18, 10001, 67, 2019, 480, 296, 20177, 310, 4278, 365, 6315, 4327, 18, 4661, 67, 4064, 12, 19896, 18250, 3754, 668, 12, 9927, 18, 15330, 16, 3851, 18, 892, 3719, 469, 30, 365, 6315, 4327, 18, 4661, 12, 9927, 13, 469, 30, 309, 3851, 18, 892, 18, 2019, 422, 296, 8537, 11, 471, 3851, 18, 892, 18, 1717, 67, 2019, 422, 296, 15213, 2 ]
usage = "%prog [options] [email protected] password [[email protected]]"
usage = "%prog [options] [[email protected]]"
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 [options] [email protected] password [[email protected]]" default_options = dict(proxy_ip=Config.outbound_proxy[0], proxy_port=Config.outbound_proxy[1], username=Config.username, password=Config.password, domain=Config.domain, dump_msrp=False, msrp_relay_ip=None, msrp_relay_port=None) parser = OptionParser(usage=usage, description=description) parser.print_usage = parser.print_help parser.set_defaults(**default_options) parser.add_option("-u", "--username", type="string", dest="username", help="Username to use for the local account. This overrides the setting from the config file.") parser.add_option("-d", "--domain", type="string", dest="domain", help="SIP domain to use for the local account. This overrides the setting from the config file.") parser.add_option("-p", "--password", type="string", dest="password", help="Password to use to authenticate the local account. This overrides the setting from the config file.") parser.add_option("-o", "--outbound-proxy", type="string", action="callback", callback=lambda option, opt_str, value, parser: parse_host_port(option, opt_str, value, parser, "proxy_ip", "proxy_port", 5060, False), help="Outbound SIP proxy to use. By default a lookup is performed based on SRV and A records. This overrides the setting from the config file.", metavar="IP[:PORT]") parser.add_option("-m", "--dump-msrp", action="store_true", dest="dump_msrp", help="Dump the raw contents of incoming and outgoing MSRP messages (disabled by default).") parser.add_option("-r", "--msrp-relay", type="string", action="callback", callback=lambda option, opt_str, value, parser: parse_host_port(option, opt_str, value, parser, "msrp_relay_ip", "msrp_relay_port", 2855, True), help='MSRP relay to use. By default the MSRP relay will be discovered through the domain part of the SIP URI using SRV records. Use this option with "none" as argument will disable using a MSRP relay', metavar="IP[:PORT]") options, args = parser.parse_args() if args: try: retval["target_username"], retval["target_domain"] = args[0].split("@") except ValueError: retval["target_username"], retval["target_domain"] = args[0], options.domain else: retval["target_username"], retval["target_domain"] = None, None if not all([options.username, options.domain, options.password]): raise RuntimeError("No complete set of SIP credentials specified in config file and on commandline.") retval["auto_msrp_relay"] = options.msrp_relay_ip is None if retval["auto_msrp_relay"]: retval["use_msrp_relay"] = True else: retval["use_msrp_relay"] = options.msrp_relay_ip.lower() != "none" for attr in default_options: retval[attr] = getattr(options, attr) return retval
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, 578, 4395, 358, 787, 279, 9238, 54, 52, 1339, 598, 326, 1269, 1018, 18, 1021, 5402, 903, 1746, 326, 1339, 471, 9706, 1347, 31568, 48, 15, 40, 353, 19504, 1199, 4084, 273, 2213, 14654, 306, 2116, 65, 306, 3299, 17, 1355, 36, 3299, 17, 4308, 18, 832, 4279, 805, 67, 2116, 273, 2065, 12, 5656, 67, 625, 33, 809, 18, 659, 3653, 67, 5656, 63, 20, 6487, 2889, 67, 655, 33, 809, 18, 659, 3653, 67, 5656, 63, 21, 6487, 2718, 33, 809, 18, 5053, 16, 2201, 33, 809, 18, 3664, 16, 2461, 33, 809, 18, 4308, 16, 4657, 67, 959, 13832, 33, 8381, 16, 4086, 13832, 67, 2878, 528, 67, 625, 33, 7036, 16, 4086, 13832, 67, 2878, 528, 67, 655, 33, 7036, 13, 2082, 273, 18862, 12, 9167, 33, 9167, 16, 2477, 33, 3384, 13, 2082, 18, 1188, 67, 9167, 273, 2082, 18, 1188, 67, 5201, 2082, 18, 542, 67, 7606, 12, 636, 1886, 67, 2116, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 89, 3113, 5238, 5053, 3113, 618, 1546, 1080, 3113, 1570, 1546, 5053, 3113, 2809, 1546, 8575, 358, 999, 364, 326, 1191, 2236, 18, 1220, 9515, 326, 3637, 628, 326, 642, 585, 1199, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 72, 3113, 5238, 4308, 3113, 618, 1546, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 578, 4395, 358, 787, 279, 9238, 54, 52, 1339, 598, 326, 1269, 1018, 18, 1021, 5402, 903, 1746, 326, 1339, 471, 9706, 1347, 31568, 48, 15, 40, 353, 19504, 1199, 4084, 273, 2213, 14654, 306, 2116, 65, 306, 3299, 17, 1355, 36, 3299, 17, 4308, 18, 832, 4279, 805, 67, 2116, 273, 2065, 12, 5656, 67, 625, 33, 809, 18, 659, 3653, 67, 5656, 63, 20, 6487, 2889, 67, 655, 33, 809, 18, 659, 3653, 67, 5656, 63, 21, 6487, 2718, 33, 809, 18, 5053, 2 ]
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 group G. Returns a branching rule for this plethysm. EXAMPLE: The adjoint representation SL(3) --> GL(8) factors through SO(8). The branching rule in question will describe how representations of SO(8) composed with this homomorphism decompose into irreducible characters of SL(3). sage: A2 = WeylCharacterRing("A2") sage: A2 = WeylCharacterRing("A2", style="coroots") sage: ad = A2(1,1) sage: ad.degree() 8 sage: ad.frobenius_schur_indicator() 1 This confirms that ad has degree 8 and is orthogonal, hence factors through SO(8)=D4. sage: br = branching_rule_from_plethysm(ad,"D4") sage: D4 = WeylCharacterRing("D4") sage: [D4(f).branch(A2,rule = br) for f in D4.fundamental_weights()] [A2(1,1), A2(1,1) + A2(0,3) + A2(3,0), A2(1,1), A2(1,1)] """ ct = CartanType(cartan_type) if ct[0] not in ["A","B","C","D"]: raise ValueError, "not implemented for type %s"%ct[0] if ct[0] is "A": ret = [] for [v,n] in chi.mlist(): ret.extend(n*[v.to_vector()]) M = matrix(ret).transpose() if len(M.columns()) != ct[1] + 1: raise ValueError, "representation has wrong degree for type %s"%ct.__repr__() return lambda x : tuple(M*vector(x)) if ct[0] in ["B","D"]: if chi.frobenius_schur_indicator() != 1: raise ValueError, "character is not orthogonal" if ct[0] is "C": if chi.frobenius_schur_indicator() != -1: raise ValueError, "character is not symplectic" if ct[0] is "B": if is_even(chi.degree()): raise ValueError, "degree is not odd" if ct[0] is ["C","D"]: if is_odd(chi.degree()): raise ValueError, "degree is not even" ret = [] for [v,n] in chi.mlist(): v = v.to_vector() if all(x==0 for x in v): if ct[0] is "B": n = (n-1)/2 else: n = n/2 elif [x for x in v if x !=0][0] < 0: continue ret.extend(n*[v]) M = matrix(ret).transpose() if len(M.columns()) != ct.root_system().ambient_space().dimension(): raise ValueError, "representation has wrong degree for type %s"%ct.__repr__() if return_matrix: return M else: return lambda x : tuple(M*vector(x))
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, 3351, 434, 392, 9482, 1118, 5286, 1523, 4335, 4790, 434, 279, 1041, 611, 300, 12176, 11848, 304, 67, 723, 10335, 300, 279, 667, 1706, 17695, 304, 618, 261, 37, 16, 38, 16, 39, 578, 463, 2934, 225, 2597, 353, 12034, 716, 326, 1316, 434, 326, 9482, 1118, 5286, 1523, 4335, 4790, 10535, 295, 1230, 711, 2097, 1316, 316, 326, 1041, 611, 18, 225, 2860, 279, 3803, 310, 1720, 364, 333, 886, 546, 1900, 81, 18, 225, 5675, 21373, 30, 225, 1021, 8307, 763, 4335, 348, 48, 12, 23, 13, 15431, 10252, 12, 28, 13, 14490, 3059, 7460, 12, 28, 2934, 1021, 3803, 310, 1720, 316, 5073, 903, 6401, 3661, 27851, 434, 7460, 12, 28, 13, 18673, 598, 333, 13995, 362, 7657, 6228, 24476, 1368, 9482, 1118, 5286, 1523, 3949, 434, 348, 48, 12, 23, 2934, 225, 272, 410, 30, 432, 22, 273, 678, 402, 80, 7069, 10369, 2932, 37, 22, 7923, 272, 410, 30, 432, 22, 273, 678, 402, 80, 7069, 10369, 2932, 37, 22, 3113, 2154, 1546, 3850, 1632, 87, 7923, 272, 410, 30, 1261, 273, 432, 22, 12, 21, 16, 21, 13, 272, 410, 30, 1261, 18, 21361, 1435, 1725, 272, 410, 30, 1261, 18, 74, 303, 19425, 8384, 67, 28204, 295, 67, 18741, 1435, 404, 225, 1220, 2195, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3351, 434, 392, 9482, 1118, 5286, 1523, 4335, 4790, 434, 279, 1041, 611, 300, 12176, 11848, 304, 67, 723, 10335, 300, 279, 667, 1706, 17695, 304, 618, 261, 37, 16, 38, 16, 39, 578, 463, 2934, 225, 2597, 353, 12034, 716, 326, 1316, 434, 326, 9482, 1118, 5286, 1523, 4335, 4790, 10535, 295, 1230, 711, 2097, 1316, 316, 326, 1041, 611, 18, 225, 2860, 279, 3803, 310, 1720, 364, 333, 886, 546, 1900, 81, 18, 225, 5675, 21373, 30, 225, 1021, 8307, 763, 2 ]
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, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, 79, 65, 273, 331, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, 79, 65, 273, 331, 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, -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, -100, -100, -100 ]
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(*sys.exc_info())));
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, 1053, 1323, 365, 18, 3535, 30, 775, 30, 377, 598, 365, 18, 3535, 67, 739, 30, 309, 486, 365, 18, 3535, 30, 898, 365, 18, 4110, 67, 2293, 1435, 1335, 2987, 18, 4538, 30, 1342, 1335, 19424, 30, 365, 18, 3567, 67, 4412, 1435, 327, 1335, 30, 2589, 18, 10283, 18, 2626, 2668, 10332, 5701, 12, 21696, 18, 2139, 67, 4064, 30857, 9499, 18, 10075, 67, 1376, 1435, 3719, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1053, 1323, 365, 18, 3535, 30, 775, 30, 377, 598, 365, 18, 3535, 67, 739, 30, 309, 486, 365, 18, 3535, 30, 898, 365, 18, 4110, 67, 2293, 1435, 1335, 2987, 18, 4538, 30, 1342, 1335, 19424, 30, 365, 18, 3567, 67, 4412, 1435, 327, 1335, 30, 2589, 18, 10283, 18, 2626, 2668, 10332, 5701, 12, 21696, 18, 2139, 67, 4064, 30857, 9499, 18, 10075, 67, 1376, 1435, 3719, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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['Message'] gLogger.error(infoStr)
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,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for 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, 852, 12, 701, 16, 358, 299, 2842, 390, 3292, 267, 830, 89, 536, 1449, 19486, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 852, 12, 701, 16, 358, 299, 2842, 390, 3292, 267, 830, 89, 536, 1449, 19486, 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, -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, -100, -100, -100, -100, -100, -100 ]
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.delta) raise IndexError, x
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, 1549, 12, 92, 16, 2788, 4672, 309, 619, 18, 4119, 480, 599, 30, 1002, 11206, 16, 315, 21562, 598, 6075, 486, 4671, 3260, 6, 327, 2788, 12, 2890, 63, 92, 18, 1937, 6487, 365, 63, 92, 18, 5681, 5717, 309, 619, 422, 365, 18, 1896, 30, 225, 327, 365, 18, 82, 300, 404, 309, 365, 18, 1154, 1648, 619, 411, 365, 18, 1896, 30, 327, 509, 12443, 92, 300, 365, 18, 1154, 13, 342, 365, 18, 9878, 13, 1002, 10195, 16, 619, 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, 0, 0, 0, 0, 0, 0, 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 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, 1549, 12, 92, 16, 2788, 4672, 309, 619, 18, 4119, 480, 599, 30, 1002, 11206, 16, 315, 21562, 598, 6075, 486, 4671, 3260, 6, 327, 2788, 12, 2890, 63, 92, 18, 1937, 6487, 365, 63, 92, 18, 5681, 5717, 309, 619, 422, 365, 18, 1896, 30, 225, 327, 365, 18, 82, 300, 404, 309, 365, 18, 1154, 1648, 619, 411, 365, 18, 1896, 30, 327, 509, 12443, 92, 300, 365, 18, 1154, 13, 342, 365, 18, 9878, 13, 1002, 10195, 16, 2 ]
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, not both') try: writer = post_data.get('writer', self.default_writer) except KeyError, exc: return self.error_response('POST argument required: %s' % exc) base_url = post_data.get('base_url') writer_options = post_data.get('writer_options', '') template_blacklist = post_data.get('template_blacklist', '') template_exclusion_category = post_data.get('template_exclusion_category', '') print_template_prefix = post_data.get('print_template_prefix', '') print_template_pattern = post_data.get('print_template_pattern', '') login_credentials = post_data.get('login_credentials', '') force_render = bool(post_data.get('force_render')) script_extension = post_data.get('script_extension', '') language = post_data.get('language', '') log.info('render %s %s' % (collection_id, writer)) response = { 'collection_id': collection_id, 'writer': writer, 'is_cached': False, } pid_path = self.get_path(collection_id, self.pid_filename, writer) if os.path.exists(pid_path): log.info('mw-render already running for collection %r' % collection_id) return response output_path = self.get_path(collection_id, self.output_filename, writer) if os.path.exists(output_path): if force_render: log.info('removing rendered file %r (forced rendering)' % output_path) utils.safe_unlink(output_path) else: log.info('re-using rendered file %r' % output_path) response['is_cached'] = True return response error_path = self.get_path(collection_id, self.error_filename, writer) if os.path.exists(error_path): log.info('removing error file %r' % error_path) utils.safe_unlink(error_path) force_render = True status_path = self.get_path(collection_id, self.status_filename, writer) if os.path.exists(status_path): if force_render: log.info('removing status file %r (forced rendering)' % status_path) utils.safe_unlink(status_path) else: log.info('status file exists %r' % status_path) return response if self.mwrender_logfile: logfile = self.mwrender_logfile else: logfile = self.get_path(collection_id, self.mwrenderlog_filename, writer) args = [ self.mwrender_cmd, '--logfile', logfile, '--error-file', error_path, '--status-file', status_path, '--writer', writer, '--output', output_path, '--pid-file', pid_path, ] zip_path = self.get_path(collection_id, self.zip_filename) if not force_render and os.path.exists(zip_path): log.info('using existing ZIP file to render %r' % output_path) args.extend(['--config', zip_path]) if writer_options: args.extend(['--writer-options', writer_options]) if template_blacklist: args.extend(['--template-blacklist', template_blacklist]) if template_exclusion_category: args.extend(['--template-exclusion-category', template_exclusion_category]) if print_template_prefix: args.extend(['--print-template-prefix', print_template_prefix]) if print_template_pattern: args.extend(['--print-template-pattern', print_template_pattern]) if language: args.extend(['--language', language]) else: log.info('rendering %r' % output_path) metabook_path = self.get_path(collection_id, self.metabook_filename) if metabook_data: f = open(metabook_path, 'wb') f.write(metabook_data) f.close() args.extend([ '--metabook', metabook_path, '--keep-zip', zip_path, ]) if bae_url: args.extend(['--config', base_url]) if writer_options: args.extend(['--writer-options', writer_options]) if template_blacklist: args.extend(['--template-blacklist', template_blacklist]) if template_exclusion_category: args.extend(['--template-exclusion-category', template_exclusion_category]) if print_template_prefix: args.extend(['--print-template-prefix', print_template_prefix]) if print_template_pattern: args.extend(['--print-template-pattern', print_template_pattern]) if login_credentials: args.extend(['--login', login_credentials]) if script_extension: args.extend(['--script-extension', script_extension]) if language: args.extend(['--language', language]) self.queue_job('render', collection_id, args) return response
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, 309, 353, 67, 2704, 471, 486, 5100, 378, 1184, 67, 892, 30, 327, 365, 18, 1636, 67, 2740, 2668, 3798, 1237, 5100, 378, 1184, 578, 1849, 67, 350, 1931, 6134, 309, 486, 353, 67, 2704, 471, 5100, 378, 1184, 67, 892, 30, 327, 365, 18, 1636, 67, 2740, 2668, 19302, 3344, 5100, 378, 1184, 578, 1849, 67, 350, 16, 486, 3937, 6134, 775, 30, 2633, 273, 1603, 67, 892, 18, 588, 2668, 6299, 2187, 365, 18, 1886, 67, 6299, 13, 1335, 4999, 16, 3533, 30, 327, 365, 18, 1636, 67, 2740, 2668, 3798, 1237, 1931, 30, 738, 87, 11, 738, 3533, 13, 1026, 67, 718, 273, 1603, 67, 892, 18, 588, 2668, 1969, 67, 718, 6134, 2633, 67, 2116, 273, 1603, 67, 892, 18, 588, 2668, 6299, 67, 2116, 2187, 28707, 1542, 67, 22491, 273, 1603, 67, 892, 18, 588, 2668, 3202, 67, 22491, 2187, 28707, 1542, 67, 338, 15335, 67, 4743, 273, 1603, 67, 892, 18, 588, 2668, 3202, 67, 338, 15335, 67, 4743, 2187, 28707, 1172, 67, 3202, 67, 3239, 273, 1603, 67, 892, 18, 588, 2668, 1188, 67, 3202, 67, 3239, 2187, 28707, 1172, 67, 3202, 67, 4951, 273, 1603, 67, 892, 18, 588, 2668, 1188, 67, 3202, 67, 4951, 2187, 28707, 3925, 67, 11687, 273, 1603, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 353, 67, 2704, 471, 486, 5100, 378, 1184, 67, 892, 30, 327, 365, 18, 1636, 67, 2740, 2668, 3798, 1237, 5100, 378, 1184, 578, 1849, 67, 350, 1931, 6134, 309, 486, 353, 67, 2704, 471, 5100, 378, 1184, 67, 892, 30, 327, 365, 18, 1636, 67, 2740, 2668, 19302, 3344, 5100, 378, 1184, 578, 1849, 67, 350, 16, 486, 3937, 6134, 775, 30, 2633, 273, 1603, 67, 892, 18, 588, 2668, 6299, 2187, 365, 18, 1886, 67, 6299, 13, 1335, 4999, 2 ]
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, 273, 890, 1508, 1059, 469, 1381, 679, 11, 365, 18, 4880, 3048, 8213, 5812, 12, 74, 12, 87, 3631, 2337, 82, 10332, 5701, 12, 3292, 3593, 2187, 296, 565, 1347, 8431, 273, 404, 1508, 576, 2187, 296, 565, 1347, 8431, 273, 890, 1508, 1059, 2187, 296, 565, 469, 1381, 2187, 296, 409, 3546, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 4669, 16, 283, 9355, 33, 5510, 13, 272, 273, 296, 3593, 1347, 8431, 273, 404, 1508, 576, 1347, 8431, 273, 890, 1508, 1059, 469, 1381, 679, 11, 365, 18, 4880, 3048, 8213, 5812, 12, 74, 12, 87, 3631, 2337, 82, 10332, 5701, 12, 3292, 3593, 2187, 296, 565, 1347, 8431, 273, 404, 1508, 576, 2187, 296, 565, 1347, 8431, 273, 890, 1508, 1059, 2187, 296, 565, 469, 1381, 2187, 296, 409, 3546, 3719, 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 ]
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, 12, 20, 16, 20, 16, 4700, 26, 16, 25, 1578, 2934, 1467, 1435, 2934, 17336, 774, 12, 6376, 3829, 18, 15903, 1225, 7002, 1435, 3719, 12740, 3829, 18, 542, 3829, 5554, 12, 23310, 18070, 18, 53, 5554, 2932, 315, 3719, 2, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 12, 20, 16, 20, 16, 4700, 26, 16, 25, 1578, 2934, 1467, 1435, 2934, 17336, 774, 12, 6376, 3829, 18, 15903, 1225, 7002, 1435, 3719, 12740, 3829, 18, 542, 3829, 5554, 12, 23310, 18070, 18, 53, 5554, 2932, 315, 3719, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 365, 18, 1129, 73, 67, 5667, 12, 84, 16, 290, 3631, 1492, 854, 26962, 1012, 358, 326, 638, 16719, 10722, 18, 2860, 279, 666, 434, 10752, 591, 502, 75, 319, 1739, 2490, 1204, 1046, 2184, 16, 316, 21006, 1353, 434, 17543, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 365, 18, 1129, 73, 67, 5667, 12, 84, 16, 290, 3631, 1492, 854, 26962, 1012, 358, 326, 638, 16719, 10722, 18, 2860, 279, 666, 434, 10752, 591, 502, 75, 319, 1739, 2490, 1204, 1046, 2184, 16, 316, 21006, 1353, 434, 17543, 18, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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" document.AddItem( Header(3, Italic(FontAttr(m, color="ff5060")))) confirmed = 0 if confirmed: new = cgi_info['newpw'].value confirm = cgi_info['confirmpw'].value if new == confirm: mlist.password = crypt(new, Utils.GetRandomSeed()) # Re-authenticate (to set new cookie) mlist.WebAuthenticate(password=new, cookie='admin') else: m = 'Error: Passwords did not match.' document.AddItem( Header(3, Italic(FontAttr(m, color="ff5060")))) else: m = 'Error: You must type in your new password twice.' document.AddItem( Header(3, Italic(FontAttr(m, color="ff5060")))) # # for some reason, the login page mangles important values for the list # such as .real_name so we only process these changes if the category # is not "members" and the request is not from the login page # -scott 19980515 # if category != 'members' and \ not cgi_info.has_key("request_login") and \ len(cgi_info.keys()) > 1: # then if cgi_info.has_key("subscribe_policy"): if not mm_cfg.ALLOW_OPEN_SUBSCRIBE: # # we have to add one to the value because the # page didn't present an open list as an option # page_setting = string.atoi(cgi_info["subscribe_policy"].value) cgi_info["subscribe_policy"].value = str(page_setting + 1) opt_list = GetConfigOptions(mlist, category) for item in opt_list: if len(item) < 5: continue property, kind, args, deps, desc = item[0:5] if cgi_info.has_key(property+'_upload') and \ cgi_info[property+'_upload'].value: val = cgi_info[property+'_upload'].value elif not cgi_info.has_key(property): if (kind <> mm_cfg.Text and kind <> mm_cfg.String and kind <> mm_cfg.EmailList): continue else: val = '' else: val = cgi_info[property].value value = GetValidValue(mlist, property, kind, val, deps) # # This is an ugly, ugly hack if property[0] == '_': # TBD: When turning on usenet->mail gating we want to # automatically catch up the newsgroup otherwise the mailing # list will suddently get flooded. There should be a much # better way to do this (or for the admin to specify they want # this). if property == '_mass_catchup' and value: mlist.usenet_watermark = None elif getattr(mlist, property) <> value: # TBD: Ensure that mlist.real_name differs only in letter # case. Otherwise a security hole can potentially be opened # when using an external archiver. This seems ad-hoc and # could use a more general security policy. if property == 'real_name' and \ string.lower(value) <> string.lower(mlist._internal_name): # then don't install this value. document.AddItem("""<p><b>real_name</b> attribute not changed! It must differ from the list's name by case only.<p>""") continue setattr(mlist, property, value) # # mass subscription processing for members category # if cgi_info.has_key('subscribees'): name_text = cgi_info['subscribees'].value name_text = string.replace(name_text, '\r', '') names = filter(None, map(string.strip, string.split(name_text, '\n'))) send_welcome_msg = string.atoi( cgi_info["send_welcome_msg_to_this_batch"].value) digest = 0 if not mlist.digestable: digest = 0 if not mlist.nondigestable: digest = 1 subscribe_errors = [] subscribe_success = [] result = mlist.ApprovedAddMembers(names, None, digest, send_welcome_msg) for name in result.keys(): if result[name] is None: subscribe_success.append(name) else: # `name' was not subscribed, find out why. On failures, # result[name] is set from sys.exc_info()[:2] e, v = result[name] if e is Errors.MMAlreadyAMember: subscribe_errors.append((name, 'Already a member')) elif e is Errors.MMBadEmailError: if name == '': name = '&lt;blank line&gt;' subscribe_errors.append( (name, "Bad/Invalid email address")) elif e is Errors.MMHostileAddress: subscribe_errors.append( (name, "Hostile Address (illegal characters)")) if subscribe_success: document.AddItem(Header(5, "Successfully Subscribed:")) document.AddItem(apply(UnorderedList, tuple((subscribe_success)))) document.AddItem("<p>") # ApprovedAddMembers will already have saved the list for us. if subscribe_errors: document.AddItem(Header(5, "Error Subscribing:")) items = map(lambda x: "%s -- %s" % (x[0], x[1]), subscribe_errors) document.AddItem(apply(UnorderedList, tuple((items)))) document.AddItem("<p>") # # do the user options for members category # if cgi_info.has_key('user'): user = cgi_info["user"] if type(user) is type([]): users = [] for ui in range(len(user)): users.append(user[ui].value) else: users = [user.value] unsubscribe_errors = [] for user in users: if not cgi_info.has_key('%s_subscribed' % (user)): try: mlist.DeleteMember(user) except Errors.MMNoSuchUserError: unsubscribe_errors.append((user, 'Not subscribed')) continue if not cgi_info.has_key("%s_digest" % (user)): if mlist.digest_members.has_key(user): del mlist.digest_members[user] if not mlist.members.has_key(user): mlist.members[user] = 0 else: if not mlist.digest_members.has_key(user): mlist.digest_members[user] = 0 if mlist.members.has_key(user): del mlist.members[user] for opt in ("hide", "nomail", "ack", "notmetoo", "plain"): opt_code = MailCommandHandler.option_info[opt] if cgi_info.has_key("%s_%s" % (user, opt)): mlist.SetUserOption(user, opt_code, 1, save_list=0) else: mlist.SetUserOption(user, opt_code, 0, save_list=0) if unsubscribe_errors: document.AddItem(Header(5, "Error Unsubscribing:")) items = map(lambda x: "%s -- %s" % (x[0], x[1]), unsubscribe_errors) document.AddItem(apply(UnorderedList, tuple((items)))) document.AddItem("<p>")
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, 10052, 67, 1376, 18, 5332, 67, 856, 2668, 3923, 481, 1291, 91, 11, 4672, 309, 276, 10052, 67, 1376, 18, 5332, 67, 856, 2668, 3666, 14921, 11, 4672, 775, 30, 312, 1098, 18, 11269, 4446, 3913, 12, 19062, 67, 1376, 3292, 3666, 14921, 29489, 1132, 13, 19979, 273, 404, 1335, 9372, 18, 8206, 6434, 3913, 668, 30, 312, 273, 315, 668, 30, 11332, 22330, 2201, 6, 1668, 18, 986, 1180, 12, 4304, 12, 23, 16, 2597, 21466, 12, 5711, 3843, 12, 81, 16, 2036, 1546, 1403, 3361, 4848, 6, 3719, 3719, 19979, 273, 374, 309, 19979, 30, 394, 273, 276, 10052, 67, 1376, 3292, 2704, 14921, 29489, 1132, 6932, 273, 276, 10052, 67, 1376, 3292, 3923, 481, 1291, 91, 29489, 1132, 309, 394, 422, 6932, 30, 312, 1098, 18, 3664, 273, 13231, 12, 2704, 16, 6091, 18, 967, 8529, 12702, 10756, 468, 868, 17, 22035, 261, 869, 444, 394, 3878, 13, 312, 1098, 18, 4079, 17618, 12, 3664, 33, 2704, 16, 3878, 2218, 3666, 6134, 469, 30, 312, 273, 296, 668, 30, 9234, 87, 5061, 486, 845, 1093, 1668, 18, 986, 1180, 12, 4304, 12, 23, 16, 2597, 21466, 12, 5711, 3843, 12, 81, 16, 2036, 1546, 1403, 3361, 4848, 6, 3719, 3719, 225, 469, 30, 312, 273, 296, 668, 30, 4554, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10052, 67, 1376, 18, 5332, 67, 856, 2668, 3923, 481, 1291, 91, 11, 4672, 309, 276, 10052, 67, 1376, 18, 5332, 67, 856, 2668, 3666, 14921, 11, 4672, 775, 30, 312, 1098, 18, 11269, 4446, 3913, 12, 19062, 67, 1376, 3292, 3666, 14921, 29489, 1132, 13, 19979, 273, 404, 1335, 9372, 18, 8206, 6434, 3913, 668, 30, 312, 273, 315, 668, 30, 11332, 22330, 2201, 6, 1668, 18, 986, 1180, 12, 4304, 12, 23, 16, 2597, 21466, 12, 5711, 3843, 12, 81, 16, 2036, 2 ]
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, 14542, 327, 508, 22, 3299, 18, 542, 1886, 12, 1232, 3299, 16, 5378, 2934, 6923, 12, 1232, 529, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 14542, 327, 508, 22, 3299, 18, 542, 1886, 12, 1232, 3299, 16, 5378, 2934, 6923, 12, 1232, 529, 13, 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, -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, -100 ]
([(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, 16, 3671, 326, 22824, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 16, 3671, 326, 22824, 316, 512, 12, 53, 13, 434, 326, 720, 1655, 2898, 2103, 18, 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, -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, -100, -100, -100, -100, -100 ]
"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.setWhatsThis( fileOpenText ) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = "<u><b>Make Checkpoint</b></u>"\ "<p><img source=\"editMakeCheckpoint\"><br> "\ "Make Undo checkpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editMakeCheckpoint", self.editMakeCheckpointAction.iconSet().pixmap() ) self.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) # Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = "<u><b>Automatic Checkpointing</b></u>"\ "<p>Enables/Disables <b>Automatic Checkpointing</b>. When enabled, the program "\ "maintains the Undo stack automatically. When disabled, the user is required to "\ "manually create Undo checkpoints using the <b>Make Checkpoint</b> button: </p>"\ "<p><img source=\"editMakeCheckpoint\"></p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. By disabling "\ "Automatic Checkpointing, the program will run faster.</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints manually when "\ "Automatic Checkpointing is disabled.</i></b>"\ "</p>" self.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) # Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" self.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) self.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo import platform if platform.is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s<br> "\ "<p><img source=\"editRedo\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) self.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"editPaste\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) # # View Toolbar # # Home View setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) # Perspective Projection setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To setViewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) # Parallel To setViewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"saveNamedView\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "saveNamedView", self.saveNamedViewAction.iconSet().pixmap() ) self.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) # Back View setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) # Top View setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) # Bottom View setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) # Left View setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) # Right View setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) # Rotate View 180 setViewOppositeActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) # Rotate View +90 setViewPlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) # Rotate View -90 setViewMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) # Raytrace Scene viewRaytraceSceneActionText = "<u><b>Raytrace Scene</b></u><br>"\ "<p><img source=\"viewRaytraceSceneAction\"><br> "\ "Raytrace the current scene using POV-Ray. This provides a convenient way to preview "\ "the results of a POV-Ray scene rendering."\ "</p>" \ "POV-Ray must be installed for this feature to work. POV-Ray can be downloaded from http://www.povray.org" \ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "viewRaytraceSceneAction", self.viewRaytraceSceneAction.iconSet().pixmap() ) self.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = "<u><b>Insert Graphene</b></u><br>"\ "<p><img source=\"insertGrapheneAction\"><br> "\ "Inserts a graphene sheet provided with width, height and bond length parameters. "\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "insertGrapheneAction", self.insertGrapheneAction.iconSet().pixmap() ) self.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Nanotube insertNanotubeActionText = "<u><b>Insert Nanotube</b></u><br>"\ "<p><img source=\"insertNanotubeAction\"><br> "\ "Inserts a nanotube provided with chirality (M, N) and length parameters. "\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "insertNanotubeAction", self.insertNanotubeAction.iconSet().pixmap() ) self.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # DNA insertDnaActionText = "<u><b>Insert DNA</b></u><br>"\ "<p><img source=\"insertDnaAction\"><br> "\ "Inserts a single or double strand of B or Z-DNA given a nucleotide sequence. "\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "insertDnaAction", self.insertDnaAction.iconSet().pixmap() ) self.insertDnaAction.setWhatsThis(insertDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"insertPovraySceneAction\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "insertPovraySceneAction", self.insertPovraySceneAction.iconSet().pixmap() ) self.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"insertCommentAction\"><br> "\ "Inserts a comment in the current part. "\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "insertCommentAction", self.insertCommentAction.iconSet().pixmap() ) self.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>Modes</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"dispBallAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBallAction", self.dispBallAction.iconSet().pixmap() ) self.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"dispCylinderAction\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCylinderAction", self.dispCylinderAction.iconSet().pixmap() ) self.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"dispSurfaceAction\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispSurfaceAction", self.dispSurfaceAction.iconSet().pixmap() ) self.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"selectAllAction\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) # Invert Selection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"modifyAdjustSelAction\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAdjustSelAction", self.modifyAdjustSelAction.iconSet().pixmap() ) self.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"modifyAdjustAllAction\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAdjustAllAction", self.modifyAdjustAllAction.iconSet().pixmap() ) self.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Select Atoms toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Mode toolsDepositAtomActionText = "<u><b>Build Mode</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Mode</b> allows you to build structures by depositing objects "\ "from the Molecular Modeling Kit, including atoms, clipboard objects and parts "\ "from the NanoEngineer-1 Library.</p>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Cookie Cutter Mode toolsCookieCutActionText = "<u><b>Cookie Cutter Mode</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "<b>Cookie Cutter</b> mode provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Extrude Mode toolsExtrudeActionText = "<u><b>Extrude Mode</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\" simMinimizeEnergyAction\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMinimizeEnergyAction", self. simMinimizeEnergyAction.iconSet().pixmap() ) self. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Simulator simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) # Movie Player simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Plot Tool simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches an <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Build</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Build</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Build</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Build</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Build</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"jigsGamessAction\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGamessAction", self.jigsGamessAction.iconSet().pixmap() ) self.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"jigsGridPlaneAction\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGridPlaneAction", self.jigsGridPlaneAction.iconSet().pixmap() ) self.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Display # # Display Object Color dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) # Display Background Color dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText )
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, 34, 565, 261, 12418, 397, 531, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 225, 468, 7074, 1387, 225, 585, 4755, 1528, 273, 3532, 89, 4438, 70, 34, 4755, 1387, 1757, 70, 4695, 89, 34, 377, 261, 12418, 397, 348, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 2354, 836, 2412, 4438, 2848, 34, 1548, 315, 13370, 326, 783, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 2354, 836, 3113, 365, 18, 768, 4755, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 4755, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 4755, 1528, 262, 225, 468, 468, 15328, 13288, 3215, 468, 225, 468, 4344, 25569, 11849, 225, 3874, 6464, 14431, 1528, 273, 225, 3532, 89, 4438, 70, 34, 6464, 25569, 1757, 70, 4695, 89, 2984, 64, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 34, 565, 261, 12418, 397, 531, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 225, 468, 7074, 1387, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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) self.commandMgr.disconnect(self.compositeDragger) self.commandMgr = None self.dragSelection.removeChild(visible.sgNode) rootNode.removeChild(self.dragSelection) self.dragSelection = None rootNode.addChild(visible.sgNode) self.visibleWasDragged() if False: rootNode.removeChild(self.compositeDragger) self.compositeDragger = None else: rootNode.removeChild(self.draggerLOD) self.simpleDragger.setUpdateCallback(None) self.simpleDragger = None self.compositeDragger.setUpdateCallback(None) self.compositeDragger = None self.draggerLOD = None
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, 4672, 6021, 273, 365, 18, 8613, 1290, 921, 12, 8613, 18, 2625, 13, 225, 309, 6021, 18, 2938, 353, 599, 30, 10181, 273, 365, 18, 3085, 907, 469, 30, 10181, 273, 6021, 18, 2938, 18, 3624, 1114, 225, 365, 18, 3076, 9455, 18, 20177, 12, 2890, 18, 9647, 11728, 693, 13, 365, 18, 3076, 9455, 18, 20177, 12, 2890, 18, 27676, 11728, 693, 13, 365, 18, 3076, 9455, 273, 599, 225, 365, 18, 15997, 6233, 18, 4479, 1763, 12, 8613, 18, 1055, 907, 13, 10181, 18, 4479, 1763, 12, 2890, 18, 15997, 6233, 13, 365, 18, 15997, 6233, 273, 599, 225, 10181, 18, 1289, 1763, 12, 8613, 18, 1055, 907, 13, 365, 18, 8613, 14992, 11728, 2423, 1435, 225, 309, 1083, 30, 10181, 18, 4479, 1763, 12, 2890, 18, 27676, 11728, 693, 13, 225, 365, 18, 27676, 11728, 693, 273, 599, 469, 30, 10181, 18, 4479, 1763, 12, 2890, 18, 15997, 693, 48, 1212, 13, 225, 365, 18, 9647, 11728, 693, 18, 542, 1891, 2428, 12, 7036, 13, 365, 18, 9647, 11728, 693, 273, 599, 365, 18, 27676, 11728, 693, 18, 542, 1891, 2428, 12, 7036, 13, 365, 18, 27676, 11728, 693, 273, 599, 365, 18, 15997, 693, 48, 1212, 273, 599, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4672, 6021, 273, 365, 18, 8613, 1290, 921, 12, 8613, 18, 2625, 13, 225, 309, 6021, 18, 2938, 353, 599, 30, 10181, 273, 365, 18, 3085, 907, 469, 30, 10181, 273, 6021, 18, 2938, 18, 3624, 1114, 225, 365, 18, 3076, 9455, 18, 20177, 12, 2890, 18, 9647, 11728, 693, 13, 365, 18, 3076, 9455, 18, 20177, 12, 2890, 18, 27676, 11728, 693, 13, 365, 18, 3076, 9455, 273, 599, 225, 365, 18, 15997, 6233, 18, 4479, 1763, 12, 8613, 18, 1055, 907, 2 ]
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, 385, 95, 2203, 734, 504, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 385, 95, 2203, 734, 504, 5496, 3536, 327, 8228, 67, 438, 350, 504, 12, 2890, 16, 31446, 909, 16, 3598, 16, 4433, 16, 2341, 13, 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, -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 ]
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.append(target) return unresolved
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, 365, 18, 3510, 67, 1973, 67, 1615, 30, 309, 1018, 316, 501, 1649, 18, 24055, 67, 11037, 30, 1324, 309, 365, 18, 3510, 67, 1973, 67, 1615, 18, 1615, 12, 3299, 13, 316, 365, 18, 7307, 67, 14877, 30, 1324, 309, 486, 365, 18, 21516, 67, 3510, 67, 3299, 12, 3299, 4672, 20573, 18, 6923, 12, 3299, 13, 327, 20573, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, 365, 18, 3510, 67, 1973, 67, 1615, 30, 309, 1018, 316, 501, 1649, 18, 24055, 67, 11037, 30, 1324, 309, 365, 18, 3510, 67, 1973, 67, 1615, 18, 1615, 12, 3299, 13, 316, 365, 18, 7307, 67, 14877, 30, 1324, 309, 486, 365, 18, 21516, 67, 3510, 67, 3299, 12, 3299, 4672, 20573, 18, 6923, 12, 3299, 13, 327, 20573, 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 ]
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, 67, 4935, 48, 2203, 18204, 16, 1326, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 67, 4935, 48, 2203, 18204, 16, 1326, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.settings['seed_used']) self.crossover = self.pop[0].crossover # get the crossover op from the first genome self.pop.settings = self.settings #end same as galg #set up my population to hold the best from each sub-pop self.pop._size(0) #erase any current member of the pop self.pop._size(self.settings['num_pops']) self.crossover = self.pop[0].crossover #extract the galg settings so we don't get a ton of warnings #and create the sub ga_s sub_ga_settings = {} self.GAs = [] for key in galg.valid_settings: sub_ga_settings[key] = self.settings[key] for i in range(self.settings['num_pops']): self.GAs.append(galg(self.pop.clone())) self.GAs[i].settings = sub_ga_settings.copy()
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, 273, 365, 18, 4272, 3292, 7884, 67, 12407, 3546, 31, 11989, 273, 365, 18, 4272, 3292, 7884, 67, 18413, 3546, 5633, 18, 11160, 12, 12407, 273, 8349, 16, 4886, 273, 11989, 13, 365, 18, 4272, 3292, 12407, 67, 3668, 3546, 273, 5633, 18, 6769, 67, 12407, 1435, 365, 6315, 1188, 2668, 6769, 6894, 2777, 5009, 273, 738, 72, 11, 738, 365, 18, 4272, 3292, 12407, 67, 3668, 19486, 365, 18, 14653, 1643, 273, 365, 18, 5120, 63, 20, 8009, 14653, 1643, 468, 336, 326, 6828, 1643, 1061, 628, 326, 1122, 14696, 365, 18, 5120, 18, 4272, 273, 365, 18, 4272, 468, 409, 1967, 487, 314, 18413, 225, 468, 542, 731, 3399, 11209, 358, 6887, 326, 3796, 628, 1517, 720, 17, 5120, 365, 18, 5120, 6315, 1467, 12, 20, 13, 468, 264, 448, 1281, 783, 3140, 434, 326, 1843, 365, 18, 5120, 6315, 1467, 12, 2890, 18, 4272, 3292, 2107, 67, 84, 4473, 19486, 365, 18, 14653, 1643, 273, 365, 18, 5120, 63, 20, 8009, 14653, 1643, 225, 468, 8004, 326, 314, 18413, 1947, 1427, 732, 2727, 1404, 336, 279, 268, 265, 434, 5599, 468, 464, 752, 326, 720, 18812, 67, 87, 720, 67, 15833, 67, 4272, 273, 2618, 365, 18, 43, 1463, 273, 5378, 364, 498, 316, 314, 18413, 18, 877, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 273, 365, 18, 4272, 3292, 7884, 67, 12407, 3546, 31, 11989, 273, 365, 18, 4272, 3292, 7884, 67, 18413, 3546, 5633, 18, 11160, 12, 12407, 273, 8349, 16, 4886, 273, 11989, 13, 365, 18, 4272, 3292, 12407, 67, 3668, 3546, 273, 5633, 18, 6769, 67, 12407, 1435, 365, 6315, 1188, 2668, 6769, 6894, 2777, 5009, 273, 738, 72, 11, 738, 365, 18, 4272, 3292, 12407, 67, 3668, 19486, 365, 18, 14653, 1643, 273, 365, 18, 5120, 63, 20, 8009, 14653, 1643, 468, 336, 2 ]
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[prod_id] sml_x_pd_id = product['sml'] no_cump = product['no_cump'] total = product['total'] avg = product['avg'] qda = product['qda'] cont = product['cont'] seq = product['seq'] def_code = self.pool.get('product.product').browse(cr,uid,prod_id).default_code.strip() if pending: print '@'*10 print 'procesando: ',self.pool.get('product.product').browse(cr,uid,prod_id).name #~ time.sleep(10) while sml_x_pd_id: sml_id = sml_x_pd_id.pop(0) value={} if not cont: cont = True q = 0.0 subtotal = 0.0 qda = 0.0 #se debe buscar el costo inicial cr.execute('SELECT standard_price,product_qty FROM lst_cost ' \ 'WHERE default_code=%s', (def_code,)) res = cr.fetchall() if res and res[0][1]: print 'encontre costo inicccc' avg,q = res[0] else: rpp = rpp_obj.browse(cr,uid,sml_id) if rpp.location_dest_id.id == loc_ids and rpp.invoice_id.type == 'in_invoice': q = rpp.picking_qty print 'cantidad inicialxxxxx: ',q avg = rpp.invoice_price_unit else: no_cump.append(sml_id) continue #avg = 1430.96 #q = 5.0 print 'cantidad inicial: ',q print 'costo inicial: ',avg total = avg*q subtotal = avg*q qda = q seq += 1 value = { 'subtotal':subtotal, 'total':total, 'avg':avg, 'stk_bef_cor':0.0, 'stk_aft_cor':qda, 'sequence':seq } scl_id = sc_line_obj.search(cr, uid, [('stk_mov_id','=',sml_id)]) sc_line_obj.write(cr, uid, scl_id, value) print 'q inicial: ',q print 'avg: ',avg print 'qda inicial: ',qda print 'seq inicial: ',seq else: rpp = rpp_obj.browse(cr,uid,sml_id) q = rpp.picking_qty scl_id = sc_line_obj.search(cr, uid, [('stk_mov_id','=',sml_id)]) scl = sc_line_obj.browse(cr,uid,scl_id)[0] print 'viene operac: ',sml_id print 'packing: ',rpp.picking_id.name print 'seq antes operac: ',seq #VENTA if rpp.location_id.id == loc_ids and rpp.invoice_id.type == 'out_invoice': print 'validando VENTA:' qda,total,avg,no_cump,seq= \ self.validate_venta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq #NC COMPRA if rpp.location_id.id == loc_ids and (rpp.invoice_id.type == 'in_refund' or rpp.invoice_id.type == 'in_invoice'): print 'validando NC compra:' qda,total,avg,no_cump,seq= \ self.validate_nc_compra(cr,uid,ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq #COMPRA if rpp.location_dest_id.id == loc_ids and rpp.invoice_id.type == 'in_invoice': print 'procesooo compra:' q_bef = qda qda,subtotal,total,avg = self.compute_compra(cr, uid, ids,scl,q,total,avg,qda) #REALIZAR EL WRITE DE LA LINEA value = { 'subtotal':subtotal, 'total':total, 'avg':avg, 'stk_bef_cor':q_bef, 'stk_aft_cor':qda } seq=self.write_data(cr, uid, ids, scl.id, value, seq) print 'seq despues operac: ',seq if no_cump: print 'agregando nuevamente las vta:' #no_cump.append(sml_id) no_cump.extend(sml_x_pd_id) print 'no cumplioooo: ',no_cump sml_x_pd_id = no_cump print 'nueva listaaa: ',sml_x_pd_id no_cump = [] #NC VENTA if rpp.location_dest_id.id == loc_ids and rpp.invoice_id.type == 'out_refund': print 'validando NC VENTA:' qda,total,avg,no_cump,seq= \ self.validate_nc_vta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq if no_cump and not scl.parent_id: print 'agregando nuevamente los movimientos:' #no_cump.append(sml_id) no_cump.extend(sml_x_pd_id) print 'no cumplioooo: ',no_cump sml_x_pd_id = no_cump print 'nueva listaaa: ',sml_x_pd_id no_cump = [] #DESTINO USO INTERNO if rpp.location_id.id == loc_ids and rpp.location_dest_id.id == inter_loc_ids: print 'validando USO INTERNO:' #fixme blanquear la variables de cuenta #acc_src = None #acc_dest = None qda,total,avg,no_cump,seq= \ self.validate_venta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq valores = {} if not (rpp.aml_cost_id or rpp.aml_inv_id): move = scl.stk_mov_id acc_src = move.product_id.product_tmpl_id.\ property_stock_account_output.id if move.location_dest_id.account_id: acc_dest = move.location_dest_id.account_id.id acc_mov_id = self.write_aml(cr, uid, ids, scl, q, avg, acc_src, acc_dest) acc_mov_obj = self.pool.get('account.move').browse(cr,uid,acc_mov_id) for aml in acc_mov_obj.line_id: valores.update({ 'aml_cost_qty':aml.quantity or 0.0, 'aml_cost_price_unit':avg, 'aml_inv_qty':aml.quantity or 0.0, 'aml_inv_price_unit':avg}) if aml.debit: valores.update({'aml_cost_id':aml.id}) if aml.credit: valores.update({'aml_inv_id':aml.id}) sc_line_obj.write(cr, uid, scl.id, valores) #~ else: #~ id1=scl.aml_cost_id.id #~ id2=scl.aml_inv_id.id #~ if not scl.aml_cost_id.credit: #~ valores.update({'aml_cost_id':id2, 'aml_inv_id':id1}) #~ sc_line_obj.write(cr, uid, scl.id, valores) #~ #DESTINO PROCESAMIENTO if rpp.location_id.id == loc_ids and rpp.location_dest_id.id == prod_loc_ids: print 'validando PROCESAMIENTO:' #fixme blanquear la variables de cuenta #acc_src = None #acc_dest = None qda,total,avg,no_cump,seq= \ self.validate_venta(cr, uid, ids,scl,q,total,avg,qda,no_cump,sml_x_pd_id,sml_id,seq) print 'seq despues operac: ',seq valores = {} if not (rpp.aml_cost_id or rpp.aml_inv_id): move = scl.stk_mov_id acc_src = move.product_id.product_tmpl_id.\ property_stock_account_output.id if move.location_dest_id.account_id: acc_dest = move.location_dest_id.account_id.id
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, 16, 4634, 33, 8381, 4672, 9163, 27842, 83, 443, 846, 344, 12124, 443, 670, 1226, 869, 432, 303, 8838, 12602, 450, 764, 301, 1979, 83, 283, 2789, 20593, 443, 443, 12480, 5270, 980, 9163, 8715, 84, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 6006, 18, 685, 7216, 18, 11503, 310, 6134, 888, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3327, 18, 1369, 6134, 3017, 273, 9696, 63, 17672, 67, 350, 65, 272, 781, 67, 92, 67, 22353, 67, 350, 273, 3017, 3292, 87, 781, 3546, 1158, 67, 71, 2801, 273, 3017, 3292, 2135, 67, 71, 2801, 3546, 2078, 273, 3017, 3292, 4963, 3546, 11152, 273, 3017, 3292, 14141, 3546, 1043, 2414, 273, 3017, 3292, 85, 2414, 3546, 466, 273, 3017, 3292, 1213, 3546, 3833, 273, 3017, 3292, 5436, 3546, 1652, 67, 710, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 16063, 25731, 12, 3353, 16, 1911, 16, 17672, 67, 350, 2934, 1886, 67, 710, 18, 6406, 1435, 225, 309, 4634, 30, 1172, 9175, 14, 2163, 1172, 296, 685, 764, 28630, 30, 2265, 2890, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 16063, 25731, 12, 3353, 16, 1911, 16, 17672, 67, 350, 2934, 529, 468, 98, 813, 18, 19607, 12, 2163, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 4634, 33, 8381, 4672, 9163, 27842, 83, 443, 846, 344, 12124, 443, 670, 1226, 869, 432, 303, 8838, 12602, 450, 764, 301, 1979, 83, 283, 2789, 20593, 443, 443, 12480, 5270, 980, 9163, 8715, 84, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 6006, 18, 685, 7216, 18, 11503, 310, 6134, 888, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3327, 18, 1369, 6134, 3017, 273, 9696, 63, 17672, 67, 350, 65, 272, 781, 67, 2 ]
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, 1269, 635, 326, 5469, 17, 4482, 261, 92, 21, 16, 677, 21, 13, 471, 1760, 17, 4083, 261, 92, 22, 16, 677, 22, 13, 18398, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, 1269, 635, 326, 5469, 17, 4482, 261, 92, 21, 16, 677, 21, 13, 471, 1760, 17, 4083, 261, 92, 22, 16, 677, 22, 13, 18398, 18, 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, -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 ]
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.top() if param not in priorValues: try: priorValue = getSetter(self, param, 'get')() except: priorValue = None priorValues[param] = priorValue self._paramsSet[param] = None else: # prepare for call to getPriorValue self._priorValuesStack.push({ param: getSetter(self, param, 'get')() }) setterFunc(value) # call the applier, if there is one applier = getattr(self, getSetterName(param, 'apply'), None) if applier is not None: self._curParamStack.push(param) applier() self._curParamStack.pop() self._priorValuesStack.pop() if hasattr(self, 'handleParamChange'): self.handleParamChange((param,))
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, 1492, 924, 1240, 468, 2118, 444, 16, 471, 603, 7186, 16, 732, 5614, 745, 326, 2230, 414, 364, 5348, 468, 924, 309, 365, 6315, 891, 2531, 1957, 1380, 405, 374, 30, 7794, 2622, 12, 1132, 13, 6432, 1972, 273, 365, 6315, 17927, 1972, 2624, 18, 3669, 1435, 309, 579, 486, 316, 6432, 1972, 30, 775, 30, 6432, 620, 273, 336, 8465, 12, 2890, 16, 579, 16, 296, 588, 6134, 1435, 1335, 30, 6432, 620, 273, 599, 6432, 1972, 63, 891, 65, 273, 6432, 620, 365, 6315, 2010, 694, 63, 891, 65, 273, 599, 469, 30, 468, 2911, 364, 745, 358, 1689, 2432, 620, 365, 6315, 17927, 1972, 2624, 18, 6923, 12590, 579, 30, 336, 8465, 12, 2890, 16, 579, 16, 296, 588, 6134, 1435, 289, 13, 7794, 2622, 12, 1132, 13, 468, 745, 326, 513, 5742, 16, 309, 1915, 353, 1245, 513, 5742, 273, 3869, 12, 2890, 16, 336, 8465, 461, 12, 891, 16, 296, 9010, 19899, 599, 13, 309, 513, 5742, 353, 486, 599, 30, 365, 6315, 1397, 786, 2624, 18, 6206, 12, 891, 13, 513, 5742, 1435, 365, 6315, 1397, 786, 2624, 18, 5120, 1435, 365, 6315, 17927, 1972, 2624, 18, 5120, 1435, 309, 3859, 12, 2890, 16, 296, 4110, 786, 3043, 11, 4672, 365, 18, 4110, 786, 3043, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1492, 924, 1240, 468, 2118, 444, 16, 471, 603, 7186, 16, 732, 5614, 745, 326, 2230, 414, 364, 5348, 468, 924, 309, 365, 6315, 891, 2531, 1957, 1380, 405, 374, 30, 7794, 2622, 12, 1132, 13, 6432, 1972, 273, 365, 6315, 17927, 1972, 2624, 18, 3669, 1435, 309, 579, 486, 316, 6432, 1972, 30, 775, 30, 6432, 620, 273, 336, 8465, 12, 2890, 16, 579, 16, 296, 588, 6134, 1435, 1335, 30, 6432, 620, 273, 599, 6432, 1972, 63, 891, 65, 273, 6432, 2 ]
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 = subprocess.call(counters_command)
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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", "<=", "iomark"): self.recall(sel) return "break" except: pass # If we're strictly before the line containing iomark, recall # the current line, less a leading prompt, less leading or # trailing whitespace if self.text.compare("insert", "<", "iomark linestart"): # Check if there's a relevant stdin range -- if so, use it prev = self.text.tag_prevrange("stdin", "insert") if prev and self.text.compare("insert", "<", prev[1]): self.recall(self.text.get(prev[0], prev[1])) return "break" next = self.text.tag_nextrange("stdin", "insert") if next and self.text.compare("insert lineend", ">=", next[0]): self.recall(self.text.get(next[0], next[1])) return "break" # No stdin mark -- just get the current line, less any prompt line = self.text.get("insert linestart", "insert lineend") last_line_of_prompt = sys.ps1.split('\n')[-1] if line.startswith(last_line_of_prompt): line = line[len(last_line_of_prompt):] self.recall(line) return "break" # If we're between the beginning of the line and the iomark, i.e. # in the prompt area, move to the end of the prompt if self.text.compare("insert", "<", "iomark"): self.text.mark_set("insert", "iomark") # If we're in the current input and there's only whitespace # beyond the cursor, erase that whitespace first s = self.text.get("insert", "end-1c") if s and not s.strip(): self.text.delete("insert", "end-1c") # If we're in the current input before its last line, # insert a newline right at the insert point if self.text.compare("insert", "<", "end-1c linestart"): self.newline_and_indent_event(event) return "break" # We're in the last line; append a newline and submit it self.text.mark_set("insert", "end-1c") if self.reading: self.text.insert("insert", "\n") self.text.see("insert") else: self.newline_and_indent_event(event) self.text.tag_add("stdin", "iomark", "end-1c") self.text.update_idletasks() if self.reading: self.top.quit() # Break out of recursive mainloop() in raw_input() else: self.runit() return "break"
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, 977, 353, 3170, 16, 20895, 326, 4421, 468, 261, 12885, 1338, 309, 333, 1865, 326, 467, 19, 51, 2267, 13, 775, 30, 357, 273, 365, 18, 955, 18, 588, 2932, 1786, 18, 3645, 3113, 315, 1786, 18, 2722, 7923, 309, 357, 30, 309, 365, 18, 955, 18, 9877, 2932, 1786, 18, 2722, 3113, 3532, 1546, 16, 315, 14642, 1313, 6, 4672, 365, 18, 266, 1991, 12, 1786, 13, 327, 315, 8820, 6, 1335, 30, 1342, 468, 971, 732, 4565, 23457, 1865, 326, 980, 4191, 277, 362, 1313, 16, 20895, 468, 326, 783, 980, 16, 5242, 279, 7676, 6866, 16, 5242, 7676, 578, 468, 7341, 7983, 309, 365, 18, 955, 18, 9877, 2932, 6387, 3113, 3532, 3113, 315, 14642, 1313, 4739, 27893, 6, 4672, 468, 2073, 309, 1915, 1807, 279, 9368, 8801, 1048, 1493, 309, 1427, 16, 999, 518, 2807, 273, 365, 18, 955, 18, 2692, 67, 10001, 3676, 2932, 21772, 3113, 315, 6387, 7923, 309, 2807, 471, 365, 18, 955, 18, 9877, 2932, 6387, 3113, 3532, 3113, 2807, 63, 21, 65, 4672, 365, 18, 266, 1991, 12, 2890, 18, 955, 18, 588, 12, 10001, 63, 20, 6487, 2807, 63, 21, 22643, 327, 315, 8820, 6, 1024, 273, 365, 18, 955, 18, 2692, 67, 82, 14523, 726, 2932, 21772, 3113, 315, 6387, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 977, 353, 3170, 16, 20895, 326, 4421, 468, 261, 12885, 1338, 309, 333, 1865, 326, 467, 19, 51, 2267, 13, 775, 30, 357, 273, 365, 18, 955, 18, 588, 2932, 1786, 18, 3645, 3113, 315, 1786, 18, 2722, 7923, 309, 357, 30, 309, 365, 18, 955, 18, 9877, 2932, 1786, 18, 2722, 3113, 3532, 1546, 16, 315, 14642, 1313, 6, 4672, 365, 18, 266, 1991, 12, 1786, 13, 327, 315, 8820, 6, 1335, 30, 1342, 468, 971, 732, 4565, 23457, 1865, 326, 980, 2 ]
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 generator twice on different levels. # TODO: is this really used? if not g in __active_generators: viable_generators.append (g) else: dout(" generator %s is active, discarning" % g.id()) # Generators which override 'all'. all_overrides = [] # Generators which are overriden overriden_ids = [] for g in viable_generators: id = g.id () this_overrides = __overrides.get (id, []) if this_overrides: overriden_ids.extend (this_overrides) if 'all' in this_overrides: all_overrides.append (g) if all_overrides: viable_generators = all_overrides result = [] for g in viable_generators: if not g.id () in overriden_ids: result.append (g) return result
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, 25959, 67, 2493, 18, 588, 261, 856, 16, 599, 13, 309, 486, 328, 30, 328, 273, 5378, 225, 309, 486, 328, 30, 328, 273, 1104, 67, 522, 429, 67, 25959, 67, 18196, 261, 3299, 67, 723, 16, 2270, 67, 542, 13, 225, 1001, 522, 429, 67, 25959, 67, 2493, 306, 856, 65, 273, 328, 225, 331, 2214, 67, 25959, 273, 5378, 364, 314, 316, 328, 30, 468, 17843, 8374, 326, 1967, 4456, 13605, 603, 3775, 7575, 18, 468, 2660, 30, 353, 333, 8654, 1399, 35, 309, 486, 314, 316, 1001, 3535, 67, 25959, 30, 331, 2214, 67, 25959, 18, 6923, 261, 75, 13, 469, 30, 302, 659, 2932, 1377, 4456, 738, 87, 353, 2695, 16, 10388, 310, 6, 738, 314, 18, 350, 10756, 225, 468, 3055, 3062, 1492, 3849, 296, 454, 10332, 777, 67, 19775, 273, 5378, 225, 468, 3055, 3062, 1492, 854, 31736, 31736, 67, 2232, 273, 5378, 225, 364, 314, 316, 331, 2214, 67, 25959, 30, 612, 273, 314, 18, 350, 1832, 225, 333, 67, 19775, 273, 1001, 19775, 18, 588, 261, 350, 16, 5378, 13, 225, 309, 333, 67, 19775, 30, 31736, 67, 2232, 18, 14313, 261, 2211, 67, 19775, 13, 309, 296, 454, 11, 316, 333, 67, 19775, 30, 777, 67, 19775, 18, 6923, 261, 75, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25959, 67, 2493, 18, 588, 261, 856, 16, 599, 13, 309, 486, 328, 30, 328, 273, 5378, 225, 309, 486, 328, 30, 328, 273, 1104, 67, 522, 429, 67, 25959, 67, 18196, 261, 3299, 67, 723, 16, 2270, 67, 542, 13, 225, 1001, 522, 429, 67, 25959, 67, 2493, 306, 856, 65, 273, 328, 225, 331, 2214, 67, 25959, 273, 5378, 364, 314, 316, 328, 30, 468, 17843, 8374, 326, 1967, 4456, 13605, 603, 3775, 7575, 18, 468, 2660, 30, 353, 333, 2 ]