rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
box = gtk.VBox()
box = gtk.VBox(spacing=4)
def append_page(self, contentview): tab_label = gtk.EventBox() tab_label.show() l = gtk.Label(contentview.short_title) pos = self.notebook.get_tab_pos() if pos in [gtk.POS_LEFT, gtk.POS_RIGHT]: box = gtk.VBox() if pos == gtk.POS_LEFT: l.set_angle(90) else: l.set_angle(270) else: box = gtk.HBox() box.pack_start(contentv...
d0434ad7fbb810788ee92702622b45bcd59a0025 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/d0434ad7fbb810788ee92702622b45bcd59a0025/contentbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 2433, 12, 2890, 16, 913, 1945, 4672, 3246, 67, 1925, 273, 22718, 18, 1133, 3514, 1435, 3246, 67, 1925, 18, 4500, 1435, 328, 273, 22718, 18, 2224, 12, 1745, 1945, 18, 6620, 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, 714, 67, 2433, 12, 2890, 16, 913, 1945, 4672, 3246, 67, 1925, 273, 22718, 18, 1133, 3514, 1435, 3246, 67, 1925, 18, 4500, 1435, 328, 273, 22718, 18, 2224, 12, 1745, 1945, 18, 6620, 67,...
neighs = Phi2_quad(X, ss_points[j_prev], ss_points[pos]).roots()
neighbors = Phi2_quad(X, ss_points[j_prev], ss_points[pos]).roots()
def supersingular_points(self): r""" This function computes the supersingular j-invariants over the finite field associated to self.
c732f65751748e79d80e2e4cd21b7817d7f75379 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c732f65751748e79d80e2e4cd21b7817d7f75379/ssmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 4139, 12, 2890, 4672, 436, 8395, 1220, 445, 15881, 326, 1169, 414, 17830, 525, 17, 267, 15886, 1879, 326, 25922, 652, 3627, 358, 365, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 4139, 12, 2890, 4672, 436, 8395, 1220, 445, 15881, 326, 1169, 414, 17830, 525, 17, 267, 15886, 1879, 326, 25922, 652, 3627, 358, 365, 18, 2, -100, -100, -100, -100,...
sage: bessel_J(2,1.1) 0.136564153956658000 sage: bessel_J(0,1.1) 0.719622018527510801 sage: bessel_J(0,1) 0.765197686557966605
sage: bessel_J(2,1.1) 0.13656415395665... sage: bessel_J(0,1.1) 0.71962201852751... sage: bessel_J(0,1) 0.76519768655796...
def bessel_J(nu,z,alg="pari",prec=53): r""" Return value of the "J-Bessel function", or "Bessel function, 1st kind", with index (or "order") nu and argument z. \begin{verbatim} Defn: Maxima: inf ==== - nu - 2 k nu + 2 k \ (-1)^k 2 z > ------------------------- / k! Gamma(nu + k + 1) =...
035e73f8a11cfe8d51a32f49900d3f8b55b2aa84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/035e73f8a11cfe8d51a32f49900d3f8b55b2aa84/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 46, 12, 13053, 16, 94, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2000, 460, 434, 326, 315, 46, 17, 38, 403, 292, 445, 3113, 578, 315, 38, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 46, 12, 13053, 16, 94, 16, 18413, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2000, 460, 434, 326, 315, 46, 17, 38, 403, 292, 445, 3113, 578, 315, 38, ...
v = B.solve_right(-c, check_rank=False)
v = B.solve_right(-c, check_rank=True)
def doubleDet (A, b, c): """ Compute the determinants of the stacked matrices A.stack(b) and A.stack(c). INPUT: A -- an (n-1) x n matrix b -- an 1 x n matrix c -- an 1 x n matrix OUTPUT: a pair of two integers. """ # We use the "two for the price of one" algorithm. # This is a clever trick! First we transpose every...
e4efad0907e34db2c61f5c1935160aed400d9935 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e4efad0907e34db2c61f5c1935160aed400d9935/matrix_integer_dense_hnf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1645, 4986, 261, 37, 16, 324, 16, 276, 4672, 3536, 8155, 326, 6328, 4388, 434, 326, 25776, 16415, 432, 18, 3772, 12, 70, 13, 471, 432, 18, 3772, 12, 71, 2934, 225, 12943, 30, 432, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1645, 4986, 261, 37, 16, 324, 16, 276, 4672, 3536, 8155, 326, 6328, 4388, 434, 326, 25776, 16415, 432, 18, 3772, 12, 70, 13, 471, 432, 18, 3772, 12, 71, 2934, 225, 12943, 30, 432, 14...
show ip -- Display the ip addresses of the nodes
show ip [to file] -- Display the ip addresses of the nodes
def command_loop(): # we will set this if they call set timeout global globalseashtimeout # things that may be set herein and used in later commands host = None port = None expnum = None filename = None cmdargs = None defaulttarget = None defaultkeyname = None # exit via a return while True: try: prompt = '' if ...
448c4325d7e4a3188225bc2613435876407aecd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/448c4325d7e4a3188225bc2613435876407aecd0/seash.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 6498, 13332, 468, 732, 903, 444, 333, 309, 2898, 745, 444, 2021, 2552, 4715, 544, 345, 647, 494, 659, 282, 468, 9198, 716, 2026, 506, 444, 2674, 267, 471, 1399, 316, 5137, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 6498, 13332, 468, 732, 903, 444, 333, 309, 2898, 745, 444, 2021, 2552, 4715, 544, 345, 647, 494, 659, 282, 468, 9198, 716, 2026, 506, 444, 2674, 267, 471, 1399, 316, 5137, 43...
self.cameralist = []
def close( self ): if self.h is not None: self._dll.dc1394_free( self.h ) self.h = None self.cameralist = []
ee74dad00ea14cde6198c80c18522e6e32fd4a62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6169/ee74dad00ea14cde6198c80c18522e6e32fd4a62/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 365, 262, 30, 309, 365, 18, 76, 353, 486, 599, 30, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 9156, 12, 365, 18, 76, 262, 365, 18, 76, 273, 599, 365, 18, 20133, 11612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 12, 365, 262, 30, 309, 365, 18, 76, 353, 486, 599, 30, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 9156, 12, 365, 18, 76, 262, 365, 18, 76, 273, 599, 365, 18, 20133, 11612, ...
timeout = time() + 2
timeout = time.time() + 2
def tearDown(self): self.run_loop = 0 self.thread.join() td.shutdown() self.server.close() # Make sure all sockets get closed by asyncore normally. timeout = time() + 2 while 1: if len(asyncore.socket_map) == self.orig_map_size: # Clean! break if time() >= timeout: self.fail('Leaked a socket: %s' % `asyncore.socket_map...
90d04321f031c84ce099735d79abab9afd55bb34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9635/90d04321f031c84ce099735d79abab9afd55bb34/test_ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 2681, 67, 6498, 273, 374, 365, 18, 5930, 18, 5701, 1435, 6655, 18, 15132, 1435, 365, 18, 3567, 18, 4412, 1435, 468, 4344, 3071, 777, 16762, 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, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 2681, 67, 6498, 273, 374, 365, 18, 5930, 18, 5701, 1435, 6655, 18, 15132, 1435, 365, 18, 3567, 18, 4412, 1435, 468, 4344, 3071, 777, 16762, 33...
def check_key(self, key, key_extra_len=0): """Checks sanity of key. Fails if: Key length is > SERVER_MAX_KEY_LENGTH (Raises MemcachedKeyLength). Contains control characters (Raises MemcachedKeyCharacterError). Is not a string (Raises MemcachedStringEncodingError) Is an unicode string (Raises MemcachedStringEncodingE...
def _recv_value(self, server, flags, rlen): rlen += 2 # include \r\n buf = server.recv(rlen) if len(buf) != rlen: raise _Error("received %d bytes when expecting %d" % (len(buf), rlen))
14105f5c7b7349c63655b5a3c3785fe12d84aa68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/14105f5c7b7349c63655b5a3c3785fe12d84aa68/memcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18334, 67, 1132, 12, 2890, 16, 1438, 16, 2943, 16, 436, 1897, 4672, 436, 1897, 1011, 576, 468, 2341, 521, 86, 64, 82, 1681, 273, 1438, 18, 18334, 12, 1321, 275, 13, 309, 562, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18334, 67, 1132, 12, 2890, 16, 1438, 16, 2943, 16, 436, 1897, 4672, 436, 1897, 1011, 576, 468, 2341, 521, 86, 64, 82, 1681, 273, 1438, 18, 18334, 12, 1321, 275, 13, 309, 562, 12...
olapi.login('joe', 'secret')
olapi.login('apiuser', 'secret')
def test_write_with_embeddable_types2(): q = { 'key': '/b/OL1M', 'table_of_contents': {'connect': 'update_list', 'value': [ {'title': 'chapter 1'}, {'title': 'chapter 2'} ]}, } olapi.login('joe', 'secret') olapi.write(q, comment="update toc") d = olapi.get('/b/OL1M') print d['table_of_contents'] assert d['table_of_con...
8cd19e44dcaff792dbab2e7de2630c2d64b67e1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/8cd19e44dcaff792dbab2e7de2630c2d64b67e1f/test_api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2626, 67, 1918, 67, 8483, 17394, 67, 2352, 22, 13332, 1043, 273, 288, 296, 856, 4278, 1173, 70, 19, 1741, 21, 49, 2187, 296, 2121, 67, 792, 67, 3980, 4278, 13666, 3612, 4278,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 1918, 67, 8483, 17394, 67, 2352, 22, 13332, 1043, 273, 288, 296, 856, 4278, 1173, 70, 19, 1741, 21, 49, 2187, 296, 2121, 67, 792, 67, 3980, 4278, 13666, 3612, 4278,...
f = ManualGenerator("SetPopupData", setpopupdata_body, condition="
f = ManualGenerator("SetPopupData", setpopupdata_body, condition="
def outputCleanupStructMembers(self): Output("Py_XDECREF(self->ob_callbackdict);") Output("if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */")
47eba1f171b926379f9b85a189ca91138fe05632 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/47eba1f171b926379f9b85a189ca91138fe05632/ctlsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 15007, 3823, 6918, 12, 2890, 4672, 3633, 2932, 9413, 67, 60, 1639, 5458, 42, 12, 2890, 2122, 947, 67, 3394, 1576, 1769, 7923, 3633, 2932, 430, 261, 2890, 2122, 947, 67, 1282, 19079,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 15007, 3823, 6918, 12, 2890, 4672, 3633, 2932, 9413, 67, 60, 1639, 5458, 42, 12, 2890, 2122, 947, 67, 3394, 1576, 1769, 7923, 3633, 2932, 430, 261, 2890, 2122, 947, 67, 1282, 19079,...
length -= len(response[-1]) self.position += len(response[-1])
last_read = len(response[-1]) if last_read == 0: break length -= last_read self.position += last_read
def _chunked_read(self, rfile, length=None): if self.wfile is not None: ## 100 Continue self.wfile.write(self.wfile_line) self.wfile = None self.wfile_line = None
a7039cee84a6944dd8a7e46ad47c5e368bf550df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/a7039cee84a6944dd8a7e46ad47c5e368bf550df/wsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6551, 329, 67, 896, 12, 2890, 16, 436, 768, 16, 769, 33, 7036, 4672, 309, 365, 18, 91, 768, 353, 486, 599, 30, 7541, 2130, 16773, 365, 18, 91, 768, 18, 2626, 12, 2890, 18, 91,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6551, 329, 67, 896, 12, 2890, 16, 436, 768, 16, 769, 33, 7036, 4672, 309, 365, 18, 91, 768, 353, 486, 599, 30, 7541, 2130, 16773, 365, 18, 91, 768, 18, 2626, 12, 2890, 18, 91,...
if failed_uploads: raise UploadFailed('Error uploading:\n%s' % '\n'.join(failed_uploads))
if len(failed_uploads) > 1 or (None not in failed_uploads): error_msg = ['%s -> %s\n' % args for args in failed_uploads] raise UploadFailed('Error uploading:\n%s' % error_msg)
def UploadPrebuilt(build_path, bucket, board=None, git_file=None): """Upload Host prebuilt files to Google Storage space. Args: build_path: The path to the root of the chroot. bucket: The Google Storage bucket to upload to. board: The board to upload to Google Storage, if this is None upload host packages. git_file: I...
96619e72e1d577e7b3682818fdce277c4090cc30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/96619e72e1d577e7b3682818fdce277c4090cc30/prebuilt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 1386, 12406, 12, 3510, 67, 803, 16, 2783, 16, 11094, 33, 7036, 16, 5071, 67, 768, 33, 7036, 4672, 3536, 4777, 4893, 675, 12406, 1390, 358, 6124, 5235, 3476, 18, 225, 6634, 30, 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, 9414, 1386, 12406, 12, 3510, 67, 803, 16, 2783, 16, 11094, 33, 7036, 16, 5071, 67, 768, 33, 7036, 4672, 3536, 4777, 4893, 675, 12406, 1390, 358, 6124, 5235, 3476, 18, 225, 6634, 30, 13...
return self._Aggregate, self._Index
return self.aggregate, self.index
def __getinitargs__(self): return self._Aggregate, self._Index
4003a772783c0ae3cc1cc6a5a9c795b0b258bf30 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12571/4003a772783c0ae3cc1cc6a5a9c795b0b258bf30/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2738, 1968, 972, 12, 2890, 4672, 327, 365, 6315, 11490, 16, 365, 6315, 1016, 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, 588, 2738, 1968, 972, 12, 2890, 4672, 327, 365, 6315, 11490, 16, 365, 6315, 1016, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
defaults = default_setup
defaults = None
def apply_auto_progress(args): if args and '--auto-progress' in args: if sys.stdout.isatty(): progress = '--progress' else: progress = '--no-progress'
d7279b410b19b1663e2cdd24c2dbea97a7cc284e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10007/d7279b410b19b1663e2cdd24c2dbea97a7cc284e/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 6079, 67, 8298, 12, 1968, 4672, 309, 833, 471, 3534, 6079, 17, 8298, 11, 316, 833, 30, 309, 2589, 18, 10283, 18, 291, 270, 4098, 13332, 4007, 273, 3534, 8298, 11, 469, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 6079, 67, 8298, 12, 1968, 4672, 309, 833, 471, 3534, 6079, 17, 8298, 11, 316, 833, 30, 309, 2589, 18, 10283, 18, 291, 270, 4098, 13332, 4007, 273, 3534, 8298, 11, 469, 30, ...
widget_list[1] = gridflow
widget_list.append(gridflow) self.tooltip.grid = gridflow
def _populate_completion(self): widget_list = self.tooltip.body widget_list[1] = urwid.Text('') # This is just me flailing around wildly. TODO: actually write. if self.complete(): if self.argspec: # This is mostly just stolen from the cli module. func_name, args, is_bound, in_arg = self.argspec args, varargs, varkw, de...
c34e7b3a0658b6694c5b8025e99f4cfa7cc5eafe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/c34e7b3a0658b6694c5b8025e99f4cfa7cc5eafe/urwid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19936, 67, 11469, 12, 2890, 4672, 3604, 67, 1098, 273, 365, 18, 19798, 18, 3432, 3604, 67, 1098, 63, 21, 65, 273, 8896, 30902, 18, 1528, 2668, 6134, 468, 1220, 353, 2537, 1791, 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, 389, 19936, 67, 11469, 12, 2890, 4672, 3604, 67, 1098, 273, 365, 18, 19798, 18, 3432, 3604, 67, 1098, 63, 21, 65, 273, 8896, 30902, 18, 1528, 2668, 6134, 468, 1220, 353, 2537, 1791, 11...
self.array = _SurfArrayAccess(sprite=self,
self.array = _SurfArrayAccess(self.im,
def __init__(self, width=100, height=100, x=0, y=0, depth=0, \ fb=None, on=1, image=None, dx=0, dy=0, fname=None, \ name=None, icolor='black', centerorigin=0): """Sprite instantiation function **width, height** -- width and height of sprite in pixels **x, y** -- initial sprite position (pixels in world coordinates) ...
225862206915a937b75b16306d39fcee962cb426 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/225862206915a937b75b16306d39fcee962cb426/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1835, 33, 6625, 16, 2072, 33, 6625, 16, 619, 33, 20, 16, 677, 33, 20, 16, 3598, 33, 20, 16, 521, 12754, 33, 7036, 16, 603, 33, 21, 16, 1316, 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, 1001, 2738, 972, 12, 2890, 16, 1835, 33, 6625, 16, 2072, 33, 6625, 16, 619, 33, 20, 16, 677, 33, 20, 16, 3598, 33, 20, 16, 521, 12754, 33, 7036, 16, 603, 33, 21, 16, 1316, 33, 70...
ui.status('Writing ', m['Subject'], ' ...\n')
ui.status(_('Writing '), m['Subject'], ' ...\n')
def getaddrs(opt, prpt, default = None): addrs = opts.get(opt) or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()]
feceedab4b4640d6f5c5bd8e509d1224aca166b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/feceedab4b4640d6f5c5bd8e509d1224aca166b5/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, ...
compr = cab["compr_method"].display if cab["compr_method"].value != 0: compr += " (level %u)" % cab["compr_level"].value
compr = folder["compr_method"].display if folder["compr_method"].value != 0: compr += " (level %u)" % folder["compr_level"].value
def useFolder(self, folder): compr = cab["compr_method"].display if cab["compr_method"].value != 0: compr += " (level %u)" % cab["compr_level"].value self.compression = compr
a67681689c5c4a9751617480519dfb543d84f02b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/a67681689c5c4a9751617480519dfb543d84f02b/archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 3899, 12, 2890, 16, 3009, 4672, 532, 683, 273, 3009, 9614, 832, 683, 67, 2039, 6, 8009, 5417, 309, 3009, 9614, 832, 683, 67, 2039, 6, 8009, 1132, 480, 374, 30, 532, 683, 1011, 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, 999, 3899, 12, 2890, 16, 3009, 4672, 532, 683, 273, 3009, 9614, 832, 683, 67, 2039, 6, 8009, 5417, 309, 3009, 9614, 832, 683, 67, 2039, 6, 8009, 1132, 480, 374, 30, 532, 683, 1011, 3...
for tkt_id in [ticket['id'] for ticket in milestone['tickets']
tickets = get_tickets_for_milestone(self.env, db, milestone.name, field='owner') tickets = apply_ticket_permissions(self.env, req, milestone, tickets) for tkt_id in [ticket['id'] for ticket in tickets
def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params)
517187fd8e15835f4c27204d1d2cef2e8fb9a563 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/517187fd8e15835f4c27204d1d2cef2e8fb9a563/roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
color=color, size=nodesize,edgecolor=node_edgecolor) if not (uselabels=='none'): if uselabels == 'all': axes.annotate(str(node),(xy[node][0]+nodeLabel_xOffset,xy[node][1]),
color=color, size=nodesize, edgecolor=nodeEdgeColor) if node in labels or uselabels == 'all': if node in labels: if isinstance(labels[node],float): showthislabel="%2.2f" % labels[node] else: showthislabel=labels[node] else: showthislabel = str(node) axes.annotate(showthislabel,(xy[node][0]+nodeLabel_xOffset,xy[node][...
def VisualizeNet(net, xy, figsize=(6,6), coloredNodes=True, equalsize=False, labels=None, fontsize=7, showAllNodes=True, nodeColor=None, nodeSize=1.0, minnode=2.0, maxnode=6.0, nodeColors=None, nodeSizes=None, bgcolor='white', maxwidth=2.0, minwidth=0.2, uselabels='none', edgeColorMap='winter', weightLimits=None, setNo...
5b590591c50efd58822f1cb0f934b092db648f88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/768/5b590591c50efd58822f1cb0f934b092db648f88/visuals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26832, 554, 7308, 12, 2758, 16, 7668, 16, 14697, 28657, 26, 16, 26, 3631, 19757, 3205, 33, 5510, 16, 1606, 554, 33, 8381, 16, 3249, 33, 7036, 16, 14869, 33, 27, 16, 2405, 1595, 3205, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26832, 554, 7308, 12, 2758, 16, 7668, 16, 14697, 28657, 26, 16, 26, 3631, 19757, 3205, 33, 5510, 16, 1606, 554, 33, 8381, 16, 3249, 33, 7036, 16, 14869, 33, 27, 16, 2405, 1595, 3205, ...
def docclass(self, object):
def docclass(self, object, name=None):
def docclass(self, object): """Produce text documentation for a given class object.""" name = object.__name__ bases = object.__bases__
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 1106, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 667, 733, 12123, 508, 273, 733, 16186, 529, 972, 8337, 273, 733, 16186, 18602, 972, 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, 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, 997, 1106, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 667, 733, 12123, 508, 273, 733, 16186, 529, 972, 8337, 273, 733, 16186, 18602, 972, 2, -10...
result.extend(subpackageDottedNames(path, ns_dottedname))
subpackages = subpackageDottedNames(path, ns_dottedname) for subpackage in subpackages: if subpackage not in ns_dottednames: result.append(subpackage)
def dottedNames(self): """Return dotted names of all relevant packages in a distribution.
ecf51268132a9e4bc1a7e97ced2734a086c9a1f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9605/ecf51268132a9e4bc1a7e97ced2734a086c9a1f6/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20965, 1557, 12, 2890, 4672, 3536, 990, 20965, 1257, 434, 777, 9368, 5907, 316, 279, 7006, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20965, 1557, 12, 2890, 4672, 3536, 990, 20965, 1257, 434, 777, 9368, 5907, 316, 279, 7006, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class DiskCached(DiskCache):
def _get_fname( self, obj_id ): """ computes the filename of the file with the given object identifier and creates the required directory structure (if necessary). """ assert( len(obj_id) >= self.cache_nesting_level ) obj_dir = join( *( [self.cache_dir] + list( obj_id[:self.cache_nesting_level] )) ) if not exists(obj_...
def getCacheStatistics(self): """ returns statistics regarding the cache's hit/miss ratio """ return {'cache_hits': self._cache_hit, 'cache_misses': self._cache_miss}
2355828a58c7929e11ae58a88a6ffb902ba065ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6604/2355828a58c7929e11ae58a88a6ffb902ba065ba/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8577, 8569, 12, 2890, 4672, 3536, 1135, 7691, 29012, 326, 1247, 1807, 6800, 19, 3105, 7169, 3536, 327, 13666, 2493, 67, 15173, 4278, 365, 6315, 2493, 67, 15989, 16, 296, 2493, 67, 3105, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8577, 8569, 12, 2890, 4672, 3536, 1135, 7691, 29012, 326, 1247, 1807, 6800, 19, 3105, 7169, 3536, 327, 13666, 2493, 67, 15173, 4278, 365, 6315, 2493, 67, 15989, 16, 296, 2493, 67, 3105, ...
sys.exit(False)
sys.exit(1)
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, imagemagick, statistics, requir...
0f178cb606ce1cfb96840e30bd489d420b041e6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/0f178cb606ce1cfb96840e30bd489d420b041e6d/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 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, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
age.mfs.update() print "Writing %s" %(agename + ".xml") age.mfs.writexml(basepath + "/" + agename + ".xml")
def export_age(agename,basepath,selection=0,merge=0,pagename=None): print "Exporting age %s" %agename # load the alcscript AlcScript.LoadFromBlender() rmgr=alcResManager(basepath,alcconfig.ver0,alcconfig.ver2) if merge: rmgr.preload() rmgr.export_book(agename,selection) age=rmgr.findAge(agename) age.write() #first load...
c25e3a96eb2b4bb1fe5d5742f701296b21caa292 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12286/c25e3a96eb2b4bb1fe5d5742f701296b21caa292/uruprp_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 410, 12, 346, 1069, 16, 1969, 803, 16, 10705, 33, 20, 16, 2702, 33, 20, 16, 9095, 1069, 33, 7036, 4672, 1172, 315, 6144, 310, 9388, 738, 87, 6, 738, 346, 1069, 468, 1262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 410, 12, 346, 1069, 16, 1969, 803, 16, 10705, 33, 20, 16, 2702, 33, 20, 16, 9095, 1069, 33, 7036, 4672, 1172, 315, 6144, 310, 9388, 738, 87, 6, 738, 346, 1069, 468, 1262, ...
failedDeps = self._checkDependencies(cfg, repos, labelPath)
failedDeps = self._checkDependencies(repos)
def findTroves(self, troveMap, cfg, repos, labelPath, flavor): self._findTroves(troveMap) self._removeTroves(repos)
f69122887a79464c05d1e19fe7809f82a90a9e3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/f69122887a79464c05d1e19fe7809f82a90a9e3e/recipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 56, 303, 3324, 12, 2890, 16, 23432, 537, 863, 16, 2776, 16, 13686, 16, 1433, 743, 16, 19496, 4672, 365, 6315, 4720, 56, 303, 3324, 12, 88, 303, 537, 863, 13, 365, 6315, 4479, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 56, 303, 3324, 12, 2890, 16, 23432, 537, 863, 16, 2776, 16, 13686, 16, 1433, 743, 16, 19496, 4672, 365, 6315, 4720, 56, 303, 3324, 12, 88, 303, 537, 863, 13, 365, 6315, 4479, 5...
from reportlab.pdfbase.pdfmetrics import _py_unicode2T1, _py_getFont
from reportlab.pdfbase.pdfmetrics import _py_unicode2T1, getFont, _fonts
def test_unicode2T1(self): from reportlab.pdfbase.pdfmetrics import _py_unicode2T1, _py_getFont from _rl_accel import unicode2T1 t1fn = 'Times-Roman' t1f = _py_getFont(t1fn) enc = 'cp1252' senc = 'utf8' testCp1252 = ('copyright %s trademark %s registered %s ReportLab! Ol%s!' % (chr(169), chr(153),chr(174), chr(0xe9)))....
12e8e9cc55671e5cc6f4a8cba83406f53d6c3513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/12e8e9cc55671e5cc6f4a8cba83406f53d6c3513/test_rl_accel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9124, 22, 56, 21, 12, 2890, 4672, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 389, 2074, 67, 9124, 22, 56, 21, 16, 18776, 16, 389, 22052, 628, 389, 1321, 67, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9124, 22, 56, 21, 12, 2890, 4672, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 389, 2074, 67, 9124, 22, 56, 21, 16, 18776, 16, 389, 22052, 628, 389, 1321, 67, 307...
res = self.__getDirectoryContents(path)
res = self.__getDirectoryContents( path )
def getDirectoryReplicas(self, lfn, allStatus=False): """ This method gets all of the pfns in the directory """ res = self.__checkArgumentFormat(lfn) if not res['OK']: return res lfns = res['Value'] created = self.__openSession() failed = {} successful = {} for path in lfns.keys(): res = self.__getDirectoryContents(pat...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19831, 17248, 12, 2890, 16, 328, 4293, 16, 777, 1482, 33, 8381, 4672, 3536, 1220, 707, 5571, 777, 434, 326, 10811, 2387, 316, 326, 1867, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 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, 19831, 17248, 12, 2890, 16, 328, 4293, 16, 777, 1482, 33, 8381, 4672, 3536, 1220, 707, 5571, 777, 434, 326, 10811, 2387, 316, 326, 1867, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12,...
print " <3> Data to Scatter Plot:", combined_scatter_data
print "Data to Scatter Plot:", combined_scatter_data
def scatter_plot(group_info,scatter_info,data_set): #data_set is a dictionary keyed by quantity, containing lists of groups and Independent Data and Dep data points. for quantity_number in scatter_info: #print "Dataset for quantity number "+str(quantity_number)+": ", data_set[quantity_number] if data_set[quantity_num...
f66ca75013a32a9d59d8e58dec0baa78eda49b79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/f66ca75013a32a9d59d8e58dec0baa78eda49b79/Validation_Data_Processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14644, 67, 4032, 12, 1655, 67, 1376, 16, 31320, 67, 1376, 16, 892, 67, 542, 4672, 468, 892, 67, 542, 353, 279, 3880, 17408, 635, 10457, 16, 4191, 6035, 434, 3252, 471, 657, 10891, 1910...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14644, 67, 4032, 12, 1655, 67, 1376, 16, 31320, 67, 1376, 16, 892, 67, 542, 4672, 468, 892, 67, 542, 353, 279, 3880, 17408, 635, 10457, 16, 4191, 6035, 434, 3252, 471, 657, 10891, 1910...
frames.append('''<p>
frames.append('''
def reader(lnum=[lnum]): highlight[lnum[0]] = 1 try: return linecache.getline(file, lnum[0]) finally: lnum[0] += 1
d73dbf6662d0071e92013361f41cd3db0b0ca4b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d73dbf6662d0071e92013361f41cd3db0b0ca4b2/cgitb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 12, 80, 2107, 22850, 80, 2107, 65, 4672, 8839, 63, 80, 2107, 63, 20, 13563, 273, 404, 775, 30, 327, 4739, 557, 807, 18, 588, 1369, 12, 768, 16, 328, 2107, 63, 20, 5717, 3095, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2949, 12, 80, 2107, 22850, 80, 2107, 65, 4672, 8839, 63, 80, 2107, 63, 20, 13563, 273, 404, 775, 30, 327, 4739, 557, 807, 18, 588, 1369, 12, 768, 16, 328, 2107, 63, 20, 5717, 3095, ...
nids.add( nid )
def applyMethod(self ): """index the graph. """ componentor = Components.SComponents()
5d957d19611af0acd27a7dbdd3123b0e3a1e82dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8010/5d957d19611af0acd27a7dbdd3123b0e3a1e82dd/AddaCluster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 1305, 12, 2890, 262, 30, 3536, 1615, 326, 2667, 18, 3536, 1794, 280, 273, 25286, 18, 55, 7171, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 1305, 12, 2890, 262, 30, 3536, 1615, 326, 2667, 18, 3536, 1794, 280, 273, 25286, 18, 55, 7171, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def _handle_MSRPChatDidDeliverMessage(self, msrp_chat, data):
def _handle_MSRPChatDidNotDeliverMessage(self, msrp_chat, data):
def _handle_MSRPChatDidDeliverMessage(self, msrp_chat, data): session = self.msrp_chat_mapping.get(msrp_chat, None) if session is not None: self.notification_center.post_notification("SCSessionDidNotDeliverMessage", session, data)
01388ec4746e0692ca1e2ea41b21b8130074d47f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/01388ec4746e0692ca1e2ea41b21b8130074d47f/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 3537, 54, 52, 14163, 18250, 1248, 20813, 1079, 12, 2890, 16, 4086, 13832, 67, 10880, 16, 501, 4672, 1339, 273, 365, 18, 959, 13832, 67, 10880, 67, 6770, 18, 588, 12, 959...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4110, 67, 3537, 54, 52, 14163, 18250, 1248, 20813, 1079, 12, 2890, 16, 4086, 13832, 67, 10880, 16, 501, 4672, 1339, 273, 365, 18, 959, 13832, 67, 10880, 67, 6770, 18, 588, 12, 959...
Ctrl-E Go to right edge (nospaces off) or end of line (nospaces on).
Ctrl-E Go to right edge (stripspaces off) or end of line (stripspaces on).
def rectangle(win, uly, ulx, lry, lrx): "Draw a rectangle." win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1) win.hline(uly, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) win.hline(lry, ulx+1, curses.ACS_HLINE, lrx - ulx - 1) win.vline(uly+1, lrx, curses.ACS_VLINE, lry - uly - 1) win.addch(uly, ulx, curses.ACS_ULCORNER)...
5af256ded6190e899530de8df61fa77fe37686fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5af256ded6190e899530de8df61fa77fe37686fc/textpad.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11845, 12, 8082, 16, 7493, 93, 16, 7493, 92, 16, 328, 1176, 16, 12226, 92, 4672, 315, 6493, 279, 11845, 1199, 5657, 18, 90, 1369, 12, 332, 93, 15, 21, 16, 7493, 92, 16, 30436, 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, 11845, 12, 8082, 16, 7493, 93, 16, 7493, 92, 16, 328, 1176, 16, 12226, 92, 4672, 315, 6493, 279, 11845, 1199, 5657, 18, 90, 1369, 12, 332, 93, 15, 21, 16, 7493, 92, 16, 30436, 18, ...
EXAMPLES:
EXAMPLES::
def __getstate__(self): r""" A __getstate__ method for testing pickling.
a4aad1557cdf06ed8562711534ca467dff85c855 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/a4aad1557cdf06ed8562711534ca467dff85c855/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 436, 8395, 432, 1001, 588, 2019, 972, 707, 364, 7769, 6002, 2456, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 436, 8395, 432, 1001, 588, 2019, 972, 707, 364, 7769, 6002, 2456, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
elif os.path.isdir(fname): self.toDir[fname] = adding for f in glob.glob(os.path.join(fname, '*')): self.doTo(f, adding)
def doTo(self, fname, adding): if os.path.islink(fname): pass elif os.path.isfile(fname): self.to[fname] = adding elif os.path.isdir(fname): self.toDir[fname] = adding for f in glob.glob(os.path.join(fname, '*')): self.doTo(f, adding)
c026487631f1f879bca7f784debf81b64e8bb73a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/c026487631f1f879bca7f784debf81b64e8bb73a/check_docrefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 774, 12, 2890, 16, 5299, 16, 6534, 4672, 309, 1140, 18, 803, 18, 291, 1232, 12, 12749, 4672, 1342, 1327, 1140, 18, 803, 18, 291, 768, 12, 12749, 4672, 365, 18, 869, 63, 12749, 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, 741, 774, 12, 2890, 16, 5299, 16, 6534, 4672, 309, 1140, 18, 803, 18, 291, 1232, 12, 12749, 4672, 1342, 1327, 1140, 18, 803, 18, 291, 768, 12, 12749, 4672, 365, 18, 869, 63, 12749, 6...
if not repo.has_permissions(user.username, "w"):
if not repo_subssh.has_permissions(user.username, "w"):
def permissions_hook(ui, repo_hg, **kwargs):
0494ad1a0ba9dc36f3f8f585b203e892f4d61ecf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13178/0494ad1a0ba9dc36f3f8f585b203e892f4d61ecf/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 67, 4476, 12, 4881, 16, 3538, 67, 26981, 16, 2826, 4333, 4672, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 4371, 67, 4476, 12, 4881, 16, 3538, 67, 26981, 16, 2826, 4333, 4672, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
elif quadratureOrder == "Selective":
elif lm3dscan.quadratureOrder == "Selective":
def initialize(self, scanner):
0ed2a56edefae6f13f6dc361db180ce8710a3bf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8640/0ed2a56edefae6f13f6dc361db180ce8710a3bf9/Lithomop3d_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 7683, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 7683, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
zValueFiles=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time))
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
481b556f895e5b0b4caf0acaf35400d2993db8e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/481b556f895e5b0b4caf0acaf35400d2993db8e5/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
class ListStore(Gtk.ListStore, TreeModel):
class TreeSortable(Gtk.TreeSortable, ): def get_sort_column_id(self): success, sort_column_id, order = super(TreeSortable, self).get_sort_column_id() if success: return (sort_column_id, order,) else: return (None, None,) TreeSortable = override(TreeSortable) __all__.append('TreeSortable') class ListStore(Gtk.ListSt...
def iter_parent(self, aiter): success, parent_iter = super(TreeModel, self).iter_parent(aiter) if success: return parent_iter
cdacaa9572893796e0f3aa3730d0191911cb29ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/cdacaa9572893796e0f3aa3730d0191911cb29ee/Gtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 2938, 12, 2890, 16, 279, 2165, 4672, 2216, 16, 982, 67, 2165, 273, 2240, 12, 2471, 1488, 16, 365, 2934, 2165, 67, 2938, 12, 1540, 264, 13, 309, 2216, 30, 327, 982, 67, 2165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 67, 2938, 12, 2890, 16, 279, 2165, 4672, 2216, 16, 982, 67, 2165, 273, 2240, 12, 2471, 1488, 16, 365, 2934, 2165, 67, 2938, 12, 1540, 264, 13, 309, 2216, 30, 327, 982, 67, 2165...
shift, bin1, bin2 = best return bin1, bin2, shift
t1, t2, shift = best if trace: print >>sys.stderr, "Best:", dump(t1, t2, shift, bytes) if __debug__: mask = ~((~0) << shift) for i in xrange(len(t)): assert t[i] == t2[(t1[i >> shift] << shift) + (i & mask)] return best
def splitbins(bins): # split a sparse integer table into two tables, such as: # value = t2[(t1[char>>shift]<<shift)+(char&mask)] # and value == 0 means no data bytes = sys.maxint for shift in range(16): bin1 = [] bin2 = [] size = 2**shift bincache = {} for i in range(0, len(bins), size): bin = bins[i:i+size] index = ...
2101348830ff0d65cebd4caf886011f45bcc7618 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2101348830ff0d65cebd4caf886011f45bcc7618/makeunicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 11862, 4672, 468, 1416, 279, 9387, 3571, 1014, 1368, 2795, 4606, 16, 4123, 487, 30, 468, 282, 460, 273, 268, 22, 63, 12, 88, 21, 63, 3001, 9778, 4012, 65, 17685, 4012,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 11862, 4672, 468, 1416, 279, 9387, 3571, 1014, 1368, 2795, 4606, 16, 4123, 487, 30, 468, 282, 460, 273, 268, 22, 63, 12, 88, 21, 63, 3001, 9778, 4012, 65, 17685, 4012,...
f('\x0a\xef\x0b\x01\x05\x06\x10\x01\xff\xff\x99\x97\x00\x55\x01\x70')
f(b'\x0a\xef\x0b\x01\x05\x06\x10\x01\xff\xff\x99\x97\x00\x55\x01\x70')
def testStringToIPv6(self): if not hasattr(socket, 'inet_ntop'): return # No inet_ntop() on this platform try: from socket import inet_ntop, AF_INET6, has_ipv6 if not has_ipv6: return except ImportError: return f = lambda a: inet_ntop(AF_INET6, a)
b234e991478d0c1cbe3796a3057c374e1be92a29 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/b234e991478d0c1cbe3796a3057c374e1be92a29/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 23282, 12775, 26, 12, 2890, 4672, 309, 486, 3859, 12, 7814, 16, 296, 23864, 67, 496, 556, 11, 4672, 327, 468, 2631, 17661, 67, 496, 556, 1435, 603, 333, 4072, 775, 30, 628, 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, 1842, 23282, 12775, 26, 12, 2890, 4672, 309, 486, 3859, 12, 7814, 16, 296, 23864, 67, 496, 556, 11, 4672, 327, 468, 2631, 17661, 67, 496, 556, 1435, 603, 333, 4072, 775, 30, 628, 2987,...
return _apply(s.rfind, args)
return s.rfind(*args)
def rfind(s, *args): """rfind(s, sub [,start [,end]]) -> int Return the highest index in s where substring sub is found, such that sub is contained within s[start,end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure. """ return _apply(s.rfind, args)
7ee17801d7df9c8d8c0ab843127b0523fde6e516 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7ee17801d7df9c8d8c0ab843127b0523fde6e516/string.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31257, 12, 87, 16, 380, 1968, 4672, 3536, 86, 4720, 12, 87, 16, 720, 306, 16, 1937, 306, 16, 409, 65, 5717, 317, 509, 225, 2000, 326, 9742, 770, 316, 272, 1625, 3019, 720, 353, 1392,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31257, 12, 87, 16, 380, 1968, 4672, 3536, 86, 4720, 12, 87, 16, 720, 306, 16, 1937, 306, 16, 409, 65, 5717, 317, 509, 225, 2000, 326, 9742, 770, 316, 272, 1625, 3019, 720, 353, 1392,...
print "ds="+str(ds) print "dh="+str(dh)
def overcount(st,p): """Returns how many p are on st, works even for overlapping""" ocu=0 x=0 while 1: try: i=st.index(p,x) except ValueError: break ocu=ocu+1 x=i+1 return ocu
d52039c8e5c65c8bdf22f39be55279d0b9becbe1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/d52039c8e5c65c8bdf22f39be55279d0b9becbe1/MeltingTemp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1879, 1883, 12, 334, 16, 84, 4672, 3536, 1356, 3661, 4906, 293, 854, 603, 384, 16, 6330, 5456, 364, 18620, 8395, 320, 6319, 33, 20, 619, 33, 20, 1323, 404, 30, 775, 30, 277, 33, 334,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1879, 1883, 12, 334, 16, 84, 4672, 3536, 1356, 3661, 4906, 293, 854, 603, 384, 16, 6330, 5456, 364, 18620, 8395, 320, 6319, 33, 20, 619, 33, 20, 1323, 404, 30, 775, 30, 277, 33, 334,...
for partner in self.browse(cr, uid, ids):
for partner in self.browse(cr, uid, ids, context=context):
def _membership_date(self, cr, uid, ids, name, args, context=None):
2a4c1e50cb967d4599507ed63424b4f85c7753ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/2a4c1e50cb967d4599507ed63424b4f85c7753ea/membership.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19679, 67, 712, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19679, 67, 712, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
'Specified method is invalid for this server.'),
'Specified method is invalid for this resource.'),
def address_string(self): """Return the client address formatted for logging.
ee5546c31676f181ed7c1674b7ea2b23672959b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/ee5546c31676f181ed7c1674b7ea2b23672959b2/BaseHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1758, 67, 1080, 12, 2890, 4672, 3536, 990, 326, 1004, 1758, 4955, 364, 2907, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 1758, 67, 1080, 12, 2890, 4672, 3536, 990, 326, 1004, 1758, 4955, 364, 2907, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
leg.extend(["I_mu", "F_mu", "I_mod", "F_mod"])
leg.extend(["FinalMu", "FinalMod"]) P.legend(leg)
def HRF(stims, TR, num): TR = float(TR) inputl = 0; inputt = 0 dt = TR/HRFDIVIDER stimarr = [i for i in range(0, int(num*HRFDIVIDER + 2*hrfparam[6]/dt))] for i in range(0, len(stimarr)): if inputt < len(stims) and i*dt > stims[inputt][0] + hrfparam[5]\ + hrfparam[6]: inputl = stims[inputt][1] inputt = inputt+1 stimarr[...
960e87c2fc3c0197bb6c3d62ee1d879193a3a9b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5491/960e87c2fc3c0197bb6c3d62ee1d879193a3a9b4/makehist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 670, 12918, 12, 334, 12097, 16, 4235, 16, 818, 4672, 4235, 273, 1431, 12, 4349, 13, 810, 80, 273, 374, 31, 810, 88, 273, 374, 3681, 273, 4235, 19, 44, 12918, 2565, 20059, 25542, 5399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 670, 12918, 12, 334, 12097, 16, 4235, 16, 818, 4672, 4235, 273, 1431, 12, 4349, 13, 810, 80, 273, 374, 31, 810, 88, 273, 374, 3681, 273, 4235, 19, 44, 12918, 2565, 20059, 25542, 5399, ...
if processFocusWinEvent(*(focusWinEvent[1:])):
procFunc=processForegroundWinEvent if focusWinEvent[0]==winUser.EVENT_SYSTEM_FOREGROUND else processFocusWinEvent if procFunc(*(focusWinEvent[1:])):
def pumpAll(): #Receive all the winEvents from the limiter for this cycle winEvents=winEventLimiter.flushEvents() focusWinEvents=[] validFocus=False foregroundEvent=None fakeFocusEvent=None for winEvent in winEvents[0-MAX_WINEVENTS:]: #We want to only pass on one focus event to NVDA, but we always want to use the most ...
8b8ac88e11348fd02a4d63f329e6de6409be55c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/8b8ac88e11348fd02a4d63f329e6de6409be55c4/IAccessibleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2801, 1595, 13332, 468, 11323, 777, 326, 5657, 3783, 628, 326, 25057, 364, 333, 8589, 5657, 3783, 33, 8082, 1133, 22329, 18, 11330, 3783, 1435, 7155, 18049, 3783, 33, 8526, 923, 9233,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2801, 1595, 13332, 468, 11323, 777, 326, 5657, 3783, 628, 326, 25057, 364, 333, 8589, 5657, 3783, 33, 8082, 1133, 22329, 18, 11330, 3783, 1435, 7155, 18049, 3783, 33, 8526, 923, 9233,...
column = row = 0
column = row = comments_row = 0
def widget_factory(type, col): if bulk: w = bulk_widgets[type](db, col, parent) else: w = widgets[type](db, col, parent) w.initialize(book_id) return w
6ab5113196eceff570960a0341d3f0f27c8c10ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/6ab5113196eceff570960a0341d3f0f27c8c10ec/custom_column_widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3604, 67, 6848, 12, 723, 16, 645, 4672, 309, 8280, 30, 341, 273, 8280, 67, 18148, 63, 723, 29955, 1966, 16, 645, 16, 982, 13, 469, 30, 341, 273, 10965, 63, 723, 29955, 1966, 16, 645,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3604, 67, 6848, 12, 723, 16, 645, 4672, 309, 8280, 30, 341, 273, 8280, 67, 18148, 63, 723, 29955, 1966, 16, 645, 16, 982, 13, 469, 30, 341, 273, 10965, 63, 723, 29955, 1966, 16, 645,...
startAnim, deleteAnim, lambda: self.assert_(avg.getNumRunningAnims() == 0),
startAnim
def deleteAnim(): self.anim = None
25433654ead5e7cb0e330d27e2eb89812447ed8d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/25433654ead5e7cb0e330d27e2eb89812447ed8d/AnimTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 20892, 13332, 365, 18, 304, 381, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 20892, 13332, 365, 18, 304, 381, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.hasPager = None
self.hasPager = None
def __init__(self, userHandle="", screenName="", listType=None, group=None, status=None): self.userHandle = userHandle self.screenName = screenName self.list = listType # list ('fl','rl','bl','al') self.group = group # group id (if applicable) self.status = status # current status
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 729, 3259, 1546, 3113, 5518, 461, 1546, 3113, 666, 559, 33, 7036, 16, 1041, 33, 7036, 16, 1267, 33, 7036, 4672, 365, 18, 1355, 3259, 273, 729, 3259, 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, 1001, 2738, 972, 12, 2890, 16, 729, 3259, 1546, 3113, 5518, 461, 1546, 3113, 666, 559, 33, 7036, 16, 1041, 33, 7036, 16, 1267, 33, 7036, 4672, 365, 18, 1355, 3259, 273, 729, 3259, 365,...
self.tree.add_node(node, parent_id = '0')
self.assertSignal(self.view, \ 'node-modified-inview', \ self.tree.add_node, 2)(node, parent_id = '0') self.assert_(('temp',) in self.recorded_signals['node-modified-inview']) self.assert_(('0',) in self.recorded_signals['node-modified-inview'])
def test_add_parent(self): view = self.tree.get_viewtree(refresh = True) node = DummyNode('temp') node.add_color('blue')
c073ff4667160cf47c0c01dcc56265e0e4f9e5cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/c073ff4667160cf47c0c01dcc56265e0e4f9e5cd/test_liblarch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 2938, 12, 2890, 4672, 1476, 273, 365, 18, 3413, 18, 588, 67, 1945, 3413, 12, 9144, 273, 1053, 13, 756, 273, 28622, 907, 2668, 5814, 6134, 756, 18, 1289, 67, 3266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 2938, 12, 2890, 4672, 1476, 273, 365, 18, 3413, 18, 588, 67, 1945, 3413, 12, 9144, 273, 1053, 13, 756, 273, 28622, 907, 2668, 5814, 6134, 756, 18, 1289, 67, 3266, ...
cookies = [ ('Set-Cookie', '%s=%s; Path=/' % ( self.cookie_name, ticket.cookie_value())), ('Set-Cookie', '%s=%s; Path=/; Domain=%s' % ( self.cookie_name, ticket.cookie_value(), cur_domain)), ('Set-Cookie', '%s=%s; Path=/; Domain=%s' % ( self.cookie_name, ticket.cookie_value(), wild_domain)) ]
cookie_options = "" if self.secure: cookie_options += "; secure" if self.httponly: cookie_options += "; HttpOnly" cookies = [] if self.no_domain_cookie: cookies.append(('Set-Cookie', '%s=%s; Path=/%s' % ( self.cookie_name, ticket.cookie_value(), cookie_options))) if self.current_domain_cookie: cookies.append(('Set-Co...
def set_user_cookie(self, environ, userid, tokens, user_data): if not isinstance(tokens, basestring): tokens = ','.join(tokens) if self.include_ip: remote_addr = environ['REMOTE_ADDR'] else: remote_addr = '0.0.0.0' ticket = AuthTicket( self.secret, userid, remote_addr, tokens=tokens, user_data=user_data, cookie_name=se...
6c6088e2216956d0c77ac890894bd0922b998c7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11400/6c6088e2216956d0c77ac890894bd0922b998c7e/auth_tkt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1355, 67, 8417, 12, 2890, 16, 5473, 16, 6709, 16, 2430, 16, 729, 67, 892, 4672, 309, 486, 1549, 12, 7860, 16, 10699, 4672, 2430, 273, 3316, 18, 5701, 12, 7860, 13, 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, 444, 67, 1355, 67, 8417, 12, 2890, 16, 5473, 16, 6709, 16, 2430, 16, 729, 67, 892, 4672, 309, 486, 1549, 12, 7860, 16, 10699, 4672, 2430, 273, 3316, 18, 5701, 12, 7860, 13, 309, 365,...
def __init__(self, id, d):
def __init__(self, id, d, user, passwd):
def __init__(self, id, d): self.error = 0 self.id = id self.d = d self.ip = d['ip'] self.port = d['port'] self.pan0 = d['pan0'] self.name = d['name'] self.settings = {} self.cid = None self.haveControl = False
76ebebcbdf36af98d587f43432fa8c2a0bbe6466 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11185/76ebebcbdf36af98d587f43432fa8c2a0bbe6466/vbcam.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 612, 16, 302, 16, 729, 16, 19093, 4672, 365, 18, 1636, 273, 374, 365, 18, 350, 273, 612, 365, 18, 72, 273, 302, 365, 18, 625, 273, 302, 3292, 625, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 612, 16, 302, 16, 729, 16, 19093, 4672, 365, 18, 1636, 273, 374, 365, 18, 350, 273, 612, 365, 18, 72, 273, 302, 365, 18, 625, 273, 302, 3292, 625, 35...
if 'uid' not in props: props['uid'] = uid
props['uid'] = uid
def update(self, uid, props, filelike=None, can_move=False): if 'uid' not in props: props['uid'] = uid if filelike: if isinstance(filelike, basestring): # lets treat it as a filename filelike = open(filelike, "r") filelike.seek(0) path = self._writeContent(uid, filelike, can_move=can_move) self.indexmanager.index(props...
0a7e80f01ac0f96b15d1eeeda3386be40b8a9b7c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9394/0a7e80f01ac0f96b15d1eeeda3386be40b8a9b7c/backingstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 4555, 16, 3458, 16, 661, 292, 2547, 33, 7036, 16, 848, 67, 8501, 33, 8381, 4672, 3458, 3292, 1911, 3546, 273, 4555, 309, 661, 292, 2547, 30, 309, 1549, 12, 7540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 4555, 16, 3458, 16, 661, 292, 2547, 33, 7036, 16, 848, 67, 8501, 33, 8381, 4672, 3458, 3292, 1911, 3546, 273, 4555, 309, 661, 292, 2547, 30, 309, 1549, 12, 7540, ...
for b in baudrate_constants.keys(): if b > 230400: del baudrate_constants[b]
def set_special_baudrate(port, baudrate): raise ValueError("sorry don't know how to handle non standard baud rate on this platform")
99220a05686825c332014472328610306cf55b88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2937/99220a05686825c332014472328610306cf55b88/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 9371, 67, 12124, 1100, 5141, 12, 655, 16, 9846, 1100, 5141, 4672, 1002, 2068, 2932, 2467, 1176, 2727, 1404, 5055, 3661, 358, 1640, 1661, 4529, 9846, 1100, 4993, 603, 333, 4072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 9371, 67, 12124, 1100, 5141, 12, 655, 16, 9846, 1100, 5141, 4672, 1002, 2068, 2932, 2467, 1176, 2727, 1404, 5055, 3661, 358, 1640, 1661, 4529, 9846, 1100, 4993, 603, 333, 4072, ...
mask: A list of booleans as long as the number of atoms
mask: list of bool
def log(self, parameter=None): """Log the parameters of the eigenmode search.""" if self.logfile is not None: if parameter is not None: l = 'DIM:CONTROL: Updated Parameter: %s = %s\n' % (parameter, str(self.get_parameter(parameter))) else: l = 'MINMODE:METHOD: Dimer\n' l += 'DIM:CONTROL: Search Parameters:\n' l += 'DIM...
4018acf8c674e0693794b02621baa8897f571068 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/4018acf8c674e0693794b02621baa8897f571068/dimer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 16, 1569, 33, 7036, 4672, 3536, 1343, 326, 1472, 434, 326, 16719, 3188, 1623, 12123, 309, 365, 18, 28806, 353, 486, 599, 30, 309, 1569, 353, 486, 599, 30, 328, 273, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 16, 1569, 33, 7036, 4672, 3536, 1343, 326, 1472, 434, 326, 16719, 3188, 1623, 12123, 309, 365, 18, 28806, 353, 486, 599, 30, 309, 1569, 353, 486, 599, 30, 328, 273, 296,...
"""Open Data/masterlist.txt.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('masterlist.txt...')) menu.AppendItem(menuItem) self.path = bosh.dirs['mods'].join('masterlist.txt') menuItem.Enable(self.path.exists()) def Execute(self,event): """Ha...
"""Open Data/masterlist.txt.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('masterlist.txt...')) menu.AppendItem(menuItem) self.path = bosh.dirs['mods'].join('masterlist.txt') menuItem.Enable(self.path.exists()) def Execute(self,event): """Ha...
def Execute(self,event): """Handle selection.""" self.path.start()
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 4421, 12123, 365, 18, 803, 18, 1937, 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, ...
[ 1, 1, 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, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 4421, 12123, 365, 18, 803, 18, 1937, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if dt.tzinfo: dt = dt.astimezone(tz)
if getattr(dt, 'tzinfo', None): dt = dt.astimezone(tz)
def convertToMX(dt, tz=None): """Convert the given datetime into an mxDateTime. Convert dt to local time if it has a timezone. >>> import datetime, mx.DateTime >>> dt = datetime.datetime(2004, 12, 20, 18, tzinfo=utc) >>> mxdt = convertToMX(dt, pacific) >>> print mxdt 2004-12-20 10:00:00.00 >>> type(mxdt) <type 'DateT...
404f8894f93966d39b5586909b8f35bfa2aa573c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/404f8894f93966d39b5586909b8f35bfa2aa573c/icalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 13874, 12, 7510, 16, 6016, 33, 7036, 4672, 3536, 2723, 326, 864, 3314, 1368, 392, 7938, 5096, 18, 225, 4037, 3681, 358, 1191, 813, 309, 518, 711, 279, 6371, 18, 225, 4080, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 13874, 12, 7510, 16, 6016, 33, 7036, 4672, 3536, 2723, 326, 864, 3314, 1368, 392, 7938, 5096, 18, 225, 4037, 3681, 358, 1191, 813, 309, 518, 711, 279, 6371, 18, 225, 4080, 1930, ...
"""Moves to a point dx, dy away from the start of the current line - NOT from the current point! So if you call it in mid-sentence, watch out."""
"""Starts a new line at an offset dx,dy from the start of the current line. This does not move the cursor relative to the current position, and it changes the current offset of every future line drawn (i.e. if you next do a textLine() call, it will move the cursor to a position one line lower than the position specifi...
def moveCursor(self, dx, dy): """Moves to a point dx, dy away from the start of the current line - NOT from the current point! So if you call it in mid-sentence, watch out.""" if self._code and self._code[-1][-3:]==' Td': L = string.split(self._code[-1]) if len(L)==3: del self._code[-1] else: self._code[-1] = string.jo...
c8807bcce56d0da528e6e56ed9baa7e7f4382f44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/c8807bcce56d0da528e6e56ed9baa7e7f4382f44/textobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 6688, 12, 2890, 16, 6633, 16, 7732, 4672, 225, 3536, 11203, 279, 394, 980, 622, 392, 1384, 6633, 16, 15680, 628, 326, 787, 434, 326, 783, 980, 18, 1220, 1552, 486, 3635, 326, 334...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 6688, 12, 2890, 16, 6633, 16, 7732, 4672, 225, 3536, 11203, 279, 394, 980, 622, 392, 1384, 6633, 16, 15680, 628, 326, 787, 434, 326, 783, 980, 18, 1220, 1552, 486, 3635, 326, 334...
game.quad[ix][iy]=('-','o','O')[m-1]
game.quad[game.sector.i][game.sector.j]=('-','o','O')[m-1]
def mayday(): "Yell for help from nearest starbase." # There's more than one way to move in this game! scanner.chew() # Test for conditions which prevent calling for help if game.condition == "docked": prout(_("Lt. Uhura- \"But Captain, we're already docked.\"")) return if damaged(DRADIO): prout(_("Subspace radio dama...
65ebc303124b932f39a34d20faaa702d07854b82 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/65ebc303124b932f39a34d20faaa702d07854b82/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2026, 2881, 13332, 315, 61, 1165, 364, 2809, 628, 11431, 10443, 1969, 1199, 468, 6149, 1807, 1898, 2353, 1245, 4031, 358, 3635, 316, 333, 7920, 5, 7683, 18, 343, 359, 1435, 468, 7766, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2026, 2881, 13332, 315, 61, 1165, 364, 2809, 628, 11431, 10443, 1969, 1199, 468, 6149, 1807, 1898, 2353, 1245, 4031, 358, 3635, 316, 333, 7920, 5, 7683, 18, 343, 359, 1435, 468, 7766, 36...
0.90455689430238140 - 1.0612750619050357*I
0.904556894302381 - 1.06127506190503*I
def acos(self): """ EXAMPLES: sage: (1+I).acos() 0.90455689430238140 - 1.0612750619050357*I """ return self.parent()(self._pari_().acos())
0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1721, 538, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 1077, 538, 1435, 374, 18, 29, 3028, 2539, 26, 6675, 8942, 3103, 7414, 21, 300, 404, 18, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1721, 538, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 1077, 538, 1435, 374, 18, 29, 3028, 2539, 26, 6675, 8942, 3103, 7414, 21, 300, 404, 18, 7...
register("mosaic", None, GenericBrowser("mosaic %s >/dev/null &"))
register("mosaic", None, GenericBrowser( "mosaic '%s' >/dev/null &"))
def open_new(self, url): self.open(url)
925f14427416c1c5a8c6e71d17daac20e248c7b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/925f14427416c1c5a8c6e71d17daac20e248c7b0/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (os.path.exists(subl[4])): retval += [subl[4]] else: print 'ldd returns non existing library '+subl[2]
if (mode == 3): if (os.path.exists(subl[4])): retval += [subl[4]] else: print 'ldd returns non existing library '+subl[4] elif (mode == 4): if (os.path.exists(subl[6])): retval += [subl[6]] else: print 'ldd returns non existing library '+subl[6] else: print 'unknown mode, please report this bug in jk_lib.py'
def lddlist_libraries_openbsd(executable): """returns a list of libraries that the executable depends on """ retval = [] pd = os.popen3('ldd '+executable) line = pd[1].readline() while (len(line)>0): subl = string.split(line) if (len(subl)>0): if (subl[0] == executable+':'): pass elif (subl[0] == 'Start'): pass elif (l...
bbe59c48e9965929a6c62e147ee0cc5035a847ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6201/bbe59c48e9965929a6c62e147ee0cc5035a847ca/jk_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 449, 1098, 67, 31417, 67, 3190, 2038, 72, 12, 17751, 4672, 3536, 6154, 279, 666, 434, 14732, 716, 326, 9070, 10935, 603, 3536, 5221, 273, 5378, 4863, 273, 1140, 18, 84, 3190, 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, 328, 449, 1098, 67, 31417, 67, 3190, 2038, 72, 12, 17751, 4672, 3536, 6154, 279, 666, 434, 14732, 716, 326, 9070, 10935, 603, 3536, 5221, 273, 5378, 4863, 273, 1140, 18, 84, 3190, 23, ...
value = u"%(x)s, %()s" % {'x':u"abc", u''.encode('utf-8'):"def"}
if sys.platform[:4] != 'java': value = u"%(x)s, %()s" % {'x':u"abc", u''.encode('utf-8'):"def"} else: value = u"%(x)s, %()s" % {'x':u"abc", u'':"def"}
def test_fixup(s): s2 = u'\ud800\udc01' test_lecmp(s, s2) s2 = u'\ud900\udc01' test_lecmp(s, s2) s2 = u'\uda00\udc01' test_lecmp(s, s2) s2 = u'\udb00\udc01' test_lecmp(s, s2) s2 = u'\ud800\udd01' test_lecmp(s, s2) s2 = u'\ud900\udd01' test_lecmp(s, s2) s2 = u'\uda00\udd01' test_lecmp(s, s2) s2 = u'\udb00\udd01' test_le...
ef0a032883cadeb0dba7a6ff84025f7133b75b31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ef0a032883cadeb0dba7a6ff84025f7133b75b31/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 904, 416, 12, 87, 4672, 272, 22, 273, 582, 8314, 1100, 17374, 64, 1100, 71, 1611, 11, 1842, 67, 298, 9625, 12, 87, 16, 272, 22, 13, 272, 22, 273, 582, 8314, 1100, 29, 713...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 904, 416, 12, 87, 4672, 272, 22, 273, 582, 8314, 1100, 17374, 64, 1100, 71, 1611, 11, 1842, 67, 298, 9625, 12, 87, 16, 272, 22, 13, 272, 22, 273, 582, 8314, 1100, 29, 713...
test_shape()
if __name__ == '__main__': test_sphere()
def test_imagetex(): imagetex = ImageTexture(r"C:\Documents and Settings\admin\Mes documents\Develop\Practice\bark.png") imagetex.apply(printer) eval_code(imagetex)
5af742fb7bba9aa7cc5692e378c2cd775320b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/799/5af742fb7bba9aa7cc5692e378c2cd775320b880/test_pyprinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15374, 278, 338, 13332, 8902, 278, 338, 273, 3421, 10967, 12, 86, 6, 39, 5581, 12922, 471, 8709, 64, 3666, 64, 49, 281, 7429, 64, 758, 8250, 64, 52, 14266, 1812, 64, 70, 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, 1842, 67, 15374, 278, 338, 13332, 8902, 278, 338, 273, 3421, 10967, 12, 86, 6, 39, 5581, 12922, 471, 8709, 64, 3666, 64, 49, 281, 7429, 64, 758, 8250, 64, 52, 14266, 1812, 64, 70, 13...
u'\u1794\u17d2\u178a\u17bc\u179a\u1785\u17c6\u178e\u1784\u1787\u17be\u1784'],
u'\u1794\u17d2\u178a\u17bc\u179a\u1785\u17c6\u178e\u1784\u1787\u17be\u1784', u'ប្តូរទីតាំងទៅ'],
def category_namespaces(self, code): return self.namespace(code, 14, all = True)
961406df3620c68da51815dde157ded92152bcdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/961406df3620c68da51815dde157ded92152bcdc/family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3150, 67, 16078, 12, 2890, 16, 981, 4672, 327, 365, 18, 4937, 12, 710, 16, 5045, 16, 777, 273, 1053, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3150, 67, 16078, 12, 2890, 16, 981, 4672, 327, 365, 18, 4937, 12, 710, 16, 5045, 16, 777, 273, 1053, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
azim = dict['PAzim']
azim = dict['PAzim']
def drawFocMec(self): if self.dictFocalMechanism == {}: err = "Error: No focal mechanism data!" self.textviewStdErrImproved.write(err) return # make up the figure: fig = self.fig self.axsFocMec = [] axs = self.axsFocMec fig.subplots_adjust(left=0, bottom=0, right=1, top=1) # plot the selected solution dF = self.dictFo...
3f74a1e386d3c23bf0221947eebfe61d223353bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/3f74a1e386d3c23bf0221947eebfe61d223353bd/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 42, 504, 49, 557, 12, 2890, 4672, 309, 365, 18, 1576, 42, 23735, 31546, 422, 16648, 393, 273, 315, 668, 30, 2631, 284, 23735, 12860, 501, 4442, 365, 18, 955, 1945, 10436, 2524, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 42, 504, 49, 557, 12, 2890, 4672, 309, 365, 18, 1576, 42, 23735, 31546, 422, 16648, 393, 273, 315, 668, 30, 2631, 284, 23735, 12860, 501, 4442, 365, 18, 955, 1945, 10436, 2524, 1...
source_list = [] source = open(source_name)
source_list = [] with open(source_name) as source:
def test_checkcache(self): getline = linecache.getline try: # Create a source file and cache its contents source_name = support.TESTFN + '.py' with open(source_name, 'w') as source: source.write(SOURCE_1) source.close() getline(source_name, 1)
c2037ed2b9ceebb973d58f88cf4fec8c6435df25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/c2037ed2b9ceebb973d58f88cf4fec8c6435df25/test_linecache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1893, 2493, 12, 2890, 4672, 336, 1369, 273, 4739, 557, 807, 18, 588, 1369, 775, 30, 468, 1788, 279, 1084, 585, 471, 1247, 2097, 2939, 1084, 67, 529, 273, 2865, 18, 16961, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 2493, 12, 2890, 4672, 336, 1369, 273, 4739, 557, 807, 18, 588, 1369, 775, 30, 468, 1788, 279, 1084, 585, 471, 1247, 2097, 2939, 1084, 67, 529, 273, 2865, 18, 16961, 197...
typ, rid, dt = record[:3] min = dt[:-3] dt = parsedt(dt)
typ, rid, dt, min = record[:4] dt = parsedt(' '.join([dt,min]))
def main(args=None): if args is None: args = sys.argv[1:] options, args = parser.parse_args(args) if options.event_log: restarts = find_restarts(options.event_log) else: restarts = [] restarts.append(datetime.datetime.utcnow()+datetime.timedelta(1000)) if options.html: print_app_requests = print_app_requests_html ou...
4cd9e6511af6ff0ea1e7f5f00c8b96d1715cb05f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7695/4cd9e6511af6ff0ea1e7f5f00c8b96d1715cb05f/tracereport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 33, 7036, 4672, 309, 833, 353, 599, 30, 833, 273, 2589, 18, 19485, 63, 21, 26894, 225, 702, 16, 833, 273, 2082, 18, 2670, 67, 1968, 12, 1968, 13, 309, 702, 18, 2575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1968, 33, 7036, 4672, 309, 833, 353, 599, 30, 833, 273, 2589, 18, 19485, 63, 21, 26894, 225, 702, 16, 833, 273, 2082, 18, 2670, 67, 1968, 12, 1968, 13, 309, 702, 18, 2575, ...
def delete_db(settings):
def delete_db(settings):
def delete_db(settings): """Delete the old database.""" engine = settings.DATABASE_ENGINE if engine == 'sqlite3': try: os.unlink(settings.DATABASE_NAME) except OSError: pass elif engine == 'mysql': import _mysql s = _mysql.connect(host=settings.DATABASE_HOST, user=settings.DATABASE_USER, passwd=settings.DATABASE_PASSWO...
0b5b5bdddb5618fc3777a5e213b03abd527f7ab5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13656/0b5b5bdddb5618fc3777a5e213b03abd527f7ab5/load_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 1966, 12, 4272, 4672, 3536, 2613, 326, 1592, 2063, 12123, 4073, 273, 1947, 18, 22366, 67, 28980, 309, 4073, 422, 296, 19460, 23, 4278, 775, 30, 1140, 18, 318, 1232, 12, 4272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 1966, 12, 4272, 4672, 3536, 2613, 326, 1592, 2063, 12123, 4073, 273, 1947, 18, 22366, 67, 28980, 309, 4073, 422, 296, 19460, 23, 4278, 775, 30, 1140, 18, 318, 1232, 12, 4272, ...
class MarginsPropertySet : def __init__( self, top=None, left=None, bottom=None, right=None ) : self.SetTop ( top ) self.SetLeft ( left ) self.SetBottom( bottom ) self.SetRight ( right ) def SetTop( self, value ) :
class MarginsPropertySet: def __init__(self, top=None, left=None, bottom=None, right=None): self.SetTop(top) self.SetLeft(left) self.SetBottom(bottom) self.SetRight(right) def SetTop(self, value):
def __init__( self ) : super( Papers, self ).__init__( Paper )
13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 262, 294, 2240, 12, 453, 438, 414, 16, 365, 262, 16186, 2738, 972, 12, 20971, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 262, 294, 2240, 12, 453, 438, 414, 16, 365, 262, 16186, 2738, 972, 12, 20971, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.bank = bank self.label = label
self.brokerBank = broker.getBrokerBank() self.agentBank = agentBank self.label = label
def __init__(self, broker, bank, label): self.broker = broker self.bank = bank self.label = label
0d08ba902f6f1345e2b0a283cf6e677e5be4b47d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/0d08ba902f6f1345e2b0a283cf6e677e5be4b47d/console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8625, 16, 11218, 16, 1433, 4672, 365, 18, 21722, 273, 8625, 365, 18, 10546, 282, 273, 11218, 365, 18, 1925, 225, 273, 1433, 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, 1001, 2738, 972, 12, 2890, 16, 8625, 16, 11218, 16, 1433, 4672, 365, 18, 21722, 273, 8625, 365, 18, 10546, 282, 273, 11218, 365, 18, 1925, 225, 273, 1433, 2, -100, -100, -100, -100, -1...
if (miller_array.is_xray_intensity_array()):
if (miller_array.is_complex_array() and miller_array.sigmas() is None): assert not miller_array.is_xray_intensity_array() if (miller_array.anomalous_flag()): result = "GP" else: result = "FP" elif (miller_array.is_xray_intensity_array()):
def default_column_types(miller_array): result = None if (miller_array.is_xray_intensity_array()): if (miller_array.anomalous_flags()): result = "K" if (miller_array.sigmas() is not None): result += "M" else: result = "J" if (miller_array.sigmas() is not None): result += "Q" elif (miller_array.is_xray_amplitude_array()...
2a0ffab624390cfa303ac88ffcf4a41498a3a1f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/2a0ffab624390cfa303ac88ffcf4a41498a3a1f5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 2827, 67, 2352, 12, 81, 24462, 67, 1126, 4672, 563, 273, 599, 309, 261, 81, 24462, 67, 1126, 18, 291, 67, 14259, 67, 1126, 1435, 471, 312, 24462, 67, 1126, 18, 7340, 15260, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 2827, 67, 2352, 12, 81, 24462, 67, 1126, 4672, 563, 273, 599, 309, 261, 81, 24462, 67, 1126, 18, 291, 67, 14259, 67, 1126, 1435, 471, 312, 24462, 67, 1126, 18, 7340, 15260, ...
def floordiv(w_bigint1, w_bigint2): div, mod = w_bigint1.divmod(w_bigint2)
def floordiv(self, other): div, mod = self.divmod(other)
def floordiv(w_bigint1, w_bigint2): div, mod = w_bigint1.divmod(w_bigint2) return div
87da397eba037ce53e8c5847c7c4b29acfda97b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/87da397eba037ce53e8c5847c7c4b29acfda97b2/rbigint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20802, 517, 427, 12, 2890, 16, 1308, 4672, 3739, 16, 681, 273, 365, 18, 2892, 1711, 12, 3011, 13, 327, 3739, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20802, 517, 427, 12, 2890, 16, 1308, 4672, 3739, 16, 681, 273, 365, 18, 2892, 1711, 12, 3011, 13, 327, 3739, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return
skip("XXX the following does not work because there are no fallbacks in the reflective object space")
def f(x, y, z): return x + y * z
5531d8c0b3dd286dacc356c34d47e2aa49095741 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/5531d8c0b3dd286dacc356c34d47e2aa49095741/test_reflective.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 92, 16, 677, 16, 998, 4672, 327, 619, 397, 677, 380, 998, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 92, 16, 677, 16, 998, 4672, 327, 619, 397, 677, 380, 998, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
result = self.main.dbus_action.do_message(users ,
result = self.main.dbus_action.do_message(newusernames ,
def menu_event_one(self, action): start1=time() (model, iter) = self.main.tabla.get_selection().get_selected() if iter == None: print_debug( "menu_event_one() not selected thin client !!!" ) return self.main.selected_host=model.get_value(iter,COL_HOST) self.main.selected_ip=model.get_value(iter, COL_IP) if not self.do...
53a3eea66bbc168c70ea325ef8439de22d83ed8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/53a3eea66bbc168c70ea325ef8439de22d83ed8b/TcosActions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 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, 3824, 67, 2575, 67, 476, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 261, 2284, 16, 1400, 13, 273, 365, 18, 5254, 18, 7032, 11821, 18, 588, 67, 10705, 7675, 588, 67, 8109, 1435...
marker = '@'
marker = '@@'
def replaceLanguageLinks(oldtext, new, site = None): """Replace the interwiki language links given in the wikitext given in oldtext by the new links given in new. 'new' should be a dictionary with the language names as keys, and Page objects as values. """ # Find a marker that is not already in the text. We assume nob...
f9c80ef99f35a24fb3c47761699987c6879700b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/f9c80ef99f35a24fb3c47761699987c6879700b2/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 3779, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 4672, 3536, 5729, 326, 1554, 13044, 2653, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635, 326, 394, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 3779, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 4672, 3536, 5729, 326, 1554, 13044, 2653, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635, 326, 394, 47...
def _email_send(message, openobject_id=None, debug=False):
def _email_send(smtp_from, smtp_to_list, message, openobject_id=None, ssl=False, debug=False):
def _email_send(message, openobject_id=None, debug=False): """Low-level method to send directly a Message through the configured smtp server. :param message: an email.message.Message to send :param debug: True if messages should be output to stderr before being sent, and smtplib.SMTP put into debug mode. :return: True ...
3d8d4a173b87927fdf5ffb9de8e423ad1b1599b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3d8d4a173b87927fdf5ffb9de8e423ad1b1599b5/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3652, 67, 4661, 12, 20278, 67, 2080, 16, 17660, 67, 869, 67, 1098, 16, 883, 16, 1696, 1612, 67, 350, 33, 7036, 16, 5832, 33, 8381, 16, 1198, 33, 8381, 4672, 3536, 10520, 17, 281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3652, 67, 4661, 12, 20278, 67, 2080, 16, 17660, 67, 869, 67, 1098, 16, 883, 16, 1696, 1612, 67, 350, 33, 7036, 16, 5832, 33, 8381, 16, 1198, 33, 8381, 4672, 3536, 10520, 17, 281...
syslog(LOG_INFO, "File %s changed" % event.filename)
syslog(LOG_INFO, "Cfg: File %s changed" % event.filename)
def HandleEvent(self, event): '''Handle FAM updates''' action = event.code2str() if event.filename[-5:] == ':info': return self.read_info(event.filename) for entry in self.basefiles + self.deltas: if entry.name.split('/')[-1] == event.filename: if action == 'changed': syslog(LOG_INFO, "File %s changed" % event.filename...
d95d4eea0cb84903bf9b68fe0f5821bfe5d4a183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/d95d4eea0cb84903bf9b68fe0f5821bfe5d4a183/Cfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1133, 12, 2890, 16, 871, 4672, 9163, 3259, 478, 2192, 4533, 26418, 1301, 273, 871, 18, 710, 22, 701, 1435, 309, 871, 18, 3459, 18919, 25, 26894, 422, 4290, 1376, 4278, 327, 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, 5004, 1133, 12, 2890, 16, 871, 4672, 9163, 3259, 478, 2192, 4533, 26418, 1301, 273, 871, 18, 710, 22, 701, 1435, 309, 871, 18, 3459, 18919, 25, 26894, 422, 4290, 1376, 4278, 327, 365, ...
MOCK run_and_throw_if_fail: ['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--ignore-tests', 'compositing/iframes', '--quiet']
MOCK run_and_throw_if_fail: ['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--ignore-tests', 'compositing', '--quiet']
def test_runtests_leopard_commit_queue_hack(self): mock_options = Mock() mock_options.non_interactive = True step = RunTests(MockTool(log_executive=True), mock_options) # FIXME: We shouldn't use a real port-object here, but there is too much to mock at the moment. mock_port = WebKitPort() mock_port.name = lambda: "Mac"...
4c272bd23a643f41ccc5bf730d661f8eb073eb51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/4c272bd23a643f41ccc5bf730d661f8eb073eb51/steps_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2681, 16341, 67, 298, 556, 1060, 67, 7371, 67, 4000, 67, 76, 484, 12, 2890, 4672, 5416, 67, 2116, 273, 7867, 1435, 5416, 67, 2116, 18, 5836, 67, 24761, 273, 1053, 2235, 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, 1842, 67, 2681, 16341, 67, 298, 556, 1060, 67, 7371, 67, 4000, 67, 76, 484, 12, 2890, 4672, 5416, 67, 2116, 273, 7867, 1435, 5416, 67, 2116, 18, 5836, 67, 24761, 273, 1053, 2235, 273, ...
{"key": "subject:love", "url": "/subjects/love", "name": "Love", "count": 4}, {"key": "place:san_francisco", "url": "/subjects/place:san_francisco", "name": "San Francisco", "count": 3}
{"key": "subject:love", "url": "/subjects/love", "name": "Love", "title": "Love", "count": 4}, {"key": "place:san_francisco", "url": "/subjects/place:san_francisco", "name": "San Francisco", "title": "San Francisco", "count": 3}
def test_simple(self): doc1 = { "_id": "/works/OL1W", "editions": 10, "works": 1, "ebooks": 2, "subjects": [ {"key": "subject:love", "name": "Love", "count": 2} ] }
ebb0b86f96814ef918bb51e9ea72ac2b92055f5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/ebb0b86f96814ef918bb51e9ea72ac2b92055f5c/test_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9647, 12, 2890, 4672, 997, 21, 273, 288, 4192, 350, 6877, 2206, 18597, 19, 1741, 21, 59, 3113, 315, 329, 5029, 6877, 1728, 16, 315, 18597, 6877, 404, 16, 315, 73, 12567, 6877...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9647, 12, 2890, 4672, 997, 21, 273, 288, 4192, 350, 6877, 2206, 18597, 19, 1741, 21, 59, 3113, 315, 329, 5029, 6877, 1728, 16, 315, 18597, 6877, 404, 16, 315, 73, 12567, 6877...
vf = npy.vdot(self.v, f)
vf = npy.vdot(f,self.v)
def step(self,f):
20cf7fcea498d3b3d2b04a93b381f1e6d6ef8dac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5735/20cf7fcea498d3b3d2b04a93b381f1e6d6ef8dac/fire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 74, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 74, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if numpy.allclose(L3, 0.0) or type(L3)==complex:
if numpy.allclose(L3, 0.0) or type(L3)==numpy.complex_:
def calc_itls_center_of_reaction(iT, iL, iS, origin): """iT is a single float; iL[3,3]; iS[3] """ ## construct TLS tensors from isotropic TLS description T0 = numpy.array([[iT, 0.0, 0.0], [0.0, iT, 0.0], [0.0, 0.0, iT]], float) L0 = iL.copy() S0 = numpy.array([ [ 0.0, 0.0, iS[1]], [iS[0], 0.0, 0.0], [ 0.0, ...
56f30da138626c8c6f397e7d28b00e0126c279a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/56f30da138626c8c6f397e7d28b00e0126c279a7/TLS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 305, 3251, 67, 5693, 67, 792, 67, 266, 1128, 12, 77, 56, 16, 277, 48, 16, 277, 55, 16, 4026, 4672, 3536, 77, 56, 353, 279, 2202, 1431, 31, 277, 48, 63, 23, 16, 23, 1553...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 305, 3251, 67, 5693, 67, 792, 67, 266, 1128, 12, 77, 56, 16, 277, 48, 16, 277, 55, 16, 4026, 4672, 3536, 77, 56, 353, 279, 2202, 1431, 31, 277, 48, 63, 23, 16, 23, 1553...
'from 'where m._Marker_key = r._Marker_key ' + \ 'and r._Refs_key = b._Refs_key') cmds.append('create nonclustered index index_refs_key on
'from 'where r._Refs_key = b._Refs_key') cmds.append('create index index_refs_key on
def writeRecordD(fp, r): fp.write(r['jnumID'] + TAB) if pubMedIDs.has_key(r['_Refs_key']): purl = regsub.gsub('@@@@', pubMedIDs[r['_Refs_key']], url) fp.write('<A HREF="%s">%s</A>' % (purl, pubMedIDs[r['_Refs_key']])) fp.write(TAB) if r['_Refs_key'] in gxd: fp.write('Y' + TAB) else: fp.write('N' + TAB) fp.write(r['...
14d44534de3f5b85347a2d8c4a92c92ddfccf0b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/340/14d44534de3f5b85347a2d8c4a92c92ddfccf0b7/MRK_GOIEA.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2115, 40, 12, 7944, 16, 436, 4672, 225, 4253, 18, 2626, 12, 86, 3292, 78, 2107, 734, 3546, 397, 26158, 13, 225, 309, 5634, 13265, 5103, 18, 5332, 67, 856, 12, 86, 3292, 67, 983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2115, 40, 12, 7944, 16, 436, 4672, 225, 4253, 18, 2626, 12, 86, 3292, 78, 2107, 734, 3546, 397, 26158, 13, 225, 309, 5634, 13265, 5103, 18, 5332, 67, 856, 12, 86, 3292, 67, 983...
if os.path.exists(program):
if os.path.exists(program) or os.path.exists(program + '.exe'):
def minimize(self): #bruce 041215 fixed some bugs and changed some error messages # in the case when the simulator executable is not found. # Bugs included uncaught exception (rather than error message) # which could also fail to restore the current working directory. from debug import print_compact_traceback ## bruce ...
06ea390a1b2d26c20ef47e3a844061a6b709d67e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/06ea390a1b2d26c20ef47e3a844061a6b709d67e/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18935, 12, 2890, 4672, 468, 2848, 3965, 16486, 2138, 3600, 5499, 2690, 22398, 471, 3550, 2690, 555, 2743, 468, 316, 326, 648, 1347, 326, 3142, 11775, 9070, 353, 486, 1392, 18, 468, 605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18935, 12, 2890, 4672, 468, 2848, 3965, 16486, 2138, 3600, 5499, 2690, 22398, 471, 3550, 2690, 555, 2743, 468, 316, 326, 648, 1347, 326, 3142, 11775, 9070, 353, 486, 1392, 18, 468, 605, ...
handler.parent = self
handler.parent = container
def set_handler(self, path, handler, **kw): if not isinstance(path, uri.Path): path = uri.Path(path)
9d70f5fd556e50c9911c8c0b10abdc795233e5d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/9d70f5fd556e50c9911c8c0b10abdc795233e5d1/Folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4176, 12, 2890, 16, 589, 16, 1838, 16, 2826, 9987, 4672, 309, 486, 1549, 12, 803, 16, 2003, 18, 743, 4672, 589, 273, 2003, 18, 743, 12, 803, 13, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 67, 4176, 12, 2890, 16, 589, 16, 1838, 16, 2826, 9987, 4672, 309, 486, 1549, 12, 803, 16, 2003, 18, 743, 4672, 589, 273, 2003, 18, 743, 12, 803, 13, 2, -100, -100, -100, -100, ...
" '%s': %s" % (dir_name, err))
" '%s': %s" % (dir_name, err))
def EnsureDirs(dirs): """Make required directories, if they don't exist. @param dirs: list of tuples (dir_name, dir_mode) @type dirs: list of (string, integer) """ for dir_name, dir_mode in dirs: try: os.mkdir(dir_name, mode) except EnvironmentError, err: if err.errno != errno.EEXIST: raise errors.GenericError("Canno...
1b2c8f853bb444e0bdff3e33f685362860204bec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/1b2c8f853bb444e0bdff3e33f685362860204bec/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7693, 9872, 12, 8291, 4672, 3536, 6464, 1931, 6402, 16, 309, 2898, 2727, 1404, 1005, 18, 225, 632, 891, 7717, 30, 666, 434, 10384, 261, 1214, 67, 529, 16, 1577, 67, 3188, 13, 632, 723,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7693, 9872, 12, 8291, 4672, 3536, 6464, 1931, 6402, 16, 309, 2898, 2727, 1404, 1005, 18, 225, 632, 891, 7717, 30, 666, 434, 10384, 261, 1214, 67, 529, 16, 1577, 67, 3188, 13, 632, 723,...
button = UpdatedButton(top, text ="Create new style", command = self.CreateStyleFromSelection,
button = UpdatedButton(top, text =_("Create new style"), command = self.CreateStyleFromSelection,
def build_dlg(self): root = self.top
82de312c345da93ba609089ae29cdfe484d465ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/82de312c345da93ba609089ae29cdfe484d465ca/styledlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5761, 75, 12, 2890, 4672, 1365, 273, 365, 18, 3669, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 67, 5761, 75, 12, 2890, 4672, 1365, 273, 365, 18, 3669, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if il<=p["var1"]<=sl and p["var2"]==True]
if il<=p["var1"]<=sl]
def test13f(self): """Checking repeated queries, with different limits."""
69d2d64c29e4a988f74981326eae5c0cd99c6293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12687/69d2d64c29e4a988f74981326eae5c0cd99c6293/test_indexvalues.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3437, 74, 12, 2890, 4672, 3536, 14294, 12533, 6218, 16, 598, 3775, 8181, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 1842, 3437, 74, 12, 2890, 4672, 3536, 14294, 12533, 6218, 16, 598, 3775, 8181, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
result.Append(CXXFLAGS='/EHsc /W3 /MDd /wd4099 /wd4244 /wd4800 /wd4996 /wd4251 /wd4661')
if result['OPENSCENEGRAPH_DEBUG']: result.Append(CXXFLAGS='/EHsc /W3 /MDd /wd4099 /wd4244 /wd4800 /wd4996 /wd4251 /wd4661') else: result.Append(CXXFLAGS='/EHsc /W3 /MD /wd4099 /wd4244 /wd4800 /wd4996 /wd4251 /wd4661')
def _build_environment(): result = scons.Environment(options = options) result.Tool('subst', toolpath = [os.path.dirname(__file__)+'/tools'])
3a08761ffa1c029f184589495c3459f938fa92de /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8421/3a08761ffa1c029f184589495c3459f938fa92de/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 10274, 13332, 563, 273, 272, 8559, 18, 5494, 12, 2116, 273, 702, 13, 563, 18, 6364, 2668, 1717, 334, 2187, 5226, 803, 273, 306, 538, 18, 803, 18, 12287, 12, 972, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 10274, 13332, 563, 273, 272, 8559, 18, 5494, 12, 2116, 273, 702, 13, 563, 18, 6364, 2668, 1717, 334, 2187, 5226, 803, 273, 306, 538, 18, 803, 18, 12287, 12, 972, 768, ...
print ' $ mv %s %s' % (f,join(backup_folder,name))
call('mv %s %s' % (f,join(backup_folder,name)),fake=debug)
def backup_affected_assets(cfg_folder, backup_folder): "Backup files that would be overwritten by config tracking into backup folder" files = local_assets(os.listdir(cfg_folder),lambda x: True) for f in files: if os.path.exists(f): name = os.path.split(f)[1] print ' $ mv %s %s' % (f,join(backup_folder,name))
3bee57ba2e7f0bcf4a04894f8e896e4bc837bc07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14333/3bee57ba2e7f0bcf4a04894f8e896e4bc837bc07/install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 67, 20119, 67, 9971, 12, 7066, 67, 5609, 16, 5114, 67, 5609, 4672, 315, 6248, 1390, 716, 4102, 506, 15345, 635, 642, 11093, 1368, 5114, 3009, 6, 1390, 273, 1191, 67, 9971, 12, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 67, 20119, 67, 9971, 12, 7066, 67, 5609, 16, 5114, 67, 5609, 4672, 315, 6248, 1390, 716, 4102, 506, 15345, 635, 642, 11093, 1368, 5114, 3009, 6, 1390, 273, 1191, 67, 9971, 12, 53...
self.date = date
self.timestamp = timestamp
def __init__(self, date, open, high, low, close, volume): """ Summary stats for a day that a stock traded.
5ba1a4a9510fd2da6a56209f764593aa64c92d20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5ba1a4a9510fd2da6a56209f764593aa64c92d20/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1509, 16, 1696, 16, 3551, 16, 4587, 16, 1746, 16, 3940, 4672, 3536, 17967, 3177, 364, 279, 2548, 716, 279, 12480, 1284, 785, 18, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1509, 16, 1696, 16, 3551, 16, 4587, 16, 1746, 16, 3940, 4672, 3536, 17967, 3177, 364, 279, 2548, 716, 279, 12480, 1284, 785, 18, 2, -100, -100, -100, -10...
w.icon = self.request.get('icon')
w.icon = str(self.request.get('icon'))
def post(self): w = Word() w.icon = self.request.get('icon') w.description = self.request.get('description') w.definition = self.request.get('definition') w.author = self.request.remote_addr w.total_users = 0 w.outbound_users = 1 w.put() self.redirect('/read/%s' % str(w.key()))
d17d4bb3d5c2635e0f5dba260c931e3eb16a9e5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/d17d4bb3d5c2635e0f5dba260c931e3eb16a9e5c/iconforth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 341, 273, 9926, 1435, 341, 18, 3950, 273, 609, 12, 2890, 18, 2293, 18, 588, 2668, 3950, 26112, 341, 18, 3384, 273, 365, 18, 2293, 18, 588, 2668, 3384, 6134, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 341, 273, 9926, 1435, 341, 18, 3950, 273, 609, 12, 2890, 18, 2293, 18, 588, 2668, 3950, 26112, 341, 18, 3384, 273, 365, 18, 2293, 18, 588, 2668, 3384, 6134, 341, ...
(triggerIntegratedPower-meanPixelPower)/
(brightPixel[4]-meanPixelPower)/
def createGlitchDatabase(self,verbose=bool(False)): """ Commands to build either a structure which can be graphed selectively or to create a database for use with auto-glitch classification pipeline. There is a companion summary for this method. If one wants to hand cut the summary you can excise the triggers from the...
f8356864ebd3e4f4c62944a76ace8501c23ac979 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/f8356864ebd3e4f4c62944a76ace8501c23ac979/tracksearchutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 21308, 1437, 4254, 12, 2890, 16, 11369, 33, 6430, 12, 8381, 3719, 30, 3536, 18034, 358, 1361, 3344, 279, 3695, 1492, 848, 506, 2667, 329, 2027, 4492, 578, 358, 752, 279, 2063, 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, 752, 21308, 1437, 4254, 12, 2890, 16, 11369, 33, 6430, 12, 8381, 3719, 30, 3536, 18034, 358, 1361, 3344, 279, 3695, 1492, 848, 506, 2667, 329, 2027, 4492, 578, 358, 752, 279, 2063, 364, ...
("safe_headers", "Safe headers", ("abuse-reports-to", "date errors-to",
("safe_headers", "Safe headers", ("abuse-reports-to", "date", "errors-to",
def bool(val): return not not val
c3a6c629eb134f582812030484f7f471287faa4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/c3a6c629eb134f582812030484f7f471287faa4f/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1426, 12, 1125, 4672, 327, 486, 486, 1244, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1426, 12, 1125, 4672, 327, 486, 486, 1244, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
re.sub(r'\r?\n', CRLF, data))
re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data))
def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\n' into Internet CRLF end-of-line.""" return re.sub(r'(?m)^\.', '..', re.sub(r'\r?\n', CRLF, data))
fcfb6323fb0030467d67b071654b342b7725727f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fcfb6323fb0030467d67b071654b342b7725727f/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9298, 396, 12, 892, 4672, 3536, 10257, 501, 364, 2699, 18, 225, 3698, 7676, 2611, 16, 471, 2549, 9480, 9472, 2337, 82, 11, 1368, 21352, 21791, 679, 17, 792, 17, 1369, 12123, 327, 283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9298, 396, 12, 892, 4672, 3536, 10257, 501, 364, 2699, 18, 225, 3698, 7676, 2611, 16, 471, 2549, 9480, 9472, 2337, 82, 11, 1368, 21352, 21791, 679, 17, 792, 17, 1369, 12123, 327, 283, ...
if self.image_loaded == True and self.last_image_action_was_fit == True:
if self.image_loaded == True:
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True and self.last_image_action_was_fit == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.zoomratio != 1: print "window re...
256b0d450ece2fc62a329cf543aee8046cf71dba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/256b0d450ece2fc62a329cf543aee8046cf71dba/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 455, 1235, 12, 2890, 16, 3604, 16, 13481, 4672, 468, 2315, 326, 1316, 963, 603, 2742, 7041, 309, 326, 783, 1316, 1703, 1142, 4845, 30, 309, 365, 18, 2730, 67, 4230, 422, 1053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2742, 67, 455, 1235, 12, 2890, 16, 3604, 16, 13481, 4672, 468, 2315, 326, 1316, 963, 603, 2742, 7041, 309, 326, 783, 1316, 1703, 1142, 4845, 30, 309, 365, 18, 2730, 67, 4230, 422, 1053...
def __init__(self, root, path, oeb, map=HTML_MAP):
def __init__(self, root, item, oeb, map=HTML_MAP):
def __init__(self, root, path, oeb, map=HTML_MAP): self.item = item self.logger = oeb.logger self.manifest = oeb.manifest self.tags, self.tattrs = map self.buf = StringIO() self.anchors = [] self.page_breaks = [] self.is_html = is_html = map is HTML_MAP self.stylizer = Stylizer(root, item.href, oeb) if is_html else No...
3eef5f35bf71bec485dc304665235dbb2e1d5b8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/3eef5f35bf71bec485dc304665235dbb2e1d5b8b/writer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1365, 16, 761, 16, 320, 24008, 16, 852, 33, 4870, 67, 8352, 4672, 365, 18, 1726, 273, 761, 365, 18, 4901, 273, 320, 24008, 18, 4901, 365, 18, 14357, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1365, 16, 761, 16, 320, 24008, 16, 852, 33, 4870, 67, 8352, 4672, 365, 18, 1726, 273, 761, 365, 18, 4901, 273, 320, 24008, 18, 4901, 365, 18, 14357, 27...
sizehint, if given, is passed as size argument to the stream's .read() method. """ if sizehint is None: data = self.stream.read() else: data = self.stream.read(sizehint)
sizehint, if given, is ignored since there is no efficient way to finding the true end-of-line. """ data = self.stream.read()
def readlines(self, sizehint=None):
70596312880e288cdc4bf7e7b2416353c2c6025f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/70596312880e288cdc4bf7e7b2416353c2c6025f/codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17546, 12, 2890, 16, 963, 11317, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17546, 12, 2890, 16, 963, 11317, 33, 7036, 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...
for atm in atomsScheduledForDeletion:
val = Atom_prekill_prep() for a in atomsScheduledForDeletionDict.values(): a._will_kill = val for atm in atomsScheduledForDeletionDict.values():
def _remove_bases_from_duplex(self, group, resizeEndAxisAtom, numberOfBasePairsToRemove): """ AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-27. Will be cleaned up further. Remove the spcified number of base pairs from the duplex. @param group: The DnaGroup which contains this duplex @type group: DnaGroup @param...
4090824539fc516abf6a30244c3d3d05582e6bbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4090824539fc516abf6a30244c3d3d05582e6bbc/DnaDuplex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 67, 18602, 67, 2080, 67, 72, 2268, 92, 12, 2890, 16, 1041, 16, 7041, 1638, 6558, 3641, 16, 7922, 2171, 10409, 12765, 4672, 3536, 15068, 20027, 5355, 432, 6369, 7071, 10830, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 67, 18602, 67, 2080, 67, 72, 2268, 92, 12, 2890, 16, 1041, 16, 7041, 1638, 6558, 3641, 16, 7922, 2171, 10409, 12765, 4672, 3536, 15068, 20027, 5355, 432, 6369, 7071, 10830, 20...