rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
def __getDn(self, username): """Private method to find the distinguished name for a given username""" sres = self.__usernamesearch(username) if len(sres) > 1: raise AmbiguousAccount(email, len(sres)) if len(sres) == 0: raise NoSuchAccount(username) return sres[0][0] def connect(self, username, password): """ Retrie...
class HashLoginChecker(AlchemyLoginChecker): """A login checker duplicating the capabilities of the default LoginChecker, but supporting the iscorrectpass method.
def __getDn(self, username): """Private method to find the distinguished name for a given username"""
4d2d0fe5a513038fd2443c1ce683be382bfedece /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/4d2d0fe5a513038fd2443c1ce683be382bfedece/mozldap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 19053, 12, 2890, 16, 2718, 4672, 3536, 6014, 707, 358, 1104, 326, 19559, 5992, 508, 364, 279, 864, 2718, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 19053, 12, 2890, 16, 2718, 4672, 3536, 6014, 707, 358, 1104, 326, 19559, 5992, 508, 364, 279, 864, 2718, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
sys.stdout.write('
line = pyop.get_truncated_repr(MAX_OUTPUT_LEN) write_unicode(sys.stdout, '
def print_summary(self): if self.is_evalframeex(): pyop = self.get_pyop() if pyop: sys.stdout.write('#%i %s\n' % (self.get_index(), pyop.get_truncated_repr(MAX_OUTPUT_LEN))) sys.stdout.write(pyop.current_line()) else: sys.stdout.write('#%i (unable to read python frame information)\n' % self.get_index()) else: sys.stdou...
0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/0e5a41b8f5b87bf07ed6368df5a84137d3e4e4da/libpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7687, 12, 2890, 4672, 309, 365, 18, 291, 67, 8622, 3789, 338, 13332, 2395, 556, 273, 365, 18, 588, 67, 2074, 556, 1435, 309, 2395, 556, 30, 2589, 18, 10283, 18, 2626, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 7687, 12, 2890, 4672, 309, 365, 18, 291, 67, 8622, 3789, 338, 13332, 2395, 556, 273, 365, 18, 588, 67, 2074, 556, 1435, 309, 2395, 556, 30, 2589, 18, 10283, 18, 2626, 2668, ...
if 'id' in attributes: id = attributes['id'] elem.uri = self.namespace['id' + id] elif name in self.nameIdElems: elem.uri = self.NAME_ID_URI elif len(self.elems) == 1:
if len(self.elems) == 1:
def _pushElem(self, name, attributes): elem = VModellElem() elem.name = name self.elems.append(elem)
9def0e48cb10709a6ad3225d36acc7c8453d296f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5223/9def0e48cb10709a6ad3225d36acc7c8453d296f/vmodellparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6206, 7498, 12, 2890, 16, 508, 16, 1677, 4672, 3659, 273, 776, 1488, 80, 7498, 1435, 3659, 18, 529, 273, 508, 365, 18, 292, 7424, 18, 6923, 12, 10037, 13, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6206, 7498, 12, 2890, 16, 508, 16, 1677, 4672, 3659, 273, 776, 1488, 80, 7498, 1435, 3659, 18, 529, 273, 508, 365, 18, 292, 7424, 18, 6923, 12, 10037, 13, 2, -100, -100, -100, -...
if isinstance(value, table): value = 'Table:' + value.name;
val = value; if isinstance(val, table): val = _add_prefix (val.name());
def putcolkeyword (self, columnname, keyword, value, makesubrecord=False): if isinstance(value, table): value = 'Table:' + value.name; if isinstance(keyword, str): return self._putkeyword (columnname, keyword, -1, value, makesubrecord); else: return self._putkeyword (columnname, '', keyword, value, makesubrecord);
b13db46f8db806e414f7bc202101951114c714ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7472/b13db46f8db806e414f7bc202101951114c714ea/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1293, 11041, 261, 2890, 16, 1057, 529, 16, 4932, 16, 460, 16, 7297, 373, 3366, 33, 8381, 4672, 1244, 273, 460, 31, 309, 1549, 12, 1125, 16, 1014, 4672, 1244, 273, 389, 1289, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1293, 11041, 261, 2890, 16, 1057, 529, 16, 4932, 16, 460, 16, 7297, 373, 3366, 33, 8381, 4672, 1244, 273, 460, 31, 309, 1549, 12, 1125, 16, 1014, 4672, 1244, 273, 389, 1289, 67, ...
def generate_dot(self, name, parts=0, urls={}, env=None,
def generate_dot(self, name, urls={}, env=None,
def generate_dot(self, name, parts=0, urls={}, env=None, graph_attrs={}, node_attrs={}, edge_attrs={}): """ Generate a graphviz dot graph from the classes that were passed in to __init__.
c27cf37aa3413c1706ea1f344972d60ea1f8fe98 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/c27cf37aa3413c1706ea1f344972d60ea1f8fe98/inheritance_diagram.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 9811, 12, 2890, 16, 508, 16, 6903, 28793, 1550, 33, 7036, 16, 2667, 67, 7039, 28793, 756, 67, 7039, 28793, 3591, 67, 7039, 12938, 4672, 3536, 6654, 279, 2667, 23167, 3928, 2667...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 9811, 12, 2890, 16, 508, 16, 6903, 28793, 1550, 33, 7036, 16, 2667, 67, 7039, 28793, 756, 67, 7039, 28793, 3591, 67, 7039, 12938, 4672, 3536, 6654, 279, 2667, 23167, 3928, 2667...
_notfound = None
def execvpe(file, args, env): """execv(file, args, env) Execute the executable file (which is searched for along $PATH) with argument list args and environment env , replacing the current process. args may be a list or tuple of strings. """ _execvpe(file, args, env)
899022e9441b26d70ad8fdc1c95c8ea45b8bdd88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/899022e9441b26d70ad8fdc1c95c8ea45b8bdd88/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 90, 347, 12, 768, 16, 833, 16, 1550, 4672, 3536, 4177, 90, 12, 768, 16, 833, 16, 1550, 13, 225, 7903, 326, 9070, 585, 261, 12784, 353, 19242, 364, 7563, 271, 4211, 13, 598, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 90, 347, 12, 768, 16, 833, 16, 1550, 4672, 3536, 4177, 90, 12, 768, 16, 833, 16, 1550, 13, 225, 7903, 326, 9070, 585, 261, 12784, 353, 19242, 364, 7563, 271, 4211, 13, 598, 123...
desc = split(freshimport(modname).__doc__ or '', '\n')[0] if find(lower(modname + ' - ' + desc), key) >= 0: callback(None, modname, desc)
if key is None: callback(None, modname, '') else: desc = split(freshimport(modname).__doc__ or '', '\n')[0] if find(lower(modname + ' - ' + desc), key) >= 0: callback(None, modname, desc)
def run(self, key, callback, completer=None): key = lower(key) self.quit = 0 seen = {}
cdd3c5fa22c1696864e701e1c4335969c936cd77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/cdd3c5fa22c1696864e701e1c4335969c936cd77/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 498, 16, 1348, 16, 31848, 33, 7036, 4672, 498, 273, 2612, 12, 856, 13, 365, 18, 27176, 273, 374, 5881, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 498, 16, 1348, 16, 31848, 33, 7036, 4672, 498, 273, 2612, 12, 856, 13, 365, 18, 27176, 273, 374, 5881, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
break
return
def _flush(): '''Wait for the page-putter to flush its queue; called automatically upon exiting from Python. ''' if page_put_queue.qsize() > 0: import datetime remaining = datetime.timedelta(seconds=(page_put_queue.qsize()+1) * config.put_throttle) output('Waiting for %i pages to be put. Estimated time remaining: %s' %...
e730524cd5be39ec1fd511a2e2746b78a799de65 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/e730524cd5be39ec1fd511a2e2746b78a799de65/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11330, 13332, 9163, 5480, 364, 326, 1363, 17, 458, 387, 358, 3663, 2097, 2389, 31, 2566, 6635, 12318, 15702, 628, 6600, 18, 9163, 309, 1363, 67, 458, 67, 4000, 18, 85, 1467, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11330, 13332, 9163, 5480, 364, 326, 1363, 17, 458, 387, 358, 3663, 2097, 2389, 31, 2566, 6635, 12318, 15702, 628, 6600, 18, 9163, 309, 1363, 67, 458, 67, 4000, 18, 85, 1467, 1435, ...
self.assertEqual(slice(TrapLong(0)).indices(0), (0,0,1))
def test_subclasses(self): r = list(range(10)) self.assertEqual(r[TrapInt(5):TrapInt(10)], r[5:10]) self.assertEqual(r[TrapLong(5):TrapLong(10)], r[5:10]) self.assertEqual(slice(TrapInt()).indices(0), (0,0,1)) self.assertEqual(slice(TrapLong(0)).indices(0), (0,0,1))
0d4cbc19eb2c7ce9725c851f862b87c26a75c899 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/0d4cbc19eb2c7ce9725c851f862b87c26a75c899/test_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1717, 4701, 12, 2890, 4672, 436, 273, 666, 12, 3676, 12, 2163, 3719, 365, 18, 11231, 5812, 12, 86, 63, 56, 1266, 1702, 12, 25, 4672, 56, 1266, 1702, 12, 2163, 13, 6487, 436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1717, 4701, 12, 2890, 4672, 436, 273, 666, 12, 3676, 12, 2163, 3719, 365, 18, 11231, 5812, 12, 86, 63, 56, 1266, 1702, 12, 25, 4672, 56, 1266, 1702, 12, 2163, 13, 6487, 436...
self.debug("Connect to %r failed" % sockaddr)
self.debug("Connect to %r failed" % (sockaddr,))
def _connect(self,addr,port,to=None): if to is None: to=str(addr) if type(addr) in (StringType,UnicodeType): self.state_change("resolving",addr) s=None for res in socket.getaddrinfo(addr,port,0,socket.SOCK_STREAM): family,socktype,proto,canonname,sockaddr=res try: s=socket.socket(family,socktype,proto) self.state_chang...
9f647280460a6b52ca1da56c01e02382c23e3300 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/9f647280460a6b52ca1da56c01e02382c23e3300/stream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3612, 12, 2890, 16, 4793, 16, 655, 16, 869, 33, 7036, 4672, 309, 358, 353, 599, 30, 358, 33, 701, 12, 4793, 13, 309, 618, 12, 4793, 13, 316, 261, 780, 559, 16, 16532, 559, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3612, 12, 2890, 16, 4793, 16, 655, 16, 869, 33, 7036, 4672, 309, 358, 353, 599, 30, 358, 33, 701, 12, 4793, 13, 309, 618, 12, 4793, 13, 316, 261, 780, 559, 16, 16532, 559, 467...
self.physical_id[0], self.physical_id[1], self.physical_id[2], self.physical_id[3])
(self.physical_id[0], self.physical_id[1], self.physical_id[2], self.physical_id[3]))
def __str__(self): """Custom str() formatter for disks.
25a915d0bb07f469ac17b78fb6282a4beeba1b18 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7542/25a915d0bb07f469ac17b78fb6282a4beeba1b18/objects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 3802, 609, 1435, 4453, 364, 17164, 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,...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 3802, 609, 1435, 4453, 364, 17164, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.statusTime = time.time()
self.statusTime = time.localtime()
def __init__(self,wps, processes=None):
88a4e52fcf30a4cf07b3a338d1d926ae7658cb77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10967/88a4e52fcf30a4cf07b3a338d1d926ae7658cb77/Execute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 91, 1121, 16, 8488, 33, 7036, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 91, 1121, 16, 8488, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.gen_requires: gen_requires(self.module)
def add_access(self, av_set): """Add the access from the access vector set to this module. """ # Use the interface generator to split the access # into raw allow rules and interfaces. After this # a will contain a list of access that should be # used as raw allow rules and the interfaces will # be added to the module. ...
f210ced209102d187ae788413603ef1ed9d44680 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7147/f210ced209102d187ae788413603ef1ed9d44680/policygen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3860, 12, 2890, 16, 1712, 67, 542, 4672, 3536, 986, 326, 2006, 628, 326, 2006, 3806, 444, 358, 333, 1605, 18, 3536, 468, 2672, 326, 1560, 4456, 358, 1416, 326, 2006, 468, 1368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3860, 12, 2890, 16, 1712, 67, 542, 4672, 3536, 986, 326, 2006, 628, 326, 2006, 3806, 444, 358, 333, 1605, 18, 3536, 468, 2672, 326, 1560, 4456, 358, 1416, 326, 2006, 468, 1368...
A notification can be canceled even if it has not been shown yet.
This function should NOT be called until |WaitForNotificationCount| has been used to verify the notification is showing. This function cannot be used to cancel a notification that is in the display queue.
def _CancelNotification(self, notification_id, tab_index=0, windex=0): """Cancels a notification with the given id.
1e55a10eb4cd8a39edfb8c06c80b7c24e70d3fce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/1e55a10eb4cd8a39edfb8c06c80b7c24e70d3fce/notifications.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6691, 4386, 12, 2890, 16, 3851, 67, 350, 16, 3246, 67, 1615, 33, 20, 16, 341, 1615, 33, 20, 4672, 3536, 6691, 87, 279, 3851, 598, 326, 864, 612, 18, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6691, 4386, 12, 2890, 16, 3851, 67, 350, 16, 3246, 67, 1615, 33, 20, 16, 341, 1615, 33, 20, 4672, 3536, 6691, 87, 279, 3851, 598, 326, 864, 612, 18, 2, -100, -100, -100, -100, ...
pass
def clear_cache(): """ Clear the global conflict resolve cache """ pass
c28a0f5b107c1189f5a606ab186df796c776ebfe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c28a0f5b107c1189f5a606ab186df796c776ebfe/conflict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 67, 2493, 13332, 3536, 10121, 326, 2552, 7546, 2245, 1247, 3536, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2424, 67, 2493, 13332, 3536, 10121, 326, 2552, 7546, 2245, 1247, 3536, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
``Expires`` and ``Cache-Control`` headers for static assets served. Note that this argument has no effect when the ``name`` is a *url prefix*. By default, this argument is ``None``, meaning that no particular Expires or Cache-Control headers are set in the response.
``Expires`` and ``Cache-Control`` headers for static assets served. Note that this argument has no effect when the ``name`` is a *url prefix*. By default, this argument is ``None``, meaning that no particular Expires or Cache-Control headers are set in the response.
def add_static_view(self, name, path, **kw): """ Add a view used to render static assets such as images and CSS files.
781f9e02e0433a77e78f07f28e5b7d2064e73af4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/781f9e02e0433a77e78f07f28e5b7d2064e73af4/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3845, 67, 1945, 12, 2890, 16, 508, 16, 589, 16, 2826, 9987, 4672, 3536, 1436, 279, 1476, 1399, 358, 1743, 760, 7176, 4123, 487, 4602, 471, 6765, 1390, 18, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3845, 67, 1945, 12, 2890, 16, 508, 16, 589, 16, 2826, 9987, 4672, 3536, 1436, 279, 1476, 1399, 358, 1743, 760, 7176, 4123, 487, 4602, 471, 6765, 1390, 18, 2, -100, -100, -100,...
self.t = self.get_time() - t
self.t = get_time() - t
def simulate_cmd_complete(self): t = self.get_time() - self.t while self.cur[-1]: # We *can* cause assertion errors here if # dispatch_trace_return checks for a frame match! a = self.dispatch['return'](self.cur[-2], t) t = 0 self.t = self.get_time() - t
edb5ffb2c145fc52df2195c22688db51034b08d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/edb5ffb2c145fc52df2195c22688db51034b08d5/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20089, 67, 4172, 67, 6226, 12, 2890, 4672, 268, 273, 365, 18, 588, 67, 957, 1435, 300, 365, 18, 88, 1323, 365, 18, 1397, 18919, 21, 14542, 468, 1660, 380, 4169, 14, 4620, 11240, 1334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20089, 67, 4172, 67, 6226, 12, 2890, 4672, 268, 273, 365, 18, 588, 67, 957, 1435, 300, 365, 18, 88, 1323, 365, 18, 1397, 18919, 21, 14542, 468, 1660, 380, 4169, 14, 4620, 11240, 1334, ...
print "\nThe disabled sites that are reporting: \n" + \
print "\nThe disabled storage resources that are reporting: \n" + \
def DataTransferSumup(range_end = datetime.date.today(), range_begin = None, output = "text", header = True): if not gGrid or gGrid.lower() == 'local': try: gridDisplayName = gConfig.get("local", "grid_name") except: gridDisplayName = "" else: gridDisplayName = 'OSG' if not range_end: if not range_begin: range_end = ...
6d8a4b1e13b56fd714149dae3171a05103390c56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/637/6d8a4b1e13b56fd714149dae3171a05103390c56/AccountingReports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1910, 5912, 3495, 416, 12, 3676, 67, 409, 273, 3314, 18, 712, 18, 30064, 9334, 1048, 67, 10086, 273, 599, 16, 876, 273, 315, 955, 3113, 1446, 273, 1053, 4672, 225, 309, 486, 314, 6313,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1910, 5912, 3495, 416, 12, 3676, 67, 409, 273, 3314, 18, 712, 18, 30064, 9334, 1048, 67, 10086, 273, 599, 16, 876, 273, 315, 955, 3113, 1446, 273, 1053, 4672, 225, 309, 486, 314, 6313,...
index_html_=HTML("""\
def index_html(self, REQUEST=None): """ View the STX Help Topic """ if Globals.DevelopmentMode: try: mtime=os.stat(self.file) except: mtime=0 if mtime != self._v_last_read: self.obj = open(self.file).read() self._v_last_read=mtime self.reindex_object() return self.htmlfile(self, REQUEST) htmlfile = HTML("""\
def SearchableText(self): "The full text of the Help Topic, for indexing purposes" return '%s %s' % (self.title, self.obj)
b38c71929f2b00c0412bff5e1a395235424c1dcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b38c71929f2b00c0412bff5e1a395235424c1dcc/HelpTopic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5167, 429, 1528, 12, 2890, 4672, 315, 1986, 1983, 977, 434, 326, 11288, 11789, 16, 364, 14403, 13694, 6, 327, 1995, 87, 738, 87, 11, 738, 261, 2890, 18, 2649, 16, 365, 18, 2603, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5167, 429, 1528, 12, 2890, 4672, 315, 1986, 1983, 977, 434, 326, 11288, 11789, 16, 364, 14403, 13694, 6, 327, 1995, 87, 738, 87, 11, 738, 261, 2890, 18, 2649, 16, 365, 18, 2603, 13, ...
nframes = N.size(input)
nframes = N.size(input) / nc
def write_frames(self, input, nframes = -1): """write data to file. :Parameters: input : ndarray array containing data to write. nframes : int number of frames to write.
db4fa25679edf61a9d200b0a7207a799f2b5d02e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11419/db4fa25679edf61a9d200b0a7207a799f2b5d02e/pysndfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10278, 12, 2890, 16, 810, 16, 290, 10278, 273, 300, 21, 4672, 3536, 2626, 501, 358, 585, 18, 225, 294, 2402, 30, 810, 294, 8304, 526, 4191, 501, 358, 1045, 18, 290, 10278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10278, 12, 2890, 16, 810, 16, 290, 10278, 273, 300, 21, 4672, 3536, 2626, 501, 358, 585, 18, 225, 294, 2402, 30, 810, 294, 8304, 526, 4191, 501, 358, 1045, 18, 290, 10278, ...
s2 = removeLanguageLinks(s2.replace(marker,'').strip(), site) + site.family.category_text_separator + s
s2 = removeLanguageLinks(s2.replace(marker,''), site) + site.family.category_text_separator + s
def replaceCategoryLinks(oldtext, new, site = None, addOnly = False): """Replace the category links given in the wikitext given in oldtext by the new links given in new. 'new' should be a list of Category objects. If addOnly is True, the old category won't be deleted and the category(s) given will be added (and so th...
0e27dcef428acb649b6158767226d6719ab9240d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/0e27dcef428acb649b6158767226d6719ab9240d/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 4457, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 16, 527, 3386, 273, 1083, 4672, 3536, 5729, 326, 3150, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 4457, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 16, 527, 3386, 273, 1083, 4672, 3536, 5729, 326, 3150, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635,...
elif hasattr(t, 'getComponentTypeMap'): return t.getComponentTypeMap()
elif hasattr(t, 'getComponentType'): return t.getComponentType()
def _getAsn1SpecByPosition(self, t, idx): if t.getComponentType() is not None: if hasattr(t, 'getComponentTypeMapNearPosition'): return t.getComponentTypeMapNearPosition(idx) # Sequence elif hasattr(t, 'getComponentTypeMap'): # XXX return t.getComponentTypeMap() # SequenceOf # or no asn1Specs
53db28a34f5382132ba2ccb277893c9788f2108a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8754/53db28a34f5382132ba2ccb277893c9788f2108a/decoder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1463, 82, 21, 1990, 858, 2555, 12, 2890, 16, 268, 16, 2067, 4672, 309, 268, 18, 588, 28116, 1435, 353, 486, 599, 30, 309, 3859, 12, 88, 16, 296, 588, 1841, 23968, 24686, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1463, 82, 21, 1990, 858, 2555, 12, 2890, 16, 268, 16, 2067, 4672, 309, 268, 18, 588, 28116, 1435, 353, 486, 599, 30, 309, 3859, 12, 88, 16, 296, 588, 1841, 23968, 24686, 25...
db.begin_transaction(False)
if not read_only: db.begin_transaction(False)
def __init__(self, ref): # Load the database if isinstance(ref, WritableDatabase): self._db = ref else: uri = get_absolute_reference(ref) if uri.scheme != 'file': raise IOError, ('The file system supported with catalog is ' 'only "file"') path = str(uri.path) self._db = WritableDatabase(path, DB_OPEN) db = self._db
a0530ae1fd5089a729b17c188d75ce7e3a38d812 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/a0530ae1fd5089a729b17c188d75ce7e3a38d812/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1278, 4672, 468, 4444, 326, 2063, 309, 1549, 12, 1734, 16, 14505, 4254, 4672, 365, 6315, 1966, 273, 1278, 469, 30, 2003, 273, 336, 67, 12547, 67, 6180, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1278, 4672, 468, 4444, 326, 2063, 309, 1549, 12, 1734, 16, 14505, 4254, 4672, 365, 6315, 1966, 273, 1278, 469, 30, 2003, 273, 336, 67, 12547, 67, 6180, 1...
print err
def parse(self): '''Parse options''' ret = {} if self.dogetopt: try: opts, args = getopt.getopt(sys.argv[1:], self.shortopt, self.longopt) except getopt.GetoptError, err: print "%s Usage:" % (self.name) print err print self.helpmsg raise OptionFailure, err if '-h' in sys.argv: print "%s Usage:" % (self.name) print self...
56ee3aa07a5b245adcee57f69dcb1ec53528cb17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/56ee3aa07a5b245adcee57f69dcb1ec53528cb17/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 9163, 3201, 702, 26418, 325, 273, 2618, 309, 365, 18, 2896, 588, 3838, 30, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 9163, 3201, 702, 26418, 325, 273, 2618, 309, 365, 18, 2896, 588, 3838, 30, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 3...
'''
"""
def hasPermission(self, permission, classname=_marker, property=None, itemid=None): '''Determine if the user has the Permission.
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26097, 12, 2890, 16, 4132, 16, 7479, 33, 67, 11145, 16, 1272, 33, 7036, 16, 16862, 33, 7036, 4672, 9163, 8519, 309, 326, 729, 711, 326, 8509, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26097, 12, 2890, 16, 4132, 16, 7479, 33, 67, 11145, 16, 1272, 33, 7036, 16, 16862, 33, 7036, 4672, 9163, 8519, 309, 326, 729, 711, 326, 8509, 18, 2, -100, -100, -100, -100, -100, -100,...
login = os.getlogin()
login = os.getenv('LOGNAME')
def fill_memory_linux(): """Fill unallocated memory""" # make self primary target for Linux out-of-memory killer path = '/proc/%d/oomadj' % os.getpid() if os.path.exists(path): f = open(path) f.write('15') f.close() # OOM likes nice processes print 'debug: new nice value', os.nice(19) libc = ctypes.cdll.LoadLibrary("li...
e4a7c4ed1df294ce024bc13662ad0791bc4b7bfb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/e4a7c4ed1df294ce024bc13662ad0791bc4b7bfb/Memory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 67, 7858, 67, 20132, 13332, 3536, 8026, 640, 28172, 3778, 8395, 468, 1221, 365, 3354, 1018, 364, 13318, 596, 17, 792, 17, 7858, 8673, 264, 589, 273, 1173, 9381, 5258, 72, 19, 4252,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 67, 7858, 67, 20132, 13332, 3536, 8026, 640, 28172, 3778, 8395, 468, 1221, 365, 3354, 1018, 364, 13318, 596, 17, 792, 17, 7858, 8673, 264, 589, 273, 1173, 9381, 5258, 72, 19, 4252,...
context.show_text(title)
if self.textfix: context.text_path(title) else: context.show_text(title)
def render(self, context, debug=False): debug = debug or self.debug context.save() # Draw the vertical scale, if necessary if self.vertical_scale: major_style = self.style['wavegraph grid#y.major'] minor_style = self.style['wavegraph grid#y.minor'] for linepos, title, ismajor in self.y_scale.get_lines(): if ismajo...
065a488418bded58d539a015b45ac5954482640a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4498/065a488418bded58d539a015b45ac5954482640a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 16, 1198, 33, 8381, 4672, 225, 1198, 273, 1198, 578, 365, 18, 4148, 225, 819, 18, 5688, 1435, 225, 468, 10184, 326, 9768, 3159, 16, 309, 4573, 309, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 16, 1198, 33, 8381, 4672, 225, 1198, 273, 1198, 578, 365, 18, 4148, 225, 819, 18, 5688, 1435, 225, 468, 10184, 326, 9768, 3159, 16, 309, 4573, 309, 365, 18, ...
prop_details[propname] = {"status": rabbitvcs.vcs.status.status_unchanged,
prop_details[propname] = {"status": rabbitvcs.vcs.status.status_normal,
def propdetails(self, path): """ Each property on a path may be modified in the WC, deleted or added. This method compares the properties on the local path to the base and identifies which.
38c4ac883ea2d9ce2319f80aa16b53011c791d35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/38c4ac883ea2d9ce2319f80aa16b53011c791d35/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2270, 6395, 12, 2890, 16, 589, 4672, 3536, 8315, 1272, 603, 279, 589, 2026, 506, 4358, 316, 326, 678, 39, 16, 4282, 578, 3096, 18, 1220, 707, 20670, 326, 1790, 603, 326, 1191, 589, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2270, 6395, 12, 2890, 16, 589, 4672, 3536, 8315, 1272, 603, 279, 589, 2026, 506, 4358, 316, 326, 678, 39, 16, 4282, 578, 3096, 18, 1220, 707, 20670, 326, 1790, 603, 326, 1191, 589, 358...
print '\t\t%s,' % (key) print '\t]'
print >> stream, '\t\t%s,' % (key) print >> stream, '\t]'
def WriteClass(self, generator): generator.checkWriteCoClassBaseClass() doc = self.doc if generator.generate_type == GEN_DEMAND_CHILD: # Some special imports we must setup. referenced_items = [] for ref, flag in self.sources: referenced_items.append(ref) for ref, flag in self.interfaces: referenced_items.append(ref) pr...
d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 4249, 797, 2171, 797, 1435, 997, 273, 365, 18, 2434, 309, 4456, 18, 7163, 67, 723, 422, 611, 1157, 67, 1639, 11712, 67, 27043...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 4249, 797, 2171, 797, 1435, 997, 273, 365, 18, 2434, 309, 4456, 18, 7163, 67, 723, 422, 611, 1157, 67, 1639, 11712, 67, 27043...
(self.ac_out_buffer is '') and
(self.ac_out_buffer == '') and
def writable (self): "predicate for inclusion in the writable for select()" # return len(self.ac_out_buffer) or len(self.producer_fifo) or (not self.connected) # this is about twice as fast, though not as clear. return not ( (self.ac_out_buffer is '') and self.producer_fifo.is_empty() and self.connected )
b27ab3d3eafb61e0c7be8190d82b08fb72a1d3af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b27ab3d3eafb61e0c7be8190d82b08fb72a1d3af/asynchat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9691, 261, 2890, 4672, 315, 18344, 364, 26485, 316, 326, 9691, 364, 2027, 10031, 468, 327, 562, 12, 2890, 18, 1077, 67, 659, 67, 4106, 13, 578, 562, 12, 2890, 18, 11776, 2750, 67, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9691, 261, 2890, 4672, 315, 18344, 364, 26485, 316, 326, 9691, 364, 2027, 10031, 468, 327, 562, 12, 2890, 18, 1077, 67, 659, 67, 4106, 13, 578, 562, 12, 2890, 18, 11776, 2750, 67, 74, ...
total_game.dump(" ")
total_game.dump(header)
def dump(self, header): game_count = float(self.count)
819462ea8492fd326468c1b39f1a524098f9c553 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/819462ea8492fd326468c1b39f1a524098f9c553/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 1446, 4672, 7920, 67, 1883, 273, 1431, 12, 2890, 18, 1883, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 1446, 4672, 7920, 67, 1883, 273, 1431, 12, 2890, 18, 1883, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if self.images.nimages > 1 and not button.get_active(): filename += '@' + entry.get_text() elif button.get_active(): filename += '@%d' % self.frame
if self.images.nimages > 1: if button.get_active(): filename += '@%d' % self.frame else: filename += '@' + entry.get_text()
def save(self, action): chooser = gtk.FileChooserDialog( _('Save ...'), None, gtk.FILE_CHOOSER_ACTION_SAVE, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_SAVE, gtk.RESPONSE_OK))
86c1f5ad924bc3983b91dde5cea65a91cacbb8f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/86c1f5ad924bc3983b91dde5cea65a91cacbb8f0/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 1301, 4672, 5011, 13164, 273, 22718, 18, 812, 17324, 6353, 12, 389, 2668, 4755, 1372, 19899, 599, 16, 22718, 18, 3776, 67, 22213, 51, 2123, 67, 12249, 67, 25242, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 1301, 4672, 5011, 13164, 273, 22718, 18, 812, 17324, 6353, 12, 389, 2668, 4755, 1372, 19899, 599, 16, 22718, 18, 3776, 67, 22213, 51, 2123, 67, 12249, 67, 25242, 16, ...
return val, _quote( dumps(val) )
return val, _quote( dumps(val).decode('latin-1') )
def value_encode(self, val): if type(val) == type(""): return val, _quote(val) else: return val, _quote( dumps(val) )
1a1c2ba2c90cd7efc93d61a9c6617f3aa3090256 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/1a1c2ba2c90cd7efc93d61a9c6617f3aa3090256/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 3015, 12, 2890, 16, 1244, 4672, 309, 618, 12, 1125, 13, 422, 618, 2932, 6, 4672, 327, 1244, 16, 389, 6889, 12, 1125, 13, 469, 30, 327, 1244, 16, 389, 6889, 12, 6711, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 3015, 12, 2890, 16, 1244, 4672, 309, 618, 12, 1125, 13, 422, 618, 2932, 6, 4672, 327, 1244, 16, 389, 6889, 12, 1125, 13, 469, 30, 327, 1244, 16, 389, 6889, 12, 6711, 12, 1...
msg = 'Unknow Errors ... '
msg = 'Unknown Errors ... '
def request(uuid, method, url, params={}, headers={},files=[],additions=''): scripts = '' try: if (method == 'POST'): result = _post(url, params, headers, files, additions) else: result = _get(url, params, headers) pass except urllib2.HTTPError, e: msg = 'Unknow Errors ... ' if http_code_msg_table.has_key(e.getcode()):...
27e5b2974d95db0afe34b35f0e2d7fb12f34ec94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12179/27e5b2974d95db0afe34b35f0e2d7fb12f34ec94/agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 7080, 16, 707, 16, 880, 16, 859, 28793, 1607, 28793, 2354, 22850, 6487, 1289, 5029, 2218, 11, 4672, 8873, 273, 875, 775, 30, 309, 261, 2039, 422, 296, 3798, 11, 4672, 563, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 7080, 16, 707, 16, 880, 16, 859, 28793, 1607, 28793, 2354, 22850, 6487, 1289, 5029, 2218, 11, 4672, 8873, 273, 875, 775, 30, 309, 261, 2039, 422, 296, 3798, 11, 4672, 563, 273...
global logger, max_bytes, xmlparser, dbobj, xmlparser, lwtparser, rls
global logger, max_bytes, xmlparser, lwtparser, dbobj, rls global dmt_proc_dict, dmt_seg_def_dict
def shutdown(): global logger, max_bytes, xmlparser, dbobj, xmlparser, lwtparser, rls logger.info("Shutting down server module %s" % __name__ ) if rls: del rls del lwtparser del xmlparser del dbobj del dmt_proc_dict del dmt_seg_def_dict
edd20d77e4dbeaae63697e28dd299839bae3e2bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/edd20d77e4dbeaae63697e28dd299839bae3e2bd/LDBDServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5731, 13332, 2552, 1194, 16, 943, 67, 3890, 16, 2025, 4288, 16, 328, 6046, 4288, 16, 302, 1075, 441, 16, 436, 3251, 2552, 302, 1010, 67, 9381, 67, 1576, 16, 302, 1010, 67, 5680, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5731, 13332, 2552, 1194, 16, 943, 67, 3890, 16, 2025, 4288, 16, 328, 6046, 4288, 16, 302, 1075, 441, 16, 436, 3251, 2552, 302, 1010, 67, 9381, 67, 1576, 16, 302, 1010, 67, 5680, 67, ...
item = self.songs[self.songs_filter_rownums[path[0]]].file
item = self.songs[self.filter_row_mapping[path[0]]].file
def edit_tags(self, widget, mpdpath=None): if not HAVE_TAGPY: error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _("Taglib and/or tagpy not found, tag editing support disabled.")) error_dialog.set_title(_("Edit Tags")) error_dialog.set_role('editTagsError') error_dia...
0edd2102de649a7465f806846ed54ad3a3a68a86 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/0edd2102de649a7465f806846ed54ad3a3a68a86/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 4156, 12, 2890, 16, 3604, 16, 6749, 72, 803, 33, 7036, 4672, 309, 486, 21926, 3412, 67, 7927, 16235, 30, 555, 67, 12730, 273, 22718, 18, 1079, 6353, 12, 2890, 18, 5668, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 4156, 12, 2890, 16, 3604, 16, 6749, 72, 803, 33, 7036, 4672, 309, 486, 21926, 3412, 67, 7927, 16235, 30, 555, 67, 12730, 273, 22718, 18, 1079, 6353, 12, 2890, 18, 5668, 16, ...
"Parsing operator (%d dicts in current"
"Parsing operator (%d dicts in current "
def parse(self, file, list, restricted=False, prev_indent=-1): """ Read and parse lines from file until a line with an indent level lower than or equal to prev_indent is encountered.
bc08a57e881bd13f6d8149adf4df3a00e4e98a33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/bc08a57e881bd13f6d8149adf4df3a00e4e98a33/kvm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 585, 16, 666, 16, 15693, 33, 8381, 16, 2807, 67, 9355, 29711, 21, 4672, 3536, 2720, 471, 1109, 2362, 628, 585, 3180, 279, 980, 598, 392, 3504, 1801, 2612, 2353, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 585, 16, 666, 16, 15693, 33, 8381, 16, 2807, 67, 9355, 29711, 21, 4672, 3536, 2720, 471, 1109, 2362, 628, 585, 3180, 279, 980, 598, 392, 3504, 1801, 2612, 2353, 578...
main(options, args)
sys.exit(main(options, args))
def parse_args(args=None): """Provides a default set of command line args. Returns a tuple of options, args from optparse""" # FIXME: All of these options should be stored closer to the code which actually uses them. # FIXME: configuration_options should move to WebKitPort and be shared across all scripts. configurat...
9ba715cbbe2db6c1784f8f23f93d63ed616e9784 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/9ba715cbbe2db6c1784f8f23f93d63ed616e9784/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1968, 12, 1968, 33, 7036, 4672, 3536, 17727, 279, 805, 444, 434, 1296, 980, 833, 18, 225, 2860, 279, 3193, 434, 702, 16, 833, 628, 2153, 2670, 8395, 225, 468, 9852, 30, 4826,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1968, 12, 1968, 33, 7036, 4672, 3536, 17727, 279, 805, 444, 434, 1296, 980, 833, 18, 225, 2860, 279, 3193, 434, 702, 16, 833, 628, 2153, 2670, 8395, 225, 468, 9852, 30, 4826,...
if len(md5s[f]) == 1: continue
duplicates=md5s[f] if len(duplicates) == 1: continue
def check(self, pkg):
0342a22c778580f12cff4b2d58c4ef7213f13755 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10341/0342a22c778580f12cff4b2d58c4ef7213f13755/DuplicatesCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 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...
fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),viewFile)
fn = os.path.join(os.path.abspath(os.path.dirname(__file__)), viewFile)
def ViewFile(self, viewTitle, viewFile, encoding=None): fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),viewFile) if encoding: import codecs try: textFile = codecs.open(fn, 'r') except IOError: tkMessageBox.showerror(title='File Load Error', message='Unable to load file '+ `fileName`+' .') return else: data ...
73453757718f13af156356dabdd0dea7ccc396ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/73453757718f13af156356dabdd0dea7ccc396ba/aboutDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4441, 812, 12, 2890, 16, 1476, 4247, 16, 1476, 812, 16, 2688, 33, 7036, 4672, 2295, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4441, 812, 12, 2890, 16, 1476, 4247, 16, 1476, 812, 16, 2688, 33, 7036, 4672, 2295, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 12, ...
match_list = filter(lambda s: re.search(string, s), open(filename).read().splitlines())
match_list = [(lineno, line) for lineno, line in enumerate(open(filename).read().splitlines(True)) if re.search(string, line)]
sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False)
da758fd6e2806c153c3c54e8f34d6748d4878772 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/da758fd6e2806c153c3c54e8f34d6748d4878772/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 296, 2892, 291, 1383, 11, 316, 389, 3072, 67, 4816, 67, 280, 67, 2434, 2668, 4816, 2187, 10731, 380, 536, 17014, 2187, 16592, 33, 8381, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 296, 2892, 291, 1383, 11, 316, 389, 3072, 67, 4816, 67, 280, 67, 2434, 2668, 4816, 2187, 10731, 380, 536, 17014, 2187, 16592, 33, 8381, 13, 2, -100, -100, -100, -100, -100, -10...
res.update({'subject': str(context.get('subject', case.name) or '')})
res.update({'subject': ustr(context.get('subject', case.name) or '')})
def default_get(self, cr, uid, fields, context=None): """ This function gets default values """ if not context: context = {}
3e195a7ceebfff3a4c72b23f842f60522549e126 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3e195a7ceebfff3a4c72b23f842f60522549e126/crm_send_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 3536, 309, 486, 819, 30, 819, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 3536, 309, 486, 819, 30, 819, 273, 2618, 2, -100, -100, -100, -100, -1...
''' Render this item, which is a query, as a search form. '''
""" Render this item, which is a query, as a search form. """
def renderQueryForm(self): ''' Render this item, which is a query, as a search form. ''' # create a new request and override the specified args req = HTMLRequest(self._client) req.classname = self._klass.get(self._nodeid, 'klass') name = self._klass.get(self._nodeid, 'name') req.updateFromURL(self._klass.get(self._node...
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 1138, 1204, 12, 2890, 4672, 3536, 6987, 333, 761, 16, 1492, 353, 279, 843, 16, 487, 279, 1623, 646, 18, 3536, 468, 752, 279, 394, 590, 471, 3849, 326, 1269, 833, 1111, 273, 3982,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 1138, 1204, 12, 2890, 4672, 3536, 6987, 333, 761, 16, 1492, 353, 279, 843, 16, 487, 279, 1623, 646, 18, 3536, 468, 752, 279, 394, 590, 471, 3849, 326, 1269, 833, 1111, 273, 3982,...
msg = self.errors[number] if args != None: msg = msg % args except KeyError: msg = self.errors[4002] % number print msg
dtd = etree.DTD(open(self.dtd, 'r')) except IOError: warnings.warn('DTD file %s not found.' % (self.dtd), UserWarning) return root = etree.XML(dom.toxml()) if not dtd.validate(root): self.handle_dtd_errors(dtd) def handle_dtd_errors(self, dtd): for err in dtd.error_log: err_str = 'ERROR: %s\n' % (str(err)...
def report_error(self, number, args=None): self.errors = xmlproc.errors.english try: msg = self.errors[number] if args != None: msg = msg % args except KeyError: msg = self.errors[4002] % number # Unknown err msg :-) print msg sys.exit(-1)
0358e60e5eeb0513fd8b2ff43913f28c50a09327 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/0358e60e5eeb0513fd8b2ff43913f28c50a09327/xenapi_create.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 1636, 12, 2890, 16, 1300, 16, 833, 33, 7036, 4672, 365, 18, 4324, 273, 2025, 9381, 18, 4324, 18, 275, 13740, 775, 30, 1234, 273, 365, 18, 4324, 63, 2696, 65, 309, 833, 480,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 67, 1636, 12, 2890, 16, 1300, 16, 833, 33, 7036, 4672, 365, 18, 4324, 273, 2025, 9381, 18, 4324, 18, 275, 13740, 775, 30, 1234, 273, 365, 18, 4324, 63, 2696, 65, 309, 833, 480,...
data = pyqtProperty(Preprocessor_continuize,
data = _pyqtProperty(Preprocessor_continuize,
def setContinuizer(self, continuizer): if isinstance(continuizer, Preprocessor_removeDiscrete): self.contInd = 3 #Ignore all discrete elif isinstance(continuizer,Preprocessor_continuize): self.contInd = self.TREATMENT_TO_IND.get(continuizer.multinomialTreatment, 3)
e07f8cc72f7b3b07eca503cffe3f1edeef0a5948 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/e07f8cc72f7b3b07eca503cffe3f1edeef0a5948/OWPreprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 660, 6860, 1824, 12, 2890, 16, 9985, 1824, 4672, 309, 1549, 12, 1213, 6860, 1824, 16, 2962, 8700, 67, 4479, 1669, 6883, 4672, 365, 18, 1213, 3866, 273, 890, 468, 3777, 777, 20035, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 660, 6860, 1824, 12, 2890, 16, 9985, 1824, 4672, 309, 1549, 12, 1213, 6860, 1824, 16, 2962, 8700, 67, 4479, 1669, 6883, 4672, 365, 18, 1213, 3866, 273, 890, 468, 3777, 777, 20035, ...
From %(email)s %(datestr)s
From %(email)s %(fromdate)s
def url_quote(s): return urllib.quote(s)
487ff8820286c48a67835b22e19b74d7a5eb0ec2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/487ff8820286c48a67835b22e19b74d7a5eb0ec2/HyperArch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 67, 6889, 12, 87, 4672, 327, 11527, 18, 6889, 12, 87, 13, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 67, 6889, 12, 87, 4672, 327, 11527, 18, 6889, 12, 87, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
product_id = data['id'] offer_id=[] pool = pooler.get_pool(cr.dbname) camp_pro_item_ids = pool.get('dm.campaign.proposition.item').search(cr, uid, [('product_id', '=', product_id)]) for item_id in camp_pro_item_ids: item = pool.get('dm.campaign.proposition.item').browse(cr, uid, item_id) if item.offer_step_id and item...
cr.execute("""select distinct offer_id from dm_offer_step where id in (select distinct offer_step_id from dm_campaign_proposition_item where product_id =%s and offer_step_id is not null)""", (str(data['id']),) )
def product_offers(self, cr, uid, data, context): product_id = data['id'] offer_id=[] pool = pooler.get_pool(cr.dbname) camp_pro_item_ids = pool.get('dm.campaign.proposition.item').search(cr, uid, [('product_id', '=', product_id)]) for item_id in camp_pro_item_ids: item = pool.get('dm.campaign.proposition.item').brows...
57194dd1a5759c2e34a457b47329b0d9031d3ef3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/57194dd1a5759c2e34a457b47329b0d9031d3ef3/dm_all_offer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 3674, 414, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 4422, 18, 8837, 2932, 3660, 4025, 10217, 10067, 67, 350, 628, 9113, 67, 23322, 67, 4119, 1625, 612, 316, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 3674, 414, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 4422, 18, 8837, 2932, 3660, 4025, 10217, 10067, 67, 350, 628, 9113, 67, 23322, 67, 4119, 1625, 612, 316, 261,...
self.failUnlessEqual(list(self.g.heuristic_walk(self.A, Heuristic())), [self.B, self.C, self.A, self.B, self.C]) self.failUnlessEqual(list(self.g.heuristic_walk("A", Heuristic())), [self.B, self.C, self.A, self.B, self.C]) self.failUnlessEqual(list(self.g.heuristic_walk(self.A, Heuristic(), reverse=True)), [self.B, sel...
correct_cycle = [self.B, self.C, self.A, self.B, self.C] reverse_cycle = copy.copy(correct_cycle) reverse_cycle.reverse() self.failUnlessEqual(list(self.g.heuristic_walk(self.A, Heuristic())), correct_cycle) self.failUnlessEqual(list(self.g.heuristic_walk("A", Heuristic())), correct_cycle) self.failUnlessEqual(list(sel...
def __call__(self, candidates): if self.iterations < self.iter_max: if candidates: self.iterations += 1 return candidates.pop() return None
01788495565a6fee9033a0d5503bf09f01ab35a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3401/01788495565a6fee9033a0d5503bf09f01ab35a7/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 7965, 4672, 309, 365, 18, 19330, 411, 365, 18, 2165, 67, 1896, 30, 309, 7965, 30, 365, 18, 19330, 1011, 404, 327, 7965, 18, 5120, 1435, 327, 599, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 7965, 4672, 309, 365, 18, 19330, 411, 365, 18, 2165, 67, 1896, 30, 309, 7965, 30, 365, 18, 19330, 1011, 404, 327, 7965, 18, 5120, 1435, 327, 599, 2, -1...
for key in 'hostname', 'boot_state', 'model', 'node_id': assert unicmp(node[key], locals()[key])
for key in node_fields: assert unicmp(node[key], node_fields[key])
def unicmp(a, b, encoding = "utf-8"): """ When connected directly to the DB, values are returned as raw 8-bit strings that may need to be decoded (as UTF-8 by default) in order to compare them against expected Python Unicode strings. """ is8bit = re.compile("[\x80-\xff]").search if isinstance(a, str) and is8bit(a): a ...
f51dbe12c30f8473b083ea86b3dade41e56f4615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/f51dbe12c30f8473b083ea86b3dade41e56f4615/Test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 16...
return "test_failed" else: doCopyLog("Tests successful", workingDir, logPath, log)
failed = True return failed def doTests(hardhatScript, mode, workingDir, outputDir, buildVersion, log): print "Testing " + mode log.write(separator) log.write("Testing " + mode + " ...\n") cmd = [pythonProgram, './tools/rt.py', '-Ti', '-m %s' % mode] tests = [ 'u', 'r', 'f' ] if perfMode: tests += [ 'p' ] for t...
def doTests(hardhatScript, mode, workingDir, outputDir, buildVersion, log): testDir = os.path.join(workingDir, "chandler") logfile = os.path.join(testDir, 'test_profile', 'chandler.log') if os.path.isfile(logfile): os.remove(logfile) os.chdir(testDir) try: print "Testing " + mode log.write(separator) log.write("Test...
72bdd10ca28042e5269156e012f2aa6053c5c9d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/72bdd10ca28042e5269156e012f2aa6053c5c9d0/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 14650, 12, 20379, 11304, 3651, 16, 1965, 16, 5960, 1621, 16, 21412, 16, 1361, 1444, 16, 613, 4672, 1842, 1621, 273, 1140, 18, 803, 18, 5701, 12, 20478, 1621, 16, 315, 343, 464, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14650, 12, 20379, 11304, 3651, 16, 1965, 16, 5960, 1621, 16, 21412, 16, 1361, 1444, 16, 613, 4672, 1842, 1621, 273, 1140, 18, 803, 18, 5701, 12, 20478, 1621, 16, 315, 343, 464, 74...
with support.check_warnings():
with warnings.catch_warnings(): warnings.simplefilter('ignore', BytesWarning)
def test_unquoting(self): # Make sure unquoting of all ASCII values works escape_list = [] for num in range(128): given = hexescape(chr(num)) expect = chr(num) result = urllib.parse.unquote(given) self.assertEqual(expect, result, "using unquote(): %r != %r" % (expect, result)) result = urllib.parse.unquote_plus(given) ...
181034d7a35a5501def69c51508040cba3708731 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/181034d7a35a5501def69c51508040cba3708731/test_urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 9270, 310, 12, 2890, 4672, 468, 4344, 3071, 640, 9270, 310, 434, 777, 11768, 924, 6330, 4114, 67, 1098, 273, 5378, 364, 818, 316, 1048, 12, 10392, 4672, 864, 273, 3827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 9270, 310, 12, 2890, 4672, 468, 4344, 3071, 640, 9270, 310, 434, 777, 11768, 924, 6330, 4114, 67, 1098, 273, 5378, 364, 818, 316, 1048, 12, 10392, 4672, 864, 273, 3827, ...
def query( self, taskId, jobRange='all', queryType='node', runningAttrs=None ):
def query( self, taskId, jobRange='all', queryType='node', runningAttrs=None, strict=True ):
def query( self, taskId, jobRange='all', queryType='node', runningAttrs=None ): """ query status and eventually other scheduler related information - taskId can be both a Task object or the task id - jobRange can be of the form: 'a,b:c,d,e' ['a',b','c'] 'all' - query type can be 'parent' if the status check is meant t...
94544eb95042e7529e8a7ddf4b42822709aeda0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/94544eb95042e7529e8a7ddf4b42822709aeda0e/BossLiteAPISched.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 365, 16, 15321, 16, 1719, 2655, 2218, 454, 2187, 843, 559, 2218, 2159, 2187, 3549, 8262, 33, 7036, 16, 5490, 33, 5510, 262, 30, 3536, 843, 1267, 471, 18011, 1308, 8129, 3746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 365, 16, 15321, 16, 1719, 2655, 2218, 454, 2187, 843, 559, 2218, 2159, 2187, 3549, 8262, 33, 7036, 16, 5490, 33, 5510, 262, 30, 3536, 843, 1267, 471, 18011, 1308, 8129, 3746, ...
ptype = p.type(include_modifiers = False, include_namespace = True)
ptype = p.type(include_modifiers = False, include_namespace = True, remove_templates = True) qtype = p.type(include_modifiers = False, include_namespace = True)
def builder_function(self, all_classes, dependencies, modifiability_map): text = r'''RETURN_TYPE operator()(<CONST>CLASS_NAME& x)
0dea07dc66f23d0208483a2e70df382c197c7d9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1522/0dea07dc66f23d0208483a2e70df382c197c7d9c/mcrl2_classes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2089, 67, 915, 12, 2890, 16, 777, 67, 4701, 16, 5030, 16, 681, 704, 2967, 67, 1458, 4672, 977, 273, 436, 26418, 14033, 67, 2399, 3726, 1435, 12, 32, 26411, 34, 5237, 67, 1985, 10, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2089, 67, 915, 12, 2890, 16, 777, 67, 4701, 16, 5030, 16, 681, 704, 2967, 67, 1458, 4672, 977, 273, 436, 26418, 14033, 67, 2399, 3726, 1435, 12, 32, 26411, 34, 5237, 67, 1985, 10, 61...
'roundup_user_2=deleted; Max-Age=0; expires=%s; Path=%s;'%(now, self.cookie_path)
'%s=deleted; Max-Age=0; expires=%s; Path=%s;'%(self.cookie_name, now, self.cookie_path)
def logout_action(self): ''' Make us really anonymous - nuke the cookie too ''' # log us out self.make_user_anonymous()
4d4a6e6ca055528d188bbc7f645ade423a905185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4d4a6e6ca055528d188bbc7f645ade423a905185/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 67, 1128, 12, 2890, 4672, 9163, 4344, 584, 8654, 13236, 300, 9244, 4491, 326, 3878, 4885, 9163, 468, 613, 584, 596, 365, 18, 6540, 67, 1355, 67, 19070, 1435, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12735, 67, 1128, 12, 2890, 4672, 9163, 4344, 584, 8654, 13236, 300, 9244, 4491, 326, 3878, 4885, 9163, 468, 613, 584, 596, 365, 18, 6540, 67, 1355, 67, 19070, 1435, 2, -100, -100, -100, ...
for node in p_nodes: node.add_parent(node)
for node in p_nodes: self.add_parent(node)
def __init__(self,dag,job,cp, opts, coinc, sngl_node_dict, p_nodes=[]): self.ifo_list = ["H1","L1","V1"] #self.already_added_ifo_list = []
cbd6ac162cb6bf2eb4ad5ce9c3d03753b881f67f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/cbd6ac162cb6bf2eb4ad5ce9c3d03753b881f67f/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 30204, 16, 4688, 16, 4057, 16, 1500, 16, 13170, 71, 16, 272, 3368, 80, 67, 2159, 67, 1576, 16, 293, 67, 4690, 33, 8526, 4672, 365, 18, 20299, 67, 1098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 30204, 16, 4688, 16, 4057, 16, 1500, 16, 13170, 71, 16, 272, 3368, 80, 67, 2159, 67, 1576, 16, 293, 67, 4690, 33, 8526, 4672, 365, 18, 20299, 67, 1098,...
log.warn("Session %s is not longer on relay %s, statistics are probably lost" % (session_id, relay_ip))
log.warn("Session %s is no longer on relay %s, statistics are probably lost" % (session_id, relay_ip))
def _cb_purge_sessions(self, result, relay_ip): relay_sessions = cjson.decode(result) relay_call_ids = [session["call_id"] for session in relay_sessions] for session_id, session in self.sessions.items(): if session.relay_ip == relay_ip and session_id not in relay_call_ids: log.warn("Session %s is not longer on relay %s...
4b1120ce3f4c4f1b066361310a6e9895a3ddc3f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3445/4b1120ce3f4c4f1b066361310a6e9895a3ddc3f3/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7358, 67, 26422, 67, 16794, 12, 2890, 16, 563, 16, 18874, 67, 625, 4672, 18874, 67, 16794, 273, 276, 1977, 18, 3922, 12, 2088, 13, 18874, 67, 1991, 67, 2232, 273, 306, 3184, 9614,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7358, 67, 26422, 67, 16794, 12, 2890, 16, 563, 16, 18874, 67, 625, 4672, 18874, 67, 16794, 273, 276, 1977, 18, 3922, 12, 2088, 13, 18874, 67, 1991, 67, 2232, 273, 306, 3184, 9614,...
kwargs['b'] = br
kwargs['b'] = br.name
def add(cls, repo, name, path, url=None, branch=None, no_checkout=False): """Add a new submodule to the given repository. This will alter the index as well as the .gitmodules file, but will not create a new commit. If the submodule already exists, no matter if the configuration differs from the one provided, the existi...
96d003cb2baabd73f2aa0fd9486c13c61415106e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13767/96d003cb2baabd73f2aa0fd9486c13c61415106e/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 6429, 16, 3538, 16, 508, 16, 589, 16, 880, 33, 7036, 16, 3803, 33, 7036, 16, 1158, 67, 17300, 33, 8381, 4672, 3536, 986, 279, 394, 27314, 358, 326, 864, 3352, 18, 1220, 903,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 6429, 16, 3538, 16, 508, 16, 589, 16, 880, 33, 7036, 16, 3803, 33, 7036, 16, 1158, 67, 17300, 33, 8381, 4672, 3536, 986, 279, 394, 27314, 358, 326, 864, 3352, 18, 1220, 903,...
def storbinary(self, cmd, fp, blocksize):
def storbinary(self, cmd, fp, blocksize=8192):
def storbinary(self, cmd, fp, blocksize): '''Store a file in binary mode.''' self.voidcmd('TYPE I') conn = self.transfercmd(cmd) while 1: buf = fp.read(blocksize) if not buf: break conn.send(buf) conn.close() return self.voidresp()
ec97fe3bda95a19d6b5087f246477173da4b2d37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ec97fe3bda95a19d6b5087f246477173da4b2d37/ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19705, 8578, 12, 2890, 16, 1797, 16, 4253, 16, 18440, 33, 28, 15561, 4672, 9163, 2257, 279, 585, 316, 3112, 1965, 1093, 6309, 365, 18, 6459, 4172, 2668, 2399, 467, 6134, 1487, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19705, 8578, 12, 2890, 16, 1797, 16, 4253, 16, 18440, 33, 28, 15561, 4672, 9163, 2257, 279, 585, 316, 3112, 1965, 1093, 6309, 365, 18, 6459, 4172, 2668, 2399, 467, 6134, 1487, 273, 365, ...
return '%s %d: at %s noNextTo ' % (self.element, id(self), self.sizeStr(False))
return '%s %d: at %s %d noNextTo ' % (self.element, id(self), self.sizeStr(False), self.level)
def __str__(self): """printable string with tile data""" if self.nextTo is None: return '%s %d: at %s noNextTo ' % (self.element, id(self), self.sizeStr(False)) else: return '%s %d: at %s x=%d y=%d z=%d %s %d (%s) ' % \ (self.element, id(self), self.sizeStr(False), self.xoffset, self.yoffset, self.level, self.nextTo.e...
7b224c7daa06c9fecc655bccd2dc116a8deab304 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/7b224c7daa06c9fecc655bccd2dc116a8deab304/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 1188, 429, 533, 598, 4769, 501, 8395, 309, 365, 18, 4285, 774, 353, 599, 30, 327, 1995, 87, 738, 72, 30, 622, 738, 87, 738, 72, 1158, 2134, 774,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 1188, 429, 533, 598, 4769, 501, 8395, 309, 365, 18, 4285, 774, 353, 599, 30, 327, 1995, 87, 738, 72, 30, 622, 738, 87, 738, 72, 1158, 2134, 774,...
file.Write(" EXPECT_EQ(%s::kCmdId, cmd.header.command);\n" % func.name)
file.Write(" EXPECT_EQ(%s::kCmdId ^ cmd.header.command);\n" % func.name)
def WriteImmediateFormatTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("TEST(GLES2FormatTest, %s) {\n" % func.name) file.Write(" int8 buf[256] = { 0, };\n") file.Write(" %s& cmd = *static_cast<%s*>(static_cast<void*>(&buf));\n" % (func.name, func.name)) file.Write(" static const char* const te...
d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1630, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 16961, 12, 43, 11386, 22, 1630, 4709, 16, 738, 87, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 22651, 1630, 4709, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 16961, 12, 43, 11386, 22, 1630, 4709, 16, 738, 87, 13, ...
FlagsField("flags", 49, 6, "AHLKMR"),
FlagsField("flags", "KHA", 6, "RMKLHA"),
def i2repr(self, pkt, x): return "%d sec" % (4*x)
fabfbc997ca82b7cce3df31169b7872ed4490cee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/fabfbc997ca82b7cce3df31169b7872ed4490cee/inet6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 22, 12715, 12, 2890, 16, 11536, 16, 619, 4672, 327, 2213, 72, 1428, 6, 738, 261, 24, 14, 92, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 22, 12715, 12, 2890, 16, 11536, 16, 619, 4672, 327, 2213, 72, 1428, 6, 738, 261, 24, 14, 92, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
True returns dict keyed by node labels.
True returns dict keyed by vertex labels.
def cores(self, with_labels=False): """ Returns the core number for each vertex in an ordered list. 'K-cores in graph theory were introduced by Seidman in 1983 and by Bollobas in 1984 as a method of (destructively) simplifying graph topology to aid in analysis and visualization. They have been more recently defined as...
e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15355, 12, 2890, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 2922, 1300, 364, 1517, 5253, 316, 392, 5901, 666, 18, 225, 296, 47, 17, 12906, 316, 2667, 326, 630, 4591, 26339, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15355, 12, 2890, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 2922, 1300, 364, 1517, 5253, 316, 392, 5901, 666, 18, 225, 296, 47, 17, 12906, 316, 2667, 326, 630, 4591, 26339, 63...
sfx = error_url and ", details at %s." % error_url or "." result.append("Problem with page retrieval" + sfx)
result.append("Problem with page retrieval.") if error_url: result.append("Details at %s." % error_url)
def validateKeywords(self): """ see interface """ text = self.request.get('text') ts = getToolByName(self.context, 'translation_service') transforms = getUtility(IPortalTransformsTool) portal = getToolByName(self.context, 'portal_url').getPortalObject() isExternal = queryAdapter(portal, ISEOConfigletSchema).external_ke...
49f90d8091b9cba0fbdc4e129a33bc75e769021a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10421/49f90d8091b9cba0fbdc4e129a33bc75e769021a/keywords.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 14149, 12, 2890, 4672, 3536, 2621, 1560, 3536, 977, 273, 365, 18, 2293, 18, 588, 2668, 955, 6134, 3742, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 10173, 67, 3278, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 14149, 12, 2890, 4672, 3536, 2621, 1560, 3536, 977, 273, 365, 18, 2293, 18, 588, 2668, 955, 6134, 3742, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 10173, 67, 3278, 6134, ...
result = self.initExecution()
result = self.initializeOptimizer()
def execute(self): """ The main agent execution method """
9099e5e6e72f36782deab8f2194b57177fde46da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/9099e5e6e72f36782deab8f2194b57177fde46da/OptimizerModule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 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, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
compile_switch = '/compile_only '
compile_switch = '/compile_only'
def get_flags_linker_so(self): if sys.platform[:5]=='linux': return ['-shared'] return ['-shared','-Wl,-expect_unresolved,*']
112824ccfdfab97d98f7939b2d31119d6acb4240 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/112824ccfdfab97d98f7939b2d31119d6acb4240/compaqfcompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7133, 67, 1232, 264, 67, 2048, 12, 2890, 4672, 309, 2589, 18, 9898, 10531, 25, 65, 18920, 20132, 4278, 327, 10228, 17, 11574, 3546, 327, 10228, 17, 11574, 17023, 17, 59, 80, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7133, 67, 1232, 264, 67, 2048, 12, 2890, 4672, 309, 2589, 18, 9898, 10531, 25, 65, 18920, 20132, 4278, 327, 10228, 17, 11574, 3546, 327, 10228, 17, 11574, 17023, 17, 59, 80, 1...
mtype = mimetypes.guess_type(file)[0]
mtype = mimetypes.guess_type(filename)[0]
def open_local_file(self, req): import email.utils import mimetypes host = req.get_host() file = req.get_selector() localfile = url2pathname(file) try: stats = os.stat(localfile) size = stats.st_size modified = email.utils.formatdate(stats.st_mtime, usegmt=True) mtype = mimetypes.guess_type(file)[0] headers = mimetools...
e839aba012a41f8a8de4f50f5b7ee8e99f3ef459 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e839aba012a41f8a8de4f50f5b7ee8e99f3ef459/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 1111, 4672, 1930, 2699, 18, 5471, 1930, 20369, 15180, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 585, 273, 1111, 18, 588, 67, 9663, 1435, 1191, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 1111, 4672, 1930, 2699, 18, 5471, 1930, 20369, 15180, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 585, 273, 1111, 18, 588, 67, 9663, 1435, 1191, 76...
if pdflatex:
if engine == "pdflatex" or engine == "xelatex":
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't conve...
cb479d7b1046f03bed1e0b94d39ef8da9d356f4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cb479d7b1046f03bed1e0b94d39ef8da9d356f4e/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, ...
del os
fp = None try: fp = open(TESTFN, 'w+') except IOError: TMP_TESTFN = os.path.join('/tmp', TESTFN) try: fp = open(TMP_TESTFN, 'w+') TESTFN = TMP_TESTFN del TMP_TESTFN except IOError: print ('WARNING: tests will fail, unable to write to: %s or %s' % (TESTFN, TMP_TESTFN)) if fp is not None: fp.close() try: os.unlink(TEST...
def fcmp(x, y): # fuzzy comparison function if type(x) == type(0.0) or type(y) == type(0.0): try: x, y = coerce(x, y) fuzz = (abs(x) + abs(y)) * FUZZ if abs(x-y) <= fuzz: return 0 except: pass elif type(x) == type(y) and type(x) in (type(()), type([])): for i in range(min(len(x), len(y))): outcome = fcmp(x[i], y[i]) if...
694380056fd39811c6f792665efb6d779d20e5e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/694380056fd39811c6f792665efb6d779d20e5e2/test_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8036, 1291, 12, 92, 16, 677, 4672, 468, 21315, 5826, 445, 309, 618, 12, 92, 13, 422, 618, 12, 20, 18, 20, 13, 578, 618, 12, 93, 13, 422, 618, 12, 20, 18, 20, 4672, 775, 30, 619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8036, 1291, 12, 92, 16, 677, 4672, 468, 21315, 5826, 445, 309, 618, 12, 92, 13, 422, 618, 12, 20, 18, 20, 13, 578, 618, 12, 93, 13, 422, 618, 12, 20, 18, 20, 4672, 775, 30, 619, ...
"""Create a new user. This should be implemented by subclasses to do the actual adding of a user. The 'password' will be the original input password, unencrypted. The implementation of this method is responsible for performing any needed encryption."""
""" Create a new user. This should be implemented by subclasses to do the actual adding of a user. The 'password' will be the original input password, unencrypted. The implementation of this method is responsible for performing any needed encryption. """ prefix = GRUFFolder.GRUFGroups._group_prefix if name.startswith...
def _doAddUser(self, name, password, roles, domains, groups = (), **kw): """Create a new user. This should be implemented by subclasses to do the actual adding of a user. The 'password' will be the original input password, unencrypted. The implementation of this method is responsible for performing any needed encryptio...
bfb32202a037f56a2eff15e0d6ca120ea872cf22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/bfb32202a037f56a2eff15e0d6ca120ea872cf22/GroupUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 986, 1299, 12, 2890, 16, 508, 16, 2201, 16, 4900, 16, 10128, 16, 3252, 273, 1832, 16, 2826, 9987, 4672, 3536, 1684, 279, 394, 729, 18, 1220, 1410, 506, 8249, 635, 15320, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 986, 1299, 12, 2890, 16, 508, 16, 2201, 16, 4900, 16, 10128, 16, 3252, 273, 1832, 16, 2826, 9987, 4672, 3536, 1684, 279, 394, 729, 18, 1220, 1410, 506, 8249, 635, 15320, 358...
self.dbus_status = 0 print "can't connect to dbus :/"
self.error()
def createView(self): self.guiUpdates = 1 self.stan = "" try: #DBusGMainLoop(set_as_default=True) #bus = dbus.SystemBus() pr_device_obj = self.dbus.get_object( "org.freesmartphone.opreferencesd", "/org/freesmartphone/Preferences" ) self.pr_iface = dbus.Interface(pr_device_obj, "org.freesmartphone.Preferences" ) self.s...
9c3cb95486879f5c9a72c2e03af50842b2b8bdfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11428/9c3cb95486879f5c9a72c2e03af50842b2b8bdfa/shr_profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15193, 12, 2890, 4672, 365, 18, 20292, 5121, 273, 404, 365, 18, 541, 273, 1408, 225, 775, 30, 468, 2290, 407, 43, 6376, 6452, 12, 542, 67, 345, 67, 1886, 33, 5510, 13, 468, 9274, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15193, 12, 2890, 4672, 365, 18, 20292, 5121, 273, 404, 365, 18, 541, 273, 1408, 225, 775, 30, 468, 2290, 407, 43, 6376, 6452, 12, 542, 67, 345, 67, 1886, 33, 5510, 13, 468, 9274, 273...
input_api, output_api, sources))
input_api, output_api, text_files))
def _CommonChecks(input_api, output_api): results = [] # What does this code do? # It loads the default black list (e.g. third_party, experimental, etc) and # add our black list (breakpad, skia and v8 are still not following # google style and are not really living this repository). # See presubmit_support.py InputApi....
379e7dd8c93fc59287a73bf801b134e459c2b10b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/379e7dd8c93fc59287a73bf801b134e459c2b10b/PRESUBMIT.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6517, 4081, 12, 2630, 67, 2425, 16, 876, 67, 2425, 4672, 1686, 273, 5378, 468, 18734, 1552, 333, 981, 741, 35, 468, 2597, 6277, 326, 805, 7721, 666, 261, 73, 18, 75, 18, 12126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6517, 4081, 12, 2630, 67, 2425, 16, 876, 67, 2425, 4672, 1686, 273, 5378, 468, 18734, 1552, 333, 981, 741, 35, 468, 2597, 6277, 326, 805, 7721, 666, 261, 73, 18, 75, 18, 12126, ...
if BZ_VERSION >= 2180: sql = """SELECT DISTINCT c.name AS name, c.initialowner AS owner FROM components AS c, products AS p WHERE c.product_id = p.id AND""" sql += makeWhereClause('p.name', PRODUCTS) else: sql = "SELECT value AS name, initialowner AS owner FROM components"
if BZ_VERSION >= 2180: sql = """SELECT DISTINCT c.name AS name, c.initialowner AS owner FROM components AS c, products AS p WHERE c.product_id = p.id AND""" sql += makeWhereClause('p.name', PRODUCTS) else: sql = "SELECT value AS name, initialowner AS owner FROM components"
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla print "Using Bugzilla v%s schema." % BZ_VERSION if BZ_VERSION == 2110: activityFields['removed'] = "oldvalue" activityFields['added'] = "newvalue" # init Bugzilla environment print "Bug...
96cc24322ea11500094f96e7b8dc5b0c7e85d253 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/96cc24322ea11500094f96e7b8dc5b0c7e85d253/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
if not buffer: time.millisleep(10) else: x = buffer[0] if not x: break del buffer[0] data, t = x vout.writeframe(t, data, None) del data sys.stderr.write('Done writing\n')
x = queue.get() if not x: break data, t = x vout.writeframe(t, data, None) del data sys.stderr.write('Done writing video\n')
def saveframes(vout, buffer): while 1: if not buffer: time.millisleep(10) else: x = buffer[0] if not x: break del buffer[0] data, t = x vout.writeframe(t, data, None) del data sys.stderr.write('Done writing\n') vout.close()
15728b345d96a6162fd564e1c123ee9961ee23dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15728b345d96a6162fd564e1c123ee9961ee23dc/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 10278, 12, 90, 659, 16, 1613, 4672, 1323, 404, 30, 619, 273, 2389, 18, 588, 1435, 309, 486, 619, 30, 898, 501, 16, 268, 273, 619, 331, 659, 18, 2626, 3789, 12, 88, 16, 501, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 10278, 12, 90, 659, 16, 1613, 4672, 1323, 404, 30, 619, 273, 2389, 18, 588, 1435, 309, 486, 619, 30, 898, 501, 16, 268, 273, 619, 331, 659, 18, 2626, 3789, 12, 88, 16, 501, 1...
elif os.name == 'nt': startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW kwargs["startupinfo"] = startupinfo
def _loop(self): executable = self.get_executable() args = self.get_parameters() self._start_logging(executable, args) if os.path.exists(self.output_path): self._log_progress("Removing existing output file (%s)...\n" % self.output_path) os.remove(self.output_path)
a6fa9d3cf65516e1db1ca13e2d651e12a3f75e1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/a6fa9d3cf65516e1db1ca13e2d651e12a3f75e1c/videoconversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6498, 12, 2890, 4672, 9070, 273, 365, 18, 588, 67, 17751, 1435, 833, 273, 365, 18, 588, 67, 3977, 1435, 365, 6315, 1937, 67, 11167, 12, 17751, 16, 833, 13, 225, 309, 1140, 18, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6498, 12, 2890, 4672, 9070, 273, 365, 18, 588, 67, 17751, 1435, 833, 273, 365, 18, 588, 67, 3977, 1435, 365, 6315, 1937, 67, 11167, 12, 17751, 16, 833, 13, 225, 309, 1140, 18, 8...
try: advertise_announce(unique_id, myip, DNS_CACHE_TTL) servicelogger.log("[INFO]: Advertised " + str(unique_id) + " which maps to " + myip) except Exception, error: if 'announce error' in str(error): pass else: raise Exception(error)
advertise_success = False while not advertise_success: try: advertise_announce(unique_id, myip, DNS_CACHE_TTL) servicelogger.log("[INFO]: Advertised " + str(unique_id) + " which maps to " + myip) advertise_success = True except Exception, error: if 'announce error' in str(error): advertise_success = True else: a...
def advertise_to_DNS(unique_id): """ Advertise unique_id to the zenodotus DNS server. We strip away whatever that follows the NAME_SERVER part of the unique_id. For instance, if our unique_id is abc.NAME_SERVER:1234@xyz, then we only advertise abc.NAME_SERVER. """ # IP that maps to the unique_id myip = emulcomm.getmyi...
46b33352c8ecef3325c33399ee7d26024e82cd5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/46b33352c8ecef3325c33399ee7d26024e82cd5d/nmmain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31553, 67, 869, 67, 11602, 12, 6270, 67, 350, 4672, 3536, 4052, 25530, 3089, 67, 350, 358, 326, 22759, 369, 352, 407, 8858, 1438, 18, 1660, 2569, 10804, 15098, 716, 13040, 326, 6048, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31553, 67, 869, 67, 11602, 12, 6270, 67, 350, 4672, 3536, 4052, 25530, 3089, 67, 350, 358, 326, 22759, 369, 352, 407, 8858, 1438, 18, 1660, 2569, 10804, 15098, 716, 13040, 326, 6048, 67,...
version = sys.version[:3] config_dir = os.path.join( sys.exec_prefix, "lib", "python" + version, "config")
def get_makefile_filename(): return os.path.join(sys.exec_prefix, "lib", "python" + sys.version[:3], "config", "Makefile")
def _init_posix(): import os import re import string import sys g = globals() version = sys.version[:3] config_dir = os.path.join( sys.exec_prefix, "lib", "python" + version, "config") # load the installed config.h: define_rx = re.compile("#define ([A-Z][A-Z0-9_]+) (.*)\n") undef_rx = re.compile("/[*] #undef ([A-Z][...
e9545454036a4d4c7d35ea682dff2265ee555272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e9545454036a4d4c7d35ea682dff2265ee555272/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 24463, 13332, 1930, 1140, 1930, 283, 1930, 533, 1930, 2589, 225, 314, 273, 10941, 1435, 225, 1652, 336, 67, 6540, 768, 67, 3459, 13332, 327, 1140, 18, 803, 18, 5701, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 24463, 13332, 1930, 1140, 1930, 283, 1930, 533, 1930, 2589, 225, 314, 273, 10941, 1435, 225, 1652, 336, 67, 6540, 768, 67, 3459, 13332, 327, 1140, 18, 803, 18, 5701, 12, ...
if release_esema: self.esema.release() self.mutex.release() return item
self.not_empty.release()
def get(self, block=True, timeout=None): """Remove and return an item from the queue.
a3002703c147de35193af30e3a73b4e7695ecc17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a3002703c147de35193af30e3a73b4e7695ecc17/Queue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1203, 33, 5510, 16, 2021, 33, 7036, 4672, 3536, 3288, 471, 327, 392, 761, 628, 326, 2389, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1203, 33, 5510, 16, 2021, 33, 7036, 4672, 3536, 3288, 471, 327, 392, 761, 628, 326, 2389, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
type = text.text text = text.find('b').text_content()
type = card.find('td/p').text.replace('\n', '') text = html.tostring(card.xpath("//p[@class='ctext']/b")[0]) text = text.replace('<br>', '$') text = html.fromstring(text).text_content() text = re.sub(r'(\w+\s*)\$+(\s*\w+)', r'\1. \2', text) text = text.replace('$', ' ')
def mtg(inp): ".mtg <name> -- gets information about Magic the Gathering card <name>" url = 'http://magiccards.info/query.php?cardname=' url += urllib2.quote(inp, safe='') h = html.parse(url) name = h.find('/body/table/tr/td/table/tr/td/h1') if name is None: return "no cards found" card = name.getparent() text = card.f...
309bf87202fdaca7c9f661715b29ebd2803bff01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9775/309bf87202fdaca7c9f661715b29ebd2803bff01/mtg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5874, 75, 12, 31647, 4672, 3552, 1010, 75, 411, 529, 34, 1493, 5571, 1779, 2973, 28496, 326, 25868, 310, 5270, 411, 529, 2984, 880, 273, 296, 2505, 2207, 11179, 3327, 87, 18, 1376, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5874, 75, 12, 31647, 4672, 3552, 1010, 75, 411, 529, 34, 1493, 5571, 1779, 2973, 28496, 326, 25868, 310, 5270, 411, 529, 2984, 880, 273, 296, 2505, 2207, 11179, 3327, 87, 18, 1376, 19, ...
sage: maxima.example('arrays')
sage: maxima.example('arrays')
def example(self, s): """ EXAMPLES: sage: maxima.example('arrays') #not tested a[n]:=n*a[n-1] a := n a n n - 1 a[0]:1 a[5] 120 a[n]:=n a[6] 6 a[4] 24 done
327892a197ad345f40545c760b7d91fabbe80a24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/327892a197ad345f40545c760b7d91fabbe80a24/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3454, 12, 2890, 16, 272, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 943, 13888, 18, 8236, 2668, 16223, 6134, 225, 468, 902, 18432, 279, 63, 82, 14542, 33, 82, 14, 69, 63, 82, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3454, 12, 2890, 16, 272, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 943, 13888, 18, 8236, 2668, 16223, 6134, 225, 468, 902, 18432, 279, 63, 82, 14542, 33, 82, 14, 69, 63, 82, 1...
self.assertEqual([(u'', u'---------'), (1, u'tester0')], form.fields['owner'].choices)
self.assertEqual( [ (u'', u'---------'), (user.profile.id, u'tester0'), ], form.fields['owner'].choices)
def test_owner_choices_init(self): """ Tests that owner choices are set based on User permissions Verifies: * superusers have all clusterusers as choices * user receives themselves as a choice if they have perms * user receives all groups they are a member of """ # user with no choices form = NewVirtualMachineForm(us...
c24ff4471dfca799ba7ddabc41abb048929bc8fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/c24ff4471dfca799ba7ddabc41abb048929bc8fd/virtual_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8443, 67, 11937, 67, 2738, 12, 2890, 4672, 3536, 7766, 87, 716, 3410, 7246, 854, 444, 2511, 603, 2177, 4371, 225, 6160, 5032, 30, 380, 2240, 5577, 1240, 777, 2855, 5577, 487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8443, 67, 11937, 67, 2738, 12, 2890, 4672, 3536, 7766, 87, 716, 3410, 7246, 854, 444, 2511, 603, 2177, 4371, 225, 6160, 5032, 30, 380, 2240, 5577, 1240, 777, 2855, 5577, 487, ...
rs = dbh2.fetch() if not rs: return "<%s nosrc=%r" % (pattern.group(1),file_match.group(2)) con_id=rs['con_id']
rs = dbh2.cursor.fetchone() if not rs: return "<img nosrc=%r" % file_match.group(2)
def find_url(pattern): """ This function queries the database to find the url of the object mentioned in pattern. It then returns a URL that redirects back to HTMLVisualise to view it. pattern is a match object. """ dbh2= self.DBO(query['case']) url = pattern.group(2)
df6a1c1dbc9e3dc633a08cd5e1a4867e22e276d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/df6a1c1dbc9e3dc633a08cd5e1a4867e22e276d7/TCPDumpAnalysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 718, 12, 4951, 4672, 3536, 1220, 445, 6218, 326, 2063, 358, 1104, 326, 880, 434, 326, 733, 27635, 316, 1936, 18, 2597, 1508, 1135, 279, 1976, 716, 18064, 1473, 358, 3982, 25780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 718, 12, 4951, 4672, 3536, 1220, 445, 6218, 326, 2063, 358, 1104, 326, 880, 434, 326, 733, 27635, 316, 1936, 18, 2597, 1508, 1135, 279, 1976, 716, 18064, 1473, 358, 3982, 25780...
self.asciiOutputFile)
self.pointerToLgdef = None
daf96b854c8d984912564e56445bdcf7e49937df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/daf96b854c8d984912564e56445bdcf7e49937df/Lithomop3d_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 10437, 774, 48, 75, 536, 273, 599, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 10437, 774, 48, 75, 536, 273, 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, -...
if graph:
if options.graph:
def commands(options, command, args): if command == 'database': if len(args) == 0: raise CommandException import dbinit mydb = dbinit.MyDB(options) if args[0] == 'drop': if len(args) > 2: raise CommandException mydb.admin() mydb.drop() if len(args) == 2 and args[1] == 'init': mydb.create() mydb.connect() mydb.populat...
a40715c98d9a53362cc6c6f7ffdedff4e862ba3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6787/a40715c98d9a53362cc6c6f7ffdedff4e862ba3b/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4364, 12, 2116, 16, 1296, 16, 833, 4672, 309, 1296, 422, 296, 6231, 4278, 309, 562, 12, 1968, 13, 422, 374, 30, 1002, 3498, 503, 225, 1930, 1319, 2738, 3399, 1966, 273, 1319, 2738, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4364, 12, 2116, 16, 1296, 16, 833, 4672, 309, 1296, 422, 296, 6231, 4278, 309, 562, 12, 1968, 13, 422, 374, 30, 1002, 3498, 503, 225, 1930, 1319, 2738, 3399, 1966, 273, 1319, 2738, 18,...
"""Container for the properties of an event.
"""Container for the properties of an event.
def _cnfmerge(cnfs): """Internal function.""" if type(cnfs) is DictionaryType: return cnfs elif type(cnfs) in (NoneType, StringType): return cnfs else: cnf = {} for c in _flatten(cnfs): try: cnf.update(c) except (AttributeError, TypeError), msg: print "_cnfmerge: fallback due to:", msg for k, v in c.items(): cnf[k] = v...
0a3f7978c40742672a01f3a5ea537e9f45b8b59f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0a3f7978c40742672a01f3a5ea537e9f45b8b59f/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10305, 74, 2702, 12, 10305, 2556, 4672, 3536, 3061, 445, 12123, 309, 618, 12, 10305, 2556, 13, 353, 16447, 559, 30, 327, 6227, 2556, 1327, 618, 12, 10305, 2556, 13, 316, 261, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10305, 74, 2702, 12, 10305, 2556, 4672, 3536, 3061, 445, 12123, 309, 618, 12, 10305, 2556, 13, 353, 16447, 559, 30, 327, 6227, 2556, 1327, 618, 12, 10305, 2556, 13, 316, 261, 7036, ...
if length.rfind("-") <> 0 or (length.rfind("-") == 0 and length.rfind("+") > -1):
n = length.find("-") if n <> 0 or (n == 0 and (length.rfind("plus") > -1 or length.rfind("minus") > -1)):
def revert_hspace_glue_lengths(document): " Revert HSpace glue lengths to ERT " i = 0 j = 0 while True: i = find_token(document.body, "\\begin_inset space \hspace{}", i) if i == -1: j = find_token(document.body, "\\begin_inset space \hspace*{}", j) if j == -1: break else: star = True i = j else: star = False o = docume...
e09862ec152f4ac43cc3d21e63726a0c5ce0539b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/e09862ec152f4ac43cc3d21e63726a0c5ce0539b/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 76, 2981, 67, 7043, 344, 67, 14907, 12, 5457, 4672, 315, 868, 1097, 670, 3819, 17960, 10917, 358, 4232, 56, 315, 277, 273, 374, 525, 273, 374, 1323, 1053, 30, 277, 273, 1104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 76, 2981, 67, 7043, 344, 67, 14907, 12, 5457, 4672, 315, 868, 1097, 670, 3819, 17960, 10917, 358, 4232, 56, 315, 277, 273, 374, 525, 273, 374, 1323, 1053, 30, 277, 273, 1104...
offset, EXISTS ( SELECT * FROM time_slide AS a WHERE a.time_slide_id == time_slide.time_slide_id AND a.offset != 0 )
offset
def get_time_slides(connection): """ Query the database for the IDs and offsets of all time slides, and return two dictionaries one containing the all-zero time slides and the other containing the not-all-zero time slides. """ zero_lag_time_slides = {} background_time_slides = {} for id, instrument, offset, is_backgrou...
f3c9333bc17cb8cd050d7f5171410146a69ae0d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f3c9333bc17cb8cd050d7f5171410146a69ae0d9/SnglBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 957, 67, 2069, 4369, 12, 4071, 4672, 3536, 2770, 326, 2063, 364, 326, 7115, 471, 8738, 434, 777, 813, 30119, 16, 471, 327, 2795, 16176, 1245, 4191, 326, 777, 17, 7124, 813, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 957, 67, 2069, 4369, 12, 4071, 4672, 3536, 2770, 326, 2063, 364, 326, 7115, 471, 8738, 434, 777, 813, 30119, 16, 471, 327, 2795, 16176, 1245, 4191, 326, 777, 17, 7124, 813, 30...
size, prec= numeric.group (1, 2)
prec, size= numeric.group (1, 2)
def field (self, field): fieldName= self.__fieldName__ (field.name) contents= ["'%s'" % fieldName] try: try: relation= field.get_reference () type= 'RToOne' contents+= ["'%s'" % self.__tableName__ (relation.name)] if field.inverse: # contents+= ["inverse='%s'" % self.__pluralFieldName__ (field.inverse)] contents+= ["in...
a2e9bd7c87de6ca04cf9f335dbf993fae8a94d2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2349/a2e9bd7c87de6ca04cf9f335dbf993fae8a94d2c/Mod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 261, 2890, 16, 652, 4672, 4289, 33, 365, 16186, 16163, 972, 261, 1518, 18, 529, 13, 2939, 33, 306, 5187, 9, 87, 4970, 738, 4289, 65, 775, 30, 775, 30, 2533, 33, 652, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 261, 2890, 16, 652, 4672, 4289, 33, 365, 16186, 16163, 972, 261, 1518, 18, 529, 13, 2939, 33, 306, 5187, 9, 87, 4970, 738, 4289, 65, 775, 30, 775, 30, 2533, 33, 652, 18, 588, ...
self.nb.SetSelection(2)
def OnSelChanged(self, event): if self.dying: return
5a7823f5999fdcaec5b43d18c6a5f299654e5492 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5a7823f5999fdcaec5b43d18c6a5f299654e5492/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1877, 5033, 12, 2890, 16, 871, 4672, 309, 365, 18, 72, 14946, 30, 327, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1877, 5033, 12, 2890, 16, 871, 4672, 309, 365, 18, 72, 14946, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cfg.debugExceptions = True sys.excepthook = util.genExcepthook(debug=cfg.debugExceptions,
if hasattr(cfg, 'debugExceptions'): cfg.debugExceptions = True debug = True sys.excepthook = util.genExcepthook(debug=debug,
def main(self, argv=None, debuggerException=Exception, cfg=None, debugAll=False, **kw): """ Process argv and execute commands as specified. """ if argv is None: argv=sys.argv from conary import versions supportedCommands = self._supportedCommands
cc8db27f147755c6650d8c7d5b9b871a8bb72b34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/cc8db27f147755c6650d8c7d5b9b871a8bb72b34/mainhandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 16, 5261, 33, 7036, 16, 19977, 503, 33, 503, 16, 2776, 33, 7036, 16, 1198, 1595, 33, 8381, 16, 2826, 9987, 4672, 3536, 4389, 5261, 471, 1836, 4364, 487, 1269, 18, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 16, 5261, 33, 7036, 16, 19977, 503, 33, 503, 16, 2776, 33, 7036, 16, 1198, 1595, 33, 8381, 16, 2826, 9987, 4672, 3536, 4389, 5261, 471, 1836, 4364, 487, 1269, 18, 3536,...
self.r_e.set_value(r*255) self.g_e.set_value(g*255) self.b_e.set_value(b*255)
r = int(r*255) g = int(g*255) b = int(b*255) self.r_e.set_value(r) self.g_e.set_value(g) self.b_e.set_value(b)
def set_color(self, color): self.color = color r,g,b = color self.r_e.set_value(r*255) self.g_e.set_value(g*255) self.b_e.set_value(b*255)
08d1cd9a9c045cb7c2bb8137147aff4f45427361 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/08d1cd9a9c045cb7c2bb8137147aff4f45427361/colorsamplerwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3266, 12, 2890, 16, 2036, 4672, 365, 18, 3266, 273, 2036, 436, 16, 75, 16, 70, 273, 2036, 365, 18, 86, 67, 73, 18, 542, 67, 1132, 12, 86, 14, 10395, 13, 365, 18, 75, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 3266, 12, 2890, 16, 2036, 4672, 365, 18, 3266, 273, 2036, 436, 16, 75, 16, 70, 273, 2036, 365, 18, 86, 67, 73, 18, 542, 67, 1132, 12, 86, 14, 10395, 13, 365, 18, 75, 67,...
self.extensions.append(
self.extensions.extend((
def run(self): if not check_dependencies_once(): return # Only install the clustering software if Numpy is installed. # Otherwise, it will not compile. if is_Numpy_installed(): self.extensions.append( Extension('Bio.Cluster.cluster', ['Bio/Cluster/clustermodule.c', 'Bio/Cluster/cluster.c', 'Bio/Cluster/ranlib.c', 'Bio/...
a573247d8dab5e2102e9fc6281b9cc72d84ab8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/a573247d8dab5e2102e9fc6281b9cc72d84ab8cd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 486, 866, 67, 11037, 67, 8243, 13332, 327, 468, 5098, 3799, 326, 18743, 17888, 309, 6805, 2074, 353, 5876, 18, 468, 5272, 16, 518, 903, 486, 4074, 18, 309, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 486, 866, 67, 11037, 67, 8243, 13332, 327, 468, 5098, 3799, 326, 18743, 17888, 309, 6805, 2074, 353, 5876, 18, 468, 5272, 16, 518, 903, 486, 4074, 18, 309, 3...
div }
def render_list(ids, links): states = load_customlink_states() n = 0 for entry in links: n += 1 try: if type(entry[1]) == type(True): idss = ids + [str(n)] if states.get(''.join(idss), entry[1] and 'on' or 'off') == 'on': # open display = "" img = "link_folder_open.gif" else: display = "display: none; " img = "link_fol...
483aa73e24c9cd13926fa2177e6b93e1db3e7b7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/483aa73e24c9cd13926fa2177e6b93e1db3e7b7e/shipped.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 1098, 12, 2232, 16, 4716, 4672, 5493, 273, 1262, 67, 3662, 1232, 67, 7992, 1435, 290, 273, 374, 364, 1241, 316, 4716, 30, 290, 1011, 404, 775, 30, 309, 618, 12, 4099, 63, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 1098, 12, 2232, 16, 4716, 4672, 5493, 273, 1262, 67, 3662, 1232, 67, 7992, 1435, 290, 273, 374, 364, 1241, 316, 4716, 30, 290, 1011, 404, 775, 30, 309, 618, 12, 4099, 63, 2...
def testEcho (self):
def test_echo(self): """Basic test of an SSL client connecting to a server"""
def testEcho (self):
0dd64f6a0e5850fce167a308c0d887027fbc21ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/0dd64f6a0e5850fce167a308c0d887027fbc21ee/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 19704, 261, 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,...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 19704, 261, 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, ...
if installed_version == 'x':
if not installed_version or installed_version == 'x':
def update_list(self, cr, uid, context={}): robj = self.pool.get('ir.module.repository') res = [0, 0] # [update, add]
00067b2e13b43d10b9524f429f6dfb8defd217aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/00067b2e13b43d10b9524f429f6dfb8defd217aa/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1098, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 721, 441, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2978, 18, 9071, 6134, 400, 273, 306, 20, 16, 374, 65, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1098, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 721, 441, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2978, 18, 9071, 6134, 400, 273, 306, 20, 16, 374, 65, 468, ...
verbose=verbose, timeout=timeout, **kargs)
timeout=timeout, filter=filter, verbose=verbose, **kargs)
def traceroute(target, dport=80, minttl=1, maxttl=30, sport=RandShort(), l4 = None, filter=None, timeout=2, verbose=None, **kargs): """Instant TCP traceroute
a1bcf9e1fa9e38978092674054cc8c552dc1f4c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/a1bcf9e1fa9e38978092674054cc8c552dc1f4c5/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1284, 71, 28463, 12, 3299, 16, 302, 655, 33, 3672, 16, 312, 474, 6172, 33, 21, 16, 943, 12546, 33, 5082, 16, 272, 655, 33, 54, 464, 4897, 9334, 328, 24, 273, 599, 16, 1034, 33, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1284, 71, 28463, 12, 3299, 16, 302, 655, 33, 3672, 16, 312, 474, 6172, 33, 21, 16, 943, 12546, 33, 5082, 16, 272, 655, 33, 54, 464, 4897, 9334, 328, 24, 273, 599, 16, 1034, 33, 703...
filename = RESULTSDIR + "fo-" + kinit + "-" + kend + "-" + deltak + "-" + time.strftime("%H%M%S") + ".hf5"
filename = RESULTSDIR + "fo-" + str(kinit) + "-" + str(kend) + "-" + str(deltak) + "-" + time.strftime("%H%M%S") + ".hf5"
def runfomodel(kinit, kend, deltak, filename=None, foargs=None): """Execute a FOCanonicalTwoStage model and save results. A new instance of FOCanonicalTwoStage is created, with the specified arguments. The model is run and the results are then saved into a file with the specified filename Parameters ---------- kinit ...
2bb9b2dff6931edf5c042e0856421c583a456cbb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/2bb9b2dff6931edf5c042e0856421c583a456cbb/harness.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 74, 362, 1009, 12, 79, 2738, 16, 417, 409, 16, 1464, 88, 581, 16, 1544, 33, 7036, 16, 18261, 1968, 33, 7036, 4672, 3536, 5289, 279, 17634, 15512, 11710, 8755, 938, 471, 1923, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 74, 362, 1009, 12, 79, 2738, 16, 417, 409, 16, 1464, 88, 581, 16, 1544, 33, 7036, 16, 18261, 1968, 33, 7036, 4672, 3536, 5289, 279, 17634, 15512, 11710, 8755, 938, 471, 1923, 168...
for cur_page in range(1, num_pages):
for cur_page in range(1, num_pages + 1):
def fetch_tracks(user, request_delay=0.5): num_pages = 1 url = 'http://last.fm/user/%s/library/recent' % user soup = BeautifulSoup(urllib2.urlopen(url)) num_pages = int(soup.find('a', 'lastpage').contents[0]) + 1 all_data = [] for cur_page in range(1, num_pages): data = parse_page(url + '?page=' + str(cur_page)) all_d...
6f083c051a1ea3d256a4127363600a88f83ab4a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6447/6f083c051a1ea3d256a4127363600a88f83ab4a3/lastscrape.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 21499, 12, 1355, 16, 590, 67, 10790, 33, 20, 18, 25, 4672, 818, 67, 7267, 273, 404, 880, 273, 296, 2505, 2207, 2722, 18, 25089, 19, 1355, 5258, 87, 19, 12083, 19, 20872, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 21499, 12, 1355, 16, 590, 67, 10790, 33, 20, 18, 25, 4672, 818, 67, 7267, 273, 404, 880, 273, 296, 2505, 2207, 2722, 18, 25089, 19, 1355, 5258, 87, 19, 12083, 19, 20872, 11...
total_game = GameData()
game = GameData()
def dump(self, indent): if self.count <= 0: print "%sGame Count: %d" % (header, self.count) return
95d2d5b715b75d6f5156777ed28f66c0020ab877 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/95d2d5b715b75d6f5156777ed28f66c0020ab877/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 3504, 4672, 309, 365, 18, 1883, 1648, 374, 30, 1172, 2213, 87, 12496, 6974, 30, 738, 72, 6, 738, 261, 3374, 16, 365, 18, 1883, 13, 327, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 3504, 4672, 309, 365, 18, 1883, 1648, 374, 30, 1172, 2213, 87, 12496, 6974, 30, 738, 72, 6, 738, 261, 3374, 16, 365, 18, 1883, 13, 327, 2, -100, -100, -100, -100,...
sage: n._easy_vector()
sage: n._easy_vector()
def _easy_vector(self): """ Return a very sparse vector v such that v times the eigenvector matrix has all entries nonzero.
a60f75ff0c4edf5421d2ad1e96bff0ae914ad58b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a60f75ff0c4edf5421d2ad1e96bff0ae914ad58b/numerical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 73, 15762, 67, 7737, 12, 2890, 4672, 3536, 2000, 279, 8572, 9387, 3806, 331, 4123, 716, 331, 4124, 326, 11043, 3074, 1229, 3148, 711, 777, 3222, 16966, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 73, 15762, 67, 7737, 12, 2890, 4672, 3536, 2000, 279, 8572, 9387, 3806, 331, 4123, 716, 331, 4124, 326, 11043, 3074, 1229, 3148, 711, 777, 3222, 16966, 18, 2, -100, -100, -100, -100...
if verbose: print 'unpack list' a, b, c = l if a != 4 or b != 5 or c != 6: raise TestFailed
Unpack implied tuple
def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError
4f813074150348704b07b2ebfc7dc357e888a6aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4f813074150348704b07b2ebfc7dc357e888a6aa/test_unpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...