rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if self.libraries is None: self.libraries = [] if self.library_dirs is None: self.library_dirs = [] if self.rpath is None: self.rpath = []
def run (self):
1c61e1a031e9be08a4b26551f8af6bed4bc07175 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1c61e1a031e9be08a4b26551f8af6bed4bc07175/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
expected_migrations = [ ('a', ver, 'up') for ver in range(10) ] assert expected_migrations == test_globals.migrations_run
self._expect_migrations([ ('a', ver, 'up') for ver in range(10) ])
def test_only_a(self): self.cmd.run(self.args + ['a']) expected_migrations = [ ('a', ver, 'up') for ver in range(10) ] assert expected_migrations == test_globals.migrations_run
05b857a036dd4fa753f3443dd985a72b79357fbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/05b857a036dd4fa753f3443dd985a72b79357fbe/test_migrations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3700, 67, 69, 12, 2890, 4672, 365, 18, 4172, 18, 2681, 12, 2890, 18, 1968, 397, 10228, 69, 19486, 2665, 67, 15642, 273, 306, 7707, 69, 2187, 1924, 16, 296, 416, 6134, 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, 1842, 67, 3700, 67, 69, 12, 2890, 4672, 365, 18, 4172, 18, 2681, 12, 2890, 18, 1968, 397, 10228, 69, 19486, 2665, 67, 15642, 273, 306, 7707, 69, 2187, 1924, 16, 296, 416, 6134, 364, ...
buffer = "" while "\n" not in buffer:
self.buffer = "" while SERVER_QUIT not in self.buffer:
def run(self): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) global PORT PORT = test_support.bind_port(sock, HOST, PORT) sock.listen(1) conn, client = sock.accept() buffer = "" while "\n" not in buffer: data = conn.recv(1) if not data: break buffer =...
0d7d2c9a092ad699c2677e319f3538df2719c720 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/0d7d2c9a092ad699c2677e319f3538df2719c720/test_asynchat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 7313, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 7313, 18, 4424, 27844, 12, 7814, 18, 19815, 67, 25699, 16, 2987...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7313, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 7313, 18, 4424, 27844, 12, 7814, 18, 19815, 67, 25699, 16, 2987...
thread.interrupt_main()
if interruptable: thread.interrupt_main()
def interrupt_the_server(self): thread.interrupt_main()
c25d5763b7cc92394d03cfb915d6e37943930eac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/c25d5763b7cc92394d03cfb915d6e37943930eac/run.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13123, 67, 5787, 67, 3567, 12, 2890, 4672, 2650, 18, 31847, 67, 5254, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 13123, 67, 5787, 67, 3567, 12, 2890, 4672, 2650, 18, 31847, 67, 5254, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if type(cmd) == type(''): cmd = ['/bin/sh', '-c', cmd]
_cleanup()
def __init__(self, cmd, capturestderr=0, bufsize=-1): """The parameter 'cmd' is the shell command to execute in a sub-process. The 'capturestderr' flag, if true, specifies that the object should capture standard error output of the child process. The default is false. If the 'bufsize' parameter is specified, it speci...
153a739f731cf942200e8506e1610b6782ce3e60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/153a739f731cf942200e8506e1610b6782ce3e60/popen2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1797, 16, 7477, 11241, 33, 20, 16, 1681, 1467, 29711, 21, 4672, 3536, 1986, 1569, 296, 4172, 11, 353, 326, 5972, 1296, 358, 1836, 316, 279, 720, 17, 2567...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1797, 16, 7477, 11241, 33, 20, 16, 1681, 1467, 29711, 21, 4672, 3536, 1986, 1569, 296, 4172, 11, 353, 326, 5972, 1296, 358, 1836, 316, 279, 720, 17, 2567...
raise TypeError, "%s is not of type BaseCPU", cpu
raise TypeError, "%s is not of type BaseCPU" % cpu
def switchCpus(cpuList): print "switching cpus" if not isinstance(cpuList, list): raise RuntimeError, "Must pass a list to this function" for i in cpuList: if not isinstance(i, tuple): raise RuntimeError, "List must have tuples of (oldCPU,newCPU)" [old_cpus, new_cpus] = zip(*cpuList) for cpu in old_cpus: if not isins...
ea5df468820c1c152ecd6932ac6a2a67b3f1725d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6787/ea5df468820c1c152ecd6932ac6a2a67b3f1725d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 39, 9861, 12, 11447, 682, 4672, 1172, 315, 9610, 310, 20620, 6, 309, 486, 1549, 12, 11447, 682, 16, 666, 4672, 1002, 7265, 16, 315, 10136, 1342, 279, 666, 358, 333, 445, 6, 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, 1620, 39, 9861, 12, 11447, 682, 4672, 1172, 315, 9610, 310, 20620, 6, 309, 486, 1549, 12, 11447, 682, 16, 666, 4672, 1002, 7265, 16, 315, 10136, 1342, 279, 666, 358, 333, 445, 6, 364, ...
support.verbose = True
def test_main(verbose=False): if skip_expected: raise unittest.SkipTest("No SSL support") if support.verbose: plats = { 'Linux': platform.linux_distribution, 'Mac': platform.mac_ver, 'Windows': platform.win32_ver, } for name, func in plats.items(): plat = func() if plat and plat[0]: plat = '%s %r' % (name, plat) break...
20134398a364e9042ada060a307fe08dbc538eb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/20134398a364e9042ada060a307fe08dbc538eb3/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 12, 11369, 33, 8381, 4672, 309, 2488, 67, 3825, 30, 1002, 2836, 3813, 18, 6368, 4709, 2932, 2279, 7419, 2865, 7923, 225, 309, 2865, 18, 11369, 30, 886, 2323, 273, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 12, 11369, 33, 8381, 4672, 309, 2488, 67, 3825, 30, 1002, 2836, 3813, 18, 6368, 4709, 2932, 2279, 7419, 2865, 7923, 225, 309, 2865, 18, 11369, 30, 886, 2323, 273, 288, ...
requestPath = "%s/%s" % (reqDir,requestName) if os.path.isfile(requestPath): candidateRequests.append(requestName) if not len(candidateRequests) > 0:
requestPath = "%s/%s" % ( reqDir, requestName ) if os.path.isfile( requestPath ): candidateRequests.append( requestName ) if not len( candidateRequests ) > 0:
def getRequest(self,requestType): """ Obtain a request from the database of a certain type """ gLogger.info("RequestDBFile._getRequest: Attempting to get %s type request." % requestType) try: # Determine the request name to be obtained candidateRequests = [] reqDir = '%s/%s/ToDo' % (self.root,requestType) self.getIdLoc...
457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4328, 12, 2890, 16, 2293, 559, 4672, 3536, 24850, 279, 590, 628, 326, 2063, 434, 279, 8626, 618, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 6315, 588, 691, 30, 12864, 310, 358, 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, 4328, 12, 2890, 16, 2293, 559, 4672, 3536, 24850, 279, 590, 628, 326, 2063, 434, 279, 8626, 618, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 6315, 588, 691, 30, 12864, 310, 358, 3...
return Popen(["losetup", "-sf", ('%s' % (image_path))], stdout=PIPE).communicate()[0].replace('\n', '')
return Popen(["losetup", "--show", "-f", ('%s' % (image_path))], stdout=PIPE).communicate()[0].replace('\n', '')
def create_loopback(image_path): return Popen(["losetup", "-sf", ('%s' % (image_path))], stdout=PIPE).communicate()[0].replace('\n', '')
3190d22f09f4aec7ce901b63e44de7f33719b6b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/3190d22f09f4aec7ce901b63e44de7f33719b6b8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6498, 823, 12, 2730, 67, 803, 4672, 327, 14339, 3816, 6, 383, 8401, 3113, 5238, 4500, 3113, 3701, 74, 3113, 7707, 9, 87, 11, 738, 261, 2730, 67, 803, 3719, 6487, 3909, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6498, 823, 12, 2730, 67, 803, 4672, 327, 14339, 3816, 6, 383, 8401, 3113, 5238, 4500, 3113, 3701, 74, 3113, 7707, 9, 87, 11, 738, 261, 2730, 67, 803, 3719, 6487, 3909, 33, 2...
stringtable_offset = self.dword_align(
new_stringtable_offset = self.dword_align(
def parse_version_information(self, version_struct): """Parse version information structure. The date will be made available in three attributes of the PE object. VS_VERSIONINFO will contain the first three fields of the main structure: 'Length', 'ValueLength', and 'Type' VS_FIXEDFILEINFO will hold the rest o...
2d9ae5118e76681e72e598e9f96b21327af000ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/2d9ae5118e76681e72e598e9f96b21327af000ac/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1589, 67, 13117, 12, 2890, 16, 1177, 67, 1697, 4672, 3536, 3201, 1177, 1779, 3695, 18, 225, 1021, 1509, 903, 506, 7165, 2319, 316, 8925, 1677, 434, 326, 16628, 733, 18, 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, 1109, 67, 1589, 67, 13117, 12, 2890, 16, 1177, 67, 1697, 4672, 3536, 3201, 1177, 1779, 3695, 18, 225, 1021, 1509, 903, 506, 7165, 2319, 316, 8925, 1677, 434, 326, 16628, 733, 18, 225, ...
def wrapped_openconn(*args, **kwargs):
class TCPServerObj(): def __init__(self,sock): self.sock = sock def getconnection(self, *args,**kwargs): ip,port,conn = traced_call(self.sock,"TCPServerSocket.getconnection",self.sock.getconnection,args,kwargs) return (ip,port, SocketObj(conn)) def close(self, *args, **kwargs): return traced_call(self.sock,"TCPSer...
def evaluate(self,*args,**kwargs): return traced_call(self.virt,"VirtualNamespace.evaluate",self.virt.evaluate,args,kwargs,print_args=False,print_result=False)
d4d3bf92076e2369dc442814f3f33a0ac55f20cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7279/d4d3bf92076e2369dc442814f3f33a0ac55f20cd/strace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 12, 2890, 16, 14, 1968, 16, 636, 4333, 4672, 327, 2606, 72, 67, 1991, 12, 2890, 18, 14035, 10837, 6466, 3402, 18, 21024, 3113, 2890, 18, 14035, 18, 21024, 16, 1968, 16, 4333, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 12, 2890, 16, 14, 1968, 16, 636, 4333, 4672, 327, 2606, 72, 67, 1991, 12, 2890, 18, 14035, 10837, 6466, 3402, 18, 21024, 3113, 2890, 18, 14035, 18, 21024, 16, 1968, 16, 4333, 16,...
def testLastDownException(): Event = Player.getMouseState() exceptionThrown = False try: pos = Event.lastdownpos except RuntimeError: exceptionRaised = True self.assert_(exceptionRaised)
def testLastDownException(): Event = Player.getMouseState() exceptionThrown = False try: pos = Event.lastdownpos except RuntimeError: exceptionRaised = True self.assert_(exceptionRaised)
256c9348759292b3d2768a243be442a321f0a417 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7300/256c9348759292b3d2768a243be442a321f0a417/Test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3024, 4164, 503, 13332, 2587, 273, 19185, 18, 588, 9186, 1119, 1435, 1520, 29591, 273, 1083, 775, 30, 949, 273, 2587, 18, 2722, 2378, 917, 1335, 7265, 30, 1520, 12649, 5918, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3024, 4164, 503, 13332, 2587, 273, 19185, 18, 588, 9186, 1119, 1435, 1520, 29591, 273, 1083, 775, 30, 949, 273, 2587, 18, 2722, 2378, 917, 1335, 7265, 30, 1520, 12649, 5918, 273, 1...
i,_ = first(lambda x: is_jcc(x[1][1].op), enumerate(taken.body)) remaining = set(x.op for _,x in taken.body[i+1:])
i, _ = first(lambda x: is_jcc(x[1][1].op), enumerate(taken.body)) remaining = set(x.op for _, x in taken.body[i+1:])
def get_branch_target(tbs): taken = get_taken_tb(tbs) i,_ = first(lambda x: is_jcc(x[1][1].op), enumerate(taken.body)) remaining = set(x.op for _,x in taken.body[i+1:]) if not remaining <= junk: raise ValueError("Real instructions remain after a branch! TB Split Fail") elif 'IFLO_MOVL_EIP_IM' in remaining: _,eipmov = f...
63b309d6f3838e4cb5c2921faf3bb1472f46245c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/63b309d6f3838e4cb5c2921faf3bb1472f46245c/newslice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7500, 67, 3299, 12, 88, 2038, 4672, 9830, 273, 336, 67, 29113, 67, 18587, 12, 88, 2038, 13, 277, 16, 389, 273, 1122, 12, 14661, 619, 30, 353, 67, 78, 952, 12, 92, 63, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7500, 67, 3299, 12, 88, 2038, 4672, 9830, 273, 336, 67, 29113, 67, 18587, 12, 88, 2038, 13, 277, 16, 389, 273, 1122, 12, 14661, 619, 30, 353, 67, 78, 952, 12, 92, 63, 21, ...
query = u"""REPLACE INTO monumenten(objrijksnr, woonplaats, adres, objectnaam, type_obj, oorspr_functie, bouwjaar, architect, cbs_tekst, RD_x, RD_y, lat, lon, source) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')""";
query = u"""REPLACE INTO monumenten(objrijksnr, woonplaats, adres, objectnaam, type_obj, oorspr_functie, bouwjaar, architect, cbs_tekst, RD_x, RD_y, lat, lon, image, source) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')""";
def updateMonument(contents, conn, cursor): query = u"""REPLACE INTO monumenten(objrijksnr, woonplaats, adres, objectnaam, type_obj, oorspr_functie, bouwjaar, architect, cbs_tekst, RD_x, RD_y, lat, lon, source) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')"""; cursor.execu...
3e481197873b9f1acb9c7c4c531c448bcfb35269 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7426/3e481197873b9f1acb9c7c4c531c448bcfb35269/update_database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11415, 650, 12, 3980, 16, 1487, 16, 3347, 4672, 843, 273, 582, 8395, 21726, 12421, 6921, 650, 275, 12, 2603, 566, 78, 7904, 11611, 16, 341, 83, 265, 412, 69, 2323, 16, 1261, 455,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11415, 650, 12, 3980, 16, 1487, 16, 3347, 4672, 843, 273, 582, 8395, 21726, 12421, 6921, 650, 275, 12, 2603, 566, 78, 7904, 11611, 16, 341, 83, 265, 412, 69, 2323, 16, 1261, 455,...
module_name = get_containing_module(value) if inspect.ismodule(sys.modules.get(module_name)):
module_name = str(get_containing_module(value)) module = sys.modules.get(module_name) if module is not None and inspect.ismodule(module):
def _get_valuedoc(value): """ If a C{ValueDoc} for the given value exists in the valuedoc cache, then return it; otherwise, create a new C{ValueDoc}, add it to the cache, and return it. When possible, the new C{ValueDoc}'s C{pyval}, C{repr}, and C{canonical_name} attributes will be set appropriately. """ pyid = id(val...
2f91f6739b31a4ab0e43cbe279fd91f4e9bb9708 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/2f91f6739b31a4ab0e43cbe279fd91f4e9bb9708/docintrospecter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4531, 329, 504, 12, 1132, 4672, 3536, 971, 279, 385, 95, 620, 1759, 97, 364, 326, 864, 460, 1704, 316, 326, 31037, 504, 1247, 16, 1508, 327, 518, 31, 3541, 16, 752, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4531, 329, 504, 12, 1132, 4672, 3536, 971, 279, 385, 95, 620, 1759, 97, 364, 326, 864, 460, 1704, 316, 326, 31037, 504, 1247, 16, 1508, 327, 518, 31, 3541, 16, 752, 279...
'null' : True,
'null' : null_ok,
def query(self, query_string, max_rows=None, query_data=None): """ foo """
47f34379ee083a1c22cf9aa3596ee0adbffbbc22 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6817/47f34379ee083a1c22cf9aa3596ee0adbffbbc22/da.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 843, 67, 1080, 16, 943, 67, 3870, 33, 7036, 16, 843, 67, 892, 33, 7036, 4672, 3536, 8431, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 843, 67, 1080, 16, 943, 67, 3870, 33, 7036, 16, 843, 67, 892, 33, 7036, 4672, 3536, 8431, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class PersistentObject:
class Options: def __init__(self,*args): libBALLc.sipCallCtor(72,self,args) class String:
def __init__(self,*args): libBALLc.sipCallCtor(73,self,args)
6143cd22f226534836314b76952f50c72ab34763 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5247/6143cd22f226534836314b76952f50c72ab34763/BALL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 2561, 38, 4685, 71, 18, 28477, 1477, 27425, 12, 9036, 16, 2890, 16, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 2561, 38, 4685, 71, 18, 28477, 1477, 27425, 12, 9036, 16, 2890, 16, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
TixWidget.__init__(self,master,'tixNoteBook', ['options'], cnf, kw) self.subwidget_list['nbframe'] = TixSubWidget(self, 'nbframe', destroy_physically=0)
TixWidget.__init__(self,master,'tixNoteBook', ['options'], cnf, kw) self.subwidget_list['nbframe'] = TixSubWidget(self, 'nbframe', destroy_physically=0)
def __init__ (self,master=None,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, 1001, 2738, 972, 261, 2890, 16, 7525, 33, 7036, 16, 10305, 74, 28793, 2826, 9987, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 1001, 2738, 972, 261, 2890, 16, 7525, 33, 7036, 16, 10305, 74, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cmd = cmdAndArgs.pop(0) if cmd.count('='): key, value = cmd.split('=', 1)
piece = cmdAndArgs.pop(0) if piece.count('='): key, value = piece.split('=', 1)
def runCommand(self): if not len(self.cmdpending): self.showPrompt() return line = self.cmdpending.pop(0) try: cmdAndArgs = shlex.split(line) except: self.honeypot.writeln( '-bash: syntax error: unexpected end of file') # could run runCommand here, but i'll just clear the list instead self.cmdpending = [] self.showProm...
34a99b876fc0cdda0a3719aa834d94242c2b318c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7245/34a99b876fc0cdda0a3719aa834d94242c2b318c/honeypot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31933, 12, 2890, 4672, 309, 486, 562, 12, 2890, 18, 4172, 9561, 4672, 365, 18, 4500, 15967, 1435, 327, 980, 273, 365, 18, 4172, 9561, 18, 5120, 12, 20, 13, 775, 30, 1797, 1876, 2615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31933, 12, 2890, 4672, 309, 486, 562, 12, 2890, 18, 4172, 9561, 4672, 365, 18, 4500, 15967, 1435, 327, 980, 273, 365, 18, 4172, 9561, 18, 5120, 12, 20, 13, 775, 30, 1797, 1876, 2615, ...
elif task.info("USER_interactive"):
elif task.default("USER_interactive"):
def clush_main(args): """Main clush script function""" # Default values nodeset_base, nodeset_exclude = NodeSet(), NodeSet() # # Argument management # usage = "%prog [options] command" parser = optparse.OptionParser(usage, version="%%prog %s" % __version__) parser.disable_interspersed_args() # Node selections optgr...
b1a858775a0c2d9702d6d8c6329507066a5d4dd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/b1a858775a0c2d9702d6d8c6329507066a5d4dd6/clush.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 927, 1218, 67, 5254, 12, 1968, 4672, 3536, 6376, 927, 1218, 2728, 445, 8395, 225, 468, 2989, 924, 2199, 278, 67, 1969, 16, 2199, 278, 67, 10157, 273, 2029, 694, 9334, 2029, 694, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 927, 1218, 67, 5254, 12, 1968, 4672, 3536, 6376, 927, 1218, 2728, 445, 8395, 225, 468, 2989, 924, 2199, 278, 67, 1969, 16, 2199, 278, 67, 10157, 273, 2029, 694, 9334, 2029, 694, 1435, ...
self.setupJob(self.__prog__,tag_base=tag_base, dir=dir)
self.name = os.path.split(self.__executable.rstrip('/'))[1] self.setupJob(name=self.name,tag_base=tag_base, dir=dir)
def __init__(self, opts, cp, dir='', tag_base="effDRatioTest"): """ """ self.__conditionalLoadDefaults__(effDRatioJob.defaults,cp) self.__prog__ = 'effDRatioTest' self.__executable = string.strip(cp.get('fu-condor','effDRatio')) self.__universe = string.strip(cp.get('fu-condor','universe')) pipeline.CondorDAGJob.__init...
e7dc96264f8fa6761fca7488785053e6db4d6c14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/e7dc96264f8fa6761fca7488785053e6db4d6c14/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1500, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 1546, 17098, 6331, 4197, 4709, 6, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 17098, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1500, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 1546, 17098, 6331, 4197, 4709, 6, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 17098, 63...
self.filename = self.occurrence[0][0]
self.filename = self.occurrence[0]
def __init__(self,occurrence): self.occurrence = occurrence self.filename = self.occurrence[0][0]
d21852a5d175cfafac72e74b2b4724e65f7484f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5109/d21852a5d175cfafac72e74b2b4724e65f7484f2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 31177, 4672, 365, 18, 31177, 273, 13083, 365, 18, 3459, 273, 365, 18, 31177, 63, 20, 6362, 20, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 31177, 4672, 365, 18, 31177, 273, 13083, 365, 18, 3459, 273, 365, 18, 31177, 63, 20, 6362, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
size = xiso.size
total_size = xiso.size
def extract_xiso(self): # get infos from ui filename = self.ui_entry_xiso.get_text() local_folder = self.ui_entry_folder.get_text() ftp_folder = "/g/tmp" ftp_ip = self.ui_entry_xbox_address.get_text() ftp_login = self.ui_entry_xbox_login.get_text() ftp_password = self.ui_entry_xbox_password.get_text() # init progress ...
338bdf073aa945bc2e78bd55fb9f2572ce818c0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2692/338bdf073aa945bc2e78bd55fb9f2572ce818c0e/gxiso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 5674, 83, 12, 2890, 4672, 468, 336, 10626, 628, 5915, 1544, 273, 365, 18, 4881, 67, 4099, 67, 5674, 83, 18, 588, 67, 955, 1435, 1191, 67, 5609, 273, 365, 18, 4881, 67, 4099...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 5674, 83, 12, 2890, 4672, 468, 336, 10626, 628, 5915, 1544, 273, 365, 18, 4881, 67, 4099, 67, 5674, 83, 18, 588, 67, 955, 1435, 1191, 67, 5609, 273, 365, 18, 4881, 67, 4099...
Manufacturer=u"Martin v. L\xf6wis")
Manufacturer=u"Python Software Foundation")
def build_database(): """Generate an empty database, with just the schema and the Summary information stream.""" if snapshot: uc = upgrade_code_snapshot else: uc = upgrade_code # schema represents the installer 2.0 database schema. # sequence is the set of standard sequences # (ui/execute, admin/advt/install) db = msil...
8bc77e4b33dce913a13be3ad0f3b11d4292c78ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8bc77e4b33dce913a13be3ad0f3b11d4292c78ba/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6231, 13332, 3536, 4625, 392, 1008, 2063, 16, 598, 2537, 326, 1963, 471, 326, 17967, 1779, 1407, 12123, 309, 4439, 30, 6232, 273, 8400, 67, 710, 67, 11171, 469, 30, 6232, 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, 1361, 67, 6231, 13332, 3536, 4625, 392, 1008, 2063, 16, 598, 2537, 326, 1963, 471, 326, 17967, 1779, 1407, 12123, 309, 4439, 30, 6232, 273, 8400, 67, 710, 67, 11171, 469, 30, 6232, 273, ...
if resourcecount <= 0:
if resourcecount <= 0 and not resource.hastag( 'resource_empty' ): resource.settag( 'resource_empty', 'true' ) resource.addtimer( woodrespawndelay, "skills.lumberjacking.respawnvein", [], True ) socket.clilocmessage( 500488, '', GRAY ) return False elif resource.hastag( 'resource_empty' ):
def hack_logs( char, target, tool, resource ): socket = char.socket pos = target.pos resname = resource.gettag( 'resname' ) amount = resource.gettag( 'resourcecount' ) resourcecount = int(resource.gettag( 'resourcecount' )) # No resource left to harvest? if resourcecount <= 0: socket.clilocmessage( 500488, '', GRAY ...
51c43553980d27f067d6941661cdfa9a5efc9576 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/51c43553980d27f067d6941661cdfa9a5efc9576/lumberjacking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11769, 67, 10011, 12, 1149, 16, 1018, 16, 5226, 16, 1058, 262, 30, 2987, 273, 1149, 18, 7814, 949, 273, 1018, 18, 917, 225, 400, 529, 273, 1058, 18, 588, 2692, 12, 296, 455, 529, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11769, 67, 10011, 12, 1149, 16, 1018, 16, 5226, 16, 1058, 262, 30, 2987, 273, 1149, 18, 7814, 949, 273, 1018, 18, 917, 225, 400, 529, 273, 1058, 18, 588, 2692, 12, 296, 455, 529, 11,...
eligible, pref_vers = _filterProviders(providers, item, cfgData, dataCache)
eligible = _filterProviders(providers, item, cfgData, dataCache)
def filterProviders(providers, item, cfgData, dataCache): """ Take a list of providers and filter/reorder according to the environment variables and previous build results Takes a "normal" target item """ eligible, pref_vers = _filterProviders(providers, item, cfgData, dataCache) prefervar = bb.data.getVar('PREFERRED...
3d2fa443ab7237256a2f59947e4536e4200a2cec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2672/3d2fa443ab7237256a2f59947e4536e4200a2cec/providers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 10672, 12, 17520, 16, 761, 16, 2776, 751, 16, 501, 1649, 4672, 3536, 17129, 279, 666, 434, 9165, 471, 1034, 19, 266, 1019, 4888, 358, 326, 3330, 3152, 471, 2416, 1361, 1686, 23004,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 10672, 12, 17520, 16, 761, 16, 2776, 751, 16, 501, 1649, 4672, 3536, 17129, 279, 666, 434, 9165, 471, 1034, 19, 266, 1019, 4888, 358, 326, 3330, 3152, 471, 2416, 1361, 1686, 23004,...
'wrk': array([],float), 'iwrk':array([],intc)}
'wrk': array([],float), 'iwrk':array([],int32)}
#def _curfit(x,y,w=None,xb=None,xe=None,k=3,task=0,s=None,t=None,
9a0347e760bcb96ee1fc399da0a604243f75cec4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/9a0347e760bcb96ee1fc399da0a604243f75cec4/fitpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 536, 389, 1397, 7216, 12, 92, 16, 93, 16, 91, 33, 7036, 16, 6114, 33, 7036, 16, 6554, 33, 7036, 16, 79, 33, 23, 16, 4146, 33, 20, 16, 87, 33, 7036, 16, 88, 33, 7036, 16, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 536, 389, 1397, 7216, 12, 92, 16, 93, 16, 91, 33, 7036, 16, 6114, 33, 7036, 16, 6554, 33, 7036, 16, 79, 33, 23, 16, 4146, 33, 20, 16, 87, 33, 7036, 16, 88, 33, 7036, 16, 2, -100...
t = s.triple sink.makeStatement(self.extern(t))
sink.makeStatement(self.extern(s.triple))
def _outputStatement(self, sink, s): t = s.triple sink.makeStatement(self.extern(t))
a7d0c800568125609e0fc58e331b9a6f318031c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a7d0c800568125609e0fc58e331b9a6f318031c6/cwm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2844, 3406, 12, 2890, 16, 9049, 16, 272, 4672, 268, 273, 272, 18, 313, 2444, 9049, 18, 6540, 3406, 12, 2890, 18, 338, 798, 12, 88, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2844, 3406, 12, 2890, 16, 9049, 16, 272, 4672, 268, 273, 272, 18, 313, 2444, 9049, 18, 6540, 3406, 12, 2890, 18, 338, 798, 12, 88, 3719, 2, -100, -100, -100, -100, -100, -100, -...
print '\t</networkconfig>'
self.addText('\t</networkconfig>\n')
def networkconfig(self): cmd = '/sbin/ifconfig -a'
9190171333e66c6f91c59d77bb2e033ed64a77e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7066/9190171333e66c6f91c59d77bb2e033ed64a77e1/bug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2483, 1425, 12, 2890, 4672, 1797, 273, 1173, 87, 4757, 19, 430, 1425, 300, 69, 11, 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, 2483, 1425, 12, 2890, 4672, 1797, 273, 1173, 87, 4757, 19, 430, 1425, 300, 69, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
persons = Persons(self.api, person_id_or_email_list)
if 'admin' not in self.caller['roles']: persons = filter(self.caller.can_view, persons)
def call(self, auth, person_id_or_email_list = None, return_fields = None): # Make sure that only valid fields are specified if return_fields is None: return_fields = self.return_fields elif filter(lambda field: field not in self.return_fields, return_fields): raise PLCInvalidArgument, "Invalid return field specified"
b59c1f2352daed8a33f3aad2690d883bf443ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/b59c1f2352daed8a33f3aad2690d883bf443ff9b/GetPersons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 6175, 67, 350, 67, 280, 67, 3652, 67, 1098, 273, 599, 16, 327, 67, 2821, 273, 599, 4672, 468, 4344, 3071, 716, 1338, 923, 1466, 854, 1269, 309, 327, 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, 745, 12, 2890, 16, 1357, 16, 6175, 67, 350, 67, 280, 67, 3652, 67, 1098, 273, 599, 16, 327, 67, 2821, 273, 599, 4672, 468, 4344, 3071, 716, 1338, 923, 1466, 854, 1269, 309, 327, 67, ...
security.declareProtected(Perms.manage_properties, 'get_deliverSettingsByKey')
security.declareProtected(Perms.manage_properties, 'get_deliverySettingsByKey')
def set_disableDigestByKey(self, key): """ Disable the email digest for a given key. The key normally represents a group, but may represent something else in the future. """ digest_property = '%s_digest' % key # we don't create the property if it doesn't exist if self.hasProperty(digest_property): self.manage_changeP...
fd6593b485d9111c670c7588d47012a405682f36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6270/fd6593b485d9111c670c7588d47012a405682f36/CustomUser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8394, 9568, 14560, 12, 2890, 16, 498, 4672, 3536, 10639, 326, 2699, 5403, 364, 279, 864, 498, 18, 225, 1021, 498, 15849, 8686, 279, 1041, 16, 1496, 2026, 2406, 5943, 469, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8394, 9568, 14560, 12, 2890, 16, 498, 4672, 3536, 10639, 326, 2699, 5403, 364, 279, 864, 498, 18, 225, 1021, 498, 15849, 8686, 279, 1041, 16, 1496, 2026, 2406, 5943, 469, 316, ...
'/usr/include/db3',
'/usr/local/include/db3',
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
ccfdde86eb56b5e24d44e18aa1c276be475aeee2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ccfdde86eb56b5e24d44e18aa1c276be475aeee2/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
buffers.append(data)
def readline(self, size=-1): data = self._rbuf if size < 0: # Read until \n or EOF, whichever comes first if self._rbufsize <= 1: # Speed up unbuffered case assert data == "" buffers = [] recv = self._sock.recv while data != "\n": data = recv(1) if not data: break buffers.append(data) return "".join(buffers) nl = data....
8f96b3937325bb2c07511f62915490ab796e078a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/8f96b3937325bb2c07511f62915490ab796e078a/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 501, 273, 365, 6315, 86, 4385, 309, 963, 411, 374, 30, 468, 2720, 3180, 521, 82, 578, 6431, 16, 600, 335, 580, 502, 14535, 1122, 309, 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, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 501, 273, 365, 6315, 86, 4385, 309, 963, 411, 374, 30, 468, 2720, 3180, 521, 82, 578, 6431, 16, 600, 335, 580, 502, 14535, 1122, 309, 365, ...
ret = self.lock.acquire( blocking ) if ret : self.timer = Timer( timeout, self.timeoutFunc ) self.timer.start() return ret def release( self ) : ret = False self.timer.cancel() del self.timer self.timer = None try: ret =self.lock.release() except : print "Error: unlock lock released"
def acquire( self, blocking=1, timeout = CALLWAIT_TIMEOUT-10 ) : #print "Acquire: blocking = ", blocking if blocking : ret = self.lock.acquire() self.timer = Timer( timeout, self.timeoutFunc ) self.timer.start() else : ret = self.lock.acquire( blocking ) if ret : self.timer = Timer( timeout, self.timeoutFunc ) self.tim...
cd8008197b677b62a25f3a0a833ab48b6a03ccbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/cd8008197b677b62a25f3a0a833ab48b6a03ccbe/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10533, 12, 365, 16, 9445, 33, 21, 16, 2021, 273, 22753, 19046, 67, 9503, 17, 2163, 262, 294, 468, 1188, 315, 27761, 30, 9445, 273, 3104, 9445, 309, 9445, 294, 325, 273, 365, 18, 739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10533, 12, 365, 16, 9445, 33, 21, 16, 2021, 273, 22753, 19046, 67, 9503, 17, 2163, 262, 294, 468, 1188, 315, 27761, 30, 9445, 273, 3104, 9445, 309, 9445, 294, 325, 273, 365, 18, 739, ...
self.error()
if self.debug: self.error()
def run(self, input_lines, input_offset=0, context=None, input_source=None): """ Run the state machine on `input_lines`. Return results (a list).
6b98eebdb7235e0fece6d58172ba72cf7c2703f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/6b98eebdb7235e0fece6d58172ba72cf7c2703f3/statemachine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 810, 67, 3548, 16, 810, 67, 3348, 33, 20, 16, 819, 33, 7036, 16, 810, 67, 3168, 33, 7036, 4672, 3536, 1939, 326, 919, 5228, 603, 1375, 2630, 67, 3548, 8338, 2000,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 810, 67, 3548, 16, 810, 67, 3348, 33, 20, 16, 819, 33, 7036, 16, 810, 67, 3168, 33, 7036, 4672, 3536, 1939, 326, 919, 5228, 603, 1375, 2630, 67, 3548, 8338, 2000,...
continue
continue
def firstTriangle(cache, dimensions, progressCallback = None, **args): if len(cache.contAttributes) == 1: return triangles1D(cache, False) if not cache.points: cache.points = orange.ExampleTable(orange.Domain(cache.contAttributes, cache.data.domain.classVar), cache.data).native(0) points = cache.points npoints = len(p...
45c3545d7cec5ecfb8951397d1a6a5002a7e27f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/45c3545d7cec5ecfb8951397d1a6a5002a7e27f7/orngPade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1122, 31506, 12, 2493, 16, 5769, 16, 4007, 2428, 273, 599, 16, 2826, 1968, 4672, 309, 562, 12, 2493, 18, 1213, 2498, 13, 422, 404, 30, 327, 19959, 21, 40, 12, 2493, 16, 1083, 13, 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, 1122, 31506, 12, 2493, 16, 5769, 16, 4007, 2428, 273, 599, 16, 2826, 1968, 4672, 309, 562, 12, 2493, 18, 1213, 2498, 13, 422, 404, 30, 327, 19959, 21, 40, 12, 2493, 16, 1083, 13, 225...
grid_sizer_2.Add(self.tp_flag, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) grid_sizer_2.Add(self.ta_flag, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) grid_sizer_2.Add(self.musicspeech_flag, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST...
grid_sizer_2.Add(self.tp_flag, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) grid_sizer_2.Add(self.ta_flag, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0) grid_sizer_2.Add(self.musicspeech_flag, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUS...
def __do_layout(self): # begin wxGlade: rdsPanel.__do_layout sizer_1 = wx.BoxSizer(wx.VERTICAL) grid_sizer_3 = wx.GridSizer(2, 1, 0, 0) grid_sizer_2 = wx.GridSizer(1, 7, 0, 0) grid_sizer_1 = wx.GridSizer(2, 4, 0, 0) grid_sizer_1.Add(self.label_1, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE,...
e675adf4e717575ba70d2b9d8bb182ec4c4b4798 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9733/e675adf4e717575ba70d2b9d8bb182ec4c4b4798/rdspanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 30393, 5537, 16186, 2896, 67, 6741, 272, 1824, 67, 21, 273, 7075, 18, 3514, 20512, 12, 27226, 18, 21654, 10109, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2896, 67, 6741, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 30393, 5537, 16186, 2896, 67, 6741, 272, 1824, 67, 21, 273, 7075, 18, 3514, 20512, 12, 27226, 18, 21654, 10109, 13...
print >>sys.stderr, ">>", ranges
def getBuzzForTable(self, table, size, with_freq=True, max_freq=None): """ Retrieves a sample of high, medium and low frequent terms or phrases, paired with their frequencies, depending on the table to be sampled from. @table Table to retrieve the highest frequency from. Must be a key in NetworkBuzzDBHandler.TABLES. @...
f451aec3f9ebc795a299d1e47ba364b085f8875f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/f451aec3f9ebc795a299d1e47ba364b085f8875f/SqliteCacheDBHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2882, 9510, 1290, 1388, 12, 2890, 16, 1014, 16, 963, 16, 598, 67, 10212, 33, 5510, 16, 943, 67, 10212, 33, 7036, 4672, 3536, 20507, 279, 3296, 434, 3551, 16, 16212, 471, 4587, 13821, 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, 2882, 9510, 1290, 1388, 12, 2890, 16, 1014, 16, 963, 16, 598, 67, 10212, 33, 5510, 16, 943, 67, 10212, 33, 7036, 4672, 3536, 20507, 279, 3296, 434, 3551, 16, 16212, 471, 4587, 13821, 3...
'tp_call', 'tp_str', 'tp_richcompare', 'tp_iter',
'tp_call', 'tp_str', 'tp_as_buffer', 'tp_richcompare', 'tp_iter',
def resetline(self): '''resets line numbering to the original file''' self.setline(self.lineno + 1, self.filename)
f63c95390b4027d2fbdf7e8537435d6a058014a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1020/f63c95390b4027d2fbdf7e8537435d6a058014a9/codegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 1369, 12, 2890, 4672, 9163, 455, 2413, 980, 1300, 310, 358, 326, 2282, 585, 26418, 365, 18, 542, 1369, 12, 2890, 18, 17782, 397, 404, 16, 365, 18, 3459, 13, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 1369, 12, 2890, 4672, 9163, 455, 2413, 980, 1300, 310, 358, 326, 2282, 585, 26418, 365, 18, 542, 1369, 12, 2890, 18, 17782, 397, 404, 16, 365, 18, 3459, 13, 2, -100, -100, -100, ...
<TEXTAREA COLS=80 ROWS=20 NAME=text>""" % title
<TEXTAREA COLS=80 ROWS=20 NAME=text>""" % self.escape(title)
def showedit(self, name, title, text):
3d3884effac531ca16a492c1e5747d5428f7678b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3d3884effac531ca16a492c1e5747d5428f7678b/faqmain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 4619, 12, 2890, 16, 508, 16, 2077, 16, 977, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 4619, 12, 2890, 16, 508, 16, 2077, 16, 977, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
property a class-attached descriptor, MapperProperty or string property name attached to the parent instance. \**kwargs all extra keyword arguments are propagated to the constructor of Query.
property a class-attached descriptor, MapperProperty or string property name attached to the parent instance. \**kwargs all extra keyword arguments are propagated to the constructor of Query.
def with_parent(instance, prop): """Return criterion which selects instances with a given parent. instance a parent instance, which should be persistent or detached. property a class-attached descriptor, MapperProperty or string property name attached to the parent instance. \**kwargs all extra keyword arguments are...
40b20c680a5fe8ef85b9b99b23769f4dc59f1504 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/40b20c680a5fe8ef85b9b99b23769f4dc59f1504/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 598, 67, 2938, 12, 1336, 16, 2270, 4672, 3536, 990, 11498, 1492, 19770, 3884, 598, 279, 864, 982, 18, 225, 791, 279, 982, 791, 16, 1492, 1410, 506, 9195, 578, 22037, 18, 225, 1272, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 598, 67, 2938, 12, 1336, 16, 2270, 4672, 3536, 990, 11498, 1492, 19770, 3884, 598, 279, 864, 982, 18, 225, 791, 279, 982, 791, 16, 1492, 1410, 506, 9195, 578, 22037, 18, 225, 1272, 279...
if not setname:
if not setname and not link_xlog_dir:
def restore_database(self): """Restore the database from backup
f59838c89d9849df13669c624f247cd90ec37269 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14597/f59838c89d9849df13669c624f247cd90ec37269/walmgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 6231, 12, 2890, 4672, 3536, 10874, 326, 2063, 628, 5114, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 6231, 12, 2890, 4672, 3536, 10874, 326, 2063, 628, 5114, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
trove.troveFailed('Package was committed at the same time as the same package was built in another job. Make sure no one else is building the same packages as you, or that you didn\'t acidentally built the same package twice with the same flavor')
trove.troveFailed('Package was committed at the same time as the same package was built in another job. Make sure no-one else is building the same packages as you, and that you didn\'t accidentally build the same package twice with the same flavor.')
def troveDuplicate(self, trove, troveList): package = trove.getName().split(':')[0] possibleMatches = self.depState.getTrovesByPackage(package) for match in possibleMatches: if match is trove: continue elif match.getBinaryTroves() == set(troveList): self.depState.troveDuplicate(trove, match) return elif set(match.getBi...
7416f104c8850e237937a5cfe15df3485c14f224 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/7416f104c8850e237937a5cfe15df3485c14f224/dephandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23432, 537, 11826, 12, 2890, 16, 23432, 537, 16, 23432, 537, 682, 4672, 2181, 273, 23432, 537, 18, 17994, 7675, 4939, 2668, 2497, 25146, 20, 65, 3323, 6869, 273, 365, 18, 15037, 1119, 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, 23432, 537, 11826, 12, 2890, 16, 23432, 537, 16, 23432, 537, 682, 4672, 2181, 273, 23432, 537, 18, 17994, 7675, 4939, 2668, 2497, 25146, 20, 65, 3323, 6869, 273, 365, 18, 15037, 1119, 18...
Handler for GStreamer bus messages about the currently reported level
Handles GStreamer bus messages about the currently reported level
def __PipelineBusLevelCb(self, bus, message): """ Handler for GStreamer bus messages about the currently reported level for the project or any of the instruments. """ st = message.structure if st and st.get_name() == "level": if not message.src is self.levelElement: for instr in self.instruments: if message.src is ins...
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8798, 7086, 2355, 15237, 12, 2890, 16, 5766, 16, 883, 4672, 3536, 27020, 611, 1228, 264, 5766, 2743, 2973, 326, 4551, 14010, 1801, 364, 326, 1984, 578, 1281, 434, 326, 29555, 18, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8798, 7086, 2355, 15237, 12, 2890, 16, 5766, 16, 883, 4672, 3536, 27020, 611, 1228, 264, 5766, 2743, 2973, 326, 4551, 14010, 1801, 364, 326, 1984, 578, 1281, 434, 326, 29555, 18, 3...
clone = afeElement.cloneNode()
furthestBlock.reparentChildren(clone)
def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 afeElement = self.tree.elementInActiveFormattingElements( token["name...
b77205d5a194b35f9e0d33752c3f0c063ccde4a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10463/b77205d5a194b35f9e0d33752c3f0c063ccde4a3/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
"""Return the next availible model_id in self.struct
"""Return the next available model_id in self.struct
def next_model_id(self): """Return the next availible model_id in self.struct """ model_id = 0 while True: model_id += 1 model = self.struct.get_model(model_id) if model == None: return model_id
91b5d496727dcc850ede1625a0816b0132fa6297 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/91b5d496727dcc850ede1625a0816b0132fa6297/tls_animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 2284, 67, 350, 12, 2890, 4672, 3536, 990, 326, 1024, 2319, 938, 67, 350, 316, 365, 18, 1697, 3536, 938, 67, 350, 273, 374, 1323, 1053, 30, 938, 67, 350, 1011, 404, 938, 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, 1024, 67, 2284, 67, 350, 12, 2890, 4672, 3536, 990, 326, 1024, 2319, 938, 67, 350, 316, 365, 18, 1697, 3536, 938, 67, 350, 273, 374, 1323, 1053, 30, 938, 67, 350, 1011, 404, 938, 273...
vars = ", ".join(map(latex, args))
vars = ", ".join(args)
def _latex_(self): args = self.args() if len(args) == 1: return "%s \\ {\mapsto}\\ %s" % (args[0], self._expr._latex_()) else: vars = ", ".join(map(latex, args)) # the weird TeX is to workaround an apparent JsMath bug return "\\left(%s \\right)\\ {\\mapsto}\\ %s" % (args, self._expr._latex_())
9f246a16beb4243491fe642f8c84ad5a1eb13c6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9f246a16beb4243491fe642f8c84ad5a1eb13c6c/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 833, 273, 365, 18, 1968, 1435, 309, 562, 12, 1968, 13, 422, 404, 30, 327, 2213, 87, 1736, 18890, 1458, 30168, 97, 1695, 738, 87, 6, 738, 261, 1968, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 833, 273, 365, 18, 1968, 1435, 309, 562, 12, 1968, 13, 422, 404, 30, 327, 2213, 87, 1736, 18890, 1458, 30168, 97, 1695, 738, 87, 6, 738, 261, 1968, 63...
if not self.rulestack and \ (not self.javascript or tag!='script'):
if not self.rulestack and not self.javascript:
def startElement (self, tag, attrs): """We get a new start tag. New rules could be appended to the pending rules. No rules can be removed from the list.""" # default data item = [STARTTAG, tag, attrs] if self.state=='wait': return _buf2data([item], self.waitbuf) rulelist = [] filtered = 0 # look for filter rules which ...
963fe71cee0c18f8415eff13338f105ff2d99ae1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/963fe71cee0c18f8415eff13338f105ff2d99ae1/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 261, 2890, 16, 1047, 16, 3422, 4672, 3536, 3218, 336, 279, 394, 787, 1047, 18, 1166, 2931, 3377, 506, 12317, 358, 326, 4634, 2931, 18, 2631, 2931, 848, 506, 3723, 628, 326, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 261, 2890, 16, 1047, 16, 3422, 4672, 3536, 3218, 336, 279, 394, 787, 1047, 18, 1166, 2931, 3377, 506, 12317, 358, 326, 4634, 2931, 18, 2631, 2931, 848, 506, 3723, 628, 326, 666, ...
confirm('did update history.but?' % VERSION)
confirm('did you update history.but?')
def confirm(question): print question if raw_input() != 'y': sys.exit(2)
bf79a2c47c9fa7705ae87215e4ea52d5152bfa6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7064/bf79a2c47c9fa7705ae87215e4ea52d5152bfa6f/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 4173, 4672, 1172, 5073, 309, 1831, 67, 2630, 1435, 480, 296, 93, 4278, 2589, 18, 8593, 12, 22, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 4173, 4672, 1172, 5073, 309, 1831, 67, 2630, 1435, 480, 296, 93, 4278, 2589, 18, 8593, 12, 22, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
menu.append((_("remove bouquet"), csel.removeBouquet))
menu.append((_("remove bouquet"), self.removeBouquet))
def __init__(self, session, csel): Screen.__init__(self, session) self.csel = csel
82c3d190f3e20cb8d2473be89c1fb1ed5d98cec3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/82c3d190f3e20cb8d2473be89c1fb1ed5d98cec3/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 276, 1786, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 365, 18, 71, 1786, 273, 276, 1786, 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, 2738, 972, 12, 2890, 16, 1339, 16, 276, 1786, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 365, 18, 71, 1786, 273, 276, 1786, 2, -100, -100, -100, -100, -100, -100, -10...
if type(bitmap) is type(''):
if type(bitmap) in (type(''),type(u'')):
def add(self,bitmap,handle=None): Damnlog('Adding',bitmap,'to icon list, with handle',handle) while handle is None or handle in self.list.keys(): Damnlog('!Icon conflict found with handle',handle) handle=hashlib.md5(str(random.random())+str(random.random())).hexdigest() if self.init: if type(bitmap) is type(''): bitmap...
0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 3682, 1458, 16, 4110, 33, 7036, 4672, 463, 301, 82, 1330, 2668, 13962, 2187, 3682, 1458, 11189, 869, 4126, 666, 16, 598, 1640, 2187, 4110, 13, 1323, 1640, 353, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3682, 1458, 16, 4110, 33, 7036, 4672, 463, 301, 82, 1330, 2668, 13962, 2187, 3682, 1458, 11189, 869, 4126, 666, 16, 598, 1640, 2187, 4110, 13, 1323, 1640, 353, 599, ...
print "Caught expected NoSectionError:", e
pass
def query_errors(): print print "Testing query interface..." cf = ConfigParser.ConfigParser() print cf.sections() print "Has section 'Foo'?", cf.has_section("Foo") try: cf.options("Foo") except ConfigParser.NoSectionError, e: print "Caught expected NoSectionError:", e else: print "Failed to catch expected NoSectionErro...
8dc634b98696d12e0c4314fb0e0c8e5c2afc1666 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8dc634b98696d12e0c4314fb0e0c8e5c2afc1666/test_cfgparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 4324, 13332, 1172, 1172, 315, 22218, 843, 1560, 7070, 6080, 273, 25076, 18, 809, 2678, 1435, 1172, 6080, 18, 11657, 1435, 1172, 315, 5582, 2442, 296, 42, 5161, 11, 35, 3113, 608...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 4324, 13332, 1172, 1172, 315, 22218, 843, 1560, 7070, 6080, 273, 25076, 18, 809, 2678, 1435, 1172, 6080, 18, 11657, 1435, 1172, 315, 5582, 2442, 296, 42, 5161, 11, 35, 3113, 608...
if 'solution_dict' in kwds and kwds['solution_dict']==True:
if kwds.get('solution_dict', False): if len(sol_list)==0: return []
def solve(f, *args, **kwds): r""" Algebraically solve an equation or system of equations (over the complex numbers) for given variables. Inequalities and systems of inequalities are also supported. INPUT: - ``f`` - equation or system of equations (given by a list or tuple) - ``*args`` - variables to solve for. - ...
0514bac4c2d7c6b97d01cba8018101be1b18547a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0514bac4c2d7c6b97d01cba8018101be1b18547a/relation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 74, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2262, 29087, 6478, 12439, 392, 15778, 578, 2619, 434, 30369, 261, 1643, 326, 7233, 5600, 13, 364, 864, 3152, 18, 657, 9729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 74, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2262, 29087, 6478, 12439, 392, 15778, 578, 2619, 434, 30369, 261, 1643, 326, 7233, 5600, 13, 364, 864, 3152, 18, 657, 9729...
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None):
def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False, exclude=False, single=False, randomize=False, fromfile=None, findleaks=False, use_resources=None, trace=False):
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdi...
1a5ffc9a430cf54038f88d81f49479e4f301c290 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a5ffc9a430cf54038f88d81f49479e4f301c290/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 8381, 16, 2103, 33, 8381, 16, 4433, 33, 8381, 16, 2202, 33, 8381, 16, 2744, 554, 33, 8381, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 8381, 16, 2103, 33, 8381, 16, 4433, 33, 8381, 16, 2202, 33, 8381, 16, 2744, 554, 33, 8381, 16, ...
os.unlink('state')
os.unlink(self.control + '.state')
def complete(self, status): # We are about to exit 'complete' so clean up the control file. try: os.unlink('state') except: pass os.rename(sys.argv[1], sys.argv[1] + '.complete')
1ab90bdc7b43e2a15c2d64fba1ae9d3de333a906 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/1ab90bdc7b43e2a15c2d64fba1ae9d3de333a906/job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 12, 2890, 16, 1267, 4672, 468, 1660, 854, 2973, 358, 2427, 296, 6226, 11, 1427, 2721, 731, 326, 3325, 585, 18, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 7098, 397, 2418, 2019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 12, 2890, 16, 1267, 4672, 468, 1660, 854, 2973, 358, 2427, 296, 6226, 11, 1427, 2721, 731, 326, 3325, 585, 18, 775, 30, 1140, 18, 318, 1232, 12, 2890, 18, 7098, 397, 2418, 2019, ...
while pos_slot_n is not None: pos_slot = 12 + pos_slot_n * 8 position = IO.decode_uint32(posi_rsrc[pos_slot:pos_slot+4]) documents.add(position) pos_slot_n = IO.decode_link(posi_rsrc[pos_slot+4:pos_slot+8])
pos_slot = 12 + pos_slot_n * 4 data = posi_rsrc[pos_slot+4:pos_slot+4+(frequency*4)] i = 0 while i < frequency: documents.add(IO.decode_uint32(data[i:i+4])) i += 1
def load_documents(self): # Initialize data structure self.documents = {}
d27c22daf0630253f4ccf2cc0eb47ee78306f168 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d27c22daf0630253f4ccf2cc0eb47ee78306f168/IIndex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 24795, 12, 2890, 4672, 468, 9190, 501, 3695, 365, 18, 24795, 273, 2618, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1262, 67, 24795, 12, 2890, 4672, 468, 9190, 501, 3695, 365, 18, 24795, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not ((basename not in [':info', 'info']) or
if not ((basename in [':info', 'info']) or
def AddEntry(self, name): '''add new file additions for a single cf file''' basename = name.split('/')[-1] rbasename = self.repopath.split('/')[-1] if not ((basename not in [':info', 'info']) or (basename[:len(rbasename)] == rbasename)): logger.error("Confused about file %s; ignoring" % (name)) return if basename in ['...
a2e93cca6c87142ad777e4e4d46cbdd01f0f4bd9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/a2e93cca6c87142ad777e4e4d46cbdd01f0f4bd9/Cfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1622, 12, 2890, 16, 508, 4672, 9163, 1289, 394, 585, 26260, 364, 279, 2202, 6080, 585, 26418, 4882, 273, 508, 18, 4939, 2668, 2473, 13, 18919, 21, 65, 7138, 26157, 273, 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, 1436, 1622, 12, 2890, 16, 508, 4672, 9163, 1289, 394, 585, 26260, 364, 279, 2202, 6080, 585, 26418, 4882, 273, 508, 18, 4939, 2668, 2473, 13, 18919, 21, 65, 7138, 26157, 273, 365, 18, ...
"DefaultGroupname=RapidSVN %s\"" % (self.version.str), "DefaultGroupname")
"DefaultGroupName=RapidSVN %s" % (self.version.str), "DefaultGroupName")
def checkRapidsvnIss(self): fname = RAPIDSVN_ISS_FILE replace(fname, "AppVerName=[^\n]*", "AppVerName=RapidSVN %s" % (self.version.str), "AppVerName") replace(fname, "OutputBaseFilename=[^\n]*", \ "OutputBaseFilename=RapidSVN-%s" % (self.version.str), "OutputBaseFilename") replace(fname, "DefaultGroupName=[^\n]*", \ "D...
f11ae425869daf5ae5eb0da602578b5109f80c89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9898/f11ae425869daf5ae5eb0da602578b5109f80c89/check-version.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 54, 438, 2232, 25031, 7568, 12, 2890, 4672, 5299, 273, 534, 2203, 19516, 58, 50, 67, 25689, 67, 3776, 1453, 12, 12749, 16, 315, 3371, 3945, 461, 33, 15441, 82, 5772, 3113, 315, 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, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 54, 438, 2232, 25031, 7568, 12, 2890, 4672, 5299, 273, 534, 2203, 19516, 58, 50, 67, 25689, 67, 3776, 1453, 12, 12749, 16, 315, 3371, 3945, 461, 33, 15441, 82, 5772, 3113, 315, 33...
if (self._module is not None and obj not in self._module.value().__dict__.values()): module = _find_builtin_obj_module(obj) if module is not None: self._module = ObjectUID(module)
if self._module is not None: for val in self._module.value().__dict__.values(): if val is obj: break else: module = _find_builtin_obj_module(obj) if module is not None: self._module = ObjectUID(module)
def module(self): if not hasattr(self, '_module'): obj = self._obj typ = type(obj)
f97a620c74baef2285f723ccd22876108cd43774 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/f97a620c74baef2285f723ccd22876108cd43774/uid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1605, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 16, 2070, 2978, 11, 4672, 1081, 273, 365, 6315, 2603, 3815, 273, 618, 12, 2603, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1605, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 16, 2070, 2978, 11, 4672, 1081, 273, 365, 6315, 2603, 3815, 273, 618, 12, 2603, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
cb = matplotlib.colorbar.ColorbarBase(cax,cmap=cm,boundaries=realbins)
cb = matplotlib.colorbar.ColorbarBase(cax,cmap=cm,boundaries=realbins,values=binvalues)
def getrange(seriesinfo,axis): range = [None,None] for info in seriesinfo: if axis in info: curmin,curmax = info[axis].min(),info[axis].max() if range[0] is None or curmin<range[0]: range[0] = curmin if range[1] is None or curmax>range[1]: range[1] = curmax return range
4b642934f4556f738480cc22595baae551fa1625 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/4b642934f4556f738480cc22595baae551fa1625/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3676, 12, 10222, 1376, 16, 4890, 4672, 1048, 273, 306, 7036, 16, 7036, 65, 364, 1123, 316, 4166, 1376, 30, 309, 2654, 316, 1123, 30, 662, 1154, 16, 1397, 1896, 273, 1123, 63, 4890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3676, 12, 10222, 1376, 16, 4890, 4672, 1048, 273, 306, 7036, 16, 7036, 65, 364, 1123, 316, 4166, 1376, 30, 309, 2654, 316, 1123, 30, 662, 1154, 16, 1397, 1896, 273, 1123, 63, 4890...
cvt_time=lambda v:datetime(2001,1,1) + timedelta(seconds=v)
def cvt_time(v): v=timedelta(seconds=v) epoch2001 = datetime(2001,1,1) epoch1970 = datetime(1970,1,1) if (epoch2001 + v - datetime.today()).days > 5*365: return epoch1970 + v return epoch2001 + v
def createFields(self): yield Enum(Bits(self, "marker_type", 4), {0: "Simple", 1: "Int", 2: "Real", 3: "Date", 4: "Data", 5: "ASCII String", 6: "UTF-16-BE String", 8: "UID", 10: "Array", 13: "Dict",}) markertype = self['marker_type'].value if markertype == 0: # Simple (Null) yield Enum(Bits(self, "value", 4), {0: "Null...
879aa46a777fb162d538d6b14d159fddff160ba3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9327/879aa46a777fb162d538d6b14d159fddff160ba3/bplist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 11145, 67, 723, 3113, 1059, 3631, 288, 20, 30, 315, 5784, 3113, 404, 30, 315, 1702, 3113, 576, 30, 315, 6955, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 11145, 67, 723, 3113, 1059, 3631, 288, 20, 30, 315, 5784, 3113, 404, 30, 315, 1702, 3113, 576, 30, 315, 6955, 3113, ...
self.unpack('ll', self.data[self.index:self.index+8]),
self.unpack('ii', self.data[self.index:self.index+8]),
def Tag_sint32_xy(self): new_tag = unpack('B', self.data[self.index])[0]
b6246092697acf4603a7a53de2b028120f095743 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/675/b6246092697acf4603a7a53de2b028120f095743/pxldis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 87, 474, 1578, 67, 1698, 12, 2890, 4672, 394, 67, 2692, 273, 6167, 2668, 38, 2187, 365, 18, 892, 63, 2890, 18, 1615, 5717, 63, 20, 65, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4034, 67, 87, 474, 1578, 67, 1698, 12, 2890, 4672, 394, 67, 2692, 273, 6167, 2668, 38, 2187, 365, 18, 892, 63, 2890, 18, 1615, 5717, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100...
for name in vfs.get_names(uri):
for name in vfs.get_names(base):
def get_handlers(self, reference): base = self._resolve_reference(reference) for name in vfs.get_names(uri): ref = resolve_uri2(base, name) yield self.get_handler(ref)
dcfcfecd9a3b39bcb9fc63c2589702249e6ff308 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/dcfcfecd9a3b39bcb9fc63c2589702249e6ff308/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11046, 12, 2890, 16, 2114, 4672, 1026, 273, 365, 6315, 10828, 67, 6180, 12, 6180, 13, 364, 508, 316, 20682, 18, 588, 67, 1973, 12, 1969, 4672, 1278, 273, 2245, 67, 1650, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 11046, 12, 2890, 16, 2114, 4672, 1026, 273, 365, 6315, 10828, 67, 6180, 12, 6180, 13, 364, 508, 316, 20682, 18, 588, 67, 1973, 12, 1969, 4672, 1278, 273, 2245, 67, 1650, 22, ...
chisqThreshVect = int( duration * 1/squareChisq_tuple[3][0] ) * [chisqThreshold] if(rsqThreshold > 0 & rsqThreshold < 100.): rsqThreshVect = int( duration * 1/squareChisq_tuple[3][0] ) * [rsqThreshold]
chisqThreshVect = lengthChisq * [chisqThreshold] if((rsqThreshold > 0) & (rsqThreshold < 100.)): rsqThreshVect = lengthChisq * [rsqThreshold]
def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFile): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--sample-rate": sampleR...
c4d2198cea6ff30c6d5f1aa9bee69af1c499079e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/c4d2198cea6ff30c6d5f1aa9bee69af1c499079e/plotsnrchisq_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 4672, 225, 3597, 85, 7614, 273, 374, 31, 225, 364, 1027, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 4672, 225, 3597, 85, 7614, 273, 374, 31, 225, 364, 1027, 316...
if e.errno == errno.EFTYPE and not self.isdir():
if e.errno == 79 and not self.isdir():
def chmod(self, permissions): """Wrapper around os.chmod""" try: self.conn.os.chmod(self.path, permissions & Globals.permission_mask) except OSError, e: if e.errno == errno.EFTYPE and not self.isdir(): # Some systems throw this error if try to set sticky bit # on a non-directory. Remove sticky bit and try again. log.Lo...
5e04c97d5d16b866da6e5809248aeaf1cfe66333 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/5e04c97d5d16b866da6e5809248aeaf1cfe66333/rpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13413, 12, 2890, 16, 4371, 4672, 3536, 3611, 6740, 1140, 18, 343, 1711, 8395, 775, 30, 365, 18, 4646, 18, 538, 18, 343, 1711, 12, 2890, 18, 803, 16, 4371, 473, 18901, 1031, 18, 9827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13413, 12, 2890, 16, 4371, 4672, 3536, 3611, 6740, 1140, 18, 343, 1711, 8395, 775, 30, 365, 18, 4646, 18, 538, 18, 343, 1711, 12, 2890, 18, 803, 16, 4371, 473, 18901, 1031, 18, 9827, ...
self._stash_rewrite_and_call(EX_PHYLO, ( (ParseTests, [ 'test_read_phylo', 'test_parse_phylo', 'test_shape_phylo']), (TreeTests, [ 'test_Phyloxml', 'test_Other', 'test_Phylogeny', 'test_Clade', 'test_Annotation', 'test_CladeRelation', 'test_Date', 'test_Distribution', 'test_Events', 'test_Property', 'test_...
global EX_PHYLO orig_fname = EX_PHYLO try: EX_PHYLO = DUMMY self._rewrite_and_call(orig_fname, ( (ParseTests, [ 'test_read_phylo', 'test_parse_phylo', 'test_shape_phylo']), (TreeTests, [ 'test_Phyloxml', 'test_Other', 'test_Phylogeny', 'test_Clade', 'test_Annotation', 'test_CladeRelation', 'test_Date', 'test_D...
def test_phylo(self): """Round-trip parsing and serialization of phyloxml_examples.xml.""" self._stash_rewrite_and_call(EX_PHYLO, ( (ParseTests, [ 'test_read_phylo', 'test_parse_phylo', 'test_shape_phylo']), (TreeTests, [ 'test_Phyloxml', 'test_Other', 'test_Phylogeny', 'test_Clade', 'test_Annotation', 'test_CladeRe...
ad1a618def838d98432e9623367cffb595eadecd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/ad1a618def838d98432e9623367cffb595eadecd/test_PhyloXML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 844, 93, 383, 12, 2890, 4672, 3536, 11066, 17, 25125, 5811, 471, 11854, 434, 1844, 93, 383, 2902, 67, 16858, 18, 2902, 12123, 365, 6315, 25915, 67, 21489, 67, 464, 67, 1991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 844, 93, 383, 12, 2890, 4672, 3536, 11066, 17, 25125, 5811, 471, 11854, 434, 1844, 93, 383, 2902, 67, 16858, 18, 2902, 12123, 365, 6315, 25915, 67, 21489, 67, 464, 67, 1991, ...
break last_failed = False shift //= 2 tests = tests[shift:] + tests[:shift]
else: last_failed = False shift //= 2 tests = tests[shift:] + tests[:shift]
def bisect_tests(): tests = find_tests() write('Found %d tests', len(tests)) shift = len(tests) // 4 last_failed = False while len(tests) > 1 and shift > 0: mid = len(tests) // 2 + 1 left, right = tests[:mid], tests[mid:] if not run_tests(left): last_failed = True tests = left shift = len(tests) // 4 + 1 break if not ...
7a01b99380652cc1e5434c2f8dfb8c7fd88984c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13107/7a01b99380652cc1e5434c2f8dfb8c7fd88984c6/bisect_crashes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27031, 67, 16341, 13332, 7434, 273, 1104, 67, 16341, 1435, 1045, 2668, 2043, 738, 72, 7434, 2187, 562, 12, 16341, 3719, 4654, 273, 562, 12, 16341, 13, 368, 1059, 1142, 67, 7307, 273, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27031, 67, 16341, 13332, 7434, 273, 1104, 67, 16341, 1435, 1045, 2668, 2043, 738, 72, 7434, 2187, 562, 12, 16341, 3719, 4654, 273, 562, 12, 16341, 13, 368, 1059, 1142, 67, 7307, 273, 108...
break else:
if selected == -1:
def _loadConnections(self): connections = storage.connections() def_conn = storage.option('default_connection') for i, el in enumerate(connections): self.list_conn.addItem(el[1], QVariant(el[0])) if el[0] == def_conn: selected = i break else: # if the default connections doesn't exists. selected = 0 storage.setOption('...
49d8eb348539b6ea9a056ea2298f16f08ee30e20 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8560/49d8eb348539b6ea9a056ea2298f16f08ee30e20/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 9314, 12, 2890, 4672, 5921, 273, 2502, 18, 13313, 1435, 1652, 67, 4646, 273, 2502, 18, 3482, 2668, 1886, 67, 4071, 6134, 364, 277, 16, 415, 316, 4241, 12, 13313, 4672, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 9314, 12, 2890, 4672, 5921, 273, 2502, 18, 13313, 1435, 1652, 67, 4646, 273, 2502, 18, 3482, 2668, 1886, 67, 4071, 6134, 364, 277, 16, 415, 316, 4241, 12, 13313, 4672, 365, 1...
return complex(f._approx_(float(g)))
return complex(f._approx_(complex(g)))
def __complex__(self): f = self._operands[0] g = self._operands[1] return complex(f._approx_(float(g)))
f746ec6e60d00a6c987c82ff850d2d3deaefa785 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f746ec6e60d00a6c987c82ff850d2d3deaefa785/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14259, 972, 12, 2890, 4672, 284, 273, 365, 6315, 4063, 5708, 63, 20, 65, 314, 273, 365, 6315, 4063, 5708, 63, 21, 65, 327, 7233, 12, 74, 6315, 26742, 67, 12, 5659, 12, 75, 2034...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14259, 972, 12, 2890, 4672, 284, 273, 365, 6315, 4063, 5708, 63, 20, 65, 314, 273, 365, 6315, 4063, 5708, 63, 21, 65, 327, 7233, 12, 74, 6315, 26742, 67, 12, 5659, 12, 75, 2034...
print "ADDR =", addr print "CLASS =", svrcls
print("ADDR =", addr) print("CLASS =", svrcls)
def run_servers(self, proto, servers, hdlrcls, testfunc): for svrcls in servers: addr = self.pickaddr(proto) if verbose: print "ADDR =", addr print "CLASS =", svrcls t = ServerThread(addr, svrcls, hdlrcls) if verbose: print "server created" t.start() if verbose: print "server running" for i in range(NREQ): t.ready.wait...
459f06037c9b13cdb3e0f1e070ae33421e222d51 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/459f06037c9b13cdb3e0f1e070ae33421e222d51/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 14247, 12, 2890, 16, 3760, 16, 7084, 16, 366, 5761, 86, 6429, 16, 1842, 644, 4672, 364, 5893, 86, 6429, 316, 7084, 30, 3091, 273, 365, 18, 11503, 4793, 12, 9393, 13, 309, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 14247, 12, 2890, 16, 3760, 16, 7084, 16, 366, 5761, 86, 6429, 16, 1842, 644, 4672, 364, 5893, 86, 6429, 316, 7084, 30, 3091, 273, 365, 18, 11503, 4793, 12, 9393, 13, 309, 3...
message['to'] = "%s@conference.%s" %(room, CHATSERVER)
message['to'] = "%s@conference.%s" %(room, secret.CHATSERVER)
def send_groupchat(self, room, mess): message = domish.Element(('jabber:client','message')) message['to'] = "%s@conference.%s" %(room, CHATSERVER) message['type'] = "groupchat" message.addElement('body',None, mess) self.xmlstream.send(message)
24fa6a8a683868db6a24e95e0b656f67ea1dbe8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11180/24fa6a8a683868db6a24e95e0b656f67ea1dbe8d/iemchatbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 1655, 10880, 12, 2890, 16, 7725, 16, 12755, 4672, 883, 273, 4092, 1468, 18, 1046, 12, 2668, 78, 378, 744, 30, 2625, 17023, 2150, 26112, 883, 3292, 869, 3546, 273, 2213, 87, 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, 1366, 67, 1655, 10880, 12, 2890, 16, 7725, 16, 12755, 4672, 883, 273, 4092, 1468, 18, 1046, 12, 2668, 78, 378, 744, 30, 2625, 17023, 2150, 26112, 883, 3292, 869, 3546, 273, 2213, 87, 3...
baudrate=19200, bytesize=EIGHTBITS, parity=PARITY_EVEN, stopbits=STOPBITS_ONE, timeout=3, xonxoff=0, rtscts=0,
baudrate=19200, bytesize=EIGHTBITS, parity=PARITY_EVEN, stopbits=STOPBITS_ONE, timeout=3, xonxoff=0, rtscts=0,
def fileno(self): """For easier use of the serial port instance with select. WARNING: this function is not portable to different platforms!""" if self.fd is None: raise portNotOpenError return self.fd
1f90ac65d3fedcbcbad07f16ea3e6414ab08d398 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/1f90ac65d3fedcbcbad07f16ea3e6414ab08d398/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24256, 12, 2890, 4672, 3536, 1290, 15857, 999, 434, 326, 2734, 1756, 791, 598, 2027, 18, 9744, 30, 333, 445, 353, 486, 1756, 429, 358, 3775, 17422, 5, 8395, 309, 365, 18, 8313, 353, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24256, 12, 2890, 4672, 3536, 1290, 15857, 999, 434, 326, 2734, 1756, 791, 598, 2027, 18, 9744, 30, 333, 445, 353, 486, 1756, 429, 358, 3775, 17422, 5, 8395, 309, 365, 18, 8313, 353, 59...
- Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph.
- Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph.
def cliques_maximum(self): """ Returns the list of all maximum cliques, with each clique represented by a list of vertices. A clique is an induced complete subgraph, and a maximum clique is one of maximal order. NOTES: - Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an un...
9e5b138b9189031c2c258c6596d3a3b7fdafb7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9e5b138b9189031c2c258c6596d3a3b7fdafb7d0/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 29896, 67, 15724, 12, 2890, 4672, 3536, 2860, 326, 666, 434, 777, 4207, 4942, 29896, 16, 598, 1517, 31380, 10584, 635, 279, 666, 434, 6928, 18, 432, 31380, 353, 392, 1547, 26372, 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, 4942, 29896, 67, 15724, 12, 2890, 4672, 3536, 2860, 326, 666, 434, 777, 4207, 4942, 29896, 16, 598, 1517, 31380, 10584, 635, 279, 666, 434, 6928, 18, 432, 31380, 353, 392, 1547, 26372, 3...
if varForDifferentiation is not None or isscalar(vars): r = d1
if varForDifferentiation is not None or isscalar(vars) or isinstance(vars, ndarray): r = d1
def get_d1(fun, vars, diffInt=1.5e-8, pointVal = None, args=(), stencil = 3, varForDifferentiation = None, exactShape = False): """ Usage: get_d1(fun, x, diffInt=1.5e-8, pointVal = None, args=(), stencil = 3, varForDifferentiation = None, exactShape = False) fun: R^n -> R^m, x: Python list (not tuple!) or numpy array f...
b28568f4ff3efc26dccb1b00218630cbc8f8ea7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/b28568f4ff3efc26dccb1b00218630cbc8f8ea7a/DerApproximator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 72, 21, 12, 12125, 16, 4153, 16, 3122, 1702, 33, 21, 18, 25, 73, 17, 28, 16, 1634, 3053, 273, 599, 16, 833, 33, 9334, 30503, 273, 890, 16, 569, 1290, 26270, 7072, 273, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 72, 21, 12, 12125, 16, 4153, 16, 3122, 1702, 33, 21, 18, 25, 73, 17, 28, 16, 1634, 3053, 273, 599, 16, 833, 33, 9334, 30503, 273, 890, 16, 569, 1290, 26270, 7072, 273, 599...
def rtype_getRuntimeTypeInfo(hop): return hop.inputconst(Ptr(RuntimeTypeInfo), hop.s_result.const)
def rtype_cast_pointer(hop): assert hop.args_s[0].is_constant() assert isinstance(hop.args_r[1], rptr.PtrRepr) v_type, v_input = hop.inputargs(Void, hop.args_r[1]) return hop.genop('cast_pointer', [v_input], # v_type implicit in r_result resulttype = hop.r_result.lowleveltype)
a43a8197cad90bf0e029f581153da92afeb11174 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/a43a8197cad90bf0e029f581153da92afeb11174/rbuiltin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9328, 67, 4155, 67, 10437, 12, 18444, 4672, 1815, 19055, 18, 1968, 67, 87, 63, 20, 8009, 291, 67, 14384, 1435, 1815, 1549, 12, 18444, 18, 1968, 67, 86, 63, 21, 6487, 436, 6723, 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, 9328, 67, 4155, 67, 10437, 12, 18444, 4672, 1815, 19055, 18, 1968, 67, 87, 63, 20, 8009, 291, 67, 14384, 1435, 1815, 1549, 12, 18444, 18, 1968, 67, 86, 63, 21, 6487, 436, 6723, 18, 5...
return template
return template
def template(**kwargs): return self.template.render(view=view, context=view.context, request=view.request, _context=view.request, options=kwargs)
1d8f4dbce33b9c45b19c779e3ead54b4fcc8a706 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9696/1d8f4dbce33b9c45b19c779e3ead54b4fcc8a706/pagetemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 12, 636, 4333, 4672, 327, 365, 18, 3202, 18, 5902, 12, 1945, 33, 1945, 16, 819, 33, 1945, 18, 2472, 16, 590, 33, 1945, 18, 2293, 16, 389, 2472, 33, 1945, 18, 2293, 16, 702, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 12, 636, 4333, 4672, 327, 365, 18, 3202, 18, 5902, 12, 1945, 33, 1945, 16, 819, 33, 1945, 18, 2472, 16, 590, 33, 1945, 18, 2293, 16, 389, 2472, 33, 1945, 18, 2293, 16, 702, 3...
resp = Response.objects.create(poll=self, message=db_message, contact=db_message.contact, time=db_message.date)
resp = Response.objects.create(poll=self, message=db_message, contact=db_message.connection.contact, date=db_message.date)
def process_response(self, message): db_message = None if hasattr(message, 'db_message'): db_message = message.db_message resp = Response.objects.create(poll=self, message=db_message, contact=db_message.contact, time=db_message.date) outgoing_message = self.default_response if (self.type == Poll.TYPE_LOCATION): locatio...
f78bfa3497ac2d1b26a893c13e12cf8ff792835a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/f78bfa3497ac2d1b26a893c13e12cf8ff792835a/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2740, 12, 2890, 16, 883, 4672, 1319, 67, 2150, 273, 599, 309, 3859, 12, 2150, 16, 296, 1966, 67, 2150, 11, 4672, 1319, 67, 2150, 273, 883, 18, 1966, 67, 2150, 1718, 273, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2740, 12, 2890, 16, 883, 4672, 1319, 67, 2150, 273, 599, 309, 3859, 12, 2150, 16, 296, 1966, 67, 2150, 11, 4672, 1319, 67, 2150, 273, 883, 18, 1966, 67, 2150, 1718, 273, 23...
coeff = f.dict().values()[0] / g.dict().values()[0]
coeff = self.base_ring()(f.dict().values()[0] / g.dict().values()[0])
def monomial_quotient(self,f, g, coeff=False): """ Return f/g, where both f and g are treated as monomials. Coefficients are ignored by default.
80b87b684fff1938ac6eef62a66675b75b66dbbb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/80b87b684fff1938ac6eef62a66675b75b66dbbb/multi_polynomial_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 4708, 649, 67, 9270, 1979, 12, 2890, 16, 74, 16, 314, 16, 11943, 33, 8381, 4672, 3536, 2000, 284, 19, 75, 16, 1625, 3937, 284, 471, 314, 854, 13974, 487, 312, 4708, 649, 87, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 4708, 649, 67, 9270, 1979, 12, 2890, 16, 74, 16, 314, 16, 11943, 33, 8381, 4672, 3536, 2000, 284, 19, 75, 16, 1625, 3937, 284, 471, 314, 854, 13974, 487, 312, 4708, 649, 87, 18,...
self._record_member(tarinfo)
self.members.append(tarinfo)
def addfile(self, tarinfo, fileobj=None): """Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb' to avoid irritation...
f3c5611fef7cbd2ac8f0bf4e44bf11fe210817be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f3c5611fef7cbd2ac8f0bf4e44bf11fe210817be/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 768, 12, 2890, 16, 8232, 1376, 16, 17041, 33, 7036, 4672, 3536, 986, 326, 20334, 966, 733, 1375, 11718, 1376, 11, 358, 326, 5052, 18, 971, 1375, 768, 2603, 11, 353, 864, 16, 8232,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 12, 2890, 16, 8232, 1376, 16, 17041, 33, 7036, 4672, 3536, 986, 326, 20334, 966, 733, 1375, 11718, 1376, 11, 358, 326, 5052, 18, 971, 1375, 768, 2603, 11, 353, 864, 16, 8232,...
exp_value = locale.atof(new_value) * (10 ** digits[1]) if exp_value - int(exp_value) != 0.0: entry.stop_emission('insert-text')
def sig_insert_text(self, entry, new_text, new_text_length, position): value = entry.get_text() position = entry.get_position() new_value = value[:position] + new_text + value[position:] try: if new_value == '-': return
d8f659740fb3e5e4be215ae95ebd292d7d19fe40 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/d8f659740fb3e5e4be215ae95ebd292d7d19fe40/float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 6387, 67, 955, 12, 2890, 16, 1241, 16, 394, 67, 955, 16, 394, 67, 955, 67, 2469, 16, 1754, 4672, 460, 273, 1241, 18, 588, 67, 955, 1435, 1754, 273, 1241, 18, 588, 67, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 6387, 67, 955, 12, 2890, 16, 1241, 16, 394, 67, 955, 16, 394, 67, 955, 67, 2469, 16, 1754, 4672, 460, 273, 1241, 18, 588, 67, 955, 1435, 1754, 273, 1241, 18, 588, 67, 327...
return urllib.parsequote(component[:31], safe='')
return urllib.parse.quote(component[:31], safe='')
def _pncomp2url(component): # We want to quote slashes return urllib.parsequote(component[:31], safe='')
bad85df6fc58d9616983b3c50d59d26964e54c3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/bad85df6fc58d9616983b3c50d59d26964e54c3f/macurl2path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7449, 2919, 22, 718, 12, 4652, 4672, 468, 1660, 2545, 358, 3862, 19034, 327, 11527, 18, 2670, 18, 6889, 12, 4652, 10531, 6938, 6487, 4183, 2218, 6134, 225, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7449, 2919, 22, 718, 12, 4652, 4672, 468, 1660, 2545, 358, 3862, 19034, 327, 11527, 18, 2670, 18, 6889, 12, 4652, 10531, 6938, 6487, 4183, 2218, 6134, 225, 2, -100, -100, -100, -100...
if self.selCurve_length/self.o.scale < 0.03:
if self.mouse_within_stickiness_limit(event, DRAG_STICKINESS_LIMIT):
def leftUp(self, event): env.history.flush_saved_transients() # flush any transient message it saved up if self.ignore_next_leftUp_event: # This event is the second leftUp of a double click, so ignore it. self.ignore_next_leftUp_event = False return if self.cursor_over_when_LMB_pressed == 'Empty Space': self.end_sele...
07fcee8afa6d8aa107e744aeb4ac2e422cc110df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/07fcee8afa6d8aa107e744aeb4ac2e422cc110df/depositMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2002, 1211, 12, 2890, 16, 871, 4672, 1550, 18, 8189, 18, 11330, 67, 14077, 67, 2338, 5828, 1435, 468, 3663, 1281, 12315, 883, 518, 5198, 731, 225, 309, 365, 18, 6185, 67, 4285, 67, 448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2002, 1211, 12, 2890, 16, 871, 4672, 1550, 18, 8189, 18, 11330, 67, 14077, 67, 2338, 5828, 1435, 468, 3663, 1281, 12315, 883, 518, 5198, 731, 225, 309, 365, 18, 6185, 67, 4285, 67, 448...
CurrentTheme.DEBUG_CRITICAL_COLOR.name())
CurrentTheme.DEBUG_CRITICAL_COLOR.name() + ';background-color:
def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout)
ee8906c91039ec4223a5bb680b953260096a657f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/ee8906c91039ec4223a5bb680b953260096a657f/debug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 599, 4672, 23425, 18, 53, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 13, 2922, 18, 4148, 18, 2829, 5108, 18, 588, 1442, 7675, 542, 67, 3256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 273, 599, 4672, 23425, 18, 53, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 13, 2922, 18, 4148, 18, 2829, 5108, 18, 588, 1442, 7675, 542, 67, 3256, ...
INPUT: - ``ct`` - The Cartan Type OPTIONAL ARGUMENTS: - ``base_ring`` - (default: `\ZZ`) - ``prefix`` (default an automatically generated prefix based on Cartan type) - ``cache`` - (default False) setting cache = True is a substantial speedup at the expense of some memory. - ``style`` - (default "lattice") can...
INPUT: - ``ct`` -- The Cartan Type OPTIONAL ARGUMENTS: - ``base_ring`` -- (default: `\ZZ`) - ``prefix`` -- (default: an automatically generated prefix based on Cartan type) - ``cache`` -- (default False) setting cache = True is a substantial speedup at the expense of some memory. - ``style`` -- (default "latti...
def WeylCharacterRing(ct, base_ring=ZZ, prefix=None, cache=False, style="lattice"): r""" A class for rings of Weyl characters. The Weyl character is a character of a semisimple (or reductive) Lie group or algebra. They form a ring, in which the addition and multiplication correspond to direct sum and tensor product of ...
67d654215599230a09c5cccc4e460acbf57b6338 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/67d654215599230a09c5cccc4e460acbf57b6338/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 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, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 6...
this = apply(_quickfix.new_RefCompID, args)
this = _quickfix.new_RefCompID(*args)
def __init__(self, *args): this = apply(_quickfix.new_RefCompID, 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, 1957, 2945, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 1957, 2945, 734, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
resDict = {'Successful':lfnReplicas,'Failed':failed} return S_OK(resDict) def __SEActive(self,se):
resDict = {'Successful':lfnReplicas, 'Failed':failed} return S_OK( resDict ) def __SEActive( self, se ):
def getActiveReplicas(self,lfns): """ Get all the replicas for the SEs which are in Active status for reading. """ res = self.getCatalogReplicas(lfns) if not res['OK']: return res failed = res['Value']['Failed'] seReadStatus = {} lfnReplicas = {} for lfn,replicas in res['Value']['Successful'].items(): for se in replica...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11960, 17248, 12, 2890, 16, 20850, 2387, 4672, 3536, 968, 777, 326, 21545, 364, 326, 3174, 87, 1492, 854, 316, 8857, 1267, 364, 6453, 18, 3536, 400, 273, 365, 18, 588, 9769, 17248, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11960, 17248, 12, 2890, 16, 20850, 2387, 4672, 3536, 968, 777, 326, 21545, 364, 326, 3174, 87, 1492, 854, 316, 8857, 1267, 364, 6453, 18, 3536, 400, 273, 365, 18, 588, 9769, 17248, 12, ...
sage: tmp = tmp_dir()
sage: tmp = tmp_dir() + '.sagenb'
def html(self, error_code = None, **kwargs): """ Returns HTML and JavaScript for a reCAPTCHA challenge and response field.
ebba517baa5d548380d9cdacd6fb8b268637f526 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11792/ebba517baa5d548380d9cdacd6fb8b268637f526/challenge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 12, 2890, 16, 555, 67, 710, 273, 599, 16, 2826, 4333, 4672, 3536, 2860, 3982, 471, 11905, 364, 279, 283, 20053, 1792, 37, 12948, 471, 766, 652, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 1729, 12, 2890, 16, 555, 67, 710, 273, 599, 16, 2826, 4333, 4672, 3536, 2860, 3982, 471, 11905, 364, 279, 283, 20053, 1792, 37, 12948, 471, 766, 652, 18, 2, -100, -100, -100, -100, -10...
item.top_link = False
if not hasattr(item,'top_link'): item.top_link = False
def add_props(cls, user, wrapped): from r2.lib.count import incr_counts from r2.lib.media import thumbnail_url
202112bc9dafe29978937e5d7b06f70830a962b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6723/202112bc9dafe29978937e5d7b06f70830a962b8/link.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9693, 12, 6429, 16, 729, 16, 5805, 4672, 628, 436, 22, 18, 2941, 18, 1883, 1930, 17633, 67, 8008, 628, 436, 22, 18, 2941, 18, 5829, 1930, 9134, 67, 718, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9693, 12, 6429, 16, 729, 16, 5805, 4672, 628, 436, 22, 18, 2941, 18, 1883, 1930, 17633, 67, 8008, 628, 436, 22, 18, 2941, 18, 5829, 1930, 9134, 67, 718, 2, -100, -100, -100,...
logger.error("Content of config file '%s' is not valid. Correct it!\n%s\n" % (self.CONFIG_FILE, e)) raise SystemExit, 1
logger.error("Content of config file '%s' is not valid. Correct it!\n%s\n" % (self.CONFIG_FILE, e)) raise SystemExit, 1
def read_config_file(self, filename):
6064a7affcbfaa2b1502a77f48b73f48a58111dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/6064a7affcbfaa2b1502a77f48b73f48a58111dd/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1425, 67, 768, 12, 2890, 16, 1544, 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, 855, 67, 1425, 67, 768, 12, 2890, 16, 1544, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return ts.utranslate(None, _(u'Keywords list is empty!'), context=self.context)
return ts.utranslate(domain='quintagroup.seoptimizer', msgid=u'Keywords list is empty!', context=self.context)
def validateKeywords(self, text): """ see interface """ ts = getToolByName(self.context, 'translation_service') # extract keywords from text if text.lower().strip(): keywords = map(lambda x: x.strip(), text.lower().strip().split('\n')) else: return ts.utranslate(None, _(u'Keywords list is empty!'), context=self.context...
1ade0dcce533358bea345a2e24f3e2f83dba590e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10421/1ade0dcce533358bea345a2e24f3e2f83dba590e/keywords.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 14149, 12, 2890, 16, 977, 4672, 3536, 2621, 1560, 3536, 3742, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 10173, 67, 3278, 6134, 468, 2608, 7093, 628, 977, 309, 977, 18, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 14149, 12, 2890, 16, 977, 4672, 3536, 2621, 1560, 3536, 3742, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 10173, 67, 3278, 6134, 468, 2608, 7093, 628, 977, 309, 977, 18, 8...
if self.path.find("/echotitle") != 0:
if not self._ShouldHandleRequest("/echotitle"):
def EchoTitleHandler(self): """This handler is like Echo, but sets the page title to the request."""
41f6cf83747d6ca25a473f2e42d08288be9d7a5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/41f6cf83747d6ca25a473f2e42d08288be9d7a5d/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28995, 4247, 1503, 12, 2890, 4672, 3536, 2503, 1838, 353, 3007, 28995, 16, 1496, 1678, 326, 1363, 2077, 358, 326, 590, 12123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 28995, 4247, 1503, 12, 2890, 4672, 3536, 2503, 1838, 353, 3007, 28995, 16, 1496, 1678, 326, 1363, 2077, 358, 326, 590, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
d.addCallback(self.__fetchMessages).addCallback(self.__disconnect)
d.addCallbacks(self.__fetchMessages, self.catchErrors)
def __getMessagesFromUIDS(self, msgs):
cd0d773c52b7eb7870b5e37e0d7c668e7d25477c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cd0d773c52b7eb7870b5e37e0d7c668e7d25477c/imap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5058, 1265, 3060, 55, 12, 2890, 16, 8733, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5058, 1265, 3060, 55, 12, 2890, 16, 8733, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
s = NNTP('news')
s = NNTP('news', readermode='reader')
def _test(): """Minimal test function.""" s = NNTP('news') resp, count, first, last, name = s.group('comp.lang.python') print resp print 'Group', name, 'has', count, 'articles, range', first, 'to', last resp, subs = s.xhdr('subject', first + '-' + last) print resp for item in subs: print "%7s %s" % item resp = s.quit()...
9dd78729459478023a46401d8f04e2dc3bf974e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9dd78729459478023a46401d8f04e2dc3bf974e5/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 13332, 3536, 2930, 2840, 1842, 445, 12123, 272, 273, 423, 1784, 52, 2668, 18443, 2187, 855, 1035, 390, 2218, 10530, 6134, 1718, 16, 1056, 16, 1122, 16, 1142, 16, 508, 273, 272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 13332, 3536, 2930, 2840, 1842, 445, 12123, 272, 273, 423, 1784, 52, 2668, 18443, 2187, 855, 1035, 390, 2218, 10530, 6134, 1718, 16, 1056, 16, 1122, 16, 1142, 16, 508, 273, 272...
elif (not info and resolve) and (not cfg.autoResolve or brokenByErase) and suggMap:
elif (not info and cfg.autoResolve) and (not cfg.autoResolve or brokenByErase) and suggMap:
def doUpdate(cfg, pkgList, replaceFiles = False, tagScript = None, keepExisting = False, depCheck = True, depsRecurse = True, test = False, justDatabase = False, recurse = True, info = False, updateByDefault = True, callback = None): if not callback: callback = callbacks.UpdateCallback() client = conaryclient.ConaryCl...
97596823cfe40479a7344d248a798784350cb0eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/97596823cfe40479a7344d248a798784350cb0eb/updatecmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1891, 12, 7066, 16, 3475, 682, 16, 1453, 2697, 273, 1083, 16, 1047, 3651, 273, 599, 16, 3455, 9895, 273, 1083, 16, 5993, 1564, 273, 1053, 16, 8740, 426, 17682, 273, 1053, 16, 1842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1891, 12, 7066, 16, 3475, 682, 16, 1453, 2697, 273, 1083, 16, 1047, 3651, 273, 599, 16, 3455, 9895, 273, 1083, 16, 5993, 1564, 273, 1053, 16, 8740, 426, 17682, 273, 1053, 16, 1842...
tunermask |= (1 << self.linked[slotid])
for slot in self.linked[slotid]: tunermask |= (1 << slot)
def addLNBSimple(self, sec, slotid, diseqcmode, toneburstmode = diseqcParam.NO, diseqcpos = diseqcParam.SENDNO, orbpos = 0, longitude = 0, latitude = 0, loDirection = 0, laDirection = 0, turningSpeed = rotorParam.FAST, useInputPower=True, inputPowerDelta=50): if orbpos is None: return #simple defaults sec.addLNB() tune...
9063d6049a81d8945126c66e0a12ce8b5a64b4a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/9063d6049a81d8945126c66e0a12ce8b5a64b4a1/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 48, 20626, 5784, 12, 2890, 16, 1428, 16, 4694, 350, 16, 302, 784, 30675, 3188, 16, 30600, 70, 18593, 3188, 273, 302, 784, 30675, 786, 18, 3417, 16, 302, 784, 30675, 917, 273, 302,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 48, 20626, 5784, 12, 2890, 16, 1428, 16, 4694, 350, 16, 302, 784, 30675, 3188, 16, 30600, 70, 18593, 3188, 273, 302, 784, 30675, 786, 18, 3417, 16, 302, 784, 30675, 917, 273, 302,...
def setdiag(self, values, k=0): M, N = self.shape assert len(values) >= max(M, N) for i in xrange(min(M, N-k)): self[i, i+k] = values[i] return
def setdiag(self, values, k=0): M, N = self.shape assert len(values) >= max(M, N) for i in xrange(min(M, N-k)): self[i, i+k] = values[i] return
ea0c6885c65a199b29ef216ee91e52a46b3ef770 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/ea0c6885c65a199b29ef216ee91e52a46b3ef770/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12264, 12, 2890, 16, 924, 16, 417, 33, 20, 4672, 490, 16, 423, 273, 365, 18, 4867, 1815, 562, 12, 2372, 13, 1545, 943, 12, 49, 16, 423, 13, 364, 277, 316, 12314, 12, 1154, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12264, 12, 2890, 16, 924, 16, 417, 33, 20, 4672, 490, 16, 423, 273, 365, 18, 4867, 1815, 562, 12, 2372, 13, 1545, 943, 12, 49, 16, 423, 13, 364, 277, 316, 12314, 12, 1154, 12,...
if not ssl: ssl = config.get('smtp_ssl', False)
def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=None, reply_to=False, attach=None, openobject_id=False, ssl=False, debug=False, subtype='plain', x_headers=None, priority='3'): """Send an email. Arguments: `email_from`: A string used to fill the `From` header, if falsy, config['email_from...
478ab1c86d3d35f3b5c2e40276f5574c62d56543 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/478ab1c86d3d35f3b5c2e40276f5574c62d56543/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 3652, 67, 2080, 16, 2699, 67, 869, 16, 3221, 16, 1417, 16, 2699, 67, 952, 33, 7036, 16, 2699, 67, 31345, 33, 7036, 16, 4332, 67, 869, 33, 8381, 16, 3306, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 3652, 67, 2080, 16, 2699, 67, 869, 16, 3221, 16, 1417, 16, 2699, 67, 952, 33, 7036, 16, 2699, 67, 31345, 33, 7036, 16, 4332, 67, 869, 33, 8381, 16, 3306, 33, 70...
if self.options[0][1] and not self.grouped_options[0][0]:
if len(self.options) > 0 and self.options[0][1] and not self.grouped_options[0][0]:
def prepare(self): super(SingleSelectField, self).prepare() if self.options[0][1] and not self.grouped_options[0][0]: self.options = [(None, self.null_text)] + self.options self.grouped_options = [(None, self.options)]
ccc28c34f89dd5d5ca0f28012ac1a777beb75278 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11476/ccc28c34f89dd5d5ca0f28012ac1a777beb75278/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 12, 2890, 4672, 2240, 12, 5281, 3391, 974, 16, 365, 2934, 9366, 1435, 309, 562, 12, 2890, 18, 2116, 13, 405, 374, 471, 365, 18, 2116, 63, 20, 6362, 21, 65, 471, 486, 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, 2911, 12, 2890, 4672, 2240, 12, 5281, 3391, 974, 16, 365, 2934, 9366, 1435, 309, 562, 12, 2890, 18, 2116, 13, 405, 374, 471, 365, 18, 2116, 63, 20, 6362, 21, 65, 471, 486, 365, 18, ...
netsvc.Logger().notifyChannel("web-services", netsvc.LOG_WARNING, "Netrpc: closing because of exception %s" % str(e))
import logging logging.getLogger('web-services').warning("Netrpc: closing because of exception %s" % str(e))
def run(self): # import select try: self.running = True while self.running: (clientsocket, address) = self.socket.accept() ct = TinySocketClientThread(clientsocket, self.threads) clientsocket = None self.threads.append(ct) ct.start() lt = len(self.threads) if (lt > 10) and (lt % 10 == 0): # Not many threads should be s...
d4d1302faeb9c691a71d4e014d8b13d85815ae34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d4d1302faeb9c691a71d4e014d8b13d85815ae34/netrpc_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1930, 2027, 775, 30, 365, 18, 8704, 273, 1053, 1323, 365, 18, 8704, 30, 261, 2625, 7814, 16, 1758, 13, 273, 365, 18, 7814, 18, 9436, 1435, 5691, 273, 399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 1930, 2027, 775, 30, 365, 18, 8704, 273, 1053, 1323, 365, 18, 8704, 30, 261, 2625, 7814, 16, 1758, 13, 273, 365, 18, 7814, 18, 9436, 1435, 5691, 273, 399, ...
if (ext.traditional_convergence_test(target_evaluator.n)(x, g)):
if (ext.traditional_convergence_test(n)(x, g)):
def filter(self, msg, x, g): if (msg.find("Rounding errors prevent further progress.") >= 0): if (self.ignore_line_search_failed_rounding_errors): return 0 elif (msg.find("The step is at the lower bound stpmax().") >= 0): if (ext.traditional_convergence_test(target_evaluator.n)(x, g)): return 0 if (self.ignore_line_sea...
b6340e7824d345c7845a3712377185848fbb42fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/b6340e7824d345c7845a3712377185848fbb42fd/lbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 2890, 16, 1234, 16, 619, 16, 314, 4672, 309, 261, 3576, 18, 4720, 2932, 11066, 310, 1334, 5309, 9271, 4007, 1199, 13, 1545, 374, 4672, 309, 261, 2890, 18, 6185, 67, 1369, 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, 1034, 12, 2890, 16, 1234, 16, 619, 16, 314, 4672, 309, 261, 3576, 18, 4720, 2932, 11066, 310, 1334, 5309, 9271, 4007, 1199, 13, 1545, 374, 4672, 309, 261, 2890, 18, 6185, 67, 1369, 67,...