rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.tk.call(self._w, 'active', 'clear')
self.tk.call(self._w, 'active', 'clear')
def active_clear(self):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 67, 8507, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 67, 8507, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if node.hasAttribute('plugin') or '.plugin.' in name:
if node.hasAttribute('plugin'):
def valfunc(node): name = node.getAttribute('name') if name.startswith('plugin'): return '2%s' % name if node.hasAttribute('plugin') or '.plugin.' in name: return '1%s' % name if 'gui' in name: return '3%s' % name return '0%s' % name
d9ac152ca72e84f19dca7bca1ffe5fc1c248f73f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11399/d9ac152ca72e84f19dca7bca1ffe5fc1c248f73f/xmlconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 644, 12, 2159, 4672, 508, 273, 756, 18, 588, 1499, 2668, 529, 6134, 309, 508, 18, 17514, 1918, 2668, 4094, 11, 4672, 327, 296, 22, 9, 87, 11, 738, 508, 309, 756, 18, 5332, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1244, 644, 12, 2159, 4672, 508, 273, 756, 18, 588, 1499, 2668, 529, 6134, 309, 508, 18, 17514, 1918, 2668, 4094, 11, 4672, 327, 296, 22, 9, 87, 11, 738, 508, 309, 756, 18, 5332, 1499...
Encoders.encode_base64(msg)
Encoders.encode_base64(mesg)
def main(): """ Here we do the job """ global DEBUG, LOGFILE, MBOT_ADDRESS, CONFIG_FILE config_file = CONFIG_FILE try: opts, args = getopt.getopt(sys.argv[1:], "c:") except getopt.GetoptError: # print help information and exit: usage() sys.exit(2) for o, a in opts: if o == "-c": config_file = a Conf = read_defaults(...
675f92c0d9a887bbfcdce90eb4b00c76c28a9e36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3144/675f92c0d9a887bbfcdce90eb4b00c76c28a9e36/mbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 13743, 732, 741, 326, 1719, 3536, 2552, 6369, 16, 2018, 3776, 16, 17897, 1974, 67, 15140, 16, 9128, 67, 3776, 225, 642, 67, 768, 273, 9128, 67, 3776, 775, 30, 1500, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 13743, 732, 741, 326, 1719, 3536, 2552, 6369, 16, 2018, 3776, 16, 17897, 1974, 67, 15140, 16, 9128, 67, 3776, 225, 642, 67, 768, 273, 9128, 67, 3776, 775, 30, 1500, ...
create_phy = classmethod(create_phy) recreate = classmethod(recreate) create = classmethod(create)
def get_by_name_label(cls, name): return [inst.get_uuid() for inst in XendAPIStore.get_all(cls.getClass()) if inst.get_name_label() == name] create_phy = classmethod(create_phy) recreate = classmethod(recreate) create = classmethod(create) get_by_name_label = classmethod(get_by_name_label)
def create(self, record): """ Called from API, to create a new network """ # Create new uuids uuid = genuuid.createString()
7e6f8371df8651623b34d3183ca9fe4b5b6f6613 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/7e6f8371df8651623b34d3183ca9fe4b5b6f6613/XendNetwork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 1409, 4672, 3536, 11782, 628, 1491, 16, 358, 752, 279, 394, 2483, 3536, 468, 1788, 394, 26938, 3822, 273, 314, 2104, 1911, 18, 2640, 780, 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, 752, 12, 2890, 16, 1409, 4672, 3536, 11782, 628, 1491, 16, 358, 752, 279, 394, 2483, 3536, 468, 1788, 394, 26938, 3822, 273, 314, 2104, 1911, 18, 2640, 780, 1435, 2, -100, -100, -100, ...
common = contenta[-1].findSuffix(contentb[-1]) if common: regexa = RegexAnd.join( contenta[:-1] ) & common[0] regexb = RegexAnd.join( contentb[:-1] ) & common[1] regex = (regexa | regexb) if matchSingleValue(common[2]) and matchSingleValue(regex): return regex + common[2]
def _or_(self, regex, reverse): if regex.__class__ == RegexString: contentb = [regex] elif regex.__class__ == RegexAnd: contentb = regex.content else: return None
4a8d93e059c3f6a04f35567f0126ed487a6490e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/4a8d93e059c3f6a04f35567f0126ed487a6490e6/regex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 280, 67, 12, 2890, 16, 3936, 16, 4219, 4672, 309, 3936, 16186, 1106, 972, 422, 15078, 780, 30, 913, 70, 273, 306, 7584, 65, 1327, 3936, 16186, 1106, 972, 422, 15078, 1876, 30, 913...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 280, 67, 12, 2890, 16, 3936, 16, 4219, 4672, 309, 3936, 16186, 1106, 972, 422, 15078, 780, 30, 913, 70, 273, 306, 7584, 65, 1327, 3936, 16186, 1106, 972, 422, 15078, 1876, 30, 913...
obj.runningJob.errors.append("Not yet Ready")
self.logging.warning( obj.runningJob['schedulerId'] + \ ' output not yet ready' ) obj.runningJob.errors.append("Job current status doesn")
def getOutput( self, obj, outdir='' ): """ retrieve job output """
7c4efde2270e23664acd0941720340358547054e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/7c4efde2270e23664acd0941720340358547054e/SchedulerGLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11062, 12, 365, 16, 1081, 16, 15398, 2218, 11, 262, 30, 3536, 4614, 1719, 876, 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, ...
[ 1, 1, 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, 11062, 12, 365, 16, 1081, 16, 15398, 2218, 11, 262, 30, 3536, 4614, 1719, 876, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
DeleteKey(key, "sub_key")
DeleteKey(key, subkeystr)
def DeleteTestData(self, root_key): key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) sub_key = OpenKey(key, "sub_key", 0, KEY_ALL_ACCESS) # It is not necessary to delete the values before deleting # the key (although subkeys must not exist). We delete them # manually just to prove we can :-) for value_name, v...
f3eb94a6b1ba946a780f9bec3f012f5a68326881 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f3eb94a6b1ba946a780f9bec3f012f5a68326881/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 498, 273, 3502, 653, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 16, 374, 16, 5311, 67, 4685, 67, 13204, 13, 720, 67, 856, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 498, 273, 3502, 653, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 16, 374, 16, 5311, 67, 4685, 67, 13204, 13, 720, 67, 856, 27...
def __init__(self, model, filename, mode='r', endian = '>', verbose=0):
def __init__(self, model, filename, mode='r', endian = '@', verbose=0):
def __init__(self, model, filename, mode='r', endian = '>', verbose=0): self.model = model # big endian is only for files calculated on Suns or HP # otherwise use '<' FortranBinaryFile.__init__(self, filename, mode, endian, verbose=verbose)
a0a799e0cc476387b842df00eb32b18444ae3305 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2567/a0a799e0cc476387b842df00eb32b18444ae3305/MarcT16File.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 938, 16, 1544, 16, 1965, 2218, 86, 2187, 14759, 273, 4622, 2187, 3988, 33, 20, 4672, 365, 18, 2284, 273, 938, 468, 5446, 14759, 353, 1338, 364, 1390, 889...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 938, 16, 1544, 16, 1965, 2218, 86, 2187, 14759, 273, 4622, 2187, 3988, 33, 20, 4672, 365, 18, 2284, 273, 938, 468, 5446, 14759, 353, 1338, 364, 1390, 889...
print
print
def execute(execute=True, verbose=True): a=theano.shared(numpy.ones(shapes, dtype=theano.config.floatX)) b=theano.shared(numpy.ones(shapes, dtype=theano.config.floatX)) c=theano.shared(numpy.ones(shapes, dtype=theano.config.floatX)) f=theano.function([],updates={c:0.4*c+.8*T.dot(a,b)}) if verbose: print 'Some theano...
b0b78690a119f26c7612051575ece09c6ab01612 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/b0b78690a119f26c7612051575ece09c6ab01612/check_blas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 8837, 33, 5510, 16, 3988, 33, 5510, 4672, 225, 279, 33, 5787, 31922, 18, 11574, 12, 15974, 18, 5322, 12, 17648, 16, 3182, 33, 5787, 31922, 18, 1425, 18, 5659, 60, 3719, 324, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 8837, 33, 5510, 16, 3988, 33, 5510, 4672, 225, 279, 33, 5787, 31922, 18, 11574, 12, 15974, 18, 5322, 12, 17648, 16, 3182, 33, 5787, 31922, 18, 1425, 18, 5659, 60, 3719, 324, ...
proxy = _make_proxy() tc.assertTrue(proxy.back_end_has_command('test')) tc.assertFalse(proxy.back_end_has_command('xyzzy')) tc.assertFalse(proxy.back_end_has_command('gomill-passthrough'))
fx = Proxy_fixture(tc) tc.assertTrue(fx.proxy.back_end_has_command('test')) tc.assertFalse(fx.proxy.back_end_has_command('xyzzy')) tc.assertFalse(fx.proxy.back_end_has_command('gomill-passthrough'))
def test_back_end_has_command(tc): proxy = _make_proxy() tc.assertTrue(proxy.back_end_has_command('test')) tc.assertFalse(proxy.back_end_has_command('xyzzy')) tc.assertFalse(proxy.back_end_has_command('gomill-passthrough'))
d3c1810c39f74e2ab0ab81debc544cc7ea34da4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/d3c1810c39f74e2ab0ab81debc544cc7ea34da4d/gtp_proxy_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 823, 67, 409, 67, 5332, 67, 3076, 12, 5111, 4672, 12661, 273, 7659, 67, 904, 10970, 12, 5111, 13, 1715, 18, 11231, 5510, 12, 19595, 18, 5656, 18, 823, 67, 409, 67, 5332, 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, 1842, 67, 823, 67, 409, 67, 5332, 67, 3076, 12, 5111, 4672, 12661, 273, 7659, 67, 904, 10970, 12, 5111, 13, 1715, 18, 11231, 5510, 12, 19595, 18, 5656, 18, 823, 67, 409, 67, 5332, 67...
self.assertEqual(self.client.voidresp(), "226 transfer complete")
self.client.voidresp()
def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.assertEqual(self.client.voidresp(), "226 transfer complete")
bb2ceebe4c9695fd23f5fa9d68a116aee667a188 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/bb2ceebe4c9695fd23f5fa9d68a116aee667a188/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 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, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
def end_double(self, join=string.join): self.append(float(join(self._data, "")))
def end_double(self, data): self.append(float(data))
def end_double(self, join=string.join): self.append(float(join(self._data, ""))) self._value = 0
80ead46c3b0b9513bc116e8fe08faa2f91145a91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/80ead46c3b0b9513bc116e8fe08faa2f91145a91/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 9056, 12, 2890, 16, 501, 4672, 365, 18, 6923, 12, 5659, 12, 892, 3719, 365, 6315, 1132, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 67, 9056, 12, 2890, 16, 501, 4672, 365, 18, 6923, 12, 5659, 12, 892, 3719, 365, 6315, 1132, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.ui.note(_("found new changesets starting at ") +
self.ui.debug(_("found new changesets starting at ") +
def findincoming(self, remote, base=None, heads=None, force=False): """Return list of roots of the subsets of missing nodes from remote
05da6255c340dc7fab1b01e6a6e79351a6e27de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/05da6255c340dc7fab1b01e6a6e79351a6e27de4/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 31033, 12, 2890, 16, 2632, 16, 1026, 33, 7036, 16, 22742, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 990, 666, 434, 12876, 434, 326, 30760, 434, 3315, 2199, 628, 2632, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 31033, 12, 2890, 16, 2632, 16, 1026, 33, 7036, 16, 22742, 33, 7036, 16, 2944, 33, 8381, 4672, 3536, 990, 666, 434, 12876, 434, 326, 30760, 434, 3315, 2199, 628, 2632, 2, -100, -1...
if self.__updating_lock.acquire(False)\ and len(self.__updating_queue) > 0:
if self.__updating_lock.acquire(False):
def external_add_node(self,tid): if not tid: raise ValueError('cannot add node None') if self.__initialized: self.__updating_queue.append([tid,'add']) if self.__updating_lock.acquire(False)\ and len(self.__updating_queue) > 0: self.__execution_loop()
1353624828358255e5a28cdf04d1e44631909f7c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/1353624828358255e5a28cdf04d1e44631909f7c/filteredtree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3903, 67, 1289, 67, 2159, 12, 2890, 16, 18081, 4672, 309, 486, 11594, 30, 1002, 2068, 2668, 12892, 527, 756, 599, 6134, 309, 365, 16186, 13227, 30, 365, 16186, 5533, 1776, 67, 4000, 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, 3903, 67, 1289, 67, 2159, 12, 2890, 16, 18081, 4672, 309, 486, 11594, 30, 1002, 2068, 2668, 12892, 527, 756, 599, 6134, 309, 365, 16186, 13227, 30, 365, 16186, 5533, 1776, 67, 4000, 18, ...
sage: q.list()
sage: q.list()
def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''...
9ee4c5396b77f1c67933cd4efe2dc621880260d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9ee4c5396b77f1c67933cd4efe2dc621880260d6/qsieve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 869, 67, 1098, 12, 659, 16, 290, 16, 813, 4672, 3536, 4037, 876, 434, 670, 485, 1807, 272, 21271, 471, 290, 358, 279, 666, 471, 813, 18, 225, 12943, 30, 596, 1493, 4439, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 869, 67, 1098, 12, 659, 16, 290, 16, 813, 4672, 3536, 4037, 876, 434, 670, 485, 1807, 272, 21271, 471, 290, 358, 279, 666, 471, 813, 18, 225, 12943, 30, 596, 1493, 4439, 434...
key, name = os.path.split( key ) value, type = _winreg.QueryValueEx( key, name ) self.__init_from_bytes__( value )
key, name = os.path.split(key) value, type = _winreg.QueryValueEx(key, name) self.__init_from_bytes__(value)
def __init_from_reg_key__( self, key, name = None ): if not name: key, name = os.path.split( key ) value, type = _winreg.QueryValueEx( key, name ) self.__init_from_bytes__( value )
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 2080, 67, 1574, 67, 856, 972, 12, 365, 16, 498, 16, 508, 273, 599, 262, 30, 309, 486, 508, 30, 498, 16, 508, 273, 1140, 18, 803, 18, 4939, 12, 856, 13, 460, 16, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 67, 2080, 67, 1574, 67, 856, 972, 12, 365, 16, 498, 16, 508, 273, 599, 262, 30, 309, 486, 508, 30, 498, 16, 508, 273, 1140, 18, 803, 18, 4939, 12, 856, 13, 460, 16, 6...
TixSubWidget.__init__(self, master, name, destroy_physically)
TixSubWidget.__init__(self, master, name, destroy_physically)
def __init__(self, master, name, destroy_physically=1):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 508, 16, 5546, 67, 844, 1900, 6478, 33, 21, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 508, 16, 5546, 67, 844, 1900, 6478, 33, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return _measure.observatory(self, name.upper())
return _measures.observatory(self, name.upper())
def observatory(self, name): """Get a (position) measure for the given obervatory :param name: the name of the observatory :returns: a position measure """ return _measure.observatory(self, name.upper())
187b2d51045f54fa34a7e021c22160e45c9dbd75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/187b2d51045f54fa34a7e021c22160e45c9dbd75/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8681, 8452, 12, 2890, 16, 508, 4672, 3536, 967, 279, 261, 3276, 13, 6649, 364, 326, 864, 320, 744, 90, 8452, 225, 294, 891, 508, 30, 326, 508, 434, 326, 8681, 8452, 294, 6154, 30, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8681, 8452, 12, 2890, 16, 508, 4672, 3536, 967, 279, 261, 3276, 13, 6649, 364, 326, 864, 320, 744, 90, 8452, 225, 294, 891, 508, 30, 326, 508, 434, 326, 8681, 8452, 294, 6154, 30, 27...
print "Run crashed! Sorry...", e1, e2
print "Run crashed! Sorry..."
def run(self, lib, state, tfinal=0.2):
51a47c569962e0deed4749b7fada1f2e923a341a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3697/51a47c569962e0deed4749b7fada1f2e923a341a/run.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 2561, 16, 919, 16, 268, 6385, 33, 20, 18, 22, 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, ...
[ 1, 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, 1086, 12, 2890, 16, 2561, 16, 919, 16, 268, 6385, 33, 20, 18, 22, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
sApps += '<a:option img="%s" caption="%s" value="%s" selected="%s"/>' % (app['icon'], app['displayName'], app['launchUrl'], sSelected)
sApps += \ '<a:option img="%s" caption="%s" value="%s" selected="%s"/>' % \ (app['icon'], app['displayName'], app['launchUrl'], sSelected)
def setParams(self): self.response.setHeader('cache-control', 'no-cache') self.params['TASK_BAR_POS'] = self.session.user.settings.value.setdefault('TASK_BAR_POS', 'bottom') if self.params['TASK_BAR_POS'] == 'bottom': self.params['CHECKED_TOP'] = 'false' self.params['CHECKED_BOTTOM'] = 'true' else: self.params['CHECK...
9a2f8b99a4794ca66a515bfe9ca832718bd20756 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/9a2f8b99a4794ca66a515bfe9ca832718bd20756/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 2493, 17, 7098, 2187, 296, 2135, 17, 2493, 6134, 225, 365, 18, 2010, 3292, 15580, 67, 21908, 67, 7057, 3546, 273, 365, 18, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31705, 12, 2890, 4672, 365, 18, 2740, 18, 542, 1864, 2668, 2493, 17, 7098, 2187, 296, 2135, 17, 2493, 6134, 225, 365, 18, 2010, 3292, 15580, 67, 21908, 67, 7057, 3546, 273, 365, 18, 31...
reqNodeIdx, provInstId, provNodeIdx) in result:
reqNodeIdx, provInstId, provNodeIdx, reqDepNum) in result:
def _gatherResolution(self, result): # these track the nodes which satisfy each depId. brokenByErase # tracks what used to provide something but is being removed, while # satisfied tracks what now provides it unresolveable = set() brokenByErase = {} satisfied = { 0 : 0 } wasIn = {}
2eee789e85d115af648cea4bb94da4b379c7f713 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/2eee789e85d115af648cea4bb94da4b379c7f713/deptable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 75, 4806, 11098, 12, 2890, 16, 563, 4672, 468, 4259, 3298, 326, 2199, 1492, 18866, 1517, 5993, 548, 18, 12933, 858, 41, 5648, 468, 13933, 4121, 1399, 358, 5615, 5943, 1496, 353, 383...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 75, 4806, 11098, 12, 2890, 16, 563, 4672, 468, 4259, 3298, 326, 2199, 1492, 18866, 1517, 5993, 548, 18, 12933, 858, 41, 5648, 468, 13933, 4121, 1399, 358, 5615, 5943, 1496, 353, 383...
if self.gateway:
if self.gateway and self.connector.type == "router":
def encode_xml(self, dom, doc, internal): dummynet.EmulatedConnection.encode_xml(self, dom, doc, internal) if self.gateway: dom.setAttribute("gateway", self.gateway) if internal: if self.tinc_port: dom.setAttribute("tinc_port", str(self.tinc_port))
b7ff2febf751393dcad9efffe44675577cca50dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3860/b7ff2febf751393dcad9efffe44675577cca50dc/tinc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 2902, 12, 2890, 16, 4092, 16, 997, 16, 2713, 4672, 4569, 81, 878, 278, 18, 1514, 11799, 1952, 18, 3015, 67, 2902, 12, 2890, 16, 4092, 16, 997, 16, 2713, 13, 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, 2017, 67, 2902, 12, 2890, 16, 4092, 16, 997, 16, 2713, 4672, 4569, 81, 878, 278, 18, 1514, 11799, 1952, 18, 3015, 67, 2902, 12, 2890, 16, 4092, 16, 997, 16, 2713, 13, 309, 365, 18, ...
conf = YumConf(verbose, releasever, arch, BuildArchTranslate(arch), buildroot, c, reposdirs)
barch = buildarchtranslate.get(arch, arch) conf = YumConf(verbose, releasever, arch, barch, buildroot, c, reposdirs)
def readRepos(releasever, configfiles, arch, buildroot, readdebug, readsrc, reposdirs, verbose, readcompsfile=0): # Read in /etc/yum.conf config files. repos = [] for c in configfiles: conf = YumConf(verbose, releasever, arch, BuildArchTranslate(arch), buildroot, c, reposdirs) #print conf.vars for key in conf.vars.keys...
427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 28453, 12, 9340, 502, 16, 642, 2354, 16, 6637, 16, 1361, 3085, 16, 855, 4148, 16, 855, 4816, 16, 13686, 8291, 16, 3988, 16, 855, 31532, 768, 33, 20, 4672, 468, 2720, 316, 342, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 28453, 12, 9340, 502, 16, 642, 2354, 16, 6637, 16, 1361, 3085, 16, 855, 4148, 16, 855, 4816, 16, 13686, 8291, 16, 3988, 16, 855, 31532, 768, 33, 20, 4672, 468, 2720, 316, 342, 1...
self.center = (reduceTheta(self.center[0]), center[1])
self.center = (reduceTheta(self.center[0]), self.center[1])
def __init__(self, center, radius): """Creates a new spherical circle with the given center and radius. """ self.center = sphericalCoords(center) self.radius = float(radius) self.boundingBox = None if self.radius < 0.0 or self.radius > 180.0: raise RuntimeError( 'Circle radius is negative or greater than 180 deg') self...
fc58c266e9ed7e70e36ba8e8b8b9b6a69e5f215f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6528/fc58c266e9ed7e70e36ba8e8b8b9b6a69e5f215f/geometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4617, 16, 5725, 4672, 3536, 2729, 279, 394, 272, 21570, 12470, 598, 326, 864, 4617, 471, 5725, 18, 3536, 365, 18, 5693, 273, 272, 21570, 13089, 12, 5693, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4617, 16, 5725, 4672, 3536, 2729, 279, 394, 272, 21570, 12470, 598, 326, 864, 4617, 471, 5725, 18, 3536, 365, 18, 5693, 273, 272, 21570, 13089, 12, 5693, ...
furthestBlock.childNodes.remove(furthestBlock)
furthestBlock.parent.removeChild(furthestBlock)
def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElemen...
4a9afa5240a765a75eb29592887545baf51a5215 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/4a9afa5240a765a75eb29592887545baf51a5215/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 508, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 11329, 467, 2727, 1404, 3007, 1323, 1053, 397, 898, 2777, 4885, 9816, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 508, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 11329, 467, 2727, 1404, 3007, 1323, 1053, 397, 898, 2777, 4885, 9816, 468,...
return valgrind_test.RunTool(cmd)
return valgrind_test.RunTool(cmd, "layout")
def TestLayoutChunk(self, chunk_num, chunk_size): # Run tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size) from the # list of tests. Wrap around to beginning of list at end. # If chunk_size is zero, run all tests in the list once. # If a text file is given as argument, it is used as the list of tests. # # Build ...
4ec5079fe12c534bccefbad831e9a8f208490e86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/4ec5079fe12c534bccefbad831e9a8f208490e86/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7766, 3744, 5579, 12, 2890, 16, 2441, 67, 2107, 16, 2441, 67, 1467, 4672, 468, 1939, 7434, 306, 6551, 67, 2107, 14, 6551, 67, 1467, 6116, 261, 6551, 67, 2107, 15, 21, 17653, 6551, 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, 7766, 3744, 5579, 12, 2890, 16, 2441, 67, 2107, 16, 2441, 67, 1467, 4672, 468, 1939, 7434, 306, 6551, 67, 2107, 14, 6551, 67, 1467, 6116, 261, 6551, 67, 2107, 15, 21, 17653, 6551, 67, ...
self.body.append ('\\end{enumerate}\n' ) def astext (self): if self.pdfinfo is not None and self.pdfauthor: self.pdfinfo.append ('pdfauthor={%s}' % self.pdfauthor) if self.pdfinfo: pdfinfo = '\\hypersetup{\n' + ',\n'.join (self.pdfinfo) + '\n}\n' else: pdfinfo = '' head = '\\title{%s}\n' % self.title if self.auth_sta...
self.out.append ('\\end{enumerate}\n' )
def depart_enumerated_list (self, node): if ('contents' in getattr (self, 'topic_classes', [])): self.body.append ('\\end{list}\n') else: self.body.append ('\\end{enumerate}\n' )
7fa34d63a11663a7daeb27efb01eb826b364662a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/7fa34d63a11663a7daeb27efb01eb826b364662a/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 7924, 19007, 67, 1098, 261, 2890, 16, 756, 4672, 309, 7707, 3980, 11, 316, 3869, 261, 2890, 16, 296, 10476, 67, 4701, 2187, 5378, 3719, 30, 365, 18, 3432, 18, 6923, 7707, 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, 26000, 67, 7924, 19007, 67, 1098, 261, 2890, 16, 756, 4672, 309, 7707, 3980, 11, 316, 3869, 261, 2890, 16, 296, 10476, 67, 4701, 2187, 5378, 3719, 30, 365, 18, 3432, 18, 6923, 7707, 16...
from_param = classmethod(from_param)
def from_param(cls, obj): if not isinstance(obj, ndarray): raise TypeError, "argument must be an ndarray" if cls._dtype_ is not None \ and obj.dtype != cls._dtype_: raise TypeError, "array must have data type %s" % cls._dtype_ if cls._ndim_ is not None \ and obj.ndim != cls._ndim_: raise TypeError, "array must have %d ...
8845905c2517e39a58d0d9b6287e873116fda932 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/8845905c2517e39a58d0d9b6287e873116fda932/ctypeslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 891, 12, 6429, 16, 1081, 4672, 309, 486, 1549, 12, 2603, 16, 8304, 4672, 1002, 3580, 16, 315, 3446, 1297, 506, 392, 8304, 6, 309, 2028, 6315, 8972, 67, 353, 486, 599, 521, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 891, 12, 6429, 16, 1081, 4672, 309, 486, 1549, 12, 2603, 16, 8304, 4672, 1002, 3580, 16, 315, 3446, 1297, 506, 392, 8304, 6, 309, 2028, 6315, 8972, 67, 353, 486, 599, 521, 4...
def do_footer(self): stdout.write('}\n')
def do_val(self, val, prefix, last): name = (val.getAttribute('suffix') or val.getAttribute('name')).replace('_', '') stdout.write("""\
e562d7cdac8cd00b1ec7c9a7392ec1fc7d3edbed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7593/e562d7cdac8cd00b1ec7c9a7392ec1fc7d3edbed/qt4-constants-gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1125, 12, 2890, 16, 1244, 16, 1633, 16, 1142, 4672, 508, 273, 261, 1125, 18, 588, 1499, 2668, 8477, 6134, 578, 1244, 18, 588, 1499, 2668, 529, 6134, 2934, 2079, 2668, 67, 2187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1125, 12, 2890, 16, 1244, 16, 1633, 16, 1142, 4672, 508, 273, 261, 1125, 18, 588, 1499, 2668, 8477, 6134, 578, 1244, 18, 588, 1499, 2668, 529, 6134, 2934, 2079, 2668, 67, 2187...
ParseDbg.add("parse_ver (header) version(%s) = %s (%s)" % (plugin, p_ver_orig, p_ver))
self.pdbg("parse_ver (header) version(%s) = %s (%s)" % (plugin, p_ver_orig, p_ver))
def parse_ver(self): match = re_ver_fun.match(self.buffer) if match: p = match.span(0)[1] self.buffer = self.buffer[p:] ParseDbg.add("parse_ver new buffer = %s" % self.buffer) op = match.group(1) orig_ver = match.group(2) ver = format_version(orig_ver) plugin = C.cname(match.group(3)) expr = "[VER %s %s %s]" % (op, ori...
57b9dbd56a9e011788ef60900e9a91776ddbb48d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2827/57b9dbd56a9e011788ef60900e9a91776ddbb48d/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 502, 12, 2890, 4672, 845, 273, 283, 67, 502, 67, 12125, 18, 1916, 12, 2890, 18, 4106, 13, 309, 845, 30, 293, 273, 845, 18, 3969, 12, 20, 25146, 21, 65, 365, 18, 4106, 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, 1109, 67, 502, 12, 2890, 4672, 845, 273, 283, 67, 502, 67, 12125, 18, 1916, 12, 2890, 18, 4106, 13, 309, 845, 30, 293, 273, 845, 18, 3969, 12, 20, 25146, 21, 65, 365, 18, 4106, 273...
HamFolderItemsEvent)
HamFolderItemsEvent, "filtering")
def UpdateFolderHooks(self): config = self.manager.config.filter new_hooks = {} new_hooks.update( self._HookFolderEvents(config.watch_folder_ids, config.watch_include_sub, HamFolderItemsEvent) ) # For spam manually moved if config.spam_folder_id: new_hooks.update( self._HookFolderEvents([config.spam_folder_id], False, ...
54e586400b93724e781110ac3a96d9911643ea6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/54e586400b93724e781110ac3a96d9911643ea6f/addin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 3899, 13620, 12, 2890, 4672, 642, 273, 365, 18, 4181, 18, 1425, 18, 2188, 394, 67, 10468, 273, 2618, 394, 67, 10468, 18, 2725, 12, 365, 6315, 5394, 3899, 3783, 12, 1425, 18, 7585...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 3899, 13620, 12, 2890, 4672, 642, 273, 365, 18, 4181, 18, 1425, 18, 2188, 394, 67, 10468, 273, 2618, 394, 67, 10468, 18, 2725, 12, 365, 6315, 5394, 3899, 3783, 12, 1425, 18, 7585...
if USE_FROZEN: frozenmodules = []
if USE_ZIPIMPORT: import zipfile relpath = pathjoin("Contents", "Resources", ZIP_ARCHIVE) abspath = pathjoin(self.bundlepath, relpath) zf = zipfile.ZipFile(abspath, "w", zipfile.ZIP_DEFLATED)
def addPythonModules(self): self.message("Adding Python modules", 1)
fe0a44eba5386cceb89f4dbb183ff48b4d42426e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fe0a44eba5386cceb89f4dbb183ff48b4d42426e/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 15774, 7782, 12, 2890, 4672, 365, 18, 2150, 2932, 13962, 6600, 4381, 3113, 404, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 527, 15774, 7782, 12, 2890, 4672, 365, 18, 2150, 2932, 13962, 6600, 4381, 3113, 404, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gnucap += self.to_gnucap_res(self.gnucap_name + "_all", 0, 2, self.resitance) return gnucap
gnucap_resp = self.to_gnucap_res(self.gnucap_name + "_all", 0, 2, self.resitance) gnucap[0] += gnucap_resp[0] gnucap[1] += gnucap_resp[1] return [gnucap[0], gnucap[1]]
def to_gnucap(self, model):
13ee6c41f57e9506834260f5eae4b05b66b6faeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/13ee6c41f57e9506834260f5eae4b05b66b6faeb/electric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 1600, 5286, 438, 12, 2890, 16, 938, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 1600, 5286, 438, 12, 2890, 16, 938, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ticket['priority'] = bug['priority']
ticket['priority'] = bug['priority'].lower()
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "B...
63f7bce156a2ed5a10227f95c07a9ae105efaf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/63f7bce156a2ed5a10227f95c07a9ae105efaf62/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...
flavorFilter=FLAVOR_FILTER_BEST, pathList = [],
flavorFilter=FLAVOR_FILTER_BEST,
def displayTroves(cfg, troveSpecs=[], whatProvidesList=[], # query options versionFilter=VERSION_FILTER_LATEST, flavorFilter=FLAVOR_FILTER_BEST, pathList = [], useAffinity = False, # trove options info = False, digSigs = False, showDeps = False, showBuildReqs = False, # file options ls = False, lsl = False, ids = False...
265bcb4c0689a25b47b13c420fe54e28b29f7ab4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/265bcb4c0689a25b47b13c420fe54e28b29f7ab4/queryrep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 56, 303, 3324, 12, 7066, 16, 23432, 537, 15999, 22850, 6487, 4121, 17727, 682, 22850, 6487, 468, 843, 702, 1177, 1586, 33, 5757, 67, 11126, 67, 10512, 882, 16, 19496, 1586, 33, 42,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 56, 303, 3324, 12, 7066, 16, 23432, 537, 15999, 22850, 6487, 4121, 17727, 682, 22850, 6487, 468, 843, 702, 1177, 1586, 33, 5757, 67, 11126, 67, 10512, 882, 16, 19496, 1586, 33, 42,...
self.addstr(' -'*(self.width//2-1))
self.addnstr('- '*(self.width//2), self.width)
def write_line_separator(self): """ """ self.win.attron(curses.color_pair(theme.COLOR_NEW_TEXT_SEPARATOR)) self.addstr(' -'*(self.width//2-1)) self.win.attroff(curses.color_pair(theme.COLOR_NEW_TEXT_SEPARATOR))
53a5536cf12cbe8474f37b1c8e31b60489b2b62f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/53a5536cf12cbe8474f37b1c8e31b60489b2b62f/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1369, 67, 11287, 12, 2890, 4672, 3536, 3536, 365, 18, 8082, 18, 1747, 265, 12, 1397, 2420, 18, 3266, 67, 6017, 12, 7997, 18, 10989, 67, 12917, 67, 5151, 67, 4550, 3719, 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, 1045, 67, 1369, 67, 11287, 12, 2890, 4672, 3536, 3536, 365, 18, 8082, 18, 1747, 265, 12, 1397, 2420, 18, 3266, 67, 6017, 12, 7997, 18, 10989, 67, 12917, 67, 5151, 67, 4550, 3719, 365, ...
names.extend(filter(lambda n: n not in ('.', '..'), dir.entries.keys()))
def _glob1(self, pattern, ondisk=True, source=False, strings=False): """ Globs for and returns a list of entry names matching a single pattern in this directory.
2958b4895e2270f8e56503dbda89ab0dced75be0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/2958b4895e2270f8e56503dbda89ab0dced75be0/FS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10581, 21, 12, 2890, 16, 1936, 16, 603, 10863, 33, 5510, 16, 1084, 33, 8381, 16, 2064, 33, 8381, 4672, 3536, 18901, 87, 364, 471, 1135, 279, 666, 434, 1241, 1257, 3607, 279, 2202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10581, 21, 12, 2890, 16, 1936, 16, 603, 10863, 33, 5510, 16, 1084, 33, 8381, 16, 2064, 33, 8381, 4672, 3536, 18901, 87, 364, 471, 1135, 279, 666, 434, 1241, 1257, 3607, 279, 2202,...
for child in doc.childNodes: if child.nodeType == xml.dom.core.ELEMENT: tables = child.getElementsByTagName("table") for table in tables: fixup_table(doc, table)
for table in find_all_elements(doc, "table"): fixup_table(doc, table)
def fixup_table_structures(doc): # must be done after remap_element_names(), or the tables won't be found for child in doc.childNodes: if child.nodeType == xml.dom.core.ELEMENT: tables = child.getElementsByTagName("table") for table in tables: fixup_table(doc, table)
6fd3b456df1736e218c2900c3479631306a4f4d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6fd3b456df1736e218c2900c3479631306a4f4d7/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 2121, 67, 27979, 12, 2434, 4672, 468, 1297, 506, 2731, 1839, 21674, 67, 2956, 67, 1973, 9334, 578, 326, 4606, 8462, 1404, 506, 1392, 364, 1014, 316, 1104, 67, 454, 67, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 2121, 67, 27979, 12, 2434, 4672, 468, 1297, 506, 2731, 1839, 21674, 67, 2956, 67, 1973, 9334, 578, 326, 4606, 8462, 1404, 506, 1392, 364, 1014, 316, 1104, 67, 454, 67, 6...
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR','EXPL','IPCT','PROJ','ASPC','SOUN','REGN'))
self.longTypes = set(('MGEF','ACTI','LIGH','WTHR','CONT','DOOR','EXPL','IPCT','PROJ','ASPC','WEAP','SOUN','REGN'))
def initPatchFile(self,patchFile,loadMods): """Prepare to handle specified patch mod. All functions are called after this.""" Patcher.initPatchFile(self,patchFile,loadMods) self.id_data = {} #--Names keyed by long fid. self.srcClasses = set() #--Record classes actually provided by src mods/files. self.sourceMods = self...
a615e8547fe5fe7615e4e9bc94e9cafa1925f9da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/a615e8547fe5fe7615e4e9bc94e9cafa1925f9da/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7332, 812, 12, 2890, 16, 2272, 812, 16, 945, 1739, 87, 4672, 3536, 7543, 358, 1640, 1269, 4729, 681, 18, 4826, 4186, 854, 2566, 1839, 333, 12123, 12042, 264, 18, 2738, 7332, 812, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7332, 812, 12, 2890, 16, 2272, 812, 16, 945, 1739, 87, 4672, 3536, 7543, 358, 1640, 1269, 4729, 681, 18, 4826, 4186, 854, 2566, 1839, 333, 12123, 12042, 264, 18, 2738, 7332, 812, ...
if(t.name == "SUSPEND START"): data.vprint("SUSPEND START %f %s:%d" % (t.time, sysvals.ftracefile, count)) inthepipe = True
if(t.name == 'SUSPEND START'): testrun[testidx].inthepipe = True data.setStart(t.time)
def analyzeTraceLog(): global sysvals, data # the ftrace data is tied to the dmesg data if(not data.usedmesg): return # read through the ftrace and parse the data data.vprint("Analyzing the ftrace data...") ftrace_line_fmt = r"^ *(?P<time>[0-9\.]*) *\| *(?P<cpu>[0-9]*)\)"+\ " *(?P<proc>.*)-(?P<pid>[0-9]*) *\|"+\ "[ +...
0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 3448, 1343, 13332, 2552, 2589, 4524, 16, 501, 225, 468, 326, 284, 5129, 501, 353, 268, 2092, 358, 326, 9113, 281, 75, 501, 309, 12, 902, 501, 18, 3668, 26244, 75, 4672, 327, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 3448, 1343, 13332, 2552, 2589, 4524, 16, 501, 225, 468, 326, 284, 5129, 501, 353, 268, 2092, 358, 326, 9113, 281, 75, 501, 309, 12, 902, 501, 18, 3668, 26244, 75, 4672, 327, 225...
def poll(self):
def poll(self, _deadstate=None):
def poll(self): """Check if child process has terminated. Returns returncode attribute.""" if self.returncode is None: if WaitForSingleObject(self._handle, 0) == WAIT_OBJECT_0: self.returncode = GetExitCodeProcess(self._handle) _active.remove(self) return self.returncode
5caf2e855f5d02e4881436d90cc26a4288483b36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5caf2e855f5d02e4881436d90cc26a4288483b36/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 2890, 16, 389, 22097, 2019, 33, 7036, 4672, 3536, 1564, 309, 1151, 1207, 711, 14127, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, 309, 24129, 5281,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 2890, 16, 389, 22097, 2019, 33, 7036, 4672, 3536, 1564, 309, 1151, 1207, 711, 14127, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, 309, 24129, 5281,...
This function uses the algorithm of [Edmonds74] to calculate the
This function uses the algorithm of [Edmonds74]_ to calculate the
def wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None): r""" Calculate the Wigner 9j symbol `Wigner9j(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)`. INPUT: - ``j_1``, ..., ``j_9`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation....
88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 29, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 525, 67, 27, 16, 525, 67, 28, 16, 525, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 29, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 525, 67, 27, 16, 525, 67, 28, 16, 525, 6...
infos.append((link, rawlink, fragment))
infos.append((link, rawlink, fragment))
def getlinkinfos(self):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1232, 18227, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1232, 18227, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
print 'Got',lang_identifier% sudo wicd -foe Traceback (most recent call last): File "/usr/lib/wicd/wicd-daemon.py", line 59, in <module> from wicd.configmanager import ConfigManager ImportError: No module named configmanager
print 'Got',lang_identifier
def run(self): import urllib, shutil shutil.rmtree('translations/') os.makedirs('translations') filename, headers = urllib.urlretrieve('http://wicd.net/translator/get_id_list.php') id_file = open(filename, 'r') lines = id_file.readlines() # remove the \n from the end of lines, and remove blank entries lines = [ x.strip...
9a846b8e43389c1112d3265298f6d5b150aacfd8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12280/9a846b8e43389c1112d3265298f6d5b150aacfd8/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1930, 11527, 16, 11060, 11060, 18, 86, 17371, 2668, 13457, 2473, 13, 1140, 18, 81, 9477, 10539, 2668, 13457, 6134, 1544, 16, 1607, 273, 11527, 18, 718, 17466, 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, 1086, 12, 2890, 4672, 1930, 11527, 16, 11060, 11060, 18, 86, 17371, 2668, 13457, 2473, 13, 1140, 18, 81, 9477, 10539, 2668, 13457, 6134, 1544, 16, 1607, 273, 11527, 18, 718, 17466, 2668, ...
return _PackInt1(97) + _PackInt1(term) else: return _PackInt1(98) + _PackInt4(term)
return _PackInt1(MAGIC_SMALL_INTEGER) + _PackInt1(term) else: return _PackInt1(MAGIC_INTEGER) + _PackInt4(term)
def _PackInt(term): if 0 <= term < 256: return _PackInt1(97) + _PackInt1(term) else: return _PackInt1(98) + _PackInt4(term)
f5a33431908f2d30884e237b626d15ed55b2f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/f5a33431908f2d30884e237b626d15ed55b2f169/erl_term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4420, 1702, 12, 6408, 4672, 309, 374, 1648, 2481, 411, 8303, 30, 327, 389, 4420, 1702, 21, 12, 49, 22247, 67, 23882, 67, 14217, 13, 397, 389, 4420, 1702, 21, 12, 6408, 13, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4420, 1702, 12, 6408, 4672, 309, 374, 1648, 2481, 411, 8303, 30, 327, 389, 4420, 1702, 21, 12, 49, 22247, 67, 23882, 67, 14217, 13, 397, 389, 4420, 1702, 21, 12, 6408, 13, 469, ...
IStatusMessage(self.request).addStatusMessage(_('statusmessage_no_recipients'), type='error')
IStatusMessage(self.request).addStatusMessage(_(u'statusmessage_no_recipients'), type='error')
def send_notification(self): """""" sp = getToolByName(self.context, 'portal_properties').site_properties use_view_action = self.context.Type() in sp.getProperty('typesUseViewActionInListings', ()) if len(self.request.get('to_list', [])): comment = self.request.get('comment', '') notify(NotificationEvent(self.context...
51fd2ea9410fc7104e2365d87e081482205eac69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11890/51fd2ea9410fc7104e2365d87e081482205eac69/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 9927, 12, 2890, 4672, 3536, 8395, 1694, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 4738, 16063, 4256, 67, 4738, 999, 67, 1945, 67, 1128, 273, 365, 18, 2472...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 9927, 12, 2890, 4672, 3536, 8395, 1694, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 4738, 16063, 4256, 67, 4738, 999, 67, 1945, 67, 1128, 273, 365, 18, 2472...
print "Nick is not okay"
LOG.debug( "Nick is not okay" )
def checkIncomingNick(self, n): try: inick = dc_to_irc(n.nick)
94194b78b83de3d89b6ffd035804de2c82bbaff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/94194b78b83de3d89b6ffd035804de2c82bbaff0/dtella_bridgeserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 20370, 29756, 12, 2890, 16, 290, 4672, 775, 30, 316, 1200, 273, 6744, 67, 869, 67, 481, 71, 12, 82, 18, 17091, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 20370, 29756, 12, 2890, 16, 290, 4672, 775, 30, 316, 1200, 273, 6744, 67, 869, 67, 481, 71, 12, 82, 18, 17091, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
provided, changes to the CKAN regsiter will not be allowed. Please use the
provided, changes to the CKAN register will not be allowed. Please use the
def help_ckanregister(self, line=None): import datapkg usage = \
efda96f2ec778f19a32585def08d503701b30cce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12519/efda96f2ec778f19a32585def08d503701b30cce/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 363, 304, 4861, 12, 2890, 16, 980, 33, 7036, 4672, 1930, 501, 10657, 4084, 273, 521, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 363, 304, 4861, 12, 2890, 16, 980, 33, 7036, 4672, 1930, 501, 10657, 4084, 273, 521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if (res == 11):
sig = res & 0x7F if (GetVerbose() and res != 0): print GetColor("red") + "Process exited with exit status %d and signal code %d" % ((res & 0xFF00) >> 8, sig) + GetColor() if (sig == signal.SIGINT): raise KeyboardInterrupt if (sig == signal.SIGSEGV or res == 35584 or res == 34304):
def oscmd(cmd, ignoreError = False): if VERBOSE: print GetColor("blue") + cmd.split(" ", 1)[0] + " " + GetColor("magenta") + cmd.split(" ", 1)[1] + GetColor() sys.stdout.flush() if sys.platform == "win32": exe = cmd.split()[0] if not (len(exe) > 4 and exe[-4:] == ".exe"): exe += ".exe" if os.path.isfile(exe)==0: for i ...
8bfdcc76bfb217bdf5e3398e2da84f2077af9270 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/8bfdcc76bfb217bdf5e3398e2da84f2077af9270/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31476, 1264, 12, 4172, 16, 2305, 668, 273, 1083, 4672, 309, 27857, 30, 1172, 968, 2957, 2932, 14081, 7923, 397, 1797, 18, 4939, 2932, 3104, 404, 25146, 20, 65, 397, 315, 315, 397, 968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31476, 1264, 12, 4172, 16, 2305, 668, 273, 1083, 4672, 309, 27857, 30, 1172, 968, 2957, 2932, 14081, 7923, 397, 1797, 18, 4939, 2932, 3104, 404, 25146, 20, 65, 397, 315, 315, 397, 968, ...
source = os.path.expanduser(source)
dest = os.path.expanduser(dest)
def AtomsWriter(dest, format=None, *args, **kwargs): """Return a file-like object capable of writing Atoms in the specified format. If `format` is not given it is inferred from the file extension of `dest`.""" if format is None: if isinstance(dest, str): if dest in AtomsWriters: format = dest else: source = os.path.exp...
5a047a73137b91dfc492d7c676cf0fb285c11cda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/5a047a73137b91dfc492d7c676cf0fb285c11cda/atomslist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7149, 87, 2289, 12, 10488, 16, 740, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 990, 279, 585, 17, 5625, 733, 22863, 434, 7410, 7149, 87, 316, 326, 1269, 740, 18, 971, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7149, 87, 2289, 12, 10488, 16, 740, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 990, 279, 585, 17, 5625, 733, 22863, 434, 7410, 7149, 87, 316, 326, 1269, 740, 18, 971, 1375, ...
this = apply(_quickfix.new_SecuritySettlAgentCode, args)
this = _quickfix.new_SecuritySettlAgentCode(*args)
def __init__(self, *args): this = apply(_quickfix.new_SecuritySettlAgentCode, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 4368, 694, 6172, 3630, 1085, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 4368, 694, 6172, 3630, 1085, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, ...
if self.vline: if self.mattri: (m, n, count, dbl)=self.mattri[0] else: n=len(self.idx) objfile.write("LINES\t0 %d\n" % n)
for (start, count) in self.lines: objfile.write("LINES\t%d %d\n" % (start, count))
def export(self, scale, output, fslayers): if self.comment=="X-Plane library object": return if scale!=1: comment="%s scaled x%s" % (self.comment, scale) filename="%s_%02d%02d.obj" % ( self.filename[:-4], int(scale), round(scale*100,0)%100) else: comment=self.comment filename=self.filename
d52454584fd931bed95ea87de25c69b1469d201c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11663/d52454584fd931bed95ea87de25c69b1469d201c/convutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 12, 2890, 16, 3159, 16, 876, 16, 284, 2069, 3907, 4672, 309, 365, 18, 3469, 31713, 60, 17, 19505, 5313, 733, 6877, 327, 309, 3159, 5, 33, 21, 30, 2879, 11613, 87, 12304, 619, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 12, 2890, 16, 3159, 16, 876, 16, 284, 2069, 3907, 4672, 309, 365, 18, 3469, 31713, 60, 17, 19505, 5313, 733, 6877, 327, 309, 3159, 5, 33, 21, 30, 2879, 11613, 87, 12304, 619, 9...
def get_path_links(href, path, rev): links = [] parts = path.split('/') if not parts[-1]: parts.pop() path = '/' for part in parts: path = path + part + '/' links.append({ 'name': part or 'root', 'href': href.browser(path, rev=rev) })
def get_path_links(href, fullpath, rev): links = [{'name': 'root', 'href': href.browser(rev=rev)}] path = '' for part in [p for p in fullpath.split('/') if p]: path += part + '/' links.append({'name': part, 'href': href.browser(path, rev=rev)})
def get_path_links(href, path, rev): links = [] parts = path.split('/') if not parts[-1]: parts.pop() path = '/' for part in parts: path = path + part + '/' links.append({ 'name': part or 'root', 'href': href.browser(path, rev=rev) }) return links
67190d8dcb06dd922aeef78ed791fe079d0983f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/67190d8dcb06dd922aeef78ed791fe079d0983f5/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 67, 7135, 12, 7547, 16, 15170, 16, 5588, 4672, 4716, 273, 20031, 11, 529, 4278, 296, 3085, 2187, 296, 7547, 4278, 3897, 18, 11213, 12, 9083, 33, 9083, 13, 11839, 589, 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, 336, 67, 803, 67, 7135, 12, 7547, 16, 15170, 16, 5588, 4672, 4716, 273, 20031, 11, 529, 4278, 296, 3085, 2187, 296, 7547, 4278, 3897, 18, 11213, 12, 9083, 33, 9083, 13, 11839, 589, 273...
def test_from_pkg_import_module(self): import sys sys.path.append('impsubdir') from pkg import a self.assert_('pkg' in sys.modules) self.assert_('pkg.a' in sys.modules) self.assert_(hasattr(a, 'imamodule'))
def test_from_pkg_import_module(self): import sys sys.path.append('impsubdir') from pkg import a self.assert_('pkg' in sys.modules) self.assert_('pkg.a' in sys.modules) self.assert_(hasattr(a, 'imamodule'))
def test_from_pkg_import_module(self): import sys sys.path.append('impsubdir') from pkg import a self.assert_('pkg' in sys.modules) self.assert_('pkg.a' in sys.modules) self.assert_(hasattr(a, 'imamodule'))
d8d6120b82e16ed4a6d60fa312d81a3f25c467ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d8d6120b82e16ed4a6d60fa312d81a3f25c467ac/test_import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2080, 67, 10657, 67, 5666, 67, 2978, 12, 2890, 4672, 1930, 2589, 2589, 18, 803, 18, 6923, 2668, 381, 1121, 373, 1214, 6134, 628, 3475, 1930, 279, 365, 18, 11231, 67, 2668, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2080, 67, 10657, 67, 5666, 67, 2978, 12, 2890, 4672, 1930, 2589, 2589, 18, 803, 18, 6923, 2668, 381, 1121, 373, 1214, 6134, 628, 3475, 1930, 279, 365, 18, 11231, 67, 2668, 10...
itemId = ''
itemId = None
def addAcl(self, userGroup, trovePattern, label, write, capped, admin): cu = self.db.cursor()
26f4f246a1a3cefb1f833223a913259960f2efca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/26f4f246a1a3cefb1f833223a913259960f2efca/netauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 13538, 12, 2890, 16, 26205, 16, 23432, 537, 3234, 16, 1433, 16, 1045, 16, 3523, 1845, 16, 3981, 4672, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 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, 527, 13538, 12, 2890, 16, 26205, 16, 23432, 537, 3234, 16, 1433, 16, 1045, 16, 3523, 1845, 16, 3981, 4672, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 2, -100, -100, -100, -100, -100, -...
self.__conn.simple_bind_s( self.__binddn, self.__bindpw )
try: self.__conn.simple_bind_s( self.__binddn, self.__bindpw ) except ldap.LDAPError: del self.__conn self.__connect()
def _search_ldap(self, username ): """ Search LDAP for this username and return info about them @raise error.NotUnique: if more than one user is found, this shouldn't happen @raise error.NotUser: if the user doesn't exist in this auth source @return: information from LDAP related to this user """ self.__conn.simple_b...
e6c600d822ed72b0d33cb2f49d3f67dfa7796976 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7602/e6c600d822ed72b0d33cb2f49d3f67dfa7796976/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 67, 14394, 12, 2890, 16, 2718, 262, 30, 3536, 5167, 11916, 364, 333, 2718, 471, 327, 1123, 2973, 2182, 225, 632, 11628, 555, 18, 1248, 6303, 30, 309, 1898, 2353, 1245, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3072, 67, 14394, 12, 2890, 16, 2718, 262, 30, 3536, 5167, 11916, 364, 333, 2718, 471, 327, 1123, 2973, 2182, 225, 632, 11628, 555, 18, 1248, 6303, 30, 309, 1898, 2353, 1245, 729, ...
'installer_item_hash'):
item_hash_key):
def download_installeritem(item_pl): """Downloads a installer item. Raises an error if there are issues...""" location = item_pl.get('installer_item_location') if not location: raise MunkiDownloadError("No installer_item_location in item info.") ManagedInstallDir = munkicommon.pref('ManagedInstallDir') downloadbaseurl...
7233ea384c0d8f73c40e1623556e9fc24f98637e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/7233ea384c0d8f73c40e1623556e9fc24f98637e/updatecheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 20163, 1726, 12, 1726, 67, 412, 4672, 3536, 22141, 279, 16050, 761, 18, 20497, 392, 555, 309, 1915, 854, 8296, 7070, 3660, 2117, 273, 761, 67, 412, 18, 588, 2668, 20163, 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, 4224, 67, 20163, 1726, 12, 1726, 67, 412, 4672, 3536, 22141, 279, 16050, 761, 18, 20497, 392, 555, 309, 1915, 854, 8296, 7070, 3660, 2117, 273, 761, 67, 412, 18, 588, 2668, 20163, 67, ...
def _get_discount_invoice(self, cursor, user, move_line):
def _get_discount_invoice(self, cr, uid, move_line):
def _get_discount_invoice(self, cursor, user, move_line): '''Return the discount for the move line''' return 0.0
18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 23650, 67, 16119, 12, 2890, 16, 4422, 16, 4555, 16, 3635, 67, 1369, 4672, 9163, 990, 326, 12137, 364, 326, 3635, 980, 26418, 327, 374, 18, 20, 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, 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, 588, 67, 23650, 67, 16119, 12, 2890, 16, 4422, 16, 4555, 16, 3635, 67, 1369, 4672, 9163, 990, 326, 12137, 364, 326, 3635, 980, 26418, 327, 374, 18, 20, 2, -100, -100, -100, -100, ...
nm = aux_node.name docuname = nm[ : len(nm) - 4 ]
docuname = aux_node.name[:-4]
def tex_build(task, command='LATEX'): env = task.env bld = task.generator.bld if not env['PROMPT_LATEX']: env.append_value('LATEXFLAGS', '-interaction=batchmode') env.append_value('PDFLATEXFLAGS', '-interaction=batchmode') fun = latex_fun if command == 'PDFLATEX': fun = pdflatex_fun node = task.inputs[0] srcfile = n...
c65c026b2df5cefd7d1a7fbd065c15aafae26ea7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/c65c026b2df5cefd7d1a7fbd065c15aafae26ea7/tex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16573, 67, 3510, 12, 4146, 16, 1296, 2218, 10512, 60, 11, 4672, 1550, 273, 1562, 18, 3074, 324, 1236, 273, 1562, 18, 8812, 18, 70, 1236, 225, 309, 486, 1550, 3292, 3373, 49, 1856, 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, 16573, 67, 3510, 12, 4146, 16, 1296, 2218, 10512, 60, 11, 4672, 1550, 273, 1562, 18, 3074, 324, 1236, 273, 1562, 18, 8812, 18, 70, 1236, 225, 309, 486, 1550, 3292, 3373, 49, 1856, 67, ...
"Keyword 'My Kw' defined multiple times")
"Keyword 'my kw' defined multiple times")
def test_creating_duplicate_keyword_in_test_case_file(self): lib = self._get_userlibrary('NOT_RESOURCE', 'MYKW', 'my kw') assert_equals(len(lib.handlers.keys()), 1) assert_true(lib.handlers.has_key('mykw')) assert_equals(lib.handlers['mykw']._error, "Keyword 'My Kw' defined multiple times")
763fd32e4e361435d2b8599a84f8c71d56f84f5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/763fd32e4e361435d2b8599a84f8c71d56f84f5e/test_userlibrary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 23799, 67, 17342, 67, 11041, 67, 267, 67, 3813, 67, 3593, 67, 768, 12, 2890, 4672, 2561, 273, 365, 6315, 588, 67, 1355, 12083, 2668, 4400, 67, 11395, 2187, 296, 22114, 30134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23799, 67, 17342, 67, 11041, 67, 267, 67, 3813, 67, 3593, 67, 768, 12, 2890, 4672, 2561, 273, 365, 6315, 588, 67, 1355, 12083, 2668, 4400, 67, 11395, 2187, 296, 22114, 30134, ...
m[i,j] = 0
mat[i,j] = 0
def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix...
838a498abee29f10814d0a05c45a15fbb11d024c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/838a498abee29f10814d0a05c45a15fbb11d024c/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 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, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 67, ...
def __init__(self, space, level=rzlib.Z_DEFAULT_COMPRESSION):
def __init__(self, space, level=rzlib.Z_DEFAULT_COMPRESSION, method=rzlib.Z_DEFLATED, wbits=rzlib.MAX_WBITS, memLevel=rzlib.DEF_MEM_LEVEL, strategy=rzlib.Z_DEFAULT_STRATEGY):
def __init__(self, space, level=rzlib.Z_DEFAULT_COMPRESSION): # XXX CPython actually exposes 4 more undocumented parameters beyond # level. self.space = space try: self.stream = rzlib.deflateInit(level) except rzlib.RZlibError, e: raise zlib_error(self.space, e.msg) except ValueError: raise OperationError(space.w_Value...
73c850b3db71ca9a722bd8033e4650ce655940ae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/73c850b3db71ca9a722bd8033e4650ce655940ae/interp_zlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 1801, 33, 86, 94, 2941, 18, 62, 67, 5280, 67, 4208, 14227, 4672, 468, 11329, 5181, 18490, 6013, 431, 10522, 1059, 1898, 640, 5457, 329, 1472, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3476, 16, 1801, 33, 86, 94, 2941, 18, 62, 67, 5280, 67, 4208, 14227, 4672, 468, 11329, 5181, 18490, 6013, 431, 10522, 1059, 1898, 640, 5457, 329, 1472, 1...
memory = "0"
memory = 0 vcpus = 1
def GetAllInstancesInfo(self): """Get properties of all instances.
bfc30ec0c8afc0a2d8299d1d55d343fd32d51894 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/bfc30ec0c8afc0a2d8299d1d55d343fd32d51894/hv_fake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17594, 5361, 966, 12, 2890, 4672, 3536, 967, 1790, 434, 777, 3884, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 17594, 5361, 966, 12, 2890, 4672, 3536, 967, 1790, 434, 777, 3884, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.curNode.appendChild(node) self.curNode = node
def startElement(self, name, attrs): node = self.document.createElement(name)
37ce29a4b515f0f3d5c14c4ccb2c320ae150df99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/37ce29a4b515f0f3d5c14c4ccb2c320ae150df99/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 2890, 16, 508, 16, 3422, 4672, 756, 273, 365, 18, 5457, 18, 2640, 1046, 12, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 2890, 16, 508, 16, 3422, 4672, 756, 273, 365, 18, 5457, 18, 2640, 1046, 12, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
import priv, database
import priv
def handler(self, **args): """Allows someone to add material onto a factoid (that isn't locked) by saying "foo is also bar", for example""" import priv, database from irclib import Event from time import time target = self.return_to_sender(args) # args["text"] should look something like: # "moobot: foo is also bar bl...
e1e6b64160001d2d23ad7d039dc8a4073fa7d332 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10749/e1e6b64160001d2d23ad7d039dc8a4073fa7d332/factoids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 3536, 19132, 18626, 358, 527, 9390, 10170, 279, 5410, 839, 261, 19056, 5177, 1404, 8586, 13, 635, 12532, 310, 315, 11351, 353, 2546, 4653, 3113, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 3536, 19132, 18626, 358, 527, 9390, 10170, 279, 5410, 839, 261, 19056, 5177, 1404, 8586, 13, 635, 12532, 310, 315, 11351, 353, 2546, 4653, 3113, 364, ...
headers = _header_parser.parse(self.fp)
headers = rfc822.Message(self.fp)
def read_multi(self, environ, keep_blank_values, strict_parsing): """Internal: read a part that is itself multipart.""" ib = self.innerboundary if not valid_boundary(ib): raise ValueError, 'Invalid boundary in multipart form: %r' % (ib,) self.list = [] klass = self.FieldStorageClass or self.__class__ part = klass(self....
3a703b60593e2bc2ddde232eaad365e4c126ff42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3a703b60593e2bc2ddde232eaad365e4c126ff42/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 7027, 12, 2890, 16, 5473, 16, 3455, 67, 12111, 67, 2372, 16, 5490, 67, 24979, 4672, 3536, 3061, 30, 855, 279, 1087, 716, 353, 6174, 10263, 12123, 9834, 273, 365, 18, 7872, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 7027, 12, 2890, 16, 5473, 16, 3455, 67, 12111, 67, 2372, 16, 5490, 67, 24979, 4672, 3536, 3061, 30, 855, 279, 1087, 716, 353, 6174, 10263, 12123, 9834, 273, 365, 18, 7872, 166...
def __song_started(self, player, song, next):
def __song_started(self, player, song, next, play):
def __song_started(self, player, song, next): next.set_sensitive(bool(song))
4bc11d2a2ab986e0795a30d4bb81dbd9ad42f6c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/4bc11d2a2ab986e0795a30d4bb81dbd9ad42f6c5/controls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 816, 75, 67, 14561, 12, 2890, 16, 7291, 16, 17180, 16, 1024, 16, 6599, 4672, 1024, 18, 542, 67, 23481, 12, 6430, 12, 816, 75, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 816, 75, 67, 14561, 12, 2890, 16, 7291, 16, 17180, 16, 1024, 16, 6599, 4672, 1024, 18, 542, 67, 23481, 12, 6430, 12, 816, 75, 3719, 2, -100, -100, -100, -100, -100, -100, -100, ...
data_ = line[key_counter.i_iobs] if(key_counter.i_flag is not None): flag_ = line[key_counter.i_flag] if(data_.count("*")>0 or data_.count("?")>0 or data_=="."): continue
def __init__(self, key_counter, file_name, file_lines, wavelength_id, crystal_id, crystal_symmetry): self.indices = flex.miller_index() self.data = flex.double() self.sigmas = flex.double() self.flags = flex.std_string() self.file_name = file_name start_counter = 0 start_flag = False for i_line, line in enumerate(file_...
a65b21a3cd6a6059e3de1205015024f5517301c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/a65b21a3cd6a6059e3de1205015024f5517301c3/cif_as_mtz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 498, 67, 7476, 16, 585, 67, 529, 16, 585, 67, 3548, 16, 21410, 67, 350, 16, 4422, 31365, 67, 350, 16, 4422, 31365, 67, 8117, 18042, 4672, 365, 18, 6836...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 498, 67, 7476, 16, 585, 67, 529, 16, 585, 67, 3548, 16, 21410, 67, 350, 16, 4422, 31365, 67, 350, 16, 4422, 31365, 67, 8117, 18042, 4672, 365, 18, 6836...
print 'Generating %s' % vcproj_filename
def _GenerateProject(vcproj_filename, build_file, spec, options): """Generates a vcproj file. Arguments: vcproj_filename: Filename of the vcproj file to generate. build_file: Filename of the .gyp file that the vcproj file comes from. spec: The target dictionary containing the properties of the target. """ print 'Gener...
5d4328382a6fdbe17089b3cfff76babe72d3e80d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/5d4328382a6fdbe17089b3cfff76babe72d3e80d/msvs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4625, 4109, 12, 4227, 17995, 67, 3459, 16, 1361, 67, 768, 16, 857, 16, 702, 4672, 3536, 6653, 279, 12802, 17995, 585, 18, 225, 13599, 30, 12802, 17995, 67, 3459, 30, 16671, 434, 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, 389, 4625, 4109, 12, 4227, 17995, 67, 3459, 16, 1361, 67, 768, 16, 857, 16, 702, 4672, 3536, 6653, 279, 12802, 17995, 585, 18, 225, 13599, 30, 12802, 17995, 67, 3459, 30, 16671, 434, 3...
resolution=resolutions[0]))
resolution=tag(resolutions[0], resolution)))
def render_ticket_action_control(self, req, ticket, action):
2e3fe1993c32c7abb8d0c7e86eec4f07fb7bb7cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/2e3fe1993c32c7abb8d0c7e86eec4f07fb7bb7cd/default_workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
yield self.get_html(self.url)
max_per_page = 1000 max_pages = 10 delta = datetime.datetime.now() - self.last_updated_time() hours_ago = math.ceil((delta.seconds / 3600.0) + (delta.days * 24)) for page in range(1, max_pages + 1): url = LIST_URL + '&start=%d&page=%d&num_results=%d' % ( hours_ago, page, max_per_page) yield self.get_html(url)
def list_pages(self): yield self.get_html(self.url)
7fa37ba874d94c12b5efdfb819de1a05f663c91f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10327/7fa37ba874d94c12b5efdfb819de1a05f663c91f/seeclickfix_retrieval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 7267, 12, 2890, 4672, 2824, 365, 18, 588, 67, 2620, 12, 2890, 18, 718, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 7267, 12, 2890, 4672, 2824, 365, 18, 588, 67, 2620, 12, 2890, 18, 718, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
f2.sort() print f2
sf2 = set(u"\\".join((unicode(test_support.TESTFN), f)) for f in f2) self.failUnlessEqual(len(f1), len(self.files)) self.failUnlessEqual(sf2, set(self.files))
def test_listdir(self): f1 = os.listdir(test_support.TESTFN) # Printing f1 is not appropriate, as specific filenames # returned depend on the local encoding f2 = os.listdir(unicode(test_support.TESTFN, sys.getfilesystemencoding())) f2.sort() print f2
8db6caff540618d19a399db320f5777659c98054 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/8db6caff540618d19a399db320f5777659c98054/test_pep277.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1098, 1214, 12, 2890, 4672, 284, 21, 273, 1140, 18, 1098, 1214, 12, 3813, 67, 13261, 18, 16961, 19793, 13, 468, 3038, 310, 284, 21, 353, 486, 5505, 16, 487, 2923, 9066, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1098, 1214, 12, 2890, 4672, 284, 21, 273, 1140, 18, 1098, 1214, 12, 3813, 67, 13261, 18, 16961, 19793, 13, 468, 3038, 310, 284, 21, 353, 486, 5505, 16, 487, 2923, 9066, 468, ...
if(p == "resume_cpu"):
if(p == 'resume_machine'):
def analyzeKernelLog(): global sysvals, data print("PROCESSING DATA") data.vprint("Analyzing the dmesg data...") if(os.path.exists(sysvals.dmesgfile) == False): print("ERROR: %s doesn't exist") % sysvals.dmesgfile return False lf = sortKernelLog() phase = "suspend_runtime" dm = { 'suspend_general': r"PM: Syncing fil...
0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 11286, 1343, 13332, 2552, 2589, 4524, 16, 501, 225, 1172, 2932, 16560, 1360, 8730, 7923, 501, 18, 90, 1188, 2932, 979, 4647, 310, 326, 9113, 281, 75, 501, 7070, 13, 309, 12, 538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 11286, 1343, 13332, 2552, 2589, 4524, 16, 501, 225, 1172, 2932, 16560, 1360, 8730, 7923, 501, 18, 90, 1188, 2932, 979, 4647, 310, 326, 9113, 281, 75, 501, 7070, 13, 309, 12, 538, ...
if hasattr(tree,'xinclude')
if hasattr(tree,'xinclude'):
def fixup_sym_attributes(sym): #if not sym.find('CssParameter'): # return attrib = {} metawriter = sym.attrib.get('meta-writer') if metawriter: attrib['meta-writer'] = metawriter metaoutput = sym.attrib.get('meta-output') if metaoutput: attrib['meta-output'] = metaoutput for css in sym.findall('CssParameter'): key ...
3f2f9fb4e586baa8a7b6b259702e063c33f17bd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12100/3f2f9fb4e586baa8a7b6b259702e063c33f17bd7/upgrade_map_xml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 8117, 67, 4350, 12, 8117, 4672, 468, 430, 486, 5382, 18, 4720, 2668, 7359, 1662, 11, 4672, 468, 565, 327, 5885, 273, 2618, 2191, 6299, 273, 5382, 18, 14588, 18, 588, 266...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 8117, 67, 4350, 12, 8117, 4672, 468, 430, 486, 5382, 18, 4720, 2668, 7359, 1662, 11, 4672, 468, 565, 327, 5885, 273, 2618, 2191, 6299, 273, 5382, 18, 14588, 18, 588, 266...
def __init__(self, text, aspect_ratio=1, textual=False):
def __init__(self, text, aspect_ratio=1, textual=False, widechars='F,W'):
def __init__(self, text, aspect_ratio=1, textual=False): """Take a ASCII art figure and store it, prepare for ``recognize``""" self.aspect_ratio = float(aspect_ratio) self.textual = textual # XXX TODO tab expansion # detect size of input image, store as list of lines self.image = [] max_x = 0 y = 0 for line in text.spl...
e14a8247a278be5c343de11fd68331a6ec306ee6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1203/e14a8247a278be5c343de11fd68331a6ec306ee6/aafigure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 977, 16, 9648, 67, 9847, 33, 21, 16, 25774, 33, 8381, 16, 14812, 7549, 2218, 42, 16, 59, 11, 4672, 3536, 13391, 279, 11768, 3688, 7837, 471, 1707, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 977, 16, 9648, 67, 9847, 33, 21, 16, 25774, 33, 8381, 16, 14812, 7549, 2218, 42, 16, 59, 11, 4672, 3536, 13391, 279, 11768, 3688, 7837, 471, 1707, 518, ...
if 'author' in field.tags: continue
if 'author' in field.tags: break
def _check_basic(self, doc): """ Check the description, author, version, and see-also fields of C{doc}. This is used as a helper function by L{_check_module}, L{_check_class}, and L{_check_func}.
3ae73909296a51f3970680fb4cadb06e12dcd77e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/3ae73909296a51f3970680fb4cadb06e12dcd77e/checker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 13240, 12, 2890, 16, 997, 4672, 3536, 2073, 326, 2477, 16, 2869, 16, 1177, 16, 471, 2621, 17, 31144, 1466, 434, 385, 95, 2434, 5496, 225, 1220, 353, 1399, 487, 279, 4222...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 67, 13240, 12, 2890, 16, 997, 4672, 3536, 2073, 326, 2477, 16, 2869, 16, 1177, 16, 471, 2621, 17, 31144, 1466, 434, 385, 95, 2434, 5496, 225, 1220, 353, 1399, 487, 279, 4222...
l1 = wx.StaticText( self, -1, "wx.ColumnHeader (1001)", (20, 20), (200, 20) )
cntlID = 1001 prompt = "wx.ColumnHeader (%d)" %(cntlID) l1 = wx.StaticText( self, -1, prompt, (20, 20), (200, 20) )
def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log
97785f3f33dd20f2b36619b4084b435cbedc5e2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/97785f3f33dd20f2b36619b4084b435cbedc5e2e/ColumnHeader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 613, 262, 30, 7075, 18, 5537, 16186, 2738, 972, 12, 365, 16, 982, 16, 300, 21, 16, 2154, 33, 27226, 18, 3417, 67, 18111, 67, 862, 4066, 3217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 613, 262, 30, 7075, 18, 5537, 16186, 2738, 972, 12, 365, 16, 982, 16, 300, 21, 16, 2154, 33, 27226, 18, 3417, 67, 18111, 67, 862, 4066, 3217, ...
logfile, 0, '')
logfile, 0, '')
def lamexec(DEBUGON, nproc, wait, cmd, nodes, logfile): 'Execute commands in parallel using LAM/MPI.' from os import access,F_OK found = 0 uname = os.uname() nodelen = len(string.split(nodes,',')) try: if DEBUGON: printlog('o2tf.lamexec: LAMEXEC = %s' % config.LAMEXEC, logfile, 0, '') printlog('o2tf.lamexec: nproc = %s...
657bfc37c22ea26052b0df161170cb3df469efec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1915/657bfc37c22ea26052b0df161170cb3df469efec/o2tf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17310, 4177, 12, 9394, 673, 16, 290, 9381, 16, 2529, 16, 1797, 16, 2199, 16, 15204, 4672, 296, 5289, 4364, 316, 7230, 1450, 511, 2192, 19, 49, 1102, 1093, 628, 1140, 1930, 2006, 16, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17310, 4177, 12, 9394, 673, 16, 290, 9381, 16, 2529, 16, 1797, 16, 2199, 16, 15204, 4672, 296, 5289, 4364, 316, 7230, 1450, 511, 2192, 19, 49, 1102, 1093, 628, 1140, 1930, 2006, 16, 42...
1.4686939399158851571389675973266042613269567366290087227976756763109369658595121387227244973 + 2.2873552871788423912081719067005018089555862566683556809386581141036471601893454092673448521*I
1.46869393991588515713896759732660426132695673662900872279767567631093696585951213872272449 + 2.28735528717884239120817190670050180895558625666835568093865811410364716018934540926734485*I
def exp(self): """ Compute exp(z).
0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 4672, 3536, 8155, 1329, 12, 94, 2934, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1329, 12, 2890, 4672, 3536, 8155, 1329, 12, 94, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
gLogger.error("RemovalAgent.execute: Operation not supported.", operation)
gLogger.error( "RemovalAgent.execute: Operation not supported.", operation )
def executeRequest(self): ################################################ # Get a request from request DB gMonitor.addMark( "Iteration", 1 ) res = self.RequestDBClient.getRequest('removal') if not res['OK']: gLogger.info("RemovalAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']:...
639c184ef75c7730d44d5168750f1731c63bf98b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/639c184ef75c7730d44d5168750f1731c63bf98b/RemovalAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 2890, 4672, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 691, 12, 2890, 4672, 19709, 26487, 13151, 468, 968, 279, 590, 628, 590, 2383, 314, 7187, 18, 1289, 3882, 12, 315, 10795, 3113, 404, 262, 400, 273, 365, 18, 691, 2290, 1227, 18, 5...
self.treeCtrl.AddColumn(_('Item Name')) self.treeCtrl.AddColumn(_('Display Name')) self.treeCtrl.AddColumn(_('Kind')) self.treeCtrl.AddColumn(_('UUID')) self.treeCtrl.AddColumn(_('URL'))
info = wxTreeListColumnInfo() labels=['Item Name', 'Display Name', 'Kind', 'UUID', '', 'URL'] colLabels = map(_, labels) colSize = [80, 80, 80, 120, 10, 120] for x in range(len(colLabels)): info.SetText(colLabels[x]) info.SetWidth(colSize[x]) self.treeCtrl.AddColumnInfo(info)
def OnInit(self): """ Initializes the repository viewer, setting up the layout and populating the tree ctrl. """ # @@@ sizer layout should be handled in xrc, but xrc # does not yet support wxTreeListCtrl
86c5b86176d7fa090fa4e11b866395109276fdd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/86c5b86176d7fa090fa4e11b866395109276fdd7/RepositoryViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 3536, 10188, 3128, 326, 3352, 14157, 16, 3637, 731, 326, 3511, 471, 3650, 1776, 326, 2151, 6414, 18, 3536, 468, 22175, 36, 272, 1824, 3511, 1410, 506, 7681, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 3536, 10188, 3128, 326, 3352, 14157, 16, 3637, 731, 326, 3511, 471, 3650, 1776, 326, 2151, 6414, 18, 3536, 468, 22175, 36, 272, 1824, 3511, 1410, 506, 7681, 3...
({'dc:': 'http://purl.org/dc/elements/1.1/'}, ['book', 'title'], '{ ?book dc:title ?title }')
({'dc': 'http://purl.org/dc/elements/1.1/'}, ['book', 'title'], '{ ?book dc:title ?title }')
def parse(s): """parse some sparql >>> parse('PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT ?book ?title WHERE { ?book dc:title ?title }') ({'dc:': 'http://purl.org/dc/elements/1.1/'}, ['book', 'title'], '{ ?book dc:title ?title }') """ ns = {} while 1: s = s.strip() k, s = s.split(None, 1) k = k.lower() ...
bd609350f303b312d0b1c3a8ea55a6b4f442f69e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/bd609350f303b312d0b1c3a8ea55a6b4f442f69e/sparqltoy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 87, 4672, 3536, 2670, 2690, 272, 25366, 225, 4080, 1109, 2668, 6307, 6744, 30, 1377, 411, 2505, 2207, 84, 718, 18, 3341, 19, 7201, 19, 6274, 19, 21, 18, 21, 21259, 9111, 692,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 87, 4672, 3536, 2670, 2690, 272, 25366, 225, 4080, 1109, 2668, 6307, 6744, 30, 1377, 411, 2505, 2207, 84, 718, 18, 3341, 19, 7201, 19, 6274, 19, 21, 18, 21, 21259, 9111, 692,...
class product_uom_consol():
class product_uom_consol(osv.osv):
# def _factor(self, cursor, user, ids, name, arg, context):
ec0ff44f71b71f9b8e11d0d1e5ba91a86e5f5dd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/ec0ff44f71b71f9b8e11d0d1e5ba91a86e5f5dd7/unit_analisys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 565, 1652, 389, 6812, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 565, 1652, 389, 6812, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
try: self.sc_definer_id = self.coinc_def_table.get_coinc_def_id([lsctables.CoincTable.tableName, lsctables.SimBurstTable.tableName]) except KeyError:
def summarize(self, xmldoc, live_time_program, verbose = False): """ Compute and record some summary information about the database. Call this after all the data has been inserted, and before you want any of this information. """ cursor = self.connection.cursor()
85c425461e0928b16bdba8c9a1e71290a886f81e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/85c425461e0928b16bdba8c9a1e71290a886f81e/SnglBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28712, 12, 2890, 16, 2025, 2434, 16, 8429, 67, 957, 67, 12890, 16, 3988, 273, 1083, 4672, 3536, 8155, 471, 1409, 2690, 4916, 1779, 2973, 326, 2063, 18, 225, 3049, 333, 1839, 777, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28712, 12, 2890, 16, 2025, 2434, 16, 8429, 67, 957, 67, 12890, 16, 3988, 273, 1083, 4672, 3536, 8155, 471, 1409, 2690, 4916, 1779, 2973, 326, 2063, 18, 225, 3049, 333, 1839, 777, 326, ...
class List(vistrails_module.Module):
class List(Module):
def compute(self): result = "" for i in range(self.fieldCount): v = i+1 port = "str%s" % v if self.hasInputFromPort(port): inp = self.getInputFromPort(port) result += inp self.setResult("value", result)
bbb89ebe493db9587a30f7ab1f63c48c2c8e5e95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/bbb89ebe493db9587a30f7ab1f63c48c2c8e5e95/basic_modules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 4672, 563, 273, 1408, 364, 277, 316, 1048, 12, 2890, 18, 1518, 1380, 4672, 331, 273, 277, 15, 21, 1756, 273, 315, 701, 9, 87, 6, 738, 331, 309, 365, 18, 5332, 1210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 4672, 563, 273, 1408, 364, 277, 316, 1048, 12, 2890, 18, 1518, 1380, 4672, 331, 273, 277, 15, 21, 1756, 273, 315, 701, 9, 87, 6, 738, 331, 309, 365, 18, 5332, 1210, ...
'show_as' : lambda *a : 'busy',
'show_as' : lambda *a : 'busy',
def _set_data(self, cr, uid, meeting_id, name, value, arg, context): if not value: return attendee_obj = self.pool.get('calendar.attendee') model_obj = self.pool.get('ir.model') alarm_obj = self.pool.get('calendar.alarm') eventdata = self.read(cr, uid, meeting_id, [name], context=context) if name == "attendees": attend...
75258015cae6ae0d493e7eb6204a16eafed73cd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/75258015cae6ae0d493e7eb6204a16eafed73cd9/crm_meeting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 18721, 310, 67, 350, 16, 508, 16, 460, 16, 1501, 16, 819, 4672, 309, 486, 460, 30, 327, 27645, 20953, 67, 2603, 273, 365, 18, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 18721, 310, 67, 350, 16, 508, 16, 460, 16, 1501, 16, 819, 4672, 309, 486, 460, 30, 327, 27645, 20953, 67, 2603, 273, 365, 18, 6...
while n >= 0:
while n > 0:
def list_of_first_n(v,n): """ Given an iterator v, return first n elements it produces as a list. INPUT: v -- an interator n -- an integer OUTPUT: list EXAMPLES: sage: sage.server.notebook.interact.list_of_first_n(Primes(), 10) [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31] sage: sage.server.notebook.interact.list_of_firs...
5bda3f7b9543bf188cca7d25e82f044fad322c0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5bda3f7b9543bf188cca7d25e82f044fad322c0b/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 792, 67, 3645, 67, 82, 12, 90, 16, 82, 4672, 3536, 16803, 392, 2775, 331, 16, 327, 1122, 290, 2186, 518, 15505, 487, 279, 666, 18, 225, 12943, 30, 331, 1493, 392, 1554, 639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 792, 67, 3645, 67, 82, 12, 90, 16, 82, 4672, 3536, 16803, 392, 2775, 331, 16, 327, 1122, 290, 2186, 518, 15505, 487, 279, 666, 18, 225, 12943, 30, 331, 1493, 392, 1554, 639,...
1) A method to add a new package 2) A method to add a new branch 3) A method to edit an existing package 4) A method to edit and existing branch
1) A method to add a new package 2) A method to add a new branch 3) A method to edit an existing package 4) A method to edit and existing branch
def add_edit_package(self, pkg, owner=None, description=None, branches=None, cc_list=None, comaintainers=None, groups=None): '''Add or edit a package to the database.
1249f349fd343814d4ff0aac752d9d991a3d6a42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/1249f349fd343814d4ff0aac752d9d991a3d6a42/pkgdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4619, 67, 5610, 12, 2890, 16, 3475, 16, 3410, 33, 7036, 16, 2477, 33, 7036, 16, 11483, 33, 7036, 16, 4946, 67, 1098, 33, 7036, 16, 532, 1598, 8234, 33, 7036, 16, 3252, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4619, 67, 5610, 12, 2890, 16, 3475, 16, 3410, 33, 7036, 16, 2477, 33, 7036, 16, 11483, 33, 7036, 16, 4946, 67, 1098, 33, 7036, 16, 532, 1598, 8234, 33, 7036, 16, 3252, 33, ...
print "STDOUT ============" print self.stdout() print "STDERR ============" print self.stderr()
self.dump_stdio()
def run_build_system( self, extra_args='', subdir='', stdout = None, stderr = '', status = 0, match = None, pass_toolset = None, **kw):
acb95541c1ae810986670149b66b15b0bccaf0a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/acb95541c1ae810986670149b66b15b0bccaf0a8/BoostBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3510, 67, 4299, 12, 365, 16, 2870, 67, 1968, 2218, 2187, 16921, 2218, 2187, 3909, 273, 599, 16, 4514, 273, 10226, 1267, 273, 374, 16, 845, 273, 599, 16, 1342, 67, 6738, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 67, 3510, 67, 4299, 12, 365, 16, 2870, 67, 1968, 2218, 2187, 16921, 2218, 2187, 3909, 273, 599, 16, 4514, 273, 10226, 1267, 273, 374, 16, 845, 273, 599, 16, 1342, 67, 6738, 542, ...
if vslot == AUTO_PHP_SLOT: raise VmError("Device @ vslot 0x%x doesn't support hotplug." % (vslot))
def hvm_destroyPCIDevice(self, vslot): log.debug("hvm_destroyPCIDevice called %s", vslot)
1db031409bd7cde3c245320bd98a4970548b5b00 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/1db031409bd7cde3c245320bd98a4970548b5b00/XendDomainInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 3489, 67, 11662, 3513, 734, 73, 633, 12, 2890, 16, 331, 14194, 4672, 613, 18, 4148, 2932, 76, 3489, 67, 11662, 3513, 734, 73, 633, 2566, 738, 87, 3113, 331, 14194, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 3489, 67, 11662, 3513, 734, 73, 633, 12, 2890, 16, 331, 14194, 4672, 613, 18, 4148, 2932, 76, 3489, 67, 11662, 3513, 734, 73, 633, 2566, 738, 87, 3113, 331, 14194, 13, 2, -100, ...
if opt == "--ldaploadcert":
if opt == "--ldaploadcacert":
def applyKickstart(self): if self.ks.authconfig.authconfig != "": authstr = string.split(self.ks.authconfig.authconfig) opts, args = getopt.getopt(authstr, "d:h",["enablemd5", "enablenis", "nisdomain=", "nisserver=", "useshadow", "enableshadow", "enableldap", "enableldapauth", "ldapserver=", "ldapbasedn=", "ldaploadcer...
15668e754a445736f142e847116e561506d5b359 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5376/15668e754a445736f142e847116e561506d5b359/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 47, 1200, 1937, 12, 2890, 4672, 309, 365, 18, 7904, 18, 1944, 1425, 18, 1944, 1425, 480, 1408, 30, 1357, 701, 273, 533, 18, 4939, 12, 2890, 18, 7904, 18, 1944, 1425, 18, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 47, 1200, 1937, 12, 2890, 4672, 309, 365, 18, 7904, 18, 1944, 1425, 18, 1944, 1425, 480, 1408, 30, 1357, 701, 273, 533, 18, 4939, 12, 2890, 18, 7904, 18, 1944, 1425, 18, 1944, ...
fh.setLevel(hconfig.LOGLEVEL)
fh.setLevel(loglevel)
def startlogging(): """Start the logging system to store rotational log based on date.""" harness_logger.setLevel(hconfig.LOGLEVEL) #Get date for logfile date = time.strftime("%Y%m%d") #create file handler and set level to debug fh = logging.handlers.RotatingFileHandler(filename=hconfig.LOGDIR + date + ".log", maxByte...
dcdb1b008b0e19c9fae70c2b35fa575069e7ec2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/dcdb1b008b0e19c9fae70c2b35fa575069e7ec2e/harness.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 11167, 13332, 3536, 1685, 326, 2907, 2619, 358, 1707, 6752, 287, 613, 2511, 603, 1509, 12123, 225, 366, 1303, 403, 67, 4901, 18, 542, 2355, 12, 76, 1425, 18, 4842, 10398, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 11167, 13332, 3536, 1685, 326, 2907, 2619, 358, 1707, 6752, 287, 613, 2511, 603, 1509, 12123, 225, 366, 1303, 403, 67, 4901, 18, 542, 2355, 12, 76, 1425, 18, 4842, 10398, 13, 468, ...
tmp_file.close()
_sync_close(tmp_file)
def add(self, message): """Add message and return assigned key.""" tmp_file = self._create_tmp() try: self._dump_message(message, tmp_file) finally: tmp_file.close() if isinstance(message, MaildirMessage): subdir = message.get_subdir() suffix = self.colon + message.get_info() if suffix == self.colon: suffix = '' else: ...
d8ffef20d6b24248af5d2395eeb882cee23cf54d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d8ffef20d6b24248af5d2395eeb882cee23cf54d/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 883, 4672, 3536, 986, 883, 471, 327, 6958, 498, 12123, 1853, 67, 768, 273, 365, 6315, 2640, 67, 5645, 1435, 775, 30, 365, 6315, 8481, 67, 2150, 12, 2150, 16, 1853, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2890, 16, 883, 4672, 3536, 986, 883, 471, 327, 6958, 498, 12123, 1853, 67, 768, 273, 365, 6315, 2640, 67, 5645, 1435, 775, 30, 365, 6315, 8481, 67, 2150, 12, 2150, 16, 1853, ...
return (life_capacity * 100) / design_capacity
return (life_capacity * 100) / current_capacity
def percent(self): """Returns percentage capacity of all batteries"""
d9046690729321e024ac4dab17519db74c4f42c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4994/d9046690729321e024ac4dab17519db74c4f42c9/acpi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5551, 12, 2890, 4672, 3536, 1356, 11622, 7519, 434, 777, 324, 9293, 606, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5551, 12, 2890, 4672, 3536, 1356, 11622, 7519, 434, 777, 324, 9293, 606, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return self._dfs_bases([], Set()) def _dfs_bases(self, mro, seen):
return self._dfs_bases([], Set(), warn_about_bad_bases) def _dfs_bases(self, mro, seen, warn_about_bad_bases):
def mro(self): if self.is_newstyle_class(): return self._c3_mro() else: return self._dfs_bases([], Set())
fd8e933e7dc320245c23dc52320d4c5698c01feb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/fd8e933e7dc320245c23dc52320d4c5698c01feb/apidoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 303, 12, 2890, 4672, 309, 365, 18, 291, 67, 2704, 4060, 67, 1106, 13332, 327, 365, 6315, 71, 23, 67, 81, 303, 1435, 469, 30, 327, 365, 6315, 12381, 67, 18602, 3816, 6487, 1000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 303, 12, 2890, 4672, 309, 365, 18, 291, 67, 2704, 4060, 67, 1106, 13332, 327, 365, 6315, 71, 23, 67, 81, 303, 1435, 469, 30, 327, 365, 6315, 12381, 67, 18602, 3816, 6487, 1000, ...
if isinstance(obj, BaseProxy):
if isinstance(obj, (BaseProxy, EthernetAddr)):
def isproxy(obj): if isinstance(obj, BaseProxy): return True elif isinstance(obj, (list, tuple)): for v in obj: if isproxy(v): return True return False
33010e0461a9611e7d585f759cbebb36fcad0279 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/33010e0461a9611e7d585f759cbebb36fcad0279/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5656, 12, 2603, 4672, 309, 1549, 12, 2603, 16, 261, 2171, 3886, 16, 512, 27281, 3178, 3719, 30, 327, 1053, 1327, 1549, 12, 2603, 16, 261, 1098, 16, 3193, 3719, 30, 364, 331, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5656, 12, 2603, 4672, 309, 1549, 12, 2603, 16, 261, 2171, 3886, 16, 512, 27281, 3178, 3719, 30, 327, 1053, 1327, 1549, 12, 2603, 16, 261, 1098, 16, 3193, 3719, 30, 364, 331, 316, ...
list, messages = self.pimpinstaller.prepareInstall(pkg, force, recursive)
pimpinstaller = pimp.PimpInstaller(self.pimpdb) list, messages = pimpinstaller.prepareInstall(pkg, force, recursive)
def installpackage(self, sel, output, recursive, force): pkg = self.packages[sel] list, messages = self.pimpinstaller.prepareInstall(pkg, force, recursive) if messages: return messages messages = self.pimpinstaller.install(list, output) return messages
67798fcc80b94b6e3dc69ea6078bb793a9bc2640 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/67798fcc80b94b6e3dc69ea6078bb793a9bc2640/PackageManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 5610, 12, 2890, 16, 357, 16, 876, 16, 5904, 16, 2944, 4672, 3475, 273, 365, 18, 10308, 63, 1786, 65, 293, 14532, 20163, 273, 293, 14532, 18, 52, 14532, 18678, 12, 2890, 18, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 5610, 12, 2890, 16, 357, 16, 876, 16, 5904, 16, 2944, 4672, 3475, 273, 365, 18, 10308, 63, 1786, 65, 293, 14532, 20163, 273, 293, 14532, 18, 52, 14532, 18678, 12, 2890, 18, 84, ...
if selection.fileName == '..':
if selection.fileName == u'..':
def onEnter (self): selection = self.model.items[self.selectedItem]
5f003fa66305ac8935c5608a773efc5e9baee6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/5f003fa66305ac8935c5608a773efc5e9baee6db/candy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 10237, 261, 2890, 4672, 4421, 273, 365, 18, 2284, 18, 3319, 63, 2890, 18, 8109, 1180, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 10237, 261, 2890, 4672, 4421, 273, 365, 18, 2284, 18, 3319, 63, 2890, 18, 8109, 1180, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if kw and cnf: cnf = _cnfmerge((cnf, kw)) elif kw: cnf = kw opts = () for k, v in cnf.items(): opts = opts + ('-'+k, v) return opts
if kw and cnf: cnf = _cnfmerge((cnf, kw)) elif kw: cnf = kw opts = () for k, v in cnf.items(): opts = opts + ('-'+k, v) return opts
def _options(self, cnf, kw ):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2116, 12, 2890, 16, 23118, 16, 5323, 262, 30, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2116, 12, 2890, 16, 23118, 16, 5323, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
client.window.push_handlers(on_button_press=on_button_press)
client.actor.push_handlers(on_button_press=on_button_press)
def on_button_press(evt): stroke = (evt.state, evt.detail) if stroke in self.bindings: info = ActionInfo(screen=self.app.get_screen_by_root(evt.root), x=evt.event_x, y=evt.event_y, client=client) self.app.plugins['actions'].emit(self.bindings[stroke], info)
cb48a699a7595aee4222d00461c52dd9873269cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/cb48a699a7595aee4222d00461c52dd9873269cb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5391, 67, 1028, 12, 73, 11734, 4672, 11040, 273, 261, 73, 11734, 18, 2019, 16, 6324, 18, 8992, 13, 309, 11040, 316, 365, 18, 15863, 30, 1123, 273, 4382, 966, 12, 9252, 33, 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, 603, 67, 5391, 67, 1028, 12, 73, 11734, 4672, 11040, 273, 261, 73, 11734, 18, 2019, 16, 6324, 18, 8992, 13, 309, 11040, 316, 365, 18, 15863, 30, 1123, 273, 4382, 966, 12, 9252, 33, 2...